#silverstripe IRC Log

IRC log for 10 March 2013

All timestamps are in UTC.

1: [02:05:00] * Zauberfisch|idle quit (Ping timeout: 256 seconds)
2: [02:11:00] * LoveDuckie quit (Ping timeout: 248 seconds)
3: [02:24:00] * Zauberfisch|idle has joined #silverstripe
4: [02:42:00] <spronk> ^^ there's a big difference between display logic and business logic
5: [02:43:00] <spronk> if i want to colour code things for visual purposes, that's not something my controller should have anything to do with
6: [02:43:00] <spronk> but its quite difficult without logic in templates
7: [03:11:00] * LoveDuckie has joined #silverstripe
8: [03:36:00] * joelpittet quit (Ping timeout: 260 seconds)
9: [03:46:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
10: [03:55:00] * chxn quit (Quit: Computer has gone to sleep.)
11: [04:03:00] * cloph_away has joined #silverstripe
12: [04:04:00] * cloph_away1 quit (Ping timeout: 245 seconds)
13: [04:07:00] * joelpittet has joined #silverstripe
14: [04:29:00] * catcher quit (Ping timeout: 276 seconds)
15: [05:01:00] * cloph_away1 has joined #silverstripe
16: [05:03:00] * cloph_away quit (Ping timeout: 255 seconds)
17: [05:29:00] * aaron1245 quit (Quit: aaron1245)
18: [05:47:00] * aaron1245 has joined #silverstripe
19: [05:50:00] * ratcat has joined #silverstripe
20: [05:51:00] * ratcat has left #silverstripe
21: [05:52:00] * Liquide quit (Ping timeout: 264 seconds)
22: [05:54:00] * joelpittet quit (Remote host closed the connection)
23: [05:57:00] * joelpittet has joined #silverstripe
24: [06:01:00] * eikonos1 has joined #silverstripe
25: [06:01:00] * eikonos quit (Read error: Connection reset by peer)
26: [06:05:00] * eikonos1 quit (Read error: Connection reset by peer)
27: [06:06:00] * Liquide has joined #silverstripe
28: [06:06:00] * eikonos has joined #silverstripe
29: [06:06:00] * eikonos quit (Changing host)
30: [06:06:00] * eikonos has joined #silverstripe
31: [07:42:00] * chillu has joined #silverstripe
32: [08:46:00] * aaron1245 quit (Quit: aaron1245)
33: [08:55:00] * joelpittet quit (Remote host closed the connection)
34: [09:22:00] * zfmf has joined #silverstripe
35: [09:29:00] * liam_ has joined #silverstripe
36: [09:30:00] <Guest5400> anyone know what/where the top level template is for the CMS?
37: [09:30:00] * liam_ is now known as Guest5400
38: [09:37:00] <Colin[pi]> typically $ThemeDir/<themename>/templates/Page.ss
39: [09:39:00] <zfmf> http://doc.silverstripe.org/framework/en/howto/extend-cms-interface
40: [09:42:00] <Colin[pi]> oops just noticed was CMS
41: [10:09:00] * simon__w has joined #silverstripe
42: [10:10:00] * simon_w quit (Read error: Connection reset by peer)
43: [11:06:00] * Friksel has joined #silverstripe
44: [11:07:00] <Guest5400> thanks
45: [11:08:00] * jcwacky has joined #silverstripe
46: [11:08:00] <Guest5400> I managed to get it. It is in framework/admin/templates/LeftAndMain.ss
47: [11:08:00] * Guest5400 quit (Quit: Guest5400)
48: [11:10:00] <jcwacky> Just discovered that sake won't run if you have forceWWW() enabled. Any work arounds for this?
49: [11:11:00] <jcwacky> The error you get is: Notice: Undefined index: HTTP_HOST in /home/gitdep/public_html/framework/control/Director.php on line 756
50: [11:22:00] * ARNHOE has joined #silverstripe
51: [11:49:00] * Liquide quit (Ping timeout: 248 seconds)
52: [11:52:00] * Friksel quit (Ping timeout: 245 seconds)
53: [11:55:00] * Liquide has joined #silverstripe
54: [12:11:00] * Zauberfisch|idle quit (Ping timeout: 256 seconds)
55: [12:19:00] <Tessy> can someone help me how to add dudamoble htaccess code to silverstripe htaccess
56: [12:19:00] * Tessy has joined #silverstripe
57: [12:26:00] * bmh has joined #silverstripe
58: [12:33:00] * Colin[pi] quit (Ping timeout: 276 seconds)
59: [12:38:00] * Tessy quit (Ping timeout: 245 seconds)
60: [12:40:00] * Zauberfisch|idle has joined #silverstripe
61: [12:52:00] * gelignite has joined #silverstripe
62: [12:59:00] <jcwacky> Anyone managed to get dev/build working in a git post-receive hook?
63: [13:07:00] * Liquide quit (Ping timeout: 250 seconds)
64: [13:15:00] * bmh quit (Quit: Textual IRC Client: http://www.textualapp.com/)
65: [13:15:00] * Friksel has joined #silverstripe
66: [13:16:00] * Liquide has joined #silverstripe
67: [14:01:00] * ARNHOE quit (Remote host closed the connection)
68: [14:35:00] * ARNHOE has joined #silverstripe
69: [14:43:00] * ARNHOE quit (Remote host closed the connection)
70: [14:51:00] * priithansen has joined #silverstripe
71: [15:22:00] * Shrike_Finland has joined #silverstripe
72: [15:24:00] <Shrike_Finland> Hi guys! Silverstripe Admin is giving me error at line 843??? etc. How can I track the notification, as the black box is cutting the text in adminside.
73: [15:27:00] <Shrike_Finland> Actually, it seems to be pointing to injector.php
74: [15:30:00] * Friksel quit (Ping timeout: 245 seconds)
75: [15:34:00] <Shrike_Finland> How could I hunt down, where the error might be? Is there some shortcodes in URL to check, what is going on on admin side?
76: [15:41:00] <Shrike_Finland> Nailed it thru Firebug
77: [15:53:00] <priithansen> Shrike_Finland: I think you can make silverstripe log the errors into log file with something like that SS_Log::add_writer(new SS_LogFileWriter('/my/logfile/path'), SS_Log::ERR);
78: [15:53:00] * zfmf has left #silverstripe
79: [17:06:00] <LoveDuckie> I had no idea that existed prii. That could have saved me a lot of time with previous problems :P
80: [17:06:00] * ARNHOE has joined #silverstripe
81: [17:13:00] * catcher has joined #silverstripe
82: [17:46:00] * jcwacky quit (Quit: jcwacky)
83: [17:51:00] <peter_ss> does anyone here know how can I override the Form for the member profiles?
84: [17:52:00] * catcher quit (Ping timeout: 260 seconds)
85: [17:58:00] * Zauberfisch|idle quit (Ping timeout: 264 seconds)
86: [17:58:00] * gelignite quit (Ping timeout: 260 seconds)
87: [17:59:00] * SphereSilver has joined #silverstripe
88: [17:59:00] <SphereSilver> Evening!
89: [18:00:00] <peter_ss> hello guys anyone of you worked with memberprofiles module before?
90: [18:04:00] <SphereSilver> Not really, but I wrote one myself, which might help, what do you want to know?
91: [18:10:00] * gelignite has joined #silverstripe
92: [18:26:00] * Zauberfisch|idle has joined #silverstripe
93: [18:33:00] * joelpittet has joined #silverstripe
94: [19:28:00] * DigNZ has joined #silverstripe
95: [20:29:00] <Colin[pi]> well for example, Open Sans, looks gorgeous in Firefox... load page in Chrome, looks like crap
96: [20:29:00] * ss-log has joined #silverstripe
97: [20:30:00] <ss23> Not jelly!
98: [20:30:00] * willr has joined #silverstripe
99: [20:30:00] <Pyromanik> Colin[pi], exactly. So stop loading it in chrome.
100: [20:30:00] <ss23> :<
101: [20:31:00] <Pyromanik> fully gelatinous.
102: [20:31:00] <Colin[pi]> I use firefox mainly, but it's slow downs annoy me
103: [20:33:00] <ss23> its
104: [20:33:00] * Colin[pi] ss23 likes the anal
105: [20:35:00] <Pyromanik> slow downs?
106: [20:35:00] <Pyromanik> it slows down if you install shit addons
107: [20:35:00] <Pyromanik> I find it manages memory better than Chrome.
108: [20:35:00] <Pyromanik> besides IE, because that's a blocker, not a browser.
109: [20:35:00] <simon_w> It's like Chrome. You get massive slowdowns if you don't have a gazillion gigs of ram
110: [20:35:00] <Colin[pi]> not for me
111: [20:35:00] <Pyromanik> Chrome slowest browser I've ever used.
112: [20:35:00] <simon_w> That's not saying much
113: [20:36:00] <Pyromanik> the extensions are usually the source of issues, not so much the core.
114: [20:36:00] <Pyromanik> like trying to firebug gmail
115: [20:36:00] <Pyromanik> LOL
116: [20:49:00] * gelignite quit (Read error: Operation timed out)
117: [20:55:00] * ARNHOE quit (Remote host closed the connection)
118: [20:56:00] <Pyromanik> I hate you 2.4
119: [20:56:00] <Pyromanik> <% if Top.ID = ID %>
120: [20:56:00] <Pyromanik> ^ translating to: $val .= <<<SSVIEWER
121: [20:56:00] <Pyromanik> <% if Top.ID = ID %>
122: [20:59:00] * tankr has joined #silverstripe
123: [21:01:00] * ARNHOE has joined #silverstripe
124: [21:03:00] <simon_w> Doesn't for me!
125: [21:03:00] <simon_w> Didn't even before we back-ported SSViewer
126: [21:04:00] * gelignite has joined #silverstripe
127: [21:05:00] <tankr> I've inherited a project that has an Industry class, but for some reason on my local "CLass Industry not found" despite it existing, multiple flush=all, perms set correctly…?
128: [21:05:00] * VisualOverdose has joined #silverstripe
129: [21:09:00] <simon_w> It's in some place that isn't being searched by the manifest?
130: [21:11:00] <tankr> doesn't seem to be, I've tried moving the file even. weird
131: [21:15:00] <VisualOverdose> Hey Guys, I'm using the write() function to write dataobjects after a page is published. But It seems to be writing triples of each entry. Am I missing something?
132: [21:16:00] <simon_w> write() gets called three times on the page when doing a publish
133: [21:18:00] <VisualOverdose> what is my other option, to write one row to the db after the page is published?
134: [21:19:00] <SphereSilver> if(!$this->ID){}
135: [21:20:00] <simon_w> Pyromanik, I added a rule for that particular case
136: [21:20:00] <Pyromanik> simon_w, that's what I thought... but it is :<
137: [21:20:00] <Pyromanik> I'm sure I've made that comparison befoer
138: [21:20:00] <Pyromanik> simon_w, oic
139: [21:27:00] * Zauberfisch|idle quit (Ping timeout: 256 seconds)
140: [21:27:00] <tankr> curse you php short tags
141: [21:27:00] * BabySuperman has joined #silverstripe
142: [21:28:00] <BabySuperman> return Brand::get()->sort('Title')->exclude($this->currentLocation->DeniedBrands()); --- DeniedBrands is a many many list, but it says I'm not passing enough arguments. Do I have to convert the many many list to an array??
143: [21:29:00] * SightUnseen has joined #silverstripe
144: [21:29:00] * Stomach quit (Quit: Leaving.)
145: [21:29:00] * ARNHOE quit (Remote host closed the connection)
146: [21:30:00] <BabySuperman> nvm got it!
147: [21:30:00] * Stomach has joined #silverstripe
148: [21:37:00] * Zauberfisch|idle has joined #silverstripe
149: [21:37:00] <Pyromanik> or rather ->map()->toArray()
150: [21:37:00] <Pyromanik> BabySuperman, ->toArray() ?
151: [21:37:00] <Pyromanik> ic
152: [21:37:00] <irogue> tankr: hahaha
153: [21:37:00] <BabySuperman> Pyromanik, yeah found that in the docs, but i just used subtract instead :D
154: [21:39:00] <tankr> irogue: :-)
155: [21:41:00] <irogue> could be worse, could be cos ?>\n
156: [21:44:00] <irogue> that one is nasty
157: [21:44:00] <Pyromanik> irogue, could be worse, could be "?> "
158: [21:44:00] <irogue> yep
159: [21:45:00] <irogue> could be worse, could be ruby
160: [21:45:00] <Pyromanik> irogue, could be worse, could be "<?php\n"
161: [21:46:00] <Pyromanik> bahahaha
162: [21:46:00] <Pyromanik> and browsers.
163: [21:46:00] <Pyromanik> seriously though, that UTF-8 BOM has caused me headache in the past. Zero width character in supporting editors.
164: [21:47:00] * SightUnseen has left #silverstripe
165: [21:47:00] <Pyromanik> why is there no addCc() ?
166: [21:47:00] <Pyromanik> but php hates it.
167: [21:47:00] <Pyromanik> "Oh, a character!" *dump to output*
168: [21:47:00] <Pyromanik> irogue, you've fiddled with email a fair bit
169: [21:48:00] <Pyromanik> err
170: [21:48:00] <Pyromanik> which seems crap.
171: [21:48:00] <Pyromanik> it appears I must manually build the list THEN addCc
172: [21:48:00] <Pyromanik> setCc
173: [21:49:00] <Pyromanik> that entire 'class' is crap.
174: [21:49:00] <irogue> an addCc method would just explode the contents of $Cc, add the passed-in value and implode it back again
175: [21:49:00] <irogue> just wasn't implemented i guess
176: [21:49:00] <Pyromanik> but then again
177: [21:50:00] <Pyromanik> KARP
178: [21:50:00] <Pyromanik> what is the implode? just a coma?
179: [21:50:00] <irogue> so it wouldn't be hard to implement
180: [21:50:00] <Pyromanik> yeah
181: [21:50:00] <Pyromanik> I'm not familiar with the semantics of email
182: [21:50:00] * priithansen quit (Quit: priithansen)
183: [21:50:00] <Pyromanik> so my next question was going to be pretty much that
184: [21:50:00] <Pyromanik> comma*
185: [21:50:00] <Pyromanik> semicolon?
186: [21:50:00] <irogue> yup
187: [21:50:00] <irogue> comma
188: [21:50:00] <Pyromanik> mmaky, thanks :)
189: [22:01:00] <Pyromanik> simon_w, why does Silverstripe not use php's filter var?
190: [22:01:00] <Pyromanik> for emails and the like?
191: [22:02:00] <Pyromanik> https://github.com/silverstripe/sapphire/blob/3.0/forms/EmailField.php#L36 vs php.net/filter_var
192: [22:02:00] * Stomach quit (Quit: Leaving.)
193: [22:03:00] <Pyromanik> is there some kind of adverse performance or some other kind of reason people avoid the php builtin?
194: [22:03:00] <Pyromanik> filter_var($email, FILTER_VALIDATE_EMAIL)
195: [22:04:00] <Pyromanik> (I've wondered this for a while, just never bothered to ask)
196: [22:05:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
197: [22:10:00] <Pyromanik> FFFFFFFFFFFF my dev server is set in UTC
198: [22:10:00] <Pyromanik> how 2 fix?
199: [22:12:00] * Stomach has joined #silverstripe
200: [22:12:00] * zauberfisch has joined #silverstripe
201: [22:13:00] <peter_ss> is it possible in director class add a rule to route an $ID to a controller action?
202: [22:13:00] * zauberfisch quit (Read error: Connection reset by peer)
203: [22:14:00] * fisch has joined #silverstripe
204: [22:15:00] * fisch quit (Remote host closed the connection)
205: [22:18:00] <peter_ss> hmm ok thanks for sharing
206: [22:18:00] * tankr quit (Ping timeout: 276 seconds)
207: [22:18:00] <irogue> peter_ss: by default, no. but there is a hax to implement it
208: [22:18:00] * Zauberfisch has joined #silverstripe
209: [22:18:00] * Zauberfisch quit (Remote host closed the connection)
210: [22:20:00] <BabySuperman> Any way to truncate string in template?
211: [22:21:00] * joelpittet is now known as joelpittet|lunch
212: [22:24:00] <Pyromanik> BabySuperman, so long as it's a StringField object, yep.
213: [22:24:00] <Pyromanik> BabySuperman, http://api.silverstripe.org/3.0/class-StringField.html
214: [22:24:00] <BabySuperman> Pyromanik, ty for all the replies, appreciate it!
215: [22:24:00] <Pyromanik> BabySuperman, see at top "Direct Known Subclasses"
216: [22:24:00] <Pyromanik> for more methods
217: [22:25:00] <Pyromanik> just be aware that .FirstParagraph will give you the first PARAGRAPH (ie, <p>), not the first block of text.
218: [22:25:00] <Pyromanik> but you're looking for $MyField.LimitWordCount(#) or LimitCharacters, etc.
219: [22:27:00] <BabySuperman> kk tyvm
220: [22:32:00] * VisualOverdose quit (Ping timeout: 245 seconds)
221: [22:56:00] <pippy> hm, silverstripe's dataobject corrupts a serialized object when it's in a text field
222: [22:56:00] <pippy> i wonder if i could put it in a blob
223: [22:56:00] * SphereSilver quit (Ping timeout: 248 seconds)
224: [23:23:00] * joelpittet|lunch is now known as joelpittet
225: [23:28:00] * Stomach quit (Quit: Leaving.)
226: [23:31:00] * clodeindustrie has joined #silverstripe
227: [23:32:00] <clodeindustrie> hey there
228: [23:33:00] <clodeindustrie> Our project will likely be only a theme and one or a couple of modules
229: [23:33:00] <clodeindustrie> I am new to silverstripe and wondering if the deployment process I envision makes sense
230: [23:34:00] <clodeindustrie> I wonder if updating the production version just by pulling the last version of our themes our modules from a private composer repo makes sense?
231: [23:35:00] <clodeindustrie> instead of deploying the whole thing everytime
232: [23:47:00] * joelpittet is now known as joelpittet|afk
233: [23:51:00] <willr> clodeindustrie sure, though if you're on 3.*, updates for that going in daily
234: [23:51:00] * Stomach has joined #silverstripe
235: [23:52:00] <clodeindustrie> I guess I can just update the modules and not ss itself
236: [23:53:00] <willr> that way you don't have issues where local / stage get different states
237: [23:53:00] <willr> well what you should do is update your local version which updates composer.lock then run composer install on your prod
238: [23:53:00] <willr> which will install based on the state in your lock file
239: [23:56:00] <clodeindustrie> does composer.lock contains the versions of all the modules intalled?
240: [23:56:00] <clodeindustrie> and ss itseld?
241: [23:56:00] <clodeindustrie> itself*
242: [23:57:00] <clodeindustrie> then up to me to have all the modules a the right version on staging/local
243: [23:57:00] <clodeindustrie> my intention would be to just do something like "compose update module-x"
244: [23:57:00] <clodeindustrie> on live
245: [23:59:00] <clodeindustrie> then I can choose at one point to update my production version of SS

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