#silverstripe IRC Log

IRC log for 16 April 2014

All timestamps are in UTC.

1: [00:00:36] <Danae> Maybe if I had a Zend certification I could figure out why my Session seems to be limited to the login page
2: [00:00:44] <Danae> ;)
3: [00:01:06] <SphereSilverNL> Your sessions don't persist?
4: [00:01:14] <Zauberfisch> Danae: are you using the silverstripe Session class?
5: [00:01:21] <Danae> They persist on one page
6: [00:01:35] <Danae> Zauberfish: I'm using the DatabaseSessionStore
7: [00:01:44] <Zauberfisch> cookie that is tied to a subdomain or path?
8: [00:01:46] <Zauberfisch> oh.
9: [00:01:47] <Zauberfisch> hmmm
10: [00:01:55] <Zauberfisch> no idea. never used that
11: [00:02:05] <Danae> I tried deleting that and clearing all the caches but the bug persisted
12: [00:02:21] <Danae> silverstripe-labs/silverstripe-dbsession
13: [00:02:32] <Danae> it piggybacks directly off the Session class
14: [00:02:45] <SphereSilverNL> Besides the bug, why are you trying to persist sessions to the database?
15: [00:03:24] <SphereSilverNL> Isn't session storage enough?
16: [00:03:39] <Danae> We're going to be using a server cluster in the future, so the program needs to be able to pick up that session no matter which server it's pulling from
17: [00:04:17] <Danae> At least that's how my technical lead explained it
18: [00:04:27] <SphereSilverNL> The master server doesn't cascade down to its slaves?
19: [00:05:02] <Danae> I don't know enough about it to answer that :(
20: [00:07:03] * Bollig|DesignCty has joined #silverstripe
21: [00:07:13] <antmas> mmmm
22: [00:07:22] <antmas> time for some old school industrial tunes
23: [00:07:32] * antmas sweeps fringe over to one side
24: [00:07:41] <SphereSilverNL> Or bed. Bed is good too
25: [00:07:51] <spronk> old school tunes eh..
26: [00:07:57] <spronk> nah.
27: [00:07:58] <spronk> Lamb it is.
28: [00:08:12] <spronk> ^^ don't listen to simon_w
29: [00:08:16] <spronk> text editors are for cavemen
30: [00:08:23] <SphereSilverNL> 9 inch nails
31: [00:08:32] <antmas> spronk: Lamb?
32: [00:08:33] <spronk> Danae: phpstorm is win. zend studio is pretty OK
33: [00:08:43] <spronk> antmas: kinda lax house music
34: [00:08:57] <spronk> http://en.wikipedia.org/wiki/Lamb_(band)
35: [00:08:59] <Danae> spronk: I do enjoy xDebug, git, and the Dilbert integrations
36: [00:09:07] <SphereSilverNL> Speaking of simon_w, how are the preps going, you good?
37: [00:09:08] <antmas> SphereSilverNL: NIN, Skinny Puppy, Front Ling Assembly etc etc :P
38: [00:09:21] <antmas> spronk: I'll check it out
39: [00:09:29] <spronk> Danae: absolutely. Zend studio has PHPUnit integration too which is super freaking handy
40: [00:09:32] <spronk> i think phpstorm does as well
41: [00:09:50] <spronk> buut more important than any of those is the code navigation and refactoring tools
42: [00:09:51] <Danae> spronk: yeah I've got that set up for my SS tests
43: [00:10:01] <SphereSilverNL> NetBeans has it working as well, so....
44: [00:10:07] <SphereSilverNL> Sleep tight
45: [00:10:13] <spronk> IMO phpstorm and zend studio are pretty similar in those manners
46: [00:10:18] <spronk> netbeans is decent too, but i always find it a bit slow
47: [00:10:32] <Danae> yes NetBeans is the other competitor. It's free which is a big yessss
48: [00:10:33] <jenniferaslan> antmas: oh not this Lamb, then? http://www.lambmessianicmusic.com/
49: [00:10:40] * SphereSilverNL quit (Quit: bye)
50: [00:11:09] <jenniferaslan> :P
51: [00:11:09] <spronk> Danae: you can use PDT
52: [00:11:29] <spronk> which is basically zend studio without a bunch of stuff :P
53: [00:11:43] <spronk> personally think PHPStorm is the best of the lot
54: [00:11:59] <Danae> oh I see it's Eclipse's PHP editor
55: [00:12:08] <antmas> I like PHPStorm, but it's a bit slow
56: [00:12:10] <spronk> Danae: it's basically what zend studio was based on
57: [00:12:14] <spronk> hmm
58: [00:12:18] <Danae> gotcha
59: [00:12:22] <spronk> phpstorm is faster than the other IDEs :(
60: [00:12:31] <Danae> it takes me like ten days to boot it up
61: [00:12:34] <spronk> this is where i envy .net devs
62: [00:12:37] <Danae> but when it's going it GOES
63: [00:12:47] <spronk> VS is heaven compared to PHP IDEs
64: [00:12:57] <antmas> spronk: agreed
65: [00:12:57] <spronk> actually, i take that back. VS is heaven compared to any other IDE
66: [00:13:05] <spronk> SO SPEED
67: [00:13:07] <spronk> MUCH FAST
68: [00:13:07] <Danae> .net sounds like a land full of rainbows and butterflies :(
69: [00:13:12] <Danae> what's it like over there
70: [00:13:23] <spronk> there are pros and cons :P
71: [00:13:27] <Danae> haha
72: [00:13:35] <spronk> biggest con - everything costs money
73: [00:13:53] <spronk> want to spin up a server? WAIT JUST A MINUTE LICENCING LICENCING!
74: [00:13:57] <Danae> ahhh Microsoft
75: [00:14:03] * Sticks has joined #silverstripe
76: [00:14:18] * jenniferaslan quit (Remote host closed the connection)
77: [00:14:19] <spronk> i've been toying with vs and TypeScript
78: [00:14:29] <spronk> is quite nice
79: [00:14:31] <antmas> using VS2013 with PHP Tools is pretty sweet
80: [00:14:39] <spronk> oo, i haven't tried the php tools
81: [00:14:42] <antmas> .net is excellent if you have $$$
82: [00:15:14] <antmas> spronk: yeah, DLing it for 2013 right now
83: [00:15:54] <Danae> My favourite part about searching for SS errors on google is after about page one the rest of the results are usually other websites that run SS
84: [00:17:15] <spronk> heh
85: [00:17:19] <spronk> probably not a good sign :(
86: [00:17:44] <Danae> haha
87: [00:18:31] <Sticks> Hi guys, I'm upgrading to 3.1 from 3.0 and I have a dropdown field listing dataobjects. The HTML text field in the dropdown is being escaped . How do I tell the dropdown to not escape the HTML in the field? (Using $casting on the DO as per docs doesn't seem to help)
88: [00:20:08] <ss23> hehehe, in someones git repo, "SQL vulnerability fixes by using filter() instead of where()" -- A+ for learning :D
89: [00:20:26] <antmas> ss23: lol
90: [00:20:40] <antmas> whats the jump like from 3.0 to 3.1?
91: [00:21:12] <Danae> Was that the one where all static properties need to change to private?
92: [00:21:57] <Danae> also Sticks: can't say I've ever tried to display HTMLText in a dropdown
93: [00:22:48] <Sticks> antmas, for me it's been no where near as difficult as I imagined. Plenty of good annoyances have been fixed too which is nice.
94: [00:23:10] <antmas> Sticks: cool, I have a couple of sites to upgrade soon
95: [00:23:13] <Sticks> I've learnt I need to learn YAML though
96: [00:23:14] * r3v3rb has joined #silverstripe
97: [00:23:19] <r3v3rb> evening
98: [00:23:22] <antmas> Danae: yeah I think so, plus some other minor stuff I hear
99: [00:23:23] <Danae> Yaml is so awesome
100: [00:23:59] <r3v3rb> any idea why a public function xyv($abc) doesn't get called on the page it is a part of?
101: [00:24:28] <antmas> spronk: phwoar PHPTools is awesome
102: [00:24:42] <r3v3rb> when I use $xyv($abc) in the template
103: [00:24:56] <Danae> if it's in the correct controller it should work
104: [00:25:04] <spronk> mm?
105: [00:25:07] <Danae> use $Debug in your template to see what functions you have access to
106: [00:25:08] <r3v3rb> Danae thats what I thought
107: [00:25:16] <Danae> you might be out of scope
108: [00:25:17] <Colin[pi]> love this comment: http://www.reddit.com/r/AskReddit/comments/2340xa/hackers_of_reddit_what_are_some_coolscary_things/cgt9v68
109: [00:25:33] * travis-ci has joined #silverstripe
110: [00:25:33] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2342 (master - 1005593 : Sean Harvey): The build passed.
111: [00:25:33] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/4c69d42bd2ab...1005593dbac4
112: [00:25:33] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23083763
113: [00:25:33] * travis-ci has left #silverstripe
114: [00:26:09] * antmas_ has joined #silverstripe
115: [00:26:16] <r3v3rb> Danae, okay weird the function is not appearing in the list
116: [00:26:22] <antmas_> awesome, heydey are speaking at wdcnz
117: [00:26:23] <antmas_> :)
118: [00:26:48] <Danae> Try $Top.Debug to see if it appears there if you are not at the top scope
119: [00:27:01] <Danae> it'll tell you if you are already at the top
120: [00:27:07] <Danae> at least I think that works
121: [00:27:11] <Danae> *shrugs*
122: [00:27:35] <r3v3rb> Danae, nope still not appearing in the list of available methods
123: [00:28:22] <r3v3rb> I've dev/built ?flush=all ?flush=1 but still not showing up
124: [00:28:38] <r3v3rb> all the fields show up properly
125: [00:28:41] * Stomach[Ache] has joined #silverstripe
126: [00:28:48] * antmas quit (Ping timeout: 240 seconds)
127: [00:28:50] * Stomach[Ache] is now known as Stomach
128: [00:28:59] <Danae> r3v3rb: Hrmmm
129: [00:29:35] <Danae> Make another test function perhaps. just public function test() { return "Testing"; }
130: [00:29:49] * antmas_ is now known as antmas
131: [00:29:50] <Danae> then use $test in your template and that should come back
132: [00:29:59] <Danae> that'll let you know your controller is set up right at least
133: [00:30:19] <Colin[pi]> antmas!
134: [00:31:59] <antmas> Colin[pi]: !
135: [00:32:09] <Colin[pi]> the fucking plane tickets got more expensive :(
136: [00:32:24] <Colin[pi]> was getting all ready to book and BAM, prices went up
137: [00:32:27] <Colin[pi]> fuck you airlines
138: [00:32:33] <antmas> Colin[pi]: hot damn
139: [00:32:38] <Danae> clear your cookies for that site
140: [00:32:40] <Colin[pi]> I did
141: [00:32:41] <Danae> incognito mode
142: [00:32:48] <Danae> damn they sneaky
143: [00:33:06] <antmas> Colin[pi]: what did it go up by?
144: [00:33:08] <Colin[pi]> the travel agent told me Air NZ was having a sale but he didn't know when it ended
145: [00:33:11] <Colin[pi]> looks like it ended
146: [00:33:12] <Colin[pi]> lol
147: [00:33:22] <Danae> haha not so sneaky then :P
148: [00:33:23] <Colin[pi]> 50-100 more each
149: [00:33:54] <Colin[pi]> some were like 150 last week, now 250
150: [00:33:56] <Colin[pi]> fuuuuu
151: [00:34:08] <antmas> guts
152: [00:34:20] <Colin[pi]> will keep looking anyway, we need to make a decision soon
153: [00:35:15] <r3v3rb> turns out it must be too late for me!
154: [00:35:37] <r3v3rb> was managing to call the wring method via stupid spelling mistook
155: [00:35:50] <Danae> heheh, the best kind of error ;P
156: [00:37:33] <Danae> arrgh how do I even have two different sessions
157: [00:37:41] <Danae> two different SecurityIDs
158: [00:37:53] <Danae> it's something to do with my base controller I just know it
159: [00:39:04] <spronk> fucking pricing intelligence.
160: [00:40:15] <antmas> mmm dat humble mobile bundlke
161: [00:40:18] <antmas> bundle*
162: [00:44:50] <Colin[pi]> LOLOL one of our politicians just resigned due to blatant lying and subsequent concrete evidence presented to refute said lies
163: [00:44:58] <Colin[pi]> dat corruption
164: [00:45:27] <antmas> typical day in parliment
165: [00:46:09] <Colin[pi]> lobbyist gave him a $3,000 bottle of wine
166: [00:46:22] <Colin[pi]> and there is an investigation into corruption atm
167: [00:46:29] <Colin[pi]> and he's like "Nope, I did not receive that wine."
168: [00:46:45] <Colin[pi]> and then they present a thank you card for the wine signed by him
169: [00:46:46] <Colin[pi]> LOOOL
170: [00:46:55] <Colin[pi]> "Ok, ima resign."
171: [00:47:03] <Danae> heheheh
172: [00:48:19] * UncleCheese_ quit (Quit: UncleCheese_)
173: [00:48:31] <Danae> so a Debug::dump() of my controller is peppered with *RECURSION* notices
174: [00:48:33] <Danae> is this bad
175: [00:48:40] <Colin[pi]> not
176: [00:48:42] <Colin[pi]> *mp
177: [00:48:43] <Colin[pi]> fuck
178: [00:48:44] <Colin[pi]> no
179: [00:48:52] <Colin[pi]> it's because of a lot of repeated object references
180: [00:49:02] <Danae> oh cool :D
181: [00:49:15] <Colin[pi]> you'll get that when you have the same object referenced many times in the object graph
182: [00:49:38] <Danae> Good to know
183: [00:50:12] * Bollig|DesignCty has joined #silverstripe
184: [00:55:05] * Bollig|DesignCty quit (Client Quit)
185: [00:56:23] * Bollig|DesignCty has joined #silverstripe
186: [01:00:53] * Tanger has joined #silverstripe
187: [01:02:53] <Danae> My custom controller is using a different instance of the security controller than the Security page. What even. What have I done here....
188: [01:03:17] <Danae> wait no that's not right, bad debugging
189: [01:03:32] * UncleCheese has joined #silverstripe
190: [01:07:20] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
191: [01:13:31] <jordanmk> hey guys :)
192: [01:14:24] <Stomach> hey dude
193: [01:14:47] <jordanmk> i'm using the translate module, just wondering if anyone knows whether it's possible to output a language name in the way that language spells it's own name
194: [01:15:05] <jordanmk> $Locale.Nice outputs "French" for example, but i want to output "français"
195: [01:16:05] <Stomach> I'm not that familiar with translate
196: [01:16:20] <Stomach> but I assume that this is a dropdown or list or something with the names in it?
197: [01:17:04] <Stomach> you could probably write your own method on a controller which takes the output of that list, then changes the titles or whatever they are to be correct based on some list somewhere?
198: [01:17:33] <jordanmk> hmm, yeah that might work
199: [01:26:48] <antmas> hmmmm
200: [01:36:57] <ss23> wtf, when I do XDEBUG_PROFILE, it takes ~8 seconds to load, with 50% of the time being spent on session_start...
201: [01:37:02] <ss23> I susepct some kind of bug/weirdness...
202: [01:37:27] <ss23> Anyone seen it before? It wasn't happening yesterday that I saw :(
203: [01:37:44] <ss23> I figure there's just a weird lock somewhere.. but idk
204: [01:45:00] <Ryan-Toast> How do you set your subsites for differnt domain names?
205: [01:45:31] <antmas> spronk: ^^
206: [01:45:33] <antmas> :P
207: [01:46:08] <Ryan-Toast> I know subsites are your favorite, spronk
208: [01:48:34] <antmas> Ryan-Toast: hey what was that lorem ipsum tool you mentioned last week? The one with dat formatting
209: [01:48:40] <Ryan-Toast> fillerama
210: [01:48:43] <antmas> tah
211: [01:56:06] <spronk> hmm?
212: [01:58:11] <antmas> spronk: see Ryan-Toast 's question
213: [01:58:26] <Ryan-Toast> spronk, you just set the primary domain in the backend, right?
214: [01:58:43] <spronk> mm
215: [01:58:58] <spronk> you can give each subsite a domain of its own to listen to in the subsites admin
216: [01:59:04] <spronk> or a set of dmoains
217: [01:59:17] <Ryan-Toast> cool, and that’s all that’s required right?
218: [01:59:17] <spronk> just make sure your web server listens to those domains
219: [01:59:31] <Ryan-Toast> how do I ensure that?
220: [01:59:37] <spronk> whats your server setup?
221: [01:59:57] <Ryan-Toast> How do you mean? Lamp?
222: [01:59:59] <spronk> ah
223: [02:00:04] <spronk> yeah
224: [02:00:08] <spronk> if you're doing apache
225: [02:00:16] <spronk> make sure your vhost has ServerAlias for each alt domain
226: [02:00:35] <spronk> if deploying to e.g. cpanel, use parked domains
227: [02:01:01] <Ryan-Toast> so just parked domains, and point the A records?
228: [02:01:19] <spronk> yep
229: [02:01:29] <Ryan-Toast> spronk, cool. Thanks, man.
230: [02:02:18] * Danae quit (Ping timeout: 240 seconds)
231: [02:05:35] <antmas> anyone use the advanced rest extension for chrome?
232: [02:12:18] <Stomach> does SS cache email templates differently?
233: [02:12:20] <Stomach> oh shit
234: [02:12:23] <Stomach> cli cache?
235: [02:12:30] <Stomach> whats happening
236: [02:12:59] <jordanmk> your suggestion for my translations issue worked Stomach, cheers :)'
237: [02:13:11] <Stomach> oh cool, that's good
238: [02:13:44] <Stomach> I've uploaded new templates for an email system and done a flush on the browser, as well as a dev build etc and all the things and the template wont update
239: [02:13:46] <Stomach> any suggestions?
240: [02:14:42] <antmas> Stomach: where are the templates stored?
241: [02:15:01] <Stomach> swipestripe/templates/Email/*
242: [02:15:16] <Stomach> yes, I've been changing the core files because I can't work out whats happening
243: [02:15:24] <Stomach> they're the only files with those names in the whole site
244: [02:19:09] <ss23> Stomach: Each thing (cli, or webserver) has its own cache
245: [02:19:19] <ss23> Stomach: to flush on command line, ./framework/sake / flush=1
246: [02:19:26] <ss23> Stomach: Or rm -rf /tmp/silverstripe-cache*
247: [02:19:32] <ss23> I'm not sure that'll fix, but you can try
248: [02:20:37] * joelpittet has joined #silverstripe
249: [02:26:51] <Stomach> cheers
250: [02:27:17] <Stomach> yeah I tried setting a silverstripe-cache folder up in the project but it didn't solve it
251: [02:27:24] <Stomach> things you test on launch day...
252: [02:28:37] <antmas> Stomach: if not launch day, then the next day
253: [02:28:40] <antmas> and so on
254: [02:28:42] <antmas> for a week
255: [02:28:44] <antmas> :<
256: [02:28:50] <Stomach> *launch week
257: [02:29:04] * kerosene is now known as raymondo
258: [02:31:15] <Stomach> ss23 - nope that didn't work either
259: [02:31:27] <ss23> Lame
260: [02:31:36] <ss23> Stomach: Wait, did you flush via cli, or rm the dir?
261: [02:31:40] <Stomach> via cli
262: [02:31:42] <Stomach> gonna rm dir now
263: [02:31:59] <ss23> mm
264: [02:33:17] * raymondo is now known as Raymondo
265: [02:33:33] <Stomach> nope
266: [02:33:35] <Stomach> same result
267: [02:33:36] <Stomach> wtf
268: [02:33:37] <Stomach> :D
269: [02:33:43] <ss23> Okay so not related to cache then
270: [02:33:46] <ss23> using wrong file or something?
271: [02:33:46] <juliezygote> this channel should give away a rpi witha small lcd and data input device that you can configure to hit flush every few seconds
272: [02:33:58] <ss23> hahha
273: [02:34:02] <Stomach> yeah, I don't know
274: [02:34:07] <Stomach> will look further into it
275: [02:34:12] <ss23> juliezygote: In the toilets here, there's a big sign -- "Don't forget to ?flush=1"
276: [02:34:23] <juliezygote> hah
277: [02:35:05] <Ryan-Toast> ss23: I wuld ?flush=all
278: [02:35:11] <Ryan-Toast> not ust #1
279: [02:35:15] <Ryan-Toast> just**
280: [02:35:39] <ss23> Ryan-Toast: Sign was made before ?flush=all existed I think
281: [02:35:54] <Ryan-Toast> ss23: tey should run a dev/build
282: [02:36:17] <antmas> dev/build is when they put food on the tables in the office
283: [02:36:40] <simon_w> Ryan-Toast, why?
284: [02:36:49] <Ryan-Toast> simon_w: To update thesign.
285: [02:36:58] <antmas> "oh, so you want to buld custom sharepoint apps locally?" "INSTALL ENTIRE SHAREPOINT SERVER PLZ"
286: [02:37:08] <simon_w> You almost never to ?flush=all
287: [02:37:22] <ss23> I always ?flush=all
288: [02:37:22] <Stomach> thats all I use, because fuck the police
289: [02:37:27] <Ryan-Toast> ss23: same
290: [02:37:28] <ss23> ^^
291: [02:37:57] <antmas> is there more than =all and =1?
292: [02:39:32] <ss23> grep 'flush' | grep -v 1 | grep -v all
293: [02:39:34] <ss23> c-c-c-check it
294: [02:39:42] <ss23> probably will bring up lots of docs
295: [02:39:59] <ss23> but since there's about 100 ways to access a varaible with SS *shrug*
296: [02:40:12] <simon_w> antmas, =1 doesn't actually exist, it's more ?flush
297: [02:40:51] <antmas> simon_w: oh
298: [02:42:20] * Danae has joined #silverstripe
299: [02:42:32] <Danae> aaaargh I finally fixed that session issue
300: [02:42:38] <Danae> so stupid
301: [02:42:54] <Danae> I had set the Session.cookie_path config
302: [02:43:14] <Danae> and Security wasn't reading that setting
303: [02:43:23] <ss23> Ammpyomg
304: [02:43:24] <ss23> Annoying
305: [02:43:25] <Danae> so it was making a sessionID cookie under a different domain
306: [02:43:26] <ss23> Sounds like a bug in SS!
307: [02:43:40] <Danae> possibly - the config was set in a module
308: [02:43:53] <Danae> so I'm not sure of parse order here
309: [02:43:58] <Danae> whatever it's fixed
310: [02:48:01] <antmas> this is BS
311: [02:48:12] <antmas> cant develop sharepoint web parts without Server insallted
312: [02:48:15] <antmas> that shit is HUGE!
313: [02:48:23] <antmas> installed*
314: [02:50:05] <Stomach> ss23 - that didn't resolve it either
315: [02:50:08] <Stomach> i'm very confused
316: [02:50:09] <Stomach> :D
317: [02:51:18] * an_Eskimo quit (Ping timeout: 240 seconds)
318: [02:52:11] * joelpittet quit (Remote host closed the connection)
319: [02:52:25] <ss23> Stomach: Well it sounds like a bug, not a cache issue, step through it! :D
320: [02:52:32] <Stomach> yeah am doing it
321: [02:52:38] <Stomach> goodbye my afternoon
322: [02:52:41] <Stomach> :D
323: [02:53:10] <ss23> XD
324: [02:53:13] <ss23> I LOVE SILVERSTRIPE!
325: [02:54:27] <Ryan-Toast> ss23: I LOVE LAMP
326: [02:54:54] <ss23> Ryan-Toast: Do you really love lamp, or are you just saying that because Windows is shit?
327: [02:54:58] <ss23> :P
328: [02:55:06] <Ryan-Toast> ss23: ha2u
329: [02:55:24] <simon_w> Ryan-Toast, gotta love that perl
330: [02:55:29] <Danae> hehehe
331: [02:55:32] <Ryan-Toast> ss23: going to have to send you to jelly school.
332: [02:56:04] * Raymondo is now known as kerosene
333: [02:56:10] <Ryan-Toast> ss23: “”Hello, jelly school? Yes, I have a dev here who’s mad jelly, m’kay
334: [02:58:28] <antmas> Ryan-Toast: -_-
335: [02:58:38] <antmas> Ryan-Toast: dose quotes at the start
336: [02:58:44] <antmas> Ryan-Toast: stahhhhhhhp
337: [02:58:45] <Ryan-Toast> Yeah./
338: [02:58:52] <Ryan-Toast> My cast makes it hard to type
339: [02:59:13] <antmas> also, LAMP ftw
340: [02:59:14] <antmas> :D
341: [03:00:12] <antmas> oh good
342: [03:00:15] <antmas> "and at least 16 GB of RAM to install and run SharePoint 2013; 24 GB of RAM is preferable."
343: [03:00:39] <Stomach> holy ballsacks
344: [03:00:40] <Ryan-Toast> Can’t decie if I like the color scheme or not: http://webdough.co.nz/~wedderbu/
345: [03:01:01] <Stomach> search is too orange
346: [03:01:04] <Stomach> so orange
347: [03:01:06] <antmas> Ryan-Toast: 2 different yellows
348: [03:01:12] <antmas> orange
349: [03:01:14] <antmas> whatevs
350: [03:01:25] <Bollig|DesignCty> ss23: I HAVE MOAR SSPAK QUESTIONS! :) Any idea why every time I run a .phar from an sspak bundle I get something along the lines of "Fatal error: Uncaught exception 'PharException' with message 'phar "/www/blah.phar" has a broken signature…”?
351: [03:01:28] <Ryan-Toast> they’re the same orange?
352: [03:01:35] <antmas> Ryan-Toast: nope
353: [03:01:45] <Ryan-Toast> yeeep
354: [03:01:53] <antmas> they can't be
355: [03:02:01] <Ryan-Toast> well, they are :P
356: [03:02:16] <ss23> Bollig|DesignCty: I DON'T KNOW THE ANSWER
357: [03:02:17] <Stomach> well then something in the design is making it very weird
358: [03:02:22] <ss23> Bollig|DesignCty: Sounds like it wasn't generated correclty though :S
359: [03:02:25] <antmas> to the photoshops!
360: [03:02:36] <Ryan-Toast> antmas: just inspect element :P
361: [03:02:39] <ss23> 14:56:10 < Ryan-Toast> ss23: “”Hello, jelly school? Yes, I have a dev here who’s mad jelly, m’kay
362: [03:02:42] <ss23> hehehehehe
363: [03:02:52] <Bollig|DesignCty> ss23: damn. cos I don’t know the answer either ;’(
364: [03:02:58] <Ryan-Toast> Stomach. Yeah, not big on the design.
365: [03:03:00] <Bollig|DesignCty> AND IT’S DRIVING ME TO USE CAPS
366: [03:03:15] <antmas> Ryan-Toast: holy shit
367: [03:03:18] <antmas> they are :O
368: [03:03:34] <Ryan-Toast> Stomach: but you know, THE CLIENT IS ALWAYS RIGHT!
369: [03:03:36] <antmas> I need to calibrate my screens
370: [03:03:41] <Stomach> yeah they are
371: [03:03:41] <Ryan-Toast> antmas: yup
372: [03:03:42] <Stomach> :\
373: [03:03:44] <Ryan-Toast> :P
374: [03:03:48] <Stomach> fuck this email setting
375: [03:03:52] <Stomach> deleted the templates
376: [03:03:54] <Stomach> still sends me emails
377: [03:03:55] <Stomach> what
378: [03:03:55] <Stomach> the
379: [03:03:56] <Stomach> fuck
380: [03:03:58] * antmas calibrates screens
381: [03:04:11] <antmas> holy shit that green is actually red
382: [03:04:13] <antmas> :P
383: [03:04:45] <antmas> Ryan-Toast: lol nice banner image
384: [03:04:50] <antmas> 'Food processing'
385: [03:04:56] <Ryan-Toast> Had to use the bus yersterday, forgot how aweful that shit is.
386: [03:04:57] <antmas> 'Elephants are tasty!'
387: [03:05:24] <antmas> Ryan-Toast: what is a 'bus'?
388: [03:05:44] <Ryan-Toast> homeless transport device
389: [03:05:55] <antmas> oh
390: [03:05:58] <antmas> the old hobo tube
391: [03:06:21] <Stomach> I take the bus home
392: [03:06:53] <Stomach> now I get a wink from a creepy old lawyer whenever i see him
393: [03:07:19] <antmas> Stomach: huehuehue
394: [03:07:24] * an_Eskimo has joined #silverstripe
395: [03:08:37] <Ryan-Toast> Stomach: Was a pretty hot girl in front of me, this fat as dude sits beside here wearing a singlet and jandles just sweat cascading of his planetary form, and he starts trying to chat her up. Buses, man. Buses.
396: [03:09:09] <Stomach> lol :D
397: [03:09:39] <Ryan-Toast> I take up too much room for people to sit beside me, so it’s not all bad.
398: [03:09:50] <antmas> wow
399: [03:10:09] <Stomach> noone sits next to me because of my beard
400: [03:10:10] <antmas> 3rd party company (talking before about phonegap app)
401: [03:10:12] <Stomach> im always chosen last
402: [03:10:30] <antmas> just told me the error I found is known and it's not something we want to fix unless there is enough demand for it
403: [03:10:40] <Ryan-Toast> Stomach: haha, aww. I’m chosen last because on my legs. They’re everywhere.
404: [03:10:46] <antmas> either that, or root your Android device
405: [03:11:14] <Stomach> more legs than man
406: [03:11:23] <Ryan-Toast> Stomach: I am leg.
407: [03:11:33] <antmas> Ryan-Toast: what's your height?
408: [03:11:34] <Stomach> I am so confused.
409: [03:11:44] <Ryan-Toast> `6’5"
410: [03:11:45] <Danae> I prefer the "temporary citizen" mode of transport aka motorcycle
411: [03:11:55] <antmas> Ryan-Toast: :/ that's not that tall
412: [03:11:58] <antmas> I'm close to that!
413: [03:12:02] <Stomach> oh you're massive
414: [03:12:08] <Ryan-Toast> Danae: I have one, but I broke my wrist.
415: [03:12:23] <antmas> I'm all shoulders
416: [03:12:23] <Ryan-Toast> hence the bus
417: [03:12:25] <Danae> I tend to just bounce off things rather than break
418: [03:12:42] <antmas> Ryan-Toast: lolwut! is that from the tramampolines?
419: [03:12:47] <Ryan-Toast> nah, boxing
420: [03:12:53] <antmas> ouch
421: [03:12:58] <Ryan-Toast> not too bad
422: [03:13:05] <Ryan-Toast> will be out in a week or so
423: [03:13:08] <antmas> sucks when you have an mbike though
424: [03:13:15] <Ryan-Toast> yeah :(
425: [03:13:25] <antmas> left or right wrist?
426: [03:13:28] <Stomach> 6'5" and boxing. shit.
427: [03:13:29] <Danae> It's just sitting in your garage wondering why you aren't riding it
428: [03:13:36] <Ryan-Toast> antmas: right.
429: [03:13:44] <antmas> Ryan-Toast: damn, that's the worst one!
430: [03:14:01] <Ryan-Toast> antmas: makes work hard :P
431: [03:14:16] <Ryan-Toast> |Stomach: Kickboxing :P
432: [03:14:21] <Stomach> thats even worse
433: [03:14:29] <Stomach> you must be a scary motherfucker
434: [03:14:49] <antmas> Ryan-Toast: do you get called 'stretch'? I hate that :<
435: [03:16:48] <Ryan-Toast> antmas: Nah, but when I played volleyball I had a signiture move “The Lank Attack”
436: [03:16:58] <Ryan-Toast> Stomach: Too thin to be scary :P
437: [03:17:07] <Stomach> yet...
438: [03:17:08] <Stomach> :D
439: [03:17:15] <Stomach> creatine diets go
440: [03:17:28] <antmas> I'll never go on creatine again
441: [03:17:29] <Ryan-Toast> Stomach: Haha, nah I like my weight grade
442: [03:17:37] <antmas> shit turned my into a hulk :O
443: [03:17:42] <antmas> me*
444: [03:17:54] <Ryan-Toast> angry and green?
445: [03:18:01] <antmas> heh
446: [03:18:31] * travis-ci has joined #silverstripe
447: [03:18:31] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2344 (3.1 - 0ccd9f5 : Damian Mooyman): The build passed.
448: [03:18:31] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3620d0199888...0ccd9f5bb9a5
449: [03:18:31] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23090860
450: [03:18:31] * travis-ci has left #silverstripe
451: [03:18:36] <antmas> went from 9% body fat at 90kgs to 7% and 110kg by using that
452: [03:19:03] <antmas> never again
453: [03:21:09] * cloph_away has joined #silverstripe
454: [03:21:13] * cloph quit (Ping timeout: 250 seconds)
455: [03:23:12] <Stomach> 110kg
456: [03:23:14] <Stomach> :S
457: [03:23:21] <Stomach> heaviest I've been was 97
458: [03:23:25] <Stomach> and that was _fat_
459: [03:23:42] <Colin[pi]> I got up to 84kg
460: [03:23:47] <Colin[pi]> i'm at about 81 now
461: [03:23:57] <Colin[pi]> 2 years ago I went down to 72 :(
462: [03:24:10] <Stomach> that was 6 months ago, now I'm at like 83
463: [03:24:15] <Stomach> need to lose 8 more kgish
464: [03:24:43] <Colin[pi]> I ate a shit load of salad back then, and rode the bike a LOT
465: [03:24:50] <Colin[pi]> over about 8 months I lost 10kg
466: [03:24:51] <Stomach> so who wants to have a beer tonight? :D
467: [03:24:54] <Colin[pi]> lol
468: [03:27:16] <antmas> Colin[pi]: heh, I got down to 78
469: [03:27:21] <antmas> when I broke up with my ex lol
470: [03:27:36] <antmas> was in that 'need to get smexy again so I can win her back phase'!
471: [03:27:39] <Ryan-Toast> Stomach: Going to ebisssssu
472: [03:28:01] <Colin[pi]> antmas: I lost mine after I separated and won a Brazilian
473: [03:28:03] <Colin[pi]> ;D
474: [03:28:06] <Stomach> oh nice
475: [03:28:07] <antmas> Stomach: yeah I looked like a gorilla, wasn't cool
476: [03:28:35] <Stomach> haha :D
477: [03:29:01] <antmas> 8km run every 2 days and gym every other day
478: [03:29:06] <antmas> creatine and protein shakes
479: [03:29:14] <antmas> chicken and rice
480: [03:29:16] <antmas> for 6 months
481: [03:29:22] <Stomach> two of my flatmates did that in Uni
482: [03:29:23] <antmas> FUCK THAT
483: [03:29:27] <Stomach> both got massive
484: [03:29:37] <Colin[pi]> yeah all these bs diets people try, fuck sake it's not rocket science, eat less and exercise more
485: [03:29:42] <Stomach> wow, work, gym and EAT
486: [03:29:44] <antmas> Colin[pi]: oh yeah
487: [03:29:55] <Stomach> that was their whole lives
488: [03:29:57] <Colin[pi]> the problem is motivation and dedication
489: [03:30:02] <antmas> then I had a kid and got fat again lol
490: [03:30:17] <Colin[pi]> I did it for 8 months, slow to start but fat was falling off me at the end
491: [03:30:24] <Colin[pi]> I should do again :(
492: [03:30:36] <antmas> yeah I'm keen to go again
493: [03:30:42] <antmas> not as hardcore though
494: [03:30:48] <antmas> maybe just running and no gym
495: [03:31:02] <Stomach> running + swimming = boss
496: [03:31:13] <Colin[pi]> swimming is VERY good for weight loss
497: [03:31:17] <Colin[pi]> and easy on the joints
498: [03:31:23] <antmas> swimming is fucken hard
499: [03:31:31] <Stomach> thats why its so good for you
500: [03:31:32] <antmas> I'm so terribad at it
501: [03:31:36] <Colin[pi]> I am too
502: [03:31:37] <Colin[pi]> lol
503: [03:31:41] <Colin[pi]> that's why I cycled
504: [03:31:52] <Ryan-Toast> how do you view all the mysql statements running on a age?
505: [03:31:55] <Ryan-Toast> page**
506: [03:33:03] <Colin[pi]> ?showqueries=1
507: [03:34:21] <Ryan-Toast> Colin[pi] chur
508: [03:34:45] <juliezygote> if i want to access a DO in a template that isn't part of the page model do i need to add a getter in the controller?
509: [03:35:00] <Colin[pi]> juliezygote: yes
510: [03:35:06] <juliezygote> i just want to list all of a given DO type in a loop
511: [03:35:13] <juliezygote> okay
512: [03:35:23] <Colin[pi]> juliezygote: make a controller method that can be called from the template
513: [03:35:28] <juliezygote> yep
514: [03:35:31] <juliezygote> cheers
515: [03:36:43] <Ryan-Toast> You should be ale to filter by FooID in a many_many relationship, right?
516: [03:37:17] <Colin[pi]> juliezygote: though there have been occasions I needed to call something like that from the model and not the controller, up to you where to stick the function
517: [03:37:37] <Colin[pi]> Ryan-Toast: should be able to I think?
518: [03:38:18] <Ryan-Toast> Hmm, I have a country many_many jobs, but I get a “Unknown column 'CountryID' in 'where clause'”
519: [03:38:32] <Danae> oh
520: [03:38:37] <Danae> if it's a query string
521: [03:38:51] <Danae> you gotta double quote, then put single quote around the CountryID
522: [03:39:10] <Danae> if that makes sense? You might be using just single quotes
523: [03:39:12] <Ryan-Toast> Danae: This is using Filter()
524: [03:39:55] <Ryan-Toast> aka: new PaginatedList(Job::get()->Filter(array('CountryID' => $this->Countries()->First()->ID)), Controller::curr()->request)
525: [03:39:55] <Danae> so 'CountryID = "1"' vs "CountryID = '1'", the second option should work? I've been caught out by this one in a few places
526: [03:40:10] <Danae> oh that's different to what I was thinking
527: [03:40:52] <Danae> oh that => should be a , I think
528: [03:40:58] <Danae> totally guessing here
529: [03:41:09] <Danae> actually no that doesn't sound right
530: [03:41:11] <Ryan-Toast> Danae: No, it’s in an array.
531: [03:41:53] <Ryan-Toast> Danae: That’s how yo do multiple filter args
532: [03:43:38] <Danae> oh hold on, that's a many_many
533: [03:43:39] * EasyCo has joined #silverstripe
534: [03:44:03] <Danae> as in Job >---< Country ?
535: [03:44:29] <Ryan-Toast> country —E Job
536: [03:45:18] <Danae> Well that's weird
537: [03:45:27] <Ryan-Toast> yup.
538: [03:47:31] <antmas> come ooooooooooon tax refund
539: [03:48:02] <Danae> hollaaa
540: [03:48:14] <Ryan-Toast> If I use “Country.ID” the query changes to Job.ID sigh.
541: [03:49:09] * travis-ci has joined #silverstripe
542: [03:49:09] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2346 (3.0 - 6bc9cfe : Damian Mooyman): The build passed.
543: [03:49:09] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c87373d0958a...6bc9cfe46d2e
544: [03:49:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23092141
545: [03:49:09] * travis-ci has left #silverstripe
546: [03:49:22] <Stomach> Ryan-Toast - are you using silverstripe 3.1.4
547: [03:49:41] <Stomach> it included an update to the way that the subclasses of a parent object are lazily loaded
548: [03:49:50] <pippy_> I only got a $200 tax refund this year. wtf. I'm doing my taxes wrong
549: [03:49:52] <Ryan-Toast> Stomach: 3.1.2
550: [03:49:56] <Stomach> it solves some of the problems like that one you're describing
551: [03:50:07] <Ryan-Toast> Stomach: Orly?
552: [03:50:10] <Stomach> yeah
553: [03:50:22] <Ryan-Toast> Replace just framework, or cms too?
554: [03:50:22] <antmas> pippy_: more than I got last year
555: [03:50:40] <Stomach> do both
556: [03:50:48] <Ryan-Toast> Stomach: kk
557: [03:50:50] <Stomach> otherwise confusing bugs will appear
558: [03:51:00] <Stomach> even though you can use the CMS and Framework "seperately"
559: [03:51:02] <Stomach> hah!
560: [03:51:41] <Danae> Stomach: Which branch is that on the repo? 3.1?
561: [03:51:47] <Stomach> yeah
562: [03:51:55] <Danae> Cool I've got that one
563: [03:52:47] <Stomach> 3.1.4 seems a bit more stable than 3.1.3 did
564: [03:54:20] * Anytech quit (Quit: Leaving)
565: [03:55:01] <Ryan-Toast> Stomach: No dice
566: [03:55:08] <Stomach> bugger
567: [03:55:57] <Stomach> what class is CountryID on?
568: [03:56:25] <Ryan-Toast> Country
569: [03:56:38] <Stomach> and job extends country?
570: [03:56:47] <Ryan-Toast> Job extends dataobject
571: [03:56:55] <Stomach> then there is no CountryID on Job
572: [03:56:58] <Stomach> ?
573: [03:57:04] <Stomach> or it has_one
574: [03:57:10] <Ryan-Toast> many_many
575: [03:57:13] <Stomach> oh
576: [03:57:24] <Danae> many_many will have that intermediate table
577: [03:57:29] <Stomach> you probably need to join the many_many relation in then
578: [03:57:31] <Danae> Job_Country
579: [03:57:35] <Danae> or Country_Job
580: [03:57:45] <Ryan-Toast> I have Country_Job
581: [03:58:03] <Danae> you probably have to write a custom query with joins and serch
582: [03:59:09] <Stomach> many_many = array('Job' => 'Job') on country Ryan?
583: [03:59:19] <Stomach> try Job.CountryID
584: [04:00:13] <Ryan-Toast> Stomach: no dice
585: [04:00:24] <Stomach> hmmmmm
586: [04:00:25] <Ryan-Toast> but yes I have the many_many job => job
587: [04:00:36] <Ryan-Toast> and the belongs_many on the job
588: [04:00:51] <Stomach> im sure that ive just done this somewhere but cant remember where :S
589: [04:01:29] <Stomach> and i remember it being a pain
590: [04:02:03] <Danae> I use the SQLQuery class in situations like that
591: [04:02:08] <Ryan-Toast> Stomach: Any rememberance would be much appreciated :P
592: [04:02:30] <Danae> oh, but you need to use the objects for your paginatedList...
593: [04:02:31] <Stomach> I did it in a model admin
594: [04:02:41] <Stomach> $list = $list->filter(array('Authors.ID' => $member->ID));
595: [04:03:02] <Ryan-Toast> Country.ID returns Job.ID in the query.
596: [04:03:09] <Stomach> where my object has $many_many = array('Authors' => 'Member')
597: [04:03:13] * cameron__ has joined #silverstripe
598: [04:03:32] <antmas> Danae: probably not the best idea
599: [04:03:52] <antmas> try to keep all logic out of sql
600: [04:03:55] <Stomach> try naming the relation something other than the classname?
601: [04:03:58] <Stomach> Jobs => Job
602: [04:04:03] <Stomach> then Jobs.CountryID :P
603: [04:04:42] <cameron__> Hey guys I been googling for a while and feel like I must be missing something super simple. In the CMS Security Tab I want to increase the number of members displayed per page e.g I want to view 1-100 of 500, not 1-15 of 500
604: [04:04:56] <cameron__> as default
605: [04:05:23] <Ryan-Toast> Unknown column 'Jobs.CountryID' in 'where clause'
606: [04:05:25] <Danae> cameron__: Don't think that's simple to do, heheh
607: [04:05:39] <Stomach> Ryan-Toast - must be a curly one :D
608: [04:05:40] <cameron__> noooooo
609: [04:05:46] <ss23> It should be simple, right?
610: [04:05:48] <Ryan-Toast> Stomach: Curly one?
611: [04:05:50] <ss23> Probably just a increase_defaults.yml...
612: [04:06:04] <ss23> cameron__: I suspect it's one of those things that is really simple, but you need to know the exact variable/thing to change
613: [04:06:11] <ss23> cameron__: And I don't know it sorry :P
614: [04:06:15] <Stomach> one which wraps back around on itself until you try something you did ages ago
615: [04:06:19] <Stomach> and it works
616: [04:06:38] <Ryan-Toast> Stomach: Makes me sadface.jpg
617: [04:06:45] <Ryan-Toast> simon_w: Any ideas, man?
618: [04:07:09] <cameron__> yea it should be super simple ss23
619: [04:07:16] <cameron__> thanks
620: [04:07:32] <cameron__> more googling / reading of core code to be done I guess
621: [04:07:40] <simon_w> Ryan-Toast, apparently Jobs doesn't have a CountryID column
622: [04:08:06] <Ryan-Toast> simon_w: There’s a Country_Job table though.
623: [04:08:12] <simon_w> And?
624: [04:08:14] <Ryan-Toast> with CountryID
625: [04:08:21] <Ryan-Toast> doesn’t that handle the relationship?
626: [04:08:22] <simon_w> That's not what it's trying to use
627: [04:08:32] <cameron__> AH. private static $page_length = 30; on ModelAdmin class
628: [04:08:44] <Danae> :D
629: [04:08:59] <Ryan-Toast> simon_w: What doi I have to chanwge to get that column in there?
630: [04:09:03] <Stomach> security isnt a modeladmin though :S
631: [04:09:09] <simon_w> Ryan-Toast, what are you doing?
632: [04:09:17] <Ryan-Toast> Countries many_many Jobs
633: [04:09:22] <cameron__> oh wait on SecurityAdmin is not ModelAdmin
634: [04:09:23] <simon_w> Ryan-Toast, bringing me in with no context gets shit responses :p
635: [04:09:29] <Ryan-Toast> simon_w: :P
636: [04:09:30] <cameron__> haha yea just saw thanks Stomach
637: [04:09:37] <simon_w> Ryan-Toast, so you probably want to filter on Countries.ID
638: [04:09:48] <simon_w> Or whatever the name of your belongs_many_many is
639: [04:10:45] <Ryan-Toast> simon_w: Simon, I hate you, but I love you so much more.
640: [04:13:30] <Ryan-Toast> simon_w: thanks again :)
641: [04:13:44] <Ryan-Toast> maybe I’ll remember that how it works this time.
642: [04:15:40] * kerosene quit (Ping timeout: 240 seconds)
643: [04:17:18] <antmas> 13 mins
644: [04:17:19] <antmas> pretty over today
645: [04:20:06] <Ryan-Toast> Have to clean my apartment with one hand when I get home, boo
646: [04:20:53] <antmas> Ryan-Toast: just go dirty until it's healed?
647: [04:21:13] <Ryan-Toast> landlord coming for a look tomorrow.
648: [04:21:52] <antmas> make sure you put flowers in the bong
649: [04:22:00] <Ryan-Toast> lol
650: [04:22:16] * kerosene has joined #silverstripe
651: [04:22:20] <antmas> </3 landlord inspections
652: [04:22:25] <Ryan-Toast> Last time he came around forgot to put away the massive bag of condoms that was on the bedside table
653: [04:22:43] <antmas> lol
654: [04:24:23] * babak has joined #silverstripe
655: [04:25:55] <spronk> werps
656: [04:31:42] <cameron__> If anyone cares to know, I changed the number of pages in the SecurityAdmin panel by extending the GridFieldConfig_RecordEditor class and setting the default $itemsPerPage=100 instead of null. No other classes except SecurityAdmin create an instance of this class without defining $itemsPerPage so there should be no horrible consequences to this that I can see.
657: [04:32:15] <cameron__> If I have the time, I will add a variable to SecurityAdmin and PR on github for a proper fix to core
658: [04:32:46] <cameron__> for some context I asked how to change the number per pages previously above
659: [04:34:42] <simon_w> cameron__, https://github.com/silverstripe/silverstripe-framework/pull/3026
660: [04:35:58] <simon_w> cameron__, alternatively, an Extension added to SecurityAdmin, then in updateEditForm(), grab out the Members GridField, grab the GridFieldPaginator object from the config and ->setItemsPerPage(100)
661: [04:36:00] <cameron__> oh cool :)
662: [04:37:39] <cameron__> simon_w yea I thought about doing that too but it seemed like it would take longer. That is probably better than my solution tho
663: [04:42:03] * joelpittet has joined #silverstripe
664: [04:46:00] * antmas quit (Quit: Page closed)
665: [04:56:14] <jordanmk> Stomach
666: [04:56:16] <jordanmk> you there?
667: [04:56:18] <Stomach> hiya
668: [04:56:34] <jordanmk> hey, i think i've just come across the same issue as you with my email's SS template being cached
669: [04:56:43] <jordanmk> did you find the fix?
670: [04:56:46] <Stomach> not yet
671: [04:56:53] <Stomach> I quit at that for the day
672: [04:56:57] <jordanmk> damn
673: [04:57:04] <Stomach> going to look tomorrow morning, it was too infuriating
674: [04:57:09] <Stomach> I just restarted the webserver
675: [04:57:10] <Stomach> lol
676: [04:57:17] * UncleCheese quit (Quit: UncleCheese)
677: [04:58:06] <jordanmk> scratch that, got mine to update
678: [04:58:23] <Stomach> :(
679: [04:58:25] <jordanmk> did dev/build?flush=all, and also just /?flush=all
680: [04:58:28] <Stomach> yeah
681: [04:58:35] <Stomach> I flushed everywhere lol
682: [04:58:38] <jordanmk> but i'm guessing you've tried that haha
683: [05:04:07] * nickmolhoek quit (Quit: nickmolhoek)
684: [05:06:30] * UncleCheese_ has joined #silverstripe
685: [05:07:56] * jedateach has joined #silverstripe
686: [05:09:04] <jedateach> does anyone know how to filter NULL values in SS ORM?
687: [05:09:21] <ss23> From memory, it's stupid and bullshit. I don't remember off hand, I just remember thinking "what the fuck is this"
688: [05:10:51] <jedateach> such as using a where … +_+
689: [05:12:42] * Ryan-Toast quit (Quit: Ryan-Toast)
690: [05:18:03] * prij has joined #silverstripe
691: [05:18:55] <prij> hi guys, anyone around to answer a quick question?
692: [05:19:18] <Colin[pi]> no
693: [05:19:20] <Colin[pi]> ;D
694: [05:19:28] <prij> :P
695: [05:19:48] <cameron__> What's the question?
696: [05:19:49] <ss23> It's true, no one is around!
697: [05:19:50] * ss23 hides
698: [05:19:50] <Danae> Do we have to answer it correctly?
699: [05:19:55] <ss23> hehhee
700: [05:20:07] <prij> it would be helpful, but if not then I will eat the rest of my chocolate rabbit
701: [05:20:15] <Danae> haha
702: [05:20:35] <prij> the question is, I am trying to use Content templates and for the life of me cannot get them to render
703: [05:20:36] <prij> e.g.,
704: [05:20:46] <prij> themes/Content/Page.ss
705: [05:21:15] <Danae> Content should probably be "templates", not sure if that matters though?
706: [05:21:22] <prij> so according to my friend who is high-level nerd, I should be able to call $Content and it should render (for page) what's in theme/Content/Page.ss
707: [05:21:33] <jedateach> I believe that Content capability stopped working in ss 3
708: [05:21:34] <prij> woops yes templates is in there
709: [05:21:39] <prij> NOOOOOOO
710: [05:21:40] <prij> really
711: [05:21:41] <prij> ugh
712: [05:21:42] <prij> ok
713: [05:21:44] <prij> hours wasted
714: [05:21:46] <simon_w> prij, they only work inside base templates (so templates/Blah.ss) and only if the thing you're rendering doesn't have a $Content
715: [05:22:04] <simon_w> (so no Page objects)
716: [05:22:09] <prij> so no inheritence
717: [05:22:12] <prij> no Page objects
718: [05:22:17] <jedateach> multi level nesting woudl be great
719: [05:22:41] <prij> thanks simon
720: [05:22:45] <prij> it's been breaking my brain
721: [05:22:55] <simon_w> jedateach, there's a pull request for it
722: [05:23:18] <jedateach> nice
723: [05:23:38] <prij> any plans for it to work on objects with existing content?
724: [05:24:06] <jedateach> I posted this issue a long time ago: https://github.com/silverstripe/silverstripe-framework/pull/661
725: [05:24:09] <prij> (i.e., Pages)
726: [05:24:18] * cameron__ quit (Ping timeout: 240 seconds)
727: [05:24:52] <prij> *reading*
728: [05:25:59] <prij> right so, that's not going to work for me. Thanks all
729: [05:29:07] <jedateach> is there a way to say in SS ORM “dates between range, or no date at all”…without using IS NULL in a where?
730: [05:29:43] <jedateach> ie only use filter
731: [05:31:48] * an_Eskimo quit (Ping timeout: 240 seconds)
732: [06:00:45] * UncleCheese_ quit (Quit: UncleCheese_)
733: [06:05:18] * prij quit (Ping timeout: 240 seconds)
734: [06:05:18] * Danae quit (Ping timeout: 240 seconds)
735: [06:05:29] * CamelCase has joined #silverstripe
736: [06:16:55] <ss23> Installing silverstripe-themes/module_bootstrap (dev-master d556a87)
737: [06:16:57] <ss23> Deleting themes/module_bootstrap/ - deleted
738: [06:16:59] <ss23> pls composer
739: [06:16:59] <ss23> :/
740: [06:18:01] * violetina has joined #silverstripe
741: [06:23:35] <simon_w|air> Lol, composer
742: [06:24:27] * CamelCase quit (Ping timeout: 258 seconds)
743: [06:24:39] * joelpittet quit (Remote host closed the connection)
744: [06:26:38] * nbezzala has joined #silverstripe
745: [06:30:07] * jedateach quit (Quit: jedateach)
746: [06:49:37] <ss23> Hmm
747: [06:49:46] <ss23> I upgraded postgres module and it's added unnessecary indexes to every table
748: [06:49:49] <ss23> :/
749: [06:49:56] <ss23> e.g. it has changed the name of them, so now there are two indexes on every table
750: [06:50:00] <ss23> Should probably fix this
751: [07:02:48] * Sticks quit (Read error: Connection reset by peer)
752: [07:19:28] * anselmdk has joined #silverstripe
753: [07:46:07] * UncleCheese has joined #silverstripe
754: [07:49:08] <ss23> simon_w|air: You around?
755: [07:49:10] <DesignerX> hi, can I have modules in a subfolder?
756: [07:49:21] <ss23> DesignerX: Not that I'm aware of, though I remmeber someone was working on it
757: [07:49:28] * svandragt has joined #silverstripe
758: [07:58:05] <DesignerX> ss23: kk ty
759: [08:01:38] <DesignerX> ss23: and do you know of any problems with having an underscore in modulesFolderName ? (like in themes underscore is for sub_themes)
760: [08:02:39] <ss23> I think it should be fine with underscore, I have some code/modules that is in themes/foo_bar
761: [08:02:45] <ss23> (As a silverstripe-theme, installed with composer)
762: [08:02:54] <ss23> I think it should be fine for modules too
763: [08:03:59] <DesignerX> themes/foo_bar require "foo" theme & "bar" class/module ?
764: [08:05:23] <ss23> Not sure
765: [08:05:27] <ss23> I don't know front end / themes well
766: [08:05:28] <ss23> :O
767: [08:05:55] <DesignerX> np, I will put my mini modules in the root & prefix with mycode_ or something similar
768: [08:06:05] <Bollig|DesignCty> DesignerX: that’s how it worked previously.
769: [08:06:11] <Bollig|DesignCty> although we don’t use themes either ;)
770: [08:07:59] <simon_w|air> ss23, maybes
771: [08:08:20] <ss23> simon_w|air: I'm fine now, I'll just get Hamish to reply tomorrow
772: [08:08:20] <ss23> :D
773: [08:08:25] <ss23> simon_w|air: You lsot your chance, ha!
774: [08:08:30] <simon_w|air> Eh :p
775: [08:08:38] <simon_w|air> I was chatting with mandrel
776: [08:08:41] <simon_w|air> mandrew
777: [08:09:04] <ss23> oh yep
778: [08:09:09] <ss23> Online, not IRL I take it?
779: [08:09:09] <ss23> ;P
780: [08:09:16] <simon_w|air> IRL
781: [08:09:20] <ss23> IRL!?
782: [08:09:21] <simon_w|air> He's buying my fridge
783: [08:09:22] <ss23> Where you at? Churhc?
784: [08:09:24] <ss23> oic
785: [08:09:24] <ss23> haha
786: [08:09:28] <ss23> Yeah, I remember he said that
787: [08:09:28] <ss23> XD
788: [08:09:49] * kinglozzer has joined #silverstripe
789: [08:12:05] <DesignerX> and, any way to integrate a TemplateEngin in SS ?
790: [08:12:58] <DesignerX> ^^ is Ss ready for such modifications without code mods ?
791: [08:13:31] <ss23> As in, intergrate a new template engine, not the SilverStripe own one?
792: [08:13:41] <DesignerX> yes
793: [08:13:48] <ss23> DesignerX: Nope :)
794: [08:14:08] <DesignerX> ss23: it should be Nope :(
795: [08:14:15] <ss23> :P
796: [08:14:22] <ss23> Well, depends if you want people to change it or not
797: [08:14:22] <ss23> :D
798: [08:15:26] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
799: [08:16:02] * juliezygote is now known as colossusage
800: [08:16:34] <DesignerX> last question, is it possible to pass data to an included file in template, something like <% include TemplateName, $Var = "xyz, $Var2 = "zzz" %> then use $Var & $Var2 inside that included Template ?
801: [08:16:50] <UncleCheese> yes
802: [08:17:21] <DesignerX> Example use is , ThumbnailImage.ss then pass in $CssClass depending on where I include it
803: [08:17:47] <UncleCheese> yup
804: [08:17:55] <UncleCheese> one of the most underused features of ss3
805: [08:18:19] <DesignerX> cool, is my code correct ?
806: [08:18:29] <UncleCheese> you may not need the commas
807: [08:18:57] <UncleCheese>     <% include MemberDetails PageTitle=$Top.Title, PageID=$Top.ID %>
808: [08:19:08] <DesignerX> kk, and I will I be able to pass in $Var1 = $Top.SomeTopLevelField ?
809: [08:19:13] <DesignerX> ^^ lol ty :D
810: [08:19:15] <UncleCheese> yup
811: [08:19:19] <UncleCheese> that’s the best part
812: [08:19:49] * spronk has left #silverstripe
813: [08:20:01] <DesignerX> THis alone saved me like 5+ differnt include files with just a differnt CSS class
814: [08:20:45] * colossusage is now known as lrniningine
815: [08:21:08] <UncleCheese> it’s just a better design pattern overall
816: [08:21:22] <UncleCheese> rather than making every template depend on a model
817: [08:21:39] <UncleCheese> composition over inheritance
818: [08:24:29] * Cornelio has joined #silverstripe
819: [08:25:42] * zpyrock has joined #silverstripe
820: [08:28:29] <zpyrock> simon_w: so this big hhvm & hack guy from Florida is coming to PHP New Zealand
821: [08:29:00] <simon_w|air> zpyrock, who?
822: [08:29:06] <zpyrock> Davey
823: [08:29:15] <zpyrock> from #phpwomen
824: [08:29:17] <simon_w|air> Sounds familiar
825: [08:29:44] <zpyrock> yeh, you'll likely know of him. Although I asked if he went to the conference you did and he said he was disappointed that he couldn't.
826: [08:29:55] * micmania1 has joined #silverstripe
827: [08:29:56] <zpyrock> something to do with work and sponsorship and too late and stuff.
828: [08:30:17] <zpyrock> simon_w: https://github.com/dshafik
829: [08:30:46] <simon_w|air> Yeah, he's in #hhvm
830: [08:31:05] <zpyrock> I asked what he was going to talk on, he said he wasn't sure yet, heh. Probably something to do with hhvm and hack though
831: [08:31:35] <zpyrock> simon_w|air: so are you converting your framework to hack?
832: [08:31:53] <simon_w|air> BeatBox?
833: [08:31:56] <zpyrock> mmm
834: [08:32:07] <simon_w|air> You mean that framework that was using Hack before we knew about Hack? :p
835: [08:32:11] <zpyrock> :P
836: [08:32:16] <zpyrock> yes, I guess so.
837: [08:32:36] <zpyrock> how different is hack from vanilla php?
838: [08:32:41] <zpyrock> syntax like
839: [08:32:58] <simon_w|air> Not very
840: [08:32:59] <simon_w|air> http://hacklang.org
841: [08:37:04] * ocm has joined #silverstripe
842: [08:37:10] <ocm> howdy!
843: [08:38:38] <zpyrock> Hmm, so mostly it's semi-strong typing and... vectors?
844: [08:38:46] <zpyrock> class allofmy<wtf>
845: [08:39:11] <ss23> PHP with Typing!
846: [08:39:37] <zpyrock> zomg a language with return types!
847: [08:39:57] <ss23> Give it another 10 years, eventually we'll have a language called Smash that's just C
848: [08:40:13] * irogue_ has joined #silverstripe
849: [08:40:18] <zpyrock> ss23: so true.
850: [08:40:21] * irogue quit (Read error: Operation timed out)
851: [08:40:32] <zpyrock> except that you'll be able to do shit on the fly that you can't in C.
852: [08:40:53] <zpyrock> so lambdas vs closures, someone plz explain?
853: [08:43:47] <simon_w|air> zpyrock, nicer syntax, auto capturing of variables
854: [08:46:14] <zpyrock> capturing of variables...?
855: [08:46:24] <zpyrock> I take it that's a scope thing?
856: [08:50:24] <simon_w|air> Like the use($blah), but it's automatic
857: [08:52:52] * gelignite has joined #silverstripe
858: [09:05:20] * CamelCase has joined #silverstripe
859: [09:06:17] * nbezzala quit (Remote host closed the connection)
860: [09:08:36] * cloph_away is now known as cloph
861: [09:08:36] * r3v3rb has joined #silverstripe
862: [09:08:41] <r3v3rb> morning all
863: [09:08:49] * r3v3rb feels sick
864: [09:10:37] <r3v3rb> micmania1 your blog module - is it possible to show only posts from a particular category on a given page and in another instance show all others except the previous?
865: [09:11:01] <r3v3rb> Or would it be easier to just create to 'blog pages'
866: [09:11:12] <r3v3rb> with its own categories?
867: [09:11:58] <micmania1> r3v3rb: You should be able to just get the cateogry then list the posts in that category
868: [09:12:39] * opalfroot has joined #silverstripe
869: [09:12:56] <opalfroot> hey all - is it possible to generate random filenames on uploads?
870: [09:13:15] <r3v3rb> okay so I could have just one blog page that shows categories 'ABC' out of 'ABCD' and in another page call posts from category 'D'
871: [09:13:46] <micmania1> yep
872: [09:23:33] * Tanger quit (Quit: Tanger)
873: [09:24:13] <opalfroot> yep to what?
874: [09:25:03] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
875: [09:28:25] <opalfroot> micmania1 is it possible to generate a random filename on upload?
876: [09:33:06] <micmania1> opalfroot: probably not without extending UploadField
877: [09:33:16] <micmania1> what is it you're trying to do?
878: [09:34:00] * r3v3rb has joined #silverstripe
879: [09:35:25] <r3v3rb> micmania1 so its bascially another little custom method to call the necessary posts by category
880: [09:35:39] <UncleCheese> r3v3rb: the file name generator is a service
881: [09:35:44] <UncleCheese> so you and inject on it
882: [09:35:53] <r3v3rb> UncleCheese que?
883: [09:35:59] <micmania1> UncleCheese: you mean opalfroot lol
884: [09:36:00] <UncleCheese> FileNameFilter
885: [09:36:06] <UncleCheese> oops
886: [09:36:13] * r3v3rb = confused
887: [09:36:19] <r3v3rb> UncleCheese don't do that!
888: [09:36:28] <UncleCheese> opalfroot: the file name generator is a service, so you can inject on it
889: [09:36:34] <r3v3rb> better
890: [09:36:50] <micmania1> r3v3rb: BlogPost::get()->filter("ID", array(1,2,3))->relation("BlogPosts") // I think should should work
891: [09:37:03] <micmania1> sorry, BlogCategory:;get()
892: [09:37:26] <r3v3rb> micmania1 that looks decidedly like a WordDerp loop call :P only joking!
893: [09:38:04] <r3v3rb> array can be specified in a page via a checkboxset I guess ;) if I code it into the page type :D
894: [09:38:25] <micmania1> r3v3rb: yep
895: [09:38:53] * r3v3rb needs more time but has to have this finished tomorrow - wooooo is me woooooooo is me
896: [09:47:38] <Colin[pi]> woooo or woooe?
897: [09:47:49] <Colin[pi]> because woooo kinda sounds like fun
898: [09:47:50] <r3v3rb> thank goodness for ->exclude() tooo - Colin[pi] woooe lol
899: [09:47:58] <opalfroot> sorry what do you mean UncleCheese?
900: [09:48:05] <r3v3rb> definitely wooooooeee atm
901: [09:48:12] * Werner_ has joined #silverstripe
902: [09:48:13] <UncleCheese> Dependency injection
903: [09:48:35] <opalfroot> yea I understand that but I'm looking for a way to alter how files are saved
904: [09:48:36] <UncleCheese> There’s a service called FileNameFilter that generates the file name
905: [09:48:51] <UncleCheese> so you can inject your own service and do whatever you want
906: [09:49:35] <UncleCheese> Injector:
907: [09:49:47] <UncleCheese> FileNameFilter:
908: [09:49:51] <UncleCheese> class: MyClass
909: [09:50:20] <UncleCheese> and just create MyClass extends FileNameFilter and overload the filter method
910: [09:50:24] * basso_ has joined #silverstripe
911: [09:50:50] <UncleCheese> something like: public function filtter($name) { return md5(uniqid().time()); }
912: [09:51:17] <opalfroot> gotcha!! Wow every my brain feels more bruised...cheers!!
913: [09:51:35] <micmania1> UncleCheese: opalfroot: Only problem then is that it will rename ALL of you files, rather than just in one place. It might even apply to Folders too
914: [09:52:20] <UncleCheese> yeah
915: [09:52:44] <basso_> Hi. I have a dataobject with a description field defined as varchar. I tested a few things to store, worked fine (few words) Now im trying to store larger sentences, but for some reason they're chopped off. It did not reach 255 characters, that's for sure. Any reason behind this?
916: [09:52:47] <micmania1> opalfroot: what are you trying to do?
917: [09:53:02] <kinglozzer> basso_: Default limit for varchar is 100 or 150, can't remember which
918: [09:53:03] <opalfroot> stop people from being able to guess filenames of downloadable files
919: [09:53:07] <kinglozzer> You need to define it as Varchar(255)
920: [09:53:21] <basso_> kinglozzer: alright thank you
921: [09:54:22] <micmania1> opalfroot: http://api.silverstripe.org/3.1/class-SS_HTTPRequest.html#_send_file
922: [09:54:27] <UncleCheese> he could just inject an upload service
923: [09:54:48] <micmania1> opalfroot: just make sure you upload to a secure location.
924: [09:55:12] <UncleCheese> opalfroot: instead of linking directly to $MyFile.URL, link to a controller
925: [09:55:26] <UncleCheese> download/someFileID
926: [09:55:44] <UncleCheese> and then that controller gets the file from the DB and uses send_file() with a random hash for a filename
927: [09:55:46] <opalfroot> yup had a downloadkey on the parent object (which also checks permissions)
928: [09:56:17] <UncleCheese> and use an htaccess rule to disallow access to assets
929: [09:56:21] <UncleCheese> or a subdirectory thereof
930: [09:56:30] <opalfroot> cool I'll try the send_file function - didn't realise it can change the filename
931: [09:56:42] <basso_> kinglozzer: default value is 50, even. Explains.
932: [09:57:03] <UncleCheese> yeah, it’s httprequest::send_file(file_get_contents($filePath), “Yourfilename.abc”);
933: [09:58:17] <r3v3rb> i hate yml config - getting ( ! ) Fatal error: Unexpected token when building static manifest: } from my dataextension yet I see no extra } anywhere
934: [09:58:32] <opalfroot> brilliant thanks guys much appeciated!
935: [09:58:43] <simon_w|air> r3v3rb, php -l path/to/file.php
936: [09:59:04] <r3v3rb> simon_w|air will check that out now :)
937: [09:59:50] <r3v3rb> no syntax errors detected :)
938: [09:59:54] <r3v3rb> but also :(
939: [10:00:06] <r3v3rb> because it doesn't explain the reason for the error now at all
940: [10:00:19] <simon_w|air> Probably comes from a different file then
941: [10:01:26] <r3v3rb> well it states configStaticManifest but no error there either nor my dataextension
942: [10:02:04] * MattP_ has joined #silverstripe
943: [10:03:18] <MattP_> Hi all. Trying to create my first report to return all 'Properties' where there are no particulars linked (One to One relationship). I've copied the example in the docs, and edited it to suit my needs, but it's not even showing up under 'Reports'. Just wondered if I've missed something?
944: [10:04:42] <r3v3rb> simon_w, derder brain here had a half finished class still being worked on in another tab! lol
945: [10:06:13] <micmania1> MattP_: have you flushed?
946: [10:06:24] <MattP_> Yep
947: [10:06:29] <r3v3rb> is public function updateCMSFields (FieldList $fields){ the best way to update CMS fields in an extension
948: [10:07:23] <simon_w|air> r3v3rb, it's the only way to do it in an Extension
949: [10:07:54] <r3v3rb> okay, its throwing an error when trying to view the 'extended' class in the CMS - i'll pastie some code
950: [10:08:24] <lrniningine> if i give silverstripe an image for a new Image object from the file system do i need to transcode it first, ist here some security washing SS does normally after an upload? these are unsafe images coming from another machine
951: [10:09:00] <lrniningine> also, just switched to ctrlP in vim, wish i'd done that years ago
952: [10:09:20] <r3v3rb> simon_w any ideas: http://pastie.org/private/gofnep47cr8c1ls3dswog
953: [10:09:33] <Colin[pi]> MattP_: all subclasses of SS_Report should be shown in the CMS
954: [10:10:25] <simon_w|air> r3v3rb, and what's the error?
955: [10:10:41] <simon_w|air> lrniningine, no, and it doesn't matter
956: [10:10:50] <r3v3rb> Error at line 303 of FieldList.php
957: [10:11:15] <simon_w|air> r3v3rb, that's not the error, though it's cause of duplicate fields
958: [10:11:22] <simon_w|air> You probably don't need to add the field
959: [10:11:27] <r3v3rb> ok
960: [10:12:04] <MattP_> Colin[pi]: O
961: [10:12:07] <MattP_> oops
962: [10:12:08] <r3v3rb> simon_w|air if i remove the updateCMSFields I get no dropdown menu
963: [10:12:17] <simon_w|air> r3v3rb, oh, I see. You're not use the scaffolding
964: [10:12:29] <r3v3rb> simon_w|air example?
965: [10:12:37] <simon_w|air> r3v3rb, parent::getCMSFields() :p
966: [10:12:42] <r3v3rb> doh!
967: [10:12:47] <simon_w|air> r3v3rb, you're not using tabs, so you can't add a field to a tab
968: [10:13:14] * r3v3rb = derder brian - was up 18hr's yesterday and have had only 4hrs sleep before todays marathon
969: [10:13:19] <MattP_> Colin[pi]: I've set the title, changed the query, and the fields displayed. I've flushed through /dev/build?flush=all. The class is: "CustomSideReport_NoParticulars extends SideReport" (which is taken from the example in the docs). I'm not sure what to do next if I'm honest as I've never worked with reports before
970: [10:13:22] <r3v3rb> hrs*
971: [10:14:30] <Colin[pi]> MattP_: oh it's a SideReport? I think it should still extend SS_Report
972: [10:14:54] <Colin[pi]> e.g. SideReport_NoParticulars extends SS_Report
973: [10:15:19] <simon_w|air> MattP_, SideReport doesn't exist any more
974: [10:15:26] <simon_w|air> docs should probably be updated
975: [10:15:31] * simon_w|air looks at ss23
976: [10:15:34] <r3v3rb> hmm, simon_w|air updated extension with $fields = parent::getCMSFields but this causes blank screen
977: [10:15:42] <Colin[pi]> grumble grumble docs grumble
978: [10:15:49] <simon_w|air> r3v3rb, not the extension
979: [10:16:00] <MattP_> Ah, that would make sense then. Did notice the docs for 3.1 still had a screenshot for 2.4, but just assumed that had been updated
980: [10:16:03] <simon_w|air> r3v3rb, either don't build the FieldList yourself, or use ->push()
981: [10:16:15] <r3v3rb> got it
982: [10:16:33] <Colin[pi]> MattP_: assume makes an ass of u an me
983: [10:16:34] <Colin[pi]> ;D
984: [10:16:40] <MattP_> Indeed it does ><
985: [10:16:43] <Colin[pi]> but yeah they really need to be updated
986: [10:16:50] <simon_w|air> Pull request!
987: [10:17:34] <MattP_> Whoo!
988: [10:17:37] <Colin[pi]> simon_w|air: how much are your flights usually between Syd and Welly?
989: [10:17:54] <simon_w|air> Colin[pi], $300 ish?
990: [10:18:05] <simon_w|air> Colin[pi], just grab them when they're on special
991: [10:18:09] <Colin[pi]> ah k.. why the fuck is it like twice the price to welly instead of auck?
992: [10:18:14] <MattP_> Is the set up still the same (functions etc)
993: [10:18:32] <simon_w|air> Colin[pi], smaller planes, lower demand?
994: [10:18:38] <Colin[pi]> weaksauce
995: [10:18:40] <simon_w|air> They're not on sale at the moment?
996: [10:18:54] <Colin[pi]> they were last week! now they're not! FFFFUUUUUU
997: [10:19:29] <Colin[pi]> they'll prolly cycle again
998: [10:22:03] * ss23 looks at simon_w|air
999: [10:22:11] <simon_w|air> ss23, DOCS!
1000: [10:22:14] <ss23> simon_w|air: UPDATE IT YOURSELF YOU'RE ON CORE TEAM I'm NOT!
1001: [10:22:15] * ss23 runs away
1002: [10:22:27] * zpyrock slaps ss23
1003: [10:22:33] <zpyrock> that's not the communist spirit!
1004: [10:22:51] <zpyrock> do your part to carry society!
1005: [10:23:44] <Colin[pi]> zpyrock: I'M DOING MY PART http://www.youtube.com/watch?v=SMTz9nIUkGc
1006: [10:23:55] <MattP_> I love the community spirit here :P
1007: [10:24:14] <ss23> Ow
1008: [10:24:14] <ss23> :(
1009: [10:24:23] <ss23> I did a PR with an update to docs the other day!
1010: [10:24:35] <ss23> And it wasn't even simon_w who merged it
1011: [10:24:36] * ss23 glares
1012: [10:25:26] <simon_w|air> The other day when I was smooching up to Facebook? :p
1013: [10:25:50] <ss23> simon_w|air: What, you looking for a job there? :P
1014: [10:26:00] <r3v3rb> thanks simon_w|air ->push fixed it ;)
1015: [10:26:00] <zpyrock> Colin[pi]: would you like to know more? click here!
1016: [10:26:02] <simon_w|air> Oh, I know I'm not getting one
1017: [10:26:19] <Colin[pi]> zpyrock: that movie is brilliant
1018: [10:26:36] <ss23> simon_w|air: Doesn't stop you thinking about it!
1019: [10:26:51] <zpyrock> Colin[pi]: most things with a younger Denise Richards in a tank top are brilliant.
1020: [10:27:18] <Colin[pi]> zpyrock: don't make me think of Wild Things
1021: [10:27:40] <zpyrock> I've still not seen that :<
1022: [10:28:00] <Colin[pi]> zpyrock: terrible movie, but worth it for the T & A
1023: [10:28:04] <Werner_> Problem solved thank you ;)
1024: [10:28:31] <zpyrock> o.0 problem?
1025: [10:28:47] * Sj0hn has joined #silverstripe
1026: [10:29:04] * zpyrock 's imagination runs wild considering current topic
1027: [10:29:53] <Sj0hn> hi
1028: [10:30:33] <simon_w|air> Evening
1029: [10:33:59] <zpyrock> gidday
1030: [10:36:57] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1031: [10:38:09] <Sj0hn> Thats a way to brag with an iMac :p
1032: [10:38:31] <zpyrock> imac?
1033: [10:38:49] <Sj0hn> * r3v3rb (~textual@host-92-21-98-119.as13285.net) Quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1034: [10:39:02] <zpyrock> http://artbybart.files.wordpress.com/2011/11/imac-bondi-blue-19981.jpg
1035: [10:39:05] <zpyrock> mac.
1036: [10:39:09] <zpyrock> iMac.
1037: [10:41:19] * UncleCheese quit (Quit: UncleCheese)
1038: [10:43:48] <Sj0hn> lol, that fat screen
1039: [10:43:50] * anselmdk quit (Quit: anselmdk)
1040: [10:45:06] * MattP_ quit (Quit: Page closed)
1041: [10:45:41] <Sj0hn> I've got an form (http://paste2.org/Jvs25VAn) which is returning the message "Please answer the captcha question".. even when i havn't enabled it.
1042: [10:49:42] * r3v3rb has joined #silverstripe
1043: [10:49:47] <zpyrock> well that'll be because you have.
1044: [10:50:41] <zpyrock> also, indent your inline arrays better :<
1045: [10:51:24] <Sj0hn> it's horrible i know :p
1046: [10:51:42] <zpyrock> and textarea field 's A is lower case.
1047: [10:51:45] <zpyrock> TextareaField
1048: [10:52:17] <zpyrock> forms can be captcha protected in a couple of ways.
1049: [10:52:38] <zpyrock> one is explicitly, field is added in such a function as you've pasted.
1050: [10:52:58] <zpyrock> the other is a bit more convoluted, where the form is interecepted and has a captcha added to it before display.
1051: [10:53:42] <Sj0hn> i've set a default protector inside the yalm file (explained in the spamprotector module)
1052: [10:54:20] <zpyrock> yeah, but that doesn't automatically apply to all forms iirc.
1053: [10:54:35] <zpyrock> but there may be another setting that makes it so with injector or something.
1054: [10:54:44] <Sj0hn> thats what this line is for isn't it: $form->enableSpamProtection(); ?
1055: [10:54:51] <zpyrock> no.
1056: [10:54:55] <zpyrock> well
1057: [10:54:56] <zpyrock> maybe
1058: [10:55:22] <zpyrock> since it's acting on an instance, probably yes. That would cause your captcha to plonk in.
1059: [10:55:28] <zpyrock> most likely
1060: [10:57:11] <Sj0hn> Yeah thats what it's doing now
1061: [10:58:55] * svandragt quit (Ping timeout: 258 seconds)
1062: [11:06:51] * gelignite quit (Quit: http://bit.ly/nkczDT)
1063: [11:11:55] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1064: [11:14:58] <DesignerX> Q: can I set a variable in template ? something like <% set $var = 'zyx' %>
1065: [11:17:04] * r3v3rb has joined #silverstripe
1066: [11:24:14] * Shrike_Finland has joined #silverstripe
1067: [11:33:27] * desperate has joined #silverstripe
1068: [11:35:03] <desperate> I want to make an ajax call to the controller, the result is an object
1069: [11:35:34] * Werner_ quit (Quit: Page closed)
1070: [11:35:44] <desperate> is it possible to pass the result back in this format
1071: [11:37:52] <desperate> i guess iw ould be passing a dataobject back
1072: [11:39:39] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1073: [11:44:18] <zpyrock> DesignerX: no, you know this.
1074: [11:44:27] <zpyrock> it violates the entire purpose of the view layer.
1075: [11:44:52] <zpyrock> desperate: json_encode($obj);
1076: [11:48:26] <desperate> thanks, in my resposne I have: $.each(response, function(x, row){
1077: [11:48:48] <desperate> console.log row['ID'];
1078: [11:48:57] <desperate> but I get an undefinied response
1079: [11:51:03] <desperate> in my dev tools in the reponse tab I see: {"class":"DataList"}
1080: [11:58:11] <zpyrock> sigh, use the conversion library then.
1081: [11:58:31] <zpyrock> or turn the list into an array first.
1082: [12:00:22] * r3v3rb has joined #silverstripe
1083: [12:05:16] * iamss has joined #silverstripe
1084: [12:06:57] * svandragt has joined #silverstripe
1085: [12:07:52] <desperate> I'll turn it into an array as I need a quick fix, thanks!
1086: [12:11:41] * UndefinedOffset has joined #silverstripe
1087: [12:21:21] * User1946 has joined #silverstripe
1088: [12:21:26] <User1946> Hi
1089: [12:22:23] <User1946> How would I go about removing the reports that come with SilverStripe, from the reporting section? Not all of them are relevant, so I just want to remove them
1090: [12:31:27] <zpyrock> There's a reports section?
1091: [12:31:43] * spronk has joined #silverstripe
1092: [12:32:40] <zpyrock> oh look at that.
1093: [12:32:43] <zpyrock> dunno, sorry
1094: [12:33:41] <User1946> meh
1095: [12:39:11] <iamss> Hi Guys!
1096: [12:39:28] <User1946> Hi
1097: [12:40:09] * lerni_ has joined #silverstripe
1098: [12:40:27] <iamss> Question SS, what is the default sorting of the SiteTree pages?
1099: [12:41:04] <svandragt> iamss: id
1100: [12:43:39] * Colin[pi] quit (Ping timeout: 252 seconds)
1101: [12:47:06] <r3v3rb> hello, any idea why two gridfields using the same dataobject class on a page but associated to two different $has_many show the same content when viewing in the CMS?
1102: [12:49:26] <iamss> svandragt: I don't think it is sorted by ID. I need to get the same sorting as the SiteTree where it also includes the children
1103: [12:51:07] <r3v3rb> argh... i want my mummy
1104: [12:51:45] <lerni_> iamss well SiteTree has a colum called "Sort"
1105: [12:53:12] <r3v3rb> http://pastie.org/private/kfreaxuxix1glqjxzqyq <- shouldn't the two $has_many have their own content ?
1106: [12:55:44] <iamss> what the equivalent in SS for not equal to null in sql query?
1107: [12:57:48] * opalfroot quit (Ping timeout: 240 seconds)
1108: [12:57:53] <r3v3rb> Zauberfisch got two seconds to take a look at http://pastie.org/private/kfreaxuxix1glqjxzqyq and explain why the same content appears in both GridFields
1109: [13:00:04] <svandragt> iamss: ->where('ThumbImageID IS NOT NULL')
1110: [13:01:38] <zpyrock> svandragt: no, Sort.
1111: [13:02:05] <svandragt> zpyrock: yes sorry of course
1112: [13:02:30] <zpyrock> iamss: exclude('field', null)
1113: [13:02:45] <zpyrock> svandragt: no, never where.
1114: [13:02:47] <zpyrock> ever.
1115: [13:02:51] <iamss> zpyrock: got it! thanks!
1116: [13:03:33] <zpyrock> svandragt: in about 98% of cases where is just the wrong thing.
1117: [13:03:45] <zpyrock> It'll work, sure, but one should use the orm.
1118: [13:04:15] <iamss> how to create custom DataList? what parameter to pass to $dataList = new DataList(%param%); ??
1119: [13:04:20] <iamss> what is the param?
1120: [13:04:53] <micmania1> r3v3rb: Your other DataObject should have 2 has_one's back
1121: [13:05:00] <r3v3rb> micmania1 really!
1122: [13:05:02] <svandragt> zpyrock: How long has that been possible? exclude null?
1123: [13:05:13] <micmania1> MyObject.DownloadSections & MyObject.DailyRi
1124: [13:05:34] <zpyrock> svandragt: since it was invented.
1125: [13:05:56] <svandragt> zpyrock: every time I've asked on forums I've always been told where
1126: [13:05:58] <zpyrock> ie, always.
1127: [13:05:59] <r3v3rb> micmania1 I am soooooo tired. I need to sleep
1128: [13:06:06] <r3v3rb> but client keeps pushing for more
1129: [13:06:10] <zpyrock> well people on the forums are morons then :<
1130: [13:06:42] <zpyrock> svandragt: array('field'=>null) if the 2 param thing doesn't work, or '' or similar if null doesn't fly.
1131: [13:06:56] <zpyrock> to exclude results, one uses exclude.
1132: [13:07:06] <svandragt> zpyrock: thanks yes I know about exclude :P
1133: [13:07:33] <zpyrock> I don't know of any reason passing it null wouldn't work, although I will admit to hot having tried it where I can remember
1134: [13:09:51] <r3v3rb> micmania1 nope that now has them both empty!
1135: [13:09:53] <r3v3rb> lol
1136: [13:10:21] <zpyrock> svandragt: the trouble with the forums is that no one serious visits there, so it's a bunch of newbies leading other newbies on misadventures :<
1137: [13:10:48] <micmania1> r3v3rb: http://www.balbuss.com/multiple-has-ones-of-the-same-class/
1138: [13:11:08] <r3v3rb> doh
1139: [13:11:12] <r3v3rb> thanks micmania1
1140: [13:11:27] * violetina quit (Remote host closed the connection)
1141: [13:12:31] <zpyrock> kinglozzer: bah bah da bah bah baaaaa
1142: [13:12:34] <zpyrock> zzzzzzzzzzzzzz
1143: [13:13:02] * Shrike_Finland quit (Quit: Leaving.)
1144: [13:13:36] <kinglozzer> zpyrock: Nested display:table; divs are keeping me awake
1145: [13:13:41] <kinglozzer> 'cause fuck css
1146: [13:14:08] <svandragt> zpyrock: the underlying problems is that there are too many different places to ask questions and they are too seperated (forums, here, mailing groups). For example if all new topics and mailing list posts would be announced on IRC then you'd see more cross polination
1147: [13:14:24] <svandragt> *cross pollination
1148: [13:22:18] <CamelCase> Quick and random question, but why doesn't Silverstripe ship standard with the restfulserver addon? It really makes Silverstripe so much more flexible from the get go...
1149: [13:24:29] <zpyrock> svandragt: only if there was a sweet bot for ease of answer.
1150: [13:24:59] <zpyrock> I don't tend to view it as segregated though, more varied levels of support.
1151: [13:25:32] <zpyrock> forums are for beginners, irc for more serious users, mailing lists are actually just for core devs.
1152: [13:25:50] <zpyrock> although I see people get confused and spam the shittest ideas ever into there all the time :<
1153: [13:28:43] * Shrike_Finland has joined #silverstripe
1154: [13:31:01] <svandragt> CamelCase: because the developers are trying to keep the core lean
1155: [13:32:29] * catcher has joined #silverstripe
1156: [13:33:23] <zpyrock> ??
1157: [13:34:12] <zpyrock> camelCase is for instance members, underscored_variable_names are for statics (config) and the like, usually.
1158: [13:34:22] <zpyrock> or so I understand it from the SS style guide.
1159: [13:37:27] <kinglozzer> zpyrock: He was answering someone who's nick is CamelCase :P
1160: [13:37:32] <kinglozzer> whose
1161: [13:37:38] <kinglozzer> I think
1162: [13:37:54] <zpyrock> oh
1163: [13:38:02] <zpyrock> fuck, totally didn't even see, that, haha
1164: [13:38:07] * zpyrock feels like a right twat
1165: [13:38:37] * Shrike_Finland quit (Quit: Leaving.)
1166: [13:38:39] <zpyrock> CamelCase: it WAS in core, but has been extracted to a module that can be installed in a matter of seconds.
1167: [13:39:09] <zpyrock> because as svandragt said, lean core.
1168: [13:39:21] <zpyrock> faster system, people only get what they need, etc.
1169: [13:39:24] <zpyrock> lots of things.
1170: [13:41:18] * iamss quit (Ping timeout: 240 seconds)
1171: [13:42:44] * catcher thinks CamelCase's nick should be camel_case
1172: [13:43:20] <Zauberfisch> r3v3rb: sorry, was out eating
1173: [13:43:48] * User1946 quit (Ping timeout: 240 seconds)
1174: [13:44:59] <r3v3rb> Zauberfisch that is not allowed!
1175: [13:45:00] <r3v3rb> lol
1176: [13:45:04] <Zauberfisch> :/
1177: [13:45:09] <r3v3rb> micmania1 put me in the right direction ;)
1178: [13:45:14] <Zauberfisch> I'll make sure to check with you next time I am hungry
1179: [13:45:51] <desperate> i'm putting a dataobject mysql result into an array
1180: [13:45:55] <Zauberfisch> anyway, have you resolved it yet?
1181: [13:46:21] <r3v3rb> however, here's another one instead - is there a way to make a frontend link 'force' a file download in one link and 'view' in browser in another - I'm guessing one will require a redirect to a function that shoves the data out via a header redirect?
1182: [13:46:35] <desperate> I can get an image ID with $row->ImageID
1183: [13:46:39] <r3v3rb> Zauberfisch yes, the previous issue is resolved
1184: [13:46:46] <desperate> how can I get the fielname of the image
1185: [13:46:51] <desperate> $row->FeaturedID->Filename
1186: [13:47:52] <CamelCase> zpyrock: Thanks
1187: [13:48:04] <zpyrock> r3v3rb: lord of the foods
1188: [13:48:16] <r3v3rb> zpyrock :D thats me!
1189: [13:48:27] <zpyrock> desperate: wholey shit are you lost or what?
1190: [13:48:42] * CamelCase thinks that is
1191: [13:49:52] <desperate> I'm lost AND what
1192: [13:50:29] <zpyrock> return Convert::raw2json(MyDOClass::get()->filter('something', 'someval')->map()->toArray());
1193: [13:50:41] <zpyrock> the end.
1194: [13:50:54] <Zauberfisch> good
1195: [13:50:57] <zpyrock> CamelCase: ??
1196: [13:51:43] <desperate> I should be using the relational name not the foreign key name
1197: [13:52:36] <zpyrock> I have no idea what you're talking about.
1198: [13:53:15] <zpyrock> return json_encode($this->MyHasManyRelationList());
1199: [13:53:21] <zpyrock> if that helps you
1200: [13:53:52] <CamelCase> zpyrock: blue Wednesday, that's all haha
1201: [13:54:07] <zpyrock> blue?
1202: [13:55:23] <zpyrock> is that some kind of saffa slang? :<
1203: [13:56:26] <catcher> desperate, I think your best bet is to share some code
1204: [13:56:35] <desperate> I got it....
1205: [13:57:03] <desperate> so the correct way to do is: $row->relatino_name->filename
1206: [13:57:28] <zpyrock> Nope.
1207: [13:57:31] <desperate> I was using: $row->freignkey_col_name->filename
1208: [13:57:33] <CamelCase> zpyrock: no, not at all
1209: [13:57:42] <zpyrock> CamelCase: hmm :/
1210: [13:57:52] <desperate> instead of the realtion name I was using the column name
1211: [13:58:04] <desperate> *relation
1212: [13:58:39] <zpyrock> Wednesday Is Indigo Blue: Discovering the Brain of Synesthesia is a 2009 non-fiction book written by Richard Cytowic and David Eagleman documenting the current scientific understanding of synesthesia, a perceptual condition where an experience of one sense (such as sight) causes an automatic and involuntary experience in another sense (such as hearing). The afterword is written by Dimitri Nabokov, a synesthete, and the son of th
1213: [13:58:53] <zpyrock> Vladimir Nabokov.
1214: [14:00:25] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
1215: [14:07:59] <zpyrock> CamelCase: I don't get the reference :<
1216: [14:08:36] * babak quit (Quit: Connection closed for inactivity)
1217: [14:10:35] <CamelCase> zpyrock: ever heard of a blue Monday?
1218: [14:10:56] <CamelCase> zpyrock: That's what I was referring to :P
1219: [14:11:40] * anselmdk has joined #silverstripe
1220: [14:17:27] * opalfroot has joined #silverstripe
1221: [14:18:09] <opalfroot> is there any way to just pass an array to a template?
1222: [14:19:09] <kinglozzer> opalfroot: No
1223: [14:19:18] <kinglozzer> Needs to be ArrayList/ArrayData
1224: [14:21:24] * r3v3rb has joined #silverstripe
1225: [14:22:00] <r3v3rb> why is this not allowed in an init() { if ( $params('name')) { $str = 'email: { required: true, email: true },'; } else { $str = ''; }
1226: [14:22:00] <r3v3rb> where $params is defined as $params = $this->getURLParams();
1227: [14:22:34] <r3v3rb> ignore, square brackets helps!
1228: [14:24:00] <kinglozzer> r3v3rb: ?
1229: [14:24:06] <kinglozzer> Oh
1230: [14:24:07] <kinglozzer> :P
1231: [14:24:18] <r3v3rb> kinglozzer ignore me being a muppet due to tiredness today();
1232: [14:24:57] <r3v3rb> client is chasing 'that' site to go live but hasn't confirmed the templating or got final copy ready yet...
1233: [14:25:02] <r3v3rb> but I'm to blame!
1234: [14:25:04] <r3v3rb> lmao
1235: [14:26:47] * muskie9 has joined #silverstripe
1236: [14:29:22] <r3v3rb> so, anyone know a function to force a download rather then view in a tab?
1237: [14:29:26] <r3v3rb> of a file link
1238: [14:31:43] <kinglozzer> r3v3rb: You can do it with headers
1239: [14:31:47] <kinglozzer> I think
1240: [14:32:25] <r3v3rb> without leaving the current page? or is that an ajax call to do it?
1241: [14:32:49] <kinglozzer> Oh, yeah I don't think there's a link attribute or anything :/
1242: [14:37:04] <kinglozzer> Content-Disposition: attachment; is the header IIRC
1243: [14:37:09] <kinglozzer> But that doesn't help :D
1244: [14:38:04] <kinglozzer> r3v3rb: HTML5 download attribute
1245: [14:38:05] <kinglozzer> http://stackoverflow.com/questions/11353425/force-a-browser-to-save-file-as-after-clicking-link
1246: [14:38:10] <kinglozzer> I'd never heard of that D:
1247: [14:38:30] <r3v3rb> holy poop!
1248: [14:39:14] <r3v3rb> i just made a function that grabs the file id and sends it back to a new tab as a SS_HTTPRequest::send_file do dah
1249: [14:39:29] <r3v3rb> at least that should be backward compatible ;)
1250: [14:39:32] <r3v3rb> thinks ie8
1251: [14:41:45] <kinglozzer> Yeah that'll do it too :P
1252: [14:47:01] * Martin____ has joined #silverstripe
1253: [14:48:36] <Martin____> Any idea if it's possible to add dataobject to the sitetree list (e.g., when adding a link)
1254: [14:51:28] <zpyrock> CamelCase: blue monday... that's a song right?
1255: [14:51:38] <zpyrock> or is that blue lady.
1256: [14:52:11] <zpyrock> http://en.wikipedia.org/wiki/Blue_Monday_%28date%29
1257: [14:52:12] <zpyrock> oh yeah
1258: [14:52:13] <zpyrock> I see.
1259: [14:52:41] * Shrike_Finland has joined #silverstripe
1260: [14:53:06] <zpyrock> kinglozzer: r3v3rb that requires it to be picked up though
1261: [14:53:38] <kinglozzer> Yeah it was dropped from the relevant RFC apparently
1262: [14:53:52] <kinglozzer> Anyway
1263: [14:53:57] <kinglozzer> Pick me a colour scheme: http://daylerees.github.io/
1264: [14:53:59] <zpyrock> you can do it with headers and stuff.
1265: [14:54:06] <kinglozzer> (preferably not the purple one)
1266: [14:54:19] <zpyrock> or just target blank it
1267: [14:55:13] <zpyrock> kinglozzer: all crap
1268: [15:00:09] <Martin____> Any ideas on how to customize the sitetree list when selecting a link?
1269: [15:00:14] <kinglozzer> Half of them are the same :/
1270: [15:00:53] <Martin____> The list is being created inside Hierarchy.php (stageChildren method)
1271: [15:00:55] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1272: [15:01:31] * Smashcat has joined #silverstripe
1273: [15:01:52] * r3v3rb has joined #silverstripe
1274: [15:02:43] * desperate quit (Quit: Page closed)
1275: [15:02:46] <Smashcat> Hi, I don't usually use Silverstripe - been asked to work on a module related to a site. Anyay, are the templates under the ~/assets directory supposed to have hardcoded hostnames?! Just cloned the site from git and looks like it's all hardcoded to locahost:8888 . Doesn't seem right
1276: [15:03:30] <Martin____> templates should not be under the assets directory
1277: [15:04:01] <kinglozzer> Smashcat: There shouldn't be any templates in /assets, do you mean error-404.html/error-500.html?
1278: [15:04:09] <Smashcat> I'm seeing ones named error-500.html, erorr-404.html etc
1279: [15:04:58] <kinglozzer> Smashcat: Once you put the site on a 'live' server, save & publish those pages in the CMS and those paths will be changed to the correct domain
1280: [15:05:03] <Martin____> they are just error pages (static content)
1281: [15:05:04] <Smashcat> But the whole site seems to be hardcoded with localhost in all URLs and links.
1282: [15:05:23] <Martin____> that's probably because you're working on your local machine
1283: [15:05:49] <Smashcat> No, it's on my server here, I'm on a Windows machine (Silverstripe is on Linux box)
1284: [15:06:30] <Martin____> delete them and run dev/build
1285: [15:06:38] <Martin____> I am pretty sure they will be recreated
1286: [15:07:08] <Smashcat> Hmm, guess they just chucked everything into git then. Even the db config etc was in there.
1287: [15:10:06] <Smashcat> dev/build does nothing either - seems to stall for 5 seconds, then come back with "Page not found". It's picking up a template from somewhere. Meh, I'll leave it broken and just work on my bit. Whoever made the mess can fix it :) Cheers.
1288: [15:10:48] * Martin____ quit (Ping timeout: 240 seconds)
1289: [15:11:42] <Sj0hn> Bye all ^^ thanks zpyrock for your help today
1290: [15:11:43] * r3v3rb quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1291: [15:12:01] * Sj0hn quit ()
1292: [15:12:37] * opalfroot quit (Quit: Page closed)
1293: [15:16:03] * sekjal has joined #silverstripe
1294: [15:16:37] <CamelCase> haha zpyrock: you're onto something
1295: [15:19:14] <sekjal> does anyone on right now use the Widgets module independent of Blog? I'm trying to figure out a presentation/usability issue
1296: [15:20:25] <Smashcat> Is there any way to prevent SS from going through all the templates and hardcoding the hostname in all over the place? Don't want to check stuff in if it's going to mess up the other dev's build
1297: [15:26:23] * jenniferaslan has joined #silverstripe
1298: [15:27:56] * r3v3rb has joined #silverstripe
1299: [15:28:39] <micmania1> sekjal: All the time. Contact details widget, mailchimp signup widget etc...
1300: [15:29:02] <micmania1> Smashcat: $BaseHref ?
1301: [15:29:43] <sekjal> micmania1: great! I'm using it for Query Modifiers on ElasticSearch queries, as part of the ElasticSearch module I'm expanding/developing
1302: [15:30:15] <Smashcat> micmanial: Any idea where that is set?
1303: [15:30:24] <sekjal> one of the kinds of Modifiers is Aggregation, which let's you facet results. The really neat part, though, is that you can test Aggregations
1304: [15:30:28] <micmania1> Its set automatically based on the hostname
1305: [15:31:21] <sekjal> s/test/nest/
1306: [15:32:04] <Smashcat> micmanial: Ah no that's not it then. I've got the problem that this site is serving all pages with localhost:8888 as the hostname which is wrong. Thought I could get round it by just testing my own code and ignoring the SS part. Seems like the original author has either hardcoded this themselves, or he's doing it in code. Problem is that if I do the same and check it all back in, it'll break...
1307: [15:32:05] <Smashcat> ...his version when he updates
1308: [15:32:19] <sekjal> so I'm trying to think of a way to show Aggregation widgets within other Aggregation widgets in the CMS admin interface in such a way that twist the world into a knot
1309: [15:33:19] <Smashcat> (there's no cache set up either, so I have no idea where it's getting that hostname from, unless it's in the database)
1310: [15:33:33] <micmania1> Smashcat: SS doesn't hardcode the hostname in
1311: [15:33:56] <Smashcat> micmanial: He must have manually editing each page then :) Nice - hahaha!
1312: [15:34:20] * Shrike_Finland quit (Quit: Leaving.)
1313: [15:35:17] <zpyrock> Smashcat: the assets dir should be in gitignore
1314: [15:35:27] <zpyrock> ignore assets
1315: [15:35:36] <zpyrock> exception to the ignore for assets/.htaccess
1316: [15:35:42] <Smashcat> can I just delete everything from that folder then?
1317: [15:35:44] <zpyrock> yes
1318: [15:35:51] <zpyrock> except the .htaccess
1319: [15:35:52] <Smashcat> k, will do thanks
1320: [15:36:04] * DesignerX quit (Ping timeout: 240 seconds)
1321: [15:36:28] <zpyrock> Smashcat: things in a repo should be framework, mysite, themes, and any modules (including cms if applicable)
1322: [15:36:40] <zpyrock> and .gitignore & .htaccess
1323: [15:36:45] <zpyrock> that's pretty much all there is to it.
1324: [15:36:55] <Smashcat> zpyrock: So once I delete everything from assets, it just rebuilds it all again, right?
1325: [15:37:06] <zpyrock> Smashcat: well, assets are all the uploaded pictures and things.
1326: [15:37:14] <zpyrock> if you've just cloned the site then these won't be applicable.
1327: [15:37:22] <zpyrock> ie, user uploaded.
1328: [15:37:43] <Smashcat> zpyrock: Well I do need the CMS content too really, to see if the site's actually working properly.
1329: [15:37:46] <zpyrock> the system only builds error docs, and only if cms is installed iirc.
1330: [15:38:49] <zpyrock> Smashcat: the system NEVER hardcodes a url.
1331: [15:39:02] <zpyrock> if there is one, it's because noddy put it in there.
1332: [15:39:17] <kinglozzer> The only way it can be 'hard coded' is if the dev has used Director::setBaseURL(), or the 'Director.alternate_base_url' yaml value
1333: [15:39:29] <Smashcat> zpyrock: Hmm, something is. I'd grepped the entire site, and the number '8888' is in no files within the docroot. So it must be coming from the database
1334: [15:39:40] <zpyrock> nope.
1335: [15:39:42] <zpyrock> can't be.
1336: [15:39:57] <zpyrock> unless some noddy specifically put it in there for some derpfaced reason.
1337: [15:40:09] <zpyrock> (like trying to make it more like wordderp for some f'n unkown reason)
1338: [15:40:28] <Smashcat> Dunno. It's not on the filesystem though. So he may be doing something like "$port=4444+4444" I guess - hehe
1339: [15:40:28] * Liquide has joined #silverstripe
1340: [15:41:11] <zpyrock> Smashcat: SilverStripe will prefix any links with whatever domain it was accessed through.
1341: [15:41:24] <zpyrock> connect on localhost, it'll be http://localhost/
1342: [15:41:32] <zpyrock> connect on ip, it'll be ip.
1343: [15:41:39] <zpyrock> or 127.0.0.1, etc.
1344: [15:41:49] <zpyrock> its not hard coded in a single place.
1345: [15:42:02] <Smashcat> zpyrock: Not the case here. I'm accessing my server at http://vxr.dev and it's adding http://localhost:8888" to all links to CSS etc
1346: [15:42:06] <zpyrock> what makes you think i t is?
1347: [15:42:19] <zpyrock> Smashcat: yeah but there's no css in SS
1348: [15:42:36] <zpyrock> if a css rule has that in it, it's because the author wrote it in there.
1349: [15:42:38] <Smashcat> There's links to the CSS though
1350: [15:43:13] <zpyrock> well in that case it's because the author was too stupid to know anything about the requirements system and just hard coded the link into the theme probably
1351: [15:43:18] <zpyrock> which is generally a bad idea.
1352: [15:44:30] <zpyrock> check the themes dir
1353: [15:44:33] <zpyrock> grep or whatever.
1354: [15:44:53] <micmania1> Smashcat: you haven't got anything funny on your hosting setup have you?
1355: [15:45:04] <zpyrock> [16:02] <Smashcat> Hi, I don't usually use Silverstripe - b
1356: [15:45:08] <zpyrock> ut when I do...
1357: [15:45:09] <zpyrock> etc
1358: [15:45:10] <zpyrock> :P
1359: [15:45:12] <Smashcat> micmanial: Nope, my own local server here -
1360: [15:45:52] <micmania1> what port are you running your server on?
1361: [15:46:25] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
1362: [15:46:57] <catcher> Smashcat, did you download the cache dir? Have you flushed the template cache?
1363: [15:47:30] <catcher> i.e. was the cache dir in the repo you cloned?
1364: [15:47:31] <Smashcat> micmanial: Standard port 80 - I have loads of sites on there. All work fine. (I've written my own frameworks etc, and being doing this for a while - but never use SS generally) - everything else is working fine, aside from this site.
1365: [15:47:46] <Smashcat> catcher: The cache dir was in there, but empty
1366: [15:48:17] <catcher> Smashcat, with the site in dev mode, ?flush=all at the end of the URL for good measure
1367: [15:48:23] <zpyrock> rm -rf silverstripe-cache/*
1368: [15:48:45] <Smashcat> zpyrock: As said, that's not there
1369: [15:49:33] <zpyrock> make it
1370: [15:49:41] <Smashcat> So in the page.ss he's using <% require themedCSS('reset') %> which is definitely one place that's injecting the hostname
1371: [15:49:54] <zpyrock> Smashcat: what version is this?
1372: [15:50:01] * CamelCase quit (Ping timeout: 250 seconds)
1373: [15:50:05] <zpyrock> because none should be injecting any localhost:8080 nonsense
1374: [15:50:11] <zpyrock> unless there's something weird about your setup
1375: [15:50:21] <Smashcat> No idea. It's new build, so assume he downloaded the latest release
1376: [15:50:30] <zpyrock> brand new build?
1377: [15:50:35] <Smashcat> Yep
1378: [15:50:44] <catcher> Smashcat, did you try the flush?
1379: [15:50:46] <Smashcat> As in a few days ago
1380: [15:51:04] <Smashcat> catcher: Does nothing, just says "Page not found"
1381: [15:51:22] <zpyrock> you broke it.
1382: [15:51:27] <zpyrock> SS never page not founds
1383: [15:51:30] <kinglozzer> Smashcat: ?flush and /dev/build should definitely not end with "page not found"
1384: [15:51:31] <Smashcat> I haven't done anything to it :)
1385: [15:51:36] <zpyrock> you have.
1386: [15:51:38] <kinglozzer> Smashcat: Run through Director::baseURL() and see why it thinks your base url is localhost
1387: [15:51:38] <zpyrock> or are missing something
1388: [15:51:39] <Smashcat> havne't
1389: [15:51:55] <catcher> also check out .htaccess's rewritebase
1390: [15:51:58] <zpyrock> ^
1391: [15:52:41] <Smashcat> catcher: Yep I did check the .htaccess first off. There's no references to localhost in there
1392: [15:52:50] <zpyrock> you're definitely missing configurations, files, or your server is messed.
1393: [15:52:51] <Smashcat> It's just '/'
1394: [15:53:06] <zpyrock> these are the only things.
1395: [15:54:46] * anselmdk quit (Quit: anselmdk)
1396: [15:55:25] <kinglozzer> Smashcat: Run through Director::absoluteURL(), I think it's probably the base tag that's wrong
1397: [15:55:33] <Smashcat> Seems like it's best to work on the dev server directly with Silverstripe then. It doesn't seem like it's very portable (at least not this example :) )
1398: [15:55:52] <micmania1> Smashcat: its very portable. The issue is with your project or server.
1399: [15:55:56] <catcher> I transfer environments all the time, local/dev/prd
1400: [15:56:14] <zpyrock> kinglozzer: but themedCSS doesn't use absoluteURL
1401: [15:56:23] <zpyrock> it makes a relative path.
1402: [15:56:29] <kinglozzer> zpyrock: Nope, it uses relative URLs, which relies on the base tag ^^
1403: [15:56:41] <kinglozzer> Base tag uses absoluteURL
1404: [15:57:14] <zpyrock> kinglozzer: yeah, but this cat is telling us that the link it's spitting back is "http://localhost:8080/themes/theme/css/reset.css"
1405: [15:57:25] <Smashcat> Yep
1406: [15:57:31] <zpyrock> which is 100% NOT normal.
1407: [15:57:56] * joelpittet has joined #silverstripe
1408: [15:57:59] <kinglozzer> Uh, yeah
1409: [15:58:15] <kinglozzer> themedCSS can't output that..
1410: [15:58:27] <kinglozzer> Unless I'm missing something
1411: [15:58:52] <kinglozzer> Well, it could output that, if someone has set an alternative base url
1412: [15:59:11] <kinglozzer> Smashcat: Ask the dev, see if he's done something stupid to try to be helpful
1413: [15:59:25] <Smashcat> Unfortunately he's gone on holiday.
1414: [16:00:00] <Smashcat> It's the only reason I'm on this. (I'm actually an embedded / mobile developer). More used to C, Verilog and Java than PHP tbh
1415: [16:00:19] <catcher> Smashcat, sorry if you mentioned above - have you already imported the db?
1416: [16:00:40] <Smashcat> catcher: Yep, I imported the DB I was sent along with the project
1417: [16:00:50] <Smashcat> Was supposedly working -.-
1418: [16:01:06] <catcher> Smashcat, try connecting to a fresh db, see what happens when you /dev/build
1419: [16:01:07] <zpyrock> he's left something out of the configs, or put something in that shouldn't be.
1420: [16:01:17] <zpyrock> configs/repo/code
1421: [16:01:37] <catcher> and yeah, maybe post _config.php & _config/config.yml
1422: [16:01:42] <kinglozzer> Yeah it won't be the db, not if requirements are being output wrong
1423: [16:02:32] <Smashcat> Ok, I'll just edit them to remove username, passwords etc first
1424: [16:02:44] <zpyrock> http://api.silverstripe.org/3.1/source-class-Director.html#506-534
1425: [16:02:57] <zpyrock> kinglozzer: actually it does include the hostname apparently (themedcss)
1426: [16:03:22] <zpyrock> uses the above linked method though
1427: [16:04:03] <kinglozzer> zpyrock: That doesn't include the host name
1428: [16:04:11] <kinglozzer> baseURL() just returns '/'
1429: [16:04:26] <kinglozzer> /unless/ an alternate one is set
1430: [16:04:28] <zpyrock> but could, as you say, if some config bullshit is up in there
1431: [16:04:32] <kinglozzer> Yup
1432: [16:05:01] <zpyrock> or if the dev has done something retarded like define('BASE_URL', 'http://localhostherpaderp:8080'); in _config.php
1433: [16:05:25] <Smashcat> Not much in them really: http://pastebin.com/prbyJjux
1434: [16:05:35] <zpyrock> but that is on the level of idiocy that would make my brain explode, so I really hope it's not that.
1435: [16:05:39] <Smashcat> (I've replaced the working database auth details)
1436: [16:06:06] <catcher> Smashcat, anything interesting in routes.yml?
1437: [16:07:01] <zpyrock> Smashcat: no other .yml files in mysite/_config ?
1438: [16:07:11] <Smashcat> zpyrock: Nope
1439: [16:07:15] <zpyrock> cool
1440: [16:07:46] <micmania1> Smashcat: are you using IIS?
1441: [16:07:49] <Smashcat> routes.yml: http://pastebin.com/GS2tsUW2
1442: [16:07:58] <zpyrock> Smashcat: do this in mysite/_config.php (last line): die($_SERVER['HTTP_HOST']);
1443: [16:08:01] <Smashcat> from ~/cms/_config
1444: [16:08:07] <catcher> probably mamp
1445: [16:08:30] <zpyrock> definitely mamp
1446: [16:08:30] <Smashcat> micmanial: No, as said, it's on a Linux box, running Apache
1447: [16:08:41] <Smashcat> I'm working from a Windows machine though
1448: [16:08:49] <zpyrock> that shouldn't matter.
1449: [16:09:07] <micmania1> nah, I just search the ss repo and there was something on there for windows iis on localhost:8888
1450: [16:09:07] <Smashcat> No, just emphasising that I'm not connecting from localhost :)
1451: [16:09:15] <micmania1> Other than that, there's nothing
1452: [16:10:03] <kinglozzer> Smashcat: Do as zpyrock said with HTTP_HOST, also check $_SERVER['REQUEST_URI']
1453: [16:10:29] <zpyrock> ^
1454: [16:11:41] <Smashcat> Just did that, and it never reaches that statement. This is in ~/mysite/_config.php
1455: [16:12:04] <kinglozzer> O.o
1456: [16:12:18] <Smashcat> heh
1457: [16:12:35] <kinglozzer> Uh, try doing it at the start of framework/main.php
1458: [16:12:35] <Smashcat> Just going to put it into the index.php to check
1459: [16:12:47] <micmania1> index.php won't get called
1460: [16:12:52] <kinglozzer> Smashcat: .htaccess will rewrite it (assuming that's working correctly) to framework/main.php
1461: [16:13:54] <zpyrock> wholey shit that's convoluted :( https://github.com/silverstripe/silverstripe-framework/blob/07b15db3ebbea4515f57577c3c2d7d5e135a9f01/core/Constants.php#L172
1462: [16:14:20] <zpyrock> Smashcat: yeah, your code isn't executing as you think it is.
1463: [16:14:33] <Smashcat> Nope, still just getting the page not found (though it's still got the header and footer in there, with broken links to localhost:8888). This is after putting the die at the top of framework/main.php
1464: [16:14:43] <Smashcat> I've checked and I am in the right right, btw :)
1465: [16:14:44] * lerni_ quit (Remote host closed the connection)
1466: [16:14:49] <Smashcat> *right sight
1467: [16:14:59] <kinglozzer> Smashcat: Try index.php then, sounds like .htaccess issue
1468: [16:15:07] <kinglozzer> Well, partly an .htaccess issue
1469: [16:15:10] * lerni_ has joined #silverstripe
1470: [16:15:15] <zpyrock> because the .htaccess is rewriting the 500 or whatever it's getting to use the error doc defined earlier which will point to the assets dir error-whatever.html
1471: [16:15:22] <zpyrock> which is a static compiled option.
1472: [16:15:29] <zpyrock> so will have localhost in there.
1473: [16:15:32] <Smashcat> I did try index.php - did nothing either. I have no idea how it's serving the page, unless it's redirecting to a 404?
1474: [16:15:48] <zpyrock> this whole thing is because the ENTIRE site is not even executing.
1475: [16:15:53] <kinglozzer> Yup ^^
1476: [16:15:56] <zpyrock> Smashcat: paste the .htaccess
1477: [16:16:00] <zpyrock> pastie
1478: [16:16:07] <kinglozzer> And check yo error logs
1479: [16:16:58] <Smashcat> Here's .htaccess http://pastebin.com/U1iMRKZh
1480: [16:17:09] <catcher> you may have some apache vhost funk.
1481: [16:17:14] <kinglozzer> Smashcat: rewritebase
1482: [16:17:24] <zpyrock> kinglozzer: it's set to '/'
1483: [16:17:29] <kinglozzer> No it isn't
1484: [16:17:39] <kinglozzer> "RewriteBase '/vauxhall'"
1485: [16:17:43] <catcher> Didn't you say rewritebase was '/'?
1486: [16:17:57] <kinglozzer> :P
1487: [16:17:57] <Smashcat> Yeah, I saw it set somewhere else, to '/'
1488: [16:17:58] <zpyrock> ^
1489: [16:18:01] <Smashcat> :)
1490: [16:18:08] <zpyrock> no...
1491: [16:18:08] <kinglozzer> Smashcat: Change it to /
1492: [16:18:24] <zpyrock> Smashcat: line 20 and 21
1493: [16:18:25] <zpyrock> ErrorDocument 404 /assets/error-404.html ErrorDocument 500 /assets/error-500.html
1494: [16:18:34] <zpyrock> there's your issue right there.
1495: [16:18:58] <Smashcat> Ah! Yeah, now getting to the die statement
1496: [16:19:06] <zpyrock> yeah, time to remove that
1497: [16:19:11] <catcher> the errordocs should be fine
1498: [16:19:12] <kinglozzer> ><
1499: [16:19:27] <zpyrock> this is why we don't have nice things.
1500: [16:19:29] * lerni_ quit (Ping timeout: 250 seconds)
1501: [16:19:37] <zpyrock> committing htaccess bad idea.
1502: [16:19:42] <zpyrock> well, root one.
1503: [16:19:51] <zpyrock> unless all installs are going to be in root dir
1504: [16:20:03] <Smashcat> Er can you remember where I put that die? Just checked index.php and framework/main.php
1505: [16:20:12] <zpyrock> mysite_config.php
1506: [16:20:17] <Smashcat> Ah cheers
1507: [16:20:31] <micmania1> This has been fun
1508: [16:20:33] <micmania1> home time
1509: [16:20:34] <micmania1> laters
1510: [16:20:37] <kinglozzer> Haha yep
1511: [16:20:38] <zpyrock> ciao
1512: [16:20:40] <kinglozzer> cya
1513: [16:20:40] <Smashcat> Boom!
1514: [16:20:45] <Smashcat> It's worked, cheers!
1515: [16:20:47] <zpyrock> good golly miss molly
1516: [16:21:02] <Smashcat> Haha, sorry about being noobish - I really don't use this at all
1517: [16:21:03] <kinglozzer> Home time for me too
1518: [16:21:07] <kinglozzer> Long weekend!
1519: [16:21:10] <zpyrock> so yeah. depending on the apache setup, you can remove the whole rewritebase directive
1520: [16:21:26] <Smashcat> Ok
1521: [16:21:32] <zpyrock> maybe
1522: [16:21:50] <zpyrock> that way it (hopefully) won't cause issues in future (unless it's needed)
1523: [16:21:50] <kinglozzer> cya
1524: [16:21:52] * kinglozzer quit ()
1525: [16:22:08] <zpyrock> idk, rewritebase is one of those things
1526: [16:22:18] <zpyrock> a better idea is probably to git rm .htaccess
1527: [16:22:30] <zpyrock> err, git rm --cached
1528: [16:22:34] <Smashcat> Thanks very much for the help - yeah I'll remove, or ignore .htaccess
1529: [16:22:42] <zpyrock> ignore is safe.
1530: [16:22:47] <zpyrock> probably
1531: [16:22:51] <catcher> Smashcat, I'm a little concerned about where else you saw a different rewritebase
1532: [16:22:55] <zpyrock> you'll need to remember to alter it when you put site live though.
1533: [16:23:01] <zpyrock> also what catcher just said.
1534: [16:23:06] <Smashcat> Yeah I don't want to remove it and push that, or it'll rmeove it from the live site when they update I guess
1535: [16:23:41] <Smashcat> catcher: I'm checking - I did see it defined as '/' though, when I checked earlier.
1536: [16:23:42] <zpyrock> https://github.com/silverstripe/silverstripe-installer/blob/3.1/.htaccess
1537: [16:24:48] <Smashcat> I need to get something to eat - thanks again!
1538: [16:24:52] <zpyrock> I think this is why people should be encouraged to never ever use the installer :<
1539: [16:25:05] <zpyrock> Smashcat: http://doc.silverstripe.org/framework/en/topics/environment-management#
1540: [16:25:23] <zpyrock> this way your mysite/_config.php won't also cause cross install issues.
1541: [16:25:25] <Smashcat> Ok, will look at that in a bit
1542: [16:25:35] <zpyrock> yeah it's hometime
1543: [16:25:40] <Smashcat> later!
1544: [16:25:40] <zpyrock> gl, hf!
1545: [16:25:47] * zpyrock quit (Quit: Page closed)
1546: [16:29:21] * svandragt quit (Ping timeout: 258 seconds)
1547: [16:30:04] * muskie9 quit (Read error: Connection reset by peer)
1548: [16:30:39] * muskie9 has joined #silverstripe
1549: [16:52:53] * joelpittet quit ()
1550: [16:57:46] * SphereSilverNL has joined #silverstripe
1551: [16:58:07] <SphereSilverNL> Hey guys, how're you?
1552: [17:00:28] <sekjal> howdy, SphereSilverNL
1553: [17:06:29] <catcher> can't complain
1554: [17:09:19] * muskie9 quit (Remote host closed the connection)
1555: [17:10:31] * houleness has joined #silverstripe
1556: [17:11:48] * houleness quit (Client Quit)
1557: [17:19:17] * anselmdk has joined #silverstripe
1558: [17:19:22] * gelignite has joined #silverstripe
1559: [17:20:32] * ocm quit (Read error: Connection reset by peer)
1560: [17:48:30] * anselmdk quit (Quit: anselmdk)
1561: [17:57:16] <FrozenFire> On a scale of 1 to crap, how hard is it to get SQLite working with SS nowadays?
1562: [17:58:10] <FrozenFire> Unrelatedly, has anyone put together a service manager for SS yet?
1563: [18:04:33] <SphereSilverNL> It's easy to get SS working with SQLite....
1564: [18:07:22] <FrozenFire> Alright. I recall it being non-trivial the last time I did it... like over a year ago. :P
1565: [18:08:57] <FrozenFire> Is ConfigureFromEnv supposed to be included *after* config files, nowadays?
1566: [18:10:08] <FrozenFire> Err, rather, before config files.
1567: [18:17:29] * FrozenFire remarks that SQLite is *not* easier nowadays
1568: [18:17:52] <FrozenFire> It's easy if you give no shits about having sane configuration. Not easy if you want maintainable configs. :)
1569: [18:21:40] * babak has joined #silverstripe
1570: [18:26:11] * FrozenFire sighs and creates a config mess
1571: [18:26:32] * lerni_ has joined #silverstripe
1572: [18:48:03] * travis-ci has joined #silverstripe
1573: [18:48:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2350 (3.1 - fd344c3 : Will Rossiter): The build passed.
1574: [18:48:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/0ccd9f5bb9a5...fd344c3b3e37
1575: [18:48:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/23143728
1576: [18:48:03] * travis-ci has left #silverstripe
1577: [18:48:59] * sekjal has left #silverstripe
1578: [18:50:48] * jenniferaslan quit (Ping timeout: 258 seconds)
1579: [18:53:20] <simon_w|air> FrozenFire, you just stick SS_DATABASE_CLASS in your _ss_environment.php
1580: [18:54:15] <FrozenFire> Ah. Docs for the module are shit, then.
1581: [18:54:16] <FrozenFire> :P
1582: [18:56:36] <FrozenFire> Thanks
1583: [19:04:15] * jenniferaslan has joined #silverstripe
1584: [19:10:15] * lerni_ quit (Remote host closed the connection)
1585: [19:18:14] * lerni_ has joined #silverstripe
1586: [19:31:44] * Azure quit (Quit: My MBP went to sleep.)
1587: [19:34:10] * Azure has joined #silverstripe
1588: [19:35:02] * Ryan-Toast has joined #silverstripe
1589: [20:09:22] * jedateach has joined #silverstripe
1590: [20:12:22] * UndefinedOffset quit (Quit: Leaving.)
1591: [20:16:10] * antmas has joined #silverstripe
1592: [20:16:43] <antmas> moinmoinmoin
1593: [20:17:55] <simon_w> So, the lightbulb above my desk blew
1594: [20:18:01] <simon_w> HAPPY LAST DAY AT WORK, BITCH
1595: [20:18:20] <antmas> simon_w: as in, last day for good?
1596: [20:18:28] <simon_w> Well, in the country
1597: [20:18:55] <antmas> simon_w: got a job in Aus yet?
1598: [20:18:58] <simon_w> Nope
1599: [20:19:03] <antmas> :P
1600: [20:20:00] * jedateach quit (Quit: jedateach)
1601: [20:20:01] <antmas> simon_w: good timing with easter though
1602: [20:20:06] <antmas> when do you fly?
1603: [20:20:12] <simon_w> ANZAC Day
1604: [20:20:19] <simon_w> Picked this time for a reason :p
1605: [20:20:30] <Ryan-Toast> They grow up so fast. *tear
1606: [20:21:32] <antmas> meanwhile, the rest of NZ is underwater
1607: [20:21:37] <antmas> fuck this rain
1608: [20:22:07] <Ryan-Toast> yay, rain. Don’t have to go outside this weekend.
1609: [20:22:29] <antmas> -_-
1610: [20:22:30] <antmas> ugh
1611: [20:22:35] <antmas> cabin feaver
1612: [20:22:55] <antmas> fever*
1613: [20:23:06] <simon_w> You need it to be raining to not have to go outside?
1614: [20:23:07] <Ryan-Toast> reading in bed fever.
1615: [20:23:09] <simon_w> Sucks to be you!
1616: [20:23:56] <antmas> simon_w: is a vampire
1617: [20:26:44] * SphereSilverNL quit (Quit: bye)
1618: [20:28:39] <antmas> this weekend will all reading too I think
1619: [20:30:20] <antmas> not sure what to read though
1620: [20:30:30] <antmas> should probably finish SoIaF
1621: [20:30:43] * an_Eskimo has joined #silverstripe
1622: [20:35:47] * jedateach has joined #silverstripe
1623: [20:38:03] * gelignite quit (Quit: http://bit.ly/nkczDT)
1624: [20:39:39] * zipp has joined #silverstripe
1625: [20:39:40] <Ryan-Toast> antmas: Mistborn series is pretty light, andentertaining if you like fantasy.
1626: [20:39:42] <zipp> morning
1627: [20:39:48] <Ryan-Toast> zipp: hai
1628: [20:39:52] <zipp> \o/
1629: [20:40:25] <antmas> zipp: did you have another sprog?
1630: [20:40:28] <antmas> also
1631: [20:40:32] <zipp> not yet..
1632: [20:40:33] <antmas> zipp: \o/
1633: [20:40:50] <antmas> zipp: ah, was wondering, seems a little early if IRK
1634: [20:40:52] <zipp> just been busy.. harassing ss23 was taking up to much of my time
1635: [20:40:53] <antmas> IRC*
1636: [20:41:01] <antmas> zipp: true true
1637: [20:41:12] <zipp> well…. 3 weeks 5 days till due date, so could come anytime now
1638: [20:41:26] <antmas> zipp: boy or girl?
1639: [20:41:38] <zipp> the belly on the wife is fucking huge, I think the babys going to hit the slip and slide two weeks early...
1640: [20:41:39] <zipp> boy
1641: [20:41:46] <Ryan-Toast> errmerrgerrd, just discovered that phpstorm writes your comments for you, awwwwww yiss
1642: [20:42:02] <antmas> zipp: I'd bet it'll be early
1643: [20:42:06] <zipp> Ryan-Toast: it is the bomb diggity, set up live templates yet?
1644: [20:42:15] <Ryan-Toast> Live templates?
1645: [20:42:24] <antmas> live templates are the tits
1646: [20:42:32] <Ryan-Toast> wat are this?
1647: [20:42:39] <zipp> Ryan-Toast: magic, to save your fingers
1648: [20:43:24] <antmas> I call it code heroin injection
1649: [20:43:50] <antmas> or in other words, this http://www.jetbrains.com/phpstorm/webhelp/live-templates.html
1650: [20:44:03] <zipp> Ryan-Toast: https://www.youtube.com/watch?v=ZxaVNGSax80 5 mins that is show comment but applies to php as well
1651: [20:44:31] <zipp> I have it setup so I can type "getCMS<tab>" and it completes that block same with all the $has_many, $many_many - just saves the fingers :)
1652: [20:44:38] <zipp> you can make it do some cool stuff
1653: [20:45:03] <antmas> yeah I've only lightly touched it
1654: [20:45:09] <antmas> need to use it more often
1655: [20:45:31] <Ryan-Toast> Do want.
1656: [20:46:25] <zipp> you can make it use the file name your on as well, for example you could set it up so if you wrote newpage<tab> it would look at the file name, and inject class <filename> extends Page {} class <filename>_Controller extends Page_Controller {}
1657: [20:46:59] <antmas> zipp: yeah I tried that and it's awesome
1658: [20:47:09] <zipp> the shortcuts are good, I wrote out the good ones like search everything, open file and all that and put it on a sticky on my monitor
1659: [20:47:15] <antmas> seems kinda silly, but it does add up to save heaps of time
1660: [20:47:29] <zipp> the open file is useful, you can just write things like HomePage and select it, instead of using the mouse to hit the nav
1661: [20:47:44] <Ryan-Toast> mmm going to make some sweet section generators.
1662: [20:47:44] <zipp> other IDE's do that as well, the poiint is get to learn the shortcuts, and you'll be a boss
1663: [20:49:18] <Ryan-Toast> puts my end comments on another line :(
1664: [20:49:55] <zipp> ?
1665: [20:50:05] <zipp> variable names in silverstripe confuse me!
1666: [20:51:21] <antmas> Ryan-Toast: you mean it drops them down a line?
1667: [20:51:26] <Ryan-Toast> ye
1668: [20:51:31] <antmas> weird
1669: [20:51:52] <Ryan-Toast> probs how other people like it, but I’;m weird like that.
1670: [20:52:11] <zipp> On a object in the DB it's common practise to have caps, eg Title, and URLSegment so in the template you do $Title and $URLSegment which is all cool. But I thought it was practise to have lowercaps on variable names, like $page = Page::get()->first() so in the template (if you pass that) you access it via $page.Title - argh
1671: [20:52:15] <antmas> I don't mind it (forgot it did that)
1672: [20:52:50] <antmas> zipp: lowercap variables
1673: [20:53:05] <antmas> is what it should be
1674: [20:53:22] <zipp> yes, so why do we use first letter caps for DB field names?
1675: [20:53:28] <zipp> eg Title
1676: [20:54:01] <antmas> well, normally you wouldn't
1677: [20:54:03] <antmas> but ss...
1678: [20:54:05] <antmas> :P
1679: [20:54:40] <zipp> mm it'd look pretty rangi to have ID, ClassName, Created, LastEdited then have name, address, email
1680: [20:54:48] <antmas> in .net I use uppercase for DB field names, but can pass them using lower case
1681: [20:55:08] <zipp> yea, thats windows for ya ;-)
1682: [20:55:17] <antmas> awwwww yeaaaaah
1683: [20:55:17] * zipp asks the big questions!
1684: [20:55:35] * antmas raises fist
1685: [20:55:38] <antmas> o/
1686: [20:56:31] <simon_w> No more Android device for me!
1687: [20:56:33] <zipp> i remember building websites on windows computer (zonks ago), and it'd all work sweet then ftp it up and it'd break, because windows didn't care about the case of filenames, you could use image.JPG even if it was image.jpg
1688: [20:56:33] <antmas> awwww yisss, easter gift pack from the 'rents
1689: [20:56:35] <simon_w> Well, once Mark gets in
1690: [20:56:46] <zipp> simon_w: oh?
1691: [20:56:56] <simon_w> zipp, sounds like what happens with PSR0!
1692: [20:57:07] <simon_w> zipp, yeah, had this Galaxy Nexus to top up my Snapper.
1693: [20:57:13] <simon_w> Figured I should give it back before leaving
1694: [20:57:28] <zipp> once Mark Z gets in? :)
1695: [20:57:41] <simon_w> I'm not at Facebook :p
1696: [20:57:44] <simon_w> That was last week
1697: [20:57:49] <zipp> meet the man?
1698: [20:57:56] <antmas> simon_w: isn't that taking a small step backward? ;P
1699: [20:58:25] <simon_w> antmas, eh, it can't top up my MyWay :p
1700: [20:58:30] <simon_w> zipp, nope
1701: [20:58:50] <antmas> simon_w: I keed I keed
1702: [20:58:59] <zipp> simon_w: btw got a question. I have an array like array('item1', 'item2', 'item3'); how can I look that in a template? do I have to create an ArrayList with ArrayData items of (array('Item' => 'item1'), array('Item' => 'item2')) ?
1703: [20:59:10] <zipp> *loop that
1704: [20:59:13] <simon_w> zipp, yes
1705: [20:59:23] <antmas> simon_w: dude
1706: [20:59:28] <zipp> thanks..
1707: [20:59:31] <antmas> how do you read that and instantly answer it
1708: [20:59:34] <antmas> 0.O
1709: [20:59:55] <zipp> antmas: he just said yes, it was 50/50
1710: [21:00:01] <antmas> lol
1711: [21:00:08] <antmas> you know what I mean
1712: [21:00:13] <simon_w> zipp, new ArrayList(array_map(function($v) { return new ArrayData(['Item' => $v]); }, $items))
1713: [21:00:34] <zipp> simon_w: thanks
1714: [21:00:36] <simon_w> antmas, phat skillz :p
1715: [21:00:40] <antmas> ^^ case and point
1716: [21:00:44] <antmas> simon_w: :D
1717: [21:00:54] <simon_w> I feel like this is hot chocolate weather
1718: [21:01:01] <simon_w> Good thing it's just across the road
1719: [21:01:39] <zipp> I thought if I passed a object (extends nothing) I could access it's functions from the template?… just seems to say nope!
1720: [21:01:48] <zipp> passed the object via customise
1721: [21:01:53] <simon_w> zipp, nope, has to extend ViewableData
1722: [21:02:08] <zipp> and have a toTemplate method, or just extend ViewableData?
1723: [21:02:22] <simon_w> Just needs to extend it
1724: [21:02:32] <simon_w> Needs the forTemplate() if you want to do $Object
1725: [21:02:41] <simon_w> Anyway, hot chocolate time!
1726: [21:02:50] <zipp> simon_w: thanks!
1727: [21:11:33] <simon_w> Mmm, hot chocolate
1728: [21:12:17] <zipp> yay \o/
1729: [21:12:41] <zipp> that is quite a few new ArrayList and new ArrayDate going on there…. I am just glade SS is a high performance php framework. phew!
1730: [21:12:42] <simon_w> Pretty much
1731: [21:13:00] <simon_w> zipp, run it on HHVM. Object creation is so much faster :D
1732: [21:13:00] <zipp> god damn it, I keep saying glade not glad
1733: [21:13:19] <zipp> or……. (whispers) laravel
1734: [21:13:25] * zipp didn't say that
1735: [21:13:46] <simon_w> I think most of us that do non-CMS things end up using Laravel :p
1736: [21:14:09] <zipp> this is just on the verge
1737: [21:14:10] <Ryan-Toast> I use cake :P
1738: [21:14:22] <zipp> I hate cake now..
1739: [21:14:24] <simon_w> I eat cake!
1740: [21:14:29] <zipp> array(array(array some more array
1741: [21:14:32] <Ryan-Toast> I love the bake script, so good.
1742: [21:14:42] <simon_w> Gonna have some cake on Monday :)
1743: [21:14:49] <simon_w> Lolly cake at that!
1744: [21:14:52] <zipp> Ryan-Toast: use jeffereys laravel generators, is better
1745: [21:15:05] <Ryan-Toast> I haven’t really triued Laravel.
1746: [21:15:15] <Ryan-Toast> mainly because all my websites are cms based.
1747: [21:15:19] <Ryan-Toast> dem clients, yo
1748: [21:15:35] <simon_w> I've got two projects going using SS, two with beatbox and four or so with Laravel
1749: [21:15:47] <zipp> yeap, all depends on the job nomsayin
1750: [21:16:21] <simon_w> Well, I would be using beatbox instead of Laravel if I could run HHVM on my MBA
1751: [21:16:27] <Ryan-Toast> Thjis rain is not fucking around, man.
1752: [21:16:42] <simon_w> Well, it isn't the first of May
1753: [21:17:51] <zipp> new trailer park boys out soon… and 24… the level of tv nostalgia is high
1754: [21:17:59] <simon_w> (https://www.youtube.com/watch?v=kCbD8nsxcd8 for those that don't get the reference)
1755: [21:19:10] <antmas> yay tax refund
1756: [21:19:24] <Ryan-Toast> antmas: how long ago did you apply?
1757: [21:19:26] <simon_w> I'm waiting for mine
1758: [21:19:31] <zipp> Ryan-Toast: one thing I dont' lke about phpstorm which I havn't looked into, is pasting into a ss file removes formatting...
1759: [21:19:34] <antmas> Ryan-Toast: used MyTax yesterday
1760: [21:19:39] <antmas> got notification text today
1761: [21:19:42] <Ryan-Toast> antmas: why?
1762: [21:19:53] <zipp> antmas: you can do it on the ird website..
1763: [21:19:53] <antmas> Ryan-Toast: why mytax?
1764: [21:20:03] <Ryan-Toast> zipp: you can turn that off.
1765: [21:20:05] <antmas> I get zero fees from them ;)
1766: [21:20:14] <Ryan-Toast> antmas: how?
1767: [21:20:31] <antmas> Ryan-Toast: I helped them move office last year (Nelson branch)
1768: [21:20:37] <simon_w> antmas, I get zero fees when clicking the three buttons on the IRD website :p
1769: [21:20:38] <Ryan-Toast> ah.
1770: [21:20:43] <Ryan-Toast> Scam artists.
1771: [21:20:46] <antmas> simon_w: cool story
1772: [21:20:58] <antmas> they really are
1773: [21:21:04] <simon_w> antmas, it really annoyed the HHVM team :D
1774: [21:21:13] <antmas> simon_w: haha, I bet
1775: [21:21:52] <antmas> none of them ever actually present their fees to the public without requiring the average user to click through 10+ pages of fine print
1776: [21:22:05] * Pyromanik has joined #silverstripe
1777: [21:22:27] <Ryan-Toast> We're finalising your income tax details. Check back after 15 May 2014
1778: [21:22:28] <antmas> lame, don't actually get the refund until June
1779: [21:22:34] <Ryan-Toast> anyone else get that?
1780: [21:22:47] <antmas> Ryan-Toast: with who?
1781: [21:22:52] <Ryan-Toast> IRD
1782: [21:22:56] <antmas> oh
1783: [21:23:11] <antmas> yeah if you do it directly from them, it will take longer
1784: [21:23:14] <Pyromanik> who else do you pay tax to antmas o.0 ?
1785: [21:23:21] <Pyromanik> bs
1786: [21:23:29] <Pyromanik> IRD way best way
1787: [21:23:35] <antmas> Pyromanik: lol
1788: [21:23:37] <antmas> not really
1789: [21:23:40] <Pyromanik> really
1790: [21:23:45] <Pyromanik> no excuses
1791: [21:23:52] <antmas> last 3 times I've done it, it has taken weeks to get a notification
1792: [21:23:58] <Ryan-Toast> I’m worried that I’ll owe them $$
1793: [21:23:59] <Pyromanik> unless you like being ripped off for something that's ultimately easy.
1794: [21:24:13] <Pyromanik> Ryan-Toast, stress less
1795: [21:24:13] <antmas> Pyromanik: I don't get ripped off (but everyone else does)
1796: [21:24:24] <Pyromanik> antmas, lucky you
1797: [21:24:30] <antmas> Pyromanik: indeed
1798: [21:24:36] <antmas> otherwise, IRD if you want to wait
1799: [21:24:38] <Ryan-Toast> Pyromanik: Just a little stress :P
1800: [21:24:43] <antmas> either way, it doesn't matter
1801: [21:24:49] <Pyromanik> you work for herpaderp tax refund derpy mall unit don't you?
1802: [21:25:03] <Pyromanik> :P
1803: [21:25:05] <antmas> you don't get the refund until June
1804: [21:25:07] <antmas> Pyromanik: :P
1805: [21:25:20] <antmas> I moved 3 computers and a desk for them
1806: [21:25:26] <Pyromanik> yeah, but I mean these 'tax agents' that have popped up all over the fucking place in the last 3 years
1807: [21:25:30] <Pyromanik> such a crock of shit
1808: [21:25:33] <antmas> 0 fees and a $350 office chair :D
1809: [21:25:39] <Pyromanik> hah, nce
1810: [21:25:48] <antmas> the boss is a cunt though
1811: [21:25:53] <antmas> of MyTax
1812: [21:26:53] <antmas> I was a bit worried I owed them money this time, like last year
1813: [21:26:55] <antmas> bastards
1814: [21:27:51] <Pyromanik> So I watched this tv show where billy bob thornton went around killing people and the hobbit got typecast as the down on his luck nervous guy again.
1815: [21:28:09] <Pyromanik> mytax always take money.
1816: [21:28:12] <Pyromanik> that's why they do what they do.
1817: [21:28:14] <antmas> Pyromanik: yeah that sounds aweful
1818: [21:28:25] <Pyromanik> which takes them about 20 seconds and all they do is pretty much just click a button.
1819: [21:28:35] <antmas> Pyromanik: aye aye
1820: [21:28:45] <Pyromanik> something you can do yourself on the internet (ird.govt.nz) in about 2 mins.
1821: [21:28:50] <antmas> 'no more jumping through hoops to get your refund'!
1822: [21:29:05] <Pyromanik> this is well known fact, yet these fucking bullshit companies are still around.
1823: [21:29:26] <antmas> the earn a shit tonne of money through it too
1824: [21:29:33] <Pyromanik> exactly
1825: [21:29:39] <Pyromanik> where do people think that money is coming from?
1826: [21:29:39] <antmas> because 99% of the tax paying public are retards
1827: [21:29:53] <Pyromanik> My mate used to work for IRD
1828: [21:29:55] * r3v3rb has joined #silverstripe
1829: [21:30:00] <Pyromanik> get people ringing him up going ape shit
1830: [21:30:14] <Pyromanik> he'd be all "remember when you signed that thing for the refund guys..."
1831: [21:30:21] <antmas> Pyromanik: HAI btw
1832: [21:30:21] <antmas> ;P
1833: [21:30:23] <r3v3rb> hmm, how do I add a component to a gridfield in a modeladmin
1834: [21:30:24] <Pyromanik> "that's just for refunds, this has nothing to do wiht it!"
1835: [21:30:36] <Pyromanik> "... you didn't read the small print did you>"
1836: [21:30:51] <Pyromanik> r3v3rb,there's a function for it
1837: [21:30:59] <Pyromanik> like getCMSFields, only more like editGridField
1838: [21:31:00] <Pyromanik> or something
1839: [21:31:03] <Pyromanik> I dunno
1840: [21:31:07] <Pyromanik> api.silverstripe.org
1841: [21:31:28] <Pyromanik> if in doubt, hook editform
1842: [21:31:52] <Pyromanik> injector all the things, too easy breezy
1843: [21:31:58] <Pyromanik> r3v3rb, dafuq should I do for easter?
1844: [21:32:11] <r3v3rb> go kill a bunny
1845: [21:32:17] <Pyromanik> It's like... tomorrow and shit
1846: [21:32:19] <Pyromanik> :<
1847: [21:32:40] <zipp> sort of, technically isn't it more on Sunday?
1848: [21:32:50] <Pyromanik> I was going to go to the continent, but it's fucking expensive :<
1849: [21:33:00] <Pyromanik> zipp, yeah nah, don't be silly.
1850: [21:33:20] <r3v3rb> Pyromanik you are on the continent - the continent of brain dead idiots
1851: [21:33:27] <Pyromanik> iland.
1852: [21:33:29] <Pyromanik> island*
1853: [21:33:38] <r3v3rb> so come on someone show me how to fuck up a modeladmin gridfield
1854: [21:33:50] <Pyromanik> editform hook!
1855: [21:33:52] <simon_w> Pyromanik, you can drive to China!
1856: [21:34:01] <Pyromanik> simon_w, I could!
1857: [21:34:05] <Pyromanik> but... too expensive
1858: [21:34:21] <r3v3rb> Pyromanik, so client wants site to go live tomorrow - last week they added five new page types, new designs (again) and only started filtering content yesterday!
1859: [21:34:31] <Pyromanik> and technically one could drive to china from nz in the same fashion (drive on to boat, drive off boat)
1860: [21:34:53] <Pyromanik> r3v3rb, this isn't stress on you.
1861: [21:34:54] <simon_w> Would probably be faster too
1862: [21:34:58] <Pyromanik> just put it live :>
1863: [21:35:24] <r3v3rb> Pyromanik i could its just they need one of the last page types for the go live!
1864: [21:35:26] <r3v3rb> arghhhh
1865: [21:35:40] <Pyromanik> hmm
1866: [21:35:41] <Pyromanik> guts
1867: [21:35:56] * r3v3rb = tired and a bit fucked off
1868: [21:35:57] * lerni_ quit (Remote host closed the connection)
1869: [21:36:10] <r3v3rb> but to be fair I will hammer the invoice when it goes in
1870: [21:36:31] <Pyromanik> I'm tired and fucked off too
1871: [21:36:39] <r3v3rb> with a bit of luck I wont need to work for three months after this - but they have already lined me up another site!
1872: [21:36:41] <Pyromanik> and lonely :<
1873: [21:37:05] * r3v3rb is lonely too - in my new office @ 22:36 on my own :(
1874: [21:37:08] <Pyromanik> r3v3rb, so after you're done with that one you won't need to work for 6 months!
1875: [21:37:26] * lerni_ has joined #silverstripe
1876: [21:37:43] <r3v3rb> aye Pyromanik
1877: [21:38:01] <Pyromanik> I want to drive something with four wheels and a shitload of safety devices very fast.
1878: [21:38:05] <r3v3rb> modeladmin modeladmin
1879: [21:38:14] <Pyromanik> where can I do this?
1880: [21:38:34] <r3v3rb> Pyromanik you can have my lotus without any safety devices - well a seatbelt it has and thats it
1881: [21:38:44] <Pyromanik> nah, that doesn't sound comfortable.
1882: [21:38:53] <r3v3rb> :P not when you hit a wall
1883: [21:38:56] <Pyromanik> although driving a lotus does sound fun... but cops still have my licence.
1884: [21:38:57] <r3v3rb> modeladmin
1885: [21:39:02] <r3v3rb> modeladmin
1886: [21:39:03] <r3v3rb> modeladmin
1887: [21:39:03] <Pyromanik> yeah, edit form
1888: [21:39:06] <r3v3rb> gridfield
1889: [21:39:07] <antmas> Pyromanik: lolwut
1890: [21:39:07] <r3v3rb> gridfield
1891: [21:39:08] <Pyromanik> editform
1892: [21:39:09] <r3v3rb> gridfield
1893: [21:39:32] <Pyromanik> antmas, someone turned it in after it got stolen.
1894: [21:39:40] <Pyromanik> I told them to fucking fingerprint it
1895: [21:39:52] <antmas> Pyromanik: ah righyt
1896: [21:39:55] <antmas> right*
1897: [21:40:07] <antmas> Pyromanik: how's work?
1898: [21:40:14] <antmas> also, the face?
1899: [21:40:16] <Pyromanik> obviously now they're just holding on to it for the same reason they're keeping all my good clothes
1900: [21:40:20] <Pyromanik> face is... healing.
1901: [21:40:25] <Pyromanik> work is... eh.
1902: [21:40:48] <Pyromanik> I like the idea, but so far it's been a bit of a pain because no real spec and the process we're developing the system to compliment is a bit of a mess.
1903: [21:40:55] <r3v3rb> http://api.silverstripe.org/3.1/class-ModelAdmin.html#_getEditForm <- Pyromanik is that what you think I need
1904: [21:40:58] <Pyromanik> (so no spec and no chance of a spec, basically)
1905: [21:41:06] <Pyromanik> also code igniter... da fuck was someone thinking :<
1906: [21:41:07] <antmas> no process = fail company
1907: [21:41:24] <Pyromanik> antmas, yeah. They do alright, but it's all adhoc type shit.
1908: [21:41:32] <antmas> hate
1909: [21:41:54] <Pyromanik> there's a process, it's just... everyone works it slightly differently, and every customer has their own requirements (thus edge case for each cunt), etc.
1910: [21:42:26] <Pyromanik> I built a one way RM (because there no objects for it to be an orm)
1911: [21:42:29] <r3v3rb> holy moley, how do I use getEditForm then
1912: [21:42:34] <Pyromanik> because yeah, stuff.
1913: [21:42:49] <Pyromanik> r3v3rb, same way you use getCMSFields?
1914: [21:43:01] <r3v3rb> no shit
1915: [21:43:08] <r3v3rb> who'd have thought :D
1916: [21:43:24] <Pyromanik> well yeah, then you can use splinjector to ... do it's thing
1917: [21:43:29] <Pyromanik> it's thang.
1918: [21:43:58] * danfo has joined #silverstripe
1919: [21:44:17] <simon_w> \section{Ansible}\label{ansible}
1920: [21:44:17] <simon_w> Because automation is awesome.
1921: [21:44:17] <simon_w> That's all the documentation it needs, right?
1922: [21:45:16] <Pyromanik> I don't even know what that is simon_w
1923: [21:45:28] <Pyromanik> what is this ansible?
1924: [21:45:31] <Pyromanik> ANSI ble.
1925: [21:45:32] <simon_w> http://www.ansible.com
1926: [21:46:47] <Pyromanik> too tired, plz summarise?
1927: [21:46:52] <antmas> christ
1928: [21:46:55] <r3v3rb> Pyromanik i'm struggling to see how I can alter the default gridfield still
1929: [21:46:57] <simon_w> Server automation
1930: [21:46:59] <antmas> another person retiring today
1931: [21:47:10] <r3v3rb> antmas wish i was
1932: [21:47:11] <simon_w> antmas, that's what you get for working at a council :p
1933: [21:47:23] <antmas> this guy is like 60
1934: [21:47:30] <simon_w> antmas, IS IT zipp's DAD?
1935: [21:47:56] <antmas> lol his name is 'Giles'
1936: [21:47:58] <antmas> such old
1937: [21:48:07] <zipp> simon_w: lol yes, because the population here is only 5 ppl
1938: [21:48:20] <Pyromanik> r3v3rb, public function getEditForm($blah, $blah, $howevermamnyparamsthereare) { $fields = parent::getEditForm(); $fields->getFieldByName('datgridfield')->getConfig()->addAndRemoveMeSomeComponents(); return $fields;
1939: [21:48:26] <simon_w> zipp, well, it is Tasman :p
1940: [21:48:27] <antmas> 'oh, you live in Nelson'? 'YOU MUST KNOW ANTMAS AND ZIPP
1941: [21:48:29] <zipp> antmas: my granddad I think is the shortest serving council member...
1942: [21:48:43] <r3v3rb> Pyromanik found this from stackover http://doc.silverstripe.org/framework/en/reference/modeladmin#results-customization
1943: [21:48:58] <antmas> fuck you private number cal
1944: [21:49:01] <antmas> denied
1945: [21:49:12] <simon_w> THE COLD NEITHER BOTHERED ME ANYWAY
1946: [21:49:25] <zipp> antmas: could be your tax refund, txt was an error, that $ is what you owe ird
1947: [21:50:08] <Pyromanik> you mean own the nigerians who run histaxrefund
1948: [21:50:15] <Pyromanik> awe*
1949: [21:50:18] <Pyromanik> owe*
1950: [21:51:30] <Pyromanik> r3v3rb, yeah but that's for modifying the list, not the gridfield config.
1951: [21:52:14] <r3v3rb> I need to add the GridFieldOrderableRows mod to the grid config which this code should do...
1952: [21:52:54] <zipp> reminds me of good ol fonejacker…. https://www.youtube.com/watch?v=aUuvzgRBELM (Fonejacker - Steam Cleaning the Monies Vault)
1953: [21:53:08] <r3v3rb> aye, Pyromanik that worked a treat
1954: [21:53:09] <Pyromanik> r3v3rb, and then remove all the filterable search fields, right?
1955: [21:53:18] <Pyromanik> sorting a modeladmin is 100% stupid
1956: [21:53:19] <simon_w> STANDING, FROZEN, IN THE LIFE I'VE CHOSEN
1957: [21:53:26] <Pyromanik> Told my old bosses this so many fucking times.
1958: [21:53:29] <r3v3rb> Pyromanik why why why
1959: [21:53:38] <Pyromanik> client's coudn't get this through their fucking heads.
1960: [21:53:44] <Pyromanik> when you have a list of shit
1961: [21:53:46] <Pyromanik> and then you order shit
1962: [21:53:49] <Pyromanik> and then you search shit
1963: [21:53:59] <Pyromanik> and then you don't like the search result order so you reorder some more
1964: [21:54:09] <Pyromanik> then you get mad because it changed the overall list order,
1965: [21:54:24] <Pyromanik> then I get a fucking phonecall asking if I can fucking fix it
1966: [21:54:25] <Pyromanik> it's a bug
1967: [21:54:35] <Pyromanik> and I'm all DAFUQ DID YOU FUDCKING EXPECT YOU RETARD
1968: [21:55:03] <Pyromanik> with the extra D and everything.
1969: [21:55:09] <Pyromanik> fud-cking
1970: [21:55:39] <basso_> I have a $db field defined as boolean. I need to use whitespace in the fieldname, so it appears without dashes or something inside the cms. Can this be achieved?
1971: [21:55:41] <r3v3rb> lmao
1972: [21:56:02] <r3v3rb> Pyromanik, take a pill
1973: [21:56:08] <Pyromanik> basso_, private static $singular_name = '...'
1974: [21:56:20] <Pyromanik> private staitc $plural_name = '...s'
1975: [21:56:40] <Pyromanik> r3v3rb, if by pill you mean I should sleep? sounds good :>
1976: [21:56:48] <basso_> Pyromanik: thank you
1977: [21:57:16] <Pyromanik> basso_, but generally they're automatically generated on CamelCaseSplitting, just like tabs.
1978: [21:57:28] <Pyromanik> MyClassName => My Class Name
1979: [21:57:37] <Pyromanik> and My Class Names
1980: [21:57:42] <Pyromanik> generally.
1981: [21:58:02] <Pyromanik> not alywas guessed correctly though (espeically in the case of the plural).
1982: [21:58:12] <Pyromanik> because generally people like camel case and not underscores or dashes.
1983: [21:58:23] <Pyromanik> but you're free to do as you wich of course basso_
1984: [21:58:47] <Pyromanik> right, i'm out.
1985: [21:58:51] <Pyromanik> g'naight
1986: [21:59:06] <Pyromanik> good luck r3v3rb :>
1987: [21:59:29] <Pyromanik> it should technically work I guess, but I think it's a silly idea as per above.
1988: [21:59:37] <basso_> Pyromanik: thank for the extra info :0)
1989: [21:59:39] <Pyromanik> if it was a static unchanging list, that would be ok.
1990: [21:59:42] <Pyromanik> :>
1991: [21:59:46] <Pyromanik> you're welcome basso_
1992: [21:59:56] <Pyromanik> over&out
1993: [21:59:58] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- \o/)
1994: [22:13:22] <zipp> hm
1995: [22:13:46] <zipp> If i have <% with Something %> should I be able to do an <% include File %> and in my include access items off my something, as if it was all inline?
1996: [22:15:45] * Danae has joined #silverstripe
1997: [22:15:49] <simon_w> zipp, yes
1998: [22:16:04] <zipp> not… working.. ss 3.0.5...
1999: [22:16:41] <zipp> my template gets pull in, any anything I pass in via the <% include line works..
2000: [22:18:25] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
2001: [22:20:50] * Smashcat has joined #silverstripe
2002: [22:21:20] <Smashcat> Hi, is it possible to inject my own html for an additional form element into a Form object?
2003: [22:23:08] <spronk> damn
2004: [22:23:54] <ss23> zipp: :(
2005: [22:24:03] <zipp> ss23: :)
2006: [22:24:21] * catcher quit (Quit: Leaving)
2007: [22:24:26] <simon_w> Smashcat, like with a LiteralField?
2008: [22:24:30] <ss23> Wonderful weather in NZ at the moment!
2009: [22:25:24] <Smashcat> simon_w: I don't know what that is. I just need to inject the raw html for a form element instead of constructing it using objects (query is quite complex, and much too slow to do via the SS framework)
2010: [22:25:53] <simon_w> Smashcat, http://api.silverstripe.org/3.1/class-LiteralField.html
2011: [22:27:02] <Smashcat> simon_w: Ah seems right, thanks. The return from the Form constructor is just html too I guess?
2012: [22:27:13] <simon_w> No, it's a Form object
2013: [22:27:31] * Stomach quit (Read error: Connection reset by peer)
2014: [22:28:19] * LoveDuckie has joined #silverstripe
2015: [22:28:36] * babak quit (Quit: Connection closed for inactivity)
2016: [22:28:41] <Smashcat> wimon_w: Right, so when the template calls a method; in this case to a method that returns a new Form object - that is then translated somewhere into html so I can't access it before it goes to the template?
2017: [22:28:44] <Ryan-Toast> Is there a way to link to a Memeber’s security page?
2018: [22:29:33] * spronk quit (Ping timeout: 250 seconds)
2019: [22:29:50] <simon_w> Smashcat, right
2020: [22:30:20] <simon_w> Ryan-Toast, edit a user, copy the URL, make the ID a variable
2021: [22:30:40] <Ryan-Toast> simon_w: 10/10
2022: [22:31:14] * spronk has joined #silverstripe
2023: [22:31:47] <zipp> time to see a woman about a baby!
2024: [22:31:52] * zipp quit (Quit: zipp)
2025: [22:31:56] <spronk> who broke Auckland then
2026: [22:32:24] <simon_w> JAFAs
2027: [22:32:32] <Danae> sorry
2028: [22:32:40] <spronk> lulz
2029: [22:32:47] <Danae> oh if you want a fun day you should ride to work on a motorcycle :D
2030: [22:32:57] <Danae> I even saw people cycling to work
2031: [22:33:00] <Danae> such madness
2032: [22:34:34] <spronk> dear god. :|
2033: [22:34:51] * Stomach[Ache] has joined #silverstripe
2034: [22:34:54] * Stomach[Ache] is now known as Stomach
2035: [22:38:40] <Smashcat> I'm liking Silverstripe - it takes me a week to do what I can do in a day with just php ;-) I get paid by the hour, so it's cool :)))
2036: [22:38:51] <spronk> yarp
2037: [22:38:56] <spronk> except it doesn't.
2038: [22:39:31] <Smashcat> Actually it does - my billings have gone up, and it really is great :)
2039: [22:39:45] <Danae> heheh
2040: [22:40:00] <Danae> once you learn it it will take you a very short time to do everything
2041: [22:40:15] <Danae> so you can totally relax and bill for those hours :D
2042: [22:40:15] <spronk> yeah
2043: [22:40:19] <spronk> if SS is taking you longer than raw php
2044: [22:40:21] <spronk> you're doing it wrong
2045: [22:40:25] <Smashcat> I've been pushing it to the client as "more extensible", but in reality it's just free work - hehe
2046: [22:40:54] <spronk> what would you use in your "just php" stuff ?
2047: [22:41:40] <Smashcat> It's like a lot of Frameworks really, it's fine until you want to do something outside of how the author expect you to use it, then it's a bit of a liability. I quite like it though, as it's their time, not mine. I guess eventually they'll catch on.
2048: [22:42:23] <ss23> http://earth.nullschool.net/#current/wind/surface/level/overlay=total_precipitable_water/orthographic=175.86,-41.92,1974 :D
2049: [22:42:26] <ss23> https://pbs.twimg.com/media/BlXsk8iCEAA0-5n.jpg:large
2050: [22:42:48] <Danae> what is this, Scotland?
2051: [22:43:10] <spronk> Smashcat: what sort of stuff would you use when not using SS?
2052: [22:43:14] <Danae> haha the wind is going faster than the speed I was actually doing on the way to work
2053: [22:43:16] <Danae> jeebs
2054: [22:43:19] <spronk> haha
2055: [22:43:20] <spronk> tamaki drive
2056: [22:43:22] <spronk> lulz
2057: [22:43:37] <simon_w> It happens every time it rains
2058: [22:43:40] <spronk> WERPS
2059: [22:44:32] <Danae> I wonder what the SH16 causeway looks like
2060: [22:44:45] <spronk> man, XRO at 28.xx
2061: [22:44:49] <Danae> normally at high tide in this sort of weather it just floods
2062: [22:44:51] <spronk> that's a big drop from the 40s
2063: [22:45:31] <spronk> aren't they fixing the SH16 causeway?
2064: [22:45:51] <Danae> yeah I've seen the roadworks, it's a long way off though
2065: [22:45:53] <Danae> I think
2066: [22:46:06] <Smashcat> spronk: Well I'm mainly a C/Java developer, but I just use raw PHP and a library of stuff I've built over years that I can plug in. I've written CMS frameworks in the past, and they eventually all go the same way - overuse of OO slows them down, and they become monsters to work with. SS will eventually go that way (if it's not already). I had to optimise a silte running on SS a year or so...
2067: [22:46:07] <Smashcat> ...back. It had to run a process in SS overnight (4 hours) to run queries on user data - pretty big data sets. Optimising took it down to under a minute (SS was creating huge objects for all the data, where a couple of raw queries did it all in the DB) :)
2068: [22:46:29] <antmas> mmmm hot cross buns
2069: [22:46:47] <Danae> SH16 causeway to finish in 2017 luld
2070: [22:46:50] <Danae> luls*
2071: [22:47:18] <spronk> hmm
2072: [22:47:27] * Stomach[Ache] has joined #silverstripe
2073: [22:47:40] <spronk> that sorta stuff isn't really hard to "fix" in SS though :P
2074: [22:47:57] <spronk> and the slow version si much quicker to build than doing it from scratch, all thihngs considered
2075: [22:48:14] <spronk> (assuming you need CMS-y functionality for an admin, plus a front end, plus templating etc)
2076: [22:49:23] * Stomach[Ache] quit (Read error: Connection reset by peer)
2077: [22:49:43] * violetina has joined #silverstripe
2078: [22:49:44] * Stomach[Ache] has joined #silverstripe
2079: [22:49:51] <Smashcat> spronk: Well the original devs were doing things the "correct" way, instantiating lots of objects, and using PHP to filter, whereas I just accessed the raw data instead. Because I rarely use SS, it's a big time sink trying to fight against all the OO encapsulation to get at the stuff to put on the page generally. But meh, it's all money :)
2080: [22:50:22] <spronk> all that encapsulation helps maintainability down the track :P
2081: [22:50:35] <spronk> (assuming the maintainer knows ss that is :P0
2082: [22:50:35] <spronk> )
2083: [22:50:50] <Smashcat> spronk: People say that, but in my experience, most of the time sites are just rebuilt with little use of the original code/data.
2084: [22:51:05] <spronk> yeahh, it does depend on what sort of sites you're talking about
2085: [22:51:05] <Stomach[Ache]> maintainence is not a rewrite
2086: [22:51:16] * Stomach quit (Ping timeout: 276 seconds)
2087: [22:51:22] <spronk> our site has had the same set of extensions and codebase from ss2.3 to 3.1
2088: [22:51:25] * Stomach[Ache] is now known as Stomcch
2089: [22:51:28] <spronk> with some mods along the way to keep it current
2090: [22:51:28] * Stomcch is now known as Stomach
2091: [22:51:37] <spronk> but ultimately has been pretty smooth sailing
2092: [22:52:09] <spronk> also, SS's ORM should allow you to do most queries at the db level, so it sounds like the original stuff might not ahve been all that correct :)
2093: [22:52:26] <Smashcat> spronk: Most of my work is events, so sites have lifespans of weeks at most generally. (I mostly do embedded/mobile, but PHP at times). So once they're working, they generally don't get changed.
2094: [22:52:36] <spronk> i see i see
2095: [22:52:56] <spronk> from my experience SS is about ~30% quicker to work with than anything else i've used seriously
2096: [22:53:09] <antmas> Smashcat: who do you work for?
2097: [22:53:27] <Smashcat> spronk: I was just thinking about the "Form" object, and how much work is done just to generate a simple form with 2 elements. It's a few lines of PHP, but a huge set of objects in SS to do the same thing.
2098: [22:53:30] <spronk> (that list includes... drupal, joomla, wpress, django, zope, refinery cms)
2099: [22:53:33] <Smashcat> antmas: Freelance
2100: [22:53:38] <antmas> ah ok
2101: [22:53:39] <antmas> nice
2102: [22:53:40] <antmas> :D
2103: [22:53:44] <Smashcat> :)
2104: [22:53:53] <spronk> yeah... some of it is pretty heavy
2105: [22:54:03] <spronk> but it doesn't really matter that much
2106: [22:54:17] <spronk> performance isn't an issue
2107: [22:54:56] <Smashcat> spronk: Depends on the traffic. Our sites are spikey - e.g. a booking site might get 90% of its traffic on day one, then it drops off. So fast responses are crucial.
2108: [22:54:59] <spronk> SS will scale-up just as well as most, and when you really need the juice you have to go to partial or static caching anyway
2109: [22:55:35] <spronk> Smashcat: that's what AWS is for :)
2110: [22:55:58] <spronk> SO INSTANCE! MUCH FAST!
2111: [22:56:09] * desperate has joined #silverstripe
2112: [22:56:16] <desperate> hi everyone
2113: [22:56:16] <antmas> Smashcat: any examples of your work you wouldn't mind sharing?
2114: [22:56:20] <Smashcat> spronk: Well, to an extent - much cheaper if it can be added to the clients existing servers.
2115: [22:56:25] <antmas> desperate: guten morgen
2116: [22:56:28] <desperate> trying to reorder some fileds: http://paste2.org/ZMAMmcU3
2117: [22:56:36] <spronk> heh, i usually find the opposite :)
2118: [22:56:54] <spronk> existing servers = development work to make it faster
2119: [22:57:12] <desperate> in my exampple I can't get displayVideoimage to appear after VideoURL
2120: [22:57:14] <spronk> aws = a few dollars extra per hour at peak time
2121: [22:57:18] <desperate> what am I doing wrong?
2122: [22:57:37] <Smashcat> antmas: It's mainly event work, so disappears after it's over. Lots of car companies, and have done work for Google, TV companies etc. Bit of a niche area. As said, it's mostly embedded/mobile for me - building hardware and firmware for event stands. The sites are built mainly for people to book places at events
2123: [22:57:55] <antmas> Smashcat: fair enough
2124: [22:58:05] <antmas> sounds like a stressful job :P
2125: [22:58:18] <antmas> quick start --- quick finish etc
2126: [22:58:22] <Smashcat> antmas: Very :) We never have enough time and deadlines can't move
2127: [22:58:47] <spronk> perfect for SS + throwing masses of hardware at the problem!!
2128: [22:58:48] <antmas> Smashcat: nz based?
2129: [22:58:59] <spronk> <3 mooreslaw
2130: [22:59:56] <Smashcat> antmas: UK. The client's been nominated for a Clio award for a shop window install we did recently (I used WebGL, Face recognition and gesture recognition for it) so I'm off to New York in the not too distant future :)
2131: [23:00:22] <spronk> wo
2132: [23:00:23] <spronk> o
2133: [23:00:29] <antmas> holy crap
2134: [23:00:31] <antmas> nice
2135: [23:00:31] <Smashcat> That's what I said - hehe
2136: [23:01:47] <antmas> WebGL is good times
2137: [23:01:59] <Smashcat> Just hope I haven't been saying too many incriminating things by email, so the NSA grab me at the airport - hehe
2138: [23:02:19] * nickmolhoek has joined #silverstripe
2139: [23:02:21] <Smashcat> Yeah, using WebGL and webworkers you can get really good performance from a browser
2140: [23:02:49] <Smashcat> I use Android quite a bit, with OpenGL for big displays too. Works great.
2141: [23:02:52] * jedateach has left #silverstripe
2142: [23:03:03] <Smashcat> Bit off topic I guess.
2143: [23:03:06] <antmas> I dabbled in it a year or so ago to make a game
2144: [23:03:17] <Smashcat> Really? How'd you get on?
2145: [23:03:25] <antmas> pretty good actually
2146: [23:03:39] <antmas> got me 100% on my paper and $4000
2147: [23:03:40] <antmas> :P
2148: [23:03:50] <antmas> had some node.js stuff going on and sockets etc
2149: [23:04:09] <Smashcat> Nice! Did you use ThreeJS? Yeah, I use Node too - it works well with serial comms to microcontrollers.
2150: [23:04:16] <spronk> fucking node.js
2151: [23:04:25] <antmas> no ThreeJS
2152: [23:04:51] <Danae> wow you guys are so pro ;_;
2153: [23:05:21] <antmas> I wish I knew more about sockets and workers
2154: [23:05:26] <antmas> need to find time :/
2155: [23:05:43] <spronk> actually not that complex
2156: [23:05:55] <spronk> can learn msot of what you need to know in.. a day at most
2157: [23:05:59] <Smashcat> Node has been really stable. Did a shop window for a big store on Oxford Street couple of years back. A load of big screens, all with full-screen browsers, and NodeJS was used to synchronise them so animations jumped from one screen to another. (It detected people at the window, and if they said the right thing, it would react to them)
2158: [23:06:25] <spronk> node.js has some great ideas
2159: [23:06:26] <Danae> that's awesome
2160: [23:06:29] <spronk> but javascript. bleh
2161: [23:06:43] <Smashcat> WebWorkers are well worth learning if you want to write games, or high performance animations in WebGL. You can use all the cores of the CPU - normally JS will only use 1 core.
2162: [23:06:58] <antmas> Smashcat: yeah I used node to get 100 browser instances across multiple networks to play my game in real-time (or close to)
2163: [23:07:16] <antmas> awesome for syncing
2164: [23:07:24] <antmas> spronk: +1
2165: [23:07:51] <spronk> doing a major project in node.js right now, the ecosystem and tooling has hardly moved in 2 years since i last looked at it
2166: [23:08:21] <antmas> spronk: true, but it didn't seem like it needed to
2167: [23:08:22] <antmas> IMO
2168: [23:08:25] <spronk> the js folk still haven't figured out a documentation standard, so there's very little in the way of code navigation tools, and the AltJS stuff has fragmented the ecosystem a lot
2169: [23:08:25] <Smashcat> antmas: hehe, I used to run a site called javascript-games.org about 20 years ago - One of my games was video pool that people could play against eachother across the net. Worked in IE4 / NS4 :) Used image requests to piggyback cookies to transfer data about :)
2170: [23:08:44] <antmas> Smashcat: holy shit!
2171: [23:08:50] <antmas> like pulling teeth to get that working :P
2172: [23:09:13] * DesignerX has joined #silverstripe
2173: [23:10:17] * spronk is hoping dart gets bit
2174: [23:10:18] <spronk> big*
2175: [23:10:31] <Smashcat> antmas: Haha, actually worked pretty well - I let the site lapse, got too much traffic (200k people a day, and I had no advertising) so it's all gone. I used to convert old arcade games to JS - got Tempest, Galaxians, Pengo, Pacman etc all pretty faithful to the originals. It's funny when people think IE5 is bad, but even IE4 could do it :)
2176: [23:11:09] <ss23> Snap! favorited your Tweet : Not to mention IPv6 and no CGN with Snap. It's a more "premium" service for sure.
2177: [23:11:24] <spronk> o_O
2178: [23:11:39] <antmas> Smashcat: nice!
2179: [23:11:49] <antmas> ss23: wtf lol
2180: [23:12:00] <ss23> https://twitter.com/ss2342/status/456562844717154304 I feel sorry for bigpipe, but it's true
2181: [23:18:11] <desperate> if i have a has_one relation called 'foo', when I do GETCMSFIELDs can i rename the label as follows: $fields->renameField('foo', 'bar');
2182: [23:18:17] <spronk> shit its cold.
2183: [23:18:25] * jordanmk has joined #silverstripe
2184: [23:19:30] * Colin[pi] has joined #silverstripe
2185: [23:19:34] <Danae> desperate: Which SS version are you running/
2186: [23:20:00] <desperate> 3.14
2187: [23:20:08] <ss23> 3.1.4!
2188: [23:20:15] <desperate> hang on...
2189: [23:20:24] <spronk> 159?
2190: [23:20:29] <Danae> I think you should go $fields->dataFieldByName('foo')->setTitle('bar')
2191: [23:20:36] <Danae> although someone correct me if that's wrong
2192: [23:20:50] <spronk> 26535?
2193: [23:20:54] <spronk> 89793?!
2194: [23:23:12] <Danae> hey is there a yaml setting that allows you to set the default records? I was just gonna use requireDefaultRecords
2195: [23:23:50] * lerni_ quit ()
2196: [23:24:56] <Danae> It's sunny now?!
2197: [23:25:03] <Danae> omg Auckland go home you are drunk
2198: [23:25:48] <spronk> lulz
2199: [23:26:41] <desperate> @Danae that crashes my CMS: $fields->dataFieldByName('foo')->setTitle('bar')
2200: [23:27:07] <Danae> haha wow
2201: [23:28:02] <Danae> can you give a full paste of that class using that paste2.org site?
2202: [23:28:18] <Danae> or as much as you are able
2203: [23:29:27] <Stomach> its not that sunny :P
2204: [23:30:04] <Stomach> just readd the field
2205: [23:30:05] <Danae> Looks like a beautiful summer day from my office :D
2206: [23:31:16] <Stomach> $fields->addFieldToTab('Root.Main', DropdownField::create('FooID', 'New Title', Foo::get()->map()->toArray());
2207: [23:32:05] <desperate> Danae: http://paste2.org/zBX3Chyd
2208: [23:32:12] <desperate> I stripped it down
2209: [23:32:19] <Ryan-Toast> how can I make fields sit at the top of the page in a dataobject?
2210: [23:32:33] <Stomach> add your first field
2211: [23:32:36] <Stomach> thats at the top right?
2212: [23:32:48] <Danae> desperate: Stomach's answer will work for you
2213: [23:32:49] <Stomach> thats the only one thats ever going to be at the top
2214: [23:32:53] <Stomach> :P
2215: [23:32:58] <Ryan-Toast> Stomach: Adding the fields via decorator
2216: [23:33:24] <simon_w> ss23, LAST DAY AT WORK
2217: [23:33:31] <Stomach> $fields->addFieldToTab('Root.TabName', TextField::create('TF'), 'Title');
2218: [23:33:40] <Stomach> if their is a field called title at the top of their page?
2219: [23:33:43] <Stomach> oh wait actually
2220: [23:33:44] <Stomach> this is hard
2221: [23:33:57] <Stomach> the fields have to be added before extensions in the thing you are extending
2222: [23:34:04] <antmas> dat awkward moment when stack overflow has no answer
2223: [23:34:04] <Ryan-Toast> laaame
2224: [23:34:15] <Stomach> simon_w - can you confirm that?
2225: [23:34:26] <simon_w> Stomach, that it's my last day at work? Yes
2226: [23:34:34] <Stomach> CONFIRMED
2227: [23:34:40] <Stomach> happy last day of work
2228: [23:34:44] <Stomach> Wellington will miss you
2229: [23:34:51] <simon_w> Related, Wellington people: buy my stuff
2230: [23:34:51] <simon_w> http://www.trademe.co.nz/Members/Listings.aspx?member=3234277
2231: [23:35:35] <antmas> dat couch
2232: [23:36:14] <Stomach> yeah Ryan -
2233: [23:36:26] <Stomach> $this->beforeUpdateCMSFields(function ($fields) { ... });
2234: [23:36:33] <simon_w> antmas, give me moneys and it's yours! :p
2235: [23:36:33] <Stomach> although thats for when you need to replace the field
2236: [23:36:52] <Stomach> you might be able to use the 'before' third param of addFieldToTab still if you get the tab name right
2237: [23:37:15] * LoveDuckie quit (Read error: Connection reset by peer)
2238: [23:38:18] <antmas> simon_w: I'd put it in my man cave
2239: [23:38:30] <antmas> aka, spare room with heaps of shit in it
2240: [23:40:56] <antmas> eeeeeeee
2241: [23:41:05] <antmas> can't get enough of these tracks https://www.youtube.com/watch?v=eJE_V3QACRk
2242: [23:41:11] * antmas headbangs ss23
2243: [23:43:01] <Colin[pi]> this is both awesome and hilarious: https://www.youtube.com/watch?v=rBHjx4dYxjA
2244: [23:44:13] <simon_w> https://www.youtube.com/watch?v=nf91CU_uI7Q
2245: [23:44:42] <spronk> :|
2246: [23:44:51] <antmas> simon_w: enough already, everyone has seen that crap :P
2247: [23:45:02] <simon_w> antmas, not enough! :p
2248: [23:45:11] <antmas> ZOMG THIS NEW DISNEY MOVIE IS AWESOME SQUUUUEEEEEE
2249: [23:46:39] <Colin[pi]> what is this fascination with Frozen?
2250: [23:46:44] <Danae> naa naa naa hey nanaa
2251: [23:47:02] <Danae> I saw it for the first time yesterday
2252: [23:47:14] <Danae> it was okay :P
2253: [23:47:24] <Danae> mostly it was adorable
2254: [23:47:41] <antmas> Colin[pi]: dudes falling in love with the main characters in creepy ways
2255: [23:48:05] <Colin[pi]> it reminds me of this whole subculture that evolved around the Once-ler in the Lorax movie
2256: [23:48:29] <antmas> yeah people jump on it after they see and forget about it soon after
2257: [23:48:38] <antmas> sam thing with Tangled when that came out
2258: [23:48:50] <Danae> Brave was like that
2259: [23:48:53] <Danae> that movie was like
2260: [23:49:01] <Danae> unexpected twist as in everyone is bears wat
2261: [23:49:19] <Colin[pi]> I liked Tangled
2262: [23:49:32] <Colin[pi]> Brave was a bit "ehhh.", seen it once
2263: [23:49:40] <Colin[pi]> it was essentially a disney princess movie too
2264: [23:49:49] <Danae> it had heaps of potential but they took it on a weird sort of tangent
2265: [23:49:59] <antmas> it's the minor characters that sell it
2266: [23:50:02] <antmas> and the songs
2267: [23:50:08] <antmas> Horse from Tangled
2268: [23:50:14] <antmas> Orlov from Frozen
2269: [23:50:17] <antmas> etc etc
2270: [23:50:31] <Danae> I like the 2D disney classics a bit more
2271: [23:50:36] <antmas> same here
2272: [23:50:41] <Danae> eg, Mulan
2273: [23:50:48] <Danae> damn that movie is awesome
2274: [23:51:52] <antmas> hot damn
2275: [23:52:04] <antmas> how the eff do you maintain pagination on postback?
2276: [23:52:33] <antmas> asp gridviews -_-
2277: [23:52:36] * ss23 headbangs antmas
2278: [23:53:10] * ss23 clicked the killer be killed link
2279: [23:53:20] <ss23> sounds generic metal/rock
2280: [23:53:25] <ss23> stuff I listen to, sure :D
2281: [23:53:33] <antmas> ss23: oh yeah
2282: [23:53:35] <antmas> generic as
2283: [23:53:46] <antmas> just good 'boppy' metal
2284: [23:55:36] <antmas> a good change from the metal I normally listen to :O
2285: [23:56:20] <ss23> mm :D
2286: [23:57:20] <antmas> that SmashCat guy's work sounded interesting
2287: [23:57:30] <antmas> would love to have time to dabble in that stuff more
2288: [23:58:02] * Motoservo_ has joined #silverstripe

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