#silverstripe IRC Log

IRC log for 27 August 2014

All timestamps are in UTC.

1: [00:00:35] * Selay has left #silverstripe
2: [00:01:08] * Selay has joined #silverstripe
3: [00:04:02] <antmas> can anyone help me convert this to routes.yml? http://www.sspaste.com/paste/show/53fd1bd374975
4: [00:07:34] * nicolaas has joined #silverstripe
5: [00:08:25] <nicolaas> hi - can anyone please download this little module and try it out? https://drive.google.com/file/d/0B9HUrSaBxJY8LVBtRFlXbFM3TE0/edit?usp=sharing ... It is in relation to: https://groups.google.com/forum/#!topic/silverstripe-dev/m8PmPGpt6D4
6: [00:10:42] * vebb has joined #silverstripe
7: [00:15:19] <Colin[pi]> mm why is it if I upload an asset file in the cms, it strips underscores from the name, but if I copy the file and syncChildren() on the folder, it keeps the underscores? :o
8: [00:17:01] <Blacklite> hah
9: [00:17:04] <Blacklite> now i'm using a different object
10: [00:17:08] <Blacklite> $Pos is incrementing correctlu
11: [00:17:11] <Blacklite> *correctly
12: [00:21:15] <Blacklite> ok this is almost definitely some kind of bug
13: [00:21:47] <Blacklite> so now i'm looping through 3 separate objects twice
14: [00:22:07] <Blacklite> the pos goes like this: 1 2 3 1 2 3
15: [00:22:26] <Blacklite> even when i move the objects around, the pos still does the same thing
16: [00:22:42] <Blacklite> when i loop through 2 separate objects 2 times, it goes like this: 1 2 1 2 1 2
17: [00:22:53] <Blacklite> as though whatever object comes first, if looped through again, will reset the pos
18: [00:23:01] <Blacklite> i think it might have something to do with objCache
19: [00:24:43] <Blacklite> if i loop through a dataset with objects like this: A B B B B B
20: [00:24:51] <Blacklite> when i echo pos i get this: 1 2 2 2 2 2
21: [00:27:34] * Bollig|DesignCty has joined #silverstripe
22: [00:29:02] <Selay> @Blacklite, are the subsequent ones the same object?
23: [00:31:01] <Blacklite> let's refer to the objects as A B and C
24: [00:31:09] <Blacklite> A B A B A B: 1 2 1 2 1 2
25: [00:31:19] <Blacklite> A B C A B C: 1 2 3 1 2 3
26: [00:31:28] <Blacklite> A B B B B B: 1 2 2 2 2 2
27: [00:31:47] <Blacklite> A A A A A A: 1 1 1 1 1 1
28: [00:31:51] <Blacklite> these are the combinations i have tested
29: [00:32:04] <Selay> what is the last ones?
30: [00:33:11] <Selay> can you put your code here? http://www.sspaste.com/
31: [00:33:43] <Blacklite> well this is for 2.4 so i'm not sure if there's any point writing a bug report
32: [00:34:35] <Blacklite> also i attempted to track down where the loop actually was
33: [00:34:40] <Blacklite> but then i saw this
34: [00:35:26] <Blacklite> http://i.imgur.com/DqGvOrC.png
35: [00:35:33] <Blacklite> and decided i wanted to have nothing to do with the SS core
36: [00:35:46] <Colin[pi]> Blacklite: are you sure your SlideItem class doesn't have a First method?
37: [00:36:21] <Blacklite> nope - no first() method
38: [00:37:09] <Colin[pi]> Blacklite: cause I did exactly the same loop, in 2.4, with three identical instances of my own Slide class, in a DataObjectSet, and it worked no problem :
39: [00:37:11] <Colin[pi]> :\
40: [00:38:05] <Selay> Is it possible the rows in db have the same sort key? if you say sort by T, and two rows have 4 as value, the order may not be guaranteed in query.
41: [00:40:12] <Selay> I mean you may get A,B this time and B, A sometimes. if no order by is set or sort key is the same.
42: [00:40:31] <Blacklite> ahh interesting
43: [00:40:33] <Blacklite> i'll take a look
44: [00:40:45] <Blacklite> static $default_sort = 'Title ASC';
45: [00:41:05] <Blacklite> the titles are different between each item
46: [00:45:52] <Colin[pi]> windows logic... download 653 updates. now offer Service Pack 1.
47: [00:46:05] <Selay> @Blacklite, not sure. maybe, 2.4 doesnt reset the positions after loop. How about you can query again before each loop
48: [00:47:46] <Selay> @Colin[pi], http://i199.photobucket.com/albums/aa85/kyliebirdy/windowspopup.jpg
49: [00:49:22] <simon_w|work> Selay, well, then you're be running Linux :p
50: [00:52:06] <Selay> @simon_w|work, actually I am running windows for just this feature :)
51: [00:54:03] <simon_w|work> Selay, you don't need WINE on Windows though :p
52: [00:55:52] * ocmnt quit (Ping timeout: 250 seconds)
53: [00:58:22] * Ryan-Toast quit (Quit: Ryan-Toast)
54: [00:58:23] <Selay> @simon_w|work, hahaha, true.
55: [01:05:19] * Tanger has joined #silverstripe
56: [01:07:50] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
57: [01:20:27] <Colin[pi]> lol my mac runs windows faster than my windows laptop
58: [01:23:17] <Selay> @Colin[pi], hahaha. don't tell Microsoft. It will "fix it" in next release :))))
59: [01:23:44] <Colin[pi]> I've heard that the battery life is better when running it on a mac too, but a lot of variables in play there
60: [01:30:06] <vebb> Kingy-:
61: [01:30:08] <vebb> Kingy-: SEE
62: [01:30:37] <Selay> http://www.pcworld.com/article/2057938/microsoft-apple-is-to-blame-for-reports-of-poor-windows-battery-life.html Shimpi discovered that the laptop’s battery life varied dramatically when running three different operating systems on top of the same hardware. His test systems included OS X 10.5.7 (Leopard), Windows Vista X64 SP1, and the release candidate of Windows 7. In fact, Shimpi’s tests showed that the MacBook Pro laste
63: [01:31:52] <Colin[pi]> interesting
64: [01:32:38] * micmania1 quit (Quit: micmania1)
65: [01:35:29] * Bollig|DesignCty has joined #silverstripe
66: [01:39:13] * Selay quit (Ping timeout: 246 seconds)
67: [01:40:26] * Ryan-Toast has joined #silverstripe
68: [01:44:49] <pippy> Blacklite: are you using vim
69: [01:45:49] <Ryan-Toast> Hmm, theme Include isn’t overriding a mysite Include
70: [01:48:42] * willr has joined #silverstripe
71: [01:51:03] * Olliepop has joined #silverstripe
72: [01:52:01] <Ryan-Toast> How can I use parent details in a filter() method?
73: [01:52:14] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
74: [01:52:30] <Ryan-Toast> i.e DataObject::get()->filter(array(‘Parent.SomeThing’ => ‘Derp’))
75: [01:54:55] <simon_w|work> Ryan-Toast, like that
76: [01:55:00] <Ryan-Toast> Actually?
77: [01:55:03] <simon_w|work> yes
78: [01:55:09] <Ryan-Toast> rofl, swish
79: [01:57:48] * Selay has joined #silverstripe
80: [02:02:43] <Ryan-Toast> simon_w|work: Does ‘Parent.Something’ ahave to be the class name, or does ‘Parent’ work?
81: [02:02:46] <novaweb> 2 page letter prepared on why subsites should not be used for COMPLETELY DIFFERENT SITES
82: [02:03:00] <novaweb> wish me luck... :/
83: [02:03:22] <Ryan-Toast> novaweb: “:2 page letter prepared on why subsites should not be used “ FTFY
84: [02:03:27] * Ryan-Toast has left #silverstripe
85: [02:03:31] <antmas> FTFY?
86: [02:03:38] * Ryan-Toast has joined #silverstripe
87: [02:03:47] <simon_w|work> Ryan-Toast, it's the relationship name
88: [02:03:47] <Colin[pi]> Fixed That For You
89: [02:04:00] <antmas> ah
90: [02:04:07] <antmas> Colin[pi]: thanks :P
91: [02:04:18] <Ryan-Toast> simon_w|work: what if it’s a sitetree relationship?
92: [02:04:18] <Colin[pi]> so. many. acronyms.
93: [02:04:24] <willr> novaweb we’ve got govt departments going down that route to save instance costs.
94: [02:04:34] <Ryan-Toast> Colin[pi]: classic SMA
95: [02:04:56] <antmas> willr: really?
96: [02:04:59] <Ryan-Toast> willr: Poor you
97: [02:05:10] <antmas> that's why we host ourselves :D
98: [02:05:31] <willr> Yeah. It’s a riduolous cost if a department has a 10 page site separate to their main site but the main site is on CWP.
99: [02:05:46] <willr> Smallest plan is in the thousands a year for hosting
100: [02:06:01] * Azure quit (Quit: Blue Sky Fish)
101: [02:06:09] <willr> Subsites is one way to get around that
102: [02:06:16] <antmas> yeah isn't the cheapest CWP plan like $1300pm?
103: [02:06:29] <Colin[pi]> I knew a client who was paying $2,000 a month in hosting for a relatively small site, because he didn't know any different
104: [02:06:36] <antmas> Colin[pi]: o.O
105: [02:06:52] <Colin[pi]> yup
106: [02:06:54] <novaweb> Ryan-Toast hahahahaha
107: [02:07:04] <Colin[pi]> the accountant at the office organised the hosting with his brother's company -_
108: [02:07:06] <Colin[pi]> -_-
109: [02:07:13] <antmas> jesus
110: [02:07:19] <novaweb> @willr I'm working for them right now, dealing with that situation :/
111: [02:07:49] * Azure has joined #silverstripe
112: [02:07:59] <novaweb> Unfortunately they are trying to run completely different code bases with lots of functionality
113: [02:08:13] <Ryan-Toast> simon_w: ?
114: [02:08:49] <novaweb> I'm having to do all sorts of silly stuff to get it to work, and SilverStripe, simply, should not be silly.
115: [02:09:53] <Colin[pi]> in completely unrelated news, one of my budgies died today :(
116: [02:10:20] * wilsonstaff has joined #silverstripe
117: [02:10:31] <Colin[pi]> but my gf, bless her... made me laugh.. she said on txt "ohh poor thing, we need to barry him"
118: [02:10:40] <Colin[pi]> i'm like barry? oh bury
119: [02:11:01] <wilsonstaff> Hi to all, someone has experience with the Newsletter module?
120: [02:11:02] <Ryan-Toast> Colin[pi]: what’s that, Other Barry?
121: [02:11:41] * pippy quit (Ping timeout: 246 seconds)
122: [02:11:42] <antmas> Colin[pi]: you should totally barry him
123: [02:11:42] <antmas> and then burry him
124: [02:12:19] <Colin[pi]> lol
125: [02:13:04] <antmas> TUTS MY BURRY!
126: [02:13:24] <antmas> BARREH* https://www.youtube.com/watch?v=G7oGx2dImE8
127: [02:13:50] <Blacklite> <pippy> Blacklite: are you using vim
128: [02:13:50] <Blacklite> sublime
129: [02:14:12] <Blacklite> oh you're gone
130: [02:14:58] * pippy has joined #silverstripe
131: [02:19:01] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
132: [02:19:21] <antmas> Colin[pi]: that sucks though
133: [02:19:25] <antmas> how'd he die?
134: [02:20:04] <Colin[pi]> some sort of obstruction in the bowel by the looks :(
135: [02:20:11] <antmas> ouch
136: [02:20:12] <Colin[pi]> they are really good at hiding it too
137: [02:20:22] <antmas> tough as nails
138: [02:20:24] <Colin[pi]> I didn't realise anything was wrong until just a few days ago
139: [02:20:39] <Colin[pi]> well, they are prey in the wild, and a bird showing sickness is easy pickings
140: [02:21:06] <Colin[pi]> so they're kinda like "chirp chirp, nothing to see here, all good, chirp chirp..... DEAD"
141: [02:21:16] <antmas> lol
142: [02:21:26] <antmas> I haven't had a pet in forever
143: [02:21:30] <antmas> really want a cat or dog
144: [02:21:34] <Colin[pi]> this one was a little bitch
145: [02:21:35] <simon_w|work> Colin[pi], well, that sorts out dinner then
146: [02:21:41] <Colin[pi]> never was friendly to me, always bit me
147: [02:21:43] <simon_w|work> Ryan-Toast, then you can only filter against fields on SiteTree
148: [02:21:49] <Colin[pi]> her whole life
149: [02:21:51] <Ryan-Toast> simon_w|work: Ah, kay. Cheers.
150: [02:21:57] <Colin[pi]> but.. she doesn't deserve to go in that way :\
151: [02:23:29] <novaweb> wilsonstaff, what's up?
152: [02:25:00] <simon_w|work> Let's see how well restoring my phone from an icloud backup goes...
153: [02:26:54] <antmas> I love cyanogens cloud backup
154: [02:27:00] <antmas> works flawlessly
155: [02:27:34] <wilsonstaff> <novaweb> I need to force the module to use a dedicated SMTP mail server for the FROM address
156: [02:27:51] <simon_w|work> This will probably work fine. I just haven't used it before
157: [02:28:05] <simon_w|work> I'm just tired of the dodgy state of the iTunes Match data on the phone
158: [02:28:08] <antmas> simon_w|work: yeah I've used it before, works fine
159: [02:28:56] <simon_w|work> antmas, does it bring back old texts?
160: [02:29:13] <simon_w|work> That's the only thing I really care about. Everything else is in iCloud
161: [02:29:35] <antmas> simon_w|work: not sure, I usually use another app to backup msgs and call logs etc
162: [02:30:09] <simon_w|work> I guess I'll find out then!
163: [02:31:04] * superspring_ is now known as superspring
164: [02:31:24] <novaweb> wilsonstaff have you searched the newsletter/ codebase for "smtp" ?
165: [02:31:43] <novaweb> I haven't used newsletter in a while, but it's probably built in as a function.
166: [02:32:48] <simon_w|work> Hmm, will probably have to re-add my thumbs
167: [02:34:29] <wilsonstaff> <novaweb> I suspect this line: $fields->dataFieldByName('SendFrom') ->setValue(Email::getAdminEmail()) ->setAttribute('placeholder', 'My Name <admin@example.org>');
168: [02:34:51] <wilsonstaff> <novaweb> but how to incorporate the SMTP server address in that line?
169: [02:35:06] * Bollig|DesignCty has joined #silverstripe
170: [02:35:28] <novaweb> wilsonstaff wrong line
171: [02:35:53] <novaweb> search the entire newsletter directory for "SMTP" string
172: [02:38:41] <simon_w|work> pippy, I use vim
173: [02:39:51] <pippy> nice
174: [02:39:59] <pippy> i use netbeans at work though, because of windows
175: [02:43:00] <Ryan-Toast> pippy: I switched from netbeans to phpstrom. No regrets.
176: [02:45:53] <wilsonstaff> <novaweb> SMTP not found in Newsletter directory
177: [02:47:35] <wilsonstaff> <novaweb> Why do you say: "Wrong line?"
178: [02:47:52] * micmania1 has joined #silverstripe
179: [02:54:28] <antmas> woah this thing is nuts https://www.youtube.com/watch?v=_e9UhLt_J0g&feature=player_embedded
180: [02:54:30] <novaweb> Because that is just the "from" address
181: [02:54:41] <novaweb> nothing to do with the server used.
182: [02:56:02] <novaweb> wilsonstaff have pm'
183: [02:56:03] <novaweb> d you
184: [03:03:38] * antmas quit (Quit: Page closed)
185: [03:04:24] * joelpittet quit ()
186: [03:06:22] <Ryan-Toast> Anyone know if using the SubsiteID=x actuially shows the theme that subsite’s susing?
187: [03:09:51] * antmas has joined #silverstripe
188: [03:11:32] <simon_w|work> DAMMIT
189: [03:11:37] <simon_w|work> Didn't fix iTunes Match :(
190: [03:11:54] <antmas> who uses itunes?
191: [03:12:40] * Pyrnk quit (Ping timeout: 246 seconds)
192: [03:16:36] * UncleCheese has joined #silverstripe
193: [03:16:49] * guzzlefry has joined #silverstripe
194: [03:17:17] <simon_w|work> Me
195: [03:18:23] <ss23> No one of importance then
196: [03:18:24] <ss23> :3
197: [03:18:25] <ss23> BOOOOOOOM
198: [03:18:26] <ss23> :D
199: [03:18:42] <antmas> itunes is terrible
200: [03:18:44] * Tanger_ has joined #silverstripe
201: [03:18:56] <ss23> It's not the worst, but it's not good, that is for sure
202: [03:19:11] <simon_w|work> See, I have this thing called a Mac
203: [03:19:18] * Tanger quit (Ping timeout: 250 seconds)
204: [03:19:19] * Tanger_ is now known as Tanger
205: [03:19:21] * Bollig|DesignCty quit (Ping timeout: 255 seconds)
206: [03:19:45] <antmas> simon_w|work: and?
207: [03:19:49] <adrexia_> <Ryan-Toast> Anyone know if using the SubsiteID=x actuially shows the theme that subsite’s susing?
208: [03:19:55] <adrexia_> I think it's SiteId=x
209: [03:20:02] <simon_w|work> antmas, iTunes is actually a decent app in OSX
210: [03:20:09] <adrexia_> SiteID, rather
211: [03:20:58] <Ryan-Toast> adrexia_: SubsiteID works, I’m just not sure if it shws the theme, as some of the Includes aren’t being overriden.
212: [03:21:05] * Tanger quit (Read error: Connection reset by peer)
213: [03:21:15] <antmas> simon_w|work: I never had a good time with it in OSX
214: [03:21:33] <adrexia_> It should do
215: [03:21:43] * Bollig|DesignCty has joined #silverstripe
216: [03:21:44] <simon_w|work> antmas, sucks to be you
217: [03:21:49] <Ryan-Toast> adrexia_: I would have thought so too, but apprently not.
218: [03:21:52] * Tanger has joined #silverstripe
219: [03:21:57] <antmas> I prefer streaming anyway, that way I don't have to worry about devices
220: [03:22:20] <simon_w|work> Only problems I've had since iTunes 2 is getting used to changed layouts/functionality
221: [03:22:23] * wilsonstaff_ has joined #silverstripe
222: [03:22:32] <adrexia_> yepo, just tested it - works for me
223: [03:22:53] <wilsonstaff_> <novaweb>ive been cutted.....
224: [03:22:54] <adrexia_> are you gettin gthe css for the main site?
225: [03:22:58] <Ryan-Toast> adrexia_: Most likely an underlying problem somewhere. This is a clusterfuck of a site I have inherited.
226: [03:23:08] <adrexia_> that could be a combining css problem ?
227: [03:23:23] <simon_w|work> antmas, none of the streaming services I've tried work well with my music tastes
228: [03:23:26] <Ryan-Toast> adrexia_: It’s a template issue, not a css one
229: [03:23:37] * wilsonstaff_ quit (Client Quit)
230: [03:23:41] <antmas> simon_w|work: sucks to be you!
231: [03:23:52] <antmas> simon_w|work: what do you listen to?
232: [03:23:52] * wilsonstaff quit (Ping timeout: 246 seconds)
233: [03:23:58] <simon_w|work> antmas, yeah, I get to keep my money!
234: [03:23:59] * wilsonstaff has joined #silverstripe
235: [03:24:00] <adrexia_> oh, opk - so you get all the correct css, but the wrong templates?
236: [03:24:08] <adrexia_> after flushing and all that?
237: [03:24:13] <antmas> simon_w|work: same here :D
238: [03:24:28] <wilsonstaff> <novaweb> Ive lost connection with the IRC. Where were we?
239: [03:24:30] <simon_w|work> antmas, rock, pop and a capella mostly
240: [03:24:33] <Ryan-Toast> adrexia_: Templates are in the mysite, and themes override them. Main site’s theme overrides fine, but the subsite’s theme does not.
241: [03:25:00] <adrexia_> oh... never tried that one sorry
242: [03:25:03] <antmas> can any front-enders recommend any good scroll animation tutorials? I need to do a simple one o.O
243: [03:25:11] <Ryan-Toast> adrexia_: It’s okay, I’ll figure something out.
244: [03:25:21] <simon_w|work> antmas, DON'T DO IT
245: [03:25:32] <antmas> simon_w|work: not my choise ;__;
246: [03:25:35] <antmas> choice*
247: [03:26:04] <adrexia_> like making things animated on scroll?
248: [03:26:23] <adrexia_> (I got nothing, just curious)
249: [03:26:43] <Selay> @Ryan-Toast, how about you can call it SSViewer::set_theme($MySubsiteTheme); in page?
250: [03:26:51] <antmas> yeah I need to make a simple vertical infographic
251: [03:26:57] <antmas> adrexia_: ^
252: [03:27:16] <adrexia_> oh, sounds fun
253: [03:27:29] <antmas> hopefully
254: [03:27:55] <antmas> I don't like them personally, but it will break up the boring coporate sites I'm currently doing :P
255: [03:28:37] <antmas> like this https://www.atlassian.com/information-management-infographic but about 0.1% of it's complexity
256: [03:29:26] <adrexia_> that markup is disgusting
257: [03:29:37] <wilsonstaff> <novaweb> Thanks!
258: [03:29:41] <antmas> I know :(
259: [03:29:41] * wilsonstaff quit (Quit: Page closed)
260: [03:30:11] <antmas> lol at height: 21984px;
261: [03:30:35] <adrexia_> http://mynameismatthieu.com/WOW/ ;)
262: [03:31:19] <antmas> adrexia_: you know, that is simple enough that I could use that ;)
263: [03:31:24] <adrexia_> bwhahaha
264: [03:31:30] <adrexia_> dare you
265: [03:34:45] * babak has joined #silverstripe
266: [03:45:45] <Colin[pi]> "there are no updates available for your computer", now I know you're lying Windows
267: [03:46:17] <simon_w|work> Yeah, you obviously don't have a computer
268: [03:48:02] <Colin[pi]> it's only spent the whole morning updating
269: [03:49:12] * cloph_away quit (Ping timeout: 250 seconds)
270: [03:53:21] * cloph_away has joined #silverstripe
271: [03:55:02] <guzzlefry> you have to restart
272: [03:58:23] * cloph_away quit (Ping timeout: 240 seconds)
273: [03:58:25] * cloph has joined #silverstripe
274: [03:59:50] <Colin[pi]> guzzlefry: I'm on about my seventh restart I think
275: [04:02:12] <simon_w|work> Colin[pi], regretting defiling your laptop yet? :p
276: [04:02:26] <Colin[pi]> simon_w|work: actually no, it runs pretty sweet
277: [04:02:45] <Colin[pi]> I've had to go to 1920x1200 though
278: [04:02:54] <Colin[pi]> retina res was ridiculous
279: [04:04:14] <Colin[pi]> I would be keen to see how some steam stuff performs, but it got REAL hot the last time I tried gaming
280: [04:04:27] <UncleCheese> Colin[pi] do you notice that the retina makes your eyes tired?
281: [04:04:36] <Colin[pi]> UncleCheese: on OS X?
282: [04:04:46] <UncleCheese> yeah
283: [04:04:49] <Colin[pi]> nah not really
284: [04:04:55] <Stomach> UncleCheese, yes I get that
285: [04:04:56] <Colin[pi]> if it's scaled correctly it's fine
286: [04:05:48] <UncleCheese> yeah, i've been having a hard time getting used to it, actually
287: [04:06:35] <ss23> I'm confused
288: [04:06:39] <ss23> High resolution makes your eyes sore?
289: [04:06:47] <ss23> Not b eing small, just literally being higher quality at the same size?
290: [04:07:01] <Stomach> it might be something to do with the refresh rate or some other bullshit
291: [04:09:30] <Colin[pi]> ss23: yeah it's fine for me, I freakin love it
292: [04:09:47] <Colin[pi]> I'm back on my regular windows monitor now and I'm like... "eeuw"
293: [04:10:14] <ss23> Give me an IPS 120hz 4k 23" screen
294: [04:10:21] <antmas> Colin[pi]: you can make everything in windows 'bigger' without scaling back the res
295: [04:10:35] <Colin[pi]> antmas: I know, but it makes some apps have a sad
296: [04:11:01] <Colin[pi]> atm I have it at 1920x1200, with 125% fonts
297: [04:11:06] <Colin[pi]> seems to be a sweet spot
298: [04:11:35] * antmas_ has joined #silverstripe
299: [04:12:17] <Colin[pi]> wasn't windows 8.1 supposed to have proper scaling?
300: [04:12:25] <Colin[pi]> pretty sure it still doesn't
301: [04:13:12] <antmas_> what happens when you go control panel / display and change those settings?
302: [04:13:25] <Colin[pi]> which settings?
303: [04:13:42] <antmas_> in win7 you have 'Change Display Settings'
304: [04:13:50] <antmas_> which has smaller, medium, large scaling
305: [04:14:08] <Colin[pi]> ah I have it on medium, which is ok
306: [04:14:15] <Colin[pi]> I tried it on large, and some apps went "NOPE"
307: [04:14:22] <antmas_> lol ah ok
308: [04:14:31] <Colin[pi]> well they work, but they look like shit
309: [04:14:37] * antmas quit (Ping timeout: 246 seconds)
310: [04:14:43] <antmas_> never had a screen bigger than 1920x1200 so I can't really say
311: [04:14:51] <simon_w|work> So they looked like normal? :p
312: [04:14:58] <Colin[pi]> simon_w|work: ohohohoho
313: [04:15:14] <antmas_> right
314: [04:15:26] <antmas_> must be almost time to go give the kmart manager a talking to
315: [04:15:29] <antmas_> :|
316: [04:15:34] <Colin[pi]> oh yeah, good luck
317: [04:15:37] <Colin[pi]> arseholes
318: [04:15:38] * antmas_ puts on adult hat
319: [04:15:51] <Colin[pi]> I lost my adult hat
320: [04:16:56] <ss23> ^
321: [04:16:59] <ss23> I was never given one
322: [04:17:11] <ss23> At lunch today I ate my peanut butter pie before my chicken so I got told that I was childish
323: [04:17:14] <ss23> :(
324: [04:17:24] <Colin[pi]> peanut butter pie?
325: [04:17:33] <antmas_> this ^
326: [04:17:34] <antmas_> ?
327: [04:17:39] <ss23> :D
328: [04:17:42] <ss23> From Sweet Mothers
329: [04:17:57] <ss23> It was this delicious pie that was peanut butter flavoured with ieccream
330: [04:17:59] <antmas_> you get an adult hat when you have kids
331: [04:18:06] <ss23> Fuck
332: [04:18:08] <antmas_> along with terrible dad jokes
333: [04:18:13] <ss23> I'm going to not get mine forever :O
334: [04:18:33] <ss23> HEY
335: [04:18:39] <ss23> ANTMAS
336: [04:18:42] <ss23> LEAVE THEM KIDS ALONE
337: [04:18:48] <antmas_> my dad actually asked me if I had seen the movie 'Constipation'
338: [04:18:56] <ss23> How can you eat your pudding if you don't eat your meat?!
339: [04:18:57] <antmas_> ;____;
340: [04:19:36] <simon_w|work> I miss Reader :(
341: [04:20:42] <antmas_> and he also had the top secret bottom secret drawer in his office -__-
342: [04:20:51] <Colin[pi]> I just went and dug a hole out back for the bird, and the other one is happily chirping away... kinda fucked up
343: [04:21:13] <antmas_> Colin[pi]: the other one is a murderer
344: [04:21:24] <Colin[pi]> he's male, she was female... I think he's happy
345: [04:21:29] <Colin[pi]> I'M FREE!!!!
346: [04:21:34] <antmas_> lol
347: [04:21:49] <Colin[pi]> come to think of it, you might be right LOL
348: [04:21:50] <antmas_> anyway, time to go deal to kmart
349: [04:21:55] <Colin[pi]> ok man, g'luck
350: [04:22:12] <antmas_> I'LL REPORT BACK ON THIS IMPORTANT THING I'M DOING TOMORROW K
351: [04:22:17] <Colin[pi]> OK
352: [04:22:22] <Colin[pi]> WHY ARE WE SHOUTING
353: [04:22:33] <ss23> wait
354: [04:22:38] <ss23> why are you dealing with kmart, antmas_?
355: [04:22:52] <Colin[pi]> ss23: they sold the thing he had reserved for his kid
356: [04:23:15] <ss23> OHHHHHHHHHHHHH
357: [04:23:17] <ss23> Snap
358: [04:23:34] <Colin[pi]> antmas gon go open a can of WHOOPASS ON DEM
359: [04:26:31] * antmas_ quit (Ping timeout: 246 seconds)
360: [04:28:25] * UncleCheese quit (Ping timeout: 260 seconds)
361: [04:37:27] <novaweb> Homo time
362: [04:37:35] <novaweb> *Home time
363: [04:37:35] <Colin[pi]> o rly??
364: [04:37:44] <novaweb> that was intentional, but I'm sure you all giggled.
365: [04:38:38] * novaweb quit ()
366: [04:38:40] <simon_w|work> Well, we've already got our token gay guy
367: [04:39:33] <simon_w|work> Ooh, is adrexia_ our token woman yet?
368: [04:42:16] <simon_w|work> We're totally getting our diversity points!
369: [04:47:45] * guzzlefry is 1/8th cherokee.
370: [04:49:33] * Stomach quit (Ping timeout: 240 seconds)
371: [04:52:02] * ocmnt has joined #silverstripe
372: [04:56:48] * ocmnt quit (Ping timeout: 260 seconds)
373: [04:59:52] * peter_w has joined #silverstripe
374: [05:02:01] <peter_w> Using SS 3.1.5 when I add an image to the content area in the CMS using the "From Web" tab the resizing functionality does not work on the front end. The image is indeed resized in the HtmlEditorField however
375: [05:02:41] <peter_w> does anyone know how to fix this??
376: [05:03:56] * chrisrio has joined #silverstripe
377: [05:04:12] * willr quit (Quit: willr)
378: [05:04:16] <chrisrio> hey gents am I able to remove the big green "Add" button from the GridFieldConfig_RelationEditor?
379: [05:04:19] * Olliepop quit (Ping timeout: 246 seconds)
380: [05:04:31] <simon_w|work> chrisrio, just remove the component
381: [05:04:43] * nickmolhoek quit (Quit: nickmolhoek)
382: [05:04:44] <simon_w|work> (or have canCreate() on the managed object return false)
383: [05:05:05] <chrisrio> I couldnt figure out what it was called :D
384: [05:05:38] <simon_w|work> chrisrio, https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/gridfield/GridFieldConfig.php#L241-L242
385: [05:06:06] <chrisrio> thanks man :)
386: [05:06:58] * nicolaas quit (Ping timeout: 272 seconds)
387: [05:08:08] <adrexia_> simon_w|work I'm not token :P
388: [05:10:15] <simon_w|work> adrexia_, well, it's currently between you and ss23 :p
389: [05:10:29] <adrexia_> bwhahah
390: [05:10:37] <adrexia_> see, there are two of us ;)
391: [05:11:02] <adrexia_> though, seriosuly, why are there so frew female php devs?
392: [05:11:06] <adrexia_> *few
393: [05:11:09] <adrexia_> its weird
394: [05:11:11] <ss23> They're just not as good at coding in general
395: [05:11:27] * adrexia_ slaps ss23 with a salmon
396: [05:11:45] <adrexia_> we tried to have that discussion last night, remember
397: [05:12:03] <adrexia_> we decided that you are just wrong about everything, in general
398: [05:12:04] <ss23> :3
399: [05:12:11] <ss23> That's not how I remember it! :D
400: [05:12:18] <adrexia_> and that specifically
401: [05:12:30] <adrexia_> more evidence that you are wrong
402: [05:12:36] <ss23> I saw no evidence
403: [05:12:43] <ss23> all I heard was "Yeah but girls don't like public speaking!"
404: [05:12:43] <ss23> :D
405: [05:12:48] <adrexia_> <ss23> That's not how I remember it! :D
406: [05:12:57] <adrexia_> ^ see
407: [05:13:07] <adrexia_> flawed memory
408: [05:13:12] <guzzlefry> There were two girls in my game programming class, out of like 30 people. I never understood why.
409: [05:13:41] <adrexia_> there are a lot more women who code in general (well, more than php)
410: [05:13:43] <ss23> We had ~4 out of 200
411: [05:13:57] <adrexia_> its a tiny percentage, but even smaller in php
412: [05:14:31] <adrexia_> maybe because its not usually taught at unioversity, and women are more likely to come to development through conventional means?
413: [05:14:41] <simon_w|work> Yeah, was just about to suggest that
414: [05:19:49] * chrisrio quit (Quit: Page closed)
415: [05:29:57] <Colin[pi]> adrexia_: I learned Smalltalk at university, can honestly say I've used it 0 times since
416: [05:30:11] * Ryan-Toast quit (Quit: Ryan-Toast)
417: [05:30:18] <Colin[pi]> it's a great OOP language to learn though
418: [05:37:19] * SightUnseen has joined #silverstripe
419: [05:37:25] * SightUnseen has left #silverstripe
420: [05:51:06] <adrexia_> Colin[pi] I learnt tons of things at uni that I've never used :D
421: [05:51:40] <adrexia_> ... I also learnt php at uni. But just thye very basics
422: [05:51:48] <adrexia_> wasn't even OO
423: [05:52:06] <Colin[pi]> ah, the worst kind ;D
424: [05:52:25] <simon_w|work> They tried teaching me Java at uni
425: [05:52:27] <simon_w|work> It didn't work
426: [05:52:32] <Colin[pi]> but yeah, uni stuff is good for the fundamentals, but in practice, nope
427: [05:52:40] <adrexia_> that was a long time ago though. OO Phph was sort of new around then
428: [05:52:52] * Kingy- is now known as Kingy[a]
429: [05:52:52] <Colin[pi]> adrexia_: ah kk :D
430: [05:53:19] * peter_w quit (Ping timeout: 246 seconds)
431: [05:58:31] * Ryan-Toast has joined #silverstripe
432: [06:14:14] * vebb has joined #silverstripe
433: [06:18:03] * Ryan-Toast quit (Quit: Ryan-Toast)
434: [06:18:28] * vebb quit (Client Quit)
435: [06:26:13] * Guest6365 is now known as LEDfan
436: [06:27:18] * wmk has joined #silverstripe
437: [06:27:44] * r_hector has joined #silverstripe
438: [06:31:24] * SightUnseen has joined #silverstripe
439: [06:31:28] * SightUnseen has left #silverstripe
440: [06:34:07] * micmania1 quit (Quit: micmania1)
441: [06:39:38] * BetterBert___ has joined #silverstripe
442: [06:41:09] * ARNHOE has joined #silverstripe
443: [06:42:22] <Tanger> Hi guys, I'm doing some work in 2.4 for the purpose of sorting a DataObject by a field on a $has_one object. Does anybody know how to get a solid DataObjectSet of left-joined tables?
444: [06:43:24] <simon_w|work> Tanger, you'll be best to do the sort when you're getting the set, rather than after you've got it
445: [06:50:15] * Shrike_Finland has joined #silverstripe
446: [07:08:46] <wmk> Tanger, if it's not a monster project: invest an hour or 3 for updating to 3.1 ;) There are very good update scripts that do most of the stuff for you.
447: [07:08:56] <wmk> and 2.4 is end-of-life soon
448: [07:10:02] * Colin[pi] quit (Ping timeout: 260 seconds)
449: [07:16:20] * adrexia has joined #silverstripe
450: [07:20:49] <Tanger> wmk: Yeah. Sadly, it is a bit of a big one. I've managed to hack my way around it almost :(
451: [07:21:00] <wmk> i can feel you
452: [07:21:05] <Tanger> Just weird flipping back from 3.1 to 2.4
453: [07:21:08] * adrexia quit (Client Quit)
454: [07:21:17] <Tanger> All the little thing you take for granted lol
455: [07:21:19] <wmk> have to update a big one, too, this autumn...
456: [07:24:16] * BetterBert___ quit (Quit: Computer has gone to sleep.)
457: [07:26:53] * BetterBert___ has joined #silverstripe
458: [07:27:20] * BetterBert___ quit (Client Quit)
459: [07:31:47] <wmk> Any chance to pass $Top.Title to a method in my templates?
460: [07:32:03] <simon_w|work> Yes, pass $Top.Title to the method
461: [07:35:03] * Shrike_Finland quit (Quit: Leaving.)
462: [07:35:10] <wmk> simon_w|work, why isn't the param passet to the getFoo() method??? when i have a Foo() method i get the param
463: [07:35:34] <wmk> i always thought when i want to access something from the template i should make a getFoo() in my DO
464: [07:35:57] <simon_w|work> wmk, because properties don't work like that
465: [07:36:42] <wmk> you mean method !== property ??
466: [07:36:47] * ocm has joined #silverstripe
467: [07:36:52] <simon_w|work> yes
468: [07:37:04] <wmk> and i cannot pass a param to a property / value...
469: [07:37:10] * ocm is now known as ocmnt
470: [07:37:11] <simon_w|work> yes
471: [07:37:15] <wmk> well, that makes sense somehow.
472: [07:37:17] * Frans_Amsterdam has joined #silverstripe
473: [07:37:24] <simon_w|work> and getBlah is a getter for the Blah property
474: [07:37:54] <wmk> dunno if the docs are clear enough for that or if that's some old thinking from 2.x times ;)
475: [07:38:02] <wmk> thanks for the clarification, simon_w|work
476: [07:38:21] <simon_w|work> It's some thinking from PHP
477: [07:38:26] * jrthomer_ has joined #silverstripe
478: [07:39:17] * willr has joined #silverstripe
479: [07:40:33] * jrthomer quit (Ping timeout: 240 seconds)
480: [07:44:07] * vebb has joined #silverstripe
481: [07:44:07] * vebb quit (Client Quit)
482: [07:44:21] * vebb has joined #silverstripe
483: [07:45:08] * stnvh has joined #silverstripe
484: [07:50:20] <ocmnt> howdy
485: [07:55:23] <wmk> hey ocmnt
486: [08:00:39] * jrthomer has joined #silverstripe
487: [08:01:06] * Robke has joined #silverstripe
488: [08:01:08] <Robke> hello
489: [08:02:10] * ocm has joined #silverstripe
490: [08:02:24] * Kingy^ has joined #silverstripe
491: [08:02:40] * Shrike_Finland has joined #silverstripe
492: [08:04:31] * willr_ has joined #silverstripe
493: [08:07:03] * Pysmblk has joined #silverstripe
494: [08:08:52] * kerosene_ has joined #silverstripe
495: [08:09:42] * Blacklite_ has joined #silverstripe
496: [08:10:18] <wmk> hey Robke
497: [08:10:21] * willr quit (*.net *.split)
498: [08:10:22] * jrthomer_ quit (*.net *.split)
499: [08:10:22] * Kingy[a] quit (*.net *.split)
500: [08:10:22] * kerosene quit (*.net *.split)
501: [08:10:23] * ocmnt quit (*.net *.split)
502: [08:10:23] * Azure quit (*.net *.split)
503: [08:10:24] * Blacklite quit (*.net *.split)
504: [08:10:24] * willr_ is now known as willr
505: [08:10:53] * r_hector quit (Quit: Leaving.)
506: [08:11:20] * Selay quit (Ping timeout: 246 seconds)
507: [08:16:09] * vebb has joined #silverstripe
508: [08:17:41] <Tanger> wmk: Ouch, sounds like you're in no rush for autumn
509: [08:18:08] <wmk> well, the most is done with the script, the rest is finetuning, refactoring...
510: [08:18:20] <wmk> and optimizing the old but used event calendar module :(
511: [08:18:34] <wmk> the update script is really good
512: [08:19:03] <Tanger> Update script eh?
513: [08:19:04] <wmk> but refactoring css / layout (move to sass/compass, make responsive etc...)
514: [08:19:15] <Tanger> Ah, yeah
515: [08:19:40] <Tanger> css to sass shouldn't be too hard
516: [08:20:03] * ss31noob has joined #silverstripe
517: [08:20:12] <Tanger> And layout, I hear ya. We have to go and replace any uses of font size in pixels in our code to % or em -_-
518: [08:20:13] <wmk> Tanger, https://github.com/sunnysideup/silverstripe-upgrade_silverstripe does the most of updating code
519: [08:20:21] <Tanger> It's just so much stuff to go through
520: [08:20:51] <wmk> Tanger, compass with vertcal rythm for font sizing and susy for responsive % grid is fine
521: [08:23:32] * ocm is now known as ocmnt
522: [08:24:15] <ss31noob> hello.. im doing a migration from ss2.4 to ss3.1 right now.. and i encountered this issue in the migration related in customizing some admin stuff.. maybe someone can help me.. this is the method where im having an issue. http://www.sspaste.com/paste/show/53fd909405e13
523: [08:24:53] <ss31noob> before in 2.4.. it's just returning a simple DropdownField..
524: [08:25:36] <Tanger> And now it just errors or doesn't return what you want?
525: [08:25:47] <ss31noob> i mean in 2.4.. when i dump the value of the $renderfield before doing some preg_replace.. it's returning a dropdown field
526: [08:26:07] <ss31noob> now in 3.1.. the value of the $renderfield is an HTMLText Object already
527: [08:26:41] <ss31noob> this is what im getting in 3,.1 right now http://www.sspaste.com/paste/show/53fd91a434625
528: [08:27:16] <ss31noob> can someone help me to just get the dropdown field and not the whole object so i can do a preg_replace..
529: [08:30:37] <wmk> ss31noob, did you try to ouput it RAW in your template, e.g. $Foo.RAW ??
530: [08:31:09] <wmk> though you should dig into DropdownField if you can create it with it's built in functions.
531: [08:31:35] <wmk> afaik in 3.x everything is casted as HTMLText in Templates unless to make it RAW for security reasons
532: [08:32:21] <ss31noob> havent tried to output it as a RAW in the template.. since i need to do some preg_repace in the php first
533: [08:37:18] <ss31noob> okay.. i think i figured it out.. i just used the getValue() method and seems to work
534: [08:37:47] <Tanger> Yeah
535: [08:38:04] <Tanger> I was thinking there was something off about FieldHolder
536: [08:38:35] <Tanger> Did you use getValue on the $field or the FieldHolder()?
537: [08:45:07] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
538: [08:46:40] <Pysmblk> users gonna user
539: [08:46:49] <Pysmblk> ticket comes in "php error"
540: [08:47:09] <Pysmblk> "can you please tell me what system, what part of it, and what you're doing when it happens?"
541: [08:47:15] <Pysmblk> "when I click user"
542: [08:47:20] <Pysmblk> *clap fucking clap*
543: [08:47:44] <Pysmblk> no, actually, the answer was "when I login to the user"
544: [08:48:04] <ss31noob> i used the FieldHolder() Tanger
545: [08:48:34] <Pysmblk> I just wanna go fuck'n home and play quake.
546: [08:53:03] * Shrike_Finland quit (Quit: Leaving.)
547: [08:54:34] <Pysmblk> found it, gotta go to actions, filter to his shit, find correct order, click user, click into history, click into view THEN there's a _WARNING_ not stopping any work from being done at all.
548: [08:54:59] <Pysmblk> Users gonna whinge.
549: [08:55:26] <Tanger> Psymblk: lol
550: [08:55:54] <Robke> :))
551: [09:01:18] * willr quit (Ping timeout: 250 seconds)
552: [09:02:57] * Shrike_Finland has joined #silverstripe
553: [09:07:57] * simon_w has joined #silverstripe
554: [09:12:59] <Pysmblk> Tanger: urgh... so also this thing was created by him back in 2010! All of a sudden NOW it's an issue.
555: [09:13:29] <Pysmblk> users gonna user.
556: [09:14:00] <Tanger> Hah. Must have wanted an excuse to not work
557: [09:14:06] <Pysmblk> basically.
558: [09:14:15] <Pysmblk> now he's my excuse for not working.
559: [09:14:28] <Pysmblk> "can't cure stupidity."
560: [09:14:59] <Tanger> I dunno man, I'm sure someone has an injection to cure that somewhere
561: [09:15:07] <Pysmblk> the lethal one?
562: [09:15:12] <Tanger> ;)
563: [09:15:24] <Pysmblk> The world does need more eugenics.
564: [09:16:05] <Pysmblk> Bring back the rope.
565: [09:16:59] <Tanger> They need some kind of 'Send a bullet via TCP' protocol
566: [09:17:17] <Tanger> What? Being a dumbass? Blam
567: [09:17:28] <Pysmblk> you're fired. TRY TO LEARN SHIT NEXT TIME
568: [09:17:37] <wmk> is doc.silverstripe.org down? i get a 502 bad gateway
569: [09:17:54] <Pysmblk> well the docs are pretty bad, I guess they're a gateway to bad code.
570: [09:18:02] <Pysmblk> so that makes sense
571: [09:18:15] <Pysmblk> like weed is a gateway drug, etc.
572: [09:18:17] <Pysmblk> :P
573: [09:18:19] <Tanger> I'm getting the same 502, so probs
574: [09:18:35] <Pysmblk> it's ss31noob's fault.
575: [09:19:08] <wmk> that's what i thought...
576: [09:22:53] * Tanger quit (Quit: Tanger)
577: [09:23:06] * jrthomer_ has joined #silverstripe
578: [09:25:12] * jrthomer quit (Ping timeout: 255 seconds)
579: [09:26:40] * Sj0hn has joined #silverstripe
580: [09:26:52] <Sj0hn> Hi,
581: [09:26:56] * jrthomer has joined #silverstripe
582: [09:28:01] <simon_w> Hello
583: [09:28:29] * jrthomer_ quit (Ping timeout: 260 seconds)
584: [09:28:51] <Sj0hn> HOw's it going?
585: [09:29:28] <simon_w> Hungry
586: [09:31:52] * kerosene_ is now known as kerosene
587: [09:33:13] <Sj0hn> Get food
588: [09:33:19] <Sj0hn> problem solved :D
589: [09:34:08] * jrthomer quit (Ping timeout: 250 seconds)
590: [09:37:37] <wmk> is there an url param that disables the partial cache for testing? or only the set_cache_lifetime solution?
591: [09:37:48] <Pysmblk> I did, scrambled eggs and tomato in a bap, with hash browns on the side.
592: [09:38:03] <Pysmblk> wmk: probably not.
593: [09:38:12] <wmk> ok.
594: [09:38:20] <Pysmblk> but I dunno.
595: [09:38:30] <Pysmblk> wmk: well, ?flush might do it
596: [09:38:32] <Pysmblk> idk
597: [09:47:56] * willr has joined #silverstripe
598: [09:48:06] * willr quit (Changing host)
599: [09:48:06] * willr has joined #silverstripe
600: [09:50:22] <Sj0hn> How come my has_one dropdownfield breaks.. it's just an input field with the ID now.
601: [09:59:10] <simon_w> You've got over 100 of the objects you're linking to
602: [10:02:37] * Shrike_Finland quit (Quit: Leaving.)
603: [10:11:53] <Sj0hn> How can I solve this?
604: [10:12:04] * eagles0513875 quit (Quit: ZNC @ TrekWeb - https://trekweb.org)
605: [10:15:37] * eagles0513875 has joined #silverstripe
606: [10:15:47] * nicolaas_ has joined #silverstripe
607: [10:16:02] <Sj0hn> Think i got it
608: [10:16:59] * ThePeach has joined #silverstripe
609: [10:17:02] * willr quit (Quit: willr)
610: [10:17:11] <wmk> Sj0hn, how?
611: [10:17:48] <Sj0hn> this seemed to work: http://stackoverflow.com/questions/21235458/silverstripe-admin-has-one-dropdown-converts-to-ordinary-input-field-after-im
612: [10:20:05] <Sj0hn> The solution was already there
613: [10:21:23] <Sj0hn> What's the reason it limits to 100?
614: [10:21:53] <simon_w> Have to limit it somewhere
615: [10:23:13] * spronk2 has joined #silverstripe
616: [10:41:01] * Robke quit (Ping timeout: 246 seconds)
617: [10:43:35] * Colin[pi] has joined #silverstripe
618: [10:59:22] <Pysmblk> simon_w: do we?
619: [10:59:29] <simon_w> Yes
620: [10:59:37] <Pysmblk> Really?
621: [10:59:44] <simon_w> Yes
622: [10:59:52] <Pysmblk> why is that?
623: [11:00:00] <Pysmblk> other than the obvious stupidity
624: [11:00:06] <simon_w> DOM explosion
625: [11:00:11] <Pysmblk> performance? or...
626: [11:00:11] <simon_w> Can't find anything in the dropdown
627: [11:00:20] <Pysmblk> oh... that a limitation of spec?
628: [11:00:37] <simon_w> Yeah, performance drops massively
629: [11:00:50] <Pysmblk> ic
630: [11:01:00] <Pysmblk> odd, I didn't think that'd be the case.
631: [11:01:07] <simon_w> And you have to load all the objects into memory to build the dropdown
632: [11:01:21] <Pysmblk> well, performance decrease with stupid numbers, maybe, but not an actual hard limit with issues.
633: [11:02:07] <simon_w> Anyway, to the sleep place!
634: [11:02:13] * simon_w quit (Quit: Ping timeout: your mum)
635: [11:08:44] * Liquide quit ()
636: [11:15:59] * Shrike_Finland1 has joined #silverstripe
637: [11:25:24] * Shrike_Finland1 quit (Quit: Leaving.)
638: [11:27:38] * jrthomer has joined #silverstripe
639: [11:28:14] * Shashitechno has joined #silverstripe
640: [11:29:01] <Shashitechno> Hello guys, Any captcha module available for userforms
641: [11:29:12] <Shashitechno> The issue is I am running on ss 2.4
642: [11:29:21] <Frans_Amsterdam> Hi All, I have a wated to know how. On an onBeforeWrite function I save an Object, I like to use the ID of this Object to save in another table. I can debug::show that ID but I cannot acces it to save with a BD::query.
643: [11:32:28] * vebb has joined #silverstripe
644: [11:38:04] * LEDfan quit (Ping timeout: 250 seconds)
645: [11:41:42] * LEDfan_ has joined #silverstripe
646: [11:44:46] <Sj0hn> Shasitechno: http://www.silverstripe.org/phpcaptcha-module/ ?
647: [11:45:07] <Sj0hn> Used it in a few 2.4 projects
648: [11:47:25] <Shashitechno> Sj0hn: Thanks, let me check
649: [11:48:33] * spronk2 quit (Quit: spronk2)
650: [11:50:53] <Shashitechno> Sj0hn: What else I would need to do to make it work with userforms ?
651: [11:52:06] <Sj0hn> Uhm the spamprotection module
652: [11:52:08] <Sj0hn> i think
653: [11:52:09] <Sj0hn> https://github.com/silverstripe/silverstripe-spamprotection/
654: [11:55:37] <Shashitechno> Sj0hn: Ok
655: [11:56:40] <ss31noob> How do I get the raw sql string created by a dataobjects method?
656: [12:00:59] * UndefinedOffset has joined #silverstripe
657: [12:01:54] * Shrike_Finland has joined #silverstripe
658: [12:01:56] * vebb quit (Ping timeout: 260 seconds)
659: [12:07:13] * ARNHOE quit ()
660: [12:10:38] * Pysmblk quit (Quit: Page closed)
661: [12:15:05] * ocm has joined #silverstripe
662: [12:18:27] * ocmnt quit (Ping timeout: 255 seconds)
663: [12:25:48] <wmk> ss31noob, just for debugging?
664: [12:26:10] <wmk> ?showqueries=1 in dev mode
665: [12:27:11] <wmk> ss31noob, or take a look at the source code and discover a method called sql() ;)
666: [12:27:22] <wmk> MyDataObject::get()->sql() should do the trick
667: [12:30:34] * Shashitechno quit (Ping timeout: 246 seconds)
668: [12:41:21] * Shrike_Finland quit (Quit: Leaving.)
669: [12:42:14] * nicolaas_ quit (Remote host closed the connection)
670: [12:45:19] * Shashitechno has joined #silverstripe
671: [12:48:38] * Robke has joined #silverstripe
672: [12:49:17] * Colin[pi] quit (Ping timeout: 272 seconds)
673: [12:51:55] * Shashitechno quit (Ping timeout: 246 seconds)
674: [12:54:05] * zfmf has joined #silverstripe
675: [13:04:33] * ocmnt has joined #silverstripe
676: [13:07:18] * ocm quit (Ping timeout: 246 seconds)
677: [13:20:57] * ARNHOE has joined #silverstripe
678: [13:21:01] * Shrike_Finland has joined #silverstripe
679: [13:22:21] * ARNHOE quit (Client Quit)
680: [13:22:22] * Robke quit (Ping timeout: 246 seconds)
681: [13:25:12] * Shrike_Finland quit (Ping timeout: 250 seconds)
682: [13:39:31] * babak quit (Quit: Connection closed for inactivity)
683: [13:52:23] * spronk2 has joined #silverstripe
684: [13:57:31] * muskie9 has joined #silverstripe
685: [13:57:42] <Guest16227> Would change this setting extend the time before a Members is logged out?
686: [13:57:42] <Guest16227> Config::inst()->update('Session', 'timeout', (int)$timeout);
687: [14:11:09] * wmk quit (Ping timeout: 240 seconds)
688: [14:11:56] * jcwacky has joined #silverstripe
689: [14:12:58] * spronk2 quit (Quit: spronk2)
690: [14:31:17] * scpi has joined #silverstripe
691: [14:52:08] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
692: [15:00:47] * Sj0hn quit ()
693: [15:17:27] * catcher has joined #silverstripe
694: [15:20:49] * cloph quit (*.net *.split)
695: [15:20:49] * Guest16227 quit (*.net *.split)
696: [15:20:50] * mrzero quit (*.net *.split)
697: [15:20:50] * FrozenFire quit (*.net *.split)
698: [15:20:51] * MickRip quit (*.net *.split)
699: [15:22:38] * cloph has joined #silverstripe
700: [15:22:38] * Guest16227 has joined #silverstripe
701: [15:22:38] * mrzero has joined #silverstripe
702: [15:22:38] * FrozenFire has joined #silverstripe
703: [15:22:38] * MickRip has joined #silverstripe
704: [15:24:25] * zfmf quit ()
705: [15:28:54] * ss31noob quit (Ping timeout: 246 seconds)
706: [15:31:13] * jenniferaslan has joined #silverstripe
707: [15:36:28] * TRB143 quit (Quit: No Ping reply in 180 seconds.)
708: [15:43:13] * TRB143__ has joined #silverstripe
709: [15:45:58] * TRB143__ is now known as TRB143
710: [15:56:25] * ocmnt quit (Remote host closed the connection)
711: [16:03:31] * babak has joined #silverstripe
712: [16:07:44] * wmk has joined #silverstripe
713: [16:12:06] * wmk quit (Ping timeout: 246 seconds)
714: [16:13:21] * kinglozzer has joined #silverstripe
715: [16:26:21] * ocmnt has joined #silverstripe
716: [16:26:48] * ocmnt quit (Disconnected by services)
717: [16:27:05] * ocm13 has joined #silverstripe
718: [16:27:51] * ocm13 is now known as ocmnt
719: [16:29:39] * stnvh quit ()
720: [16:35:34] * stefan___ has joined #silverstripe
721: [16:35:49] <stefan___> Hi all!
722: [16:36:08] <stefan___> How can I change the filename of an image with UploadField on upload
723: [16:36:23] <stefan___> I use UploadField not in the admin backend but in the frontend
724: [16:36:42] <stefan___> users potentially could upload images with the same name
725: [16:36:59] <stefan___> so i want to change the name of the file on upload with a random filename
726: [16:38:37] <stefan___> is this really the way to go: http://www.silverstripe.org/general-questions/show/20232 ????
727: [16:38:51] <stefan___> isn't there a better way, with a hook or something?
728: [16:42:17] * Liquide has joined #silverstripe
729: [16:47:01] <ocmnt> stefan___, I think there is an easier way
730: [16:47:12] <ocmnt> also possible is create a random upload folder ofcourse
731: [16:48:17] <ocmnt> upload the file(s) to a temporary random folder (generate some random hash for that)
732: [16:48:43] <ocmnt> then move the uploaded files one by one + changing the name in that process will achieve what you are looking for
733: [16:53:41] <stefan___> hey ocmnt thx
734: [16:53:55] <ocmnt> need some code with that?
735: [16:54:04] <stefan___> i found out about the: $field->setOverwriteWarning(false);
736: [16:54:22] <stefan___> it now doesn't show a message
737: [16:54:42] <ocmnt> ah yes, that is for disabling file overwriting; however I won´t suggest using that on frontend forms in your case
738: [16:55:03] <ocmnt> since the user isn´t overwriting his own file, could be someone else (as I understand)
739: [16:55:22] <stefan___> yes
740: [16:55:35] <stefan___> but as i now see it overwriting is disabled by default
741: [16:55:46] <stefan___> Determine if the field should show a warning when overwriting a file. * This requires Upload->replaceFile config to be set to true, otherwise * files will be renamed instead of overwritten (although the warning will * still be displayed)
742: [16:55:55] <stefan___> this is the comment from the source code
743: [16:56:27] <stefan___> Upload->replaceFile, i don't know where i can set this
744: [16:56:34] <stefan___> but it seems to be set to false
745: [16:56:52] <stefan___> because currently it adds a number at the end of the file, if the name exists already
746: [16:57:24] <stefan___> Thank you however very much!!!
747: [16:58:49] <ocmnt> not sure, but I think you could enable editing for the end user after uploading a file
748: [16:59:02] <stefan___> Do you know how I can disable the Edit Button of the UploadField ???
749: [16:59:14] <ocmnt> from UX persepctive it might be nice to warn them about duplicate names so they can rename
750: [16:59:41] <ocmnt> unless the filename doesnt matter ofc.
751: [17:00:01] <ocmnt> stefan___, you mean setTemplateFileEdit()?
752: [17:00:05] <ocmnt> uhr
753: [17:00:11] <ocmnt> setTemplateFileButtons
754: [17:01:46] <stefan___> on the UploadField I see the Edit Button, after I have uploaded a File
755: [17:02:01] <stefan___> I don't want the user to edit the file after upload
756: [17:02:09] <stefan___> he should only be able to remove it
757: [17:02:25] <ocmnt> http://doc.silverstripe.org/framework/en/reference/uploadfield#edit-uploaded-images
758: [17:02:28] <ocmnt> that should help you along
759: [17:06:28] <stefan___> yes but still the button stays there
760: [17:06:37] * anselmdk has joined #silverstripe
761: [17:06:37] <stefan___> i cannot remove the button by any means
762: [17:12:55] * jcwacky quit (Quit: jcwacky)
763: [17:14:48] * ThePeach quit (Quit: leaving)
764: [17:21:12] <stefan___> ok, i have overwriten the UploadField_FileButtons Template hihi
765: [17:21:26] <stefan___> don't know if it is beatiful, but who cars ...
766: [17:21:30] * stefan___ quit (Quit: Page closed)
767: [17:22:33] * scpi quit (Quit: naptime)
768: [17:41:25] * kinglozzer quit ()
769: [17:56:44] * eagles0513875 quit (Quit: ZNC @ TrekWeb - https://trekweb.org)
770: [18:00:10] * eagles0513875 has joined #silverstripe
771: [18:06:20] * anselmdk quit (Quit: anselmdk)
772: [19:43:21] * kinglozzer has joined #silverstripe
773: [19:48:43] * SightUnseen has joined #silverstripe
774: [19:57:17] * scpi has joined #silverstripe
775: [20:00:06] * Stomach has joined #silverstripe
776: [20:00:40] * SightUnseen has left #silverstripe
777: [20:02:14] * kinglozzer quit ()
778: [20:12:01] * Olliepop has joined #silverstripe
779: [20:19:11] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
780: [20:25:07] * vebb has joined #silverstripe
781: [20:27:37] * UndefinedOffset quit (Quit: Leaving.)
782: [20:39:17] * Ryan-Toast has joined #silverstripe
783: [20:52:19] * Ryan-Toast quit (Quit: Ryan-Toast)
784: [20:54:23] * Ryan-Toast has joined #silverstripe
785: [21:13:04] * PapaBearNZ has joined #silverstripe
786: [21:14:57] <PapaBearNZ> Hi All. Has anyone got experience with shortcodes? I've got an issue. 4 shortcodes work fine. The latest one sends no content through to the callback function. Instead the behaviour I get is the open tag of the shortcode is stripped from the content and the page displayed with the content of the shortcode followed by the close tag shown as normal text.
787: [21:18:37] * willr has joined #silverstripe
788: [21:25:41] * UncleCheese has joined #silverstripe
789: [21:25:56] * PapaBearNZ1 has joined #silverstripe
790: [21:26:06] * PapaBearNZ quit (Quit: Page closed)
791: [21:27:32] <UncleCheese> ah, here we go.. your daily "only in the USA" headline
792: [21:28:01] <UncleCheese> 9-year-old shoots and kills instructor while learning how to fire an Uzi
793: [21:37:00] * simon_w has joined #silverstripe
794: [21:38:49] * catcher quit (Quit: Leaving)
795: [21:38:51] <willr> UncleCheese success.
796: [21:38:59] <UncleCheese> sigh
797: [21:40:28] * scpi quit (Quit: scpi)
798: [21:41:55] <vebb> Kingy^: oi
799: [21:44:09] <simon_w> PapaBearNZ1, sounds like you're trying to nest shortcodes
800: [21:50:37] <PapaBearNZ1> @simon_w I get the behaviour when the shortcode is the only one in use on the page. I understand the issue around nesting shortcodes but this problem occurs when I only have the one shortcode in use.
801: [21:52:55] <PapaBearNZ1> What damn fool puts a fully automatic weapon in the hands of a child?!? sheesh! Adults have trouble controlling an uzi because of the recoil, etc moving the weapon around. Takes stregth and focus to handle it properly. A 9 yo is unlikely to have the strength - an untrained 9 yo even less so. Sounds like Darwin in practise to me.
802: [21:54:08] * ocmnt quit (Ping timeout: 260 seconds)
803: [21:56:22] * simon_w quit (Quit: Ping timeout: your mum)
804: [21:59:32] <Olliepop> Did you see the video? The instructor put his head right next to the gun too
805: [22:01:56] * novaweb has joined #silverstripe
806: [22:02:14] <novaweb> Why aren't you all at php conference...?
807: [22:03:28] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
808: [22:07:12] <Stomach> because wrong city
809: [22:11:49] <Blacklite_> [User Error] Uncaught Exception: Object->__call(): the method 'markpartialtree' does not exist on 'BlockItem'
810: [22:12:51] <Blacklite_> markPartialTree is defined in sapphire/core/model/Hierarchy.php
811: [22:13:31] <Blacklite_> and Hierarchy extends DataObjectDecorator. does that mean that my BlockItem model isn't set up correctly? I want to be able to select BlockItems from a list with TreeDropdownField
812: [22:13:49] <Blacklite_> ahh i think i've figured it out
813: [22:19:19] <Blacklite_> i'm guessing my BlockItem isn't part of SiteTree
814: [22:19:42] * Blacklite_ is now known as Blacklite
815: [22:21:36] <Stomach> Blacklite, yeah you need to add the hierarchy extension if you you want to display them in a treedropdown
816: [22:23:33] * Colin[pi] has joined #silverstripe
817: [22:27:02] * StefanLehmann_ has joined #silverstripe
818: [22:29:38] <Blacklite> i just want a dropdown so i can select a model
819: [22:29:45] <Blacklite> do i have to install an extension to do that?
820: [22:30:14] <Blacklite> this is a simple hasOne relationship
821: [22:30:32] <Stomach> use a DropdownField instead
822: [22:30:58] <Ryan-Toast> Hw do you set the page title on a search results page?
823: [22:31:19] <Stomach> ryan toast, are you in control of the search function?
824: [22:31:32] <Ryan-Toast> yup
825: [22:31:51] <Stomach> pass 'Title' => 'Lols 4real' in the customise function
826: [22:32:24] <Ryan-Toast> Stomach: I don’t set a customize method
827: [22:32:52] <Stomach> where are you returning the results?
828: [22:33:06] <Stomach> or just using the base searchform?
829: [22:33:35] <Ryan-Toast> Stomach: this is the function: http://pastebin.com/hzWzd0jD
830: [22:36:19] <Stomach> oh so its just using the default Page_results function
831: [22:36:26] <Ryan-Toast> yeah
832: [22:37:06] <Stomach> you could do public function getResults() { $this->Title = 'lols 4real'; return parent::getResults();} maybe
833: [22:37:16] <Blacklite> okay so let's say i want to get a list of all the BlockItems to pass into a DropdownField
834: [22:37:27] <Blacklite> how exactly do I do that in SS 2.4? I know how to do it in 3
835: [22:37:45] <Ryan-Toast> Stomach: I’ll give that a go
836: [22:38:50] <Stomach> blacklite -> new DropdownField('BlockItemID', 'Block Item', DataObject::get('BlockItem')) ?
837: [22:38:56] <Stomach> I think
838: [22:39:31] <Blacklite> i've tride this
839: [22:39:33] <Blacklite> *tried
840: [22:39:37] <Blacklite> $blockItems = DataObject::get('BlockItem');
841: [22:39:40] <Stomach> DataObject::get('BlockItem')->toDropDownMap('ID', 'Title')
842: [22:39:43] <Blacklite> ahh
843: [22:39:55] <Stomach> remember 2.4 stuff is hard :D
844: [22:39:58] <Blacklite> i know
845: [22:40:15] <Blacklite> making it really hard for me to recommend 3 to anyone based on my experience with 2.4 so far lol
846: [22:40:33] <Stomach> what do you mean?
847: [22:40:43] <Stomach> 3.1 is far superior to 3.0 and 2.4
848: [22:41:15] * UncleCheese has joined #silverstripe
849: [22:41:19] <Blacklite> yeah but the reality is that sites seem to get stuck with the same version forever
850: [22:46:43] * PapaBearNZ1 has left #silverstripe
851: [22:47:05] * PapaBearNZ1 has joined #silverstripe
852: [22:51:08] * hailwood has joined #silverstripe
853: [22:57:25] <hailwood> Hey guys, can you limit how many pages of a specific type there are?
854: [23:01:32] <simon_w|work> hailwood, yes. Add a canCreate() that returns false if self::get()->count() > 10
855: [23:02:24] * jenniferaslan quit (Quit: jenniferaslan has left the room)
856: [23:02:40] <simon_w|work> novaweb, because it doesn't sound very interesting
857: [23:03:37] * StefanLehmann_ quit (Remote host closed the connection)
858: [23:03:54] * StefanLehmann has joined #silverstripe
859: [23:04:00] <hailwood> simon_w|work: Awesome, Thanks At what point would that stop the user? When they try to create it initially (hidden or disabled in the list?), save the draft, or publish it?
860: [23:04:25] <simon_w|work> hailwood, when they try to create it or change type to it
861: [23:17:42] * catboy has joined #silverstripe
862: [23:19:29] <catboy> Hey all, I have a many to many relationship defined. The first class I can call the plural of the related class and retrieve the related objects, but not the other way around. I have the $belongs_many_many relationship defined in the second class too, and have done build/flush etc but no joy, it is telling me the method doesn't exist. Any ideas?
863: [23:22:27] <simon_w|work> catboy, you don't use the plural of the class name. You use whatever you named the relationship
864: [23:29:44] <catboy> Thanks Simon, I happened to use the plural of the class name for the relationship.
865: [23:30:16] <catboy> So point being, it works one way, but not the other
866: [23:32:30] <simon_w|work> catboy, try flushing then
867: [23:32:55] <catboy> Have done
868: [23:33:54] <catboy> So if this were my example code, from Stage I can't retrieve Staff http://www.silverstripe.org/data-model-questions/show/22377
869: [23:34:48] <simon_w|work> catboy, so that's the error you're getting?
870: [23:36:41] <catboy> No I was just being lazy with the example!
871: [23:37:22] <simon_w|work> catboy, what happens if you use $this->getManyManyComponents('RelationshipName')?
872: [23:38:37] * Azure has joined #silverstripe
873: [23:39:09] * Selay has joined #silverstripe
874: [23:40:03] <catboy> Hey Simon, I've solved it... I was calling a CLI script and flushing via the browser... just flushed on the cmd line and it worked... *doh*. Thanks a mil for your help tho!
875: [23:48:49] <hailwood> I need to be using gridfields to allow editing of a tabular data set on a page right? Is there a good tutorial anywhere on it? Basically I need to display a table on a specific page so I want the cms user to be able to switch to the "TableData" tab and just enter all the rows of the table under their pre-defined headings
876: [23:49:34] <Ryan-Toast> Stomach: Do you wear that captains hat at work ever?
877: [23:50:52] <Colin[pi]> morning all
878: [23:50:57] <Selay> @hailwood, maybe you can create another dataobject which contains your tabular data fields and then add it to that page with has many relationship. It will automatically create a tab for you and each row can be created under the columns. you dont need to work with gridfield deeply.
879: [23:50:58] <Ryan-Toast> Merning
880: [23:51:21] <ss23> morning guys, I have a question :O
881: [23:51:28] <Ryan-Toast> ss23: Sorry, I’m taken
882: [23:51:31] <ss23> XD
883: [23:51:35] <ss23> If I have like enum('level 1', 'level 2'), and I also have this
884: [23:51:39] <ss23> $nceaField = OptionsetField::create('HighestNCEA', 'Highest NCEA', singleton('Client')->dbObject('HighestNCEA')->enumValues(), false)->setRightTitle('Highest NCEA Level achieved (tick one)');
885: [23:51:42] <hailwood> Selay: Oh that sounds interesting - googles...
886: [23:51:46] <ss23> how can I be like "by default, dont' select anything!"
887: [23:51:50] <ss23> Like, why is the default even being set?
888: [23:52:01] <Stomach> Ryan-Toast, lol
889: [23:52:08] <Stomach> Ryan-Toast no they were just props :(
890: [23:52:23] <Ryan-Toast> Stomach: Guts, looks fantastic.
891: [23:52:30] <Stomach> beards + hats = winner
892: [23:52:36] <ss23> Actually, I think this may be HTML :O
893: [23:53:17] <Stomach> ss23, don't you need to set a non-value for it so the dropdown works
894: [23:53:18] <Ryan-Toast> ss23: you have false as your parameter, so it shouldn’t be setting it...
895: [23:53:29] <Ryan-Toast> try ‘'
896: [23:53:30] <Stomach> dropdowns always select the first element
897: [23:53:35] <ss23> hmm nope
898: [23:53:44] <ss23> Stomach: It's not a dropdown
899: [23:53:47] <ss23> It's a radio button
900: [23:53:53] <Stomach> oh well that sucks balls.
901: [23:54:12] <ss23> Yeah, SilverStripe is adding "Checked" it looks like
902: [23:54:26] <ss23> actually
903: [23:54:28] * ss23 gets nervous
904: [23:54:41] <ss23> I hope it didn't get set at a database level :O
905: [23:55:25] <ss23> lol, this code base is called "ss_(client)_poc"
906: [23:55:30] <ss23> BRO I THINK THEY'RE USING IT IN PROD, IT'S NOT A POC
907: [23:56:12] <ss23> `HighestNCEA` enum('Level 1','Level 2','Level 3') CHARACTER SET utf8 DEFAULT 'Level 1',
908: [23:56:16] <ss23> mother fucker
909: [23:56:58] <Selay> @@ss23, how about, you can have 'None' option as the first enum. then None will be selected which is fine
910: [23:57:20] <Colin[pi]> story of my life... oh, a client paid with a cheque. old fashioned, but sweet.. monies. *walks to the bank* The bank is fucking gone.
911: [23:57:31] <Colin[pi]> like, not there anymore
912: [23:58:22] <ss23> My preference would be to just select one, but I'll see if that's possible
913: [23:59:29] <catboy> I've got a ManyManyList object and want to grab the rows it represents in its current (or any) state... how is this done? Am I missing something in the docs? I just want to traverse it.

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