#silverstripe IRC Log

IRC log for 26 July 2015

All timestamps are in UTC.

1: [00:09:29] * Firesphere killed his server.
2: [00:09:33] <Firesphere> FACEPALM
3: [00:34:41] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
4: [00:42:15] * micmania1 has joined #silverstripe
5: [00:46:17] * hombero has joined #silverstripe
6: [00:46:43] <hombero> hi everyone. if I wanted to make an API call where would I put that within Silverstripes hierarchy?
7: [00:47:07] <hombero> a rest call to another machin
8: [00:50:47] <hombero> how do I pass the data to the templae?
9: [00:50:50] <hombero> template rather
10: [00:50:53] * veb quit (Quit: veb-irc: quit)
11: [00:55:25] * squarefanatic has joined #silverstripe
12: [00:55:34] * squarefanatic quit (Remote host closed the connection)
13: [01:00:25] * veb has joined #silverstripe
14: [01:29:35] * veb quit (Read error: Connection reset by peer)
15: [01:29:40] * vebvebvebveb has joined #silverstripe
16: [01:38:12] * micmania1 quit (Quit: micmania1)
17: [01:42:07] * UncleCheese has joined #silverstripe
18: [01:44:12] * spronka has joined #silverstripe
19: [01:45:40] * vebvebvebveb is now known as veb
20: [01:48:26] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
21: [01:50:39] * veb is now known as vebvebvebveb
22: [02:06:24] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
23: [02:08:50] * vebvebvebveb is now known as veb
24: [02:13:08] * veb is now known as vebvebvebveb
25: [02:18:11] * vebvebvebveb is now known as veb
26: [02:18:51] * squarefanatic has joined #silverstripe
27: [02:18:59] * squarefanatic quit (Client Quit)
28: [02:19:04] * veb is now known as vebvebvebveb
29: [02:20:58] * hombero quit (Quit: Leaving)
30: [02:21:32] * vebvebvebveb is now known as veb
31: [02:21:34] * veb is now known as vebvebvebveb
32: [02:51:01] * vebvebvebveb quit (Quit: veb-irc: quit)
33: [03:02:53] * veb has joined #silverstripe
34: [03:15:37] * mobiusnz quit (Read error: Connection reset by peer)
35: [03:15:47] * mobiusnz has joined #silverstripe
36: [03:27:01] * veb quit (Quit: veb-irc: &)
37: [03:28:56] * veb has joined #silverstripe
38: [03:38:01] * Hailwood has joined #silverstripe
39: [04:01:48] * r_hector has joined #silverstripe
40: [04:11:53] * spronka has joined #silverstripe
41: [04:22:49] * bemusedrat has joined #silverstripe
42: [04:26:43] * veb quit (Quit: veb-irc: &)
43: [04:29:50] * bemusedrat quit (Read error: Connection reset by peer)
44: [04:36:39] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
45: [04:44:06] * veb has joined #silverstripe
46: [04:45:18] * veb quit (Client Quit)
47: [04:49:50] * Ryan-Toast quit (Quit: Ryan-Toast)
48: [04:55:19] * micmania1 has joined #silverstripe
49: [04:56:30] * veb has joined #silverstripe
50: [05:24:39] * benjhocking1 has joined #silverstripe
51: [05:25:13] * benjhocking quit (Ping timeout: 244 seconds)
52: [05:27:47] * nontgor quit (Ping timeout: 240 seconds)
53: [05:28:47] * micmania1 quit (Quit: micmania1)
54: [05:31:39] * veb quit (Read error: Connection reset by peer)
55: [05:31:45] * vebvebvebveb has joined #silverstripe
56: [05:36:19] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
57: [05:40:17] * nontgor has joined #silverstripe
58: [06:21:47] * darjus01 has joined #silverstripe
59: [07:02:41] * Stomach has joined #silverstripe
60: [07:11:36] * Stomach quit (Quit: bye)
61: [07:25:58] * micmania1 has joined #silverstripe
62: [07:54:21] * micmania1 quit (Quit: micmania1)
63: [08:38:59] * spronka has joined #silverstripe
64: [08:56:35] * vebvebvebveb quit (Quit: veb-irc: &)
65: [09:08:24] * gelignite has joined #silverstripe
66: [09:24:09] * darjus01 quit (Read error: Connection reset by peer)
67: [09:58:27] * Hailwood quit (Remote host closed the connection)
68: [10:06:48] * nontgor quit (Read error: Connection reset by peer)
69: [10:20:24] * benjhocking1 quit (Read error: Connection reset by peer)
70: [10:26:12] * benjhocking has joined #silverstripe
71: [10:44:57] * UncleCheese has joined #silverstripe
72: [10:58:05] * neilfse__ has joined #silverstripe
73: [11:01:06] * TombL_ has joined #silverstripe
74: [11:05:50] * neilfse_ quit (*.net *.split)
75: [11:05:53] * TombL quit (*.net *.split)
76: [11:06:11] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
77: [11:13:42] * gordon__ has joined #silverstripe
78: [11:13:42] * gordon__ is now known as nontgor
79: [11:36:52] * zlinux has joined #silverstripe
80: [11:47:09] * zlinux_ has joined #silverstripe
81: [11:47:48] * zlinux quit (Ping timeout: 264 seconds)
82: [11:47:58] * zlinux_ is now known as zlinux
83: [11:50:50] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
84: [11:55:18] * zlinux_ has joined #silverstripe
85: [11:56:24] * zlinux quit (Ping timeout: 244 seconds)
86: [12:03:41] * zlinux has joined #silverstripe
87: [12:03:52] * arnhoe has joined #silverstripe
88: [12:04:55] * r_hector quit (Remote host closed the connection)
89: [12:06:24] * zlinux_ quit (Ping timeout: 264 seconds)
90: [12:12:20] * zlinux_ has joined #silverstripe
91: [12:13:53] * zlinux quit (Ping timeout: 256 seconds)
92: [12:19:16] * zlinux has joined #silverstripe
93: [12:19:36] * zlinux_ quit (Ping timeout: 264 seconds)
94: [12:47:53] * spronka has joined #silverstripe
95: [12:52:48] * spronka quit (Ping timeout: 272 seconds)
96: [13:36:42] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
97: [15:16:26] * hombero has joined #silverstripe
98: [15:18:21] <hombero> hello everyone. in the SS world, where is the proper place to write my custom logic for API calls and whatnot? In the MyPage extends Page { block?
99: [15:19:12] <ss23> If it's unique to that page type, yeah
100: [15:20:30] <hombero> ok great, thank you
101: [15:52:45] * hombero quit (Ping timeout: 255 seconds)
102: [15:55:44] * hombero has joined #silverstripe
103: [15:56:51] * zlinux_ has joined #silverstripe
104: [15:59:38] * zlinux quit (Ping timeout: 272 seconds)
105: [16:02:35] * hombero quit (Ping timeout: 252 seconds)
106: [16:20:28] * hombero has joined #silverstripe
107: [17:01:45] * zlinux_ quit (Ping timeout: 256 seconds)
108: [17:31:55] <hombero> how do I get input from a form textbox passed into my template function?
109: [17:32:21] <hombero> i.e. I have a function named doDomainSearch($domain) in my DomainSearchPage.php file
110: [17:32:35] <hombero> and I can't figure out how to pass $domain in
111: [17:33:06] <zauberfisch> hombero: show me your code
112: [17:36:49] <hombero> zauberfisch: here is my DomainSearchPage.php file: http://pastebin.com/Wnqg1iT8
113: [17:37:06] <hombero> my template file is just a call to doDOmainSearch("domain.com") right now
114: [17:37:26] <hombero> minus the capital O in Do
115: [17:41:51] <hombero> or does DoDomainSearch go in my Page_Controller, not Page
116: [17:43:37] <ss-helper> Re: SilverStripe logo after log-in - http://www.silverstripe.org/community/forums/general-questions/show/102684#post403132
117: [17:46:40] <zauberfisch> wait, why does your template call that method?
118: [17:49:17] <hombero> the method isn't done yet, it will return a meaningful message eventually
119: [17:49:26] <hombero> to indicate if the domain is available or no
120: [17:51:28] <zauberfisch> well, passing something to the template is easy. but depending on the exact usecase you need to take a different approach
121: [17:52:12] <zauberfisch> you can just call methods from the template. like: $Foobar in template might call public function Foobar() { return "Ohai"; }
122: [17:52:46] <zauberfisch> or, if you are at a point where an object is rendered, you can customise that object
123: [17:53:18] <zauberfisch> public function index() { return $this->customise(['Bar' => 'Foo']); } in the Page_Controller
124: [17:53:27] <zauberfisch> now when you use $Bar in template, it will be "Foo"
125: [17:55:16] <hombero> ok let me give that a shot, thanks!
126: [18:00:41] <hombero> whichever the way to pass data from a form to a method would be what I would need
127: [18:02:08] <zauberfisch> depends on how you handle the form afterwards
128: [18:02:37] <zauberfisch> if you display the content right away after submission, then $this->customise() in the form action is the best way
129: [18:03:32] <zauberfisch> if your form is POST and you do a redirect to GET after your form submission, which is best practice. then you need to store it in session or pass it as url parameter first
130: [18:04:38] <zauberfisch> but pe
131: [18:04:52] <zauberfisch> but in your case, a GET form might also be a good choice. not sure. depends on your usecase
132: [18:05:14] <hombero> yeah I was trying to do $form->sessionMessage(doDomainSearch($data['name']), 'success'); but I couldn't get a result just a 0 byte page
133: [18:06:07] <zauberfisch> the Form message things are kind of weird. they often don't work as expected. you are better of saving it yourself
134: [18:07:31] <hombero> oh ok, ty
135: [18:37:22] * gelignite has joined #silverstripe
136: [18:59:48] * hombero quit (Ping timeout: 250 seconds)
137: [19:06:44] * arnhoe quit ()
138: [19:15:22] * hombero has joined #silverstripe
139: [19:35:52] * benjhocking quit (Quit: Leaving.)
140: [19:45:32] * veb has joined #silverstripe
141: [19:50:48] * hombero quit (Ping timeout: 272 seconds)
142: [19:52:34] * hombero has joined #silverstripe
143: [20:00:53] * Stomach has joined #silverstripe
144: [20:09:03] * hombero quit (Quit: Leaving)
145: [20:15:40] * veb quit (Quit: veb-irc: &)
146: [20:20:59] * veb has joined #silverstripe
147: [20:33:44] * helenclarko has joined #silverstripe
148: [20:33:49] * Phlunk3 has joined #silverstripe
149: [20:33:58] <helenclarko> Morning o/
150: [20:34:32] <Firesphere> Afternoon \☺
151: [20:36:28] <zauberfisch> Firesphere: universal greeting time!
152: [20:36:42] <zauberfisch> helenclarko: good morning
153: [20:37:17] <Firesphere> Yeh, almost bedtime. I hope I'm awake at work tomorrow. If I fall asleep during our Skype call... you know why :P
154: [20:37:44] <zauberfisch> :D
155: [20:43:40] * DimiStripe_alt has joined #silverstripe
156: [20:44:24] * DimiStripe quit (Read error: Connection reset by peer)
157: [20:44:24] * veb quit (Quit: veb-irc: &)
158: [20:45:05] * firefox2kx quit (Remote host closed the connection)
159: [20:45:21] * firefox2kx has joined #silverstripe
160: [20:51:20] <helenclarko> Anyone know off a silverstripe addon which allows clients to upload to other services (E.g. file storage, mega.co.nz, you tube). I understand that a lot of these places require accounts.
161: [20:52:12] <helenclarko> I found a dropbox solution which was kind of cool.
162: [20:53:57] * travis-ci has joined #silverstripe
163: [20:53:58] <travis-ci> silverstripe/silverstripe-framework#5399 (3.2 - a246391 : Damian Mooyman): The build passed.
164: [20:53:58] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/20a66136e603...a2463912380b
165: [20:53:58] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/72743380
166: [20:53:58] * travis-ci has left #silverstripe
167: [20:59:31] <zauberfisch> helenclarko: there are a few modules, but none that really work well as far as I can tell
168: [20:59:53] <zauberfisch> helenclarko: but it's one of the key stones on the road map to silverstripe 4
169: [21:00:07] <helenclarko> Awesome.
170: [21:01:07] <zauberfisch> I have hacked togehter a S3 integration back in 2.4, and I think the module of unclecheese had one as well, but either of them where a pain in the arse to use and never really worked well
171: [21:02:02] <zauberfisch> if you need external files. the best approach in silverstripe 3 is to complete separate it from files, and built your own upload and create your own dataobject for external files.
172: [21:02:06] <helenclarko> I'm not too worried about it at this stage. Just had a customer ask if it was possible. I could dive into hacking one together, but was wondering if something already existed.
173: [21:02:07] <zauberfisch> or wait for silverstripe 4
174: [21:02:16] <helenclarko> You've answered that for me haha.
175: [21:02:26] <helenclarko> or that haha.
176: [21:03:42] <zauberfisch> there is an issue on github for the assets abstraction
177: [21:03:43] <zauberfisch> https://github.com/silverstripe/silverstripe-framework/issues/3792
178: [21:03:50] <zauberfisch> progress is tracked there if you are interested
179: [21:04:45] <zauberfisch> waiting for silverstripe 4 might be a long one though. optimisitc estimation says mid 2016
180: [21:06:56] * Ryan-Toast has joined #silverstripe
181: [21:11:10] * Stomach quit (Quit: zzz)
182: [21:11:28] * glenn-bautista has joined #silverstripe
183: [21:11:40] * adrexia has joined #silverstripe
184: [21:12:45] * Stomach has joined #silverstripe
185: [21:13:44] <helenclarko> I had a feeling it would be sometime next year.
186: [21:13:52] * DanaeNZ has joined #silverstripe
187: [21:14:06] <helenclarko> I think I'll be looking at hacking something together.
188: [21:14:21] <helenclarko> Thanks for your help though.
189: [21:14:48] * micmania1 has joined #silverstripe
190: [21:15:16] * Hailwood has joined #silverstripe
191: [21:16:11] * hombero has joined #silverstripe
192: [21:17:04] <hombero> hello everyone. I'm having a hard time wrapping my head around SS forms and how to call a template function with params from form data
193: [21:17:09] <hombero> does anyone know of a good tutorial?
194: [21:18:09] * Stomach quit (Quit: zzz)
195: [21:20:05] <hombero> for example if i had a form with one text field that i could enter a value into and then press submit and execute a function using that field's value as an argument
196: [21:21:51] <Ryan-Toast> hombero: I can give you an example.
197: [21:22:02] <hombero> yes please I would appreciate it
198: [21:23:51] * Kingy[a] is now known as Kingy
199: [21:23:54] <Ryan-Toast> hombero: https://github.com/Rhym/silverstripe-boilerplate/blob/master/code/Modules/ContactForm/code/forms/ContactForm.php
200: [21:24:00] <Kingy> morning
201: [21:24:04] * Pyromanik has joined #silverstripe
202: [21:24:10] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
203: [21:24:34] <helenclarko> Kingy, Morning o/
204: [21:25:26] <Kingy> \o/
205: [21:27:45] * Stomach has joined #silverstripe
206: [21:27:52] * veb has joined #silverstripe
207: [21:39:43] * DanaeNZ quit (Quit: DanaeNZ)
208: [21:40:33] * micmania1 quit (Quit: micmania1)
209: [21:44:17] * DanaeNZ has joined #silverstripe
210: [21:47:07] <Stomach> hi DanaeNZ !
211: [21:47:27] <Ryan-Toast> Stomach: HI STOMACH
212: [21:47:32] <Stomach> hi Ryan-Toast !
213: [21:47:33] <Ryan-Toast> I SEE HOW IT IS
214: [21:47:37] * DanaeNZ tries to wave
215: [21:47:42] * DanaeNZ fails because no coffee
216: [21:47:44] * Ryan-Toast intercepts
217: [21:47:51] <DanaeNZ> :<
218: [21:48:44] <helenclarko> YAY MONDAY!
219: [21:49:50] * firefox2kx quit (Ping timeout: 240 seconds)
220: [21:50:24] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
221: [21:50:37] <Pyromanik> ho rae.
222: [21:50:38] * veb quit (Quit: veb-irc: &)
223: [21:53:22] <Stomach> your turning old this week Ryan-Toast
224: [21:53:25] <Stomach> how do you feel
225: [21:53:30] <Ryan-Toast> Stomach: I AM 25
226: [21:53:33] <Ryan-Toast> I AM YOUNG
227: [21:53:39] <Ryan-Toast> NO SUCH THING AS 26
228: [21:53:41] <Stomach> so you feel poorly
229: [21:53:41] <Ryan-Toast> :P
230: [21:53:49] <Ryan-Toast> Still mid-twenties.
231: [21:53:53] <Ryan-Toast> Going to hold onto that.
232: [21:54:00] <Stomach> late 20s is where its at
233: [21:54:18] <Ryan-Toast> Everyone on tinder over 25 are really weird.
234: [21:54:22] <Ryan-Toast> I hope I don’t become like that
235: [21:54:54] <Ryan-Toast> brb meeting
236: [21:55:42] <Stomach> just uh, get off tinder?
237: [22:00:05] * veb has joined #silverstripe
238: [22:00:38] * micmania1 has joined #silverstripe
239: [22:09:38] * veb quit (Quit: veb-irc: &)
240: [22:10:15] <Ryan-Toast> Stomach: I refuse.
241: [22:10:42] <Stomach> oh
242: [22:10:44] <Stomach> okay Peter
243: [22:11:00] * veb has joined #silverstripe
244: [22:11:49] <Ryan-Toast> IT’s weird though.
245: [22:11:53] <Ryan-Toast> it’s**
246: [22:12:46] * veb quit (Client Quit)
247: [22:13:22] <Stomach> not really
248: [22:17:23] * veb has joined #silverstripe
249: [22:17:36] * veb quit (Client Quit)
250: [22:23:10] * micmania1 quit (Quit: micmania1)
251: [22:23:52] * micmania1 has joined #silverstripe
252: [22:26:56] <Ryan-Toast> Stomach: recommended method for adding dataobkjects to search results on the front end form?
253: [22:27:18] <Stomach> depends if you want real search or not
254: [22:27:57] <Ryan-Toast> How do you mean?
255: [22:28:15] <Stomach> like mysql search, solr, sphinx or just a dirty filter %LIKE%
256: [22:28:31] <Pyromanik> what do you mean 'add'?
257: [22:28:34] <Ryan-Toast> Stomach: Something that doesn’t take too long to set up.
258: [22:28:37] <Pyromanik> like... merge()
259: [22:28:38] <Pyromanik> ?
260: [22:28:48] <Stomach> just do a dirty filter then
261: [22:28:56] <Pyromanik> :PartialMatch
262: [22:28:58] <Ryan-Toast> Pyromanik: dataobjects as pages search prety much.
263: [22:29:24] <Pyromanik> using fulltextsearchable?
264: [22:29:30] <Pyromanik> ha, fuck'n good luck!
265: [22:29:41] <Pyromanik> nite
266: [22:29:42] * Pyromanik quit (Quit: Leaving)
267: [22:29:44] <Ryan-Toast> Thanks :)
268: [22:30:02] <zauberfisch> haha
269: [22:45:04] * Stomach quit (Quit: zzz)
270: [22:47:09] * Stomach has joined #silverstripe
271: [22:48:52] * spronk has joined #silverstripe
272: [22:56:41] * adrexia has joined #silverstripe
273: [23:02:35] <hombero> is there a gridview class where the columns are re-orderable?
274: [23:02:58] <hombero> i mean rows
275: [23:03:34] <helenclarko> Eww the taste of MILO has changed!
276: [23:03:59] <Ryan-Toast> hombero: https://github.com/silverstripe-australia/silverstripe-gridfieldextensions
277: [23:04:08] <Ryan-Toast> "GridFieldOrderableRows"
278: [23:04:12] <hombero> thank you!
279: [23:05:29] <helenclarko> all the more reason to buy Nippy's I guess.
280: [23:06:16] <hombero> how do I enable/install these extensions to GridField?
281: [23:07:20] <Ryan-Toast> hombero: composer
282: [23:07:33] <hombero> oh okay great
283: [23:07:38] <Ryan-Toast> composer require silverstripe-australia/gridfieldextensions
284: [23:17:21] * Colin[pi] has joined #silverstripe
285: [23:19:08] <Colin[pi]> hey hey o/
286: [23:20:52] * UncleCheese has joined #silverstripe
287: [23:21:46] <spronk> ello colin
288: [23:22:55] <Colin[pi]> spronk: o/
289: [23:26:31] <Colin[pi]> I swear to god I will throw this mouse out the window soon
290: [23:27:21] <spronk> lol?
291: [23:28:35] <Colin[pi]> spronk: razer mamba
292: [23:28:43] <spronk> whats wrong with it
293: [23:28:43] <spronk> ?
294: [23:28:54] <Colin[pi]> every time I start my pc it's like "LOL random sensitivity settings!!!"
295: [23:29:09] <Colin[pi]> so one day it's like super fast, the next, molasses
296: [23:29:17] <spronk> :S
297: [23:29:19] <spronk> weiiird
298: [23:29:22] <spronk> tried using a different usb port?
299: [23:29:28] <Colin[pi]> and changing the settings on the mouse for sensitivity seems to be like "LLOLOLL random number generator!"
300: [23:29:50] <Colin[pi]> gonna reinstall razer synapse
301: [23:30:03] <spronk> ugh
302: [23:30:04] <spronk> synapse
303: [23:30:11] <spronk> there are times when i reaaaaally want to like razer
304: [23:30:14] <spronk> but
305: [23:30:14] <Colin[pi]> yes
306: [23:30:19] <spronk> when they call something synapse
307: [23:30:20] <spronk> ...
308: [23:30:25] <spronk> reminds me of that movie
309: [23:30:26] <spronk> antitrust?
310: [23:31:47] <Colin[pi]> ffs reboot
311: [23:32:28] <hombero> darn it i cant get friendly urls to work
312: [23:33:31] <spronk> ask them nicely
313: [23:33:33] <spronk> they're friendly, you know
314: [23:33:36] * Colin[pi] quit (Read error: Connection reset by peer)
315: [23:34:29] <hombero> :)
316: [23:35:52] * UncleChe_ has joined #silverstripe
317: [23:36:58] <helenclarko> I have a similar thing with my MSI laptop. Seems to forget that I have two finger scroll turned on, or reset back to one line per scroll.
318: [23:41:01] * Colin[pi] has joined #silverstripe
319: [23:41:22] <Colin[pi]> 😠
320: [23:47:47] <DanaeNZ> we’ve got a new slave today :D
321: [23:49:09] * UncleCheese quit (Remote host closed the connection)
322: [23:49:33] <helenclarko> new blood?
323: [23:49:40] <DanaeNZ> yep
324: [23:49:46] <DanaeNZ> an old coworker of mine
325: [23:50:02] <DanaeNZ> toast is just picking up all the devs from Infinity, lololol
326: [23:50:58] <helenclarko> Haha
327: [23:51:15] <spronk> hm
328: [23:51:16] <spronk> ?
329: [23:51:19] * Colin[pi] quit (Read error: Connection reset by peer)
330: [23:51:21] <spronk> whats infinity
331: [23:51:25] <spronk> wheres my apostrophes
332: [23:51:26] <DanaeNZ> old company
333: [23:53:58] * Colin[pi] has joined #silverstripe
334: [23:58:25] <hombero> http://pastebin.com/EkKtbTqp gah. Can't figure out passing the form data to my method still

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