#silverstripe IRC Log

IRC log for 28 May 2013

All timestamps are in UTC.

1: [00:00:40] <Pyromanik> really? isn't it not wide enough?
2: [00:06:06] <simon_w> There's a lot less height than width available
3: [00:16:46] <Pyromanik> http://www.silverstripe.com/blog/get-mobile-with-silverstripe-the-jedi-challenge/
4: [00:16:58] <Pyromanik> good to see captchas working well
5: [00:17:00] <Pyromanik> :P
6: [00:17:06] <Pyromanik> simon_w: get bigger screens!
7: [00:17:41] <simon_w> Pyromanik, having to run on one until discrete graphics stops panicking :(
8: [00:18:25] <Colin[pi]> DAT SPAM
9: [00:25:29] <simon_w> Pyromanik, also, you almost always have more horizontal than vertical space on a screen
10: [00:26:38] <ss23> lol spam, Pyromanik
11: [00:26:56] <ss23> simon_w: tree tabs is nice too (tabs on the side)
12: [00:27:06] <ss23> Dunno if you can for Failfari though
13: [00:27:07] <ss23> Safari*
14: [00:33:15] <simon_w> Eh, tabs aren't anywhere near as big a hog as the inspector
15: [00:34:17] <ss23> Chrome master race on Windows works well where they are anyway
16: [00:34:32] <ss23> But yeah, horozontil for inspector seems nice
17: [00:35:47] <simon_w> oh man, this inspector keeps getting better. I can now use the console inside an iframe
18: [00:37:50] * robert_ has joined #silverstripe
19: [00:37:51] * robert_ quit (Changing host)
20: [00:37:51] * robert_ has joined #silverstripe
21: [00:45:52] <Colin[pi]> I keep mine on the second monitor, fix it simon_w!
22: [00:46:57] <ss23> ^^^
23: [00:46:58] <ss23> 5 monitrors best
24: [00:49:07] <simon_w> Colin[pi], "[12:17:26] <simon_w> Pyromanik, having to run on one until discrete graphics stops panicking :("
25: [00:54:45] <Colin[pi]> simon_w, "<Colin[pi]> ... fix it simon_w!"
26: [00:55:00] <simon_w> I have a second monitor!
27: [00:55:11] <Colin[pi]> fix it simon_w
28: [00:55:11] <Colin[pi]> fix it simon_w
29: [00:55:12] <Colin[pi]> fix it simon_w
30: [00:55:12] <Colin[pi]> fix it simon_w
31: [00:55:12] <Colin[pi]> fix it simon_w
32: [00:55:14] <Colin[pi]> lol
33: [00:55:17] <simon_w> I'm just not downgrading to 10.8.2 :p
34: [00:55:20] <Colin[pi]> ;
35: [00:55:21] <Colin[pi]> ;P
36: [00:57:00] <ss23> Use an OS that isn't so crappy, simon_w? ^.^
37: [00:57:19] <simon_w> What? Like Linux with its amazing graphics drivers? :p
38: [00:57:27] <spronk> i use ipad
39: [00:57:57] <spronk> FUCK YEAH
40: [00:59:07] <ss23> ^^^^
41: [00:59:08] <ss23> ipad ftw
42: [01:02:13] <unsignedint> simon_w: actually linuxs open source graphics drivers are pretty good if you dont want to play 3D games
43: [01:02:31] <unsignedint> they support multi monitor etc much better than the proprietary drivers
44: [01:03:25] <simon_w> unsignedint, notice the :p? Try guessing the tone again :p
45: [01:04:00] <ss23> lol
46: [01:04:06] <Colin[pi]> whoosh
47: [01:04:06] <unsignedint> no matter how I read it, it still sounds sarcastic haha
48: [01:04:23] <ss23> unsignedint: It's in the same vein as "I would run Java, but I only have 16gb of ram"
49: [01:04:30] <ss23> Poking fun at things without being serious
50: [01:04:39] <unsignedint> oh right
51: [01:05:16] <spronk> does anyone hactually have a concrete example of custom js form validation in the CMS using entwine or jq validate or something?
52: [01:05:27] * unsignedint doesnt
53: [01:06:33] <unsignedint> validation in Silverstripe is rather hard to use imo, I dont usually bother with it and trust the user input and let things crash if they fuck it up
54: [01:06:40] <simon_w> So yeah, until my drivers get fixed, https://files.app.net/m7j9nD71 is my setup since plugging in the screen switches me to my discrete chip (integrated works fine, so does playing games. Just normal, two-monitor usage doesn't)
55: [01:07:02] <spronk> unsignedint: yeah generally this is what i do as well
56: [01:07:21] <spronk> but i've got a few things working with getCMSValidator() - but the interaction is bizarre
57: [01:07:32] <spronk> can't seem to turn off validator for saving draft vs publishing, for example
58: [01:07:46] <spronk> so none of your changes save, even though they *appear* to
59: [01:07:56] <ss23> simon_w: You need to tidy your desk
60: [01:08:02] <simon_w> yeah yeah
61: [01:08:28] <spronk> lulz big screen NO WORK
62: [01:08:42] <unsignedint> so basically, the solution here is to install Linux on your mac and turn it into a usable computer!
63: [01:08:45] <spronk> also, HD201 represent
64: [01:09:00] <ss23> The real solution is to switch to being a kernel hacker, soy ou acn fix the drivers!
65: [01:09:07] <unsignedint> haha or that
66: [01:09:16] <spronk> simon_w: you have gfxCardStatus?
67: [01:09:23] <simon_w> spronk, yes
68: [01:09:30] <simon_w> it's how I'm forcing it to integrated
69: [01:09:31] <spronk> can't force integrated for dual screen?
70: [01:09:34] <simon_w> Nope
71: [01:09:37] <spronk> hmm
72: [01:09:41] <spronk> your mac must be newer than mine :P
73: [01:09:56] <simon_w> 2010 model MBP
74: [01:10:08] <spronk> mm. my 2008 can run dual screen with integrated
75: [01:10:35] <unsignedint> my MBP is stolen so I dont have the adapters to plug in another monitor
76: [01:10:38] <Pyromanik> ss23: wtf is this eat a munchkin shit?
77: [01:10:49] * sminnee quit (Quit: sminnee)
78: [01:11:19] <Pyromanik> err, 'tree tabs' ?
79: [01:12:07] <Pyromanik> also, simon_w, I like horizontal because html inspector works better like that, and with css off to the side...
80: [01:12:21] <Pyromanik> css & dom in one confined space, not so nice.
81: [01:12:28] <spronk> hrm. does the CMS output any HTML to indicate what type of page is currently being edited?
82: [01:12:36] <ss23> 13:11:18 < Pyromanik> ss23: wtf is this eat a munchkin shit?
83: [01:12:41] <ss23> "eat a munchkin"? idk what this is
84: [01:12:42] <Pyromanik> does safari put css inspector under the html or something? I could see that working better.
85: [01:12:56] <Pyromanik> ss23: me forgetting what to say and having that randomly pop into my head instead
86: [01:13:05] <Pyromanik> but mostly, what are tree tabs?
87: [01:14:00] <Pyromanik> simon_w: :o subway!
88: [01:14:13] <ss23> lol
89: [01:14:16] <Pyromanik> also, like your customised backend
90: [01:14:19] <Pyromanik> err
91: [01:14:23] <Pyromanik> cms replacement thing
92: [01:14:24] <ss23> "I forgot to say tree tabs, so I said 'eat a munchkin' instead"
93: [01:14:25] <ss23> haha
94: [01:14:26] <ss23> but uh
95: [01:14:36] <ss23> https://addons.mozilla.org/en-US/firefox/addon/tree-style-tab/
96: [01:14:38] <ss23> check out dem tabs.
97: [01:14:47] <ss23> https://addons.cdn.mozilla.net/img/uploads/previews/full/30/30846.png?modified=1331247702
98: [01:14:48] <unsignedint> I dont know if I could work with a subway in front of me all day, id keep having to go over and purchase subs
99: [01:14:53] <Pyromanik> ss23: but this is mozilla
100: [01:14:54] <spronk> unsignedint: indeed
101: [01:14:58] <Pyromanik> I thought you were chromium fanboi
102: [01:15:13] <ss23> Pyromanik: I am. I don't *use* it. It comes buitl into Chrome last I checked (but I haven't checked in ages, and I don't use it)
103: [01:15:30] <ss23> unsignedint: Naw, that goes away after 6 months of only subway for food
104: [01:15:47] <unsignedint> haha 6 months is quite a while
105: [01:15:47] <Pyromanik> ss23: also, Opera does this by default.
106: [01:15:57] <simon_w> unsignedint, eh, it's subway. Pretty much meh food.
107: [01:15:58] <Pyromanik> only they run horizontal
108: [01:16:18] <spronk> argh
109: [01:16:20] <unsignedint> $10 a day for subs, 5 days a week, 6 months... ~$800 on subs haha
110: [01:16:25] <spronk> this cms js stuff is bullshitly ridiculous
111: [01:16:30] <unsignedint> err, $1200
112: [01:16:31] <ss23> unsignedint: I've probably spent more than that on McDonalds
113: [01:16:40] <unsignedint> wow id rather have subway than mcdonalds
114: [01:16:49] <unsignedint> although both have shit processed meat
115: [01:16:56] <simon_w> unsignedint, $1300 :p
116: [01:17:03] * unsignedint fails at math
117: [01:17:14] <spronk> pita pit is quite good for meats
118: [01:17:24] <unsignedint> yes! i like pita pit
119: [01:17:27] <simon_w> (13 weeks every 3 months)
120: [01:17:29] <unsignedint> pity there arent any in Napier
121: [01:17:31] <ss23> Cannot write to `bank.php' (Success).
122: [01:17:35] <Pyromanik> never tried pita pit
123: [01:17:37] <ss23> that doesn't soudn like success to me, mother fcuker.
124: [01:17:44] <ss23> 13:17:54 < spronk> pita pit is quite good for meats
125: [01:17:52] <ss23> The only one I've been to was at the uni, and they were stingy
126: [01:17:54] <ss23> would rather just have subway
127: [01:17:59] * Pyromanik waits for "I'll show you good meats" comment
128: [01:18:17] <ss23> XD
129: [01:18:32] <simon_w> New World's deli section is where I usually get my lunch
130: [01:21:04] <unsignedint> the pita pit in Porirua mall is good with their meat portions
131: [01:22:50] <ss23> Speaking of McDonalds
132: [01:22:53] <ss23> http://ss23.geek.nz/bank.php
133: [01:23:00] <ss23> "MCDONALDS TERAPA TE RAPA"-985.1
134: [01:23:08] <ss23> "GOLDEN DRAGON RESTUARANT HAMILTON"-531
135: [01:23:15] <ss23> "BURGER KINGHAMILTON"-363.05
136: [01:23:25] <spronk> lulz
137: [01:23:52] <ss23> And to clarify, yes, that Mcdonalds is the #1 thing.
138: [01:28:56] <simon_w> What a surprise, my top's rent
139: [01:34:41] * KayTwo has joined #silverstripe
140: [01:35:39] <KayTwo> hey all
141: [01:35:48] <KayTwo> just working in the CMS with Gridfields
142: [01:36:00] <KayTwo> I have an admin page with 3 tabs and a gridfield on each tab
143: [01:36:14] <KayTwo> when clicking to edit a record the first tab works fine
144: [01:36:29] <KayTwo> the second and third tab just redirect back to the main admin page when I try to edit a record
145: [01:43:17] * SightUnseen has joined #silverstripe
146: [01:43:18] * SightUnseen has left #silverstripe
147: [01:49:51] <Pyromanik> KayTwo: paste some code if you can
148: [01:51:15] <Pyromanik> (sspaste.com)
149: [01:51:16] <KayTwo> All good - it's come right - suspect it was something cache related :)
150: [01:51:16] <KayTwo> thanks anyways!
151: [01:54:50] <Colin[pi]> simon_w, sql which references _Live tables will break in Stage mode, won't it
152: [01:54:51] * KayTwo quit (Ping timeout: 250 seconds)
153: [01:57:12] <simon_w> Colin[pi], no, but you shouldn't be writing SQL that references _Live tables
154: [01:57:34] <Colin[pi]> this is from an old 2.4 module, doing a left join for meta tags
155: [01:57:55] <Colin[pi]> it was supposed to be only joining to records that are live
156: [01:59:23] <Colin[pi]> wait.. Versioned is supposed to replace the table names right?
157: [01:59:30] <simon_w> yes
158: [01:59:44] <Colin[pi]> hmm let me amend that and see what happens
159: [02:01:01] <Colin[pi]> yep now it breaks on live
160: [02:01:18] <Colin[pi]> Unknown column 'SiteTree.ParentID' in 'where clause' - it won't rename SiteTree ?
161: [02:02:12] <simon_w> You're not quoting properly?
162: [02:02:56] <Colin[pi]> oh shit is it that?
163: [02:03:27] * nickmolhoek quit (Ping timeout: 248 seconds)
164: [02:03:48] * nickmolhoek has joined #silverstripe
165: [02:03:52] <spronk> highlighting tabs with validation errors - Y U NO WORK? http://sspaste.com/paste/show/51a410643b3ac
166: [02:03:52] * nickmolhoek quit (Remote host closed the connection)
167: [02:04:12] <simon_w> "SiteTree"."ParentID" =
168: [02:04:13] <Colin[pi]> LOL fixed
169: [02:04:13] <Colin[pi]> :(
170: [02:04:14] * nickmolhoek has joined #silverstripe
171: [02:04:16] <Colin[pi]> can't believe it was that easy
172: [02:04:20] <Colin[pi]> D:
173: [02:04:22] <Colin[pi]> thanks
174: [02:04:48] <Colin[pi]> luckily I hardly ever use raw queries
175: [02:06:48] * Shrike_Finland has joined #silverstripe
176: [02:17:46] <spronk> grr
177: [02:17:53] <Pyromanik> spronk: because id?
178: [02:17:55] <spronk> why the hell is the CMS reverting to main content tab every time i save
179: [02:18:04] <Pyromanik> turn an entire set of bads into just 1 id?
180: [02:18:13] <Pyromanik> spronk: you broke it
181: [02:18:25] <spronk> >:[
182: [02:18:36] <Pyromanik> #works4me
183: [02:18:46] <spronk> hmm
184: [02:18:47] <spronk> maybe i need a newer version
185: [02:19:06] <ss23> #yolo
186: [02:21:21] <spronk> Pyromanik: what you mean id?
187: [02:26:09] <spronk> Pyromanik: if you're on a user-created cms tab, i.e. content -> SomeRandomTab, and you hit save, you're redirected back to that tab on reload?
188: [02:55:28] <Colin[pi]> hmm simon_w the versioned/augmentSQL stuff only works with DataObject functions, now with raw SQLQuery instances?
189: [03:04:03] * joelpittet has joined #silverstripe
190: [03:05:14] * sminnee has joined #silverstripe
191: [03:05:14] * sminnee quit (Changing host)
192: [03:05:14] * sminnee has joined #silverstripe
193: [03:05:32] <sminnee> hi everyone!
194: [03:06:10] <sminnee> willr_: do you know of any good SS contractors? I need to… expand my network/.
195: [03:06:35] <willr_> hands off our contractors
196: [03:06:40] <sminnee> heh
197: [03:06:51] <sminnee> so you're stuck on resource too?
198: [03:07:13] <willr_> yep. We have 3 contractors at the moment. Would take more if we could probably
199: [03:07:31] <sminnee> any of them expiring soon?
200: [03:07:39] <sminnee> Need someone for June.
201: [03:07:45] <willr_> Jeremy comes off at the start of June
202: [03:07:55] <sminnee> Jeremy Shipman
203: [03:07:56] <sminnee> ?
204: [03:08:13] <willr_> yep, been working on a couple 3.0 framework only apps we have
205: [03:08:14] <sminnee> You mind if I talk to him about working for us for a month?
206: [03:08:25] <irogue> afternoon' sminnee, willr_
207: [03:08:26] <sminnee> From June 17.
208: [03:08:30] <sminnee> Hi irogue
209: [03:12:13] <willr_> sminnee did I hear right that Romain has gone to DIA? He applied for one of our contracting roles which we turned down.
210: [03:12:25] <sminnee> Yeah that's my understanding.
211: [03:13:22] * cloph_away1 has joined #silverstripe
212: [03:13:41] * cloph_away quit (Ping timeout: 256 seconds)
213: [03:14:15] <willr_> sounds like we need to start training a few more in the ways of the stripe.
214: [03:15:06] <sminnee> yeah, a bit ;)
215: [03:15:42] <simon_w> I know Matt (of stripe the web)'s fairly busy too
216: [03:21:30] <willr_> We're also short of IA, Design as well. Good times
217: [03:22:13] <spronk> start with improving the docs
218: [03:22:33] <willr_> RTFC
219: [03:22:50] <spronk> and that's why no contractors :)
220: [03:23:21] <simon_w> spronk, go for it! :p
221: [03:23:28] <ss23> simon_w: EARTHQUAKE?!
222: [03:23:44] <simon_w> ss23, turns out, yeah
223: [03:23:50] <simon_w> This building isn't very good for them
224: [03:24:32] * simon_w starts deleting Group, Permission and PermissionRole
225: [03:28:42] * EasyCo has joined #silverstripe
226: [03:30:43] <EasyCo> Hey guys. I defined a has_many relationship in my data model and defined the has_one relationship on the child data model and all is well. What if I want to reuse the child data model in with another rparent class. Would I just add another item to my has_one array?
227: [03:31:58] <simon_w> EasyCo, yes
228: [03:32:50] <EasyCo> Cool thanks. Feels kinda weird.
229: [03:35:04] * DigNZ quit (Quit: DigNZ)
230: [03:36:58] * Hippiee has joined #silverstripe
231: [03:42:15] * DigNZ has joined #silverstripe
232: [03:42:16] * DigNZ quit (Remote host closed the connection)
233: [03:42:30] * DigNZ has joined #silverstripe
234: [03:50:25] <ss23> woah, free colo for rbp?
235: [03:50:27] <ss23> http://www.edis.at/en/server/colocation/austria/raspberrypi/
236: [03:50:39] * Motoservo quit (Remote host closed the connection)
237: [03:50:58] * Motoservo has joined #silverstripe
238: [03:52:21] <irogue> yep
239: [03:59:11] <ss23> brb converting my VPS to a cluster of rbp
240: [04:09:52] * zippy__ quit (Quit: zippy__)
241: [04:11:57] * DigNZ quit (Quit: DigNZ)
242: [04:13:52] * Shrike_Finland quit (Quit: Leaving.)
243: [04:14:01] * JohnnyJimJams has joined #silverstripe
244: [04:14:21] <JohnnyJimJams> howdy yall
245: [04:14:36] <ss23> heya
246: [04:14:52] <JohnnyJimJams> I have a question re: tutorial 4 - http://doc.silverstripe.org/framework/en/tutorials/4-site-search
247: [04:15:17] <JohnnyJimJams> I've gone through it (and it's working) cept ....
248: [04:15:34] <JohnnyJimJams> when I do a search for "" <--- empty string ....
249: [04:15:54] <JohnnyJimJams> my 404 page and 500 page are showing in the results
250: [04:15:58] * kerosene has joined #silverstripe
251: [04:16:15] <JohnnyJimJams> In the CMS, they are unticked (Show in search?)
252: [04:16:51] <ss23> Hmm, not sure
253: [04:16:56] <ss23> Someone else might know
254: [04:16:59] * ss23 waves his hands
255: [04:17:03] <ss23> simon_w, simon_w, simon_w!
256: [04:17:05] <ss23> (Now we wait)
257: [04:17:06] * JohnnyJimJams also waves bits
258: [04:17:30] <ss23> :D
259: [04:17:33] <JohnnyJimJams> :)
260: [04:18:57] <simon_w> JohnnyJimJams, the file (assets/error-500.html) or the page (server-error)?
261: [04:19:22] <JohnnyJimJams> the assets
262: [04:19:56] <JohnnyJimJams> Which makes more sense now, although it would be nice to remove them from the results as well
263: [04:20:08] <simon_w> Do you want the assets to be searchable?
264: [04:20:31] <JohnnyJimJams> I'm not building anything useful, just doing the tuts
265: [04:20:40] <JohnnyJimJams> How would I remove selected assets?
266: [04:21:03] <simon_w> $form->classesToSearch('SiteTree'); at the top of your results() method (before making the array)
267: [04:21:38] <JohnnyJimJams> nice. That would remove all assets from the search results right?
268: [04:21:52] <simon_w> Yup
269: [04:22:13] <JohnnyJimJams> ok, cool, I could manually remove now (if I wanted too) I was just confused by the results
270: [04:22:24] <JohnnyJimJams> that clears it up, thx simon_w and ss23
271: [04:22:25] * ^pH has joined #silverstripe
272: [04:22:34] <ss23> Sweet :D
273: [04:25:27] * ^pH- quit (Ping timeout: 252 seconds)
274: [04:28:27] <EasyCo> I need to configure the HTMLEditorField. I understand I need to use HTMLEditorConfig::get() to modify the config but what value do I pass get() when I'm grabbing a field from modeladmin?
275: [04:29:23] <simon_w> Most likely cms
276: [04:29:35] <Pyromanik> there's only the 1 profile to get afaik.
277: [04:29:39] <Pyromanik> ('cms')
278: [04:30:20] <simon_w> By default, there's two. cms and default
279: [04:30:56] <simon_w> Home time!
280: [04:31:43] <EasyCo> No dice.
281: [04:34:12] * DigNZ has joined #silverstripe
282: [04:34:13] * DigNZ quit (Remote host closed the connection)
283: [04:34:27] * DigNZ has joined #silverstripe
284: [04:34:28] * DigNZ quit (Remote host closed the connection)
285: [04:34:47] * DigNZ has joined #silverstripe
286: [04:37:20] * DigNZ quit (Client Quit)
287: [04:42:33] * DigNZ has joined #silverstripe
288: [04:42:34] * DigNZ quit (Remote host closed the connection)
289: [04:42:48] * DigNZ has joined #silverstripe
290: [04:43:23] * Hippiee quit (Read error: Connection reset by peer)
291: [04:53:43] * DigNZ quit (Quit: DigNZ)
292: [05:01:31] * nickmolhoek quit (Quit: nickmolhoek)
293: [05:09:50] * Shrike_Finland has joined #silverstripe
294: [05:12:25] * simon_w|air has joined #silverstripe
295: [05:22:35] <spronk> grr
296: [05:22:37] <spronk> fucking DropdownField
297: [05:22:48] <spronk> is not selecting the default value that i give it in constructor :@
298: [05:26:40] <spronk> k this is fucking bizarre
299: [05:26:56] <spronk> var_dump($field->Field()); shows the right thign selected
300: [05:27:10] <spronk> var_dump($this->FieldName) == null
301: [05:27:20] <spronk> let it run through the CMS, isn't selecting the right thing :@
302: [05:28:09] <MrJeremy> anyone know how to <% loop teacher().getNotes($teachNotesDBFieldAsInt) %>?
303: [05:28:31] <spronk> MrJeremy: you can't stick a template variable as the getNotes argument like that
304: [05:28:59] <spronk> you're probably going to have to use a method written on the object itself if you want to do something that dynamic
305: [05:29:30] <simon_w|air> spronk, get with the times :p
306: [05:29:41] <spronk> simon_w: you can do that shit now?
307: [05:29:52] <simon_w|air> MrJeremy, <% loop $Teacher.getNotes($teachNotesDBFieldAsInt) %>
308: [05:30:02] <simon_w|air> spronk, yes
309: [05:30:07] <spronk> fuck me
310: [05:30:39] <simon_w|air> I'd prefer not to
311: [05:31:17] <spronk> why isn't this shit in the docs
312: [05:32:19] <EasyCo> How do yu make a field required in modeladmin?
313: [05:33:02] <MrJeremy> onBeforeWrite?
314: [05:33:17] <spronk> simon_w: any ideas on the select default value?
315: [05:33:23] <spronk> simon_w|air: *
316: [05:34:03] <simon_w|air> Because your default value isn't a null value?
317: [05:34:19] <spronk> eh?
318: [05:34:42] <simon_w|air> The value you want selected isn't equivalent to null
319: [05:35:26] <spronk> i'm confused - i want it to select the value I pass in, which is "High Speed"
320: [05:35:32] <spronk> this is one of the values in the choices array
321: [05:35:48] <simon_w|air> Then loadDataFrom()'s called, and the selection's overriden
322: [05:36:19] <spronk> so loadDataFrom doesn't ignore nulls?
323: [05:36:24] <spronk> hmm
324: [05:36:37] <spronk> how do i get around it?
325: [05:37:15] <simon_w|air> What's the context? A new object? An existing one?
326: [05:37:26] <spronk> creating a new page
327: [05:37:34] <simon_w|air> private static $defaults
328: [05:37:38] <EasyCo> If you do validation in onBeforeWrite, how do you handle the error? Is there a flash method of some sort?
329: [05:38:14] <spronk> hmm... was hoping I could get away without actually saving a default value, but i guess that'll have tod o
330: [05:43:13] <EasyCo> Can anybody point me in the ModelAdmin + RequiredFields direction? OKTHX
331: [05:46:43] <MrJeremy> spronk: simon_w|air: Thanks for the help before
332: [05:47:11] <simon_w|air> EasyCo, great difficulty
333: [05:48:11] <EasyCo> I was afraid of that
334: [05:49:22] <spronk> argh
335: [05:49:29] <spronk> this is ridiculously impossible
336: [05:49:39] <spronk> need to load custom js based on page type in cms
337: [05:49:48] <spronk> but... because it's ajax, doesn't load the fucking js
338: [05:50:41] * willr_ quit (Quit: willr_)
339: [05:50:46] <EasyCo> So when you create a data object which is accessed through GridField, it uses ModelAdmin?
340: [05:52:38] <simon_w|air> EasyCo, when you create something through ModelAdmin it uses ModelAdmin
341: [05:52:44] <simon_w|air> ModelAdmin uses GridField
342: [05:54:51] * Shrike_Finland quit (Quit: Leaving.)
343: [05:56:43] <EasyCo> Well for example. I have a Something extends Page. And Something has_many Others. Others is a Data Object. The relationship is managed with GridField. Which gives me the grid field and the actual Others form. The Others form is generated with ModelAdmin correct?
344: [05:58:12] * DesignerX has joined #silverstripe
345: [05:59:26] <simon_w|air> No
346: [05:59:39] <simon_w|air> That's just the default getCMSFields()
347: [06:00:36] <DesignerX> hi, trying to make a list of images "paginated using : $PaginatedList = new PaginatedList($this->Images(), $this->request); , but O get the following error : "Uncaught Exception: The request must be readable as an array."
348: [06:01:09] <simon_w|air> DesignerX, what class are you in?
349: [06:01:34] <DesignerX> simon_w: I am on basicGallery which extends DataObject
350: [06:01:59] <simon_w|air> So $this->request is null, that's your problem
351: [06:02:30] <simon_w|air> It's only the request object when you're in the controller
352: [06:03:04] <DesignerX> so how can I get this to work in an object ? as the function need to be on MyObject not MyPage
353: [06:03:13] <EasyCo> So the default getCMSFields() creates a form with all the properties by default?
354: [06:03:51] <EasyCo> Cause that's not the case with a class that extends Page but seems to be the case when it extends DataObject
355: [06:04:48] <simon_w|air> EasyCo, that's because SiteTree overrides the default getCMSFields()
356: [06:04:58] <simon_w|air> DesignerX, Controller::curr()->getRequest()
357: [06:05:07] <EasyCo> Ahh gotcha
358: [06:05:14] <EasyCo> So in the case I'm not using ModelAdmin
359: [06:05:50] <EasyCo> But since the form is automatically generated, I can't add requiredfields
360: [06:06:07] <DesignerX> EasyCo: hi, I have some code that can help ypu validate for required feilds quickly,
361: [06:06:07] <EasyCo> Well I mean, I can, but I'm not sure how to proceed.
362: [06:06:16] <DesignerX> give me a mit to paste the code for you if you like
363: [06:06:30] <spronk> simon_w|air: you know any way to conditionally load js based on page type in cms?
364: [06:06:34] <EasyCo> DesignerX: I'll definitely have a look, thx
365: [06:07:20] <simon_w|air> EasyCo, It's easier when you're creating your own GridField. $config->getComponentByType('GridFieldDetailForm')->setValidator(new ...)
366: [06:07:48] <simon_w|air> (That may only exist in 3.1)
367: [06:10:06] <EasyCo> Thx, I'll have a look see if I can work it out.
368: [06:11:21] <DesignerX> EasyCo: Its not much, but it should be along these lines http://www.sspaste.com/paste/show/51a44a657a598
369: [06:11:25] <simon_w|air> spronk, LeftAndMain::require_javascript(), then add a class to the tab you want ($fields->fieldByName('Root')->addExtraClass('blah')), and match on that
370: [06:13:37] <spronk> i was afraid you'd say that :)
371: [06:23:40] <EasyCo> Youbeauty
372: [06:24:20] <EasyCo> simon_w|air: Thanks and FYI, ->getComponentByType('GridFieldDetailForm')->setValidator() exists in 3.0.5
373: [06:52:35] * sminnee quit (Quit: sminnee)
374: [06:52:48] * sminnee has joined #silverstripe
375: [06:52:48] * sminnee quit (Changing host)
376: [06:52:48] * sminnee has joined #silverstripe
377: [07:00:50] * kerosene is now known as OldTom
378: [07:01:53] * zfmf1 has joined #silverstripe
379: [07:02:06] <ss23> I procrastinated too much and now I need to sleep but I didn't finish work :<
380: [07:05:10] <simon_w|air> No pay for ss23 then
381: [07:05:45] <ss23> :<
382: [07:05:51] <spronk> hmm
383: [07:05:52] <ss23> Sometimes I swear my emails just vanish...
384: [07:08:59] * sminnee has left #silverstripe
385: [07:09:23] <spronk> does ss fire a jquery bindable event after content is ajax loaded in the cms?
386: [07:12:07] <simon_w|air> spronk, like I said, learn entwine :)
387: [07:14:06] <spronk> >(
388: [07:16:09] * Zauberfisch|idle has joined #silverstripe
389: [07:16:42] <spronk> im trying to get some dropdowns to auto select based on another dd's value... got it working with standard jq binding but when ss updates the dom on changing page user is editing, i need to fire the initial change() event to do the first select
390: [07:17:30] <simon_w|air> onmatch in entwine
391: [07:19:01] * Zauberfisch^idle quit (Ping timeout: 246 seconds)
392: [07:25:16] * g4b0 has joined #silverstripe
393: [07:25:34] <spronk> got any examples?
394: [07:25:46] <g4b0> hi all
395: [07:32:08] * popeshoe quit (Read error: Operation timed out)
396: [07:33:16] <Colin[pi]> heya
397: [07:34:00] <spronk> aha
398: [07:34:16] <spronk> $('myelem').entwine({ onmatch: function() { $(this).change(); } });
399: [07:34:19] <spronk> thanks simon_w|air
400: [07:40:29] * popeshoe has joined #silverstripe
401: [07:57:21] * kinglozzer has joined #silverstripe
402: [08:00:23] * EasyCo quit (Quit: EasyCo)
403: [08:07:13] * samthejarvis_ has joined #silverstripe
404: [08:13:36] * samthejarvis_ quit (Ping timeout: 250 seconds)
405: [08:14:07] * zippy__ has joined #silverstripe
406: [08:20:39] * willr_ has joined #silverstripe
407: [08:22:56] * osterlaus has joined #silverstripe
408: [08:26:11] * willmorgan has joined #silverstripe
409: [08:30:34] * dangerdan has joined #silverstripe
410: [08:30:47] * priithansen has joined #silverstripe
411: [08:32:15] <samthejarvis> anybody got any tips on writing rules in SS3? I want to match a URL like /clients/view/3/notes/view/1 to a Notes_Controller
412: [08:32:21] <samthejarvis> routing rules*
413: [08:33:27] <simon_w|air> How would it match?
414: [08:36:53] <kinglozzer> simon_w|air: Any update on the 'nl2br' issue? https://github.com/silverstripe/silverstripe-framework/issues/1942. If it's just a case of nl2br($this->XML()) in forTemplate() then I'll do a PR for it if you like, just want to know if it's worth me doing an extension for nl2br
415: [08:38:03] <MrJeremy> is there anyway to overwrite a page title?
416: [08:38:18] <MrJeremy> I mean set a default pagetitle for a page?
417: [08:38:18] <kinglozzer> MrJeremy: Menu title?
418: [08:38:39] <MrJeremy> yeah it adds automatically the New __CLASSNAME__ spaced out
419: [08:38:39] <samthejarvis> that's what I'm not sure of, the "how" part hehe
420: [08:39:08] <MrJeremy> Sorry when a user makes a new page I want to set the default pagename (Title) the page is give automatically
421: [08:39:10] * dangerdan quit (Ping timeout: 250 seconds)
422: [08:39:10] * sam__ has joined #silverstripe
423: [08:39:19] <sam__> hi
424: [08:39:25] <zippy__> hello
425: [08:39:42] <sam__> I need some help on integrating facebook login
426: [08:39:55] <zippy__> ok
427: [08:40:12] <sam__> I used module facebook connect
428: [08:40:19] <zippy__> ok
429: [08:40:21] <sam__> but no luck
430: [08:40:26] <zippy__> what happened?
431: [08:40:44] <samthejarvis> sam__: this should start you off https://github.com/BetterBrief/silverstripe-opauth
432: [08:41:01] <MrJeremy> e.g. in the admin if I had a page "HighestEarningTeachersPage" (classname) on adding a new page it would set the initial page as "New Highest Earning Teacher Page" And I want to set the later to make it quicker for the users
433: [08:41:07] <kinglozzer> MrJeremy: public static $defaults = array('Title' => 'Value');
434: [08:42:44] <sam__> i usw silverstripe 2.4
435: [08:42:52] <samthejarvis> ah, apologies
436: [08:48:07] <MrJeremy> kinglozzer: hmm dosent seem to do it, but thanks
437: [08:50:33] <willmorgan> sam__ samthejarvis: shouldn't be too hard to modify it for SS2.4
438: [08:50:47] <willmorgan> just the config that is the problem
439: [09:01:20] <sam__> ok
440: [09:01:28] <sam__> i will try
441: [09:05:02] <samthejarvis> So i've got this, Latest request params: array ( 'Action' => 'view', 'ID' => '4', 'OtherID' => 'cases', ), I want to match "cases" to another controller, can this be done? Has ModelAsController's nestedcontroller got anything to do with this?
442: [09:08:38] <samthejarvis> hahahaa, i'm so clueless
443: [09:19:11] * guci0 has joined #silverstripe
444: [09:19:16] <guci0> Elo!
445: [09:19:38] <samthejarvis> howdy :)
446: [09:22:00] <simon_w|air> samthejarvis, $request->shift(2); return new Notes_Controller;
447: [09:27:06] * vitbeo has joined #silverstripe
448: [09:27:27] * vitbeo quit (Client Quit)
449: [09:29:30] <samthejarvis> hoho, that sounds promising!
450: [09:33:49] * gordon has joined #silverstripe
451: [09:34:01] * gordon is now known as elgrodo
452: [09:36:38] <simon_w|air> You may need to play with the number passed to shift()
453: [09:37:11] <samthejarvis> that's ace, thanks for restoring my confidence in the feasibility of it
454: [09:38:50] * osterlaus quit (Quit: Leaving.)
455: [09:39:21] <samthejarvis> any pointers on where $request->shift() should be called? i've got a standard view action here http://puu.sh/32SNk.txt, do I have to check when $OtherID = cases here and shift the params?
456: [09:39:51] <elgrodo> come across a weird one where my UploadField is failing due to CSRF
457: [09:40:02] <elgrodo> folder permissions look fine, disk space ok, but always get 'Bad Request' after an upload
458: [09:40:40] <elgrodo> oh and it works when I try it with a different image. What the ...
459: [09:40:47] <samthejarvis> elgrodo: are you perhaps using it outside the CMS?
460: [09:40:58] <samthejarvis> huh
461: [09:44:18] <elgrodo> UploadField in getCMSFIelds
462: [09:44:34] <elgrodo> will investigate later if I have time, been short of it this week due to sick cats
463: [09:45:25] <samthejarvis> just that file that causes it to give you a 400?
464: [09:45:30] <samthejarvis> haha, unlucky
465: [09:46:56] <elgrodo> nope, it's most files
466: [09:47:00] <elgrodo> one file got through once
467: [09:47:02] <elgrodo> cant replicate
468: [09:47:03] <elgrodo> gah
469: [09:48:55] <samthejarvis> sick cats AND inconsistent bugs, damn
470: [09:50:10] <samthejarvis> you guys are probably aware of this and I'm not 100% sure where this should be reported, but on api.silverstripe.org you have a small CSS error on the selector for "description detailed hidden", display:block is applied with JS, but visibility:visible isn't (and should be)
471: [09:51:03] <samthejarvis> not an actual selector, but you can use .description.detailed.hidden to find the elements the bug is regarding
472: [09:52:32] * Hippiee has joined #silverstripe
473: [09:52:42] <samthejarvis> e.g http://api.silverstripe.org/3.0/class-SS_HTTPRequest.html#_shift, clicking the method adds display:block to but not visibility:visible, thus it stays hidden
474: [09:55:52] * sam__ quit (Ping timeout: 250 seconds)
475: [10:00:38] * guci0 quit (Ping timeout: 250 seconds)
476: [10:00:45] <simon_w|air> samthejarvis, you should call it just before you return
477: [10:01:57] * sam__ has joined #silverstripe
478: [10:02:57] <sam__> hi all
479: [10:03:11] <sam__> I need soe help on edit profile in multiform
480: [10:05:54] <samthejarvis> simon_w|air: thank you! this is perfect!
481: [10:12:45] * MrJeremy quit (Quit: MrJeremy)
482: [10:14:10] * spronk2 has joined #silverstripe
483: [10:20:02] <sam__> is there any one
484: [10:20:17] <sam__> to tell me how to use multiform edt profile
485: [10:20:20] <sam__> ?
486: [10:21:01] <samthejarvis> sam__: could you explain what you're trying to do, and do you have any example code?
487: [10:21:08] <elgrodo> +1
488: [10:25:00] <zfmf1> howto rewrite this Currency::setCurrencySymbol('&euro;'); into yml config anyone an idea ?? i tryed this http://sspaste.com/paste/show/51a485c01bfc1 but it doesn't work
489: [10:28:39] <willr_> zfmf1 just currency_symbol
490: [10:28:57] <willr_> the 'set' part is implicit in the fact that you're using the config system
491: [10:29:54] <willr_> if you turn on deprecation notices you'll see hints about the changes. E.g in your case it says 'Use the "Currency.currency_symbol" config setting instead'
492: [10:41:48] * willmorgan quit (Quit: Ciao mateys.)
493: [10:49:50] * willr_ quit (Quit: willr_)
494: [10:53:57] <kinglozzer> Best way to exclude 'home' from nav? Currently using <% loop $Menu(1).Exclude('ID', 1) %> just wondered if there's a cleaner way
495: [11:00:13] <samthejarvis> ShowInMenu = 0?
496: [11:00:22] <samthejarvis> :D
497: [11:03:32] <samthejarvis> ShowInMenus, the checkbox in the CMS
498: [11:08:28] <kinglozzer> Good point :P
499: [11:08:40] <JohnnyJimJams> :D
500: [11:10:24] * sam__ quit (Ping timeout: 250 seconds)
501: [11:13:23] * spronk2 has left #silverstripe
502: [11:13:44] * spronk2 has joined #silverstripe
503: [11:14:27] * samthejarvis_ has joined #silverstripe
504: [11:16:28] * samthejarvis quit (Ping timeout: 250 seconds)
505: [11:19:09] * dangerdan has joined #silverstripe
506: [11:20:44] <dangerdan> how do people use git with silverstripe? up until now i have a repository in each the mysites/code and themes directory but this doesnt feel right obviously, do people install the cms and framework as submodules?
507: [11:24:55] <kinglozzer> dangerdan: .gitignore cms and framework, use composer
508: [11:24:59] <kinglozzer> :)
509: [11:26:51] <dangerdan> so just use a basic git repo for the whole project, gitignore cms and framework and let composer deal with that instead?
510: [11:28:14] <kinglozzer> Yep
511: [11:29:11] <dangerdan> okay cool :) reading the docs now
512: [11:29:17] <dangerdan> thanks
513: [11:33:22] * lx-berlin_ has joined #silverstripe
514: [11:41:02] * deschebbes has joined #silverstripe
515: [11:52:27] <Hippiee> http://imgur.com/gallery/NidMe6d
516: [11:53:38] <samthejarvis_> hahahaa, brilliant
517: [11:55:02] <Colin[pi]> too many idiots already here
518: [11:55:43] * jcwacky has joined #silverstripe
519: [11:58:18] <JohnnyJimJams> Hippiee :) Is that an Ameristralia reference?
520: [11:58:21] <samthejarvis_> release the scorpions
521: [11:58:49] <Hippiee> Ameristralia?? :po
522: [11:58:49] <Hippiee> :o
523: [11:59:44] <JohnnyJimJams> http://www.reddit.com/r/ameristralia
524: [12:00:13] <JohnnyJimJams> beware: reddit is like crack for procrastinators
525: [12:01:25] <Colin[pi]> yes :(
526: [12:01:33] <Colin[pi]> I have it banned 8am-8pm on my router LOL
527: [12:01:58] * dangerdan quit (Ping timeout: 250 seconds)
528: [12:02:00] <JohnnyJimJams> :) I have it banned via software called FocalFilter for 12 hours a day as well
529: [12:02:20] <Hippiee> Ameristralia? Seriously?
530: [12:02:29] <Hippiee> Are you guys for or against that?
531: [12:02:36] <Colin[pi]> yeah everyone went batshit about it for a week or two, and now it's cringe central
532: [12:02:48] <JohnnyJimJams> The concept was born on reddit
533: [12:03:01] <Colin[pi]> everyone seemed excited but I think it was mostly the Americans that were excited ;)
534: [12:03:07] <JohnnyJimJams> :D
535: [12:04:01] <Hippiee> Haha craazy.. I take it most of the guys in this channel are from Aus/Nz ?
536: [12:04:28] <Colin[pi]> mostly NZ I believe, I'm from AU
537: [12:04:33] <Colin[pi]> few others are from AU
538: [12:04:34] <JohnnyJimJams> I'm in aus
539: [12:04:39] <Colin[pi]> some from Europe
540: [12:05:20] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
541: [12:06:13] <samthejarvis_> Dreary UK
542: [12:07:13] <Colin[pi]> yeah why did you guys send the convicts here again? ;)
543: [12:07:41] <samthejarvis_> more room for activities!
544: [12:07:52] * UndefinedOffset has joined #silverstripe
545: [12:08:34] <Hippiee> Haha
546: [12:08:51] <Hippiee> Doesn't someone feel like giving me a Job in melbourne!
547: [12:14:38] <Colin[pi]> don't feel like working in NZ Hippiee?
548: [12:15:15] * Shrike_Finland has joined #silverstripe
549: [12:15:19] <Hippiee> I would love to work in NZ.. but I'm in melbourne at the moment
550: [12:15:27] <Colin[pi]> ah k hehe
551: [12:16:49] <Hippiee> Im planning on staying here for about a year before moving to NZ :)
552: [12:17:19] <Colin[pi]> where are you from originally?
553: [12:17:51] * lx-berlin_ has left #silverstripe
554: [12:22:58] <Hippiee> South Africa
555: [12:23:20] <Colin[pi]> ah how long have you been here?
556: [12:24:48] <Hippiee> 3 weeks :)
557: [12:25:12] <Colin[pi]> ahh very recent!
558: [12:25:17] <Colin[pi]> liking it so far?
559: [12:28:41] <Hippiee> Yeah im enjoying it. Its just dam expensive compared to SA
560: [12:28:57] <Hippiee> But im sure that wont be a problem when I get a Job haha..
561: [12:29:11] <Colin[pi]> tell me about it :\
562: [12:29:21] <Colin[pi]> everything is expensive here now
563: [12:29:31] * zippy__ quit (Quit: zippy__)
564: [12:29:35] <Hippiee> Alcohol prices are insane.. luckily I dont smoke!
565: [12:29:41] <Hippiee> Whereabouts you live?
566: [12:30:12] <Colin[pi]> in nice sunny warm Canberra, currently 4C :(
567: [12:32:43] <Hippiee> Not too far away :P
568: [12:32:53] <Hippiee> but not close to the beach either ... hehe
569: [12:33:01] <Colin[pi]> ehh 1.5 hours or so
570: [12:33:07] <Colin[pi]> Bateman's Bay is the closest
571: [12:34:02] <Hippiee> :)
572: [12:34:10] * ^pH- has joined #silverstripe
573: [12:35:52] <Colin[pi]> in the depths of winter I have a holiday planned for tropical queensland, can't wait
574: [12:36:14] <Colin[pi]> won't want to come back here hehe
575: [12:37:43] * ^pH quit (Ping timeout: 252 seconds)
576: [12:37:48] <Hippiee> Mmmm.. Ill hopefully start planning holidays soon!
577: [12:38:15] <Colin[pi]> yeah concentrate on the job first ;)
578: [12:49:23] * priithansen quit (Quit: priithansen)
579: [12:58:28] * webguest has joined #silverstripe
580: [12:58:49] <webguest> how do i remotely check if an email adres is already taken in an ajax form?
581: [12:59:11] <webguest> i already have this http://paste2.org/Bk92pfk1
582: [12:59:21] <webguest> this works on normal forms, but when i use ajax to send the form
583: [12:59:25] <webguest> it doesnt give the feedback
584: [12:59:59] <webguest> do i need someting like this:? http://paste2.org/DDDgCGnH
585: [13:00:21] <webguest> and then another function that checks if the form is taken?
586: [13:00:38] <webguest> would be a bit ugly if would need a 2nd function
587: [13:03:00] <jrthomer> ss23 / simon_w|air - unit test added to pull request https://github.com/silverstripe/silverstripe-framework/pull/2021
588: [13:03:03] <jrthomer> feedback is welcome
589: [13:06:28] <samthejarvis_> webguest, tried this? http://api.silverstripe.org/3.0/class-AjaxUniqueTextField.html
590: [13:06:57] <samthejarvis_> might have to make your own AjaxUniqueEmailField
591: [13:07:04] <samthejarvis_> for the validation
592: [13:07:52] <webguest> hey sam, well im on 2.4.10, but i solved it just now
593: [13:08:44] <samthejarvis_> ah, o'course, also good job
594: [13:08:50] <webguest> http://paste2.org/OZwNXnwY
595: [13:09:06] <webguest> and put checkemail into allowed action
596: [13:09:46] <samthejarvis_> sounds good, does it work without JS?
597: [13:10:42] <webguest> it did, but then i wanted it to be more flashy / transitions / add/ remove classes so it's now required to have JS
598: [13:10:56] <samthejarvis_> i.e will it give a validation error on submit if the email is taken?
599: [13:11:00] <webguest> but the functions are written that they would still work without js
600: [13:11:03] <samthejarvis_> ah, righto
601: [13:11:04] <webguest> yes
602: [13:11:41] <samthejarvis_> sorry I'm using the web irc client, it doesn't always scroll down to the newest messages heh
603: [13:17:53] * willmorgan has joined #silverstripe
604: [13:19:37] * WillM has joined #silverstripe
605: [13:21:02] * WillM quit (Client Quit)
606: [13:25:13] * folibis has joined #silverstripe
607: [13:27:00] * feejin has joined #silverstripe
608: [13:33:38] * folibis quit (Quit: Page closed)
609: [13:41:28] * OldTom is now known as kerosene
610: [13:42:30] * kerosene is now known as OldTom
611: [13:48:56] * Shrike_Finland quit (Quit: Leaving.)
612: [13:52:43] * priithansen has joined #silverstripe
613: [13:54:14] * spronk2 quit (Quit: spronk2)
614: [14:00:13] * OldTom is now known as kerosene
615: [14:14:44] * feejin_ has joined #silverstripe
616: [14:14:54] * mrzero_ has joined #silverstripe
617: [14:15:01] * simon__w|air has joined #silverstripe
618: [14:15:10] * unsigned_ has joined #silverstripe
619: [14:15:31] * JohnnyJimJams_ has joined #silverstripe
620: [14:18:15] * feejin quit (Ping timeout: 249 seconds)
621: [14:18:16] * simon_w|air quit (Ping timeout: 249 seconds)
622: [14:18:16] * JohnnyJimJams quit (Ping timeout: 249 seconds)
623: [14:18:16] * mrzero quit (Ping timeout: 249 seconds)
624: [14:18:17] * Kapdap quit (Ping timeout: 249 seconds)
625: [14:18:17] * unsignedint quit (Ping timeout: 249 seconds)
626: [14:18:18] * xyphoid quit (Ping timeout: 249 seconds)
627: [14:18:19] * mrzero_ is now known as mrzero
628: [14:18:20] * xyphoid_ has joined #silverstripe
629: [14:18:27] * JohnnyJimJams_ is now known as JohnnyJimJams
630: [14:19:04] * Kapdap_ has joined #silverstripe
631: [14:25:31] * jrthomer quit (Ping timeout: 252 seconds)
632: [14:25:51] * jcwacky quit (Quit: jcwacky)
633: [14:26:11] * jcwacky has joined #silverstripe
634: [14:27:16] <jcwacky> When using oEmbed to insert a YouTube video into a page on SS3, it automatically adds a div.left around the iframe. This is breaking fitVids.js, anyway to override the div?
635: [14:27:49] * jrthomer has joined #silverstripe
636: [14:33:56] * Nivery has joined #silverstripe
637: [14:35:23] * gumble has joined #silverstripe
638: [14:38:08] <gumble> hey, I have a sidebar which loops the children of a page. No suddenly there are no links in the sidebar and $Children.count also gives me a fat 0. What could I have done wrong?
639: [14:39:35] <UndefinedOffset> gumble if i remember correctly Children() checks to see if a page is set to show in menus
640: [14:41:40] <gumble> UndefinedOffset: I already checked in the cms, both are set to be shown in menus
641: [14:41:59] <gumble> *both childs
642: [14:44:45] * deschebbes quit (Ping timeout: 256 seconds)
643: [14:46:25] * DesignerX quit (Ping timeout: 252 seconds)
644: [14:47:46] * deschebbes has joined #silverstripe
645: [14:52:54] <g4b0> how to pass variable through YAML extension?
646: [14:53:43] <g4b0> friday I was speaking with kinglozzer about how to translate something like
647: [14:53:43] <g4b0> PghRegulations::add_extension( 'CustomWorkflowHolderPage("Regulations","RegulationsHolder")');
648: [14:53:51] <g4b0> in YAML language
649: [14:54:11] <g4b0> but without results :(
650: [14:54:25] <g4b0> Is there any YAML guru out there?
651: [15:01:06] <feejin_> gumble are you outputting the children of the page you're on? If not, does Menu(2) solve it?
652: [15:01:19] * mento has joined #silverstripe
653: [15:04:48] <kinglozzer> g4b0: A few more to try http://pastie.org/7974762
654: [15:04:58] <kinglozzer> It's gotta be something like that :P
655: [15:08:12] <gumble> feejin_: what I now did was delete the two children and recreate them exactly as they where. Now they are shown again, I really have no idea what is going on there
656: [15:08:18] * webguest quit (Ping timeout: 250 seconds)
657: [15:09:44] <feejin_> gumble I've had page weirdness like that when changing page types, deleting and re-adding usually works for me too :)
658: [15:15:24] <g4b0> kinglozzer: no one works :(
659: [15:25:02] * catcher has joined #silverstripe
660: [15:27:27] * zfmf1 quit (Remote host closed the connection)
661: [15:28:04] * zfmf1 has joined #silverstripe
662: [15:39:09] <willmorgan> sounds like you need to check the database
663: [15:39:14] <willmorgan> might be that the classname field is empty
664: [15:39:19] <willmorgan> my £0.02
665: [15:40:54] * mento quit (Quit: Page closed)
666: [15:45:57] * Hippiee quit (Ping timeout: 256 seconds)
667: [15:48:02] * Shrike_Finland has joined #silverstripe
668: [15:54:28] * catcher has left #silverstripe
669: [15:54:34] * catcher has joined #silverstripe
670: [16:00:23] <samthejarvis_> Hey all, does anyone use a stress testing program/service? If so what do you use?
671: [16:02:17] * g4b0 quit (Quit: Sto andando via)
672: [16:06:38] <catcher> e meter?
673: [16:08:59] <willmorgan> samthejarvis_: blitz.io is pretty good
674: [16:09:04] <willmorgan> for the cheap, try apache ab :)
675: [16:10:15] <samthejarvis_> sweet, thanks will :)
676: [16:10:40] <samthejarvis_> e meter, will try that out too
677: [16:23:49] * elgrodo quit (Read error: Connection reset by peer)
678: [16:26:12] <catcher> samthejarvis_, mine was just a bad scientology joke. ;)
679: [16:27:14] <samthejarvis_> catcher, haha
680: [16:28:37] <samthejarvis_> them crazy scientologists
681: [16:29:04] * kinglozzer quit (Remote host closed the connection)
682: [16:30:14] <gumble> is there a way to automatically mark required form fields or add a css class to them?
683: [16:31:25] <willmorgan> gumble: yes, should be done with a RequiredFields validator
684: [16:31:46] <willmorgan> if you're using the stock templates you should be seeing an extra class for the required fields
685: [16:32:26] <willmorgan> I'm doing some work on DataFormatters here, specifically making them able to feed back errors to a client from DataObject->validate. Any thoughts on this commit are welcome: https://github.com/willmorgan/sapphire/commit/ba1b69d3b04ba00014333d4563b9134daa287e43
686: [16:32:49] * feejin_ quit (Remote host closed the connection)
687: [16:37:08] * samthejarvis_ quit (Ping timeout: 250 seconds)
688: [16:38:39] * sekjal quit (Quit: Leaving)
689: [16:40:51] * jcwacky quit (Quit: jcwacky)
690: [16:43:25] <willmorgan> Also related: https://github.com/BetterBrief/silverstripe-restfulserver/compare/improved
691: [16:44:13] * popeshoe quit (Quit: This computer has gone to sleep)
692: [16:46:43] * Nivery quit (Quit: Nivery)
693: [16:47:56] * webguest has joined #silverstripe
694: [16:48:54] <webguest> i have a form with multiple steps.. i would like to clear sessions on first page load, but when i put Session::clear('MemberID'); in the init... i can't set / get it in other functions, any idea's?
695: [16:58:20] * osterlaus has joined #silverstripe
696: [17:16:36] * willmorgan quit (Ping timeout: 248 seconds)
697: [17:19:10] * webguest quit (Ping timeout: 250 seconds)
698: [17:33:04] * osterlaus quit (Quit: Leaving.)
699: [17:39:57] * deschebbes quit (Ping timeout: 264 seconds)
700: [17:48:54] * webguest has joined #silverstripe
701: [18:10:38] * joelpittet quit (Remote host closed the connection)
702: [18:36:41] * willmorgan has joined #silverstripe
703: [18:40:45] * zfmf1 quit (Ping timeout: 256 seconds)
704: [18:42:23] * popeshoe has joined #silverstripe
705: [18:43:16] * Liquide has joined #silverstripe
706: [18:48:07] * gumble quit (Ping timeout: 256 seconds)
707: [19:00:55] * pex has joined #silverstripe
708: [19:04:15] * gelignite has joined #silverstripe
709: [19:34:45] * johnzuh has joined #silverstripe
710: [19:35:00] <johnzuh> i need help
711: [19:35:09] * david_bru has joined #silverstripe
712: [19:35:37] <willmorgan> the samaritans are generally the best people to talk to in that case
713: [19:35:43] * hans_ has joined #silverstripe
714: [19:35:57] * david_bru quit (Client Quit)
715: [19:36:42] <johnzuh> lol
716: [19:36:53] <johnzuh> POST /silverstripe/install.php
717: [19:36:55] <johnzuh> Line 239 in /Library/WebServer/Documents/silverstripe/framework/control/HTTP.php
718: [19:36:56] <johnzuh> Source
719: [19:36:58] <johnzuh> 230
720: [19:37:00] <johnzuh> 231 /**
721: [19:37:01] <johnzuh> 232 * Set the maximum age of this page in web caches, in seconds
722: [19:37:03] <johnzuh> 233 */
723: [19:37:04] <johnzuh> 234 public static function set_cache_age($age) {
724: [19:37:04] <willmorgan> nope
725: [19:37:05] <willmorgan> nope
726: [19:37:06] <johnzuh> 235 self::$cache_age = $age;
727: [19:37:07] <willmorgan> stop
728: [19:37:07] <johnzuh> 236 }
729: [19:37:09] <johnzuh> 237
730: [19:37:10] <johnzuh> 238 public static function register_modification_date($dateString) {
731: [19:37:12] <johnzuh> 239 $timestamp = strtotime($dateString);
732: [19:37:13] <johnzuh> 240 if($timestamp > self::$modification_date)
733: [19:37:15] <johnzuh> 241 self::$modification_date = $timestamp;
734: [19:37:16] <johnzuh> 242 }
735: [19:37:18] <johnzuh> 243
736: [19:37:19] <johnzuh> 244 public static function register_modification_timestamp($timestamp) {
737: [19:37:21] <johnzuh> 245 if($timestamp > self::$modification_date)
738: [19:37:22] <johnzuh> Trace
739: [19:37:23] <willmorgan> RIP this channel
740: [19:37:24] <johnzuh> strtotime(0000-00-00 00:00:00)
741: [19:37:26] <johnzuh> HTTP.php:239
742: [19:37:27] <johnzuh> HTTP::register_modification_date(0000-00-00 00:00:00)
743: [19:37:29] <johnzuh> DataObject.php:375
744: [19:37:30] <johnzuh> DataObject->__construct(Array,,DataModel)
745: [19:37:32] <johnzuh> ReflectionClass->newInstanceArgs(Array)
746: [19:37:33] <johnzuh> Injector.php:845
747: [19:37:35] <johnzuh> InjectionCreator->create(Group,Array)
748: [19:37:35] <willmorgan> please someone kick him -_-
749: [19:37:36] <johnzuh> Injector.php:486
750: [19:37:38] <johnzuh> Injector->instantiate(Array,Group,prototype)
751: [19:37:39] <johnzuh> Injector.php:760
752: [19:37:41] <johnzuh> Injector->get(Group,,Array)
753: [19:37:42] <johnzuh> Injector.php:814
754: [19:37:44] <johnzuh> Injector->create(Group,Array,,DataModel)
755: [19:37:45] <johnzuh> DataList.php:642
756: [19:37:46] <kerosene> oh wow
757: [19:37:47] <johnzuh> DataList->createDataObject(Array)
758: [19:37:48] <johnzuh> DataList.php:717
759: [19:37:50] <johnzuh> DataList->first()
760: [19:37:50] <willmorgan> johnzuh: paste it on www.sspaste.com, don't shit up the channel mate
761: [19:37:51] <johnzuh> Member.php:143
762: [19:37:53] <johnzuh> Member->requireDefaultRecords()
763: [19:37:54] <johnzuh> DatabaseAdmin.php:236
764: [19:37:56] <johnzuh> DatabaseAdmin->doBuild(1)
765: [19:37:57] <johnzuh> install.php5:1180
766: [19:37:59] <johnzuh> Installer->install(Array)
767: [19:38:00] <johnzuh> install.php5:241
768: [19:38:02] <johnzuh> include(/Library/WebServer/Documents/silverstripe/framework/dev/install/install.php5)
769: [19:38:03] <johnzuh> install.php:26
770: [19:38:05] <johnzuh> include(/Library/WebServer/Documents/silverstripe/framework/dev/install/install.php)
771: [19:38:06] <johnzuh> install.php:13
772: [19:38:08] <johnzuh> [Warning] strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead
773: [19:38:11] <johnzuh> I am so tired
774: [19:38:12] <johnzuh> thanks mate
775: [19:38:14] <johnzuh> hahahahaha
776: [19:38:28] <kerosene> that was.. impressive
777: [19:38:52] * chillu has joined #silverstripe
778: [19:39:44] <willmorgan> right mr johnzuh, because i'm feeling nice i'm not going to ignore you for pasting your life story in to IRC :)
779: [19:39:51] <johnzuh> http://www.sspaste.com/paste/show/51a507dec3b3a
780: [19:40:20] <willmorgan> do you have a php.ini anywhere?
781: [19:40:35] <johnzuh> @William after a stressful day during installation u set to forget the ethics of presenting your problems in the forum
782: [19:40:37] <johnzuh> sorry about that
783: [19:40:43] <johnzuh> thanks anyway
784: [19:40:46] <johnzuh> yeah
785: [19:40:48] <johnzuh> i do have that
786: [19:41:00] <willmorgan> @Johnathan: add this to it:
787: [19:41:10] <johnzuh> ok
788: [19:41:11] <willmorgan> date.timezone = Europe/Berlin
789: [19:41:15] <willmorgan> restart apache
790: [19:41:19] <johnzuh> ok
791: [19:41:25] <johnzuh> aight
792: [19:41:29] <willmorgan> i assume you are in Germany? or?
793: [19:41:31] <johnzuh> let me give that a shot
794: [19:41:32] <johnzuh> yeah
795: [19:41:34] <johnzuh> sure
796: [19:41:40] <willmorgan> good
797: [19:41:44] * webguest quit (Ping timeout: 250 seconds)
798: [19:41:53] <willmorgan> right, afk for a bit to make some stuffed peppers, apparently...
799: [19:41:58] * kminev has joined #silverstripe
800: [19:44:19] * pex1 has joined #silverstripe
801: [19:44:19] * pex quit (Read error: Connection reset by peer)
802: [19:45:54] <hans_> Hello out there. Does anybody know how to add a database column to SS 3.1 Image class?
803: [19:46:04] * kminev quit (Ping timeout: 250 seconds)
804: [19:46:52] <hans_> I managed to extend the Image class with new methods, but do need to add an extrac db column for each image I can use to sort images by this field
805: [19:48:00] <simon_w> hans_, http://doc.silverstripe.org/framework/en/reference/dataextension#adding-extra-database-fields
806: [19:55:14] <hans_> simon_w
807: [19:57:17] <hans_> Simon thanks, I know this resource but did not yet manage to implement it
808: [19:57:59] <hans_> I extended the Image class with a new method to return the ExifDate of an image
809: [19:58:30] <hans_> What I now want to achieve is to add a DB field to the Image class which I can use to sort images by the ExifDate
810: [19:59:44] <simon_w> If you're using a DataExtension (like you should be), you have a private static $db array that adds the field, then an onBeforeWrite() method that sets it if it hasn't been set yet
811: [20:00:39] <hans_> Ok, I have the private db field, but somehow missed the onBeforeWrite() method
812: [20:04:35] <johnzuh> I did change the date.timezone = Europe/Berlin restarted apache and this is what i get http://www.sspaste.com/paste/show/51a50d6820f11
813: [20:04:44] * chillu quit (Quit: chillu)
814: [20:05:13] <FrozenFire> johnzuh, Are you sure that the ini you're changing is the one your webserver is using?
815: [20:05:31] <FrozenFire> In some hosting situations, it might be a better idea to simply do it through .htaccess
816: [20:05:41] <FrozenFire> Or _ss_environment.php
817: [20:05:51] <johnzuh> where do i find .htaccess?
818: [20:06:03] <johnzuh> on Mac Osx
819: [20:06:06] <FrozenFire> _ss_environment.php is probably better, now that I think of it
820: [20:06:11] <johnzuh> ok
821: [20:06:25] <johnzuh> running default local server on mac
822: [20:06:38] <FrozenFire> Probably a bad idea, but what do I know? :P
823: [20:06:43] <johnzuh> lol
824: [20:07:16] <FrozenFire> PHP 5.4 has a built-in webserver, by the way.
825: [20:07:18] <FrozenFire> Probably more reliable.
826: [20:07:27] <johnzuh> ok let me try these other options
827: [20:08:19] <simon_w> FrozenFire, really, get a clue :p
828: [20:08:41] <hans_> @simon_w: ok have a db field of type SS_Datetime and a public method ExifDate which returns the ExifDate of an image
829: [20:09:10] <hans_> how can I update/write the ExifDate of all images to the db field
830: [20:09:19] * FrozenFire has been hacking at ZF2 to make it support the built-in webserver
831: [20:09:20] <FrozenFire> :P
832: [20:09:40] <johnzuh> @FronzenFire lol
833: [20:10:39] <FrozenFire> It's surprisingly hard
834: [20:10:52] <simon_w> hans_, write something that loops through all the images and does so
835: [20:10:58] <FrozenFire> It can be done in the skeleton application's index.php, but that causes some issues
836: [20:13:04] <hans_> @simon_w: thanks will try to implement it
837: [20:13:12] * hans_ quit ()
838: [20:13:38] <johnzuh> interesting
839: [20:15:11] * pex1 quit (Read error: Connection reset by peer)
840: [20:18:11] <abitran> johnzuh: are you sure you edited php.ini?
841: [20:18:42] <johnzuh> abitran i did
842: [20:19:50] <abitran> and did you put the value inside "s?
843: [20:20:53] <johnzuh> Aight let me tell you something i did from the beginning which might be causing problems whiles i was having preinstallation issues i commented out this code snippet in install.php5 ( $this->requireDateTimezone(array('PHP Configuration', 'date.timezone setting and validity', 'date.timezone option in php.ini must be set correctly.', ini_get('date.timezone'))); ) as recommended from a...
844: [20:20:55] <johnzuh> ...forum i am going back to uncomment that line
845: [20:21:08] <johnzuh> probably might be the remote cause of my problems
846: [20:21:24] <johnzuh> yeah i removed all quotes
847: [20:22:41] * UndefinedOffset quit (Quit: Leaving.)
848: [20:23:06] * UndefinedOffset has joined #silverstripe
849: [20:25:57] <johnzuh> Fellas now i am back to my previous issue i get the follow message in PHP configuration requirements checklist before the installation starts i.e ...... date.timezone setting and validity date.timezone option in php.ini must be set correctly.
850: [20:26:45] <johnzuh> and i my time zone is set correctly i can copy and paste my php.ini file if the need be
851: [20:27:06] <abitran> copy/paste the datezone line please
852: [20:27:12] <johnzuh> ok sure
853: [20:27:24] * UndefinedOffset quit (Ping timeout: 245 seconds)
854: [20:28:04] <johnzuh> [Date]
855: [20:28:06] <johnzuh> ; Defines the default timezone used by the date functions
856: [20:28:07] <johnzuh> ; http://php.net/date.timezone
857: [20:28:09] <johnzuh> ;date.timezone = Europe/Berlin
858: [20:28:14] <johnzuh> this is it
859: [20:28:27] <abitran> put it inside "
860: [20:28:38] <johnzuh> ok
861: [20:28:40] <abitran> and get rid off the ;
862: [20:28:44] * pex has joined #silverstripe
863: [20:28:48] <johnzuh> ok
864: [20:28:50] <simon_w> The quotes don't matter, only the ;
865: [20:29:00] <johnzuh> ok
866: [20:29:03] <abitran> yeah.. but is more fancy :)
867: [20:29:09] <johnzuh> hahahahaha
868: [20:29:54] * nickmolhoek has joined #silverstripe
869: [20:29:54] * nickmolhoek quit (Remote host closed the connection)
870: [20:30:09] * nickmolhoek has joined #silverstripe
871: [20:36:51] <johnzuh> abitran % simon_w looks better now but i guess just a few hurdles to cross
872: [20:36:51] * pex quit (Read error: Connection reset by peer)
873: [20:36:57] <johnzuh> thanks in advance
874: [20:38:27] <johnzuh> now i am getting this http://www.sspaste.com/paste/show/51a5159e5b7e2
875: [20:39:19] <abitran> no prob.. what os/web server are you using?
876: [20:39:20] <johnzuh> I guess i need to tweak something in my local server config settings
877: [20:39:44] <johnzuh> hang on let me give you details
878: [20:39:49] * chillu has joined #silverstripe
879: [20:40:26] <simon_w> johnzuh, edit /etc/apache2/httpd.conf, in the <Directory "/Library/WebServer/Documents"> block set AllowOverride to All
880: [20:40:44] <johnzuh> ok man
881: [20:40:49] <johnzuh> i am right on it
882: [20:40:56] <simon_w> Also, make sure the "LoadModule rewrite_module libexec/apache2/mod_rewrite.so" line isn't commented (shouldn't start with a #)
883: [20:41:17] <johnzuh> in my case might not be apache
884: [20:41:21] * pex has joined #silverstripe
885: [20:41:22] <abitran> simon.. maybe is not installed the mod_rewrite
886: [20:41:37] <abitran> that's why I'm asking for specs..
887: [20:41:54] <simon_w> abitran, [08:06:10] <johnzuh> running default local server on mac
888: [20:41:54] <simon_w>
889: [20:42:49] <abitran> uhmmm.. I'm not familiar with mac.. but should be apache.. no idea how to list installed components..
890: [20:43:00] <simon_w> It's installed
891: [20:43:25] <johnzuh> i am using a mac osx 10.7.5/default local server
892: [20:43:30] <johnzuh> ok
893: [20:43:44] <johnzuh> ok i will trace using the path you provided
894: [20:43:53] <abitran> ok.. so check in the .conf file as simon told u..
895: [20:44:00] <johnzuh> probably in the same location
896: [20:44:00] * DigNZ has joined #silverstripe
897: [20:44:01] * DigNZ quit (Remote host closed the connection)
898: [20:44:14] <johnzuh> ok sure
899: [20:44:15] * DigNZ has joined #silverstripe
900: [20:47:49] * pex quit (Read error: Connection reset by peer)
901: [20:51:06] * pex has joined #silverstripe
902: [21:08:32] * zippy__ has joined #silverstripe
903: [21:12:09] * Jedateach has joined #silverstripe
904: [21:12:17] <zippy__> Morning
905: [21:13:36] <Jedateach> how do you access joined data in ss3?
906: [21:14:06] <zippy__> $this->Foo - where Foo is an object in a has_many relationship
907: [21:14:07] <zippy__> or
908: [21:14:31] <zippy__> $this->Foos() - where Foos is a group of items in a has_many / many_many relationship
909: [21:15:20] <Jedateach> right, so it packages up joined data in seperate objects?
910: [21:15:45] <zippy__> take a look at the docs at relationships
911: [21:15:57] <zippy__> or, write what your doing so I can better answer your question
912: [21:16:01] * MrJeremy has joined #silverstripe
913: [21:17:06] <MrJeremy> Time for more Silverstripe
914: [21:17:19] <Jedateach> Passing a $join statement to DataObject::get will filter results further by the JOINs performed against the foreign table. It will NOT return the additionally joined data
915: [21:17:26] <Jedateach> zippy__: that kind of answers my question
916: [21:17:55] <Jedateach> in ss2 I would grab the joined data without needing to run additional queries
917: [21:19:02] <Jedateach> if I understand correctly ,it apppers some of the power of joins is lost in ss3?
918: [21:20:28] <zippy__> You can still do custom queries
919: [21:20:31] <zippy__> what are you trying to do ?
920: [21:20:57] <Jedateach> speed up some code by joining rater than multiple queries
921: [21:23:01] <simon_w> Jedateach, DataObject::get() in ss2 has the same behaviour
922: [21:23:31] <Jedateach> simon_w: I'm sure I could call $result->JoinedField however?
923: [21:23:39] <simon_w> Nope
924: [21:23:46] <Pyromanik> batsignal to the tankrphone
925: [21:23:57] <simon_w> Well, if it was an extraField and you were going through a many_many getter
926: [21:24:18] <simon_w> Then it'd be added to the select clause, otherwise only the fields for the actual object were selected
927: [21:24:43] <Jedateach> simon_w: right, could I update the select for a datalist?
928: [21:25:09] <simon_w> With rather a lot of difficulty
929: [21:25:10] <Jedateach> …and would it be accessible in the generated objects?
930: [21:25:24] * travis-ci has joined #silverstripe
931: [21:25:24] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#157 (3.1 - 41faaec : Sean Harvey): The build passed.
932: [21:25:24] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/0c0e7a49ff68...41faaec2d7ce
933: [21:25:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7578738
934: [21:25:24] * travis-ci has left #silverstripe
935: [21:26:11] * travis-ci has joined #silverstripe
936: [21:26:12] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#156 (3.1 - 0c0e7a4 : Sean Harvey): The build passed.
937: [21:26:12] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/80bcf5e713b6...0c0e7a49ff68
938: [21:26:12] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/7578527
939: [21:26:12] * travis-ci has left #silverstripe
940: [21:27:20] <johnzuh> Still having the errors but need to hit the hay thanks anyway guys. Will continue tomorrow feel very tired
941: [21:27:25] <johnzuh> appreciate
942: [21:27:41] <Pyromanik> hay is actually quite stabby
943: [21:27:45] <Pyromanik> thanks to all the straw
944: [21:27:52] <Pyromanik> not a good idea to hit it :<
945: [21:27:54] <simon_w> Bah, why did Apple have to use a different touch technology for their trackpads
946: [21:28:03] <Pyromanik> itches like a mother fu**er
947: [21:28:49] * gelignite quit (Quit: http://bit.ly/nkczDT)
948: [21:28:53] <Pyromanik> maybe they did things different back in the day, but I sure wouldn't like to sleep on it, at least not without a shit load of blankets to insulate me from it... but a hay bale isn't exactly soft either...
949: [21:31:01] * DesignerX has joined #silverstripe
950: [21:32:03] * johnzuh quit (Ping timeout: 252 seconds)
951: [21:33:41] * pex quit (Ping timeout: 248 seconds)
952: [21:33:48] <simon_w> Turns out I use my trackpad a lot. Makes not being able to use it a bit more interesting
953: [21:34:00] <zippy__> using the trackpad gave me RSI
954: [21:34:09] <zippy__> trackpad + couch
955: [21:34:16] <zippy__> could just be old age……
956: [21:34:39] <zippy__> I think my hair is starting to thin out……
957: [21:35:19] * willr_ has joined #silverstripe
958: [21:35:49] <simon_w> Well, this trackpad won't work on a couch. Needs something firm underneath to be able to click
959: [21:35:56] <simon_w> But my gloves don't work on it
960: [21:36:14] <zippy__> gloves? cold in welly is it
961: [21:36:42] * willmorgan quit (Read error: Connection reset by peer)
962: [21:36:46] <simon_w> Especially in this office
963: [21:37:05] <simon_w> Holes in the walls, massive single pane windows, no heating
964: [21:37:22] <zippy__> be good for summer, not that wellington gets much of one
965: [21:37:37] <simon_w> Nope, last summer was insanely hot
966: [21:37:44] * willr_ is glad he has the the furnace of a heater behind them
967: [21:37:47] <willr_> him*
968: [21:37:48] * ^pH has joined #silverstripe
969: [21:37:55] <simon_w> willr_, swap office? :p
970: [21:37:55] <willr_> simon_w not insane.
971: [21:38:26] <simon_w> willr_, not once we removed the ice-machine. Was still too hot to work in the afternoons
972: [21:40:34] <willr_> lv4 under SS is still for rent. Move offices!
973: [21:40:34] * ^pH- quit (Ping timeout: 252 seconds)
974: [21:40:59] <simon_w> They kicked us out cause we weren't paying enough!
975: [21:45:40] * MrJeremy quit (Ping timeout: 276 seconds)
976: [21:46:01] <willr_> Well if it's still empty, that sure worked out well for them :P
977: [21:46:46] <willr_> also big warm headphones are awesome on cold days
978: [21:47:09] * MrJeremy has joined #silverstripe
979: [21:51:43] * MrJeremy quit (Ping timeout: 252 seconds)
980: [21:52:41] * MrJeremy has joined #silverstripe
981: [21:53:52] * War^DoG has joined #silverstripe
982: [21:54:07] <War^DoG> hi
983: [21:54:24] <War^DoG> Someone who can help me?
984: [21:55:26] <War^DoG> as a group could be done if the object is one related to MANY_MANY
985: [22:00:36] <catcher> Does SS EmailField validator not test for a domain suffix, or am I doing it wrong?
986: [22:01:09] * MrJeremy quit (Ping timeout: 245 seconds)
987: [22:02:26] * MrJeremy has joined #silverstripe
988: [22:02:41] <catcher> and if not, is there anything better in core than filter_var with filter_validate_email for server-side email validation?
989: [22:04:56] <simon_w> catcher, EmailField checks for a domain with more than one part
990: [22:05:03] <simon_w> War^DoG, what do you mean?
991: [22:06:09] <catcher> simon_w, name@domain passes though
992: [22:07:44] <simon_w> catcher, using a custom validator on your form?
993: [22:09:07] <catcher> simon_w, yes, are some parts of EmailField's validation server-side?
994: [22:09:26] <simon_w> All of the fields' validators are server side
995: [22:10:00] <catcher> really? I get an error if the '@' is missing, looks client-side.
996: [22:10:20] <simon_w> That'll be your browser validating the type=email, nothing SS specific
997: [22:10:44] <simon_w> You need something like foreach($this->form->Feilds() as $field) $field->validate($this); in your validator to validate the individual fields
998: [22:11:17] <catcher> oh interesting, I didn't know browsers did a little email validation.
999: [22:11:28] <catcher> ty simon_w
1000: [22:13:50] <War^DoG> h simon_w look http://sspaste.com/paste/show/51a52bfa91a41
1001: [22:14:00] * priithansen quit (Quit: priithansen)
1002: [22:14:36] <War^DoG> but want to group the second object that is related to the first
1003: [22:16:01] <simon_w> War^DoG, to start with, that won't work since Myobj2.Other is a set of values. Secondly, groupBy only works on fields
1004: [22:16:25] <War^DoG> not if I explain well .. but I think with the paste will understand what I do ..
1005: [22:16:34] <simon_w> Why not loop over MyObj2, and access the many_many form that end?
1006: [22:16:41] <simon_w> *from
1007: [22:18:01] <War^DoG> if you really wanted to see if that could initially do a join to the table ..
1008: [22:18:14] <War^DoG> was just curious ..
1009: [22:20:46] <War^DoG> so if I have problems know if there is already something like translatable_modeladmin for SS3?
1010: [22:30:02] * robert_ quit (Read error: Connection reset by peer)
1011: [22:36:26] <War^DoG> simon_w, ?
1012: [22:46:19] <Pyromanik> Why chrome so bad at internets!?
1013: [22:46:24] <Pyromanik> ss23: WHY?
1014: [22:47:54] <Pyromanik> War^DoG: Templates: $MyObj2.GroupedBy(Other)
1015: [22:48:10] <Pyromanik> oh you have that already
1016: [22:48:38] <Pyromanik> what simon_w said probably.
1017: [22:48:46] <Pyromanik> ss23: why so bad why?
1018: [22:49:20] * spronk2 has joined #silverstripe
1019: [22:49:41] <ss23> Pyromanik: Y R U SO BAD AT CHROME
1020: [22:50:52] * spronk has left #silverstripe
1021: [22:52:12] * spronk has joined #silverstripe
1022: [22:52:56] <Pyromanik> ss23: NO CHROME SO BAD AT FLOATS
1023: [22:53:12] <Pyromanik> LOOK
1024: [22:53:19] <Pyromanik> SO BAD, OKAY
1025: [22:58:14] <ss23> lol
1026: [22:58:22] * SightUnseen has joined #silverstripe
1027: [22:58:44] <catcher> anyone have good or bad experiences with sass?
1028: [22:59:17] * SightUnseen has left #silverstripe
1029: [22:59:25] <spronk> the only reason why i would use sass is compass
1030: [22:59:48] <spronk> aaaand the only reason why i use preprocessors is basic stuff like variables and browser prefixes
1031: [22:59:56] <spronk> anything more and IMO you start running into CSS quality issues
1032: [23:01:09] * spronk2 quit (Quit: spronk2)
1033: [23:01:50] <spronk> catcher: what specifically are you wanting to hear? :)
1034: [23:01:59] <catcher> haha
1035: [23:02:19] <catcher> It all started with the consideration of using the gumby 2 front-end framework with SS for a project.
1036: [23:02:39] <Pyromanik> less?
1037: [23:02:44] <Pyromanik> there's an SS less module
1038: [23:03:02] <Pyromanik> wants writable theme css folder though
1039: [23:03:04] <simon_w> People still use less?
1040: [23:03:07] <catcher> led to trying to figure out how to compile sass, which led to me trying to figure out if this is worth learning.
1041: [23:03:10] <Pyromanik> less is bad?
1042: [23:03:20] <simon_w> Didn't sass kinda win?
1043: [23:03:27] <Pyromanik> sass wants more dependencies.
1044: [23:03:29] <spronk> catcher: sass becomes a lot better with one of those watcher tools
1045: [23:03:30] <Pyromanik> simon_w: php won
1046: [23:03:33] <Pyromanik> $blah
1047: [23:03:40] <Pyromanik> header content type = css
1048: [23:03:40] <Pyromanik> done
1049: [23:03:41] <catcher> spronk, watcher tools?
1050: [23:03:50] <Pyromanik> $allmygreens
1051: [23:03:53] <spronk> catcher: they look for changes in your sass files and compile automatically
1052: [23:03:54] <Pyromanik> $alltheblues
1053: [23:03:55] <Pyromanik> etc
1054: [23:04:08] <catcher> spronk, ah, are those gems as well?
1055: [23:04:17] <simon_w> catcher, built into sass
1056: [23:04:28] <simon_w> just stick --watch in the command
1057: [23:04:30] <spronk> yeah there's a ruby watcher API that it uses
1058: [23:05:11] <catcher> does that mean they're long-running daemons?
1059: [23:05:19] <spronk> only while you dev
1060: [23:05:21] <catcher> it's*
1061: [23:05:39] <spronk> you deploy plain css
1062: [23:05:43] <spronk> unless you're fucking mad
1063: [23:06:03] <simon_w> It actually makes sense to compile the production CSS separate from the dev one
1064: [23:07:08] <catcher> sounds like it's worth sifting through the docs and piecing this together.
1065: [23:07:33] <catcher> should I expect a rough go trying to work in a front-end framework like gumby2 with SS?
1066: [23:07:42] <Pyromanik> wtf is a gumby?
1067: [23:07:45] <simon_w> Doubt it
1068: [23:07:46] <spronk> simon__w: how so?
1069: [23:08:06] <spronk> or do you mean minifying ?
1070: [23:08:09] <simon_w> spronk, live CSS is compressed, no comments. Dev is expanded, with location comments
1071: [23:08:32] <spronk> yeah
1072: [23:09:11] <spronk> the one thing missing from css preproc workflows at the moment is browser editors
1073: [23:09:15] <spronk> or at least, last time i looked
1074: [23:09:22] * spronk uses firebug a lot for editing actual css files
1075: [23:09:37] <Pyromanik> god gumby. I'd almost be tempted to try it if it wasn't just a bunch of other tools slapped together under a fake brand with a dickload of dependencies and a crap name.
1076: [23:11:50] <catcher> seems like a decent way to learn said tools
1077: [23:14:20] <catcher> is compass mostly a watch/compile tool?
1078: [23:22:07] <Pyromanik> I was confused about the difference too.
1079: [23:22:10] <Pyromanik> So I just looked it up.
1080: [23:22:17] <Pyromanik> Sass is the css preprocessor
1081: [23:22:31] <Pyromanik> compass isn't much more than a framework around making sass.
1082: [23:22:38] <Pyromanik> ie, pre-defined mixins, etc.
1083: [23:22:54] <Pyromanik> and a sprite image -> sass generator.
1084: [23:23:54] <Pyromanik> catcher: ^
1085: [23:25:00] <catcher> and a watch tool
1086: [23:25:28] <simon_w> That's part of sass
1087: [23:26:04] <catcher> cool, I'll need to hit the docs soon
1088: [23:26:06] <Pyromanik> catcher: compass is built on sass, not the other way around.
1089: [23:26:13] <Pyromanik> gg chrome
1090: [23:26:15] <Pyromanik> float bugs
1091: [23:26:19] <Pyromanik> reported when they appeared
1092: [23:26:23] <Pyromanik> 3 months later, still no fix.
1093: [23:26:31] <Pyromanik> so much for quick updates
1094: [23:27:57] <Pyromanik> two whole versions released since report
1095: [23:28:06] <simon_w> It's not like anyone uses floats
1096: [23:29:09] <Pyromanik> no, course not.
1097: [23:29:20] <Pyromanik> position: fixed all the things.
1098: [23:30:04] <simon_w> ooh, webkit dropped the prefix on document.hidden
1099: [23:30:10] * FrozenFire grumbles at the CMS layout for GridField
1100: [23:30:19] <spronk> ugh
1101: [23:30:22] <spronk> you seen this new Opera Next, pyro?
1102: [23:30:35] <FrozenFire> Specifically the apparent use of Javascript to create links on each item in the GridField, instead of an anchor
1103: [23:31:11] <FrozenFire> Which means all of the action buttons cause two separate navigations. The first to the action, and the second to the GridFieldDetailForm for that item
1104: [23:32:24] <Pyromanik> spronk: nope, is that they one where they switch to support all the float bugs?
1105: [23:32:59] * Pyromanik wishes they'd make presto BSD or GPL in light of switching engine & dropping support.
1106: [23:33:11] <Pyromanik> or just open their engine INSTEAD of switching
1107: [23:33:25] <Pyromanik> I like presto, it works well.
1108: [23:33:41] <spronk> Pyromanik: haha, yeah pretty much
1109: [23:33:46] <spronk> presto is awesome for js
1110: [23:33:59] <spronk> chrome, safari, and opera next all have the same UI-stalling choppy bugs
1111: [23:34:05] <spronk> probably faster overall, but feels nasty
1112: [23:34:08] <spronk> presto is schmooove
1113: [23:34:30] <spronk> Pyromanik: opera next is basically chromium with a little bit of opera skinning
1114: [23:34:37] <spronk> super disappointing to opera users
1115: [23:34:50] <Pyromanik> spronk: well, not really.
1116: [23:34:56] <Pyromanik> it mostly depends on teh RAMz
1117: [23:34:57] <Pyromanik> also
1118: [23:35:11] <Pyromanik> chrome safari and firefox all use jit for js
1119: [23:35:20] <Pyromanik> opera doesn't, last I checked.
1120: [23:35:24] <spronk> mm
1121: [23:35:33] <Pyromanik> so their engines use more memories, but opera's is far slower.
1122: [23:36:02] <Pyromanik> not that it's too noticable for humans in most cases.
1123: [23:36:46] * Pyromanik facepalms as float bug magically fixes itself as he randomly mouses over things.
1124: [23:36:48] <Pyromanik> WTF
1125: [23:36:52] <simon_w> Opera scrolls smoothly on pocketrent.com, firefox and safari stutter
1126: [23:36:54] <Pyromanik> change nothing, sudden reflow triggered
1127: [23:37:18] <Pyromanik> presto has a few layout bugs, but nothing so mad as this float issues.
1128: [23:37:19] <simon_w> Also, IE8 in a VM worked great
1129: [23:37:43] <spronk> i find webkit-based browsers excruciatingly painful for scrolling jitters and general jitteriness
1130: [23:37:47] <spronk> drives me nuts
1131: [23:38:11] <Pyromanik> omg
1132: [23:38:22] <Pyromanik> who was taht prick that decided to animate text selection in chrome?
1133: [23:38:28] <spronk> lulz
1134: [23:38:30] <Pyromanik> I'm all like, ARE YOU SERIOUS!?
1135: [23:38:38] <Pyromanik> I want instant reponse.
1136: [23:38:48] <spronk> text selection in chrome is shitr
1137: [23:38:51] <Pyromanik> not a smooth blue line slowly gobbling up all my texts
1138: [23:38:52] <spronk> can't select bits of a URL
1139: [23:38:53] <spronk> YAY
1140: [23:39:14] <Pyromanik> spronk: that's because it selects all the things, then decides whether or not you want them when you copy.
1141: [23:39:30] <Pyromanik> that whole "DO EVERYTHING FOR THE USER, MAKE IT EASIER" and in the process fucking it up and making it shitter
1142: [23:39:43] <spronk> mm
1143: [23:39:44] <simon_w> Chrome? For the user? Since when?
1144: [23:39:55] <spronk> since ever?
1145: [23:39:58] <spronk> or at leastr
1146: [23:40:05] <spronk> it's google's bastardised idea of "for the user"
1147: [23:40:15] <simon_w> Unstable WebKit/Blink builds all good in production!
1148: [23:40:35] <Pyromanik> chrome: engineers play thing.
1149: [23:40:46] <Pyromanik> "Users love smooth shit, give them animations on ALL thing things"
1150: [23:40:49] <Pyromanik> scrolling
1151: [23:40:53] <Pyromanik> text selectiong
1152: [23:41:01] <spronk> at least the apple webkit guys are a *little* more restrained
1153: [23:41:03] <Pyromanik> next mouse movement will be delayed
1154: [23:41:24] <Pyromanik> then gecko chaps are all "LOL NOPE" to svg standard.
1155: [23:41:38] <Pyromanik> "svg fonts? nah, woff instead you bastards"
1156: [23:41:55] <simon_w> Safari's WebKit branches get feature-freeze a month or so out from a release
1157: [23:42:12] <spronk> god...
1158: [23:42:16] <spronk> all these browsers are pretty shit
1159: [23:42:48] * catcher quit (Ping timeout: 256 seconds)
1160: [23:45:20] <simon_w> And it's just going to get worse!
1161: [23:46:11] <Pyromanik> I know
1162: [23:46:17] <Pyromanik> gecko the only sanity.
1163: [23:46:31] <Pyromanik> and that's saying something :<
1164: [23:49:07] <spronk> mm
1165: [23:49:11] <spronk> too bad firefox is so fucking slow
1166: [23:54:31] <Pyromanik> it's not?
1167: [23:54:54] <spronk> oh it is
1168: [23:54:57] <spronk> although
1169: [23:54:59] <spronk> that may be firebug
1170: [23:55:10] <spronk> but if i leave browser open for more than a few hours it just starts chugging madtime
1171: [23:59:50] <Pyromanik> I have no issues
1172: [23:59:59] <Pyromanik> but yeah, firebug is the biggest slowdown

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