#silverstripe IRC Log

IRC log for 22 June 2013

All timestamps are in UTC.

1: [00:34:42] * micmania1 quit (Ping timeout: 250 seconds)
2: [00:39:22] * willr_ quit (Quit: willr_)
3: [00:53:09] * gordon__ has joined #silverstripe
4: [00:56:03] * elgrodo quit (Ping timeout: 240 seconds)
5: [00:56:16] <SphereSilverNL> Red tests :'(
6: [00:56:29] <SphereSilverNL> it's 3AM, stop torturing me, stupid unit-tests!
7: [00:57:25] <SphereSilverNL> bad thing: Writing tests to existing features instead of writing features to expected tests :
8: [00:57:28] <SphereSilverNL> :/
9: [01:05:16] * NT4182 quit (Quit: Page closed)
10: [01:22:55] <supernovah> Can you add fields to a form instance without getting all the fields, then adding one?
11: [01:23:05] * spronk quit (Ping timeout: 246 seconds)
12: [01:29:58] * joelpittet quit (Remote host closed the connection)
13: [01:35:03] <SphereSilverNL> Yeah, you can, but what exactly do you want?
14: [01:36:41] <supernovah> How can you get a Static class property into a string like you would "string {$this->property} end"
15: [01:37:01] <supernovah> such as "ID = {Member::currentUser->ID()}"
16: [01:38:05] <SphereSilverNL> doesn't the formfill method suit you?
17: [01:38:26] <supernovah> Guessing that's not 2.4
18: [01:38:36] <SphereSilverNL> ehhh, yeah it iss
19: [01:38:39] <SphereSilverNL> -s
20: [01:38:53] <supernovah> method of what class
21: [01:39:12] <SphereSilverNL> I don't know by heart
22: [01:39:13] <supernovah> Oh sorry this is for a dataObject::get
23: [01:39:17] <supernovah> not a form
24: [01:39:33] <SphereSilverNL> that shouldn't change much, how/what do you want to prefill?
25: [01:39:54] <supernovah> Just the value after ID such as in c "ID = %s", MyVar
26: [01:40:50] <SphereSilverNL> if(exists($formdata)){ $form->setValues($formdata); }
27: [01:40:54] <SphereSilverNL> doesn't cut it?
28: [01:41:08] <supernovah> Its not a form...?
29: [01:41:13] <SphereSilverNL> I don't know if that's the actual name of the function, but there is something like that
30: [01:41:16] <supernovah> It's a filter for a dataObject
31: [01:41:30] <SphereSilverNL> you want to prefill the filter?!
32: [01:41:33] <SphereSilverNL> ahhhh, ok
33: [01:41:43] <SphereSilverNL> that's a whole different story
34: [01:41:46] <supernovah> I want to use a variable that is a static class property
35: [01:42:03] <SphereSilverNL> Then, extend ModelAdmin and update the SearchFields method
36: [01:42:08] <supernovah> Class::method->staticProperty
37: [01:42:56] <SphereSilverNL> Ok, please start from zero, what are you trying to accomplish?
38: [01:43:07] <SphereSilverNL> and at what point in your site (including admin)
39: [01:43:46] <supernovah> I want to have a variable put into the string that is a filter on a dataObject::get method
40: [01:44:07] <supernovah> But the variable does not have a preceding $ sign so php won't allow {Class::method->property}
41: [01:44:16] <supernovah> Because it is interpreted literally
42: [01:44:48] <SphereSilverNL> I think, an http://sspaste.com is in place.
43: [01:45:07] <SphereSilverNL> mainly because it's almost 4 AM for me and I'm having a hard time understanding what you're trying to do ;)
44: [01:45:20] <SphereSilverNL> (Yeah, that's probably mostly my part)
45: [01:45:51] <supernovah> http://sspaste.com/paste/show/51c50172853d2
46: [01:46:21] <supernovah> where I wrote desired, that works, but it takes two lines and more memory
47: [01:46:24] <supernovah> which seems pointless
48: [01:48:43] <SphereSilverNL> $creditData = DataObject::get("Credit", "ID = " . intval(Member::currentUser()->ID) . " AND {insert the rest here}");
49: [01:48:47] <SphereSilverNL> that doesn't work?
50: [01:49:00] <SphereSilverNL> php isn't parsed as if it was a template in SS
51: [01:49:00] <supernovah> Well yes
52: [01:49:12] <supernovah> o.0
53: [01:49:27] <supernovah> PHP 4 introduced variable substitution but it didn't allow for what I just mentioned before
54: [01:49:37] <supernovah> But I guess that is the closest to a one line solution
55: [01:49:42] * guzzlefry quit (Read error: Connection reset by peer)
56: [01:49:59] <SphereSilverNL> In theory, your substitution method works, but in practice, it just doesn't
57: [01:50:05] <supernovah> I don't like breaking strings because in colour coded syntax it looks horrible
58: [01:50:19] <supernovah> Oh well...
59: [01:50:21] <SphereSilverNL> Ehm, breaking strings IMPROVES readability
60: [01:50:29] <supernovah> Really?
61: [01:50:46] <SphereSilverNL> breaking the string, with colour-coded syntax, makes it INSTANTLY visible something changed in the line of text
62: [01:50:50] * guzzlefry has joined #silverstripe
63: [01:51:22] <SphereSilverNL> ow, and please, for the love of god, intval the Member-ID
64: [01:51:30] <supernovah> It comes from the DB
65: [01:51:33] <supernovah> it has to be an int
66: [01:51:33] <SphereSilverNL> any variable should ALWAYS be escaped
67: [01:51:39] <supernovah> Any user input maybe
68: [01:51:41] <SphereSilverNL> no matter where it comes from
69: [01:51:45] <supernovah> This comes from the DB as I declared it
70: [01:51:51] <supernovah> It's Int(11) always
71: [01:51:59] <SphereSilverNL> It doesn't matter ;)
72: [01:52:12] * EasyCo quit (Quit: EasyCo)
73: [01:52:13] <SphereSilverNL> It's not I don't trust your code (How would I tell)
74: [01:52:37] <SphereSilverNL> Just giving the advice, the moment you're using something that might come close to being variable, escape it.
75: [01:52:49] <SphereSilverNL> or at least, validate it.
76: [01:53:00] <supernovah> You know the code that gets it operates on a dataObject model right, ID comes from SS itself, it's always made as a Int(11)
77: [01:53:41] <SphereSilverNL> I'm also curious, why would just 1 extra line of code take so much memory?
78: [01:53:55] <SphereSilverNL> I understand you can trust this Member::currentUser() method ;)
79: [01:54:00] <supernovah> Doesn't take "so much" but it requires allocating memory for the extra variable in the substitution
80: [01:54:38] <SphereSilverNL> unless your hosting is really the cheapest there is, there shouldn't be a problem with those few bits of data
81: [01:54:46] <supernovah> I know but I'm ana
82: [01:54:48] <supernovah> anal*
83: [01:55:03] <SphereSilverNL> the variable is in function-scope, thus it's gone by the time the function is done
84: [01:55:08] <supernovah> I work mostly on chips which have only 1k or so of ram lol
85: [01:55:20] <SphereSilverNL> I know that feeling ;)
86: [01:55:37] <SphereSilverNL> but making those kind of shortcuts on a server with at least 128G of ram
87: [01:55:47] <supernovah> Lol
88: [01:55:54] <SphereSilverNL> is breaking semantics for 10kb of RAM unused
89: [01:56:22] <supernovah> There will be a day soon where we can just have infiniteImprobabilityFunction(Math.Rand(Math.Infinity))); build websites for us because of the infinite speed of processing
90: [01:56:25] <SphereSilverNL> I'm a BsC in Applied Physics, I had to work with memory-boards with less than 12k of memory ;)
91: [01:56:45] <supernovah> -_- my lowest was 256, we had to sort 255 bytes of data
92: [01:56:51] <supernovah> with 3 working registers
93: [01:57:34] <SphereSilverNL> I had to address 500 lights. With 12k of memory and 100k of data-storage ;)
94: [01:57:37] <SphereSilverNL> 1000k
95: [01:57:46] <supernovah> meaning program memory?
96: [01:58:00] <SphereSilverNL> 12k was the actual RAM-like memory
97: [01:58:06] <supernovah> Are you a kiwi
98: [01:58:20] <SphereSilverNL> but the executable, to call it that, couldn't be stored if it was over 100k
99: [01:58:34] <supernovah> Yeah so 100k program memory
100: [01:58:39] <SphereSilverNL> the "NL" part of my name might, somewhere, slightly, give away my origin ;)
101: [01:58:41] <SphereSilverNL> yeah
102: [01:58:47] <supernovah> NederLand aye
103: [01:59:00] <SphereSilverNL> :)
104: [01:59:19] <SphereSilverNL> which also probably explains the "4 AM" part :P
105: [01:59:27] <supernovah> I'm from NZ (technically born Soviet but grew up here young)
106: [01:59:29] <supernovah> YA LOL
107: [02:00:56] <SphereSilverNL> But back on topic, with a good hosting, you shouldn't care about memory-limits
108: [02:01:03] <SphereSilverNL> unless you create an infinite loop ;)
109: [02:01:16] <supernovah> I guess
110: [02:01:17] <SphereSilverNL> those few bits for one variable aren't gonna kill your website :)
111: [02:01:27] <supernovah> If you're doing image analysis it totally could
112: [02:01:33] <supernovah> One extra byte per iteration
113: [02:01:42] <supernovah> Although PHP5.5 has those generator functions...
114: [02:02:31] <SphereSilverNL> You'd have to do really, really, really bad, to cross the border on a 128MB with boost to 256MB hosting ;)
115: [02:02:56] <SphereSilverNL> only a full test run should be able to kill that, in my experience
116: [02:03:13] <SphereSilverNL> (Yes, I've done that :P )
117: [02:03:23] <supernovah> I guess
118: [02:03:35] <supernovah> If you're processing large images you usually break it into macro sections
119: [02:03:40] <supernovah> say 8x8 blocks
120: [02:04:36] <SphereSilverNL> But with that, you choose to give up semantics to save your hosting, if it's PHP related.
121: [02:05:14] <SphereSilverNL> but on embedded, I would probably not even write the test to the board, just to save space :P
122: [02:06:12] <SphereSilverNL> From the origin of your thought "save space because there isn't much usually"
123: [02:06:13] <supernovah> lol
124: [02:06:19] <SphereSilverNL> I understand your point of view
125: [02:06:26] <supernovah> No the origin of my though "make faster programs"
126: [02:06:32] <supernovah> "reduce clock cycles"
127: [02:06:48] <supernovah> and "Reduce energy consumption"
128: [02:06:51] <SphereSilverNL> but with PHP, you'd have to do really bad to make it slow or fill up memory with just a few extra semantics
129: [02:07:28] <supernovah> I guess
130: [02:07:34] <SphereSilverNL> Given that shutting down the Google Serverpark could give the world almost a year of electricity... I don't think your few bits and bites matter. Yet :)
131: [02:08:28] <SphereSilverNL> Unless you really, really, really, really need to save those few extra electrons, don't bother about it and go for semantics over speed
132: [02:09:20] <SphereSilverNL> where the really-really-really part refers to google.com ;) check the frontpage source-code.
133: [02:10:18] <SphereSilverNL> Google saves a few billion (probably more) with that effective minimisation. But that's taking it to the extreme. Unless you expect a few billion visitors a day, it's not worth the effort to go that far :P
134: [02:11:34] <SphereSilverNL> I've worked at a hosting-company. And really, unless your application takes up more RAM than available, that would ring the massive alarms. But one visit taking up (averaging) 80MB, that's not an issue ;)
135: [02:12:36] <supernovah> lol
136: [02:13:12] <SphereSilverNL> And energy... it's a good cause, but semantics means transferability. No semantics means the next guy has to figure out everything you wrote, without comments, because you wanted to save the environment that few electrons ;)
137: [02:13:36] <SphereSilverNL> Fun story:
138: [02:13:44] <supernovah> I document my stuff and map it in UML
139: [02:14:10] <SphereSilverNL> At my old-old job, I got an e-mail, saying "Hey, My website is ugly, please fix" (note, again, it was a HOSTING company)
140: [02:14:21] <supernovah> ^_^
141: [02:14:29] <SphereSilverNL> We looked at the website, and noticed everything, literally everything, was minimized
142: [02:14:33] <SphereSilverNL> by PHP
143: [02:14:41] <SphereSilverNL> the fun part:
144: [02:15:03] <SphereSilverNL> the minimizing by PHP took almost 3 extra seconds and I think it was almost 800 cycles
145: [02:15:33] <SphereSilverNL> Pushing the non-minimized data over the network was about 3 cycles extra
146: [02:16:01] <SphereSilverNL> so, we told the client to un-minify it's source (officially, we didn't have access to the source)
147: [02:16:16] <SphereSilverNL> The client refused, because it saved him bandwidth
148: [02:16:47] <supernovah> ob_gzhandler much
149: [02:16:54] <SphereSilverNL> We eventually ended up telling the client he was an idiot. But in nicer words ofcourse. He would NOT unminify his website because of the bandwith
150: [02:17:16] <supernovah> Sometimes when you're coding you get so much whitespace
151: [02:17:20] <supernovah> in the HTML
152: [02:17:35] <SphereSilverNL> gzhandler is good
153: [02:17:39] <supernovah> I have cut some sites bandwidth in half by stripping the whitespace when I'm finished coding
154: [02:17:48] <SphereSilverNL> but a manual "remove every frikkin' whitespace" is bad :P
155: [02:17:53] <supernovah> Not on the output buffer, but in the code - you just keep two versions
156: [02:18:02] <supernovah> you know remove your tabs/spaces
157: [02:18:20] <supernovah> I'm sure there's a facility to do it in PHP
158: [02:18:23] <supernovah> but I haven't come across it
159: [02:19:08] <SphereSilverNL> It helps, but unless every website-builder and every hosting supports it, without using more cycles to compress than it uses to push over the line, it's of no use.
160: [02:20:22] <SphereSilverNL> For a change, look at my website:
161: [02:20:27] <SphereSilverNL> http://casa-laguna.net
162: [02:20:40] <SphereSilverNL> It's just white, a few bars and some images.
163: [02:21:04] <SphereSilverNL> Minifying that would take more cycles than just pushing it, the way it is now. HTML wise
164: [02:21:43] <SphereSilverNL> But even large websites like lifehacker, hardly have any profit from minifying the output.
165: [02:22:07] <supernovah> That image on the left and the facebook addon make up for 50% of the download of viewing your site lol
166: [02:22:10] <SphereSilverNL> They only do it, because of nothing
167: [02:22:19] <SphereSilverNL> yep, I know :P
168: [02:22:32] <SphereSilverNL> It's completely nothing, designwise :P
169: [02:22:37] <supernovah> Nono, minifying output makes it faster for slower internet connections to load - there's a lot of support to say slower load times = exponentially decreased users
170: [02:23:05] <supernovah> I heard in 2008 on my first programming job that 2 seconds = half users
171: [02:23:08] <supernovah> of a startup
172: [02:23:41] <SphereSilverNL> That's not true, anymore.
173: [02:24:05] <SphereSilverNL> 10 seconds, connecting and downloading
174: [02:24:11] <supernovah> Lol
175: [02:24:15] <SphereSilverNL> if the connection breaks, the visitor is gone.
176: [02:24:17] <supernovah> Facebook can take even longer
177: [02:24:26] <SphereSilverNL> but connecting within 8 seconds is good enough ;)
178: [02:24:37] <supernovah> For most people yeah
179: [02:24:42] <SphereSilverNL> I've seen facebook and/or twitter timeout even
180: [02:24:50] <supernovah> Same here.
181: [02:24:59] <supernovah> I've had facebook refreshing for over an hour and gotten nothing
182: [02:25:07] <SphereSilverNL> which was fun, client, on a 3G hardly-any-signal e-mails his website is slow
183: [02:25:18] <SphereSilverNL> YOU THINK!?
184: [02:25:41] <supernovah> Your website takes me 4.02s lol
185: [02:26:08] <SphereSilverNL> It should, it's cloudflare hosted, it should be close to lightning-fast except for the images and twitter/facebook.
186: [02:26:35] * willr_ has joined #silverstripe
187: [02:26:36] * willr_ quit (Changing host)
188: [02:26:36] * willr_ has joined #silverstripe
189: [02:26:43] <SphereSilverNL> connecting-included, I would worry if my site would take more than 8 seconds :P
190: [02:26:54] <supernovah> My biggest commercial site is always <1s for a load (and around 0.06 processing)
191: [02:27:04] <supernovah> lets test facebook...
192: [02:27:08] <SphereSilverNL> connecting included?
193: [02:27:34] <supernovah> no
194: [02:27:41] <supernovah> 16.16 for me
195: [02:27:44] <SphereSilverNL> Take out connecting and external js etc., most sites are lightning fast
196: [02:27:46] <supernovah> 23.7.7 after onload
197: [02:28:07] <SphereSilverNL> Facebook: 11 seconds to full load
198: [02:28:46] <supernovah> So many http requests
199: [02:28:53] <supernovah> 130 on mine
200: [02:29:53] <SphereSilverNL> 68
201: [02:30:11] <SphereSilverNL> anyway, I think it's time for bed for me
202: [02:30:27] <SphereSilverNL> almost 4.30 AM
203: [02:30:35] <SphereSilverNL> Time for a beer and then bed
204: [02:30:35] <supernovah> Good night lol
205: [02:30:46] <supernovah> Really lol!?
206: [02:31:03] <SphereSilverNL> what?
207: [02:31:52] <supernovah> 4.30 am and a beer
208: [02:32:09] <SphereSilverNL> ow sure, it's weekend
209: [02:32:21] <SphereSilverNL> and girlfriend just asked me if I wanted a beer :D
210: [02:32:52] <SphereSilverNL> so, yeah, I'm off :)
211: [02:33:13] * SphereSilverNL quit (Remote host closed the connection)
212: [02:34:32] * funkygibbon has joined #silverstripe
213: [03:39:14] * RojoD has joined #silverstripe
214: [03:39:14] * RojoD quit (Changing host)
215: [03:39:14] * RojoD has joined #silverstripe
216: [03:43:33] * RojoD quit (Ping timeout: 240 seconds)
217: [03:52:29] * cloph has joined #silverstripe
218: [03:52:47] * cloph_away quit (Ping timeout: 255 seconds)
219: [04:06:28] <supernovah> How do you do Top.property in an if block
220: [04:06:50] <supernovah> I'm inside a control block hence why I need top.
221: [04:16:30] <supernovah> In templates you can't go $Variable.Property1.Property2 for nested arrays?
222: [04:16:42] <supernovah> And you can't do $variabl1.dateProperty.format()?
223: [05:26:50] * wmk has joined #silverstripe
224: [06:26:04] * mobiusnz quit (Quit: Leaving.)
225: [06:29:40] <willr_> supernovah you should be able to in 3.0
226: [06:29:53] <willr_> 2.* no.
227: [06:29:58] <supernovah> Dont worr man
228: [06:30:02] <supernovah> I posted that 2 hours ago
229: [06:31:09] <willr_> Sweet
230: [06:54:12] * willr_ quit (Quit: willr_)
231: [06:55:46] <supernovah> how do you avoid the template escaping html
232: [06:55:50] <supernovah> in a variable
233: [06:56:13] * mobiusnz has joined #silverstripe
234: [06:59:10] <supernovah> Ah I see, you have to have a variable name that is prefixed with xml_
235: [06:59:12] <supernovah> easy enough
236: [07:36:23] * guzzlefry quit (Quit: Leaving.)
237: [07:46:08] * mwm_ has joined #silverstripe
238: [07:47:51] <mwm_> Hello, I want my form to use a custom controller. Is it enough to set the controller on the form with CustomController::create(), or is it better to use $form->setFormAction()?
239: [07:48:44] <supernovah> setFormAction would just give $formData and $form objects to the action named method in the current controller
240: [07:50:13] <mwm_> Is it for the current controller, or the controller that matches the url in the form action?
241: [07:51:59] <mwm_> I have two forms, and a custom controller. It is a generic controller which can be accessed using getVars, but I want to send post data to this controller using the two forms. I am sure using setFormAction will work, but to make it cleaner I want to create an instance of the custom controller to be used by the two forms (when you create a form you have to set a controller)
242: [07:52:33] <mwm_> So I am wondering if it is possible to create an instance of the controller using CustomController::create()?
243: [07:52:58] <mwm_> sorry, thats probably really hard to understand xD
244: [07:53:48] <supernovah> sorry I can't help aye
245: [07:54:46] <mwm_> thanks though. guess it would be best to try it, but i have a lot of other stuff to debug still..
246: [07:59:18] * mwm_ quit (Ping timeout: 250 seconds)
247: [08:28:56] * mobiusnz quit (Ping timeout: 256 seconds)
248: [08:41:26] * CodeTrap has joined #silverstripe
249: [08:47:05] * gelignite has joined #silverstripe
250: [09:06:04] * priithansen has joined #silverstripe
251: [09:08:30] * osterlaus has joined #silverstripe
252: [09:11:26] * wmk quit (Ping timeout: 256 seconds)
253: [09:22:36] * wmk has joined #silverstripe
254: [09:24:12] * zfmf1 has joined #silverstripe
255: [09:25:30] * mobiusnz has joined #silverstripe
256: [09:30:08] * mobiusnz quit (Ping timeout: 256 seconds)
257: [10:07:52] * CodeTrap quit (Ping timeout: 268 seconds)
258: [10:15:00] * Hippieee has joined #silverstripe
259: [10:25:56] * mobiusnz has joined #silverstripe
260: [10:28:24] * priithansen quit (Quit: priithansen)
261: [10:30:34] * mobiusnz quit (Ping timeout: 264 seconds)
262: [11:02:57] * osterlaus quit (Quit: Leaving.)
263: [11:26:26] * mobiusnz has joined #silverstripe
264: [11:30:54] * mobiusnz quit (Ping timeout: 255 seconds)
265: [11:37:24] * Nightjar has joined #silverstripe
266: [11:41:56] <Nightjar> hey why does silverstripe/installer ignore cms and framework rather than submodule them?
267: [11:43:43] <ss23> "ignore"? What do you mean sorry?
268: [11:43:56] <Nightjar> .gitignore
269: [11:44:00] <ss23> I see, uh
270: [11:44:06] <ss23> Silverstripe uses composer for dependency management
271: [11:44:21] <ss23> Putting them in .gitignore means they'll be kept seperetate instead of accidently tried to commit to cms
272: [11:44:25] <Nightjar> yes and when you use composer to get silverstripe/composer
273: [11:44:42] <Nightjar> it doesn't support submodules or something?
274: [11:44:57] <ss23> Not sure about gitsubmodules, but it does support... composer dependencies
275: [11:45:10] <Nightjar> composer -.-
276: [11:45:18] <Nightjar> does composer not support submodules or something
277: [11:45:20] <Nightjar> ?
278: [11:45:38] <ss23> I don't know if composer "supports" git submodules, sorry
279: [11:45:45] * Hippieeee has joined #silverstripe
280: [11:46:23] <Nightjar> if someone uses composer to make a project, then adds other modules like userforms, does the .gitignore automatically update?
281: [11:47:01] <ss23> Hmm
282: [11:47:03] <ss23> I don't think so
283: [11:47:15] <Nightjar> that sounds like a pain.
284: [11:47:16] <ss23> I don't think composer knows about .gitignore, though I may be wrong. I have almost know composer knowledge
285: [11:47:30] <Nightjar> s/know/no/
286: [11:47:40] <ss23> ?
287: [11:47:40] * Hippieee quit (Ping timeout: 276 seconds)
288: [11:47:43] <ss23> Was that a joke? ;_;
289: [11:47:54] <Nightjar> " I have almost know composer knowledge"
290: [11:47:59] <ss23> oh
291: [11:48:02] <ss23> lol, yeah, sorry
292: [11:48:08] <ss23> First know was right
293: [11:48:09] <ss23> :P
294: [11:48:39] <ss23> Nightjar: Though really, composer chan might give you better answers than here
295: [11:48:45] <ss23> Especially on a Satruday night (in NZ)
296: [11:49:09] <Nightjar> why are you not out getting drunks?
297: [11:49:32] <Nightjar> are you making exciting new modules?
298: [11:52:02] <ss23> XD
299: [11:52:08] <ss23> I'm putting off real work
300: [11:52:22] <Nightjar> you have real work on a saturday night?
301: [11:52:46] <ss23> Yeah... I started working at a new job before finishing freelance stuff
302: [11:52:46] <ss23> :<
303: [11:53:17] <Nightjar> bl2u
304: [12:19:23] <Nightjar> hmm
305: [12:19:24] <Nightjar> Fatal error: Class 'CMSForm' not found in /var/www/vhosts/test.co.nz/httpdocs/hackfest/framework/admin/code/LeftAndMain.php on line 1214
306: [12:20:01] * Hippieeee quit (Read error: Connection reset by peer)
307: [12:25:30] <Nightjar> oh, forgot to dev/build
308: [12:25:36] <Nightjar> :<
309: [12:26:29] <ss23> lol
310: [12:26:34] <ss23> I always forget to build and flush...
311: [12:26:57] * mobiusnz has joined #silverstripe
312: [12:28:18] * oleze has joined #silverstripe
313: [12:29:47] <oleze> FrozenFire: Tried your code for translatable SiteTree instances in ModelAdmin (http://www.sspaste.com/paste/show/51bf791e4f8b2). Seems createtranslation() doesn't get called. Checked already, if the ItemRequest is set properly and that's the case. Any idea?
314: [12:31:42] * mobiusnz quit (Ping timeout: 256 seconds)
315: [12:45:41] * Nightjar has left #silverstripe
316: [13:04:42] * willmorgan has joined #silverstripe
317: [13:05:06] * willmorgan quit (Client Quit)
318: [13:22:15] <wmk> Hi all,
319: [13:27:10] * gelignite quit (Quit: http://bit.ly/nkczDT)
320: [13:27:26] * mobiusnz has joined #silverstripe
321: [13:30:58] * CodeTrap has joined #silverstripe
322: [13:31:52] * Liquide has joined #silverstripe
323: [13:31:53] * mobiusnz quit (Ping timeout: 248 seconds)
324: [13:33:14] * CodeTrap quit (Client Quit)
325: [13:33:47] * CodeTrap has joined #silverstripe
326: [13:34:45] * CodeTrap quit (Client Quit)
327: [13:35:00] * CodeTrap has joined #silverstripe
328: [13:49:16] * micmania1 has joined #silverstripe
329: [13:49:52] * oleze quit (Ping timeout: 250 seconds)
330: [13:56:07] * oleze has joined #silverstripe
331: [14:08:36] * jcwacky has joined #silverstripe
332: [14:09:50] <jcwacky> With composer, is there a way to tell it to just install the latest version of a module that works with the specified version of SilverStripe?
333: [14:10:25] <ss23> I think (though don't do it in production and blame me) composer update module/name
334: [14:10:58] <jcwacky> Rather than having to look up the module in packagist again and find out the name of the branch that supports my SS version.
335: [14:11:15] <ss23> I think it'll use the composer.json file to get the latest working version
336: [14:12:02] <jcwacky> At the moment I'm updating composer.json to tell it which branch of a module to install.
337: [14:12:27] <jcwacky> Normally "dev-master".
338: [14:12:50] <ss23> I'm not sure I understand then, set it to dev-master and it'll work right? What part doesn't?
339: [14:13:12] <jcwacky> But when a module author branches their module so that the master can support the latest SS version, I have to go look up the name of the branch they made for my version.
340: [14:13:36] <ss23> I see. I doubt that could be auto-resolved by composer
341: [14:13:38] <jcwacky> For example:
342: [14:13:40] <ss23> I can't think of a way you could do it
343: [14:14:05] <jcwacky> presume "module-name" : "*" won't work!?
344: [14:14:47] <jcwacky> packagist already know about all the different branches, their date and which version of SS each one supports, so should be possible?
345: [14:20:37] <jcwacky> Hmm, looks like "*" does work like that!
346: [14:23:00] <wmk> hm, when i decorate a has_many to a dataobject i cannot call the relation via the method.
347: [14:23:26] <wmk> i mean the relationgetter
348: [14:27:56] * mobiusnz has joined #silverstripe
349: [14:32:46] * mobiusnz quit (Ping timeout: 276 seconds)
350: [14:45:41] * zfmf1 has left #silverstripe
351: [14:47:08] <micmania1> jcwacky, there is a 'self.version' (or something like that) but it would mean the version must match your current composer project version. SS uses it in the installer.
352: [14:47:47] <jcwacky> "*" appears to be working exactly as I hoped.
353: [14:48:18] <jcwacky> it installs the latest branch that meets my SS version.
354: [15:10:02] * CodeTrap quit (Quit: CodeTrap)
355: [15:14:51] * ARNHOE has joined #silverstripe
356: [15:15:00] * ARNHOE quit (Remote host closed the connection)
357: [15:15:15] * ARNHOE has joined #silverstripe
358: [15:15:33] <ARNHOE> Hey guys, what is the best way to define requiredfields in modeladmin for dataobjects?
359: [15:28:36] * mobiusnz has joined #silverstripe
360: [15:37:47] * mobiusnz quit (Ping timeout: 264 seconds)
361: [15:46:27] * oleze quit (Ping timeout: 250 seconds)
362: [15:59:12] <jcwacky> I've got a class CalendarPage extends Page, and was expecting "static $db" to break in 3.1 unless I made it private, but it seems to be working fine, how come?
363: [16:05:09] <ARNHOE> jcwacky: from my experience static $db doesnt break in 3.1, only public static $db should break. But its recommended to use private static $db instead of static $db
364: [16:07:03] <jcwacky> just tried changing them to public static but it still works in 3.1
365: [16:07:18] <jcwacky> is it because it extends Page, rather then extending SiteTree
366: [16:07:20] <jcwacky> ?
367: [16:08:37] <jcwacky> in my main "Page extends SiteTree" things do break if I change them to public, but in my classes that extend page it doesn't seem to complain if statics are public.
368: [16:27:50] <micmania1> Does anybody have a spare 5 mins to try & replicate a bug?
369: [16:28:12] <micmania1> Its either a bug or i'm going mad.
370: [16:33:40] * mobiusnz has joined #silverstripe
371: [16:33:48] * rved has joined #silverstripe
372: [16:34:21] <rved> i just moved my 2.4.10 site to new hosting, but now, when i save a page, it does get saved & published, but i see only the message "saving…"
373: [16:34:27] <rved> why? and how do fix it?
374: [16:34:55] <rved> console Networks says:http://paste2.org/wGvv8tIX
375: [16:35:06] <rved> [16:52:52.179] POST http://test.hostyou.be/admin/EditForm [HTTP/1.1 200 OK 1067ms]
376: [16:35:17] <rved> logs remain empty
377: [16:35:55] <rved> please note that the console is saying: Refused to set unsafe header "Connection"
378: [16:36:06] <rved> but this is usually not the problem
379: [16:38:15] * mobiusnz quit (Ping timeout: 255 seconds)
380: [16:38:51] <micmania1> If anybody has a spare 5 minutes could you please test this out: https://gist.github.com/micmania1/994803a2c3978d76442c
381: [16:39:01] * oleze has joined #silverstripe
382: [16:40:03] <micmania1> Basically, I've added a Username to Member (through MemberExtension). All works fine apart from the first Username in the <% loop %> block won't show.
383: [16:43:29] * jcwacky quit (Quit: jcwacky)
384: [16:44:22] <rved> why not use: loop StandingsRows
385: [16:44:34] <rved> and then $Member.Username
386: [16:45:22] <micmania1> Its not connected to the page. When I loop <% Standings %> that's what its doing. However, that's just an example. The actual script has a lot of overhead.
387: [16:45:38] <micmania1> so I stripped it down a lot.
388: [16:46:08] <micmania1> I think it may be a caching issue, but I don't even know where to start with that.
389: [16:46:56] <rved> well I'm not into 3.x that much yet
390: [16:47:56] <micmania1> ah! Doesn't matter. I found the problem. My data is screwed up.
391: [16:48:05] <micmania1> thanks for taking a look thgouh.
392: [16:48:11] <micmania1> though*
393: [16:54:41] <micmania1> rved, have you checked the Silverstripe error logs. These are different from Apache logs in 2.4
394: [16:54:53] <micmania1> I think they're in the sapphire folder
395: [16:58:23] <rved> micmania1: yes i checked all logs
396: [16:58:31] <rved> all ss logs that is
397: [16:58:42] <rved> I'm writing my own logs
398: [16:59:35] <rved> oh I'm getting an error now
399: [16:59:37] <rved> finally
400: [16:59:57] <rved> [22-Jun-2013 06:28:36] Warning at sapphire/core/Requirements.php line 980: Requirements_Backend::process_combined_files(): Couldn't create '/home/www…..nl/web/assets/_combinedfiles//cmsmain.js' (http://.....hostyou.be/admin/EditForm)
401: [17:03:38] <micmania1> possibly a permissions error?
402: [17:15:21] * rved quit (Quit: rved)
403: [17:19:10] * rved has joined #silverstripe
404: [17:26:40] * jcwacky has joined #silverstripe
405: [17:27:13] * jcwacky quit (Client Quit)
406: [17:34:06] * mobiusnz has joined #silverstripe
407: [17:38:59] * mobiusnz quit (Ping timeout: 264 seconds)
408: [17:44:11] * gelignite has joined #silverstripe
409: [17:46:03] * oleze quit (Ping timeout: 250 seconds)
410: [18:28:03] <micmania1> Is there any way from preventing a ReadonlyField from outputting "(none)" instead of "0" when the value is "0"?
411: [18:34:37] * mobiusnz has joined #silverstripe
412: [18:39:18] * mobiusnz quit (Ping timeout: 255 seconds)
413: [18:42:51] <micmania1> Solved! Silverstripe's full of little easter eggs.
414: [18:49:45] <wmk> micmania1, it is.
415: [18:54:35] * wmk quit (Ping timeout: 264 seconds)
416: [18:55:30] <Shrike_Finland> I have Varchar on table and "-characters will print out like &quot;
417: [18:55:41] <Shrike_Finland> Should I change to HTMLText?
418: [18:56:20] <Shrike_Finland> Or any trick to get " printed on template file?
419: [18:59:57] <Shrike_Finland> That did the trick, anyway
420: [19:01:06] * RojoD has joined #silverstripe
421: [19:01:06] * RojoD quit (Changing host)
422: [19:01:06] * RojoD has joined #silverstripe
423: [19:04:09] * RojoD quit (Read error: Connection reset by peer)
424: [19:13:22] <micmania1> Shrike_Finland, there's also an HTMLVarchar field but I don't think there's a nice way of displaying it in the CMS.
425: [19:13:47] * rved quit (Quit: rved)
426: [19:19:38] * ARNHOE quit (Remote host closed the connection)
427: [19:35:06] * mobiusnz has joined #silverstripe
428: [19:39:36] * mobiusnz quit (Ping timeout: 255 seconds)
429: [19:46:11] <micmania1> Has anybody had trouble adding pages with the CMS in 3.1?
430: [19:54:45] * micmania1 quit (Ping timeout: 250 seconds)
431: [20:06:28] * osterlaus has joined #silverstripe
432: [20:09:38] * pex has joined #silverstripe
433: [20:13:48] * catcher has joined #silverstripe
434: [20:14:48] * funkygibbon quit (Ping timeout: 245 seconds)
435: [20:16:32] <catcher> I'm trying to get a site started in 3.1 (no cms). I'm able to get to my controller/action with a simple routes.yml Director rule, but all my file requests (js, css, img) are keeping the controller in the request path.
436: [20:17:09] <catcher> needless to say, they 404. Where am I going wrong?
437: [20:18:00] <catcher> Do I need to somehow exclude file requests in the routes.yml? .htaccess is SS default, including the -f line.
438: [20:35:36] * mobiusnz has joined #silverstripe
439: [20:36:51] * osterlaus quit (Quit: Leaving.)
440: [20:39:54] * mobiusnz quit (Ping timeout: 255 seconds)
441: [20:44:19] * mobiusnz has joined #silverstripe
442: [21:06:51] * catcher quit (Quit: Leaving)
443: [21:36:25] * oleze has joined #silverstripe
444: [21:39:12] * oleze quit (Client Quit)
445: [22:05:30] * RojoD has joined #silverstripe
446: [22:05:30] * RojoD quit (Changing host)
447: [22:05:30] * RojoD has joined #silverstripe
448: [22:20:32] * Nightjar has joined #silverstripe
449: [22:22:01] * mobiusnz quit (Quit: Leaving.)
450: [22:25:33] * mobiusnz has joined #silverstripe
451: [22:25:53] * gordon__ quit (Ping timeout: 246 seconds)
452: [22:26:51] * gordon__ has joined #silverstripe
453: [22:50:24] * cloph is now known as cloph_away
454: [22:56:30] * gelignite quit (Quit: http://bit.ly/nkczDT)

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