#silverstripe IRC Log

IRC log for 26 June 2014

All timestamps are in UTC.

1: [00:01:06] * Colin[pi] has joined #silverstripe
2: [00:01:21] <Colin[pi]> moin moin
3: [00:01:29] <simon_w|work> Morning Colin[pi]
4: [00:01:33] <irogue_> kia ora Colin[pi]
5: [00:03:54] <Stomach> hallo Colin[pi]
6: [00:04:12] * mobiusnz quit (Read error: Connection reset by peer)
7: [00:04:19] * mobiusnz has joined #silverstripe
8: [00:11:14] * Phlunk3 quit (Remote host closed the connection)
9: [00:13:40] <Colin[pi]> quiet this morning ^.^
10: [00:14:03] <Colin[pi]> simon_w|work: how's that sun working for you?
11: [00:15:14] <simon_w|work> Bleugh :p
12: [00:17:01] <Colin[pi]> i've bought one thing in the steam sale, I think I might have regained my self control
13: [00:18:22] <irogue_> oh yeah, guess I should check that today
14: [00:18:33] <simon_w|work> There's a steam sale?
15: [00:18:34] <simon_w|work> Meh
16: [00:18:39] <Ryan-Toast> Colin[pi]: I just won everything already.
17: [00:18:44] <Colin[pi]> I have too many I haven't played already >_<
18: [00:18:47] <Ryan-Toast> own**
19: [00:18:57] <Stomach> Colin[pi], or you have grown out of gaming :P
20: [00:19:03] <Colin[pi]> sadly yeah :(
21: [00:19:08] <Colin[pi]> I don't have much time for it anymore
22: [00:19:08] <Ryan-Toast> Can’t wait for Magicka 2
23: [00:19:21] <Colin[pi]> though I do like jumping into CS:GO and pissing about for 30 mins
24: [00:19:37] <Ryan-Toast> dotA all day err day
25: [00:19:46] <Stomach> I havent watched dota in like 2 weeks
26: [00:19:50] <Stomach> books taking over my life
27: [00:19:55] <Colin[pi]> wondering if I should order grid autosport
28: [00:20:02] <Ryan-Toast> Stomach: Niether, ramping up for TI4
29: [00:20:13] <Ryan-Toast> new stretch goals should be out tomorrow.
30: [00:20:36] <Stomach> 50k off 10 million
31: [00:20:39] <Stomach> jebus.
32: [00:20:54] <Stomach> still haven't bought one. lololol
33: [00:21:04] <Ryan-Toast> Do it man, you get so much shit.
34: [00:21:26] <Stomach> I never play though, so whats the point
35: [00:21:37] <Ryan-Toast> shrug
36: [00:23:04] <Stomach> man I am over work today
37: [00:23:13] <Colin[pi]> mm
38: [00:25:37] <Colin[pi]> ok I'm pre-loading grid autosport, hopefully they right the wrongs of Grid 2
39: [00:26:22] <simon_w|work> Holy crap, this code base has a craptonne of undefined index
40: [00:27:26] <irogue_> anyone know off the top of their heads how to use HTML in a form's validationError?
41: [00:28:20] * DesignerX has joined #silverstripe
42: [00:28:37] <simon_w|work> Don't think you can any more
43: [00:28:47] <irogue_> damn
44: [00:29:21] <Colin[pi]> mm I remember when that change was made
45: [00:29:31] <Colin[pi]> there was a workaround I think?
46: [00:29:50] <simon_w|work> In a Form subclass, it's just a $casting change
47: [00:29:59] <irogue_> hmmm
48: [00:30:23] <irogue_> this is made extra complicated by being a multiform
49: [01:29:18] * Tanger has joined #silverstripe
50: [01:42:11] <irogue_> lawl
51: [01:42:18] <irogue_> $Message.RAW
52: [01:42:22] <irogue_> job done :P
53: [01:42:28] <Colin[pi]> lel
54: [01:42:37] <simon_w|work> danger danger
55: [01:42:39] <simon_w|work> high xss
56: [01:42:42] <Colin[pi]> HIGH VOLTAGE
57: [01:42:52] <Colin[pi]> WHEN WE TOUCH, WHEN WE KISS
58: [01:43:42] <irogue_> simon_w|work: is just validation message, nothing user inputtable
59: [01:43:50] * Marvanni2 has joined #silverstripe
60: [01:44:53] <spronk> DONT YOU WANNA KEEP STARTING FIRES!?
61: [01:45:04] <spronk> KNOW HOW WE*
62: [01:45:09] <spronk> long time..
63: [01:45:11] * spronk plays
64: [01:45:13] <Colin[pi]> love that song
65: [01:45:20] <spronk> its almost as good as gay bar
66: [01:45:25] <spronk> LETS START A WAR!
67: [01:45:31] <Colin[pi]> AT THE GAY BAR GAY BAR GAY BAR
68: [01:45:33] * marvanni quit (Ping timeout: 240 seconds)
69: [01:45:49] <spronk> WWAWOOOOW
70: [01:47:38] <irogue_> I think 1.5 better burgers would have been the correct amount, not 2.
71: [01:48:01] <Colin[pi]> jesus that song came out 11 years ago?
72: [01:48:06] <Colin[pi]> -_-
73: [01:48:22] <irogue_> kekeke
74: [01:48:23] <spronk> mm
75: [01:48:23] <irogue_> "came out"
76: [01:48:24] <spronk> IKR
77: [01:48:26] <spronk> luz
78: [01:48:28] <Colin[pi]> heheh
79: [01:48:29] <spronk> l
80: [01:48:58] <spronk> also, for anyone looking to upgrade an mx500/510/518/g400/g5 and really loves the shape etc, i don't really recommend the g502.
81: [01:49:51] <Colin[pi]> spronk: looks like it's about to transform into a little robot
82: [01:49:56] <spronk> mm
83: [01:50:04] <spronk> its similar, but not quite the same as the mx500 shape
84: [01:50:13] <spronk> missing a few little lips and spaces that make the mx500 really comfortable
85: [01:50:33] <Colin[pi]> mx500 was one of those moments that will never be topped I think
86: [01:50:41] <Colin[pi]> I have the g400 which is basically the same
87: [01:50:44] <spronk> and the wheel is a PITA, tilts left too easily, and middle click is quite stiff, so... tilt+middle click is the usual occurrence
88: [01:50:45] <spronk> mm
89: [01:50:46] <Colin[pi]> AK47 of mice!
90: [01:50:49] <spronk> i was contemplating g400s vs g502
91: [01:51:06] <spronk> would have gone with the g400 if you could still get, g400s is ugmo
92: [01:51:20] <spronk> buuut i went with the 502 instead because MOAR BUTTONS
93: [01:51:22] <spronk> regret.
94: [01:51:36] <Colin[pi]> I had one of these originally: http://www.sharkyextreme.com/img/2004/04/log_mouse/mx510_1.jpg
95: [01:51:41] <Colin[pi]> it lasted me for SUCH a long time
96: [01:51:44] <spronk> mm
97: [01:51:48] <Colin[pi]> when it eventually died I was like "noooooo!"
98: [01:51:49] <spronk> i had mx500, then 518
99: [01:51:54] <spronk> both of them are still mostly working
100: [01:52:05] <spronk> scroll wheel is buggered on both though, actuations don't match notches
101: [01:52:10] <spronk> which drives me nuts, hence why i upgraded
102: [01:52:27] <Colin[pi]> I was considering getting a razer mouse to match my black widow, but razer is kinda shitty quality
103: [01:52:28] <spronk> man, back in like 2003 the mx500 was AMAZING
104: [01:52:34] <Colin[pi]> mm
105: [01:52:34] <spronk> yeah
106: [01:52:40] <spronk> i was looking at the imperator and deathadder
107: [01:52:52] <spronk> people seem to not like the imperator though, which would be the best shape for me
108: [01:52:58] <spronk> also, logitech cheaper
109: [01:53:09] * spronk also has a blackwidow :p
110: [01:53:19] <Colin[pi]> I was looking at the Naga but might be overkill
111: [01:53:26] <spronk> SUCH BUTTONS
112: [01:53:30] <Colin[pi]> MUCH CLICK
113: [01:53:31] <Colin[pi]> WOW
114: [01:53:34] <spronk> :D
115: [01:53:58] <spronk> ugh
116: [01:54:03] <spronk> i keep hitting the dpi switch buttons
117: [01:54:08] <Colin[pi]> the naga hex is not too bad
118: [01:54:09] <spronk> might disable those
119: [01:54:34] <Colin[pi]> this one seems to be their answer to the g502: http://gizmochunk.com/wp-content/uploads/2012/07/Razer-Ouroboros-modular-gaming-mouse-6.jpg
120: [01:54:45] <Colin[pi]> but it looks uncomfortable as fuck
121: [01:55:02] * irogue_ has a SteelSeries Xai. it's the same shape as the classic Microsoft mouse, but with better click mechanism, laser, and DPI switch
122: [01:55:09] <irogue_> I was a classic MS Mouse fan
123: [01:55:23] <Colin[pi]> i too
124: [01:55:41] <Colin[pi]> I also had a natural keyboard for a while, until I killed it
125: [01:55:57] <irogue_> it's been replaced by the Sensei now, which is also nice
126: [01:56:16] <spronk> g502 shape is very similar to mx5xx
127: [01:56:21] <Colin[pi]> the imperator looks alright
128: [01:56:23] <spronk> just with all sorts of notches
129: [01:56:26] <spronk> and concave buttons instead of convex
130: [01:56:30] <irogue_> yeah I had the classic natural keyboard
131: [01:56:38] <irogue_> and then, later on, the new version (http://www.microsoft.com/hardware/en-nz/p/natural-ergonomic-keyboard-4000)
132: [01:56:44] <irogue_> might buy another one of them soon, it was great
133: [01:56:54] <Colin[pi]> irogue_: yeah that's the version I had
134: [01:56:56] <irogue_> have a G510 keyboard atm
135: [01:57:00] <Colin[pi]> spilled coffee killed it :(
136: [01:58:36] <simon_w|work> That should teach you about drinking coffee!
137: [01:59:03] <irogue_> yeah
138: [01:59:04] <irogue_> fuck coffee
139: [01:59:11] <Colin[pi]> simon_w|work: it should have taught me like 3 times ago, I've killed that many keyboards
140: [01:59:14] <Colin[pi]> NEVER LEARN
141: [02:00:00] <Colin[pi]> some are more resilient than others, the MS natural keyboard was like "welp, fuck this *DIE*"
142: [02:00:38] * mobiusnz quit (Quit: Leaving.)
143: [02:01:01] <irogue_> yeah, they're manufactured by Genius
144: [02:01:06] <irogue_> so... not very sturdy :P
145: [02:01:40] <Colin[pi]> been fairly happy with the blackwidow... *TAKA TAKA TAKA TAKA*
146: [02:02:08] <simon_w|work> Looks like I have the Logitech K120
147: [02:02:16] <spronk> oohh
148: [02:02:20] <spronk> thats a horirble keyboard simon_w|work
149: [02:02:20] <simon_w|work> Not enough taka taka
150: [02:02:22] <spronk> i feel sorry for you
151: [02:02:38] <spronk> its like typing on mush :P
152: [02:02:38] <simon_w|work> Might have to buy mine own!
153: [02:02:49] <spronk> get a ducky shine gold
154: [02:02:52] <Colin[pi]> spronk: I liken it to typing on pudding
155: [02:03:02] <Colin[pi]> that's how it feels now when I use a membrane kb :D
156: [02:03:12] <spronk> http://mechanicalkeyboards.com/shop/index.php?l=product_detail&p=696
157: [02:03:15] <spronk> BRING BRING
158: [02:03:15] <irogue_> mmm pudding
159: [02:03:37] <Colin[pi]> dat price
160: [02:03:50] <spronk> ugh
161: [02:03:50] <spronk> yeah
162: [02:03:51] <spronk> fuck this
163: [02:03:55] <spronk> i might go down and buy a g400sd.
164: [02:03:58] <spronk> -d
165: [02:04:18] <Colin[pi]> that's kinda nice, looks a bit like an iron though
166: [02:07:04] <spronk> haha
167: [02:07:42] * irogue_ quit (Ping timeout: 245 seconds)
168: [02:08:15] * simon_w|work quit (Ping timeout: 255 seconds)
169: [02:10:44] <Colin[pi]> got nothing on my friend's modem back in the day though: http://i.imgur.com/YsALubp.jpg
170: [02:11:16] <spronk> lool
171: [02:14:56] * irogue_ has joined #silverstripe
172: [02:20:17] * mobiusnz has joined #silverstripe
173: [02:20:46] * simon_w|work has joined #silverstripe
174: [02:20:55] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
175: [02:21:10] * simon_w|work is now known as Guest43957
176: [02:23:10] * Guest43957 is now known as simon-w|work
177: [02:23:18] * simon-w|work is now known as simon_w|work
178: [02:23:34] <simon_w|work> superspring, what's the point in including sake more clear image?
179: [02:24:16] <superspring> simon_w|work: i think that was for peoples editing images
180: [02:24:43] <simon_w|work> superspring, You know dev/tasks/FlushGeneratedImagesTask already exists, right?
181: [02:25:33] <superspring> simon_w|work: i remember deciding against using that when i wrote it...
182: [02:27:02] <superspring> simon_w|work: i'll look into it again tonight, it may have be upgraded in the last year...
183: [02:33:56] * mobiusnz quit (Quit: Leaving.)
184: [02:38:56] * shellbackpacific has joined #silverstripe
185: [02:40:57] * willagain has joined #silverstripe
186: [02:48:23] * UncleCheese has joined #silverstripe
187: [02:53:13] <Ryan-Toast> Unclescheese: this is what I meant before http://www.gfycat.com/CompetentLivelyEasternnewt
188: [02:54:42] * mobiusnz has joined #silverstripe
189: [02:59:16] * shellbackpacific quit (Quit: Leaving.)
190: [03:00:09] <Stomach> Ryan-Toast, thats mesmerising
191: [03:00:39] <Ryan-Toast> Stomach: you can have the code if you’d like.
192: [03:01:40] <Stomach> nah, I'm good :P
193: [03:01:43] <Ryan-Toast> :)
194: [03:01:54] <Ryan-Toast> I’m going to be using it in a new project soon hopefully.
195: [03:01:58] <Ryan-Toast> Well something similar.
196: [03:02:07] <Ryan-Toast> just to give the page a little life.
197: [03:06:53] * ajmitch quit (Ping timeout: 272 seconds)
198: [03:07:31] * ajmitch has joined #silverstripe
199: [03:07:37] * cloph quit (Ping timeout: 264 seconds)
200: [03:09:16] <Stomach> I'm pretty anti animation on websites
201: [03:09:27] <Ryan-Toast> Stomach: I like a little bit. Not too much.
202: [03:09:53] <Stomach> yeah we've been going through the "paralax everything and fade everything in" stage with our designers
203: [03:09:57] <Stomach> i hate it so much
204: [03:10:07] <Stomach> if the content is worth reading, then bloody put it there
205: [03:11:42] <Ryan-Toast> Stomach: Oh noes.
206: [03:11:57] * cloph_away has joined #silverstripe
207: [03:12:08] <Ryan-Toast> I dislike parallax personally.
208: [03:12:24] <Ryan-Toast> Well the amajority of implementations anyway.
209: [03:14:46] <Stomach> yeah I hate them all
210: [03:14:58] <Stomach> go hard or go home :D
211: [03:15:23] * zippy__ has joined #silverstripe
212: [03:15:25] <irogue_> Stomach: not sure Sam would appreciate me going hard right now
213: [03:15:36] <zippy__> O.o
214: [03:15:40] <zippy__> what'd I just walk into
215: [03:16:00] <irogue_> zippy__: Stomach wanting me to become aroused at work
216: [03:16:01] <Stomach> irogue_ getting jiggy with it
217: [03:16:12] <Ryan-Toast> zippy__: ( ͡° ͜ʖ ͡°)
218: [03:16:27] <zippy__> Ryan-Toast: now that is pretty flash!
219: [03:16:38] * Selay has joined #silverstripe
220: [03:16:56] <Ryan-Toast> Lenny face?
221: [03:17:26] <zippy__> If I have a searchable field, is there a way I can specify options for it in the model admin?
222: [03:17:29] <zippy__> Ryan-Toast: yea
223: [03:17:45] <Selay> Hi guys, what is the best way in SS 3.1 to have a date range for Created for $searchable_fields? Obviously ityou can't have two Created array index for $searchable_fields
224: [03:17:57] <zippy__> I can make a droplist appear by doing array('field' => 'dropdownfield') but is there a way to specify an list of items...
225: [03:19:25] * irogue_ cries at parts of ss framework that ignore config settings and have things hardcoded
226: [03:19:28] <irogue_> http://api.silverstripe.org/3.1/source-class-ChangePasswordForm.html#119
227: [03:20:32] <Selay> @zippy__, list of items doesnt work. There is a workaround but it to "performance-costy" as you need to overwrite the existing implementation. the problem with dropdown is that you can have a default empty option. So, the best way is to add " 'field' => 'TextField'," to make a text field and show which option it can have in the label
228: [03:21:03] <Selay> sorry, I mean you cant have empty default optin in dropdown
229: [03:21:04] <zippy__> Selay: well… I could always populate it with javascript I suppose
230: [03:21:15] <Selay> javascript doesnt always run
231: [03:21:15] <zippy__> Selay: don't want empty, I just want to customize the list myself
232: [03:21:42] <Selay> cms loads with ajax, sometimes some javascript codes dont run
233: [03:21:51] <Selay> so, not a rebust way to use
234: [03:21:59] <Stomach> Selay, they do if you use entwine to do an onMatch
235: [03:23:12] <Selay> well, it works in most cases, but sometimes it fails. if you play inside cms with default navigation without hard-loading
236: [03:31:16] <Selay> does anyone know what is the best way in SS 3.1 to have a date range for Created for $searchable_fields? Obviously ityou can't have two Created array index for $searchable_fields
237: [03:32:02] <zippy__> Selay: How do you mean a date range, like the user can pre-select 1 month, or something?
238: [03:32:47] <Selay> no, I want to filter records between two dates.
239: [03:32:48] <Selay> 'Created' => array( 'title' => 'From', 'filter' => 'GreaterThanFilter', ),
240: [03:32:58] <Selay> 'Created' => array( 'title' => 'To', 'filter' => 'LessThanFilter', ),
241: [03:33:32] <Selay> if I add lLastEdited to the second one, everything is good
242: [03:33:38] <Selay> but I want both to apply to created date
243: [03:33:56] <Selay> because I want to filter everything created between two dates
244: [03:34:41] <superspring> Selay: http://api.silverstripe.org/3.1/class-WithinRangeFilter.html
245: [03:34:50] <superspring> Selay: instead of using two filters, what about a single range filter?
246: [03:35:40] * willagain quit (Ping timeout: 246 seconds)
247: [03:35:45] <Ryan-Toast> Anyone used the Forum module before?
248: [03:35:50] <Ryan-Toast> Is it good, or shit?
249: [03:36:11] <Stomach> Ryan-Toast, I installed it and uninstalled it last week, but it seemed reasonable
250: [03:36:17] <Ryan-Toast> Stomach: Coolio
251: [03:36:26] <Stomach> but I think that if you want a full fledged forum, go for a phpBB install
252: [03:36:35] <irogue_> ew ew ew phpbb
253: [03:36:49] <Stomach> irogue_, whats wrong with phpBB, its actually quite nice now
254: [03:36:53] <irogue_> only use phpbb if you don't mind having to upgrade it every week in order to not get hacked
255: [03:38:00] <Stomach> I love getting hacked
256: [03:38:04] <Stomach> makes me all warm and fuzzy inside
257: [03:38:08] <Stomach> someone cares
258: [03:39:16] <irogue_> I'm a big fan of http://vanillaforums.org/ cos their codebase is new and not icky
259: [03:39:30] <irogue_> and you can do things like http://blog.vanillaforums.com/help/vanilla-jsconnect-single-signon-on/ to integrateish it with silverstripe
260: [03:39:37] <Selay> @superspring it shows one date field only, and assumes the next one is now
261: [03:40:23] <Ryan-Toast> I may just make my own forum software.
262: [03:40:29] <Ryan-Toast> A really basic one
263: [03:40:34] <Colin[pi]> Ryan-Toast: lol good luck with that
264: [03:41:00] <Ryan-Toast> Colin[pi]: Not hard :P
265: [03:41:02] <Colin[pi]> Ryan-Toast: they get pretty complicated fast
266: [03:41:10] <Colin[pi]> well, you could make a fairly simple one I guess
267: [03:41:14] <Colin[pi]> no bells and whistles
268: [03:41:27] <irogue_> or just throw disqus on pages :P
269: [03:41:33] <Ryan-Toast> Colin[pi]: Yeah, I’m talking ultra simple. Posts and replies kind of biz
270: [03:42:01] <Ryan-Toast> And make it look loke my blog module http://webdough.co.nz/~boilerpl/blog/we-made-a-weather-app/
271: [03:44:07] <irogue_> right, time to go look at another house
272: [03:44:42] <MickRip_> where typically does SS search for _ss_environment.php? (on my local debian VM)
273: [03:45:53] <irogue_> MickRip_: it goes up the tree from the website directory
274: [03:45:59] <irogue_> until it finds one
275: [03:46:36] <irogue_> so if website is in /var/www/, it'll look for /var/www/_ss_environment.php, then /var/_ss_environment.php, then /_ss_environment.php, then give up
276: [03:46:38] <MickRip_> irogue_: so eg. I've got 192.168.1.48/myproject/ ... is that context, what's your perception of website-directory?
277: [03:46:59] <MickRip_> ahhh, makes sense!
278: [03:47:08] <irogue_> it's based on file path not web path :)
279: [03:47:44] <zippy__> MickRip_: starts that the folder which has mysite / framework/ assets folder, and goes up
280: [03:49:14] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
281: [03:50:24] <zippy__> hmmm ok, so with the searablefields in the model admin can you make the Date field show the calendar?
282: [03:52:22] <zippy__> scaffoldSearchFields I suppose
283: [03:53:29] <zippy__> sweet, that gives me droplists too!
284: [03:54:25] <Ryan-Toast> If you send an array to a template, what do you loop through?
285: [03:54:37] <Ryan-Toast> to get the value that is.
286: [03:54:42] <Colin[pi]> zippy__: there are a lot of nice things you can do in ModelAdmin but dat doco... eek
287: [03:54:45] <Ryan-Toast> Or should I send an arrayList
288: [03:54:56] <Colin[pi]> ArrayList
289: [03:54:59] <Ryan-Toast> kk
290: [03:56:10] <MickRip_> zippy__: so, example, I've got the DB config in \mysite\_config.php in the (global)$databaseConfig array. Would I put the production stuff in there, or maybe it's just wiser to put a condition in that _config file which sorts everything out? In my own MVC, I use get_cfg_var("is_dev"), and put on on php.ini locally. Ahhh, my brain hurts.
291: [03:56:45] <zippy__> MickRip_: no condtions needed, you just have a seperate _ss_environment for local and production
292: [03:57:10] <zippy__> MickRip_: you don't even need to define anything in the _config for the db, I just do it all in the _ss
293: [03:57:53] <MickRip_> I think I'm just having trouble with the 'magic'. From the point of view that the DB creds are configured in some global thing in one file, and then I'm then doing it somewhere else and it doesn't feel intuitive right now
294: [03:58:36] <zippy__> MickRip_: that is because there are two places you can do it, but you only need to do it in one place
295: [03:59:23] <zippy__> MickRip_: don't setup the databaseConfig array in the _config. Just define the db details in the _ss_
296: [03:59:25] <MickRip_> zippy__: ok, awesome. That helps a lot. I'm also stuck on shared hosting, which is another plate of awesome </sarc>
297: [03:59:29] <zippy__> and have seperate _ss_ files
298: [04:02:40] <Ryan-Toast> Colin[pi]: How do I assign i.e $Title to an ArrayList?
299: [04:05:33] <Colin[pi]> Ryan-Toast: I think you'd be adding ArrayData objects, i.e.: new ArrayData(array('Title'=>'Foo'))
300: [04:05:55] <Ryan-Toast> Ah, right.
301: [04:06:00] <Colin[pi]> then as you loop the ArrayList (containing ArrayData) you can use $Title
302: [04:06:12] <MickRip_> zippy__: thanks for your help mate, much appreciated!
303: [04:06:36] <zippy__> Hold the fone
304: [04:08:46] <zippy__> Ryan-Toast: http://pastebin.com/7hkA7CwU
305: [04:09:02] <Ryan-Toast> zippy__: I sorted it, but thanks :)
306: [04:10:29] <Ryan-Toast> zippy__: I always forget about ArrayData :P
307: [04:10:44] <Colin[pi]> simon_w|work: apparently we're the most liveable city in AU according to the OECD
308: [04:10:58] <Ryan-Toast> what city?
309: [04:11:01] <Colin[pi]> Canberra
310: [04:11:07] <Ryan-Toast> Brizzy hard, boiiiii
311: [04:11:17] <simon_w|work> Colin[pi], it's not like the competition's any good :p
312: [04:11:20] <Colin[pi]> lol
313: [04:11:31] <Colin[pi]> only problem with Brisbane is it's full of Queenslanders
314: [04:14:46] <Colin[pi]> Canberra is a pretty good place to live, problem is public transport is awful, cold as fuck, and zero nightlife (no problem for me)
315: [04:16:25] <Stomach> Tony Abbott works there. eww.
316: [04:16:45] <simon_w|work> At least he doesn't live here
317: [04:16:49] <Colin[pi]> he doesn't LIVE here though, we pay for the cunt to travel between here and Sydney
318: [04:17:05] <ss23> lol
319: [04:17:18] <ss23> I dunno, I don't think I'd want to live in Canberrra either
320: [04:17:22] <simon_w|work> Just stick him on the train, or a bus
321: [04:17:22] <ss23> Worse than Hamilton for boredom
322: [04:17:26] <Colin[pi]> just like his liberal predecessor... too good to live in Canberra, OH NO I NEED TO LIVE IN KIRRIBILLI HOUSE OVERLOOKING SYDNEY FUCKING HARBOUR
323: [04:17:30] <Colin[pi]> cocknose
324: [04:17:40] <Stomach> woah woah woah
325: [04:17:55] <Stomach> at least he doesn't say that scientific reports are "mumbo jumbo" like ours does
326: [04:17:56] <simon_w|work> ss23, weed's legal here
327: [04:18:12] <Colin[pi]> and the only place to legally buy X-rated pr0n
328: [04:18:19] <Colin[pi]> not that you need to these days
329: [04:18:37] <Stomach> Colin[pi], if you made a purchase over the net anywhere else in aussie is that illegal?
330: [04:18:43] <ss23> simon_w|work: Makes no difference, it's not illegal enough here to care
331: [04:18:52] <ss23> IT's not cheaper there, it's not better quality, and still 0 chance of legal issues, so *shrug*
332: [04:18:54] <Colin[pi]> Stomach: no you can order it I believe from other states
333: [04:19:02] <Colin[pi]> Stomach: but they can't sell it from stores
334: [04:19:17] <Stomach> Colin[pi], ah okay, thought it was a PORN WAR
335: [04:19:20] <Colin[pi]> lol
336: [04:19:49] <Colin[pi]> simon_w|work: actually it's not legal, it's just decriminalised
337: [04:20:07] <Colin[pi]> so if you get found with some it's like "TSK TSK NAUGHTY BOY"
338: [04:20:20] <Stomach> so its like new zealand
339: [04:20:22] <Stomach> :P
340: [04:20:26] <Colin[pi]> but if you're growing a tree of it out the back, different story
341: [04:21:08] <ss23> Hear they changed the laws in Japan so that CP isn't decriminizlied anymore! :O
342: [04:21:39] <Stomach> its illegal now?
343: [04:21:48] <Colin[pi]> funny story, once the cops raided a house here and were filmed bringing all these little pot (lol) plants out the side of a house... but what they didn't realise was that the giant bushes they were brushing past were also weed, they were taller than the roof
344: [04:22:23] <Colin[pi]> ss23: what? no..
345: [04:23:08] <Colin[pi]> ss23: wait.. hang on, b4 it was quasi-legal, now not?
346: [04:23:20] <ss23> Posession used to be legal, yeah
347: [04:23:28] <Colin[pi]> eesh
348: [04:23:31] <ss23> Production, selling, that kind of thing, illegal, but possession was legal
349: [04:23:31] <Colin[pi]> yuck
350: [04:23:33] <ss23> Well
351: [04:23:45] <ss23> From a logical perspective, you can argue that posession being legal isn't a bad thing
352: [04:23:52] <Colin[pi]> Japan, land of fucked up fetishes
353: [04:23:55] <ss23> It doesn't drive up demand or anything, and production still illegal etc
354: [04:23:58] <ss23> But yeah, it's illegal now
355: [04:28:14] <Stomach> and the whole I went on 4chan once and now I illegally possess childporn thing sucked
356: [04:28:34] <Stomach> should have turned images off
357: [04:29:50] <Colin[pi]> Stomach: I was on there once and after about 5 minutes saw CP :(
358: [04:30:04] <Colin[pi]> it's like DELETE. EVERYTHING.
359: [04:30:31] <Colin[pi]> I try to avoid it now, well, /b anyway
360: [04:31:01] <Colin[pi]> they have some really cool images in the more reputable sections :o
361: [04:34:12] <Stomach> yeah, the internet is a bad place
362: [04:34:42] <Colin[pi]> mm, be careful out there, safer communities together
363: [04:35:17] <Stomach> blow on the pie
364: [04:35:42] <Colin[pi]> hmm can I programatically change the class for a model importer in ModelAdmin?
365: [04:36:05] <Stomach> you can do it through config
366: [04:36:08] <Stomach> can't you?
367: [04:36:36] <Stomach> oh no, my bad
368: [04:36:45] <Colin[pi]> well there is the $model_importers static, so I'd need to change the class in there
369: [04:36:55] <Colin[pi]> unless there's another way?
370: [04:37:51] <Stomach> nah I dont know of anything
371: [04:38:06] <Stomach> so obviously it can't exist
372: [04:38:08] <Stomach> ... simon_w|work ?
373: [04:38:10] <Stomach> :D
374: [04:41:32] * msawebdev has joined #silverstripe
375: [04:42:14] <zippy__> with a file, you can do $Link which will give a hyper link, but is there a way to force download without creating my own handler?
376: [04:43:31] <simon_w|work> zippy__, there's a download attribute for <a> that some browsers obey
377: [04:44:02] <simon_w|work> Stomach, I don't have a SS install here :p
378: [04:46:10] <zippy__> mmm http://caniuse.com/#feat=download bit avg...
379: [04:46:16] <zippy__> sounds really good though
380: [04:46:48] <simon_w|work> http://www.speedtest.net/result/3586668874.png
381: [04:46:54] <simon_w|work> Someone's using my internets :(
382: [04:48:28] <Stomach> zippy__, I always end up writing a handler for it to send the correct header :\
383: [04:48:45] <zippy__> Stomach: but it's almost 5… I ccbbffff'dd!
384: [04:49:01] <Colin[pi]> oops I killed my Apache
385: [04:50:57] <Colin[pi]> ohhhh because my CSV import actually worked
386: [04:51:02] <Colin[pi]> 10,000 rows lel
387: [04:55:49] <Colin[pi]> Stomach: found a workaround, define it as 'CsvBulkLoader' in the $model_importers static, but then change it in the init() of the ModelAdmin
388: [04:58:00] <Stomach> sounds dicey :P
389: [04:58:13] <Colin[pi]> dicey as fuck, but it works
390: [04:58:14] <Colin[pi]> :D
391: [04:58:21] <Stomach> lol
392: [04:58:55] * spronk quit (Read error: Connection reset by peer)
393: [04:59:09] <Colin[pi]> actually it's not really a huge issue, they just need one importer for the initial import from an old DB
394: [04:59:18] * spronk has joined #silverstripe
395: [04:59:21] <Colin[pi]> then it can change to the regular one
396: [04:59:23] <Stomach> write it as a task instead then?
397: [04:59:26] <Colin[pi]> mm
398: [04:59:33] <Colin[pi]> might be a better option
399: [05:00:38] <Colin[pi]> less dicey that way
400: [05:01:07] <Stomach> yeah, and then its also a "one off" which you can point out as a specific thing rather than later them going "why doesn't this work like it used to"
401: [05:01:12] <Stomach> clients gonna client
402: [05:02:10] <Colin[pi]> lol
403: [05:02:13] <Colin[pi]> I like that one
404: [05:02:15] <Colin[pi]> needs a gif
405: [05:03:27] * msawebdev_ has joined #silverstripe
406: [05:04:13] <Ryan-Toast> Colin[pi]: give me a second
407: [05:04:20] <Selay> I made many ests, seems there is no proper way of having date range filder in cms for $searchable_fields. the exiwting workarounds either dont work for ss 3 or messes up with other queries.
408: [05:04:54] <Colin[pi]> Ryan-Toast: http://i.imgur.com/NUyttbn.gif
409: [05:05:37] * msawebdev quit (Ping timeout: 246 seconds)
410: [05:06:15] * nickmolhoek quit (Quit: nickmolhoek)
411: [05:07:04] <Ryan-Toast> Colin[pi]: http://i.imgur.com/As1HRz8.gif
412: [05:07:39] <Colin[pi]> heh nice
413: [05:07:42] <Stomach> I JUST TWITTED THAT SHIT
414: [05:07:43] <Stomach> https://twitter.com/stevenmayhew/status/482027358816186368
415: [05:07:56] <Colin[pi]> I wonder if there is some variation of the walking guy that's suitable?
416: [05:08:08] <Ryan-Toast> Walking guy/
417: [05:08:14] <Colin[pi]> haters gon hate guy
418: [05:08:21] <Colin[pi]> http://www.raidious.com/wp-content/uploads/2014/01/42924-haters-gonna-hate-fat-kid-gif-VHex.gif
419: [05:08:41] <Ryan-Toast> Colin[pi]: Would be easy if I were at home, but I only have CS5 here.
420: [05:08:47] <Colin[pi]> lol
421: [05:09:12] <Stomach> anyone here read Ishmael?
422: [05:09:23] * msawebdev has joined #silverstripe
423: [05:10:16] <Ryan-Toast> Stomach: waht are this?
424: [05:11:01] <Stomach> a really good book
425: [05:11:09] <Stomach> although you might want to start a commune after it
426: [05:11:11] <Stomach> I do
427: [05:11:15] <Stomach> wanna come live in my commune?
428: [05:11:23] <ss23> lol
429: [05:11:33] * SightUnseen has joined #silverstripe
430: [05:11:35] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
431: [05:11:43] * SightUnseen has left #silverstripe
432: [05:11:55] * msawebdev_ quit (Ping timeout: 246 seconds)
433: [05:11:55] <Ryan-Toast> Stom,ach: what will the internet speeds be like?
434: [05:12:00] <Stomach> zero
435: [05:12:04] <Stomach> but there will be a lathe
436: [05:12:12] <Colin[pi]> tin can and string!
437: [05:12:16] <Colin[pi]> so like Australian internet
438: [05:13:14] <Stomach> perfect
439: [05:13:40] * mattarm has joined #silverstripe
440: [05:14:45] <Colin[pi]> ooh grid autosport has almost finished preloading :o
441: [05:15:14] <Colin[pi]> not that I can do much with it yet
442: [05:15:21] <mattarm> Am having issues installing SS 3.1.5
443: [05:15:25] <mattarm> Fatal error: Class 'Page' not found in /var/www/html/documentportal/cms/code/model/ErrorPage.php on line 14
444: [05:15:43] <mattarm> anyone know what this may be
445: [05:15:48] <Stomach> mattarm, do you have a Page class in your mysite directory?
446: [05:15:58] <mattarm> sure do
447: [05:16:38] <Stomach> tried ?flush=1 ?
448: [05:16:40] <zippy__> flush..
449: [05:17:44] <mattarm> just kicks me back to the details form
450: [05:18:37] <zippy__> madmatt: set to dev mode and try, otherwise nuke the silverstripe_cache folder perhaps
451: [05:19:13] <Stomach> or create one if you don't have it already
452: [05:19:28] <zippy__> If I am adding an object on a page, on the add page is there a way I can access the parent pages id before it's added. I can see the id of the page in the url, and it genreates the breadcrubs so the request MUST know the page it's going to...
453: [05:30:05] * zippy__ quit (Quit: zippy__)
454: [05:30:19] * mattarm quit (Ping timeout: 255 seconds)
455: [05:30:34] <camfindlay> mattarm if you do get a solve for this make sure and update your forum post ;)
456: [05:32:51] <MickRip_> is ?flush=1 the *only* way to clear the cache. I'm having issues which point towards a cache issue, but I don't know where the cache is stored
457: [05:34:08] <Stomach> MickRip_, usualy /var/tmp/_something_
458: [05:34:14] <Stomach> or C:/Windows/TEMP if on windows
459: [05:34:19] * an_Eskimo quit (Ping timeout: 246 seconds)
460: [05:34:46] <Stomach> alternatively, create a "silverstripe-cache" folder in the root of your project files and that will then be used
461: [05:36:53] <jrthomer> there's a constant 'TEMP_FOLDER' that defines where your cache folder is
462: [05:37:59] * UncleCheese has joined #silverstripe
463: [05:38:10] * Selay quit (Ping timeout: 246 seconds)
464: [05:38:28] <MickRip_> Stomach: all, silverstripe-cache is a handy tip!
465: [05:38:52] * msawebdev quit (Ping timeout: 246 seconds)
466: [05:39:54] <Stomach> :)
467: [05:42:56] * Stomach quit (Read error: Connection reset by peer)
468: [05:44:08] * Ryan-Toast quit (Quit: Ryan-Toast)
469: [05:46:57] * Shrike_Finland has joined #silverstripe
470: [05:47:32] * onfire has joined #silverstripe
471: [05:48:13] <onfire> hi guys, i have a dataextension on member, with a modeladmin for editing the custom members
472: [05:48:38] <onfire> i have an onBeforeWrite method on the dataextension that I need to throw an error if it fails to do an api call
473: [05:48:46] <onfire> how can i stop the write and throw an error?
474: [05:52:54] <onfire> is it even possible from a dataextension?
475: [05:58:13] * camfindlay quit (Quit: camfindlay)
476: [06:02:27] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
477: [06:15:47] * onfire quit (Quit: Page closed)
478: [06:23:23] * Shrike_Finland quit (Quit: Leaving.)
479: [06:25:51] * Shrike_Finland has joined #silverstripe
480: [06:31:43] * Shrike_Finland quit (Quit: Leaving.)
481: [06:32:16] * willagain has joined #silverstripe
482: [06:34:36] <willagain> hello. I'm trying to use the zenvalidator for conditional validation
483: [06:36:22] <willagain> it looks great, but i can't figure out how to add the conditional to the forms validation?
484: [06:36:29] <willagain> my conditional looks like:
485: [06:36:30] <willagain> $email->validateIf('Contact')->isEqualTo('Email');
486: [06:37:41] <willagain> where $email is not really set anywhere else or used in the validation setup
487: [06:37:52] <willagain> ie $validator = ZenValidator::create();
488: [06:38:16] <willagain> $validator->addRequiredFields(array('FirstName', 'LastName' ));
489: [06:38:22] <willagain> $form = new Form($this, 'Form', $fields, $actions, $validator);
490: [06:39:16] * SightUnseen has joined #silverstripe
491: [06:39:48] * SightUnseen has left #silverstripe
492: [06:42:32] * Shrike_Finland has joined #silverstripe
493: [06:46:46] * nicob quit (Ping timeout: 246 seconds)
494: [06:48:36] <willagain> ok, worked it out.
495: [06:48:38] <willagain> $email = new TextField('Email', "Email");
496: [06:48:43] <willagain> $email->validateIf('Contact')->isEqualTo('Email');
497: [06:48:53] <willagain> validator->addRequiredFields(array('FirstName', 'LastName', 'Email', 'Phone' ));
498: [07:02:39] * wmk has joined #silverstripe
499: [07:13:31] * ARNHOE has joined #silverstripe
500: [07:16:18] * abitran_ has joined #silverstripe
501: [07:19:04] * abitran quit (Ping timeout: 240 seconds)
502: [07:28:46] * willagain quit (Ping timeout: 246 seconds)
503: [07:31:41] * simon_w|work quit (Quit: Ex-Chat)
504: [07:34:22] * ocm has joined #silverstripe
505: [07:35:02] * caamic30 has joined #silverstripe
506: [07:41:50] <caamic30> hello SS, how to remove the ‘home’ url segment
507: [07:42:18] <caamic30> I got subpages in my home page, and it keeps on showing the ‘home’ on the url segment when navigating the subpages
508: [07:42:24] <caamic30> how to remove it?
509: [07:45:14] * stnvh has joined #silverstripe
510: [07:45:28] <ocm> howdy
511: [07:47:32] <ocm> .htaccess perhaps?
512: [07:52:58] <caamic30> yeah, but I don’t know the code, I tried this RewriteRule ^home/(.+)$ /$1 [L,QSA] but I get a ‘The page isn’t redirecting well ’
513: [07:54:49] <ocm> you should just rewrite the /home
514: [07:55:12] * azureknight has joined #silverstripe
515: [07:55:14] <ocm> this: /home/other-page should still be /home/other-page
516: [07:56:04] <ocm> redirect 301 "/home" /
517: [07:56:05] <ocm> should work
518: [07:56:10] <ocm> after RewriteEngine On
519: [07:56:24] <ocm> beneath the rewriterules from SS
520: [07:59:42] <azureknight> If Article is many_many to tag which belongs_many_many
521: [07:59:53] <azureknight> How can I query that in my php?
522: [08:00:05] <azureknight> $this->Tags()->Title doesn't seem to return anything.
523: [08:00:20] <Zauberfisch> azureknight: $this->Tags() returns a DataList
524: [08:00:29] <azureknight> Zauberfisch :O
525: [08:00:36] <Zauberfisch> obviously you can not access Title of a datalist
526: [08:00:41] <Zauberfisch> because lists don't have a title
527: [08:00:51] <azureknight> Fair point.
528: [08:01:28] <azureknight> Tags::get()->byId($this->ArticleID) ?
529: [08:03:00] <Zauberfisch> yes, but you already have a DataLists, why would you create a new one?
530: [08:03:08] <azureknight> That's fair.
531: [08:03:14] <Zauberfisch> $this->Tags()->SomeDataListOperation()->Title
532: [08:03:33] <Zauberfisch> eg $this->Tags()->First() // this will give you the first dataobject in the list
533: [08:03:41] <Zauberfisch> so $this->Tags()->First()->Title will work
534: [08:03:41] <azureknight> Ah.
535: [08:03:45] <azureknight> Right.
536: [08:03:46] <Zauberfisch> or
537: [08:04:03] <Zauberfisch> foreach ($this->Tags() as $tag) { echo $tag->Title(); }
538: [08:04:09] <azureknight> I was about to ask that.
539: [08:04:14] <azureknight> That makes sense.
540: [08:04:50] <Zauberfisch> or, if you really only want a single column, eg title, than you can do $allTheTitlesAsArray = $this->Tags()->column('Title');
541: [08:06:26] <azureknight> That one works.
542: [08:06:34] <azureknight> I need it for my json.
543: [08:07:56] <caamic30> Redirect 301 "/home" / - works fine, but it adds an extra param ?url=/home/
544: [08:08:27] <Zauberfisch> azureknight: but I don't know if $ids = $list->column('ID'); $titles = $list->coulmn('Title') is good, because I am not sure if that is cached
545: [08:08:38] <azureknight> Ahh. True.
546: [08:08:39] <wmk> ocm, homepagefordomain module could help. but normally "/home/" is used as /
547: [08:08:44] <Zauberfisch> azureknight: menaing that doing column() twice, might make 2 DB queries.
548: [08:08:57] <Zauberfisch> not sure if it caches that
549: [08:09:02] * UncleCheese has joined #silverstripe
550: [08:09:11] <azureknight> Well, the other thing is, just grabbing column->title doesn't produce tags:[title: Hello World]
551: [08:09:18] <azureknight> but produces tags:[hello world]
552: [08:09:50] <Zauberfisch> caamic30 ocm: silverstripe does a redirect /home / by default
553: [08:10:02] <Zauberfisch> but /home/foo is pretty hard to turn off
554: [08:10:07] <Zauberfisch> thats just how silverstripe works
555: [08:10:32] <Zauberfisch> azureknight: so?
556: [08:10:33] <caamic30> yeah because when I tried to access the subpages, it appends the home/ - in your example home/foo
557: [08:10:55] <azureknight> For my angular to call it, I think I need to do so with {{tag.title}}
558: [08:11:07] <Zauberfisch> caamic30: silverstripe uses nested urls, you can't just go ahead and "unnest" it for home
559: [08:11:17] <Zauberfisch> because /foo might already be a page on the root level
560: [08:11:23] <Zauberfisch> so /foo != /home/foo
561: [08:11:40] <wmk> caamic30, it's /home/foo cause it's a subpage to homne
562: [08:12:06] <wmk> per definition.
563: [08:12:13] <Zauberfisch> azureknight: don't be lazy, of course you might have to convert the raw data to a format that works for you :P
564: [08:12:19] <azureknight> Zauberfisch
565: [08:12:24] <azureknight> Oops. Meant to typemore.
566: [08:12:32] <caamic30> hhmmm.. so there’s no way to remove the home from the .htaccess
567: [08:12:34] <azureknight> Of course not! I'm doing my best not to... Just haven't written json or angular before.
568: [08:12:39] <Zauberfisch> caamic30: yeah, as wmk said, thats per definition
569: [08:12:47] <wmk> just like root(-1) doesn't work normally
570: [08:12:51] <azureknight> First project using them. I still need to figure out caching. -.-
571: [08:12:59] <wmk> only if you redefine the numbers, which can be done
572: [08:13:01] <Zauberfisch> caamic30: I am sure you will be able to build a work around if you beat silverstripe long enough
573: [08:13:07] <Zauberfisch> caamic30: but is that really worth the effort?
574: [08:13:13] <wmk> btw: the result is my favourite number ;)
575: [08:13:47] <caamic30> it’s just weird that there’s a /home on the url
576: [08:14:29] <wmk> caamic30, http://addons.silverstripe.org/add-ons/silverstripe/homepagefordomain helps you
577: [08:15:04] <wmk> was built in in 2.4, factored out to own module
578: [08:15:25] <caamic30> nice, I’ll give it a try.. thanks wmk
579: [08:15:28] <wmk> helps you to rename home to whatever, so /home/foo becomes /whatever/foo
580: [08:16:05] * Shrike_Finland quit (Quit: Leaving.)
581: [08:18:26] * Pyohk has joined #silverstripe
582: [08:18:31] <Pyohk> so
583: [08:18:35] <Pyohk> hard questions first thing
584: [08:18:47] <Pyohk> oh, shit. I had one, but I forgot.
585: [08:21:24] <Pyohk> Maybe it had something to do with this: http://api.silverstripe.org/3.1/source-class-GridFieldSortableHeader.html#150
586: [08:21:26] <Pyohk> idk
587: [08:28:42] * Shrike_Finland has joined #silverstripe
588: [08:36:36] * R\w\C has joined #silverstripe
589: [08:37:24] * spronk2 has joined #silverstripe
590: [08:38:11] * Fisix_AIX has joined #silverstripe
591: [08:39:51] <Fisix_AIX> In Template, is there a way to get the next year?
592: [08:41:54] <guzzlefry> Fisix_AIX: based on?
593: [08:42:23] <Fisix_AIX> The current year
594: [08:42:57] <guzzlefry> I'd just pass it to the template.
595: [08:43:04] * zfmf has joined #silverstripe
596: [08:43:18] <guzzlefry> You really shouldn't be doing any calculations inside the template/view.
597: [08:43:31] <Fisix_AIX> Im not
598: [08:43:52] <Pyohk> You just asked exactly how to do that.
599: [08:44:00] <Fisix_AIX> I'm just displaying the current year and the next year
600: [08:44:01] <Pyohk> You just asked how to do exactly that.
601: [08:44:28] <Fisix_AIX> "$Now.year"
602: [08:44:54] <guzzlefry> $Now.year + 1 doesn't work?
603: [08:45:03] <guzzlefry> It's been a while since I've touched SilverStripe.
604: [08:45:21] <Pyohk> ha nope
605: [08:45:34] <Pyohk> and that would be a calculation in a template.
606: [08:45:44] * R\w\C quit (Changing host)
607: [08:45:44] * R\w\C has joined #silverstripe
608: [08:45:46] <Pyohk> Fisix_AIX: do whatever you want with a controller method.
609: [08:45:54] <Pyohk> or model method
610: [08:46:11] <Fisix_AIX> I just thought there might of been some kind of Now.year.next
611: [08:46:43] <Pyohk> no, that would be the same thing as $now.next
612: [08:46:54] <wmk> Fisix_AIX, you can decorate the class of $NOW to have a NextYear() method
613: [08:47:02] <Pyohk> #no it wouldn't
614: [08:47:13] <Pyohk> it would be the same as "2014"->next()
615: [08:47:30] <Pyohk> wmk: yeah, that'd work.
616: [08:47:41] <Pyohk> like I said, can do whatever you want in a proper method.
617: [08:47:54] <Pyohk> controller/model/decoration
618: [08:48:12] <guzzlefry> hrm
619: [08:48:39] <guzzlefry> the PascalCase methods are meant for the template, right?
620: [08:48:50] * guzzlefry reads the coding conventions again. :P
621: [08:48:58] <wmk> pascal case?
622: [08:49:08] <wmk> same like CamelCase ?
623: [08:49:13] <Pyohk> yeah, PascalCase?
624: [08:49:20] <Pyohk> camelCase?
625: [08:49:31] <wmk> pascal in means of that programming language?
626: [08:49:37] <Pyohk> I'm assuming so
627: [08:49:40] <guzzlefry> PascalCase has the first word capitalized.
628: [08:49:43] * Pyohk shrugs
629: [08:49:47] <guzzlefry> while camel case doesn't
630: [08:49:51] <wmk> oh.
631: [08:49:59] <Pyohk> so which is Hungarian notation?
632: [08:50:05] * wmk learned something maybe useful one day.
633: [08:50:06] <guzzlefry> pretty sure PascalCase has 8 other names.
634: [08:50:47] <guzzlefry> Hungarian notation prefixes some abbreviation of the variable type to the variable name.
635: [08:50:54] <Zauberfisch> Pyohk: partially incorrect
636: [08:51:03] <guzzlefry> so numCats would magically turn into iNumCats or intNumCats.
637: [08:51:17] <Zauberfisch> because $Now is not a string but rather a SS_DateTime object I belive
638: [08:51:31] <Zauberfisch> so you could indeed call SS_DateTime methods on now
639: [08:51:36] <Zauberfisch> just like $Now.Year
640: [08:52:00] <Zauberfisch> if SS_DateTime->NextYear() existed, you could do $Now.NextYear.
641: [08:52:03] <Zauberfisch> (but it does not)
642: [08:52:40] <wmk> Zauberfisch, so i's decorate Date Class (where Year() exists) with a NextYear() funktion.
643: [08:53:04] <Pyohk> Zauberfisch: yes, but Now.Year returns a string
644: [08:53:12] <Zauberfisch> yeah, wmk that will work
645: [08:53:23] <Zauberfisch> Pyohk: true, $Now.Year.Foo would not work
646: [08:53:24] <Pyohk> wmk: SS_DateTime
647: [08:53:27] <wmk> return (int)$this->Year() + 1;
648: [08:53:43] <Pyohk> wmk: 20141
649: [08:53:44] <Pyohk> ?
650: [08:53:53] <Pyohk> oh, (int) derp :<
651: [08:53:56] <Pyohk> mybad
652: [08:53:59] <guzzlefry> err
653: [08:54:32] <Zauberfisch> Pyohk: ss_datetime extends date
654: [08:54:42] <wmk> Pyohk, no, class Date
655: [08:54:43] <Zauberfisch> so it doesn't really matter where you put it
656: [08:54:53] <guzzlefry> http://codepad.viper-7.com/qZbBhD
657: [08:55:04] <guzzlefry> casting to int might be overkill.
658: [08:55:16] <Pyohk> Zauberfisch: ah yeah, sorry. SS_DateTime is the NOW provider, but Date defines the Year, yeh
659: [08:55:23] <wmk> ok
660: [08:55:37] <Zauberfisch> the date class is another one of those ugly sides
661: [08:55:38] <Zauberfisch> ...
662: [08:55:52] <wmk> Zauberfisch, when it comes to i18n, yes
663: [08:56:10] <Zauberfisch> for ss4 we should just throw out all the things
664: [08:56:14] <Pyohk> guzzlefry: nah, that's ambiguious as fuck, and is a deviation from past PHP I'm pretty sure
665: [08:56:20] <wmk> Zauberfisch, shut up!
666: [08:56:26] <Zauberfisch> and start all over
667: [08:56:29] <guzzlefry> Pyohk: it's how PHP handles it. :P
668: [08:56:31] <Fisix_AIX> So I either need to do it in the controller or create a Template method to it lol
669: [08:56:58] <Pyohk> guzzlefry: hmm, apparently I'm wrong.
670: [08:57:02] <Pyohk> in any case, it's bad.
671: [08:57:03] <wmk> Zauberfisch, please give me some backwards compatibility ;)
672: [08:57:07] <wmk> please!
673: [08:57:14] <Pyohk> (int)"string" is much clearer
674: [08:57:32] <Pyohk> Fisix_AIX: there are no such things as template methods.
675: [08:57:54] <Pyohk> you can do it in the controller, but as everyone has been discussing, a decorator on Date would be better.
676: [08:57:57] <Fisix_AIX> Pyohk, What would it be called?
677: [08:58:11] <Pyohk> well just a controller method.
678: [08:58:13] <wmk> Fisix_AIX, just like you name the method you extend to Date()
679: [08:59:46] <Zauberfisch> wmk: meh
680: [09:00:04] <wmk> grml
681: [09:00:17] <Fisix_AIX> wmk, Pyohk Zauberfisch guzzlefry Thanks for your help
682: [09:00:19] <Pyohk> Fisix_AIX: a method can be intended for template use, but there are no 'template methods'. the domain of templates do not have methods. they use the controller or model currently in scope.
683: [09:00:53] <kinglozzer> Pyohk: TEMPLATEGLOBALPROVIDER DISAGREES
684: [09:00:59] <Pyohk> kinglozzer: wrong.
685: [09:00:59] <wmk> Fisix_AIX, untested but should do: http://sspaste.com/paste/show/53abdd6fd4c7a
686: [09:00:59] <kinglozzer> Kidding, they're still Controller :P
687: [09:01:14] <kinglozzer> Well, ish
688: [09:01:17] <Pyohk> exactly.
689: [09:01:36] <Pyohk> wmk: code it LIVE! :D
690: [09:01:49] <wmk> Pyohk, you mean?
691: [09:04:08] <Fisix_AIX> wmk, Thanks
692: [09:04:50] <wmk> missed a closing } in the class, you'll get it anyway.
693: [09:04:57] <Pyohk> I mean public function iJustTypedThis($goodluck) { return $goodluck ? 'sweet it works' 'lolno:operator'; }
694: [09:05:08] <Pyohk> live!
695: [09:05:09] <Pyohk> :D
696: [09:07:10] * cloph_away is now known as cloph
697: [09:12:26] <wmk> Pyohk, are traits the same like silverstripes extensions?
698: [09:15:11] <Pyohk> wmk: kinda.
699: [09:16:49] <Pyohk> they're sorta between decorations and classes (multiple inheritance).
700: [09:17:13] <Pyohk> they're intended for horizontal code reuse, as opposed to hierarichal
701: [09:17:51] <Pyohk> so two completely unrelated classes that share some common functions can both use the same trait, as opposed to having to copy and paste the code & implement the same interface.
702: [09:18:11] <wmk> well, this can be done with extensions, too
703: [09:18:16] <Pyohk> yeah, sorta.
704: [09:18:17] <wmk> i guess traits will be faster?
705: [09:18:32] <Pyohk> extension functions aren't native to the decorated class.
706: [09:18:41] <Pyohk> $this->owner, etc.
707: [09:18:46] <wmk> yup
708: [09:18:56] <Pyohk> traits are.
709: [09:19:00] <Pyohk> so far as I understand.
710: [09:19:19] <Fisix_AIX> wmk, hmm not working, ist not returning anything
711: [09:19:23] <Pyohk> [09:56] <Zauberfisch> for ss4 we should just throw out all the things
712: [09:19:30] <Pyohk> gawd, don't let folks hear you saying that!
713: [09:19:31] <wmk> Fisix_AIX, did you flush?
714: [09:19:36] <Pyohk> dat backwards compatiblity
715: [09:19:37] <Pyohk> !
716: [09:19:47] <Fisix_AIX> yup
717: [09:20:20] <Fisix_AIX> even return $this->Year(); returns nothing
718: [09:20:25] <wmk> Fisix_AIX, https://gist.github.com/wernerkrauss/f03e6ce2d119c0521ffd is the same tested
719: [09:20:35] <wmk> Fisix_AIX, yep, my fault.
720: [09:20:41] <wmk> $this->owner->Year()
721: [09:20:50] <wmk> as we're in an extension.
722: [09:20:57] <wmk> take the gist, it's tested
723: [09:21:09] <Fisix_AIX> ahh, yea that works
724: [09:21:36] <wmk> Pyohk, what did you mean with "code it LIVE" ??
725: [09:23:12] <Fisix_AIX> So what is the correct name for this, a Controller decorator?
726: [09:23:45] <wmk> just decorator, or in silverstripe terms extension
727: [09:24:01] <wmk> it just extends a silverstripe object class, not a dataobject class
728: [09:24:10] <Fisix_AIX> ok
729: [09:26:55] <Pyohk> wmk: type it live into the editor, send.
730: [09:27:01] <Pyohk> no testing, no running.
731: [09:27:14] <Pyohk> [10:04] <Pyohk> I mean public function iJustTypedThis($goodluck) { return $goodluck ? 'sweet it works' 'lolno:operator'; }
732: [09:27:24] <Pyohk> [10:04] <wmk> missed a closing } in the class, you'll get it anyway.
733: [09:27:38] <wmk> yup. that was live.... with some error just to get him started
734: [09:27:45] <Pyohk> yep :>
735: [09:28:06] <wmk> tested and gisted afterwards
736: [09:28:29] * wmk thinks we all should do more gists for documenting the hard support work we do here
737: [09:31:57] <Zauberfisch> wmk: I use gist only for quality snippets that I have tested myself
738: [09:32:14] <Pyohk> wmk: I used to use sspaste a lot
739: [09:32:18] <Pyohk> both questions and answers
740: [09:32:21] <Zauberfisch> quick write ups that are full of typos and missing )}];,.... I just put up on a random paste site
741: [09:32:23] <Pyohk> I'd actually put titles
742: [09:32:40] <Zauberfisch> but I try to do more on stackoverflow
743: [09:32:58] <Pyohk> eg if you search BelongsManyManyTableField site:sspaste.com you'll probably find a fix I did once.
744: [09:33:00] <Pyohk> or something like taht
745: [09:33:10] <wmk> Zauberfisch, so the new IRC workflow for high-quality-quesions is:
746: [09:33:13] <Pyohk> but 2.4 is irrelevant now :/
747: [09:33:23] <wmk> 1) tell the user to ask on stackoverflow
748: [09:33:27] <wmk> 2) drink coffee
749: [09:33:34] <Pyohk> haha, nope :/
750: [09:33:35] <wmk> 3) answer there
751: [09:33:41] <Zauberfisch> in terms of keeping a record, stackoverflow > irc+paste
752: [09:33:49] <Pyohk> yeh, this is true.
753: [09:33:51] <Zauberfisch> but yeah, not always practical
754: [09:33:55] <Pyohk> indeed.
755: [09:34:06] <Pyohk> I use irc far more, but that's just how I am.
756: [09:34:08] <Zauberfisch> but the number of questions on stackoverflow has trippled in the last few month
757: [09:34:10] <Pyohk> I search logs and stuff.
758: [09:34:23] <Pyohk> I can remember questions being asked, so search for those when I encounter similar issues
759: [09:34:32] <Zauberfisch> yeah, same here.
760: [09:35:15] <Zauberfisch> but, in addition to answering questions here in irc, we all should answer questions on stackoverflow
761: [09:35:36] <Zauberfisch> because on a long term, this will reduce the number of low level questions here in irc
762: [09:35:51] <Zauberfisch> because people (hopefully) search and find stackoverflow before they bother us
763: [09:37:17] <Pyohk> Zauberfisch: and hopefully also reduce the amount of stupid on stack overflow
764: [09:37:24] <Pyohk> in relation to SS at least.
765: [09:37:27] <guzzlefry> need better docs >_>
766: [09:38:01] <wmk> sigh
767: [09:38:29] <wmk> like yesterday. the one who asked for an ajax example.
768: [09:43:13] * Tanger quit (Quit: Tanger)
769: [09:43:58] * svandragt has joined #silverstripe
770: [09:44:21] <svandragt> hey folks anyone got an example of a sake RebuildStaticCacheTask cron job for me please?
771: [09:44:27] * zippy__ has joined #silverstripe
772: [09:45:23] <zippy__> evenings
773: [09:46:01] <svandragt> and how often does it typically run seeing as I'm using StaticPublisher which publishes static updates anyway? :)
774: [09:52:02] <R\w\C> how do i load a theme file within a folder ie. examplePages/side-panel/info.ss
775: [09:52:03] <azureknight> So, in the end, I decided to use the JSONDataFormatter()->convertDataObject('Article');
776: [09:52:22] <azureknight> But, it gave me a no-no on Article's $many_many to Tag.
777: [09:52:24] <wmk> svandragt, depends
778: [09:52:38] <R\w\C> <% include "examplePages/side-panel/info.ss" %>
779: [09:52:43] <R\w\C> does not work
780: [09:52:47] <wmk> if you have dynamic values in the templates (like $Now) you have to rebuild more often
781: [09:53:23] <azureknight> Zauberfisch thoughts on that?
782: [09:54:06] <wmk> R\w\C, normally you just do <% include FileName %>
783: [09:54:21] <R\w\C> so u dont need to specify the location?
784: [09:54:27] <R\w\C> if its within folders
785: [09:54:32] <wmk> it searches /themes/$CurrentTheme/Includes/FileName.ss
786: [09:54:50] <R\w\C> oh do you have to put within includes?
787: [09:54:53] <wmk> .ss
788: [09:55:02] <wmk> /module/templates/Includes/FileName.ss
789: [09:55:29] <R\w\C> ok thanks :)
790: [09:55:36] <wmk> afaik in the Includes subfoldr
791: [09:56:17] <svandragt> wmk: cheers that makes sense
792: [10:00:16] * Shrike_Finland quit (Quit: Leaving.)
793: [10:00:47] <wmk> svandragt, did you see static publish queue module?
794: [10:01:59] <svandragt> wmk: yes I did but I wasn't yet unsatisfied with StaticPublisher?
795: [10:03:15] <svandragt> wmk: ah you are talking about the feature where it can run as a continuous background task?
796: [10:03:25] <wmk> depends on how big your site is. if you have to rewrite a bunch of pages saving and publishing can take a while
797: [10:03:34] <wmk> yup. the queue
798: [10:04:24] <svandragt> wmk: 270 odd pages currently being generated
799: [10:04:31] <zippy__> svandragt:
800: [10:04:33] <zippy__> lol
801: [10:04:35] <zippy__> svandragt: ouch
802: [10:05:03] <zippy__> makes ya wonder….. would it be faster to use cloud flare, then add a hook on puslish to clear that page cache in cloudflare?
803: [10:05:04] <wmk> on save or on rebuild?
804: [10:05:15] <svandragt> wmk: no with the rebuild task
805: [10:05:19] <wmk> ok.
806: [10:05:28] <wmk> the task can take some time ;)
807: [10:06:28] <svandragt> wmk: ok well I've set it to rebuild every 40 minutes and at the moment AFAICS saving / publishing is fast so if I'll wait for complaints ;-)
808: [10:07:17] <zippy__> svandragt: why rebuild every 40?
809: [10:08:13] <svandragt> ok crap found a problem all the assets have suddenly become http on the https site hmm
810: [10:09:23] <wmk> normally i don't rebuild or once a night, but the site is very static
811: [10:10:25] <svandragt> ok well I had no idea what to set it to and the static publisher documentation says "continuously": It is advisable to set dev/tasks/RebuildStaticCacheTask up as an automated task (e.g. unix cron) which continually rebuilds and redeploys the cache.
812: [10:11:53] * azureknight quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
813: [10:19:19] * azureknight has joined #silverstripe
814: [10:23:42] * azureknight quit (Ping timeout: 255 seconds)
815: [10:24:48] * Shrike_Finland has joined #silverstripe
816: [10:29:33] * Shrike_Finland quit (Client Quit)
817: [10:48:48] <Pyohk> giddays zippy__
818: [10:49:19] <Pyohk> wmk: an ajax example? [10:38] <wmk> like yesterday. the one who asked for an ajax example.
819: [10:50:03] <Pyohk> I mean it's cool that people are trying to learn and all... but at the same time this is #silverstripe, not #helpImnewtowebdevlopment
820: [10:50:15] <wmk> well speaked
821: [10:50:25] <zippy__> but… my css is broken!
822: [10:50:53] <wmk> ok, a good tutorial for how to use ajax with silverstripe would be cool. including how to call with jquery, what your controller has to do etc.
823: [10:50:59] <Pyohk> The other one that pisses me off a lot is "you do this then that and you should be able to figure out a solution from there" and then the reply comes "Please can you show me a working example?"
824: [10:51:07] <Pyohk> aka "write all my code for me"
825: [10:51:15] <Pyohk> man that gets on my tits something crazy :<
826: [10:51:44] <wmk> hehe
827: [10:51:57] <wmk> but "decorate Date class" as an answer can be overkill for newbies
828: [10:52:54] <Pyohk> wmk: yeah, but if they then say that and we give them documentation links and they go away and read and figure it out and give it a go an then come back saying 'I can't get this decorator going...'
829: [10:52:58] <Pyohk> that's fine.
830: [10:53:23] <Pyohk> but "show me exactly how I need to write all this code, so I can copy and paste it and it will work straight off without any adjustments"
831: [10:53:28] <Pyohk> two completely different things
832: [10:53:52] * wmk remembers of Zauberfisch writing very good ready-to-use examples
833: [10:54:03] <wmk> ... 10x a lot btw
834: [10:54:09] <wmk> Pyohk, but you're right.
835: [10:54:29] <Pyohk> the similar one that gets me (but not as bad) is TheirClass::get()->filter(array('actualexampletitle' => 'examplevalue')) and then they go 'it's not working, it says no such field 'actualexampletitle'
836: [10:54:48] <Pyohk> and I'm all DID YOU EVEN READ!?
837: [10:58:16] <wmk> but shit happens: sometimes you're the pigeon, sometimes the statue
838: [10:58:46] <wmk> Pyohk, yeah, sometimes it's hard not to offend others
839: [10:59:56] * simon_w has joined #silverstripe
840: [11:04:16] <Pyohk> Yeh. tis true. Often if I'm just silent it's because I know if I try soemthing bad will happen
841: [11:04:39] * simon_w quit (Ping timeout: 255 seconds)
842: [11:04:49] <wmk> lol
843: [11:05:06] * simon_w has joined #silverstripe
844: [11:08:59] * spronk2 quit (Quit: spronk2)
845: [11:11:10] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
846: [11:13:37] * simon_w quit (Quit: This computer has gone to sleep)
847: [11:13:38] * caamic30 quit (Quit: caamic30)
848: [11:13:49] * spronk2 has joined #silverstripe
849: [11:14:38] * spronk2 quit (Client Quit)
850: [11:15:31] * simon_w has joined #silverstripe
851: [11:16:07] * shellbackpacific has joined #silverstripe
852: [11:20:40] <Zauberfisch> wmk: np ;)
853: [11:21:11] <Zauberfisch> Pyohk: haha, yeah I love the $datalist->Title people :D
854: [11:21:38] * Azure_ has joined #silverstripe
855: [11:21:44] <Pyohk> haha, yeh. I can sorta forgive that though Zauberfisch
856: [11:21:55] <Pyohk> that's just a misunderstainding
857: [11:21:59] <Zauberfisch> oh, so thats not what you meant?
858: [11:22:15] <Zauberfisch> ah, now I get what you mean
859: [11:22:26] <Zauberfisch> people saying but "Foobar" does not exist
860: [11:22:28] <Zauberfisch> haha
861: [11:22:35] * shellbackpacific quit (Quit: Leaving.)
862: [11:22:36] <Zauberfisch> yeah, love those pepople even more
863: [11:22:43] * Azure quit (Ping timeout: 240 seconds)
864: [11:23:41] * sander has joined #silverstripe
865: [11:26:13] * svandragt quit (Ping timeout: 240 seconds)
866: [11:33:07] <Pyohk> argh, where are the docs on the summary_fields
867: [11:37:41] <zippy__> private static $summary_fields = array('Field or Function name' => 'Column Title');
868: [11:38:09] <Pyohk> zippy__: I know that.
869: [11:38:14] <Pyohk> but there's an expanded syntax.
870: [11:38:34] <Pyohk> fieldorfunc => [title=>title, type=>date, etc=>more]
871: [11:38:34] <wmk> Pyohk, phpdoc?
872: [11:38:39] <Pyohk> possibly
873: [11:38:43] <Pyohk> but... can't find that either :>
874: [11:38:46] <Pyohk> :< *
875: [11:38:55] <zippy__> http://doc.silverstripe.org/framework/en/reference/dataobject#summary-fields ?
876: [11:39:39] <zippy__> never seen that expanded syntax… sounds intersting
877: [11:39:39] <Pyohk> boom, thanks zippy__ :>
878: [11:40:00] <zippy__> I know you can do it on searchable fields
879: [11:40:23] <Pyohk> yeah, maybe I'm confusing them
880: [11:40:23] <Pyohk> :/
881: [11:40:37] * daslicht has joined #silverstripe
882: [11:41:00] <Pyohk> yeh, it is. title, type, filter
883: [11:41:38] <Pyohk> err rather title field filter
884: [11:41:47] * zippy__ quit (Quit: zippy__)
885: [11:41:52] <Pyohk> I think it should all be one unified consolodated syntax perhaps
886: [11:42:20] <Pyohk> $db = ['Field' => [title, type, field, filter, summary]]
887: [11:43:06] <Pyohk> where type would be a DBField for $db and a ClassName for relations
888: [11:43:13] <Pyohk> as it is now
889: [11:43:26] <Pyohk> but shorthand to be backwards compatible
890: [11:43:50] <Pyohk> Might take a bit more processing though, slow down execution :<
891: [11:47:32] * caamic30 has joined #silverstripe
892: [11:57:25] * Colin[pi] quit (Ping timeout: 264 seconds)
893: [12:00:36] * UndefinedOffset has joined #silverstripe
894: [12:08:26] * R\w\C quit (Quit: My iMac has gone to sleep. ZZZzzz…)
895: [12:14:20] * eagles0513875 is now known as greenrice
896: [12:14:53] * greenrice is now known as eagles0513875
897: [12:38:22] * jordanmk quit (Read error: Connection reset by peer)
898: [12:39:22] * jordanmk has joined #silverstripe
899: [12:43:00] * R\w\C has joined #silverstripe
900: [12:49:05] * Fisix_AIX quit (Quit: Leaving)
901: [12:53:10] * R\w\C quit (Quit: My iMac has gone to sleep. ZZZzzz…)
902: [13:19:07] * sander quit (Quit: Leaving)
903: [13:26:15] * terryapodaca has joined #silverstripe
904: [13:27:07] <terryapodaca> ok, it's 8:30 am and i've been up since 6:30 pm and this is drawing a blank
905: [13:27:53] <terryapodaca> I have a site that has several redirector pages but the main Page.php has a hand full of custom fields like adding a pagebanner, headline, etc
906: [13:28:23] <terryapodaca> the client is asking to remove those fields in the CMS for redirector page types...or essentially any page type that won't need them
907: [13:28:31] * catcher has joined #silverstripe
908: [13:28:36] <terryapodaca> and I know it's bad to edit the core files
909: [13:28:55] <terryapodaca> so I copied the RedirectorPage.php file over to mysite/code
910: [13:29:10] <terryapodaca> and simply added the removebyname(); for each field
911: [13:29:14] <terryapodaca> but it's not removing them
912: [13:29:33] <terryapodaca> is there a better way to maybe extend the redirector page?
913: [13:36:29] <catcher> terryapodaca, decorate & updateCMSFields, provided that hook is late enough
914: [13:37:06] <catcher> Yep, it's right at the end, that should do it.
915: [13:39:43] <Pyohk> happy!
916: [13:40:18] <Pyohk> w00t, kinglozzer: the fucker's in prison!
917: [13:40:25] <Pyohk> :D
918: [13:40:31] <kinglozzer> Pyohk: :D :D congrats!
919: [13:40:38] <Pyohk> AND the dipshit rolled over on his mates that were accomplaces
920: [13:40:38] <Pyohk> !
921: [13:40:48] <Pyohk> gave up all the names
922: [13:40:53] <Pyohk> mint!
923: [13:40:59] <Pyohk> I'm proper happy now like
924: [13:41:18] <Pyohk> The only thing that could make this better is if the cunt was still squirrelling away my stuff somewhere
925: [13:42:32] <Pyohk> phone & wallet returned would just be so magic.
926: [13:42:43] <Pyohk> although unlikely :/
927: [13:42:47] <Pyohk> oh well, good news!
928: [13:43:58] * Azure_ is now known as Azure
929: [13:47:50] <Pyohk> terryapodaca: yeah, decorating would be better, but if you want quick and dirty just in Page::getCMSFields do if($this->ClassName != 'RedirectorPage') { //add fields
930: [13:48:55] <terryapodaca> catcher and pyohk: i know in 2.4- i would use dataobjectdecorator, but how do i do it in 3.0+?
931: [13:49:12] <Pyohk> DataExtension
932: [13:49:17] <Pyohk> but otherwise pretty much the same.
933: [13:49:22] <terryapodaca> seems like the docs say to just subclass, but I thought that was frowned upon
934: [13:49:33] <Pyohk> well, it depends on what you're trying to achieve.
935: [13:49:46] <Pyohk> but if you read the update notes (2.4 -> 3.0) that'll give you a better picture.
936: [13:50:16] <catcher> terryapodaca, if all redirectors should remove those fields, you should decorate. If you need a couple custom redirectors that are different, subclass.
937: [13:50:31] * UndefinedOffset quit (Quit: Leaving.)
938: [13:50:33] <Pyohk> http://doc.silverstripe.org/framework/en/changelogs/3.0.0
939: [13:55:28] * silverstriper has joined #silverstripe
940: [13:57:17] <silverstriper> Hi all, i've got a loop in my template (SS 2.4) and want to display a Google Adsense banner after the first 6 items - how to do this in templates? Modulus and MultipleOf doesn't seem to be the right functions for this job
941: [14:01:44] <silverstriper> <% if MultipleOf(6) %>google adsense code<% end_if %> will display a banner after every 6th item - just want to display 1 banner after the first 6 items
942: [14:01:57] * UndefinedOffset has joined #silverstripe
943: [14:12:46] * R\w\C has joined #silverstripe
944: [14:13:03] <Pyohk> Pos
945: [14:13:22] <Pyohk> <% if Pos = 6 %>
946: [14:43:04] <silverstriper> thanks Pyohk! works like a charm
947: [15:00:02] * caamic30 quit (Quit: caamic30)
948: [15:09:43] * stnvh quit (Ping timeout: 240 seconds)
949: [15:09:53] * kinglozz_ has joined #silverstripe
950: [15:10:00] * kinglozzer quit (Ping timeout: 264 seconds)
951: [15:10:05] * stnvh has joined #silverstripe
952: [15:22:15] * silverstriper quit (Quit: Page closed)
953: [15:23:45] * ARNHOE quit ()
954: [15:27:05] * kinglozz_ is now known as kinglozzer
955: [15:27:55] * DesignerX quit (Ping timeout: 244 seconds)
956: [15:31:29] <daslicht> Hello , I am trying to create a ChromeLogger Extension and followed the guide here:
957: [15:31:29] <daslicht> \http://doc.silverstripe.org/framework/en/topics/module-development
958: [15:31:42] <daslicht> this is the class
959: [15:31:43] <daslicht> https://github.com/ccampbell/chromephp/blob/master/ChromePhp.php
960: [15:31:58] <daslicht> Looks like tghe Class is autoloaded but i get this error:
961: [15:32:10] <daslicht> https://gist.github.com/daslicht/996931a6871c71177d57
962: [15:32:27] <daslicht> anyone giot experiecne with this error, please:
963: [15:33:15] <daslicht> aha sloved
964: [15:33:22] <daslicht> my yml was malformed yesh
965: [15:34:05] <daslicht> now we can debug directly in the browser using Chomelogger
966: [15:39:55] <catcher> daslicht, that looks handy!
967: [15:40:20] <daslicht> much faster than to init xdebug just to view an object
968: [15:40:21] <daslicht> :D
969: [15:40:37] <daslicht> atleast when you using Sublime Text
970: [15:40:48] <daslicht> in PHPStorm its much more comfortable
971: [15:40:59] <daslicht> i am going to test it
972: [15:41:07] <daslicht> and publich it later if anything works perfect
973: [15:47:29] <daslicht> haha and now mit site is broken
974: [15:47:31] <daslicht> agr
975: [15:47:43] <daslicht> cant no longer log in even if i remove my module lol
976: [15:48:40] * caamic30 has joined #silverstripe
977: [15:56:40] <daslicht> ok ChromeLogger loaded as mudule will not work smooth
978: [15:56:54] <daslicht> when i add pages , the ui just freeze
979: [16:00:59] * wmk quit (Quit: nice to meet you ;))
980: [16:01:49] <Pyohk> daslicht: there'll be a JS error probably, that's the most common cause for that.
981: [16:02:08] <daslicht> no errors in console
982: [16:02:09] <daslicht> funny
983: [16:02:32] <daslicht> i try to narrow it down
984: [16:06:00] <daslicht> looks like that the user sccount gets broken either
985: [16:07:39] <kinglozzer> daslicht: If you're stuck and want Chrome logging, I think this module can do it: https://github.com/camspiers/silverstripe-loggerbridge
986: [16:08:02] <kinglozzer> At a glance it looks quite complicated to set up, though. Never tried it personally
987: [16:08:27] <daslicht> this will write into logfiles?
988: [16:08:52] <daslicht> ahh isee
989: [16:08:53] <daslicht> cool
990: [16:09:03] <daslicht> i wonder why chomelogger not just works
991: [16:09:09] <daslicht> its a simple class
992: [16:09:14] <daslicht> i try to just include it
993: [16:12:02] <daslicht> ok vanilla silbverside + chomelogger works without any issues
994: [16:12:03] <daslicht> :)
995: [16:12:14] <daslicht> lets add the addons now
996: [16:16:22] <daslicht> its something with my code
997: [16:16:24] <daslicht> strange
998: [16:19:43] <daslicht> aha
999: [16:19:47] <daslicht> ok its ChomeLogger
1000: [16:19:58] <daslicht> when i add it i get an jQuery error
1001: [16:20:12] <daslicht> is therer a way to exclude a Module from loding on the backend ?
1002: [16:20:59] <kinglozzer> daslicht: Add an empty file called _manifest_exclude to the folder than contains the files you don't want to be automatically loaded
1003: [16:21:07] <kinglozzer> You'll then need to load them manually whenever you do need them though
1004: [16:21:18] <kinglozzer> i.e. include '/path/to/ChromeLogger.php'
1005: [16:21:46] <daslicht> ok than i could simply put ChomePHP.php in the site route without declaring a modul
1006: [16:21:55] <daslicht> and ss should not load it either ?
1007: [16:22:00] <daslicht> i try it
1008: [16:22:25] * ocm quit (Remote host closed the connection)
1009: [16:23:59] <daslicht> kinglozzer: have you tried loggerbridge ?
1010: [16:24:05] <kinglozzer> daslicht: Nope
1011: [16:24:11] <daslicht> i think i try it
1012: [16:24:58] * Pyohk quit (Ping timeout: 246 seconds)
1013: [16:27:39] * kinglozzer quit ()
1014: [16:57:50] * R\w\C quit (Quit: Textual IRC Client: www.textualapp.com)
1015: [16:57:54] * zfmf quit (Remote host closed the connection)
1016: [17:02:26] <daslicht> just loaded ChomePHhp now on my Page.php and it works like a charm :D
1017: [17:02:41] <daslicht> ok enuff 4 2day
1018: [17:02:45] <daslicht> :S
1019: [17:02:50] <daslicht> have a nice time bbl
1020: [17:02:56] * daslicht quit ()
1021: [17:12:19] * gelignite has joined #silverstripe
1022: [17:13:49] * zfmf has joined #silverstripe
1023: [17:15:54] * caamic30 has left #silverstripe
1024: [17:31:25] * Azure quit (Read error: Connection reset by peer)
1025: [17:31:56] * Azure has joined #silverstripe
1026: [18:05:02] * cloph is now known as cloph_away
1027: [18:20:12] * krofek quit (Ping timeout: 245 seconds)
1028: [18:31:40] * zfmf quit ()
1029: [18:32:56] * krofek has joined #silverstripe
1030: [18:40:22] <catcher> hmm, phpstorm is looking pretty cool
1031: [18:45:51] * krofek quit (*.net *.split)
1032: [18:45:52] * UndefinedOffset quit (*.net *.split)
1033: [18:45:53] * spronk quit (*.net *.split)
1034: [18:45:59] * stnvh quit (*.net *.split)
1035: [18:45:59] * terryapodaca quit (*.net *.split)
1036: [18:46:00] * cloph_away quit (*.net *.split)
1037: [18:46:00] * r_hector quit (*.net *.split)
1038: [18:46:01] * jrthomer quit (*.net *.split)
1039: [18:46:02] * eagles0513875 quit (*.net *.split)
1040: [18:46:08] * MickRip_ quit (*.net *.split)
1041: [18:46:40] * krofek has joined #silverstripe
1042: [18:46:40] * stnvh has joined #silverstripe
1043: [18:46:40] * UndefinedOffset has joined #silverstripe
1044: [18:46:40] * terryapodaca has joined #silverstripe
1045: [18:46:40] * spronk has joined #silverstripe
1046: [18:46:40] * cloph_away has joined #silverstripe
1047: [18:46:40] * r_hector has joined #silverstripe
1048: [18:46:40] * MickRip_ has joined #silverstripe
1049: [18:46:40] * jrthomer has joined #silverstripe
1050: [18:46:40] * eagles0513875 has joined #silverstripe
1051: [18:46:59] * eagles0513875 quit (Max SendQ exceeded)
1052: [18:48:16] * irogue quit (*.net *.split)
1053: [18:48:26] * irogue has joined #silverstripe
1054: [18:52:26] * eagles0513875 has joined #silverstripe
1055: [18:56:55] * krofek quit (*.net *.split)
1056: [18:57:01] * UndefinedOffset quit (*.net *.split)
1057: [18:57:05] * spronk quit (*.net *.split)
1058: [18:59:31] * krofek has joined #silverstripe
1059: [19:06:55] * scpi has joined #silverstripe
1060: [19:19:03] * UndefinedOffset has joined #silverstripe
1061: [19:19:03] * spronk has joined #silverstripe
1062: [19:56:37] * zippy__ has joined #silverstripe
1063: [19:57:29] * zippy__ quit (Client Quit)
1064: [20:05:03] * Stomach has joined #silverstripe
1065: [20:08:32] * simon_w quit (Ping timeout: 245 seconds)
1066: [20:08:59] * simon_w has joined #silverstripe
1067: [20:20:42] * oddnoc has joined #silverstripe
1068: [20:23:59] * UndefinedOffset quit (Quit: Leaving.)
1069: [20:25:26] * terryapodaca has left #silverstripe
1070: [20:39:22] * zippy__ has joined #silverstripe
1071: [20:39:49] * oddnoc_ has joined #silverstripe
1072: [20:41:12] * oddnoc quit (Ping timeout: 264 seconds)
1073: [20:41:13] * oddnoc_ is now known as oddnoc
1074: [20:47:04] <zippy__> morning
1075: [20:47:14] * UncleCheese has joined #silverstripe
1076: [20:48:18] * Ryan-Toast has joined #silverstripe
1077: [20:49:32] * oddnoc quit (Quit: oddnoc)
1078: [20:50:20] <catcher> hello
1079: [20:51:27] <Ryan-Toast> Hi
1080: [20:51:27] <zippy__> o/
1081: [20:54:00] * oddnoc has joined #silverstripe
1082: [20:55:01] <catcher> So yeah, it turns out phpstorm is pretty rad, if only I can get my key bindings going.
1083: [20:55:20] <zippy__> catcher it's not to bad eh… id like to get xdebug working with it...
1084: [20:55:42] <catcher> zippy__, that took like 10 minutes with the zero-config option.
1085: [20:55:51] <catcher> breakpoints and all, game changer.
1086: [20:56:01] <Ryan-Toast> catcher: I enjoy it.
1087: [20:56:03] <zippy__> catcher: mine seems to be waiting for connection, wanting me to install a chrome plugin and all sorts
1088: [20:56:08] * oddnoc quit (Client Quit)
1089: [20:56:18] <catcher> zippy__, shouldn't need a plug, just bookmarks to enable the cookies
1090: [20:56:23] <zippy__> I have some live templates setup for $has_many, getCMS etc, which is nice
1091: [20:56:36] <zippy__> catcher: yea, that is what I mean, you shouldn't… something is naffed somewhere
1092: [20:56:38] <Ryan-Toast> Has anyone set up a pay for membership through DPS before?
1093: [20:56:40] <catcher> zippy__, I don't know what that means yet, but it sounds cool :)
1094: [20:56:48] * oddnoc has joined #silverstripe
1095: [20:56:52] <catcher> But I'd trade my kingdom for a way to bind a key to cancel search
1096: [20:57:07] * an_Eskimo has joined #silverstripe
1097: [20:57:26] <catcher> specifically 'enter'.
1098: [20:58:03] <zippy__> catcher: https://dl.dropboxusercontent.com/u/1547575/LiveTemplates.png
1099: [20:58:54] <zippy__> catcher: and I believe you can setup a live template which can read the filename… so you could go. classPage<tab> and it will get the file name and then do class <Filename> extends Page {}…. class <Filename>_Controller extends Page_Controller {} (without the .php extension ofc
1100: [21:00:27] <catcher> ohhh
1101: [21:00:35] <catcher> killer!
1102: [21:01:11] <catcher> the class hierarchy graphs are pretty nasty too.
1103: [21:01:22] <catcher> And git integration seems complete.
1104: [21:01:51] <catcher> External libraries don't seem to pull in css & js, just php though
1105: [21:02:31] <zippy__> ohhhhh shiiittt...
1106: [21:03:17] <zippy__> catcher: http://pastebin.com/R3VC6Rty
1107: [21:03:44] <catcher> Thanks, how do I use it?
1108: [21:03:53] <zippy__> Open up the prefs, go to live templates, add a new template and use that as the template text, set it applicable to PHP
1109: [21:04:13] <zippy__> click the 'Edit varaibles' button and it will show $filename$ and set that to filenamewithoutextesion
1110: [21:04:43] <zippy__> catcher: https://dl.dropboxusercontent.com/u/1547575/classPage.png
1111: [21:04:54] <zippy__> now when I go classPage<tab> it does all that for me… magical
1112: [21:06:09] * zippy__ should be deploying a new site...
1113: [21:08:58] * mrzero_ has joined #silverstripe
1114: [21:09:12] * mrzero quit (Read error: Connection reset by peer)
1115: [21:09:12] * mrzero_ is now known as mrzero
1116: [21:11:15] <zippy__> catcher: magic?
1117: [21:11:33] <catcher> Almost!
1118: [21:12:29] <zippy__> now I just need a 'makecoffee' and i'll be sorted
1119: [21:12:35] <zippy__> but i'd settle for xdebug
1120: [21:12:36] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
1121: [21:12:37] <catcher> damn, gotta jet. Thanks zippy__, I'll bug you more about this next week.
1122: [21:12:42] <catcher> Happy weekend!
1123: [21:12:45] * catcher quit (Quit: Leaving)
1124: [21:12:52] <zippy__> you too
1125: [21:18:21] <Ryan-Toast> Has anyone done a pay for emembership service before?
1126: [21:18:29] <zippy__> yes
1127: [21:18:40] <Ryan-Toast> zippy__: What was your payment gateway?
1128: [21:18:45] <zippy__> PayPal
1129: [21:19:01] <Ryan-Toast> Did yiou just have a date set when the member would be locked out and charged again?
1130: [21:19:18] <zippy__> I used recurring payments and IPN notifications
1131: [21:19:31] <Zauberfisch> I did as well, but that was back in 2.4
1132: [21:19:31] <zippy__> so if the user canceled the recurring payment, or it failed then access would be removed
1133: [21:19:44] <Zauberfisch> but yeah, I also used the re accuring feature of paypal
1134: [21:20:07] <Ryan-Toast> zippy__: I’m thinking of not having recurring.
1135: [21:20:18] <Ryan-Toast> Because more work
1136: [21:20:48] <Zauberfisch> yep, same here. I think paypal POSTs the payment info each time to your end point. so paypal notifys you if a payment worked or failed
1137: [21:21:22] <zippy__> Ryan-Toast: there was another one I did for someone, that was manual payments. So what we did was set a 'expires' date, then a week before it was due a cron would send them an email, and then a couple of days before I think it was, then we did a couple of days after, and then locked the account if 7 days past expirey
1138: [21:21:39] <Zauberfisch> and you simply store that info as a payment history for each member, and if there is none for the current month, the user is logged out or only gets the free plan
1139: [21:21:43] <Ryan-Toast> zippy__: Yeah I think that’s what I’ll do.
1140: [21:21:44] * Shrike_Finland has joined #silverstripe
1141: [21:21:52] <Ryan-Toast> zippy__: Did ytou find that method took less time?
1142: [21:22:31] <zippy__> maybe by an hour or two. Once you have paypal code already for the IPN and tracking etc it's pretty easy
1143: [21:22:44] <zippy__> the other way stil lhad to get emails written and tested and things
1144: [21:22:46] <Ryan-Toast> zippy__: did you just use the paypal silverstripe module?
1145: [21:23:05] <zippy__> re-use an existing module? naa… rolled my own ;-)
1146: [21:23:11] <Ryan-Toast> :P
1147: [21:23:23] <Ryan-Toast> Thanks :)
1148: [21:26:16] * Shrike_Finland quit (Ping timeout: 260 seconds)
1149: [21:28:01] <Ryan-Toast> zippy__: Sorry, one more. did you use the REST api?
1150: [21:28:47] <zippy__> I used the IPN post backs
1151: [21:29:07] <zippy__> as you need to verify the person really did page, and you need to verify that they paid the correct amount (not $1)
1152: [21:31:10] <zippy__> Ryan-Toast: tbh, you'll want to use recurring paypal and ipn… it's much better over all and means the site owner wont have to verify everything them selves
1153: [21:31:30] <Ryan-Toast> yeah, from my quick research and talking to you that seems like the case.
1154: [21:32:57] <zippy__> there is a paypal payments module, I think it's used in swipestripe
1155: [21:34:15] <Ryan-Toast> zippy__: This one I think https://github.com/frankmullenger/silverstripe-payment-paypal
1156: [21:34:29] <zippy__> yea
1157: [21:34:45] <Ryan-Toast> Lots of “Work in progress” which is a little concerning :P
1158: [21:34:57] <zippy__> yeap, which is why I didn't use them haha
1159: [21:35:47] <zippy__> maybe need another GSOC to finish them off
1160: [21:38:47] * camfindlay has joined #silverstripe
1161: [21:38:51] <Stomach> the paypal module is borked
1162: [21:38:58] <Stomach> it doesn't work by default
1163: [21:39:14] <Stomach> at least within the swipestripe context 6 months ago
1164: [21:39:46] <Ryan-Toast> Stomach: roll my own it is then :P
1165: [21:41:49] <Stomach> Ryan-Toast, use omnipay if you want one thats already done
1166: [21:42:10] <Stomach> https://github.com/burnbright/silverstripe-omnipay
1167: [21:42:22] <Ryan-Toast> Stomach: Chur :)
1168: [21:42:36] <Stomach> oh yeah, you still wanna do some composer shiznit tomorrow?
1169: [21:43:40] <Zauberfisch> yes, silverstripe payment is pretty broken
1170: [21:43:53] <Zauberfisch> better use omnipay thing or roll your own
1171: [21:44:17] <zippy__> Stomach: is that related to https://github.com/omnipay/omnipay ?
1172: [21:44:23] <Zauberfisch> zippy__: yes
1173: [21:44:25] * scpi quit (Quit: scpi)
1174: [21:44:31] <Ryan-Toast> Stomach: Oh yeah, forgot about that. My girlfriend is getting on the piss tonight, so depends how bad her hangover is tomorrow :P
1175: [21:45:13] <Zauberfisch> zippy__: omnipay is (from what I understand) a php wide effort on building a good and consistent wrapper around pretty much any payment gateway that you can think of
1176: [21:45:31] <Ryan-Toast> Zauberfisch: It looks pretty swish
1177: [21:45:39] <Zauberfisch> and the silverstripe omnipay module is just a wrapper around omnipay to make it work out of the box with silverstripe
1178: [21:45:43] <Zauberfisch> swish?
1179: [21:45:47] <Ryan-Toast> Swish
1180: [21:45:53] <Zauberfisch> Swish?
1181: [21:46:04] <Ryan-Toast> adjectiveBRITISHinformal
1182: [21:46:05] <Ryan-Toast> 1.
1183: [21:46:05] <Ryan-Toast> impressively smart and fashionable.
1184: [21:46:09] <Zauberfisch> ah. didn't know that word existed
1185: [21:46:14] <Ryan-Toast> :)
1186: [21:46:15] <Zauberfisch> just looked it up
1187: [21:47:02] <Zauberfisch> haven't used it yet. but I wish I did. because getting silverstripe payment to work was a pain in the arse
1188: [21:47:48] <Ryan-Toast> Zauberfisch: Will report back with ease of use.
1189: [21:49:24] <Zauberfisch> Ryan-Toast: while you are at it, perhaps you could also refactor swipestripe to use omnipay :P
1190: [21:49:36] <Ryan-Toast> Zauberfisch: Yeah sure, I have a spare 20 minutes.
1191: [21:51:41] * Shrike_Finland has joined #silverstripe
1192: [21:52:46] <Ryan-Toast> Stomach: what do? Please provide a version constraint for the burnbright/silverstripe-omnipay requirement:
1193: [21:52:48] * irogue_ has joined #silverstripe
1194: [21:53:00] <irogue_> guten morgen
1195: [21:53:05] <zippy__> irogue: hi
1196: [21:53:07] <Ryan-Toast> 'allo
1197: [21:54:02] <Ryan-Toast> Stomach: I just wrote dev-master
1198: [21:54:50] <irogue_> WHOA THERE
1199: [21:54:56] <Ryan-Toast> http://i.imgur.com/xhfWSxg.jpg
1200: [21:54:57] <irogue_> using master in composer
1201: [21:55:00] <irogue_> BAD DOG
1202: [21:55:06] <Ryan-Toast> I DON’T KNOW WHAT I’M DOING
1203: [21:55:13] <irogue_> :P
1204: [21:55:17] <zippy__> fuck, thats a good tshirt right there
1205: [21:56:11] <irogue_> Ryan-Toast: if you have to use dev-master, I'd strongly suggest adding the SHA to the composer.json
1206: [21:56:22] <irogue_> so that if someone breaks master in future composer won't update to a broken state
1207: [21:56:25] <Ryan-Toast> irogue_: I don’t know what do.
1208: [21:56:46] <Ryan-Toast> I just typed composer require burnbright/silverstripe-omnipay into my console and hoped for the best
1209: [21:56:47] <zippy__> isn't really any good tags there..
1210: [21:57:07] <Stomach> irogue_, there is no stable tag for the repo
1211: [21:57:13] <irogue_> BAD BURNBRIGHT
1212: [21:57:17] <Stomach> so maybe dont use it actually Ryan-Toast
1213: [21:57:19] <Stomach> :P
1214: [21:57:27] <Ryan-Toast> :/
1215: [21:57:47] <Ryan-Toast> I get a The .git directory is missing from /home/_RESEARCH/payments/vendor/composer
1216: [21:57:48] <Ryan-Toast> /installers, see http://getcomposer.org/commit-deps for more information
1217: [21:58:00] * azureknight has joined #silverstripe
1218: [21:58:13] <zippy__> psst.. just download the zip…….
1219: [21:58:20] <zippy__> ah it does have some deps eh
1220: [21:58:23] <irogue_> it's passing build right now, so with a locked SHA it should be fine to use dev-master
1221: [21:58:25] <Ryan-Toast> The install proces says composer is the only way
1222: [21:58:32] <zippy__> mm deps
1223: [21:58:38] <oddnoc> vendor/ should be in your .gitignore
1224: [21:58:55] <irogue_> yeah
1225: [21:58:58] <irogue_> as that link tells you ;)
1226: [21:58:59] <oddnoc> I ignore everything that composer installs. Simplifies my life
1227: [21:59:05] <irogue_> +1
1228: [21:59:08] <Stomach> +2
1229: [21:59:15] <Ryan-Toast> k, will try that now.
1230: [21:59:27] <Stomach> slows down my deployment, but whatever
1231: [22:01:40] <Ryan-Toast> Stoimach: I still get that runtime exception.
1232: [22:02:10] <Stomach> what runtime exception
1233: [22:02:12] <oddnoc> You probably have to delete & git rm -rf the stuff that you committed, then repeat the composer install
1234: [22:02:19] * Shrike_Finland quit (Ping timeout: 252 seconds)
1235: [22:02:38] <oddnoc> Once it’s all out of your git repository, it will be less of a pain.
1236: [22:02:42] <Ryan-Toast> There’s no git repository though ><
1237: [22:02:51] <oddnoc> ah
1238: [22:03:01] <Stomach> there are git repos when you download a master branch via composer
1239: [22:03:41] <Ryan-Toast> Stomach: I can’t query the git status though, since it’s not a repo
1240: [22:03:54] <Stomach> just delete the vendor folder :P
1241: [22:04:15] <Ryan-Toast> Ah, right
1242: [22:04:22] <Ryan-Toast> and add the git ignore?
1243: [22:04:43] <Stomach> nah, you should just be able to delete the vendor folder
1244: [22:04:53] <Stomach> if you dont have git then gitignore is useless
1245: [22:06:01] <Ryan-Toast> The requested package burnbright/silverstripe-omnipay could not be found in any version, there may be a typo in the package name.
1246: [22:06:11] <Ryan-Toast> rabbl;e. rabble.
1247: [22:08:38] <Ryan-Toast> Is it because I haven’t installed omnipay yet? Or is composer supposed to install that too.
1248: [22:09:38] <Stomach> "burnbright/silverstripe-omnipay": "dev-master"
1249: [22:09:39] <Stomach> ?
1250: [22:09:46] <Ryan-Toast> ye
1251: [22:09:54] <Stomach> odd.
1252: [22:10:17] <Ryan-Toast> Stomach: Is it supposed to install omni pay for me, or do I need to do that first?
1253: [22:10:31] <Stomach> nah it should install it for you, its one of the dependencies
1254: [22:10:53] * camfindlay quit (Quit: camfindlay)
1255: [22:11:04] * gelignite quit (Quit: http://bit.ly/nkczDT)
1256: [22:11:21] * camfindlay has joined #silverstripe
1257: [22:12:03] <oddnoc> Ryan-Toast: It installs for me. Do you have self.version in your root composer.json for cms & framework? If so, change them to 3.1.*
1258: [22:12:33] <oddnoc> Also, I did this: composer require burnbright/silverstripe-omnipay:*
1259: [22:12:48] <Ryan-Toast> oddnoc: My composer is empty :P
1260: [22:12:50] <Ryan-Toast> :( **
1261: [22:12:55] <Ryan-Toast> composer.json
1262: [22:13:01] <Ryan-Toast> http://www.gfycat.com/CornyLiquidCuckoo
1263: [22:13:53] <oddnoc> did you start out with composer create-project … or did you download an installer?
1264: [22:14:06] <Ryan-Toast> downloaded installer
1265: [22:14:47] <oddnoc> Throw this in there: http://pastie.org/private/0xuq9gzdzwbzk9i3slnamw
1266: [22:15:42] <Ryan-Toast> FUCKING READONLY MAC DKLFGJBNDFWKHJ;GBDFSKLJBGDSFGKLJN
1267: [22:16:22] <Ryan-Toast> rm -f that shiiiit
1268: [22:16:50] <Ryan-Toast> oddnoc: yay, working :)
1269: [22:16:55] <Ryan-Toast> ty
1270: [22:16:56] <oddnoc> yay!
1271: [22:17:36] <zippy__> Ryan-Toast: talk to the mac nicely…. give it strokes
1272: [22:17:47] <zippy__> damn when are the new macbooks coming out god DAMN
1273: [22:18:06] <Ryan-Toast> zippy__: I have a brand new whgatever desktop mac is called, and it makes me rage so hard.
1274: [22:18:14] <Ryan-Toast> We could be a duo in a sitcom, I swear.
1275: [22:20:22] <Ryan-Toast> I bought a hoofdie for snowboarding, and it almost touches the ground when my gf wears it. It’s hilarious
1276: [22:20:27] <Ryan-Toast> hoodie**
1277: [22:21:00] <zippy__> I do like my mac, I just hope they can continue to inovate and push for someting new, it's been a bit stagnant the past year or so… makes ya wonder just how much Jobs did there and whats going to happen next….
1278: [22:21:04] <irogue_> zippy__: which new macbooks? new pro?
1279: [22:21:12] <zippy__> irogue_: in a month or two
1280: [22:21:30] <irogue_> i've got the 2014 macbook air
1281: [22:22:12] <zippy__> I think there is going to be a 12" air, maybe with retina… but I got a 2012 air and think I want to go for a quad pro with a retina, but will just wait and see september brings
1282: [22:22:51] <zippy__> I think the only reason going for a faster chip is because dev/build and flush takes so god damn long :)
1283: [22:24:09] <zippy__> 13 seconds to dev build this 3.1.5 site… 14 seconds to flush all… ..
1284: [22:24:23] <Ryan-Toast> zippy__: Damn, son.
1285: [22:24:41] <zippy__> I know, I find my self tabing oopen reddit all the time
1286: [22:24:45] <zippy__> dev/build -> reddit
1287: [22:24:48] <zippy__> 5 mins later, ahh shit
1288: [22:24:49] <zippy__> so i
1289: [22:24:55] <zippy__> so i've blocked that now...
1290: [22:25:41] <Stomach> i just goto github now and hope that somethings happened in my feed
1291: [22:25:46] <Stomach> blocked all the other sites :\
1292: [22:30:12] <Zauberfisch> Stomach: I can star some repos :D
1293: [22:30:30] <Stomach> Zauberfisch, hahaha you have no idea how much joy that brings me in times of boredom
1294: [22:37:44] <Zauberfisch> Stomach: hit refresh
1295: [22:41:20] <Stomach> Zauberfisch, wooooooo
1296: [22:47:52] <Ryan-Toast> Zauberfisch: uYou can star my repos :)
1297: [22:52:48] <Zauberfisch> Ryan-Toast: link
1298: [22:53:13] <Ryan-Toast> https://github.com/Rhym :)
1299: [22:53:31] * Shrike_Finland has joined #silverstripe
1300: [22:54:16] <Zauberfisch> meh
1301: [22:54:31] <Zauberfisch> Ryan-Toast: I am afraid I don't see anything worth staring :P
1302: [22:54:37] <Ryan-Toast> Ohhhhh snap
1303: [22:54:44] <Zauberfisch> >:P
1304: [22:54:50] <Ryan-Toast> pretty much just ss_boilerplate
1305: [22:55:03] <Zauberfisch> Ryan-Toast: I have my own boilerplate, and the snippets I have either in my head, or in my IDE
1306: [22:55:14] <Ryan-Toast> Link to your boilerplate?
1307: [22:55:22] <Zauberfisch> http://silverstripe-boilerplate.com/
1308: [22:55:44] <Ryan-Toast> Demo link?
1309: [22:56:13] <Zauberfisch> no demo
1310: [22:56:16] <Zauberfisch> but not worth it
1311: [22:56:44] <Zauberfisch> its a collection of sane defaults and best practices, tools like polyfills and some snippets
1312: [22:56:54] <Ryan-Toast> Yeah having a look through it.
1313: [22:57:18] <Zauberfisch> it makes very little assumtions or definitions towards style
1314: [22:57:36] <Zauberfisch> as I currently only do custom built stuff, this is just the bare minimum style
1315: [22:57:38] <Ryan-Toast> Mine is so I can make sites in a day.
1316: [22:57:42] * Shrike_Finland quit (Ping timeout: 245 seconds)
1317: [22:58:08] <zippy__> any other users of phpstorm here?
1318: [22:58:12] <Zauberfisch> zippy__: yes
1319: [22:58:15] <Stomach> zippy__, yes
1320: [22:58:50] <Zauberfisch> Ryan-Toast: mine is designed to provide good basics / a better silverstripe-installer so to speak
1321: [22:58:58] <Ryan-Toast> Zauberfisch: coolio :)
1322: [22:59:04] <Zauberfisch> but not a theme
1323: [22:59:07] <zippy__> Zauberfisch Stomach https://dl.dropboxusercontent.com/u/1547575/classPage.png http://pastebin.com/R3VC6Rty
1324: [22:59:10] <Zauberfisch> if you want a theme, you have to install that too
1325: [22:59:27] <azureknight> Zauberfisch that's very nice.
1326: [23:00:03] * joelpittet has joined #silverstripe
1327: [23:00:11] * Phlunk3 has joined #silverstripe
1328: [23:00:18] * antmas has joined #silverstripe
1329: [23:00:19] <Stomach> yeah Zauberfisch the default install we have set up is quite opinionated and provides the bare bones stuff like you do - as well as a javascript/css and font build system
1330: [23:00:27] <antmas> morning all!
1331: [23:00:54] <Zauberfisch> but I do plan in including susy. susy is a sass lib/framework (but it doesn't do anything by default, so it is more a library than a framework, just like compass)
1332: [23:01:06] <antmas> how do I display the value of a dropdown selection rather than the index?
1333: [23:01:41] <Zauberfisch> zippy__: was that a question?
1334: [23:01:52] <simon_w> antmas, you need to keep a map of value to what gets displayed
1335: [23:02:00] <Zauberfisch> antmas: more details
1336: [23:02:13] <zippy__> Zauberfisch: nop, a nice live tempalte that lets you type classPage and hit tab, and it will throw in the two class blocks you normally write in a xxxPage.php file
1337: [23:02:19] <Zauberfisch> antmas: where? cms or frontend? javascript live or with php after submission? ...
1338: [23:02:34] <Zauberfisch> zippy__: thanks. but already have that :P
1339: [23:02:38] <zippy__> ...
1340: [23:02:41] <zippy__> !
1341: [23:02:48] <zippy__> but I just did it this morning!
1342: [23:03:29] <azureknight> zippy__ like, private static $db = array(); ?
1343: [23:04:01] <zippy__> azureknight: you can also do that as well, but this one is a bit more fancy where it looks at the actual file name your in, and does class filename extends Page
1344: [23:04:02] <Stomach> I don't have any bindings set up like that, because I get really annoyed when its different and I forget and just use the default
1345: [23:04:04] <Zauberfisch> Ryan-Toast: http://demo.ryanpotter.co.nz/quote/
1346: [23:04:06] <Zauberfisch> oh noez
1347: [23:04:17] <azureknight> zippy__ that is fancy.
1348: [23:04:26] <Ryan-Toast> Zauberfisch: Yeah took it down because I didn’t build any stripping into the inputs.
1349: [23:04:38] <Ryan-Toast> so didn’t want to get hacked
1350: [23:04:44] <Ryan-Toast> will add securioty at some point
1351: [23:04:47] <zippy__> Ryan-Toast: nice styling on the 404 page
1352: [23:04:56] <Ryan-Toast> cheers :)
1353: [23:05:07] <Zauberfisch> haha
1354: [23:05:13] <Ryan-Toast> My normal 404 http://ryanpotter.co.nz/dfgdfg
1355: [23:05:43] <Stomach> My 404: http://stevie.co.nz/asdads
1356: [23:06:06] <Ryan-Toast> Zauberfisch: Quote builder looks like this: http://i.imgur.com/leBtFGs.png
1357: [23:06:08] <antmas> Zauberfisch: so, after submission, displaying the value they selected from various dropdowns in the email template and the exported .csv
1358: [23:06:52] <Stomach> antmas, you have the original source of the dropdown right? so you should be able to do $source[$value] ?
1359: [23:07:30] <antmas> Stomach: how is this called in the template?
1360: [23:07:48] <Stomach> well you'
1361: [23:07:54] <Stomach> wait I take it back
1362: [23:08:01] <Stomach> Zauberfisch might have a nicer solution :P
1363: [23:08:11] <Zauberfisch> antmas: well, as simon_w pointed out, you have to keep the map
1364: [23:08:12] * antmas rubs palms
1365: [23:08:34] <antmas> Zauberfisch: simon_w cool - I'll check the docs
1366: [23:08:41] <Zauberfisch> antmas: post your code
1367: [23:09:09] <Zauberfisch> and you have to do it in php, not going to work in template (unless they are relations)
1368: [23:09:12] <zippy__> I wonder, with an a tag you have a, a:active, a:hover, a:visted … can you just do a* to apply the style to all states...
1369: [23:09:26] <Zauberfisch> zippy__: no
1370: [23:09:33] <Zauberfisch> not that I am aware of
1371: [23:09:51] <azureknight> zippy__ I'm with Zauberfisch . I've never seen that done.
1372: [23:09:57] <Zauberfisch> also, might be work noting that * does not include pseudo elements.
1373: [23:10:12] <antmas> Zauberfisch: it's not overly complicated what I'm doing, just a simple form with a dropdownfield, stored in a DO and the $data is passed to an email template
1374: [23:10:17] <azureknight> if you do a {color: #000} that will apply to all the states automatically.
1375: [23:10:18] <Zauberfisch> so * does NOT change things form *:before and *:after
1376: [23:10:46] <Zauberfisch> zippy__: btw, for classes, I use File templates
1377: [23:11:02] <Zauberfisch> zippy__: so I can say "New" > "SilverStripe Page"
1378: [23:11:04] <zippy__> Zauberfisch: oh yea, file templates could be good
1379: [23:11:05] <Stomach> antmas, before you pass $data to the template, do $data->FieldIWantChanged = $mapping[$data->FieldIWantChanged]
1380: [23:11:09] <Ryan-Toast> Readonly files are so fucking annoying in OSX
1381: [23:11:25] <Zauberfisch> antmas: yeah, what Stomach said
1382: [23:11:37] <azureknight> Ryan-Toast hopefully you weren't foolish like me and downloaded Yosemite.
1383: [23:11:55] <Ryan-Toast> azureknight: Nope just looking at the make this writable - but doesn’t actually work button
1384: [23:12:04] <Zauberfisch> Ryan-Toast: deisgn looks fancy. but do the PDFs look fancy too? I saw FPDF ther, which kind of scared me
1385: [23:12:28] <Stomach> https://github.com/heyday/silverstripe-wkhtml ftw
1386: [23:12:38] <Ryan-Toast> Zauberfisch: they look okay. I made it to leanr some FPDF :P
1387: [23:12:41] <Ryan-Toast> was a nightmare
1388: [23:12:42] <Zauberfisch> yeah. wkhtml2* is the way to go
1389: [23:12:48] <Zauberfisch> Ryan-Toast: yeah
1390: [23:12:52] <antmas> Stomach: Zauberfisch ah nice, thanks duders
1391: [23:12:55] <Zauberfisch> Ryan-Toast: thats why sane people don't use it
1392: [23:13:01] <Ryan-Toast> Zauberfisch: Ohh that looks nicve.
1393: [23:13:20] <Ryan-Toast> Will add that to my list of shit to do.
1394: [23:13:22] * Colin[pi] has joined #silverstripe
1395: [23:13:24] <Zauberfisch> wkhtml2pdf uses the chrome PDF generation part
1396: [23:13:40] <Ryan-Toast> Interesting
1397: [23:13:46] <Zauberfisch> Ryan-Toast: so that means HTML5+CSS3+JS => pdf or png
1398: [23:13:49] <Ryan-Toast> I never have to convert shit to pdfs, but it’s a nice to know.
1399: [23:14:09] <zippy__> wkhtml2pdf is nice
1400: [23:14:35] <Zauberfisch> indeed. pretty awesome
1401: [23:14:57] <Zauberfisch> its not php though. but yeah, there is no good pdf renderer for php
1402: [23:15:23] <Zauberfisch> but if your webhoster allows you to execute binaries, you can still use it
1403: [23:16:01] <Zauberfisch> so it does work on affordable hostings just as well even though its not php
1404: [23:16:56] <simon_w> Zauberfisch, Chrome doesn't use WebKit, so would be rather hard for something that uses WebKit to use a Chrome feature :p
1405: [23:17:18] <antmas> Stomach: Zauberfisch do I need to do this for each dropdownfield I want changed?
1406: [23:18:41] <Stomach> yes
1407: [23:19:12] <irogue_> simon_w has a point
1408: [23:19:19] <irogue_> although so far Blink has barely diverged from WebKit
1409: [23:21:07] <Zauberfisch> simon_w: ...
1410: [23:21:08] <simon_w> Also, it never used a Chrome feature
1411: [23:21:08] <simon_w> If anything, Chrome used a WebKit feature
1412: [23:21:13] <Zauberfisch> well, former chrome
1413: [23:21:43] <Zauberfisch> but true, it technically is a feature of webkit/blink, not chrome
1414: [23:21:57] <Zauberfisch> antmas: yes.
1415: [23:22:24] <antmas> Stomach: and.... is the FieldIWantChanged require a '$'?
1416: [23:22:26] <Colin[pi]> morning all
1417: [23:22:56] <Zauberfisch> anyway, I'm going home now
1418: [23:23:00] <Stomach> later buddy
1419: [23:23:00] <Colin[pi]> HAI ANTMAS ^.^
1420: [23:23:06] <Zauberfisch> bye
1421: [23:23:12] <Colin[pi]> cya Zauberfisch
1422: [23:23:19] <Stomach> antmas, nope
1423: [23:23:25] <Stomach> antmas, post the code somewhere :P
1424: [23:24:40] <Colin[pi]> wkhtml2pdf (or wkhtmltox now) is frickin awesome
1425: [23:26:07] * camfindlay quit (Quit: camfindlay)
1426: [23:26:14] <Stomach> i love that you can run javascript on pages and then render it out
1427: [23:26:15] <antmas> Stomach: :P
1428: [23:26:16] <Stomach> so fucking useful
1429: [23:26:17] <antmas> Stomach: http://www.sspaste.com/paste/show/53aca8415a8a9
1430: [23:26:48] <Stomach> antmas, that looks correct
1431: [23:26:57] <Stomach> except there is no mapping object
1432: [23:26:58] <Stomach> :(
1433: [23:27:10] <antmas> :<
1434: [23:27:45] <antmas> Stomach: how do I create one?
1435: [23:27:51] <Stomach> I assume mapping is probably like singleton('Grant')->dbObject('FIELDIWANTCHANGED')->enumValues();
1436: [23:27:58] * zippy__ quit (Quit: zippy__)
1437: [23:28:00] <Stomach> the same as what you pass into your dropdown
1438: [23:28:50] <Stomach> or $form->getField('FIELDIWANTCHANGED')->source()
1439: [23:28:55] <Stomach> although not sure if thats a function or works
1440: [23:29:12] * camfindlay has joined #silverstripe
1441: [23:29:26] <antmas> hmmm
1442: [23:30:46] <antmas> Stomach: my field just has a $name, $title, $source = array and a default $value
1443: [23:35:37] <Stomach> so the mapping is the array
1444: [23:43:34] <Ryan-Toast> Stomach: added this to my requirmetns, it downloads apparently but there’s nothing in the omnipay folder https://github.com/omnipay/paypal
1445: [23:43:39] <Ryan-Toast> for that repo.
1446: [23:43:46] <Ryan-Toast> normal omnipay is in there.
1447: [23:43:51] <Ryan-Toast> but no PayPal folder.
1448: [23:44:12] <antmas> anyone dealt with KiwiPay before?
1449: [23:45:16] <Stomach> Ryan-Toast, they should be installing into the vendor directory yeah?
1450: [23:45:38] <Ryan-Toast> Stomach: Yeah it is
1451: [23:45:44] * SightUnseen has joined #silverstripe
1452: [23:46:01] <Stomach> did you do composer install or composer update ?
1453: [23:46:19] <Stomach> it should be in vendor/paypal I think from the naming
1454: [23:46:27] <Ryan-Toast> Installed SS via composer, then did composer require tec
1455: [23:46:42] <Stomach> whats your composer.json file look like now?
1456: [23:47:07] <Ryan-Toast> http://pastebin.com/g00QcFuy
1457: [23:47:25] * Konection quit (Quit: Page closed)
1458: [23:48:08] <Stomach> ill try
1459: [23:48:23] <Ryan-Toast> Stomach: It adds it to the vendor folde.r
1460: [23:48:29] <Stomach> yes, thats correct
1461: [23:48:40] <Stomach> thats what should happen
1462: [23:48:41] <Ryan-Toast> But it doubles up the omnipay folders.
1463: [23:48:46] <Ryan-Toast> one in the root, and one in the vendor
1464: [23:49:26] <Stomach> one is silverstripe omnipay, one is actual omnipay?
1465: [23:49:50] <Stomach> the one in the root is the silverstripe module
1466: [23:50:00] <Stomach> the one is vendors is the provider omnipay/omnipay
1467: [23:50:01] <Ryan-Toast> Oh, right.
1468: [23:50:04] <Ryan-Toast> Such confuse.
1469: [23:50:13] <Ryan-Toast> Perhaps I should just stick to front end.
1470: [23:52:58] <Colin[pi]> Ryan-Toast: I thought that about 15 years ago
1471: [23:53:07] <Ryan-Toast> Colin[pi]: :P
1472: [23:53:23] <Ryan-Toast> Colin[pi]: It won’t stop me, but I do feel constantly out of my depth.
1473: [23:53:35] * Shrike_Finland has joined #silverstripe
1474: [23:53:37] <antmas> Ryan-Toast: yeah we all do except simon_w
1475: [23:53:39] <Colin[pi]> Ryan-Toast: So do I, 15 years later... FOREVER-A-NOOB
1476: [23:54:53] <Ryan-Toast> Almost burgerfuel time
1477: [23:55:16] <antmas> so userforms
1478: [23:55:31] <antmas> any way to alter the subject field to be a bit more dynamic?
1479: [23:57:10] <antmas> neerrrrrrrr mind, found it
1480: [23:57:49] * Shrike_Finland quit (Ping timeout: 252 seconds)
1481: [23:59:35] <antmas> http://www.silverstripe.org/all-other-modules/show/15694 what this guy is suggesting here, this would obviously alter the subject field for all userforms right?

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