#silverstripe IRC Log

IRC log for 25 February 2014

All timestamps are in UTC.

1: [00:02:37] <BPower> hahah
2: [00:04:02] * antmas wonders if ss23 is still on holiday...
3: [00:04:47] * unsignedint wonders if ss23 will ever admit he is the docs maintainer
4: [00:04:59] <zippy___> antmas: he's back tomorrow I believe
5: [00:06:07] * b00mtastik has joined #silverstripe
6: [00:07:00] * ObiWanShanobi quit (Quit: Leaving...)
7: [00:07:23] <antmas> client - "I would like direct access to the database"
8: [00:07:32] <Ryan-Toast> antmas: lol.
9: [00:07:33] * antmas slaps client
10: [00:07:58] <b00mtastik> antmas, lol.
11: [00:08:44] <b00mtastik> Hey guys, just wondering if there is a way to use a custom field for use as a foreign key? Or to give a foreign key a chosen name for a class instead of something like MemberID for Member class.
12: [00:09:36] <b00mtastik> Why does it feel like I've asked this before...I remember being given an answer about using getters/setters...
13: [00:09:39] <Ryan-Toast> b00mtastik: what would be the use of this, over sway a has_one or many_many relationship?
14: [00:10:00] <b00mtastik> I'm uploading custom data from a report from another system.
15: [00:10:21] <antmas> ffff https://github.com/mateusz/silverstripe-polls/blob/master/code/PollForm.php submit goes to 404
16: [00:10:58] <b00mtastik> So there is a field that has a member company number which is what I want to attach the member with.
17: [00:11:14] <b00mtastik> Unless that is the completely wrong way of going about it, but this is assuming I cannot change the way the data is given to me.
18: [00:11:40] <Ryan-Toast> b00mtastik: Sorry, man. that's a little out of my SS knowledge.
19: [00:12:30] <Ryan-Toast> antmas: try setting redirect_to_anchor to null
20: [00:13:27] <b00mtastik> All good dude, just throwing it out there in case someone would know. I think I have asked this, but I've forgotten, but I think I was told to use a setter to grab the custom field as a foreign key. I think.
21: [00:13:32] <antmas> Ryan-Toast: ah, sweet
22: [00:13:32] <b00mtastik> I'll keep hunting for now.
23: [00:13:37] <antmas> le derp
24: [00:14:17] <Ryan-Toast> b00mtastik: Good luck :)
25: [00:14:34] <antmas> Ryan-Toast: wait, where did you see it getting set to null?
26: [00:14:34] <Ryan-Toast> antmas: Damn it feels good to be a gangster.
27: [00:14:52] <antmas> lol
28: [00:15:00] <Ryan-Toast> antmas: I MEAN SET IT TO NULL.
29: [00:15:01] <b00mtastik> Thanks Ryan-Toast
30: [00:15:03] <Ryan-Toast> oh, caps
31: [00:15:14] <antmas> ah wait lol
32: [00:15:17] <antmas> nvm
33: [00:15:18] <Ryan-Toast> antmas: line 9
34: [00:15:37] <BPower> How would you recommend implementing something like: if ($this->StartDatetime occurs after $this->EndDatetime) { ... }?
35: [00:15:44] <antmas> Ryan-Toast: got it, tah
36: [00:16:14] <Ryan-Toast> BPower: you can just use >
37: [00:16:39] <BPower> really? i thought it returned a string... Let me try!
38: [00:16:53] <Ryan-Toast> BPower: if(strtotime($date1) < strtotime($date2))
39: [00:17:19] <antmas> I wish I knew what these little breath mints were called
40: [00:17:22] <antmas> so addictive
41: [00:17:26] <BPower> So you wouldn't use SS's object?
42: [00:17:48] <Ryan-Toast> BPower: Shrug. Just an option :P
43: [00:18:36] <simon_w> BPower, since it's a Y-m-d H:i:s string, you can just use straight inequalities
44: [00:21:08] <antmas> awesome
45: [00:21:19] <BPower> simon_w - huh. sounds be faster than parsing the string and converting it to time.
46: [00:21:36] <antmas> methodist church just send us an email saying we can park there... if we pay $40 per park per month lol
47: [00:21:58] <antmas> Ryan-Toast: no dice on null
48: [00:22:24] <Ryan-Toast> antmas: sucks2beyou
49: [00:22:49] <antmas> Ryan-Toast: :< stop being pyro
50: [00:22:52] <antmas> :P
51: [00:22:57] <Ryan-Toast> antmas: :P
52: [00:23:16] <Ryan-Toast> I must channel him while he sleeps.
53: [00:24:03] <Ryan-Toast> Boss just came around and gave me a pen. Apparently this is my one pen for this month.
54: [00:24:24] <antmas> Ryan-Toast: it'll be gone by tomorrow
55: [00:24:29] <Ryan-Toast> antmas: defs
56: [00:25:11] <b00mtastik> If we can learn to not misplace pens, we would never loose anything we ever own.
57: [00:25:34] <antmas> omg just save to my db you asshole!
58: [00:25:37] <antmas> lol
59: [00:25:40] <Ryan-Toast> I always take mine to meetings and leave it there, so someone else claims it.
60: [00:25:57] * k_fish has joined #silverstripe
61: [00:26:00] <antmas> Ryan-Toast: meh, I just started taking my ipad
62: [00:26:08] <antmas> as I did the same
63: [00:26:09] <Ryan-Toast> Well aren't you fancy.
64: [00:26:18] <b00mtastik> Lol.
65: [00:26:18] <antmas> lol
66: [00:26:36] <antmas> Ryan-Toast: real gangsta
67: [00:27:16] <Ryan-Toast> http://i.imgur.com/46XK7d4.jpg
68: [00:27:48] <BPower> Ryan-Toast: thanks :)
69: [00:28:13] <BPower> simon_w|air: thanks to you as well!
70: [00:28:35] * k_fish__ quit (Ping timeout: 246 seconds)
71: [00:34:08] <antmas> good god, the Galaxy S5 is ugly
72: [00:35:23] <simon_w> And the fingerprint sensor is crap
73: [00:35:24] <simon_w> Still not very good at copying Apple :p
74: [00:35:45] <antmas> lol fingerprint sensor
75: [00:36:01] <simon_w> The one on the iPhone is rather useful
76: [00:36:57] <antmas> simon_w: any thoughts on my vote dilema?
77: [00:37:14] <simon_w> Pick the one with the funniest name?
78: [00:37:20] <simon_w> Is how I tend to vote :p
79: [00:37:22] <antmas> simon_w: XD
80: [00:37:58] <antmas> simon_w: but anyway, halp plox?
81: [00:38:05] <simon_w> What's the problem?
82: [00:38:10] <simon_w> I haven't really been following it
83: [00:38:39] <antmas> simon_w: using the Mateusz' polling module
84: [00:39:03] <antmas> antmas: I'm not entirely sure how to implement the vote backend (saving to db)
85: [00:39:13] <simon_w> Linky?
86: [00:39:21] <antmas> https://github.com/mateusz/silverstripe-polls
87: [00:40:38] <simon_w> antmas, well, that's a 2.4 module to start with
88: [00:40:57] <simon_w> Except it's using Injector
89: [00:41:05] <Ryan-Toast> Should you use UploadField for a fronted form?
90: [00:41:06] <simon_w> That's just confusing
91: [00:41:07] <antmas> erp, I thought it was 3.0?
92: [00:41:20] <simon_w> antmas, turns out it is, but is using deprecated stuff.
93: [00:41:26] <antmas> ah right
94: [00:41:28] <simon_w> Ryan-Toast, well, you can if you want to
95: [00:41:41] <Ryan-Toast> simon_w: I need Members to be able to upload a file.
96: [00:41:44] <antmas> Ryan-Toast: I do
97: [00:41:48] <zippy___> Ryan-Toast: You can, just remove the fields for adding from files etc, and set to custom folder
98: [00:42:20] <Ryan-Toast> zippy___: can I set that with the method, or is that custom?
99: [00:42:28] * UncleCheese quit (Quit: UncleCheese)
100: [00:42:56] <simon_w> antmas, well, it should be saving the results already?
101: [00:43:09] <antmas> simon_w: that's my problem, le nope :(
102: [00:43:11] <simon_w> Then sets a cookie saying you've voted?
103: [00:43:17] * micmania1 quit (Ping timeout: 246 seconds)
104: [00:43:22] <antmas> simon_w: right now, it just 404s on submit
105: [00:43:55] <simon_w> antmas, form method in $allowed_actions?
106: [00:43:57] <zippy___> Ryan-Toast http://api.silverstripe.org/3.1/class-UploadField.html - setCanAttachExisting(false)
107: [00:44:06] <Ryan-Toast> zippy___: CHUR
108: [00:44:49] <antmas> simon_w: on Page or PollForm?
109: [00:44:51] <antmas> Page
110: [00:45:00] <simon_w> antmas, Page_Controller
111: [00:45:01] <zippy___> Ryan-Toast: UploadField::create('fooo')->setCanAttachExisting(false)->setFolderName('Uploads/UserForm'); - I not sure how that will handle duplicate, you might want to include user id in that path, so they will only clobber own files
112: [00:45:06] <antmas> simon_w: yuss
113: [00:46:30] <antmas> simon_w: awesome, that was easy, tysm
114: [00:46:30] <Ryan-Toast> zippy___: thanks :)
115: [00:46:31] <simon_w> antmas, link looks right?
116: [00:46:42] <simon_w> Well, never mind then
117: [00:46:58] <antmas> simon_w: yup, cookie is being set and redirects to appropraite anchor
118: [00:47:06] <antmas> fuck, hate that word
119: [00:47:16] <simon_w> autocorrect!
120: [00:47:54] <antmas> simon_w: killitwithfire
121: [00:48:05] <simon_w> appropriate :p
122: [00:48:12] <simon_w> Autocorrected what you typed!
123: [00:48:23] <antmas> appropos is better
124: [00:48:29] <antmas> yolo
125: [00:48:32] <antmas> :D
126: [00:50:42] <Ryan-Toast> zippy___: How can I remove this biz? http://i.imgur.com/yfIbDqH.jpg
127: [00:50:46] <antmas> how do you pronouce Mateusz? "Ma Tay Us"?
128: [00:51:46] * Shrike_Finland has joined #silverstripe
129: [00:52:31] * SMaction quit ()
130: [00:53:00] * Shrike_Finland quit (Client Quit)
131: [00:53:52] <zippy___> Ryan-Toast: Go to that page not as admin, do they still show?
132: [00:54:33] <Ryan-Toast> zippy___: No, but still annoying for admins.
133: [00:55:37] <zippy___> Ryan-Toast: I can't think off the top of my head, simon_w might know, otherwise you might need to loo kin the code, obviously the permissions can stop them from showing - I think it might be a matter of setting no actions or something else on the field
134: [00:55:37] <antmas> Mi Tee Ahs?
135: [00:56:02] <Ryan-Toast> zippy___: Oh, actually all member types can see it
136: [00:58:31] * Jakx has joined #silverstripe
137: [00:59:48] * antmas quit (Ping timeout: 245 seconds)
138: [01:04:54] * antmas has joined #silverstripe
139: [01:07:37] * simon_w|air quit (Ping timeout: 240 seconds)
140: [01:07:56] <Ryan-Toast> simon_w: any idea on how I can remove this? http://i.imgur.com/yfIbDqH.jpg
141: [01:08:11] * simon_w|air has joined #silverstripe
142: [01:11:19] <antmas> Ryan-Toast: simon_w|air I'd like to know too
143: [01:11:26] <antmas> should be only upload and remove/delete
144: [01:12:11] <antmas> Ryan-Toast: do you get the option to drag and drop? or only browse?
145: [01:21:13] <antmas> simon_w about how those cookies are set - this is only specific to browser right?
146: [01:27:37] * antmas quit (Quit: Page closed)
147: [01:28:31] <simon_w> Ryan-Toast, CSS?
148: [01:29:43] * BPower quit (Ping timeout: 272 seconds)
149: [01:30:46] * antmas has joined #silverstripe
150: [01:31:29] * Tanger has joined #silverstripe
151: [01:32:42] * simon_w|air quit (Ping timeout: 244 seconds)
152: [01:32:44] * UncleCheese has joined #silverstripe
153: [01:33:23] * simon_w|air has joined #silverstripe
154: [01:33:39] <antmas> Ryan-Toast: did you sort your upload thing?
155: [01:34:33] <zippy___> antmas: CSS?
156: [01:34:38] <zippy___> simon_w: ;-)
157: [01:42:12] <Ryan-Toast> antmas: Was in a meeting, so not yet.
158: [01:43:02] <Ryan-Toast> simon_w: I'd rather not use CSS, as a nosy inspector could show it all.
159: [01:45:21] <Tanger> Hey, does anybody know any decent entwine tutorials?
160: [01:48:11] <Tanger> Nevermind, did not google-fu hard enough
161: [01:48:15] <Tanger> Bastard Tuesday mornings
162: [01:52:35] <zippy___> Tanger: The afternoons get no better
163: [01:52:56] <simon_w> Ryan-Toast, well, it looks like you're not loading all the needed assets
164: [01:53:13] <Ryan-Toast> simon_w: I don't want to load that bit at all.
165: [01:55:09] * Azure has joined #silverstripe
166: [01:55:53] <simon_w> Ryan-Toast, so you just want the "From your computer" bit?
167: [01:55:57] <antmas> Ryan-Toast: do you allow drag and drop? or just browse?
168: [01:56:40] <Ryan-Toast> simon_w: I just want the "Attach a file", and the image icon with the file name.
169: [01:57:33] <simon_w> Ryan-Toast, just use a FileField?
170: [01:58:40] <Ryan-Toast> simon_w: Perfect, but how will I display the icon, and file name?
171: [01:59:09] <antmas> yeah FileField works
172: [01:59:33] <simon_w> Ryan-Toast, you can use the JS file API
173: [02:00:02] <Ryan-Toast> I guess I could just add it in the template loop to display the filename and type
174: [02:00:45] <antmas> thanks simon_w and Ryan-Toast
175: [02:01:25] <Ryan-Toast> antmas: Thank simon_w, he's the one answering my questions :P
176: [02:02:06] <antmas> Ryan-Toast: bah, but you started the convo (which I was going to as well)
177: [02:06:33] <antmas> mm dat 4 day weekend
178: [02:08:06] <Ryan-Toast> for you, or for everyone?
179: [02:09:08] <antmas> me :D
180: [02:10:05] <Ryan-Toast> I have next Friday off to sit my restricted.
181: [02:11:13] * Jakx has left #silverstripe
182: [02:12:41] <antmas> Ryan-Toast: bike?
183: [02:12:47] <Ryan-Toast> antmas: ye
184: [02:12:51] <antmas> shit yeah
185: [02:12:57] <antmas> is your 500 LAMS approved?
186: [02:13:02] <Ryan-Toast> Had an L plate for a day, and I was like "fuck this"
187: [02:13:04] <antmas> or LANS, whatever it is
188: [02:13:10] <Ryan-Toast> LAMS, and yeah.
189: [02:13:14] <antmas> sweet
190: [02:13:32] <Ryan-Toast> funny thing is my old 250 would be allegal now.
191: [02:13:40] <Ryan-Toast> illegal
192: [02:13:49] <antmas> yeah I'm off Friday and Monday but am on call Friday (third party updates)
193: [02:14:01] <antmas> Ryan-Toast: mine would have been too
194: [02:14:07] <antmas> 2 strokes are like that :D
195: [02:14:09] <Ryan-Toast> Aprillia?
196: [02:14:12] <antmas> RGV
197: [02:14:17] <Ryan-Toast> nice
198: [02:14:20] <simon_w> antmas, slacker! :p
199: [02:14:31] <antmas> simon_w: :(
200: [02:14:34] <Ryan-Toast> I just never saw the point, but then I got pulled over :P
201: [02:14:40] <antmas> Ryan-Toast: lol
202: [02:18:44] <antmas> awesome, give this software an incorrectly formatted date value and WHAM - crashes
203: [02:18:48] <antmas> nice one, Nimbus
204: [02:19:12] <antmas> do u even try/catch?
205: [02:24:07] <Colin[pi]> bro do you even exception?
206: [02:25:49] * Motoservo has joined #silverstripe
207: [02:32:44] <zippy___> antmas: Nimbus software still around is it!
208: [02:36:05] <antmas> zippy___: apparently yeah, though I fail to see how with this quality of software :P
209: [02:38:21] <zippy___> I remember a friend working at a carpet place in Nelson 10~ years ago having to deal with a Nimbus package, and they had the developers around there for ages trying to fix all the bugs… crazy. I wonder if Nimbus also made Novopay...
210: [02:38:35] <antmas> haha
211: [02:38:52] <antmas> we're working with one of their APIs for xml imports
212: [02:38:55] <antmas> fucking horrible
213: [02:39:18] <antmas> I wonder if it's one of their pleb's fault. I know one of them lol
214: [02:41:34] <antmas> zippy___: are they over by Caltex on waimea road?
215: [02:41:45] <zippy___> who?
216: [02:42:26] <antmas> Nimbus
217: [02:42:51] <zippy___> not sure
218: [02:44:30] <antmas> according to gmaps they are
219: [02:51:25] <irogue_> "The informant has found a Just Water delivery man in the closet of her son's bedroom, and a water delivery truck in the driveway"
220: [02:51:31] <antmas> wow, been a while since I listened to Pendulum
221: [02:51:48] <antmas> irogue_: wtf
222: [02:52:03] * antmas plays R-Kelly song
223: [02:52:05] <Ryan-Toast> hmm, there's got to be a better way. Any thoughts anyone? http://codepen.io/anon/pen/eJBLz
224: [02:53:44] <Ryan-Toast> I could use sag I guess.
225: [02:53:47] <Ryan-Toast> svg**
226: [02:58:32] <antmas> lol, sag
227: [02:59:03] <antmas> Ryan-Toast: also, the arrow is the in the grey right?
228: [02:59:20] <Ryan-Toast> it's the red
229: [02:59:28] <antmas> wait, yeah I meant red
230: [02:59:29] <antmas> :P
231: [02:59:32] <Ryan-Toast> :P
232: [02:59:35] <antmas> I might use this actually :D
233: [02:59:45] <Ryan-Toast> hmm, I still don't think it's the best thing to do.
234: [02:59:57] <Ryan-Toast> Can't think of a good alternative.
235: [03:00:02] <Ryan-Toast> Damn afternoons.
236: [03:02:51] <irogue_> i just joined a club
237: [03:02:54] <irogue_> am i old now?
238: [03:03:09] <Ryan-Toast> irogue_: what club?
239: [03:03:20] <Ryan-Toast> seal club clubbing club?
240: [03:04:04] <irogue_> cossie club
241: [03:05:35] <antmas> Ryan-Toast: fucking looooooool
242: [03:06:38] <antmas> clubby club club
243: [03:07:24] <antmas> dafuq is a cossie club? irogue_
244: [03:08:35] <irogue_> antmas: one of those places full of old people drinking cheap beer, eating cheap food and playing pokies
245: [03:08:39] <Ryan-Toast> :before, :after aren't part of the DOM, fuuuuuuuu
246: [03:09:01] <antmas> irogue_: oh, a bit like the Suburban Club in Nelson, right zippy___?
247: [03:09:26] <irogue_> http://www.cossie.org.nz
248: [03:09:34] <zippy___> or Club Waimea - $5.50 pint holy shiitttt it's cheap
249: [03:09:51] <irogue_> yeah
250: [03:09:52] <irogue_> club bars
251: [03:09:54] <irogue_> so fucking cheap
252: [03:09:58] <antmas> holy bright blue batman!
253: [03:11:17] <antmas> fucking hell sim cards can be assholes
254: [03:12:23] <antmas> how the hell do you sign up for your 2degrees if you sim card provided is blank? :O
255: [03:14:04] <UncleCheese> dude
256: [03:14:08] <UncleCheese> $90 to redirect my mail?!
257: [03:14:36] <zippy___> gota pay for the oompa loompas
258: [03:15:13] <UncleCheese> why can't they do it like the US Post Office model and make everything either free or impossibly underpriced until they're driven into bankruptcy beyond repair and spit out the ass end of a government bailout?
259: [03:16:22] <Ryan-Toast> antmas: I guess I could do it like this http://codepen.io/anon/pen/GtHug
260: [03:16:54] <Ryan-Toast> UncleCheese: And they purposely make it slower so that you pay for the "express" service.
261: [03:17:09] <antmas> Ryan-Toast: better
262: [03:17:20] <Ryan-Toast> antmas: retains it's height.
263: [03:17:53] <Ryan-Toast> I still don't like using background-clip
264: [03:18:05] <UncleCheese> !
265: [03:19:28] <antmas> Ryan-Toast: what do you plan on using it for?
266: [03:19:37] <Colin[pi]> UncleCheese: sounds about right, sadly
267: [03:19:54] <Ryan-Toast> Image will be in the dark box, so the arrow will be focal thingy.
268: [03:20:11] <antmas> if you have a telecom/vodafone sim, you use a blank sim if you want to transfer to 2 degrees right? or vice versa
269: [03:24:19] <antmas> such bother
270: [03:25:47] <Ryan-Toast> antmas: this is what it would be used for: http://codepen.io/anon/pen/GtHug
271: [03:26:45] <antmas> Ryan-Toast: -_-
272: [03:27:57] <Ryan-Toast> antmas: Is that a dint-know-what-to-do face?
273: [03:28:01] <Ryan-Toast> dont*
274: [03:28:33] <antmas> Ryan-Toast: it's a I'm too tired for potential sarcasm face :D
275: [03:28:39] <Ryan-Toast> :P
276: [03:28:41] <Ryan-Toast> Bah
277: [03:28:45] <Ryan-Toast> do not know what do.
278: [03:29:03] <antmas> I need a ciggarette
279: [03:29:04] <Ryan-Toast> Zauberfi1ch, any ideas?
280: [03:32:43] <antmas> later all, beer time :D
281: [03:32:50] <ss23> BEER TIM 24/7
282: [03:32:58] <Ryan-Toast> Already had my first.
283: [03:33:07] * antmas quit (Quit: Page closed)
284: [03:34:03] <Ryan-Toast> http://i.imgur.com/Bx1fvil.jpg
285: [03:34:33] <ss23> I started drinking at lunch! :P
286: [03:34:36] <ss23> rofl Ryan-Toast
287: [03:34:38] <ss23> nice picture
288: [03:34:46] <guzzlefry> You can drink during work?
289: [03:34:57] <ss23> guzzlefry: ... you can't? o.o
290: [03:34:58] <Ryan-Toast> guzzlefry: Boss handed me the beer.
291: [03:35:01] <ss23> Who do you work for?
292: [03:35:04] <Ryan-Toast> We call it green tea
293: [03:35:26] <ss23> Though here at SilverStripe, there's approx 0% chance we'd be drinking a shit beer lik hienikien
294: [03:35:35] <Ryan-Toast> ss23: ouch
295: [03:35:44] <Ryan-Toast> ss23: Free beer is best beer.
296: [03:35:48] <ss23> Trudat
297: [03:35:55] <guzzlefry> ss23: Pretty sure most U.S. companies won't let you drink on the job.
298: [03:35:56] <ss23> I'd drink it if it was free, it's just all our beer at work is nicer
299: [03:35:57] <ss23> :P
300: [03:36:01] <guzzlefry> I think it might actually be illegal...
301: [03:36:02] <guzzlefry> can't remember
302: [03:36:04] <Ryan-Toast> I'm a Asahi man myself.
303: [03:36:04] <ss23> guzzlefry: Probably true, but I'm also not in the Us
304: [03:36:05] <ss23> US
305: [03:36:06] <ss23> :P
306: [03:36:12] <guzzlefry> I work from home so..
307: [03:36:20] <Ryan-Toast> guzzlefry: it is.
308: [03:36:29] <guzzlefry> I do what I want.
309: [03:36:41] <guzzlefry> until I get fired >_>
310: [03:36:52] <ss23> XD
311: [03:36:53] <Ryan-Toast> My last job the CEO came to visit from the US and got in trouble because pictures went back to the US with him having a brew.
312: [03:36:55] * b00mtastik sips his coffee cautiously...
313: [03:37:11] <ss23> Anyway, flying back into Wellington soon!
314: [03:37:14] <ss23> Gotta get ready and all that
315: [03:37:52] <ss23> Lets hope no fog/wind/earthquakes!
316: [03:37:55] * Nimle has joined #silverstripe
317: [03:38:35] <Colin[pi]> zomg it's ss23
318: [03:38:47] <Nimle> Hi guys, what is the best way to have one has_one and one has_many of the same dataobject?
319: [03:38:56] <irogue_> 05:12 < UncleCheese> $90 to redirect my mail?!
320: [03:39:02] <irogue_> nzpost really really want post to die
321: [03:39:16] <guzzlefry> Nimle: same type of dataobject?
322: [03:39:24] <irogue_> it's the only non-profitable part of their business
323: [03:39:38] <Nimle> for example, Event has_one (Main) Event Type and has_many (normal) Event Type
324: [03:40:03] <irogue_> courierpost brings in the $$ as does kiwibank
325: [03:40:51] <irogue_> oh btw
326: [03:40:53] <Nimle> @guzzlefry actually, sorry. I need two has_many of the same object.
327: [03:40:57] <irogue_> followup on Just Water guy
328: [03:41:12] <irogue_> https://dl.dropboxusercontent.com/u/4618071/justwater.mp3
329: [03:41:35] <Nimle> private static $has_many = array( 'Types'=>'EventType' ); and private static $has_many = array( 'SpecialTypes'=>'EventType' );
330: [03:41:42] <guzzlefry> oh
331: [03:41:51] <guzzlefry> Nimle: Just use one array.
332: [03:41:54] <Zauberfi1ch> Ryan-Toast: hmm?
333: [03:42:14] <Nimle> @guzzlefry but I need two seperate ones
334: [03:42:23] <guzzlefry> Nimle: private static $has_many = array ("Types" => "EventType", "SpecialTypes" => "EventType");
335: [03:42:24] <guzzlefry> like that
336: [03:42:25] <Ryan-Toast> Zauberfi1ch: Been playing with this, but there has to be a better way: http://codepen.io/anon/pen/GtHug
337: [03:42:43] <guzzlefry> basically what you'd do for $db
338: [03:42:50] <Nimle> @guzzlefry thanks. I am trying
339: [03:43:14] <guzzlefry> array ("PropertyName1" => "Type", "PropertyName2" => "Type", etc);
340: [03:45:24] <Nimle> @guzzlefry but they both show the same entries. could be because i only have one has_one( 'Type'=>'Type') in Event class?
341: [03:45:34] <Nimle> Do, I need two there as well?
342: [03:45:46] <guzzlefry> I'm not sure what you mean.
343: [03:45:51] * BPower has joined #silverstripe
344: [03:47:44] <Zauberfi1ch> hmmm
345: [03:47:57] <Zauberfi1ch> Ryan-Toast: I don't really like the border trick
346: [03:48:17] <BPower> OK - here's something a little more advanced. A particular page type must ALWAYS have at least one child page. So, when this page is created, "onBeforeWrite" or "onAfterWrite" will automatically create a child page with default scaffolding. This all works fine and dandy but the CMS sitetree list does not update to include the newly created child page. Any ideas?
347: [03:48:34] <Zauberfi1ch> I did try to work with that once, and turned out, in some browsers it is not sharp
348: [03:48:54] <Zauberfi1ch> like the quality of the line is pretty low. lots of ugly pixels
349: [03:49:54] <Nimle> @guzzlefry in Climb Dataobject, I have private static $has_one = array( 'ClimbType'=>'ClimbType' ); but in ClimbType Dataobject, I have private static $has_many = array( 'Climbs'=>'Climb', 'Upsells'=>'Climb' ); So, it creates two tabs Climbs and Upsells. But both have the same items.
350: [03:50:10] <Ryan-Toast> Zauberfi1ch: Yeah, I was thinking sag instead.
351: [03:50:12] <Ryan-Toast> lfdkghj bsd;kfgbdf;kbl
352: [03:50:15] <Ryan-Toast> SVG
353: [03:50:46] <guzzlefry> Nimle: Same items?
354: [03:50:48] <Zauberfi1ch> yeah, probably a better solution
355: [03:51:09] <Zauberfi1ch> I like svg, but haven't done much with it either
356: [03:51:48] <BPower> Nimle: I didn't see your earlier messages, but looks like that would be expected. The has_one creates "ClimbTypeID" on the database table. You'd need two has_one's to handle both upsells and climbs.
357: [03:51:49] <Nimle> yes, because there is one ClimbTypeID is created. I want two with different names
358: [03:52:01] <Zauberfi1ch> well, I am going to take a nap
359: [03:52:05] <Zauberfi1ch> back in an hour or so
360: [03:52:07] <Zauberfi1ch> i hope
361: [03:54:29] <BPower> simon_w|air: If I remember correctly, SS can handle multiple has_one/has_many relationships on the same tables -- but you have to do something like: has_many = array('Climbs'=>'Climb.ClimbTypeID','Upsells'=>'Climb.UpsellTypeID') -- (cc Nimle)
362: [03:54:33] <BPower> Is that right?
363: [03:54:34] * SightUnseen has joined #silverstripe
364: [03:54:39] * SightUnseen has left #silverstripe
365: [03:55:22] <BPower> Then you'd have $has_one = array( 'ClimbType'=>'ClimbType','UpsellType'=>'ClimbType' ); on the other table.
366: [03:57:16] <BPower> Nimle: It sounds like you might be better off with a slightly different model, though. If you post your two models to gist.github.com, I can suggest an edit.
367: [03:59:48] <Nimle> @BPower thank you very much. I am thinking to optimize the model a bit. Thanks for you offer though. Nice of you.
368: [04:22:39] <Nimle> On many many, how to limit Link Existing suggestion to filtered list only?
369: [04:22:54] <Nimle> I want so that you can't link anything, but only certain ones
370: [04:23:30] * b00mtastik quit (Quit: Leaving)
371: [04:26:42] <Nimle> basically, filtering auto completer component
372: [04:37:19] * BPower quit (Remote host closed the connection)
373: [04:45:54] * willr has joined #silverstripe
374: [04:47:40] <Nimle> in the same dataobject, is it possible to make has_many dependent on data of field. For example, if a certain field has a certain value, then the dataobject shows tab (has a has_many), if not it is not shown.
375: [04:49:38] * UncleCheese quit (Quit: UncleCheese)
376: [04:50:53] * DesignerX has joined #silverstripe
377: [04:53:17] * DesignerX quit (Client Quit)
378: [05:01:54] * cloph_away has joined #silverstripe
379: [05:02:01] * cloph quit (Ping timeout: 240 seconds)
380: [05:10:02] <simon_w|air> Nimle, you can do that by overriding getCMSFields()
381: [05:34:59] * willr quit (Quit: willr)
382: [05:51:42] * Bollig|DesignCty has joined #silverstripe
383: [05:58:06] * ss23 quit (Remote host closed the connection)
384: [06:21:18] * Audio quit (Remote host closed the connection)
385: [06:25:24] * Audlex has joined #silverstripe
386: [06:30:56] * willr has joined #silverstripe
387: [06:31:54] * Nimle quit (Ping timeout: 245 seconds)
388: [06:35:26] * FrozenFire quit (Quit: There's no place like ~)
389: [07:03:42] * joelpittet quit ()
390: [07:38:24] * ss23 has joined #silverstripe
391: [07:49:17] <wmk> morning
392: [07:52:28] * zippy____ has joined #silverstripe
393: [07:54:02] * zippy___ quit (Ping timeout: 256 seconds)
394: [07:54:03] * zippy____ is now known as zippy___
395: [08:00:05] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
396: [08:05:58] * ss23_ has joined #silverstripe
397: [08:05:59] * ss23_ quit (Client Quit)
398: [08:30:11] * Colin[pi] quit (Ping timeout: 244 seconds)
399: [08:45:57] * k_fish_ has joined #silverstripe
400: [08:48:46] * k_fish quit (Ping timeout: 244 seconds)
401: [08:57:12] * kinglozzer has joined #silverstripe
402: [09:06:09] * UncleCheese has joined #silverstripe
403: [09:13:41] * Py^k has joined #silverstripe
404: [09:13:53] * k_fish_ quit (Quit: Leaving)
405: [09:15:06] * micmania1 has joined #silverstripe
406: [09:26:33] * willr quit (Quit: willr)
407: [09:32:23] * stripee has joined #silverstripe
408: [09:33:47] <stripee> still not resolved this issue...[Notice] Trying to get property of non-object....http://www.sspaste.com/paste/show/530c600175775
409: [09:35:00] <Py^k> stripee: SetHeight must be failing.
410: [09:35:21] <Py^k> or otherwise returning something unexpected.
411: [09:35:40] <wmk> stripee, check if $item->Image() returns an image
412: [09:35:51] <stripee> wait ...i will post the cde of setheight too
413: [09:36:03] <Py^k> wmk: line above: if $this->Image()->exists()
414: [09:36:20] <Py^k> stripee: don't, it's core code.
415: [09:36:24] <wmk> Py^k, ok.... need to eat more carots
416: [09:36:32] <Py^k> wmk: :P
417: [09:36:57] <Py^k> wmk: even if it's not a valid image, it's still an object because exists has successfully executed by that point.
418: [09:37:11] <wmk> Py^k, ic
419: [09:37:35] <Py^k> although it should be valid if exists returns true (or valid enough at least).
420: [09:38:24] <Py^k> stripee: assign $item->Image()->setHeight() to a variable and perform another if on it (if && exists)
421: [09:38:56] <stripee> contains the functions
422: [09:38:58] <stripee> http://www.sspaste.com/paste/show/530c614c38f50
423: [09:39:02] <Py^k> and for debug purposes you could then include an else var_dump it out to see what is being stored instead of an image.
424: [09:39:40] * Colin[pi] has joined #silverstripe
425: [09:40:02] <wmk> stripee, and/or use xdebug to see what happens there
426: [09:40:02] <Py^k> stripee: I know, I said, don't paste, it's core code. We know what it looks like: http://api.silverstripe.org/3.1/source-class-Image.html#263-273
427: [09:40:18] <Py^k> ;)
428: [09:42:14] * Audlex quit (Ping timeout: 264 seconds)
429: [09:42:33] <wmk> Py^k, but if $this->Image()->exists() just checks if it's a dataobject but not if it's an image
430: [09:43:18] <wmk> how about if (is_a($this->Image, 'Image')) ?
431: [09:44:01] <UncleCheese> is_a is soooooo PHP4
432: [09:44:36] <Py^k> wmk: no, it should check that it has a sensible value.
433: [09:44:38] <stripee> can anyone help me regarding xdebug as a beginner
434: [09:44:51] <UncleCheese> if($this->Image() instanceof Image)
435: [09:44:52] <Py^k> stripee: there's nothing to help with. It's on or it's not.
436: [09:44:59] <Py^k> you don't "use" it as such.
437: [09:45:18] <Py^k> it just formats error output a bit nicer.
438: [09:45:28] <speak_> is $this->Image() && $this->Image()->exists() redundant then?
439: [09:45:40] <Py^k> speak_: yes and no.
440: [09:45:41] <stripee> wer can i get xdebug from
441: [09:45:45] <UncleCheese> i kind of which the file class had a existsInFileSystem() method..
442: [09:45:50] <Tanger> Hey guys. Anybody aware of a way to hide classes from the 'add class' drop downs? Something like overwriting canView in config_yml so I don't have to hack the module itself?
443: [09:45:55] <kinglozzer> stripee: Don't bother with xdebug, you don't need it
444: [09:45:58] <wmk> UncleCheese, ok, much better. instanceof checks the interface
445: [09:46:12] <Py^k> speak_: if for example $this->Image() return false... trying to perform false->exists() will throw an operation on non object error.
446: [09:46:19] <UncleCheese> Tanger: $allowed_children, $hide_ancestor
447: [09:46:23] <UncleCheese> etc.
448: [09:46:26] <Py^k> wmk: still pointless though.
449: [09:46:38] <speak_> Thanks Py^k
450: [09:46:49] <UncleCheese> you can also decorate the object's canCreate() method
451: [09:46:51] <Tanger> UncleCheese: Overrideable via dataextension?
452: [09:46:53] <Py^k> speak_: pretty much nothing should return false in 3.0+ though
453: [09:46:59] <Tanger> Ah
454: [09:46:59] <Tanger> Yes
455: [09:47:03] <Tanger> Derr
456: [09:47:11] <UncleCheese> make sure you're not testing with an admin account, though
457: [09:47:17] <UncleCheese> because admins are immune to canCreate()
458: [09:47:34] <wmk> Py^k, in this context it's pointless, yes
459: [09:47:40] <Py^k> speak_: if($var && $var->exists()) was pretty 2.4 centric
460: [09:47:50] <Py^k> wmk: yeah.
461: [09:47:50] <wmk> stripee, with xdebug and a decent IDE you can go through your code step by step
462: [09:47:57] <Tanger> Thanks mate, that'll likely save me a headache
463: [09:47:59] <UncleCheese> that's why we need a __toBool() magic method!
464: [09:48:15] <wmk> depends on you development environment
465: [09:48:27] <UncleCheese> Tanger: this is a snippet i use often for single pages, like newsholder
466: [09:48:43] <UncleCheese> public function canCreate() { return !DataList::create(__CLASS__)->first(); }
467: [09:48:43] <Py^k> $obj->Image() will have been defined as an Image type, so it will return an image, which is a DataObject, which is reinforced by ->exists() being called without error
468: [09:49:19] <stripee> the same code is running for other links
469: [09:49:23] <UncleCheese> self::get()->first(); is probably more concise, though
470: [09:49:45] <Py^k> stripee: probably because there's no error occuring, or that code isn't being called.
471: [09:49:55] <wmk> stripee, well, if SetHeight() cannot write the image to disk it fails afaik
472: [09:49:55] <UncleCheese> this is what PHP needs:
473: [09:50:08] <UncleCheese> DataObject::__toBool() { return $this->exists() }
474: [09:50:15] <kinglozzer> stripee: After your if($image->exists()), do $resized = $item->Image()->SetHeight(intval($this->ThumbnailSize));, then if ($resized) { array_push(...
475: [09:50:17] <UncleCheese> if($this->SomeRelation()) {
476: [09:50:34] <Py^k> stripee: as I said, assign the setHeight call to a variable, then test the variable for sanity before either using the var or dumping it for debugging
477: [09:51:23] <Tanger> UncleCheese: Oooh, very nifty. Had been thinking of implementing that if it wasn't much of a hassle. And certainly looks like it isn't
478: [09:51:48] <UncleCheese> you can take it a bit further and have it look at a list in your config yaml..
479: [09:51:55] <UncleCheese> i often have single_pages: [] in my yaml
480: [09:52:14] <Py^k> speak_: to clarify, in 3.1 SS should return an empty object, eg an empty list or a dataobject with no data in it when accessing a relation that isn't there.
481: [09:52:16] <UncleCheese> just helps keep that create dropdown nice and tidy
482: [09:52:24] <Py^k> ie, an Image with ID 0, etc.
483: [09:52:34] <UncleCheese> often a client is only going to create one or two page types
484: [09:52:44] <Py^k> so exists should always be callable, and return appropriately.
485: [09:52:50] <UncleCheese> Py^k: the null object pattern
486: [09:52:52] <UncleCheese> thanks, jQuery
487: [09:53:03] <Py^k> UncleCheese: yes, just like jQuery.
488: [09:53:07] <speak_> Brilliant, thanks
489: [09:53:42] <Py^k> speak_: there are a few gotchas, but it'll be obvious when you hit one (error: call member funciton on non object, etc)
490: [09:53:47] <UncleCheese> the null object pattern would be brilliant if there was a __toBool() method
491: [09:53:56] <speak_> I joined during a very weird moment in time of our transition from 2.4 > 3
492: [09:53:57] <Py^k> UncleCheese: why?
493: [09:54:03] <speak_> so my knowledge is spread, ha :)
494: [09:54:04] <UncleCheese> cause, check it out
495: [09:54:07] <UncleCheese> if you could go
496: [09:54:37] <UncleCheese> class DataObject { function __toBool() { return $this->exists() } }
497: [09:54:43] <UncleCheese> then this:
498: [09:54:51] <UncleCheese> if(new DataObject()) { // false!
499: [09:55:15] <UncleCheese> the problem with the null object pattern is it's always truthy
500: [09:55:19] <Py^k> but that would be silly
501: [09:55:23] <UncleCheese> so there's no way to evaluate whether something "worked"
502: [09:55:32] <Py^k> yes there is
503: [09:55:35] <UncleCheese> $('bullshit').addClass('foo');
504: [09:55:38] <UncleCheese> works
505: [09:55:45] <UncleCheese> but i don't really know if it did anything
506: [09:56:00] <Py^k> you do by the size of the set.
507: [09:56:03] <UncleCheese> there is a way, but it's ugly
508: [09:56:14] <UncleCheese> if($('bullshit').length)
509: [09:56:23] <Py^k> yeah, but if you did have a 'to bool' then how would that help with chaining?#
510: [09:56:26] <Py^k> it wouldn't.
511: [09:56:35] <Py^k> you'd get member function on non object errors.#
512: [09:56:43] <Py^k> oh fuck this hash, seriously :<
513: [09:57:00] <Py^k> Who puts hash right next to enter? WHO DOES THAT!?
514: [09:57:13] <UncleCheese> well if there were a toBool magic method, then frameworks could be much more generous with returning null objects
515: [09:57:19] <kinglozzer> Py^k: We do. Because fuck you.
516: [09:57:20] <kinglozzer> :D
517: [09:57:28] <UncleCheese> if(DataList::create("SomethingThatDoesntExist")) // true
518: [09:57:32] <Py^k> kinglozzer: serious success. It's surely fucking me.#
519: [09:57:33] <UncleCheese> that's lame
520: [09:57:49] <UncleCheese> it's nice that I can loop through it without worrying
521: [09:57:57] <UncleCheese> but when I want to evaluate its existence, it's annoying
522: [09:58:02] <Py^k> UncleCheese: you haven't assigned it to anything.
523: [09:58:09] <UncleCheese> eitherway
524: [09:58:25] <UncleCheese> $foo = DataList::create("Nothing");
525: [09:58:37] <Py^k> also, foreach(DataList::create('asdfasdgfasgda')) { die('live forever'); }
526: [09:58:40] <UncleCheese> if($foo) { } else { // this will never happen }
527: [09:58:53] <UncleCheese> well that's the benefit right there
528: [09:58:58] <Py^k> yeah, but why would you just if foo rather than if foo exists?
529: [09:58:58] * svandragt1 has joined #silverstripe
530: [09:59:01] <UncleCheese> but the consequence is the if/else blocks
531: [09:59:24] <Py^k> you're essentially having a bit of a whinge over 10 characters.
532: [09:59:24] <UncleCheese> $foo->exists()? that's so unnecessarily verbose
533: [09:59:28] <stripee> kinglozzer : After your if($image->exists()), do $resized = $item->Image()->SetHeight(intval($this->ThumbnailSize));....worked but also displays NULL NULL NULL NULL
534: [09:59:32] <Py^k> and there we have it.
535: [09:59:43] <Py^k> 10 characters, too verbose.
536: [09:59:43] <UncleCheese> and it requires the user learn the idiosyncrasies of the framework
537: [09:59:46] <kinglozzer> stripee: Well, they're null
538: [10:00:01] <Py^k> WE NEED TO BE ABLE TO WRITE CODE IN SINGLE CHARACTERS. THIS IS 2014, FUCK!
539: [10:00:17] <stripee> no ...the output is coming but also null display 4 times
540: [10:00:34] <kinglozzer> stripee: Is that because of your else statement?
541: [10:00:39] <Py^k> stripee: I suggest you have bad image objects in your list.
542: [10:00:41] <stripee> yes
543: [10:00:52] <kinglozzer> Well fix your else statement ><
544: [10:00:52] <Py^k> such like an image that has been physically deleted, but not removed from the databse.
545: [10:00:57] <micmania1> There is no UploadField::setAllowedExtensions() in 3.0? Since when?!
546: [10:01:05] <UncleCheese> Py^k: I guess the issue is that objects are always truthy, and i don't think they should be
547: [10:01:10] <Py^k> micmania1: since it didn't exist back then.
548: [10:01:10] <kinglozzer> micmania1 ->getValidator()->setAllowedExtensions()
549: [10:01:17] <micmania1> kinglozzer, cheers!
550: [10:01:22] <Py^k> UncleCheese: they should be.
551: [10:01:25] <micmania1> These bloody legacy systems :p
552: [10:01:27] <stripee> i used var_dump in else
553: [10:01:28] <Py^k> you either have an object or you don't.
554: [10:01:35] <kinglozzer> At least, I think that's right :P
555: [10:01:59] <UncleCheese> i think objects, like some strings and some integers, should be able to be falsy
556: [10:02:10] <Py^k> verbosity isn't the issue, it's readability. if(abstractNonsense) is silly, if(myobject exists) isn't.
557: [10:02:56] <Py^k> UncleCheese: strings and integers are primitive. objects are not.
558: [10:03:17] <UncleCheese> ok?
559: [10:04:01] <Py^k> depending on the language you're using, a null string WILL be true.
560: [10:04:16] <Py^k> or throw an error, because it's not a boolean value.
561: [10:04:53] <UncleCheese> but if an object can cast itself as a string, why shouldn't it also be able to cast itself as a boolean?
562: [10:05:13] <Py^k> yeah I suppose, you make a point.
563: [10:05:22] <UncleCheese> if this works: echo DataList::create("SiteTree");
564: [10:05:35] <UncleCheese> outputs ->sql() on the datalist
565: [10:05:47] <Py^k> I just don't see your proposed usecase as being sane.
566: [10:06:04] <Py^k> readability is the goal, not less finger taps.
567: [10:06:30] <UncleCheese> well then they should get rid of all magic methods then
568: [10:07:06] <UncleCheese> (string) $mySimpleXMLElement is about as unreadable and insane as it gets
569: [10:07:35] <stripee> thank you alll you guys .....
570: [10:07:56] <stripee> i was bothering this problem .....for a week long time
571: [10:10:23] * Colin[pi] hugs stripee
572: [10:10:28] <Colin[pi]> I know that feel
573: [10:11:20] <Colin[pi]> simon_w: I caught a cold this week and it was after you visited canberra, thus by using my highly sound powers of deduction, I deduce you brought it from NZ and is your fault... thanks a lot
574: [10:12:58] <micmania1> I haven't used 3.0 in so long
575: [10:13:12] <micmania1> $fields->removeByName("VideoDate"); removes video date field
576: [10:13:23] <micmania1> $fields->fieldByName("VideoDate"); doesn't find field.
577: [10:15:16] <Tanger> UncleCheese: Hey man, I'm working on a little side project that might include and add onto your SilverSmith project to assist on quoting sites for clients. Quick question if I may; Is Silversmith written to handle any key/value in an _project.yml file, then parse it given the yaml files in lib? Ie could I write key/val definitions in files such as 'textAreaField'?
578: [10:17:55] * ss23 quit (Ping timeout: 272 seconds)
579: [10:18:22] * ss23 has joined #silverstripe
580: [10:19:03] <Colin[pi]> ss23 is here, quick hide
581: [10:19:17] * Colin[pi] stands in the corner, twiddling thumbs and whistling
582: [10:20:12] * Stomach quit (Read error: Connection reset by peer)
583: [10:20:29] * Ryan-Toast quit (Ping timeout: 240 seconds)
584: [10:21:36] <zippy___> ss23: it was Colin[pi]
585: [10:21:46] <Colin[pi]> :o
586: [10:24:06] <Py^k> stripee: so you fixed it?
587: [10:24:27] <UncleCheese> Tanger: no, the api is pretty rigid, actually
588: [10:24:43] <Py^k> Colin[pi]: stop being a wuss.
589: [10:24:51] <UncleCheese> i think at one time i thought about adding a extraProperties node or something
590: [10:24:55] <Py^k> weak aussies can't stand up to an NZ cold.
591: [10:25:22] <Colin[pi]> Py^k: tis alright, I am full of drugs
592: [10:25:37] <UncleCheese> micmania1: dataFieldByName()?
593: [10:25:37] <Py^k> micmania1: you might need to define fuller path (TabName.VideoDate)
594: [10:25:42] <Py^k> for field by name
595: [10:25:50] * willmorgan has joined #silverstripe
596: [10:25:51] <UncleCheese> or removeFieldFromTab
597: [10:26:25] <willmorgan> ahoy mateys
598: [10:26:39] <Colin[pi]> ahoy thar me 'artie
599: [10:26:42] <Py^k> gidday willmorgan
600: [10:27:17] <Py^k> you are hereby required to attend the EU SS meetup.
601: [10:27:21] <Py^k> in September, ish.
602: [10:27:27] <willmorgan> sounds good
603: [10:27:38] <willmorgan> I already voted for Munich
604: [10:27:40] <Py^k> Bring that Dan fellow along, and anyone else applicable.
605: [10:29:12] <willmorgan> is the EU SS meetup going to be a meetup, or will there be talks?
606: [10:29:55] <UncleCheese> i heard it was in june
607: [10:29:57] <UncleCheese> i got invited
608: [10:30:27] <Py^k> I heard it was when it was going to be.
609: [10:30:32] <Py^k> ask that Zauberfi1ch fellow.
610: [10:30:35] <micmania1> UncleCheese Py^k: I just re-added it.
611: [10:30:57] <micmania1> willmorgan: talks
612: [10:31:13] <willmorgan> cool
613: [10:31:22] <micmania1> you interested in giving one?
614: [10:32:22] <willmorgan> I'm sure Dan and/or I could think of something
615: [10:33:07] * chillu has joined #silverstripe
616: [10:33:38] <willmorgan> hopefully by June we'll have some generic modules to put out
617: [10:34:01] * UncleCheese quit (Quit: UncleCheese)
618: [10:34:50] * zippy___ quit (Quit: zippy___)
619: [10:34:59] * UncleCheese has joined #silverstripe
620: [10:35:22] * UncleCheese quit (Client Quit)
621: [10:36:21] <Py^k> willmorgan: hopefully you're better at it than I have been with mine
622: [10:36:31] <willmorgan> how so?
623: [10:36:42] <Py^k> "I should tidy this and release it" I said, about a year ago.
624: [10:40:34] <kinglozzer> hey willmorgan
625: [10:40:41] <willmorgan> hey loz
626: [10:41:52] <kinglozzer> I need a nice module idea to keep me busy :(
627: [10:43:12] <Py^k> kinglozzer: take something you do every day in your vocation and make it so you don't have to do it every day in your vocation.
628: [10:43:22] <Py^k> or at least so it takes fractions of the time it already does.
629: [10:43:35] <Py^k> That's how about everything I've done has come about.
630: [10:44:02] <Py^k> excepting one, but that needs a hell of a lot of tidying before it goes anywhere :<
631: [10:44:15] <kinglozzer> Py^k: I don't really have anything like that left though, I've already packaged up a few tweaks into small modules
632: [10:44:22] <kinglozzer> Everything else has been done :P
633: [10:44:41] <micmania1> do it better
634: [10:44:46] <willmorgan> improve Requirements_Backend
635: [10:45:07] <svandragt1> or the date classes
636: [10:45:35] <willmorgan> chillu: thanks for your PRs btw, dude
637: [10:45:50] <chillu> willmorgan: No worries, glad I can give back for a change :)
638: [10:46:05] <willmorgan> I'm just chuffed that other people are actually using this module
639: [10:46:53] <willmorgan> it needs a 1.2 release soon tho
640: [10:47:25] <kinglozzer> willmorgan: Anything in particular you wanna see improved?
641: [10:47:29] <kinglozzer> In requirements ^^
642: [10:47:50] <svandragt1> that's a trick question :P
643: [10:48:53] <willmorgan> erm
644: [10:49:16] <micmania1> kinglozzer, i'd like to be able to order requirements
645: [10:49:18] <willmorgan> minification, mainly
646: [10:49:31] <chillu> willmorgan: Are you using opauth in production?
647: [10:49:31] <willmorgan> we need like a MinificationAdapter or something
648: [10:49:49] <willmorgan> chillu: Yes, on a fairly big site
649: [10:50:19] <chillu> Good to hear. We'll be as well (a significant portion of NZ population on it hehe)
650: [10:50:59] <willmorgan> awesome!
651: [10:51:01] <willmorgan> CWP work?
652: [10:51:05] <chillu> Nah
653: [10:51:53] <kinglozzer> willmorgan: Essentially make it configurable rather than force jsmin.php?
654: [10:52:05] <speak_> willmorgan, we on TV.
655: [10:52:18] <willmorgan> kinglozzer: Yep. Also, it might be that you have a grunt/SASS task that minifies your CSS
656: [10:52:26] <kinglozzer> micmania1: Doesn't it keep the order you add them in?
657: [10:52:53] <kinglozzer> I guess you've got no real control between classes though
658: [10:52:56] <micmania1> yeah, but you lose control when you start requiring stuff in templates
659: [10:53:05] <willmorgan> kinglozzer micmania1 the issue is more that the order is implicit and you have no knowledge of other requirements, really
660: [10:54:07] <micmania1> It'd be good to set a priority or something to give a file more weight than another (ie jQuery high priority so it'd be included first)
661: [10:54:48] <micmania1> Also, it'd be good to be able to block an entire module/folder with Requirements::block()
662: [10:55:01] <willmorgan> kinglozzer: Have you used RequireJS before?
663: [10:55:06] <willmorgan> or any sort of AMD loader
664: [10:55:14] <kinglozzer> willmorgan: R.e. minifying/tasks, do you think extension hooks would be the best way of achieving this? I.e. remove stuff that's specific to 'minifying' and re-add it as an extension somehow
665: [10:55:36] <kinglozzer> willmorgan: Nah, I've used Yepnope but that's just a conditional loader, not AMD
666: [10:55:44] <willmorgan> kinglozzer: that might work, though I'm more in favour of a config set adapter system
667: [10:55:48] <kinglozzer> I looked at RequireJS before but never really got the time to play around with it
668: [10:56:20] <willmorgan> right, so requireJS is similar to yepnope in that you don't specify the scripts with script tags
669: [10:56:47] <willmorgan> and requireJS has an optimiser included as an optional build step
670: [10:57:04] <willmorgan> so you don't (necessarily) minify your JS files in to one
671: [10:57:12] <willmorgan> but anyway, this is getting really specific
672: [10:57:39] <willmorgan> the reason for having an adapter system is that people can go off and build their own requirements_backend adapters for minification depending on how they include their frontend assets
673: [10:59:12] <kinglozzer> willmorgan: Sure, makes sense. I'm trying to think of where this adapter would be included, in combine_files only?
674: [10:59:22] <Colin[pi]> chillu: you working on that beard yet??
675: [10:59:45] <chillu> Colin[pi]: Not hipster enough, sorry ;)
676: [10:59:48] <Colin[pi]> LOL
677: [11:00:05] <willmorgan> nope, you'd set up the adapter as part of the Config system, and Requirements_Backend would either be replaced (or delegate control) to that adapter
678: [11:00:24] <Colin[pi]> chillu: I quite like beards, but, I can't get past that "warm, fuzzy, itchy" stage
679: [11:00:38] <Colin[pi]> I get to that point and "Nope, I'm done"
680: [11:01:10] <chillu> Same! Maybe the Wellington winter will further my beard growth though haha
681: [11:01:44] <Colin[pi]> heheh
682: [11:02:02] <kinglozzer> willmorgan: Can't that already be done by setting Requirements::$backend?
683: [11:02:18] <micmania1> anybody used this before? http://flysystem.thephpleague.com/
684: [11:02:54] <micmania1> There was a talk recently about it near me but I missed it :( Looks good though
685: [11:03:46] <Colin[pi]> there's a php league?
686: [11:03:50] <willmorgan> kinglozzer: pretty much!
687: [11:03:55] <Py^k> micmania1: rofl, read that as ph PLAGUE
688: [11:04:02] <Colin[pi]> lol
689: [11:04:50] <chillu> Alright, outta here - see ya
690: [11:04:58] * chillu quit (Quit: chillu)
691: [11:05:03] <Py^k> [10:44] <willmorgan> improve Requirements_Backend
692: [11:05:18] <Py^k> or authentication process
693: [11:05:24] <Py^k> that's a mess.
694: [11:06:10] <Py^k> kinglozzer: it's able to be replaces, yeh. But the stock one isn't all that flash. I've hacked it previously, but again never pushed.
695: [11:06:13] <willmorgan> Py^k: have you recently changed nickname?
696: [11:06:20] <Py^k> willmorgan: ish.
697: [11:06:23] <Py^k> shortened.
698: [11:06:27] <willmorgan> your previous one was?
699: [11:06:32] <Py^k> guessable
700: [11:06:34] <kinglozzer> Py^k: Have you settled on Py^k now?
701: [11:06:49] <Py^k> kinglozzer: seems like it.
702: [11:06:53] * svandragt1 is now known as svandragt
703: [11:06:58] <Py^k> I might shake it up to keep you on your toes.
704: [11:07:13] * Py^k is now known as pykiroman
705: [11:07:15] <kinglozzer> Doesn't matter, not now I know the power of tab.
706: [11:07:18] <pykiroman> :P
707: [11:07:20] <kinglozzer> pykiroman: No issues
708: [11:07:22] <kinglozzer> :P
709: [11:07:41] <pykiroman> kinglozzer: the pattern I was keeping to was beginning and ending the same (which this violates).
710: [11:07:59] <pykiroman> I just decided to skip out everything in the middle. Anagrams were getting hard.
711: [11:08:08] * pykiroman is now known as Py^k
712: [11:08:15] * Py^k is now known as Pyromanik
713: [11:08:29] <Pyromanik> you may not recognise me due to being perfectly out of sync in the past willmorgan
714: [11:08:39] <Pyromanik> dat 12hr difference.
715: [11:08:52] <Pyromanik> it's like I moved into the past. I'm pretty much a time traveller now.
716: [11:09:08] <Pyromanik> especially with this archaic shit banking bollocks you lot call a 'system'.
717: [11:10:51] <Pyromanik> [10:52] <speak_> willmorgan, we on TV.
718: [11:10:53] <Pyromanik> famous!
719: [11:12:12] <irogue_> Pyromanik: luckily i have also moved into a different timezone
720: [11:12:14] <irogue_> called "freelancing"
721: [11:12:15] <irogue_> :P
722: [11:12:17] * ocm has joined #silverstripe
723: [11:12:19] <ocm> howdy
724: [11:12:25] <ocm> any regex-god here?
725: [11:12:51] <Pyromanik> could give it a go
726: [11:13:32] <ocm> I have to find and replace a string like A.B.C.D. somewords here, I need to catch the A.B.C.D.
727: [11:13:35] <ocm> finding them is no problem
728: [11:13:47] <ocm> but $1 only puts back A. (or D.)
729: [11:13:51] <ocm> and not A.B.C.D.
730: [11:14:08] <ocm> using this is my regex
731: [11:14:09] <ocm> ^([a-zA-Z]\.)+
732: [11:14:55] <irogue_> if you haven't used it already, rubular.com is fucking awesome
733: [11:15:55] <Pyromanik> irogue_: living the dream then.
734: [11:16:28] <Pyromanik> ocm: you're matching the start of the string
735: [11:16:43] <ocm> I know, it should be matching the start
736: [11:16:50] <willmorgan> ocm: You need $0 which is the entire string
737: [11:16:53] <ocm> the problem is not finding what I am looking for, but returning what I neewd
738: [11:16:55] <Pyromanik> right, but parens should encapsulate
739: [11:17:19] <ocm> willmorgan, I dont need the whole string
740: [11:17:24] <willmorgan> ooh, I misread
741: [11:17:25] <willmorgan> one sec
742: [11:17:34] <ocm> input is like: A.B.C. somethinghere
743: [11:17:35] <irogue_> its greediness
744: [11:17:37] <Pyromanik> also, kinglozzer, willmorgan, I once rehashed requirements to be 'replacable'
745: [11:17:37] <ocm> output should be like
746: [11:17:45] <ocm> A.B.C. || somethinghere
747: [11:17:54] <ocm> so I use the regex to find A.B.C.
748: [11:18:08] <irogue_> try ^(([a-zA-Z]\.)+)
749: [11:18:09] <ocm> but what I get as output is
750: [11:18:13] <ocm> C. || something
751: [11:18:23] <willmorgan> ocm: ^(([a-zA-Z].)+)
752: [11:18:47] <ocm> irogue_ was first :P
753: [11:18:54] <ocm> but thnx, that exactly does the job
754: [11:18:54] <willmorgan> yes, but I have a funny test case: https://dl.dropbox.com/u/4215179/ShareX/2014-02/2014-02-25_11-18-44-UHF7aFe.png
755: [11:19:09] <ocm> more brackets it seems
756: [11:20:22] <irogue_> BRACKET ALL THE THINGS
757: [11:21:04] * stripee quit (Ping timeout: 245 seconds)
758: [11:21:05] <ocm> Much brackets, very regular!
759: [11:21:16] <ocm> so expressive
760: [11:23:04] * Tanger quit (Quit: Tanger)
761: [11:23:36] <willmorgan> speak_ read and memorise the above doge meme, I'm gonna repeat that to PigeonFriend and ruin his day
762: [11:24:02] <speak_> willmorgan, can you irritate him after I've spoken to him
763: [11:24:16] <ocm> why would it ruin his day?
764: [11:24:22] <willmorgan> he hates "so expressive"
765: [11:24:35] <ocm> :D
766: [11:24:53] <willmorgan> I have a habit of coding that annoys him at the level of his inner being, which is being expressive
767: [11:31:31] * stripee has joined #silverstripe
768: [11:31:40] <ocm> http://imgur.com/ImqAzU7
769: [11:31:42] <ocm> :D
770: [11:32:03] * jcwacky has joined #silverstripe
771: [11:36:26] <jcwacky> This filterAny seems to be ignoring my first filter (ShowInSidebar), and is only returning matches on my 2nd filter, any idea why?
772: [11:36:26] <jcwacky> HomepageBox::get()->filterAny( array( "ShowInSidebar"=>1, "ShowOnPages.ID"=>$this->ID ) );
773: [11:37:30] * Pigeon has joined #silverstripe
774: [11:37:54] * Pigeon is now known as Guest39442
775: [11:43:27] <jcwacky> Ah, looks like filterAny doesn't like many_many
776: [11:50:11] <svandragt> my functions like onAfterWrite() are called twice whenever I save the record, is this normal?
777: [11:50:15] <Pyromanik> bug report
778: [11:50:27] <Pyromanik> svandragt: depends on why it's doing it
779: [11:50:54] <svandragt> Pyromanik: any idea how would I find out?
780: [11:51:08] <svandragt> Pyromanik: model admin
781: [11:52:20] <svandragt> simple test: public function onAfterWrite() {parent::onAfterWrite(); Debug::message('test');}
782: [11:52:46] * r3v3rb has joined #silverstripe
783: [11:53:24] <r3v3rb> anyone using display-logic without bootstrap forms in their front-end?
784: [11:53:39] * Colin[pi] quit (Ping timeout: 264 seconds)
785: [11:54:06] <willmorgan> r3v3rb: what do you mean?
786: [11:54:24] <r3v3rb> I have the module installed, there is no config to adjust according to the doc's yet all my fields show up - as the requirements aren't being loaded
787: [11:54:39] <willmorgan> ooh, sorry
788: [11:54:42] <r3v3rb> I have dev/build - flush=all about a zillions times this morning
789: [11:54:44] <willmorgan> not familiar with that module
790: [11:54:57] <r3v3rb> no worries willmorgan
791: [11:55:33] <willmorgan> r3v3rb: looking at the module, I guess you're going to have to recreate some of the hidden classes that bootstrap uses
792: [11:55:51] <r3v3rb> yuk,
793: [11:56:09] <willmorgan> it doesn't list bootstrap as a dependency, however
794: [11:56:12] <willmorgan> so :confused.jpg:
795: [11:56:13] <r3v3rb> i'll leave it and reload the page instead
796: [11:56:17] <r3v3rb> willmorgan: me too
797: [11:58:53] <Pyromanik> wholey fucking shit, it boggels my mind how people seem to think that Code Igniter is a good framework.
798: [11:59:05] <Pyromanik> It's barely even a framework, and it doesn't fucking work.
799: [11:59:31] <svandragt> Pyromanik: lol it's a 2009 issue! http://www.silverstripe.org/data-model-questions/show/6805
800: [11:59:40] <svandragt> Pyromanik: still on silverstripe 3.0.8
801: [12:01:09] <Pyromanik> svandragt: if you're creating it might be writing twice. First it creates for the ID, then it writes your data.
802: [12:01:16] <Pyromanik> things like that
803: [12:02:01] <svandragt> Pyromanik: I see thanks
804: [12:03:40] <willmorgan> yeah... don't use the static variable fix
805: [12:03:43] <willmorgan> otherwise it will work only once
806: [12:03:46] <willmorgan> you want a class member
807: [12:04:22] <r3v3rb> willmorgan: I use the static version - seems to work well enough in most cases I have encountered
808: [12:04:57] <Pyromanik> people so lazy use static all wrong :<
809: [12:05:20] <Pyromanik> seems to be an unfortunately common thing :/
810: [12:07:25] <r3v3rb> someone remind me why we need 'middleColumn' in the field holders - grrr they seem to just get in the way
811: [12:08:01] <r3v3rb> Pyromanik: how would you resolve the write twice issue check for 'ID' on first pass?
812: [12:08:55] * SightUnseen has joined #silverstripe
813: [12:09:07] * Raymondo quit (Quit: Connection closed for inactivity)
814: [12:10:21] * Raymondo has joined #silverstripe
815: [12:12:39] <r3v3rb> just stumbled on this: love the solutions: http://www.sspaste.com/paste/show/5277bc7d68bf4
816: [12:13:29] <r3v3rb> why are there no docs for fieldgroup in front-end forms...
817: [12:17:16] <r3v3rb> my mistake I left an bracket in I shouldn't have had
818: [12:18:51] <r3v3rb> god i hate form work - its the biggest single pita of all development when a designer creates what should be a 'paper form'
819: [12:18:58] * Shashitechno has joined #silverstripe
820: [12:18:59] <r3v3rb> for the website
821: [12:21:37] <Pyromanik> r3v3rb: hmm?
822: [12:22:00] <Pyromanik> oh, write twice... uhh... I wouldn't.
823: [12:22:00] <r3v3rb> which bit of my inane drivel = hmm?
824: [12:22:04] <Pyromanik> I'd just let it do it's own thing.
825: [12:22:25] <Pyromanik> if it was something imperitive that needed an ID I'd if($this->ID) { #do stuff
826: [12:22:27] <r3v3rb> not easy when using the onAfterWrite to send mail messages ect
827: [12:22:51] <r3v3rb> Aye, I will probably switch to if($this->ID)
828: [12:22:54] <Pyromanik> check if($this->isChanged('ID')) { #send email
829: [12:23:15] <Pyromanik> well, it depends on when you send the email, but yeh.
830: [12:23:26] <r3v3rb> that was the only reason I used the static to stop it sending emails on each write
831: [12:23:52] <Pyromanik> yeah, check something on the instance, not the class :>
832: [12:25:59] <Pyromanik> r3v3rb: middleColumn isn't _required_ as such, but is useful for layout purposes.
833: [12:26:07] <Pyromanik> it shouldn't get in the way if your css ignores it.
834: [12:26:28] <Pyromanik> I used to rage at it when I first started using SS too, but it's not a bother to me anymore.
835: [12:26:32] <r3v3rb> true, but all the same its extra fluff
836: [12:26:49] <r3v3rb> as long as it set it as display: inline-block its fine
837: [12:26:52] <Pyromanik> yes and no, when you're styling and it's not there you suddenly realise how much you actually like it.
838: [12:26:56] <r3v3rb> then it makes no difference
839: [12:29:24] <r3v3rb> i feel a rage coming on at the designer
840: [12:29:30] <r3v3rb> :|
841: [12:30:08] <Zauberfi1ch> r3v3rb: grid talk: designer made a site with a 12 col grid. any grid system would work here. now she wants 1 row to have 5 items instead of 6
842: [12:30:13] <Zauberfi1ch> any grid: pain in the arse
843: [12:30:41] <Zauberfi1ch> susy: @include span-columns(3, 15);
844: [12:30:57] <r3v3rb> Zauberfi1ch: seriously this designer 'says' he used a 24 column grid yet placed items any old place - all he used basically was a 10px margin which was correct
845: [12:31:12] <Zauberfi1ch> :D
846: [12:31:24] <Zauberfi1ch> r3v3rb: susy wouldn't mind that either
847: [12:31:35] <r3v3rb> other than that - he just threw stuff anywhere with no regard
848: [12:31:50] <Zauberfi1ch> really, susy is probably not that much a grid system, its more just a set of useful helpers
849: [12:31:56] <Zauberfi1ch> and thats exactly what I needed
850: [12:32:34] <r3v3rb> I was hoping to create a set of generic form fields but oh.... no.... we have styled chosen dropdownfields for one form, a different one for a seperate yet almost entirely identical form
851: [12:32:56] <r3v3rb> either I am truly shit ( do not answer that ) or I am missing something about form design
852: [12:36:02] * babak quit (Quit: Connection closed for inactivity)
853: [12:46:48] <Zauberfi1ch> r3v3rb: haha
854: [12:46:51] <Zauberfi1ch> I know the problem
855: [12:50:02] <stripee> how can i solve this ....http://www.sspaste.com/paste/show/530c8e043a3e6
856: [12:50:24] <r3v3rb> so now I have lots of little amendments to create for each version of the forms throughout - and I am supposed to be supplying a set of css files to a .net programmer for him to use on some internal thingy he's creating - but I have no idea now of what his forms are meant to look like!
857: [12:51:52] <r3v3rb> FieldGroup::create( xxx )->setTitle('xyz') <- no ->setAttribute('ID', xyz ) <- no - how do I name a fieldgroup
858: [12:52:59] <r3v3rb> argh my mistake mixed new with chaining in my haste!
859: [13:00:12] <Pyromanik> stripee: it says right there. No such file.
860: [13:01:25] <Pyromanik> don't manually delete files, use SS so the reference to them is removed too.
861: [13:01:25] <stripee> i have checked the file.....i used debug::show($filename)..........and it displays the filename......
862: [13:01:38] <Pyromanik> yeah, the filename comes from the database.
863: [13:01:44] <Pyromanik> the file is not there.
864: [13:01:51] <stripee> under that warning ....the requiered page opens
865: [13:01:55] <Pyromanik> if it is, then it must be a permissions issue.
866: [13:02:35] <Pyromanik> r3v3rb: setName
867: [13:02:36] <Pyromanik> iirc
868: [13:02:55] <stripee> wat if file is not there...how can the issue be corrected?
869: [13:02:57] <r3v3rb> Pyromanik: ok, using an extra class is as good for now
870: [13:03:07] <Pyromanik> stripee: put it back.
871: [13:03:24] <stripee> i dont have
872: [13:03:31] <stripee> wat is the other solution?
873: [13:09:34] <micmania1> stripee: make a file with the same name
874: [13:10:01] <stripee> its an image
875: [13:10:17] <micmania1> use an image
876: [13:11:17] <stripee> ohk
877: [13:11:36] <stripee> then delete that image using ss
878: [13:11:47] * Guest39442 is now known as PigeonFriend
879: [13:11:48] <stripee> is it the logic?
880: [13:12:09] <micmania1> yes
881: [13:14:37] <Shashitechno> guys any hack to put in ss 2.4 to make all the uploads to S3 ?
882: [13:16:28] <wmk> Shashitechno, there was a module for this afaik
883: [13:16:55] <Shashitechno> wmk: yeah Uploadify, but i wont all uploads*
884: [13:17:04] <wmk> ah
885: [13:17:17] <Shashitechno> even those that comes from files & folders, and content editor
886: [13:18:28] * r3v3rb quit (Quit: r3v3rb)
887: [13:19:01] * UndefinedOffset has joined #silverstripe
888: [13:19:04] <wmk> hmm, dunno. I use cloudfront as cdn, it puts the files from my server, so i don't have to push it, just rewrite the urls
889: [13:20:29] * kk has joined #silverstripe
890: [13:21:35] <wmk> hi kk
891: [13:22:26] <Shashitechno> wmk: so how you move files to cdn ?
892: [13:23:03] <wmk> wmk, with cloudfront i defined the source of the files and if cf doesn't have a file locally it grabs it from my webspace
893: [13:26:03] <wmk> Shashitechno, i just defined a custom origin
894: [13:26:19] <wmk> the rewrite of the img tags is a bit tricky
895: [13:27:05] <svandragt> Anyone written a DateField overlap method?
896: [13:27:12] * r3v3rb has joined #silverstripe
897: [13:27:42] <svandragt> date range
898: [13:30:39] * stripee quit (Ping timeout: 245 seconds)
899: [13:31:04] * Shashitechno quit (Ping timeout: 245 seconds)
900: [13:32:30] <kk> wmk: hi
901: [13:32:49] <wmk> i had this bug some time ago... valdiate, i hate you
902: [13:32:53] <wmk> kk, got it working?
903: [13:35:14] * samthejarvis has joined #silverstripe
904: [13:36:06] <Pyromanik> gidday sam
905: [13:36:35] <samthejarvis> howdy
906: [13:36:45] <samthejarvis> what's new?
907: [13:37:56] <Pyromanik> not much chief.
908: [13:38:10] <Pyromanik> just raging at code igniter for the most part.
909: [13:38:22] <samthejarvis> nice
910: [13:38:34] <Pyromanik> I do like that I get to write queries again though... which is kinda silly. But generally just forlorn for SS
911: [13:38:58] <samthejarvis> haha, yeah, my sql is terribly rusty these days
912: [13:39:24] <samthejarvis> darn you SS.
913: [13:40:37] <Pyromanik> That's a sacrifice I'm kinda willing to make.
914: [13:46:29] <samthejarvis> I do feel that I haven't progressed as much as I could have as a developer due to using these large frameworks
915: [13:46:47] <samthejarvis> 70% of projects i've worked on have had most of the work done on them
916: [13:46:48] <r3v3rb> Pyromanik: try laravel then is you think CI is bad
917: [13:46:49] <r3v3rb> I came running back to SS before I had my first two controllers built
918: [13:46:49] <r3v3rb> and then built the equity site in about three days flat with fully custom controllers no CMS - I love SS for that speed
919: [13:46:49] <r3v3rb> of development
920: [13:46:56] <r3v3rb> form @ 960px = 95% complete, next to 768px and finally 480/320 ugh the joy
921: [13:46:57] * r3v3rb cheated though and styled most elements using percentages ;) ftw!
922: [13:47:19] <samthejarvis> heh
923: [13:47:20] <r3v3rb> samthejarvis: yep, just become a reader of framework docs instead
924: [13:47:59] <Pyromanik> samthejarvis: by docs, what r3v3rb really means is code.
925: [13:48:10] <samthejarvis> haha
926: [13:48:17] <r3v3rb> thats all I seem to do these days cmd-b in phpstorm
927: [13:48:17] <r3v3rb> then read the declarations for the next ten minutes or so
928: [13:48:34] <Pyromanik> if you can read the code and 'get it' (in regards to design) then you'll be winning. Especially if you can see a way to improve it.
929: [13:48:46] <r3v3rb> Pyromanik: same differnce
930: [13:48:48] <samthejarvis> yeah, still need to know what happens in a method
931: [13:49:17] <r3v3rb> r3v3rb: finding it easier to follow the code half the time than some of the doc's on SS
932: [13:49:29] <Pyromanik> pretty much.
933: [13:49:36] <r3v3rb> :)
934: [13:49:38] <Pyromanik> sometimes heredoc has better explanations too.
935: [13:49:50] <samthejarvis> that's a good point yeah, silverstripe/CI/laravel is written by much better developers than myself, reading their code in motion is definitely a learning experience in itself
936: [13:49:54] <samthejarvis> are*
937: [13:49:55] * r3v3rb wonders if there's a job to be had re-writing the doc's for newcomers
938: [13:49:55] <Pyromanik> or approaches the same doc from another angle just enough to illuminate your life.
939: [13:50:13] <Pyromanik> r3v3rb: yes and no. Newcomers would need to actually know what they're doing
940: [13:50:25] <r3v3rb> Pyromanik: true
941: [13:51:14] <r3v3rb> perversely I am finding myself with the default inspector open more in FF rather than FB these days - it has really got better
942: [13:51:32] <samthejarvis> true that
943: [13:51:40] <r3v3rb> samthejarvis: i am not alone then
944: [13:51:55] <r3v3rb> js debugger is nice and clean too
945: [13:53:34] <samthejarvis> the 3d viewer too is also an interesting way to understand the hierarchy in a doc
946: [13:54:51] <samthejarvis> (though totally unnecessary and not as efficient as just reading the node tree)
947: [13:56:24] <Pyromanik> I find that newbies can often hack out code that will work, as such... but isn't the best, cleanest or safest approach.
948: [13:57:21] <r3v3rb> hack out code from where Pyromanik
949: [13:57:32] <Pyromanik> sorry, I skipped back to newbies writing docs
950: [13:57:41] <r3v3rb> lol, oh right!
951: [13:58:00] <samthejarvis> yeah, wouldn't want the blind leading the blind
952: [13:58:06] <Pyromanik> eg. folks that know enough to solve a problem, but that same problem makes a seasoned dev cringe physically
953: [13:58:32] <Pyromanik> eg. ?getvar=something instead of /page/action/variable
954: [13:58:40] <r3v3rb> bleurgh
955: [13:58:50] <Pyromanik> while not a major thing, kinda ugly, not really utilising the framework, etc.
956: [13:58:52] <r3v3rb> as if I'd do that ;)
957: [13:59:21] <Pyromanik> I guess what I'm saying is that newbies are far far far more likely to find a solution that works it's way AROUND a framework, rather than utilise it well.
958: [13:59:28] <r3v3rb> except for the instance where I never know what page an agent will come in at so just give them a ?agid=XTXY
959: [13:59:35] <Pyromanik> true of anything, not just S
960: [13:59:36] <Pyromanik> SS
961: [14:00:10] <r3v3rb> as that is also what they are using from the current sites framework, no need to upset them all and ask them to learn something new!
962: [14:00:29] <r3v3rb> so I just rebuilt the wheel using SS_HTTPRequest
963: [14:00:35] <Pyromanik> oic
964: [14:00:41] <r3v3rb> five minutes of code - and done
965: [14:01:16] <r3v3rb> but the underlying code writes out a do for each hit and has report generation for the admin to see how many hits an agents id has had etc etc
966: [14:01:41] <r3v3rb> big brother is watching them all
967: [14:01:59] <r3v3rb> who wants to style a chosen select form element for me
968: [14:02:54] <samthejarvis> hahaha
969: [14:03:00] <samthejarvis> one does not simply
970: [14:03:03] <samthejarvis> do the above
971: [14:03:59] <Pyromanik> r3v3rb: alternatively tell them to pull their trousers up and use google analytics.
972: [14:04:08] <willmorgan> has anyone managed to find a way to mock the time functions in MySQL?
973: [14:04:16] <r3v3rb> Pyromanik: ha, yes that would be good
974: [14:04:25] <willmorgan> so if I set a mock date time in a unit test, I could use "SELECT NOW()" and it would give me the mock time
975: [14:04:32] <r3v3rb> willmorgan: yes, stand back and laugh at them sinisterly
976: [14:04:33] <Pyromanik> willmorgan: by mock you mean un... yeh
977: [14:04:44] <willmorgan> ...what happened?
978: [14:04:52] <willmorgan> because I love my mysql DATE_ADD DATE_SUBTRACT functions ;)
979: [14:05:25] <Pyromanik> willmorgan: I was asking if you meant mock as in for testing
980: [14:05:27] <Pyromanik> unit tests
981: [14:05:39] <willmorgan> oh right, no actual answer :(
982: [14:05:56] <Pyromanik> but you then proceeded to say 'in a unit test'
983: [14:06:01] <Pyromanik> so I didn't need to.
984: [14:06:10] <willmorgan> ok...
985: [14:06:12] * willmorgan kills himself
986: [14:06:27] <Pyromanik> that's... over the top.
987: [14:06:45] <Pyromanik> romeo and juliette, not romeo and mysqltimefunctions
988: [14:06:52] <Pyromanik> gawsh
989: [14:07:39] <Pyromanik> someone should totally rewrite that play to be romeo and jason.
990: [14:12:37] <wmk> anyone can help me with userforms, datpicker and validation?
991: [14:14:28] <willmorgan> PigeonFriend any ideas? ^
992: [14:14:31] <Pyromanik> don't validate, include jquery to get datepicker, userforms makes some assumptions it shouldn't.
993: [14:14:51] <svandragt> If anyone is interested in a DateRange class (check for overlapping date ranges): http://sspaste.com/paste/show/530ca1fa607a8
994: [14:15:09] <willmorgan> svandragt: put it in a gist!
995: [14:15:16] <svandragt> willmorgan: ok
996: [14:15:19] <wmk> Pyromanik, i don't want to validate date field, but using datepicker validation breaks
997: [14:15:50] <wmk> somehow validation thinks it's required and breaks.
998: [14:16:02] <wmk> if i disable datepicker i can send the form
999: [14:16:41] <PigeonFriend> willmorgan: don't use NOW()
1000: [14:16:45] <PigeonFriend> it's baaaaaaad
1001: [14:16:51] <willmorgan> granted
1002: [14:17:01] <willmorgan> I saw your github PR comment
1003: [14:17:06] <willmorgan> I've changed it
1004: [14:17:50] <svandragt> willmorgan: https://gist.github.com/svandragt/9209589
1005: [14:18:04] <willmorgan> forked \o/
1006: [14:19:42] <svandragt> willmorgan: can you easily use gists with composer, or how are you planning to use it? :)
1007: [14:20:14] <willmorgan> possibly
1008: [14:20:18] <willmorgan> I mean, all gists are git repos
1009: [14:20:47] <willmorgan> I just prefer the gist way of doing things... and I cba to create an account on sspaste when I already use github
1010: [14:21:03] <micmania1> willmorgan: https://github.com/micmania1/silverstripe-blogger/blob/1.0/extensions/BlogPostFilter.php#L24
1011: [14:21:15] <micmania1> then your unit test... https://github.com/micmania1/silverstripe-blogger/blob/1.0/tests/BlogTest.php#L8
1012: [14:21:21] <samthejarvis> gists are more accessible too
1013: [14:21:26] <willmorgan> micmania1: yeah, I set up the mock stuff
1014: [14:21:45] <svandragt> Gists it is then
1015: [14:21:45] <willmorgan> I've actually been told by PigeonFriend just now that NOW() busts the query cache
1016: [14:22:17] <willmorgan> so if you're not really worried about time sensitive stuff, I guess this might work: https://dl.dropbox.com/u/4215179/ShareX/2014-02/2014-02-25_14-22-12-l1hkEDY.png
1017: [14:22:31] <willmorgan> (to the nearest hour)
1018: [14:23:19] <Zauberfi1ch> willmorgan: what makes you prefer sharing code with images rather than a paste site?
1019: [14:23:39] <PigeonFriend> Event::get()->filter(array('StartTime', '>', $startTime)); ?
1020: [14:23:44] <willmorgan> shift+print screen is good
1021: [14:23:54] <willmorgan> PigeonFriend: doesn't work
1022: [14:24:01] <PigeonFriend> not array, soz
1023: [14:24:02] <PigeonFriend> ok
1024: [14:24:33] <Zauberfi1ch> PigeonFriend: I was not aware you can do '>'
1025: [14:24:36] <Zauberfi1ch> are you sure that works?
1026: [14:24:48] <willmorgan> it doesn't
1027: [14:24:53] <Zauberfi1ch> thought so
1028: [14:24:55] <Zauberfi1ch> but you can do
1029: [14:25:05] <willmorgan> even without the array
1030: [14:25:09] <willmorgan> Incorrect number of arguments passed to filter()
1031: [14:25:23] <Zauberfi1ch> Event::get()->filter('StartTime:GraterThan', $startTime);
1032: [14:25:28] <Zauberfi1ch> *Greater
1033: [14:25:56] <willmorgan> I like filters for complex stuff
1034: [14:26:13] <Zauberfi1ch> I like it better than where
1035: [14:26:22] <Zauberfi1ch> filter is more ORM less SQL
1036: [14:26:37] <willmorgan> I dislike how much code needs to execute when you do filters
1037: [14:26:44] <svandragt> please add null checking to filter() btw oh SilverStripe gods.
1038: [14:27:26] <willmorgan> however the syntax is pretty sweet
1039: [14:27:50] <willmorgan> so I'm going to use it :D
1040: [14:30:31] * r3v3rb rests --- form complete ---
1041: [14:31:28] <r3v3rb> chosen select box now playing nicely with form design
1042: [14:35:32] * SightUnseen quit (Quit: Leaving.)
1043: [14:36:54] <svandragt> (If anyone is interested in retrieving the relation chain before the record is saved, you can use this hackaround: https://gist.github.com/svandragt/9209941)
1044: [14:37:49] <Pyromanik> PigeonFriend: willmorgan, did you folk make a calendar module that's not shit?
1045: [14:38:50] <willmorgan> hmm, I think we have /something/ but it's incomplete
1046: [14:39:25] <willmorgan> something like this, Pyromanik: http://watermeadowcottage.co.uk/booking/
1047: [14:39:27] <willmorgan> ?
1048: [14:40:24] <Pyromanik> fuck me that's intense
1049: [14:40:50] <willmorgan> it's not too heavy really
1050: [14:40:54] <willmorgan> all statically published anyway
1051: [14:41:00] <Pyromanik> willmorgan: yeh, it's interface.
1052: [14:41:02] <Pyromanik> oh ye
1053: [14:41:11] <Pyromanik> so is it module or unreleased?
1054: [14:41:17] <willmorgan> unreleased
1055: [14:41:21] <Pyromanik> oh yeh
1056: [14:41:26] <willmorgan> I kept nagging the dev to modularise it
1057: [14:41:31] <Pyromanik> I was going to make one. Had quite a plan once, but never got around to code.
1058: [14:42:53] <willmorgan> lol
1059: [14:42:56] <willmorgan> I'm vimming through the code no
1060: [14:42:57] <willmorgan> now*
1061: [14:43:10] <willmorgan> this is based off some code I wrote maybe 2 years ago, which wasn't really my best work
1062: [14:48:11] <Pyromanik> haha
1063: [14:48:14] <Pyromanik> know them feels
1064: [14:48:30] <Pyromanik> man, I wish I'd written stuff down. I had quite the plan for a calendar module that wasn't shit.
1065: [14:48:53] <Pyromanik> as it stands the only one out there is still events_calendar afaik :<
1066: [14:51:25] <Zauberfi1ch> < willmorgan> I dislike how much code needs to execute when you do filters
1067: [14:51:54] <Zauberfi1ch> I have no idea about the performance of it, but I think its actually faster than doing all that string parsing and formatting
1068: [14:52:20] <willmorgan> so what do you think it does in the background?
1069: [14:52:42] <Zauberfi1ch> well, obviously it glues together a SQL string
1070: [14:52:44] <willmorgan> (I read these things... instantiating a filter class, then passing in the string, is relatively intense.)
1071: [14:52:47] <willmorgan> okay
1072: [14:53:02] <willmorgan> and it interprets the string you pass in:
1073: [14:53:08] <willmorgan> StartTime:GreaterThan
1074: [14:53:13] * r3v3rb quit (Quit: r3v3rb)
1075: [14:53:17] <willmorgan> so it's gotta check what you're referring to when you say StartTime
1076: [14:53:18] <Zauberfi1ch> well, point taken
1077: [14:53:24] <willmorgan> and it's gotta look up and create the GreaterThanFilter
1078: [14:53:33] <willmorgan> still, it looks pretty
1079: [14:53:34] <Zauberfi1ch> yeah, you are right
1080: [14:53:41] <Zauberfi1ch> and still: it keeps the code clean
1081: [14:53:44] <willmorgan> so I'm using your suggestion
1082: [14:55:14] <Zauberfi1ch> with filter() it does not matter what data you are filtering
1083: [14:55:27] <Zauberfi1ch> with where() it has to be a SQL thing that you filter
1084: [14:57:01] <Zauberfi1ch> eg ->filter() also works on ArrayList
1085: [14:57:37] <Zauberfi1ch> which is pretty nice, because you don't always get a DataList. eg $page->Children() is actually an ArrayList
1086: [14:58:13] <willmorgan> sure, though I feel that sort of "padded cell" approach assumes the programmer is an idiot
1087: [14:59:50] <samthejarvis> woo, my next project is a chocolate shop!
1088: [15:01:37] * Shrike_Finland has joined #silverstripe
1089: [15:04:06] <Zauberfi1ch> "padded cell" - what do you mean by that?
1090: [15:04:58] * wilson has joined #silverstripe
1091: [15:05:03] <willmorgan> if you get a datalist
1092: [15:05:06] <kinglozzer> Zauberfi1ch: You can't hurt yourself if you're inside a padded cell :P
1093: [15:05:14] <willmorgan> you're advocating use of filter regardless of the toolset available to you
1094: [15:05:15] <Zauberfi1ch> ah, that :D
1095: [15:05:22] * wilson is now known as Guest64885
1096: [15:05:55] <Zauberfi1ch> kinglozzer: I am sure padded cells are fun
1097: [15:06:02] <willmorgan> yeah, maybe on mushrooms
1098: [15:06:40] <Guest64885> Hi Guys, new to this. I have this error when i add pages to a SS 3.1.2 site. /// silverstripe 3.1.2 Error: Syntax error, unrecognized expression: jquery:4272 Any clues?
1099: [15:06:47] <Zauberfi1ch> its like your private bouncy castle
1100: [15:07:44] <willmorgan> Guest10374: is that a JS or PHP error?
1101: [15:07:50] <Zauberfi1ch> sounds like a php error
1102: [15:07:57] <Zauberfi1ch> fail
1103: [15:08:00] <Zauberfi1ch> sounds like a js error
1104: [15:08:30] <Zauberfi1ch> .oO(I shouldn't think of 2 things at once)Oo
1105: [15:09:17] <Zauberfi1ch> well, my first guess would be: silverstripe upgrade also upgraded jquery version and one of your plugins or your code doesn't work with this jquery version
1106: [15:09:39] <Guest64885> Error Log show no errors. Browser console show JS error. When i ?flush, page is showing in the CMS. I have no this on other servers i used 3.1.2
1107: [15:10:27] <Guest64885> This is a fresh 3.1.2 download from SS and again, i used it on another server.
1108: [15:10:30] <samthejarvis> that's a js error there
1109: [15:10:38] <willmorgan> Guest10374: is this a *new* deployment of SilverStripe?
1110: [15:10:50] <willmorgan> if so, then are you sure that there are write permissions on the assets/ directory?
1111: [15:11:03] <Guest64885> willmorgan -> yes. I even deleted DB and resintalled. Same issue.
1112: [15:11:14] <willmorgan> are you sure that there are write permissions on the assets/ directory?
1113: [15:11:31] <Guest64885> will ¬> permissions are 755
1114: [15:11:49] <willmorgan> if you look inside that directory, is there a directory called _combinedFiles/ ?
1115: [15:11:54] <willmorgan> (or similar)
1116: [15:12:06] <Guest64885> 755 also
1117: [15:12:22] <willmorgan> and within there, could you list me the files?
1118: [15:12:32] <Guest64885> Again, no templates, no custom PHP. Plain ol SS
1119: [15:12:51] <willmorgan> also, are you running in dev or live mode?
1120: [15:13:17] <Guest64885> cmsmain.js leftandmain.js lib.js
1121: [15:13:24] <willmorgan> weird
1122: [15:13:31] <willmorgan> are you using Chrome as your browser?
1123: [15:14:04] <willmorgan> if so, please go to the "Network" tab on your dev tools, refresh, and show me a screenshot of any requests that 404
1124: [15:14:20] <Guest64885> The site is live in a /new312site folder. But i think, there is a SS 3.0.6 site running in the folder where /new312site runs?
1125: [15:14:52] <kinglozzer> Guest64885: Check you don't have any whitespace before an opening <?php tag in any of your PHP files
1126: [15:15:00] <Guest64885> Browser is Safari. Tried Firefox, same thing.
1127: [15:16:26] <Guest64885> > kinglozzer i checked that before
1128: [15:16:48] <Guest64885> Error now shows in lib.js line 275 => return curLoop;};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg);};var getText=Sizzle.getText=function(elem){var i,node,nodeType=elem.nodeType,ret="";if(nodeType){if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==='string'){return elem.textContent;}else if(typeof elem.innerText==='string'){return elem.innerText.replac
1129: [15:18:03] <samthejarvis> Guest64885: have you written any jquery on the page?
1130: [15:18:24] <samthejarvis> that error tends to come up when you've got a malformed selector in $('')
1131: [15:18:36] <Guest64885> No again this a shiny new install. No templates, simple theme, no JS
1132: [15:19:04] <kinglozzer> Guest64885: How did you install? Download a zip or composer?
1133: [15:20:11] <Guest64885> Download zip and local and upload via FTP. Again, i have used this install many many time (as soon as this morning...!) and no errors , but on a different server.
1134: [15:20:57] <Guest64885> Could it be that the SS312 site runs into a folder running SS306? Each uses separate DB
1135: [15:24:30] <Guest64885> Guys?
1136: [15:25:05] <svandragt> 2 gists and now a SublimeText package pull request I'm productive today.
1137: [15:25:23] <willmorgan> Guest10374: if you're using Safari you should still have a network tab on your dev tools
1138: [15:25:34] * OxFF1 has joined #silverstripe
1139: [15:25:42] <willmorgan> so if you could let me know what's there and if there are any 404s, then I can continue helping
1140: [15:26:46] <Guest64885> Safari is quite the same as Chrome when under Developer Mode. Which i am. It shows no error, either in the console. Just that JS error. I am trying in Chrome now.
1141: [15:26:55] <willmorgan> so, no missing files?
1142: [15:28:25] <Guest64885> will ¬. nothing shows in Chrome Network tabs.
1143: [15:28:57] <Guest64885> And Chrome shows the same error in lib.js
1144: [15:29:18] <willmorgan> that's pretty weird
1145: [15:29:24] <willmorgan> can you link me to your environment, either here or in PM?
1146: [15:29:51] <Guest64885> Permissions are set to 644 on the three js files in assets combined, right?
1147: [15:30:26] <Guest64885> will > mail ma at farleydw @ videotron . ca i am here now for an hour or so.
1148: [15:30:37] <willmorgan> that's fine. I asked those questions because I wondered whether you were running in live mode, and the asset combiner was unable to write the combined files. however, it was able to
1149: [15:30:46] <willmorgan> no, PM me on IRC, Guest10374
1150: [15:31:22] <Pyromanik> Guest64885: what is error?
1151: [15:31:30] <Pyromanik> you have white screen of death?
1152: [15:32:25] * catcher has joined #silverstripe
1153: [15:33:09] * kk quit (Ping timeout: 245 seconds)
1154: [15:34:56] <kinglozzer> Anyone have Win 8 running in VMWare who can share their settings? It hammers the shit out of my Mac, it's unusable :(
1155: [15:35:53] <willmorgan> VirtualBox!
1156: [15:36:02] <willmorgan> (are you using vagrant?)
1157: [15:37:01] <kinglozzer> willmorgan: I tried it briefly, haven't had time for anything new lately :(
1158: [15:38:07] <Guest64885> Hi Pyro, no. Just the three dots blanking.
1159: [15:38:14] <Guest64885> Wil how do i mail on irc???
1160: [15:39:55] <Guest64885> Will => just replied to your poke.
1161: [15:46:25] <Pyromanik> lol
1162: [15:46:40] <Pyromanik> poke
1163: [15:46:49] <Pyromanik> wtf lol, someone uses too much msn messenger?
1164: [15:46:55] <willmorgan> ...no
1165: [15:49:34] <kinglozzer> Fucking Windows...
1166: [15:49:58] <kinglozzer> Trying to update to 8.1, error description: "Something happened"
1167: [15:50:03] <kinglozzer> That's literally what it says
1168: [15:50:06] <willmorgan> haha
1169: [15:50:07] <samthejarvis> hahaha
1170: [15:50:45] <willmorgan> hopefully Microsoft Ghandi brings some good stuff to Windows
1171: [15:51:01] <kinglozzer> It can't get much worse :P
1172: [15:52:17] * jcwacky quit (Quit: jcwacky)
1173: [15:59:41] <Pyromanik> kinglozzer: famous last words.
1174: [16:00:02] <willmorgan> seriously, who devised the spec for this? http://uk3.php.net/manual/en/dateinterval.construct.php
1175: [16:03:14] <Pyromanik> willmorgan: http://www.youtube.com/watch?v=-5wpm-gesOY
1176: [16:04:23] * Shrike_Finland quit (Quit: Leaving.)
1177: [16:05:45] <willmorgan> ahh, Tom Scott
1178: [16:06:16] <svandragt> willmorgan: and that's why we're stuck with several dozen php date functions
1179: [16:10:04] <willmorgan> fun times
1180: [16:12:36] <micmania1> https://github.com/briannesbitt/Carbon - might be a little easier?
1181: [16:13:16] <samthejarvis> i can attest to carbon's greatness
1182: [16:14:00] * samthejarvis quit (Quit: Page closed)
1183: [16:15:10] * OxFF1 has left #silverstripe
1184: [16:18:06] * FrozenFire has joined #silverstripe
1185: [16:20:01] <willmorgan> I have a feeling that if SilverStripe 3.x in the future dropped 5.3 support, SS_Datetime would be a much nicer class ;)
1186: [16:28:10] * Guest64885 quit (Quit: Page closed)
1187: [16:32:09] <Pyromanik> Why's that?
1188: [16:34:11] <willmorgan> SS_Datetime could actually extend Datetime
1189: [16:34:18] <willmorgan> or at least use it as a trait of some sort
1190: [16:35:06] <svandragt> I think we should ask Brian Nesbitt to encapsulate the rest of PHP.
1191: [16:36:58] <Pyromanik> willmorgan: but why does that require dropping 5.3 support?
1192: [16:37:09] <Pyromanik> DateTime is a valid class in 5.3
1193: [16:37:16] <willmorgan> trait support
1194: [16:37:22] <Pyromanik> hence it being SS_Datetime in the first place
1195: [16:37:27] <willmorgan> trait support
1196: [16:37:34] <Pyromanik> willmorgan: yeah, but that's not at all necessary for extending datetime
1197: [16:37:35] <svandragt> got fail
1198: [16:37:38] <svandragt> goto fail
1199: [16:37:53] <willmorgan> SS_Datetime is a DB type
1200: [16:37:59] <willmorgan> I wouldn't want to break that
1201: [16:38:02] <Pyromanik> true.
1202: [16:38:11] <willmorgan> but look at the class
1203: [16:38:12] <Pyromanik> fair comment
1204: [16:38:15] <willmorgan> it's reinventing a lot of the wheel
1205: [16:38:28] <Pyromanik> traits all the things!
1206: [16:38:37] <willmorgan> though really, after reading Carbon's API, I have a massive hardon for Bryan Nesbitt
1207: [16:38:59] <willmorgan> so yeah, making it use Carbon would be nice
1208: [16:54:49] * OxFF1 has joined #silverstripe
1209: [16:57:16] * OxFF1 has left #silverstripe
1210: [17:02:12] * stripee has joined #silverstripe
1211: [17:06:21] * stripee_ has joined #silverstripe
1212: [17:06:27] <stripee_> the proper url is not being fetched....how can i solve this issue? i have a web page ...there are some pics on that...but on clicking different pics also onli one particular page gets opened
1213: [17:06:28] * stripee quit (Ping timeout: 245 seconds)
1214: [17:08:36] * kinglozzer quit ()
1215: [17:11:20] <stripee_> is there anyone to help me out?
1216: [17:24:10] <Pyromanik> stripee_: please, learn to debug.
1217: [17:24:19] <Pyromanik> read your template, you probably have a scope issue.
1218: [17:24:40] <Pyromanik> google 'code scope' to find out what that means if you don't know. It's home time here.
1219: [17:24:45] <Pyromanik> good luck :)
1220: [17:24:50] * Pyromanik quit (Quit: Page closed)
1221: [17:30:02] * stripee_ quit (Quit: Page closed)
1222: [17:31:53] <PigeonFriend> how does one filter a DataList using "or"s?
1223: [17:32:16] * r3v3rb has joined #silverstripe
1224: [17:32:42] <PigeonFriend> Field1 = "value" OR Field2 = "value" OR Field3 = "value"
1225: [17:33:29] * k_fish has joined #silverstripe
1226: [17:35:14] <willmorgan> PigeonFriend: filterAny
1227: [17:35:52] <PigeonFriend> ofc
1228: [17:36:09] <willmorgan> does computer say yes?
1229: [17:38:27] <PigeonFriend> yes
1230: [18:06:52] * Motoservo_ has joined #silverstripe
1231: [18:07:37] * Motoservo quit (Read error: Connection reset by peer)
1232: [18:07:37] * Motoservo_ is now known as Motoservo
1233: [18:12:13] * ss23_ has joined #silverstripe
1234: [18:12:14] * OxFF1 has joined #silverstripe
1235: [18:20:38] * micmania1 has joined #silverstripe
1236: [18:20:43] * geekdenz1 quit (Excess Flood)
1237: [18:20:43] * willmorgan quit (Ping timeout: 244 seconds)
1238: [18:21:04] * geekdenz has joined #silverstripe
1239: [18:22:54] * ss23 quit (Remote host closed the connection)
1240: [18:24:14] * PigeonFriend quit ()
1241: [18:26:40] <r3v3rb> where is everyone
1242: [18:39:55] <catcher> right here
1243: [18:51:40] * chillu_23 has joined #silverstripe
1244: [18:54:04] * antmas has joined #silverstripe
1245: [18:54:28] <antmas> morning all
1246: [18:54:41] <simon_w|air> If you say so
1247: [18:57:26] <antmas> anyone here have their domains registered with an ISP?
1248: [18:59:31] <simon_w|air> Only because they bought the registrar and it costs to move non .nz domains
1249: [18:59:52] * gelignite has joined #silverstripe
1250: [19:00:38] <antmas> simon_w|air: hmmm, I've moved mine to snap
1251: [19:00:46] <antmas> mostly because it's free :D
1252: [19:01:01] * Raymondo quit (Ping timeout: 244 seconds)
1253: [19:01:20] <antmas> simon_w|air: can you think of any reasons why one wouldn't just use their ISP? or the ISP of a client?
1254: [19:02:14] * BPower has joined #silverstripe
1255: [19:02:35] <simon_w|air> antmas, it's not their main business (or even related to it), it's another thing you have to remember to move when you change ISP
1256: [19:02:49] <BPower> OK - I posted this yesterday with no response, so I figured I'd try once more. This one's a little more advanced: A particular page type must ALWAYS have at least one child page. So, when this page is created, "onBeforeWrite" or "onAfterWrite" will automatically create a child page with default scaffolding. This all works fine and dandy but the CMS sitetree list does not update to include the newly created child page. Any ideas?
1257: [19:03:01] <antmas> simon_w|air: fiar enough
1258: [19:03:04] <antmas> fair*
1259: [19:03:28] * derek-b has joined #silverstripe
1260: [19:03:44] * NobrainerWeb has joined #silverstripe
1261: [19:03:45] * Raymondo has joined #silverstripe
1262: [19:03:51] * chillu_23 quit (Quit: chillu_23)
1263: [19:05:07] <NobrainerWeb> Mannnnn, just wasted hours trying to figure out why some ajax was not working, turned out that Firefox only submits the value from a checkbox, when i clicked on the checkbox - not the label. No problem in safari
1264: [19:05:56] <antmas> NobrainerWeb: what about other browsers?
1265: [19:06:07] <NobrainerWeb> Safari is ok
1266: [19:06:09] <simon_w|air> Mac users: go install 10.9.2
1267: [19:06:28] <NobrainerWeb> i think i will try to use the same query version now
1268: [19:06:37] <NobrainerWeb> this is just to fucking weird
1269: [19:06:48] <antmas> simon_w|air: security fix?
1270: [19:06:56] <simon_w|air> antmas, yes
1271: [19:07:21] <NobrainerWeb> what's up simon, i'm on 10.9.1
1272: [19:07:38] <simon_w|air> NobrainerWeb, 10.9.2 lets SSL work again
1273: [19:08:43] <NobrainerWeb> Download startet :-)
1274: [19:10:14] <antmas> NobrainerWeb: IE, Chrome?
1275: [19:11:54] * simon_w|air quit (Quit: Leaving)
1276: [19:12:02] * chillu_23 has joined #silverstripe
1277: [19:13:10] <NobrainerWeb> hmm the plot thickens, also does not work in Chrome (now on same jQuery as my other working project)
1278: [19:13:45] <NobrainerWeb> On this page, clicking a checkbox filters the results with ajax just fine: http://www.sociale-rettigheder.dk/behandlingsnetvaerk/
1279: [19:14:23] <NobrainerWeb> her http://blueknights.dk.linux24.unoeuro-server.com/gallery-filter/ it's not working as intended, and in FF works if i click directly on the input
1280: [19:15:13] <antmas> what crazy language is that?
1281: [19:15:18] <antmas> dutch?
1282: [19:15:29] <antmas> or is .dk denmark?
1283: [19:16:24] <NobrainerWeb> dk is denmark yes
1284: [19:16:27] <NobrainerWeb> :-)
1285: [19:20:02] * Stevie has joined #silverstripe
1286: [19:24:46] <BPower> simon_w, FrozenFire - any ideas on my problem? :) The SiteTree does update after hard-refreshing the CMS, but after clicking "Save"
1287: [19:26:19] * r3v3rb quit (Quit: r3v3rb)
1288: [19:29:59] * SightUnseen has joined #silverstripe
1289: [19:38:35] * zippy___ has joined #silverstripe
1290: [19:45:00] * SightUnseen quit (Quit: Leaving.)
1291: [19:46:46] * Ryan-Toast has joined #silverstripe
1292: [19:47:19] <zippy___> osx 10.9.2 is out, better upgrade to fix the SSL vul.
1293: [19:47:21] * camfindlay has joined #silverstripe
1294: [19:53:09] <Ryan-Toast> Anyone know if it's possible to set a session variable based on location? i.e NZ, Australia, US etc?
1295: [19:55:31] * NobrainerWeb quit (Quit: NobrainerWeb)
1296: [19:55:56] <zippy___> I think there was a module used for IP detection, https://github.com/silverstripe-labs/silverstripe-geoip looks like that is 2.4 (there is a pull request) and from that you could get the country to set session
1297: [19:58:47] <Ryan-Toast> zippy___: awesome, cheers :)
1298: [19:59:02] <Ryan-Toast> man, it's like willr writes every single module.
1299: [20:01:53] * Liquide has joined #silverstripe
1300: [20:01:58] * UncleCheese has joined #silverstripe
1301: [20:02:52] * r3v3rb has joined #silverstripe
1302: [20:03:46] <BPower> OK -- simpler question... How does one include two dropdown items in a Field with the same value, but different titles?
1303: [20:03:48] * SightUnseen has joined #silverstripe
1304: [20:06:14] <simon_w> You can't
1305: [20:07:57] <Ryan-Toast> BPower: You name the title "Thing one / Thing two"
1306: [20:08:14] <zippy___> If the selects have two different names, you should be fine
1307: [20:08:15] <BPower> :(
1308: [20:08:46] <BPower> zippy___: but you have to pass an array("value" => "thing one", "value" => "thing two")
1309: [20:08:54] <BPower> thing two will override thing one
1310: [20:09:16] <zippy___> right so two items in the same drop field..
1311: [20:09:26] * cmd276 has joined #silverstripe
1312: [20:09:27] <BPower> simon_w, Ryan-Toast - too bad you can't do array("value" => array("thing one", "thing two"))
1313: [20:09:54] <zippy___> why not…. "value" => "thing one/two" so it's just one item :)
1314: [20:10:20] <BPower> zippy___: it's too long
1315: [20:10:33] <Ryan-Toast> BPower: what's the susecase?
1316: [20:10:37] <BPower> and doesn't follow the proper nomenclature
1317: [20:10:45] * chillu_23 quit (Quit: chillu_23)
1318: [20:10:58] <BPower> timezone => Business offices (addresses)
1319: [20:13:12] <Ryan-Toast> BPower: Timezone many_many addresses maybe?
1320: [20:14:37] <BPower> That's a possible solution, but it'll add unnecessary load to the db & server.
1321: [20:15:13] * NobrainerWeb has joined #silverstripe
1322: [20:15:14] <simon_w> BPower, even if you could have multiple options with the same value, which one gets selected when you set the value of the drop down to that value?
1323: [20:15:29] <BPower> simon_w: good point.
1324: [20:16:48] <zippy___> Change the dropfield to be 1 => xxx, 2 => bbbb, 3 => cccc which are all unique etc, and then on submit, you check with an array, what 1 is. so your array (static on the model or something) is like $timezone => array(1 => '+3 hours', 2 => '+4 hours') whatever
1325: [20:17:48] * SightUnseen has left #silverstripe
1326: [20:18:02] <zippy___> but the DB, is probably a better way to go
1327: [20:18:35] * NobrainerWeb quit (Client Quit)
1328: [20:25:28] * chillu_23 has joined #silverstripe
1329: [20:26:41] * NobrainerWeb has joined #silverstripe
1330: [20:29:51] * wilson-staff has joined #silverstripe
1331: [20:30:04] * NobrainerWeb quit (Client Quit)
1332: [20:32:10] <wilson-staff> Me again. I have a JS error saying SCRIPT5022: Syntax error, unrecognized expression: lib.js?m=1393353618, Ligne 275 Caractère 45
1333: [20:32:40] <wilson-staff> SS3.1.2 php 5.3.26 (same on PHP 5.4) no error on another server.
1334: [20:34:02] <BPower> wilson-staff: when? where? doing what?
1335: [20:34:20] * camfindlay quit (Ping timeout: 246 seconds)
1336: [20:34:48] * camfindlay has joined #silverstripe
1337: [20:34:54] <BPower> zippy___: the DB is a cleaner way to go, but not better in terms of application performance
1338: [20:36:14] <BPower> I may use the onBeforeWrite idea, though.
1339: [20:37:47] * joelpittet has joined #silverstripe
1340: [20:38:45] <simon_w> BPower, SilverStripe isn't good in terms of application performance :p
1341: [20:40:45] <BPower> simon_w: ...that's true. when is that going to be doubled down on? we might be willing to send some $$ to help with that.
1342: [20:41:49] <antmas> BPower: when it stops being PHP :P
1343: [20:42:01] <simon_w> PHP's not the problem
1344: [20:42:07] <BPower> ya
1345: [20:42:10] <antmas> I jest
1346: [20:42:15] <simon_w> The craptonne of objects doesn't help that much though
1347: [20:42:16] <BPower> I joust
1348: [20:42:23] <simon_w> Is why HHVM gives such a massive speedup
1349: [20:42:27] <antmas> and the level of Javascript
1350: [20:42:50] <simon_w> Oh, I'm ignoring the CMS. That's just a bucket of hurt.
1351: [20:43:17] <BPower> If the server could respond faster, you probably wouldn't notice much of the JS issues in the CMS.
1352: [20:44:58] <antmas> how exactly do you run SS using HHVM?
1353: [20:45:08] <simon_w> Also, https://github.com/silverstripe/silverstripe-framework/pull/2736 would help
1354: [20:45:45] <simon_w> The same way you run it with Nginix + php-fpm
1355: [20:45:53] <antmas> ah
1356: [20:45:59] <antmas> I'd like to try it at some point
1357: [20:50:01] * UncleCheese__ has joined #silverstripe
1358: [20:50:37] * micmania1 has joined #silverstripe
1359: [20:52:03] <wilson-staff> @BPOWER - this error appears when i try to add a pâge in the CMS. Plain simple theme, no extra JS files, no custom templates.
1360: [20:53:57] <BPower> simon_w: If you wanted to dramatically increase performance of SS running on flat LAMP stack, would you go HHVM or Nginx?
1361: [20:54:03] <BPower> (or is it possible to do both?)
1362: [20:54:39] <zippy___> BPower: can you agressivly cache the pages, like static caching?
1363: [20:54:55] <BPower> zippy___: We're already using partial caching
1364: [20:55:10] <zippy___> BPower: can you use static caching?
1365: [20:55:12] <BPower> wilson-staff: Is this happening on your local server?
1366: [20:55:16] <BPower> zippy___: nope.
1367: [20:55:41] <zippy___> BPower: what is taking the longest, time till first byte, or page load (with all assets)
1368: [20:55:43] <BPower> wilson-staff: or did you upload it via FTP to your server?
1369: [20:56:16] <zippy___> BPower: by longest I mean, where is it slow
1370: [20:56:25] <wilson-staff> @bpower = yes
1371: [20:56:31] <BPower> zippy___: 1st byte
1372: [20:56:41] <wilson-staff> Sorry wasnt yes by FTP
1373: [20:57:14] <wilson-staff> BPower -. i poked you
1374: [20:57:36] * NobrainerWeb has joined #silverstripe
1375: [20:57:47] <zippy___> BPower: How long is it taking SS to render the page from start of request to end (so exclude the connection time etc)
1376: [20:58:16] <BPower> wilson-staff: I'd first check to make sure your SS files are correct and uploaded with the right encoding (ASCII not binary, if you're using FTP)
1377: [20:58:47] <BPower> zippy___: http://marketo.com/resources/
1378: [20:59:09] <BPower> wilson-staff: zippy___: simon_w: Gotta go run an interview. Be back shortly.
1379: [20:59:28] <wilson-staff> As i said, ive used the exact same package this morning opn another server - no problem. I can run SS3.0.6 with no issues, but not SS3.1.2 on this particular server
1380: [21:00:15] <zippy___> BPower: With the caching you have on, how many queries are you still doing, you checked the indexs on them etc?
1381: [21:00:43] <BPower> wilson-staff: Turn off Google Pagespeed module
1382: [21:00:52] <BPower> Be back soon
1383: [21:04:47] <Ryan-Toast> Ugh, I hate the new IE debugger.
1384: [21:05:36] <wilson-staff> Google Pagespeed module???
1385: [21:05:38] * BPower quit (Ping timeout: 264 seconds)
1386: [21:05:42] <antmas> Ryan-Toast: ie11?
1387: [21:05:46] <Ryan-Toast> antmas: ye
1388: [21:05:59] <antmas> the ie9 one is really good I think
1389: [21:06:04] <antmas> (the one I use)
1390: [21:06:18] <Ryan-Toast> ie9 is fine, ie11 one is all over the fucking place
1391: [21:06:29] <antmas> what about 10?
1392: [21:06:29] * SightUnseen has joined #silverstripe
1393: [21:06:43] <Ryan-Toast> shrug
1394: [21:06:47] <Ryan-Toast> don't have ten.
1395: [21:07:01] * SightUnseen has left #silverstripe
1396: [21:07:05] <antmas> I use Fiddler a bit too
1397: [21:07:12] <antmas> especially for IE crap
1398: [21:08:38] * Liquide quit ()
1399: [21:09:10] <antmas> woah, fiddler is up to 4 now, I'm only using 2.0 o.O
1400: [21:10:50] <simon_w> Gah, so close
1401: [21:10:50] * SphereSilverNL has joined #silverstripe
1402: [21:10:51] * UncleCheese__ quit (Quit: UncleCheese__)
1403: [21:12:04] <wilson-staff> BPower => Google Pagespeed module as a SS module?
1404: [21:12:17] <SphereSilverNL> Any Dutch people here?
1405: [21:13:25] <antmas> Ryan-Toast: any thoughts on Edge Reflow? (adobe)
1406: [21:13:54] <Ryan-Toast> pointless
1407: [21:14:04] <antmas> yeah I don't really get it
1408: [21:14:15] * NobrainerWeb quit (Quit: NobrainerWeb)
1409: [21:14:49] * UncleCheese__ has joined #silverstripe
1410: [21:14:49] <Ryan-Toast> The dreamweaver of responsive markup.
1411: [21:16:50] <Ryan-Toast> The fucking emulation doesn't work sdfkljhgsdkfjbhsdkfhjbskfhjb
1412: [21:16:55] <antmas> Ryan-Toast: what are your go-to tools / toolset?
1413: [21:17:08] <Ryan-Toast> antmas: I don't use any.
1414: [21:17:16] <Ryan-Toast> ebesides bootstrap
1415: [21:17:23] <Ryan-Toast> twitter bootstrap that is
1416: [21:17:54] <antmas> yeah, I want to learn bootstrap more
1417: [21:18:32] <Ryan-Toast> <!--[if lt IE 9]> doesn't fucking work in IE11s emulation... what's the point in even having it?
1418: [21:18:52] <SphereSilverNL> IE11 and up doesn't support the if-IE tag anymore.
1419: [21:19:03] <SphereSilverNL> They should be ignored....
1420: [21:19:13] <SphereSilverNL> Are you sure you're not in compatibility mode?
1421: [21:19:38] <Ryan-Toast> SphereSilverNL: Yes, but if you're using emulation mode to simulate an ie8 browser you would like it to parse those tags.
1422: [21:19:49] <Ryan-Toast> since that's the point in emulation.
1423: [21:20:39] * BPower has joined #silverstripe
1424: [21:20:54] <SphereSilverNL> Yeah, but you're missing one step in emulation.... There is no browser that behaves like IE8, like IE8.
1425: [21:21:09] <SphereSilverNL> Get an XP box and make the most of it.
1426: [21:21:28] <SphereSilverNL> Trusting the emulation will only give you more trouble when the customer starts testing in IE8
1427: [21:21:35] <Ryan-Toast> SphereSilverNL: it was never 100%, but it was good enough for site breaking bugs usually.
1428: [21:22:10] <SphereSilverNL> I prefer the real thing. If you can't have a box, try IETester
1429: [21:22:22] <Ryan-Toast> I have a box, just annoying.
1430: [21:23:41] <micmania1> not tried browserstack?
1431: [21:25:08] * UndefinedOffset quit (Quit: Leaving.)
1432: [21:25:44] <Ryan-Toast> micmania1: dbf loading local dev sites to a server to test them.
1433: [21:25:48] <Ryan-Toast> cbf**
1434: [21:26:02] * camfindlay quit (Quit: camfindlay)
1435: [21:26:11] * micmania2 has joined #silverstripe
1436: [21:26:30] <Ryan-Toast> also per month payments.
1437: [21:26:50] <Ryan-Toast> Would rather change our contracts to say that we only deal with the last 3 versions of IE
1438: [21:27:46] <micmania2> Ryan-Toast you can test locally
1439: [21:27:56] <Ryan-Toast> micmania2: Still quite expensive.
1440: [21:28:05] <Ryan-Toast> micmania2: but looks pretty good.
1441: [21:28:56] * micmania1 quit (Ping timeout: 247 seconds)
1442: [21:29:12] <micmania2> Bye micmania1 :(
1443: [21:29:29] <micmania2> we're trying to get work to buy it.
1444: [21:29:49] <Ryan-Toast> and now we play the waiting game: http://i.imgur.com/jxBrRIA.jpg
1445: [21:32:00] * UncleCheese quit (Quit: UncleCheese)
1446: [21:32:01] * UncleCheese__ is now known as UncleCheese
1447: [21:33:24] * an_Eskimo has joined #silverstripe
1448: [21:34:01] * joelpittet quit ()
1449: [21:35:55] * ss23_ is now known as ss23
1450: [21:37:33] * joelpittet has joined #silverstripe
1451: [21:37:51] <antmas> Ryan-Toast: mmmm dat Windows XP
1452: [21:38:13] <antmas> is IE Tester still junk?
1453: [21:38:20] <Ryan-Toast> yes.
1454: [21:38:33] <zippy___> antmas: I use www.browserstack.com
1455: [21:39:19] <antmas> zippy___: yeah I trialled that, seemed pretty good
1456: [21:39:38] <antmas> now I just use some of our many Server 2008 boxes
1457: [21:39:48] <simon_w> Yay, ring is ready to be picked up again :)
1458: [21:40:33] <antmas> simon_w: ring?
1459: [21:40:47] <simon_w> antmas, of the engagement type
1460: [21:40:51] * chillu_23 quit (Quit: chillu_23)
1461: [21:41:01] <antmas> simon_w: you're already engaged though right?
1462: [21:41:06] <simon_w> Yes
1463: [21:41:09] <r3v3rb> woot, tmhOauth got updated and I missed it - two sites lost their twitter feeds - OOPS
1464: [21:41:19] <antmas> simon_w: O.o, you did it without a ring?
1465: [21:41:25] <simon_w> antmas, no
1466: [21:41:33] <antmas> weird
1467: [21:41:38] <antmas> I don't get it
1468: [21:41:41] <simon_w> Needed to be resized
1469: [21:41:45] <antmas> oh
1470: [21:41:46] <antmas> right
1471: [21:41:47] <r3v3rb> antmas: maybe the ring needed ^^ that
1472: [21:42:00] <r3v3rb> hi simon_w antmas etc ;)
1473: [21:42:11] <antmas> hi r3v3rb
1474: [21:42:12] <r3v3rb> micmania2: blog is perfect ;)
1475: [21:42:17] <wilson-staff> Anynome experienced a JS error in lib,js when adding a page to the CMS?
1476: [21:42:32] <r3v3rb> client loves that fact that she only has to worry about the sectors
1477: [21:42:47] <micmania2> r3v3rb: good :)
1478: [21:43:05] <r3v3rb> heh, yeh sorry about the inane questions last night
1479: [21:43:06] * joelpittet quit ()
1480: [21:43:07] <antmas> simon_w: when I did it, I just stole one of her other rings
1481: [21:43:10] <antmas> :D
1482: [21:43:47] <micmania2> r3v3rb it was okay. It distracted me from wordpress shit
1483: [21:44:01] * r3v3rb barfs
1484: [21:44:30] <antmas> awesome, just completed a bunch of Sharepoint 2013 updates and then the service pack comes out the next day -_-
1485: [21:44:44] <r3v3rb> got the contact forms sorted today and styled so just the generic page templates to develop now and all set for the 17th March deployment date
1486: [21:45:10] <simon_w> antmas, stealing is bad! Also, she doesn't have any other rings :p
1487: [21:45:19] <r3v3rb> client hasn't had any work back from the copywriters yet so I am waaaaaaay ahead micmania2
1488: [21:46:09] <antmas> simon_w: lol I gave it back :D, I might get her another one though - with the ol' family diamon
1489: [21:46:14] <r3v3rb> anyone worked with CardSave payment gateway?
1490: [21:46:14] <antmas> diamond*
1491: [21:47:20] <zippy___> wilson-staff: no, but have you tried a different browser / chrome incognito window - maybe a plguin/extension is breaking something (only effects live sites perhaps??)
1492: [21:48:31] <antmas> simon_w: anyway, set a date?
1493: [21:50:02] * derek-b quit (Write error: Broken pipe)
1494: [21:50:17] <wilson-staff> @zippy yes i did every browser be it windows or mac returns the error
1495: [21:50:53] <simon_w> antmas, maybe
1496: [21:51:05] <r3v3rb> why do url_handlers act so hard to get
1497: [21:51:19] <r3v3rb> seems like they need a million dev/build to register
1498: [21:51:36] <wilson-staff> Funny thing is that if i ?flush=all the frozen page, i can see the added page in the SiteTree. But its very annoying.
1499: [21:51:44] <simon_w> r3v3rb, one flush
1500: [21:52:08] <r3v3rb> but sometimes they are like 'floaters' they just never seem to work first flush
1501: [21:53:34] <catcher> How can I make a partial cache file get created when it's loaded via ajax?
1502: [21:54:09] <r3v3rb> catcher: are you trying to make debugging insanely hard - cached files in ajax calls!
1503: [21:54:19] <catcher> yes!
1504: [21:54:34] <r3v3rb> lol - then I think you are going the right way about it
1505: [21:54:50] * BPower quit (Ping timeout: 264 seconds)
1506: [21:56:39] <catcher> I'm basically using ajax to get content using renderwith(), and the template being rendered happens to have a partial cache block.
1507: [21:57:00] <catcher> Seems to work fine once the block exists, but it's not being created by renderwith.
1508: [21:57:32] <r3v3rb> ewww. sounds messy
1509: [21:59:26] <catcher> Might be doable if I can figure out which viewer function creates the cacheblock.
1510: [22:03:59] <catcher> Oh hey, actually works just fine
1511: [22:04:29] <catcher> Seems like something below renderwith handles it. I just had an error in my key.
1512: [22:04:30] <SphereSilverNL> I am going to see if my bed still works. If I'm back within 5 minutes, either my bed is broken, or I needed another beer.
1513: [22:06:06] <r3v3rb> SphereSilverNL: don't suppose you use IntellIRC in PHPStorm do you?
1514: [22:06:07] * SphereSilverNL quit (Quit: bye)
1515: [22:06:22] <r3v3rb> something I said?
1516: [22:06:59] * BPower has joined #silverstripe
1517: [22:07:05] <guzzlefry> There's an IRC plugin for PHPStorm?
1518: [22:09:25] <r3v3rb> guzzlefry: appears so, but I cannot see how to access it once installed
1519: [22:10:05] <guzzlefry> r3v3rb: tools menu?
1520: [22:10:06] <guzzlefry> or
1521: [22:10:14] <guzzlefry> CTRL+SHIFT+A, then search for it
1522: [22:10:51] <r3v3rb> ok, I'll give it a try again
1523: [22:10:56] <Ryan-Toast> what does it do?
1524: [22:11:07] <wilson-staff> @BPower back with us?
1525: [22:12:01] <r3v3rb> guzzlefry: just goes to settings menu but no way to get a panel or setup iRC afaik
1526: [22:12:25] <wilson-staff> @BPower you were talking about Google PageSpeed. So i should ask the host provider? It doesnt show on phpinfo()
1527: [22:12:32] * chillu_23 has joined #silverstripe
1528: [22:13:14] <r3v3rb> very strange - I wonder if its a 'stub' plugin
1529: [22:13:16] * camfindlay has joined #silverstripe
1530: [22:13:25] <r3v3rb> no function - yet the read me say its all there
1531: [22:13:40] <r3v3rb> or its for a previous version of PHPStorm :(
1532: [22:13:46] * Colin[pi] has joined #silverstripe
1533: [22:13:54] * r3v3rb = twat
1534: [22:14:06] <r3v3rb> lol - plugin is for IntelliJ IDEA
1535: [22:14:09] <r3v3rb> muhahahaaaa
1536: [22:14:32] <r3v3rb> forgive me
1537: [22:14:35] <Colin[pi]> hai everybody
1538: [22:14:42] <r3v3rb> Colin[pi]: HAI!
1539: [22:14:49] <wilson-staff> Question to everybody. New to IRD - How do you quit IRC :-)
1540: [22:15:42] <Colin[pi]> type /quit <enter>
1541: [22:15:43] <antmas> wilson-staff: IRD or IRC? I wish I could quit IRD lol
1542: [22:15:44] <Ryan-Toast> delete your system32 folder
1543: [22:16:06] <r3v3rb> Ryan-Toast: :\
1544: [22:16:22] <Ryan-Toast> r3v3rb: ;)
1545: [22:16:30] <r3v3rb> muhahahaa
1546: [22:22:34] <Colin[pi]> no wonder I'm stressed, I have 18 tasks I'm currently juggling
1547: [22:22:36] <Colin[pi]> :\
1548: [22:22:42] * Nimle has joined #silverstripe
1549: [22:22:44] <Colin[pi]> some big, some small
1550: [22:23:26] <ss23> ALMOST 19!
1551: [22:23:26] <ss23> :D
1552: [22:23:37] <ss23> And here I am just listening to music and drinking coke ^.^
1553: [22:23:43] <Colin[pi]> and writing docs
1554: [22:23:45] <Colin[pi]> rite?
1555: [22:23:46] <ss23> Ouch!
1556: [22:23:47] <Colin[pi]> rite?
1557: [22:23:48] * UncleCheese__ has joined #silverstripe
1558: [22:24:21] <ss23> never.
1559: [22:24:59] <Nimle> Hi, just a simple question :) write() function updates if ID exists and inserts if not. Is there an easy way to overwrite so that it updates on duplicate of another column rather than ID? As there are many columns, checking if exists slows the process.
1560: [22:25:46] <wilson-staff> @UncleCheese => ever experienced a JS error in lib,js when adding a page to the CMS? SS3.1.2 PHP5.3.2+ or PHP5.4 same
1561: [22:26:08] <UncleCheese> i'm sure i have
1562: [22:26:15] <UncleCheese> that's pretty vague
1563: [22:26:32] <UncleCheese> what is the error exactly?
1564: [22:27:19] <BPower> wilson-staff: yes
1565: [22:28:50] * wilson-staff_ has joined #silverstripe
1566: [22:28:53] <antmas> ss23: he lives!
1567: [22:29:01] <antmas> also, Colin[pi] I know I say this a lot
1568: [22:29:03] <antmas> Colin[pi]: but
1569: [22:29:09] <antmas> Colin[pi]: OMG HAI
1570: [22:29:18] <wilson-staff_> Sorry for the delay. Error SCRIPT5022: Syntax error, unrecognized expression: is lib.js?m=1393353618, Ligne 275 Caractère 45
1571: [22:29:23] <r3v3rb> grrr, popCurrent called on …
1572: [22:29:36] <Colin[pi]> HAI ANTMAS
1573: [22:29:51] <wilson-staff_> @BPower and @UncleCheese - sorry ive quit by error
1574: [22:30:02] <r3v3rb> Colin[pi]: I was only discussing the doc's earlier today
1575: [22:30:17] <ss23> I LIVE
1576: [22:30:18] <ss23> :D
1577: [22:30:21] <ss23> I'm even at work again
1578: [22:30:33] <Colin[pi]> r3v3rb: yeah ss23 needs to listen to less music, drink less coke and write more docs
1579: [22:31:01] <r3v3rb> ;)
1580: [22:31:05] <antmas> is coke not bad for le DIABEETUS?
1581: [22:31:16] <r3v3rb> bad for teef
1582: [22:31:47] <Colin[pi]> I have diet coke so it's like brown caffeinated water
1583: [22:32:07] <ss23> NEVER
1584: [22:32:13] <ss23> antmas: Naw, not worse than it is for normal people
1585: [22:32:19] <Colin[pi]> but honestly I don't drink much soft drink
1586: [22:32:29] <ss23> antmas: I'm type 1 remember
1587: [22:32:30] <ss23> :O
1588: [22:32:33] <Colin[pi]> I have coffee, juice and cordial
1589: [22:32:35] <Colin[pi]> dat cordial
1590: [22:32:52] <antmas> ss23: oh yeah
1591: [22:33:02] <antmas> Colin[pi]: cordial
1592: [22:33:05] <r3v3rb> arhhh, why when calling my url_handler fo I get popCurrent the method is in my allowed_actions too
1593: [22:33:09] <antmas> what are you? lke 7?
1594: [22:33:11] <antmas> like*
1595: [22:33:14] <ss23> XD
1596: [22:33:14] <Colin[pi]> antmas: yes
1597: [22:33:17] <ss23> Yeah, drink beer!
1598: [22:33:22] <antmas> haha
1599: [22:33:25] <Colin[pi]> NU UH
1600: [22:33:31] <Colin[pi]> I drink whiskey more
1601: [22:33:37] <antmas> I should drink less beer
1602: [22:33:40] <antmas> and more whiskey
1603: [22:33:49] <Colin[pi]> actually lately I've been having the christmas tree drink
1604: [22:33:54] <Colin[pi]> G+T
1605: [22:34:11] <Colin[pi]> so refreshing ^_^
1606: [22:34:24] <antmas> G&Ts are awesome
1607: [22:34:31] <antmas> fresh lemon
1608: [22:34:43] <Colin[pi]> some people hate them, the juniper
1609: [22:34:44] <Colin[pi]> I like it
1610: [22:35:12] * gelignite quit (Quit: http://bit.ly/nkczDT)
1611: [22:35:13] * camfindlay quit (Quit: camfindlay)
1612: [22:35:22] <Colin[pi]> plus the quinine helps with leg cramps which I inherited from my father (gee thanks)
1613: [22:35:22] <wilson-staff_> @BPower still there?
1614: [22:35:47] <Ryan-Toast> God damn this is an excellent mashup: http://www.youtube.com/watch?v=oT3mCybbhf0
1615: [22:36:02] <wilson-staff_> My host provider hasnt have a clue about whats happening.
1616: [22:36:07] <antmas> Colin[pi]: yeah I like juniper
1617: [22:36:47] <Colin[pi]> Ryan-Toast: I like this remix: https://www.youtube.com/watch?v=G5KxZ5Lc_YA
1618: [22:37:10] <Colin[pi]> it's so wrong, but hilarious
1619: [22:37:17] <Ryan-Toast> Colin[pi] I think that's the top of /r/mashups all time, haha
1620: [22:37:29] <BPower> wilson-staff: SilverStripe does not work with Google Pagespeed. Add this to your htaccess file: https://gist.github.com/nathanbrauer/9219451
1621: [22:37:59] <antmas> I've been enjoying Canadian Club actually
1622: [22:38:12] <Ryan-Toast> Colin[pi]: https://soundcloud.com/tdrloid/under-the-booty
1623: [22:38:17] <Colin[pi]> Ryan-Toast: love this one too: https://www.youtube.com/watch?v=HU2ftCitvyQ
1624: [22:38:50] <Ryan-Toast> Colin[pi]: Heh, that;'s a good one. CAAATS: http://www.youtube.com/watch?v=ig0BrlJYK2I
1625: [22:39:20] <antmas> http://www.youtube.com/watch?v=lgWgEoaAYDY
1626: [22:39:28] <Colin[pi]> ALL THE YOUTUBES
1627: [22:39:28] <wilson-staff_> @BPower - how to know if PageSpeed is used? Host Provider is silent about that.
1628: [22:40:04] <Colin[pi]> this other kirk one cracks me up too: https://www.youtube.com/watch?v=uQ3c8_ZTNrg
1629: [22:40:08] <Ryan-Toast> antmas: wat.the.fuck
1630: [22:40:14] <antmas> Ryan-Toast: :D
1631: [22:40:31] <antmas> Ryan-Toast: welcome to the hood
1632: [22:40:39] <Ryan-Toast> antmas: It hurts my ears.
1633: [22:41:12] <BPower> wilson-staff: look for .pagespeed. appearing in your HTML.
1634: [22:41:24] <wilson-staff_> In the source code?
1635: [22:41:34] <UncleCheese__> antmas: lemon in a G&T?
1636: [22:41:42] <UncleCheese__> sacrilege!
1637: [22:42:08] <antmas> UncleCheese__: WHAT?!
1638: [22:42:12] * r3v3rb quit (Quit: r3v3rb)
1639: [22:42:15] <UncleCheese__> lime
1640: [22:42:26] <UncleCheese__> tonic always gets a lime. always
1641: [22:42:27] <antmas> UncleCheese__: or that yeah
1642: [22:42:35] <antmas> I prefer lemon :D
1643: [22:42:39] <UncleCheese__> and rim the glass
1644: [22:42:40] * Colin[pi] slaps antmas
1645: [22:42:49] * antmas rubs cheeck
1646: [22:42:55] <antmas> ;__;
1647: [22:43:08] <BPower> wilson-staff: in the generated source code.
1648: [22:43:19] <Colin[pi]> I don't put either, just ice G&T
1649: [22:43:36] <wilson-staff_> @BPower => the page source viewed from SHOW SOURCE in IE isnt showing .pagespeed.
1650: [22:43:54] <BPower> ok - then it's a different issue.
1651: [22:44:11] <BPower> Have you verified that all your SS core files have not been corrupted?
1652: [22:44:33] * r3v3rb has joined #silverstripe
1653: [22:44:57] <antmas> Colin[pi]: yeah I do that more often than lemon
1654: [22:45:00] <ss23> o.o
1655: [22:45:00] <antmas> or lime
1656: [22:45:05] <ss23> Composer just spat out a bunch of PHP source at me
1657: [22:45:10] <Colin[pi]> antmas: have you tried a caipirinha?
1658: [22:45:17] <antmas> ss23: all over your face?
1659: [22:45:24] <wilson-staff_> @BPower =. well i am about to redonsload from SS site and re-ftp and re-installl
1660: [22:45:50] <antmas> Colin[pi]: nope, closest thing to that name I've tried is a cubalibra (spelling)
1661: [22:45:51] <antmas> lol
1662: [22:46:08] <Colin[pi]> brazilian cocktail, so awesome: http://imgur.com/vYx5h1T
1663: [22:46:08] <wilson-staff_> Maybe an error occured when i uploaded the installation package. BTW there s always a file not FTPing
1664: [22:46:12] <antmas> wilson-staff_: REDONSLOAD! XD
1665: [22:46:28] <antmas> Colin[pi]: what's in it?
1666: [22:46:33] <wilson-staff_> @antmas ?????
1667: [22:46:49] <antmas> wilson-staff_: nevermind :P
1668: [22:46:51] <Colin[pi]> crushed lime, sugar, ice to the brim, and then straight cachaça
1669: [22:46:58] <Colin[pi]> (brazilian sugar cane rum)
1670: [22:47:02] <ss23> all over my face, antmas
1671: [22:47:03] <antmas> mmmm
1672: [22:47:04] <antmas> sounds good
1673: [22:47:08] <Colin[pi]> sooo good
1674: [22:47:30] <Colin[pi]> trouble is, bottles of cachaça here are $50, and $2.50 in brazil
1675: [22:47:32] <Colin[pi]> :(
1676: [22:47:45] <antmas> lol yeah I bet even more in nz
1677: [22:48:03] <Colin[pi]> and the stuff they sell for $50 here is like the shittiest brand
1678: [22:48:09] <BPower> wilson-staff: sorry i couldn't be more help :) I've gotta run now.
1679: [22:48:14] <BPower> Best of luck!
1680: [22:48:18] * BPower quit (Remote host closed the connection)
1681: [22:48:36] <wilson-staff_> @antmas and @collin - guys wouldnt it be less clutered if you were to discuss those drinks on a private channel????
1682: [22:48:41] <antmas> if it's going to be a G&T, it needs to be Bombay Sapphire
1683: [22:48:59] <antmas> wilson-staff_: probably
1684: [22:49:09] <Colin[pi]> wilson-staff_: yeah
1685: [22:49:15] <wilson-staff_> So why dont you do it ;-)
1686: [22:49:21] <Colin[pi]> yeah nah
1687: [22:49:32] <Colin[pi]> how is it people still get my name wrong when it's right there?
1688: [22:49:43] <antmas> wilson-staff_: are you going to run a fresh install?
1689: [22:49:49] <wilson-staff_> sorry Colin -
1690: [22:49:52] <Colin[pi]> like the number of times I get collin.. I've never seen a collin for first name in my life lol
1691: [22:50:12] * r3v3rb quit (Quit: r3v3rb)
1692: [22:50:14] <Colin[pi]> is ok, I'll shut up now ;P
1693: [22:50:17] <wilson-staff_> Maybe ive listen too much of Phil Collins......
1694: [22:50:46] <wilson-staff_> @ antmas - thats what i am gonna try tonight.
1695: [22:51:05] <antmas> wilson-staff_: probably your best bet at this stage (been following your issue)
1696: [22:51:13] <wilson-staff_> [quit wilson-staff]
1697: [22:51:24] * wilson-staff_ quit (Quit: Page closed)
1698: [22:51:41] <wilson-staff> @Uncle here is the error SCRIPT5022: Syntax error, unrecognized expression:
1699: [22:51:59] * wilson-staff quit (Quit: Page closed)
1700: [22:52:22] * antmas considers a private channel
1701: [22:52:28] * antmas says NOPE.
1702: [22:53:07] * UncleCheese quit (Quit: UncleCheese)
1703: [22:53:19] * UncleCheese__ is now known as UncleCheese
1704: [22:54:40] * nickmolhoek has joined #silverstripe
1705: [22:55:41] <Colin[pi]> if I want to make a custom 404 page with additional functionality, I extend ErrorPage, and then change the 404 error page to my extended class in the tree, yeah?
1706: [22:55:58] <antmas> Colin[pi]: yeah, pretty sure
1707: [22:55:59] * camfindlay has joined #silverstripe
1708: [22:56:09] <Colin[pi]> excellent, thought so
1709: [22:56:17] * Colin[pi] cracks knuckles and starts coding
1710: [22:58:51] <zippy___> Does composer work fine with SS, if you want to install modules?
1711: [22:59:04] <zippy___> wouldn't it put the things in the vendors folder?
1712: [23:17:01] * antmas quit (Quit: Page closed)
1713: [23:17:19] * antmas has joined #silverstripe
1714: [23:19:58] <Colin[pi]> hmm how do I get the current action from an init() method on a controller?
1715: [23:20:10] <Colin[pi]> $this->request doesn't seem to be populated yet
1716: [23:26:37] <Colin[pi]> ugh do I need to use $_REQUEST?
1717: [23:29:44] * Bollig|DesignCty has joined #silverstripe
1718: [23:33:22] * Bollig|DesignCty quit (Client Quit)
1719: [23:33:59] * Bollig|DesignCty has joined #silverstripe
1720: [23:37:15] <simon_w> zippy___, if the module has the right type (silverstripe-module), it gets installed correctly
1721: [23:39:37] * chillu_23 quit (Quit: chillu_23)
1722: [23:49:13] * catcher quit (Ping timeout: 272 seconds)
1723: [23:54:11] * camfindlay quit (Quit: camfindlay)
1724: [23:54:40] * chillu_23 has joined #silverstripe
1725: [23:57:27] * camfindlay has joined #silverstripe
1726: [23:58:34] <Colin[pi]> clients
1727: [23:58:49] * UncleCheese quit (Quit: UncleCheese)
1728: [23:58:49] <simon_w> people
1729: [23:58:54] <Colin[pi]> sends me an email "use this for the shopping cart so it can calculate freight"
1730: [23:59:08] <Colin[pi]> the attachment is a PDF with a series of bitmap maps/regions and prices
1731: [23:59:29] <Colin[pi]> yeah ok, I'll get it to OCR this on the fly

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