#silverstripe IRC Log

IRC log for 6 March 2013

All timestamps are in UTC.

1: [00:04:00] <FrozenFire> Who needs permenance?
2: [00:04:00] <FrozenFire> Or some variation of that spelling which is correct.
3: [00:04:00] <FrozenFire> You guys and your mailing lists
4: [00:05:00] <tankr> lol, I think this channel is logged isn't it? or am I missing the point?
5: [00:06:00] <FrozenFire> It is. And you're not. I'm just tired and silly.
6: [00:07:00] * ajshort has joined #silverstripe
7: [00:07:00] * tankr quit (Quit: Leaving.)
8: [00:12:00] <spronk> does anyone know of any english Phonex implementations for php?
9: [00:12:00] * LoveDuckie quit (Ping timeout: 255 seconds)
10: [00:13:00] <StuartKent> Unknown column 'SubmittedForm.ParentID' in 'where clause' // I can't see any open issues for this with userforms.
11: [00:15:00] * liam__ has joined #silverstripe
12: [00:19:00] <spronk> Phonex like the name-matching algo that's a combination of soundex and metaphone
13: [00:19:00] <FrozenFire> spronk, Phonex? Like a PBX?
14: [00:20:00] <spronk> irogue: we put in manual port forwards
15: [00:20:00] <spronk> i might just work on one
16: [00:20:00] <spronk> have had zero nosound issues since
17: [00:20:00] <spronk> github that shit up as a composerlib
18: [00:20:00] <spronk> FrozenFire: only "implementation" i can find is http://www.cs.utah.edu/contest/2005/NameMatching.pdf
19: [00:20:00] <FrozenFire> Where's the implementation of it that you know of?
20: [00:20:00] <irogue> spronk loves PBXes
21: [00:20:00] <spronk> haha
22: [00:21:00] <FrozenFire> So... nobody's implemented it in another language.
23: [00:22:00] <spronk> but apparently phonex is much better for matching names
24: [00:22:00] <FrozenFire> That was my question. ;P
25: [00:22:00] <spronk> well someone must have, but i dno
26: [00:22:00] <spronk> php has soundex and metaphone
27: [00:23:00] <FrozenFire> Sounds complicated
28: [00:26:00] <Colin[pi]> thanks for crashing firefox, much appreciated -_-
29: [00:28:00] <FrozenFire> I'm sure you're very welcome.
30: [00:29:00] <spronk> o_O
31: [00:30:00] <Colin[pi]> if it wasn't for chrome's shit font rendering and my love of firebug, I would ditch firefox
32: [00:32:00] * terryapodaca has joined #silverstripe
33: [00:34:00] <terryapodaca> any reason why index.php is being added to my baseURL only when I click on the home page?
34: [00:34:00] <Colin[pi]> .htaccess handles the rest
35: [00:34:00] <Colin[pi]> I usually delete index.php
36: [00:35:00] * MichaelinWelling has joined #silverstripe
37: [00:36:00] <terryapodaca> that's weird, I've never had to delete that file
38: [00:36:00] <Colin[pi]> on apache on windows for me it always adds index.php to the URLs unless i physically delete that file
39: [00:40:00] * aznain has joined #silverstripe
40: [00:40:00] <terryapodaca> that fixed it...
41: [00:40:00] <Colin[pi]> yay
42: [00:41:00] <Pyromanik> FrozenFire https://github.com/silverstripe/ and https://github.com/silverstripe-labs/
43: [00:41:00] <Pyromanik> and silverstripe-au and silverstripe-themes
44: [00:41:00] <Pyromanik> not to mention all the private repos
45: [00:41:00] <FrozenFire> Yeah. Just pointing at the "official" ones
46: [00:41:00] <Pyromanik> like undefinedoffset, ajshort, chillu, halkyon
47: [00:41:00] <FrozenFire> For modules.
48: [00:41:00] <Pyromanik> yeh, they are 'official' to a point
49: [00:41:00] <Pyromanik> frankmullenger
50: [00:41:00] <Pyromanik> etc
51: [00:42:00] <FrozenFire> Your mom is officially pointy.
52: [00:42:00] * FrozenFire refuses to trivialize the importance of the raised hand slap
53: [00:42:00] * Pyromanik highfives FrozenFire
54: [00:43:00] <Colin[pi]> I love how sites try to prevent you from right clicking and inspecting source, that's so cute
55: [00:43:00] * FrozenFire turns the other one
56: [00:43:00] * Pyromanik highfives FrozenFire... on the face cheeks
57: [00:44:00] <Pyromanik> I think my other favourite is the lightbox popup
58: [00:44:00] <Pyromanik> ikr
59: [00:44:00] <Pyromanik> "LOG IN TO SEE OUR COOL CAT PHOTOS"
60: [00:44:00] <Colin[pi]> seriously why bother
61: [00:44:00] <Pyromanik> LOL I DON'T BROWSE WITH JAVASCRIPT, WHAT NOW BITCH
62: [00:45:00] <Pyromanik> BOOM
63: [00:45:00] <Colin[pi]> or view source
64: [00:45:00] <Colin[pi]> OMG I CERTAINLY COULD NOT INSPECT AND DELETE THAT OVERLAY LOL
65: [00:45:00] <Colin[pi]> another one I saw "blurred" the text so you couldn't see it without logging in
66: [00:45:00] <Pyromanik> F YOUR LOGIN MAAHAHAHAHA
67: [00:45:00] <Pyromanik> F12, inspect, click lightbox, hit del key
68: [00:45:00] <FrozenFire> Colin[pi], Because otherwise someone might steal it!
69: [00:46:00] <Pyromanik> usually that's an img
70: [00:46:00] <Pyromanik> expert sexchange does that
71: [00:46:00] <Colin[pi]> some sort of div overlay, can't recall the site
72: [00:46:00] <Pyromanik> but it's an img, so you can't
73: [00:46:00] <Colin[pi]> it was very fancy for NO REASON AT ALL
74: [00:46:00] <Pyromanik> how did they 'blur'
75: [00:46:00] <Pyromanik> lolwut
76: [00:46:00] * FrozenFire feels intimidated by all of the 1337 haxxors present here
77: [00:47:00] <Pyromanik> blurs on text can't really be achieved using standard css
78: [00:47:00] <FrozenFire> Yeah. Expert Sexchange and W3Schools are the entire reason I have Google Personal Blocklist
79: [00:47:00] <Pyromanik> best you could do is a buttload of text shadow and an overlay so you couldn't copy paste
80: [00:47:00] <Colin[pi]> i'm 90% sure though there was one site I visited that was trying to hide the text somehow and I deleted the element and voila
81: [00:47:00] <Colin[pi]> maybe it was that? hmm maybe that one I couldnt!
82: [00:48:00] <Colin[pi]> might have been a different site
83: [00:48:00] <Pyromanik> I'm pretty sure I've seen a site like that too
84: [00:48:00] <Colin[pi]> copypasta of exspurts sexchange
85: [00:50:00] <Colin[pi]> I'm sure most of my day now consists of grabbing my browser window and going left and right with it
86: [00:50:00] <FrozenFire> Radio buttons in forms. How to?
87: [00:50:00] <Colin[pi]> lol responsive design
88: [00:50:00] <Pyromanik> lol
89: [00:51:00] <FrozenFire> Thanks
90: [00:51:00] <Pyromanik> optionsetfield
91: [00:51:00] <FrozenFire> Because fack u
92: [00:51:00] <Pyromanik> why does Versioned::publish() but not Versioned::unpublish() ?
93: [00:52:00] <FrozenFire> It'll do what it wants.
94: [00:52:00] <FrozenFire> It's Versioned
95: [00:52:00] <simon_w> Because publish copies from one stage to another
96: [00:52:00] <simon_w> There's deleteFromStage
97: [00:53:00] <Pyromanik> right
98: [00:54:00] <Pyromanik> simon_w: is there a one liner for removing pages from db (all versions) ?
99: [00:54:00] <simon_w> Nope
100: [00:54:00] <Pyromanik> no easy way to oblitterate.
101: [00:54:00] <Pyromanik> I guess I could foreach a list....
102: [00:55:00] <terryapodaca> this is so fucked up!
103: [00:55:00] <Pyromanik> bugger
104: [00:55:00] <terryapodaca> created a new page and now it gives me Access Forbidden on the new page
105: [00:56:00] <terryapodaca> yes
106: [00:56:00] <Pyromanik> logged in as admin?
107: [00:56:00] <terryapodaca> "You don't have permission to access the requested directory. There is either no index document or the directory is read-protected."
108: [00:56:00] <terryapodaca> yes
109: [00:56:00] <Pyromanik> 403?
110: [00:56:00] <Pyromanik> lol
111: [00:56:00] <Pyromanik> fix your .htaccess
112: [00:56:00] <Pyromanik> and/or turn on mod_rewrite
113: [00:56:00] <Pyromanik> apache 403
114: [00:56:00] <Pyromanik> oh
115: [00:57:00] <terryapodaca> yes
116: [00:57:00] <Pyromanik> umm
117: [00:57:00] <Pyromanik> ensure magicface urls are turned on
118: [00:57:00] * chillu quit (Quit: chillu)
119: [00:57:00] <Pyromanik> nestedURLs
120: [00:57:00] <terryapodaca> yes
121: [00:57:00] <Pyromanik> make sure apache doesn't prefer an existing folder over directing the request into SS
122: [00:57:00] <terryapodaca> yes
123: [00:58:00] <Pyromanik> FrozenFire: ->distinct
124: [00:58:00] <FrozenFire> Hrmm... DataList distinct by fields. How to?
125: [00:58:00] <simon_w> Should do it automatically...
126: [00:58:00] <FrozenFire> Pyromanik, Not seeing that
127: [00:58:00] <terryapodaca> home, about and contact work fint
128: [00:59:00] <Pyromanik> FrozenFire: it's on SQLQuery
129: [00:59:00] <FrozenFire> I don't want the list to always be distinct.
130: [00:59:00] * tankr1 has joined #silverstripe
131: [00:59:00] <FrozenFire> The IDs will be different.
132: [00:59:00] <Pyromanik> depends on the fields listed DISTINCT
133: [00:59:00] <FrozenFire> Not completely distinct.
134: [00:59:00] <FrozenFire> It's multiple records with certain fields being the same.
135: [00:59:00] <Pyromanik> all ::get()'s have DISTINCT
136: [00:59:00] <FrozenFire> Can't imagine it could be there.
137: [00:59:00] <Pyromanik> and what simon_w said, it should already be there
138: [01:00:00] <FrozenFire> That's non-portable.
139: [01:00:00] <Pyromanik> for more flexibility
140: [01:00:00] <FrozenFire> Blegh.
141: [01:00:00] <Pyromanik> or yeh, build an SQLQuery
142: [01:00:00] <Pyromanik> iirc
143: [01:00:00] <Pyromanik> mmm, augmentSQL()
144: [01:00:00] <simon_w> SQLQuery it!
145: [01:00:00] <FrozenFire> I want this specific getter to be distinct on certain fields.
146: [01:00:00] <FrozenFire> I basically just have two fields that have the same value for a bunch of records.
147: [01:01:00] <FrozenFire> Probably
148: [01:01:00] <Pyromanik> you might want GROUP BY
149: [01:01:00] <Pyromanik> ?
150: [01:01:00] <FrozenFire> But DataList is a dick about that
151: [01:01:00] <Pyromanik> simon_w: if I get SiteTree::get() will it return correct classes?
152: [01:01:00] <simon_w> Yes
153: [01:02:00] <Pyromanik> wicked
154: [01:02:00] <StuartKent> Wait a second: LEFT JOIN "SubmittedForm" ON SubmittedFormField.ParentID = SubmittedForm.ID WHERE ("SubmittedForm.ParentID" = '101') | Unknown column 'SubmittedForm.ParentID' in 'where clause',256)
155: [01:02:00] <Pyromanik> ta
156: [01:02:00] <simon_w> yes
157: [01:02:00] <Pyromanik> not just SiteTrees
158: [01:02:00] <Pyromanik> so I'll get a list of Page, BlogEntry and the like
159: [01:03:00] <Pyromanik> dev/build
160: [01:03:00] <Pyromanik> update UserDefinedForms
161: [01:04:00] <Pyromanik> both suggestions?
162: [01:04:00] <StuartKent> done twice
163: [01:04:00] <StuartKent> downloading Zip's from github
164: [01:04:00] * willr has left #silverstripe
165: [01:04:00] <Pyromanik> dunno
166: [01:04:00] <StuartKent> Master?
167: [01:04:00] <Pyromanik> did you pull the correct branch?
168: [01:04:00] <Pyromanik> are you using composer?
169: [01:04:00] <StuartKent> yep
170: [01:05:00] <FrozenFire> Bugger this is complicated.
171: [01:06:00] * terryapodaca has left #silverstripe
172: [01:06:00] * liam__ quit (Quit: liam__)
173: [01:07:00] <Pyromanik> if I do deleteFromStage('live') and then deleteFromStage('stage') will that do me?
174: [01:07:00] <FrozenFire> Might have to do the trimming of the list in PHP
175: [01:08:00] <simon_w> Pyromanik, yes
176: [01:09:00] <Pyromanik> no idea how they got in there in the first place, but they're causing issues
177: [01:09:00] <Pyromanik> simon_w: what about scooping out versions too?
178: [01:09:00] <Pyromanik> yup
179: [01:09:00] <simon_w> Pyromanik, so you want to completely nuke it from the database?
180: [01:09:00] * tankr1 quit (Quit: Leaving.)
181: [01:10:00] <Pyromanik> hmm, maybe instead of ::get()->byIDs() do Versioned::get_all_versions ?
182: [01:11:00] <ss23> NO NO NO!
183: [01:11:00] <Pyromanik> YES!
184: [01:11:00] <Pyromanik> in a foreach
185: [01:11:00] <Pyromanik> of ids
186: [01:11:00] <simon_w> You'll need to do manual SQL
187: [01:11:00] <Pyromanik> :<
188: [01:11:00] <Pyromanik> NO!
189: [01:13:00] <Pyromanik> DataList::removeAll() is about removing from list, not physically removing data from DB, isn't it?
190: [01:14:00] <Pyromanik> oh awesome
191: [01:14:00] <simon_w> It removes them from the database
192: [01:15:00] <Pyromanik> y/N ?
193: [01:15:00] <FrozenFire>
194: [01:15:00] <StuartKent> hmm. would an outdated blog module cause odd issues? I'm thinking it would
195: [01:15:00] <FrozenFire> Possibly.
196: [01:15:00] <Pyromanik> foreach(array(148,150,389,391,392,393,394,395) as $id) Versioned::get_all_versions('SiteTree', $id)->removeAll();
197: [01:16:00] <Pyromanik> without widgets module your securityadmin will have a fit
198: [01:16:00] <Pyromanik> (if you have blog module)
199: [01:16:00] <FrozenFire> Among other things
200: [01:16:00] <FrozenFire> Keep in mind that the blog module requires the widgets module
201: [01:16:00] <FrozenFire> Otherwise it'll shit on your site in mysterious ways.
202: [01:16:00] * MichaelinWelling quit (Quit: MichaelinWelling)
203: [01:16:00] <Pyromanik> StuartKent: yes. Also you'll need widgets module.
204: [01:17:00] <Pyromanik> hey, reports are still CMS core?
205: [01:19:00] <StuartKent> widgets were core in 2.4.5 weren't they
206: [01:19:00] <FrozenFire> For some reason, yes.
207: [01:20:00] <Pyromanik> no
208: [01:20:00] <Pyromanik> they were part of blog module
209: [01:21:00] <FrozenFire> And they still de-facto are. :P
210: [01:21:00] <FrozenFire> Since nobody in their right mind uses widgets unless they're stuck using them due to blog module.
211: [01:22:00] <StuartKent> weird
212: [01:22:00] <StuartKent> so the person that was maintaining this before me put the widget folder in the sapphire folder
213: [01:23:00] <FrozenFire> Err
214: [01:23:00] <FrozenFire> They're in there in 2.4
215: [01:23:00] <FrozenFire> No, Pyromanik's just crazy
216: [01:24:00] <FrozenFire> https://github.com/silverstripe/sapphire/tree/2.4.7/widgets
217: [01:25:00] * MichaelinWelling has joined #silverstripe
218: [01:28:00] <StuartKent> cool, widgets are back.
219: [01:29:00] <FrozenFire> "cool"
220: [01:30:00] <Pyromanik> oh so they were
221: [01:30:00] <Pyromanik> my bad
222: [01:30:00] <Pyromanik> they were added specifically for the blog though.
223: [01:31:00] <StuartKent> but is neat to have around
224: [01:31:00] <Pyromanik> seemed like a cool idea, wasn't really :<
225: [01:31:00] <StuartKent> lol
226: [01:31:00] <FrozenFire> Seemed like a 2.4 idea
227: [01:31:00] <StuartKent> well it's something that I didn't notice was broken
228: [01:32:00] <StuartKent> oello. so my DB is building nicely, but still no userforms :s
229: [01:33:00] <StuartKent> = SubmittedForm.ID WHERE ("SubmittedForm.ParentID" = '8') | Unknown column 'SubmittedForm.ParentID' in 'where clause',256)
230: [01:33:00] <StuartKent> it's not looking for SubmittedForm.SubmittedForm.ParentID is it?
231: [01:33:00] <StuartKent> from the DB dump it looks like it is trying to find the submitted stuff, but throwing an error when it can't see it
232: [01:34:00] <Colin[pi]> FrozenFire: "Since nobody in their right mind uses widgets unless they're stuck using them due to blog module." Care to elaborate?
233: [01:37:00] <FrozenFire> Colin[pi], Widgets are very restrictive and finnicky pieces of code, whose primary management interface is even more finnicky and restrictive.
234: [01:37:00] <FrozenFire> You can produce the same thing, in exactly the format you want, without widgets.
235: [01:37:00] <Colin[pi]> I will agree their implementation is a bit dodgy
236: [01:37:00] <FrozenFire> The only time to use them is when you need your own blocks of interchangeable content mixed into blog's own widget area.
237: [01:37:00] <Colin[pi]> true, but shouldn't they be fairly restrictive? I like that I have a widget or two for very specific purposes
238: [01:38:00] <FrozenFire> Restriction of scope is not nearly the same as restriction of functionality.
239: [01:38:00] <FrozenFire> I just know that I can't get what I need to get done, using widgets.
240: [01:38:00] <FrozenFire> If you can manage to use widgets effectively without an excess of work, more power to you.
241: [01:39:00] <Colin[pi]> I think they're one of the easier things to get going, actually :)
242: [01:40:00] <FrozenFire> Lots of form widgets
243: [01:40:00] <FrozenFire> Yeah. What my client tend to want are things like contact forms or mailing list signup forms, or search forms.
244: [01:40:00] <Colin[pi]> but mine are fairly simple and used to primarily display info and not accept input
245: [01:41:00] <Colin[pi]> ah yes
246: [01:44:00] * dospuntocero quit (Remote host closed the connection)
247: [01:47:00] * liam__ has joined #silverstripe
248: [01:51:00] <irogue> that is big.
249: [01:51:00] <irogue> https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-prn1/65505_455854707821873_881466030_n.jpg
250: [01:52:00] <Pyromanik> what is?
251: [01:53:00] <StuartKent> the tiny person
252: [01:53:00] <StuartKent> looks like a jet engine, probably to power some form of evil lair
253: [01:53:00] <Pyromanik> what is it?
254: [01:54:00] <Pyromanik> my first thought was a turbine of some kind
255: [01:54:00] <Pyromanik> generator
256: [01:54:00] <Pyromanik> hydro or something
257: [01:55:00] <Pyromanik> but then yeh, water
258: [01:55:00] <Pyromanik> so maybe I thought redirecting some waterways to make road
259: [01:55:00] <Pyromanik> but then I saw NZTA
260: [01:55:00] <Pyromanik> so
261: [01:55:00] <Pyromanik> dunno
262: [01:55:00] <Pyromanik> anyway
263: [01:55:00] <Pyromanik> but that's just stupid
264: [01:55:00] <StuartKent> From the water label I actually think it's maybe more a water purification thing?
265: [01:55:00] <Pyromanik> then I thoguht some kind of tunnel dig
266: [01:56:00] <Pyromanik> when there's a post from November
267: [01:56:00] <Pyromanik> What would cause my blogHolder to not display any entries
268: [01:56:00] <Pyromanik> it's set to "last 6 months"
269: [01:56:00] <Pyromanik> shows none
270: [01:56:00] <Pyromanik> at least
271: [01:56:00] <Pyromanik> which is only 4 months ago
272: [01:56:00] <StuartKent> have you tried recreating the blog post? could be related to an update?
273: [01:57:00] <Pyromanik> nope
274: [01:57:00] <Pyromanik> "
275: [01:57:00] <Pyromanik> it shows if I set the "show posts from" to "all
276: [01:57:00] <StuartKent> if you can find out the page ID you can try visiting it directly
277: [01:57:00] <Pyromanik> no updates
278: [01:58:00] <Pyromanik> it shows up if I say "last 7 months' entries"
279: [01:58:00] <MichaelinWelling> simon_w, shouldn't the oauth module read also from the body for variables? for example if you post using curl it puts the variables in the body and the postVars doesn't pick this up
280: [02:06:00] * nickmolhoek quit (Remote host closed the connection)
281: [02:06:00] * nickmolhoek has joined #silverstripe
282: [02:07:00] * nickmolhoek has joined #silverstripe
283: [02:14:00] <StuartKent> Hmm. this is happening on a fresh install
284: [02:16:00] <StuartKent> Create userform > shown blank CMS page > get alert that the submittedform.parentID column is unknown
285: [02:24:00] * howardgrigg has joined #silverstripe
286: [02:30:00] <Pyromanik> Zend date: apparently superbad at doing it's job
287: [02:37:00] * t|m has joined #silverstripe
288: [02:38:00] * willr has joined #silverstripe
289: [02:38:00] <Pyromanik> where is $Now defined?
290: [02:38:00] <t|m> anyone got experience with entwine in the cms
291: [02:38:00] <t|m> hey guys
292: [02:38:00] <Pyromanik> good luck to you
293: [02:38:00] <Pyromanik> :<
294: [02:38:00] <t|m> i need a google map in there
295: [02:38:00] <Pyromanik> hi
296: [02:38:00] <t|m> and need to trigger 'resize' when a tab gets activated
297: [02:39:00] <t|m> been looking for events i could use
298: [02:39:00] * howardgrigg quit (Remote host closed the connection)
299: [02:39:00] <Pyromanik> click, I 'd suggest
300: [02:39:00] <t|m> but nothing seems to work consistently when loading via ajax or init
301: [02:40:00] <Pyromanik> yeh
302: [02:40:00] <Pyromanik> append script tag to the template
303: [02:40:00] <t|m> hmm
304: [02:40:00] <Pyromanik> or Requirements::javascript()
305: [02:40:00] <Pyromanik> in the getCMSFields
306: [02:40:00] <t|m> nah i think i need to call it when that particluar tab gets activated
307: [02:40:00] <Pyromanik> JS required is executed by cms after load
308: [02:40:00] <t|m> yes
309: [02:41:00] <Pyromanik> so
310: [02:41:00] <Pyromanik> so you bind it to click
311: [02:41:00] * Pyromanik shrugs
312: [02:41:00] <t|m> but the resize trigger needs to be called
313: [02:41:00] <Pyromanik> so?
314: [02:41:00] <t|m> when the tab becomes active
315: [02:41:00] <Pyromanik> yes
316: [02:41:00] <Pyromanik> click
317: [02:41:00] <Pyromanik> one must click the tab, must they not?
318: [02:41:00] <t|m> if it was that easy i wouldnt ask ;)
319: [02:41:00] <Pyromanik> perhaps I'm not getting this
320: [02:42:00] <Pyromanik> so
321: [02:42:00] <t|m> i'll keep digging
322: [02:42:00] <Pyromanik> then you click the tab
323: [02:42:00] <t|m> hmm
324: [02:42:00] <Pyromanik> resize the map
325: [02:42:00] <Pyromanik> and at that point
326: [02:42:00] <Pyromanik> you load a page'
327: [02:43:00] <t|m> yes
328: [02:43:00] <Pyromanik> because it's more than likely not bound.
329: [02:43:00] <Pyromanik> events ALWAYS fire
330: [02:43:00] <Pyromanik> just whether you catch them
331: [02:43:00] <t|m> the click event doesnt fire on the tab
332: [02:44:00] <t|m> real weird
333: [02:44:00] <t|m> there is a select callback from jquery ui tabs
334: [02:44:00] <Pyromanik> or something else catches and stops it beforehand.
335: [02:44:00] <t|m> was just wondering if someone had similar issues ;)
336: [02:44:00] <t|m> anyway
337: [02:44:00] <t|m> but that wont fire directly
338: [02:45:00] <Pyromanik> $(elementselector).entwine({onclick:function(){resizeMap();}})
339: [02:45:00] <Pyromanik> JS and CMS are always issues :P
340: [02:45:00] <t|m> ah true
341: [02:45:00] <t|m> its called onclick
342: [02:46:00] <Pyromanik> well yeah
343: [02:46:00] <Pyromanik> that's how one uses entwine
344: [02:47:00] <Pyromanik> if it doesn't work, try a more specific selector
345: [02:48:00] <t|m> wont fire
346: [02:48:00] <t|m> $(".ui-tabs-nav a").entwine({ onclick: function() { console.log("click");}});
347: [02:48:00] <t|m> hmm
348: [02:49:00] <Pyromanik> t|m: I'm afraid that's about my limit of CMS JS Voodoo knowledge
349: [02:49:00] <priithansen> thought that $url_priority would be for that but does not appear to work
350: [02:49:00] <t|m> thanks anyway man
351: [02:49:00] <priithansen> How does one change the cms default from Pages to custo modeladmin
352: [02:50:00] <Pyromanik> again'
353: [02:50:00] <Pyromanik> f'n new docs
354: [02:50:00] <Pyromanik> goddammit I cannot find Now
355: [02:51:00] <priithansen> http://api.silverstripe.org/3.0/class-SS_Datetime.html#_now
356: [02:52:00] <Pyromanik> yes
357: [02:52:00] <t|m> where $Now is coming from?
358: [02:52:00] <Pyromanik> thank you priit...
359: [02:52:00] * priithansen quit (Quit: priithansen)
360: [02:52:00] * liam__ has left #silverstripe
361: [02:53:00] <Pyromanik> it used to be on controller
362: [02:53:00] <Pyromanik> really obscure.
363: [02:53:00] <t|m> in the templates?
364: [02:53:00] <Pyromanik> now it's some kind of interface injection voodoo
365: [02:54:00] * liam__ has joined #silverstripe
366: [02:56:00] <Pyromanik> FrozenFire: why in the hell would Zend modify dates differently depending on the browser?
367: [02:56:00] <t|m> hmm
368: [02:57:00] <Pyromanik> Firefox's now - 7 months gives me November.
369: [02:58:00] <Pyromanik> simon_w: don't blame me
370: [02:58:00] <simon_w> That's what you get for using Zend?
371: [02:58:00] <Pyromanik> Opera and Chrome give me now - 7 months = August.
372: [02:59:00] <Pyromanik> git blame cbarberis
373: [02:59:00] <simon_w> Look at all this blaming
374: [02:59:00] <simon_w> Oh, I'm blaming you
375: [03:00:00] <Pyromanik> :<
376: [03:00:00] <Pyromanik> blog module
377: [03:00:00] <Pyromanik> BlogTree::BlogEntries()
378: [03:00:00] <Pyromanik> err, BlogTree_Controller::BlogEntries()
379: [03:02:00] <Pyromanik> that's some really messed up stuff :<
380: [03:07:00] * MichaelinWelling quit (Quit: MichaelinWelling)
381: [03:08:00] <StuartKent> Thanks guys, see you later :)
382: [03:11:00] * howardgrigg has joined #silverstripe
383: [03:14:00] <FrozenFire> Maybe locale
384: [03:14:00] <FrozenFire> No idea.
385: [03:14:00] <FrozenFire> Pyromanik, That's truly weird.
386: [03:15:00] <Pyromanik> FrozenFire: but I'm in the same locale
387: [03:15:00] <Pyromanik> or does it rely on some kind of header input?
388: [03:15:00] <Pyromanik> because firefox has noscript running
389: [03:15:00] * mirrors quit (Quit: Page closed)
390: [03:15:00] <Pyromanik> might be blocking "where are you" queries
391: [03:15:00] <Pyromanik> just different browsers
392: [03:15:00] * StuartKent quit (Ping timeout: 245 seconds)
393: [03:16:00] <Pyromanik> but I sincerely doubt it
394: [03:22:00] <FrozenFire> No actual idea
395: [03:23:00] * MichaelinWelling has joined #silverstripe
396: [03:34:00] <irogue> is a tunnel-maker
397: [03:34:00] <irogue> [14:53] <StuartKent> looks like a jet engine, probably to power some form of evil lair
398: [03:36:00] <irogue> for joining two auckland motorways with a 5km tunnel
399: [03:40:00] * novaweb has joined #silverstripe
400: [03:42:00] * joelpittet has joined #silverstripe
401: [03:48:00] <spronk> argh
402: [03:48:00] * liam__ quit (Quit: liam__)
403: [03:48:00] <spronk> this bloody phonix algorithm
404: [03:48:00] <simon_w> Bah, bloody firefox D:
405: [03:49:00] * liam__ has joined #silverstripe
406: [03:50:00] * DigNZ quit (Quit: DigNZ)
407: [03:51:00] <simon_w> now it doesn't
408: [03:51:00] <simon_w> So, <FF15, frames["frame_name"] would get the iframe with name="frame_name"
409: [03:51:00] <simon_w> RAGE D: D:
410: [03:52:00] <ss23> lol
411: [03:52:00] <simon_w> (every other browser we support has this)
412: [03:58:00] * willr quit (Quit: willr)
413: [03:59:00] * howardgrigg quit (Remote host closed the connection)
414: [03:59:00] <simon_w> Woo, nasty fallback
415: [04:02:00] * nickmolhoek quit (Quit: nickmolhoek)
416: [04:15:00] * Pyromanik quit (Quit: Pyromanik)
417: [04:15:00] <Pyromanik> irogue is a tunnel-maker <-- YUS, BINGO!
418: [04:30:00] * liam__ quit (Quit: liam__)
419: [04:30:00] * VinnieD has joined #silverstripe
420: [04:31:00] <VinnieD> Question: Using 3.0.5, has anyone else had problems creating new pagetypes or making changes to them? I'm getting a white screen everytime I /dev/build
421: [04:33:00] <irogue> firstly, make sure you aren't putting ?> at the end of your files :)
422: [04:35:00] * SightUnseen has joined #silverstripe
423: [04:37:00] <VinnieD> It's not just one site.. wondering if something changed in the environment on my host
424: [04:37:00] <VinnieD> No ?> ... it's strange. I've been working with Silverstripe for probably 3 years now, and I've never had this issue
425: [04:54:00] * VinnieD quit (Ping timeout: 245 seconds)
426: [05:00:00] * novaweb quit (Quit: novaweb)
427: [05:11:00] * SightUnseen has left #silverstripe
428: [05:15:00] * MichaelinWelling quit (Quit: MichaelinWelling)
429: [05:22:00] * liam_ has joined #silverstripe
430: [05:23:00] * liam_ is now known as Guest85229
431: [05:23:00] * Guest85229 has left #silverstripe
432: [05:24:00] * guci0 has joined #silverstripe
433: [05:24:00] <guci0> Hello All!
434: [05:36:00] * Jakx has joined #silverstripe
435: [05:36:00] <Jakx> yo
436: [05:39:00] <Jakx> what method do I use to capture the cms field data on save?
437: [06:10:00] * MichaelinWelling has joined #silverstripe
438: [06:10:00] * MichaelinWelling quit (Client Quit)
439: [06:42:00] <guci0> $this?
440: [06:54:00] * LoveDuckie has joined #silverstripe
441: [07:06:00] * aznain quit (Ping timeout: 245 seconds)
442: [07:08:00] * Shrike_Finland quit (Quit: Leaving.)
443: [07:10:00] * DrCuriosity quit (Ping timeout: 252 seconds)
444: [07:15:00] * howardgrigg has joined #silverstripe
445: [07:18:00] * travis-ci has joined #silverstripe
446: [07:18:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/64888c07b7c5...693a92f9c95c
447: [07:18:00] * travis-ci has left #silverstripe
448: [07:18:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5276650
449: [07:18:00] <travis-ci> [travis-ci] silverstripe/sapphire#1561 (3.0 - 693a92f : Will Rossiter): The build passed.
450: [07:21:00] <Jakx> This is in the DataObject's cmsFields btw
451: [07:21:00] <Jakx> hmm, why does gridfield still have a dropdown for the $has_one relationship with a page, when I'm already using the RelationEditor config? I would assume it should assign the page by default?
452: [07:26:00] * guci0 quit (Ping timeout: 245 seconds)
453: [07:41:00] * t|m quit (Quit: Ex-Chat)
454: [07:42:00] * ARNHOE has joined #silverstripe
455: [07:43:00] <Jakx> I see, it automatically overwrites any $has_one relationship that is of class "Page"
456: [07:43:00] <Jakx> so in my case, it overwrote a $has_one "LinkTo" => "Page" relationship I had added
457: [07:44:00] <Jakx> so I moved that to a $db... "LinkToID" => "Int" field and setup a LinkTo() method that returns the Page by ID, before adding a $has_one... "Page" => "Page"
458: [07:44:00] * ferge has joined #silverstripe
459: [07:44:00] <Jakx> for anyone searching this chat log...
460: [07:47:00] * ferge1 has joined #silverstripe
461: [07:48:00] * ferge1 quit (Client Quit)
462: [07:51:00] <simon_w|air> Jakx, it overrides the reverse relation
463: [07:51:00] * ferge quit (Ping timeout: 272 seconds)
464: [07:56:00] * g4b0 has joined #silverstripe
465: [08:02:00] * Jakx quit (Read error: Connection reset by peer)
466: [08:03:00] <Jakx> simon_w|air, how so?
467: [08:03:00] * Jakx has joined #silverstripe
468: [08:05:00] <simon_w|air> That's what happens when you add something to a HasManyList
469: [08:06:00] <simon_w|air> It just changes the has_one on the object being added that the has_many matches
470: [08:07:00] <Jakx> ty
471: [08:07:00] * ARNHOE_ has joined #silverstripe
472: [08:07:00] <Jakx> That's a good way of describing it
473: [08:10:00] * Liquide quit (Ping timeout: 252 seconds)
474: [08:10:00] * ARNHOE quit (Ping timeout: 245 seconds)
475: [08:12:00] * hubertusanton has joined #silverstripe
476: [08:16:00] * Friksel has joined #silverstripe
477: [08:27:00] * howardgrigg quit (Remote host closed the connection)
478: [08:37:00] <g4b0> I've got a question about versioning
479: [08:37:00] <g4b0> hi all
480: [08:38:00] * Jakx has left #silverstripe
481: [08:38:00] <g4b0> Versioned.php
482: [08:38:00] <g4b0> in SS 3.1.0-beta2
483: [08:39:00] <g4b0> when I edit a page and I click "Save"
484: [08:39:00] <g4b0> it create a new record in SiteTree_versions
485: [08:40:00] <g4b0> and SiteTree.version > SiteTree_Live.version
486: [08:40:00] <g4b0> it update the SiteTree record
487: [08:41:00] <g4b0> when I click "Publish" then SiteTree.version == SiteTree_Live.version
488: [08:42:00] <g4b0> so Page->stagesDiffer('Stage', 'Live') now return false
489: [08:43:00] <g4b0> sometimes, but not always, if I click directly "Publish"
490: [08:44:00] <g4b0> and Page->stagesDiffer('Stage', 'Live') return false again
491: [08:44:00] <g4b0> I have SiteTree.version < SiteTree_Live.version
492: [08:45:00] <g4b0> How can I check if a page is published?
493: [08:49:00] * guci0 has joined #silverstripe
494: [09:00:00] * lx-berlin has joined #silverstripe
495: [09:11:00] * popeshoe has joined #silverstripe
496: [09:21:00] <simon_w|air> In what way?
497: [09:23:00] * kinglozzer has joined #silverstripe
498: [09:23:00] <lx-berlin> simon_w|air: fyi : running /dev with a ss3.1 beta 2 install from github worked without problems. so it was just the zip version that showed a blank screen
499: [09:30:00] * ARNHOE has joined #silverstripe
500: [09:33:00] <g4b0> simon_w: How can I check if a page is published during getStatusFlags?
501: [09:33:00] * ARNHOE_ quit (Ping timeout: 245 seconds)
502: [09:34:00] <simon_w|air> g4b0, so you mean no difference between stage and live? Or exists in live?
503: [09:35:00] <g4b0> I'm working on a module
504: [09:35:00] <g4b0> that flags SiteTree entries
505: [09:35:00] <g4b0> I mean that live version is the newst one
506: [09:35:00] <g4b0> in different color
507: [09:36:00] <g4b0> based on their status:
508: [09:36:00] <g4b0> or draft with a published old version
509: [09:36:00] <g4b0> sorry
510: [09:36:00] <g4b0> published
511: [09:36:00] <g4b0> or just draft
512: [09:36:00] <g4b0> draf without a published version
513: [09:39:00] * feejin has joined #silverstripe
514: [09:39:00] <simon_w|air> g4b0, so you've got the object from Stage?
515: [09:40:00] <simon_w|air> But compare Versioned::get_versionnumber_by_stage('SiteTree', 'Stage', $page->ID) with Versioned::get_versionnumber_by_stage('SiteTree', 'Live', $page->ID)
516: [09:40:00] <feejin> Morning all. Can anyone tell me how best to override default security messages in 3.0.x? e.g. the password reset email confirmation.
517: [09:41:00] <simon_w|air> Not sure how deleted pages are handled, so you'll want to check that too
518: [09:41:00] <simon_w|air> feejin, in what way?
519: [09:41:00] <g4b0> simon_w: the problem is that for large SiteTree it results in a lot of query
520: [09:42:00] <g4b0> I was hoping to check some PageProprieties
521: [09:42:00] <feejin> Well, my client wants it to say something different.
522: [09:42:00] <g4b0> actually my code is the following:
523: [09:42:00] <g4b0> http://pastebin.com/qhHEnCUR
524: [09:42:00] <feejin> simon_wlair the default message is "Thank you! A reset link has been sent to 'bopb@bob.com', provided an account exists for this email address." I want this to say something different.
525: [09:43:00] <g4b0> then I work with CSS/Javascript
526: [09:43:00] <feejin> I've solved it like this for now??? created zlang/lang/gb_EN.yml and changed it in there
527: [09:43:00] <g4b0> it just add some CSS class
528: [09:43:00] <feejin> stuck a _config.php in zlang, now it picks it up
529: [09:44:00] * plpionu has joined #silverstripe
530: [09:44:00] <feejin> is that right?
531: [09:44:00] <simon_w|air> g4b0, call Versioned::prepopulate_versionnumber_cache('SiteTree', 'Stage'); and Versioned::prepopulate_versionnumber_cache('SiteTree', 'Live'); once and the get_versionnumber_by_stage() suddenly doesn't use a single query
532: [09:44:00] <g4b0> the problem when the already published page is published again
533: [09:45:00] <g4b0> I will have a try
534: [09:45:00] <g4b0> thanks simonn_w
535: [09:45:00] <simon_w|air> feejin, pretty much
536: [09:45:00] <plpionu> hi guys
537: [09:46:00] <plpionu> parse *
538: [09:46:00] <g4b0> just one question: where do I have to call the prepopulate function?
539: [09:46:00] <plpionu> i have a weird issue, when i wanna add a new page in the cms or just save one, i have a javascript paprse error, anyone knows what cause that ?
540: [09:47:00] <simon_w|air> static $prepop = true; if($prepop) { Versioned::prepopulate_versionnumber_cache('SiteTree', 'Stage'); Versioned::prepopulate_versionnumber_cache('SiteTree', 'Live'); $prepop = false; } //your code
541: [09:47:00] <simon_w|air> g4b0, if you stick it in your update flags, using something like:
542: [09:48:00] <simon_w|air> plpionu, sounds like you've got some class or config files that are outputting whitespace
543: [09:48:00] <plpionu> in the classname you mean simon ?
544: [09:48:00] <g4b0> Thanks a lot
545: [09:48:00] <g4b0> nice idea!
546: [09:49:00] <simon_w|air> plpionu, no, in the class file
547: [09:49:00] <simon_w|air> Usually before the <?php, or due to having a ?>
548: [09:50:00] <plpionu> hum ok there is a way to find it quickly ?
549: [09:53:00] <simon_w|air> Not really. Just start with _config.php, then Page.php, then your other page types, then your other PHP files
550: [09:54:00] <plpionu> ok ^^ thx dude
551: [09:56:00] * ARNHOE quit (Remote host closed the connection)
552: [10:02:00] * ARNHOE has joined #silverstripe
553: [10:10:00] * zfmf has joined #silverstripe
554: [10:11:00] * hubertusanton quit (Quit: hubertusanton)
555: [10:13:00] <plpionu> after test with firebug i have this error when i try to save or add a new page : "NetworkError: 404 Not Found
556: [10:13:00] <plpionu> https://anesloop.org/v4.1r2/themes/loop3r2/css/editor.css ( but i don't have a file call editor.css in this place )
557: [10:23:00] * Pyromanik has joined #silverstripe
558: [10:28:00] * Zauberfisch quit (Ping timeout: 256 seconds)
559: [10:31:00] * lx-berlin quit (Read error: Connection reset by peer)
560: [10:31:00] * lx-berlin has joined #silverstripe
561: [10:32:00] * ARNHOE quit (Remote host closed the connection)
562: [10:36:00] * lx-berlin quit (Read error: Connection reset by peer)
563: [10:37:00] * lx-berlin has joined #silverstripe
564: [10:41:00] <lx-berlin> is anyone using TranslatableDataObject from UncleCheese ?
565: [10:41:00] * Zauberfisch has joined #silverstripe
566: [10:42:00] <Pyromanik> probably because TranslatableDataObject isn't an Extension.
567: [10:42:00] <lx-berlin> i get "Fatal error: TranslatableDataObject cannot be applied to TeamMember without being a DataExtension"
568: [10:43:00] <lx-berlin> class TranslatableDataObject extends Extension {
569: [10:47:00] <Pyromanik> yeah, but not dataextension
570: [10:47:00] <Pyromanik> has to be dataextension for dataobjects
571: [10:48:00] * ARNHOE has joined #silverstripe
572: [10:51:00] <lx-berlin> awesome ! I changed it to ... extends DataExtension , and now /dev/build works. Thanks Pyromanik !!
573: [10:53:00] * hubertusanton has joined #silverstripe
574: [10:53:00] <Pyromanik> you're welcome
575: [11:07:00] * DrCuriosity has joined #silverstripe
576: [11:07:00] * priithansen has joined #silverstripe
577: [11:16:00] * simon__w|air has joined #silverstripe
578: [11:16:00] * simon_w|air quit (Read error: Connection reset by peer)
579: [11:23:00] * SightUnseen has left #silverstripe
580: [11:23:00] * SightUnseen has joined #silverstripe
581: [11:26:00] * SightUnseen has joined #silverstripe
582: [11:27:00] * SightUnseen has left #silverstripe
583: [11:44:00] <priithansen> ajshort: any tips on how to get the grid field to show header title when using GridFieldEditableColumns->setDisplayFields with function
584: [11:55:00] * DrCuriosity quit (Ping timeout: 252 seconds)
585: [11:55:00] <feejin> The showcase hasn't updated for a while. Specifically it doesn't have the new sites I submitted. Is it on hold?
586: [12:01:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#258 (post-2.4 - d2b4ee0 : Ingo Schommer): The build was fixed.
587: [12:01:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/4b650df61889...d2b4ee0380e2
588: [12:01:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5281236
589: [12:01:00] * travis-ci has left #silverstripe
590: [12:01:00] * travis-ci has joined #silverstripe
591: [12:10:00] * SightUnseen has joined #silverstripe
592: [12:11:00] * ajshort quit (Quit: Leaving)
593: [12:13:00] * Colin[pi] quit (Ping timeout: 276 seconds)
594: [12:15:00] * ss23 quit (Ping timeout: 276 seconds)
595: [12:16:00] * waveydave has joined #silverstripe
596: [12:18:00] <waveydave> o hai. Trying to add tab to FieldList using $fields->findOrMakeTab('Billing'); but getting error: [User Error] FieldList::addFieldToTab() Tried to add a tab to object 'FieldList' - 'Billing' didn't exist.
597: [12:18:00] * SightUnseen has left #silverstripe
598: [12:18:00] * Kapdap quit (Ping timeout: 256 seconds)
599: [12:19:00] <waveydave> Have I misunderstood the purpose of this? Is there another way to group sets of fields in a form on frontend?
600: [12:20:00] <waveydave> [User Error] FieldList::addFieldToTab() Tried to add a tab to object 'FieldList' - 'Root' didn't exist.
601: [12:20:00] <kinglozzer> waveydave: Try $fields->findOrMakeTab('Root.Billing');
602: [12:22:00] <kinglozzer> Hmm not sure then
603: [12:23:00] * Shrike_Finland has joined #silverstripe
604: [12:24:00] <waveydave> Oh well. Thanks for trying. :)
605: [12:26:00] <kinglozzer> waveydave: Looking at how the built-in scaffolder does it, try this $fields->push(new TabSet("Root", $mainTab = new Tab("Main")));
606: [12:27:00] <kinglozzer> My guess anyway :)
607: [12:27:00] <kinglozzer> I think it's because ->findOrMakeTab() is expecting a TabSet, which is created for you in the CMS but not on the front-end
608: [12:34:00] * kinglozz_ has joined #silverstripe
609: [12:35:00] * Kapdap has joined #silverstripe
610: [12:37:00] * kinglozzer quit (Ping timeout: 245 seconds)
611: [12:43:00] * Kapdap_ has joined #silverstripe
612: [12:44:00] * Kapdap quit (Remote host closed the connection)
613: [12:45:00] * ss23 has joined #silverstripe
614: [12:53:00] * MobileFish has joined #silverstripe
615: [12:54:00] <Pyromanik> waveydave, you need to make a TabSet first
616: [12:54:00] * Kapdap_ quit (Ping timeout: 276 seconds)
617: [12:54:00] * ss23 quit (Ping timeout: 276 seconds)
618: [12:55:00] <Pyromanik> new TabSet('Root')
619: [12:55:00] * DesignerX has joined #silverstripe
620: [12:55:00] <Pyromanik> bed time, night
621: [12:55:00] <Pyromanik> to add Tabs to.
622: [12:55:00] * ss23 has joined #silverstripe
623: [12:55:00] <Pyromanik> then addFieldToTab('Root.TabName')
624: [12:56:00] * Pyromanik quit (Quit: Want to be different? Try HydraIRC -> http://www.hydrairc.com <-)
625: [12:57:00] * DesignerX quit (Client Quit)
626: [12:57:00] * DesignerX has joined #silverstripe
627: [13:00:00] * ss23 quit (Ping timeout: 256 seconds)
628: [13:05:00] * MobileFish quit (Read error: Connection reset by peer)
629: [13:05:00] * Zauberfisch|mobi has joined #silverstripe
630: [13:06:00] * Zauberfisch|mobi quit (Read error: Connection reset by peer)
631: [13:07:00] * Zauberfisch|mob has joined #silverstripe
632: [13:08:00] * UndefinedOffset has joined #silverstripe
633: [13:11:00] * kinglozz_ is now known as kinglozzer
634: [13:15:00] <waveydave> OK, I'll try that. Thanks kinglozzer, Pyromanik!
635: [13:17:00] <plpionu> i'm still having trouble with creation or saving of a page in the cms, still javascript parse error, anyone has an idea how to fix that ?
636: [13:18:00] * lx-berlin has left #silverstripe
637: [13:19:00] <feejin> plpionu reinstall framework / cms?
638: [13:20:00] <Zauberfisch|mob> ping
639: [13:20:00] <plpionu> when i'm in the cms there are a lot of news pages grey and orange ( hidden and new ) called either "Page not found" or "NewSomething" or "serverError"
640: [13:21:00] * Zauberfisch is now known as Zauberfisch|idle
641: [13:21:00] <plpionu> feejin : i can't xD
642: [13:21:00] <Zauberfisch> pong Zauberfisch|mob
643: [13:21:00] <Zauberfisch> Zauberfisch
644: [13:21:00] <Zauberfisch> test
645: [13:21:00] * Zauberfisch|mob is now known as Zauberfisch
646: [13:22:00] <feejin> Last time I had that error, I was referencing a page type that didn't exist. But I've no idea if that's what your problem is.
647: [13:23:00] * Zauberfisch has joined #silverstripe
648: [13:23:00] * Zauberfisch quit (Quit: Zauberfisch)
649: [13:24:00] <Zauberfisch|idle> Zauberfisch
650: [13:24:00] <plpionu> feejin : i think not
651: [13:24:00] * lx-berlin has joined #silverstripe
652: [13:29:00] * Zauberfisch has joined #silverstripe
653: [13:29:00] * Zauberfisch quit (Remote host closed the connection)
654: [13:33:00] * ubuntu has joined #silverstripe
655: [13:33:00] * ubuntu is now known as Guest46770
656: [13:34:00] * irogue quit (Ping timeout: 260 seconds)
657: [13:38:00] <DesignerX> hi guys, if you were to build a smartphone friendly site, do you build the "break points" based on screen size or do you serv a differnt CSS files depending on the device type (which is detected by the browser)
658: [13:39:00] <Zauberfisch> DesignerX I'd do it with width breakpoints
659: [13:40:00] <Zauberfisch> browser sniffing is bad
660: [13:41:00] <DesignerX> Zauberfisch: kk, & I was thinking to provide 3 break points, for smarthphone, small screens(laptop) & widescreen (desctop or bigger !) what do you think ?
661: [13:41:00] <Zauberfisch> depends on your deisgn
662: [13:42:00] <Zauberfisch> on others maybe 5
663: [13:42:00] <Zauberfisch> I prefer to have as many breakpoints as it takes to have the design work on any possible size
664: [13:42:00] <Zauberfisch> on some designs that might mean 3 breakpoints
665: [13:43:00] <DesignerX> yeh, This is my 1st mobile site from scrach for a friend of mine , just wanan get everything right so I can use this design later on
666: [13:43:00] <Zauberfisch> you should also consider doing mobile first
667: [13:43:00] <Zauberfisch> at least for the way I code, mobile first is the most effective approach
668: [13:43:00] <feejin> definitely mobile first. breakpoints should be based on design, not device.
669: [13:44:00] <feejin> as smartphone resolutions vary way too much to just go 320, 480, 960
670: [13:44:00] <DesignerX> I guess you are right, mobile 1st as it will be the "simpler" & more dunamic design then set widths for other screen sizes
671: [13:45:00] <feejin> if you're feeling really fancy, do breakpoints in ems. then every measurement on the site in ems too. then your breakpoints take font sizing into account.
672: [13:45:00] <Zauberfisch> last project my points: 480px and up, 780px and up, 960px and up, 1100px and up
673: [13:45:00] <DesignerX> I plan to use px then over ride with rem , to support IE
674: [13:45:00] <DesignerX> em or rem ?
675: [13:45:00] <DesignerX> more dynamic design *
676: [13:46:00] <Zauberfisch> I also read that em/rem is pretty fancy, but I hadn't have time to read into it, therefore I don't feel secure using or recommending them
677: [13:46:00] <feejin> Em. I'm yet to try it, but was reading about it in the Smashing Mag mobile book which is very good.
678: [13:47:00] <DesignerX> yeh, I use it now & it works fine with IE 9, older browser will use the PX if they dont support rem
679: [13:48:00] <feejin> Zauberfisch you pretty much calculate ems from pixel values based on the base size. You end up with nice figures like 3.437289643284689213em. But then everything scales from the base font size.
680: [13:48:00] <feejin> Though when CMS is involved it can be really tricky.
681: [13:49:00] <feejin> I think it's possibly more work than it's worth, the only sites I've seen doing it aren't heavy on the graphics, which is a bit like cheating.
682: [13:52:00] <DesignerX> feejin: when using rem or em , do you set the base font size or you rely on the browser defaults >
683: [13:53:00] <feejin> I usually do 62.5% so that on "normal" settings 1em = 10px.
684: [13:54:00] * EPIK quit (Ping timeout: 245 seconds)
685: [13:55:00] <DesignerX> feejin: do you think having a set font size then providing a way for the user to select differnt font size on the website a good solution too ?
686: [13:55:00] <feejin> Nopenopenopenopenope!
687: [13:56:00] <feejin> The trouble with those stupid A A A text size things as that if you only change the text size, it easily breaks the layout
688: [13:56:00] <DesignerX> really , that bad :D
689: [13:56:00] <feejin> (unless you've gone all out and designed everything with ems)
690: [13:57:00] <feejin> By default, browsers zoom the whole page these days. Which is much more useful. If you really need something like that, I'd put a link to a page that explained where zoom options are in popular browsers.
691: [13:58:00] <DesignerX> mm, I use em/rem for fint size & padding , %% for div width with "box-sizing: border-box;"
692: [13:58:00] <DesignerX> so all padding is calculated as part of the width
693: [14:00:00] <DesignerX> font changes will only effect the padding & font size , & the layout will just adjust as I use %% , .. hope I am doing this right .
694: [14:05:00] <feejin> that all sounds right. what do you do about IE when it comes to border-box?
695: [14:06:00] <DesignerX> IE * & ( support it (at least tested it in IE9)
696: [14:06:00] <DesignerX> IE 8 & 9
697: [14:08:00] <DesignerX> For most of my projects they dont pay enough to worry about older browser ( small business websites ) , but when I need it I can create a custom CSS file to override the current one & provide fixed sizes (best solution they can dream off )
698: [14:11:00] <Zauberfisch> or actually, just a question if you guys know a good polyfill
699: [14:11:00] <Zauberfisch> I also have a best practice question:
700: [14:12:00] <Zauberfisch> I don't mind if its a javascript polyfill
701: [14:12:00] <Zauberfisch> css3 transitions
702: [14:12:00] <feejin> you're stuck with javascript AFAIK
703: [14:12:00] <Zauberfisch> I want to write css3 transitions, and have a polyfill for IE9 that parses the CSS and does some magic to make animations
704: [14:13:00] <feejin> http://www.useragentman.com/blog/csssandpaper-a-css3-javascript-library/
705: [14:13:00] <Zauberfisch> but it should be one that reads the css, i don't want to write extra JS for animations that I have already written in CSS
706: [14:13:00] <feejin> I've not used that. Just found it.
707: [14:13:00] <Zauberfisch> feejin found that via google today, but it doesn't look like it supports transitions
708: [14:15:00] <DesignerX> havnt workes with CSS3 transitions yet, still have alot of work & limited to wehats supported by IE 8-9 , no time to test other things :(
709: [14:15:00] <feejin> DesignerX we still get bitten by the ghost of IE7 now and again. Though when we spec responsive sites it's clear that full functionality is only for current browsers.
710: [14:15:00] <Zauberfisch> feejin DesignerX the company I work for just droped IE7, yay :P
711: [14:16:00] <DesignerX> nice :) < I run My own business so I drop what I want :D
712: [14:16:00] <Zauberfisch> and for IE8 we only guarantee functionality, no fancy stuff (eg: no box shadow, just a border)
713: [14:17:00] <Zauberfisch> DesignerX haha, lucky you
714: [14:21:00] <Zauberfisch> DesignerX reason?
715: [14:21:00] <DesignerX> Zauberfisch: feejin last question for today : should I set div { overflow;auto } by default for all divs ?
716: [14:21:00] <Zauberfisch> clear fix?
717: [14:22:00] <Zauberfisch> you do you just like ugly scroll bars all over the place? .P
718: [14:22:00] <DesignerX> yeh , most of my designs are "boxy" lolz
719: [14:22:00] <Zauberfisch> :P
720: [14:22:00] <DesignerX> all over places ?
721: [14:23:00] <DesignerX> oohh ! kk, just tested it , bad bad solution
722: [14:23:00] <feejin> http://css-tricks.com/snippets/css/clear-fix/
723: [14:24:00] <Zauberfisch> DesignerX so, yeah, the answer is: no
724: [14:24:00] * LoveDuckie quit (Ping timeout: 276 seconds)
725: [14:24:00] <Zauberfisch> DesignerX (:
726: [14:24:00] * Shrike_Finland quit (Quit: Leaving.)
727: [14:25:00] <DesignerX> I do that too, trying to develop a "best practice" pattern so I dont have to re-code my themes
728: [14:25:00] <Zauberfisch> I personaly don't use a clear fix at all
729: [14:25:00] <DesignerX> damn,, why cant a box be a box, & if you put more things in it make it expand :(
730: [14:25:00] <Zauberfisch> I just do <div class="clear"></div>
731: [14:25:00] <Zauberfisch> and in css I have: .clear { clear: both; }
732: [14:26:00] <Zauberfisch> DesignerX boxes do have that behaviour by default, the height changed depending on the content if its set to auto
733: [14:26:00] <DesignerX> but of the child elemnt has float left or right, then that messes up the parent
734: [14:26:00] <Zauberfisch> btw, in some cases I use overflow to clear the float
735: [14:26:00] <feejin> what if you need to contain floats? that clearfix link is good, the ".group" variation is what i use
736: [14:26:00] <Zauberfisch> feejin what do you mean with contain?
737: [14:27:00] <feejin> overflow: hidden is one option, the clearfix is another. there are very rare instances when you'll want overflow visible though, so I always use the fix.
738: [14:27:00] <feejin> <div class="container"><div style="float:left">Foo</div></div> <-- .container doesn't know how tall to be because it's contents are floated
739: [14:28:00] <Zauberfisch> fixed
740: [14:28:00] <Zauberfisch> <div class="container"><div style="float:left">Foo</div><div class=clear></div></div>
741: [14:28:00] <DesignerX> Zauberfisch: true, but I think that should be done in CSS .. btw I already use your method :D
742: [14:29:00] <Zauberfisch> and writing <div class=clear></div> isn't a problem either because I just write ".clear" and press TAB and my IDE creates a "<div class=clear></div>"
743: [14:29:00] <DesignerX> /* start commented backslash hack \*/
744: [14:29:00] <DesignerX> height: 0;
745: [14:29:00] <DesignerX> }
746: [14:29:00] <DesignerX> .clearfix { display: inline-block; }
747: [14:29:00] <DesignerX> .clearfix { display: block; }
748: [14:29:00] <DesignerX> ops.. wc !!
749: [14:29:00] <DesignerX> * html .clearfix { height: 1%; }
750: [14:29:00] <DesignerX> /* close commented backslash hack */
751: [14:29:00] <DesignerX> .clearfix:after {
752: [14:29:00] <DesignerX> visibility: hidden;
753: [14:29:00] <DesignerX> display: block;
754: [14:29:00] <DesignerX> font-size: 0;
755: [14:29:00] <DesignerX> content: " ";
756: [14:29:00] <DesignerX> clear: both;
757: [14:30:00] <Zauberfisch> the problem is, I am afraid that if I start using such fix hacks for every single issue I am no longer in control
758: [14:30:00] <Zauberfisch> feejin I have to admit, I never tried the clearfix, but from what I can tell the clearfix is a cool hack to do the job
759: [14:30:00] <DesignerX> btw, .container{ display:table ) will fix it, but should I use it ?
760: [14:31:00] <Zauberfisch> when I write HTML, I know how it will look, and if it doesn't look or behave in some way, I know why it does
761: [14:31:00] <Zauberfisch> one fix is no problem, but if several come together, there might be some hickups
762: [14:31:00] <Zauberfisch> *HTML/CSS
763: [14:32:00] <DesignerX> I was using a CSS framework but it I found a problem, I ended up setting widrh in the HTML no CSS like using .Width33 (33%) or Width50 (50%) whcih gave me less controll over the design in the future
764: [14:32:00] <Zauberfisch> and I have been doing this stuff since years, so I already gotten used to write my HTML/CSS in a way that it works (:
765: [14:34:00] <feejin> Zauberfisch If you assign class="group" to elements and something changes in future, you only need to change the CSS for .group
766: [14:42:00] <DesignerX> gn all, 1:40 am, gtg sleep
767: [14:46:00] * Kapdap has joined #silverstripe
768: [14:46:00] * ss23 has joined #silverstripe
769: [14:47:00] * DesignerX quit (Ping timeout: 245 seconds)
770: [14:56:00] * ss23 quit (Ping timeout: 245 seconds)
771: [14:57:00] * Kapdap quit (Ping timeout: 245 seconds)
772: [15:09:00] * onre has joined #silverstripe
773: [15:09:00] * onre is now known as Guest74504
774: [15:09:00] * onre quit (Ping timeout: 264 seconds)
775: [15:21:00] <hubertusanton> hi, i would like to get the url param ID OTHERID etc in SS3
776: [15:21:00] <hubertusanton> i need to use SS_HTTPRequest, but how is this done?
777: [15:22:00] <hubertusanton> this does not function anymore: $tagid = (int)Director::urlParam('ID');
778: [15:26:00] <hubertusanton> found it, srry for asking
779: [15:26:00] <hubertusanton> $tag_param = $urlparams['ID'];
780: [15:26:00] <hubertusanton> $urlparams = $this->getURLParams();
781: [15:32:00] <g4b0> I'm having some trouble validating an XHTML 1.0 strict site
782: [15:33:00] <g4b0> I found two problem:
783: [15:34:00] <g4b0> SilverStripe add a & at the end of the CSS path
784: [15:34:00] <g4b0> 2) Some records in db have <br/> tags with the closing /
785: [15:34:00] <g4b0> 1) <link rel="stylesheet" type="text/css" media="screen" href="/themes/abab/combinedfiles/all.css?m=1362563675&" />
786: [15:35:00] <g4b0> SilverStripe remove the ending /, resulting in <br/>
787: [15:36:00] <g4b0> How can I solve this?
788: [15:38:00] <g4b0> tell me Zauberfisch
789: [15:38:00] <Zauberfisch> g4b0 I have 2 questions
790: [15:39:00] <Zauberfisch> 1) why would you use XHTML when you can use html5?
791: [15:39:00] <Zauberfisch> 2) any paticular reason why it needs to be 100% XHTML strict valid?
792: [15:40:00] <g4b0> we are developing a site for an Italian public administration
793: [15:40:00] <g4b0> It's a bureaucratic problem
794: [15:41:00] <g4b0> and it's mandatory to deploy it as 100% XHTML strict compilant
795: [15:41:00] <g4b0> It's a [stupid] requirement
796: [15:42:00] <Zauberfisch> haha, poor you
797: [15:43:00] * Nivery has joined #silverstripe
798: [15:43:00] <feejin> That missing space in <br/> is going to cripple rendering ;)
799: [15:43:00] <Zauberfisch> <br> tags, hmmm, I guess you could add a onBeforeWrite to your dataobjects that repaces the incorrect br tags
800: [15:44:00] <Zauberfisch> is it? i thought <br/> is valid? (at least html5 valid, and therefore all browsers should accept it)
801: [15:44:00] <g4b0> feekin is right
802: [15:44:00] <g4b0> the db data is correct
803: [15:45:00] <Zauberfisch> wait, you are saying its right in the DB and gets compromised before output?
804: [15:45:00] <Zauberfisch> also, are you running ss2 or ss3?
805: [15:45:00] <g4b0> just a second
806: [15:45:00] <g4b0> yep
807: [15:45:00] <g4b0> SS 3.1.0-beta2
808: [15:45:00] <g4b0> I'll have a check...
809: [15:46:00] <Zauberfisch> ah, that's good
810: [15:46:00] <Zauberfisch> when you started with I need xhtml I started worrying you would ask us to help you with a ss2.0 or so :P
811: [15:47:00] <feejin> <br/> with no space gives a warning doesn't it? XHTML should have a space before the trailing slash. If it's the output, could you extend HTMLText to output them how you want?
812: [15:48:00] <g4b0> I can confirm that in DB I have <br/> and SS renders <br>
813: [15:49:00] <UndefinedOffset> g4b0 it is if you're using xhtml
814: [15:49:00] <g4b0> but the problem is that SS remove the slash rendering!!!
815: [15:49:00] <g4b0> feejin: I don't think that the space before / is mandatory
816: [15:50:00] <UndefinedOffset> <br> must self close in xhtml 1.0 strict or xhtml 1.1, html5 doesn't care eather way
817: [15:50:00] <g4b0> double check into the db
818: [15:50:00] <g4b0> with space :)
819: [15:50:00] <Zauberfisch> g4b0 hold on
820: [15:50:00] <UndefinedOffset> ya i've noticed ss3.x strips the slash as well regardless what is in the db
821: [15:50:00] <g4b0> I have <br />
822: [15:51:00] <g4b0> Any solution?
823: [15:51:00] <UndefinedOffset> we still code for xhtml here at webbuilders group unless html5 is needed
824: [15:51:00] <g4b0> :)
825: [15:51:00] <UndefinedOffset> ya i was just scrolling back :)
826: [15:51:00] <g4b0> i must use it :(
827: [15:51:00] <g4b0> UndefinedOffset: I'm using XHTML
828: [15:52:00] <kinglozzer> Entwine help: If I bind an onclick: to a button in the CMS, it prevents the button's default onclick event from firing as well. What do?
829: [15:52:00] <UndefinedOffset> i havent seen any :( I've tried screwing with tinymce's settings but like you said the db is fine its SilverStripe rendering thats causing it :(
830: [15:53:00] <hubertusanton> problems getting a many_many anyone did this before?
831: [15:53:00] <hubertusanton> $blogpageswithTag = BlogPage::get()->leftJoin("BlogPage_BlogPageTags", "BlogPage_BlogPageTags.BlogPageID = BlogPage.ID")->where('BlogPage_BlogPageTags.BlogPageTagID', $found_tag_id);
832: [15:53:00] * ARNHOE quit (Remote host closed the connection)
833: [15:53:00] <g4b0> yes, I think that it has to be configurable, isn't it?
834: [15:54:00] <hubertusanton> probably there is a much easier solution
835: [15:54:00] <hubertusanton> Unknown column 'BlogPage.ID' in 'on clause'
836: [15:54:00] <g4b0> UndefinedOffset: do you think we can open a ticket?
837: [15:55:00] <UndefinedOffset> g4b0 there maybe one i've seen it come up here before in the channel and the group
838: [15:56:00] <g4b0> I see...
839: [15:56:00] <UndefinedOffset> http://open.silverstripe.org/ticket/8297 << for example
840: [15:57:00] * ss23 has joined #silverstripe
841: [15:57:00] * ss23_ has joined #silverstripe
842: [15:57:00] * ss23_ quit (Client Quit)
843: [15:58:00] <g4b0> UndefinedOffset: did you see public function xhtml(SS_HTTPResponse $response)
844: [15:58:00] <g4b0> in framework/control/ContentNegotiator.php
845: [15:58:00] <UndefinedOffset> ya i was just looking at that
846: [15:58:00] * Kapdap has joined #silverstripe
847: [15:58:00] <g4b0> Zauberfisch: I'm waiting...
848: [15:59:00] <Zauberfisch> but I can't seem to find it right now
849: [15:59:00] <UndefinedOffset> Zauberfisch looks like ContentNegotiator maybe a starting point
850: [15:59:00] <Zauberfisch> g4b0 I have been told that there is a hook somewhere where you can parse over the whole html output before it gets sent
851: [16:00:00] <UndefinedOffset> looks like disabling it outright is the only way to keep xhtml compliency? :S
852: [16:00:00] <Zauberfisch> that is probably the worse case hack, but if you find no other way you could just regex or strreplace over the whole output
853: [16:02:00] <g4b0> I tried with ContentNegotiator::disable(); in _config.php
854: [16:02:00] <g4b0> same problem :(
855: [16:03:00] <UndefinedOffset> the plot thickens
856: [16:03:00] <UndefinedOffset> 0_o weird
857: [16:06:00] <UndefinedOffset> ya it looks like its not the only place that strips self closing, if i disable content negotiator and put a exit in the html method it doesn't exit
858: [16:06:00] * feejin quit (Remote host closed the connection)
859: [16:06:00] <UndefinedOffset> brb
860: [16:06:00] * UndefinedOffset quit (Quit: Leaving.)
861: [16:09:00] * UndefinedOffset has joined #silverstripe
862: [16:11:00] <UndefinedOffset> g4b0 actually looks like the content negotiator is disabled by default anyways alteast in my text case, and the class is snowing enabled=false by default
863: [16:12:00] <UndefinedOffset> too bad chillu isn't here, he may have some insights into the problem :)
864: [16:12:00] <UndefinedOffset> or alteast somewhere to look
865: [16:12:00] <g4b0> I was trying to use it, but the execution flow never passes through it
866: [16:12:00] <UndefinedOffset> mm
867: [16:12:00] <g4b0> yep
868: [16:14:00] <UndefinedOffset> forTemplate in HTMLText doesn't seem to be causing it, if I var_dump the value of the field they're still there
869: [16:15:00] <UndefinedOffset> kinglozzer i'm using 3.0 :)
870: [16:15:00] <kinglozzer> UndefinedOffset, g4b0: May be completely unrelated, but just in case - I had a load of notices caused by the new html5lib stuff included in 3.1: https://github.com/silverstripe/sapphire/commit/2335c074b33cbe69d35ed61aee725e2d437f169d - have you tried using 3.0.x?
871: [16:15:00] <g4b0> :)
872: [16:16:00] <UndefinedOffset> i prefer 3.0 stable for my primary dev
873: [16:16:00] <kinglozzer> Ah okay :)
874: [16:16:00] <g4b0> Controller::handleRequest does use ContentNegotiator::process
875: [16:18:00] <UndefinedOffset> of course i'm seeing that :) its in my template XD
876: [16:18:00] <UndefinedOffset> i wonder if its something SSViewer is doing? if I dump the templates using ?showtemplate=1 i do see the <br/> so its something past that point
877: [16:18:00] <UndefinedOffset> wait... nvm ignore me
878: [16:18:00] <g4b0> XD
879: [16:21:00] <g4b0> try commenting if(substr($content,0,5) == '<' . '?xml' ) {
880: [16:21:00] <g4b0> UndefinedOffset: I took a step forward
881: [16:22:00] <g4b0> and its else branch
882: [16:22:00] <g4b0> and add return $this->html($response);
883: [16:22:00] <g4b0> in ContentNegotiator::xhtml()
884: [16:27:00] <UndefinedOffset> so it seems to trigger xhtml compliency you need to have the <?xml version="1.0" encoding="UTF-8"?> line
885: [16:28:00] <UndefinedOffset> i suppose that makes sence to a degree... its unfortunate because that also makes silverstripe send the XHTML header which puts the browser into a strict dom, which breaks allot of javascript (recaptcha included)
886: [16:29:00] <g4b0> correct
887: [16:30:00] <g4b0> I think that <?xml version="1.0" encoding="UTF-8"?> it's not necessary
888: [16:30:00] <g4b0> because the format is already choosen by process function
889: [16:31:00] <UndefinedOffset> mm it looks at the accept headers unless its the w3c validator if i'm reading this right lol
890: [16:32:00] <g4b0> what a hack!
891: [16:32:00] <UndefinedOffset> ya it looks like for me line 122 calls $this->xhtml() but it inturn says no don't serve xhtml because the <?xml isn't present
892: [16:33:00] <g4b0> yep
893: [16:33:00] <g4b0> it looks $_SERVER['HTTP_ACCEPT']
894: [16:34:00] <g4b0> but I can't understend how it state that it's an xhtml :/
895: [16:34:00] <UndefinedOffset> hmm short of changing the core only thing i can think of is to some how force the response to only sent the text/html header which will prevent browsers like firefox from going into the strict dom mode
896: [16:36:00] <g4b0> I think that it would be easier to loog at the <!DOCTYPE, isn't it?
897: [16:36:00] <g4b0> look*
898: [16:37:00] * Friksel quit (Ping timeout: 245 seconds)
899: [16:38:00] <UndefinedOffset> whats really interesting is 2.4's contentnegotiator is almost the same... but doesn't have this issue comparing atm and trying to narrow down the change that caused this issue
900: [16:39:00] <g4b0> the problem is that the field in DB is correct, <br />
901: [16:39:00] <g4b0> but it's changed elsewhere
902: [16:40:00] <g4b0> and now we are trying to revert here in ContentNegotiator :D
903: [16:40:00] <UndefinedOffset> calling new things*
904: [16:40:00] <UndefinedOffset> maybe a bad idea :)
905: [16:40:00] <UndefinedOffset> but who knows it may work XD
906: [16:40:00] <UndefinedOffset> i'd be just worried the SS 3.0 core is calling it from somewhere else
907: [16:44:00] <g4b0> I hope chillu or some other gurus will read our discussion...
908: [16:44:00] * hubertusanton quit (Quit: hubertusanton)
909: [16:44:00] <g4b0> really strange
910: [16:46:00] <UndefinedOffset> technically 2.4 should still have the same issue because it also appears to call the html() instead of xhtml() if the <?xml line isn't present. But it doesn't seem to cause the issue which is odd
911: [16:48:00] <g4b0> because if there's a <br/> into the db
912: [16:48:00] * ss23 quit (Ping timeout: 276 seconds)
913: [16:48:00] <UndefinedOffset> mm, though in diffing the two there isn't much that's changed there
914: [16:48:00] <g4b0> It think that the 2.4 behaviour is still correct
915: [16:49:00] <g4b0> so, not passing into xhtml is ok
916: [16:49:00] <g4b0> it's just stripped elsewhere
917: [16:49:00] <UndefinedOffset> for ContentNegotiator anyways ;)
918: [16:50:00] * ss23 has joined #silverstripe
919: [16:50:00] <g4b0> SS 2.4 just print what there's into the DB
920: [16:50:00] <g4b0> sorry for my english
921: [16:50:00] <g4b0> SS 3.x doesn't
922: [16:51:00] <UndefinedOffset> well thats the thing... even 2.4 does pass into it, and it does call html() if you don't have <?xml, but for some reason the replaces for self closing tags don't seem to be happening
923: [16:51:00] <g4b0> it change <br /> into <br> somewhere
924: [16:51:00] <g4b0> before ContentNegotiator
925: [16:54:00] * ss23 quit (Ping timeout: 248 seconds)
926: [17:01:00] * ss23 has joined #silverstripe
927: [17:02:00] * kinglozzer quit (Quit: Leaving)
928: [17:08:00] * g4b0 quit (Quit: Sto andando via)
929: [17:17:00] <FrozenFire> Hrmm, tricky. Have an issue in 2.4 in a template.
930: [17:17:00] <FrozenFire> I have a DataObjectSet
931: [17:18:00] <FrozenFire> On that DataObjectSet, which contains a list of calendar days, I have a field which contains another DataObjectSet of days calculated which lead the display of a standard calendar.
932: [17:18:00] <FrozenFire> (Leading days)
933: [17:18:00] <FrozenFire> I need to verify that the field of leading days exists before I control it.
934: [17:18:00] <FrozenFire> But the templating system of 2.4 only supports one level of method chaining
935: [17:19:00] <FrozenFire> So I can't do <% if AvailabilityGrid.LeadingDays.exists %>
936: [17:19:00] <FrozenFire> Nor can I do <% control AvailabilityGrid %> <% if LeadingDays.exists %>
937: [17:19:00] <FrozenFire> Because AvailabilityGrid is a DataObjectSet
938: [17:19:00] <FrozenFire> Trick mofo.
939: [17:20:00] <ec8or> FrozenFire: can't you just move the function to the model?
940: [17:21:00] <FrozenFire> Not sure what you mean.
941: [17:21:00] <ec8or> if $this->LeadingDays()->Count() return true;l
942: [17:21:00] <FrozenFire> I need to check that it exists, because otherwise if the set is empty, it'll loop the template code I have in the control for the leading days once, regardless of whether there's any leading days.
943: [17:21:00] <ec8or> well just how you normally do, do the check on the model instead
944: [17:22:00] <FrozenFire> Ah, right.
945: [17:22:00] <FrozenFire> I have used it a lot. Just haven't used it much in a while.
946: [17:22:00] <ec8or> did you never use 2.4 much? ;)
947: [17:22:00] <ec8or> np
948: [17:22:00] <FrozenFire> That'll be the solution. Thanks.
949: [17:22:00] <ec8or> and then you can check for LeadingDaysExist or whatever in the template
950: [17:24:00] <FrozenFire> Aha... might not even be that problem, now that I look into the code I used to generate this...
951: [17:26:00] <ec8or> nice one :)
952: [17:26:00] <FrozenFire> $dayOfWeek = $startDate->Format("N"); $leadingDayCount = $dayOfWeek>1?$dayOfWeek-1:1;
953: [17:26:00] <FrozenFire> That's what I had
954: [17:26:00] <FrozenFire> $dayOfWeek = $startDate->Format("N"); $leadingDayCount = $dayOfWeek>1?$dayOfWeek-1:0;
955: [17:26:00] <FrozenFire> Heh. Logic is hard.
956: [17:26:00] <FrozenFire> That's what is right.
957: [17:45:00] <FrozenFire> Back to SS3 (thankfully). Is there a way to make a ConfirmedPasswordField optional as part of an "edit your shit" form?
958: [17:45:00] <FrozenFire> Saving that field into the member only if it's filled out
959: [17:49:00] <FrozenFire> Aha. ConfirmedPasswordField::canBeEmpty
960: [17:49:00] * waveydave has left #silverstripe
961: [17:54:00] <priithansen> what should I use to check if relation exists if($this->Hasonerelation == ??)
962: [17:56:00] <FrozenFire> If you want to verify the relation is *valid* (object exists), then you should do $this->HasOneRelation()->exists()
963: [17:56:00] <FrozenFire> That'll simply check if its has_one ID is set.
964: [17:56:00] <FrozenFire> You can do $this->HasOneRelationID
965: [17:56:00] <FrozenFire> It's a question of verification intensity.
966: [17:57:00] <FrozenFire> That hits the DB, though
967: [17:58:00] <priithansen> I want to add some stuff in onAfterWrite if a relationship exists
968: [17:58:00] <priithansen> had some trouble because of $this->HasOneRelationID returns a string 0
969: [17:58:00] <priithansen> so the last one is probably the right way to go
970: [17:58:00] <FrozenFire> Eh. I usually just check the ID for onAfterWrites
971: [17:59:00] <FrozenFire> If you do, then you would typically do if($myHasOne = $this->MyHasOne()) { ... }
972: [17:59:00] <FrozenFire> It's only if you plan on doing something with the relation that you should check the existence
973: [18:00:00] <FrozenFire> Or rather, if(($myHasOne = $this->MyHasOne()) && $myHasOne->exists()) { ... }
974: [18:00:00] <priithansen> indeed I plan to copy some stuff from the hasone relation so that seems about right
975: [18:01:00] <FrozenFire> Is there a reason for copying stuff off of the has_one?
976: [18:02:00] <FrozenFire> s/fields/relations/
977: [18:02:00] <FrozenFire> I reiterate. ;)
978: [18:02:00] <priithansen> and these are the ones i am after
979: [18:02:00] <FrozenFire> Why are you copying off of those fields in an onAfterWrite?
980: [18:02:00] <priithansen> the has_one itself has_many other items
981: [18:03:00] <FrozenFire> Caching data across multiple records just creates staleness problems.
982: [18:03:00] <priithansen> hm
983: [18:04:00] <FrozenFire> cravel sifting?
984: [18:04:00] <priithansen> :)
985: [18:04:00] <priithansen> and there are standards described with has_many sieves
986: [18:04:00] <priithansen> Its a system about cravel sifting
987: [18:05:00] <priithansen> and when the operator creates a new sifting report he selects the material and then the sieves defined for that material get copied over to the reports has_many so he can add the results for each sieve
988: [18:05:00] <FrozenFire> Alright
989: [18:06:00] <FrozenFire> Sounds perhaps like you need a many_many to the standards?
990: [18:07:00] <priithansen> like it is with invoices and items
991: [18:07:00] <priithansen> so if the operators add or change materials it won't change already made reports
992: [18:07:00] <priithansen> I want to avoid anything changing the reports
993: [18:07:00] <FrozenFire> Yeah
994: [18:08:00] <FrozenFire> I would perhaps suggest a many_many with an extraField to version
995: [18:08:00] <FrozenFire> I can dig that.
996: [18:08:00] <priithansen> This looked like the most foolproof way of making it sure
997: [18:08:00] <FrozenFire> That way your many_many can refer to a sieve at a specific version of itself
998: [18:08:00] <FrozenFire> And add Versioned to the sieves
999: [18:09:00] <FrozenFire> And your relational getter would get the specific versions of the sieves
1000: [18:09:00] <priithansen> That would indeed be beautiful but I am not that good with silverstripe to start wrestling with the versioned stuff :)
1001: [18:09:00] <FrozenFire> True permanence in a relational database is always hard.
1002: [18:10:00] <FrozenFire> Fair enough.
1003: [18:10:00] * Friksel has joined #silverstripe
1004: [18:11:00] <priithansen> so back to the thing $this->hasoneID < should be checked against what? because it returns a string '0' and if($this->hasoneID) won't work as expected right?
1005: [18:12:00] <FrozenFire> Casting '0' to bool will result in false
1006: [18:12:00] <FrozenFire> That being said, you can also do if(is_int($this->HasOneID) && $this->HasOneID > 0)
1007: [18:12:00] <FrozenFire> It's an implicit boolean cast
1008: [18:12:00] <FrozenFire> Which is what if($this->HasOneID) does
1009: [18:13:00] <FrozenFire> But, the implicit cast is sufficient for most all purposes.
1010: [18:13:00] <priithansen> so been over thinking it as usual
1011: [18:13:00] <priithansen> I think in one place i had != '0'
1012: [18:14:00] <FrozenFire> ;)
1013: [18:15:00] <priithansen> Thanks* even
1014: [18:15:00] <priithansen> Thank's for the chat FrozenFire. It's always good to have expert insights into things
1015: [18:15:00] * MichaelinWelling has joined #silverstripe
1016: [18:16:00] <FrozenFire> You're welcome
1017: [18:16:00] <FrozenFire> :D
1018: [18:29:00] * joelpittet quit (Ping timeout: 245 seconds)
1019: [18:29:00] * joelpitt_ has joined #silverstripe
1020: [18:33:00] * SightUnseen has left #silverstripe
1021: [18:33:00] * SightUnseen has joined #silverstripe
1022: [18:35:00] * Nivery has left #silverstripe
1023: [18:53:00] * zfmf has left #silverstripe
1024: [18:54:00] <FrozenFire> The docs for it are... beyond complicated
1025: [18:54:00] <FrozenFire> You know, half the reason I never use YAML for configuration is that I have no freaking clue how it's supposed to work.
1026: [19:03:00] <lx-berlin> can anyone help me, why in the module "TranslatableDataObject" from unclecheese, a Varchar(140) field is scaffolded with a HTMLEditorField ?
1027: [19:05:00] <lx-berlin> it seems $o = $this->owner->obj($field) is returning a HTMLText Object . Thats why $formField = $o->scaffoldFormField(); is returning a HTMLEditorField
1028: [19:07:00] <FrozenFire> Do you perhaps have some casting going on?
1029: [19:08:00] <lx-berlin> not that i know of :)
1030: [19:08:00] <FrozenFire> But yeah, I can imagine there'd be some... weirdness
1031: [19:08:00] <FrozenFire> Scaffolding is ugly
1032: [19:08:00] <lx-berlin> hmm
1033: [19:17:00] * gelignite has joined #silverstripe
1034: [19:23:00] * plpionu quit ()
1035: [19:24:00] * Shrike_Finland has joined #silverstripe
1036: [19:29:00] * EPIK has joined #silverstripe
1037: [19:30:00] * Friksel quit (Ping timeout: 245 seconds)
1038: [19:32:00] * guci0 quit (Ping timeout: 245 seconds)
1039: [19:39:00] * nickmolhoek quit (Remote host closed the connection)
1040: [19:39:00] * nickmolhoek has joined #silverstripe
1041: [19:40:00] * nickmolhoek has joined #silverstripe
1042: [19:43:00] * Guest46770 is now known as irogue
1043: [19:43:00] * Zauberfisch|idle quit (Ping timeout: 256 seconds)
1044: [19:44:00] * Zauberfisch quit (Ping timeout: 255 seconds)
1045: [19:45:00] * DigNZ has joined #silverstripe
1046: [19:46:00] * Pyromanik has joined #silverstripe
1047: [19:47:00] * Pyromaniik has joined #silverstripe
1048: [19:48:00] * DigNZ quit (Client Quit)
1049: [19:48:00] * Pyromaniik quit (Client Quit)
1050: [19:54:00] * Zauberfisch|idle has joined #silverstripe
1051: [19:54:00] * simon__w|air is now known as simon_w|air
1052: [19:55:00] * lx-berlin has left #silverstripe
1053: [19:57:00] * DigNZ has joined #silverstripe
1054: [19:58:00] * DigNZ quit (Client Quit)
1055: [20:01:00] * tankr has joined #silverstripe
1056: [20:03:00] * DigNZ has joined #silverstripe
1057: [20:10:00] * MichaelinWelling quit (Quit: MichaelinWelling)
1058: [20:15:00] * terryapodaca has joined #silverstripe
1059: [20:17:00] <terryapodaca> and I get this
1060: [20:17:00] <terryapodaca> trying to install 2.4.10 for a quick client
1061: [20:17:00] <terryapodaca> [Notice] Array to string conversionPOST /ss/install.phpLine??396??in??C:\xampp\htdocs\ss\sapphire\core\model\Database.php
1062: [20:18:00] <terryapodaca> 5.4.4
1063: [20:18:00] <UndefinedOffset> terryapodaca what version of php are they running on the server?
1064: [20:18:00] <UndefinedOffset> 2.4 works with <=5.3.x
1065: [20:19:00] <UndefinedOffset> take a peek at this http://www.silverstripe.org/installing-silverstripe/show/19456
1066: [20:19:00] * willr has joined #silverstripe
1067: [20:19:00] <UndefinedOffset> i think 5.2.x and 5.3.x
1068: [20:19:00] <UndefinedOffset> ya could be the issue :)
1069: [20:20:00] <UndefinedOffset> more specifically this patch commit https://github.com/silverstripe/sapphire/commit/4ff8cff262077e2ff1f32172cc471f829110834c
1070: [20:21:00] <UndefinedOffset> but 3.0 is best for php 5.4
1071: [20:21:00] <terryapodaca> well, they already have an install of 2.4
1072: [20:21:00] <UndefinedOffset> ah
1073: [20:21:00] <terryapodaca> and they are not wanting to pay for upgrading to 3.0
1074: [20:22:00] <UndefinedOffset> ya fair enough, we have that same challenge here now and then
1075: [20:22:00] <terryapodaca> I'll see if any of those patches help me out...seems like the actual site works
1076: [20:22:00] <UndefinedOffset> so you may be able to apply that patch... and hope things work
1077: [20:26:00] <FrozenFire> Heh. Good luck with 2.4 on 5.4
1078: [20:33:00] <irogue> http://i.imgur.com/a8fztVB.png
1079: [20:34:00] <FrozenFire> I wonder if anyone bothered to unzip it and check the size
1080: [20:34:00] <FrozenFire> Given that it's ZIP, probably a different compression ratio
1081: [20:35:00] * FrozenFire wishes the DateField wasn't such shit
1082: [20:36:00] <terryapodaca> sounds like i will not be able to do this without downgrading php
1083: [20:36:00] <simon_w> Zauberfisch*, having fun? :p
1084: [20:36:00] <terryapodaca> Fatal error: Call to a member function encryptWithUserSettings() on a non-object inC:\xampp\htdocs\ss\sapphire\security\Member.php??on line??392
1085: [20:36:00] <irogue> FrozenFire: yep. both exactly the same size unzipped
1086: [20:37:00] <irogue> the difference in size is only due to the longer folder structure for the one with (minimal) in the root folder name
1087: [20:37:00] <irogue> same CRC even
1088: [20:38:00] * Colin[pi] has joined #silverstripe
1089: [20:55:00] <Pyromanik> terryapodaca, if they already had 2.4 installed and php is 5.4 then the ss version MUST be 2.4.9
1090: [20:55:00] <Pyromanik> afaik it's the only one that works with 5.4
1091: [20:56:00] <Pyromanik> Colin[pi], I've not tried 2.4.9, I've just heard that it works.
1092: [20:56:00] <Colin[pi]> that's good to know, I thought all of the 2.4 branch had problems with PHP 5.4
1093: [20:57:00] <Pyromanik> just switch it to 5.3
1094: [20:57:00] <Pyromanik> oh that's lucky then
1095: [20:57:00] <terryapodaca> it's on a shared server, but we can choose what version of PHP to use with individual sites
1096: [20:57:00] <Pyromanik> I'd have thought that 2.4.10 would work also
1097: [20:57:00] <Colin[pi]> ah k
1098: [20:57:00] * guci0 has joined #silverstripe
1099: [20:57:00] <terryapodaca> I'm about to test it
1100: [20:58:00] <Pyromanik> yes.
1101: [20:58:00] <terryapodaca> i have a feeling they changed their PHP version after we had the site built
1102: [20:58:00] <Pyromanik> no problem anymore.
1103: [20:58:00] <Pyromanik> I'd say so.
1104: [20:58:00] <Pyromanik> 2.4 runs fine on 5.3
1105: [20:58:00] <terryapodaca> weird that the site works just fine
1106: [20:58:00] <Pyromanik> here's a treat for you fellows this morning
1107: [20:58:00] <Pyromanik> client: "That map we have where you click a region and then it gives you events for that region..."
1108: [20:59:00] <Pyromanik> WHAT, BECAUSE THEY DON'T KNOW WHERE THEY LIVE!?
1109: [20:59:00] <Pyromanik> "Can we make it so that we can have two regions selected at once, as some people get confused"
1110: [20:59:00] <Colin[pi]> wat
1111: [21:00:00] <Colin[pi]> it amazes me how some people manage to stay alive
1112: [21:00:00] <spronk> :|
1113: [21:00:00] <Pyromanik> I'm often lifting in more than one place.
1114: [21:00:00] <Pyromanik> LIFT BITCH LIFT
1115: [21:01:00] <Pyromanik> it's just...
1116: [21:01:00] <Pyromanik> "we find people don't know which region they're in"
1117: [21:01:00] <Pyromanik> "so we want to show events from two regions at once"
1118: [21:01:00] <Pyromanik> or more
1119: [21:01:00] * bz_ has joined #silverstripe
1120: [21:01:00] <Pyromanik> wat -.-
1121: [21:01:00] <Pyromanik> I mean the request in itself isn't all that bad
1122: [21:01:00] <Pyromanik> well mostly the way they justified it.
1123: [21:02:00] <Colin[pi]> REGION EARTH
1124: [21:02:00] <Pyromanik> am I?
1125: [21:02:00] <Pyromanik> wut*
1126: [21:02:00] <Pyromanik> hot chocolate time
1127: [21:02:00] <Pyromanik> Colin[pi], ooooh, I dunno...
1128: [21:03:00] <Pyromanik> maybe I'm actually a SPACE CADET!
1129: [21:03:00] <Colin[pi]> hehe
1130: [21:04:00] <priithansen> sounds like people who do know where they live are about the get confused over what region they have selected and what events are in which selected region
1131: [21:08:00] <bz_> I've got a question about using subsites in conjuncion with multiple SSL certificates (one for each domainname). Is that even possible on one domain?
1132: [21:10:00] * ARNHOE has joined #silverstripe
1133: [21:12:00] * remi_ quit (Client Quit)
1134: [21:12:00] * remi_ has joined #silverstripe
1135: [21:13:00] * StuartKent has joined #silverstripe
1136: [21:13:00] * Gerry2 has joined #silverstripe
1137: [21:16:00] <terryapodaca> i'll have to switch php versions
1138: [21:16:00] <terryapodaca> just an FYI 2.4.9 doesn't work on php 5.4 either
1139: [21:16:00] * Gerry_ has joined #silverstripe
1140: [21:17:00] * Gerry2 has left #silverstripe
1141: [21:19:00] * Gerry_ has joined #silverstripe
1142: [21:19:00] <willr> terryapodaca use post-2.4
1143: [21:19:00] * Gerry_ quit (Client Quit)
1144: [21:20:00] <priithansen> $filtered = $this->Category()->Items() so if the category-items relationship has many_many_extraFields how can I filter based on extra fields?
1145: [21:20:00] <willr> that has the fixes for 5.4 I believe, though I thought 2.4.* had it as well
1146: [21:20:00] * UndefinedOffset quit (Quit: Leaving.)
1147: [21:22:00] <willr> yep
1148: [21:22:00] <terryapodaca> willr...thats on github?
1149: [21:23:00] <Colin[pi]> client: why do I need to choose left right or centre alignment? why can't I insert an image anywhere?
1150: [21:28:00] <FrozenFire> That's a fireable offense.
1151: [21:28:00] <FrozenFire> Because it leads up to "Make me Dreamweaver in the CMS"
1152: [21:29:00] * Gerry2 has joined #silverstripe
1153: [21:29:00] <FrozenFire> Indeed
1154: [21:29:00] <Colin[pi]> also leads to "my nicely themed website will end up looking like a piece of shit"
1155: [21:31:00] <Gerry2> Need help to use web based IRC. How do you enter commands or comments via web IRC. Thanks in advance.
1156: [21:32:00] <FrozenFire> Gerry2, You're doing so now. Not sure what IRC client you're using, but you're definitely using it correctly.
1157: [21:32:00] <Gerry2> I had to use windows IRC to send my questions. In one of my customer site they do not allow apps. I can only use web.
1158: [21:32:00] <FrozenFire> Alright. Did you have a question for us?
1159: [21:33:00] <Gerry2> Had to call using flexigrid because GridField is unstable in frontend.
1160: [21:33:00] * Liquide has joined #silverstripe
1161: [21:33:00] <Gerry2> I have problem with <class>//$Action/$ID
1162: [21:33:00] <Gerry2> Yes, I had been using SilverStripe for 2 years now.
1163: [21:34:00] <Pyromanik> bz_, if you have separate domain names you should be fine.
1164: [21:34:00] <Pyromanik> if you do not have separate domain names, how are you using subsites? Subdomains? You'll have to ask your certificate supplier whether it's possible for subdomains, I'm not that clued up on certs sorry.
1165: [21:34:00] <FrozenFire> Gerry2, Alright. And what's going wrong?
1166: [21:35:00] <Pyromanik> possible last I checked.
1167: [21:35:00] <Pyromanik> priithansen, filtering on extrafields isn't really... yeah.
1168: [21:35:00] <bz_> pyromanik, okay subdomains will work i guess
1169: [21:35:00] <FrozenFire> bz_, If you have an indeterminate number of subdomains, you may be looking for a wildcard certificate
1170: [21:35:00] <FrozenFire> bz_, SSL is in the scope of your webserver.
1171: [21:36:00] <FrozenFire> If you have one certificate per subdomain, then you would configure them individually per vhost
1172: [21:36:00] <Gerry2> I create classes with methods. If method is without a Form like a delete it is ok, but if method is with a Form like edit it just crash.
1173: [21:36:00] <FrozenFire> However, that will require one IP address per subdomain
1174: [21:36:00] <FrozenFire> As SSL requires a dedicated IP address per certificate for algorithmic reasons.
1175: [21:36:00] <bz_> that's what I thought... one SSL, one IP
1176: [21:36:00] <bz_> probably not subsite related question, but more hosting generic
1177: [21:37:00] <FrozenFire> Alternatively, a wildcard certificate, which will work for as many subdomains as you desire, on one IP address.
1178: [21:37:00] <priithansen> Pyromanik: adding ->items('parameter') did hide some records but could not the logic behind it or if it was some other thing interfering cause of that parameter. Will just have to filter in the next step then.
1179: [21:37:00] <Pyromanik> bz_, subsites are accessed through different domains
1180: [21:37:00] <FrozenFire> They are drastically more expensive, but if you have a real need for them, they're cheaper than the alternative.
1181: [21:37:00] <bz_> with subdomains we can get a long way. But with separate URLs for each subsite, SSL will get difficult I guss
1182: [21:37:00] <Pyromanik> priithansen, yeh, it's currently a big horrible hack :(
1183: [21:37:00] <Pyromanik> still.
1184: [21:38:00] <FrozenFire> Do you have a CRUD controller?
1185: [21:38:00] <priithansen> Pyromanik: the whole extrafields is a hack?
1186: [21:38:00] <Gerry2> Yes, trying to setup CRUD via <class//$Action/$ID
1187: [21:38:00] <Pyromanik> bz_, I don't know how you're managing different sites with subsites if you don't have different domains (including subdomains) to access them through.
1188: [21:38:00] <FrozenFire> Are you using some sort of CRUD pattern?
1189: [21:38:00] <FrozenFire> Gerry2, I'm not sure I understand your issue exactly.
1190: [21:39:00] <bz_> pyromanik, I do have seperate URLs for each subsite. Thing is I'm worried how I can get this working if we need SSL on these subsites. With subdomains it will work I understand now
1191: [21:39:00] <Pyromanik> priithansen, yep :(
1192: [21:39:00] <Gerry2> Wrote my own CRUD controller but decided to use jquery Flexigrid as front end grid.
1193: [21:39:00] <FrozenFire> priithansen, Yes, many_many_extraFields is a gigantic hack that should be avoided for everything but simple stuff like sorting.
1194: [21:39:00] <spronk> bz_: definitely go for wildcard cert for lots of subs
1195: [21:39:00] <Pyromanik> priithansen, you'll find things get MUCH easier if you use a join object.
1196: [21:40:00] * ARNHOE quit (Remote host closed the connection)
1197: [21:40:00] <Pyromanik> or you have one for each domain.
1198: [21:40:00] <Pyromanik> you either have one for all your sites
1199: [21:40:00] <Pyromanik> bz_, a certificate is bound to a domain name, not URLs
1200: [21:40:00] <Gerry2> priithansen, I solved this problem using SQLquery INNER JOIN, LEFT JOIN and RIGHT JOIN. It simplified my code.
1201: [21:40:00] <Pyromanik> (if all your sites are on the same domain)
1202: [21:41:00] <Gerry2> FrozenFire, sorry should have stayed in our conversation regarding $Action
1203: [21:41:00] <bz_> pyromanik, sorry, good point. I meant seperate domain names for different subsites
1204: [21:41:00] <priithansen> Joins are something I only understand in theory :)
1205: [21:41:00] <spronk> bz_: its also important to note that a standard cheapie cert is almost certainly NOT a wildcard cert
1206: [21:41:00] <FrozenFire> priithansen, If you have a complex relationship that uses a many_many_extraFields, it's often worthwhile to move that into a separate object.
1207: [21:41:00] <FrozenFire> Gerry2, We're talking about a different sort of join. ;)
1208: [21:42:00] <FrozenFire> It simplifies the extra fields handling drastically as well
1209: [21:42:00] <Pyromanik> bz_, then the answer is easy. You need separate certificates for each domain.
1210: [21:42:00] <bz_> spronk, yup i know. But is there such a thing as a wildcard SSL for multiple domain names?
1211: [21:42:00] <Gerry2> FrozenFire, I overcame my problem by creating a separate class for Add and Edit. In this way, the action will always default to Content but this is high maintenance.
1212: [21:42:00] <spronk> bz_: nope. need separate certs
1213: [21:42:00] <FrozenFire> For instance, if ObjOne many_many ObjTwo, with an extra field of "Foo", then you might do a third object type "ObjOneJoinTwo" with has_one to ObjOne and ObjTwo, and a $db of whatever extra fields.
1214: [21:42:00] <bz_> pyromanik, but a certificate is bound to one IP right?
1215: [21:42:00] <Gerry2> Sydney
1216: [21:42:00] <FrozenFire> This way you can apply things like getters to it
1217: [21:42:00] <Pyromanik> where are you from Gerry2 ?
1218: [21:42:00] <Pyromanik> oh
1219: [21:43:00] <FrozenFire> It's a limitation of the SSL handshake
1220: [21:43:00] <Pyromanik> and originally?
1221: [21:43:00] <Gerry2> Manila
1222: [21:43:00] <spronk> bz_: certs not necessarily bound to one ip
1223: [21:43:00] <spronk> bz_: if you have two ips for mydomain.com, and a cert for mydomain.com, it will work across both as long as installed at each
1224: [21:43:00] <FrozenFire> spronk, One cert can be served from many IPs, but one IP can only serve one cert.
1225: [21:43:00] <Pyromanik> ah yeah, cool
1226: [21:44:00] <spronk> mm
1227: [21:44:00] <irogue> *yep
1228: [21:44:00] <irogue> yeo
1229: [21:44:00] <bz_> spronk, ahhh... so than multiple ips for the VPS on which silverstripe is installed is the key!
1230: [21:45:00] <Gerry2> FrozenFire, guess you are busy supporting other users. I will come back to IRC and ask the same question later. bye for now.
1231: [21:46:00] <priithansen> http://en.wikipedia.org/wiki/Server_Name_Indication
1232: [21:46:00] <priithansen> There is a solution for multiple certificates on one ip if I'm understanding this correctly
1233: [21:47:00] <terryapodaca> any of you in NZ looking for a project? could be a big one, complex
1234: [21:48:00] <bz_> frozenfire, spronk, priithansen, Thanks so far! I'll contact the host to help set thing up. I can promise to customer that at least its (theoratically) possible
1235: [21:49:00] <terryapodaca> Pyromanik, what's your companies website?
1236: [21:50:00] <FrozenFire> Gerry2, Not really busy with other people. I just don't understand your issue well enough to offer advice on it. ;)
1237: [21:50:00] * EPIK quit (Ping timeout: 240 seconds)
1238: [21:51:00] <Gerry2> FrozenFire, thank you. Bear with me I will try to layout my development with SilverStripe.
1239: [21:51:00] <Gerry2> FronzeFire, I am mostly using the framework not CMS. Related to this I need a CRUD managed by a grid.
1240: [21:52:00] <Gerry2> FronzenFire, I was frustrated by the bugs in the GridField so I switched to jquery flexigrid.
1241: [21:52:00] <spronk> only suits a few use cases thogh but might be helpful
1242: [21:52:00] <spronk> bz_: what I did once in the past was use a company's umbrella name and have a cheap cert at secure.umbrelladomain
1243: [21:52:00] <Gerry2> I created Add,Delete and Edit buttons in flexigrid.
1244: [21:52:00] <spronk> and run all the https stuff through that
1245: [21:52:00] * simon_w quit (Quit: Leaving)
1246: [21:52:00] <Gerry2> FrozenFire, the add goes to Content correctly, the delete goes to <class>//doDelete/<n> correctly.
1247: [21:53:00] <simon_w> Okay, so xchat really doesn't like it when it can't handle a SSL cert properly
1248: [21:53:00] <Gerry2> FronzeFire, I am stuck so ended up creating a separate class for edit <classEdit> so that it defaults to Content but is high maintenance.
1249: [21:53:00] <bz_> spronk, thanks, will keep it in mind
1250: [21:53:00] <Gerry2> FrozenFire, the edit on the other hand keeps on going into Content even if I mapped it to <class>//doEdit/<IDnumber>
1251: [21:53:00] * simon_w has joined #silverstripe
1252: [21:54:00] <FrozenFire> simon_w, Probably not. :P
1253: [21:54:00] <Gerry2> FrozenFire, thank you for your patience.
1254: [21:55:00] <simon_w> FrozenFire, I wondered why it was rather quiet in here :p
1255: [21:55:00] <FrozenFire> Gerry2, Could you please clarify what you mean by "the edit on the other hand keeps on going into Content"?
1256: [21:56:00] <Gerry2> FrozenFire, I am creating an application for a client using framework in the front-end. I only use CMS for managing users and permissions. There are several users which must not have access to the backend.
1257: [21:56:00] <FrozenFire> It's being saved into that field?
1258: [21:56:00] <FrozenFire> Incidentally, is there a reason why you are creating your own CMS on the front-end?
1259: [21:57:00] <Gerry2> FronzeFire, when I call <class>//doEdit/<IDnumber> it goes into the method but when the "return form" is executed it creates a blank.
1260: [21:58:00] <Gerry2> FrozenFire, I tried $form->forTemplate() but it did not call my themes\page.ss
1261: [21:58:00] <Gerry2> FronzeFire, I use Firebug but cannot find anything wrong. I debugged using XDebug but cannot find anything wrong. It is just blank screen.
1262: [21:59:00] <Gerry2> simow_w, I will try your suggestion. Thanks in advance.
1263: [21:59:00] <Gerry2> FronzenFire, I ended up creating a second class <classEdit> then it defaults correctl
1264: [21:59:00] <simon_w> Gerry2, return array('Form' => $form);
1265: [22:00:00] <Gerry2> FrozenFire, had to log out - going to church. bye for now.
1266: [22:00:00] <Gerry2> simow_w, aha I keep on using Class.ss, maybe I need a second Class_doEdit.ss thank you.
1267: [22:00:00] <simon_w> And then you'd use $Form in your template to get that form, maybe with a Class_doEdit.ss layout
1268: [22:01:00] <Gerry2> FronzeFire, thank you. Will keep you updated if fix works.
1269: [22:02:00] <FrozenFire> Hehe. Indeed. Good IRC etiquette
1270: [22:02:00] * azureKnight has joined #silverstripe
1271: [22:02:00] * Gerry2 quit (Quit: Nettalk6 - www.ntalk.de)
1272: [22:02:00] <Colin[pi]> Gerry2: doing it right and being polite
1273: [22:03:00] <Colin[pi]> politness goes a long way when asking for help, rather than some folks that come in here "SILVERSTRIEP IS A PIECE OF SHIT"
1274: [22:03:00] * Gerry_ quit (Quit: Page closed)
1275: [22:04:00] <Colin[pi]> "oh really? how can we help you?" pfft
1276: [22:04:00] <FrozenFire> You have. ;)
1277: [22:04:00] * azureKnight hopes I've always been respectful and polite.
1278: [22:04:00] <FrozenFire> Heh. I'm one of those "SilverStripe is a piece of shit!" people. :P
1279: [22:04:00] <FrozenFire> I usually chew people out if their IRC etiquette sucks.
1280: [22:05:00] <azureKnight> For me, I just can't see why I wouldn't be respectful??? Asking for help is already letting you guys know, I have no clue what I'm doing and need help. lol.
1281: [22:05:00] <FrozenFire> :D
1282: [22:05:00] <simon_w> I just go back to work :p
1283: [22:05:00] <azureKnight> Oh thank God.
1284: [22:05:00] <simon_w> Happening more often with FrozenFire now too :p
1285: [22:06:00] <azureKnight> That is an undeniable truth there...
1286: [22:06:00] <Colin[pi]> some people are just arseholes
1287: [22:07:00] <FrozenFire> Yeah. Many people take a bit to acclimate themselves to receiving free help.
1288: [22:07:00] <Colin[pi]> i'm of the belief that if you're soliticing help, for free, from busy people, you really need to be polite
1289: [22:08:00] <azureKnight> I'm definitely aware I'm not, I don't have much of that.
1290: [22:08:00] <azureKnight> I'm with you Colin[pi]
1291: [22:08:00] <FrozenFire> Usually they associate "support" with "employee"
1292: [22:08:00] <simon_w> You mean we're not here waiting for the privilege to impart our knowledge on people?
1293: [22:08:00] <Colin[pi]> though some would believe otherwise lol
1294: [22:08:00] <Colin[pi]> apparently not
1295: [22:09:00] * bz_ has left #silverstripe
1296: [22:09:00] <FrozenFire> Very rarely is anyone there getting paid to be there.
1297: [22:09:00] <FrozenFire> And receive it, if they need it.
1298: [22:09:00] <FrozenFire> People just waiting to impart knowledge, if they have it
1299: [22:09:00] <Colin[pi]> i don't mind helping people even if I'm busy, as long as they're nice about it, if they're dicks... well
1300: [22:09:00] <FrozenFire> Heh. Isn't that the very definition of IRC support channels?
1301: [22:10:00] <FrozenFire> Indeed. An incident here that was quite hilarious was the "reverse engineering the bleeding edge code" guy
1302: [22:10:00] <Colin[pi]> oh that guy lol
1303: [22:10:00] <azureKnight> Hmm. Yeah. If someone who asked a question here knew less than me, and I had an answer, I'd try and help.
1304: [22:11:00] <simon_w> And reverse engineering
1305: [22:11:00] <simon_w> Yup
1306: [22:11:00] <azureKnight> Is he why you guys keep making reference to bleeding edge? Haha.
1307: [22:12:00] <FrozenFire> Nah, to be fair, they're usually very frustrated when they first come here.
1308: [22:12:00] <Colin[pi]> it boggles my mind how some folks think "hmm, if I am a total dick to these people giving free help, they'll be really happy to assist, right?"
1309: [22:12:00] <simon_w> Hilarious in-hokes!
1310: [22:12:00] <simon_w> *in-jokes
1311: [22:12:00] <FrozenFire> Many people discover IRC as a last resort.
1312: [22:13:00] <Colin[pi]> yeah I guess so
1313: [22:13:00] <FrozenFire> So by virtue of that, they're in a bad mood
1314: [22:13:00] <Colin[pi]> I like IRC because it's instant, and I'm impatient :D
1315: [22:13:00] <FrozenFire> Never assume malice when stupidity is a sufficient explanation. ;)
1316: [22:13:00] <xyphoid> i think a lot of people hang around support channels long after they're burned out on helping
1317: [22:13:00] <Colin[pi]> haha end of their tether
1318: [22:14:00] <Colin[pi]> some people I think give up in 2 minutes
1319: [22:14:00] <simon_w> The most annoying thing for me is people that come in and then directly ask me questions. When I'm trying to work, or in bed.
1320: [22:14:00] <xyphoid> you see a lot of that when people totally flip out over incorrectly asked questions or slightly off-topic stuff or stuff that falls between two channels
1321: [22:14:00] * DesignerX has joined #silverstripe
1322: [22:14:00] <Colin[pi]> but you know before I ask in here, I will google the shit out of a problem I have
1323: [22:15:00] <FrozenFire> simon_w, Yeah, you're in a specially bad spot in that regard. :P
1324: [22:15:00] <Colin[pi]> ;D
1325: [22:15:00] <Colin[pi]> it's because we love you simon_w and we know you're a genious
1326: [22:15:00] <FrozenFire> Prevalent *and* opped
1327: [22:15:00] <xyphoid> how dare you ask about integrating Fludget with Bloor in #bloor? go to #fludget
1328: [22:15:00] <Colin[pi]> lol
1329: [22:15:00] <Colin[pi]> "simon_w: HAAAALPPPPP"
1330: [22:15:00] <azureKnight> I tend to try and use irc as a last resort. I hang around here now because of having communicated and the availability to ask. But still normally research it as best I can.
1331: [22:15:00] <xyphoid> how dare you ask about integrating Fludget with Bloor in #fludget? go to #bloor
1332: [22:15:00] <simon_w> Slightly off-topic? You haven't been in here much :p
1333: [22:16:00] <Colin[pi]> I love how he didn't disagree, LOL
1334: [22:16:00] * cloph_away has joined #silverstripe
1335: [22:16:00] <simon_w> Yeah, but I do like to actually get some work done at times :p
1336: [22:16:00] <Pyromanik> I'll do MY tabs in 1 line bishs!
1337: [22:16:00] <FrozenFire> That's why many channels don't have people op themselves unless they're doing something with it.
1338: [22:16:00] <Pyromanik> rofl, FU jQueryUI
1339: [22:17:00] <Pyromanik> lol so horrible :<
1340: [22:17:00] <FrozenFire> You're right at the top of the user list. ;)
1341: [22:17:00] <Pyromanik> $('#tab-titles li').click(function(){$('#tab-contents > li').removeClass('current').filter(':eq('+$('#tab-titles li').removeClass('current').index($(this).addClass('current'))+')').addClass('current');});
1342: [22:17:00] <Pyromanik> it requires a defined HTML layout and everything!
1343: [22:17:00] <Pyromanik> :D
1344: [22:17:00] <Pyromanik> I'm so proud
1345: [22:17:00] <Pyromanik> ikr
1346: [22:17:00] <Colin[pi]> that's nasty
1347: [22:17:00] <Colin[pi]> ugh
1348: [22:19:00] <Pyromanik> then find your own answer and report it
1349: [22:19:00] <Pyromanik> Colin[pi], f googling man, I just don't hold back
1350: [22:19:00] <Pyromanik> :P
1351: [22:19:00] <Pyromanik> flood the questions!
1352: [22:19:00] <Pyromanik> everybody benefits!
1353: [22:19:00] <Colin[pi]> heh
1354: [22:20:00] <azureKnight> Oh right. I'm supposed to be working...
1355: [22:20:00] <simon_w> FrozenFire, not sure if I can turn that off. I've just got +O but no +o
1356: [22:21:00] <simon_w> priithansen, helper method
1357: [22:21:00] <Pyromanik> multi task ladies!
1358: [22:21:00] * simon_w is waiting for the meeting planned for "Thursday morning"
1359: [22:21:00] * azureKnight was spacing
1360: [22:21:00] * Pyromanik IS working
1361: [22:21:00] <priithansen> On that note how do you show Created field formatted nicely in grid field? tried all sorts of summaryfield/casting permutation without luck.
1362: [22:22:00] <Pyromanik> actually I have questions for FrozenFire and irogue
1363: [22:22:00] <Pyromanik> and webcams
1364: [22:22:00] <Pyromanik> about video
1365: [22:22:00] <FrozenFire> Don't know much about webcam streaming.
1366: [22:22:00] <azureKnight> :O
1367: [22:22:00] <azureKnight> Sounds scandalous.
1368: [22:22:00] <Pyromanik> it is
1369: [22:22:00] <azureKnight> Knew it.
1370: [22:22:00] <FrozenFire> I can elucidate on the videos and the streaming. :P
1371: [22:22:00] <Pyromanik> borderline rapey actually :<
1372: [22:22:00] <simon_w> ChatRoulette!
1373: [22:22:00] <Pyromanik> and streaming
1374: [22:23:00] <Pyromanik> would that be a thing?
1375: [22:23:00] <Pyromanik> FrozenFire, yeh, I need to know what impact putting a stream from a webcam has on a server
1376: [22:23:00] <Pyromanik> because so far as I'm aware it shouldn't have any :/
1377: [22:23:00] <FrozenFire> You're better off using a service
1378: [22:23:00] <Pyromanik> just streams from webcam.
1379: [22:23:00] <priithansen> simon_w: thanks, I knew it was being stupid :)
1380: [22:23:00] <Pyromanik> FrozenFire, yeh, but it's webcam.
1381: [22:23:00] <Pyromanik> ie, not choke the crap out of the camera connection
1382: [22:23:00] <FrozenFire> The bandwidth requirements of streaming are more than an application server can handle
1383: [22:23:00] <Pyromanik> for load balance perhaps?
1384: [22:23:00] <Pyromanik> Though I suppose if you're proxying it
1385: [22:24:00] <FrozenFire> What does that have to do with it?
1386: [22:24:00] <Pyromanik> yes?
1387: [22:24:00] <Pyromanik> overloading my server
1388: [22:24:00] <Pyromanik> so
1389: [22:24:00] <Pyromanik> esp. since most are streaming jpegs
1390: [22:24:00] <FrozenFire> That'd be even worse.
1391: [22:24:00] <Pyromanik> yeh right
1392: [22:24:00] <FrozenFire> Yes.
1393: [22:24:00] <FrozenFire> Even if it's 10 FPS 480p, that's a lot of data.
1394: [22:24:00] <FrozenFire> The connection is going through your server?
1395: [22:24:00] <Pyromanik> I don't see how it would touch my server
1396: [22:24:00] <Pyromanik> but how?
1397: [22:24:00] <Pyromanik> so not exactly fluid video
1398: [22:25:00] <Pyromanik> So like
1399: [22:25:00] <Pyromanik> me too I think
1400: [22:25:00] <FrozenFire> I'm missing about 95% of the puzzle here
1401: [22:25:00] <Pyromanik> shouldn't the client connect direct to camera?
1402: [22:25:00] <FrozenFire> Yes
1403: [22:25:00] <Pyromanik> the picture refreshes every 5 seconds or so
1404: [22:25:00] <Pyromanik> you see different cars
1405: [22:25:00] <Pyromanik> you see cars
1406: [22:25:00] <Pyromanik> you look up a traffic cam online
1407: [22:25:00] <Pyromanik> traffic cams right
1408: [22:26:00] <FrozenFire> But that's entirely implementation-specific
1409: [22:26:00] <FrozenFire> And it's hard to give any info on that. :P
1410: [22:26:00] <FrozenFire> It's probably copying the file down and serving it
1411: [22:26:00] <Pyromanik> what I've been asked to quote on is basically a traffic camera for perverts.
1412: [22:26:00] <Pyromanik> so shouldn't the data not touch the server?
1413: [22:26:00] <FrozenFire> Probably
1414: [22:26:00] <Pyromanik> that picture is just an HTML element with a src attribute pointing at camera stream, no?
1415: [22:27:00] <FrozenFire> Then serve off of there
1416: [22:27:00] <Pyromanik> FrozenFire, yeah, well chappy doesn't even have a camera.
1417: [22:27:00] <FrozenFire> You could have the traffic cameras publish to CDN buckets
1418: [22:27:00] <Pyromanik> sounds legit
1419: [22:27:00] <Pyromanik> irogue, do you have inputs?
1420: [22:28:00] <Pyromanik> well, for this purpose
1421: [22:28:00] <Pyromanik> RCA or S-Video?
1422: [22:28:00] <FrozenFire> That's not really video, though. :P
1423: [22:28:00] <FrozenFire> That's just a series of images
1424: [22:28:00] <Pyromanik> yeah, most webcams are from what I gather
1425: [22:28:00] <FrozenFire> Not really.
1426: [22:29:00] <priithansen> If a server can't handle the amount of traffic the webcam would just burst into flames no?
1427: [22:29:00] <FrozenFire> They use special hardware, though
1428: [22:29:00] <FrozenFire> Our primary client deals in streaming that sort of stuff
1429: [22:29:00] <FrozenFire> There's no generalizations that can be made in that regard.
1430: [22:29:00] <Pyromanik> not video chat home on top of my monitor types.
1431: [22:30:00] <FrozenFire> Well, partner more than client
1432: [22:30:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1433: [22:31:00] <FrozenFire> E.g. Youtube clones
1434: [22:31:00] <Pyromanik> this feed isn't supposed to be high def either, because as I mentioned earlier, perverts.
1435: [22:31:00] <FrozenFire> But they also do live stream handling
1436: [22:31:00] <FrozenFire> Though we typically deal with the pre-encoded streaming aspect.
1437: [22:31:00] <Pyromanik> yeah, I get you do more fluid video type stuff
1438: [22:32:00] <FrozenFire> I'm doing a project right now that's really targeted towards a specific type of pervert.
1439: [22:32:00] <FrozenFire> :P
1440: [22:32:00] <FrozenFire> That's not really a good way to define it
1441: [22:32:00] <FrozenFire> It's good-quality video, though
1442: [22:32:00] <FrozenFire> 480p at 30fps
1443: [22:34:00] <Pyromanik> I can't really give out more specifics, as I'm sure chappy wouldn't want me sharing his business idea all over the internets.
1444: [22:34:00] <FrozenFire> Yeah, I tend to recommend not talking about deals in progress, especially not ones that involve anything risque.
1445: [22:34:00] <FrozenFire> :P
1446: [22:35:00] <irogue> + too likely to flood camera's connection
1447: [22:35:00] <Colin[pi]> trafficcamporn.com ?
1448: [22:35:00] <irogue> [11:25] <Pyromanik> you look up a traffic cam online
1449: [22:35:00] <irogue> they're always done by a camera uploading a JPEG every second via FTP
1450: [22:35:00] <irogue> exposing camera directly is security risk
1451: [22:36:00] <irogue> cos it's the right way ;)
1452: [22:36:00] <Pyromanik> irogue, yeah, as I suspected.
1453: [22:36:00] <irogue> well, all the ones in NZ are done that way :-P
1454: [22:36:00] <FrozenFire> I've worked with some of them.
1455: [22:36:00] <FrozenFire> Not always.
1456: [22:36:00] <FrozenFire> Typically you might hook something like ZoneMinder into all of your image sources
1457: [22:36:00] <irogue> nah, not when it's doing a static image
1458: [22:36:00] <Pyromanik> I wouldn't have thought so
1459: [22:36:00] <Pyromanik> right, so that can burden the server heavily?
1460: [22:36:00] <FrozenFire> And have that manage the uploading process.
1461: [22:37:00] <FrozenFire> Relying on the webcam software is ucky
1462: [22:37:00] <irogue> FrozenFire: well in the case of traffic cams they aren't webcams, they're proper security cams, so no icky webcam software
1463: [22:37:00] <FrozenFire> ZoneMinder is great for all sorts of IP cameras
1464: [22:38:00] <Pyromanik> irogue, see thing is I'm not sure if it's static image updates or supposed to stream
1465: [22:38:00] <irogue> have done a surf cam where they wanted closer to video, rather than static images
1466: [22:38:00] <FrozenFire> Typically a CCTV-IP setup
1467: [22:38:00] <Pyromanik> ^
1468: [22:38:00] <Pyromanik> might be closer-to-video as you say
1469: [22:38:00] <Pyromanik> unsure
1470: [22:38:00] <FrozenFire> Well, ask the guy what his video sources are in terms of hardware.
1471: [22:38:00] <irogue> did that by running commandline VLC on a VPS
1472: [22:38:00] <FrozenFire> Yeah. That's a wholly different situation
1473: [22:39:00] <Pyromanik> FrozenFire, he had a camera, but couldn't get it working
1474: [22:39:00] <irogue> pulling in MJPEG stream from the camera, transcoding it into both mpeg4 and flv, and re-streaming it
1475: [22:39:00] <Pyromanik> so has scrapped it and said "I'll get what I need"
1476: [22:39:00] <Pyromanik> irogue, that sounds... horrible on the fly
1477: [22:39:00] <FrozenFire> Pyromanik, Well, depending on his budget, I'd be happy to consult. ;)
1478: [22:40:00] <FrozenFire> And his idea is out of the air
1479: [22:40:00] <Pyromanik> FrozenFire, seems that way :<
1480: [22:40:00] <irogue> camera was on an ADSL1 connection so we could only manage a single connection to it
1481: [22:40:00] <irogue> so the VPS was effectively proxying it
1482: [22:40:00] <irogue> but also converting it to a format that could be included directly in a webpage via html5/flash
1483: [22:40:00] <FrozenFire> Pyromanik, Just don't agree to anything before he has the hardware sorted out. Sounds like an infinitely-increasing spec situation
1484: [22:40:00] <Pyromanik> irogue, supported multiple viewing connections/
1485: [22:40:00] <irogue> Pyromanik: worked pretty damn good
1486: [22:40:00] <FrozenFire> But it sounds like his budget is nothing
1487: [22:40:00] <irogue> ya
1488: [22:40:00] <Pyromanik> see I'm not even sure how to manage that bit
1489: [22:40:00] <irogue> website connects to the VPS
1490: [22:40:00] <Pyromanik> ?
1491: [22:41:00] <Pyromanik> ?
1492: [22:41:00] <Colin[pi]> I helped in a project once with two live cams, streaming video and audio to a site
1493: [22:41:00] <Colin[pi]> a guy locked in an office for one month
1494: [22:41:00] <Pyromanik> no audio
1495: [22:41:00] <Pyromanik> afaik
1496: [22:41:00] <Pyromanik> irogue, sounds like a nice setup
1497: [22:41:00] <Pyromanik> but that transcoding... surely taxing on the server yeah
1498: [22:42:00] <Pyromanik> mmm
1499: [22:42:00] <irogue> for sure, hence why it had a dedicated VPS
1500: [22:42:00] <irogue> and until html5 video is sorted out, that means having at least 2, maybe 3, formats
1501: [22:42:00] <Pyromanik> you'd want your own vps for it
1502: [22:42:00] <Pyromanik> irogue, right.
1503: [22:42:00] <irogue> but unless you have a camera that'll output in a format you can directly include on a webpage, you have to do it
1504: [22:42:00] <Pyromanik> ps, isn't 'dedicated vps' an oxymoron? :P
1505: [22:43:00] <irogue> vlc -I dummy -vvv http/mjpeg://192.168.200.220/cgi-bin/faststream.jpg?stream=full\&fps=5 --sout "#transcode{vcodec=h264,venc=x264,vb=160,acodec=none,fps=5}:standard{access=http{mime=video/mp4},dst=:8080/cam.mp4,mux=ts}" --sout-keep --no-sout-audio
1506: [22:43:00] <FrozenFire> And display those.
1507: [22:43:00] <FrozenFire> Doing garbage collection every now and then
1508: [22:43:00] <Pyromanik> and you can do that streaming?
1509: [22:43:00] <FrozenFire> Alternatively, you could feasibly have a system which records, say, 10 minute segments, encodes them, and uploads them to a video CDN like the one I use
1510: [22:47:00] <Pyromanik> "?intentional interference (in the nature of prying) with an individual?s interest in solitude or seclusion."
1511: [22:47:00] <Pyromanik> :<
1512: [22:48:00] <azureKnight> Did ss 3.0 make any changes to the way that $can_be_root pages show in the menu?
1513: [22:49:00] <irogue> btw, watch out for the legal situation of security cameras Pyromanik. you have to be a licensed security consultant to install cameras, or a member of the NZ Security Association to consult on installs
1514: [22:49:00] <Pyromanik> nope.
1515: [22:49:00] <azureKnight> Good to know.
1516: [22:49:00] <Pyromanik> irogue, but they're not for security.
1517: [22:50:00] <Pyromanik> irogue, you know old mate.
1518: [22:50:00] <Pyromanik> old mate with the streaming camera that wouldn't switch protocols
1519: [22:50:00] <irogue> Pyromanik: yeah, i know
1520: [22:50:00] <FrozenFire> Yeah, I mentioned the legal situation to him in PM
1521: [22:50:00] <FrozenFire> It's a very tricky situation.
1522: [22:50:00] <Pyromanik> irogue, and I wouldn't be involved in that side at all.
1523: [22:50:00] <FrozenFire> You'd first have to get cameras into the establishments you're talking about, with the permission of the operators.
1524: [22:50:00] <Pyromanik> but I'm going to mention it to the account manager and leave it at that for now I think
1525: [22:50:00] <Pyromanik> FrozenFire, yeh
1526: [22:50:00] <FrozenFire> And those operators would have to post notices that their customers are being recorded
1527: [22:51:00] <FrozenFire> And that their likeness is permitted to be published publicly.
1528: [22:51:00] <Pyromanik> irogue, do you know what he wanted it for?
1529: [22:51:00] <FrozenFire> There's a reason why even Google gets reamed for street view
1530: [22:51:00] <irogue> FrozenFire: legalities are quite different here to many other countries
1531: [22:51:00] <FrozenFire> irogue, Yup. But common themes tend to exist
1532: [22:52:00] <FrozenFire> My experience is with Canadian law.
1533: [22:52:00] <FrozenFire> Which is a mix of Americanized law and commonwealth law.
1534: [22:55:00] <Pyromanik> much appreciated
1535: [22:55:00] <Pyromanik> thanks for your inputs FrozenFire and irogue :)
1536: [22:55:00] * SphereSilver has joined #silverstripe
1537: [22:57:00] <SphereSilver> But the return-data also has an image URL included.
1538: [22:57:00] <SphereSilver> I want to do something like a file_get_contents to get this image locally.
1539: [22:57:00] <SphereSilver> I have an API, from which I fetch data. Allworks.
1540: [22:57:00] <SphereSilver> This is a stupid question:
1541: [22:58:00] <SphereSilver> If I create a new Image and tell it the image is located at assets/files/imagename.jpg, it doesn't work :(
1542: [22:58:00] <SphereSilver> Most probably possible, but how?
1543: [22:59:00] <irogue> Pyromanik: http://security.org.nz/searchResults.php?company=snapper ;-)
1544: [23:01:00] <SphereSilver> I just made some comments in my modules to to prolong the current longest streak of commits to github :$
1545: [23:01:00] <Pyromanik> irogue, shameless buttplug?
1546: [23:01:00] * howardgrigg has joined #silverstripe
1547: [23:02:00] <terryapodaca> o_O
1548: [23:07:00] <FrozenFire> And just causes errors -.-
1549: [23:07:00] <FrozenFire> Didn't even fix the problem it set out to
1550: [23:07:00] * FrozenFire fucking hates UnsavedRelationList
1551: [23:11:00] <SphereSilver> what's the problem then?
1552: [23:13:00] <FrozenFire> Saving relations on new objects.
1553: [23:13:00] <FrozenFire> Which?
1554: [23:13:00] <FrozenFire> The problem is set out to fix?
1555: [23:13:00] <SphereSilver> $object->add($relation-to-add)->write()?
1556: [23:13:00] <SphereSilver> sorry
1557: [23:14:00] <FrozenFire> $object = new DataObject(); $object->relation()->add($something);
1558: [23:14:00] <SphereSilver> $object->relation()->add($relationobject)->write()?
1559: [23:15:00] <FrozenFire> Then when the object gets written, its unsaved relation lists get written out with its new ID
1560: [23:15:00] <FrozenFire> So if you have something that does that as part of your CMS fields for the new object, you get an error
1561: [23:15:00] <FrozenFire> However, UnsavedRelationList cannot be sorted/filtered/etc
1562: [23:16:00] <SphereSilver> :P
1563: [23:16:00] <FrozenFire> I'd love if UnsavedRelationList did what it's supposed to *do*
1564: [23:16:00] <FrozenFire> But it doesn't.
1565: [23:16:00] <FrozenFire> Yeah, not looking for help. Just muttering under my breath loudly.
1566: [23:16:00] <SphereSilver> Colin[pi]: Easiest thing to say: "PEBKAC!"
1567: [23:16:00] <SphereSilver> Hmmm, ok, no clue then, I haven't used it at all yet.
1568: [23:16:00] <Colin[pi]> you must be using it wrong ;)
1569: [23:16:00] <FrozenFire> That'd make up for the issue with the filtering/sorting
1570: [23:18:00] <howardgrigg> FrozenFire: ask simon_w - he wrote it
1571: [23:19:00] <simon_w> FrozenFire, pull request that adds them. We just decided to get some base down, then add in methods as they're needed.
1572: [23:19:00] <SphereSilver> Audio-controller! Y U NO REMEMBER SETTINGS?
1573: [23:19:00] <FrozenFire> howardgrigg, But then he'll ignore me! :P
1574: [23:20:00] <FrozenFire> That seems like a bad way to go about it. A "feature" which breaks a bunch of stuff, and doesn't actually do anything.
1575: [23:21:00] <FrozenFire> Also, out of curiosity, is there a reason why an UnsavedRelationList *can't* be sorted/filtered?
1576: [23:24:00] <Pyromanik> 3.1?
1577: [23:26:00] * DesignerX has joined #silverstripe
1578: [23:26:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
1579: [23:27:00] <simon_w> And Pyromanik was doing it wrong
1580: [23:27:00] <simon_w> Because I did it at the hackathon and was running out of time :p
1581: [23:29:00] <irogue> and simon_w was probably drunk on coca-cola
1582: [23:30:00] <FrozenFire> :P
1583: [23:30:00] <irogue> oh, sminnee was drunk on rum, not coca-cola
1584: [23:30:00] <FrozenFire> And sminnee was probably broke for all of that coca-cola
1585: [23:31:00] <simon_w> Interesting stories about a drunk sminnee came up at the christmas party thing
1586: [23:32:00] <FrozenFire> :P
1587: [23:32:00] <FrozenFire> Sounds like a very good thing to be airing in a public channel full of people invested in SilverStripe
1588: [23:33:00] <simon_w> Well, maybe you should've crashed their party too then! :p
1589: [23:34:00] <simon_w> No comment. :p
1590: [23:34:00] <irogue> went to town in hamilton on saturday night
1591: [23:34:00] <SphereSilver> sminnee knows howto handle alcohol :D
1592: [23:34:00] <SphereSilver> Hey, simon_w, you probably know this:
1593: [23:35:00] <irogue> highlight was definitely seeing a butch maori female bouncer demolish a blonde bimbo who was causing trouble
1594: [23:35:00] <SphereSilver> FrozenFire: I'm funny?
1595: [23:35:00] <SphereSilver> but a fetch + adding it to a new image does boom :(
1596: [23:35:00] <FrozenFire> SphereSilver, You're funnier than you know.
1597: [23:35:00] <SphereSilver> I have an API, which gives me a link to an image. I want to fetch this image to my own hosting, and add it to the db, while still being related to the full original object.
1598: [23:36:00] <simon_w> I need this shirt. http://www.thinkgeek.com/product/f3cd/
1599: [23:36:00] <irogue> single punch => on the ground going "what happened?!?"
1600: [23:37:00] <FrozenFire> SphereSilver, "Hey, simon_w, you probably know this:"
1601: [23:37:00] <SphereSilver> simon_w I have something like that, my sweater, saying "Yes, yes, I know your problem seems important to you, but have you SEEN MY COFFEE?!"
1602: [23:37:00] <FrozenFire> Funny because simon_w just moaned about being pinged directly for support. :P
1603: [23:37:00] <SphereSilver> FrozenFire: If you don't shoot, you'll never kill an animal :P
1604: [23:38:00] <SphereSilver> p.s. me and sminnee in Amsterdam. I refuse any comment besides "We might have a few beers"
1605: [23:38:00] <SphereSilver> And I wouldn't ask unless he was active ;)
1606: [23:38:00] * irogue pings simon_w
1607: [23:38:00] <SphereSilver> https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash3/527163_353415914737923_901512075_n.jpg
1608: [23:39:00] <SphereSilver> I make up for it with being the target :P
1609: [23:39:00] <SphereSilver> have had*
1610: [23:39:00] <irogue> SphereSilver: you need more beard
1611: [23:39:00] <irogue> sminnee's demolishing you in beardedness
1612: [23:39:00] <SphereSilver> yeah, I get that a lot
1613: [23:39:00] <FrozenFire> Yeah, that's a great neckbeard he's got going
1614: [23:39:00] <simon_w> SphereSilver, define boom.
1615: [23:40:00] <irogue> FrozenFire: i am also a master of neckbeard, so i can really appreciate it
1616: [23:40:00] <SphereSilver> something like "can't find image", while the image is at the given location
1617: [23:40:00] <SphereSilver> blue screen of death saying ehhh, where did I leave that code...
1618: [23:41:00] <FrozenFire> I don't think I could manage a neckbeard
1619: [23:41:00] <irogue> i'd better go get lunch
1620: [23:42:00] <SphereSilver> It's almost 1 AM! Who needs lunch now?!
1621: [23:42:00] <FrozenFire> I think I need to praise Stallman more often
1622: [23:42:00] <FrozenFire> I've got a moustache and chin-beard-thingy going on, but my neckbeard doesn't grow
1623: [23:42:00] <SphereSilver> My beards always turn red after a week :(
1624: [23:42:00] <irogue> left it too late yesterday, and there was no Egg Foo left :(
1625: [23:42:00] <simon_w> irogue, bring me some?
1626: [23:44:00] <SphereSilver> While mynormal hair is redefining "porn blond"
1627: [23:44:00] <spronk> the fuck is that shit
1628: [23:44:00] * spronk has dark blonde hair.
1629: [23:44:00] <spronk> mine is white, and orange.
1630: [23:44:00] <spronk> hah @ red beard
1631: [23:45:00] <SphereSilver> my beard redefines "redbeard, scariest pirate of the seven seas"
1632: [23:45:00] * bmh has joined #silverstripe
1633: [23:45:00] <spronk> hai faiive
1634: [23:46:00] <SphereSilver> Just to make sure... you do know your head is tilted sideways?
1635: [23:46:00] <irogue> i shaved recently so am currently only slightly above this level of neckbeardedness: https://dl.dropbox.com/u/4618071/sideways-ed.jpg
1636: [23:47:00] <irogue> yes, hence the filename :-P
1637: [23:47:00] <irogue> the drinks were quite strong, what can i say? :P
1638: [23:47:00] <SphereSilver> ok, just checking. Thought it might be chronical. If so, you should have some expert have a look at it :P
1639: [23:48:00] <spronk> that's like
1640: [23:48:00] <spronk> thats not neckbearededness
1641: [23:48:00] <spronk> neckfiveoclockshadowness
1642: [23:50:00] <FrozenFire> Yeah, that's got nothing on sminnee's neckbeard from earlier
1643: [23:50:00] <SphereSilver> I think I have a colleage that can top sminnee.
1644: [23:51:00] <SphereSilver> http://squal.nl/assets/StaffPhotos/Robert4.JPG
1645: [23:51:00] <SphereSilver> too bad it's so small :(
1646: [23:51:00] <SphereSilver> I was hoping to find a full-size image, but noooooo :(
1647: [23:52:00] * tankr quit (Quit: Leaving.)
1648: [23:52:00] <spronk> that's disgusting.
1649: [23:53:00] <SphereSilver> really?
1650: [23:53:00] <spronk> :p
1651: [23:53:00] <spronk> it's beard pornography man, NSFW.
1652: [23:53:00] <SphereSilver> It's a really nice dude, with a big beard...
1653: [23:54:00] <SphereSilver> You should've seen the previous version of our website ;) Then you wouldn't complain about NSFW....
1654: [23:54:00] <spronk> lol :D
1655: [23:54:00] <SphereSilver> You would be afraid to visit it when your children were looking at your screen :/
1656: [23:55:00] <spronk> haha, insane
1657: [23:56:00] <SphereSilver> They banned me from the admin :(
1658: [23:56:00] <SphereSilver> Can't look the images up anymore :(
1659: [23:57:00] <simon_w> http://web.archive.org/web/20120414153114/http://www.squal.nl/
1660: [23:58:00] <terryapodaca> haha
1661: [23:58:00] <SphereSilver> Don't say that terryapodaca :'( :P
1662: [23:58:00] <terryapodaca> i remembe those
1663: [23:58:00] <SphereSilver> ahhh, those are the old backgrounds!
1664: [23:58:00] <SphereSilver> "Portfolio" is the most interesting for straight mails :D
1665: [23:58:00] <terryapodaca> http://web.archive.org/web/20120722194149/http://www.squal.nl/bijzonder/
1666: [23:59:00] <SphereSilver> males, not mails.
1667: [23:59:00] <SphereSilver> Don't look at the cached contact-page. Seriously, don't
1668: [23:59:00] <SphereSilver> frikkin' brain :/

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