#silverstripe IRC Log

IRC log for 25 October 2016

All timestamps are in UTC.

1: [00:15:17] * spronk has joined #silverstripe
2: [00:16:42] * sminnee_ has joined #silverstripe
3: [00:17:50] * spronk quit (Client Quit)
4: [00:29:35] * spronk has joined #silverstripe
5: [00:42:02] * vanny has joined #silverstripe
6: [00:42:42] <vanny> ok crazy question time. I have client that have needed to upload high res images (upto 8mb) each, but now it is time to archive them, is there a way to do this in bulk for about 5000-8000 pictures?
7: [00:52:08] <Hailwood> vanny: define archive?
8: [00:54:52] <vanny> well I can take them down in size as the client has seen them, so to free up server space resize them down from 5000px to 1000px they will still see enough details if they need to
9: [00:55:30] <vanny> currently there are 15gb of them
10: [00:57:39] <Hailwood> Honestly I would just write a bash or php script to do what you need to all the images, after that run the dev/tasks task to sync the assets
11: [00:57:42] <Hailwood> ^ vanny
12: [00:57:42] <vanny> i know I could download them all run a photoshop batch and then reupload but trying to avoid download 15gb just for fun
13: [00:59:20] <Hailwood> Combine this with a directory search (assuming the files either match a common pattern, or that you don't have images you don't want resized mixed in with the ones you do) and you should be gold http://stackoverflow.com/questions/14649645/resize-image-in-php#answer-14649689
14: [01:00:04] <ss-helper> SilverStripe calendar validation error - http://stackoverflow.com/questions/40196521/silverstripe-calendar-validation-error
15: [01:14:15] <muskie9> vanny Hailwood we've done tasks with this: https://github.com/heyday/silverstripe-optimisedimage
16: [01:14:39] <muskie9> probably not a good option for the amount you're talking about, but worked well for our use cases
17: [01:15:12] <Hailwood> muskie9: Yeah, we have that in place on all our sites, it's brilliant - but for what vanny wants to do I don't think it's quite right (or I'm not understanding correctly...).
18: [01:15:15] <muskie9> I think we just query'd all Image class objects via ORM and called ->write() on all of them... the module did the rest
19: [01:15:30] <Hailwood> Hey does anyone know if we can write a pre-hashed password to a member?
20: [01:15:41] <muskie9> Hailwood yes
21: [01:16:00] <muskie9> https://github.com/dynamic/foxystripe/blob/1.2/code/controllers/FoxyStripe_Controller.php#L75
22: [01:16:14] <muskie9> update the config, set the value, write, re-set the config
23: [01:16:24] <muskie9> useful for SSO stuff
24: [01:17:43] <Hailwood> Brilliant! Much appreciated, I wasn't looking forward to need to store a plain text password (we ask for it at the beginning of the process) until the user has actually completed the process (which they could drop off from before completing).
25: [01:18:17] <muskie9> 👍
26: [01:18:43] <muskie9> lot of trial and error with that one line lolz
27: [01:19:24] <Hailwood> That package looks quite interesting
28: [01:19:43] <muskie9> foxystripe?
29: [01:24:03] <Hailwood> Yeah
30: [01:27:20] <muskie9> integrates w/FoxyCart... there was a module a while back that was abandoned so we kinda re-worked it...
31: [01:28:20] <muskie9> don't have to do any of the heavy lifting with payment processing, that's all with FoxyCart, just the SS interface and a few things to setup for the FoxyCart account, but we're hoping to get the API integration setup so it's all in SS
32: [01:28:38] <muskie9> have a couple projects coming up that will hopefully move us in that direction
33: [01:28:39] * Stomach quit (Ping timeout: 244 seconds)
34: [01:30:04] <ss-helper> Using renderWith() to render core template with custom layout - http://stackoverflow.com/questions/40229961/using-renderwith-to-render-core-template-with-custom-layout
35: [01:33:20] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
36: [01:34:56] * cheddam has joined #silverstripe
37: [01:35:48] * Stomach has joined #silverstripe
38: [01:40:30] <Hailwood> does ss even support nested layouts? I always thought it was templates/Layout/*.ss only
39: [01:43:16] * neilf__ has joined #silverstripe
40: [01:44:14] <muskie9> Hailwood I think so, but not 100% sure... I thought our frontend dev mentioned he discovered that but not sure if it was a freak bug or something
41: [01:45:37] <Hailwood> I wonder if the SS template loader is getting some love in SS4
42: [01:45:52] <muskie9> I recall it'll support namespacing 👍
43: [01:46:18] <muskie9> from our frontend dev re: nesting "if there wasn't another template, it worked. but if there was a template in the module folder already, it didn't pick up the one in the theme folder"
44: [01:46:44] <muskie9> which seems bass akwards since it should be the other way around with detection
45: [01:46:44] * Ali_Alamshahi has joined #silverstripe
46: [01:47:01] <Ali_Alamshahi> hello everyone
47: [01:47:11] <muskie9> Ali_Alamshahi o/
48: [01:47:31] * Ali_Alamshahi quit (Client Quit)
49: [01:48:07] * Ali_Alamshahi has joined #silverstripe
50: [01:48:24] <Ali_Alamshahi> hi muskie9
51: [01:49:51] <muskie9> I still need to dig into SS4... get a feeling for how upgrades will go
52: [01:52:05] <Ali_Alamshahi> does anyone know if there is a way to create a website with SS which allows users to enter a code (tracking number) and get to see the latest statues? is there any module for it?
53: [01:52:39] <muskie9> what do you mean by latest statues?
54: [01:54:07] <Ali_Alamshahi> like a page related to that code which only people with that code can see it and it shows some texts
55: [01:54:34] <muskie9> that's pretty open ended... what service is the code related to?
56: [01:55:31] <Ali_Alamshahi> exactly like DHL or other Post services where you can check the current statue of your cargo or mail
57: [01:57:24] <muskie9> I'm not familiar with anything at the moment, guessing partially because each shipping service has it's own api (if an api at all)... but that would be a nice module
58: [01:58:44] <Ali_Alamshahi> not gonna use any api! I need to create a website like a shipping or courier with tracking
59: [01:59:41] <muskie9> so like a new courier and they update the status, the recipient can check the status the courier sets via the website?
60: [02:01:19] <Ali_Alamshahi> exactly
61: [02:02:07] <muskie9> I haven't seen anything... but would seem fairly straight forward as far as the basic SS stuff... the nitty gritty is generating your random/unguessable codes
62: [02:02:44] <Ali_Alamshahi> what if they are generated manually?
63: [02:03:24] <muskie9> that would work, tedious in the long run, but if starting small it's basically a controller to render the information and a DataObject for each code with the details... controller renders the dataobject
64: [02:03:37] <muskie9> model admin allowing the courier to update the information for a given code
65: [02:04:44] <Ali_Alamshahi> ok, does SS have any module to do that for me?
66: [02:04:46] <muskie9> additional features like email notifications, sms, etc could be implemented onAfter/BeforeWrite to provide additional ease of use
67: [02:05:39] <muskie9> don't think there's anything exactly for that
68: [02:06:37] <Ali_Alamshahi> so none of the ecommerce modules have a shipping tracking something which I can adopt?
69: [02:07:00] <Hailwood> Ali_Alamshahi: if they do it would be integrating with other couriers APIs
70: [02:07:02] <muskie9> I think the ecommerce modules leverage existing couriers for shipping (not 100%) on that
71: [02:07:30] <muskie9> in my experience that's how it's been... order on the site, ships with fedex, ups, usps, etc
72: [02:07:43] <Ali_Alamshahi> I see
73: [02:07:53] <muskie9> off topic... WHY ARE WE NOT FUNDING THIS! tracks changes to many_many relations?! 😳 https://github.com/silverstripe-australia/silverstripe-datachange-tracker
74: [02:08:44] <muskie9> although many_many's will be versioned I think in SS4
75: [02:09:04] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
76: [02:09:52] <Ali_Alamshahi> does this help with my situation?
77: [02:10:14] <Hailwood> Ali_Alamshahi: No - hence the "off topic"
78: [02:10:24] <muskie9> would depend, but fundamentally no, I just came across it looking for something you were looking for unfortunately
79: [02:10:53] <Ali_Alamshahi> thank you guys
80: [02:11:12] <muskie9> Ali_Alamshahi building something like you mentioned wouldn't be too difficult to start
81: [02:11:31] <Hailwood> Ali_Alamshahi: Just look into the model admins. I think you'll find most of what you're after is in there already, then it's just building the frontend interface
82: [02:11:32] * cheddam has joined #silverstripe
83: [02:11:42] <muskie9> ^
84: [02:11:44] <Ali_Alamshahi> guess I need to find a free/open source tracking software
85: [02:12:13] <Ali_Alamshahi> thanks! the problem is that I'm not a developer! I'm just a designer
86: [02:12:53] <muskie9> ah, I feel like a module would only get you part way there in the long run... but the concept is fairly simple, and an interesting idea
87: [02:13:57] <Ali_Alamshahi> I can work with a part way, I can modify and do little changes but I can not code from scratch!
88: [02:39:16] * Ali_Alamshahi quit (Remote host closed the connection)
89: [02:41:45] * cheddam quit (Read error: Connection reset by peer)
90: [02:42:26] * cheddam has joined #silverstripe
91: [02:43:31] * micmania1 quit (Quit: micmania1)
92: [02:48:38] <Hailwood> Anyone know if/how we can use html in our validation messages?
93: [02:48:45] * micmania1 has joined #silverstripe
94: [02:49:15] <muskie9> Hailwood like in public function validate() ?
95: [02:49:48] <Hailwood> muskie9: CustomValidator extends RequiredFields {} in the php function.
96: [02:49:57] <muskie9> ah
97: [02:51:35] <muskie9> I tend to use validate() rather than required fields... is it a frontend form or something?
98: [02:53:09] <muskie9> I see if($msg = $formField->getCustomValidationMessage()) { in RequiredFields... maybe on your field do ->setCustomValidationMessage("<strong>Your message</strong>");
99: [02:53:19] <muskie9> not sure if that'll render properly though... never tried it
100: [02:54:25] <Hailwood> muskie9: Got it! http://kopy.io/ZpX3G
101: [02:54:51] <muskie9> ah, nice!
102: [02:54:57] <Hailwood> basically if the "message" is an instance of DbField it will call forTemplate() instead of escaping it.
103: [02:55:41] <Hailwood> ^ you'll have to forgive my "formatting" of the error message. I never like multiline strings so I do that ha.
104: [02:55:49] <muskie9> lol
105: [03:01:03] <muskie9> I've done something similar with validate()... took me a while to find it... but I'm stubborn like that lol https://github.com/muskie9/silverstripe-youtube-integration/blob/master/code/dataobjects/YouTubeVideo.php#L84-L109
106: [03:01:15] <muskie9> line 99 - 102
107: [03:03:11] <Hailwood> Looks like it doesn't automatically escape the validation messages there, but it does in the validators. Interesting
108: [03:04:14] <Hailwood> Oh right yeah, because you're overridding the validate method that actually does that
109: [03:04:52] <muskie9> ya, each error message is it's own, but seemed to put the link in properly last I tested
110: [03:06:45] <Hailwood> Yeah, it's here that it encodes any messages set by the validator https://github.com/silverstripe/silverstripe-framework/blob/3.4/forms/Form.php#L1321-L1329
111: [03:06:49] <Hailwood> which you bypass heh
112: [03:09:00] <Hailwood> I may borrow that module off you, it looks nice.
113: [03:18:41] <muskie9> it's basic at this point... want to build it out to allow for more options... but a good start
114: [03:19:50] <muskie9> more of a proof of concept based on some talks with our IA/Designers
115: [03:20:44] <muskie9> gonna work out a formatted text field for HTMLVarchar... so the clients don't have to know html
116: [03:34:52] * pweh quit (Ping timeout: 260 seconds)
117: [04:02:28] * pweh has joined #silverstripe
118: [04:19:16] * cheddam quit (Ping timeout: 260 seconds)
119: [04:20:04] * cheddam has joined #silverstripe
120: [04:32:37] * sminnee_ quit (Ping timeout: 260 seconds)
121: [04:37:26] * Azure quit (Ping timeout: 250 seconds)
122: [04:38:26] * Hailwood quit (Quit: Konversation terminated!)
123: [04:45:18] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
124: [04:57:27] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
125: [04:59:58] * Stomach quit (Ping timeout: 250 seconds)
126: [05:00:09] * micmania1 quit (Quit: micmania1)
127: [05:14:08] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
128: [05:34:25] * phorloop_ quit (Read error: Connection reset by peer)
129: [05:35:00] * Shrike_Finland has joined #silverstripe
130: [05:39:04] * wmk has joined #silverstripe
131: [05:41:56] * vanny quit (Quit: Page closed)
132: [06:10:41] * Shrike_Finland quit (Quit: Leaving.)
133: [06:29:30] * Shrike_Finland has joined #silverstripe
134: [07:14:17] * darianno has joined #silverstripe
135: [07:15:10] <ss-helper> Silverstripe 3 - nextSibling using grandparent - http://stackoverflow.com/questions/40233434/silverstripe-3-nextsibling-using-grandparent
136: [07:18:54] * swaiba has joined #silverstripe
137: [07:24:10] <wmk> hey ho swaiba
138: [07:24:24] <swaiba> I'm no ho lol!
139: [07:24:51] <wmk> what?
140: [07:25:03] <swaiba> google "ho"
141: [07:25:56] <wmk> Handelsorganisation?
142: [07:28:31] <swaiba> not what comes to my mind...
143: [07:36:30] * spronk quit (Quit: I may need a longer sleep timer...)
144: [07:37:20] * sanderH has joined #silverstripe
145: [07:37:20] <ss-helper> sanderH: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
146: [07:37:38] <sanderH> Hey guys, I've got a web project I'd like some advice on how to handle best. I made a forum post about it https://www.silverstripe.org/community/forums/data-model-questions/show/119000
147: [07:40:50] * DimiStripe has joined #silverstripe
148: [07:44:53] <wmk> hey sanderH
149: [07:44:58] <wmk> forum is still online? wow
150: [07:45:28] <sanderH> Haha yes
151: [07:45:37] <sanderH> I figured I might as well try to make a post there, and just share it around!
152: [07:45:49] <wmk> good idea
153: [07:46:18] <wmk> well, multilangual subsites is possible, always a pain somehow.
154: [07:47:00] <wmk> so fluent or translatable? Or what are the requirements for I18N?
155: [07:47:23] <wmk> fluent: might be a bit easier, one module fits all (SiteTree, DOs)
156: [07:47:27] <wmk> some drawbacks.
157: [07:47:34] <sanderH> I think translatable would be the better choice for this project, even though I like fluent way more. Also I believe Translatable is supported for subsites module
158: [07:47:52] <wmk> translatable: more flexible, permission per language, harder to share content around locales
159: [07:47:58] <sanderH> I mean, Translatable might be easier on the subsites module
160: [07:48:08] <wmk> well, both would be fine for subsites
161: [07:48:15] <sanderH> Have you tried Fluent and subsites?
162: [07:48:16] <wmk> Subsites is mainly another SiteTree
163: [07:48:49] <wmk> didn't try it yet as my subsites projects are either quite old (before fluent) or needed finer permission
164: [07:49:02] <wmk> e.g. dutch office can only handle dutch content
165: [07:49:16] <sanderH> Such permissions might be relevant in my case aswell
166: [07:49:19] <sanderH> Was that difficult to make?
167: [07:49:29] <wmk> if perms -> translatable
168: [07:49:41] <sanderH> I see
169: [07:49:51] <wmk> and translatable dataobjects for dataobjects (though i doubt it has strong language specific permissions)
170: [07:50:03] <wmk> how many locales?
171: [07:50:10] <sanderH> Noy many, max 3
172: [07:50:25] <sanderH> Also, its only like 2 out of 5 sites that'll need translations
173: [07:51:01] <wmk> ok. As TranslatableDo saves everything in one table you might have troubles with your DB when you get too many columns. But there's a workaround for that (other settings in mysql for that table)
174: [07:55:16] <sanderH> Hmm dont you mean too many rows then? Translatable doesnt create columns afaik?
175: [07:57:37] <wmk> for dataobjects
176: [07:57:44] <wmk> with translatabledataobjects module (bummzack)
177: [08:00:08] <wmk> sanderH, see PM ;)
178: [08:12:59] * zippy has joined #silverstripe
179: [08:15:55] <zippy> Seems to be more active in the evenings then day time eh
180: [08:16:20] <swaiba> zippy depends on your time zone :-P
181: [08:16:26] <zippy> NZ ofc
182: [08:16:37] <wmk> UGT ftw!
183: [08:16:48] <zippy> isn't that the default assumption for this channel
184: [08:17:01] <swaiba> only one country defined time... the G in GMT lol
185: [08:20:25] * b440 has joined #silverstripe
186: [08:20:25] <ss-helper> b440: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
187: [08:23:11] <b440> Hi everybody
188: [08:23:33] <zippy> hi
189: [08:23:57] <b440> I'm trying to install and use the SilverStripe Active Directory module but i have many probleme with it
190: [08:24:04] <b440> can smobody help me ?
191: [08:24:46] <zippy> whats the error?
192: [08:26:07] <b440> thanks you zippy for answer (sorry my english is too bad)
193: [08:27:15] <b440> I've install the module via composer, but i've a php errore "class OneLogin_Saml2_Constants" not found
194: [08:28:58] <b440> in the vendor folder i have a oneloginFolder
195: [08:29:52] <zippy> hm
196: [08:33:44] <b440> I've tried to add manually all the missing class from onelogin on the SilverStripe/activedirectory/code/services/SAMLConfiguration.php
197: [08:33:59] <b440> with that i can use the SAML login
198: [08:34:34] <b440> I'm correctly redirect to the ADFS of my partner
199: [08:35:39] <b440> when i'm logged to the ADFS i'v redericted to https://<domaine>.ch/Security/login/saml/acs
200: [08:36:03] <b440> end that's all...
201: [08:36:35] * cupcake quit (Quit: Page closed)
202: [08:36:48] * cupcake has joined #silverstripe
203: [08:39:20] <wmk> !flush b440
204: [08:39:20] <ss-helper> b440: Have you flushed? Try doing a ?flush=all and /dev/build then see if it's sorted. Do it twice for good measure ;-)
205: [08:40:23] <b440> ss-helper, yes i've flushed all many time
206: [08:43:01] * Lau_ has joined #silverstripe
207: [08:43:01] <ss-helper> Lau_: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
208: [08:43:42] <Lau_> Hello all. Kind of new to the whole silverstripe framework. Is it properly possible to nest shortcodes?
209: [08:47:13] * agent44 has joined #silverstripe
210: [08:52:15] * ss32noob has joined #silverstripe
211: [08:54:06] <Lau_> I see bugs on github aging back to 2013. Does anybody know if the regular expression that is used for the shortcodes is updated since?
212: [08:56:29] <zippy> Lau_: yea, I've done it before
213: [08:57:55] * lerni has joined #silverstripe
214: [08:58:21] <zippy> In my instance I had something like [Snippet ref=foo] which would reference a Snippet object with the key of foo. That snippet object had some HTML I wanted to embed, which might of contained some short codes.
215: [08:58:41] <zippy> In which case I needed to wrap that content field like; DBField::create_field('HTMLText', $snippet->Content);
216: [08:58:50] <zippy> that would then be parsed for short codes
217: [08:59:04] <zippy> maybe if you could explain what your doing, and !paste your code we can help
218: [08:59:06] <zippy> !paste
219: [08:59:06] <ss-helper> Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
220: [09:09:58] <Lau_> I have a gist here for the shortcode: https://gist.github.com/anonymous/ccbc8b5061303d9512fc354bc45009c0
221: [09:10:33] <Lau_> and that works. Kinda. But when I use a second shortcode inside this one. Div's get automatically closed and what not
222: [09:10:49] <Lau_> I think also because of the empty paragraphs silverstripe sometimes inserts?
223: [09:11:43] * micmania1 has joined #silverstripe
224: [09:12:58] <Lau_> And what I try to do is just parse some simple html so the non-iters here can more easily format their html without writing html
225: [09:13:28] <Lau_> but I am wondering what is best. Use two shortcodes. Or try to bring them together to one main short?
226: [09:20:37] <zippy> And you want to handle having shortcodes in your $content var?
227: [09:20:40] * neilf__ quit (Quit: Connection closed for inactivity)
228: [09:20:51] <zippy> Lau_: ^
229: [09:20:57] <zippy> micmania1: o/
230: [09:21:06] <micmania1> zippy: hola
231: [09:21:37] <zippy> I haven't been following it too much because I felt like SS4 was still about 3-4 months away. But after reading about Alpha2... could it be this year?
232: [09:23:02] <Lau_> Ye. But that just breaks at this point. The last div gets automatically closed when inserting the second shortcode
233: [09:23:40] <micmania1> zippy: i’m not sure if this year. Hopefully next year as im still working on the config stuff :D
234: [09:24:05] <zippy> Your going to make it even more faster?
235: [09:24:25] <micmania1> zippy: that’s the plan. I’ve re-written it from scratch
236: [09:24:47] <micmania1> zippy: did you see the post on the dev mailing list?
237: [09:25:03] <zippy> Lau_: try change "$container->Content = $content;" to "$container->Content = DBField::create_field('HTMLText', $Content);"
238: [09:25:14] <zippy> micmania1: no I haven't, but I will check it out
239: [09:25:44] <micmania1> zippy: see https://github.com/micmania1/silverstripe-config
240: [09:26:48] <Lau_> An other developer started this one. I have a private static $casting = array( 'ShortcodeContainer' => 'HTMLText' );
241: [09:27:04] <zippy> Lau_: thats fine. Make my change.
242: [09:27:30] <zippy> micmania1: it's crazy how complex a config system can be eh. Is that because there is config in YAML, config in php files (private statics) etc?
243: [09:27:35] <zippy> There is just so many entry points for config
244: [09:27:53] <micmania1> zippy: yeah, yaml and private statics which then get merged :/
245: [09:28:06] <micmania1> and the before/after rules and only//except etc
246: [09:29:50] <micmania1> also, there’s some pretty basic flaws that i highlighted in the dev post
247: [09:30:13] <zippy> you still going to keep all those entry points?
248: [09:30:17] <zippy> *reading*
249: [09:30:33] <micmania1> yep, just making it less complicated to develop/debug and generally work with
250: [09:34:50] <zippy> End up being much quicker?
251: [09:36:30] <micmania1> I won’t know until i’ve integrated it with silverstripe, but it *should* be
252: [09:37:06] <micmania1> I was doing tests yesterday looping 1 million Config::get() calls and it was twice as fast
253: [09:37:44] <micmania1> but I haven’t got it fully working yet to do full on tesing
254: [09:37:47] <micmania1> testing*
255: [09:38:06] <micmania1> also used barely any memory compared to the current :D
256: [09:42:01] <micmania1> Also, I was testing with different caching mechanisms so not really a fare test. I need to do plan some proper testing to see what’s what
257: [09:43:14] <Lau_> ^zippy: Didnt really work I guess. I am trying to use it like this: [container] $content [item] $morecontent [/item][/container]. It breaks when inserting the item
258: [09:43:28] <Lau_> also tried to put the DBField::create in the second shortcode
259: [09:43:33] <Lau_> but didnt really change anything
260: [09:44:48] <Lau_> second shortcode gist: https://gist.github.com/anonymous/012e5309b9b69434c25864f176177aca
261: [09:45:29] <Lau_> they both produce just two div's with $content inside the second div
262: [10:40:01] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
263: [10:40:05] * wmk quit (Quit: Leaving)
264: [10:43:09] * skunk has joined #silverstripe
265: [10:43:09] <ss-helper> skunk: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
266: [10:43:53] <skunk> hello. someone here from europe?
267: [10:45:14] <ss-helper> SilverStripe 3 - next sibling using grandparent - http://stackoverflow.com/questions/40233434/silverstripe-3-next-sibling-using-grandparent
268: [10:45:56] * Azure has joined #silverstripe
269: [10:46:22] <slievr> skunk: ish, UK
270: [10:48:33] <Zauberfisch> skunk: yes
271: [10:49:43] <Zauberfisch> skunk: though we are all citizens of the internet here. so does geographical location really matter? :P
272: [10:50:03] <slievr> maybe there is a locale follow up question?
273: [10:54:46] <Zauberfisch> yeah, I guess
274: [10:56:52] <cloph> skunk: tell the ducks...
275: [10:57:34] * Shrike_Finland quit (Quit: Leaving.)
276: [11:02:01] * micmania1 quit (Quit: micmania1)
277: [11:11:52] <skunk> because i am speaking german and so i wanted to know if someone could understand me in my native language also
278: [11:11:54] <skunk> :)
279: [11:12:23] <skunk> its sometimes easier to understand... ;-)
280: [11:13:38] <skunk> also if i agree that we are all citizens of the net. :D
281: [11:14:14] <skunk> and finally the important real question:
282: [11:15:08] <skunk> what are the tips for learning silverstripe? i found a book in german. somebody knows this? i think its not relaying to the aktual silverstripe version, but maybe it could be helpful?
283: [11:16:18] <skunk> (i think most of you are having lunch now - so have a good meal - will look later if there are any answers)
284: [11:16:21] <skunk> THANK YOU
285: [11:21:33] <cloph> didn't read the book, but the tutorial on silverstripe is pretty good to get started
286: [11:24:18] * Shrike_Finland has joined #silverstripe
287: [11:31:09] <Shrike_Finland> Could you help a bit: I would like have each persons looped inside the group and all groups looped a->z
288: [11:31:24] <Shrike_Finland> Code is here: http://www.sspaste.com/paste/show/580f421261c78
289: [11:41:58] * agent44 quit (Ping timeout: 276 seconds)
290: [11:43:42] * samsam has joined #silverstripe
291: [11:45:18] <b440> Nobody has an id about, why after succesfull login on the ADFS i was redirect to login/saml/acs and stay in without any action or error ?
292: [11:50:47] * agent44 has joined #silverstripe
293: [12:03:26] * ss32noob quit (Ping timeout: 260 seconds)
294: [12:04:36] * cupcake quit (Ping timeout: 260 seconds)
295: [12:23:43] * UndefinedOffset has joined #silverstripe
296: [12:44:49] <Zauberfisch> skunk: the book by Philipp Krenn?
297: [12:45:14] <Zauberfisch> skunk: never read the book myself, but I know he is good.
298: [12:45:34] <Zauberfisch> and ingo was co author I think
299: [12:46:12] <Zauberfisch> well, anyway, both of the books that philipp worked on are for 2.4. so I am not sure how helpful they are these days with SilverStripe 4 just around the corner
300: [12:46:13] <samsam> ingo is co author of different book
301: [12:46:20] <samsam> it's outdated indeed
302: [12:47:22] <Zauberfisch> skunk: I would also suggest going through the tutorials on silverstripe.org
303: [12:47:30] <Zauberfisch> I hear they are quiet decent
304: [12:53:56] <samsam> Every custom <meta> element I place in <head> ends up in <body>
305: [12:54:01] <samsam> what's going on here :/
306: [12:56:11] <lerni> Zauberfisch, samsam: Tutorials are superseded with Lessons? https://www.silverstripe.org/learn/lessons/
307: [12:57:59] * elgabbu has joined #silverstripe
308: [12:59:16] <samsam> yup
309: [12:59:52] <samsam> some tutorials pages show an announcement saying it's recommended to go through the video lessons instead
310: [13:00:15] <elgabbu> hi guys ... was wondering is there a way to specify width of a column of a gridfield?
311: [13:04:48] <skunk> zauberfish - i already looked at 10 video lessons for starting up with a new template, but i still feel that i need an other resource to get into a little deeper. Any ideas?
312: [13:06:40] <samsam> just get started somewhere, when there are issues: IRC || StackOverflow || Forum
313: [13:07:20] <samsam> this website almost became a great resource but died somewhere in 2012: http://www.ssbits.com/
314: [13:07:40] <swaiba> there is a new one for that samsam silverstrip.es
315: [13:07:48] <swaiba> wmk and I blog there
316: [13:07:59] <samsam> hey thats cool
317: [13:08:07] <swaiba> and anyone else is welcome to request an account to blog or send us something and we will add it
318: [13:08:41] <samsam> I'll keep that in mind
319: [13:09:56] * sanderH quit (Ping timeout: 260 seconds)
320: [13:11:02] <Shrike_Finland> Hi, could you help a bit: I would like have each persons looped inside the group and all groups looped a->z
321: [13:11:02] <Shrike_Finland> Code is here: http://www.sspaste.com/paste/show/580f421261c78
322: [13:15:19] <samsam> <% loop $StaffGroup.Sort(Title, ASC) %>
323: [13:15:58] <samsam> <% loop Person %>
324: [13:16:03] <samsam> and then end both loops
325: [13:16:16] <samsam> https://docs.silverstripe.org/en/4.0/developer_guides/templates/syntax/#altering-the-list
326: [13:20:07] <Shrike_Finland> samsam: that gives error
327: [13:20:09] <slievr> sure that's not <% loop Staff %> for the internal one
328: [13:22:40] <Shrike_Finland> <% loop $StaffGroup.Sort(Title, ASC) %> StaffGroup is not valid
329: [13:23:23] <samsam> can you read the server error?
330: [13:24:15] <samsam> slievr is right
331: [13:25:46] <samsam> http://www.sspaste.com/paste/show/580f5d522f9c3
332: [13:25:48] <samsam> that should work
333: [13:29:02] <Shrike_Finland> Nope, it can not find the title
334: [13:29:56] <samsam> can you paste your template code to sspaste.com?
335: [13:32:43] <Shrike_Finland> http://www.sspaste.com/paste/show/580f5ef1da047
336: [13:32:46] <Zauberfisch> skunk: beyond those videos/tutorials I don't know any more real step by step guides
337: [13:33:20] <Shrike_Finland> samsam: that is without StaffGroup.Sort, thou
338: [13:33:32] <Zauberfisch> skunk: what worked well for me is just solving problems as I encounter them. People here on IRC tend to be really helpful when you get stuck somewhere, so don't be afraid to ask
339: [13:45:53] * Shrike_mobile has joined #silverstripe
340: [13:46:35] * pweh quit (Read error: Connection reset by peer)
341: [13:48:18] * Shrike_Finland quit (Quit: Leaving.)
342: [13:49:27] <slievr> Shrike_mobile: are you shrike_Finland?
343: [13:49:51] <samsam> yup, on mobile
344: [13:50:21] <slievr> I was wrong, re-read his code.
345: [13:50:50] <slievr> StaffGroup returns Person objects
346: [13:50:59] <samsam> There is no relation between StaffGroup and StaffPage so we can't loop through StaffGroup anyway
347: [13:52:01] <slievr> if you want to loop by groups either create a method for getting all the groups then loop the people in them, or a groupedList
348: [13:52:17] <samsam> indeed
349: [13:52:20] <samsam> in the controller
350: [13:53:28] <slievr> grouped list guide (cause I always forget how to make them): https://docs.silverstripe.org/en/3.2/developer_guides/model/how_tos/grouping_dataobject_sets/
351: [13:53:35] * Shrike_mobile quit (Ping timeout: 256 seconds)
352: [13:53:45] <slievr> he's a slippery one
353: [13:54:10] <samsam> lol
354: [13:54:25] <samsam> I was going to post this: http://www.sspaste.com/paste/show/580f63f924902
355: [13:54:39] <samsam> and then this: http://www.sspaste.com/paste/show/580f5d522f9c3
356: [13:55:35] <slievr> good stuffs
357: [13:56:19] * Shrike_mobile has joined #silverstripe
358: [13:56:32] <slievr> Hello Shrike_mobile
359: [13:57:03] <Shrike_mobile> hi
360: [13:57:32] <slievr> answers have been posted for you in absence, might want to check logs
361: [13:58:07] <samsam> first: http://www.sspaste.com/paste/show/580f63f924902
362: [13:58:15] <samsam> then: http://www.sspaste.com/paste/show/580f5d522f9c3
363: [13:58:20] <samsam> then flush
364: [13:58:24] <Shrike_mobile> Ok, soon back on desktop
365: [13:58:29] <slievr> that's not very DRY
366: [13:58:41] <samsam> please elaborate
367: [13:58:49] <slievr> Don't Repeat Yourself
368: [13:58:59] <samsam> hehe I know, but what's not DRY about it
369: [13:59:10] <slievr> you repeated yourself
370: [13:59:51] <slievr> (tis a bad joke)
371: [14:00:23] <samsam> LOL
372: [14:04:19] * agent44 quit (Quit: zzz)
373: [14:05:08] * b440 quit (Quit: Page closed)
374: [14:07:19] * agent44 has joined #silverstripe
375: [14:14:50] * Shrike_mobile quit (Remote host closed the connection)
376: [14:19:06] * Shrike_Finland has joined #silverstripe
377: [14:19:30] <samsam> SidebarItem::get()->filter('WidgetID', $this->ID)->delete();
378: [14:19:49] <samsam> nothing wrong with this code right? should delete a record from SidebarItem, right?
379: [14:21:06] <slievr> should delete a SideBarItem with a certain WidgetID
380: [14:21:23] <samsam> have to add ->first() to it
381: [14:21:33] <slievr> or change filter to find
382: [14:21:39] <samsam> needs to single out a single record apparently..
383: [14:21:41] <slievr> find is a filter with first
384: [14:21:47] <slievr> is very handy
385: [14:21:54] <samsam> oh thats cool
386: [14:22:01] <samsam> DataList = single record
387: [14:22:06] <samsam> ArrayList = multiple records
388: [14:22:07] <samsam> right?
389: [14:22:13] <slievr> both = multiple
390: [14:22:28] <samsam> oh
391: [14:22:52] <slievr> any ss_list implementer is multiple
392: [14:25:30] <samsam> I see, but some functions like delete() works only when there is one entry in the list?
393: [14:26:47] <slievr> delete is called on DataObject
394: [14:27:05] <samsam> of course *facepalm*
395: [14:27:12] <slievr> first will return that DataObject from the arraylist/datalist
396: [14:32:50] <slievr> I would love a toArrayList method on DataList though, would make me very happy
397: [14:43:06] <samsam> I'll make a commit to github
398: [14:46:11] <samsam> any idea how to get the locale code like "en" instead of "en-US"?
399: [14:51:42] * spliff_ quit (Quit: Connection closed for inactivity)
400: [14:57:43] <slievr> afraid not never had to sue it
401: [15:02:48] <samsam> hmm
402: [15:10:41] <swaiba> samsam get the code and use substr ?
403: [15:13:53] * agent44 quit (Quit: zzz)
404: [15:15:54] * agent44 has joined #silverstripe
405: [15:20:39] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
406: [15:22:59] * UndefinedOffset quit (Quit: Leaving.)
407: [15:28:54] <skunk> @zauberfisch: Thank you for your answers - so i will begin and come abck to your offer when i need it ;-) (it could be really quickly...)
408: [15:30:05] <slievr> then you'll get quick answers =)
409: [15:39:23] * UndefinedOffset has joined #silverstripe
410: [15:45:44] * lerni quit (Remote host closed the connection)
411: [15:49:06] <skunk> @all: which code editor is everybody using?
412: [15:49:08] <Shrike_Finland> Yes! Worked.
413: [15:49:24] <Shrike_Finland> Thanx samsam & slievr
414: [15:49:35] <samsam> Nice
415: [15:57:16] <Zauberfisch> skunk: phpstorm
416: [15:59:52] <slievr> atom
417: [15:59:53] * gelignite has joined #silverstripe
418: [16:00:36] <slievr> but soon atom + nuclide
419: [16:00:46] <samsam> is it just an editor or also IDE?
420: [16:01:04] <slievr> atom is just an editor
421: [16:01:27] <slievr> has plugins for things like ftp and linting though
422: [16:02:02] <samsam> gonna try atom for lols
423: [16:02:20] <slievr> make sure to install power mode
424: [16:02:33] <slievr> https://atom.io/packages/activate-power-mode
425: [16:04:23] <samsam> :')
426: [16:04:56] <slievr> right I'm off o/
427: [16:05:06] <samsam> peace
428: [16:05:06] * slievr is now known as slievr_away
429: [16:09:50] <swaiba> skunk : phpstorm or textpad
430: [16:13:59] * UndefinedOffset quit (Quit: Leaving.)
431: [16:16:01] <skunk> THANX
432: [16:16:07] <swaiba> skunk - and the most complete answer possible - https://groups.google.com/forum/?utm_medium=email#!msg/silverstripe-dev/bozY5hh9g4c/xWNJ0w0zBAAJ;context-place=forum/silverstripe-dev
433: [16:17:45] <skunk> :)
434: [16:19:12] <skunk> back soon ....
435: [16:19:18] * skunk quit (Quit: Page closed)
436: [16:24:01] * Shrike_Finland quit (Quit: Leaving.)
437: [16:30:32] <ss-helper> Member Profile extendable area - https://groups.google.com/d/msg/silverstripe-dev/mD1GzF5aZH0/kQQPvn8_BgAJ
438: [16:43:53] * Shrike_Finland has joined #silverstripe
439: [16:50:37] * slievr_away quit (Read error: Connection reset by peer)
440: [16:56:10] * UndefinedOffset has joined #silverstripe
441: [17:23:54] * UncleCheese has joined #silverstripe
442: [17:32:04] * Shrike_Finland quit (Quit: Leaving.)
443: [17:47:27] * lerni has joined #silverstripe
444: [17:47:38] * agent44 quit (Quit: zzz)
445: [17:49:38] * agent44 has joined #silverstripe
446: [17:55:04] * agent44 quit (Ping timeout: 247 seconds)
447: [17:59:14] <terryapodaca> any javascript gurus on today?
448: [18:00:12] <cloph> no question, no answer. and maybe a duck is all it takes...
449: [18:09:53] <terryapodaca> ?
450: [18:11:56] * Phlunk3 has joined #silverstripe
451: [18:14:21] <cloph> if you don't ask your actual question nobody will be able to answer.
452: [18:14:39] <cloph> And ofen enough it helps to explain a problem to others to think about the solution itself (duck debugging)
453: [18:17:24] * UncleCheese quit (Ping timeout: 260 seconds)
454: [18:17:53] <terryapodaca> ok thanks
455: [18:22:38] <samsam> lol, just paste your code somewhere and place your link here :) maybe someone can help you
456: [18:22:43] <samsam> I'm horrible at javascript myself
457: [18:23:29] <terryapodaca> I don't have an issue, I was just looking for someone that is real good at Javascript (better then me at least) because I need to add functionality to an already established library
458: [18:23:48] <terryapodaca> it's probably super simple but I just don't have the time right now
459: [18:24:31] <terryapodaca> and it's not based on jQuery or any other js library
460: [18:29:11] * lerni quit ()
461: [18:35:49] * UndefinedOffset quit (Quit: Leaving.)
462: [18:49:53] * UndefinedOffset has joined #silverstripe
463: [19:04:56] * Stomach has joined #silverstripe
464: [19:26:41] * muskie9 has joined #silverstripe
465: [19:31:32] * UndefinedOffset quit (Quit: Leaving.)
466: [19:41:45] * sminnee_ has joined #silverstripe
467: [19:46:11] * UndefinedOffset has joined #silverstripe
468: [20:11:20] * Phlunk3 quit (Quit: Leaving)
469: [20:16:16] * lerni has joined #silverstripe
470: [20:16:21] * UndefinedOffset quit (Quit: Leaving.)
471: [20:19:07] * UndefinedOffset has joined #silverstripe
472: [20:19:16] * samsam quit (Ping timeout: 260 seconds)
473: [20:30:17] * lerni quit ()
474: [20:38:30] * UndefinedOffset quit (Quit: Leaving.)
475: [20:39:44] * terryapodaca has left #silverstripe
476: [20:41:10] * micmania1 has joined #silverstripe
477: [20:42:47] * DanaeNZ has joined #silverstripe
478: [20:46:31] * Phlunk3 has joined #silverstripe
479: [20:47:00] * Hailwood has joined #silverstripe
480: [20:48:55] * Phuong has joined #silverstripe
481: [20:52:33] <Phuong> Hi, what do you guys think of if I move Silverstripe local database to RDS service of AWS or it's better to leave Silverstripe database on the same server?
482: [20:59:57] <Hailwood> Phuong: same server is faster, but it's not redundant, so it really depends on scale
483: [21:15:33] <Phuong> Thanks Hailwood, I'm just worry about the backup and want to rationalise all the databases into one mysql engine...but you might be right, disc IO will be faster than VPC traffic.
484: [21:21:01] <Hailwood> Phuong: if you're in the same AZ you probably wouldn't notice any difference in speed though since it's all on hyperfast networking anyway. You'd notice it doing what we had at one point. DB in the USA, but webapp in Aussie
485: [21:21:15] * Tron_ has joined #silverstripe
486: [21:25:25] <Tron_> Hey guys, has anyone used the silvershop module before?
487: [21:27:02] <DanaeNZ> Tron_: yep
488: [21:34:23] * Phlunk3 quit (Remote host closed the connection)
489: [21:38:35] * pippy has joined #silverstripe
490: [21:40:59] <pippy> Any SilverStripe developers in Dunedin?
491: [21:41:33] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
492: [21:47:48] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
493: [21:48:03] * cheddam has joined #silverstripe
494: [21:57:57] <Tron_> DanaeNZ when you checkout there is a bunch of fields for billing and shipping information. Do you know if there is an option to set where the user can make the shipping address the same as billing?
495: [21:58:14] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
496: [21:58:42] <DanaeNZ> Tron_: I think we built our own one for that. Javascript
497: [21:59:05] <DanaeNZ> You'll probably have to write a thing to insert the checkbox into only one of the forms.
498: [21:59:48] * cheddam has joined #silverstripe
499: [22:01:07] <Tron_> Yea thats what I thought I would have to do. Thanks DanaeNZ
500: [22:03:29] * sminnee_ quit (Quit: sminnee_)
501: [22:06:04] * sminnee_ has joined #silverstripe
502: [22:22:35] * Quatrepee has joined #silverstripe
503: [22:22:35] <ss-helper> Quatrepee: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
504: [22:23:56] <Hailwood> It's rather ridiculous the loops required to set a password on a user when it's already hashed... http://kopy.io/KKEWz
505: [22:27:12] * Stomach quit (Quit: zzz)
506: [22:27:29] <Quatrepee> hey guys, i just migrated a silverstripe site from cpanel / php 5.4 / SS 3.1.4, to php 5.6 and got a few errors that i narrowed down to mysql 5.7 and the silverstripe-multisites module, so i upgraded the silverstripe multisites, then silverstripe to 3.4, etc, and everything went fine - but now i have a problem i've never seen before where image paths for rendered images seem wrong. on the live
507: [22:27:35] <Quatrepee> site the images are all correct, but on the new host i am getting errors like this: http://dpaste.com/0K6GZHV
508: [22:27:41] <Quatrepee> what confuses me is that i've never seen this kind of 'FitWzYwMCw2MDBd' naming before with SS
509: [22:28:01] <Quatrepee> normally it's <transform><asset name> or whatever
510: [22:28:11] * Stomach has joined #silverstripe
511: [22:28:14] <Quatrepee> so i'm wondering if i need to force it to regenerate everything or if the database is corrupted some how
512: [22:28:41] <Quatrepee> or if this is just symptomatic of something else wrong
513: [22:29:49] <Hailwood> Quatrepee: did you also upgrade SS? I think between SS 3.2 and 3.3 or maybe 3.4 it changed
514: [22:30:03] <Quatrepee> yeah i went from 3.1.4 to 3.4
515: [22:30:41] <ss-helper> Re: [silverstripe-dev] Member Profile extendable area - https://groups.google.com/d/msg/silverstripe-dev/mD1GzF5aZH0/TPWbPWZTBgAJ
516: [22:31:01] <Quatrepee> can i force everything to be regenerated? i tried /dev/tasks/RegenerateCachedImagesTask
517: [22:31:11] <Quatrepee> but it didn't help with all the broken assets
518: [22:31:12] <Hailwood> Hmm that should have done it
519: [22:31:25] <Hailwood> There is another one though
520: [22:31:39] <Quatrepee> can't even explain this problem to the client :) they think i'm making things up
521: [22:31:45] <Hailwood> dev/tasks/FilesystemSyncTask
522: [22:31:54] <Hailwood> run that, then run the regenerate
523: [22:32:54] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
524: [22:33:25] * samsam has joined #silverstripe
525: [22:34:30] * cheddam has joined #silverstripe
526: [22:35:56] * micmania1 quit (Quit: micmania1)
527: [22:37:32] <Quatrepee> Hailwood: weird, getting the following http://dpaste.com/375D587 when i run FilesystemSyncTask
528: [22:37:35] <Quatrepee> wonder what is up
529: [22:38:06] * samsam quit (Ping timeout: 260 seconds)
530: [22:38:55] * Stomach quit (Quit: zzz)
531: [22:39:04] <Quatrepee> did DataExtensions change between 3.1 and 3.4 in a major way? i have a data extension for Image types http://dpaste.com/35DEJ2C which might be related
532: [22:39:54] * Stomach has joined #silverstripe
533: [22:40:46] <Quatrepee> actually it looks like the core table structure for the file Table has the CustomImage type
534: [22:40:50] <Quatrepee> wonder if that got removed
535: [22:45:26] <ss-helper> PHP VideoStream class in Silverstripe Framework - http://stackoverflow.com/questions/40250865/php-videostream-class-in-silverstripe-framework
536: [22:47:43] * micmania1 has joined #silverstripe
537: [22:48:01] * Tron_ quit (Ping timeout: 260 seconds)
538: [23:00:02] * ss-helper quit (Remote host closed the connection)
539: [23:00:16] * ss-helper has joined #silverstripe
540: [23:15:03] <ss-helper> PHP VideoStream class in SilverStripe - http://stackoverflow.com/questions/40250865/php-videostream-class-in-silverstripe
541: [23:31:03] * pweh has joined #silverstripe
542: [23:57:49] * Phlunk3 has joined #silverstripe

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