#silverstripe IRC Log

IRC log for 9 January 2014

All timestamps are in UTC.

1: [00:01:43] * camfindlay quit (Quit: camfindlay)
2: [00:02:36] * Pyromanik quit (Ping timeout: 252 seconds)
3: [00:02:36] * [1]Pyromanik is now known as Pyromanik
4: [00:07:47] <ss23> eh
5: [00:07:54] <ss23> I'm getting sick of so much burgerfuel spronk :(
6: [00:07:59] * Surkow|laptop has joined #silverstripe
7: [00:08:15] <Pyromanik> sups, see topic for win Surkow|laptop :D
8: [00:08:24] <Pyromanik> lol ss23, you troll.
9: [00:08:37] <ss23> lol
10: [00:08:46] <ss23> :3
11: [00:09:16] <Surkow|laptop> hmm
12: [00:09:21] <Surkow|laptop> framework
13: [00:09:24] <Pyromanik> and cms.
14: [00:09:34] <Pyromanik> that don't suck.
15: [00:09:39] <Pyromanik> (in either case)
16: [00:09:48] <Surkow|laptop> whelp, got to add it to a growing list of things I should research
17: [00:09:53] <Pyromanik> :D
18: [00:10:04] <Pyromanik> easy to research. Install, job done pretty much :P
19: [00:14:19] * willr quit (Quit: willr)
20: [00:15:24] <Pyromanik> I get no burgerfuel D:
21: [00:16:22] * camfindlay has joined #silverstripe
22: [00:16:55] <Pyromanik> HI CAM
23: [00:17:01] <Pyromanik> HOW IS THE COMMUNITY TODAY?
24: [00:17:58] * mojo5000 has joined #silverstripe
25: [00:23:27] <Pyromanik> going to sleep.
26: [00:23:33] <ss23> https://github.com/silverstripe/silverstripe-framework/pull/2760#issuecomment-31890751
27: [00:23:36] <ss23> ahahaha
28: [00:24:23] <simon_w> I suppose I'll go poke travis on the CMS one
29: [00:32:43] <spronk> SHUTUP SS23
30: [00:33:00] <ss23> I just finished the burger
31: [00:33:10] <ss23> I have the spud fries left
32: [00:33:15] <ss23> But you know, when you have it every day, it loses appeal
33: [00:33:18] <ss23> You should count your blessings, spronk
34: [00:35:02] <spronk> HATE YOU SO MUCH RIGHT NOW <3
35: [00:35:15] * DigNZ1 has joined #silverstripe
36: [00:36:20] <ss23> spronk: <3
37: [00:36:23] <ss23> :D
38: [00:37:48] * DigNZ quit (Quit: DigNZ)
39: [00:41:25] * kingko has joined #silverstripe
40: [00:48:24] <spronk> they won't even say when they're planning on opening
41: [00:48:26] <spronk> SO ANNOYING
42: [00:51:04] * willr has joined #silverstripe
43: [00:51:10] * willr quit (Changing host)
44: [00:51:10] * willr has joined #silverstripe
45: [00:53:39] * UncleCheese quit (Quit: UncleCheese)
46: [00:57:33] * Surkow|laptop quit (Quit: Bye bye - Laptop goes to sleep)
47: [00:57:43] * UncleCheese has joined #silverstripe
48: [01:07:23] * danfo quit (Quit: danfo)
49: [01:08:24] * UncleCheese quit (Quit: UncleCheese)
50: [01:12:19] * willr quit (Quit: willr)
51: [01:21:57] * danfo has joined #silverstripe
52: [01:22:48] * FrozenFire has joined #silverstripe
53: [01:22:48] * FrozenFire quit (Changing host)
54: [01:22:48] * FrozenFire has joined #silverstripe
55: [01:26:43] <ss23> http://www.stuff.co.nz/waikato-times/opinion/9588577/Drummond-Vaccination-is-a-lie A+ A+
56: [01:38:47] <Colin[pi]> wtf
57: [01:38:50] <Colin[pi]> is he for real?
58: [01:39:57] <simon_w> Colin[pi], Was it you that got the measles?
59: [01:40:09] <Colin[pi]> um, no?
60: [01:40:30] <simon_w> Someone in Canberra did. Are you sure it's not you?
61: [01:40:53] <Colin[pi]> I'm sure at least someone in Canberra got measles recently
62: [01:41:07] <ss23> Colin[pi]: DID YOU READ THE FUCKING ARTICLE?
63: [01:41:27] <Colin[pi]> reading it still :P
64: [01:42:12] <Colin[pi]> so, um, sarcasm piece?
65: [01:43:54] <Colin[pi]> "We have websites. They've got words and they all link to each other and everything." lol
66: [01:44:08] * mobiusnz has joined #silverstripe
67: [01:47:18] <ss23> lol
68: [01:47:20] <ss23> Yes, sarcasm
69: [01:47:20] <ss23> :P
70: [01:48:28] <Colin[pi]> until I got to the last para it was reading still just as a crazy person :D
71: [01:48:45] * mobiusnz quit (Ping timeout: 252 seconds)
72: [01:49:14] * mobiusnz has joined #silverstripe
73: [01:50:46] * UncleCheese has joined #silverstripe
74: [02:00:03] <simon_w> Turn off javascript and go to nz1.php.net
75: [02:00:06] * danfo quit (Quit: danfo)
76: [02:00:49] <ss23> rofl
77: [02:00:53] <ss23> <img src="/images/noscript.jpg">
78: [02:00:55] <ss23> This, I presume?
79: [02:00:59] <simon_w> No, refresh
80: [02:01:05] <simon_w> You did it in the wrong order :p
81: [02:01:06] <ss23> Oh
82: [02:01:07] <ss23> SHIT
83: [02:01:11] <ss23> dude
84: [02:01:12] <ss23> wtf is this
85: [02:01:32] <Colin[pi]> LOL
86: [02:01:44] <Colin[pi]> php is run by bronies?
87: [02:02:12] <simon_w> First MLP picture on one of my servers
88: [02:04:49] <simon_w> Aww, looks like it went away
89: [02:05:24] <Colin[pi]> the image? still there
90: [02:05:25] <simon_w> https://github.com/php/web-php/commit/681bea8bb4d646ef628ab80bdfec0df07a07c561 :(
91: [02:05:33] <simon_w> Not on my mirror
92: [02:09:13] <Colin[pi]> wow the php site code is pretty shitty
93: [02:10:45] <ss23> Yes.
94: [02:10:58] <Colin[pi]> not a surprise really :D
95: [02:14:16] * irogue_ has joined #silverstripe
96: [02:14:35] * discorpi1 has joined #silverstripe
97: [02:14:59] * irogue23 quit (Ping timeout: 272 seconds)
98: [02:15:00] * discorpia quit (Ping timeout: 272 seconds)
99: [02:25:40] <simon_w> Time to assert() all the things!
100: [02:30:11] <unsignedint> 15:09 Colin[pi]: wow the php site code is pretty shitty <-- wow. yes it is. youd think that the PHP site would be well-written as a showcase of how to write PHP
101: [02:30:45] <Colin[pi]> I guess there's a lot of legacy
102: [02:30:56] <Colin[pi]> but yeah... it's um, interesting code
103: [02:37:24] * mojo5000 quit (Remote host closed the connection)
104: [02:38:06] * mojo5000 has joined #silverstripe
105: [02:40:01] * mojo5000 quit (Remote host closed the connection)
106: [02:46:58] * joelpittet quit (Remote host closed the connection)
107: [02:47:33] * joelpittet has joined #silverstripe
108: [02:52:00] * joelpittet quit (Ping timeout: 252 seconds)
109: [03:13:19] * zippy__ has joined #silverstripe
110: [03:38:18] * discorpi1 is now known as discorpia
111: [04:01:35] * travis-ci has joined #silverstripe
112: [04:01:35] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1765 (3.1 - 6fae1e6 : Will Rossiter): The build passed.
113: [04:01:35] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c84d9ee00c9e...6fae1e6392d7
114: [04:01:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/16631244
115: [04:01:36] * travis-ci has left #silverstripe
116: [04:01:44] * mobiusnz quit (Quit: Leaving.)
117: [04:14:22] * cloph_away quit (Read error: Operation timed out)
118: [04:15:18] * cloph_away has joined #silverstripe
119: [04:26:29] * DigNZ1 quit (Quit: DigNZ1)
120: [04:36:11] * joelpittet has joined #silverstripe
121: [04:38:13] * camfindlay quit (Quit: camfindlay)
122: [04:40:38] * joelpittet quit (Read error: Operation timed out)
123: [04:44:52] * Stomach quit (Ping timeout: 252 seconds)
124: [04:48:40] * UncleCheese quit (Quit: UncleCheese)
125: [04:49:31] * irogue23 has joined #silverstripe
126: [04:53:41] * FrozenFire quit (Disconnected by services)
127: [04:54:20] * FrozenFire has joined #silverstripe
128: [04:55:22] * irogue_ quit (*.net *.split)
129: [05:02:39] * mobiusnz has joined #silverstripe
130: [05:07:02] * mobiusnz quit (Ping timeout: 252 seconds)
131: [05:25:46] * Zauberfisch23 quit (Quit: leaving)
132: [05:29:31] * Shrike_Finland quit (Quit: Leaving.)
133: [06:01:01] * jrthomer quit (Remote host closed the connection)
134: [06:19:43] * kingko quit (Ping timeout: 272 seconds)
135: [06:25:09] * joelpittet has joined #silverstripe
136: [06:28:40] * new_learner has joined #silverstripe
137: [06:29:24] * joelpittet quit (Ping timeout: 252 seconds)
138: [06:31:35] * jrthomer has joined #silverstripe
139: [06:36:33] * jrthomer quit (Ping timeout: 252 seconds)
140: [06:43:42] <new_learner> what wiill this return $image_url = substr($image->URL, 1); ?
141: [06:45:43] <guzzlefry> Try and see?
142: [06:46:00] <guzzlefry> I think it returns everything but the first character of the string...
143: [06:51:41] * zippy__ quit (Quit: zippy__)
144: [06:53:00] <new_learner> but the web page displays [Notice] Trying to get property of non-object
145: [06:53:36] <new_learner> what does property of non-object actually mean ?
146: [06:56:37] <guzzlefry> $image isn't actually an object.
147: [06:56:49] <guzzlefry> And you're trying to get the URL property from it.
148: [07:00:13] <new_learner> $image = Image::get()->byID($data->FotoID); isnt image object from this line?
149: [07:01:55] <guzzlefry> Assuming an Image object with that ID exists.
150: [07:03:05] <guzzlefry> if (!$image) { die("uh oh!"); }
151: [07:03:25] <guzzlefry> wait
152: [07:03:29] <guzzlefry> new_learner: What is $data?
153: [07:03:33] <guzzlefry> Another DataObject?
154: [07:03:39] <new_learner> ya
155: [07:03:42] <guzzlefry> oh
156: [07:03:45] <guzzlefry> You can just do...
157: [07:03:57] <guzzlefry> $image = $data->Foto();
158: [07:04:46] <new_learner> is this similar to what i have written?
159: [07:04:53] <guzzlefry> Then test that one actually exists.
160: [07:05:01] <guzzlefry> basically the same result, yes
161: [07:06:36] <new_learner> testing would be better option but ...why isnt $image getting any value
162: [07:07:15] <new_learner> $data->FotoID is being tested above this line
163: [07:07:38] <new_learner> if($data->FotoID){............}
164: [07:08:46] <guzzlefry> new_learner: What is the value of $data->FotoID?
165: [07:09:23] <new_learner> that is an id .......
166: [07:09:44] <guzzlefry> If the ID is zero then the nothing is assigned.
167: [07:09:49] <guzzlefry> but, looks like you test for that.
168: [07:10:41] <guzzlefry> new_learner: It's possible that the file was deleted.
169: [07:10:46] * travis-ci has joined #silverstripe
170: [07:10:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1767 (master - b52a821 : Will Rossiter): The build passed.
171: [07:10:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/39d42e4ea350...b52a82185f25
172: [07:10:47] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/16636546
173: [07:10:47] * travis-ci has left #silverstripe
174: [07:10:47] <guzzlefry> $image->Exists() to test.
175: [07:11:49] <new_learner> the part of coe is http://sspaste.com/paste/show/52ce48dd99149
176: [07:13:24] <guzzlefry> Use if ($image->Exists()) to make sure that it actually exists.
177: [07:17:32] <new_learner> Call to a member function Exists() on a non-object in /var/www
178: [07:17:59] <guzzlefry> k so
179: [07:18:14] <guzzlefry> No Foto is assigned to $data
180: [07:18:28] <new_learner> oh...
181: [07:18:43] <new_learner> is that issue with database......
182: [07:22:14] <guzzlefry> not sure
183: [07:24:00] <guzzlefry> oh
184: [07:26:31] <guzzlefry> new_learner: cross-reference $data->FotoID with the File table in the database.
185: [07:26:58] <guzzlefry> So whatever $data->FotoID equals, make sure there's a row with that ID in the File table.
186: [07:34:16] * Shrike_Finland has joined #silverstripe
187: [07:39:48] <new_learner> its all going out of my catch....need one online mentor.........
188: [07:44:12] <guzzlefry> new_learner: #phpmentoring does that stuff. Not really SilverStripe specific though. :/
189: [07:48:36] <new_learner> how to log into many channels in freenode irc
190: [07:50:27] <guzzlefry> new_learner: /join #channelName
191: [07:52:36] <new_learner> where to input /join #channelName?
192: [07:53:08] <new_learner> got it
193: [07:53:12] <new_learner> thanx ....
194: [07:53:32] <guzzlefry> np
195: [08:04:31] * mobiusnz has joined #silverstripe
196: [08:09:08] * mobiusnz quit (Ping timeout: 260 seconds)
197: [08:12:42] * violetina has joined #silverstripe
198: [08:14:13] * joelpittet has joined #silverstripe
199: [08:14:31] * pippy__ has joined #silverstripe
200: [08:16:47] * pippy quit (Ping timeout: 252 seconds)
201: [08:18:59] * joelpittet quit (Ping timeout: 260 seconds)
202: [08:19:32] * pippy has joined #silverstripe
203: [08:19:32] * pippy__ quit (Ping timeout: 252 seconds)
204: [08:53:36] <new_learner> is DataObject deprecated after ss 2.4
205: [08:53:36] <new_learner> ?
206: [08:56:22] * hubertusanton has joined #silverstripe
207: [08:57:40] <Colin[pi]> new_learner: no
208: [08:58:52] <new_learner> what is the difference btwn dataobject and datalist
209: [08:59:23] <guzzlefry> DataList is a set of DataObjects.
210: [08:59:30] <hubertusanton> datalist is a list of dataobjects
211: [09:05:19] * mobiusnz has joined #silverstripe
212: [09:09:39] <new_learner> what this error indicating User Error] DataList::create Can't find data classes (classes linked to tables) for ?
213: [09:10:15] * mobiusnz quit (Ping timeout: 272 seconds)
214: [09:28:19] * Martimiz has joined #silverstripe
215: [09:28:35] * Zauberfisch has joined #silverstripe
216: [09:32:41] * micmania1 has joined #silverstripe
217: [09:45:33] * Martimiz quit (Ping timeout: 272 seconds)
218: [09:46:45] <new_learner> how to debug ?
219: [10:05:24] <Zauberfisch> new_learner: are you using DataObject::get('Class')?
220: [10:07:15] <new_learner> http://sspaste.com/paste/show/52ce48dd99149
221: [10:08:14] * jrthomer has joined #silverstripe
222: [10:13:19] * jrthomer quit (Ping timeout: 260 seconds)
223: [10:15:51] <new_learner> help me figure out this error [User Error] DataList::create Can't find data classes (classes linked to tables) for . Please ensure you run dev/build after creating a new DataObject.
224: [10:16:29] <micmania1> new_learner, after creating a new DataObject you need to rebuild your database. a DataObject represents a database table.
225: [10:16:42] <micmania1> so go to youdomain.com/dev/build?flush=1
226: [10:16:44] <Zauberfisch> new_learner: so have you ran a /dev/build?
227: [10:16:55] <micmania1> the ?flush=1 will find any new files that you add.
228: [10:18:28] * new_learner quit (Quit: Page closed)
229: [10:21:31] * new_learner has joined #silverstripe
230: [10:25:24] <new_learner> The requested URL /dev/build/ was not found on this server.
231: [10:34:58] <Zauberfisch> new_learner: you are not going to get any help here if you just post things like that without any information or context
232: [10:36:07] <Zauberfisch> we have better things to do than worm all the facts out of you
233: [10:41:32] <micmania1> new_learner: Try working your way through here to gain a better understanding of your problem: http://doc.silverstripe.org/framework/en/tutorials/1-building-a-basic-site
234: [10:42:32] * torstein quit (Remote host closed the connection)
235: [10:54:08] * Colin[pi] quit ()
236: [11:02:48] * jrthomer has joined #silverstripe
237: [11:07:27] * jrthomer quit (Ping timeout: 260 seconds)
238: [11:08:35] * boytikz quit (Quit: Leaving.)
239: [11:12:39] * NobrainerWeb has joined #silverstripe
240: [11:27:39] * Pyromanik has joined #silverstripe
241: [11:43:37] * inadream has joined #silverstripe
242: [11:50:43] <inadream> Hi, a live site suddenly had all page permissions cleared.. CanEditType and CanViewType columns in SiteTree set to empty string for all pages
243: [11:50:47] <inadream> any ideas/
244: [11:51:36] * joelpittet has joined #silverstripe
245: [11:52:04] <Pyromanik> they're probably set to inherit?
246: [11:52:16] <Pyromanik> check site config ('settings' tab)
247: [11:56:49] * joelpittet quit (Ping timeout: 272 seconds)
248: [11:58:52] <inadream> the custom groups are no longer visible on settings > access tab
249: [12:03:58] <Pyromanik> check the security tab, someone may have deleted them.
250: [12:03:59] * NobrainerWeb quit (Quit: NobrainerWeb)
251: [12:05:12] * ARNHOE has joined #silverstripe
252: [12:13:01] * NobrainerWeb has joined #silverstripe
253: [12:13:02] * NobrainerWeb quit (Client Quit)
254: [12:13:24] * NobrainerWeb has joined #silverstripe
255: [12:27:02] * ARNHOE_ has joined #silverstripe
256: [12:30:14] * ARNHOE quit (Ping timeout: 264 seconds)
257: [13:14:44] * UndefinedOffset has joined #silverstripe
258: [13:18:29] * jrthomer has joined #silverstripe
259: [13:25:55] * ARNHOE_ quit ()
260: [13:40:28] * joelpittet has joined #silverstripe
261: [13:44:40] * joelpittet quit (Ping timeout: 258 seconds)
262: [14:03:12] * cloph_away is now known as cloph
263: [14:18:13] * micmania1 quit (Ping timeout: 248 seconds)
264: [14:26:29] * Shrike_Finland quit (Quit: Leaving.)
265: [14:32:25] * NobrainerWeb quit (Quit: NobrainerWeb)
266: [14:36:15] * new_learner quit (Ping timeout: 272 seconds)
267: [14:40:06] * micmania1 has joined #silverstripe
268: [14:43:12] * inadream quit (Quit: Ex-Chat)
269: [14:47:11] * Guits has joined #silverstripe
270: [14:48:23] <Guits> How can I access "somepagepath/myparameter" instead of somepagepath/?param=myparameter?
271: [14:48:30] <Guits> (clean url)
272: [14:50:00] <Zauberfisch> Guits: well, there are several ways to do that, depending on your specific usecase
273: [14:50:47] <Zauberfisch> somepagepath/
274: [14:50:47] <Zauberfisch> is that a SiteTree thingy?
275: [14:50:51] <Guits> yes
276: [14:51:10] <Guits> and myparameter could be anything
277: [14:51:24] <Guits> i dont even need to pick it up later
278: [14:51:42] <Guits> just need to make the path unique
279: [14:52:11] <Zauberfisch> the easiest/best documented way is using a action on that pagetype
280: [14:52:27] <Zauberfisch> so it would be: somepagepath/param/myparameter
281: [14:54:06] <Guits> would i need a controller called param then?
282: [14:54:12] <Guits> and it takes myparameter?
283: [14:54:23] <Guits> just like that?
284: [14:55:54] <Zauberfisch> no, wait
285: [14:57:00] <Guits> :)
286: [14:57:14] <Guits> and allowedactions
287: [14:59:52] * OxFF1 has joined #silverstripe
288: [15:08:19] <Guits> Zauberfisch: you still there?
289: [15:09:07] * catcher has joined #silverstripe
290: [15:10:35] * catcher quit (Client Quit)
291: [15:11:03] * OxFF1 quit (Ping timeout: 260 seconds)
292: [15:11:23] <Zauberfisch> Guits: sorry, was/am occupied elesewhere
293: [15:11:29] <Zauberfisch> I'll be with you in a minute
294: [15:11:30] <Zauberfisch> standby
295: [15:11:42] <Guits> no prob..was afraid my connection was lost
296: [15:13:20] <Zauberfisch> so, Guits
297: [15:13:24] <Zauberfisch> its actually rather easy
298: [15:14:02] <Zauberfisch> class FooPage_Controller extends Page_Controller {
299: [15:14:08] <Zauberfisch> static $allowed_actions = array(
300: [15:14:12] <Zauberfisch> 'foobar'
301: [15:14:13] <Zauberfisch> );
302: [15:14:29] <Zauberfisch> public function foobar(SS_HTTPRequest $request) {
303: [15:14:42] <micmania1> I'm using the framework without the CMS. If there a built in way to show a nice 404 page?
304: [15:14:46] <Zauberfisch> $param = $request->param('ID');
305: [15:14:59] <Zauberfisch> die("the param give is: $param");
306: [15:15:01] <Zauberfisch> }
307: [15:15:02] <Zauberfisch> }
308: [15:15:08] <Zauberfisch> so ...
309: [15:15:10] <Zauberfisch> now you can do:
310: [15:15:27] <Zauberfisch> /somepage/foobar/ohai
311: [15:15:28] <Zauberfisch> and you will see:
312: [15:15:35] <Zauberfisch> the param given is: ohai
313: [15:15:46] <Guits> cool thanx
314: [15:17:50] <Zauberfisch> if you are running ss >= 3.1, then you need to ?flush=1 so that $allowed_actions gets reloaded
315: [15:20:54] <Guits> thanx
316: [15:21:12] <Guits> but my page turns out blank
317: [15:22:00] <Zauberfisch> error reporting not on?
318: [15:22:15] <Guits> no error
319: [15:22:59] <Guits> if i add return "hello"; in the action it just prints hello
320: [15:23:08] <Zauberfisch> Oo
321: [15:23:11] <Guits> I want the page to show as usual
322: [15:23:15] <Zauberfisch> an I see your source?
323: [15:23:29] <Guits> class Page_Controller extends ContentController {
324: [15:23:29] <Guits> private static $allowed_actions = array("SendNewTeamForm", "NewTeamForm" , "TEAM");
325: [15:23:29] <Guits> public function TEAM(SS_HTTPRequest $request) {
326: [15:23:29] <Guits> / $param = $request->param('ID');
327: [15:23:29] <Guits> return "hello";
328: [15:23:30] <Guits> / die("the param give is: $param");
329: [15:23:32] <Guits> }
330: [15:23:39] * Alexw has joined #silverstripe
331: [15:23:45] <Zauberfisch> ah, Guits sou with blank page you mean that its just "the param give is: $param", right
332: [15:23:53] <Guits> yep
333: [15:23:57] <Zauberfisch> I see
334: [15:24:01] <Zauberfisch> you can do:
335: [15:24:05] <Alexw> Hi, does anyone know how to set default of the value to zero for integers?
336: [15:24:30] <Zauberfisch> return $this->customize(array('Content' => "the param given is: $param"));
337: [15:24:53] <Zauberfisch> this way it will render with the usual template, just overwrite the $Content with a new value
338: [15:25:31] <Alexw> If I set the key in the array of private static $defaults of a integer and set the value to a zero, it keeps staying blank
339: [15:25:33] <Alexw> I also tried using quotes around it
340: [15:25:34] <Alexw> but still the same
341: [15:28:53] * joelpittet has joined #silverstripe
342: [15:29:13] <Alexw> Does nobody know the sollution for this
343: [15:29:18] <Alexw> or is this just a bug?
344: [15:29:37] <Guits> Thanz Zauberfisch - makes sense .. but customize generated an error so i just returned $this
345: [15:30:19] <Guits> also - did not understand how to use (array('Content' => "the param given is: $param")
346: [15:31:29] * catcher has joined #silverstripe
347: [15:33:29] * joelpittet quit (Ping timeout: 252 seconds)
348: [15:37:16] * Alexw_ has joined #silverstripe
349: [15:38:27] * Alexw quit (Write error: Broken pipe)
350: [15:38:56] * UndefinedOffset quit (Quit: Leaving.)
351: [15:43:28] * UndefinedOffset has joined #silverstripe
352: [15:47:12] * Alexw has joined #silverstripe
353: [15:48:22] * toebu has joined #silverstripe
354: [15:50:38] * Alexw_ quit (Ping timeout: 264 seconds)
355: [16:35:42] <micmania1> anybody know how the yml Before & After things work?
356: [16:35:49] <micmania1> I need to take control of the root URL
357: [16:36:12] <micmania1> but i'm getting this annoying error: Fatal error: Based on their before & after rules two fragments both need to be before/after each other in
358: [16:48:09] <catcher> micmania1, that stuff confuses me too, but couldn't hurt to paste it.
359: [16:56:22] <Pyromanik> micmania1, yep
360: [16:56:24] <Pyromanik> sure
361: [16:56:52] <Pyromanik> Creates a directional acyclic graph using them to formulate the inclusion order.
362: [16:57:45] <Pyromanik> you've got 2 things specifying to be after something, and perhaps before something else, and it's causing a conflict.
363: [16:58:06] <Pyromanik> It can be a bit of a 'eh?' to work it out, but it's all pretty logical (exactly as you think it is).
364: [16:58:20] * jcwacky has joined #silverstripe
365: [16:58:23] <Pyromanik> although it's home time for you, just do it tomorrow :P
366: [16:58:51] <Pyromanik> this one's for the irogue23 https://scontent-b-ams.xx.fbcdn.net/hphotos-prn2/q71/1607059_10200534018072172_1422352148_n.jpg
367: [16:59:05] <Pyromanik> and others who hate the #yolo derpys
368: [17:00:45] <catcher> yodo!
369: [17:07:04] * toebu quit (Remote host closed the connection)
370: [17:17:51] * joelpittet has joined #silverstripe
371: [17:23:00] * joelpittet quit (Ping timeout: 265 seconds)
372: [17:25:32] * Alexw_ has joined #silverstripe
373: [17:25:41] * Alexw quit (Ping timeout: 252 seconds)
374: [17:27:39] * mojo5000 has joined #silverstripe
375: [17:35:48] * mojo5000 quit (Read error: Connection reset by peer)
376: [17:36:14] * mojo5000 has joined #silverstripe
377: [17:38:28] * mojo5000 quit (Read error: Connection reset by peer)
378: [17:38:54] * mojo5000 has joined #silverstripe
379: [17:46:36] * jcwacky quit (Quit: jcwacky)
380: [18:03:12] <Pyromanik> catcher, sif.
381: [18:03:20] <Pyromanik> yoda - you only derp ALWAYS.
382: [18:03:35] <Pyromanik> which, unfortunately the exact oposite of the Yoda.
383: [18:03:37] <catcher> tshirts, millions
384: [18:03:47] <Pyromanik> catcher, hmm. I could sell that.
385: [18:03:54] <Pyromanik> too much effort though.
386: [18:04:15] <Pyromanik> wholey fuck that feeling when you find out that Sweden and Finland were considered Third World countries. http://en.wikipedia.org/wiki/File:Cold_War_alliances_mid-1975.svg
387: [18:04:57] <Pyromanik> also, these champs. Over 20 years later
388: [18:04:58] <Pyromanik> http://www.youtube.com/watch?v=8E8LW7qaDG4
389: [18:05:35] <Pyromanik> and http://www.youtube.com/watch?v=fImVSbvS1Co
390: [18:22:45] * gelignite has joined #silverstripe
391: [18:24:49] * violet- has joined #silverstripe
392: [18:26:07] * violetina quit (Ping timeout: 260 seconds)
393: [18:52:43] * Guits quit (Ping timeout: 260 seconds)
394: [18:56:54] * Guits has joined #silverstripe
395: [19:02:50] * joelpittet has joined #silverstripe
396: [19:15:23] * oddnoc has joined #silverstripe
397: [19:17:21] * elementz has joined #silverstripe
398: [19:18:31] * joelpittet quit ()
399: [19:25:55] * mobiusnz has joined #silverstripe
400: [19:49:26] * DigNZ has joined #silverstripe
401: [19:54:04] * mobiusnz quit (Quit: Leaving.)
402: [19:54:25] * mobiusnz has joined #silverstripe
403: [19:55:05] * zippy__ has joined #silverstripe
404: [19:59:08] * mobiusnz quit (Ping timeout: 252 seconds)
405: [20:03:15] * Alexw_ quit ()
406: [20:05:35] * Shrike_Finland has joined #silverstripe
407: [20:07:53] * r3v3rb has joined #silverstripe
408: [20:08:20] <r3v3rb> hi all, how can I get the base url to mysite/css in a controller easily?
409: [20:09:18] * mobiusnz has joined #silverstripe
410: [20:10:05] <oddnoc> Director::absoluteBaseURL()
411: [20:10:12] <oddnoc> sorry
412: [20:10:15] <oddnoc> one sec
413: [20:10:46] * boytikz has joined #silverstripe
414: [20:14:02] <oddnoc> something like: global $project; Director::absoluteBaseURL() . "/$project/css"
415: [20:16:39] * UncleCheese has joined #silverstripe
416: [20:17:13] <unsignedint> how come your css is under mysite/ ? shouldnt it be under the theme dir? Then you could use SSViewer::get_theme_folder()
417: [20:19:19] <catcher> I'm seeing conflicted info, what's the best way to use include custom css for a particular part of the CMS?
418: [20:19:22] <catcher> Or even the whole CMS?
419: [20:21:10] * Stomach has joined #silverstripe
420: [20:23:39] * mojo5000 quit (Remote host closed the connection)
421: [20:34:47] <unsignedint> Requirements::CSS() and Requirements::themedCSS()
422: [20:35:22] <unsignedint> http://api.silverstripe.org/3.1/class-Requirements.html#_css
423: [20:35:35] <unsignedint> oh wait
424: [20:35:38] <unsignedint> I misread
425: [20:35:48] <simon_w> catcher, LeftAndMain.extra_requirements_css
426: [20:35:53] <simon_w> config setting
427: [20:35:56] <catcher> simon_w, just found that in the right doc, ty
428: [20:36:18] <simon_w> r3v3rb, just use Requirements::themedCSS()?
429: [20:37:07] <r3v3rb> simon_w: I would but its to grab a css file to use in 'emogrifier' to send an email out as HTML
430: [20:37:50] <r3v3rb> catcher: oddnoc - I think maybe I didn't fully explain myself and my reasons :D
431: [20:37:59] * willr has joined #silverstripe
432: [20:38:06] * nickmolhoek has joined #silverstripe
433: [20:38:48] * r3v3rb was promoted to officegoon by 12ChanServ
434: [20:39:40] * peter has joined #silverstripe
435: [20:39:52] <simon_w> r3v3rb, so do you need the filesystem path? Or can you just stick a <% base_tag %> in the HTML and have the script pull it in properly?
436: [20:40:04] * peter is now known as Guest53287
437: [20:40:13] <ss23> willr: DID U SEE MY COMMENT ON USERFORMS ISSUE?
438: [20:40:17] <ss23> willr: what are your thoughts?
439: [20:40:22] <willr> I have not
440: [20:40:28] <ss23> mmk
441: [20:40:33] <willr> Only out of bed mate.
442: [20:40:36] <unsignedint> my thoughts are the docs need improvement ss23 :P
443: [20:40:36] <ss23> not important
444: [20:40:37] <ss23> ::P
445: [20:40:39] <willr> give a brother a chance
446: [20:40:39] <ss23> willr: WOAH.
447: [20:40:42] <ss23> lol unsignedint
448: [20:41:34] <simon_w> ss23, WHERE'S MY CAFFEINE?
449: [20:41:44] <mobiusnz> w00t
450: [20:41:56] <mobiusnz> burgerfuel is opening up just round the corner from my work
451: [20:42:08] <Guest53287> hi, is it posible to change base url?
452: [20:42:14] <unsignedint> is ss23 coffee bitch too?
453: [20:42:24] <simon_w> unsignedint, of course
454: [20:42:30] <r3v3rb> simon_w: emogrifier requires that the css is in <style> tags in the head and then inlines for the email so using the template parser to drag in the css file wouldn't suffice :(
455: [20:42:32] <unsignedint> hahaha
456: [20:42:34] <r3v3rb> afaik
457: [20:42:42] <simon_w> Guest53287, yup. Have a look at the Director.alternaive_base_url config setting
458: [20:42:52] <ss23> simon_w: I actually have a nice big bottle of coke here
459: [20:42:56] <ss23> simon_w: Come get it FOR LUNCH
460: [20:42:56] <willr> How do you propose we check the number of input vars ss23? Sends all the other form data for the CMS.
461: [20:43:11] <simon_w> ss23, need it now though
462: [20:43:12] <catcher> simon_w, is themes/mytheme/css/whatever.css a valid location for it?
463: [20:43:16] <simon_w> Guess I'll just go get some dew
464: [20:43:23] <ss23> willr: Guess, e.g. "Over 50, combined with the standard amount, is likely to cause issues, so show a warning"
465: [20:43:33] <simon_w> catcher, yes
466: [20:43:48] <catcher> simon_w, do I still need to flush the crap out of the cms for it to show up?
467: [20:44:07] <willr> Right so approximately output the warning. That could be easier. PR
468: [20:44:08] <simon_w> catcher, you need to flush to get the config changes picked up
469: [20:44:30] <Guest53287> simon_w thanks you save my day
470: [20:44:54] <catcher> simon_w, config changes are there & good, checked in LeftAndMain. Just not appearing as a resource in the CMS yet.
471: [20:45:19] <simon_w> catcher, what's your config look like?
472: [20:46:14] <catcher> simon_w, http://sspaste.com/paste/show/52cf07d4680c7
473: [20:47:46] <catcher> trying themedCss, same result (shows up in LeftAndMain, doesn't make it to cms)
474: [20:48:42] <simon_w> catcher, is the path correct?
475: [20:48:52] <simon_w> (themedCSS won't work, there's no theme set)
476: [20:48:58] * jrthomer quit (Read error: Operation timed out)
477: [20:49:17] * Guest53287 quit (Ping timeout: 272 seconds)
478: [20:49:29] * simon_w glares at ajshort for making themedCSS shit
479: [20:50:24] <ss23> ajshort also did that commit that broke all the things the other month too!
480: [20:50:25] * jrthomer has joined #silverstripe
481: [20:50:28] <ss23> :O
482: [20:51:11] <catcher> simon_w, gotcha. I must have typo'd before. Put it back from themed and it's all good.
483: [20:52:23] * jrthomer quit (Client Quit)
484: [20:52:49] * metanat has joined #silverstripe
485: [20:53:35] * elementz quit (Ping timeout: 252 seconds)
486: [20:56:03] * jrthomer has joined #silverstripe
487: [21:00:03] <r3v3rb> here we go again - crazy question time, without storing a members password 'in the clear' is there a way to de-salt/hash the password from the database...
488: [21:00:18] * r3v3rb guessing 'no'
489: [21:03:37] * UndefinedOffset quit (Quit: Leaving.)
490: [21:05:41] <catcher> r3v3rb, I hope not :)
491: [21:07:04] <r3v3rb> catcher: why's that then ;) got something to hide... lol
492: [21:08:04] <Pyromanik> r3v3rb, sup
493: [21:08:23] <r3v3rb> Pyromanik: not a lot sir - you?
494: [21:08:24] <Pyromanik> and no, don't be silly.
495: [21:09:03] <Pyromanik> r3v3rb, just umm, Vodafone and CVs.
496: [21:09:11] <Pyromanik> but mostly procrastination.
497: [21:09:25] <catcher> Pyromanik, see, I never quite around to hiding mine.
498: [21:09:41] <simon_w> r3v3rb, no. Hashes are specifically one way and using encryption instead of hashing for a password is a really bad idea
499: [21:09:46] <Pyromanik> catcher, eh?
500: [21:09:54] <catcher> quite get*
501: [21:10:04] <Pyromanik> eh?
502: [21:10:14] <catcher> my procrastination.
503: [21:10:28] <r3v3rb> simon_w: true, but I had to ask just in case :D I'll store them in another field that is related to the Member somehow
504: [21:10:38] <Pyromanik> simon_w, encryption being 2 way eh?
505: [21:10:41] <r3v3rb> they don't have any admin access anyway
506: [21:10:43] <catcher> Pyromanik, joke fail, tought that was your something to hide.
507: [21:10:44] <simon_w> r3v3rb, why?
508: [21:10:46] <simon_w> Pyromanik, yes
509: [21:10:47] <Pyromanik> catcher, why would you hide procrastination?
510: [21:10:51] <Pyromanik> :P
511: [21:11:04] <Pyromanik> catcher, fail indeed :<
512: [21:11:15] <Pyromanik> I still have no idea what you're on about :P
513: [21:11:17] <simon_w> ss23, I WENT AND GOT MY OWN CAFFEINE
514: [21:11:21] <Pyromanik> HA
515: [21:11:23] <catcher> Pyromanik, it would have been fantastic if you had set it up for me.
516: [21:11:24] <ss23> lol
517: [21:11:25] <Pyromanik> CAFFINE SO OVERRATED
518: [21:11:31] <ss23> simon_w: Talk about a cooked hotdog...
519: [21:11:44] <simon_w> also, some candy
520: [21:11:45] <Pyromanik> NO V IN THIS COUNTRY, THEY MAKE ENERGY DRINKS WITHOUT THE CAFFINE, ALL SUGAR.
521: [21:11:47] <simon_w> mmm, candy
522: [21:11:51] <r3v3rb> simon_w: so that I can send them their login details at the bottom of each email the system sends out...
523: [21:12:00] <simon_w> r3v3rb, no. Bad.
524: [21:12:09] <ss23> simon_w: What kind of candy? :O
525: [21:12:12] <r3v3rb> simon_w: I know
526: [21:12:14] <r3v3rb> :DD
527: [21:12:30] <simon_w> ss23, sherbet fizz things
528: [21:13:04] <ss23> simon_w: nice choice
529: [21:13:08] <Pyromanik> r3v3rb, the only way you should be able to do that is by emitting email upon setting password (while you still have plain value available).
530: [21:13:24] <r3v3rb> simon_w: the members only have access to a limited section of a set of controllers - but they are all thick and will forget their own password
531: [21:13:43] <r3v3rb> Pyromanik: they have no access to anything but some course literature
532: [21:13:45] <simon_w> r3v3rb, so they're also the sort of person that'll reuse passwords, making it even worse
533: [21:13:55] <r3v3rb> simon_w: :P yep
534: [21:14:09] <Pyromanik> Sicillian wine, on the other hand. Not so bad.
535: [21:14:20] <Pyromanik> NOT AS GOOD AS KIWI, BUT STILL VERY GOOD. DIFFERENT GOOD.
536: [21:14:37] <Pyromanik> weird, explaination not explainable.
537: [21:14:52] <r3v3rb> Pyromanik: prefer a Rioja personally but thats because I have Spanish wife
538: [21:14:58] <Pyromanik> differnet type/style of wine I guess.
539: [21:15:07] <r3v3rb> so had to get used to the taste of their wine quickly
540: [21:15:09] <Pyromanik> r3v3rb, high five foreigners for partners.
541: [21:15:27] <Pyromanik> you me and Colin[pi] sould start a group.
542: [21:15:30] <simon_w> r3v3rb, so include an auto-login link in the email. Don't store their passwords in plain text.
543: [21:15:43] <r3v3rb> simon_w: auto login?
544: [21:15:44] <Pyromanik> r3v3rb, Rioja is good, I approve.
545: [21:15:54] <simon_w> r3v3rb, a link that logs them in
546: [21:16:01] <r3v3rb> Pyromanik: what about the nationality of partner - approve?
547: [21:16:08] <Pyromanik> spanish 'traditionals' not so much though (merlot, cab-sav, pinot, etc)
548: [21:16:20] <simon_w> Still a bad idea, but so much better than plaintext passwords
549: [21:16:33] <Pyromanik> Oh, there was this great one I tried from Chile recently, that had some kind of grape I'd never heard of before, was good.
550: [21:16:35] <Pyromanik> Like really good.
551: [21:17:05] <Pyromanik> r3v3rb, nationality doesn't matter so much. SO LONG AS IT'S EXOTIC - AMIRITE :D
552: [21:17:31] <Pyromanik> r3v3rb, also not sure if you saw yesterday, about head whackey overhead cupboards.
553: [21:17:50] <r3v3rb> simon_w so use a salt/hash stored in the Member class that is used to determine their identity and then log them in automatically?
554: [21:18:00] <r3v3rb> in the Course class
555: [21:18:05] <simon_w> r3v3rb, yes
556: [21:18:26] <r3v3rb> got it
557: [21:18:35] <Pyromanik> I think they're a bad idea. If you open them up and find some more tricky kind of storage system that those crazy engineers come up with these days, the room will not only feel bigger (thus nicer), but you won't have the head smash issues, nor the lifting shit from above your head slip and smash or crack head issues.
558: [21:19:29] <r3v3rb> Pyromanik: all on hold at the mo... Got the price down to 14k with solid wood doors throughout etc and stone worktops but....
559: [21:20:07] <r3v3rb> just found out the house has a 'dodgy roof' which will cost in excess of 10k to repair, possible damp, possible wood rot and more :D
560: [21:20:12] <simon_w> aww, out of candy already :(
561: [21:20:17] * simon_w blames ss23
562: [21:20:56] <Pyromanik> r3v3rb, use the opportunity to whack some walls out
563: [21:21:03] <Pyromanik> why repair what you'll cut out later? xD
564: [21:21:08] <r3v3rb> indeed, this is the house btw: http://media.rightmove.co.uk/57k/56287/40376359/56287_1375215E_BX104748_IMG_01_0000.JPG
565: [21:21:20] <Pyromanik> oh, so not even yours yet?
566: [21:21:30] <r3v3rb> not yet
567: [21:21:52] <r3v3rb> still squeezing the price with the current owners ;) now I have more ammunition :D
568: [21:22:13] <ss23> simon_w: :(
569: [21:22:16] <ss23> simon_w: I have a lot of candy
570: [21:22:18] <Pyromanik> looks nice on the outside... but by nice I mean ... umm... well shit, I dunno.
571: [21:22:27] <simon_w> rightmove is horrible
572: [21:22:36] <simon_w> Well, their automated listing stuff anyway
573: [21:22:43] <Pyromanik> I guess the term they'd use in NZ is 'character home'
574: [21:22:55] <r3v3rb> simon_w: but they pretty much have the market in the UK
575: [21:23:01] <Pyromanik> It look a bit old school, which is cool, and seems like it has a nice layout on the outside.
576: [21:23:09] <simon_w> r3v3rb, yeah, which is why I still have to deal with it :(
577: [21:23:30] <simon_w> You generated some custom file format that contains all of your listings and then stick it on their FTP server
578: [21:23:30] <r3v3rb> simon_w: your NZ though aren't you?
579: [21:23:34] * blindMoe|2 quit (Quit: Out!)
580: [21:23:44] <simon_w> r3v3rb, so? I also have to deal with TradeMe
581: [21:23:46] <Pyromanik> r3v3rb, but works for a start up
582: [21:23:48] <r3v3rb> you're*
583: [21:23:50] <simon_w> International product
584: [21:23:53] <Pyromanik> to do with housing
585: [21:23:57] <Pyromanik> probaly trying to spread into uk
586: [21:24:00] <r3v3rb> simon_w: understood :D
587: [21:24:10] <simon_w> Trying to? UK's our third biggest market :p
588: [21:24:22] <r3v3rb> no fighting girls ;)
589: [21:24:38] <Pyromanik> simon_w, third biggest!
590: [21:24:52] <Pyromanik> in front of ... /dev/null ?
591: [21:24:58] <simon_w> NZ and AU
592: [21:25:07] <Pyromanik> no that's behind... :P
593: [21:25:11] <simon_w> Hang on, I'll wait for the stats screen to load
594: [21:25:37] <Pyromanik> keke
595: [21:25:38] <simon_w> It's not very efficient
596: [21:25:49] <simon_w> And screw making it faster
597: [21:25:55] <ss23> cache > speed
598: [21:25:58] <r3v3rb> simon_w: going back to the login - I'm guessing I could actually use the password salt stored in the member class if its a one way hash when the member signs up
599: [21:26:04] <Pyromanik> simon_w, don't worry, neither is ANYTHING in the UK
600: [21:26:14] <Pyromanik> efficeincy is like some kind of disease here.
601: [21:26:34] <Pyromanik> that said, it's nice that pizza prices are INCLUSIVE of delivery.
602: [21:26:47] <Pyromanik> It's not like ok, 14 for pizza SIX THOUSAND FOR DELIVERY
603: [21:26:57] <Pyromanik> like nz
604: [21:26:58] <Pyromanik> :<
605: [21:27:10] <simon_w> Pizza Hut includes delivery price in the price
606: [21:27:19] <Pyromanik> yeah but pizza hut is shit.
607: [21:27:22] <simon_w> Ooh, UK's second now
608: [21:27:57] <Pyromanik> then again, so is domino's, and having had it last night I can say I was hella surprised it wasn't terrible here. au contraire, it was quite ok.
609: [21:28:03] <Pyromanik> well above Pizza hut in NZ.
610: [21:28:08] <Pyromanik> simon_w, ooh.
611: [21:28:11] <Pyromanik> how do you manage that?
612: [21:28:23] <simon_w> No idea
613: [21:28:33] <ss23> link 2 stats
614: [21:28:45] <simon_w> https://files.app.net/d9b96gSs.png
615: [21:28:54] <simon_w> https://app.pocketrent.com/manage
616: [21:29:02] <ss23> ah, nigeria
617: [21:29:18] <simon_w> Probably someone testing (has 1)
618: [21:29:48] <Pyromanik> is there some kind of special shit you have to do to secure UK market, or is it just build internationally?
619: [21:29:48] <Pyromanik> built*
620: [21:29:48] <Pyromanik> internationality*
621: [21:29:48] <Pyromanik> built with internationality in mind*
622: [21:30:14] <Pyromanik> Ni... oh.
623: [21:30:41] <simon_w> UK is one we're "officially supporting" (so it has the ?)
624: [21:30:48] <unsignedint> hey does anyone know how to write() a DataObject and all $has_one's and $has_many's etc on it
625: [21:30:49] <Pyromanik> :<
626: [21:30:49] <Pyromanik> still, India, Belgium, etc
627: [21:30:57] <unsignedint> calling write() doesnt write the relations too
628: [21:30:59] <simon_w> But it's all just piggy backing off our international stuff
629: [21:31:13] <simon_w> unsignedint, ->writeComponents() IIRC
630: [21:31:22] <unsignedint> thanks, will give it a crack
631: [21:31:34] <unsignedint> so I have to call writeComponents() and then write() ?
632: [21:31:44] <simon_w> unsignedint, well, that writes all has_ones
633: [21:31:58] <simon_w> unsignedint, or, just ->write(false, false, false, true)
634: [21:32:37] <simon_w> unsignedint, with that one, becareful not to have recursive has_ones
635: [21:32:53] <unsignedint> okay, thanks
636: [21:35:14] <simon_w> Oh CocoaPods, how I've missed you
637: [21:35:24] <Pyromanik> that said about efficiency in the UK, although the websites could have MAJOR usability improvements, at least they cater for all the options (although it may not be obvious at first), eg half and half pizza order.
638: [21:35:57] <Pyromanik> r3v3rb, why haven't you started a usability revolution?
639: [21:36:05] <Pyromanik> I could get on board that wave.
640: [21:39:51] <spronk> AH
641: [21:39:54] <spronk> HA*
642: [21:40:01] <simon_w> For some reason, I find CocoaPods to be so much nicer to work with that composer
643: [21:40:02] <spronk> totally invited to the vip opening of burgerfuel in chch.
644: [21:40:05] <Pyromanik> spronk, DID BURGER FUEL OPEN1?
645: [21:40:06] <spronk> BOOEYEAH.
646: [21:40:07] <Pyromanik> !?!!!!
647: [21:40:13] <ss23> spronk: nice
648: [21:40:14] <spronk> vip event tomorrow
649: [21:40:15] <spronk> opens monday
650: [21:40:22] <ss23> Oh, tomorrow?
651: [21:40:26] <ss23> I wonder what I'll get for lunch today...
652: [21:40:28] <simon_w> spronk, hmm, now I'm tempted to have some today
653: [21:40:29] <Pyromanik> w00t 4 u
654: [21:40:29] <Pyromanik> cunt. -.-
655: [21:40:30] <ss23> Think I might branch out
656: [21:40:33] <ss23> Getting indian today
657: [21:40:34] <ss23> :D
658: [21:40:35] <spronk> :D
659: [21:40:45] <ss23> simon_w: QQ
660: [21:40:51] <ss23> Get it on the day I'm not avaiable to get it!?
661: [21:40:52] <ss23> :(
662: [21:40:54] <spronk> i can taste the bastard in me.
663: [21:41:11] <simon_w> spronk, I SEE WHAT YOU DID THERE
664: [21:41:15] <Pyromanik> I'd totally be fully jealous if I was still in Christchurch
665: [21:41:16] <Pyromanik> hahah ss23
666: [21:41:16] <Pyromanik> ok like totally wow, the 'heat and eat' meals in the supermarket here are totally not bad.
667: [21:41:16] <Pyromanik> at all.
668: [21:41:16] <Pyromanik> SUPER SURPRISE.
669: [21:41:31] <spronk> o_O
670: [21:41:36] <Pyromanik> spronk, totally see what you did there.
671: [21:41:42] <spronk> :D
672: [21:41:44] <Pyromanik> ps, sounds like you're gay though.
673: [21:41:49] <ss23> Pyromanik: They're not bad here either
674: [21:41:57] <Pyromanik> lies ss23
675: [21:42:02] <Pyromanik> total absolute lies.
676: [21:42:08] * spronk is comfortable enough with his sexuality to be cool with sounding gay once in a while
677: [21:42:14] <Pyromanik> my man.
678: [21:42:18] <Pyromanik> .me high fives spronk
679: [21:42:25] * spronk HAI FAIIVE
680: [21:42:26] <Pyromanik> ohly with a /
681: [21:42:31] * Pyromanik HAI FAIIVE
682: [21:42:34] <Pyromanik> BOOHYAH
683: [21:42:35] <spronk> also, ss23, what the fuck do you eat?
684: [21:42:41] <spronk> because where i'm from, they are all disgusting
685: [21:42:47] <simon_w> "@simon_w @cgiffard oh and there i was thinking you were telling everyone you were gay... hahahahahaha"
686: [21:42:50] <ss23> I mainly eat McDonalds etc
687: [21:42:58] <ss23> Andp pizza
688: [21:42:58] <ss23> etc
689: [21:43:36] <Pyromanik> ss23, in terms of supermarket heat and eats, you derp
690: [21:43:43] <ss23> Oh
691: [21:43:46] <Pyromanik> ps, put that on your love wall.
692: [21:43:47] <ss23> Normally just pies
693: [21:43:49] <ss23> ^.^
694: [21:43:53] <ss23> haha
695: [21:44:01] <Pyromanik> I LOVE HOW DERP SS23 IS, IT'S SO AMAZING THAT HE'S SO GOOD AT WHAT HE DOES.
696: [21:44:07] <ss23> hahaha
697: [21:44:08] <spronk> lol
698: [21:44:09] * spronk agrees
699: [21:44:19] <spronk> i'm surprised you're still alive, ss23
700: [21:44:22] <spronk> you know, not dead from diabetes
701: [21:44:24] <Pyromanik> and/or HUGS ALL 'ROUND
702: [21:44:39] <Pyromanik> spronk, but he's type 1, not 2.
703: [21:44:49] <ss23> Yeah
704: [21:44:51] <spronk> SAME THING
705: [21:44:52] <ss23> I can live just fine
706: [21:44:57] <Pyromanik> BIIIG difference.
707: [21:45:08] * willr quit (Quit: willr)
708: [21:45:26] <Pyromanik> so long as he doesn't run out of needles or insulin, he's fine.
709: [21:45:39] <ss23> Speaking of, I need to ring my doctors tody
710: [21:45:45] <ss23> I'm close to running out of insulin, and it's not fun
711: [21:46:11] <simon_w> sucker!
712: [21:46:38] * willr has joined #silverstripe
713: [21:47:11] <spronk> yeah exactly
714: [21:47:17] <spronk> i'm surprised he hasn't you know
715: [21:47:19] <spronk> run out of insulin
716: [21:47:20] <spronk> and gone into a coma
717: [21:47:21] <ss23> lol
718: [21:47:23] <spronk> or exploded
719: [21:47:26] <ss23> XD
720: [21:47:28] <spronk> whatever happens to diabetics when they run out
721: [21:47:33] * spronk actually has no idea
722: [21:47:36] <spronk> for all i know you could combust
723: [21:47:39] <simon_w> We should find out
724: [21:47:49] <spronk> you know
725: [21:47:50] <simon_w> Hey ss23, don't get any more
726: [21:47:53] <simon_w> this is for science
727: [21:47:56] <spronk> sometimes I imagine ss23 as that 9 year old drunk kid
728: [21:48:04] <spronk> it fits pretty well
729: [21:48:08] <ss23> haha
730: [21:48:14] <ss23> simon_w: I will literally die
731: [21:48:24] <simon_w> ss23, but how is what we want to know!
732: [21:48:31] <ss23> ;_;
733: [21:48:35] <ss23> ketoacidosis
734: [21:48:37] <simon_w> SCIENCE!
735: [21:48:44] <ss23> Possibly dehydration
736: [21:48:49] <ss23> The end result would be organ failure
737: [21:48:59] <spronk> so..
738: [21:49:01] <spronk> no explosion?
739: [21:49:04] <simon_w> Aww
740: [21:49:05] <ss23> No explosion
741: [21:49:12] <ss23> :(
742: [21:49:12] <spronk> SUCK IT.
743: [21:49:19] <ss23> EW, NO, YOU DON'T KNOW WHERE It'S BEEN
744: [21:56:31] <r3v3rb> Pyromanik: sorry, missed the pizza useability stuff - I'm on it!
745: [21:56:41] * Jayden90 has joined #silverstripe
746: [21:56:52] * boytikz has left #silverstripe
747: [21:57:28] <spronk> bro
748: [21:57:31] <spronk> i know exactly where it's been
749: [21:58:43] <Jayden90> Is there a simple way to urlencode a field variable in a template?
750: [21:59:01] <Jayden90> {$Title.URLEncode} or something
751: [21:59:30] <simon_w> Jayden90, .URLATT
752: [22:00:17] <Jayden90> thanks simon_w. never would have guessed that.
753: [22:01:00] <simon_w> Jayden90, you can use all the methods on http://api.silverstripe.org/3.1/class-DBField.html
754: [22:02:26] * elementz has joined #silverstripe
755: [22:02:49] <Jayden90> cool, I was about to make a new custom template function for it because I could not find that easily in the template docs
756: [22:06:14] * mojo5000 has joined #silverstripe
757: [22:09:05] * camfindlay has joined #silverstripe
758: [22:09:11] * Shrike_Finland quit (Quit: Leaving.)
759: [22:10:39] * mojo5000 quit (Remote host closed the connection)
760: [22:11:15] * Colin[pi] has joined #silverstripe
761: [22:11:25] * Shrike_Finland has joined #silverstripe
762: [22:11:30] <Colin[pi]> good moin
763: [22:11:46] <ss23> moinmoin
764: [22:11:55] <simon_w> morena
765: [22:12:49] * Shrike_Finland quit (Client Quit)
766: [22:13:53] * elementz quit (Ping timeout: 252 seconds)
767: [22:20:09] * mojo5000 has joined #silverstripe
768: [22:21:42] * mojo5000 quit (Remote host closed the connection)
769: [22:23:16] <camfindlay> morning.
770: [22:23:26] <Colin[pi]> omg hi cam
771: [22:23:41] * mojo5000 has joined #silverstripe
772: [22:24:48] * jrthomer quit (Remote host closed the connection)
773: [22:26:02] * mojo5000 quit (Remote host closed the connection)
774: [22:31:23] * violet- quit (Remote host closed the connection)
775: [22:34:50] * gelignite quit (Quit: http://bit.ly/nkczDT)
776: [22:37:38] * catcher quit (Quit: Leaving)
777: [22:43:24] <simon_w> So guys, crowd sourcing some ideas for this blog post I'm writing. How do you make SilverStripe run faster?
778: [22:44:49] <guzzlefry> Install Wordpress!
779: [22:44:52] * guzzlefry hides.
780: [22:45:25] <simon_w> Now now, outsourcing to hackers isn't really a solution :p
781: [22:45:48] <guzzlefry> What methods are you looking for, server config or actual code changes?
782: [22:46:05] <simon_w> Well, anything
783: [22:46:26] <simon_w> I've got some ideas already that include both
784: [22:46:38] <guzzlefry> The only thing I can think of would be opcache. >_>
785: [22:46:49] <Colin[pi]> yep what I was about to say
786: [22:46:57] <Colin[pi]> install an opcode cache
787: [22:47:10] <Colin[pi]> APC on my local box made it much, MUCH faster
788: [22:47:45] <guzzlefry> maybe some type of query cache as well? Although I know almost nothing with regards to that. :P
789: [22:48:25] <simon_w> Man, this blog post is needed more than I realised :p
790: [22:48:44] <guzzlefry> You have better suggestions I'm guessing? ;P
791: [22:48:51] <simon_w> Well, I have more
792: [22:48:55] <guzzlefry> Also
793: [22:49:04] <guzzlefry> SilverStripe in general needs more blog posts. ;)
794: [22:49:26] <ss23> camfindlay: guzzlefry just offered to write a blog post
795: [22:49:33] <ss23> (I'm watching his screen)
796: [22:49:37] <ss23> (He just turned to IRC)
797: [22:49:41] <ss23> (He's watching)
798: [22:49:46] <ss23> (He's about to ask you to write one guzzlefry)
799: [22:50:04] <guzzlefry> I keep meaning to. :P
800: [22:50:23] <guzzlefry> I'd like peer reviewed stuff though, since well, I'm noob.
801: [22:50:34] <ss23> guzzlefry: Write it and he'll peer review it!
802: [22:50:38] <guzzlefry> yay
803: [22:50:48] <ss23> He's typing
804: [22:50:56] <guzzlefry> Who is?
805: [22:50:57] <simon_w> camfindlay, TYPE FASTER
806: [22:50:57] <ss23> He's going to say something
807: [22:50:57] <camfindlay> I'm happy to peer stuff, I've just been doing that for some of the other devs for a blog post for next week.
808: [22:50:59] <ss23> lol
809: [22:51:20] <ss23> I'm in just the right position to be able to see his screen without him being able to see my face D
810: [22:51:24] <ss23> :D
811: [22:51:28] <guzzlefry> spy
812: [22:51:37] <ss23> He's still got IRC up
813: [22:51:40] <ss23> he's going to say something again
814: [22:51:41] <ss23> :O
815: [22:51:45] <guzzlefry> Did you get promoted to documentation supervisor?
816: [22:51:47] * guzzlefry hides.
817: [22:51:49] <ss23> HE'S DOING IT
818: [22:51:50] <ss23> HE'S TYPING
819: [22:51:51] <ss23> :O
820: [22:51:53] <camfindlay> I got them to draft in Gdocs, then I added some helpful comments and suggestions to improve writing style and content. Works pretty well.
821: [22:51:56] <ss23> guzzlefry: wowowowow :(
822: [22:52:04] <ss23> guzzlefry: So yes, you will write blogpost?
823: [22:52:21] <simon_w> camfindlay, wanna throw something at ss23? ;)
824: [22:52:24] <ss23> simon_w: You have a few options. Get better servers, or cache
825: [22:52:28] <ss23> right?
826: [22:52:30] <ss23> for fasterness
827: [22:52:37] <camfindlay> or both
828: [22:52:39] <guzzlefry> ss23: Probably be a week or two. And I need to think of a topic. >_>
829: [22:52:40] <simon_w> ss23, well, there's more than that
830: [22:52:41] <ss23> 'cryy' and 'drink' help, but not with it being faster
831: [22:52:47] <ss23> guzzlefry: I'm sure camfindlay has some topics!
832: [22:52:50] <ss23> simon_w: Psh, like what?
833: [22:53:03] <simon_w> ss23, read my post and you'll find out!
834: [22:53:09] <ss23> simon_w: Oh :P
835: [22:53:29] <simon_w> I was just seeing if anyone could come up with something I hadn't thought of
836: [22:53:54] <ss23> We're rollin out
837: [22:53:59] <ss23> be back l8ta
838: [22:54:00] <ss23> yo
839: [22:54:01] <ss23> bboy
840: [22:54:08] <camfindlay> guzzle fry, what peaks your interest about building things on the webs (it can be SilverStripe or web dev in general)?
841: [22:54:08] <guzzlefry> class variable for DataObject::get(); instead of calling it 50 billion times?
842: [22:54:29] <unsignedint> how do you make silverstripe render a "subtemplate" from a controller action? eg if I had a page called AccountPage and an action on the controller called "order", whats the thing that makes it render AccountPage_order.ss when visiting /account-page/order
843: [22:54:49] <guzzlefry> unsignedint: I thought that was automatic?
844: [22:55:07] <camfindlay> rollin out for lunch
845: [22:55:12] <unsignedint> im just getting a blank screen, I think I need to return something from my action but I dont know what
846: [22:55:13] <guzzlefry> camfindlay: Mostly database related topics.
847: [22:55:17] <simon_w> unsignedint, return an array
848: [22:55:23] <unsignedint> aha thats it
849: [22:55:24] <unsignedint> thanks
850: [22:55:26] <guzzlefry> And maybe flush.
851: [23:00:57] * jedateach has joined #silverstripe
852: [23:01:11] <Pyromanik> r3v3rb, you mean you're currently contracted for a pizza company?
853: [23:02:03] <Jayden90> hmmm deselecting show in menus on a page also removes it form {$Breadcrumbs}
854: [23:02:04] * jrthomer has joined #silverstripe
855: [23:02:31] <jedateach> Am I doing this right?:
856: [23:02:32] <jedateach> Injector::inst()->create("MyDependency", $constructorobject)
857: [23:03:17] <r3v3rb> Pyromanik: lol, no but I'd like to be - contractually obliged to eat them
858: [23:04:27] <Pyromanik> r3v3rb, hahaha
859: [23:04:29] <Pyromanik> amen
860: [23:04:42] <Pyromanik> If they had more vege, I'd be in the same seat.
861: [23:04:50] <simon_w> jedateach, yup
862: [23:04:57] <Pyromanik> I mean, don't get me wrong, I love pizza. But I know it's not good for me... so yeh.
863: [23:05:41] * camfindlay quit (Quit: camfindlay)
864: [23:05:50] <jedateach> simon_w: ok, but I get an error when the constructor tries to call parent::__construct($constructorobject)
865: [23:06:21] <simon_w> jedateach, and does the class you're instigating have a parent class with a constructor?
866: [23:06:25] <Jayden90> in the BreadcrumbsTemplate.ss you <% loop $Pages %>, but is there an $AllPages, to include pages that have show in menus toggled off?
867: [23:06:59] <Pyromanik> man up guzzlefry, even I've written a blog post. AND IT DIDN'T EVEN HAVE ONE FUCK'N SWEAR WORD IN THE WHOLE FUCK'N THING
868: [23:07:05] <simon_w> Jayden90, $Breadcrumbs(20, 0, 0, 1)
869: [23:07:35] <guzzlefry> :P
870: [23:07:36] <jedateach> simon_w: yep, its very close to the relationship between GridFieldConfig and GridFieldConfig_RecordViewer (For example)
871: [23:07:50] <simon_w> jedateach, so what's the error?
872: [23:07:53] <jedateach> i.e., I'm trying to allow injecting different subclasses
873: [23:07:58] <guzzlefry> wait, where is my blog post going? Do I need to host it?
874: [23:08:06] <jedateach> Undefined variable $constructorobject
875: [23:08:09] <simon_w> guzzlefry, silverstripe.org
876: [23:08:15] <guzzlefry> ah
877: [23:08:27] <simon_w> jedateach, well, it's only defined if you've got __construct($constructorobject)
878: [23:08:42] <Pyromanik> camfindlay, ps it's piques, not peaks.
879: [23:08:49] <Jayden90> simon_w: woa, what are those parameters about? It did not work BTW
880: [23:08:58] <Pyromanik> nor 'piques'
881: [23:09:06] <Pyromanik> err, fuck, 'pikes'
882: [23:09:16] <simon_w> Jayden90, number of items, unused, page type to stop at, show hidden
883: [23:09:30] <simon_w> Jayden90, basically, you want the default value for the first three then true for the fourth
884: [23:10:04] * mojo5000 has joined #silverstripe
885: [23:11:27] <Jayden90> simon_w: Very cool, but even after a flush it is not helping.
886: [23:11:37] <Pyromanik> Jayden90, see docs, ContentController, breadcrumbs.
887: [23:11:39] <Pyromanik> method.
888: [23:11:43] <Pyromanik> It's got it all there
889: [23:12:43] <Pyromanik> iirc
890: [23:15:50] <Jayden90> Pyromanik: no mention of breadcrumbs http://api.silverstripe.org/3.1/class-ContentController.html
891: [23:16:03] <Jayden90> Pyromanik: you mean this one? http://api.silverstripe.org/3.1/class-SiteTree.html#_Breadcrumbs
892: [23:19:56] * wmk quit (Ping timeout: 272 seconds)
893: [23:20:42] <Jayden90> tried {$Breadcrumbs(20, 0, 0, 1)} and {$Breadcrumbs(20, false, false, true)}, still no luck
894: [23:22:02] <r3v3rb> Pyromanik: have a nice afternoon - I have to scoot !
895: [23:22:06] * mojo5000 quit (Remote host closed the connection)
896: [23:22:12] * r3v3rb quit (Quit: r3v3rb)
897: [23:22:36] * wmk has joined #silverstripe
898: [23:23:36] * mojo5000 has joined #silverstripe
899: [23:24:12] <Jayden90> Might just build my own breadcrumbs include
900: [23:28:45] <jedateach> simon_w: How would you pass an object to a class defined in the dependency array? For example, passing a $config object to the PermissionService in the first simple example on this page: http://doc.silverstripe.org/framework/en/reference/injector
901: [23:55:30] * UncleCheese quit (Quit: UncleCheese)
902: [23:55:56] * joelpittet has joined #silverstripe

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