#silverstripe IRC Log

IRC log for 6 November 2015

All timestamps are in UTC.

1: [00:05:46] * kerozene quit (Ping timeout: 240 seconds)
2: [00:12:08] <hailwood> Hey guys, anyone know how you can copy a gridfield, but not have it's components linked?
3: [00:12:54] * kerozene has joined #silverstripe
4: [00:15:45] <helenclarko> lol el capitan on a 2008 macbook. Apparently its the oldest Mac osx el capitan will support.
5: [00:16:09] <antmas> helenclarko: how's it run? I'm tempted to upgrade my gf's to it
6: [00:17:45] <helenclarko> antmas: I really like it on my GF's Macbook pro. So far it's pretty slow on this Macbook. Please note that I have said Macbook, not macbook pro.
7: [00:18:09] <antmas> yup, macbook (non pro) here too
8: [00:18:17] <helenclarko> antmas: Things might improve once I get to the desktop, still in setup.
9: [00:18:36] <antmas> helenclarko: lemme know if it's in anyway faster than before
10: [00:18:49] <antmas> I still need to buy a bloody charger for it
11: [00:18:54] <antmas> those things are so expensive too :(
12: [00:20:25] <helenclarko> antmas: lol im considering a new motherboard/mainboard for my GF's old Macbook pro (first Gen). She spilt water on it and it has stopped it from starting.
13: [00:20:33] * DanaeNZ quit (Remote host closed the connection)
14: [00:20:35] <antmas> XD
15: [00:20:36] <antmas> dang
16: [00:20:45] <antmas> where does one go for chargers for macbooks?
17: [00:20:49] <antmas> usually...
18: [00:21:10] * DanaeNZ has joined #silverstripe
19: [00:21:15] <helenclarko> $400 bucks for a new motherboard... Might just be worth it over purchasing a new one.
20: [00:22:14] <helenclarko> antmas: I would go outside NZ for anything Mac related. Soooo spensive here.
21: [00:22:30] <antmas> mm
22: [00:22:36] <Audlex> in NZ atmas?
23: [00:22:47] <antmas> Audlex: yarp
24: [00:22:53] <Audlex> laptopbattery.co.nz do magsafe ones
25: [00:23:26] <antmas> ooohhhhh
26: [00:23:58] <Audlex> obviously original is better but you may have to sell your car first
27: [00:24:02] <antmas> that site looks amazingly 90s
28: [00:24:13] <Audlex> hah, yeah.
29: [00:24:30] <Audlex> i worked there for a bit a few years back.
30: [00:24:39] <antmas> so trustworthy then?
31: [00:24:56] * DanaeNZ quit (Remote host closed the connection)
32: [00:25:00] <Audlex> yeah definitely. they hold all their stock at Online Dist in chch
33: [00:25:10] <antmas> I geuss I should try get the model number first
34: [00:25:11] * DanaeNZ has joined #silverstripe
35: [00:25:18] <antmas> Audlex: nice, cheers, I'll try those guys
36: [00:25:27] <Audlex> no worries
37: [00:34:11] <helenclarko> antmas: 1 minute from chime to login, then login to open finder window was like 40 seconds.
38: [00:36:20] <helenclarko> not quick, but also not SSD
39: [00:43:27] * glenn-bautista quit (Ping timeout: 260 seconds)
40: [00:43:33] <antmas> mm I think I'll try get charger and ssd at same time
41: [00:44:46] <hailwood> Anyone have any possible improvements for this solution? https://gist.github.com/hailwood/f894370c658610a6d7b2
42: [00:48:28] <helenclarko> antmas: Really easy to replace HDD with SSD in older Macs too.
43: [00:48:49] <helenclarko> AND... Clonezilla works on mac. WOOP WOOP!
44: [00:50:00] <antmas> yeah I've done it to a friends
45: [00:50:10] <antmas> all I've done to this one though is throw some more ram at it
46: [00:50:58] <helenclarko> antmas: Also enable Trim if you can
47: [00:51:41] <antmas> remind me what Trim is again?
48: [00:54:06] <helenclarko> Trim is what sends a signal to the SSD every time you delete a file. TRIM ensures the physical NAND memory locations containing deleted files are erased before you need to write to them. The SSD can then manage its available storage more intelligently.
49: [00:54:13] <helenclarko> Thanks copy and paste
50: [00:54:29] <helenclarko> Windows 7 and newer have had built-in support for TRIM, which they enable for all SSDs. Historically, Mac OS X has only enabled TRIM for the solid-state drives Apple provides.
51: [00:54:48] <antmas> oh nice
52: [00:54:52] <antmas> I'll remember that
53: [00:55:08] <hailwood> Is it possible to render the gridfield add new button inside the GridFieldToolbarHeader? (over to the right?)
54: [00:56:11] <helenclarko> antmas: Probably not all that important (Apple doesnt seem to think so), but I read somewhere that it increases drive performance
55: [00:56:58] <hailwood> Basically this is what I want to do. http://i.imgur.com/bbtUGyB.png
56: [00:58:05] <helenclarko> hailwood: Doesnt GridField better buttons allow you to do that? Of course, you probably dont want to add better buttons as a requirement, but you might be able to pull code from there.
57: [00:58:46] <helenclarko> hailwood: Nvm, Better buttons doesnt do that lol.
58: [00:59:36] <hailwood> helenclarko, Yeah unfortunately not, we use Better buttons in all our projects
59: [01:00:24] <helenclarko> Wait, hold on... One of my gridfields is like that.
60: [01:02:11] <helenclarko> what type of gridfield?
61: [01:03:13] <helenclarko> anything used for relationships has the button on the left above, but standard gridfields are all button on the right like your picture. at least for me.
62: [01:04:09] <helenclarko> maybe its this: new GridFieldAddNewButton('toolbar-header-right'),
63: [01:06:03] * mahfuz has joined #silverstripe
64: [01:06:33] <helenclarko> hailwood: Yea, I tend to make all mine with new GridFieldAddNewButton('toolbar-header-right'),
65: [01:06:40] <helenclarko> Thats what does it.
66: [01:07:57] <hailwood> Oh sweet! How do the segments even match up? I cannot work that out..
67: [01:09:07] <helenclarko> hailwood: got a picture? whats going on?
68: [01:09:57] <hailwood> helenclarko, Oh no, the toolbar-header-right has worked, what I mean is where does toolbar-header-right come from so I know where I can place everything in the gridfield?
69: [01:13:07] <helenclarko> I found it in the gridfield documentation. I still have no idea what its all about.
70: [01:13:16] <helenclarko> https://docs.silverstripe.org/en/3.2/developer_guides/forms/field_types/gridfield
71: [01:13:23] <helenclarko> It doesnt explain it.
72: [01:14:41] <helenclarko> Plus it has nothing to do with ID's or classes on a gridfield
73: [01:15:19] <helenclarko> Somehow it knows.
74: [01:20:42] * Stomach quit (Quit: zzz)
75: [01:20:43] <helenclarko> hailwood: my head hurts. I cant find any reference to "toolbar-headr-right"
76: [01:21:09] * antmas quit (Ping timeout: 246 seconds)
77: [01:24:08] * zippy has joined #silverstripe
78: [01:24:19] * zippy quit (Client Quit)
79: [01:32:11] * Tanger has joined #silverstripe
80: [02:08:29] * novaweb has joined #silverstripe
81: [02:10:25] * novaweb quit (Client Quit)
82: [02:11:24] <DanaeNZ> finally friday
83: [02:11:29] <DanaeNZ> i didn't get a weekened
84: [02:11:32] <DanaeNZ> weekend even
85: [02:12:04] <Colin[pi]> DanaeNZ: I spent all weekend moving and unpacking :D
86: [02:12:11] <DanaeNZ> Colin[pi]: sounds fun
87: [02:12:18] <Colin[pi]> yayyyyy :|
88: [02:12:28] <DanaeNZ> three cheers for sarcasm!
89: [02:12:31] <DanaeNZ> yaaaaay.
90: [02:15:23] <hailwood> helenclarko, did you literally search for "toolbar-headr-right" or "toolbar-header-right"?
91: [02:16:04] <helenclarko> toolbar-header-right
92: [02:16:28] <helenclarko> I just spelt it wrong in here
93: [02:17:52] <Colin[pi]> god dammit accessibility checker
94: [02:18:04] <Colin[pi]> it just wont accept that the errors are fixed >_<
95: [02:20:46] <helenclarko> Colin[pi]: https://www.youtube.com/watch?v=HvLc6Y_RH14&feature=youtu.be&t=42
96: [02:22:51] <DanaeNZ> mmm beer'o'clock
97: [02:25:56] * joelpittet quit ()
98: [02:28:48] <ss-helper> SilverStripe GroupedList with has_one data - http://stackoverflow.com/questions/33558424/silverstripe-groupedlist-with-has-one-data
99: [02:36:06] <Tanger> DanaeNZ: Yay Friday! Yaaay!
100: [02:36:16] <DanaeNZ> YAS
101: [02:47:49] * glenn-bautista has joined #silverstripe
102: [03:31:10] * micmania1 quit (Quit: micmania1)
103: [03:41:24] <helenclarko> love how ss forums will say 48 hours and not 2 days.
104: [03:41:40] <helenclarko> "posted 48hours ago"
105: [03:49:24] <DanaeNZ> helenclarko: it's like people saying how old their child is
106: [03:49:29] <DanaeNZ> oh he's 24 months
107: [03:49:36] <DanaeNZ> bitch, he's 2
108: [03:49:47] * novaweb has joined #silverstripe
109: [03:49:55] <helenclarko> He's 2 and you're fucked!
110: [03:50:05] <helenclarko> Why do parents do that.
111: [03:51:20] * novaweb quit (Client Quit)
112: [03:51:21] <helenclarko> Like saying "He's 2 and 3 weetbix old"... Dont make me math or I'll stop listening to you!
113: [03:51:28] * novaweb has joined #silverstripe
114: [03:52:22] <helenclarko> But yes, SS Forums are now like some fucked up bitch parent.
115: [03:52:32] * novaweb quit (Client Quit)
116: [03:52:45] <helenclarko> and its Friday afternoon and I just wanna go home.
117: [03:52:52] <helenclarko> rant over!
118: [03:55:39] * hailwood quit (Remote host closed the connection)
119: [03:58:50] <ss-helper> AngularJS POST json to SilverStripe API - http://stackoverflow.com/questions/33559227/angularjs-post-json-to-silverstripe-api
120: [03:59:54] * MichalKleiner has joined #silverstripe
121: [04:00:03] <MichalKleiner> hey everyine! long time no see :-)
122: [04:00:08] <MichalKleiner> everyone
123: [04:00:21] * glenn-bautista quit (Quit: Leaving.)
124: [04:00:59] * helenclarko quit (Quit: Ain't no lie, baby bye bye bye.)
125: [04:07:53] <DanaeNZ> MichalKleiner: yoyo
126: [04:08:08] <MichalKleiner> quick question..
127: [04:08:16] <MichalKleiner> (never quick eh :-D )
128: [04:08:22] * Colin[pi] quit (Read error: Connection reset by peer)
129: [04:09:56] <MichalKleiner> when I use Director::get_current_page() in init() of Page, which is parent to BlogPost, it returns Controller::curr() not defined when viewing blog posts.. it doesn't do that for any other page..
130: [04:20:00] <MichalKleiner> not really a question.. just don't know why it's doing that
131: [04:35:58] * micmania1 has joined #silverstripe
132: [04:50:19] * DanaeNZ quit (Quit: TIME TO FEED)
133: [05:00:20] <micmania1> https://github.com/silverstripe/silverstripe-framework/pull/4748
134: [05:00:24] * micmania1 drops mic
135: [05:00:29] * micmania1 quit (Quit: micmania1)
136: [05:45:24] * mahfuz quit (Ping timeout: 246 seconds)
137: [06:39:06] * wmk has joined #silverstripe
138: [06:40:48] <nontgor> wmk: Can't upgrade to Elasticsearch 2.0 as the PHP library Elastica is still catching up #phew
139: [06:41:26] <wmk> oh.
140: [06:41:30] <wmk> well, it's brand new
141: [06:41:42] <wmk> same like SS3.2... some modules still don't work 100% on 3.2
142: [06:41:48] <wmk> btw: did you test mappable and 3.2 ?
143: [07:07:02] * Mike123 has joined #silverstripe
144: [07:12:54] <wmk> Mike123, ☺/
145: [07:18:35] <Mike123> Hello :))
146: [07:28:06] * Eliseth has joined #silverstripe
147: [07:29:50] <nontgor> wmk: Haven't tested 3.2 yet!
148: [07:52:06] * cupcake quit (Ping timeout: 246 seconds)
149: [08:12:53] * arnhoe has joined #silverstripe
150: [08:24:48] * sealan has joined #silverstripe
151: [08:29:40] * sealan quit (Remote host closed the connection)
152: [08:30:06] * sealan has joined #silverstripe
153: [08:43:35] * Liquide quit ()
154: [08:45:43] * SH__ has joined #silverstripe
155: [09:05:34] * kinglozzer has joined #silverstripe
156: [09:13:58] <ss-helper> Twitter bootstrap collapse: change display of toggle button - http://stackoverflow.com/questions/16224636/twitter-bootstrap-collapse-change-display-of-toggle-button
157: [09:15:34] * NETim has joined #silverstripe
158: [09:18:44] * NETim_ quit (Ping timeout: 250 seconds)
159: [09:21:25] * stnvh has joined #silverstripe
160: [09:25:28] * Tanger quit (Quit: exit())
161: [09:32:42] <SH__> Does anyone know how to refresh partial caching on switching locale? (Using the Fluent module)
162: [09:41:10] <wmk> SH__, put current locale in the cache key
163: [09:46:00] <SH__> Hmm I see, thanks Ill give it a shot
164: [09:48:10] <wmk> see partial caching docs
165: [09:50:20] <wmk> SH__, $ContentLocale could be a solution
166: [09:50:27] <wmk> it's in Controller, so globally available
167: [09:52:03] <SH__> I see. It turned out to be really easy. Should probably have read the docs properly first
168: [09:52:14] <wmk> well...
169: [09:52:26] <wmk> learning by doing is also a topic
170: [09:53:02] <wmk> afaik that's also a difference between Fluent and Translatable
171: [09:53:22] <wmk> so partial caching w/ Translatable: you have different Page ID for each translation
172: [09:53:30] <wmk> so this is enough for the cachekey
173: [09:54:10] <wmk> SH__, ouch, it's even in fluent docs... https://github.com/tractorcow/silverstripe-fluent/blob/master/docs/en/templating.md
174: [09:54:31] * novaweb has joined #silverstripe
175: [09:54:41] * novaweb quit (Client Quit)
176: [10:05:27] * Mike123 quit (Ping timeout: 246 seconds)
177: [10:11:34] <SH__> Yeah I saw that aswell, dont know how I could have missed it..
178: [10:20:37] * r_hector has joined #silverstripe
179: [10:30:29] * TRB143_ has joined #silverstripe
180: [10:30:47] * TRB143 quit (Ping timeout: 264 seconds)
181: [10:31:42] * novaweb has joined #silverstripe
182: [10:31:42] * novaweb quit (Read error: Connection reset by peer)
183: [10:32:39] <NETim> With routing, is there a way to route all requests that to a catch all function in a controller?
184: [10:35:52] <wmk> NETim, what do you try to acchieve?
185: [10:36:10] <wmk> i know that e.g. StaticPublisher overwrites /framework/main.php
186: [10:36:14] <wmk> the frontendcontroller
187: [10:36:16] * novaweb has joined #silverstripe
188: [10:36:20] * MarkGuinn has joined #silverstripe
189: [10:36:28] <wmk> MarkGuinn, ☺/
190: [10:36:32] * Mike123 has joined #silverstripe
191: [10:36:37] <NETim> ideally route /api/$anything/$at/all to api_controller::index()
192: [10:37:00] <wmk> route /api/ to api_controller
193: [10:37:11] <wmk> do the rest with $url_handlers in your api_controller
194: [10:37:15] <NETim> yes, but also, any request at all that starts /api
195: [10:37:31] <NETim> Got the route in routes.yml working. Stuck on the url_handlers/
196: [10:37:42] <wmk> flush of course ;)
197: [10:37:49] <wmk> url_handler * => index
198: [10:38:09] <NETim> Tried that, but i get a 'welcome to silverstripe' thing.
199: [10:38:37] <wmk> well, if index() just return $this
200: [10:38:49] <wmk> then the default controller template is rendered, which is "welcome"
201: [10:38:53] <NETim> Would that rule catch /api/?
202: [10:39:18] <wmk> NETim, test: api_controller index() { echo "api called"; die; }
203: [10:39:28] <wmk> or use xdebug!
204: [10:39:45] <NETim> got the controllers sorted, it's just the url_handlers.
205: [10:40:07] <wmk> well, what does your index method return?
206: [10:40:16] <NETim> echos 'hi there';
207: [10:40:54] <NETim> Does allowed_actions still have an effect with routes?
208: [10:42:24] <wmk> of course
209: [10:42:32] <wmk> though index should be an exception
210: [10:42:44] <wmk> routing = path to controller / action
211: [10:42:49] <wmk> $allowed_action is permission
212: [10:43:18] <NETim> Ok. Getting closer :)
213: [10:43:41] <NETim> it routes to the controller, but the catch all isn't catching all.
214: [10:44:16] <wmk> hmm
215: [10:44:23] <wmk> what's not catched? an already allowed action?
216: [10:44:33] <wmk> could be that the action overrules url_handler
217: [10:44:41] <NETim> If there isn't a function with the name of the bit after /api, it gives me the getting started page.
218: [10:47:56] <NETim> I've got login() and bob() as allowed actions and functions.
219: [10:48:05] <NETim> routing '*' => 'login'
220: [10:48:33] <NETim> so /api/login works fine, but /api/bob calls bob(), not login().
221: [10:55:40] <kinglozzer> iaowjagi3taewga
222: [10:55:53] <kinglozzer> f**king extensions aren't being called on live server
223: [10:55:55] <kinglozzer> >:(
224: [11:06:19] <NETim> wmk, '$Action/$ID' => 'index'
225: [11:06:36] <NETim> '*' => index doesn't seem to work.
226: [11:08:32] * novaweb quit (Read error: Connection reset by peer)
227: [11:11:34] <kinglozzer> So, uh.. turns out my extensions weren't running for the payment gateway response because my IP address sees dev mode and others see test, and I hadn't flushed test mode (separate config for dev/test/live modes)
228: [11:17:21] <NETim> kinglozzer, don't worry, it's friday...
229: [11:18:45] <wmk> yup. don't push anything to production today
230: [11:19:25] <NETim> Lets be cautious here, maybe we shouldn't even come to work on fridays... just in case.
231: [11:19:41] <kinglozzer> All in favour
232: [11:19:41] <kinglozzer> o/
233: [11:19:47] <NETim> o/
234: [11:19:51] <NETim> \o/
235: [11:20:07] <wmk> NETim, well, then thursday is a "false" friday, and the game begins again
236: [11:20:17] <NETim> Same logic applies...
237: [11:27:50] * novaweb has joined #silverstripe
238: [11:31:13] <wmk> NETim, damn, now i'm finished but afraid to put it live
239: [11:36:53] <NETim> wmk, you could alwways go to the pub and not think about it...#
240: [11:37:34] <wmk> to the pub? with my children?
241: [11:37:35] * code_dave has joined #silverstripe
242: [11:37:38] <code_dave> Hi All!
243: [11:38:02] <code_dave> just having problem with implementin Unique Validator :-/
244: [11:38:43] <code_dave> There is NO DataObject ID in the Request and the unique check cannot be implemented
245: [11:40:09] <code_dave> Since I need the ID to implement proper validation on existing Objects
246: [11:41:08] <NETim> wmk, do your pubs not have areas for kids?
247: [11:41:09] <code_dave> tryied to pass $this->ID in the getCMSValidator() , But it is 0 there - for an existing persistent Object :-/
248: [11:45:28] <code_dave> using V 3.1.13
249: [11:55:16] <code_dave> Is there a bulit in possibility to retrieve the DataObject ID in the Validator itself? Couldn't find any satisfying Answern in the inet :-/
250: [11:55:16] * novaweb quit (Read error: Connection reset by peer)
251: [12:03:48] * novaweb has joined #silverstripe
252: [12:08:18] * marvanni has joined #silverstripe
253: [12:09:28] <marvanni> Hi, I have problem with switching i18n language on the fly.
254: [12:10:18] <marvanni> I need to assemble a few emails that will have different languages. I want to use the _t() methods so I can use the translation files.
255: [12:11:16] <marvanni> To make SS switch the language is seems that I need to i18n::flush(); in my code , to make sure the correct lang files are loaded.
256: [12:11:40] <marvanni> But this seems a pretty resource hungry operation.
257: [12:12:20] <marvanni> any suggestions to switch between languages that does not eat up all memory?
258: [12:14:41] * EasyCo quit (Quit: Connection closed for inactivity)
259: [12:17:05] * cupcake has joined #silverstripe
260: [12:22:21] <cupcake> hi
261: [12:22:37] <slievr> hi o/
262: [12:22:45] <cupcake> any ideas why $this->httpError(404); goes into an infinite loop please?
263: [12:24:50] * novaweb quit (Read error: Connection reset by peer)
264: [12:26:26] * Eliseth quit (Ping timeout: 265 seconds)
265: [12:28:30] <kinglozzer> cupcake: where/how are you calling it?
266: [12:29:09] * novaweb has joined #silverstripe
267: [12:34:23] <wmk> marvanni, a few emails...
268: [12:34:34] <wmk> at once?
269: [12:34:43] <marvanni> yeah, might be 8 or something
270: [12:34:45] <marvanni> yes
271: [12:34:55] <wmk> or could you put them to a queue and send them by language with a cron job every minute?
272: [12:35:06] <marvanni> the emails sending itself seems not to pose any problems on the server
273: [12:35:41] <marvanni> nah, thats seems pretty ugly. I also need to preview the emails before sending, so I need to render them anyway
274: [12:35:57] <wmk> well. queue isn't ugly per se
275: [12:36:17] <marvanni> not perse, but it is to fix switching languages
276: [12:38:57] <wmk> OUCH!!! https://twitter.com/LeaVerou/status/655541736664645632
277: [12:41:52] <cupcake> kinglozzer solved it
278: [12:42:01] <cupcake> OldPageRedirector extension has a bug
279: [12:42:12] <cupcake> so i just removed the extension
280: [12:43:35] <kinglozzer> cupcake: Ah, you're 404'ing on the "index" action?
281: [12:43:37] * novaweb quit (Read error: Connection reset by peer)
282: [12:43:43] <cupcake> yes
283: [12:44:39] * kinglozzer lunch
284: [12:47:34] <code_dave> wmk, already foud the example it is not working! Since the ID is not present in $_Request
285: [12:49:40] <code_dave> working with AjaxUniqueTextField ... atm
286: [12:51:15] * wmk quit (Ping timeout: 246 seconds)
287: [13:14:21] * marvanni quit (Read error: Connection reset by peer)
288: [13:17:31] * UndefinedOffset has joined #silverstripe
289: [13:18:05] * marvanni has joined #silverstripe
290: [13:44:09] * kinglozzer quit ()
291: [13:56:01] * kinglozzer has joined #silverstripe
292: [13:57:09] * cupcake quit (Ping timeout: 246 seconds)
293: [13:58:33] * SH__ quit (Ping timeout: 246 seconds)
294: [13:58:57] <code_dave> OMG Even AjaxUniqueTextField is not working properly :-/
295: [13:59:34] <code_dave> for already persisted values that are unique its shows a failure
296: [14:00:43] <code_dave> Does anybody know how to inject DataObject ID into the Validator?
297: [14:21:07] * kbtjuh has joined #silverstripe
298: [14:28:27] * cupcake has joined #silverstripe
299: [14:28:30] <cupcake> is there a way of doing some processing of the image before you insert it in the content from the HTMLEditorField Upload Image feature in toolbar?
300: [14:31:01] <cupcake> can i run an ajax call
301: [14:31:02] * r_hector quit (Remote host closed the connection)
302: [14:31:11] <cupcake> in the html editor field media form?
303: [14:31:26] * cmcramer has joined #silverstripe
304: [14:55:09] <cupcake> anyone can help ?
305: [15:07:18] * cmcramer quit (Quit: Textual IRC Client: www.textualapp.com)
306: [15:40:11] * UndefinedOffset quit (Quit: Leaving.)
307: [16:02:59] * UndefinedOffset has joined #silverstripe
308: [16:04:12] * Mike123 quit (Ping timeout: 246 seconds)
309: [16:11:00] * Otterpocket has joined #silverstripe
310: [16:11:54] <Otterpocket> Am I correct to assume SS does not have the ability to find or new
311: [16:12:22] <Otterpocket> or "find or create" Like ORMs in other frameworks ?
312: [16:19:46] <kinglozzer> Otterpocket: Correct, it doesn't have that ability (to do it all in one method)
313: [16:21:31] <Otterpocket> kinglozzer, is it a feature that would ever make it in?
314: [16:21:53] * nontgor quit (Remote host closed the connection)
315: [16:22:06] <kinglozzer> ¯\_(ツ)_/¯
316: [16:23:21] <Otterpocket> kinglozzer, For instance if I was to submit a PR with that feature, would it make it in?>
317: [16:23:39] <kinglozzer> What would it "find" by? ID? Or would you tell it what to find by, e.g. $record = MyClass::find_or_make(array('URLSegment' => $urlsegment)) ?
318: [16:24:34] <kinglozzer> Otterpocket: I'm not sure, it'd probably need to be thought about carefully
319: [16:24:43] <Otterpocket> http://apidock.com/rails/v4.0.2/ActiveRecord/Relation/find_or_create_by
320: [16:27:35] <kinglozzer> Otterpocket: Ah I see
321: [16:28:35] * arnhoe quit ()
322: [16:29:19] <kinglozzer> Otterpocket: I think that could be accepted. If you're not sure about doing the work & tests for it, post it on the dev list first
323: [16:29:45] <kinglozzer> We already have Folder::find_or_make which is a similar pattern
324: [16:30:30] <kinglozzer> So something like $member = Member::find_or_create_by('Email', 'foo@bar.com') might be a nice addition
325: [16:30:50] <kinglozzer> What happens if it finds more than 1 result?
326: [16:31:21] <kinglozzer> I guess it could just return the first result
327: [16:33:15] <kinglozzer> Laravel has Model::firstOrNew() which sounds like a better name
328: [16:36:06] <kinglozzer> devlist it! https://groups.google.com/forum/#!forum/silverstripe-dev
329: [16:38:43] <Otterpocket> Yea I was just looking for the Laravel Version as an example
330: [16:39:13] <Otterpocket> I find it helpful for seeders
331: [16:40:35] <Otterpocket> So I can add new Data to a seeder and not have to delete all and then recreate
332: [16:43:45] * Otterpocket has left #silverstripe
333: [16:45:52] * Kolin quit (Ping timeout: 264 seconds)
334: [16:45:55] * Kolin_ has joined #silverstripe
335: [17:04:43] * alialamshahi has joined #silverstripe
336: [17:04:51] <alialamshahi> Hi everyone
337: [17:06:21] <alialamshahi> Anyone nows how I can have a plus 1 number in my template: <% loop $Regions %> <option value=" I Want +1 Numbers Here ">$Title</option><% end_loop %>
338: [17:08:38] <alialamshahi> would this help: ++$num
339: [17:09:28] <alialamshahi> is there something like $num++
340: [17:12:58] * R\w\C has joined #silverstripe
341: [17:14:23] * kinglozzer quit ()
342: [17:32:15] * sealan quit (Remote host closed the connection)
343: [17:39:20] * NETim quit (Read error: Connection reset by peer)
344: [17:46:14] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
345: [17:46:39] * gordon__ has joined #silverstripe
346: [17:46:51] * gordon__ is now known as nontgor
347: [17:51:39] * alialamshahi quit (Ping timeout: 246 seconds)
348: [17:54:55] * AlphaCactus has joined #silverstripe
349: [17:55:51] * code_dave quit (Ping timeout: 246 seconds)
350: [18:16:24] <kbtjuh> Is it possible to change the name of these fields?
351: [18:16:30] <kbtjuh> check img: http://pixodemo.nl/ss-change.png
352: [18:20:29] * joelpittet has joined #silverstripe
353: [18:21:41] * wmk has joined #silverstripe
354: [18:22:45] * CodeTrap has joined #silverstripe
355: [18:27:50] * novaweb has joined #silverstripe
356: [18:30:24] * novaweb quit (Read error: Connection reset by peer)
357: [18:30:34] <AlphaCactus> should be able to get the field from $fields and set a new title on it using setTitle
358: [18:40:39] * cupcake quit (Ping timeout: 246 seconds)
359: [19:08:11] * SphereSilver is now known as Sphere
360: [19:24:42] * Copperis has joined #silverstripe
361: [19:39:20] <Sphere> Happy CakeDay people!
362: [19:48:45] * sealan has joined #silverstripe
363: [19:48:46] * TRB143_ is now known as TRB143
364: [19:50:13] <Sphere> Argh, PHP Fatal error: Class 'ShortcodeParser' not found in /var/www/clients/client1/web19/web/cms/_config.php on line 13"
365: [19:50:23] <Sphere> ShortCodeParser is there in Framework, what is going wrong :X
366: [19:52:11] <Sphere> Nevermind. Flush was wrong.
367: [19:54:14] * marvanni quit (Quit: marvanni)
368: [19:57:43] <Sphere> Any feedback? http://demo.casa-laguna.net
369: [19:57:52] <Sphere> Specials and Galleries are not yet themed
370: [20:09:54] * kbtjuh quit (Ping timeout: 246 seconds)
371: [20:14:34] * CodeTrap quit (Ping timeout: 272 seconds)
372: [20:19:28] <wmk> cake(php)day?
373: [20:20:45] <wmk> Sphere, nice ;)
374: [20:21:03] <Sphere> wmk: Noooo! Not CakePHP!
375: [20:23:53] <terryapodaca> where did you get Cakephp from?
376: [20:24:10] <Sphere> wmk did... I'm not even going to try
377: [20:24:43] <terryapodaca> you moved yet?
378: [20:24:46] <terryapodaca> I forget when
379: [20:25:19] <Sphere> Well, if the Visa application goes through, I'm moving January 12th :)
380: [20:25:28] <terryapodaca> ahh, gotcha
381: [20:25:56] <terryapodaca> you raised enough money for Dodge?
382: [20:27:32] <Sphere> Far from it, but the money raised is at least a good start to get the medical requirements :)
383: [20:27:33] <wmk> terryapodaca, no php cake, i'm on diet (according to my wife)
384: [20:28:41] <terryapodaca> haha, he looks ready: http://casa-laguna.net/assets/bulkUpload/2012-05-15-18.02.47.jpg
385: [20:28:52] <terryapodaca> wmk: no no no
386: [20:30:13] * sealan quit (Remote host closed the connection)
387: [20:31:51] <Audlex> does this look right? I have never used ListboxField but it has a many_many on ProductTags if that helps
388: [20:31:52] <Audlex> ListboxField::create('ProjectTags', 'Select Tag(s)', ProductTag::get()->map('ID', 'Tag')->toArray(), null, null, true)
389: [20:32:03] <Audlex> It doesn't show in the backend
390: [20:33:38] <Audlex> oh dammit. nevermind. too early not to be stupid it would seem
391: [20:35:33] <terryapodaca> Sphere: what brand is that blue guitar?
392: [20:35:43] <terryapodaca> I have a Jackson that looks very similar
393: [20:35:55] <Sphere> Well, I'd tell you... but I already sold it ;)
394: [20:36:12] <Sphere> It's not a big brand or anything
395: [20:36:28] <terryapodaca> gotcha
396: [20:36:39] <terryapodaca> Mine has two floating pickups though
397: [20:37:17] <terryapodaca> I really like your Washburn....you gonna try an keep some of those?
398: [20:38:21] <Sphere> Nope, they're all going to be sold.
399: [20:38:26] <Sphere> Can't ship them safely :'(
400: [20:38:39] <wmk> :(
401: [20:38:47] <wmk> selling guitars is like...
402: [20:40:32] * sealan has joined #silverstripe
403: [20:42:18] * gelignite has joined #silverstripe
404: [20:56:47] * wmk quit (Quit: nice to meet you ;))
405: [21:00:33] <Sphere> Hmmm, how do I give a page the class "Active" if one of it's children is selected?
406: [21:00:50] <Sphere> Appearantly, the menu function isn't that bright?
407: [21:02:07] * micmania1 has joined #silverstripe
408: [21:02:27] * sealan quit (Remote host closed the connection)
409: [21:10:01] <Sphere> Damn this is one ugly solution, but it works. Looping the children to look for actives :X
410: [21:10:53] <terryapodaca> Sphere
411: [21:11:01] * irogue has joined #silverstripe
412: [21:11:07] <terryapodaca> doesn't SS give the parent the Section or section class?
413: [21:13:05] <terryapodaca> https://docs.silverstripe.org/en/3.2/developer_guides/templates/common_variables/#linking-modes
414: [21:13:06] <Sphere> Could be... I'm not sure, I haven't looked into it.
415: [21:14:44] <Sphere> Ah, yes, the $InSection
416: [21:15:01] <Sphere> But it's not realy useful... since I can't pass a variable to it, it needs to be a string
417: [21:15:28] <terryapodaca> no no
418: [21:16:30] <terryapodaca> you put class="$LinkingMode" either in the li or a tags
419: [21:16:38] <terryapodaca> depending how you are building your menu items
420: [21:16:47] <Sphere> Ow yeah. I read it wrong :D
421: [21:16:54] <Sphere> Hmmm, I might look into that tomorrow :D
422: [21:17:14] <Sphere> First, I want the layout to work for all pagetypes
423: [21:17:25] <Sphere> After that, it's bugfixing and implementing things like that :)
424: [21:17:41] <terryapodaca> you've been a SS developer for a long time, this surprises me that you dont' know that
425: [21:17:55] <Sphere> I actually did ;)
426: [21:18:08] <Sphere> I'm just very tired and not thinking straight ;)
427: [21:18:27] <Sphere> Ask me tomorrow after my first coffee, and I'll blindly give you LinkingMode.
428: [21:18:28] <terryapodaca> haha...and I was about to say...and you are about to go work for SS
429: [21:18:43] <Sphere> I'm just not thinking straight at the moment :)
430: [21:19:09] <terryapodaca> I think there's some other built in page functions that help with the "active" pages and parents, etc...
431: [21:19:17] <terryapodaca> I'm just giving you a hard time
432: [21:19:20] <Sphere> I know... it's somewhere in my brain :P
433: [21:19:31] <Sphere> But my brain refuses to function properly :D
434: [21:20:02] <terryapodaca> and I won't asking you anything tomorrow, tomorrow is my Saturday and I have started to make myself NOT work after 6pm Fridays and all day Saturdays
435: [21:20:11] <terryapodaca> and only work Sundays if I have to
436: [21:20:18] <Sphere> Good idea :)
437: [21:20:38] <Sphere> I just want my private website to be updated by january and the only time I can do it, is in my own time.
438: [21:20:43] <Sphere> Plus, I like looking at code :P
439: [21:20:54] <Sphere> Well... code I wrote myself that is, ofcourse
440: [21:21:42] * joelpittet quit ()
441: [21:22:33] <Sphere> For some reason, there's a kitten in my fridge.
442: [21:22:40] <Sphere> And it won't come out of the fridge
443: [21:23:06] <terryapodaca> damn kittens
444: [21:23:45] <Sphere> Yeah, it's meeping and meowing... but when I open the door of the fridge, she just sits there, looking at me with a face like "And what exactly do you want?"
445: [21:24:07] <terryapodaca> is your fridge not too cold?
446: [21:24:13] <terryapodaca> or does she seem to like that too
447: [21:24:39] <terryapodaca> my kitties like to sit by the window when I open it a little to let in the cold air
448: [21:25:02] <Sphere> I don't know, I'm afraid to close the door fully, so she can get out on her own.
449: [21:25:06] <Sphere> Which she just did....
450: [21:25:13] <terryapodaca> lol
451: [21:25:14] <Sphere> She moved into the dryer....
452: [21:25:22] <terryapodaca> oh lord
453: [21:25:27] <terryapodaca> you're gonna miss her
454: [21:25:27] <irogue> g'mornin from the SS office
455: [21:25:30] <Sphere> Onto my just cleaned and dried clothes
456: [21:25:35] <Sphere> Hey irogue !
457: [21:25:46] <terryapodaca> working on a Sat irogue?
458: [21:25:47] <Sphere> Why are you at the office? It's saturday for you, right?
459: [21:26:08] <terryapodaca> yeah, it's almost 10:30 am there
460: [21:26:35] <micmania1> Its hack day!! :D
461: [21:26:38] <irogue> http://www.meetup.com/SilverStripe-Wellington-Meetup-Group/events/226037035/
462: [21:26:38] <Sphere> Yep, exactly 12 hours ahead of me nowadays
463: [21:26:43] <Sphere> Ow, that's today!
464: [21:26:59] <Sphere> I guess I won't hack. I don't even remember basic template actions atm :|
465: [21:27:50] <irogue> this day requires more caffeine
466: [21:28:03] * Sphere sends caffeine to irogue
467: [21:28:37] <terryapodaca> coffee or energy drink?
468: [21:28:43] <irogue> the latter
469: [21:28:47] <irogue> coffee is gross
470: [21:28:53] <Sphere> Energy drink is for teenagers
471: [21:28:58] <Sphere> Coffee is for real men
472: [21:29:03] <terryapodaca> or do you just inject caffeine directly into your veins
473: [21:29:11] <irogue> terryapodaca: I'd happily do that
474: [21:36:34] <Sphere> There's no use in injecting caffeine into your veins.
475: [21:37:01] <Sphere> It would be rejected. Your liver has to process it into adrenaline-alike molecules.
476: [21:37:40] <terryapodaca> Sphere: in another life were you a scientist?
477: [21:37:59] <Sphere> terryapodaca: I'm actually an BSc in Applied Physics ;)
478: [21:38:34] <Sphere> So.... yeah, I kinda do know how the body works, it's been part of my study ;)
479: [21:42:47] <Sphere> Far from a biologic scientist, but I know a few things about it.
480: [21:43:53] * irogue quit (Quit: My Mac has gone to sleep. ZZZzzz…)
481: [21:44:14] <Sphere> Hah, back to bed I guess? :P
482: [21:44:20] * irogue has joined #silverstripe
483: [21:44:31] <terryapodaca> me?
484: [21:44:34] <terryapodaca> no no
485: [21:44:38] <terryapodaca> it's 3:45
486: [21:44:40] <terryapodaca> pm
487: [21:44:40] <Sphere> no, irogue
488: [21:44:58] <Sphere> but he's back already.
489: [21:45:11] <Sphere> Although.... I _am_ quite close to going to bed
490: [21:45:17] <irogue> my laptop isn't plugged in so it dropped while I went to get caffeine
491: [21:45:20] <Sphere> When I get this kitten of my lap
492: [21:47:23] <terryapodaca> Do you call them all kittens?
493: [21:47:31] <terryapodaca> even if they are grown ups?
494: [21:47:31] <Sphere> So, Dodge her flight is booked. It's more expensive than my own ticket!
495: [21:47:55] <Sphere> terryapodaca: No, I actually have two cats, Tesla is almost 1 year old, so I call her a kitten
496: [21:48:17] <Sphere> Dodge is just "cat" or "kitty" or "big girl"
497: [21:48:40] <terryapodaca> gotcha
498: [21:50:42] <Sphere> Here's an intro to my cats: https://vimeo.com/143362872
499: [21:52:43] <Sphere> You just need to watch the first minute or so ;)(
500: [21:52:46] <Sphere> You just need to watch the first minute or so ;)
501: [21:53:02] * UndefinedOffset quit (Quit: Leaving.)
502: [21:56:22] <terryapodaca> Sphere
503: [21:56:32] <Sphere> That's me
504: [21:56:33] <terryapodaca> right, you posted photos of them before
505: [21:56:58] <terryapodaca> sorry, I hit enter right after I hit tab
506: [21:57:15] <terryapodaca> I showed you my two cats too,
507: [21:57:26] <Sphere> I remember :)
508: [22:01:58] <terryapodaca> Where can I get some SilverStripe stickers?
509: [22:07:55] <irogue> terryapodaca: I could probably post you some
510: [22:08:17] <Sphere> I think Joel is the better candidate to send some stickers
511: [22:08:22] <Sphere> Probably cheaper.
512: [22:09:19] <terryapodaca> who is Joel?
513: [22:09:32] <Sphere> The London contactperson.
514: [22:09:32] <terryapodaca> and irogue, how much would it cost me?
515: [22:09:42] * joelpittet has joined #silverstripe
516: [22:09:43] <irogue> its a letter, it'll cost me like $2 max to send :P
517: [22:09:44] <Sphere> I've sent you his e-mail address over private chat ;)
518: [22:09:50] <irogue> terryapodaca: nothing :)
519: [22:10:15] <terryapodaca> well then
520: [22:10:23] <terryapodaca> irogue wins
521: [22:10:23] <Sphere> Damn I'm Tired but unwilling to go to sleep :X
522: [22:10:34] <irogue> i'm already at the office so I'll do it today - just flick me your address
523: [22:10:38] <irogue> ed at silverstripe.com
524: [22:10:41] <Sphere> Works too :D
525: [22:11:08] <irogue> aw noe Sphere, you're gonna get a dumb email address :(
526: [22:11:26] <Sphere> Why would it be dumb?
527: [22:11:47] <Sphere> Just _TRY_ to pronounce my last name in English!
528: [22:11:56] <Sphere> It can never be worse than that! :P
529: [22:12:00] * MarkGuinn quit (Quit: My Mac has gone to sleep. ZZZzzz…)
530: [22:12:07] <terryapodaca> what is your last name?
531: [22:12:16] <Sphere> Erkelens
532: [22:12:21] <irogue> Sphere: thats the problem - we already have a Simon
533: [22:12:24] <terryapodaca> erkelens
534: [22:12:38] <terryapodaca> "erk"
535: [22:12:41] <Sphere> irogue: so, I'm going to be simone? :P
536: [22:12:43] <irogue> first person with a name gets e.g. simon@ss, from then on its e.g. serkelens@ss
537: [22:12:43] <terryapodaca> "elen"
538: [22:12:47] <terryapodaca> "s"
539: [22:13:13] <Sphere> Best way to pronounce my last name in English, would be "Are-Key-Lens"
540: [22:13:33] <terryapodaca> ha
541: [22:13:35] <terryapodaca> i was way off
542: [22:14:16] <ss-helper> Silverstripe 3.2 Image Upload dimension validation - http://stackoverflow.com/questions/33576463/silverstripe-3-2-image-upload-dimension-validation
543: [22:14:19] <Sphere> Yeah, it's a very Dutch name.
544: [22:14:45] <Sphere> Even my example is way off from how it's actually pronounced ;)
545: [22:15:10] <terryapodaca> watching some of these talks on the SilverStripe econ/stripeCon and people have these cool SS stickers on their laptops and stuff
546: [22:15:38] <Sphere> Maybe this is closer: "Air - Keh (short E) - lens"
547: [22:16:00] <terryapodaca> Apodaca
548: [22:16:01] <Sphere> not like "key" but more like "meh", but with a K at the start
549: [22:16:03] <terryapodaca> try that
550: [22:16:13] <Sphere> Ay-po-da-kah
551: [22:16:23] <terryapodaca> aaaaaa
552: [22:16:27] <terryapodaca> AAAAAA
553: [22:16:32] <Sphere> Sorry :)
554: [22:16:58] <Sphere> It could also be "A-pow-da-kah"
555: [22:17:07] <terryapodaca> that's closer
556: [22:18:40] <Sphere> It's actually quite hard to write down a pronounciation :)
557: [22:19:44] <Sphere> I want a Surface Book
558: [22:21:59] <terryapodaca> if I didn't have to develop some stuff with Visual Studio, I wouldn't have any Microsoft machines
559: [22:22:16] <terryapodaca> irogue: sent an email, let me know ifyou get it
560: [22:28:05] <Sphere> Ok, I'm off to bed. Tomorrow I have to re-apply my Visa (again)
561: [22:28:11] <Sphere> Sleep tight folks.
562: [22:29:16] <ss-helper> How to convert xls to mysql? - http://stackoverflow.com/questions/33138953/how-to-convert-xls-to-mysql
563: [22:31:54] <irogue> terryapodaca: yup, got it
564: [22:32:53] <terryapodaca> later Sphere
565: [22:32:58] <terryapodaca> and thanks irogue!
566: [22:33:01] <terryapodaca> you da man
567: [22:33:13] <terryapodaca> you haz cat too?
568: [22:34:39] <irogue> I have a cat but it remained with family in my hometown
569: [22:36:00] <terryapodaca> ah...saw the cat on your twitter
570: [22:38:46] <irogue> yup
571: [22:38:49] <irogue> <3 cats
572: [22:38:58] <irogue> there's a house down the road from my house that has 3 cats
573: [22:39:12] <irogue> and regularly when walking past, one or more will come running out for belly rubs
574: [22:39:24] <terryapodaca> awwww
575: [22:39:43] <terryapodaca> and you do it without second thought
576: [22:39:45] <terryapodaca> :D
577: [22:40:15] <irogue> of course!
578: [22:41:23] <irogue> one of those cats: https://twitter.com/Cheddam/status/649678143612022784
579: [22:42:43] <terryapodaca> very cool
580: [22:43:03] <terryapodaca> I had a cat that looked very similar to that
581: [22:50:36] <irogue> terryapodaca: your stickers are envelope'd and addresses and waiting for me to go the post shop :)
582: [22:50:54] <terryapodaca> you rock!
583: [22:51:02] <terryapodaca> I owe you a few beers
584: [22:51:09] <terryapodaca> if i ever make it out to NZ
585: [22:51:18] <terryapodaca> or if you ever get out here to Texas
586: [22:51:49] <terryapodaca> I'm done for the day though...later everyone! have a good weekend!!!
587: [22:51:55] <irogue> you too!
588: [23:11:57] * terryapodaca has left #silverstripe
589: [23:15:47] * MarkGuinn has joined #silverstripe
590: [23:32:06] * novaweb has joined #silverstripe
591: [23:41:43] * MarkGuinn quit (Quit: My Mac has gone to sleep. ZZZzzz…)
592: [23:49:21] * novaweb quit (Remote host closed the connection)
593: [23:50:36] * novaweb has joined #silverstripe

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