#silverstripe IRC Log

IRC log for 15 January 2016

All timestamps are in UTC.

1: [00:13:19] * spronk tries to convince the boss to buy formway chairs
2: [00:19:37] <helenclarko> FRIDAY!!
3: [00:20:40] <helenclarko> Just been through the steps to install one of the themestripe themes. Quite a tidy theme tbh.
4: [00:21:28] <spronk> fuck uyeahhh
5: [00:21:52] <helenclarko> spronk: GOT THE CHAIRS!!!
6: [00:21:57] <spronk> ?
7: [00:21:58] <spronk> nah
8: [00:22:02] <spronk> was referring to both friday
9: [00:22:02] <spronk> and
10: [00:22:03] <spronk> themestripe
11: [00:22:04] <spronk> :p
12: [00:22:24] <n8_> http://www.knoll.com/media/523/684/Thumb_generation880,4.png
13: [00:22:30] <n8_> that does not look comfy...
14: [00:22:34] <spronk> lol
15: [00:22:36] <micmania1> helenclarko: do the themes require any code/modules?
16: [00:22:46] <helenclarko> You work for them? Or just like the themes.
17: [00:22:49] <spronk> they are more comfortable than most of your standard x-lever chairs
18: [00:22:55] <spronk> helenclarko hadn't seen them before, like the themes.
19: [00:23:08] * scott1702 has joined #silverstripe
20: [00:23:22] <helenclarko> micmania1: Seems to all be nicely packaged and composer installable.
21: [00:23:57] <micmania1> So it pulls in modules too?
22: [00:25:44] <helenclarko> Yeah, looks like it pulls in userforms, widgets, spamprotection, blog, comments, sortablegridfield, silverstripe-version-truncator, betterbuttons, focuspoint and simplelistfield.
23: [00:26:04] <n8_> :/ userforms
24: [00:28:29] <helenclarko> micmania1: But then the theme itself has a bunch of sweet additions in some of the templates. The homepage has a sections tab for pulling data from other pages, works well too.
25: [00:28:54] <helenclarko> Still playing with it, might do up a review
26: [00:30:07] <n8_> have two 27" monitors you thought, good you thought it would be..
27: [00:30:12] <n8_> too much neck movement
28: [00:30:58] <spronk> n8_ oh?
29: [00:31:07] <spronk> i find 24, 27, 24, with a laptop underneath the 27
30: [00:31:08] <spronk> is quite good
31: [00:31:15] <spronk> i just swivel my chair around a bit
32: [00:31:29] <spronk> had debated swapping the 24s for an single 27
33: [00:31:34] <spronk> probably would be better than 2x24 IMO
34: [00:31:40] <spronk> (mainly for 1440p)
35: [00:31:47] <helenclarko> n8_: Once used a 42" Panasonic plasma Tv which I was using as a Monitor.
36: [00:31:59] <spronk> phlips make a 40" 4k 4:4:4 monitor
37: [00:32:03] <spronk> it looks quite interesting
38: [00:32:20] <n8_> Tried to make one in portait, looking up too much.. yeah I have surface floating under half the time.
39: [00:32:24] <spronk> basically four ~20" 1920x1080 monitors in a square
40: [00:32:30] <n8_> Yeah, 40" 4k is the best I've heard
41: [00:32:40] <spronk> i had a look at one in pbtech
42: [00:32:49] <spronk> not sure, neck movement up and down could be an issue
43: [00:33:22] <n8_> Boss bought one. major issues with scalling when runnning dual monitors and one isn't 4k :(
44: [00:33:29] * scott1702 quit (Quit: This computer has gone to sleep)
45: [00:33:32] <n8_> so go all the way if you go.
46: [00:33:55] <spronk> heh
47: [00:33:57] <spronk> yeah...
48: [00:33:58] <helenclarko> Im back at 2x24",
49: [00:34:16] <spronk> i wouldn't go 4k on a normal size monitor
50: [00:34:18] <spronk> unless mac
51: [00:34:29] <spronk> 40" you can do non-scaled 4k, and get masses of real estate
52: [00:34:30] <spronk> which is rather appealing
53: [00:34:42] <helenclarko> Pretty stoked my laptop can do a 4k output haha. Just need a 4k screen now.
54: [00:34:55] <spronk> still, dot pitch is a bit tight - slightly tighter than 27" 1440p which is about the limit of my comfortable
55: [00:35:05] * spronk pats his macbook pro that can theoretically do 2x4k outputs
56: [00:35:18] * spronk curses his macbook pro for being, on balance, a piece of shit
57: [00:35:32] <n8_> Lol
58: [00:35:49] <spronk> should have got the 16gb/512gb model
59: [00:35:55] <spronk> but no, too expensive
60: [00:36:00] <n8_> http://tiamat.tsotech.com/images/seiki-windows.jpg is the main appeal of 4k. merge conflics would be so easy to deal with
61: [00:36:14] <spronk> its just so handy having one monitor thats REALLY large
62: [00:36:20] <spronk> for e.g. photoshop work, or looking at large diagrams
63: [00:36:24] <helenclarko> spronk: Not sure if I can do it over the HDMI port, but display port will deffs do 4k.
64: [00:36:41] <spronk> if its HDMI1.4, which is doubtful on any current laptop, it'll do 4k @ 60hz
65: [00:36:49] <spronk> it'll probably do 4k@ 30hz on hdmi though
66: [00:37:01] <helenclarko> yeah.
67: [00:37:11] <spronk> ^^ and with a semidecent window manager a la windwos 10 or el capitan, one big screen isn't such a multitasking shit
68: [00:37:21] * r_hector has joined #silverstripe
69: [00:38:11] <n8_> As soon as you go multi monitor you don't want multiple virtual desktops though, too much shifting stuff, creates motion sickness
70: [00:38:19] <spronk> hmm
71: [00:38:52] <n8_> At least snowleopard transitions were nausiating.
72: [00:38:55] <spronk> my normal work setup is PC on left 24", Mac on 27", 24"
73: [00:39:05] <spronk> i use virtual desktops on all the mac monitors
74: [00:39:13] <helenclarko> spronk: HDMI: 1(v1.4b), Support 4Kx2K Output
75: [00:39:31] * micmania1 sticks with single laptop screen
76: [00:39:36] <helenclarko> ^^^ can you convert that for me.
77: [00:39:53] <Stomach> one screen is enough to see all the errors I create
78: [00:39:53] <Stomach> >_<
79: [00:39:53] <helenclarko> Mini-DisplayPort: 1, Support FHD 120HZ, 4K 60Hz
80: [00:40:05] <n8_> 5/7 (y)
81: [00:40:05] <spronk> ooh
82: [00:40:16] <spronk> it might do 4k@60hz on hdmi!
83: [00:40:44] <helenclarko> MSI GE62 Apache Pro
84: [00:41:17] <helenclarko> At the time, I couldnt find anything more beaytiful.
85: [00:41:24] <spronk> oh wow
86: [00:41:25] <spronk> one of those
87: [00:41:35] <spronk> no wonder you have 4k :p
88: [00:41:40] <helenclarko> *beautiful even*
89: [00:42:24] <helenclarko> But, like I said... Now I need the 4k monitor lol
90: [00:42:37] <helenclarko> Or two?
91: [00:43:02] <spronk> keke
92: [00:43:08] <spronk> ive been avoiding 4k
93: [00:43:10] <spronk> well
94: [00:43:12] <spronk> i wouldn't go 4k anyway
95: [00:43:20] <spronk> not on 27" or higher
96: [00:43:22] <spronk> 5k is where it's at
97: [00:43:34] <n8_> spronk do you use something like Synergy?
98: [00:43:36] <spronk> but too expensive, and... too hard for computer to drive unless it's a beefy desktop or something like your cray cray laptop
99: [00:43:37] <helenclarko> ;-P
100: [00:43:39] <spronk> n8_ i sure do
101: [00:43:46] <spronk> it is the bane of my existance multiple times a day, but there is nothing better :'(
102: [00:44:01] <spronk> you can see my sarcastic comments about how shit it is on their github issues ;D
103: [00:44:19] <helenclarko> Lol
104: [00:44:34] <spronk> case in point, one of their contributors posted a patch to fix their fucking middle mouse button press sending the wrong button code to OSX's HID manager, A YEAR AGO, and it still hasn't been merged.
105: [00:44:51] <helenclarko> Going to read the issues now.
106: [00:44:54] <n8_> I used it about two years ago, was a bit buggy, and was free. which is your server? osx ?
107: [00:46:08] <n8_> ooh... Synergy2 && Synergy+ merged...
108: [00:46:18] <spronk> n8_ windows server
109: [00:46:28] <spronk> because windows cursor ballistics is MANY YEARS AHEAD of apple's
110: [00:46:59] <n8_> Got it too copy paste between ?
111: [00:47:16] <spronk> mostly
112: [00:47:19] <spronk> it breaks frequently
113: [00:47:27] <spronk> and it also tries to work with image data, but never does
114: [00:47:35] <spronk> but ... 75% of the time, plain text copying works ok
115: [00:47:44] <helenclarko> Spronk: whats your github name?
116: [00:48:08] <spronk> spronkey
117: [00:48:52] <n8_> I assume you're Keith Humm?
118: [00:48:52] * scott1702 has joined #silverstripe
119: [00:48:57] <spronk> ja
120: [00:49:30] <spronk> my open source contributions are looking poorly :'(
121: [00:49:39] <n8_> Funny your urban Dictionary entry is the highest google result...
122: [00:49:55] <spronk> hahahaaa
123: [00:49:56] <spronk> oh wow
124: [00:49:58] <spronk> 2003
125: [00:50:04] <n8_> ;)
126: [00:51:26] <helenclarko> spronk: Your synergy posts look like my posts to capsuleCRM's support.
127: [00:51:35] <spronk> mm
128: [00:51:38] <spronk> i paid for it too
129: [00:51:45] <spronk> so its not just.. hate on the open source guys
130: [00:51:55] * spronk hates that
131: [00:52:01] <spronk> ... but is sometimes guilty of it
132: [00:52:05] * oddnoc quit (Quit: beer:30)
133: [00:53:29] <helenclarko> Felt that way when TF2 went free to play. I was like "But what about us who paid for this!"
134: [00:53:36] <spronk> :'(
135: [00:53:40] <spronk> yeah
136: [00:53:48] <helenclarko> "I MADE YOU!"
137: [00:53:55] <spronk> ikr
138: [00:53:55] <spronk> now it's just a fucking marketplace
139: [00:53:58] <spronk> not quite as bad as csgo though
140: [00:54:02] <spronk> and that's not even f2p!
141: [00:54:07] <spronk> the first updates were awesome
142: [00:54:11] <spronk> with each class getting cool shit
143: [00:54:14] <spronk> and then hats
144: [00:54:15] <n8_> l4d2 is where its at
145: [00:54:19] <helenclarko> spronk: soon my friend,
146: [00:54:39] <spronk> there was a pretty funny tf2 blog entry back when they were doing hats
147: [00:54:48] <spronk> and self-deprecating humor about how tf2 had just become all about hats
148: [00:54:53] <helenclarko> soon they will all be micro-transactioned free to play turds.
149: [00:55:36] <spronk> :(
150: [00:56:08] <spronk> http://www.teamfortress.com/post.php?id=3692 hahahahaha
151: [00:56:09] <spronk> <3 it
152: [00:56:33] * cloph is now known as cloph_away
153: [00:56:42] <spronk> its like a metaphor for what valve did to themselves
154: [00:56:55] <helenclarko> hahaha
155: [00:58:44] <spronk> "You know, guys," said Brandon, "the new guy would make a great hat if we hollowed him out."
156: [00:58:47] <spronk> THIS IS WHAT YOU DID TO YOURSELVES VALVE
157: [00:58:55] <spronk> HOLLOWED YOURSELF OUT TO MAKE A HICE HAT
158: [00:59:19] <spronk> funny thing is i actually like weapon skins
159: [00:59:29] <n8_> My font shows that as hice hat..
160: [00:59:38] <spronk> just.. making them things you can buy with real money, but not allowing real money to actually get out of the economy
161: [00:59:47] <spronk> and the whole random chance from opening box thing
162: [00:59:49] <spronk> its fucking gambling
163: [01:00:05] <spronk> and should be regulated just like online gambling is
164: [01:00:15] <spronk> people get addicted - youtube vids are testament to that shit
165: [01:03:52] * BrewNaked quit (Remote host closed the connection)
166: [01:05:22] <n8_> spronk what do you to do those things like "* spronk hates that" ?
167: [01:05:31] <spronk> /me
168: [01:05:45] * n8_ test
169: [01:05:55] <spronk> :D
170: [01:14:31] * Gfactor has joined #silverstripe
171: [01:15:21] <Gfactor> hi guys
172: [01:16:56] <Stomach> hallo
173: [01:17:23] <Gfactor> given that a set of record exist in a dataobject table, what is te best way a frontend user can edit any given row?
174: [01:17:46] <Gfactor> using the ->write() function
175: [01:18:12] <micmania1> Gfactor: you can create a form on the front-end and load the data in. And, yep ->write().
176: [01:19:07] <Gfactor> load the data? Yes I know of the logic, but can't seem to get it done...any given example?
177: [01:20:02] <n8_> just create an entry point via $allowed_action and send some JSON for updates?
178: [01:20:38] <n8_> issue is thats pretty open to vulnerabilities
179: [01:20:50] <micmania1> Gfactor: there’s a tutorial on forms here: https://docs.silverstripe.org/en/3.2/tutorials/forms/
180: [01:23:23] <Gfactor> micmanial: i've read that doc. it basically talks about creating not updating
181: [01:25:00] <n8_> Well once it;s created get()->byID() ..... ->Name = 'NewName' ... ->write() and it'll be saved to the db.
182: [01:25:35] <micmania1> Gfactor: You can use $form->loadDataFrom($myDataObject) to load the data object back in. You can use write to update it.
183: [01:28:36] <Gfactor> aiit, let me give it a shot, i guess i've figured out what i was missing
184: [01:38:53] * scott1702 quit (Quit: This computer has gone to sleep)
185: [01:40:41] * scott1702 has joined #silverstripe
186: [01:53:38] * travis-ci has joined #silverstripe
187: [01:53:39] <travis-ci> silverstripe/silverstripe-framework#6482 (3.0 - 00c1911 : Damian Mooyman): The build passed.
188: [01:53:39] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/cbd53324177b...00c19116888f
189: [01:53:39] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/102497953
190: [01:53:39] * travis-ci has left #silverstripe
191: [01:55:51] <helenclarko> Just had a call from a lady demanding a refund for a product we gave to her for free two years ago. Firstly, you got it for free lady! and secondly, you've had it for two years. Thats like getting a free meal at Mcdonalds, eating it and then waiting two years to ask for a refund on an item you didnt pay for.
192: [01:56:39] <xyphoid> can you set up a credit memo for $0
193: [01:56:40] <n8_> wat..
194: [01:56:40] <spronk> loooolll
195: [01:56:45] <xyphoid> that'd be totally worth the effort
196: [01:57:51] <helenclarko> granted, at the time she didnt realize she got the product for free. Was a nice wee suprise when I looked up her account.
197: [01:58:53] <helenclarko> So satisfying when you can take the phone off hold and say "Sorry, you are not intitled to a refund as the item was given to you at no cost."
198: [01:59:01] <spronk> fucking
199: [01:59:03] <spronk> handset drop
200: [01:59:04] <spronk> YEAH
201: [01:59:59] <spronk> damnit
202: [02:00:09] <spronk> internet is failing to find me a suitable mic drop gif using a phone instead of a mic :(
203: [02:01:29] <n8_> https://49.media.tumblr.com/bc7ad99738ddc2813f46a83853f8e46c/tumblr_n6kz8o5kVo1rdutw3o1_400.gif
204: [02:02:04] <helenclarko> ^^^^ NAILED IT!
205: [02:07:37] <helenclarko> He slid over a well-worn game design manual. I leafed through it. It wasn't a game design manual, it was a coffee table-sized book of women wearing hats.
206: [02:11:55] <spronk> :D
207: [02:11:57] <spronk> fucking love that blog post
208: [02:11:58] <spronk> so funny
209: [02:12:06] * scott1702 quit (Quit: This computer has gone to sleep)
210: [02:14:51] * micmania1 quit (Quit: micmania1)
211: [02:15:14] * Stomach quit (Quit: zzz)
212: [02:23:28] * Stomach has joined #silverstripe
213: [02:25:09] <DanaeNZ> mmm cider time
214: [02:25:32] <DanaeNZ> Who here has had the experience on switching apache sites to Nginx sites?
215: [02:25:50] <DanaeNZ> And general development processes surrounding that?
216: [02:25:59] <DanaeNZ> Vagrant the way to go for development?
217: [02:26:07] <spronk> hmm
218: [02:26:09] <spronk> i use vagrant
219: [02:26:21] <spronk> for some things i also use vaprobash
220: [02:26:28] * Gfactor quit (Quit: Leaving)
221: [02:26:37] <spronk> but for anything that goes to production, some time before it goes to prod we figure out production deployment, script it, and use that for vagrant provisioning
222: [02:26:52] <DanaeNZ> sounds like an excellent way to do it
223: [02:27:10] <spronk> it mooostly works, there are always some differences esp if you're deploying to stuff like aws
224: [02:27:19] <spronk> but so far we haven't had any big bites
225: [02:27:29] <spronk> haven't switched any SS stuff to nginx though...
226: [02:27:31] <DanaeNZ> That's the reason I'm mostly asking, as we're making the move to AWS
227: [02:27:47] <spronk> protip
228: [02:27:54] <DanaeNZ> Our old place successfully used Nginx with silverstripe
229: [02:27:55] <spronk> if you have to use the web UI to do day to day stuff
230: [02:27:55] <spronk> you're doin it wrong
231: [02:28:02] <DanaeNZ> for AWS?
232: [02:28:14] <spronk> mm
233: [02:28:21] <DanaeNZ> Oh right, launching new instances and whatnot?
234: [02:28:29] <spronk> yeah
235: [02:28:33] <DanaeNZ> It would be fantastic to move that away from the UI
236: [02:28:35] <spronk> though if its for a lot of clients maybe not
237: [02:28:46] <DanaeNZ> There will only be a few at first I think
238: [02:28:49] <spronk> but yeah, use cloudformation templates to do network config and instance config
239: [02:29:01] <spronk> build your own AMIs, or at the very least keep an up to date provisioning script from a known base AMI
240: [02:29:10] <spronk> stick that stuff on s3
241: [02:29:12] <DanaeNZ> AMI = something something image?
242: [02:29:16] <spronk> yeah
243: [02:29:19] <spronk> like a baseline machine image
244: [02:29:27] <spronk> ama machine image iirc
245: [02:29:51] <DanaeNZ> Seems like quite the learning curbe
246: [02:29:54] <DanaeNZ> curve*
247: [02:29:58] <spronk> i also recommend figuring out a virtual network
248: [02:30:26] <spronk> you can get by without, but its way nice to have public and private subnets, have all your private stuff i.e. database, rds, queue servers whatever in private subnet, and front facing servers in public
249: [02:30:38] <spronk> further secured by virtual firewall rules (security groups)
250: [02:30:49] <n8_> We're using Nginx here DanaeNZ, not quite like the set up Nik did. but it works
251: [02:31:05] <n8_> Do you want the full suite with that Capistrano stuff as well?
252: [02:31:17] * pinc has joined #silverstripe
253: [02:32:41] <DanaeNZ> spronk: So much to consider. Is it practical to just start small?
254: [02:32:47] <DanaeNZ> Then build on top of that?
255: [02:32:50] <spronk> hmm
256: [02:32:53] <DanaeNZ> Oh that's you n8_ !
257: [02:32:55] <spronk> sorta
258: [02:32:58] <n8_> ;)
259: [02:33:15] <spronk> DanaeNZ cloudacademy has a good video course on aws basics
260: [02:33:25] <DanaeNZ> spronk: Oh really? Maybe I'll check that out
261: [02:33:38] <spronk> i'd definitely recommend, at the minimum, getting a good grasp of how aws does firewalling (security groups) and virtual networks (VPCs)
262: [02:33:59] <DanaeNZ> I've got a fairly rudimentary understanding of Security Groups but that's about it
263: [02:33:59] <spronk> you can kinda get away with ignoring them, but it'll get confusing
264: [02:34:49] <spronk> vpcs are reasonably straightforward
265: [02:34:54] <DanaeNZ> ooooh CloudAcademy costs the money
266: [02:35:01] <spronk> there's a free trial :D
267: [02:35:02] <DanaeNZ> Boss gets back next week
268: [02:35:06] <DanaeNZ> Oh sweet
269: [02:35:08] <n8_> oh. hello permanentinc.
270: [02:35:11] <spronk> that's totally long enough to view all the aws stuff you need
271: [02:35:20] <DanaeNZ> spronk:
272: [02:35:22] <DanaeNZ> oops
273: [02:35:24] <DanaeNZ> enter key
274: [02:36:05] <spronk> our setup has eight vpcs
275: [02:36:08] <DanaeNZ> Free trial of the Pro Plan looks good
276: [02:36:24] <spronk> two groups of four - one private and one public subnet in each of two availability zones
277: [02:36:55] <spronk> all our RDS instances, backend processing stuff, message queue servers sit on the private subnets
278: [02:37:03] <DanaeNZ> How does that work out cost wise? Just charge the client whatever it costs?
279: [02:37:30] <spronk> well, we don't have clients, but yeah... I'd probably charge the client with a percentage margin on top if you do it that way
280: [02:37:38] <spronk> it can be quite hard to work out costs on a per-client basis
281: [02:37:40] <n8_> Dont have clients?
282: [02:37:44] <spronk> i dno whether aws has tools like that
283: [02:37:49] <ss23> hey guys hows working?
284: [02:37:54] <ss23> vacation at disney world is great
285: [02:37:55] <spronk> ss23 pretty fucking awesome
286: [02:38:05] <DanaeNZ> ss23: jelly
287: [02:38:08] <ss23> :D
288: [02:38:21] <spronk> ss23 at disneyworld: next star wars guy meme
289: [02:38:25] <n8_> ss23: The Starwars land hasn't been made yet though, I really want to see that.
290: [02:38:26] <spronk> ss23, make this a thing
291: [02:38:29] <ss23> lol
292: [02:38:30] <ss23> no
293: [02:38:32] <spronk> :<
294: [02:38:36] * spronk is disappoint
295: [02:38:47] <ss23> Remember, I'm socially respectable outside of IRC
296: [02:38:48] <ss23> :D
297: [02:38:54] <DanaeNZ> yeah right
298: [02:40:42] <spronk> DanaeNZ lots of little hidden costs with AWS
299: [02:40:51] <DanaeNZ> spronk: sneaky mother fuckers
300: [02:41:02] * spronk looks at our cost breakdown..
301: [02:41:02] <DanaeNZ> Kinda want to keep the number of different services I use dowen
302: [02:41:16] <n8_> spronk: think your personal site Solvam link is going somewhere strange...
303: [02:41:17] * Phlunk3 has joined #silverstripe
304: [02:41:28] <spronk> we are totally drinking the kool-aid
305: [02:41:38] <spronk> n8_ school-links?
306: [02:41:56] <n8_> Yeah.. that correct?
307: [02:41:59] <spronk> mm
308: [02:43:21] <spronk> yeah, our service charge includes data transfer, ec2, rds, route53, sns, sqs, s3
309: [02:43:25] <spronk> and each of those has a massive breakdown
310: [02:43:32] <spronk> like
311: [02:43:42] <spronk> AWS Data Tarnsfer APS2-USE1-AWS-In-Bytes
312: [02:43:49] <spronk> $0.01
313: [02:44:30] <DanaeNZ> On my personal one I have only ec2
314: [02:44:34] <spronk> ooh
315: [02:44:38] <spronk> DanaeNZ , there are cost allocation tagsd
316: [02:44:39] <spronk> -d
317: [02:44:42] <DanaeNZ> it's happily quietly spinning away
318: [02:44:43] <spronk> i assume you use those to do clients
319: [02:45:12] <spronk> or maybe use linked accounts O_o
320: [02:45:13] * spronk shrugs
321: [02:45:16] <spronk> aws is a complex beast of beastliness
322: [02:45:35] <DanaeNZ> Yeah it's a bit tricky as it doesn't quite align with the classic model
323: [02:45:39] <DanaeNZ> eg, WHM
324: [02:45:49] <spronk> god i hate whm :D
325: [02:45:50] <DanaeNZ> I mean, we could put WHM on there
326: [02:45:56] <DanaeNZ> but yeah it's pretty gross
327: [02:47:48] <spronk> does cpanel still look the same as it did in 2000?
328: [02:47:56] <DanaeNZ> spronk: pretty much
329: [02:47:58] <spronk> oh wow
330: [02:48:00] <spronk> it totally does
331: [02:48:07] <spronk> daaang
332: [02:48:19] <spronk> way to milk a product
333: [02:48:42] <helenclarko> cpanel, ha. It never changes.
334: [02:48:46] <DanaeNZ> CloudAcademy gives you points! I'm sold
335: [02:48:55] <DanaeNZ> Ooh, better yet, they are called karma points
336: [02:49:01] <spronk> :)
337: [02:49:08] <helenclarko> Points and medals?
338: [02:49:20] <spronk> some of the teachers are booooooooooring
339: [02:49:27] <spronk> not sure i'd pay for it for long
340: [02:49:30] <spronk> but the aws stuff was useful
341: [02:49:45] <helenclarko> spronk: DONT CARE... POINTS!!!
342: [02:49:49] <DanaeNZ> Hopefully I can shuffle enough time over the next week to learn some stuff
343: [02:49:55] <spronk> next they'll implement hats
344: [02:50:00] <DanaeNZ> lmaoooo
345: [02:50:06] <helenclarko> Hahaha
346: [02:50:08] * spronk looks forward to the towering pillar of hat
347: [02:50:26] <spronk> or perhaps i'll settle for the noble amassment of hats
348: [02:50:53] <DanaeNZ> quality over quantity
349: [02:50:56] <n8_> Pretty sure cPanel added some web2.0 graidents
350: [02:51:05] <spronk> ooh
351: [02:51:10] <DanaeNZ> Khan academy is pretty good for its reward system
352: [02:51:12] <spronk> implemented in .gif though
353: [02:51:38] <n8_> spronk: slice up those images for rounded corners man
354: [02:51:43] <helenclarko> n8_: Changing the world huh?
355: [02:51:45] <spronk> ooh yeah
356: [02:51:47] <spronk> 3x3 table
357: [02:52:17] <helenclarko> codecademy anyone?
358: [02:52:19] * spronk is totally showing his age now
359: [02:52:39] * BrewNaked has joined #silverstripe
360: [02:53:54] <DanaeNZ> now I just gotta make sure this mother fucker doesn't charge me at the end of my trial and we're set
361: [02:54:18] <helenclarko> DanaeNZ: Prezzy card that shit!
362: [02:54:21] <spronk> cal add "CANCEL CLOUD ACADEMY" +1 week
363: [02:54:22] <n8_> DanaeNZ: Heard prezzycards are
364: [02:54:24] <n8_> frrp
365: [02:54:32] <n8_> dont even need to finish my sentance...
366: [02:54:37] <DanaeNZ> prezzy card?
367: [02:54:44] * DanaeNZ is behind the times
368: [02:54:54] <n8_> http://www.prezzycard.co.nz/
369: [02:54:59] <helenclarko> prepaid debit.
370: [02:55:06] <n8_> Small scale preloaded visa...
371: [02:55:08] <helenclarko> Or some shit
372: [02:55:12] <n8_> Used in CC forms.
373: [02:55:22] <n8_> but then runs out and just doens't do any more.
374: [02:55:32] <n8_> Useful for sites that demand a cc
375: [02:56:01] <helenclarko> DanaeNZ: You can have your cake and eat it too... Or some shit, I dunno.
376: [02:56:08] <DanaeNZ> so just get a blank one?
377: [02:56:12] <DanaeNZ> i mean
378: [02:56:13] <DanaeNZ> empty
379: [02:56:27] <spronk> can you even top them up?
380: [02:56:49] <spronk> prezzy card.. otherwise known as how to pay for something anonymously
381: [02:56:59] <spronk> (on the internet)
382: [02:57:04] * micmania1 has joined #silverstripe
383: [02:57:10] * BrewNaked quit (Ping timeout: 260 seconds)
384: [02:57:33] <n8_> Hello Goodbye
385: [02:58:49] * scott1702 has joined #silverstripe
386: [02:59:27] <helenclarko> DanaeNZ: Yeah. Or Get it loaded with like $20 bucks, sign up for cloudcademy and then buy a pizza online and relax. all on your prezzy card.
387: [02:59:55] * Stomach quit (Quit: zzz)
388: [03:00:21] * MichalKleiner quit ()
389: [03:01:21] <n8_> Minimum upped to $25 loaded on to them now..
390: [03:01:27] <spronk> lame
391: [03:01:35] <n8_> Idk, more pizza
392: [03:01:38] <spronk> damnit
393: [03:01:46] <spronk> why have i been signed out of all my sites :LS
394: [03:01:48] * n8_ likes pizza
395: [03:01:57] <spronk> now i gotta do 2fa for all of them
396: [03:01:57] * spronk cries
397: [03:02:07] <n8_> Just dont go back.
398: [03:02:11] <n8_> AWOL
399: [03:02:15] <spronk> luls
400: [03:02:18] <spronk> phone is out of reach
401: [03:02:25] * spronk is going to have to fucking lean fucking forward. GOD DAMNIT
402: [03:02:26] <helenclarko> n8_: pizza and delivery?
403: [03:02:38] <spronk> totally need to switch to authy and get codes on my pc as well
404: [03:02:54] <DanaeNZ> authy is pretty sweet
405: [03:03:09] <n8_> helencalrko: depends on where you pizza from
406: [03:03:10] * MichalKleiner has joined #silverstripe
407: [03:03:32] <n8_> tinyurl.com/pizzacoupons
408: [03:03:39] <DanaeNZ> i miss my google music playlists
409: [03:03:48] <DanaeNZ> i switched to spotify
410: [03:04:26] <n8_> :O
411: [03:04:33] <n8_> Thats a suprise.
412: [03:04:35] <n8_> Why?
413: [03:04:43] <n8_> To follow pinc playlists?
414: [03:04:46] <DanaeNZ> web based client is shit
415: [03:05:11] <n8_> Heard G music suggestions is wayyy better
416: [03:05:15] <helenclarko> haha, skip adds on spotify. Use web player and adblock
417: [03:05:33] <DanaeNZ> helenclarko: didn't know they have a web player :o
418: [03:05:40] <spronk> or go to real groovy slash penny lane and buy cds like a baws
419: [03:05:52] <DanaeNZ> spronk: what is a See Dee?
420: [03:05:59] <spronk> you know
421: [03:06:03] <spronk> a fancy cassette
422: [03:06:15] <DanaeNZ> spronk: now you're just making up words
423: [03:06:18] <spronk> :D
424: [03:06:49] <helenclarko> DanaeNZ: https://play.spotify.com/
425: [03:06:57] <n8_> beat me twice in a row.
426: [03:06:59] <n8_> :(
427: [03:07:23] <helenclarko> n8_: Soz bout it.
428: [03:07:28] <n8_> Sam your too fast
429: [03:07:37] <n8_> you're*
430: [03:08:32] <helenclarko> :D
431: [03:10:23] <n8_> The web ui was a little clunky last I checked though
432: [03:11:40] <helenclarko> Grooveshark was the best.
433: [03:12:09] <n8_> 8tracks had a small sweet time...
434: [03:13:08] <helenclarko> Ah, my pirate flag seems to be stuck at the top of the flagpole over here.
435: [03:13:45] * zlinux has joined #silverstripe
436: [03:14:37] * MichalKleiner quit ()
437: [03:17:44] <spronk> keke
438: [03:18:41] <n8_> ㅋㅋ
439: [03:22:33] * cupcake quit (Ping timeout: 252 seconds)
440: [03:26:31] <n8_> Ugh so tired...
441: [03:26:44] <n8_> elseif with no check, wonder why it didn't work
442: [03:27:15] <n8_> just empty..
443: [03:28:19] * Audlex quit ()
444: [03:29:41] * helenclarko quit (Quit: Ain't no lie, baby bye bye bye.)
445: [03:37:03] * nontgor quit (Ping timeout: 260 seconds)
446: [03:38:43] * flashbackzoo quit (Quit: WeeChat 0.4.2)
447: [03:50:26] * Phlunk3 quit (Quit: Leaving)
448: [03:50:34] * DanaeNZ quit (Remote host closed the connection)
449: [03:58:50] * n8_ quit ()
450: [04:14:41] * DanaeNZ has joined #silverstripe
451: [04:20:24] * micmania1 quit (Quit: micmania1)
452: [04:31:10] * scott1702 quit (Quit: Leaving)
453: [04:41:35] * BrewNaked has joined #silverstripe
454: [04:45:17] * pinc quit (Remote host closed the connection)
455: [04:45:59] * BrewNaked quit (Ping timeout: 245 seconds)
456: [05:26:41] * DanaeNZ quit (Quit: TIME TO FEED)
457: [05:28:57] * Stomach has joined #silverstripe
458: [05:40:11] * Gfactor has joined #silverstripe
459: [05:47:12] * Stomach quit (Quit: zzz)
460: [05:52:33] * dollardad quit (Quit: dollardad)
461: [05:56:06] * spronk quit (Quit: I may need a longer sleep timer...)
462: [05:57:52] * Gfactor quit (Ping timeout: 256 seconds)
463: [06:07:02] * spronk has joined #silverstripe
464: [06:08:19] * Gfactor has joined #silverstripe
465: [06:25:06] * Liquide quit ()
466: [06:30:28] * BrewNaked has joined #silverstripe
467: [06:35:11] * BrewNaked quit (Ping timeout: 276 seconds)
468: [06:44:49] * micmania1 has joined #silverstripe
469: [06:44:49] * micmania1 quit (Client Quit)
470: [06:45:15] * zlinux quit (Ping timeout: 260 seconds)
471: [07:01:06] * Gfactor quit (Ping timeout: 240 seconds)
472: [07:05:45] * Mike123 has joined #silverstripe
473: [07:19:06] * Gfactor has joined #silverstripe
474: [07:33:55] * Gfactor quit (Ping timeout: 240 seconds)
475: [08:19:21] * BrewNaked has joined #silverstripe
476: [08:21:01] * cloph_away is now known as cloph
477: [08:23:26] * BrewNaked quit (Ping timeout: 240 seconds)
478: [08:24:53] * Gfactor has joined #silverstripe
479: [08:30:24] * micmania1 has joined #silverstripe
480: [09:08:02] * kinglozzer has joined #silverstripe
481: [09:21:20] * MarkGuin_ has joined #silverstripe
482: [09:25:28] * ryanpotternz has joined #silverstripe
483: [09:26:52] * micmania1 quit (Quit: micmania1)
484: [09:28:59] * micmania1 has joined #silverstripe
485: [09:38:19] * spronk quit (Quit: I may need a longer sleep timer...)
486: [09:41:20] <Gfactor> Hola
487: [09:50:01] * pinc has joined #silverstripe
488: [09:52:03] * micmania1 quit (Quit: micmania1)
489: [09:54:36] * pinc quit (Ping timeout: 272 seconds)
490: [09:54:44] * ryanpotternz has left #silverstripe
491: [09:59:30] <Gfactor> this is the 2.4 pattern how can it be achieved with 3.1...there seems to be no doc. on that for 3.1
492: [09:59:33] <Gfactor> $myPlayer = DataObject::get_by_id('Player',99);
493: [09:59:33] <Gfactor> if($myPlayer) {
494: [09:59:33] <Gfactor> $myPlayer->Firstname = "John"; // sets property on object
495: [09:59:33] <Gfactor> $myPlayer->write(); // writes row to database
496: [09:59:33] <Gfactor> }
497: [10:05:46] * Embraden quit (Read error: No route to host)
498: [10:08:14] * BrewNaked has joined #silverstripe
499: [10:12:47] * BrewNaked quit (Ping timeout: 260 seconds)
500: [10:14:14] * otterpocket has joined #silverstripe
501: [10:14:19] <kinglozzer> Gfactor: You can still do that in 3.1
502: [10:14:30] <kinglozzer> The "better" way is $myPlayer = Player::get()->byID(99);
503: [10:14:34] <kinglozzer> But the rest is still the same
504: [10:14:59] <otterpocket> Anybody here using traits in SS, if yes what sort of things do you use them for?
505: [10:20:21] <MarkGuin_> otterpocket - i'm using them more and more. any time there's shared functionality.
506: [10:21:56] <MarkGuin_> for example we've got a site with a REST api so I have a trait for any model that needs to be formatted for the API (HasFormatter) and another for models that need to cleanse input from the API (HasSafeApiUpdates)
507: [10:22:12] <MarkGuin_> You could do that with a shared base class, but traits allow you to mix and match more freely
508: [10:23:00] <MarkGuin_> i use this module to make them autoload: https://github.com/stevie-mayhew/trait-loader
509: [10:36:59] * otterpocket quit (Ping timeout: 276 seconds)
510: [10:41:52] * otterpocket has joined #silverstripe
511: [10:47:23] <Gfactor> kinglozzer: well, somehow it is not working for me...please take a look at this http://kopy.io/gc7Y3
512: [11:02:18] * DarjusIT has joined #silverstripe
513: [11:03:37] <kinglozzer> Gfactor: Well firstly you're calling $result->write(); and the $result variable doesn't exist
514: [11:11:46] * DimiStripe quit (Quit: DimiStripe)
515: [11:12:08] * DimiStripe has joined #silverstripe
516: [11:16:11] <DarjusIT> Hi what is the difference in Image.CMSThumbnail and Image.StripThumbnail?
517: [11:29:36] * cloph 'd assume CMSThumbnail has predefined size as defined in the CMS' code, while StripThumbail has your own size? (multiple images getting the same height)?
518: [11:29:56] <swaiba> DarjusIT - http://api.silverstripe.org/3.0/source-class-Image.html#254-260 and http://api.silverstripe.org/3.0/source-class-Image.html#230-236
519: [11:30:19] <swaiba> means that cms_thumbnail_width / cms_thumbnail_height and strip_thumbnail_width / strip_thumbnail_height
520: [11:30:22] <swaiba> is the differenc
521: [11:33:11] * apuckey quit (Ping timeout: 264 seconds)
522: [11:35:52] <Gfactor> Kinglozzer: I corrected that, yet it didn'twork
523: [11:47:49] <DarjusIT> thx all for answer :)
524: [11:51:25] * pinc has joined #silverstripe
525: [11:55:35] * pinc quit (Ping timeout: 245 seconds)
526: [11:57:06] * BrewNaked has joined #silverstripe
527: [11:57:11] * MarkGuin_ quit (Remote host closed the connection)
528: [11:58:44] * MarkGuin_ has joined #silverstripe
529: [12:01:40] * BrewNaked quit (Ping timeout: 256 seconds)
530: [12:08:25] <leomeloxp> Any ideas how I can add extra attributes to each option of an OptionsetField and/or DropdownField? SS3.1
531: [12:30:20] <swaiba> leomeloxp :- OptionsetField::create(blah,blah,blah)->setAttribute('something','somevalue');
532: [12:32:53] <leomeloxp> swaiba: Thanks, but I think that may either add the attr to the ul or all input fields. I'd need them to be different for each option
533: [12:34:05] <swaiba> ok, I'm not sure why you cannot programmatically put something different in those arguments as you create the field
534: [12:36:00] <swaiba> if you are saying you cannot do this in PHP when you create them then maybe using jquery to amend once rendered?
535: [12:54:21] <leomeloxp> Yeah, I'll have to resource to JS and JSON maps. The problem is the way OptionsetFields are rendered on their .SS template (and the object that calls renderWith). It only takes arrays for source
536: [12:55:41] <leomeloxp> I know I can use PHP to find the individual inputs name and ID. So from there I'll just create a JSON that maps them to my extra fields and to the parsing using JS
537: [13:14:36] * cloph is now known as cloph_away
538: [13:21:53] * UndefinedOffset has joined #silverstripe
539: [13:46:00] * BrewNaked has joined #silverstripe
540: [13:46:16] * elgabbu quit (Ping timeout: 252 seconds)
541: [13:50:35] * BrewNaked quit (Ping timeout: 264 seconds)
542: [13:52:51] * pinc has joined #silverstripe
543: [13:57:47] * pinc quit (Ping timeout: 264 seconds)
544: [14:06:47] * DimiStripe quit (Ping timeout: 264 seconds)
545: [14:06:48] * DarjusIT quit (Ping timeout: 264 seconds)
546: [14:07:05] * DarjusIT has joined #silverstripe
547: [14:08:11] * DimiStripe has joined #silverstripe
548: [14:12:47] * DimiStripe quit (Ping timeout: 264 seconds)
549: [14:13:23] * DimiStripe has joined #silverstripe
550: [14:13:27] * DarjusIT_1 has joined #silverstripe
551: [14:13:27] <ss-helper> DarjusIT_1: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
552: [14:13:59] * DarjusIT quit (Ping timeout: 264 seconds)
553: [14:20:46] * DimiStripe_alt has joined #silverstripe
554: [14:21:14] * Gfactor quit (Ping timeout: 276 seconds)
555: [14:24:02] * DimiStripe quit (Ping timeout: 246 seconds)
556: [14:24:38] * DimiStripe has joined #silverstripe
557: [14:26:00] * DimiStripe_alt1 has joined #silverstripe
558: [14:26:00] <ss-helper> DimiStripe_alt1: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
559: [14:26:56] * DimiStripe_alt quit (Read error: Connection reset by peer)
560: [14:28:11] * r_hector quit (Remote host closed the connection)
561: [14:28:23] * DimiStripe_alt1 is now known as DimiStripe_alt
562: [14:28:54] * DimiStripe quit (Ping timeout: 245 seconds)
563: [14:28:55] * DimiStripe_alt is now known as DimiStripe
564: [14:39:01] * DarjusIT_1 quit (Read error: Connection reset by peer)
565: [14:42:56] * UndefinedOffset quit (Quit: Leaving.)
566: [15:17:02] * UndefinedOffset has joined #silverstripe
567: [15:17:04] * cupcake has joined #silverstripe
568: [15:17:25] <cupcake> ola o/
569: [15:17:55] <cupcake> i have a data list i need to ammend the query and plug it back into the list how can it be done?
570: [15:31:09] * ec8or quit (Read error: Connection reset by peer)
571: [15:31:25] * ec8or has joined #silverstripe
572: [15:34:52] * BrewNaked has joined #silverstripe
573: [15:38:55] * BrewNaked quit (Ping timeout: 240 seconds)
574: [15:45:57] * Gfactor has joined #silverstripe
575: [15:58:40] <swaiba> cupcake $sql = $list->sql();list($select,$where)=explode($sql);
576: [15:59:07] <swaiba> edit the $where
577: [15:59:19] <swaiba> $list->where($where);
578: [15:59:37] <swaiba> or something like that, that is a really rough exapmle
579: [15:59:43] * cloph_away is now known as cloph
580: [16:03:36] <swaiba> I have a question for all :)
581: [16:04:13] <swaiba> if I'm running a controller and I wish to get the contents of a "page" i.e. the same as if I did a view source
582: [16:04:52] <swaiba> but I'm doing it on my localhost over and over - is there anything anyone would advise?
583: [16:07:03] * Mike123 quit (Ping timeout: 252 seconds)
584: [16:11:00] * oddnoc has joined #silverstripe
585: [16:23:33] * BrewNaked has joined #silverstripe
586: [16:25:14] <MarkGuin_> swaiba - are you using $this->renderWith([...])->forTemplate()?
587: [16:25:38] <swaiba> at the moment I'm making progress with just file_get_contents!
588: [16:25:52] <swaiba> it seems to be fine requesting from teh same localhost
589: [16:29:48] <swaiba> Main problem I'm having is to now think I'm logged in as someone else at the time!
590: [16:34:26] <kinglozzer> swaiba: Director::test()?
591: [16:35:36] <kinglozzer> You should be able to pass a $session param, you could build a Session object and set the loggedInAs value to whatever ID
592: [16:35:44] <kinglozzer> I think :P
593: [16:36:41] <swaiba> kinglozzer - this is very interesting! I'll let you know shortly if it works out :)
594: [16:55:04] <ss-helper> AngularJS POST json to SilverStripe API - http://stackoverflow.com/questions/33559227/angularjs-post-json-to-silverstripe-api
595: [16:55:19] <swaiba> topman kinglozzer a little tweaking and doing the login fucntions without the cookie stuff means I'm free to test this is non hacky way
596: [16:55:26] <swaiba> much appreciation!
597: [17:03:12] <kinglozzer> no worries swaiba, have a good weekend!
598: [17:03:17] <kinglozzer> cyall
599: [17:03:21] * kinglozzer quit ()
600: [17:06:40] * r3v3rb has joined #silverstripe
601: [17:06:46] <r3v3rb> hi all
602: [17:06:50] <r3v3rb> Friday Panic!
603: [17:07:33] <r3v3rb> I have a form that is submitting itself but even though I have no validation set it still validates two dropdownfields that I don’t want validated?!
604: [17:07:41] <r3v3rb> and then returns the form
605: [17:08:19] <r3v3rb> any ideas?
606: [17:09:01] <swaiba> r3v3rb do you have a validator?
607: [17:09:07] <r3v3rb> swaiba: nope
608: [17:09:31] <r3v3rb> but the submission always returns the page with the two dropdowns in ‘error’
609: [17:09:49] <swaiba> and if not, is ther anything in the main validator code for the drop downs that are doing it?
610: [17:10:10] <r3v3rb> driving me crazy - worked in 3.1 last year, updated to 3.2 and now its cattle trucked a stripe payment gateway ;)
611: [17:10:14] <swaiba> e.g. if you go over and hack the framework for the drop downs validator code to "return true;"
612: [17:10:18] * r3v3rb checks dropdownfield
613: [17:10:51] <swaiba> would that ensure it doesn't fail validation? if so then your issue is the validation of the DropdownField class
614: [17:11:45] <swaiba> http://api.silverstripe.org/3.2/source-class-DropdownField.html#275-288
615: [17:12:18] <swaiba> looks like you might need to $ddField->setHasEmptyDefault(true); to your code
616: [17:12:25] <swaiba> r3v3rb ^^^^^
617: [17:12:33] <r3v3rb> yup
618: [17:12:45] <swaiba> sorry but I'm outtie for teh rest of day I hope this help :)
619: [17:13:08] * swaiba quit (Remote host closed the connection)
620: [17:14:03] <r3v3rb> its a start - i reckon its the missinf default empty on submission
621: [17:14:06] <r3v3rb> missing
622: [17:15:20] <r3v3rb> phew
623: [17:24:19] * mrguits has joined #silverstripe
624: [17:24:45] <mrguits> Can I use FormScaffolding on a frontend form?
625: [17:26:16] <r3v3rb> mrguits: how do you mean?
626: [17:28:10] * otterpocket quit (Quit: Leaving)
627: [17:28:12] <mrguits> Autmatically generate a form based on an object
628: [17:32:55] * Gfactor quit (Ping timeout: 240 seconds)
629: [17:39:53] <mrguits> ok, I found it - Nice !!!
630: [17:40:05] <ss-helper> Silverstripe hash link rewriting putting unwanted slash in link - http://stackoverflow.com/questions/28365057/silverstripe-hash-link-rewriting-putting-unwanted-slash-in-link
631: [17:41:17] * Gfactor has joined #silverstripe
632: [17:46:01] * MarkGuin_ quit (Remote host closed the connection)
633: [17:48:20] * Gfactor quit (Ping timeout: 272 seconds)
634: [17:48:44] * Gfactor has joined #silverstripe
635: [18:10:15] * Gfactor quit (Ping timeout: 240 seconds)
636: [18:10:27] * Gfactor has joined #silverstripe
637: [18:29:31] * cupcake quit (Ping timeout: 252 seconds)
638: [19:25:37] * mrguits quit (Ping timeout: 252 seconds)
639: [19:46:37] * MarkGuin_ has joined #silverstripe
640: [19:52:50] * gelignite has joined #silverstripe
641: [19:58:39] * DimiStripe quit (Quit: DimiStripe)
642: [20:19:45] * MarkGuin_ quit (Ping timeout: 245 seconds)
643: [20:26:12] * terryapodaca has joined #silverstripe
644: [20:26:38] <terryapodaca> Hey guys!
645: [20:27:32] <terryapodaca> Can I pass a form (email) element from a Home page to a second page that has the full form with several fields, pre-populating the email address with the one the user entered on the home page?
646: [20:44:43] * harry1 has joined #silverstripe
647: [20:45:19] <oddnoc> terryapodaca: You could save the email address in the session.
648: [20:46:36] <harry1> if I am using getCMSFields
649: [20:46:56] <harry1> is it summary_fields which is used to customise the index table
650: [20:50:33] * micmania1 has joined #silverstripe
651: [20:53:14] <harry1> can someone cast thier eye over this please
652: [20:53:36] <harry1> i am trying to make a thumb of the related images appear on the gridfield
653: [21:00:33] <oddnoc> harry1: It’s MyImage.CMSThumbnail (replacing MyImage with the actual field name)
654: [21:13:30] * harry1 quit (*.net *.split)
655: [21:17:40] * harry2 has joined #silverstripe
656: [21:17:40] * 43UAAG6IL has joined #silverstripe
657: [21:17:41] * 43UAAG6IL quit (Changing host)
658: [21:17:41] * 43UAAG6IL has joined #silverstripe
659: [21:17:41] * harry2 quit (Changing host)
660: [21:17:41] * harry2 has joined #silverstripe
661: [21:18:55] * 43UAAG6IL quit (Ping timeout: 252 seconds)
662: [21:19:25] <harry2> @addnoc - are you able to give me a few more pointers
663: [21:19:35] <harry2> I'm trying to follow your suggestion
664: [21:19:42] <harry2> but I'm a bit lost
665: [21:21:26] * ss-helper quit (Ping timeout: 240 seconds)
666: [21:23:56] <harry2> do summary_fields still work in ss3?
667: [21:24:55] * Gfactor quit (Ping timeout: 240 seconds)
668: [21:25:21] * Gfactor has joined #silverstripe
669: [21:27:33] <harry2> why does this code add a thumbnail to the gridfield http://blog.fraser-hart.co.uk/thumbnails-in-silverstripe-3-gridfield-summaries/
670: [21:27:48] <harry2> there is a getThumbnail function but it's not called
671: [21:27:56] * ss-helper has joined #silverstripe
672: [21:32:46] * Gfactor quit (Ping timeout: 240 seconds)
673: [21:36:29] * Gfactor has joined #silverstripe
674: [21:43:54] <oddnoc> harry2: That blog post has it a bit wrong. Here’s an example from one of my working projects: http://sspaste.com/paste/show/569967f726150
675: [21:49:32] * UndefinedOffset quit (Read error: Connection reset by peer)
676: [22:11:27] <harry2> @oddnoc is image_field your own method?
677: [22:13:50] <oddnoc> harry2: Yes, and I don’t remember why we did it that way. It just returns an UploadField with some options set.
678: [22:15:43] <harry2> this is what I have now - but it doesn't show me the the thumbnail
679: [22:15:44] <harry2> https://gist.github.com/spacebiscuit/51887574cfabe81890a0
680: [22:16:54] <harry2> I don't get it because on another project I have $this->CarouselImage(), in the addFieldToTab
681: [22:16:57] <harry2> and it works
682: [22:22:28] <oddnoc> Probably because you have a many_many relationship, so there’s not just one image, potentially.
683: [22:22:58] <oddnoc> My example is a has_one
684: [22:26:06] <harry2> hmm no idea
685: [22:26:19] <harry2> this is so challenging to do souch a simple task
686: [22:29:32] <harry2> i can't find any documentation
687: [22:29:39] <harry2> coding blind
688: [22:29:47] <harry2> guess work
689: [22:29:49] <harry2> :)
690: [22:33:30] <oddnoc> You should review https://docs.silverstripe.org/en/3.2/developer_guides/model/relations/
691: [22:34:44] * micmania1 quit (Quit: micmania1)
692: [22:36:36] <harry2> thanks but i don't think the problem are the relationships between my models
693: [22:36:47] <harry2> my issue is with customising the CMS
694: [22:37:24] <harry2> is a simple task too - to display a thumbnail !
695: [22:38:12] <oddnoc> Well, you have ‘Image’ => ‘Image’ for a many_many. You need a plural on the left, and you’ll need to subclass Image so you can add the $belongs_many_many. I would recommend reviewing your data model. A many_many can have multiple images, so Image.Thumbnail won’t cut it.
696: [22:39:26] <oddnoc> In other words, you’re asking a whole group of images to have a single thumbnail.
697: [22:41:06] * micmania1 has joined #silverstripe
698: [22:45:41] <harry2> ok I think I see the problem
699: [22:46:04] <harry2> like you said oddnoc - I think I need a subclass of Image
700: [22:46:19] <harry2> that how it works on my other project that works correctly
701: [22:56:36] * micmania1 quit (Quit: micmania1)
702: [23:02:17] * terryapodaca quit (Quit: Leaving.)
703: [23:03:26] * micmania1 has joined #silverstripe
704: [23:07:13] * cloph is now known as cloph_away
705: [23:13:28] * micmania1 quit (Quit: micmania1)
706: [23:16:36] <harry2> is anyone around
707: [23:16:44] <harry2> i've hit a brickwall
708: [23:41:55] <harry2> is there are a way of debuging the current $content var
709: [23:50:31] * Stomach has joined #silverstripe
710: [23:55:15] * oddnoc quit (Ping timeout: 240 seconds)

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