#silverstripe IRC Log

IRC log for 30 October 2013

All timestamps are in UTC.

1: [00:00:06] <simon_w> peter_w, only add the GridField if $this->ID != 0
2: [00:04:58] <ss23> Hmmmmmmm
3: [00:05:04] <ss23> I have an issue, not really a bug
4: [00:05:16] <ss23> If you ever use the CMS "preview" functionality, you'll be put into staging mode
5: [00:05:24] <ss23> Meaning that if you now try viewing the live site, it'll be in draft mode
6: [00:05:32] <antmas> ss23: hate that
7: [00:05:37] <ss23> I feel like that's a bad way to do it, as people using "Preview" probably have no idea it's going to completely mess up / change the front end
8: [00:05:40] <simon_w> Oh, it's worse than that
9: [00:05:58] <simon_w> The iframe is always loaded
10: [00:06:15] <ss23> Well either way, it's an "issue"
11: [00:06:18] <ss23> I'm not sure how to deal with it
12: [00:06:46] <antmas> http://www.stuff.co.nz/life-style/food-wine/drinks/9342086/Meet-the-worlds-strongest-beer WOAH
13: [00:06:58] <ss23> I need it to consitently always put it in staging mode when you're logged in as an admin (probably more consistent?) or not be in satging unless it's explicitly previewed, then revert after
14: [00:07:03] <ss23> It needs to be *consistent* anyway
15: [00:07:40] <peter_ss1> is there anyway to use a existing icon in the LeftAndMain admin
16: [00:07:52] <peter_ss1> like how can i use the reports icon to my custom admin?
17: [00:07:57] <ss23> Do you agree, antmas / simon_w?
18: [00:08:04] * UncleCheese quit (Quit: UncleCheese)
19: [00:09:06] <antmas> ss23: yeah I do
20: [00:09:25] <antmas> I get a lot of clients calling me up about this very problem
21: [00:11:57] <antmas> don't you have to flush the browser cache to 'revert' at the moment?
22: [00:11:58] <irogue23> yeah, i was pretty confused myself by it at first
23: [00:12:10] <ss23> antmas: Just delete cookies
24: [00:12:17] <irogue23> or ?stage=Live
25: [00:12:20] <ss23> Yeah
26: [00:12:44] <antmas> true
27: [00:15:06] <ss23> Should I make a post on the dev mailing list?
28: [00:16:49] <Pyromanik> guys guys guys
29: [00:16:50] <Pyromanik> http://iforce.co.nz/i/ded13sj5.m1s.png
30: [00:18:57] <Pyromanik> antmas: smoked peet malt - sounds like it'd be not too dissimilar to Yeastie Boys' Attitude Rex.
31: [00:22:13] <DaShiVaDan> Pyromanik: love that last link
32: [00:22:18] <DaShiVaDan> Story of my life :P
33: [00:22:29] <Pyromanik> ikr!
34: [00:22:37] <Pyromanik> I actually lol'd when I saw it
35: [00:23:32] <DaShiVaDan> debating logging into fb against company policy just to post it, but I haven't (not really really) logged into FB for about a month, no reason to spoil my record now :P
36: [00:24:47] <Pyromanik> ss23: that was the purpose of the old $SSNavigator
37: [00:25:00] <Pyromanik> put a great big red box saying "DRAFT PREVIEW" over the page
38: [00:25:22] <Pyromanik> DaShiVaDan: indeed.
39: [00:25:26] <Pyromanik> don't do it.
40: [00:25:36] <Pyromanik> It can wait until you get home
41: [00:25:43] <Pyromanik> where you can IM it to all your mates.
42: [00:25:59] <Pyromanik> link will be on logs.ss.org
43: [00:26:00] <Pyromanik> .nz
44: [00:26:21] <Pyromanik> also, I'm pretty sure there's a pun in there somewhere with "Programmer Interrupted"
45: [00:27:05] <Pyromanik> the comic was titled "Why you shouldn't interrupt a programmer" - I just realised the jpg doesn't have that on it
46: [00:27:57] * UncleCheese has joined #silverstripe
47: [00:30:33] <Pyromanik> ss23: is logging now a module or something?
48: [00:30:44] <Pyromanik> Fatal error: Class 'SS_LogErrorFileFormatter' not found
49: [00:33:43] <Pyromanik> wtf
50: [00:33:51] <DaShiVaDan> Pyromanik: heh yeah The title I figured was sort of self-explanitory :)
51: [00:33:57] <Pyromanik> fatal error output from a line that is the } of a class definition :<
52: [00:34:15] <Pyromanik> DaShiVaDan: yeah but pun because interrupts, right?
53: [00:34:27] <spronk> k guys
54: [00:34:39] <Pyromanik> Those of us old enough (or did enough engineering) to know about IRQ
55: [00:34:43] <spronk> what's the process for dataobject relations getting saves vs onAfterWrite ?
56: [00:34:55] <Pyromanik> spronk: wuts
57: [00:34:57] <spronk> well
58: [00:35:07] <spronk> i want to stick a DataExtension on user defined form
59: [00:35:13] <DaShiVaDan> Pyromanik: yeah :) there's also some > dev/null/ joke on the second last panel :)
60: [00:35:17] <spronk> to inspect the form submission for a particularly named field, and do something if it's set
61: [00:35:41] <spronk> but.... $this->owner->Values() on SubmittedFormExtension::add_extension() returns a datalist, but it has no contents
62: [00:35:52] <spronk> and if i die() in onAfterWrite, nothing ends up in the database
63: [00:35:54] <Pyromanik> DaShiVaDan: they say the 2 hardest things about programming are caching, naming things & off by one errors
64: [00:36:30] <Pyromanik> spronk: that's... odd.
65: [00:37:03] <spronk> well
66: [00:37:08] <spronk> i'm wondering whether it's wrapped in a db transation or something
67: [00:37:51] <DaShiVaDan> Pyromanik: rofl
68: [00:38:09] <DaShiVaDan> Pyromanik: I like the XKCD stuff too like: http://xkcd.com/292/
69: [00:38:36] <Pyromanik> haha
70: [00:38:37] <Pyromanik> yeh
71: [00:39:07] <Pyromanik> and then manager wonders why small change requires hours of re-development
72: [00:39:16] <Pyromanik> much like your current position :P
73: [00:39:29] <Pyromanik> quickfix != goodfix
74: [00:40:02] <spronk> grr, what the fuck silverstripe
75: [00:40:31] <spronk> yeah
76: [00:40:41] <spronk> onAfterWrite() appears to be *before* the relation objects get written
77: [00:40:54] <spronk> which is problematic...
78: [00:40:57] <ss23> To: silvetripe dev mailing list Subject: Preview in CMS fucks the shit up, yo.
79: [00:41:03] <Pyromanik> saveInto should do that spronk
80: [00:41:13] <spronk> hmm?
81: [00:41:35] <Pyromanik> spronk: OR, userdefinedform is calling extend('onafterwrite')before it does relation saving because it needs to know the ID of the submission to assign the relations to first.
82: [00:41:49] <Pyromanik> in which case move the extend call and pull request
83: [00:42:07] <Pyromanik> or better yet, update it to be 3.1 awesome and make it leverage unsavedrelationlists
84: [00:42:09] <spronk> this is all wilr_'s fault. he suggested using onAfterWrite :P
85: [00:42:18] <spronk> this is 3.1
86: [00:42:23] <Pyromanik> spronk: take a look at userdefined forms
87: [00:42:25] <spronk> how use these unsavedrelationlists
88: [00:42:30] <Pyromanik> spronk: automatic
89: [00:42:35] <spronk> damnit
90: [00:42:40] <spronk> wtf is wrong with it then
91: [00:42:53] <Pyromanik> I imagine that because legacy code the relations don't get added until AFTER form submission is written
92: [00:43:09] * simon_w quit (Quit: Leaving)
93: [00:43:12] <Pyromanik> if you add them before (eg, in saveInto) then it should all be fine.
94: [00:43:25] <Pyromanik> but will break 3.0ness (which shouldn't matter 2 fucks)
95: [00:43:36] * violetina quit (Remote host closed the connection)
96: [00:45:53] <Pyromanik> here's an idea
97: [00:45:58] <Pyromanik> Fuck you, logging. You suck.
98: [00:46:02] <Pyromanik> and I don't need you.
99: [00:49:36] * chillu quit (Quit: chillu)
100: [00:51:38] * EasyCo has joined #silverstripe
101: [00:52:06] <EasyCo> What's the best way of accessing a data objects relations when you're outside of said DO?
102: [00:52:49] <Pyromanik> getting said DO
103: [00:52:51] <Pyromanik> or
104: [00:52:54] <Pyromanik> it's ID at least
105: [00:53:16] <Pyromanik> RelatedThing::get()->filter(relationidentifier, $id)
106: [00:53:17] <EasyCo> For example, if I was in Car class, I'd just do $this->Doors(); to get all it's doors
107: [00:53:32] <Pyromanik> depends on the relation type
108: [00:53:33] <EasyCo> But if I'm outside of Car, and I do Car::get()
109: [00:53:38] <EasyCo> How do I get the doors :)
110: [00:53:52] <EasyCo> many_many
111: [00:53:55] <Pyromanik> foreach $cars as $car { $car->doors()
112: [00:54:29] <EasyCo> Yah that makes sense. Cool, gonna give it a go, thanks
113: [00:58:37] <EasyCo> You beauty
114: [00:58:45] <EasyCo> Cheers Pyromanik
115: [00:59:08] <EasyCo> I was forgetting to actually loop over the object or do ->First
116: [00:59:17] <EasyCo> Rookei mistake
117: [01:00:26] <Pyromanik> yeh, if you want all the doors you could merge them into an ArrayList and then do some kind of removeDuplicates on it or something.
118: [01:00:29] <Pyromanik> dunno
119: [01:04:48] * DigNZ has joined #silverstripe
120: [01:05:20] * DigNZ quit (Client Quit)
121: [01:06:33] <EasyCo> Can you link that DO's controller? so you have access to its methods?
122: [01:08:47] <Marvanni2> any experience with UnitTesting?
123: [01:09:23] <EasyCo> i.e: Cars extends Page. So Cars::get() gets me all the Cars Pages. But what if I want access to Cars_Controller?
124: [01:09:54] <Marvanni2> new Cars_Controller($car);
125: [01:10:15] <Marvanni2> but im not sure if thats a good idea
126: [01:10:31] <Marvanni2> are u sure the controller methods do not need to be in the model?
127: [01:11:02] <EasyCo> Marvanni2: That's a good question
128: [01:12:07] <EasyCo> The method in the controller that I'm trying to access manipulates and returns the page data.
129: [01:12:22] * stecman has left #silverstripe
130: [01:12:51] <EasyCo> I just figured the controller was the better place for it until I not need to access that method from other classes.
131: [01:13:06] <EasyCo> *not = ''
132: [01:13:14] * pippy_ has joined #silverstripe
133: [01:13:26] * peter_ss has joined #silverstripe
134: [01:15:09] * peter_ss1 quit (Ping timeout: 265 seconds)
135: [01:16:05] <DesignerX> hi, How can I filter Myobject based on a relation , like get MyObject where MyObject has_many ChildObject has at least 1 ChildObject ?
136: [01:16:37] * pippy quit (Ping timeout: 272 seconds)
137: [01:16:52] <Marvanni2> with a join?
138: [01:17:13] <DesignerX> Marvanni2: cant it be done with ->get($filter) ?
139: [01:17:30] * pippy_ quit (Ping timeout: 245 seconds)
140: [01:18:14] * pippy has joined #silverstripe
141: [01:19:24] <DesignerX> can it be done like MyObject::get()->filter(something here) ?
142: [01:19:45] <EasyCo> DesignerX: If it's DataObjects and not pages: http://doc.silverstripe.com/framework/en/topics/datamodel#search-filter-modifiers
143: [01:20:07] <EasyCo> Upi cam dp
144: [01:20:44] <EasyCo> You can do: MyObject::get()->filter('ChildObject.Prop:ExactMatch', 'something');
145: [01:21:08] <EasyCo> Or else you can use ->leftJoin()
146: [01:21:43] <DesignerX> EasyCo: ty .. they are not pages so this should work
147: [01:22:28] <peter_w> on another note I am now getting the following JS error everytime I try to create a new page Error: Syntax error, unrecognized expression: throw new Error( "Syntax error, unrecognized expression: " + msg );
148: [01:22:29] <Marvanni2> you will need to use HAVING Count or INNER JOIN or something
149: [01:22:45] <peter_w> i have tried different versions of cms and framework but no fix
150: [01:23:19] * pippy_ has joined #silverstripe
151: [01:24:43] * pippy quit (Ping timeout: 245 seconds)
152: [01:25:24] * DigNZ has joined #silverstripe
153: [01:25:27] * DigNZ quit (Client Quit)
154: [01:26:17] <Marvanni2> peter are u sure you don't echo or var_dump anything somewhere?
155: [01:29:35] <peter_w> Marvanni2: I dont think so....i am searching through everything
156: [01:30:36] <Pyromanik> does it possible to set a default filter on a gridfield?
157: [01:30:39] <antmas> is it usually " + msg"? I always thought I got " msg" in those errors :P
158: [01:30:53] <Pyromanik> /netmsg?
159: [01:32:08] <peter_w> yup i am recieving "Syntax error, unrecognized expression: " + msg );:
160: [01:33:09] <Pyromanik> peter_w: that's because it's spitting out the line
161: [01:33:16] <Pyromanik> msg is a string
162: [01:33:46] <Pyromanik> there is no syntax error taht I can see.
163: [01:34:08] <Pyromanik> can you expand it for more info?
164: [01:34:48] <Pyromanik> syntax error is usually followed by eg. "expected ) got ;"
165: [01:39:28] <peter_w> i cant expand it in firebug
166: [01:39:28] <peter_w> but here is the error in chrome
167: [01:39:28] <peter_w> http://pastie.org/8441547
168: [01:39:28] * Kapdap quit (Ping timeout: 245 seconds)
169: [01:39:28] <peter_w> the page is being added...i just have to reload the page to see it
170: [01:39:28] * Avroceptyr quit (Ping timeout: 240 seconds)
171: [01:39:28] * ss-log quit (Ping timeout: 264 seconds)
172: [01:40:10] * ss-log has joined #silverstripe
173: [01:41:25] * oskarholo quit (Quit: bye)
174: [01:42:58] * kerosene has joined #silverstripe
175: [01:43:28] * UncleCheese quit (Quit: UncleCheese)
176: [01:44:46] * Avrocept1r has joined #silverstripe
177: [01:45:15] <Pyromanik> peter_w: it's a syntax error with jquery selector or something
178: [01:45:26] <ss23> Currently, if you log in and select a page, the Preview functionality ends up being such that the Stage is set to draft. Then, if in another tab/window/whatever you browse the site, you'll get the draft versions.
179: [01:45:30] <ss23> This is horribly confusing for users (and myself) as it's not anything anyone could reasonably expect.
180: [01:45:33] <ss23> My suggestion is to either force the entire session into draft mode on login (so that the rule is, logged in == draft, unless you explicitly select otherwise), or only change the stage for previewing and not anywhere else.
181: [01:45:37] <ss23> Does anyone else have better ideas or how to approach this? It seems very very broken currently.
182: [01:45:40] <ss23> Sounds okay, guise?
183: [01:46:10] <Pyromanik> ss23: or yeah don't set the session var unless explicitly asked to when on the front end.
184: [01:46:43] <ss23> That's covered by the "st stage for previewing and not anywhere else"
185: [01:46:44] <Pyromanik> ss23: implement a double preview pane where you get editor content, then preview, then current
186: [01:46:53] <spronk> don't use session variables to determine stage
187: [01:46:57] <Pyromanik> then tell LCD manufacturers to catch the fuck up
188: [01:47:19] <Pyromanik> ss23: yeah, but still have it if explictly asked for, as you say.
189: [01:47:33] <Pyromanik> do the session var thing, don't go wanking with people's brains.
190: [01:47:44] <Pyromanik> like when metadata was removed.
191: [01:47:55] * jrthomer has joined #silverstripe
192: [01:48:08] * Avrocept1r has left #silverstripe
193: [01:48:21] <Pyromanik> and everyone who used the cms went "wut" but all the devs went "but it's not core!"
194: [01:48:27] <ss23> lol
195: [01:48:31] <spronk> ja
196: [01:48:39] <spronk> devs
197: [01:48:43] <spronk> so disconnected from reality :P
198: [01:48:45] <Pyromanik> clean code vs clean user case.
199: [01:48:48] <ss23> Your topic has been created!
200: [01:48:55] * DigNZ has joined #silverstripe
201: [01:49:05] <Pyromanik> Your created has been topic!
202: [01:49:09] <peter_ss> is there a way on how I can set the width of the DateField Calendar?
203: [01:49:10] <ss23> ;_;
204: [01:49:24] <Pyromanik> peter_w: not really.
205: [01:49:30] <Pyromanik> it's a jquery ui widget
206: [01:49:42] <Pyromanik> you might be able to hook it somehow
207: [01:49:46] <Pyromanik> dunno
208: [01:52:47] <antmas> :O why did I never see this? http://scifi.stackexchange.com/questions/11355/what-is-this-man-doing-with-a-starfleet-mini-skirt
209: [01:55:51] * oskarholo has joined #silverstripe
210: [01:57:08] <Pyromanik> antmas: Tunic.
211: [01:57:13] <Pyromanik> not a miniskirt
212: [01:57:30] <Pyromanik> If it's good enough for Link, it's good enough for a redshirt.
213: [01:58:07] <antmas> yeah but Link at least had tights on 0.O
214: [01:58:07] * DigNZ quit (Quit: DigNZ)
215: [01:58:37] <Pyromanik> VERY DISAPPOINT, Not a single mention in that whole thread of the fact that it's not even a mini-skirt.
216: [01:58:46] <Pyromanik> IT'S A FUCKING TUNIC, IS THIS THE INTERNET OR WHAT!?
217: [01:58:55] <spronk> Pyromanik: there's no onafterwrite in userdefinedforms
218: [01:59:07] <Pyromanik> spronk: haha, sux2bu
219: [01:59:18] <Pyromanik> :<
220: [01:59:19] <spronk> :(
221: [01:59:39] <spronk> i really don't know why this isn't firing... :/
222: [01:59:49] <antmas> because subsites
223: [01:59:52] <spronk> haha
224: [01:59:57] <spronk> actually that's possible..
225: [02:00:06] <spronk> but surely not
226: [02:00:26] <peter_w> Pyromanik: so any idea why there is a syntax error with jquery selector
227: [02:00:29] <spronk> is onAfterWrite documented anywhere?
228: [02:02:20] <EasyCo> What's the best practice for deciding what methods to put in the controller and what to put in the model>
229: [02:02:41] <spronk> I try to keep controllers to "output" stuff only
230: [02:03:10] <spronk> UGH
231: [02:03:21] <spronk> fucking onafterwrite... :S
232: [02:04:17] <EasyCo> As in stuff that reruns directly to a template?
233: [02:04:24] <spronk> well
234: [02:04:27] <spronk> stuff that's accessed via URL directly
235: [02:04:33] <EasyCo> so actions
236: [02:04:36] <spronk> yeah
237: [02:04:52] * spronk likes thin controllers
238: [02:05:22] <spronk> srs, where does onAfterWrite even get called?
239: [02:05:30] <EasyCo> I like my models skinny :)
240: [02:05:37] <spronk> hmm
241: [02:05:43] <spronk> skinny models are harder to test
242: [02:05:47] <spronk> if all your logic is in controllersr
243: [02:05:56] <EasyCo> spronk: Yah this is true
244: [02:07:39] <EasyCo> Right well I think I'm going to move some stuff around
245: [02:07:44] <spronk> hmm
246: [02:07:44] <spronk> so
247: [02:08:17] <spronk> onAfterWrite is called before components are written
248: [02:09:56] <spronk> fucks sakes
249: [02:10:33] <EasyCo> Does the model have access to HTTP_Requests?
250: [02:10:47] <spronk> don't think so..
251: [02:10:48] <spronk> well
252: [02:10:53] <spronk> unless you go via the controller
253: [02:10:58] <EasyCo> Yah
254: [02:11:03] * spronk would posit that model shouldn't have access to them anyway
255: [02:11:24] <EasyCo> Yah, just deciding that methods should go in the model
256: [02:11:46] <EasyCo> As I have quite a few methods that rely on getVars() for example
257: [02:11:51] <spronk> mm
258: [02:15:44] <spronk> are there any tests for onafterwrite?
259: [02:15:56] <ss23> yes
260: [02:16:02] <spronk> where are they?
261: [02:16:07] <ss23> IN THE TESTS
262: [02:16:19] <spronk> i've looked in DataExtensionTest and DataObject
263: [02:16:20] <spronk> but nothing
264: [02:16:32] <ss23> i take it back
265: [02:17:10] <spronk> because..
266: [02:17:15] <spronk> i don't think it works properly
267: [02:17:20] <spronk> or at least, it doesn't work how one would expect
268: [02:17:59] <guzzlefry> we need more tests!
269: [02:18:36] * deanclkclk has joined #silverstripe
270: [02:18:45] <spronk> there's one tiny litlte piece of docs for onBeforeWrite
271: [02:18:48] <spronk> but nothing i can see for onAfter
272: [02:20:11] <deanclkclk> can a silverstripe plugin be commercial?
273: [02:20:18] <EasyCo> yes
274: [02:21:00] <spronk> does anybody in here understand how onAfterWrite is *meant* to work?
275: [02:21:28] <shakesoda> I only know that things like onBeforeWrite are nearly undocumented
276: [02:21:33] <shakesoda> :(
277: [02:21:53] <shakesoda> the routing documentation is less than comprehensive, too
278: [02:22:09] <EasyCo> spronk: What are you trying to do?
279: [02:23:02] <spronk> EasyCo: i'm trying to hook onAfterWrite on Userforms
280: [02:23:17] <spronk> so that i can look at a specific submitted field, test it's value, and perform an action if it is a particular value
281: [02:23:38] <EasyCo> I use it similarly. What's the problem>
282: [02:24:46] <guzzlefry> Everything in SilverStripe is nearly undocumented. >_>
283: [02:24:55] <spronk> you do?
284: [02:24:56] <spronk> well
285: [02:25:09] <spronk> in my extension on onAfterWrite, $this->owner->Values() is an empty list
286: [02:25:27] <spronk> because it hasn't actually written any of the SubmittedFormField objects to the database at that point in time
287: [02:25:36] <spronk> so DataList is a dynamic query, goes to the database and finds nothing
288: [02:26:02] <spronk> EasyCo: do you have something like this actually working in 3.1?
289: [02:26:27] * spronk has tried $this->owner->(fieldName), $this->owner->relField(fieldName), iterating Values()... nothing
290: [02:26:29] <EasyCo> spronk In 3.0 but not with form values.
291: [02:26:35] <spronk> oh?
292: [02:26:45] <spronk> i'm basically adding a 'join our newsletter' tickbox
293: [02:26:55] <Pyromanik> 15:24 < guzzlefry> Everything in SilverStripe is nearly undocumented. >_>
294: [02:27:04] <Pyromanik> fix it fix it fix it fix it
295: [02:27:31] <guzzlefry> I keep meaning to.
296: [02:27:36] <guzzlefry> Then I run out of time!
297: [02:27:39] * zagoodwin has joined #silverstripe
298: [02:27:43] <EasyCo> And you've confirmed that onAfterWrite() is being hit in your extension?
299: [02:27:49] <Pyromanik> guzzlefry: common story.
300: [02:28:33] <antmas> spronk: I don't know if you're attempting something similar, but I have this in my notes from way back in 2.4 http://www.sspaste.com/paste/show/52706cdbaa884
301: [02:28:34] <spronk> yeah
302: [02:28:38] <spronk> onAfterWrite is definitely being hit
303: [02:28:49] <antmas> spronk: oh, it's firing?
304: [02:28:58] <spronk> if i die() in onAfterWrite on SubmittedForm extension, the submittedform hits the database, but no submittedformfields get saved
305: [02:29:09] <spronk> so evidently, onAfterWrite is being called before the related objects even get saved
306: [02:29:30] <spronk> and 3.1 is meant to do that auto relation whateverpyrowastalkingabout
307: [02:29:31] <zagoodwin> Hey is there any way i can make it so my images are pulled in alphabetical order
308: [02:29:42] <zagoodwin> like change the query or something?
309: [02:29:56] <EasyCo> spronk: Debugging just $this->owner reveal anything?
310: [02:30:09] <antmas> zagoodwin: Orderby 'filename' or something?
311: [02:30:16] <Pyromanik> spronk: yeah, but you have to write the parent object first silly.
312: [02:30:19] <EasyCo> zagoodwin: ->sort()
313: [02:30:31] <zagoodwin> where do i fine the query that runs for image to change that?
314: [02:30:53] <guzzlefry> oh, so I've been doing something correct by assigning relations in onAfterWrite()? >_>
315: [02:30:58] <spronk> EasyCo: debugging owner just reveals the SubmittedForm
316: [02:31:05] <spronk> Pyromanik: SPLAIN
317: [02:31:08] <Pyromanik> core object Write, core object onBeforeWrite, *writing*, core object onAfterWrite, *exit core object write*, assign relations?
318: [02:31:17] <Pyromanik> CHECK EXECUTION ORDER
319: [02:31:20] <Pyromanik> it's one function
320: [02:31:21] <spronk> yeah
321: [02:31:23] <Pyromanik> DataObject::write()
322: [02:31:23] <spronk> so
323: [02:31:31] <spronk> how do you get something to happen after everything is written?
324: [02:31:34] <spronk> because write() is doing the cascaded write
325: [02:31:38] <Pyromanik> or maybe SiteTree::write()
326: [02:31:43] <spronk> it's DO
327: [02:32:05] <spronk> the last few lines are if($writeComponents) { $this->writeComponents(true); }
328: [02:32:06] <Pyromanik> writeComponents()
329: [02:32:27] <spronk> so i should writeComponents() in my onAfterWrite?
330: [02:32:28] <spronk> sigh
331: [02:32:30] <ss23> Yay, my Google Music recommendations are not rap anymore :D
332: [02:32:42] <Pyromanik> spronk: probably not
333: [02:32:52] <guzzlefry> ss23: What is this..Google Music?
334: [02:32:53] <spronk> i can't see any other way of accomplishing this though
335: [02:32:53] <Pyromanik> but onBeforeWrite is called before writeComponents... so yeh
336: [02:33:04] <ss23> guzzlefry: It's like Spotify, but you pay for it!
337: [02:33:04] <ss23> :D
338: [02:33:22] <guzzlefry> oh!
339: [02:33:29] <spronk> ss has such a nasty implementation of activerecord
340: [02:33:32] <guzzlefry> I'm guessing you pay for the quality?
341: [02:33:47] <Pyromanik> spronk: some code needs cleaning, yeah.
342: [02:33:48] <ss23> guzzlefry: Not really, doubt it's much better than spotify
343: [02:33:48] <ss23> :P
344: [02:33:52] <Pyromanik> but it's not so bad.
345: [02:33:53] <ss23> Missing a lot of music on it, tbh
346: [02:33:59] <spronk> i dno
347: [02:34:00] <guzzlefry> spronk: Override writeComponents?
348: [02:34:04] <spronk> DataObject is a clusterfuck of nasty
349: [02:34:06] <antmas> ss23: only reason I don't use it
350: [02:34:18] <Pyromanik> spronk: yeah, lots of tight coupling all through core code
351: [02:34:24] <spronk> tbh i think DO just needs an onAfterRelationWrite or something
352: [02:34:26] <Pyromanik> because legacy rot
353: [02:34:32] <Pyromanik> probably does
354: [02:34:36] <Pyromanik> you should put it in.
355: [02:34:39] <Pyromanik> MORE HOOKS
356: [02:34:44] <Pyromanik> SilverStripe does need.
357: [02:34:48] <Pyromanik> I concur.
358: [02:35:30] <guzzlefry> Wouldn't that just be an abstract method call?
359: [02:35:39] <guzzlefry> well, not a call
360: [02:35:47] <Pyromanik> what?
361: [02:35:54] <guzzlefry> Maybe I should get sugar in my blood before trying to think. :P
362: [02:36:02] <Pyromanik> Diabetic?
363: [02:36:06] <ss23> Hungry?
364: [02:36:12] <guzzlefry> possibly, haven't gotten that checked out.
365: [02:36:17] * nickmolhoek quit (Quit: nickmolhoek)
366: [02:36:20] <guzzlefry> one day :P
367: [02:36:21] <guzzlefry> anyway
368: [02:36:23] <Pyromanik> http://store.bbcomcdn.com/images/store/prodimage/prod_prod890050/image_prodprod890050_largeImage_X_450_white.jpg
369: [02:36:26] <Pyromanik> lolololol
370: [02:36:28] <Pyromanik> look at logo
371: [02:36:30] <Pyromanik> you see cow
372: [02:36:31] <spronk> actually, userforms coe might be to blame
373: [02:36:36] <Pyromanik> see 'brand' in lower right
374: [02:36:38] <Pyromanik> read it fast
375: [02:36:39] <Pyromanik> lolwut
376: [02:36:43] <Pyromanik> see logo again
377: [02:36:48] <Pyromanik> SUDDENLY COCK
378: [02:36:57] <Pyromanik> budgy smuggler
379: [02:37:16] <Pyromanik> and that's how bad branding turns beef into chicken.
380: [02:37:24] <spronk> o_O
381: [02:37:38] <Pyromanik> You don't see it spronk ?
382: [02:37:51] <ss23> I fon'y drr iy...
383: [02:37:52] <antmas> I don't think I do....
384: [02:37:52] <spronk> no?
385: [02:38:00] <guzzlefry> So, to add onAfterRelationWrite to the code, wouldn't you just drop an empty method definition into DataObject and then call it in the write() method?
386: [02:38:04] <Pyromanik> Look at the brand in the lower right
387: [02:38:08] <ss23> Jack Link?
388: [02:38:24] <Pyromanik> the circle brand, like cowboy brand, not the big bold shit at the top
389: [02:38:31] <ss23> I'm looking at that
390: [02:38:36] <ss23> it says Jack Link, right?
391: [02:38:37] <spronk> o_O
392: [02:38:37] <Pyromanik> READ IT FAST
393: [02:38:42] <ss23> Hack link jack link!
394: [02:38:53] <ss23> ;_;
395: [02:38:53] <Pyromanik> suddnely: Jack's Junk.
396: [02:38:54] <ss23> pls Pyromanik
397: [02:38:55] <guzzlefry> 0.o
398: [02:39:00] <ss23> Eh
399: [02:39:04] <Pyromanik> you can't not see it.
400: [02:39:05] <guzzlefry> well, okay
401: [02:39:06] <ss23> I wouldn't have ever "got" that
402: [02:39:07] <spronk> i got that, but...
403: [02:39:09] <spronk> i don't get it
404: [02:39:11] <antmas> wow Pyromanik
405: [02:39:12] <guzzlefry> I'd just drop it at this point. :P
406: [02:39:14] <Pyromanik> junk?
407: [02:39:17] <antmas> that was pretty terrible
408: [02:39:19] <spronk> lol
409: [02:39:30] <ss23> Maybe "Lunk", if I'm going to *really* try misread it
410: [02:39:32] <spronk> you need a holiday bro
411: [02:39:33] <Pyromanik> you've never heard 'his junk' being uses in slang?
412: [02:39:40] <Pyromanik> no way
413: [02:39:42] <antmas> that's like the ol' rocks = boobs
414: [02:39:45] <Pyromanik> it looks like a fuck'n J
415: [02:39:58] <guzzlefry> looks like an L to me
416: [02:40:02] <Pyromanik> 59009?
417: [02:40:09] <DaShiVaDan> I'm with Pyro on this one
418: [02:40:13] <ss23> That J looks more like an L than the i looks like a u...
419: [02:40:14] <Pyromanik> YUS
420: [02:40:16] <DaShiVaDan> Jack's Junk, and a logo to match
421: [02:40:29] <ss23> idk
422: [02:40:30] <Pyromanik> THEY SELL MEAT BARS
423: [02:40:35] <antmas> BARELY
424: [02:40:48] <spronk> it's a bit of a stretch to get a cock out of that..
425: [02:40:55] <Pyromanik> not a cock
426: [02:40:56] <Pyromanik> gawd
427: [02:40:59] <Pyromanik> budgy smuggler
428: [02:41:01] <DaShiVaDan> but if you stretch it it looks bigger
429: [02:41:05] <Pyromanik> ROFL
430: [02:41:10] <guzzlefry> I need to go pray.
431: [02:41:11] <Pyromanik> so now I have all y'all attention
432: [02:41:29] <Pyromanik> how to add an action to do stuff to a record in modeladmin?
433: [02:41:35] <antmas> no
434: [02:41:40] <antmas> Pyromanik: you need to be told
435: [02:41:44] <antmas> it was BAD
436: [02:41:51] <antmas> otherwise no one helps you!
437: [02:41:56] <Pyromanik> antmas: nope.
438: [02:41:56] <antmas> ;__;
439: [02:42:01] <Pyromanik> you don't help because you can't.
440: [02:42:11] <antmas> I never help
441: [02:42:18] <antmas> halp
442: [02:42:21] <spronk> it's a pretty weird budgie smuggler :P
443: [02:42:41] <Pyromanik> lolwut
444: [02:42:42] <Pyromanik> http://www.youtube.com/watch?v=unrUZ_-WTFE
445: [02:42:53] <guzzlefry> Pyromanik: getCMSActions?
446: [02:42:58] <Pyromanik> maybe
447: [02:42:59] <Pyromanik> not sure
448: [02:43:03] <guzzlefry> I'd tell you to check the docs on that but...well
449: [02:43:03] <Pyromanik> but maybe
450: [02:43:07] <Pyromanik> xD
451: [02:43:07] <guzzlefry> you know... :P
452: [02:43:24] <Pyromanik> I think what needs to happen is that SS needs to be tidied up internally, then we can have nice things.
453: [02:43:30] <Pyromanik> aye spronk.
454: [02:43:46] <antmas> build it in .net
455: [02:43:46] <antmas> :D
456: [02:43:49] <antmas> WIN
457: [02:43:49] <Pyromanik> lies
458: [02:43:56] <Pyromanik> build it in Javascript
459: [02:44:08] <antmas> yuck
460: [02:44:15] <Pyromanik> deal with it.js
461: [02:44:41] <guzzlefry> Pyromanik: I've done a LeftAndMainExtension before >_>
462: [02:44:46] <guzzlefry> almost went crazy
463: [02:44:49] <guzzlefry> Took me two days. :/
464: [02:44:53] <Pyromanik> lol was it in 2.4?
465: [02:44:56] <DaShiVaDan> A SQL query goes into a bar, walks up to two tables and asks, "Can I join you?"
466: [02:44:57] <guzzlefry> no
467: [02:45:00] <guzzlefry> early 3.1 dev stuff
468: [02:45:01] <Pyromanik> because I made a left and main extension in 2 hours.
469: [02:45:05] <Pyromanik> and I found a bug.
470: [02:45:12] * antmas_ has joined #silverstripe
471: [02:45:57] <Pyromanik> sunprotectionfactor
472: [02:46:00] <Pyromanik> v=spf mx
473: [02:46:05] <Pyromanik> I hate you microsoft.
474: [02:46:18] <antmas_> lolwut
475: [02:46:29] <peter_w> i hate silverstripe atm
476: [02:46:43] <spronk> i'd be kinda tempted
477: [02:46:45] <spronk> to scrap most of it
478: [02:46:47] <spronk> :P
479: [02:47:26] <guzzlefry> peter_w: it happens
480: [02:47:59] <Pyromanik> I find that when it happens, it's usually about 80% ignorance.
481: [02:48:02] <zagoodwin> what does Silverstripe sort images with by default?
482: [02:48:02] <Pyromanik> that causes it
483: [02:48:07] <antmas_> peter_w: we all kinda do, we just keep quiet about it :X
484: [02:48:15] <Pyromanik> zagoodwin: same thing it does all dataobjects so far as I know
485: [02:48:23] * antmas quit (Ping timeout: 250 seconds)
486: [02:48:24] <Pyromanik> (created/id)
487: [02:48:25] <peter_w> i have literally removed every single module and every bit of custom code and I still cannot add pages
488: [02:48:38] <Pyromanik> peter_w: you did that backwards :<
489: [02:48:53] <Pyromanik> make a fresh install and transfer stuff into it until it breaks.
490: [02:49:09] <Pyromanik> if it never does, just blame the fix on upgrading.
491: [02:49:32] <DaShiVaDan> ^^ +1
492: [02:50:55] <peter_w> what worse is it works on my localhost
493: [02:50:59] <peter_w> but not on the server
494: [02:51:51] <antmas_> peter_w: are you pushing changes up via FTP?
495: [02:52:08] * antmas_ is now known as antmas
496: [02:52:54] <Pyromanik> Suddenly Southerly!
497: [02:53:16] <antmas> Pyromanik: you're in chch right?
498: [02:53:48] <peter_w> antmas: I am using a mix of svn and composer
499: [02:53:57] <peter_w> so modules with composer
500: [02:54:05] <peter_w> and custom code with svn
501: [02:54:14] <Pyromanik> antmas: yup
502: [02:54:20] <peter_w> ok here we go..i will start from fresh
503: [02:54:41] <antmas> peter_w: ah, nevermind
504: [02:54:57] <antmas> Pyromanik: hmmmm, some reason I though you were up this way.
505: [02:55:09] <antmas> heavy rain warning for us AGAIN :<
506: [02:56:42] * SightUnseen has joined #silverstripe
507: [02:56:58] * SightUnseen has left #silverstripe
508: [03:08:19] <Pyromanik> happens every spring
509: [03:08:37] <Pyromanik> it's like all of NZ forgets what happens every spring every time spring comes around again.
510: [03:10:39] <antmas> yup, but it is early for us
511: [03:11:24] <Pyromanik> urgh, wtf.
512: [03:11:26] <Pyromanik> http://api.silverstripe.org/3.0/source-class-GridFieldDetailForm.html#292
513: [03:11:31] <Pyromanik> no getCMSActions
514: [03:11:35] <Pyromanik> why?
515: [03:11:37] <Pyromanik> :<
516: [03:11:41] <Pyromanik> :'(
517: [03:12:34] <DaShiVaDan> [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
518: [03:12:52] * DaShiVaDan wasting time with computer humour... sorry.
519: [03:14:32] <guzzlefry> I don't get it.
520: [03:14:53] <guzzlefry> Pyromanik: because getCMSActions is on dataobjects?
521: [03:15:10] <Pyromanik> guzzlefry: yes, but this is the gridfield action form doofer thing
522: [03:15:13] <Pyromanik> that pops up
523: [03:15:18] <Pyromanik> and lets us edit things
524: [03:15:20] <Pyromanik> and save
525: [03:15:25] <Pyromanik> OR DELETE ONLY
526: [03:15:29] <Pyromanik> :'(
527: [03:15:43] <guzzlefry> oh
528: [03:16:00] <Pyromanik> 16:12 < DaShiVaDan> [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
529: [03:16:03] <Pyromanik> hahahahah
530: [03:16:06] <Pyromanik> Russian Roulette
531: [03:16:53] <guzzlefry> oh
532: [03:16:56] <Pyromanik> love it, gonna test it when I get home
533: [03:18:12] <peter_w> ok I used a fresh install
534: [03:18:21] <peter_w> still get the problem
535: [03:18:24] <peter_w> WTF
536: [03:18:52] <guzzlefry> Are you getting an error?
537: [03:19:19] <guzzlefry> Pyromanik: Do you want actions on the individual rows?
538: [03:25:27] <zagoodwin> function BoardSlideshow() { return BoardSlideshow::get()->sort('Title'); }
539: [03:26:07] <zagoodwin> for some reason this is giving me a blank page when i try to access BoardSlideshow
540: [03:26:25] <guzzlefry> http://api.silverstripe.org/3.0/class-GridField_URLHandler.html
541: [03:27:04] <guzzlefry> hrm
542: [03:27:22] <guzzlefry> Pyromanik: Maybe you need to add components to GridFieldConfig.
543: [03:27:37] <guzzlefry> zagoodwin: Check error log.
544: [03:30:33] <antmas> zagoodwin: is this an image gallery you're using?
545: [03:33:21] <zagoodwin> nah just trying to create my own, saying fatal error - cannot find class BoardSlideshow
546: [03:34:08] <antmas> hmmm
547: [03:34:41] <zagoodwin> my class is BoardPage not BoardSlideshow, BoardSlideshow is just the upload field name
548: [03:34:49] <zagoodwin> i think im accessing it wrong
549: [03:35:10] <antmas> prolly
550: [03:35:30] * antmas quit (Quit: Page closed)
551: [03:36:11] <zagoodwin> how do you access an item in this sense?
552: [03:37:58] <Pyromanik> guzzlefry: I want an action on the detail form
553: [03:38:11] <guzzlefry> oh so
554: [03:38:12] <Pyromanik> which the default one apparently doesn't hanlde, nor does it handle permissions.
555: [03:38:16] <DaShiVaDan> Pyromanik: I'm tempted to run it myself......
556: [03:38:24] <Pyromanik> run it?
557: [03:38:27] <guzzlefry> Pyromanik: Wouldn't that be on the DataObject?
558: [03:38:32] <Pyromanik> DaShiVaDan: oh, roulette
559: [03:38:33] <Pyromanik> haha
560: [03:38:37] <guzzlefry> wait, I guess not
561: [03:38:40] <Pyromanik> guzzlefry: nope
562: [03:38:47] <Pyromanik> that's what I'm saying. I'd expect it to be, but it's not.
563: [03:38:55] <Pyromanik> it hard wires "save" and "delete"
564: [03:39:08] <guzzlefry> also
565: [03:39:19] <guzzlefry> need a damn "Add Another" button on the detail form.
566: [03:39:33] <Pyromanik> guzzlefry: only when you've just added one, it's not that simple.
567: [03:39:48] <Pyromanik> ie, because web stateless.
568: [03:39:58] <Pyromanik> you need to know somehow that you just finished adding an object.
569: [03:40:11] <Pyromanik> after it's redirected you to the view page.
570: [03:46:09] * BPower has joined #silverstripe
571: [03:47:40] <BPower> So, I want: DataObject::get('Customer')->filter('IsSticky',true)->filter('IsFeatured',true); -- except I want it to be "OR" not "AND".. What's the best way to go about this with the 3.1 ORM?
572: [03:50:15] * peter_ss quit (Ping timeout: 252 seconds)
573: [03:50:38] <BPower> Everyone's asleep, ay?
574: [03:51:41] <guzzlefry> shouldn't be
575: [03:51:58] <BPower> guzzlefry's awake.
576: [03:52:08] * BPower is awake.
577: [03:52:32] <guzzlefry> I think that's hidden in the docs.
578: [03:53:03] <Pyromanik> BPower: at 5pm
579: [03:53:04] <Pyromanik> nah
580: [03:53:33] <Pyromanik> only 3 in AU, unless they're in QLD, in which case it's still 2!
581: [03:53:33] <BPower> Pyromanik's awake.
582: [03:53:44] <BPower> that's what I thought
583: [03:54:02] <BPower> 'cause it's 11am in Vietnam.
584: [03:54:12] * BPower used to live there.
585: [03:54:43] <guzzlefry> BPower: filterAny()
586: [03:54:44] * Pyromanik didn't.
587: [03:54:59] <guzzlefry> "In case you want to match multiple criteria non-exclusively (with an "OR" disjunctive),use the filterAny() method instead:"
588: [03:54:59] <Pyromanik> ^^
589: [03:55:10] <Pyromanik> BPower: also, use arrays.
590: [03:55:27] <guzzlefry> I should probably take the time to read and practice the stuff in the docs...
591: [03:55:30] <guzzlefry> So I remember it. :P
592: [03:55:31] <Pyromanik> filterAny(array('IsSticky', 'IsFeatured'), true)
593: [03:55:34] <Pyromanik> might work
594: [03:55:44] <Pyromanik> might need to be key=>value
595: [03:55:45] <BPower> guzzlefry: you're amazing.
596: [03:55:50] <BPower> Pyromanik: you too
597: [03:56:10] <Pyromanik> guzzlefry: it's because simon_w actually writes docs!
598: [03:56:18] <BPower> I think, since it's bool, I can probably just do filterAny(array('IsSticky','IsFeatured'))
599: [03:57:44] <BPower> The ORM doesn't look at getIsSticky anymore, right?
600: [03:59:17] <spronk> hey irogue23 what are WD routers like?
601: [04:01:31] <ss23> WD make *routers*?!
602: [04:02:39] * peter_ss has joined #silverstripe
603: [04:02:52] <peter_ss> is there any field for select2 in SS?
604: [04:03:03] <peter_ss> i mean a multiple select but using the select2 plugin
605: [04:03:14] <irogue23> spronk, ss23: that's a terrifying thought
606: [04:26:07] * cloph quit (Ping timeout: 246 seconds)
607: [04:30:04] * cloph_away has joined #silverstripe
608: [04:31:19] * jrthomer quit (Remote host closed the connection)
609: [04:33:41] * jrthomer has joined #silverstripe
610: [04:34:28] <zagoodwin> Is there any way to re-arrange the layout of a form in the template?
611: [04:34:46] <zagoodwin> instead of printing just one bif straight form?
612: [04:35:48] <DaShiVaDan> zagoodwin: how do you mean? like breaking it into multiple parts?
613: [04:37:45] * wilr_ quit (Quit: wilr_)
614: [04:39:52] * simon_w has joined #silverstripe
615: [04:40:57] * jrthomer quit (Read error: Connection reset by peer)
616: [04:41:35] * jrthomer has joined #silverstripe
617: [04:41:49] * HONEY_ quit (Read error: Connection reset by peer)
618: [04:42:06] * HONEY has joined #silverstripe
619: [04:42:30] * HONEY is now known as Guest15319
620: [04:42:36] <spronk> ya they do
621: [04:42:51] <spronk> last time i checked they were actually reasonably good at electronics, so...
622: [04:43:00] <simon_w> Ansible is so much nicer than my custom-built scripts
623: [04:43:22] <simon_w> Could probably change my scripts so that they're just wrappers now
624: [04:45:50] <zagoodwin> yeah getting the form into multiple parts would be good
625: [04:46:15] <zagoodwin> keeping the same internal structure though as it's set up with validation etc
626: [04:47:22] <spronk> ansible vs chef etc?
627: [04:48:41] * Nightjar has joined #silverstripe
628: [04:49:43] <ss23> ansible doesn't scale to thousands of servers, right/
629: [04:50:38] <simon_w> yeah it does
630: [04:50:49] <ss23> oh mmk
631: [04:51:00] <ss23> thought it was one of the ones where you have to ssh in
632: [04:51:15] <simon_w> Yes, and?
633: [04:51:15] <ss23> (meaning sequentailly ssh into 1k servers after every change etc)
634: [04:51:28] <simon_w> Pfft, sequential
635: [04:51:48] <ss23> lol
636: [04:52:04] <simon_w> There's this handy little -f flag
637: [04:52:06] <ss23> first result on google for "ansible scale" -> "automated large scale deployment, with ansible pull-mode"
638: [04:52:17] <simon_w> Yeah, there's also pull mode
639: [04:52:31] <spronk> (realistically, how many places actually have thousands of servers?)
640: [04:52:56] <ss23> spronk: I don't think ansible is bad because of it, just seeemd like something to kepe in mind
641: [04:53:00] <simon_w> The ones they advertise as using the product, and that's about it
642: [04:53:10] <ss23> though evidently people have just worked around it well enough, so not a big deal
643: [04:53:51] <simon_w> But a 90% reduction in LoC for deploy script is nice
644: [04:55:05] <simon_w> Also, is going to make it nicer to set jarjar up properly
645: [04:57:44] <ss23> Anyone seen a bug where database is fine, but front end displays the wrong published/created dates?
646: [04:58:02] <peter_w> ONE GODDMAN NEWLINE in my environment file
647: [04:58:15] <peter_w> that is all it takes to break silverstripe
648: [04:58:19] <peter_w> so so so so annoying
649: [04:58:25] <ss23> XD
650: [04:58:37] <peter_w> at least I found it
651: [05:01:28] <ss23> goddam silverstripe's magic can be annoying to find
652: [05:01:34] <ss23> I know a varibale is coming from somewhere...
653: [05:01:35] <ss23> but idk where
654: [05:06:57] <spronk> hahaha
655: [05:06:57] <spronk> yeah
656: [05:07:07] <spronk> simon_w: how do you manage your config files
657: [05:07:18] <spronk> database usernames, service addies etc?
658: [05:07:36] <irogue23> < spronk> last time i checked they were actually reasonably good at electronics, so...
659: [05:07:37] <Nightjar> peter_w: so what you're saying is that you don't know not to ?> all the time.
660: [05:07:54] <irogue23> idk, WDTV are pretty shite. HDD companies tend to suck at anything involving software.
661: [05:07:58] <simon_w> spronk, currently, they're configured on a per-app basis, so in the app's VCS
662: [05:08:01] <ss23> Nightjar: could be a newline at the start too!
663: [05:08:04] <irogue23> e.g. drive firmware
664: [05:08:12] <Nightjar> true it could
665: [05:08:20] <spronk> hmm
666: [05:08:34] <spronk> ugh
667: [05:08:40] <spronk> my extend() hook ain't working
668: [05:08:51] <ss23> fix it fix it fix it fix it fix it fix it!
669: [05:09:27] <Nightjar> urgh
670: [05:09:31] <Nightjar> direct input you suck balls
671: [05:09:48] <spronk> i added $this->extend() to process() in userforms
672: [05:09:54] <spronk> but..... not get called :(
673: [05:10:03] <spronk> do i need to give it a special name or something
674: [05:10:58] <DaShiVaDan> zagoodwin: sorry, was working, you still about?
675: [05:10:59] <spronk> ohh
676: [05:11:00] <spronk> it's the controller
677: [05:11:01] <spronk> fucukkkk
678: [05:16:06] <peter_w> Nightjar: yeah it was a newline before <?php
679: [05:16:16] <Nightjar> lol
680: [05:16:27] <peter_w> i dont put ?> at the end of the files but i dont know why....why is that
681: [05:16:49] <ss23> Guyse...
682: [05:16:55] <spronk> peter_w: because if you put ?> followed by a newline, PHP will outpuot the newline
683: [05:16:56] <ss23> https://github.com/silverstripe/silverstripe-cms/blob/3.1/templates/CMSPageHistoryController_versions.ss#L16
684: [05:16:57] <spronk> which is bad
685: [05:17:02] <ss23> $LastEdited is a string, how does this work?
686: [05:17:02] <spronk> avoiding ?> removes that change
687: [05:17:04] <spronk> chance
688: [05:17:18] <spronk> .. what?
689: [05:17:18] <peter_w> ah right ok that makes sense
690: [05:17:19] <peter_w> thanks
691: [05:17:44] <spronk> are you sure it's a string, ss23, and not a database object?
692: [05:17:55] <ss23> I'm 100% sure it's not when I'm investigating this bug
693: [05:18:00] <spronk> o_O
694: [05:18:02] <ss23> But I'm not 100% sure that it's not *meant* to be...
695: [05:18:21] <ss23> ["LastEdited"]=>
696: [05:18:21] <ss23> string(19) "2013-10-30 17:44:57"
697: [05:18:22] <ss23> right?
698: [05:18:24] <ss23> Isn't that normal?
699: [05:18:55] <DesignerX> hi, $AllChildren is not working in template after I disabled "show in menu" .. has this been changed in SS3 ?
700: [05:19:13] <spronk> hmm
701: [05:19:14] <spronk> :S
702: [05:19:27] <Nightjar> no, scope issue DesignerX
703: [05:19:58] <DesignerX> Nightjar: nah, $Children was working, I just disabled Show in meny & changed the $var in template
704: [05:20:01] <Nightjar> ss23: depends on how you're accessing it
705: [05:20:03] <DesignerX> menu *
706: [05:20:28] <ss23> Nightjar: Well, you can see how it's being accessed there, but I'm just var_dump()ing it
707: [05:22:06] <Nightjar> ss23: well string would be right then
708: [05:22:29] <DesignerX> I enabled "Show in menu" on one of the pages & now it shows up .. I think $AllChildren is broken in SS3.1 ?
709: [05:22:52] <ss23> I really don't know how it even works
710: [05:23:40] <ss23> maybe somehow my var_dump breaks crap
711: [05:24:53] <spronk> lol
712: [05:25:07] <spronk> voda claiming that outage last night wasnt widespread
713: [05:25:32] <spronk> eventrademe were having issues with queued emails to ihug and voda
714: [05:27:25] * zagoodwin quit (Ping timeout: 250 seconds)
715: [05:28:30] <Nightjar> yeah maybe it took a dump all over your vars
716: [05:29:15] * peter_w quit (Quit: Page closed)
717: [05:29:22] <Colin[pi]> I think I just annoyed a firefox dev on reddit
718: [05:29:44] <Colin[pi]> they have an AMA, I asked "when will firefox be able to use less than 500GB of memory?"
719: [05:29:59] <Colin[pi]> he replied "When you stop opening 500 1GB high-res photos simultaneously"
720: [05:30:08] <Nightjar> OH SNAP
721: [05:30:12] <Colin[pi]> BURN
722: [05:35:00] <ss23> lol
723: [05:35:04] <ss23> I got raged at and downvoted in one too
724: [05:35:31] <ss23> I was like "I want a browser thats actually good, I don't care whether it's opensource or not. Claiming that you should use Firefox because 'It's not run by Google!' instead of a real reason doesn't make me want to use it"
725: [05:35:36] <ss23> Turns out people rage at that
726: [05:36:29] <guzzlefry> Is Mozilla dodging questions?
727: [05:36:57] <guzzlefry> Also, to be fair, Chrome uses roughly the same amount of RAM in my experience.
728: [05:37:46] <ss23> Chrome actually segregates processes (and doesn't break the entire thign when Flash dies, though I hear ff fixed that)
729: [05:37:49] <ss23> So worth it
730: [05:37:52] <ss23> :P
731: [05:38:57] <guzzlefry> ah
732: [05:39:04] <guzzlefry> I still prefer Firefox
733: [05:39:10] <guzzlefry> soley for add-ons :P
734: [05:39:16] <guzzlefry> solely*
735: [05:39:25] * travis-ci has joined #silverstripe
736: [05:39:25] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1446 (master - 1a3a716 : Will Rossiter): The build passed.
737: [05:39:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/328a98dd2570...1a3a71635221
738: [05:39:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13246445
739: [05:39:25] * travis-ci has left #silverstripe
740: [05:39:31] <guzzlefry> Flash no longer crashes it by the way.
741: [05:39:33] <guzzlefry> It just uh
742: [05:39:45] <guzzlefry> freezes the entire browser for a couple of seconds. >_>
743: [05:41:12] <guzzlefry> also
744: [05:41:20] <guzzlefry> reading the Firefox 25 changelog, what is this madness: iframe document content can now be specified inline
745: [05:41:52] <irogue23> yeah, the process segregation
746: [05:41:54] <Nightjar> it was always supposed to be iirc
747: [05:41:58] <irogue23> i just can't handle not having that
748: [05:42:08] <Nightjar> oh, I see what you mean.
749: [05:42:14] <Nightjar> inside the iframe.
750: [05:42:33] <Nightjar> guzzlefry Flash no longer crashes it by the way.
751: [05:42:38] <Nightjar> are you talking about chrome or firefox?
752: [05:42:50] <Nightjar> the flash in chrome freezes the shit out of chrome for me.
753: [05:43:01] <ss23> Never had problems with Flash in Chrome for me
754: [05:43:06] <ss23> But presume he's talking about Firefox
755: [05:43:38] <ss23> My limited experience is also that exploiting a Firefox bug is about a million times easier than a Chrome one
756: [05:43:45] <ss23> Very uninformed opinion though!
757: [05:44:25] <guzzlefry> Nightjar: Firefox.
758: [05:44:54] <guzzlefry> ss23: Are you an annonymous?!
759: [05:45:01] <ss23> I AM ANONMOUSE!
760: [05:45:06] * guzzlefry calls the NSA
761: [05:45:07] <guzzlefry> oh wait
762: [05:45:07] <ss23> jk
763: [05:45:09] <guzzlefry> they already know!
764: [05:45:10] <ss23> I hate anonymous!!!!
765: [05:45:14] <ss23> I am th3j3st3r
766: [05:45:18] <ss23> ^.^
767: [05:45:19] <guzzlefry> :P
768: [05:45:24] <guzzlefry> I'm not a fan of them. >_>
769: [05:45:30] <guzzlefry> but, politics, so I stop :P
770: [05:45:32] <ss23> lol
771: [05:45:36] <ss23> I think they're stupid too
772: [05:45:37] <ss23> :P
773: [05:45:41] <ss23> But I also think anon is stupid
774: [05:45:43] <ss23> Along with most things
775: [05:46:46] <guzzlefry> like...those "easy open" resealable bags of shredded cheese.
776: [05:47:18] <guzzlefry> Usually ends up being "fuck it I'l use a twist tie" bags.
777: [05:47:22] <Nightjar> Cheese comes in blocks, and it's yellow because we're not batshit insane
778: [05:48:01] <Nightjar> uh hoh
779: [05:48:04] <Nightjar> computer froze
780: [05:48:12] <Nightjar> halp, wut do
781: [05:48:18] <simon_w> Kick it
782: [05:48:20] <guzzlefry> kill firefox process trololol
783: [05:48:35] <guzzlefry> wait
784: [05:48:38] <guzzlefry> how are you still typing? :P
785: [05:48:38] <Nightjar> guzzlefry: I don't think you understand this 'frozen' concept
786: [05:48:39] * simon_w quit (Quit: Leaving)
787: [05:48:44] <Nightjar> 2 computers :P
788: [05:48:47] <ss23> 1 2 3 kick it!
789: [05:48:50] <ss23> Drop taht beat like an ugly baby!
790: [05:48:54] <guzzlefry> 1337
791: [05:49:04] <guzzlefry> well
792: [05:49:12] <Nightjar> time to see if it'll boot...
793: [05:49:22] <guzzlefry> I usually wait for any major hard drive activity to go away first
794: [05:49:31] * travis-ci has joined #silverstripe
795: [05:49:31] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#637 (3.1 - 5101db9 : Will Rossiter): The build is still failing.
796: [05:49:31] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/a24d84a6dffc...5101db94727c
797: [05:49:31] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13246615
798: [05:49:31] * travis-ci has left #silverstripe
799: [05:49:33] <guzzlefry> But that probably doesn't matter with a journaled filesystem.
800: [05:49:43] <guzzlefry> ss23: ^ fix plz
801: [05:49:52] * iamss has joined #silverstripe
802: [05:50:24] <guzzlefry> wonder if anyone merged my PR yet
803: [05:51:19] <ss23> nope ur problem not mine!
804: [05:51:33] <guzzlefry> ss23: Do I get any notification about that?
805: [05:51:50] <ss23> When someone comments/merges a PR you're CC'd on , yeah
806: [05:52:22] * guzzlefry doesnt' see it.
807: [05:52:54] <guzzlefry> weee
808: [05:55:40] <guzzlefry> ss23: https://github.com/silverstripe/silverstripe-translatable/pull/150 Can't tell if went in code...
809: [05:56:27] * iamss quit (Ping timeout: 250 seconds)
810: [05:57:03] <ss23> guzzlefry: It was added to the code, but not via a merge of your pull request
811: [05:57:09] <ss23> Looks like simon manually took the commit and pushed it for you
812: [05:57:25] <guzzlefry> ah
813: [05:57:29] <guzzlefry> meh, still yay
814: [05:57:54] * guzzlefry has made his mark on the world.
815: [05:58:03] <guzzlefry> Now I must retire. :P
816: [05:59:46] * iamss has joined #silverstripe
817: [06:01:10] <iamss> Hi everyone. I need suggestions where to get only SS projects?
818: [06:01:54] <Nightjar> what
819: [06:02:13] <Nightjar> you mean look for work?
820: [06:02:21] <Nightjar> jobs.silverstripehq.com
821: [06:04:13] <iamss> yeah .. sorry for my bad english
822: [06:04:28] <iamss> thanks NIghtjar
823: [06:04:28] <Nightjar> it's cool
824: [06:04:43] <Nightjar> sorry to say there aren't many "Silverstripe only" places.
825: [06:04:52] <Nightjar> you just have to find it amongst all the other normal places :(
826: [06:05:08] <Nightjar> iamss: there's also the silverstripe developer network
827: [06:05:15] <Nightjar> on silverstripe.org
828: [06:06:16] <iamss> I tried to register to the SS developer network and requires me to atleast showcase a project I built
829: [06:06:31] <Nightjar> ah, yeh.
830: [06:06:46] <Nightjar> qlex, right?
831: [06:09:42] <iamss> qlex?
832: [06:16:23] * iamss quit (Ping timeout: 250 seconds)
833: [06:16:43] <Nightjar> ah, I remember a guy went by qlex saying the same thing once
834: [06:24:44] <Zauberfisch23> just force your client to switch to silverstripe
835: [06:24:48] <Zauberfisch23> problem solved
836: [06:28:06] * travis-ci has joined #silverstripe
837: [06:28:06] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1447 (master - 9633f49 : Will Rossiter): The build passed.
838: [06:28:06] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/1a3a71635221...9633f49aaf76
839: [06:28:06] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13247340
840: [06:28:06] * travis-ci has left #silverstripe
841: [06:36:24] <peter_ss> guy is the DataType currency still exist in 3.1.1?
842: [06:37:52] <guzzlefry> yes
843: [06:40:18] * EasyCo quit (Quit: We can't stop here, this is bat country)
844: [06:45:20] <ss23> `nono Versioned.php`
845: [06:45:20] <ss23> :<
846: [06:49:29] * jrthomer_ has joined #silverstripe
847: [06:49:50] * peter_ss1 has joined #silverstripe
848: [06:50:06] * jrthomer quit (Ping timeout: 252 seconds)
849: [06:50:16] * peter_ss quit (Ping timeout: 240 seconds)
850: [06:51:37] <Nightjar> vyn Versioned.php
851: [06:51:49] <Nightjar> :>
852: [07:09:21] * C10ne has joined #silverstripe
853: [07:18:58] * C10ne quit (Quit: Page closed)
854: [07:21:25] * BPower quit (Remote host closed the connection)
855: [07:27:30] * openbees has joined #silverstripe
856: [07:29:44] <ss23> I seriosuly
857: [07:29:45] <ss23> this bug
858: [07:29:50] <ss23> idek
859: [07:29:59] <ss23> THERE HAS TO BE SOMETHING SPEICAL ABOUT THIS DATE
860: [07:30:00] <ss23> fuck me
861: [07:30:53] <ss23> This fucking field is being populated with a value even though it's null in the database...
862: [07:30:56] <ss23> GODDAM IT
863: [07:34:04] <openbees> How to get something like "Showing 1-10 of 50 pages" from a paginated list.. looks small things but has become TPIB :(
864: [07:36:10] <openbees> closest I could go ... Currently showing $PaginatedPages.getPageStart - $PaginatedPages.getPageLength of $PaginatedPages.count "
865: [07:36:37] <ss23> uh
866: [07:37:00] <ss23> openbees: math?
867: [07:37:14] <ss23> openbees: PaginatedPages.count / $amount of stuf fper page
868: [07:37:16] <ss23> == amount of pages
869: [07:37:19] <openbees> :O will it work in template ?
870: [07:37:38] <ss23> You can do math in a template! :D
871: [07:37:43] <ss23> If you have the right varialbes, at least
872: [07:37:44] <openbees> damn
873: [07:38:35] <Nightjar> http://motorola-blog.blogspot.co.nz/2013/10/goodbye-sticky-hello-ara.html
874: [07:40:53] <Nightjar> ss23: are you sure?
875: [07:40:56] <Nightjar> since 3.1?
876: [07:41:00] <ss23> I don't know
877: [07:41:03] <ss23> I thought you always could?
878: [07:41:04] <ss23> Like
879: [07:41:05] <ss23> Math, right
880: [07:41:29] * skorp has joined #silverstripe
881: [07:41:37] <ss23> Like, 99% sure you can
882: [07:41:39] <ss23> But I haven't checked...
883: [07:42:07] <Nightjar> ss23: never.
884: [07:42:13] * Liquide quit ()
885: [07:42:14] <ss23> Never what?
886: [07:42:16] <Nightjar> you can equality, but not math.
887: [07:42:22] <ss23> Laaaame
888: [07:42:27] <ss23> openbees: Same idea then, make a function for it :P
889: [07:42:28] <Nightjar> nou
890: [07:42:36] <ss23> (Another reason for #fucktempltaes)
891: [07:43:01] <Nightjar> The difference being that in 3.1 you could define some global template provider functions that provide you with functions like sum() and stuff
892: [07:43:02] <openbees> yaah I did finally .. created a function for both start and end :|
893: [07:43:14] <Nightjar> because you can pass vars in from template
894: [07:43:15] <openbees> I was looking for some inbuilt functions in Pagination
895: [07:43:27] <Nightjar> openbees: but there are
896: [07:43:47] <openbees> what's that ?
897: [07:44:11] <Nightjar> already stuff built into paginated list
898: [07:45:49] <openbees> hmm I am happy with my functions :D .. will look later in pagination class probably missed something .. thanks ss23 and Nightjar
899: [07:46:37] <Nightjar> $PageStart / $PageLength of $TotalItems
900: [07:46:44] <Nightjar> err / = -
901: [07:46:57] * aragonne quit (Quit: aragonne)
902: [07:51:12] * deanclkclk quit (Ping timeout: 268 seconds)
903: [08:01:19] * jrthomer_ quit (Read error: Connection reset by peer)
904: [08:18:54] * SightUnseen has joined #silverstripe
905: [08:19:15] * SightUnseen has left #silverstripe
906: [08:20:02] * jrthomer has joined #silverstripe
907: [08:21:04] <ss23> http://liveweave.com/TcZrXF pretty lights
908: [08:50:20] <Nightjar> I lol'd
909: [08:50:21] <Nightjar> http://www.youtube.com/watch?v=CfUc5NUYuXs
910: [08:51:24] <Nightjar> also ss23, no pretty lights.
911: [08:52:26] <Nightjar> http://prettylightsmusic.com/
912: [08:52:30] <Nightjar> this r pretty lights.
913: [08:54:29] <Nightjar> oic, opera 12, no webgl :(
914: [08:55:38] <Nightjar> but new pretty lights album, yus.
915: [08:59:41] * lerni has joined #silverstripe
916: [09:01:56] * kinglozzer has joined #silverstripe
917: [09:02:39] <irogue23> g'day kinglozzer
918: [09:02:48] <kinglozzer> Hey irogue23
919: [09:02:59] <zippy__> hello
920: [09:04:15] * openbees quit (Quit: Leaving)
921: [09:04:40] <irogue23> has anyone else tried this new Pepsi Max Kick?
922: [09:05:15] * Jakx has joined #silverstripe
923: [09:05:18] <irogue23> i think i'm in love with it
924: [09:05:33] <Jakx> y
925: [09:05:34] <Jakx> o
926: [09:05:46] <Jakx> = yo
927: [09:05:47] <Nightjar> hi
928: [09:05:50] <Nightjar> h
929: [09:05:50] <Nightjar> i
930: [09:05:57] <Jakx> ^
931: [09:06:04] <irogue23> sup Jakx
932: [09:06:48] <Jakx> I just updated a 2.4 site with a git deployment and I'm now getting a weird error.
933: [09:06:59] <irogue23> anyone up in here know any C++ freelancers?
934: [09:07:13] <irogue23> Jakx: tell me more, tell me more
935: [09:07:19] <Jakx> PHP Warning: Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. in .../sapphire/core/control/Director.php on line 388
936: [09:07:20] <irogue23> (was it love at first sight?)
937: [09:07:31] <Jakx> irogue23, lol - working late?
938: [09:07:49] <irogue23> Jakx: always. i work for myself, and i like sleeping in the daytime :P
939: [09:08:02] <Jakx> irogue23, ah - fairynuff
940: [09:08:03] <Nightjar> It's fun at first but then you miss the sun
941: [09:08:05] <irogue23> Jakx: using nginx by chance?
942: [09:08:12] <Jakx> irogue23, apache
943: [09:08:15] <Nightjar> mind you in hamiltron there's no sun until ~1pm anyway
944: [09:08:21] <irogue23> Jakx: hmm, weird then
945: [09:08:45] <Nightjar> Jakx: your request is not telling the server which host it wants. Stop connecting via IP address.
946: [09:09:29] <Jakx> Nightjar, connecting via a subdomain
947: [09:09:31] <irogue23> even connecting by ip, the host should still be the IP
948: [09:09:31] <Nightjar> irogue23: I know a C++ freelancer.
949: [09:09:44] <Nightjar> Jakx: check your outgoing request
950: [09:09:46] <irogue23> Jakx: anything changed in your apache/php setup?
951: [09:09:49] <Nightjar> it should have a Host: header
952: [09:10:04] <irogue23> either your client isn't sending a Host: header somehow, or the server's stripping it somewhere
953: [09:10:21] <irogue23> you mostly see it with nginx + php-fpm setups, where you have to explicitly tell nginx which headers to pass on to php-fpm
954: [09:10:40] <Jakx> Nightjar, aaaah wtf. I just opened up my NET logger and the error is gone ><
955: [09:10:50] <irogue23> Nightjar: tell me more
956: [09:11:10] <Nightjar> irogue23: in no position to help you out though. Since you are the C++ freelancer I know.
957: [09:11:16] <irogue23> hahaha
958: [09:11:35] <Nightjar> You just asked if I knew one, and it appears I do.
959: [09:11:36] <irogue23> thats the problem, i don't know C++ in the slightest :P
960: [09:11:41] <Nightjar> oh
961: [09:11:45] <Nightjar> well in that case
962: [09:11:49] <Nightjar> what's your problem
963: [09:12:09] <Nightjar> I mean like, what's your problem as in, dafuq you look'n at fool!
964: [09:12:20] <irogue23> i need someone who *does* know how2 c++ to take it over :P
965: [09:12:22] <Nightjar> no, not really. Tell me your C++ fun
966: [09:12:28] <Nightjar> oh
967: [09:12:32] <Nightjar> I know C++
968: [09:12:41] <Nightjar> but I don't want to take anything over :(
969: [09:12:43] <irogue23> lol
970: [09:12:52] <Nightjar> what is it?
971: [09:13:10] <irogue23> integration project between an IP camera and a sound (dB) meter
972: [09:13:20] <irogue23> i pulled most of it
973: [09:13:22] <irogue23> but threading
974: [09:13:41] <irogue23> is going to be the death of me
975: [09:13:49] <irogue23> *pulled most of it off
976: [09:13:49] <irogue23> rofl
977: [09:15:11] <Nightjar> threading?
978: [09:15:26] <Nightjar> semaphore all the things!
979: [09:16:14] <kinglozzer> Wow. Just found out the ecom platform we used to use only md5 hashes customer passwords...
980: [09:16:31] <irogue23> Nightjar: yeah, this thing needs to have multiple processes running full-time
981: [09:16:55] <irogue23> grabbing data from meter using a dodgy SDK and pushing it to the camera via authenticated GETs
982: [09:17:10] <irogue23> is... "fun"
983: [09:18:37] <Nightjar> kinglozzer: the j-word mod-x?
984: [09:19:06] <kinglozzer> No, actually http://lemonstand.com/
985: [09:19:13] <Nightjar> irogue23: sounds like you need a messageueue!
986: [09:19:19] <Nightjar> kinglozzer: haha, I looked at that
987: [09:19:35] <Nightjar> was all "hmm this looks promising" but then it's pay for and expensive.
988: [09:19:50] <irogue23> yeah
989: [09:19:57] <irogue23> was by far the nicest to use of all the ones i tried
990: [09:19:59] <irogue23> but omg the price
991: [09:20:31] <kinglozzer> irogue23 / Nightjar Yeah, have you seen the 'new Lemonstand' pricing?
992: [09:20:35] <irogue23> Nightjar: sure you don't want any work? :-P
993: [09:21:29] <irogue23> kinglozzer: nah
994: [09:21:35] <kinglozzer> If you want to host it on your own server, Pricing: $1499USD/year/server
995: [09:21:36] <irogue23> i'm using Shopify now, cos lazy
996: [09:21:54] <ss23> http://ss23.geek.nz/sparkles/ fullscreen sparkles
997: [09:22:13] <kinglozzer> ss23: Awesome
998: [09:24:14] * r3v3rb has joined #silverstripe
999: [09:24:45] <r3v3rb> hello
1000: [09:24:52] <irogue23> kia ora r3v3rb
1001: [09:25:00] <r3v3rb> owooooga
1002: [09:25:09] <r3v3rb> I'll be your dawg irogue23
1003: [09:25:38] <Nightjar> I don't even know.
1004: [09:25:47] <Nightjar> irogue23: yeah work would be good.
1005: [09:25:49] <r3v3rb> so 2.4.12 got a form no different to any others on a site that refuses to fill the template with the submitted data...
1006: [09:26:07] <r3v3rb> Array ( [url] => /edirect/feedbackform/FBForm [TraineeName] => MinchinMan [EngineerName] => Yoda [products] => Array ( [0] => Little Sister SES 113B/225B [1] => Little Sister SHS 800 ) [prepared] => fair [knowledgable] => fair [delivered] => good [provided] => good [interest] => good [techniques] => good [materials] => excellent [effective] => excellent [objectives] => no [different] => https://www.facebook.com/[like] =>
1007: [09:26:07] <r3v3rb> https://www.facebook.com/[suggest] => https://www.facebook.com/[Site] =>E Direct [SecurityID] => 33883b3ff8bf10ef95380e076ba22bc7fbb3b860 [action_doContact] => Submit )
1008: [09:26:15] <r3v3rb> is the submitted data using print_r
1009: [09:26:49] <r3v3rb> there is a space between the facebook addresses i goofed in the paste!
1010: [09:27:04] <Nightjar> It'll be in the way you handle the data
1011: [09:27:06] <r3v3rb> Could it be because products is an array itself?
1012: [09:27:15] <Nightjar> possibly
1013: [09:27:16] <Nightjar> probably
1014: [09:27:16] <r3v3rb> from a checkboxset
1015: [09:27:32] <Nightjar> it just looks for a value, not so much to ensure that all values are sane.
1016: [09:27:38] <r3v3rb> so I'll need to make that a dataset first then
1017: [09:27:43] <Nightjar> oh wait what
1018: [09:27:45] <Nightjar> hang on
1019: [09:27:49] <r3v3rb> hanging
1020: [09:27:51] <Nightjar> the form populates properly
1021: [09:27:56] <r3v3rb> form is fine
1022: [09:27:58] <Nightjar> except for one CheckboxSetField?
1023: [09:28:02] <r3v3rb> data is submitted
1024: [09:28:11] <r3v3rb> checkbox set is fine in the form
1025: [09:28:30] * spronk2 has joined #silverstripe
1026: [09:28:38] <r3v3rb> its the email template doesn't receive the data when processing the form submission
1027: [09:29:02] <Jakx> thanks for your help guys!
1028: [09:29:04] * Jakx has left #silverstripe
1029: [09:29:21] <r3v3rb> strange thing is the structure is the same as every other form on the site - the only difference being the submitted data on this one has a checkboxset
1030: [09:31:43] <Nightjar> might need to loop it
1031: [09:31:50] <Nightjar> try $Blah.Debug
1032: [09:31:59] <r3v3rb> okay ta
1033: [09:33:09] * violetina has joined #silverstripe
1034: [09:33:17] <irogue23> damn EUR, still being worth something
1035: [09:33:28] <irogue23> i'm used to seeing USD and knowing that it's not far off NZD
1036: [09:33:31] <r3v3rb> doh! fixed it
1037: [09:33:55] <r3v3rb> I was <% control data %> when I didn't need to as it was the only data being sent!
1038: [09:34:00] <r3v3rb> muppet I am
1039: [09:34:15] <irogue23> just looked up 60 EUR only to discover that's NZD $100 :(
1040: [09:34:36] * Colin[pi] quit (Ping timeout: 245 seconds)
1041: [09:36:28] * irogue23 hands C++ to Nightjar and runs away laughing maniacally
1042: [09:36:30] <r3v3rb> Erm, okay the products array produces 'Array' as expected in the email - how do I loop it <% control products %>$????<% end_control %>
1043: [09:36:40] <Zauberfisch23> irogue23: I very much appreciate the fact how well the euro performs
1044: [09:36:51] <irogue23> Zauberfisch23: haha
1045: [09:36:52] <irogue23> i don't :P
1046: [09:36:57] <Zauberfisch23> now when I go shopping inline and see like $50 I am like
1047: [09:36:58] <Zauberfisch23> haha
1048: [09:36:59] <r3v3rb> Zauberfisch23: good morning
1049: [09:37:07] <Zauberfisch23> thats just 30 euro or so
1050: [09:37:10] * irogue23 trying to lease server in DE
1051: [09:37:30] <r3v3rb> irogue23: have you tried eurovps?
1052: [09:37:41] <Nightjar> why server in DE?
1053: [09:37:42] <Zauberfisch23> irogue23: I can highly recommend hetzner.com
1054: [09:37:57] <irogue23> is for seedbox, so has to be somewhere that's known to turn a blind eye ;)
1055: [09:38:11] <ss23> p.s. kimsufi/ovh
1056: [09:38:13] <irogue23> which is basically OVH and Leaseweb
1057: [09:38:18] <r3v3rb> irogue23: eurovps is datacentre in Netherlands...
1058: [09:38:32] <Zauberfisch23> germany is known to turn a blind eye?
1059: [09:38:36] <Zauberfisch23> I was not aware of that
1060: [09:38:41] <irogue23> Zauberfisch23: that particular company is
1061: [09:38:43] <r3v3rb> Zauberfisch23: neither was I
1062: [09:38:52] <Zauberfisch23> irogue23: go netherlands or something
1063: [09:39:07] <r3v3rb> irogue23: EuroVPS - Based in Greece, Datacentre in Netherlands
1064: [09:39:13] <r3v3rb> ;)
1065: [09:39:14] <Zauberfisch23> germany is a bad place for that sort of thing
1066: [09:39:18] * chillu has joined #silverstripe
1067: [09:39:20] <Nightjar> irogue23: OVH.
1068: [09:39:22] <Nightjar> do turn.
1069: [09:39:34] <Nightjar> they tried not to and more than 50% of their business disappeared.
1070: [09:39:35] <Zauberfisch23> OVH is pretty cheap, never used them though
1071: [09:39:37] <irogue23> Zauberfisch23: for some reason, all the seedbox cos i know that use Leaseweb have moved from NL to DE
1072: [09:39:57] <Zauberfisch23> hmmm
1073: [09:40:25] <r3v3rb> so how do I loop the products array in the template guys?
1074: [09:40:41] <r3v3rb> [products] => Array ( [0] => Little Sister SES 113B/225B [1] => Little Sister SHS 800 )
1075: [09:40:58] <r3v3rb> control products -- $WHATGOESHERE -- end control
1076: [09:41:11] <ss23> Oh, what's this about little sister? :O
1077: [09:41:26] <irogue23> r3v3rb: looking at it, but they only really seem to be doing VPS not Dedi?
1078: [09:41:28] <r3v3rb> ss ;) medical product
1079: [09:41:30] <Nightjar> r3v3rb: $me?
1080: [09:41:31] <ss23> Hmmm... damn.
1081: [09:41:32] * Shashitechno has joined #silverstripe
1082: [09:41:45] <r3v3rb> $me never heard/seen that one before
1083: [09:41:59] <Nightjar> r3v3rb: turn it into an ArraySet before sending it to template
1084: [09:42:02] <Nightjar> probably easier
1085: [09:42:03] <Nightjar> maybe
1086: [09:42:05] <irogue23> ss23: OVH have started cracking down on seedboxes
1087: [09:42:06] <Nightjar> idk
1088: [09:42:10] <ss23> irogue23: aw lame
1089: [09:42:14] <Nightjar> irogue23: again?
1090: [09:42:17] <ss23> chillu: Would apperciate your opinion on https://groups.google.com/forum/#!topic/silverstripe-dev/jcu_kqpjJvU if you have time today (opensource, not client work)
1091: [09:42:17] <irogue23> ss23: specifically by introducing rolling shaping
1092: [09:42:22] <Zauberfisch23> r3v3rb: http://stackoverflow.com/questions/17921642/silverstripe-looping-over-non-associative-array-in-template
1093: [09:42:24] <Nightjar> they tried it earlier this year and they lost most of their business.
1094: [09:42:28] <irogue23> the more datas you do per month, the slower your port gets
1095: [09:42:30] <Nightjar> so suddenly they stopped caring so much.
1096: [09:42:35] <ss23> irogue23: Eh, could be worse, though yes, annoying
1097: [09:42:39] <Nightjar> ah yeah, that ol' chestnut again.
1098: [09:42:55] <r3v3rb> Zauberfisch23: great thanks
1099: [09:42:55] <Nightjar> they tried capping bw once before.
1100: [09:42:57] <Nightjar> or sometihng like that
1101: [09:43:01] <irogue23> Nightjar: yeah, they doing it again now but France-only (since thats where all the seedboxes are)
1102: [09:43:45] <irogue23> so my seedbox provider has moved to Leaseweb NL, and then fairly soon after to Leaseweb DE
1103: [09:44:11] <irogue23> another seedbox co, which a bunch of people i know use, moved to OVH Canada
1104: [09:44:13] <r3v3rb> ss23, i noticed that in 3.0 too - pain in tha ass for my customer didn't know what she was viewing half the time
1105: [09:44:17] <Nightjar> fuck you bullshit internet people, stop making up new acronyms for MVC
1106: [09:44:37] <Nightjar> so apparently SS might be an HMVC, not just MVC.
1107: [09:45:14] <ss23> r3v3rb: Yeah, that's the issue I have, no reasonable way for a client to know >.<
1108: [09:45:27] <r3v3rb> Zauberfisch23: only issue, but not really, is that doc is for 3.0 not 2.4 which this site still runs in but no biggy
1109: [09:45:46] <Nightjar> ss23: r3v3rb, wrong, use the almighty navigator widget and your client will never be confused again!
1110: [09:46:18] <r3v3rb> navigator widget?
1111: [09:46:25] * r3v3rb goes to check this
1112: [09:46:36] <Nightjar> the long forgotten often ignored device that plonks a great big fuckoff display: fixed; DRAFT SITE on your site.
1113: [09:47:05] <Nightjar> and propagates the lower nav bar (the thin grey one) from the CMS to the frontend.
1114: [09:47:20] <Nightjar> ie, the one with "View draft, view live, CMS" on it.
1115: [09:47:38] <Nightjar> it even still exists in 3.0 iirc, though it does look nicer.
1116: [09:47:40] <Zauberfisch23> r3v3rb: the only things you need to change are:
1117: [09:47:47] <r3v3rb> arraydata
1118: [09:48:01] <Zauberfisch23> - use new ArrayData() instaed of ArrayData::create()
1119: [09:48:10] <r3v3rb> sure :)
1120: [09:48:17] <Zauberfisch23> - use new DataobjectSet() instead of ArrayList::create()
1121: [09:48:22] <Zauberfisch23> then it should be 2.4 ready
1122: [09:49:29] <Nightjar> http://kohanaframework.org/
1123: [09:49:32] <Nightjar> hmm
1124: [09:50:04] <Shashitechno> Hi all,
1125: [09:50:22] <Shashitechno> I need to create a href to li elements
1126: [09:50:27] <Shashitechno> in ss file
1127: [09:50:50] <Shashitechno> the current url looks like htttp://xyz.com?a=b&c=d
1128: [09:50:58] <irogue23> Nightjar: kohana is okay
1129: [09:51:17] <Nightjar> The successful candidate should be able to implement a design as per user expectations on our existing internal framework, taking into account browser compatibility issues and user experience within a given timescale.
1130: [09:51:17] <Shashitechno> Now its should look like http://xyz.com?a=b&c=d&e=f
1131: [09:51:28] <Nightjar> on our existing internal framework
1132: [09:51:31] <Shashitechno> anyway ?
1133: [09:51:32] <Nightjar> INTERNAL FRAMEWORK
1134: [09:52:03] <Nightjar> Shashitechno: there's a static controller function for building query strings
1135: [09:52:58] <Shashitechno> Nightjar: Yup, But how to build those params too ?
1136: [09:53:20] <Shashitechno> I mean I will need all the three parameters will the proper url.
1137: [09:53:24] <Nightjar> Shashitechno: just supply them to the function.
1138: [09:53:45] <Shashitechno> Inside controller via GET ?
1139: [09:54:20] <Nightjar> Controller::join_links('link/blah', '?param=var', '?param=var' etc.
1140: [09:54:44] <Shashitechno> Nightjar: thanks :)
1141: [09:54:48] <Nightjar> Shashitechno: define a function on your page controller that gives you what you need.
1142: [09:54:53] <Shashitechno> Nightjar: let me try
1143: [09:54:56] <Nightjar> then call it from the template
1144: [09:56:32] <Nightjar> http://api.silverstripe.org/3.1/class-Controller.html#_join_links
1145: [10:01:51] <Nightjar> rofl
1146: [10:02:06] <Nightjar> just found a web design and development agency that don't have their own website.
1147: [10:02:25] <Nightjar> googled them specifically and all I get are a bunch of online directory listings.
1148: [10:02:58] <r3v3rb> Nightjar: always a good sign
1149: [10:03:33] <Nightjar> is on twitter and facebook though, and is active.
1150: [10:03:48] <Nightjar> refers to self in the first person rather than the corporate we.
1151: [10:03:52] <Nightjar> must be freelancer.
1152: [10:05:42] <irogue23> yeah
1153: [10:06:51] <Nightjar> fuck'n j-word seems to be horrifically prolific over there.
1154: [10:07:23] <r3v3rb> oomlaaaaaaaa
1155: [10:07:52] <r3v3rb> pistachio nuts, this still is feeding the checkboxset back grrr
1156: [10:08:52] <lerni> How does one propper setFieldCasting for HTMLText in GridFiled? static $casting = array('Blahtext' => 'HTMLText'); on a Dataobject does still show html in Gridfiled, but $GridField->getConfig()->getComponentByType("GridFieldDataColumns")->setFieldCasting(array("Blahtext"=>"HTMLText->BigSummary")); shows the Blahtext in GF how should. What is the way to go?
1157: [10:09:34] <Nightjar> lerni: static $casting is for templates only.
1158: [10:09:47] <Nightjar> GridField (unfortunately for now) does not use templates to render.
1159: [10:10:08] <Nightjar> so I'd say the way you've figured out there is about as good as it gets.
1160: [10:12:01] <lerni> ok - thank you. so I set it explicit
1161: [10:12:48] <r3v3rb> whats wrong with this: http://sspaste.com/paste/show/5270d9c54c805
1162: [10:13:46] <Nightjar> you're meddling with stuff too much.
1163: [10:14:10] <r3v3rb> lol, nope ArrayData no exist in 2.4 api from what I can gather
1164: [10:14:17] <Nightjar> I know
1165: [10:14:19] <r3v3rb> Nightjar: thanks :D
1166: [10:14:32] <Nightjar> but arraylist is more of an array, not a map.
1167: [10:14:59] <Nightjar> it's been a while since I worked 2.4, but I think that's the case.
1168: [10:16:55] <Nightjar> is $dataset associative?
1169: [10:17:17] <Nightjar> if so just do foreach $dataset as $blah=>$val rather than $blah[1]
1170: [10:17:24] <r3v3rb> the posted data is array ( [0] => 'this', [1] => 'that'
1171: [10:17:53] <Nightjar> r3v3rb: I assume the digit is actually an ID or sometihng?
1172: [10:18:05] <Nightjar> oh rightno, i'm confused.
1173: [10:18:36] <Nightjar> well then your issue is your [1]
1174: [10:19:09] <Nightjar> the array isn't associative.
1175: [10:19:23] <Nightjar> you just want 'data' => $myData
1176: [10:20:36] <spronk2> fuck 2.4
1177: [10:21:09] <r3v3rb> Nightjar: you'd think but its still sending back empty fields to the template
1178: [10:22:06] <r3v3rb> okay so the dataobjectset is empty on return from my function :D
1179: [10:22:11] <Nightjar> do $Products in the template
1180: [10:22:15] <Nightjar> yes
1181: [10:22:16] <r3v3rb> slowly slowly catchy monkey
1182: [10:22:16] <Nightjar> see
1183: [10:22:30] <r3v3rb> using $myData
1184: [10:22:36] <Nightjar> rofl
1185: [10:22:49] <Nightjar> you didn't $ArrayList->push(...
1186: [10:22:57] * r3v3rb = twat
1187: [10:23:08] <Nightjar> aah fuck
1188: [10:23:10] <Nightjar> 11:30
1189: [10:23:15] <Nightjar> way past bed time
1190: [10:23:22] <irogue23> wow
1191: [10:23:23] <Nightjar> laters
1192: [10:23:24] <irogue23> only 11:30pm
1193: [10:23:27] <irogue23> feels way later
1194: [10:23:37] * irogue23 knocks back another Pepsi Max Kick
1195: [10:23:41] <Nightjar> yeah well I was up until 1:30am this morning
1196: [10:24:02] <irogue23> i was up til 5am
1197: [10:24:14] <Nightjar> yeah but you don't have to go to work at 8:30
1198: [10:24:15] <irogue23> and got woken up at fucking 10:30am
1199: [10:24:16] <irogue23> what torture
1200: [10:24:55] <irogue23> Nightjar: how much longer you workin' there?
1201: [10:25:47] <Nightjar> plan to apply for visa and perhaps book ticket tomorrow
1202: [10:25:47] <irogue23> gotta courier you something random at work at least once more before you foff :P
1203: [10:25:49] <Nightjar> (payday)
1204: [10:25:54] <Nightjar> lol
1205: [10:26:39] <Nightjar> Fuck I don't wanna go to work tomorrow
1206: [10:26:41] <Nightjar> or friday
1207: [10:26:44] <r3v3rb> ta da! silly me forgetting ->push !
1208: [10:27:03] <Nightjar> :) r3v3rb
1209: [10:27:10] <r3v3rb> jees
1210: [10:27:17] <Nightjar> it happens
1211: [10:27:20] <r3v3rb> thanks Nightjar
1212: [10:27:37] * r3v3rb hates dropping back to 2.4 from 3.0 now
1213: [10:27:49] <Nightjar> $30k a reasonable salary?
1214: [10:27:53] <Nightjar> fuck
1215: [10:27:55] <Nightjar> err
1216: [10:28:00] <r3v3rb> Nightjar: where? and doing what?
1217: [10:28:09] <Nightjar> fuck I dunno
1218: [10:28:32] <Nightjar> I see bullshit like "PHP DEV" 23k, then "front end" 30-40k
1219: [10:28:37] <Nightjar> and I"m all -.- wut
1220: [10:29:38] <r3v3rb> \o/ woooot
1221: [10:29:55] <irogue23> Nightjar: that is the fucking worst
1222: [10:29:59] <Nightjar> yeah, fucked up right.
1223: [10:30:15] <Nightjar> "HEY FRONT END DEVS, YOU ARE OBVIOUSLY THE BRAINS OF THIS OPERATION, YOU GET PAID MORE"
1224: [10:30:18] <irogue23> sysadmin, $30k... developer $25k... designer $50k
1225: [10:30:19] <irogue23> WAT
1226: [10:30:46] <spronk2> that seems .... low
1227: [10:31:15] <spronk2> when you leave plato, Nightjar ?>
1228: [10:31:27] <r3v3rb> irogue23: seriously?
1229: [10:31:40] <Nightjar> spronk: undecided yet
1230: [10:31:58] <spronk2> front-end is where it's at man
1231: [10:32:07] <spronk2> mainly because hardest skillset to actually get good at right now
1232: [10:32:16] <Nightjar> irogue23: it's because people percieve coders and lower levels because when you get to 'senior' it's more management than coding
1233: [10:32:19] <Nightjar> 'team leader' etc
1234: [10:32:30] <Nightjar> spronk: bullshit
1235: [10:32:35] <Nightjar> monkeys can fucking code front end.
1236: [10:32:41] <spronk2> not well
1237: [10:33:01] <Nightjar> well yeah, contraire to popular phrase they couldn't write good novels either.
1238: [10:33:06] <spronk2> most comp sci or eng students could write PHP
1239: [10:33:08] <irogue23> i don't mind like, lead designers getting a lot
1240: [10:33:14] <spronk2> and do it with reasonable degree of competency
1241: [10:33:15] <Nightjar> spronk2: yeah, graduates.
1242: [10:33:19] <spronk2> yeah, grads
1243: [10:33:20] <spronk2> but
1244: [10:33:22] <Nightjar> or even students.
1245: [10:33:25] <spronk2> almost no uni grads will be able to do front end
1246: [10:33:31] <spronk2> unless they've had specific interest in it
1247: [10:33:45] <irogue23> but often it's the low-end design folk, the people just converting the design into HTML+CSS, and yet are still getting more than the person writing the PHP/JS
1248: [10:33:47] <spronk2> so you're left with technical school students, who often aren't quite in the same league
1249: [10:33:56] <Nightjar> as opposed to derpy designer with no code who struggles to understand the importance of indenting code and why there are ending tags
1250: [10:34:28] <Nightjar> spronk: because they've no interest in it. Computer science grads wanna write real software.
1251: [10:34:30] <Nightjar> not web.
1252: [10:34:30] <r3v3rb> lmao
1253: [10:34:55] <spronk2> hmm
1254: [10:34:59] <spronk2> i dno
1255: [10:35:02] <r3v3rb> so true, but 'real' software is going to be html5 anyway so everyone keeps telling me - rotflmao!
1256: [10:35:04] <spronk2> web is real software these days
1257: [10:35:11] <spronk2> most of my "real software" uni mates are now doing something involving web
1258: [10:35:41] <spronk2> when i say front end i really mean webapp type stuff, heavy js
1259: [10:35:44] <r3v3rb> spronk2: that's a worrying statement
1260: [10:35:48] <spronk2> not like... JQUERY AJAX MY FORM MAN
1261: [10:36:34] <chillu> ss23: Responded on mailinglist
1262: [10:37:37] <Zauberfisch23> well, making real software as webapps often makes sense
1263: [10:37:55] <Nightjar> spronk2 most of my "real software" uni mates are now doing something involving web
1264: [10:37:56] <Nightjar> yeh
1265: [10:38:04] <Nightjar> if it's not web tech, it's still web based.
1266: [10:38:20] * irogue23 goes to gmail to look at chillu's reply :P
1267: [10:38:26] <Zauberfisch23> and it works, the major problem is more the fact that webdevelopers are usually less qualified than software developers
1268: [10:39:01] <spronk2> yep
1269: [10:39:12] <spronk2> and javascript developers are usually one step further down that notch
1270: [10:39:22] <spronk2> which is why salaries for good front end are so high
1271: [10:40:32] <Zauberfisch23> http://i.stack.imgur.com/ssRUr.gif
1272: [10:41:15] <irogue23> Zauberfisch23: hahahaha
1273: [10:41:21] <irogue23> the troll is strong
1274: [10:42:13] <spronk2> omfglawls
1275: [10:42:15] <spronk2> also
1276: [10:42:19] <spronk2> Nightjar:
1277: [10:42:24] <spronk2> you have a guy BEARDSMORE at your work!?
1278: [10:42:56] <Nightjar> Myles, yeh
1279: [10:43:24] <Nightjar> spronk2 and javascript developers are usually one step further down that notch
1280: [10:43:28] <Nightjar> JS I can understand though
1281: [10:43:35] <Nightjar> because you need someone who can actually write code
1282: [10:43:45] <spronk2> js is fucking hard
1283: [10:43:53] <Nightjar> but about every traditional schooled dev hates the fuck out of prototypal inheritance.
1284: [10:43:59] <spronk2> haha
1285: [10:44:01] <Nightjar> nah, not that hard.
1286: [10:45:14] <spronk2> it is man
1287: [10:45:20] <spronk2> gotta keep your wits about you with scopes
1288: [10:45:25] <spronk2> and if you're doing event driven, design is everything
1289: [10:45:40] <spronk2> then there's all the bullshit baggage that comes with javascript
1290: [10:46:36] <Nightjar> yeah
1291: [10:46:55] <Nightjar> I agree I'm not that good that I've figured out careful planning and all that.
1292: [10:47:05] <Nightjar> but I find doing the odd bit here and there just find
1293: [10:47:07] <Nightjar> fine*
1294: [10:47:19] <Nightjar> even easier if you have some kind of framework to abstract that shit out for you
1295: [10:47:21] <spronk2> yeah
1296: [10:47:27] <Nightjar> scopes aren't that hard.
1297: [10:47:35] <Nightjar> just... don't put anything on the global, you're good as gold.
1298: [10:48:01] <spronk2> but full on js dev... definitely a few notches above your average php / rails / django webapps
1299: [10:48:13] <spronk2> (in terms of skill required to execute adequately)
1300: [10:48:40] <Nightjar> oh yeah, I'll agree with that.
1301: [10:48:56] <Nightjar> if you're making a full app... that's a different level to animating awebsite
1302: [10:49:55] <spronk2> mm
1303: [10:50:20] <spronk2> though, the "animating a website" jobs these days need a lot of specialist knowledge
1304: [10:50:41] <spronk2> your average desktop programmer can be somewhat productive on website dev without much additional learning
1305: [10:51:01] <spronk2> takes a lot more knowledge to be productive understanding semantics around HTML. CSS is an entire discipline on its own
1306: [10:51:21] <Nightjar> wtf
1307: [10:51:22] <Nightjar> sif
1308: [10:51:51] <Nightjar> They're declarational languages
1309: [10:52:00] <spronk2> cmon
1310: [10:52:23] <spronk2> how long do you think it would take you to get to where you are now in your knowledge of HTML, CSS, browser quirks etc
1311: [10:52:36] <Nightjar> if you're good enough to know about separation of concerns then html is no issue. Nor should css be.
1312: [10:52:49] <Nightjar> well I don't do browser quirks
1313: [10:52:51] * spronk2 disagrees
1314: [10:52:57] <Nightjar> I'd say a year, maybe 1.5
1315: [10:53:16] <Nightjar> but in order to be 'good enough', a month or two if you studied hard.
1316: [10:53:36] <Nightjar> provided you're already a coder.
1317: [10:54:10] <spronk2> i dno
1318: [10:54:15] <spronk2> i've tried teaching a few guys css
1319: [10:54:33] <spronk2> it's not a natural thing
1320: [10:54:38] <Nightjar> when I find someone who can't understand CSS, I usually find that they're just not giving a shit.
1321: [10:54:42] <Nightjar> sure it is
1322: [10:54:51] <Nightjar> what is more natural than "COLOR: RED"
1323: [10:54:53] <spronk2> the positioning model is quite strange, compared to everything else
1324: [10:55:06] <Nightjar> yeah that can cause a stir, I agree.
1325: [10:55:12] <spronk2> understanding stuff like flow and float models is hard
1326: [10:55:17] <Nightjar> especially if you come from some other gui toolkit
1327: [10:55:27] <Nightjar> flow is hard?
1328: [10:55:37] <Nightjar> :<
1329: [10:55:42] <Nightjar> I dunno man
1330: [10:56:02] <Nightjar> floats always send someone for a trip, yeah.
1331: [10:56:18] <Nightjar> but generally flow is "text goes down page, rocks around floats."
1332: [10:57:05] <spronk2> but then you have the difference between shit like inline vs block vs inline-block
1333: [10:57:23] <spronk2> there's a LOT of intricate details to CSS that you take for granted if you're well familiar
1334: [10:57:37] <spronk2> there are*
1335: [10:57:41] <spronk2> </grammar>
1336: [10:57:42] <Nightjar> nah
1337: [10:57:48] <Nightjar> block and stuff are box model things
1338: [10:58:06] <Nightjar> block means it plonks before and after above and blow. inline means it sits in a line.
1339: [10:58:22] <Nightjar> start there, get familiar, fiddle with inline block.
1340: [10:58:43] <spronk2> ok, but consider that these are all concepts that are almost completely unfamiliar to a "desktop programmer"
1341: [10:58:56] <Nightjar> It'd trip folks up, but I'm talking about being 'good enough' - ie, most designers who can aptly plonk it on their CV but know little more than what to type when they want shit to look reasonable.
1342: [10:59:08] <spronk2> then consider how to take that knowledge and apply it to something scalable, when you have markup interaction as well
1343: [10:59:27] <Nightjar> scalable?
1344: [10:59:32] <spronk2> most webapps quickly become maintenance nightmares as they grow
1345: [10:59:41] <spronk2> in terms of their HTML and CSS
1346: [10:59:45] <Nightjar> yeh, but same for every pro... nah.
1347: [10:59:48] <Nightjar> css yeah maybe.
1348: [11:00:06] <Nightjar> but usually I find it a result of an aptly capable CSS developer who isn't actually a developer.
1349: [11:00:18] <Nightjar> IE the kind of chap that rocks in for a job, is an expert in the front end.
1350: [11:00:28] <Nightjar> but produces the most horrible code because they're not coders.
1351: [11:00:28] <spronk2> right
1352: [11:00:38] <spronk2> so now you see why front end is worth more than just dev? :P
1353: [11:00:48] * origincube has joined #silverstripe
1354: [11:00:48] <Nightjar> we're talking about being what employers are looking for, not being completely gurus in the subjects.
1355: [11:00:58] <spronk2> yeha
1356: [11:01:11] <spronk2> it's an interesting one
1357: [11:01:15] <Nightjar> spronk2: no, becuase afformentioned chap that can't code because they're not a coder is the chap they ARE looking for!
1358: [11:01:30] <Nightjar> ie, the fellow who's going to go in, beat you for the job, and get paid more than PHP devs.
1359: [11:01:50] <spronk2> depends on the employer, most of the good outfits look for front end guys who know how to be developers
1360: [11:02:02] <Nightjar> which, as someone who can do all of the above except design... yeah nah.
1361: [11:02:16] <Nightjar> most I've seen look for designers who know how to make markup.
1362: [11:02:18] <spronk2> i personally find front end a lot trickier than backend
1363: [11:02:29] <Nightjar> I personally love both.
1364: [11:02:36] <spronk2> i fucking hate computers in general, but yknow :)
1365: [11:02:41] <Nightjar> except that front end has become so mundate for me I hate the shit out of it now
1366: [11:02:57] <spronk2> yeah, you get that when you work on website after website
1367: [11:03:10] <Nightjar> yeh
1368: [11:03:14] <spronk2> working on a single product was a massive breath of fresh air for me
1369: [11:03:29] <Nightjar> got to the point of that in the backend too so I started making modules so I didn't have to code that either.
1370: [11:03:44] <spronk2> haha, love it
1371: [11:03:49] <Nightjar> yeh, tbh a single product is what I've wanted to do all along.
1372: [11:04:06] <spronk2> i am slowly replacing little bits of my job with code
1373: [11:04:08] <Nightjar> I like building systems that increase other people's efficiency.
1374: [11:04:13] <spronk2> pretty soon i'll be irrelevant
1375: [11:04:26] <spronk2> need a new feature? i've got a script for that!
1376: [11:04:34] <spronk2> bro
1377: [11:04:37] <spronk2> you should do devops !!
1378: [11:04:52] <Nightjar> spronk: for me it was a mixture of not destroying soul and keeping myself midly challenged - and actually wanting to help increase productivity.
1379: [11:05:06] <Nightjar> ha
1380: [11:05:08] <Nightjar> devops :<
1381: [11:05:12] <spronk2> i'm vaguely serious
1382: [11:05:15] <spronk2> because..... it's highly paid
1383: [11:05:17] <Nightjar> I'm not even sure what that is.
1384: [11:05:22] <Nightjar> It's like... being a developer, but not.
1385: [11:05:27] <Nightjar> I just... idek.
1386: [11:05:46] <spronk2> and
1387: [11:05:54] <spronk2> its a far cooler job title than developer
1388: [11:05:59] <Nightjar> lol true
1389: [11:06:05] <Nightjar> but basically amounts to being a coder.
1390: [11:06:13] <spronk2> DEV OPS SPLINTER CELL
1391: [11:06:15] <Nightjar> but for a company rather than for clients.
1392: [11:06:18] <Nightjar> rofl
1393: [11:06:22] <Nightjar> FUCK PAST MIDNIGHT
1394: [11:06:27] <Nightjar> dafuq is wrong with me
1395: [11:07:12] <origincube> hey guys, sorry to interrupt ;) but i had a conundrum
1396: [11:07:25] <origincube> had an issue with the rewrite stuff, so was advised to rename index.php
1397: [11:07:44] <Nightjar> http://lamp.epfl.ch/~imaier/pub/DeprecatingObserversTR2010.pdf
1398: [11:07:47] <Nightjar> hmm
1399: [11:07:49] <origincube> worked flawlessly on my test machine, but when doing so on the hosting server, apache just spits out forbidden
1400: [11:08:04] <Nightjar> origincube: no mod-rewrite
1401: [11:08:07] <origincube> andt he hosting server is also having the index.php issue :/
1402: [11:08:22] <Nightjar> origincube: index.php is a fallback for no mod-rewrite.
1403: [11:08:33] <origincube> ok. well then i'd best throw toys at the hosting guy
1404: [11:08:49] <spronk2> mm
1405: [11:08:50] <Nightjar> the unfortunate truth is though that some servers opt to serve that at a higher precidence than rewriting the request.
1406: [11:08:57] <Nightjar> which destroys the point in rewrite.
1407: [11:09:02] <Nightjar> but hey, there you have it.
1408: [11:09:10] <Nightjar> that's why deleting index.php works.
1409: [11:09:27] <spronk2> fucking martin odersky
1410: [11:09:34] <origincube> lol
1411: [11:09:36] <Nightjar> if your server doesn't work without index.php, then I'd say that you've got a server config issue.
1412: [11:09:43] <origincube> yeah, i was thankful deleting index.php was a simple enough fix
1413: [11:09:46] <Nightjar> but I'm no expert.
1414: [11:09:50] <irogue23> origincube: alternatively, you managed to miss uploading .htaccess to the webhost - can be easy to do
1415: [11:09:57] <Nightjar> yes, that's true.
1416: [11:09:58] <origincube> now to just get the hosts to actually make sure mod_rewrite is enabled properly!
1417: [11:10:07] <origincube> .htacess is there
1418: [11:10:15] <Nightjar> .htaccess too?
1419: [11:10:18] <Nightjar> :P
1420: [11:10:20] <origincube> ss was installed on the host directly
1421: [11:10:28] <origincube> yes ;P
1422: [11:10:40] <origincube> by the hosting company my client is using
1423: [11:10:42] <Nightjar> spronk2 fucking martin odersky
1424: [11:10:43] <Nightjar> wut
1425: [11:11:22] <Nightjar> oh, last author on paper
1426: [11:11:53] <Nightjar> ROFL
1427: [11:12:12] <Nightjar> "for an answer on the status quo in production systems, we quote an Adobe presentation from 20008"
1428: [11:12:34] <Nightjar> 1/3 of the code in Adobe's desktop applications is devoted to event handling logic
1429: [11:12:49] <origincube> i checked .htaccess and it seems to be configured correctly
1430: [11:12:50] <Nightjar> 1/2 of the bugs reported during a product cycle exists in this code
1431: [11:12:54] <Nightjar> rofl rofl
1432: [11:13:03] <Nightjar> because Adobe so renound for not being shit engineers
1433: [11:13:28] <spronk2> yeah..
1434: [11:13:41] <spronk2> odersky is Scala man
1435: [11:13:54] <Nightjar> yeah, paper is all about scala
1436: [11:15:28] <spronk2> scala is... odd
1437: [11:15:32] <spronk2> functional programming is bullshit
1438: [11:15:48] <Nightjar> lol
1439: [11:15:54] <Nightjar> don't let DaShiVaDan hear you say that
1440: [11:16:35] <Nightjar> scala has classes...
1441: [11:16:39] <Nightjar> there's a definition on page 3
1442: [11:16:49] <ss23> Functional programming is *different*
1443: [11:16:49] <Nightjar> just looks a bit like python or js though
1444: [11:17:07] <spronk2> functional programming concepts have merit
1445: [11:17:10] <spronk2> but....
1446: [11:17:17] <spronk2> it's unnatural.
1447: [11:17:44] <spronk2> and promotes cocky purists
1448: [11:17:53] <ss23> Seems silly to write off an entire paradigm, especially when they each have a use
1449: [11:17:59] <ss23> also
1450: [11:18:05] <ss23> I'm adding paradigm to my list of words
1451: [11:18:08] <Nightjar> also
1452: [11:18:17] <Nightjar> ss23: 'list of words'
1453: [11:18:17] <Nightjar> lol
1454: [11:18:22] <Nightjar> vocabulary
1455: [11:18:24] <ss23> Jalapeno, Debris, Facade, Superflous, Hyperbole, Epitome, Paradigm
1456: [11:18:27] <ss23> no no
1457: [11:18:30] <ss23> It's a specific list
1458: [11:18:33] <spronk2> there are a select set of applications that functional is useful for
1459: [11:18:33] <Nightjar> oic
1460: [11:18:34] <ss23> Do you know what is special about these words?
1461: [11:18:42] <Nightjar> they're French
1462: [11:18:46] <spronk2> ss23: they are fucking cool?
1463: [11:18:49] <Nightjar> oh, romantic at least.
1464: [11:18:50] <ss23> They sound *hilarious* if you pronounce them phonetically
1465: [11:19:00] <spronk2> ... Epitome?
1466: [11:19:07] <ss23> epi-tome
1467: [11:19:20] <spronk2> hmmmmmm
1468: [11:19:20] <Nightjar> hiper-bowl
1469: [11:19:29] <ss23> s/pronounce them phonetically/mispronounce them/
1470: [11:19:33] <spronk2> mm.
1471: [11:19:34] <Nightjar> fa kade
1472: [11:19:38] <spronk2> just like Penelope Cruz
1473: [11:19:38] <ss23> I had a teacher in primary school say "hyperbole" to me with the wrong spelling
1474: [11:19:49] <irogue23> HYPER BOWL!
1475: [11:19:53] <spronk2> Pee nell ohp ee cruz (cruz as in crud)
1476: [11:19:56] <ss23> Which was horrible, because a) she fucking said it wrong, and b) she didn't even get the meaning right
1477: [11:20:02] <ss23> spronk2: no way
1478: [11:20:05] <ss23> pen-e-lope
1479: [11:20:06] <ss23> :3
1480: [11:20:19] <Nightjar> liek env-e-lope
1481: [11:20:21] <spronk2> pen-e-lope-e sounds better
1482: [11:20:42] <ss23> I was reading a book once with a character called "Penelope", and I swear to God, I read the entire book before someone else said the name IRL as how it was meant to be
1483: [11:20:47] <ss23> In my head, entire book, "pene lope"
1484: [11:20:57] <spronk2> :D
1485: [11:21:00] <ss23> I was like "jesus this character has a retarded name, who the fuck names someone pene lope"
1486: [11:21:06] <spronk2> :D :D
1487: [11:21:07] <Nightjar> rofl
1488: [11:21:09] <Nightjar> I've done that
1489: [11:21:14] <Nightjar> cecil
1490: [11:21:25] <spronk2> nah
1491: [11:21:29] <spronk2> Sibohn
1492: [11:21:30] <ss23> hashtag "I read shit in books before hearing them IRL so I say shit wrong"
1493: [11:21:33] <spronk2> or whatever the fuck you spell that
1494: [11:21:37] <spronk2> Siobahn
1495: [11:21:38] <Nightjar> oh, shavaughn
1496: [11:21:40] <spronk2> yeah
1497: [11:21:44] <ss23> How do you say "Sibohn"? Like Simon, but Sibohn?
1498: [11:21:49] <ss23> god, shavaughn is a tough one
1499: [11:21:53] <ss23> Sean :3
1500: [11:21:59] <ss23> Have you seen sean?!
1501: [11:22:12] <Nightjar> blame the gaelic
1502: [11:22:13] <spronk2> siobhan there we go
1503: [11:22:28] <spronk2> i read that as "see o bee harn"
1504: [11:22:30] <Nightjar> so I don't get this paper spronk
1505: [11:22:36] <spronk2> no?
1506: [11:22:38] <ss23> yeah, like autobahn!
1507: [11:22:45] <kinglozzer> Eoghan
1508: [11:22:48] <kinglozzer> == Owen
1509: [11:22:49] <Nightjar> it's all "WE OBSOLETED OBSERVERS"
1510: [11:23:05] <Nightjar> and then ti's all "we did this by using observers... BUT DIFFERENT... SLIGHTLY!"
1511: [11:23:16] <ss23> Nightjar: Thats like everything ever
1512: [11:23:45] <spronk2> yeah...
1513: [11:23:45] <Nightjar> ss23: the key difference here is that I'm having great difficulty in discerning WHERE or HOW it's different.
1514: [11:23:58] <Nightjar> there needs to be a simple English explanation.
1515: [11:24:00] <spronk2> the stupid thing is
1516: [11:24:04] <spronk2> observer works really well
1517: [11:24:07] <Nightjar> I though that would be the abstract, but it's not.
1518: [11:24:09] <spronk2> and in many langauges needs no boilerplate at all
1519: [11:24:16] <ss23> Just told a friend my eating habits -- "Stephen...you are the triumph of humanity!"
1520: [11:24:30] <ss23> Lets see what you guys think
1521: [11:24:38] <ss23> So I don't go shopping anymore
1522: [11:24:44] <Nightjar> spronk: yeah, so basically it's not observer that's bad, it's that people fuck it up.
1523: [11:24:48] <Nightjar> but that's true of all things.
1524: [11:25:08] <ss23> during the week, I have a hot chocolate for breakfast, whatever for lunch, and a slice or two of pizza on the way home for diner
1525: [11:25:17] <ss23> On the weekend, I order pizza on the Saturday and it lasts for all of Sunday too
1526: [11:25:21] <Nightjar> so still having an observer pattern, but a different vector (woo, pun!) for accessing it.
1527: [11:25:25] <ss23> Am I the epitome of triaumphant humanism?
1528: [11:25:26] <Nightjar> to help people not fuck it up.
1529: [11:25:35] <spronk2> you are fucking insane
1530: [11:25:39] <spronk2> ss23
1531: [11:25:49] * deanclkclk has joined #silverstripe
1532: [11:26:04] <Nightjar> spronk2: I'd use the word tubby, but that works too.
1533: [11:26:12] <ss23> spronk2: :<
1534: [11:26:13] <ss23> WHY
1535: [11:26:34] <spronk2> :D
1536: [11:26:41] <spronk2> where's your FRUIT
1537: [11:26:43] <spronk2> and VEGETABELS
1538: [11:26:48] <spronk2> that you cook yourself
1539: [11:26:55] <spronk2> and don't douse in salt like pizza places
1540: [11:27:00] <ss23> XD
1541: [11:27:07] <Nightjar> Here lies Stephen, riddled with rickets and grasped by gout.
1542: [11:27:13] <spronk2> indeed
1543: [11:27:20] <ss23> I don't cook
1544: [11:27:23] <Nightjar> heart attack at 23.
1545: [11:27:38] <ss23> Okay so to clarify
1546: [11:27:41] <Nightjar> ss23: neither do I. but I still had vege pad-si ew
1547: [11:27:43] <Nightjar> tonight
1548: [11:27:47] <spronk2> tonight, /me had hoki fillets on a bed of mashed potato and brocolli, grean bean, and pepperoni salad
1549: [11:27:48] <ss23> Rickets is caused by Vitamin D deffiecency!
1550: [11:27:51] <spronk2> was fucking delicious
1551: [11:27:53] <origincube> ugh! sorry to bug again guys
1552: [11:27:59] <ss23> I've only had that a few times, and since I walk home at night now, I am fine
1553: [11:28:09] <spronk2> origincube: you ain't bugging dw ;D
1554: [11:28:10] <Nightjar> ss23: a combination of no vit. D AND malnutrition
1555: [11:28:17] <ss23> Secondly, on the topic of defffiecenies in genreal, I get a *lot* of bloodtests done because of the diabetes
1556: [11:28:17] <origincube> hosting co says mod_rewrite is definitely on, but removing index.php just throws up a "forbidden" error :(
1557: [11:28:28] <ss23> End results is that I know for a fact I'm not deffiecent in anything
1558: [11:28:28] <ss23> BOOM
1559: [11:28:36] <Nightjar> ss23: rofl
1560: [11:28:37] <ss23> There you have it, nutrition is a lie -- eat what I eat and you'll never be deffiecent again
1561: [11:28:50] <Nightjar> "since I walk home AT NIGHT"...
1562: [11:29:07] <Nightjar> ss23: when I was young I ate bad to
1563: [11:29:09] <Nightjar> too*
1564: [11:29:20] <ss23> Nightjar: Hey, this is Wellington
1565: [11:29:25] <Nightjar> but now I'm a tubby unfit fat bastard.
1566: [11:29:28] <ss23> Walking home at 7pm or later and there's still *some* light
1567: [11:29:34] <spronk2> origincube: check file perms
1568: [11:29:34] <Nightjar> yeah true moving to CHC didn't help any.
1569: [11:29:35] <ss23> Well, the walk home to here is ~45 mins
1570: [11:29:39] <spronk2> and on .htaccess specifically
1571: [11:30:06] <ss23> origincube: The error logs should tell you exactly which file is cuaisng the fobidden error
1572: [11:30:08] <spronk2> also, presumably the config allows for using .htaccess files
1573: [11:30:14] <Nightjar> A good way to test mod_rewrite is to purposefully fuck up the definiiton and see if server gives 500
1574: [11:30:31] * spronk2 is resonably certain that burgers are close to the perfect food
1575: [11:30:36] <Nightjar> if no 500 then no .htaccess override
1576: [11:30:39] <origincube> what should the file perms on htaccess be?
1577: [11:30:40] <spronk2> they have everything - meat, vegetables, fruit, grains
1578: [11:30:44] * Nightjar concurrs
1579: [11:30:55] <Nightjar> origincube: readable by the webserver, but not writable
1580: [11:30:55] <spronk2> read and exec by web serv
1581: [11:31:04] <Nightjar> nah no need for exec
1582: [11:31:12] <spronk2> o?
1583: [11:31:20] <Nightjar> it's a config file, ti's read. Not run as an application.
1584: [11:31:55] <Nightjar> then again, file perms can be a finnicky thing
1585: [11:32:45] <origincube> file perms are rw-r--r--
1586: [11:32:56] <Nightjar> should be fine
1587: [11:32:58] <origincube> but i randomly inserted junk text into the htaccess file to see if it gave me a 500
1588: [11:33:03] <origincube> and it still gives me a 403
1589: [11:33:13] <Nightjar> sounds like allow override is off
1590: [11:33:17] <spronk2> oh
1591: [11:33:23] <spronk2> you need exec perms on the dir
1592: [11:33:32] * Sjohn has joined #silverstripe
1593: [11:33:40] <Nightjar> spronk: yeh, dirs are opened.
1594: [11:33:45] <Nightjar> 'executed'
1595: [11:33:46] <spronk2> m
1596: [11:33:47] <spronk2> m
1597: [11:33:58] <origincube> directories all have execute permissions
1598: [11:34:08] <spronk2> yeah... allowovverride next thing to look at
1599: [11:34:15] <origincube> framework/main.php though
1600: [11:34:25] <origincube> only rw-r--r--
1601: [11:34:29] <Nightjar> is fine
1602: [11:34:57] <Nightjar> php interpreter reads file, not executes it
1603: [11:35:05] <origincube> ok
1604: [11:35:21] <origincube> so i should check that allow override is off, will cehck the hosting technical due
1605: [11:35:46] <Nightjar> well, allow override should have enough perms to let the .htaccess file do it's thing.
1606: [11:36:03] <Nightjar> my thing is to put my leftover food in the fridge and go to bed.
1607: [11:36:05] <Nightjar> g'nite
1608: [11:36:07] * Nightjar has left #silverstripe
1609: [11:37:07] <origincube> you send hosts info and requirements, and then you get issues you can't fix yourself
1610: [11:37:07] <origincube> ugh
1611: [11:37:17] * origincube apologises for the venting ;) but damn!
1612: [11:37:36] <spronk2> yeah
1613: [11:37:38] <spronk2> which host is this?
1614: [11:37:50] <origincube> its a "friend" of the client
1615: [11:38:01] <origincube> who does commercial hosting apparently
1616: [11:38:28] <origincube> he did the cms install
1617: [11:38:40] <origincube> so now he must make sure its running as required
1618: [11:38:51] <origincube> otherwise seriously i'll just recommend we move hosts
1619: [11:41:05] <origincube> ok he's provided me with the vhost config
1620: [11:41:26] <origincube> AllowOverride is set to ALL
1621: [11:41:35] <origincube> rewrite engine on
1622: [11:43:38] <spronk2> and it still sin't working
1623: [11:43:38] <spronk2> hmm
1624: [11:43:44] <origincube> NOPE
1625: [11:43:44] <spronk2> get the error log and pastebin
1626: [11:43:45] <origincube> sorry
1627: [11:43:47] <origincube> nope
1628: [11:44:27] <origincube> let me ask him. i mentiod to him that htaccess isn't being picked up becuase i get a 403 instead of 500 when htaccess has erroneous content in it
1629: [11:44:36] <origincube> which should cause a 500
1630: [11:44:45] <origincube> he says he'll resolve that shortly?
1631: [11:44:52] <origincube> will request the log
1632: [11:46:20] <spronk2> hmm
1633: [11:46:30] <spronk2> dodgy :P
1634: [11:46:33] <origincube> i know
1635: [11:46:43] <origincube> was not my recommended host
1636: [11:46:47] <origincube> had no problems with them
1637: [11:49:56] <kinglozzer> Ffs, why does PostgreSQL have to fail on Travis :(
1638: [11:50:02] <kinglozzer> The one thing I don't have installed
1639: [11:50:18] <spronk2> haha D:
1640: [12:16:05] * UndefinedOffset has joined #silverstripe
1641: [12:19:59] <Marvanni2> any experience with UNITtest en travis-ci?
1642: [12:30:52] * ikiptilii has joined #silverstripe
1643: [12:30:52] * ikiptilii quit (Excess Flood)
1644: [12:40:52] * r3v3rb quit (Quit: r3v3rb)
1645: [12:59:20] * keepout has joined #silverstripe
1646: [12:59:21] * keepout quit (Excess Flood)
1647: [13:18:05] * peter_ss has joined #silverstripe
1648: [13:18:39] * peter_ss1 quit (Ping timeout: 268 seconds)
1649: [13:21:29] * skorp is now known as zfmf
1650: [13:24:53] * Shashitechno quit (Quit: Page closed)
1651: [13:30:24] <zfmf> anyone an idea why i'm not getting this field in the template?? $fields->push(LiteralField::create('test','test','test')); // $Fields.dataFieldByName(test)
1652: [13:31:08] <Marvanni2> LiteralField is not a DataField
1653: [13:31:22] <Marvanni2> try fieldbyname
1654: [13:31:42] <zfmf> Marvanni2: thanks man ;)
1655: [13:32:20] * origincube has left #silverstripe
1656: [13:32:22] * jcwacky quit (Quit: jcwacky)
1657: [13:33:39] * catcher has joined #silverstripe
1658: [13:49:00] * osterlaus has joined #silverstripe
1659: [14:06:35] * osterlaus quit (Quit: Leaving.)
1660: [14:08:14] * coldhand quit (Ping timeout: 240 seconds)
1661: [14:08:47] * spronk2 quit (Quit: spronk2)
1662: [14:12:41] * zippy__ quit (Ping timeout: 245 seconds)
1663: [14:14:52] <kinglozzer> Grrrr. Is anyone remotely familiar with the ORM & PostgreSQL ?
1664: [14:18:24] <Zauberfisch23> tractorcow is probably most into the ORM right now
1665: [14:18:30] <Zauberfisch23> https://github.com/tractorcow/
1666: [14:18:55] <kinglozzer> I'm trying to do a DataList->leftJoin(). It works in everything except PostgreSQL :(
1667: [14:22:08] <Marvanni2> Zauber you have experience with travis?
1668: [14:23:00] <Zauberfisch23> not really
1669: [14:23:08] <Zauberfisch23> I know that it is magic
1670: [14:23:26] <Marvanni2> it fails opening my test file
1671: [14:23:44] <Marvanni2> im not sure if it is composer or the travis.yml file
1672: [14:23:59] <Marvanni2> it seems that on travis the module is installed in the wrong folder
1673: [14:24:29] <Zauberfisch23> I think you better ask chillu about that
1674: [14:24:54] <Zauberfisch23> unfortunately I am not a qualyfied to help you with that
1675: [14:25:13] <Marvanni2> hmz, i thought you knew everything :)
1676: [14:25:33] * zippy__ has joined #silverstripe
1677: [14:25:37] <Zauberfisch23> maybe I do know, but just choose not to tell you :P
1678: [14:39:18] <kinglozzer> chillu: My Travis build for this PR https://github.com/silverstripe/silverstripe-framework/pull/2595 is failing because the query comes out with the "ORDER BY Foo.Bar" unquoted - PostgreSQL doesn't like that. Any ideas why it's not quoted?
1679: [14:42:18] <kinglozzer> Hmm. SQLQuery->addOrderBy() looks like it may be the culprit here
1680: [14:48:30] <andylockran> hey guy - is it possible to use variables in a database field?
1681: [14:49:11] <andylockran> eg, in a HTMLTextField - use the HTML <p> $Name is going to be here </p>
1682: [14:50:11] <Marvanni2> you can write a parser for that
1683: [14:51:52] <andylockran> not shortcodes?
1684: [14:52:43] <Marvanni2> also, but then you need [Name /] or something
1685: [14:53:08] <Marvanni2> if you write a parser, you can add variables that you need to parse later on more easily
1686: [14:53:16] <kinglozzer> AWW YEAAAAA
1687: [14:53:18] <kinglozzer> Fixed it :D
1688: [14:56:57] <catcher> Hey guys, am I missing something?
1689: [14:56:59] <catcher> https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Hierarchy.php#L495
1690: [14:57:21] <catcher> How can $this->_cache_children ever be set if the property doesn't exist?
1691: [14:57:41] <catcher> https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/Hierarchy.php#L17
1692: [15:00:31] * peter_ss quit (Ping timeout: 241 seconds)
1693: [15:01:41] * peter_ss has joined #silverstripe
1694: [15:03:04] <catcher> Though even when the property exists, it's wiped after reloading the page.
1695: [15:04:31] <Sjohn> Does any here know if there is a module or method to edit dataobjects/pages on the front-end?
1696: [15:05:35] * cloph_away quit (Ping timeout: 246 seconds)
1697: [15:08:19] * cloph_away has joined #silverstripe
1698: [15:14:19] * coldhand has joined #silverstripe
1699: [15:15:06] * zfmf quit (Read error: Connection reset by peer)
1700: [15:15:22] * zfmf has joined #silverstripe
1701: [15:19:03] * Sjohn quit ()
1702: [15:20:03] * jrthomer quit (Ping timeout: 246 seconds)
1703: [15:23:19] * kerosene quit (Ping timeout: 256 seconds)
1704: [15:31:37] * travis-ci has joined #silverstripe
1705: [15:31:38] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1456 (3.0 - 5b5f98a : Ingo Schommer): The build passed.
1706: [15:31:38] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/0e37eaf5faf8...5b5f98a6fa37
1707: [15:31:38] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13265365
1708: [15:31:38] * travis-ci has left #silverstripe
1709: [15:34:03] * r3v3rb has joined #silverstripe
1710: [15:34:07] <r3v3rb> yello
1711: [15:34:16] <kinglozzer> green
1712: [15:34:17] <kinglozzer> ;)
1713: [15:34:28] <r3v3rb> kinglozzer: how's Norwich
1714: [15:34:32] <r3v3rb> wind swept?
1715: [15:34:43] <kinglozzer> No, fine actually, everything's good except the football team :P
1716: [15:34:56] <kinglozzer> Seems the storm died down quite a lot before it got here
1717: [15:35:03] <r3v3rb> and the restaurant at the stadium!
1718: [15:35:16] <kinglozzer> I've never eaten there!
1719: [15:35:25] <r3v3rb> don't - expensive and shite
1720: [15:35:41] <kinglozzer> Hahaha
1721: [15:35:48] <kinglozzer> How do you think Delia makes her money?!
1722: [15:35:49] <r3v3rb> last time I ventured up there it cost me a fortune to pay for 6 to eat there
1723: [15:36:28] <r3v3rb> I ordered a fancy sounding 'hot-dog' except the only thing fancy was the menu description... and it cost £16 or something
1724: [15:36:41] <r3v3rb> a disgrace I tell you
1725: [15:36:58] <kinglozzer> Wow
1726: [15:37:09] <kinglozzer> I always just grab a burger outside the ground for a few quid instead
1727: [15:37:33] <r3v3rb> next time thats the deal and we can sit with our legs over the canal/river instead!
1728: [15:38:06] * r3v3rb is getting fed up with 2.4.12 and readonly transformations that don't happen
1729: [15:39:07] <kinglozzer> Or head to Nando's down the road :P
1730: [15:39:49] <r3v3rb> true
1731: [15:40:14] <catcher> I need to make a flexible megamenu w/ each dropdown pretty different. I'm considering making a separate Nav modeladmin so I can allow CMS control over each nav header. Anyone else here done this?
1732: [15:44:03] <catcher> Or maybe I should just make them open HTMLEditorFields.
1733: [15:44:25] <r3v3rb> meh, I just turned down a job - 3 days a week £38k per year :\ am I mad?
1734: [15:44:42] <kinglozzer> Yes
1735: [15:44:45] <kinglozzer> Completely bonkers
1736: [15:44:46] <kinglozzer> :P
1737: [15:44:56] * origincube has joined #silverstripe
1738: [15:45:06] <kinglozzer> Depends on the job description I guess
1739: [15:45:13] <r3v3rb> it was 240miles of travelling though each week
1740: [15:45:17] <kinglozzer> Ahh, that sucks
1741: [15:45:26] <kinglozzer> And it would eat into that salary
1742: [15:45:27] <r3v3rb> 40miles each way a day
1743: [15:45:50] <r3v3rb> yep, I asked them to increase it to £40k but they said no
1744: [15:46:09] <r3v3rb> so I told them stuff it then - I have enough work not to need their job... :D
1745: [15:46:18] <origincube> hi guys, in terms of changes between 3.0.5 and 3.1.1. i'm getting an error relating to htmleditor configuration
1746: [15:46:25] <origincube> trying to call: HtmlEditorConfig::get('cms')->setOption(array('valid_elements' => '*[*]','extended_valid_elements' => '*[*]'));
1747: [15:46:36] <origincube> but i get an error relating to a missing second parameter?
1748: [15:47:08] <r3v3rb> kinglozzer: you ever used readOnly transformations?
1749: [15:47:29] <kinglozzer> origincube: You're not specifying which option you're setting
1750: [15:47:46] <kinglozzer> r3v3rb: Yeah, but never in 2.x I'm afraid
1751: [15:47:56] <r3v3rb> hmm, methinks they was broken
1752: [15:48:06] <r3v3rb> no matter what I try they remain 'open'
1753: [15:48:24] <r3v3rb> going to go with setting a disabled field and hidden one to pass the entry
1754: [15:48:25] <origincube> you mean i have to separate the calls out
1755: [15:48:36] <origincube> used to take arrays
1756: [15:48:38] <origincube> ok will try that
1757: [15:48:56] <kinglozzer> origincube
1758: [15:49:02] <kinglozzer> You can use ->setOptions()
1759: [15:49:12] <kinglozzer> With an array ^^
1760: [15:52:28] <origincube> ah setOptions
1761: [15:52:41] <origincube> worked in the previous version
1762: [15:53:15] <origincube> then second question
1763: [15:53:36] <origincube> seems that File::$allowed_extensions is now a private property, so how do we alter this?
1764: [15:54:03] <kinglozzer> Config::inst()->set('File', 'allowed_extensions', array('foo', 'bar'));
1765: [15:54:18] <kinglozzer> Or better, add them to _config.yml
1766: [15:54:48] <kinglozzer> Create a file 'mysite/_config/config.yml'
1767: [15:55:15] <origincube> ah, already one specified.. sweet.
1768: [15:55:44] <kinglozzer> origincube: In your 'mysite' folder? Make sure you don't edit the cms or framework ones
1769: [15:56:00] <origincube> yeah in mystie there is already a _config/_config.yml file
1770: [15:56:13] <origincube> just had SSViewer: theme: 'simple' in it
1771: [15:56:26] <kinglozzer> Ah, awesome
1772: [15:56:28] <kinglozzer> http://pastie.org/8443037
1773: [15:56:30] <kinglozzer> As an example
1774: [15:57:06] <origincube> awesome thanks :)
1775: [15:59:09] <origincube> could one theoretically set the valid_elements in the same way?
1776: [16:00:17] <kinglozzer> origincube: Nope, as $valid_elements is protected, not private
1777: [16:00:24] * Colin[pi] has joined #silverstripe
1778: [16:00:38] <origincube> ah cool
1779: [16:02:12] <origincube> will changing that require a rebuild?
1780: [16:02:19] <kinglozzer> Yea
1781: [16:02:23] <kinglozzer> Well, a flush
1782: [16:03:24] <origincube> hmm, i get an error with that format you've provided
1783: [16:03:40] <origincube> ah i think its tabs
1784: [16:03:51] <kinglozzer> Yeah it's fussy about spaces vs tabs :P
1785: [16:04:32] <origincube> i see so
1786: [16:04:33] <origincube> hehe
1787: [16:05:35] <origincube> will this just add to the allowed extensions or change the full set entirely?
1788: [16:05:43] <kinglozzer> It'll add
1789: [16:06:24] <kinglozzer> Anything you add in a yaml config file, or by Config::inst()->set('File', 'allowed_extensions', array('foo', 'bar'));, for example, will try to merge the existing values with the new ones when possible
1790: [16:06:40] <origincube> ah okee cool
1791: [16:06:47] <origincube> so i don't have to put an exhaustive list here
1792: [16:14:51] <origincube> thanks man :)
1793: [16:15:06] <kinglozzer> No problem :)
1794: [16:16:10] <origincube> i thought i had a handle on 3.0.5 and how i feel out of depth again
1795: [16:16:11] <origincube> haha
1796: [16:16:56] <kinglozzer> Things aren't massively different in 3.1, just those YAML things to get used to and changing 'public static' to 'private static' in a few places
1797: [16:17:09] <origincube> ah cool
1798: [16:17:33] <origincube> and switching how the menu is generated in content
1799: [16:17:42] <origincube> must get the breadcrumb stuff working still too
1800: [16:33:37] * mrzero quit (Remote host closed the connection)
1801: [16:33:46] * mrzero has joined #silverstripe
1802: [16:33:46] * mrzero quit (Changing host)
1803: [16:33:46] * mrzero has joined #silverstripe
1804: [16:35:17] * zfmf has left #silverstripe
1805: [16:40:12] * travis-ci has joined #silverstripe
1806: [16:40:12] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1458 (3.1 - 23942e4 : Ingo Schommer): The build passed.
1807: [16:40:12] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ba1e688729b1...23942e47829b
1808: [16:40:12] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13268625
1809: [16:40:12] * travis-ci has left #silverstripe
1810: [16:43:53] * lerni quit (Quit: lerni)
1811: [16:52:40] * r3v3rb quit (Quit: r3v3rb)
1812: [16:56:50] * kinglozzer quit (Remote host closed the connection)
1813: [17:02:26] * travis-ci has joined #silverstripe
1814: [17:02:26] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1460 (3.1 - d445c7e : Ingo Schommer): The build passed.
1815: [17:02:26] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/23942e47829b...d445c7e3698a
1816: [17:02:26] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13270504
1817: [17:02:26] * travis-ci has left #silverstripe
1818: [17:08:00] * willmorgan has joined #silverstripe
1819: [17:08:11] <willmorgan> anyone know how to check if the database is ready?
1820: [17:08:17] <willmorgan> Database::is_ready() or similar
1821: [17:09:30] <willmorgan> Security::database_is_ready() looks like it's correct for my usage, nvm!
1822: [17:16:41] * r3v3rb has joined #silverstripe
1823: [17:23:46] * SightUnseen has joined #silverstripe
1824: [17:24:11] * SightUnseen has left #silverstripe
1825: [17:34:16] <origincube> hi guys
1826: [17:35:08] <origincube> so this theme i'm working on needs two different menus, so i've created a redirector page that doesn't appear in the main menu, and creating these other items as its children
1827: [17:35:41] <origincube> now i know there is a way to me to render the children of this redirector page, but i can't remember what the basic call is, and can't seem to find the article i read on how to do it!
1828: [17:37:29] * chillu quit (Quit: chillu)
1829: [17:37:36] <origincube> will <% control ChildrenOf(AlternateMenu) %> work, or will <% loop ChildrenOf(AlternateMenu) %> work?
1830: [17:40:53] <origincube> ah have it working. sorted! :)
1831: [17:45:15] * chillu has joined #silverstripe
1832: [17:48:28] * peter_ss quit (Ping timeout: 240 seconds)
1833: [17:49:22] * DesignerX quit (Ping timeout: 268 seconds)
1834: [17:50:39] * willmorgan quit (Quit: Ciao mateys.)
1835: [17:54:17] * peter_ss has joined #silverstripe
1836: [17:57:48] * zfmf has joined #silverstripe
1837: [18:11:34] * SightUnseen has joined #silverstripe
1838: [18:13:59] * SightUnseen has left #silverstripe
1839: [18:30:54] * peter_ss quit (Ping timeout: 256 seconds)
1840: [18:40:19] * zfmf has left #silverstripe
1841: [19:24:11] * antmas has joined #silverstripe
1842: [19:36:43] * UndefinedOffset quit (Quit: Leaving.)
1843: [19:39:17] * Shrike_Finland has joined #silverstripe
1844: [19:40:02] * nickmolhoek has joined #silverstripe
1845: [19:41:03] <Pyromanik> urgh
1846: [19:41:10] <Pyromanik> what a rookie mistake
1847: [19:42:26] <Pyromanik> staying up until this morning.
1848: [19:42:34] <Pyromanik> FOOLISH BOY, YOU'RE NOT 22 ANYMORE
1849: [19:43:04] * origincube has left #silverstripe
1850: [19:44:01] <Pyromanik> 04:44 < r3v3rb> meh, I just turned down a job - 3 days a week £38k per year :\ am I mad?
1851: [19:44:05] <Pyromanik> not if it's not what you want
1852: [19:46:35] <r3v3rb> Pyromanik: they are facking about with the contract before i've even agreed
1853: [19:49:58] * UndefinedOffset has joined #silverstripe
1854: [19:54:00] <guzzlefry> 3 days a week sounds sketchy :P
1855: [19:59:08] * deanclkclk_ has joined #silverstripe
1856: [20:00:43] * deanclkclk quit (Ping timeout: 268 seconds)
1857: [20:00:48] * deanclkclk_ is now known as deanclkclk
1858: [20:05:52] * DigNZ has joined #silverstripe
1859: [20:06:35] * DigNZ quit (Client Quit)
1860: [20:07:41] * stecman has joined #silverstripe
1861: [20:08:08] <r3v3rb> night all
1862: [20:08:12] * r3v3rb quit (Quit: r3v3rb)
1863: [20:08:56] <Ryan_> Fontawesome updates all their class names... rabble rabble./
1864: [20:09:12] * stecman has left #silverstripe
1865: [20:14:34] * deanclkclk_ has joined #silverstripe
1866: [20:16:09] * deanclkclk quit (Ping timeout: 246 seconds)
1867: [20:16:14] * deanclkclk_ is now known as deanclkclk
1868: [20:23:22] * wilr_ has joined #silverstripe
1869: [20:24:07] * Jakx has joined #silverstripe
1870: [20:24:24] <Jakx> yo
1871: [20:25:01] * gelignite has joined #silverstripe
1872: [20:26:11] <Pyromanik> yo
1873: [20:27:56] <catcher> yo
1874: [20:28:55] <Pyromanik> fuckin'n bullshit icon fonts.
1875: [20:29:14] <Pyromanik> some retards idea of a good move.
1876: [20:29:15] <Pyromanik> WRONG
1877: [20:29:41] <Pyromanik> as per usual the whole internet rejoices at a bad idea because hey, now we can drop shadow our icons!
1878: [20:30:32] <Pyromanik> if it's a picture it better well be UTF-8 compliant.
1879: [20:30:37] * mobiusnz has joined #silverstripe
1880: [20:30:46] <Pyromanik> otherwise gtfo the earth.
1881: [20:31:06] <Ryan_> It's the sizing and flexibility that's great.
1882: [20:31:54] <Ryan_> you don't have to have 5 different images for various screen sizes.
1883: [20:32:55] <Ryan_> That and clients eat icons up like they're going to make their hair grow back.
1884: [20:38:06] <Pyromanik> Yeah, I understand WHY people think they're a good idea.
1885: [20:38:08] <Pyromanik> but they're not.
1886: [20:38:14] <Pyromanik> unless it's actual unicode.
1887: [20:39:28] <Pyromanik> wow
1888: [20:39:37] <Pyromanik> so fontawesome actually does it right.
1889: [20:39:48] <Pyromanik> First 'icon font' I've ever seen to do as such.
1890: [20:39:55] <Pyromanik> http://en.wikipedia.org/wiki/Private_Use_%28Unicode%29
1891: [20:40:05] <Pyromanik> characters are all in this range from what I could see.
1892: [20:40:22] * wilr_ quit (Remote host closed the connection)
1893: [20:41:22] <Ryan_> Yeah, man. They're great.
1894: [20:41:26] <Pyromanik> but then again, some of the icons they actually depict are already defined elsewhere in unicode, it'd be nice if they actually used the proper definitions where applicable.
1895: [20:41:37] <Pyromanik> eg, magnifying glass
1896: [20:41:52] <Pyromanik> also
1897: [20:42:00] <Pyromanik> makes me rage the fuck out "Designed for Bootstrap"
1898: [20:42:02] <Pyromanik> FFFFFUUUUUUUUUUUUUU
1899: [20:42:03] <Ryan_> They override certain unicodes to fit in with the style of the rest of them.
1900: [20:42:07] <Pyromanik> it's a font!
1901: [20:42:14] <Pyromanik> it's designed to draw pretty little pictures!
1902: [20:42:17] <Pyromanik> ANYWHERE
1903: [20:42:17] <Ryan_> Yeah, but it uses the bootstrap classes.
1904: [20:42:26] <Ryan_> If you check the examples.
1905: [20:42:37] <Pyromanik> in the CSS sheet. But in essesnce it's at core, just a font.
1906: [20:42:51] * deanclkclk_ has joined #silverstripe
1907: [20:42:59] <Ryan_> It extends bootstrap
1908: [20:43:20] <Pyromanik> buzzwords to attract peoples!
1909: [20:43:33] <Ryan_> I believe it's called marketing :P
1910: [20:43:42] <Ryan_> Bootstrap =- views
1911: [20:43:47] <Ryan_> =**
1912: [20:43:55] <Pyromanik> and by doing so they alienate all other users
1913: [20:44:07] <Pyromanik> Foundation user would go "oh, shit. Is there a foundation version?"
1914: [20:44:09] * deanclkclk quit (Ping timeout: 246 seconds)
1915: [20:44:10] <Ryan_> My website get sa shirt load of views for a cakePHP bootstrap theme
1916: [20:44:16] * deanclkclk_ is now known as deanclkclk
1917: [20:44:20] <Pyromanik> vanilla CSS user would go "but I don't use bootstrap..."
1918: [20:44:32] * gelignite_ has joined #silverstripe
1919: [20:45:05] <Ryan_> The 1.0 version was literally just the bootstrap icons converted into fonts.
1920: [20:45:14] <Pyromanik> heh
1921: [20:45:17] <Ryan_> It was originally just to make bootstrap a little better.
1922: [20:45:24] <Pyromanik> yeah
1923: [20:45:26] <Pyromanik> I get it
1924: [20:45:29] <Ryan_> And they just kept adding fonts.
1925: [20:45:40] <Ryan_> No point in biting the hand that feeds you.
1926: [20:45:46] <Pyromanik> And it's nice they actually do it properly rather than most sites I load and see L J Q R F
1927: [20:45:52] * wilr_ has joined #silverstripe
1928: [20:45:54] <Ryan_> Ugh, fuck that shit.
1929: [20:46:05] <Pyromanik> enable fonts and suddenly TWITTER, FACEBOOK, GOOGLE PLUS, REDDIT
1930: [20:46:19] <Ryan_> Lol
1931: [20:46:39] <Pyromanik> and I want to beat the shit out of web designers at large.
1932: [20:47:17] * gelignite quit (Ping timeout: 272 seconds)
1933: [20:49:12] <Pyromanik> So colour me impressed with it Ryan_ . I has restored a little bit of faith in interwebs.
1934: [20:49:38] <Ryan_> Pyromanik: :)
1935: [20:49:51] <Ryan_> Pyromanik: Have a play around with them, they're fun to work with.
1936: [20:50:11] <Pyromanik> I'm not a designer :(
1937: [20:50:14] <Ryan_> You don't have to be, that's the beauty.
1938: [20:50:39] <Pyromanik> I'm just a very opinionated lowly developer trying to make his way through life.
1939: [20:51:10] <Ryan_> Aren't we all.
1940: [20:51:13] <Jakx> I'm trying to outsource a web chat section of my current project, the developer wants to use codeigniter as the framework. Is there any reason why this would cause conflicts?
1941: [20:51:42] <Pyromanik> Jakx: yes, code igniter is shit from what I hear.
1942: [20:51:52] <Pyromanik> why not just get a chat service like what webdrive have?
1943: [20:51:57] <Ryan_> Pyromanik: It's not bad. Though it's a bit big for jut a chat module.
1944: [20:52:15] <Pyromanik> hmm, maybe I'm thinking of some other one.
1945: [20:52:48] <Ryan_> Codeigniter is a pretty tried and true framework.
1946: [20:53:40] <Pyromanik> fffffffffuuuuuuuuuuuu tagfield y u no search tags :<
1947: [20:53:48] <Jakx> I'm wondering if it would be worthwhile asking the developer to learn how to develop as a Silverstripe module?
1948: [20:53:52] <Pyromanik> Ryan_: ha, that's the biggest fallacy there is.
1949: [20:54:02] <Pyromanik> Just because idiots use something en masse, doesn't mean it's good.
1950: [20:54:14] <Pyromanik> Critical Reasoning 101, AYE ss23 !
1951: [20:54:34] <Jakx> Pyromanik, my requirements don't really meet those of support chat plugins etc. So just needs that extra bit of customisation.
1952: [20:55:18] <Ryan_> Pyromanik: Never said that, I've used it before and I liked it. Though I'm more a of a cakePHP man myself.
1953: [20:55:36] <Pyromanik> tried and true is pretty much that.
1954: [20:55:38] * UndefinedOffset quit (Quit: Leaving.)
1955: [20:56:10] <Pyromanik> I'm trying to think of the framework I'm thinking of if it's not codeigniter
1956: [20:56:21] <Pyromanik> Heard nothing but bad things about it.
1957: [20:56:31] <Pyromanik> Jakx: hmm.
1958: [20:56:44] <Pyromanik> well, there's no real reason it'd conflict with SS.
1959: [20:56:48] <Pyromanik> that I'm aware of.
1960: [20:56:52] <Ryan_> Zend?
1961: [20:56:58] * Stomach has joined #silverstripe
1962: [20:57:01] <Pyromanik> Ryan_: hahahahaha, besides that :P
1963: [20:57:11] <Ryan_> Pyromanik: Symfony?|
1964: [20:58:06] <Pyromanik> nah, there was some kind of link with fire.
1965: [20:58:10] <Pyromanik> like 'igniter'
1966: [20:58:15] <Ryan_> Shrug.
1967: [20:58:25] <Pyromanik> which is why I'm confused, if it is.
1968: [20:58:35] <Pyromanik> oh well, can't be any worse than modx.
1969: [20:58:41] <Ryan_> Bobx
1970: [20:59:28] <Toe> modx has an amazing way of making simple things a pain in the ass
1971: [21:00:29] <Ryan_> Is there a decent Html helper class for forms in SS?
1972: [21:00:33] <Pyromanik> hahaha bobx
1973: [21:00:49] <Pyromanik> Ryan_: define 'html helper'
1974: [21:00:49] <Pyromanik> ?
1975: [21:01:33] <Ryan_> For example letting eke do something like:
1976: [21:02:08] <Jakx> Pyromanik, thanks for your insight :), likewise to Ryan_
1977: [21:02:21] <antmas> mornin
1978: [21:02:32] <Ryan_> $fields->addFieldToTab("Root.Main", new HtmlHelper-|TextField("MapCoords", "The coordinates for the map", array('placeholder' => 'Derp', 'maxlength' => '30')), 'Content');
1979: [21:03:12] <Pyromanik> Ryan_: yea, but what IS an 'htmlhelper'?
1980: [21:03:18] <Pyromanik> woo, break time
1981: [21:03:30] <Ryan_> Class that extends the form fields
1982: [21:03:37] * simon_w has joined #silverstripe
1983: [21:03:47] <Ryan_> Pyromanik: What's a break?
1984: [21:03:54] <Ryan_> Pyromanik: Where can I obtain one?
1985: [21:04:03] <Jakx> break;
1986: [21:04:23] <Ryan_> case "10am": break;
1987: [21:04:35] <Jakx> good for ending those monotonous loops
1988: [21:04:47] * UncleCheese has joined #silverstripe
1989: [21:05:42] * antmas adds a break point to his calendar
1990: [21:06:21] <Ryan_> Would SS find use of themes?
1991: [21:06:26] <Ryan_> if I made some?
1992: [21:07:31] <Toe> oh god. I just got an email about a web dev job. it was from a third-party recruiter, and didn't specify a company, so I did a bit of Google-fu, and was able to match the job description. 'Interactive Life Forms LLC'. best known for making the FleshLight. <_<;;
1993: [21:07:46] <Ryan_> Lol!
1994: [21:08:37] <antmas> YOU HAVE TO TAKE THE JOB
1995: [21:08:41] <antmas> FOR US!
1996: [21:08:54] <Toe> >_<
1997: [21:12:02] * guzzlefry wonders how that would look on a resume.
1998: [21:12:39] <Ryan_> Illuminating?
1999: [21:14:18] <catcher> I think it'd really help flesh a resume out.
2000: [21:15:56] <ss23> 09:54:47 < Pyromanik> Just because idiots use something en masse, doesn't mean it's good.
2001: [21:15:59] <ss23> 09:54:59 < Pyromanik> Critical Reasoning 101, AYE ss23 !
2002: [21:16:01] <ss23> DAMN RIGHT
2003: [21:16:03] <ss23> FUCKING FALACY RIGHT THERE
2004: [21:16:41] <guzzlefry> 0.o
2005: [21:16:42] <guzzlefry> bro
2006: [21:17:05] * guzzlefry sends ss23 to sensitivity training.
2007: [21:17:08] <guzzlefry> Everyone's doing it! :P
2008: [21:17:21] * guzzlefry hides.
2009: [21:17:27] <ss23> What is sensitivity training? :O
2010: [21:17:35] <guzzlefry> It's this thing in the U.S.
2011: [21:17:44] <guzzlefry> because we're still racist or some nonsense like that.
2012: [21:17:53] <guzzlefry> basically
2013: [21:18:14] <guzzlefry> politiical correctness I guess
2014: [21:18:24] <antmas> ^^^ gross
2015: [21:18:32] <guzzlefry> Because people have some imaginary right not to get offended.
2016: [21:19:10] <AlphaCactus> no
2017: [21:21:54] <ss23> Wait
2018: [21:22:09] <Pyromanik> console.log('wtf mate')
2019: [21:22:10] <ss23> So is it to teach you to be racist, or not to be racist, or to not care about racism, or to care about racism/
2020: [21:22:11] <guzzlefry> hammertime?
2021: [21:22:16] <ss23> guzzlefry: DUDE WHAT?
2022: [21:22:19] <ss23> It aint "wait, hammer time"
2023: [21:22:25] <guzzlefry> BRO
2024: [21:22:25] <ss23> dats totes cray cray fish fillet
2025: [21:22:30] <guzzlefry> :P
2026: [21:22:55] <guzzlefry> ss23: it teaches you to apply racial stereotypes to people and avoid offending them by using them.
2027: [21:22:58] <guzzlefry> in effect...
2028: [21:23:04] <Pyromanik> Ryan_: themes? People tend to do custom development with SS, it doesn't really have the derpy userbase that a system like werdderp does.
2029: [21:23:06] <Pyromanik> ie, that hunt for themes.
2030: [21:23:19] <Pyromanik> but hey, I'm sure it'd be appreciated.
2031: [21:23:21] <ss23> ...
2032: [21:23:24] <ss23> Sounds retard
2033: [21:23:24] <Pyromanik> might help SS to get more exposure.
2034: [21:23:26] <guzzlefry> ss23: http://en.wikipedia.org/wiki/Sensitivity_training
2035: [21:23:37] <Ryan_> Pyromanik: Always nice to have a couple of layouts for rapid dev.
2036: [21:23:57] <Ryan_> Pyromanik: More of a set of elements that can be quickly added and manipulated.
2037: [21:24:03] <Pyromanik> 10:08 < antmas> FOR US!
2038: [21:24:05] <Pyromanik> FOR SCIENCE!
2039: [21:24:39] <Pyromanik> 10:14 < catcher> I think it'd really help flesh a resume out.
2040: [21:24:40] <Pyromanik> oh ho ho
2041: [21:24:42] <ss23> Toe: ... do it.
2042: [21:24:45] <ss23> Toe: Free fleshlights.
2043: [21:24:56] <Pyromanik> a pun in response to a pun, fuck I'm brillaint
2044: [21:25:03] <ss23> Ryan_: You're welcome to make themes, and you can even put them on our addons.silverstripe.org :D
2045: [21:25:16] <AlphaCactus> its'll be the first new theme in 6 yrs too
2046: [21:25:26] <Ryan_> ss23: Sounds good.
2047: [21:25:30] <Ryan_> lol
2048: [21:25:59] <Pyromanik> Fucking Americans man, honestly. Y'all get offended at anything.
2049: [21:26:12] <AlphaCactus> that offends me
2050: [21:26:15] <Pyromanik> y'all love getting offended so much that you get offended on other people's behalf.
2051: [21:26:19] <Pyromanik> and then you get all self rightious about shit
2052: [21:26:27] <Pyromanik> it's fucking ridiculious
2053: [21:26:35] <guzzlefry> pft
2054: [21:26:38] <guzzlefry> don't generalize :P
2055: [21:26:47] <Pyromanik> I'm sensitive.
2056: [21:26:53] <Pyromanik> I've had years of practice :P
2057: [21:27:22] <AlphaCactus> its the video games. they make people get offended easily.
2058: [21:27:28] <Pyromanik> I mean sure, there's the right to take offence to something.
2059: [21:27:32] <Pyromanik> but then just deal with it.
2060: [21:27:41] <Pyromanik> don't get all YO, YOU FUCKING OFFEND ME, HAVE A LAW SUIT
2061: [21:27:48] <guzzlefry> lawl
2062: [21:27:55] <Pyromanik> claim $2b in defamation damages, etc.
2063: [21:28:02] <Pyromanik> 10:27 < AlphaCactus> its the video games. they make people get offended easily.
2064: [21:28:05] <Pyromanik> hahaha
2065: [21:28:18] <Pyromanik> here's an idea; just don't give a shit what colour someone's skin is.
2066: [21:28:25] <guzzlefry> You don't have ridiculous lawsuits over there?
2067: [21:28:27] <guzzlefry> I'm guessing .nz
2068: [21:28:31] <Pyromanik> arseholes be arseholes, no matter wut.
2069: [21:28:41] <Pyromanik> guzzlefry: no other country in the world does.
2070: [21:28:51] <guzzlefry> madness
2071: [21:28:52] <guzzlefry> well
2072: [21:28:58] <guzzlefry> sanity on your part :P
2073: [21:29:06] <Pyromanik> There are stupid litigations, and then there's a chasam, then there's America's legal system.
2074: [21:29:16] <Pyromanik> sappina everyone for anything at any time!
2075: [21:29:19] <Pyromanik> AND PROBABLY WIN
2076: [21:29:20] <AlphaCactus> remind me where u live Pyro
2077: [21:29:25] * antmas quit (Ping timeout: 250 seconds)
2078: [21:29:30] <Pyromanik> New Zealand.
2079: [21:29:34] <AlphaCactus> subpoena silly
2080: [21:29:40] <Pyromanik> probably
2081: [21:29:49] <Pyromanik> but it's colour.
2082: [21:29:54] * antmas has joined #silverstripe
2083: [21:29:55] <AlphaCactus> skeptic
2084: [21:29:57] <antmas> awesome
2085: [21:30:08] * catcher quit (Quit: Leaving)
2086: [21:30:24] <antmas> "you have been added to repository A"
2087: [21:30:38] <antmas> first email I see is titled "WHAT A MESS!?"
2088: [21:30:40] <antmas> lol
2089: [21:30:44] <guzzlefry> uh oh
2090: [21:30:47] <Pyromanik> rofl
2091: [21:30:56] <Pyromanik> o.0 tagfield, y u troll me liek dis?
2092: [21:31:41] * Pyromanik changed separator to ',', autosuggest stopped working, tried to put debugs into javascript to find out why, debug doesn't show up but suddenly autosuggests do.
2093: [21:31:51] <AlphaCactus> don't get offended Pyromanik
2094: [21:31:53] <Pyromanik> :'(
2095: [21:32:36] <Pyromanik> don't get labelled a communist AlphaCactus
2096: [21:33:08] <Pyromanik> if there's anything I've learnt about american history, it's that the mere mention of communisim makes you an enemy of the state, and no one really knows why.
2097: [21:36:18] <Ryan_> Is there a reason sortableGridField isn't in SS by default?
2098: [21:36:38] <guzzlefry> I asked this a while ago.
2099: [21:36:46] <guzzlefry> Basically, numerous implementations of that.
2100: [21:36:55] <guzzlefry> And probably some other reasons.
2101: [21:37:17] <Pyromanik> Ryan_: because use ajshort's gridfeildextensions
2102: [21:37:30] <Ryan_> hmm?
2103: [21:37:49] <Pyromanik> gridfield was designed as an API, not as a complete solution.
2104: [21:37:55] <Ryan_> ah, right.
2105: [21:38:07] <guzzlefry> speaking of
2106: [21:38:10] <Pyromanik> sortable component implies that whatever you're listing is sortable, which in most cases isn't the case.
2107: [21:38:13] <guzzlefry> Pyromanik: Did you ever figure out how to add that button?
2108: [21:38:31] <Pyromanik> guzzlefry: yeah, subclass and extends.
2109: [21:38:54] * antmas quit (Quit: Page closed)
2110: [21:40:20] <AlphaCactus> Pyromanik: oi, you just mentioned communist you communist!
2111: [21:40:23] * kerosene has joined #silverstripe
2112: [21:40:32] * gelignite_ quit (Quit: http://bit.ly/nkczDT)
2113: [21:40:57] <Pyromanik> AlphaCactus: ikr.
2114: [21:41:00] <Pyromanik> But I doesn't afraid.
2115: [21:42:17] <AlphaCactus> they will send dose guys 4 u
2116: [21:42:34] <Pyromanik> not here.
2117: [21:42:53] <Pyromanik> They couldn't even get Kim Dotcom.
2118: [21:43:12] <ss23> I saw a lulz comic the other day
2119: [21:43:20] <ss23> "Don't bother spying on NZ -- they'll do what we tell them anyway"
2120: [21:43:35] <Pyromanik> rofl
2121: [21:44:05] <Pyromanik> Our officers have begun to carry sidearms on their person, and this makes me extreme sadpanda.
2122: [21:44:23] <Pyromanik> mind you, only ever seen it at the airport.
2123: [21:44:24] <AlphaCactus> soon ppl will be getting shot
2124: [21:44:32] <Pyromanik> nah.
2125: [21:44:39] <ss23> wut
2126: [21:44:40] <Pyromanik> but it winds me the fuck up that they're even there.
2127: [21:44:41] <ss23> Pyromanik: Is this in NZ?
2128: [21:44:50] <Pyromanik> they have a tazer on one side, and a pistol on the other.
2129: [21:44:50] <Pyromanik> ss23: yeh.
2130: [21:44:51] * deanclkclk_ has joined #silverstripe
2131: [21:44:52] <simon_w> Oh god, WP hardcodes URLs in the database
2132: [21:44:53] <ss23> Has there been an increase in the number of situations they've wanted a gun at the airport?
2133: [21:44:57] <Pyromanik> seen in both WLG and CHC airports.
2134: [21:45:04] <Pyromanik> ss23: no.
2135: [21:45:05] <ss23> I'm not aware of any airport shootouts recently to warrant htis
2136: [21:45:08] <ss23> So it seems stupid
2137: [21:45:11] <AlphaCactus> Pyromanik is smart
2138: [21:45:13] <Pyromanik> exactly!
2139: [21:45:28] <Pyromanik> ss23: 'international pressure' about security I'm sure.
2140: [21:45:36] <simon_w> Pyromanik, only happens in international airports
2141: [21:45:38] <ss23> stupid
2142: [21:45:42] <Pyromanik> simon_w: yeah, I realise.
2143: [21:45:47] <Pyromanik> but I still find it disappointing.
2144: [21:46:00] <AlphaCactus> simon_w: re: wp, yes it does. super gay.
2145: [21:46:06] <Ryan_> They do it with their images too.
2146: [21:46:14] <Pyromanik> 10:45 < AlphaCactus> Pyromanik is smart
2147: [21:46:14] <Pyromanik> ?
2148: [21:46:29] <AlphaCactus> was trying to see if I could say something you wouldn't object to :P
2149: [21:46:30] <guzzlefry> simon_w: welcome to hell!
2150: [21:46:43] <Pyromanik> AlphaCactus: well I object to that!
2151: [21:46:47] <Pyromanik> :P
2152: [21:46:55] * simon_w is currently moving a WP site from a localhost setup to a live one
2153: [21:48:03] <simon_w> The developer who built it also handily forgot to add the .htaccess
2154: [21:48:03] <Ryan_> if you're migrating backup your database then go to settings > Site address and change it
2155: [21:48:10] <Ryan_> to the site it will go onto.
2156: [21:48:11] <Ryan_> The local site won't work after that.
2157: [21:48:13] <Ryan_> Upload the files and database to your server.
2158: [21:48:14] * deanclkclk quit (Ping timeout: 245 seconds)
2159: [21:48:14] <simon_w> I don't have the local site
2160: [21:48:17] * deanclkclk_ is now known as deanclkclk
2161: [21:48:20] <Ryan_> Then roll your database back tot the backup on your local server
2162: [21:48:28] <Pyromanik> simon_w: werdderp 'hard codes' urls?
2163: [21:48:35] <simon_w> And does changing that go and change all the hardcoded URLs in posts?
2164: [21:48:37] <Pyromanik> as opposed to SS storing url bits in a db?
2165: [21:48:44] <Ryan_> oh, then you'll have to find/replace the sql file.
2166: [21:48:47] <Ryan_> yeah, it does.
2167: [21:48:58] <simon_w> Pyromanik, full URLs
2168: [21:49:22] <Pyromanik> simon_w: ah, so if you move the page it doesn't update to the parent's url or whatever?
2169: [21:49:22] <Pyromanik> derp derp
2170: [21:49:26] <Ryan_> it does.
2171: [21:49:36] <Ryan_> but not if you just drag and drop the files to a different domain
2172: [21:49:42] <Ryan_> they hardcode the domain name.
2173: [21:49:56] <Ryan_> in the db
2174: [21:49:59] <Ryan_> for some reason.
2175: [21:50:07] <Pyromanik> h
2176: [21:50:08] <Pyromanik> ah
2177: [21:50:10] <Pyromanik> ahahaaha
2178: [21:50:11] <Pyromanik> hahahahahahhaaha
2179: [21:50:19] <Pyromanik> 'for seo', no dobut.
2180: [21:50:25] <Ryan_> Shrug.
2181: [21:50:25] <Pyromanik> I'M JUST A GIRL
2182: [21:50:26] <Pyromanik> etc
2183: [21:50:42] <ss23> dammit, I don't know the rest of the lyircs, just that line
2184: [21:50:44] <ss23> OH I'M JUST A GIRL
2185: [21:50:49] <ss23> SOMETHING SOMETHING SOMETHING
2186: [21:50:53] <ss23> SOMETHING SOMETHING SOMETHINg
2187: [21:50:55] <ss23> OH I'M JUST A GIRL
2188: [21:50:58] <ss23> WOAAAH
2189: [21:51:18] <simon_w> Skater boy?
2190: [21:51:29] <ss23> lol no
2191: [21:51:44] <simon_w> HE'S JUST A BOY
2192: [21:51:49] <simon_w> CAN I MAKE IT ANY MORE OBVIOUS?
2193: [21:51:58] <Pyromanik> xD
2194: [21:52:04] <Pyromanik> Avril.
2195: [21:52:06] * peter_ss has joined #silverstripe
2196: [21:52:24] <ss23> Take this pink ribbon off my eyes
2197: [21:52:28] <ss23> I'm exposed and it's no big surprise
2198: [21:52:32] <ss23> Don't you think I know exactly whre I stand
2199: [21:52:37] <ss23> THIS WORLD IS FORCING ME TO HOLD YOUR HAND
2200: [21:52:48] <ss23> OHHHH CAUSE I'M JUST A GIRL, LITTLE OLD ME, DON'T LET ME OUT OF YOUR SIGHT
2201: [21:52:50] <Ryan_> I'm just a girl,
2202: [21:52:50] <Ryan_> Take a good look at me
2203: [21:52:51] <Ryan_> Just your typical prototype
2204: [21:52:59] <ss23> OH I'M JUST A GIRL, ALL PRETTY AND PETITE, SO DON'T LET ME HAVE ANY RIGHTS
2205: [21:52:59] <peter_ss> hi guys is there any function that I can change the CMS admin logo
2206: [21:53:00] <peter_ss> ?
2207: [21:53:04] <ss23> peter_ss: Yes!
2208: [21:53:14] <peter_ss> ss23? LeftAndMain:: ?
2209: [21:53:25] <ss23> I don't know what it is
2210: [21:53:29] <ss23> I just know I've done it before
2211: [21:53:34] <peter_ss> lol!
2212: [21:53:34] * ss23 looks at simon_w
2213: [21:53:42] <Pyromanik> I'm just a girl in this world, and that's all you'll let me be.
2214: [21:53:47] <peter_ss> LeftAndMain::setLogo 2.4
2215: [21:54:00] <peter_ss> but I've checked the LeftAndMain in 3.1.1 it doesn't have setLogo
2216: [21:54:06] <Pyromanik> peter_ss: because CSS.
2217: [21:54:20] <peter_ss> what?
2218: [21:54:38] <ss23> Oh
2219: [21:55:00] <ss23> Oh yeah
2220: [21:55:07] <ss23> peter_ss: It's done with CSS, so just make a new .css file
2221: [21:55:11] <Pyromanik> peter_ss: user YML. http://api.silverstripe.org/3.1/source-class-LeftAndMain.html#1725
2222: [21:55:16] <Pyromanik> use*
2223: [21:55:17] <ss23> OR YML
2224: [21:55:20] <ss23> Man, confusing
2225: [21:55:30] <Ryan_> you could just change it in your editor.css file in your theme.
2226: [21:55:37] <Pyromanik> ss23: no, make a CSS file, and make CMSMain require it via YML
2227: [21:55:39] <Ryan_> it's a background image.
2228: [21:55:46] <peter_ss> yay
2229: [21:55:59] <Ryan_> what about the editor.css?
2230: [21:56:03] <Pyromanik> dunno
2231: [21:56:13] <Pyromanik> still used I think
2232: [21:56:14] <Pyromanik> not sure,
2233: [21:56:14] <Ryan_> Isn't that it's purpose?
2234: [21:56:20] <Pyromanik> might include typography directly.
2235: [21:56:33] <Pyromanik> Ryan_: no, editor.css is for styling the HTML Editor content.
2236: [21:56:38] <Pyromanik> specifically.
2237: [21:56:39] <Ryan_> ah, kay.
2238: [21:56:47] <Pyromanik> it never has been included into the CMS.
2239: [21:57:02] <peter_ss> so should I just change the image then?
2240: [21:57:13] <peter_ss> but that kinda sucks
2241: [21:57:35] <Pyromanik> no
2242: [21:57:37] <Pyromanik> gawd
2243: [21:57:41] <Pyromanik> wtf
2244: [21:57:46] <simon_w> LeftAndMain: extra_css_requirements or whatever it is
2245: [21:57:47] <Pyromanik> make a file
2246: [21:58:11] <Pyromanik> mysite/css/myadminoverridestuff.css
2247: [21:58:12] * antmas has joined #silverstripe
2248: [21:58:41] <peter_ss> haha
2249: [21:58:49] <Pyromanik> .cms-logo a{ background: url(../images/myCMSLogo.png) }
2250: [21:58:58] <peter_ss> and then override the css class then
2251: [21:59:01] <Pyromanik> put myCMSLogo.png in mysite/images
2252: [21:59:13] <peter_ss> ok thanks Pyromanil
2253: [21:59:16] <peter_ss> Pyomanik
2254: [21:59:19] <Pyromanik> open mysite/_config/mysite.yml
2255: [21:59:24] <Pyromanik> LeftAndMain:
2256: [21:59:30] <antmas> Pryomanil sounds like a drug
2257: [21:59:30] <peter_ss> but does the changes of the loading screen still available?
2258: [21:59:33] <antmas> ffff
2259: [21:59:37] <antmas> Pyromanil
2260: [21:59:39] <peter_ss> hahaha
2261: [21:59:49] <Ryan_> The image is 22x22 btw
2262: [21:59:49] <Pyromanik> extra_requirements_themedCss:
2263: [22:00:05] <Pyromanik> - "mysite/css/myadminoverridestuff.css"
2264: [22:00:15] <peter_ss> damn do we have that in the docs?
2265: [22:00:20] <Pyromanik> peter_ss: same dea.
2266: [22:00:21] <Pyromanik> deal*
2267: [22:00:39] <peter_ss> ok for the loading? same way of overriding it right?
2268: [22:00:43] <Pyromanik> add the following to the same css file
2269: [22:00:43] <Pyromanik> .ss-loading-screen .loading-logo { background: url(../images/loading.png) no-repeat center;
2270: [22:00:46] <Pyromanik> }
2271: [22:00:49] <Pyromanik> .ss-loading-screen .loading-logo .loading-animation { margin-top: 130px;
2272: [22:00:50] <simon_w> hmm, more ansible or some beatbox documentation?
2273: [22:01:14] <Pyromanik> }
2274: [22:01:21] <Pyromanik> add mysite/images/loading.png
2275: [22:01:24] <Pyromanik> not difficult.
2276: [22:01:26] <Pyromanik> just css.
2277: [22:01:35] <peter_ss> Pyormanik thanks man
2278: [22:01:40] <peter_ss> will try it out
2279: [22:02:57] <Ryan_> Need to get rid of Outlines on the buttons in the admin area.
2280: [22:03:22] <Pyromanik> outlines?
2281: [22:03:35] <Pyromanik> Ryan_: see preceeding 20+ lines.
2282: [22:03:46] <Pyromanik> ;)
2283: [22:03:46] <Ryan_> Yeah, blink and webkit browsers have outlines on focus
2284: [22:03:54] <Ryan_> I mean by default.
2285: [22:03:56] <Pyromanik> so does opera (12)
2286: [22:04:15] <Ryan_> opera is webkit now isn't it?
2287: [22:04:42] <simon_w> Nope
2288: [22:04:47] <simon_w> Never will be either
2289: [22:04:54] <Ryan_> Thought they were ditching whatever they were using and going to webkit.
2290: [22:05:13] <simon_w> They're using Blink
2291: [22:05:19] <antmas> it';s blink
2292: [22:05:21] <antmas> yeh
2293: [22:05:22] <Ryan_> oh, it uses webkit at the moment. They're moving to Blink
2294: [22:05:36] <antmas> they're contributing to blink, not yet using it I thought
2295: [22:05:48] <simon_w> No, it uses Presto and they're moving to Blink
2296: [22:09:25] <Pyromanik> Ryan_: yea, but opera 12 is still presto
2297: [22:09:45] <ss23> simon_w: In the database, a page has NULL for an SS_Datetime
2298: [22:09:58] <Ryan_> Anyhow my point is: Outlines are gross.
2299: [22:10:02] <ss23> simon_w: When I var_dump($this) from in a function in the object on the front end, it has a value of "2011-07-04 12:29:21"
2300: [22:10:11] <ss23> simon_w: How can I debug where this value is coming from?
2301: [22:10:19] <peter_ss> Pyronmanik don't know what is missing but it throws error
2302: [22:10:30] <peter_ss> [Warning] Invalid argument supplied for foreach()
2303: [22:10:43] <peter_ss> foreach ($extraThemedCss as $file => $config) { in LeftAndMain.php
2304: [22:10:51] <simon_w> ss23, function setFieldName($value) { SS_Backtrace::backtrace(); $this->setField('FieldName', $value); }
2305: [22:11:03] <simon_w> peter_ss, you're missing the -
2306: [22:11:20] <peter_ss> hmm
2307: [22:11:25] <ss23> simon_w: Good idea :D
2308: [22:12:16] <ss23> simon_w: And what if that's never called?
2309: [22:12:36] <ss23> hmm
2310: [22:12:55] <peter_ss> simon_w
2311: [22:12:57] <peter_ss> LeftAndMain:
2312: [22:12:57] <peter_ss> extra_requirements_themedCss:
2313: [22:12:57] <peter_ss> - "mysite/css/admin_override.css"
2314: [22:12:59] <peter_ss> didn't work
2315: [22:13:57] <ss23> "Trying to decide which one to go with: @silverstripe, @drupal or @modx .. all very good CMSs. You can't go wrong with either of them." -- not sure if this guy is trolling or what
2316: [22:14:25] <ss23> wah, SilverStripe magic is raping me and I don't like it
2317: [22:14:26] <ss23> :<
2318: [22:15:31] <peter_ss> hmm it didn't override it :(
2319: [22:15:46] <Jakx> ss23, I can't tell if he's implying that Silverstripe is equally as shit as drupal or modx or if he's trolling....
2320: [22:15:52] <simon_w> peter_ss, just use extra_requirements_css
2321: [22:16:52] <AlphaCactus> derpal is good if you have no dev skills at all and can't hire a dev and ur hed explodes if you see code.
2322: [22:18:19] <Pyromanik> 11:05 < Ryan_> oh, it uses webkit at the moment. They're moving to Blink
2323: [22:18:27] <Pyromanik> nope, they went straight to blink.
2324: [22:18:34] <Pyromanik> no webkit involved anywhere
2325: [22:18:42] <ss23> Well
2326: [22:18:51] <ss23> Given how close blink and webkit are, "no webkit involved" is a bit misleading
2327: [22:18:54] <ss23> :P
2328: [22:18:58] <antmas> true
2329: [22:19:09] <antmas> all they did was 'remove code'
2330: [22:19:11] <antmas> heh
2331: [22:19:30] <Pyromanik> 11:13 < ss23> "Trying to decide which one to go with: @silverstripe,
2332: [22:19:34] <simon_w> The WebKit binary ended up dropping something like 5% inside once they removed all the Chrome stuff
2333: [22:19:41] <simon_w> *in size
2334: [22:19:46] <Pyromanik> if he puts modx in the same category then he's a retard who deserves what he gets.
2335: [22:20:26] <Pyromanik> 11:15 <@simon_w> peter_ss, just use extra_requirements_css
2336: [22:20:35] <Pyromanik> hmm yeah might have copied the wrong config option
2337: [22:20:43] <Stomach> can anyone tell me what I'm doing wrong with this damned field? - http://www.sspaste.com/paste/show/52718457e6c69
2338: [22:21:26] <Pyromanik> Stomach: try $Me.Options
2339: [22:21:40] <Pyromanik> just as a curiosity
2340: [22:22:10] <Pyromanik> and if it doesn't work, try $Options.Debug
2341: [22:22:16] <ss23> simon_w: I var_dump'd __construct and it doesn't even set the LastPublished field, but later on when I var_dump it, it's set... any other ideas of how to catch it? "setLastPublished" didn't work. I could try hook __set instead?
2342: [22:22:19] <Pyromanik> (not in a control)
2343: [22:22:37] <Stomach> I'm pretty sure its because its a dropdown field
2344: [22:22:49] <Stomach> and its not inheriting the parent or some bollocks
2345: [22:22:53] <simon_w> ss23, well, you'd want to hook into setField then
2346: [22:23:27] <Stomach> $Me doesnt work - $Options.Debug just gives me Name:Options
2347: [22:23:27] <Stomach> Table:
2348: [22:23:28] <Stomach> Value:
2349: [22:24:24] <Pyromanik> Stomach: mmm, sounds like either doesn't exist, or scoping but or something
2350: [22:24:44] <Pyromanik> Stomach: try $getOptions
2351: [22:24:58] <Stomach> yeah its some sort of scoping issue I assume - it works when I overload DropdownField.ss in my template 'forms' directory
2352: [22:25:05] <antmas> ss23: did you see Jean's fix for the recylingthr thing with search?
2353: [22:25:24] <ss23> antmas: Didn't see exactly what he did, but it's been a big internal issue
2354: [22:25:32] * Wracu has joined #silverstripe
2355: [22:25:42] <ss23> Not because the bug is important, but it happened cause some devs kept forking the shit out of modules, so it takes like 6 years for fixes to be implmented and fuck and shit
2356: [22:25:46] <ss23> etc
2357: [22:25:53] <simon_w> Stomach, <% with $Fields.dataFieldByName('ShippingCountryCode').Field %>
2358: [22:25:56] <antmas> ss23: damn
2359: [22:26:04] <antmas> ss23: very simple workaround really
2360: [22:26:28] <UncleCheese> simon_w: doesn't that return a string?
2361: [22:26:55] <Stomach> I thought so - it goes upto formfield and renders
2362: [22:26:59] <simon_w> Huh, so it does. Stomach, you're screwed :p
2363: [22:27:16] <simon_w> You don't have $Options, and $Source isn't guaranteed to be loop-able in a template
2364: [22:27:23] <Stomach> yeah source isn't loopable
2365: [22:27:42] <Stomach> can I pass $Source into a function on my controller and then output something loopable easily? :D
2366: [22:27:44] <Stomach> lol
2367: [22:27:54] <simon_w> Stomach, $field->setTemplate('MyCustomDropdownField')
2368: [22:27:56] <UncleCheese> that's just one of those annoying things about Dropdown, Optionset, and Checkboxset fields
2369: [22:28:29] <Stomach> @simon_w - I'm using thirdparty code so I was trying not to edit it, for upgradability sake
2370: [22:30:02] <Pyromanik> Stomach: can you $List($Source) ?
2371: [22:30:23] <Pyromanik> oh, nah, because it makes a DataList not an arraylist :<
2372: [22:30:29] <Pyromanik> laaaaaaame
2373: [22:31:41] <peter_ss> it's working now. thanks guys!
2374: [22:32:45] <Stomach> totally lame
2375: [22:33:27] <Pyromanik> peter_ss: you're welcome
2376: [22:33:43] <Pyromanik> Stomach: here's a solution that is guaranteed to work:
2377: [22:33:48] <Pyromanik> Hack all the core!
2378: [22:34:03] <Pyromanik> test, pull request, suddenly not a hack! ;P
2379: [22:34:54] <peter_ss> does set_menu_link for leftandmain exist?
2380: [22:35:32] <Pyromanik> hmm?
2381: [22:35:34] <Pyromanik> what did it do?
2382: [22:36:17] <peter_ss> i mean i was google on how to change the Logo link and the help link in the CMS
2383: [22:36:48] <peter_ss> googling*
2384: [22:38:52] <peter_ss> is it possible to change the CMS logo url instead of SS site?
2385: [22:39:39] <simon_w> LeftAndMain:
2386: [22:39:40] <simon_w> application_link: 'http://myurl.com/'
2387: [22:39:54] <Stomach> haha yeah Pyromanik but simon always denies my pull requests because I tard it up constantly :P
2388: [22:40:20] * CodeTrap has joined #silverstripe
2389: [22:40:41] <Pyromanik> peter_ss: yes, as simon_w pointed out. Thanks to kinglozzer iirc.
2390: [22:40:53] <peter_ss> haha thanks
2391: [22:40:59] <Pyromanik> Stomach: sooooo... fix it fix it fix it fix it fix it
2392: [22:42:09] <Ryan_> Is there an option to minify outputted html?
2393: [22:42:25] <Pyromanik> nope
2394: [22:42:35] <ss23> btw guise
2395: [22:42:38] <Pyromanik> it's gzipped anyway
2396: [22:42:39] <ss23> mod_pagespeed breaks the admin section
2397: [22:42:42] <Pyromanik> usually
2398: [22:42:43] <ss23> Would be much apperciated if someone could fix it
2399: [22:42:44] <ss23> ;)
2400: [22:42:49] <Pyromanik> ss23: lol
2401: [22:42:50] <ss23> Seems like a really interesting bug
2402: [22:42:52] <Pyromanik> here's a fix for you
2403: [22:42:56] <Pyromanik> disable mod_pagespeed
2404: [22:43:00] <ss23> That's not a fix, that's a workaroudn!
2405: [22:43:19] <Pyromanik> here's a fix: stop being a pedantic prick about 0.265 ms.
2406: [22:43:29] <Pyromanik> :P
2407: [22:44:09] <Pyromanik> Like a fine wine; your mom's a vintage.
2408: [22:44:28] <antmas> makes sense doesn't
2409: [22:44:49] <Pyromanik> IT
2410: [22:46:38] <Pyromanik> is it legit to make an assignment on the same line as a global definition?
2411: [22:46:40] <Pyromanik> eg
2412: [22:46:46] <Pyromanik> global $project = 'mysite' ?
2413: [22:47:25] * pippy_ quit (Ping timeout: 241 seconds)
2414: [22:49:33] <antmas> hooray social club bbq
2415: [22:49:34] <antmas> :p
2416: [22:49:37] * pippy has joined #silverstripe
2417: [22:50:29] <Pyromanik> also, why is i18n still proctected static current_locale?
2418: [22:50:38] <Pyromanik> antmas: rofl social clubs.
2419: [22:50:43] <Pyromanik> so bs
2420: [22:52:21] * travis-ci has joined #silverstripe
2421: [22:52:21] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1461 (master - 2575450 : Ingo Schommer): The build passed.
2422: [22:52:21] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/9633f49aaf76...2575450cc51b
2423: [22:52:21] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13288807
2424: [22:52:21] * travis-ci has left #silverstripe
2425: [22:52:30] <antmas> Pyromanik: I know :(
2426: [22:52:57] <Pyromanik> we don't have one, it's fanstastic.
2427: [22:53:04] <Pyromanik> we just hire people that aren't shitcunts.
2428: [22:54:44] <Pyromanik> We do social stuff, but nothing is deducted from our pay for it.
2429: [22:54:55] <antmas> Pyromanik: no here, but it's still lame
2430: [22:54:58] <antmas> nor*
2431: [22:55:10] * Guest15319 quit (Quit: Guest15319)
2432: [22:56:28] <Pyromanik> til, burger king doesn't give a shit about social responsibility "Hangovers are part of people's reality"
2433: [22:56:33] <Pyromanik> fantastic.
2434: [22:56:44] <antmas> blegh, BK
2435: [22:56:44] * HONEY_ has joined #silverstripe
2436: [22:58:01] <antmas> ugh
2437: [22:58:05] * CodeTrap quit (Ping timeout: 240 seconds)
2438: [22:58:08] <antmas> huge building going up next
2439: [22:58:09] <antmas> door
2440: [22:58:19] <antmas> what do they put in it?
2441: [22:58:21] <antmas> Warehouse
2442: [22:58:23] <antmas> AND
2443: [22:58:25] <antmas> Kmart
2444: [22:58:28] <antmas> = fail
2445: [23:00:39] <peter_ss> is requireDefaultRecords still available to DataObjects?
2446: [23:01:12] * CodeTrap has joined #silverstripe
2447: [23:06:55] <Pyromanik> peter_ss: yep
2448: [23:07:03] <Pyromanik> peter_ss: api.silverstripe.org
2449: [23:07:27] <Pyromanik> searchbox is quite a nifty thing (autocomplete will let you know what exists without having to actually search, etc)
2450: [23:08:44] <peter_ss> yup got it
2451: [23:13:28] <ss23> dammit, where is tractorcow
2452: [23:14:00] <ss23> :q
2453: [23:14:04] <ss23> blargh
2454: [23:17:17] <Pyromanik> urgh "Please put this in behind the banners - you'll need to take a section of it to make it fit" - IT FITS ACROSS MY SCREEN THREE AND A QUARTER TIMES AND YOU WANT TO MAKE IT SMALLER
2455: [23:17:48] <antmas> lol banners
2456: [23:22:36] * UncleCheese quit (Quit: UncleCheese)
2457: [23:24:04] * UncleCheese has joined #silverstripe
2458: [23:25:27] <ss23> simon_w: setField is never called with an argument of field = LastPublished
2459: [23:25:34] <ss23> simon_w: It's constructed with no LastPublished value
2460: [23:25:41] <ss23> SetLastPublished is never called
2461: [23:25:46] <ss23> I see no code that sets it
2462: [23:25:52] <ss23> Any other ideas how it would be being set?
2463: [23:26:01] <simon_w> ss23, grep -r LastPublished *
2464: [23:26:38] <ss23> simon_w: Did that, there are almost no references to it. The places it is referenced, there is only one $this->LastPublished, and I've got a die there so I can confirm it's not being it
2465: [23:26:42] <ss23> hit
2466: [23:28:14] * jrthomer has joined #silverstripe
2467: [23:28:16] * flyklr has joined #silverstripe
2468: [23:30:17] <antmas> wow, all these competitors on the block nz sound like such ungrateful dicks
2469: [23:31:18] <antmas> 'visibly upset' for getting $25,000 for 10 weeks of weekend work
2470: [23:31:22] <antmas> -_-
2471: [23:33:34] <zippy__> thats not each, thats for them both. So $12,500 each. Over 10 weeks, where they were doing hellish hours (numerious times past 4am)
2472: [23:33:45] <zippy__> but, it was their risk
2473: [23:34:01] <zippy__> house might not of even sold, so atleast they got something + the experience
2474: [23:34:12] <zippy__> I wonder how much the company made from those houses...
2475: [23:35:48] <antmas> zippy__: oh now doubt the work was tough, but yeh, most peoiple woudln't get that for >= other work
2476: [23:37:43] <zippy__> it wasn't weekend work...
2477: [23:45:02] * wilr_ quit (Quit: wilr_)
2478: [23:47:47] * CodeTrap quit (Ping timeout: 240 seconds)
2479: [23:47:52] * Jakx quit (Ping timeout: 264 seconds)
2480: [23:49:11] * flyklr quit ()
2481: [23:49:40] <simon_w> So, it looks like FireFox is finally adding H.264 support
2482: [23:49:47] <simon_w> The <video> tag may be sane to use soon!
2483: [23:51:59] <antmas> zippy__: I was certain they only did this on weekends
2484: [23:53:10] <antmas> simon_w: woot

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