#silverstripe IRC Log

IRC log for 6 May 2014

All timestamps are in UTC.

1: [00:00:28] <simon_w> $name = strtolower($name); if (isset($map[$name])) require_once $map[$name];
2: [00:00:58] <simon_w> No file system checks, no having to figure out how to turn $name into a path
3: [00:01:13] <spronk0> name into a path is easy
4: [00:01:14] <simon_w> The no file system checks is the main one
5: [00:01:20] <spronk0> don't need filesystem checks either really..
6: [00:01:28] <simon_w> You kinda do
7: [00:01:32] <spronk0> yes and no
8: [00:01:46] <simon_w> you don't want a class_exists('Class\No\Exists') to fatal
9: [00:01:53] <webbower> Doesn’t Composer build classmaps?
10: [00:02:11] <simon_w> webbower, it can, but they're apparently not static
11: [00:02:35] <webbower> Anyway, despite PSR-0 being an imperfect spec, it seemed to do well in “uniting the clans”
12: [00:02:45] <spronk0> simon_w: considering that filesystem check is a development-time concern moreso than a runtime concern, there's no real difference between the classmap approach and an autoloader with no filesystem checks
13: [00:02:51] <simon_w> (so it's array('name' => $base . '/remainder/name.php')
14: [00:03:26] <simon_w> spronk0, so you remove all if (class_exists()) guards in production?
15: [00:04:14] <spronk0> not quite
16: [00:04:19] <spronk0> you remove the filesystem checks in production
17: [00:04:36] <simon_w> And then your class_exist guards fatal
18: [00:04:47] <spronk0> yes, but it would fail with a broken classmap in the same way
19: [00:04:59] <simon_w> No it wouldn't
20: [00:05:03] <simon_w> Notice the isset()?
21: [00:05:13] * DesignerX has joined #silverstripe
22: [00:05:14] <simon_w> Well, broken
23: [00:05:37] <simon_w> It'll fail in development with a broken class map too
24: [00:05:44] <simon_w> Hence the broken
25: [00:06:06] * travis-ci has joined #silverstripe
26: [00:06:06] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2470 (3.1 - bbaf233 : Hamish Friedlander): The build passed.
27: [00:06:06] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/bbd7bba11f91...bbaf23331d79
28: [00:06:06] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24495927
29: [00:06:06] * travis-ci has left #silverstripe
30: [00:06:08] <simon_w> For a name -> path convertor to not be broken, it needs the file system checks
31: [00:07:00] <spronk0> the classmap approach can still fail the require_once part, which is the main thing that needs to be guarded against?
32: [00:08:43] <simon_w> Sure, but then your class map is broken, not the autoloader
33: [00:09:03] <simon_w> If your class map's wrong, then your autoloader isn't going to work anyway
34: [00:09:18] <spronk0> it might do for a portion of your codebase
35: [00:09:36] <spronk0> i remember someone doing a good benchmark showing that autoloading wasn't significantly slower, and was faster in cases when you use a smaller portion of your classes
36: [00:10:18] <spronk0> https://athos.blogs.balabit.com/2011/03/php-autoload-performance/
37: [00:10:25] <spronk0> wasn't it, but..
38: [00:11:50] <spronk0> http://mwop.net/blog/245-Autoloading-Benchmarks.html this was it
39: [00:14:24] <simon_w> Oh look, there's two sources for class maps being noticeably faster :p
40: [00:14:37] <spronk0> from 3 years ago :)
41: [00:15:26] <simon_w> And stick HHVM on there and a classmap gets faster again :p
42: [00:16:32] <Stomach> how easy is it to deploy to HHVM
43: [00:16:39] <Stomach> like, a production server
44: [00:16:49] <simon_w> If you're already using FastCGI? Insanely
45: [00:17:11] <simon_w> It's a drop in replacement for php-fpm
46: [00:17:20] <Stomach> oh okay, easy easy then
47: [00:17:47] <simon_w> Unless you're on CentOS/RHEL
48: [00:17:53] <simon_w> But then you're on CentOS
49: [00:18:45] <Stomach> all of the betterbrief vagrant boxes are on CentOS
50: [00:18:57] <Stomach> its very annoying, because I'd like to not have to write my own vagrant file
51: [00:20:00] * jenniferaslan quit (Quit: jenniferaslan has left the room)
52: [00:20:06] * travis-ci has joined #silverstripe
53: [00:20:06] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2471 (master - 93cd339 : Hamish Friedlander): The build passed.
54: [00:20:06] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e9c3ff933f8e...93cd339ff029
55: [00:20:06] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24496014
56: [00:20:06] * travis-ci has left #silverstripe
57: [00:22:20] <spronk0> why it not work with centos?
58: [00:23:40] <simon_w> It works with CentOS, there's just no official packages for it
59: [00:23:49] <spronk0> ah
60: [00:26:22] * UncleCheese__ quit (Quit: UncleCheese__)
61: [00:27:25] <Colin[pi]> so firefox 29 removed the add-on bar... bravo firefox, bravo
62: [00:27:30] * Colin[pi] slow claps sarcastically
63: [00:27:38] <spronk0> hahahaa
64: [00:28:22] <Colin[pi]> now all of my addons take up half the top toolbar
65: [00:28:28] <Colin[pi]> clever thinking, firefox
66: [00:28:46] <simon_w> It's like IE 5 all over again!
67: [00:28:48] <Colin[pi]> there's an add-on which brings it back apparently
68: [00:28:56] <Colin[pi]> wtf were they thinking?
69: [00:28:57] <webbower> Not to mention its tab bat kinda looks like Chrome’s, now
70: [00:29:08] <Colin[pi]> total copy of chrome
71: [00:29:14] <simon_w> Also, Colin[pi], how do I get rid of this horrible outside light making it hard to see my screen?
72: [00:29:25] <Colin[pi]> simon_w: what, the sun?
73: [00:29:29] <simon_w> Yeah, that thing
74: [00:29:40] <webbower> accursed day star
75: [00:29:47] <Colin[pi]> simon_w: blockout blinds?
76: [00:29:59] <simon_w> Don't have any
77: [00:30:02] <simon_w> So cruel!
78: [00:30:10] <Colin[pi]> simon_w: magnetmart
79: [00:30:16] <simon_w> Why does Canberra have to have so much sun?
80: [00:30:19] <simon_w> It's just wrong
81: [00:30:54] <Colin[pi]> simon_w: it has like the least of any city here ;P
82: [00:31:07] <simon_w> Colin[pi], STILL TOO MUCH
83: [00:31:24] <spronk0> heh
84: [00:31:43] <spronk0> you don't have one of those uber reflective glass macs now do you, simon_w?
85: [00:32:07] <simon_w> spronk0, I've got an antiglare screen, but it's not glare that's the problem
86: [00:32:23] <simon_w> Screen's being washed out
87: [00:32:35] <spronk0> heh
88: [00:32:36] <Colin[pi]> simon_w: close the frickin curtain?
89: [00:32:42] <simon_w> Don't got curtains!
90: [00:32:47] <spronk0> if you had a glass screen, your eyes would be getting washed out
91: [00:32:54] <spronk0> ... turn around?
92: [00:33:10] <simon_w> No space :(
93: [00:33:15] <simon_w> This is a rather full house
94: [00:33:49] <spronk0> dangh
95: [00:33:54] <simon_w> Maybe I should just move back to bed
96: [00:33:56] <spronk0> makeshift monitor hood?
97: [00:34:04] <spronk0> black cardboard, fold twice, duct tape to screen?
98: [00:34:06] <Colin[pi]> simon_w: this is the correct decision
99: [00:34:33] <simon_w> and there's already a power brick in there!
100: [00:37:09] * travis-ci has joined #silverstripe
101: [00:37:10] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#874 (3.1 - 435a5ee : Hamish Friedlander): The build passed.
102: [00:37:10] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/1f4d9e449b17...435a5ee8430d
103: [00:37:10] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/24496110
104: [00:37:10] * travis-ci has left #silverstripe
105: [00:37:19] <simon_w> Aha, there's no sun at this end of the lounge!
106: [00:37:34] <simon_w> No makeshift desk either, but I'll survive
107: [00:38:31] <simon_w> Also, this dog is stupid
108: [00:40:33] <spronk0> ouah! ouah!
109: [00:41:32] <ss23> it's gunna hit yaaaaa
110: [00:43:37] <Colin[pi]> can I add additional fields to be searched as part of SS' built-in search engine?
111: [00:43:46] <simon_w> Colin[pi], no
112: [00:43:50] <Colin[pi]> weak
113: [00:44:04] <simon_w> The built-in search engine is a piece of shit that needs to die
114: [00:44:05] <Ryan-Toast> Colin[pi]: you can use a filter if you’re searching specific biz
115: [00:44:27] <Colin[pi]> I need to match against a particular field on products, i.e. model no
116: [00:45:28] <Ryan-Toast> Colin[pi]: I just did something like this, may help you: http://www.sspaste.com/paste/show/53682d71d2b52
117: [00:46:11] <Colin[pi]> Ryan-Toast: thanks will have a look
118: [00:46:42] * UncleCheese_ quit (Quit: UncleCheese_)
119: [00:55:48] <Ryan-Toast> Colin[pi]: Get it sorted?
120: [00:56:16] <Colin[pi]> Ryan-Toast: ehhh what I might do is just make use of the metadata fields
121: [01:02:29] <Ryan-Toast> Colin[pi]: Fair enough :)
122: [01:02:48] <Colin[pi]> Ryan-Toast: simple workaround and saves fucking with core stuff
123: [01:02:56] <simon_w> Colin[pi], can you bring me some caffeine? Caitlin's not responding to her IRC :p
124: [01:03:13] <Ryan-Toast> Colin[pi]: You don’t have to fuck with the core?
125: [01:03:17] <Colin[pi]> simon_w: they have these great new devices you might have heard of called "mobile phones"
126: [01:03:23] <Colin[pi]> Ryan-Toast: 2.4 site
127: [01:03:32] <simon_w> Colin[pi], yeah, and hers doesn't work
128: [01:03:32] <Ryan-Toast> Colin[pi]: Awwwwww, shiiiitteeeet
129: [01:03:43] <simon_w> Can't be bothered getting off my chair
130: [01:04:05] <Ryan-Toast> simon_w: is Catlin your wife?
131: [01:04:10] <simon_w> Ryan-Toast, not yet
132: [01:04:13] <Ryan-Toast> waifu**
133: [01:04:31] <Ryan-Toast> Oh simon-sama
134: [01:04:37] <Colin[pi]> she must have a lot of patience ;)
135: [01:04:59] <simon_w> Well, she has had to put up with Australian internet :p
136: [01:05:04] <Ryan-Toast> Dear god.
137: [01:05:14] <Colin[pi]> you see? it conditioned her to be a great missus for you
138: [01:05:22] <Colin[pi]> you should be thanking the shit australian internet
139: [01:05:43] <Ryan-Toast> Use this one simple trick yto get engaged. ISP’s ahate him.
140: [01:06:04] <simon_w> Colin[pi], but then I'd have to thank Tony Abbott
141: [01:06:31] <Colin[pi]> simon_w: woah woah woah.. let's not go crazy
142: [01:13:50] * webbower quit (Quit: webbower)
143: [01:27:20] * webbower has joined #silverstripe
144: [01:27:52] * webbower quit (Client Quit)
145: [01:37:41] <Ryan-Toast> Just got a call from the bank: “Hey, do you want a $7,000 credit card?”
146: [01:37:50] <Ryan-Toast> No thanks, man.
147: [01:38:57] <ss23> lol
148: [01:40:24] <Colin[pi]> Ryan-Toast: please spend more money you don't have
149: [01:40:34] <Colin[pi]> Ryan-Toast: it's free money, after all
150: [01:40:37] <Colin[pi]> wink wink
151: [01:41:19] <Ryan-Toast> Colin[pi]: “Would you like it?” No thanks, I’m fine. “Would you like us to top up your personal loan?”. No. Go away.
152: [01:41:22] <simon_w> Ryan-Toast, but you could use it to pay off half of my credit card! :p
153: [01:41:37] <Ryan-Toast> simon_w: Jesus, why would you do that?
154: [01:41:38] <Colin[pi]> fuck banks with a long, pointy stick
155: [01:42:02] <Ryan-Toast> I already have a persoanl loan, my kiwisaver, my insurance house and vehicle with them WHAT MORE DO YOU WANT FROM ME?
156: [01:42:10] <simon_w> Ryan-Toast, turns out frequent international flights, a new phone and moving country costs a bit
157: [01:42:17] <simon_w> Oh, and an engagement ring
158: [01:42:24] <Ryan-Toast> simon_w: Ouch
159: [01:42:28] <Colin[pi]> i got a $14 currency conversion fee the other day, oh oh so difficult to convert currency, so justified, much value, wow
160: [01:42:43] <Ryan-Toast> Colin[pi]: rofl
161: [01:45:38] <ss23> :(
162: [01:45:43] <Ryan-Toast> “I can’t find where to change the email address in the contact page”
163: [01:45:46] <Ryan-Toast> wat
164: [01:45:52] <Ryan-Toast> literally: http://i.imgur.com/znWILkd.jpg
165: [01:45:54] <ss23> 15 minutes debugging before realising I did "new $email", bugt not $email->send
166: [01:46:01] <Ryan-Toast> DO YOU KNOW HOW TO READ?
167: [01:46:05] <ss23> Ryan-Toast: XD
168: [01:46:22] <Colin[pi]> Ryan-Toast: >_<
169: [01:46:32] <Ryan-Toast> ss23: haha,. well at least you found the issue :)
170: [01:46:39] <ss23> Yeah, and 15 is better tahn 50!
171: [01:47:19] <Ryan-Toast> I have been going on a setRightLable spree
172: [01:47:30] <Ryan-Toast> setRightTitle**
173: [01:47:45] <Ryan-Toast> ADDITIONAL INFORMATION ALL THE THINGS!
174: [01:55:20] <simon_w> My foot's all tingly!
175: [01:55:45] <Ryan-Toast> Can you have a TabSet in siteconfig settings?
176: [01:55:52] <simon_w> Yes
177: [01:55:56] <Colin[pi]> Ryan-Toast: yiss
178: [01:56:14] <Ryan-Toast> Tried one, and doesn’t seem to be showing.
179: [01:56:39] <Colin[pi]> Ryan-Toast: did you ask it nicely?
180: [01:56:42] <ss23> simon_w: CANCER
181: [01:56:49] <Ryan-Toast> Colin[pi]: I called it’s name
182: [01:56:57] <Colin[pi]> Ryan-Toast: mm should have worked
183: [02:03:43] <Ryan-Toast> Colin[pi]: This should work, right? http://www.sspaste.com/paste/show/53683fcad2782
184: [02:04:14] <Colin[pi]> Ryan-Toast: you know I seem to remember I had to do something a little different with siteconfig, one sec
185: [02:05:45] * micmania1 has joined #silverstripe
186: [02:06:14] <Colin[pi]> Ryan-Toast: copied this out of my google config decorator: http://www.sspaste.com/paste/show/53684052c80aa
187: [02:06:29] <Colin[pi]> (this was from 2.4, but should be pretty similar)
188: [02:08:55] <Ryan-Toast> Colin[pi]: Chjeers, that works. Interesting interaction with siteconfig there.
189: [02:09:19] <Colin[pi]> Ryan-Toast: yeah I think I remember back in the day that it didn't work quite the same as the regular CMS tabs
190: [02:09:29] <Colin[pi]> this syntax works, the other not, for some reason
191: [02:10:30] * micmania1 quit (Ping timeout: 276 seconds)
192: [02:30:05] <Ryan-Toast> Colin[pi]” ah, that’s a better user experience :) http://i.imgur.com/UM27g7r.jpg
193: [02:31:42] <Colin[pi]> Ryan-Toast: much nicer, I have further nested tab sets as well
194: [02:31:59] <Ryan-Toast> Colin[pi]: I have no need for 3rd level tabs at this stage.
195: [02:33:37] <Colin[pi]> dem tabs: http://i.imgur.com/azQi4GJ.png
196: [02:35:24] <Ryan-Toast> Colin[pi]: wow, such levels
197: [02:35:45] <Ryan-Toast> y u no 3.1?
198: [02:36:05] <Colin[pi]> Ryan-Toast: because of extensive existing stuff I don't have time to port :(
199: [02:36:13] <Colin[pi]> Ryan-Toast: but I really need to
200: [02:36:21] <Ryan-Toast> ;) https://github.com/Rhym/ss_boilerplate
201: [02:36:43] <Colin[pi]> Ryan-Toast: yeah your boilerplate is pretty sweet
202: [02:36:56] <Ryan-Toast> just don’t touch the newsletter thing for now.
203: [02:37:09] <Colin[pi]> here be dragons?
204: [02:37:10] <Ryan-Toast> It fully does not work.
205: [02:37:19] <Ryan-Toast> It’s close though
206: [02:37:23] <Colin[pi]> like most newsletters ;)
207: [02:37:53] <Ryan-Toast> I just need to hook up the creat campaign, and update functions.
208: [02:39:40] <antmas> Ryan-Toast: I am excitebike for this function :)
209: [02:41:12] <Ryan-Toast> Need to figure out how to stop Security from loading my css in the cms.
210: [02:41:42] <Colin[pi]> Ryan-Toast: Requirements::block() ?
211: [02:43:01] <Ryan-Toast> Colin[pi]: Will things be included by their position in config.yml?
212: [02:43:12] <Ryan-Toast> need to figure which init() I can block the CSS with
213: [02:43:22] <Colin[pi]> Ryan-Toast: prolly are, yeah
214: [02:48:04] * UncleCheese has joined #silverstripe
215: [02:51:03] <Ryan-Toast> Colin[pi]: Do you know if init() in a DataExtension works?
216: [02:51:14] <UncleCheese> Ryan-Toast: no
217: [02:51:15] <Ryan-Toast> or should I be calling a __constract
218: [02:51:17] <UncleCheese> use augmentInit()
219: [02:51:19] <Colin[pi]> Ryan-Toast: I think init() just works on controllers
220: [02:51:39] <Ryan-Toast> Unclecheese: Do I need to call any parent biz?
221: [02:51:50] <UncleCheese> no, because it's an extension
222: [02:52:01] <Ryan-Toast> UncleCheese: Cool, cheers :)
223: [02:53:46] <Zauberfisch> Ryan-Toast: if its a DataExtension on anything that has a ContentController, than there is 'contentcontrollerInit'
224: [02:54:09] <UncleCheese> oooh!
225: [02:54:10] <Zauberfisch> (all subclasses of SiteTree have a controller that extends ContentController)
226: [02:54:41] <Zauberfisch> ContentController->init() does: $this->dataRecord->extend('contentcontrollerInit', $this);
227: [02:55:01] <Zauberfisch> which means in a yourSiteTreeExtesion
228: [02:55:03] <Zauberfisch> you can do:
229: [02:55:18] <Zauberfisch> public function contentcontrollerInit($controller) {}
230: [02:56:10] <Ryan-Toast> Zauberfisch: So I could do this in a SiteConfig extension? http://www.sspaste.com/paste/show/53684c0dd8b0b
231: [02:56:37] <Zauberfisch> but note, that this only runs per controller. so it will only run for the current page. not for other pages that you fetch with Page::get()
232: [02:56:51] <Zauberfisch> Ryan-Toast: no
233: [02:56:59] <Zauberfisch> SiteConfig is not a SiteTree
234: [02:57:22] <Ryan-Toast> Zauberfisch: What could I use to block a css file in a SiteConfig Extension?
235: [02:57:40] <Zauberfisch> nothing that I am aware of
236: [02:58:01] <Ryan-Toast> sadface.jpg
237: [02:58:08] <Zauberfisch> I would create an additional extension hooked to the Controller and block it there
238: [02:58:38] <Ryan-Toast> Zauberfisch: I have a security extension that adds css to stle the login page etc, but it gets added to the cms after a couple of mintes. I’m assuming when it calls the stay logged in function or whatever.
239: [02:59:54] * simon__w has joined #silverstripe
240: [03:00:22] * simon_w quit (Disconnected by services)
241: [03:00:24] * simon__w is now known as simon_w
242: [03:02:59] <Zauberfisch> Ryan-Toast: that should be pretty straight forward
243: [03:03:20] <Zauberfisch> something along those lines: http://paste2.org/ANpPxnJw
244: [03:03:49] <Zauberfisch> actually, you would probably want to require a css file, not block it
245: [03:03:59] <Zauberfisch> http://paste2.org/L1ssnhxN
246: [03:04:38] <Ryan-Toast> Zauberfisch: I already do that, I need to sto it loading in the cms :P
247: [03:04:55] <Ryan-Toast> stop**
248: [03:04:56] <Zauberfisch> ah, thought you meant at the login page
249: [03:05:02] <Zauberfisch> wait
250: [03:05:13] <Zauberfisch> but that code should not include the css in the cms
251: [03:05:19] <Ryan-Toast> nah, the Security class must run in the cms every now and again, and it includes the css.
252: [03:05:20] <Zauberfisch> it should only include it where Security is used
253: [03:05:28] <Zauberfisch> ah, I see your point
254: [03:06:05] <Zauberfisch> so you only want it at login, right?
255: [03:06:11] <Ryan-Toast> Which is annoying, because the login/forgot password etc doesn’t use the age class.
256: [03:06:14] <Ryan-Toast> page**
257: [03:06:30] <Zauberfisch> well, they do use the page class, just in a weird way
258: [03:06:38] <Zauberfisch> actually, not page, just Page_Controller
259: [03:07:10] <Ryan-Toast> Yeah, I can get around it by using the themedCSS in the template, but I like using the Requirements::css
260: [03:07:37] <simon_w> Ryan-Toast, if ($this->ID < 0) { // In security } in your Page_Controller::init()
261: [03:07:46] <Zauberfisch> you can do a nasty trick in in Page_Controller::init
262: [03:07:51] <Zauberfisch> what simon_w said ^
263: [03:08:25] <Zauberfisch> also, there is onBeforeSecurityLogin in extensions to security
264: [03:08:31] <Zauberfisch> but there is no hook for lost password
265: [03:08:41] <Zauberfisch> another way is to use onAfterInit and check the action
266: [03:09:09] <Ryan-Toast> simon_w: Undefined property: SecurityExtension::$ID
267: [03:09:25] <Zauberfisch> he is talking about Page_Controller
268: [03:09:26] <simon_w> Ryan-Toast, because you're not in Page_Controller
269: [03:10:09] <Ryan-Toast> simon_w: Ah, so include it in the page, and check if ID is less than 0?
270: [03:10:15] <simon_w> Yes
271: [03:10:17] * cloph_away has joined #silverstripe
272: [03:10:35] * cloph quit (Ping timeout: 250 seconds)
273: [03:13:48] <Ryan-Toast> simon_w: which you can’t do in a page extension, I’m guessing.
274: [03:14:16] <simon_w> Ryan-Toast, well, Security explicitly uses a Page_Controller
275: [03:15:05] <Ryan-Toast> simon_w: I mean I can’t do the ID check in a Extension of ContentController
276: [03:15:11] <Zauberfisch> and does not call onAfterInit or onBeforeInit because it does not go through handleRequest nor does it call it manually
277: [03:15:26] <Zauberfisch> Ryan-Toast: not really. no
278: [03:15:27] <simon_w> Ryan-Toast, you could
279: [03:15:33] <Zauberfisch> you could?
280: [03:16:01] <Ryan-Toast> simon_w: I thought you could only use onAfter/onBeforeInit in an extension of ContentController?
281: [03:16:26] <Zauberfisch> Ryan-Toast: wrong. onAfter/BeforeInit exists on any RequestHandler object
282: [03:16:37] <Zauberfisch> which is any sort of Controller
283: [03:16:55] <Ryan-Toast> Zauberfisch: but both aren’t used by Security?
284: [03:17:06] <Zauberfisch> however, it gets called by handleRequest. and Secruitys Page_Controller hack does not go through handleRequest
285: [03:17:12] <Zauberfisch> but Security itself does use it
286: [03:17:15] <simon_w> Ryan-Toast, you can use contentcontrollerInit on Page with the same check
287: [03:17:32] <Zauberfisch> so you can onAfterInit on Security, but not on Page_Controller that gets created by Security
288: [03:17:50] <Zauberfisch> good point. you could abuse SiteTree->contentcontrollerInit for it
289: [03:17:59] <Zauberfisch> but I think it has to be SiteTree simon_w
290: [03:18:15] <Ryan-Toast> Yeah, doesn’t seem to work.
291: [03:18:23] <Zauberfisch> no, nvm. it has a dataRecord Page
292: [03:18:26] <simon_w> Zauberfisch, nope. Page_Controller::create($tmpPage); is a Page object
293: [03:18:28] <Zauberfisch> should work
294: [03:18:47] <simon_w> Ryan-Toast, probably because you were doing $this->ID rather than $this->owner->ID?
295: [03:19:12] <Zauberfisch> still, I believe that hooking into Security->onAfterInit is a nicer solution
296: [03:19:17] <Zauberfisch> and a more robust one
297: [03:19:19] <simon_w> Yes
298: [03:19:22] <Ryan-Toast> simon_w: no, I did owner.
299: [03:19:53] <Ryan-Toast> simon_w: http://www.sspaste.com/paste/show/536851aa2bc7f
300: [03:20:11] <Ryan-Toast> Zauberfisch: Yes, but then it loads in the cm,s
301: [03:20:13] <Ryan-Toast> cms**
302: [03:20:21] <simon_w> Ryan-Toast, contentcontrollerInit only exists on the Page class
303: [03:20:48] <Ryan-Toast> simon_w: So I can’t do it from an Extension?
304: [03:21:15] <Zauberfisch> Ryan-Toast: no, it would not if you filter for the action
305: [03:21:47] * wilsonstaff has joined #silverstripe
306: [03:22:15] * wilsonstaff quit (Client Quit)
307: [03:22:32] <Ryan-Toast> Zauberfisch: So I can only do it by editing the Page.php in mysite? Damn. Need to do it from my module.
308: [03:22:43] <Zauberfisch> no
309: [03:23:01] <Zauberfisch> it should be possible from a Extension attached to Page
310: [03:23:20] <Zauberfisch> but again, I still think Seucirty->onAfterInit() is better :P
311: [03:23:52] <Ryan-Toast> Zauberfisch: That’s what I was doing, but it gets loaded into the cms.
312: [03:24:20] <Zauberfisch> 03:21 < Zauberfisch> Ryan-Toast: no, it would not if you filter for the action
313: [03:24:53] <Ryan-Toast> Zauberfisch: I have no idea which action is called.
314: [03:28:39] <Zauberfisch> xdebug ... y u no work
315: [03:29:16] <Zauberfisch> bloody hell ...
316: [03:30:41] <Zauberfisch> Ryan-Toast: the actions are pretty obvious: login and lostpassword
317: [03:30:57] <Ryan-Toast> Oh, those actions. Right :P
318: [03:30:58] <Zauberfisch> you should have access to the request with $this->owner->getRequest()
319: [03:31:04] * travis-ci has joined #silverstripe
320: [03:31:04] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2476 (3.1 - 54cbb53 : Hamish Friedlander): The build passed.
321: [03:31:04] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/bbaf23331d79...54cbb5326799
322: [03:31:04] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24503549
323: [03:31:04] * travis-ci has left #silverstripe
324: [03:31:19] <Zauberfisch> if I am not mistaken, the request should be able to tell you which action it is
325: [03:31:27] <Zauberfisch> and then you can decide if you want to include the css or not
326: [03:31:50] <Zauberfisch> (eg only include it on login and lostpassword)
327: [03:33:33] <Zauberfisch> ahhhhh. damn it. I am a moron. just had the wrong path mapping for xdebug
328: [03:33:34] <spronk0> fucking js promises libraries... :@
329: [03:33:38] <spronk0> old when.js had no catch()
330: [03:33:41] <spronk0> amqplib uses old when.js
331: [03:33:49] <spronk0> so..
332: [03:33:54] <spronk0> wrap the old when in a new when
333: [03:33:55] <spronk0> YO DAWG
334: [03:34:00] <spronk0> PROMICEPTION
335: [03:34:20] <ss23> I am going to be happer in 5 years time when no one talks about 'promises'
336: [03:34:25] <spronk0> lol
337: [03:34:31] <spronk0> ... and calls them futures?
338: [03:34:37] <Zauberfisch> haha :D
339: [03:35:52] <ss23> We'll have blog posts
340: [03:36:00] <ss23> "The broken promise of promises"
341: [03:36:02] <ss23> and things like that
342: [03:36:34] <spronk0> the biggest issue with them is exception hiding
343: [03:39:40] <Ryan-Toast> Zauberfisch: This seems to work, is that what you meant? http://www.sspaste.com/paste/show/5368563f7299e
344: [03:39:56] <Zauberfisch> Ryan-Toast: yes. exactly
345: [03:40:04] <Ryan-Toast> coolio, cheers man :)
346: [03:40:05] <spronk0> for a dynamic language javascript is pretty.... lacking in power.
347: [03:40:10] <Ryan-Toast> you too, simon_w
348: [03:40:42] <Ryan-Toast> spronk0: only by your i.m.a.g.i.n.a.t.i.o.n
349: [03:40:52] <spronk0> for example, how the fuck to emulate __get() or __call()
350: [03:41:48] <spronk0> (the answer is you can't, unless you're using firefox)
351: [03:42:09] <spronk0> which also means that it's impossible to wrap an API without redefining all its methods
352: [03:44:55] <Zauberfisch> but look at the bright side. its none blocking and thats all that matters. or so are the node people telling me
353: [03:45:07] <spronk0> yeah..
354: [03:45:21] <spronk0> then you get those fucktards that say "javascript can do anything because its so powerful"
355: [03:45:22] <spronk0> and
356: [03:45:30] <spronk0> "prototypal inheritance in js can do any kind of OO"
357: [03:45:32] <spronk0> it's just bullshit
358: [03:45:44] <spronk0> you can emulate prototypal inheritance with classic inheritance, but not the other way around
359: [03:45:59] * travis-ci has joined #silverstripe
360: [03:45:59] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2478 (3.1 - 149b4e4 : Hamish Friedlander): The build passed.
361: [03:45:59] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/54cbb5326799...149b4e435675
362: [03:45:59] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24503784
363: [03:45:59] * travis-ci has left #silverstripe
364: [04:04:57] * travis-ci has joined #silverstripe
365: [04:04:58] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2479 (3.1 - 50e1ed2 : Hamish Friedlander): The build passed.
366: [04:04:58] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/149b4e435675...50e1ed2f7248
367: [04:04:58] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24503957
368: [04:04:58] * travis-ci has left #silverstripe
369: [04:09:35] <ss23> http://news.php.net/php.internals/73888
370: [04:09:36] <ss23> aw snap
371: [04:09:52] <ss23> "On some apps we show better results than other PHP implementations." hehehe
372: [04:10:51] * abitran has joined #silverstripe
373: [04:13:18] <simon_w> When one of those other implementations is written in Java, that's not overly hard :p
374: [04:14:03] <Ryan-Toast> is partial caching disabled while in dev mode?
375: [04:14:57] <simon_w> No
376: [04:15:54] <Ryan-Toast> Can it be disabled in the config?
377: [04:16:36] <simon_w> You could probably give it a really small TTL
378: [04:17:03] <simon_w> I don't have a SS site open, so bug someone who does :p
379: [04:17:26] <Ryan-Toast> simon_w: Lol, kay :)
380: [04:24:23] <antmas> why would there be no option to restrict headers and footers to the first page?
381: [04:24:25] <antmas> ffffffffffffffffffffff
382: [04:24:36] <Ryan-Toast> antmas: wat?
383: [04:25:02] <Colin[pi]> antmas: what u talkin bout antmas?
384: [04:25:11] <antmas> oh
385: [04:25:18] <antmas> lol, was meant for skype
386: [04:26:44] <Colin[pi]> antmas: lol
387: [04:27:13] <ss23> Ryan-Toast: Don't think there's a proper config option, but you can easily make the cache always invalid ;)
388: [04:27:29] <ss23> store it with the key foo, retrive it with 'foo'.'invalid lol'
389: [04:27:49] <Ryan-Toast> ss23: haha, cheers.
390: [04:28:48] <ss23> Can't remmeber what file it's in, but it's easy to find if you grep for it rightly etc :O
391: [04:29:23] * antmas quit (Quit: Page closed)
392: [04:29:28] <ss23> simon_w: iYeah, but obviously they were going for a "Fuck you HHVM!"
393: [04:29:29] <ss23> :P
394: [04:34:10] <simon_w> With gains that small? It's kinda hilarious :p
395: [04:42:07] <ss23> I never said they succeeded!
396: [04:43:00] <simon_w> Yeah, but it's why the Java implementation came to mind :p
397: [04:43:10] <simon_w> Maybe they managed to be faster than the PHP implementation!
398: [04:44:29] * travis-ci has joined #silverstripe
399: [04:44:30] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#877 (3.1 - f2c2ffa : Hamish Friedlander): The build passed.
400: [04:44:30] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/435a5ee8430d...f2c2ffabbcd9
401: [04:44:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/24505807
402: [04:44:30] * travis-ci has left #silverstripe
403: [04:50:05] <Colin[pi]> Java? fast?
404: [05:01:29] * nickmolhoek quit (Quit: nickmolhoek)
405: [05:02:16] * simon_w|air has joined #silverstripe
406: [05:20:22] * Ryan-Toast quit (Quit: Ryan-Toast)
407: [05:20:35] <spronk0> these days, Colin[pi], yes rather :P
408: [05:20:55] * SightUnseen has joined #silverstripe
409: [05:20:59] * SightUnseen has left #silverstripe
410: [05:21:36] <Colin[pi]> spronk0: mm I'm probably recalling the bad ol' dats
411: [05:21:38] <Colin[pi]> *days also
412: [05:22:04] <spronk0> mmlol
413: [05:22:06] <spronk0> i remember those
414: [05:22:09] <spronk0> jvm is fast as these days
415: [05:23:00] <Colin[pi]> spronk0: feh, should write all new projects in assembly
416: [05:24:04] <simon_w> Colin[pi], hand-written assembler tends to be rather slow :p
417: [05:24:20] <Colin[pi]> simon_w: what is this madness? :o
418: [05:24:41] <simon_w> A compiler is much better at writing and optimising machine code than you are
419: [05:24:48] <Colin[pi]> nu uh
420: [05:25:02] <ss23> Depends tbh
421: [05:25:19] <spronk0> yeah
422: [05:25:22] <spronk0> its true
423: [05:25:39] <spronk0> you've gotta be an asm genius to write fast assembly vs what a compiler can do
424: [05:25:54] <ss23> Or just have requirements the compilier doesn't know about!
425: [05:26:02] <spronk0> yeah
426: [05:26:15] <spronk0> ugh
427: [05:26:19] <spronk0> wow mocha.js, what the fuck.
428: [05:27:20] <Colin[pi]> Rollercoaster Tycoon would have to be the greatest assembly achievement :D
429: [05:27:32] <ss23> :D
430: [05:27:34] * violetina has joined #silverstripe
431: [05:27:36] <ss23> demo's are
432: [05:27:37] <ss23> :P
433: [05:27:47] <Colin[pi]> seems unfathomable to write something like that in assembly
434: [05:27:56] <ss23> Brick by boring brick, Colin[pi]
435: [05:28:03] <ss23> Thats what you get when you let your developers write code
436: [05:28:04] <Colin[pi]> ss23: mm I guess
437: [05:28:23] <ss23> Though to me... seems like a lot of misery business
438: [05:29:10] <ss23> And if they even had testing then, would've been constantly in the "We are broken" state
439: [05:29:16] <Colin[pi]> heh
440: [05:29:21] <ss23> p.s. you're lame if you don't or do understand what I'm doing here
441: [05:30:01] <Colin[pi]> UE4 was amazing to me also, with Tim Sweeney writing it by himself for 5 years
442: [05:30:09] <Colin[pi]> guy is a genius
443: [05:30:11] <spronk0> crazy motherfuckers
444: [05:30:17] <spronk0> i bet they are completely unmaintainable
445: [05:30:27] <spronk0> the amount of wasted time that goes into game development is absurd
446: [05:30:42] <ss23> lol
447: [05:30:50] <ss23> UNITY3D FOR LYFE RITe
448: [05:31:05] <spronk0> lul
449: [05:31:06] <spronk0> ugh
450: [05:31:15] <spronk0> almost ready to drop mocha for nodeunit
451: [05:31:18] * Shrike_Finland has joined #silverstripe
452: [05:33:36] <Colin[pi]> spronk0: dafuq is mocha.js?
453: [05:33:45] <Colin[pi]> oh test framework
454: [05:34:35] <spronk0> again, just like with promises
455: [05:34:40] <spronk0> js has about 5 different test frameworks
456: [05:34:44] <spronk0> and no consensus
457: [05:35:22] <ss23> lol
458: [05:36:34] <Colin[pi]> for a language with the popularity it has, JS still seems so wild west in many ways :\
459: [05:37:03] <Stomach> too many splinters
460: [05:37:12] <Stomach> its ridiculous
461: [05:37:13] <ss23> It's only popular with hipsters
462: [05:37:26] <Stomach> I have a beard, so I can do whatever I like
463: [05:37:30] <Colin[pi]> ss23: lol, you're right though
464: [05:37:32] <Colin[pi]> ;D
465: [05:37:32] * UncleCheese quit (Quit: UncleCheese)
466: [05:38:42] <spronk0> i've been knee deep in node for 2 months now
467: [05:39:01] <spronk0> and i'm close to being convinced that there is *no* good javascript
468: [05:39:21] <Colin[pi]> spronk0: jquery?
469: [05:39:26] <ss23> Colin[pi]: ...
470: [05:39:29] <Colin[pi]> ;D
471: [05:39:30] <ss23> Have you SEEN the jQuery code?
472: [05:39:30] <ss23> :O
473: [05:39:35] <simon_w|air> Entwine!
474: [05:39:38] <ss23> simon_w|air: XD
475: [05:39:42] <Colin[pi]> well ok, not good... maybe popular is the better measurement ;P
476: [05:39:52] <spronk0> jquery is pretty crappy
477: [05:40:14] <spronk0> i'm talking js for writing actual real apps
478: [05:40:22] <Colin[pi]> simon_w|air: entwine should be added to the swear words list
479: [05:40:24] <spronk0> the language itself is so fucked
480: [05:40:37] <simon_w|air> Ooh, good idea and I'm even on the right laptop
481: [05:40:48] <Colin[pi]> spronk0: well that's the thing, it never was intended for that :\
482: [05:40:55] <Colin[pi]> spronk0: it's a glue language
483: [05:40:59] <spronk0> yeah, but people keep pushing for it
484: [05:41:11] <spronk0> and then you get stuff that compiles down to js
485: [05:41:11] <spronk0> :|
486: [05:41:12] <Colin[pi]> spronk0: those people have shit for brains
487: [05:41:22] <spronk0> and then folks like mozilla who are all "NAH WE'LL NEVER SUPPORT DART"
488: [05:41:51] <spronk0> the sooner something like dart or NaCl actually gets mainstream the better
489: [05:41:59] <ss23> NaCL shut down, right?
490: [05:42:04] <spronk0> orly?
491: [05:42:15] <ss23> Hmm
492: [05:42:16] * ss23 checks
493: [05:42:30] <Colin[pi]> I thought they did too
494: [05:42:35] <spronk0> :(
495: [05:42:45] <Colin[pi]> remember seeing something about that
496: [05:43:06] <spronk0> people rat on PHP, but I would contend that PHP >=5.3 is *vastly* superior to js as a language
497: [05:43:13] <ss23> Hmm
498: [05:43:14] <ss23> Maybe not
499: [05:43:49] <Colin[pi]> spronk0: I think it's PHP legacy that gives it most of it's shittiness
500: [05:43:57] * jordanmk has joined #silverstripe
501: [05:44:03] <Colin[pi]> spronk0: plus you can write good php apps, and shitty ones.. same for JS
502: [05:44:07] <Colin[pi]> same for anything really
503: [05:44:19] <ss23> I've nver seen a shitty LISP app
504: [05:44:26] <spronk0> there are some pretty ugly edges to php (nonstandard configs with shit like memory_limit, errors vs exceptions), and the massive global "namespace" of functions, but move away from that and it's easily better than javascript
505: [05:44:32] <spronk0> that's because nobody uses lisp, ss23 ;)
506: [05:44:39] <ss23> :D
507: [05:44:41] <ss23> I never gave a reason!
508: [05:44:44] <spronk0> alternatively, that's because you can't see any code inside all those fucking semicolons
509: [05:44:54] <spronk0> err, parens
510: [05:44:57] <ss23> lol
511: [05:44:59] <ss23> ;;;;;;
512: [05:45:07] <Colin[pi]> spronk0: yeah there are still ways (MANY ways) to write really, really shitty stuff in PHP.. but an experienced dev shouldn't have an excuse
513: [05:45:38] <spronk0> i'm still not decided either way around fnprog vs imperative
514: [05:45:39] <spronk0> but..
515: [05:45:52] <ss23> hmm
516: [05:45:59] <spronk0> i'm 100% sure that "pure" fnprog is fucking ludicrous
517: [05:46:00] <ss23> 4.75 hours of work today
518: [05:46:05] <ss23> I gotta figure out a way to squeeze out more time
519: [05:46:24] <Colin[pi]> ss23: write dox
520: [05:46:33] <spronk0> and doesn't do anything to "solve" the complexity issues it says it solves
521: [05:46:48] <simon_w|air> Dammit, why am I second? http://logs.simon.geek.nz/stats.php#entwine
522: [05:46:51] <spronk0> ss23: round up
523: [05:47:02] <Colin[pi]> ahaha simon_w|air
524: [05:47:03] <ss23> lol
525: [05:47:09] <ss23> Okay managed to get 5.75 on it now
526: [05:47:43] <ss23> Don't even know how I lost my cunt.
527: [05:47:44] <ss23> :/
528: [05:47:49] <ss23> Swear pyro hacked some shit for that, yo
529: [05:47:52] * spronk0 is slowly slipping back in the stats
530: [05:47:55] <Colin[pi]> spronk0: I remember when I went to uni in the late 90's folks talking about how all programming is shitty and "it's all gonna change soon" - well guess what :D
531: [05:47:56] * spronk0 is now known as spronkey
532: [05:48:08] <spronkey> heh, yeah..
533: [05:48:24] <Colin[pi]> <+ss23> Don't even know how I lost my cunt. <-- lol
534: [05:48:25] <spronkey> fnprog folsk don't realise that most people don't want to learn lambda calculus
535: [05:48:34] <jordanmk> hey guys, i've created a widget in SS 2.4, this is the code: http://pastebin.com/XTeb6uyY
536: [05:48:44] <spronkey> they also don't realise that even *mentioning* lambdacalc puts off an entire class of people
537: [05:48:51] <Colin[pi]> spronkey: aye
538: [05:48:54] <jordanmk> i'm having a weird issue where in the CMS, those two boolean values are always checked, and when i uncheck them and then save and publish, they just become checked again
539: [05:49:00] <ss23> Anywa,y going home now
540: [05:49:02] <ss23> Can't think at work
541: [05:49:04] <ss23> bbl
542: [05:49:09] <Colin[pi]> cya d00d
543: [05:49:11] <jordanmk> it's like they're defaulting to true, and can't be set to false
544: [05:49:14] <Colin[pi]> jordanmk: it's the CheckboxField in 2.4
545: [05:49:15] <jordanmk> any ideas what could cause that? :S
546: [05:49:26] <Colin[pi]> jordanmk: CheckboxField is broken in 2.4
547: [05:49:37] <spronkey> assuming its 2.4 ?
548: [05:49:41] <jordanmk> yeah it's 2.4
549: [05:49:47] <spronkey> that'll most likely be it :)
550: [05:49:50] <Colin[pi]> I have a patched version, gimme sec
551: [05:50:08] <jordanmk> sweet
552: [05:50:53] <simon_w|air> ss23, green button? https://github.com/silverstripe/silverstripe-framework/pull/3103
553: [05:50:57] <Colin[pi]> jordanmk: do a diff on this, core hax I know, but it works: http://sspaste.com/paste/show/536874f6d25b2
554: [05:51:39] * Shrike_Finland quit (Quit: Leaving.)
555: [05:52:41] <Colin[pi]> jordanmk: the main change is in Field(), it creates a hidden field to handle the unchecked box
556: [05:56:16] <Colin[pi]> lol how many lists does Pyromanik top on the swear stats? ahaha
557: [05:56:46] * anselmdk has joined #silverstripe
558: [05:57:36] <jordanmk> Colin[pi], cheers, that seems to have fixed it :)
559: [05:57:43] <Colin[pi]> jordanmk: yay I was useful
560: [05:57:44] <Colin[pi]> :D
561: [05:58:07] <Colin[pi]> jordanmk: that was a long standing bug in SS, I really hope it was fixed in 3.x o_O
562: [05:59:55] * travis-ci has joined #silverstripe
563: [05:59:55] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2481 (3.1 - 5a69cf6 : Damian Mooyman): The build passed.
564: [05:59:55] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/50e1ed2f7248...5a69cf67ff19
565: [05:59:55] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24508553
566: [05:59:55] * travis-ci has left #silverstripe
567: [05:59:57] <jordanmk> have never had issues with checkboxes in SS 3, so i'm guessing it was
568: [06:00:11] <Colin[pi]> simon_w|air: should I just use the built-in apache/php for local dev on Mavericks?
569: [06:00:21] <simon_w|air> Colin[pi], is what I do
570: [06:00:28] <Colin[pi]> simon_w|air: any caveats?
571: [06:00:34] <simon_w|air> Well, the built-in apache. I compile my own PHP
572: [06:00:42] <simon_w|air> Um, there's no default /etc/php.ini?
573: [06:00:49] <Colin[pi]> no I created that :P
574: [06:01:16] <Colin[pi]> I'm also using homebrew, is that still what the cool kids use?
575: [06:10:34] * babak has joined #silverstripe
576: [06:10:42] * violetina quit (Read error: Connection reset by peer)
577: [06:11:06] * violetina has joined #silverstripe
578: [06:22:04] <DesignerX> hi guys, I'm loading facebook page updates into a website & need to be able to "create an image on the fly" in php . is that possible (so I can use the Image methods in template )
579: [06:22:42] <ss23> simon_w|air: I would green button the shit out of that, if I could
580: [06:24:43] <spronkey> GJUhghghg
581: [06:24:49] <spronkey> fucking people that use spaces to indent.
582: [06:25:02] <spronkey> anyone know of any editors that avoid the problem of pressing backspace 4 times to delete an "indent" ?
583: [06:41:43] * Shrike_Finland has joined #silverstripe
584: [06:44:31] * ajmitch_ quit (Ping timeout: 252 seconds)
585: [06:53:53] * ARNHOE has joined #silverstripe
586: [07:15:35] * simon_w|air quit (Quit: This computer has gone to sleep)
587: [07:19:44] * ocm has joined #silverstripe
588: [07:19:46] <ocm> howdy!
589: [07:23:32] <ocm> how do I set the locale for dates?
590: [07:23:35] <ocm> I got i18n::set_locale('nl_NL'); in config file
591: [07:23:56] <ocm> aint working :(
592: [07:25:31] * wmk has joined #silverstripe
593: [07:29:55] * ajmitch has joined #silverstripe
594: [07:36:31] * simon_w|air has joined #silverstripe
595: [07:45:54] * kerozene quit (Ping timeout: 276 seconds)
596: [07:48:39] * mystic has joined #silverstripe
597: [07:49:27] * mystic quit (Client Quit)
598: [07:50:18] * bwaah_ has joined #silverstripe
599: [07:51:45] * mystic has joined #silverstripe
600: [07:55:12] * kinglozzer has joined #silverstripe
601: [07:58:41] * willmorgan has joined #silverstripe
602: [07:59:54] <kinglozzer> sup guise
603: [08:03:28] <simon_w|air> Charlie!
604: [08:07:38] * ARNHOE_ has joined #silverstripe
605: [08:08:08] <ocm> the unicorn?
606: [08:10:28] * ARNHOE quit (Ping timeout: 258 seconds)
607: [08:10:29] <simon_w|air> Nope, the red panda
608: [08:14:10] <ocm> hm, setLocale('nl_NL') keeps returning dates in english
609: [08:14:23] <ocm> (e.g. May instead of Mei)
610: [08:14:31] <ocm> why?
611: [08:14:43] <ocm> did we adopt another language and did they forgot to tell me?
612: [08:15:04] <simon_w|air> Does date() even do locale stuff?
613: [08:15:53] <ocm> how to check?
614: [08:17:30] <simon_w|air> Looks like it doesn't
615: [08:18:24] <simon_w|air> So you'd want to use $Date.FormatI18N("%B") instead of $Date.Month
616: [08:18:44] <simon_w|air> http://nz1.php.net/manual/en/function.strftime.php has the list of things you can use
617: [08:18:46] <ocm> well I am using $Date.Format(d M Y)
618: [08:19:08] <wmk> ocm setlocale(LC_TIME, "nl_NL"); and check if the locale is installed on your machine
619: [08:19:10] <ss23> ocm: And now you have the right function to use! :D
620: [08:19:13] * thibault has joined #silverstripe
621: [08:19:16] * Shrike_Finland quit (Quit: Leaving.)
622: [08:19:23] <ocm> hurray!
623: [08:19:36] * Pyhok has joined #silverstripe
624: [08:20:04] <simon_w|air> ss23, you'd like this module I'm working on. It has https://git.simon.geek.nz/simon_w/xhp-loader as a dependancy
625: [08:20:25] <Pyhok> simon_w|air: is it an ssviewer substitute?
626: [08:20:29] <simon_w|air> Yup
627: [08:20:42] <Pyhok> so you _are_ decoupling the view layer further
628: [08:20:44] <Pyhok> nice :>
629: [08:20:50] <Pyhok> I was thinking to give that a go.
630: [08:21:06] <Pyhok> ... more because I wanted to use SS templates in another project though :P
631: [08:21:37] <Pyhok> but I stumbled when I realised it kinda loves being supplied ViewableData's
632: [08:21:56] <simon_w|air> Yeah, that way would be a lot harder
633: [08:21:56] <Pyhok> seems more like Interface ALL the things!
634: [08:22:19] <Pyhok> which requires some serious core jiggery pokery, so I didn't get far in the end.
635: [08:24:21] * Colin[pi] quit (Ping timeout: 265 seconds)
636: [08:26:18] * UncleCheese_ has joined #silverstripe
637: [08:27:11] * simon_w quit (Quit: This computer has gone to sleep)
638: [08:27:15] * micmania1 has joined #silverstripe
639: [08:36:31] * kerozene has joined #silverstripe
640: [08:37:12] <simon_w|air> This change to XHP is awesome
641: [08:37:13] <simon_w|air> https://github.com/facebook/xhp/commit/3e43ade6a86f5a1b8f1b2b6f14d9c12b111af9a9
642: [08:37:17] <wmk> damn, static publisher queue is broken in 3.1.4
643: [08:37:38] <simon_w|air> FIX IT
644: [08:39:07] <wmk> simon_w|air, pretty much this issue: https://github.com/silverstripe-labs/silverstripe-staticpublishqueue/issues/17
645: [08:40:16] <wmk> which makes me wonder if it's a bug in the framework either
646: [08:43:46] <simon_w|air> Oh right, that commit to XHP works because I'm running 5.6
647: [08:44:28] * ARNHOE has joined #silverstripe
648: [08:46:39] <Pyhok> FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT
649: [08:47:05] * ARNHOE_ quit (Ping timeout: 264 seconds)
650: [08:51:25] <simon_w|air> Pyhok, https://git.simon.geek.nz/snippets/1
651: [08:53:27] <simon_w|air> Hmm, you need to sign in for that. That's annoying.
652: [08:54:40] <simon_w|air> Pyhok, try https://git.simon.geek.nz/simon_w/xhp-loader/snippets/2
653: [08:56:11] * spronk2 has joined #silverstripe
654: [08:57:46] * qlex has joined #silverstripe
655: [09:06:57] * r3v3rb has joined #silverstripe
656: [09:07:06] <r3v3rb> morning all, so Reports :)
657: [09:08:42] <r3v3rb> I am grabbing a set of objects called AgentViews which all have one Agent assigned to them - in my report columns I want to return the Agent from each occurrence of the AgentView. I have tried 'casting' => 'Agent.AgentName' and '$this->Agent->AgentName' etc but always get a reflection error... any ideas
658: [09:11:10] <willmorgan> $this->Agent()->AgentName perhaps?
659: [09:12:32] * Sj0hn has joined #silverstripe
660: [09:12:39] <r3v3rb> willmorgan :( nope $this does not exist
661: [09:12:42] <Sj0hn> Hey Y'all
662: [09:12:53] <simon_w|air> r3v3rb, what's the reflection error?
663: [09:12:57] <willmorgan> ^
664: [09:13:27] <Pyhok> wmk: heh. Dear willr - https://github.com/torvalds/subsurface/blob/master/README#L70-L97
665: [09:13:51] <Pyhok> (re: that issue you posted about before caused by a willr commit)
666: [09:14:35] <r3v3rb> simon_w|air Uncaught ReflectionException: Class $this does not exist
667: [09:14:40] <wmk> Pyhok, ??
668: [09:14:45] <r3v3rb> so obviously I am out of contect
669: [09:14:49] <Pyhok> [09:39] <wmk> simon_w|air, pretty much this issue: https://github.com/silverstripe-labs/silverstripe-staticpublishqueue/issues/17
670: [09:14:50] <r3v3rb> context* even
671: [09:15:08] <Pyhok> wmk: which leads to: https://github.com/silverstripe/silverstripe-framework/commit/912cda9a1e4a9527c20a08e59ffcc8adb7a9257c#diff-dcae344d3072fe9767a7a6c3b45ec815
672: [09:15:15] <simon_w|air> r3v3rb, what array is this?
673: [09:15:43] <Pyhok> wmk: so we've no idea why he did what he did, only summarises the change made.
674: [09:15:54] <wmk> Pyhok, that issue isn't opened by me, i just noticed somewone else stumbled over this issue.
675: [09:16:07] <Pyhok> wmk: yeah, but it's still caused by that commit by willr
676: [09:16:13] <wmk> and i really wonder why the connection is closed...
677: [09:16:18] <Pyhok> indeed
678: [09:16:20] <Pyhok> as do I
679: [09:16:36] <Pyhok> would be nice if there was a proper explanation in the commit message wouldn't it? :P
680: [09:16:42] <simon_w|air> Well, willr's on holiday
681: [09:17:34] * jcwacky quit (Quit: jcwacky)
682: [09:17:49] <wmk> Pyhok, you're absolutely right
683: [09:18:59] <r3v3rb> simon_w|air one moment I'll pastie some code to explain better
684: [09:21:03] * Error404NotFound has joined #silverstripe
685: [09:21:20] * Shrike_Finland has joined #silverstripe
686: [09:22:07] <r3v3rb> simon_w|air http://pastie.org/private/jyekffkgglwyv00bb8zznw
687: [09:22:24] <r3v3rb> that might make a little more sense than my random blabbering
688: [09:22:59] * Pyhok shrugs
689: [09:23:14] <r3v3rb> morning Pyhok - good bank holiday weekend?
690: [09:23:52] <Pyhok> yeh, was pretty ok
691: [09:24:30] <Pyhok> good and relaxing
692: [09:24:32] <r3v3rb> micmania1 - been asked by client to create a second 'feature' image one for the 'blog roll' one for the article itself so they can be different - how would you suggest altering your module?
693: [09:24:38] <Pyhok> Took care of pressing matters
694: [09:24:44] <r3v3rb> Pyhok, good stuff
695: [09:24:45] <Pyhok> booked at ticket out of this place
696: [09:24:53] <r3v3rb> Pyhok back to NZ?
697: [09:24:59] <Pyhok> nah, Munich
698: [09:25:05] <simon_w|air> r3v3rb, you want Agent->AgentName (or perhaps with a .) as the index of the array
699: [09:25:05] <r3v3rb> work?
700: [09:25:06] <micmania1> r3v3rb: Add a DataExtension
701: [09:25:10] <Pyhok> r3v3rb: party
702: [09:25:15] <r3v3rb> partyyyyyyyyyy
703: [09:25:16] <simon_w|air> r3v3rb, shouldn't need a casting
704: [09:25:25] <r3v3rb> simon_w|air okay thanks
705: [09:25:40] <Pyhok> r3v3rb: meeting mates and milestones in munich
706: [09:26:23] <r3v3rb> simon_w|air Uncaught Exception: Object->__call(): the method 'setvalue' does not exist on 'Agent' with -> or dot notation
707: [09:26:51] <r3v3rb> micmania1 okay will take a look at extending getCMSFields and the $has_one
708: [09:26:51] <Pyhok> Bug! ?
709: [09:27:02] <r3v3rb> Pyhok Woot!
710: [09:27:13] <simon_w|air> r3v3rb, leave it as AgentName then and add a getAgentName() method to AgentView
711: [09:27:20] <r3v3rb> right
712: [09:27:27] <r3v3rb> simon_w|air lovely
713: [09:28:25] * qlex says hi
714: [09:28:52] <qlex> guys, could any1 "translate" this error when trying to add a record to grid?
715: [09:28:54] <qlex> ERROR [User Error]: FieldList::addFieldToTab() Tried to add a tab to object 'Tab' - 'Content' didn't exist.
716: [09:28:56] <qlex> ?
717: [09:29:28] <simon_w|air> qlex, you're doing a addFieldToTab('Root.Content.Main'), when you just want 'Root.Main'
718: [09:29:37] <Pyhok> ^
719: [09:29:44] <Sj0hn> How would one get the link of a class? I want to redirect a form towards a class i created (thank you page)
720: [09:30:01] <Pyhok> Classes don't have links.
721: [09:30:18] <Pyhok> Pages do, and you just call Link() on them.
722: [09:30:24] <Sj0hn> I extended the page
723: [09:30:27] <Pyhok> $page->Link()
724: [09:30:31] <r3v3rb> simon_w|air lol: return $this->Agent()->AgentName; from getAgentView() result: Uncaught ReflectionException: Class AgentName does not exist in AgentIDReport - InjectionCreator
725: [09:30:50] <simon_w|air> r3v3rb, no casting
726: [09:30:52] <r3v3rb> where getAgentName() is in AgentView class
727: [09:31:04] <Pyhok> r3v3rb: cast as varchar
728: [09:31:07] <Pyhok> or whatever.
729: [09:31:10] <simon_w|air> Just 'AgentName' => array('Title' => 'Agent Name')
730: [09:31:54] <Sj0hn> Pyhok so if i'd want the link of "ThankYoupage" its would be something like $page->Link('ThankYouPage') ?
731: [09:31:57] <r3v3rb> simon_w|air perfect - silly me!
732: [09:32:05] <r3v3rb> no point casting when I am grabbing directly
733: [09:32:06] <Pyhok> Sj0hn: no.
734: [09:32:10] <Pyhok> well
735: [09:32:15] <Pyhok> no.
736: [09:32:43] <Pyhok> $page is a page object.
737: [09:32:48] <Pyhok> your thank you page
738: [09:33:06] <Pyhok> generally I find it better to just make a thank you action though, personally
739: [09:33:16] <Pyhok> in which case $this->link('thankyou')
740: [09:33:29] <Pyhok> provided $this is a controller.
741: [09:33:48] <Sj0hn> I had that, but our client wanted to create a thank you page himselve
742: [09:34:04] <Pyhok> what a twat
743: [09:34:08] <Sj0hn> yes :p
744: [09:34:17] <Pyhok> Sj0hn: easier to just let them edit an extra content field on an existing page.
745: [09:34:19] <kinglozzer> Sj0hn: $this->redirect(ThankyouPage::get()->first()->Link()); ?
746: [09:34:35] <Sj0hn> Pyhok, i agree
747: [09:34:40] <kinglozzer> But yeah, definitely better to have it on the same page
748: [09:34:41] <kinglozzer> :P
749: [09:34:43] <Sj0hn> he's just making things complicated
750: [09:34:53] <Pyhok> $db = [ ... , 'ThankYouText' => 'HTMLText' ]
751: [09:35:09] <Sj0hn> kinglozzer i think thats what im looking for, thanks! ill test it out
752: [09:35:24] <Pyhok> Sj0hn: just give them the wysiwyg and you'll find that'll probably be fine.
753: [09:35:33] <kinglozzer> Sj0hn: Be aware though, if there's no ThankyouPage it'll cause an error
754: [09:35:45] <Pyhok> People say what they percieve, not what they actually need.
755: [09:35:51] <qlex> simon_w|air: thanx! corrected and it works ;)
756: [09:35:59] <Sj0hn> kinglozzer, yeh i think ill just make sure he cannot delete the page.
757: [09:35:59] <Pyhok> 'I want a page' often just means 'I want to edit it'
758: [09:36:39] <Sj0hn> Pyhok, no this client is really picky :p
759: [09:36:45] <Pyhok> but in any case, to make a page... $has_one = ['ThanksTwat' => 'Page' ]
760: [09:36:58] <Sj0hn> lol
761: [09:37:26] <Pyhok> then $this->redirect($this->ThanksTwat()->Link())
762: [09:37:48] <Pyhok> else die 'I fucking told you, arsehat';
763: [09:37:50] <simon_w|air> "Twat"
764: [09:37:51] <simon_w|air> So British Pyhok
765: [09:38:05] <Pyhok> yeh, you gotta blend in otherwise you get a fist to the face.
766: [09:38:27] <Pyhok> or something
767: [09:38:48] <Sj0hn> Thanks for ye help Pyhok and kinglozzer ;)
768: [09:38:57] <Pyhok> np
769: [09:39:09] <Sj0hn> ill leave out the twat part though if you dont mind
770: [09:39:17] <Pyhok> Sj0hn: they'll never see it :P
771: [09:39:28] <Pyhok> but yeh, ok. If you feel that way.
772: [09:39:31] <Sj0hn> haha
773: [09:39:49] <Pyhok> :P
774: [09:43:57] <bwaah_> hi guys i thot the DataObjectManager is suppose to work without ComplexTableField how comes in the DOM module it extends CTF
775: [09:44:02] <Pyhok> so simon_w|air, if I have a whole bunch of left joins, and then suddenly a right join, will half my results disappear?
776: [09:44:18] <Pyhok> bwaah_: no, you think wrong.
777: [09:44:47] <bwaah_> so they r suppose to work together
778: [09:44:55] <Pyhok> yes and no.
779: [09:45:18] * Error404NotFound quit (Remote host closed the connection)
780: [09:45:28] <Pyhok> domanager is intended as a replacement, but does nothing different other than alter the ui
781: [09:46:23] <r3v3rb> brilliant, report creates filter but Agent.AgentUID creates an empty filter where I know it should be full :D more fun ahead
782: [09:46:24] <bwaah_> coz my DOM is Extending and calling CTF Class which is not available in the framework
783: [09:46:41] <Pyhok> yeah because it's 100% redundant
784: [09:46:45] <Pyhok> obsolete
785: [09:46:53] <Pyhok> doesn't work and never has worked with 3.x
786: [09:46:58] <Pyhok> and never will.
787: [09:47:31] <bwaah_> so should i just remove the extension
788: [09:47:39] <Pyhok> the only reason to use domanager is if you're on a 2.4 installation.
789: [09:47:54] <Pyhok> and need something it supplies that CTF can't give you itself.
790: [09:48:00] <Pyhok> yes, you should.
791: [09:50:46] * spronkey quit (*.net *.split)
792: [09:51:34] <Pyhok> ss23: halp
793: [09:51:48] * bwaah_ quit (Ping timeout: 240 seconds)
794: [09:54:49] <Pyhok> omg ice ice baby on the radio
795: [09:54:50] <Pyhok> lulz
796: [09:57:48] <Pyhok> someone help me understand joins :<
797: [09:58:16] <Pyhok> left, left, left, left, left, left, right, inner, left, left.
798: [09:58:22] <Pyhok> unsure.
799: [10:00:21] <Pyhok> I know left will return me everything in the from
800: [10:00:34] <Pyhok> but this right business, will cut out half the lefts right?
801: [10:00:44] <Pyhok> oh you, ambiguity :<
802: [10:05:09] * bwaah_ has joined #silverstripe
803: [10:07:33] <willmorgan> simon_w|air: have you had a chance to look at this PR from last month? https://github.com/silverstripe/silverstripe-framework/pull/3018
804: [10:10:26] <Pyhok> 8pm, must be dinner time willmorgan.
805: [10:10:40] <Pyhok> afk or ignoring us in any case.
806: [10:14:45] <r3v3rb> ffs
807: [10:15:14] <r3v3rb> why does having two dropdown fields in my report fuck up the display of the first, if I go back to one the first field displays fine
808: [10:15:40] <r3v3rb> http://pastie.org/private/aouoeevypwgwvsducxzcca
809: [10:16:16] <r3v3rb> causes the agent field to display as inline-block for the entries, remove the daterange field and they become block entries
810: [10:16:34] <r3v3rb> yes the daterange entry is display with its values as block when shown
811: [10:17:10] * qlex has left #silverstripe
812: [10:19:05] <Pyhok> r3v3rb: perhaps because wrapper?
813: [10:19:22] <Pyhok> fieldgroup or something
814: [10:19:23] <Pyhok> idk
815: [10:20:00] <Pyhok> I take it they're scaffolded?
816: [10:23:26] <r3v3rb> Pyhok yes, they are
817: [10:23:49] <r3v3rb> new FieldList( new DropdownField(), new DropdownField() ) etc etc
818: [10:24:48] * bwaah_ quit (Ping timeout: 240 seconds)
819: [10:27:51] <Pyhok> r3v3rb: that's not scaffolded
820: [10:28:16] <r3v3rb> it isn't...
821: [10:28:29] <Pyhok> no, letting SS do that for you is scaffolding.
822: [10:28:32] <r3v3rb> DropdownField::creatre
823: [10:28:42] <r3v3rb> thats french by the way ;)
824: [10:28:51] <Pyhok> oh yup
825: [10:36:51] <r3v3rb> using scaffold: https://dl.dropboxusercontent.com/u/46858914/Screen%20Shot%202014-05-06%20at%2011.16.42.png
826: [10:36:59] <r3v3rb> https://dl.dropboxusercontent.com/u/46858914/Screen%20Shot%202014-05-06%20at%2011.36.06.png
827: [10:37:00] <r3v3rb> weird
828: [10:37:35] <r3v3rb> https://dl.dropboxusercontent.com/u/46858914/Screen%20Shot%202014-05-06%20at%2011.35.56.png
829: [10:39:42] <micmania1> Anybody know how long the 'review' process takes in paypal sandbox mode?
830: [10:41:03] <r3v3rb> seems its picking up ui-tab in the class for the first dropdown but not the second
831: [10:41:12] <r3v3rb> micmania1 review process?
832: [10:41:24] <r3v3rb> I setup a client and went live without any review
833: [10:41:29] <micmania1> yeah, to process a payment
834: [10:41:31] <r3v3rb> same with CardSave
835: [10:41:37] <micmania1> i'm using paypal express (oh, the irony)
836: [10:41:40] <r3v3rb> oh, to show up - should be instant
837: [10:42:06] <r3v3rb> if the payment is held for any reason it'l show up as such
838: [10:42:20] <r3v3rb> but still show in the list of received payments
839: [10:42:43] <micmania1> yeah, it shows in the list but says its under review
840: [10:42:59] <r3v3rb> arh, that can take ages
841: [10:43:11] <micmania1> yeah, its a sandbox site too!
842: [10:43:16] <micmania1> What's the point in that?!
843: [10:43:19] <r3v3rb> lol, thats wierd
844: [10:43:56] <micmania1> so i've got a warning on the error page saying the order hasn't been paid for...
845: [10:44:52] <willmorgan> micmania1: it took a week for us
846: [10:45:01] <micmania1> FML!
847: [10:45:08] <micmania1> a week in sandbox mode?
848: [10:45:11] <willmorgan> this was for a large bakery website though, that puts through thousands of pounds a day
849: [10:45:30] <r3v3rb> willmorgan that would be greggs no?
850: [10:45:34] * wmk quit (Ping timeout: 240 seconds)
851: [10:45:35] <willmorgan> perhaps
852: [10:45:36] <r3v3rb> :D
853: [10:45:41] * cloph_away is now known as cloph
854: [10:45:58] <r3v3rb> I think I saw your portfolio site once... maybe not yours though
855: [10:46:09] <willmorgan> we had our own "sales engineer" person
856: [10:46:10] <r3v3rb> but someones had greggs on it
857: [10:46:24] <micmania1> yeah, its carbon crayon you're thinking of r3v3rb
858: [10:46:30] <micmania1> formerly aab web
859: [10:46:35] <r3v3rb> micmania1 aye could be
860: [10:46:56] <r3v3rb> formerly AramWeb formerly Aram
861: [10:47:19] <r3v3rb> is he still around the SSBits site has died
862: [10:47:27] <willmorgan> they're planning on revamping it
863: [10:47:32] <r3v3rb> oh, ok
864: [10:47:33] <willmorgan> according to his talk at the London meetup a few weeks ago
865: [10:47:38] <willmorgan> it looks really nice :)
866: [10:47:44] <r3v3rb> yep, missed that, should go really
867: [10:47:54] <micmania1> I found a setting in paypal dev tools which lets you turn off reviews
868: [10:47:59] <r3v3rb> but feel inadequate
869: [10:48:58] <willmorgan> what is it that they're reviewing?
870: [10:49:20] <willmorgan> because in our instance they were reviewing our entire integration and giving suggestions for user flow improvement in some places
871: [10:49:32] <micmania1> oh, I have no idea.
872: [10:49:40] <micmania1> its a payment review, whatever that means
873: [10:51:31] <willmorgan> better to use Stripe these days IMHO :P
874: [10:54:45] <micmania1> This is the first ecommerce i've built with ss.
875: [10:54:54] <micmania1> Not a pleasant experience at all
876: [10:55:24] <willmorgan> in what way?
877: [10:56:06] <micmania1> Used SwipeStripe for the first time but i'm integrating it with an old 3.0 site
878: [10:56:16] <micmania1> first had to backport it which was pretty straight forward
879: [10:56:44] <micmania1> but couldn't get the order processing working. Customer extends Member which totally screwed up my system (already had Member data)
880: [10:57:14] <micmania1> I've rewritten Customer as a DataExtension
881: [10:57:16] <willmorgan> ah yeah
882: [10:57:20] <willmorgan> that's the best way to do it
883: [10:57:23] <micmania1> but then had to go through and change all the code
884: [10:57:35] <willmorgan> we're also doing a checkout site here at BB
885: [10:57:50] <willmorgan> with stripe and some other offline payment integrations
886: [10:58:01] <micmania1> I had DI changing Member out originally for Customer and forgot to remove it. Spent about 20 minutes trying to figure out where Customer was coming from haha
887: [10:58:01] <willmorgan> I've ended up segmenting the various member extensions
888: [10:58:11] <micmania1> you using swipestripe?
889: [10:58:13] <willmorgan> nope
890: [10:58:18] <micmania1> custom?
891: [10:58:27] <willmorgan> yeah
892: [10:58:41] <micmania1> Swipestripe is a good base, but needs a lot of work
893: [10:58:43] <willmorgan> we're building a custom CMS for it too
894: [10:58:48] <r3v3rb> micmania1 is swipe any good?
895: [10:58:57] <r3v3rb> answer above :)
896: [10:59:01] <micmania1> r3v3rb: for a very simple new site, yes.
897: [10:59:23] <micmania1> willmorgan: what's your cms built on?
898: [10:59:28] <willmorgan> silverstripe
899: [10:59:32] <willmorgan> but we're doing away with LeftAndMain
900: [10:59:39] <Pyhok> willmorgan: 'stripe' ?
901: [10:59:42] <r3v3rb> willmorgan thats interesting
902: [10:59:45] <Pyhok> also, when is next london meetup?
903: [10:59:50] <willmorgan> any sort of ecommerce solution that's shoehorned in to a content based CMS platform is going to be... interesting to use
904: [11:00:00] <r3v3rb> willmorgan true
905: [11:00:06] <willmorgan> so yeah, redoing that
906: [11:00:09] <micmania1> yeah, agreed.
907: [11:00:15] <Pyhok> well, left and main isn't really the issue there, but yeh.
908: [11:00:21] <Pyhok> of course.
909: [11:00:35] <willmorgan> would be good to eventually release a few submodules from this project to the community
910: [11:00:47] <willmorgan> I've written an audit logger, observer system etc
911: [11:00:55] <willmorgan> anyway brb, gonna grab lunch
912: [11:01:04] <micmania1> I started with this: https://twitter.com/micmania1/status/398154906122481664/photo/1
913: [11:01:10] <micmania1> but then ended up doing other stuff
914: [11:01:15] <r3v3rb> willmorgan can you write me a cheque?
915: [11:01:38] <micmania1> dinner!!
916: [11:01:39] <Pyhok> where is key micmania1 ? :<
917: [11:04:22] * anselmdk quit (Quit: anselmdk)
918: [11:06:51] * r3v3rb quit (Quit: Textual IRC Client: www.textualapp.com)
919: [11:07:16] * wmk has joined #silverstripe
920: [11:07:55] * anselmdk has joined #silverstripe
921: [11:10:24] * bwaah_ has joined #silverstripe
922: [11:14:50] <willmorgan> r3v3rb: for what service?
923: [11:17:15] * Colin[pi]_Mac has joined #silverstripe
924: [11:17:45] <Colin[pi]_Mac> evening
925: [11:18:32] <simon_w|air> Evening Colin[pi]_Mac
926: [11:26:40] <Pyhok> fffffffffffffffffffffffffff aggregates fucking everything up
927: [11:26:51] * Sjohn has joined #silverstripe
928: [11:27:13] <Pyhok> how does one return a single row of canon data based on the value of an aggregate?
929: [11:27:53] * Sj0hn quit (Ping timeout: 264 seconds)
930: [11:28:16] <Pyhok> in SQL this is
931: [11:28:18] <Pyhok> eg.
932: [11:28:32] <Pyhok> have a bunch of version data
933: [11:28:41] <Pyhok> want say... the first one.
934: [11:29:12] <Pyhok> min(update.time) will get me the lowest value... but not the correctly corresponding version.id, etc.
935: [11:29:44] <Pyhok> in that group (group by version.foreignid for example)
936: [11:30:06] <Pyhok> which makes it hard when this is supposed to be a join table subquery
937: [11:30:23] <Pyhok> as opposed to subquery for every single record returned, I just want to do one once for the join table.
938: [11:30:39] <Pyhok> is it possible in any variance of SQL out there?
939: [11:31:51] <Pyhok> hhhahahahahaha, /join #sq
940: [11:31:53] <Pyhok> sql*
941: [11:32:05] <Pyhok> topic: http://i.qkme.me/3qt516.jpg
942: [11:32:17] <Pyhok> we should put this in our topic too :P
943: [11:32:26] <Pyhok> simon_w|air: ? :>
944: [11:32:39] <guzzlefry> 0.o
945: [11:33:44] <guzzlefry> Hard to say without seeing the schema.
946: [11:34:07] <Pyhok> guzzlefry: really
947: [11:34:08] <Pyhok> ?
948: [11:34:17] <Pyhok> I don't think so.
949: [11:34:20] <guzzlefry> well, I did just wake up. :P
950: [11:34:45] <guzzlefry> LIMIT 1? :P
951: [11:35:23] <Pyhok> get the fuck off my porch
952: [11:35:25] <Pyhok> :P
953: [11:35:49] <guzzlefry> wait, just to clarify, you're wanting to do this in SQL or Silverstripe's ORM stuff?
954: [11:36:26] <simon_w|air> Pyhok, HAVING?
955: [11:36:54] <simon_w|air> HAVING update.time = min(update.time)
956: [11:37:30] <Pyhok> simon_w|air: mmm, but for each group, making many rows?
957: [11:37:37] <Pyhok> eg... idk.
958: [11:37:38] <Pyhok> hmm
959: [11:38:01] <guzzlefry> need schema!
960: [11:38:07] <Pyhok> no.
961: [11:38:10] <simon_w|air> You'll need to subquery for that
962: [11:38:15] <Pyhok> simon_w|air: I'm aware of this
963: [11:38:24] <Pyhok> shit
964: [11:38:54] <Pyhok> ok, orders right
965: [11:39:16] <simon_w|air> As an aside, https://git.simon.geek.nz/simon_w/xhp-viewer is coming along nicely :)
966: [11:39:17] <Pyhok> an order gets placed, paid for, filled, shipped, delivered
967: [11:39:24] <Pyhok> ok
968: [11:39:32] <Pyhok> so there are several stages to an order.
969: [11:39:46] <Pyhok> an order has updates that happen to it. Notes left, actions taken, etc.
970: [11:39:57] <Pyhok> such as payments in parts
971: [11:40:13] <Pyhok> items alotted to the order as part of the fillment
972: [11:40:18] * mystic quit (Ping timeout: 240 seconds)
973: [11:40:26] * simon_w|air sleeps
974: [11:40:28] <Pyhok> maybe several boxes shipped separately
975: [11:40:30] * simon_w|air quit (Quit: This computer has gone to sleep)
976: [11:40:48] * thibault quit (Ping timeout: 240 seconds)
977: [11:40:57] <Pyhok> this kind of thing
978: [11:41:21] <Pyhok> so an order is a row in it's own table. Updates happen in another.
979: [11:41:40] <guzzlefry> order n..m updates?
980: [11:41:42] <Pyhok> id, order_id, order_status, user_id, updated
981: [11:41:58] <Pyhok> order 1 -> n updates
982: [11:42:00] <guzzlefry> err
983: [11:42:07] <guzzlefry> yeah that, morning :P
984: [11:42:07] <Pyhok> ok?
985: [11:42:31] <Pyhok> I want to know the last update made for a particular status.
986: [11:42:37] * mystic has joined #silverstripe
987: [11:42:50] <Pyhok> so the order might be closed, but I want to know when it was filled.
988: [11:43:00] <guzzlefry> that's a lot clearer than before :P
989: [11:43:23] * guzzlefry wanders off to sql fiddle.
990: [11:43:23] <Pyhok> one item may have been on backorder, so it may have taken time from filling some parts to filling the last part (before advancing a order status to shipping)
991: [11:44:14] <Pyhok> I want Order LEFT JOIN OrderUpdate
992: [11:44:27] <Pyhok> but I don't want 5 rows with the same order and different update data.
993: [11:44:32] <Pyhok> each
994: [11:44:38] <Pyhok> I want one row.
995: [11:45:48] <Pyhok> MAX(Update.Time) will give me the last update made to that stage, sure. And GROUP BY will give me a single row. But that row's update id, update user id, etc will not be consistent
996: [11:45:53] <Pyhok> with that time.
997: [11:46:13] <Pyhok> so I can subquery
998: [11:46:34] <Pyhok> I could sub query for every single row in the result and that would work, but it'll be fucking slow with 50,000 orders.
999: [11:46:57] <Pyhok> I want to subquery to produce an update table with one row per order (at that status).
1000: [11:47:17] <Pyhok> so that's fine, I can ON for the status ID, or put it in the WHERE
1001: [11:47:22] <Pyhok> of the subquery
1002: [11:47:36] <Pyhok> but still have the issue when it comes to aggregating rows down to a single.
1003: [11:48:18] <guzzlefry> hold on...
1004: [11:48:37] <guzzlefry> id, order_id, order_status, user_id, updated <--- Is that the Order or OrderUpdate table?
1005: [11:48:51] * abitran_ has joined #silverstripe
1006: [11:49:18] <Pyhok> I mean, this isn't such a big deal in this example I suppose, because I can just MAX(update.time) and that's fine. I'm only really after that one field. But in other use cases with the same issue... this seems to be quite a common thing in SQL but it's not allowed for.
1007: [11:49:31] <Pyhok> guzzlefry: OrderUpdate
1008: [11:49:43] * abitran quit (Ping timeout: 258 seconds)
1009: [11:49:47] <Pyhok> Order has things like customer, etc.
1010: [11:50:02] <Pyhok> delivery address, etc.
1011: [11:50:11] <guzzlefry> Think I broke SQLFiddle.
1012: [11:50:45] <Pyhok> those fiddle things are flimsy at best I've found.
1013: [11:51:33] <guzzlefry> Guess I'll do it the old fashioned way. :P
1014: [11:51:35] <Pyhok> it just angers me that there's no way to keep row data bound together when using aggregates etc.
1015: [11:51:55] <Pyhok> often that' not desired, sured, but often it is too :<
1016: [11:56:34] <guzzlefry> Window Functions? Although that's only in Postgres.
1017: [11:56:43] <guzzlefry> well, maybe others, but definitely not MySQL.
1018: [11:57:00] <Pyhok> yeh, using mysql 5.0
1019: [11:57:04] <Pyhok> unfortunately
1020: [11:57:31] <guzzlefry> They piss me off. :P
1021: [11:57:49] <Pyhok> they?
1022: [11:57:55] <guzzlefry> I had the perfect use-case for an EXCEPT operation, but I had to use some ugly join instead.
1023: [11:58:08] <guzzlefry> whoever keeps MySQL in the stone-age.
1024: [11:58:20] <Pyhok> design flaw isn't it?
1025: [11:58:26] <guzzlefry> I'm not sure.
1026: [11:58:30] <Pyhok> like, the entire thing.
1027: [11:59:15] * UndefinedOffset has joined #silverstripe
1028: [11:59:41] * anselmdk quit (Quit: anselmdk)
1029: [12:00:45] <guzzlefry> Hopefully MariaDB fixes a lot of that. >_>
1030: [12:01:42] <Pyhok> sif
1031: [12:01:49] <Pyhok> design flaw, entire thing.
1032: [12:04:12] <guzzlefry> So
1033: [12:04:14] <guzzlefry> Pyhok: http://bpaste.net/show/fPZsKwS9fHvw6hM3akuy/
1034: [12:04:22] <guzzlefry> Is that adequate for replicating the issue?
1035: [12:06:27] <guzzlefry> err, s/order_time/update_time
1036: [12:08:36] <guzzlefry> yeah, this is annoying. :P
1037: [12:16:03] <Pyhok> doesn't matter what it's called :P
1038: [12:16:06] <Pyhok> just the relation
1039: [12:16:25] <Pyhok> but yeh, should be sufficient
1040: [12:20:12] <guzzlefry> SELECT `order`.id, (SELECT message FROM order_update WHERE order_id = `order`.id ORDER BY update_time DESC LIMIT 1) FROM `order`;
1041: [12:20:18] <guzzlefry> no clue how efficient that is...
1042: [12:21:06] <guzzlefry> it's also limited to pulling a single column from the many-sided table.
1043: [12:21:20] <Pyhok> and it's a query per row
1044: [12:21:49] <guzzlefry> oh yeah >_>
1045: [12:22:21] * UncleCheese_ quit (Quit: UncleCheese_)
1046: [12:23:48] <guzzlefry> Is this something that's already finished?
1047: [12:23:53] <guzzlefry> the schema
1048: [12:30:43] <guzzlefry> wait...
1049: [12:30:58] * muskie9 has joined #silverstripe
1050: [12:30:58] <Sjohn> Any1 here expierence with this seo module? https://github.com/hubertusanton/silverstripe-seo
1051: [12:30:58] <Sjohn> trying to update, but it doesnt do much, instead its putting back the standard seo stuff
1052: [12:30:58] <Sjohn> ?flushed everything ..
1053: [12:32:23] <guzzlefry> SELECT * FROM order_update GROUP BY order_id ORDER BY update_time DESC; <-- completely unpredictable.
1054: [12:33:08] * Sj0hn has joined #silverstripe
1055: [12:36:19] <micmania1> Sj0hn: have you ran dev/build flush=!
1056: [12:36:23] <micmania1> flush=1*
1057: [12:37:23] * thibault has joined #silverstripe
1058: [12:38:36] * Sjohn quit (Ping timeout: 258 seconds)
1059: [12:42:27] <Sj0hn> micmania1 well that worked.. but only on a normal page
1060: [12:43:01] <micmania1> You mean only on Page class?
1061: [12:43:53] <Sj0hn> yeah
1062: [12:44:39] <Sj0hn> Looking at the config.yml i need to add all other extentions of the page class manually?
1063: [12:45:19] <micmania1> no
1064: [12:45:33] <micmania1> It should apply to all classes tat extend Page
1065: [12:47:48] * Pyhok quit (Ping timeout: 240 seconds)
1066: [12:48:24] * muskie9 quit (*.net *.split)
1067: [12:48:46] <Sj0hn> Not sure, but i think it doesn't do that
1068: [12:49:22] <micmania1> Do you call parent::getCMSFields() in your subclasses of Page?
1069: [12:49:44] <Sj0hn> yes
1070: [12:51:38] <Sj0hn> I've checked em
1071: [12:52:25] <Sj0hn> Also not sure why i dont have a meta title xD
1072: [12:52:55] * Colin[pi]_Mac has joined #silverstripe
1073: [12:53:23] <Zauberfisch> meta title has been removed from silverstripe somewhen between 3.0 and 3.1
1074: [12:55:30] <Sj0hn> For what reason if I may ask?
1075: [12:58:58] <Zauberfisch> Sj0hn: there is a thread on the mailing list about it
1076: [12:58:59] <Zauberfisch> https://groups.google.com/d/msg/silverstripe-dev/dOB7_rAHCuc/d62vFtItgqQJ
1077: [12:59:35] <Zauberfisch> and as the poll turned out against MetaTitle, kinglozzer made a module for it
1078: [12:59:38] <Zauberfisch> https://github.com/kinglozzer/silverstripe-metatitle
1079: [13:09:19] <Sj0hn> alright, thanks Zauberfisch ^^
1080: [13:10:25] * Nightjar has joined #silverstripe
1081: [13:17:48] * bwaah_ quit (Ping timeout: 240 seconds)
1082: [13:18:08] * Nightjar has left #silverstripe
1083: [13:19:18] * bliblo has joined #silverstripe
1084: [13:19:30] <bliblo> Hello, one question where do i set the meta keywords?
1085: [13:20:50] <willmorgan> in the CMS
1086: [13:20:58] <willmorgan> there's a field on each page
1087: [13:21:11] <bliblo> theres meta description, and custom meta-tags but not meta keywords
1088: [13:21:12] <willmorgan> and then in the template, you can use the $MetaTags variable to get them output
1089: [13:21:38] <bliblo> meta description already works, but in 2.4 i had a seperate field for comma seperated keywords
1090: [13:21:57] <willmorgan> ah, I see
1091: [13:22:14] <willmorgan> I suspect they might have been removed as the keywords aren't really recognised by search engines anymore
1092: [13:22:19] <micmania1> bliblo: keywords were removed as they don't hold any value any more
1093: [13:22:28] <willmorgan> the description is only relevant because that is shown in the search engine result
1094: [13:22:46] <bliblo> are you really sure keywords are ignored by google?
1095: [13:23:16] <micmania1> yes, there was a blog/video by Google a few years back where they said they don't look at keywords
1096: [13:23:42] <willmorgan> things like the page title are more important now
1097: [13:23:55] <willmorgan> what good are meta keywords when users don't look at them? they look at the page content
1098: [13:24:21] <bliblo> yes that's true
1099: [13:25:04] <micmania1> bliblo: https://yoast.com/meta-keywords/
1100: [13:25:50] <bliblo> ok, thanks didn't knew that
1101: [13:29:13] * r3v3rb has joined #silverstripe
1102: [13:29:17] <r3v3rb> hola
1103: [13:29:18] * PigeonFriend quit (Ping timeout: 240 seconds)
1104: [13:29:21] * mento has joined #silverstripe
1105: [13:29:31] * Shrike_Finland quit (Quit: Leaving.)
1106: [13:30:13] <wmk> hallo
1107: [13:30:22] * Colin[pi]_Mac quit (Quit: Textual IRC Client: www.textualapp.com)
1108: [13:32:07] <r3v3rb> anyone well versed in SS_Report and getting the ‘Export CSV’ to contain more than the IDs from the DO - the onscreen report contains the relevant data but the export shows only ID numbers
1109: [13:32:23] * r3v3rb has left #silverstripe
1110: [13:32:36] * r3v3rb has joined #silverstripe
1111: [13:32:45] <r3v3rb> whoops
1112: [13:34:09] <micmania1> r3v3rb: you set summary_fields?
1113: [13:34:20] <r3v3rb> pah, is it that simple?
1114: [13:34:52] <micmania1> Haven't used SS_Report but that's what GridField CSV export component uses
1115: [13:35:06] <r3v3rb> so a good guess I should coco micmania1 ;)
1116: [13:35:31] <r3v3rb> dev/build time
1117: [13:39:03] * catcher has joined #silverstripe
1118: [13:41:34] * muskie9 has joined #silverstripe
1119: [13:43:17] * desperate has joined #silverstripe
1120: [13:43:40] <desperate> afternoon folks
1121: [13:43:57] <desperate> I have a functino that is get:: sql query
1122: [13:44:25] <desperate> the dataobject has a related item
1123: [13:44:45] <desperate> the related item is a dataobject and I want to display the Created date filed in my template
1124: [13:45:00] <desperate> I have aloop controleer in my template
1125: [13:45:43] <desperate> I have: <% loop $RelationName %>
1126: [13:46:09] <desperate> $title works and gives me output
1127: [13:46:23] <desperate> $Created doesn't produce any output
1128: [13:46:36] <desperate> I have checked that this field is not empty
1129: [13:46:56] <desperate> I should be able to access this dat aright?
1130: [13:47:43] <muskie9> desperate: is the relation a has_one
1131: [13:48:00] <desperate> many_many
1132: [13:48:44] <desperate> weird that I am able to output other vales for this realted object
1133: [13:50:20] <muskie9> you might have to write a getter method, I feel like the Created column might not be accessible in the template by default
1134: [13:51:25] <desperate> it seems to be the case
1135: [13:51:35] * eagles0513875 quit (Changing host)
1136: [13:51:35] * eagles0513875 has joined #silverstripe
1137: [13:51:35] * eagles0513875 quit (Changing host)
1138: [13:51:35] * eagles0513875 has joined #silverstripe
1139: [13:51:36] <desperate> what is a getter method
1140: [13:52:08] <muskie9> I could be wrong... $Created is referenced in the docs
1141: [13:53:14] <muskie9> they're reference is based on a page though... you getter would be something like public function getCreated(){ return $this->Created; } in your related data object
1142: [13:56:18] <desperate> ah ok simple enough
1143: [13:57:06] <muskie9> I would use $Created.Nice in your template as it's a Datetime in the db
1144: [13:57:41] <desperate> I was using $Created.format('D j M Y')
1145: [13:58:07] <muskie9> that works too... you could do the formatting in your getter function, then just use $Created
1146: [14:01:41] <r3v3rb> ugh, beginning to despise SS_Report and Gridfield for making me look stupid
1147: [14:03:46] * anselmdk has joined #silverstripe
1148: [14:05:25] * Sj0hn quit ()
1149: [14:21:33] <desperate> muskie9: would my getter function be part of the dataobject declaration?
1150: [14:22:11] <micmania1> desperate: you don't need a getter function
1151: [14:22:15] <muskie9> based on this: desperate: the related item is a dataobject and I want to display the Created date filed in my template
1152: [14:22:24] <micmania1> You can use $Created in templates as it is
1153: [14:22:29] <muskie9> it would be on the dataobject
1154: [14:23:05] <muskie9> micmania1 is that accessible on data objects
1155: [14:23:07] * jcwacky has joined #silverstripe
1156: [14:23:11] <micmania1> muskie9: yes
1157: [14:23:19] <micmania1> Just like any other db field
1158: [14:23:20] <muskie9> cool
1159: [14:23:49] <muskie9> desperate didn't get anything with $Created in his loop
1160: [14:25:21] <micmania1> my guess would be he's doing something wrong. desperate can you post your code?
1161: [14:26:52] * spronk2 quit (Quit: spronk2)
1162: [14:27:25] <desperate> yes one moment i'll put to gether a paste
1163: [14:27:49] * priithansen has joined #silverstripe
1164: [14:29:25] * Shrike_Finland has joined #silverstripe
1165: [14:34:07] <jcwacky> Is there anyway to trigger a cache rebuild on the save of a DataObject or SiteConfig when using Static Publisher?
1166: [14:35:30] <r3v3rb> ok, http://pastie.org/private/bkwtvvptfppcgxd6edjq shows my DO and Report why does the EmailAddress column not show anything?
1167: [14:37:24] <r3v3rb> fixed it ;) didn’t need the getEmailAddress after all
1168: [14:40:08] <willmorgan> how does one do an efficient UPDATE query with SS's ORM?
1169: [14:40:25] <willmorgan> like... without selecting objects then iterating over and writing them one by one
1170: [14:40:46] <willmorgan> SQLQuery's docs: "@todo Add support for INSERT and UPDATE queries"
1171: [14:40:56] <desperate> here is my post: http://paste2.org/2eNskU3s
1172: [14:41:44] <r3v3rb> also anyone played with parameterFields wh might now why my DropdownFields the styling is getting some ui-tab added to it?
1173: [14:41:51] <r3v3rb> who*
1174: [14:42:47] <muskie9> desperate, not sure where you're getting the Show in Show::get()... that line is probably your issue
1175: [14:43:51] <muskie9> assuming you're getting a book it should be Book::get()->byID($_GET['showid']);
1176: [14:44:11] <desperate> sorry that ashould be Book
1177: [14:44:31] <muskie9> I'd also try to handle the get differently... I'd use SS's url params to pass the book ID
1178: [14:44:41] <desperate> http://paste2.org/z6hJJUk6
1179: [14:45:31] <muskie9> http://paste2.org/0WUJtNJA
1180: [14:45:47] <desperate> yes it was pointed out to me last week that I shouldn't use $_GET
1181: [14:47:07] <desperate> however that still doesn't explain why $created is empty does it?
1182: [14:47:53] <micmania1> desperate: it does because your function is broke
1183: [14:48:09] <micmania1> and you shouldn't really use global functions.
1184: [14:48:37] <desperate> which line?
1185: [14:49:27] <muskie9> desperate, what class does your GetSingleBook() live in?
1186: [14:50:42] <desperate> Page
1187: [14:53:56] * Shrike_Finland quit (Quit: Leaving.)
1188: [14:58:55] <desperate> if my function was broke my site would crash wouldn't it?
1189: [14:59:31] <muskie9> not necessarily
1190: [14:59:51] * Sj0hn has joined #silverstripe
1191: [14:59:57] <Sj0hn> Yo
1192: [15:00:42] <Sj0hn> I got the this error: Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/admin/domains/domain/public_html/new/framework/main.php on line 117
1193: [15:01:01] <Sj0hn> not sure what the problem is..
1194: [15:01:22] <micmania1> You been editing main.php?
1195: [15:03:38] <Sj0hn> nope.. but it seems the php version on this server is 5.2
1196: [15:03:44] <Sj0hn> so im guessing thats the problem
1197: [15:07:59] * willmorgan quit (Quit: l8rz)
1198: [15:08:19] * wmk quit (Quit: nice to meet you ;))
1199: [15:09:35] <micmania1> The error indicates a missing closing )
1200: [15:09:48] <micmania1> but ss doesn't support php 5.2, no
1201: [15:09:51] <catcher> Sj0hn, that's probably a PHP closure, which is new to 5.3
1202: [15:10:14] <Sj0hn> So it's a version error
1203: [15:10:16] <catcher> (i.e. anonymous function)
1204: [15:10:25] <catcher> yup, SS3.1 requires php 5.3
1205: [15:10:40] <catcher> 5.3.2+, specifically
1206: [15:10:53] <Sj0hn> I asked the webhost to upgrade it to atleast 5.3.2
1207: [15:14:17] * Shrike_Finland has joined #silverstripe
1208: [15:14:50] <Sj0hn> Thank for all the help people of the magnificent Silverstripe community :D
1209: [15:14:54] <Sj0hn> Bb
1210: [15:15:05] * Sj0hn quit ()
1211: [15:17:18] * stnvh quit (Ping timeout: 240 seconds)
1212: [15:17:48] * stnvh has joined #silverstripe
1213: [15:19:46] * ARNHOE quit ()
1214: [15:22:36] * Pyhok has joined #silverstripe
1215: [15:23:06] <Pyhok> Sup mah nnnnntigers.
1216: [15:24:11] <Pyhok> guzzlefry: so the answer is to derived table the shit out o yo shit.
1217: [15:24:17] <Pyhok> coz yo dawg
1218: [15:24:27] <Pyhok> etc
1219: [15:24:40] <r3v3rb> can I only have one Session timeout now in 3.1
1220: [15:24:56] * r3v3rb wants mroe just for kicks
1221: [15:24:59] <r3v3rb> more*
1222: [15:25:58] <Pyhok> you wut
1223: [15:26:02] <Pyhok> uwot
1224: [15:26:22] <r3v3rb> also, defining it in Config is wrong - I have a case where I need to set_timeout to be midnight - the current time so that a session cookie always removes itself at midnight on any given visitor
1225: [15:26:52] <Pyhok> so use config.php, that's what it's for.
1226: [15:26:55] <r3v3rb> so Session::set(‘This’, ‘Disappears at midnight’)
1227: [15:27:24] <r3v3rb> Session::set_timeout((strtotime('tomorrow 00:00:00') - time())/60);
1228: [15:27:37] <r3v3rb> returns me the seconds to midnight
1229: [15:27:40] <micmania1> Can you not just set the cookie to timeout then?
1230: [15:27:58] <r3v3rb> micmania1: I can for now, but set_timeout is deprecated
1231: [15:27:58] <micmania1> or is that what it does?
1232: [15:28:52] <Pyhok> r3v3rb: set_timeout ?
1233: [15:29:16] <r3v3rb> Pyhok: yes thats the current (pre-deprecated) way to set a timeout afaik
1234: [15:29:23] <Pyhok> link?
1235: [15:29:40] <r3v3rb> its in Session.php
1236: [15:29:43] <Pyhok> it's not clear to me what you're talking about
1237: [15:29:44] <Pyhok> oh ss
1238: [15:29:45] <Pyhok> well
1239: [15:30:02] <desperate> could it be possible that $Created and $lastEdited are in some way protected? I can access every other field of my Dataobject, ClassName, Author, etc,. other than Created and LastEdited
1240: [15:30:09] <Pyhok> either hack your own one in, decorate, subclass and use injector, or whatevers
1241: [15:30:14] <r3v3rb> reckon I’m better served with PHP Session instead Pyhok ?
1242: [15:30:16] <Pyhok> desperate: no.Never.
1243: [15:30:59] <Pyhok> r3v3rb: well... cookies have an expry, that's going nowhere
1244: [15:31:02] <Pyhok> you could set that
1245: [15:31:13] <Pyhok> but just blat all sessions every night at midnight.
1246: [15:31:19] <Pyhok> pretty sure php can do that native.
1247: [15:31:22] <r3v3rb> Pyhok: yes, by default on browser window close from what I can see of SS Sessions
1248: [15:31:33] <Pyhok> you forget that sessions are a php thing, not an ss thing
1249: [15:32:03] <Pyhok> nah coz how does SS know that you closed a window?
1250: [15:32:10] <Pyhok> web is stateless.
1251: [15:32:17] <r3v3rb> Pyhok: http://api.silverstripe.org/3.1/source-class-Session.html#600-610
1252: [15:32:41] <r3v3rb> Pyhok: obviously I know SS doesnt give a fuck about the window ;)
1253: [15:32:54] <r3v3rb> but it should set the PHP Sesion to timeout correctly?
1254: [15:33:12] <micmania1> r3v3rb: cookies timeout
1255: [15:33:20] <micmania1> sessions sit there until you delete them
1256: [15:33:26] <r3v3rb> micmania1: ok
1257: [15:33:31] <r3v3rb> I’ll take a look
1258: [15:33:48] <Pyhok> http://api.silverstripe.org/3.1/source-class-Session.html#574-598 r3v3rb
1259: [15:34:15] <Pyhok> just if midnight, call that.
1260: [15:34:20] <Pyhok> run task
1261: [15:34:22] <Pyhok> problem solved.
1262: [15:34:25] <r3v3rb> so I shoudl set a cookie instead of use a session variable
1263: [15:34:33] <Pyhok> no, cookies are manipulable
1264: [15:34:45] <r3v3rb> Pyhok: thats why i choose sessions
1265: [15:35:04] * jenniferaslan has joined #silverstripe
1266: [15:35:13] <r3v3rb> so cron up a task to hit on Session::destroy instead :D
1267: [15:35:18] <Pyhok> if your sessions are dropping when you close a window, it's only because your browser is clearing the cookies for that site on close.
1268: [15:35:21] <Pyhok> or something
1269: [15:35:27] <Pyhok> are you incognito or something?
1270: [15:35:41] <r3v3rb> 605 * @param int $timeout Time until a session expires in seconds. Defaults to expire when browser is closed.
1271: [15:36:00] <desperate> then i think I have found a bug!
1272: [15:36:04] <r3v3rb> erm, if a session is server side in php how
1273: [15:36:18] <r3v3rb> does it know when the browser is closed exactly?
1274: [15:36:27] <micmania1> r3v3rb: no, its done by cookies
1275: [15:36:50] <micmania1> php generates a hash which is then used as the value of a cookie (with timeout limit)
1276: [15:37:28] <Pyhok> desperate: post your code.
1277: [15:37:29] <micmania1> that hash refers to the id of your session where all the data is stored
1278: [15:37:45] <micmania1> So if you invalidate the cookie, the session is invalidated
1279: [15:38:01] <Pyhok> r3v3rb: yeah, that's the cookie forget setting.
1280: [15:38:05] <r3v3rb> so which way would you do it, set_timeout or just cron task destroy all
1281: [15:38:13] <Pyhok> forgets when window is closed. doesn't have to though.
1282: [15:38:42] <Pyhok> cron task better
1283: [15:38:45] <Pyhok> more insurable.
1284: [15:38:53] <Pyhok> ensurable
1285: [15:38:54] <Pyhok> whatever
1286: [15:38:55] <Pyhok> dependable
1287: [15:38:57] <r3v3rb> i guess,
1288: [15:39:00] <Pyhok> yeh, that's it.
1289: [15:39:06] <r3v3rb> one small class with a one-liner in
1290: [15:39:14] <Pyhok> kinda.
1291: [15:39:23] <r3v3rb> kinda?
1292: [15:39:29] <Pyhok> small class with a small function with a one liner in it
1293: [15:39:35] <r3v3rb> surely its just Session::destroy();
1294: [15:39:36] <Pyhok> or something
1295: [15:39:48] <Pyhok> well no, because need a session to destroy
1296: [15:39:51] <r3v3rb> lol, okay mr pedantic
1297: [15:39:58] <micmania1> What's wrong with Config::inst()->get('Session', 'timeout');?
1298: [15:40:09] <Pyhok> doesn't happen on a timed basis
1299: [15:40:18] * desperate quit (Ping timeout: 240 seconds)
1300: [15:40:22] <r3v3rb> micmania1: I need the sessions to destroy at midnight
1301: [15:40:25] <Pyhok> also user can fiddly diddly with it
1302: [15:40:34] <r3v3rb> so each day is fresh as a daisy for session id
1303: [15:40:51] <r3v3rb> so cron it is
1304: [15:41:39] <Pyhok> yeah but you need to figure out how to wipe all sessions
1305: [15:41:50] <Pyhok> session_destroy only takes care of the CURRENT session
1306: [15:41:58] <Pyhok> ie, the one that user is using
1307: [15:42:04] <r3v3rb> ok
1308: [15:42:05] <Pyhok> whch will be cron.
1309: [15:42:18] <Pyhok> wholey shit
1310: [15:42:22] <r3v3rb> holey
1311: [15:42:28] <r3v3rb> holy?
1312: [15:42:42] <Pyhok> spent whole day consolidating a muckle big query into a smaller more efficient one. FINALLY THERE
1313: [15:42:53] <Pyhok> r3v3rb: no, as in not partial.
1314: [15:43:29] <micmania1> r3v3rb: what is it you're trying to do btw? Is this something that could go into Controller::init()?
1315: [15:44:34] <Pyhok> only if each use of the session is stored in the session, and is checked to see if it's past midnight
1316: [15:44:35] <r3v3rb> micmania1: some of it is in PageCOntroller setting up a ‘ID’ and view time - so tha the site can ‘big brother’ the agents who send visitors - tracking each one but only once a day (upto midnight)
1317: [15:44:46] <r3v3rb> that*
1318: [15:44:56] <Pyhok> r3v3rb: see what I just said.
1319: [15:45:01] <Pyhok> another way to aproach it.
1320: [15:45:21] <Pyhok> also, what if a user is browsing at midnight?
1321: [15:45:27] <r3v3rb> Pyhok: good idea, so check if set, if set check time
1322: [15:45:29] <Pyhok> or say... from NZ?
1323: [15:45:45] <r3v3rb> Pyhok: no chance of NZ getting tax return sorted in UK methinks
1324: [15:45:53] <Pyhok> wrong
1325: [15:45:58] <Pyhok> plenty of poms in nz
1326: [15:46:21] <r3v3rb> Pyhok: true but do you pay tax in UK being here, or back in NZ still?
1327: [15:46:31] <Pyhok> UK tax, silly
1328: [15:46:46] <r3v3rb> if they are working in NZ, in all likelyhood their tax return will be an NZ one?
1329: [15:46:48] * thibault quit (Ping timeout: 240 seconds)
1330: [15:46:58] <Pyhok> yeah, but could still need UK tax done.
1331: [15:47:09] <Pyhok> or may still be trading in UK
1332: [15:47:14] <r3v3rb> for sure, retired old gits for example
1333: [15:47:37] <Pyhok> and the fact that once you're in the UK system, it's fucking impossible to get out.
1334: [15:47:48] <r3v3rb> the system would reset the session anyway and just apply the ID to the following day so no biggy
1335: [15:47:54] <Pyhok> I know a few immigrants who were complaining about it one night.
1336: [15:47:58] <Pyhok> they settle their tax
1337: [15:48:28] <Pyhok> then 6 months later get another notice to settle, they still owe something retarded like 21p, because of time overdue, or exchange rates, or something else 6 times as retarded.
1338: [15:48:42] <r3v3rb> sounds about right :D
1339: [15:48:55] <Pyhok> also pensions and shit, yeh
1340: [15:49:08] <Pyhok> got whole comapnies in NZ set up to deal with UK pensions
1341: [15:49:18] * mystic quit (Ping timeout: 240 seconds)
1342: [15:53:12] * Shashitechno has joined #silverstripe
1343: [15:53:18] <r3v3rb> anyways, the current PHPSessID for SS is still set to expire at browser close, not in 26456 seconds
1344: [15:53:30] <r3v3rb> divided by 60
1345: [15:53:36] <r3v3rb> for midnight ‘ish
1346: [15:53:37] * mento quit (Quit: Page closed)
1347: [15:54:24] <Shashitechno> Hello everyone, How can I flush an indiviusal SS template, there is thousand of images on the site I dont want to flush all ?
1348: [15:54:51] <muskie9> go to the page that uses the template and ?flush=1
1349: [15:55:00] <Shashitechno> The template is used for sending emails
1350: [15:55:00] <Pyhok> so guzzlefry: it's basically to join on (select * from Updates inner join (select id, max(updated) d, order_id from updates) as d on d.id = updates.id) as updates on order.id = updates.order_id
1351: [15:55:19] <Pyhok> flush all doesn't clear images
1352: [15:55:25] <Pyhok> I don't think
1353: [15:55:28] <Shashitechno> muskie9: the template is used on fly while sending emails
1354: [15:55:46] <muskie9> not sure then, I've always flushed all for email
1355: [15:55:51] <Shashitechno> Pyhok: Yeah but lots of more template I dont want to clear
1356: [15:55:57] <Pyhok> tough
1357: [15:56:11] <Shashitechno> What If I just delete that cache file ?
1358: [15:56:19] <Pyhok> also, ssviewer doesn't need flushing if you've just updated the template anymore afaik
1359: [15:56:19] <guzzlefry> that works
1360: [15:56:31] <Pyhok> yeah just manually delete the cache file
1361: [15:56:35] <Pyhok> then flush
1362: [15:56:39] * Liquide has joined #silverstripe
1363: [15:56:48] <Shashitechno> Pyhok: Yeah, let me try
1364: [15:56:48] <r3v3rb> Pyhok: lol, so friendly today() :D
1365: [15:56:55] <Pyhok> r3v3rb: friendly every day
1366: [15:57:02] <r3v3rb> always and forever
1367: [15:57:06] <Pyhok> just suck it up princess.
1368: [15:57:35] <Pyhok> ssviewer doesn't need flushing anymore for existing templates.
1369: [15:57:52] <Pyhok> if you've just updated it, you don't need to flush. You only need flush if you've _added_ templates
1370: [15:58:01] <Pyhok> or so I hear
1371: [15:58:02] <Pyhok> I think
1372: [15:58:05] <Shashitechno> Pyhok: think agressive caching enabled here
1373: [15:58:06] <Pyhok> if I remember propers.
1374: [15:58:19] <Pyhok> Shashitechno: define aggressive
1375: [15:59:14] <Shashitechno> Pyhok: Yeah, but the updates are not working for me, somehow :(
1376: [15:59:36] <Pyhok> suggest something else is wrong then. Especially if you've flushed.
1377: [15:59:41] <Pyhok> if not, flush.
1378: [16:01:52] <kinglozzer> Wait, since when does flush clear resampled images?!
1379: [16:02:01] <Pyhok> It's not too uncommon to find that you've edited the wrong file. I've done that numerous times.
1380: [16:02:09] <Pyhok> kinglozzer: since 2.never
1381: [16:02:27] <Pyhok> I think maybe 2.3 with all did that
1382: [16:02:35] <Pyhok> but since then it's been a separate build task
1383: [16:02:39] <Pyhok> iirc
1384: [16:09:48] * Pyhok quit (Ping timeout: 240 seconds)
1385: [16:09:53] * Shrike_Finland quit (Quit: Leaving.)
1386: [16:10:24] * r3v3rb = prat
1387: [16:10:35] <r3v3rb> set_timeout is working for the PHPSessID
1388: [16:10:41] * Shrike_Finland has joined #silverstripe
1389: [16:10:49] <r3v3rb> my division by 60 was one division too many
1390: [16:10:54] <r3v3rb> to return seconds
1391: [16:10:56] <r3v3rb> :P
1392: [16:16:31] * Shrike_Finland quit (Quit: Leaving.)
1393: [16:28:54] * Error404NotFound has joined #silverstripe
1394: [16:29:27] * ocm quit (Quit: HydraIRC -> http://www.hydrairc.com <-)
1395: [16:30:36] * stnvh quit ()
1396: [16:32:28] * kinglozzer quit ()
1397: [16:33:35] <jcwacky> Is parent::onAfterWrite(); required in a onAfterWrite() in a DataExtension?
1398: [16:36:05] * Shrike_Finland has joined #silverstripe
1399: [16:38:05] * Shashitechno quit (Quit: Page closed)
1400: [16:38:17] * r3v3rb quit (Quit: r3v3rb)
1401: [16:43:13] * Shrike_Finland quit (Quit: Leaving.)
1402: [16:44:39] * Shrike_Finland has joined #silverstripe
1403: [16:47:33] <Zauberfisch> yiiiiiisss
1404: [16:47:38] <Zauberfisch> http://store.steampowered.com/app/266840/?snr=1_4_4__100_11
1405: [16:47:58] * guzzlefry has left #silverstripe
1406: [16:48:05] * guzzlefry has joined #silverstripe
1407: [16:49:57] * Error404NotFound quit (Ping timeout: 276 seconds)
1408: [17:01:51] * Error404NotFound has joined #silverstripe
1409: [17:07:48] * Shrike_Finland quit (Quit: Leaving.)
1410: [17:07:57] * Shrike_Finland has joined #silverstripe
1411: [17:08:37] * babak quit (Quit: Connection closed for inactivity)
1412: [17:20:56] * Shrike_Finland quit (Quit: Leaving.)
1413: [17:21:42] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1414: [17:22:31] * Shrike_Finland has joined #silverstripe
1415: [17:28:26] * muskie9 has joined #silverstripe
1416: [17:31:35] * bliblo quit (Remote host closed the connection)
1417: [17:45:01] * r3v3rb has joined #silverstripe
1418: [17:49:08] * Shrike_Finland quit (Quit: Leaving.)
1419: [17:49:51] <r3v3rb> any mac people here?
1420: [17:55:10] <catcher> r3v3rb, I dabble when designers need a hand
1421: [17:57:55] * Shrike_Finland has joined #silverstripe
1422: [18:00:20] * r3v3rb quit (Quit: r3v3rb)
1423: [18:04:50] * Shrike_Finland quit (Quit: Leaving.)
1424: [18:08:03] * Shrike_Finland has joined #silverstripe
1425: [18:10:21] * gelignite has joined #silverstripe
1426: [18:35:44] * micmania1 has joined #silverstripe
1427: [18:39:06] * r3v3rb has joined #silverstripe
1428: [18:41:46] <micmania1> r3v3rb: did you get the extra featured image working?
1429: [18:41:57] <r3v3rb> haven’t even looked yet
1430: [18:42:11] <r3v3rb> micmania1: have you added it then to your module?
1431: [18:42:32] <micmania1> nah, you asked this morning how to add an extra image or something
1432: [18:46:58] * Error404NotFound quit (Ping timeout: 240 seconds)
1433: [18:59:11] * r3v3rb quit (Quit: r3v3rb)
1434: [19:00:09] * Error404NotFound has joined #silverstripe
1435: [19:00:50] * Error404NotFound quit (Read error: Connection reset by peer)
1436: [19:04:08] * Pyromanik has joined #silverstripe
1437: [19:08:34] * r3v3rb has joined #silverstripe
1438: [19:09:09] * Shrike_Finland quit (Quit: Leaving.)
1439: [19:09:31] <r3v3rb> micmania1: i did you are quite correct then I got caught in a conference call with a client requiring lots of nice expensive bespoke stuff adding to their site :)
1440: [19:09:59] <r3v3rb> so I dropped the blog stuff to do that instead :D money talks
1441: [19:10:17] <micmania1> lol
1442: [19:10:48] <r3v3rb> haha, well you know how it is
1443: [19:13:23] <r3v3rb> micmania1: are you mac based?
1444: [19:13:41] <micmania1> nah, windows
1445: [19:13:53] <r3v3rb> poop
1446: [19:13:55] <micmania1> windows 8 cos ima hipster
1447: [19:13:59] <r3v3rb> need a mac head
1448: [19:14:10] <Pyromanik> wholey hell motherfucking goats and shit
1449: [19:14:11] <Pyromanik> http://www.trueactivist.com/13-pictures-of-crazy-goats-on-cliffs/
1450: [19:15:04] <Pyromanik> micmania1, windows 8 is hipster? Well I suppose no one else is doing it, it's not popular...
1451: [19:15:05] <Pyromanik> :P
1452: [19:15:13] <r3v3rb> hmm, i guess thats why my wife still survives the push everytime I’m near a cliff - she’s a goat!
1453: [19:15:31] <r3v3rb> boom boom boom!
1454: [19:15:41] <r3v3rb> as basil brush once said
1455: [19:15:45] <Pyromanik> was that an astrology joke r3v3rb?
1456: [19:15:51] <r3v3rb> Pyromanik: OSX or Mac ?
1457: [19:15:59] <Pyromanik> Your wife is an Aquarius?
1458: [19:16:07] <r3v3rb> der... OSX or WIN?
1459: [19:16:17] <Pyromanik> 'coz Aries is a RAM, y'know... with a penis.
1460: [19:16:22] <r3v3rb> lmao
1461: [19:16:30] <r3v3rb> you’ve met her then?
1462: [19:16:37] <Pyromanik> r3v3rb, so like, just ask your f'n question already.
1463: [19:16:40] <Pyromanik> you know the rules of IRC!
1464: [19:16:56] <r3v3rb> that was the fucking question arsewipe - OSX or WIN
1465: [19:17:01] <r3v3rb> :P
1466: [19:17:08] <Pyromanik> http://i.qkme.me/3qt516.jpg
1467: [19:17:20] <Pyromanik> why does it matter r3v3rb?
1468: [19:17:33] <r3v3rb> because I’m a cunt and want to know
1469: [19:17:47] <r3v3rb> that good enough?
1470: [19:18:07] * r3v3rb might be in a bad mood...
1471: [19:18:33] <r3v3rb> micmania1: x86 or x86_64 ?
1472: [19:18:41] <Pyromanik> r3v3rb, can't blame a guy for that!
1473: [19:18:51] <Pyromanik> win7x32
1474: [19:18:57] <r3v3rb> right thank you :D
1475: [19:19:29] <r3v3rb> I have a new virus I would like you to try out if thats okay - can I send it?
1476: [19:19:30] <Pyromanik> also look at the goats!
1477: [19:19:35] <Pyromanik> r3v3rb,sure!
1478: [19:19:39] <r3v3rb> Sweet
1479: [19:19:41] <Pyromanik> I'd love to lose all my datas!
1480: [19:19:48] <Pyromanik> ps, I lied.
1481: [19:19:53] <r3v3rb> no data loss, just sends me all your monies
1482: [19:19:57] <Pyromanik> oh ok
1483: [19:20:02] <Pyromanik> ransom virus?
1484: [19:20:06] <r3v3rb> and deletes all pics of goats
1485: [19:20:22] <Pyromanik> https://www.youtube.com/watch?v=5P81o860FJg
1486: [19:20:24] <r3v3rb> which is nastier
1487: [19:20:29] <Pyromanik> women.
1488: [19:21:07] * r3v3rb liked tiesto before I lost my hair, had kids and got fat
1489: [19:21:15] <Pyromanik> haha
1490: [19:21:29] <micmania1> r3v3rb: x64
1491: [19:21:40] <micmania1> also, how did them goats even get up there
1492: [19:21:57] <Pyromanik> My chip is 64 bit, but os installed was 32, and so fuckit I'm just sticking with that because carefactor 0
1493: [19:22:04] <Pyromanik> ikr, them goats
1494: [19:24:19] <r3v3rb> https://dl.dropboxusercontent.com/u/46858914/pyro.zip | https://dl.dropboxusercontent.com/u/46858914/pyro.zip << virii please testicles
1495: [19:24:34] <r3v3rb> https://dl.dropboxusercontent.com/u/46858914/mic.zip << virii for micmania1 :D
1496: [19:25:02] <micmania1> what is it?
1497: [19:25:12] <r3v3rb> small email virus I created
1498: [19:25:28] <r3v3rb> for use as attachment - 80mb seemed like a good enough size
1499: [19:25:52] <r3v3rb> my code is only 12k, but .net added shit loads of libraries etc ;)
1500: [19:26:45] <r3v3rb> did it run okay?
1501: [19:27:11] <micmania1> what actually is it? I'm not kidding, its actually gave me a warning when I tried to download it lol
1502: [19:27:24] <r3v3rb> yeh, baby thats already working then
1503: [19:27:41] <micmania1> haha it didn't even download
1504: [19:28:01] <r3v3rb> it’s a little app I made compressed as a zip so virii checkers will biatch
1505: [19:28:20] <micmania1> a game?
1506: [19:28:21] <r3v3rb> desktop version of this: https://play.google.com/store/apps/details?id=com.mspacemedia.asteroid2012
1507: [19:29:02] <r3v3rb> thinking I might throw out a free copy on Mac and Windows now that it’s over two years old on mobile
1508: [19:29:32] <r3v3rb> needs some tweaks to the instructions but need to test on peoples machines - so hello beta testers :D
1509: [19:32:35] <r3v3rb> time to disappear, speak tomorrow chaps
1510: [19:35:44] <micmania1> r3v3rb: it broke
1511: [19:35:51] <r3v3rb> yay!
1512: [19:35:55] <micmania1> I couldn't use my keyboard when it started lol
1513: [19:36:02] <r3v3rb> excellent
1514: [19:36:09] <micmania1> i'll try again if u have 2 secs
1515: [19:36:11] <Pyromanik> micmania, so I was on my way home right
1516: [19:36:21] <Pyromanik> and I couldn't be fucked staring at the station wall for 40 mins
1517: [19:36:24] <r3v3rb> micmania1: i’ll take a look tomorrow
1518: [19:36:28] <Pyromanik> so I dropped by this really swanky looking place
1519: [19:36:31] <r3v3rb> then send again
1520: [19:36:32] <Pyromanik> wholey shit the swank.
1521: [19:36:38] <r3v3rb> thanks for trying though
1522: [19:36:49] <r3v3rb> night all
1523: [19:36:50] <Pyromanik> cocktail at 6pm Tuesday. Totally legit.
1524: [19:36:55] * r3v3rb quit (Quit: r3v3rb)
1525: [19:36:56] <Pyromanik> night r3v3rb!
1526: [19:36:59] <Pyromanik> oh ok
1527: [19:37:00] <Pyromanik> bl
1528: [19:39:29] <micmania1> Pyromanik: near the station?
1529: [20:08:21] * Ryan-Toast has joined #silverstripe
1530: [20:18:55] <Stomach> good morning
1531: [20:22:07] * UndefinedOffset quit (Quit: Leaving.)
1532: [20:26:11] <Ryan-Toast> Mooorining
1533: [20:39:17] * srixon has joined #silverstripe
1534: [20:39:55] <srixon> catcher => your code works very well. Thanks.
1535: [20:40:03] * nickmolhoek has joined #silverstripe
1536: [20:40:14] <catcher> srixon, glad to hear it, np
1537: [20:41:05] <srixon> muskie9 => when you mention this ** $email->setTemplate('email/TemplateMail1'); ** i presume you mean a .ss file into themes/mytheme/template/email/TemplateEmail1.ss ?
1538: [20:41:38] <srixon> And that that .ss file will be used as a foundation to the HTML sent by the form?
1539: [20:42:53] <muskie9> yes
1540: [20:44:16] <srixon> muskie9 => ok thanks. And i also presume that its best to build the .ss file using table and inline style, as usually done with HTML mails?
1541: [20:45:59] <muskie9> I usually do it that way... it's still read by email clients, so you want it to be as compatible as possible
1542: [20:46:46] <srixon> OK. I am into that as we speak. Will come back afterward. Later.
1543: [20:48:08] <srixon> The goog thing is that it takes out the obligation to use a newsletter module (be it APES or Newsletter). At least for what i need, no subscription to newsletter.
1544: [20:52:45] * srixon quit (Quit: Page closed)
1545: [20:55:04] * an_Eskimo has joined #silverstripe
1546: [20:59:14] * Pyromanik quit (Ping timeout: 240 seconds)
1547: [21:00:08] * micmania2 has joined #silverstripe
1548: [21:01:57] * micmania1 quit (Ping timeout: 240 seconds)
1549: [21:02:17] * micmania2 is now known as micmania1
1550: [21:04:08] * Pyromanik has joined #silverstripe
1551: [21:04:17] <Pyromanik> whups, that power cable :<
1552: [21:05:15] * travis-ci has joined #silverstripe
1553: [21:05:15] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2493 (master - 6d3f788 : Ingo Schommer): The build passed.
1554: [21:05:15] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/93cd339ff029...6d3f7887a62d
1555: [21:05:15] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24571252
1556: [21:05:15] * travis-ci has left #silverstripe
1557: [21:09:26] * UncleCheese has joined #silverstripe
1558: [21:10:19] * anselmdk quit (Quit: anselmdk)
1559: [21:17:31] * travis-ci has joined #silverstripe
1560: [21:17:31] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2494 (3.0 - ea1a0d1 : Ingo Schommer): The build passed.
1561: [21:17:31] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ddae5825b31a...ea1a0d16fc15
1562: [21:17:31] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24571315
1563: [21:17:31] * travis-ci has left #silverstripe
1564: [21:19:30] * antmas has joined #silverstripe
1565: [21:24:26] <antmas> morning all
1566: [21:32:27] <Ryan-Toast> sup
1567: [21:34:56] * UncleCheese quit (Quit: UncleCheese)
1568: [21:35:29] * UncleCheese has joined #silverstripe
1569: [21:44:10] * Azure quit (Quit: My MBP went to sleep.)
1570: [21:45:31] <Ryan-Toast> ss23: I’m following you...everywhere.
1571: [21:45:56] * Azure has joined #silverstripe
1572: [21:58:45] * Pyromanik quit (Ping timeout: 240 seconds)
1573: [22:04:51] <Turnerj> Hello!
1574: [22:08:33] <Ryan-Toast> Hai
1575: [22:10:06] * Stomach quit ()
1576: [22:16:45] <antmas> lol some big sweaty guy just ran in saying "help, help! I deleted a file and I can't get it back!"
1577: [22:17:37] * Pyromanik has joined #silverstripe
1578: [22:17:45] <guzzlefry> haha
1579: [22:17:47] <guzzlefry> what?
1580: [22:17:51] <guzzlefry> antmas: Where do you work?
1581: [22:18:24] <Pyromanik> antmas, ss23, Ryan-Toast, guzzlefry, http://logs.simon.geek.nz/index.php?date=2014-05-07#log_1274324 Giganaire FrozenFire
1582: [22:18:38] <Pyromanik> enjoy
1583: [22:18:46] <Pyromanik> peace out
1584: [22:18:49] * Pyromanik quit (Client Quit)
1585: [22:19:13] <Ryan-Toast> these goats be cray.
1586: [22:19:30] <antmas> GoatLife
1587: [22:19:43] <antmas> guzzlefry: at a local govt. body
1588: [22:19:53] <guzzlefry> ah
1589: [22:19:58] <antmas> guzzlefry: I sit across the room from helpdesk and see stuff like that all the time :P
1590: [22:20:00] <antmas> makes me chuckle
1591: [22:22:10] * simon_w|air has joined #silverstripe
1592: [22:22:33] * priithansen quit (Quit: priithansen)
1593: [22:23:04] <Ryan-Toast> MAn, there are a lot of form fields.
1594: [22:23:13] <Ryan-Toast> Have to style them all.
1595: [22:25:36] <antmas> Ryan-Toast: you have to style them all?
1596: [22:25:46] <Ryan-Toast> antmas: well I don’t have to, but I am./
1597: [22:25:58] <antmas> Ryan-Toast: do you use all of them?
1598: [22:26:06] <Ryan-Toast> antmas: No, but someone may.
1599: [22:26:13] <antmas> true
1600: [22:26:34] <antmas> those feature-loving bastards
1601: [22:27:11] * muskie9 quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1602: [22:28:17] * Colin[pi] has joined #silverstripe
1603: [22:28:48] <antmas> co co co co co co CO CO CO CO Colin[pi] !!!!
1604: [22:29:01] <Colin[pi]> :O
1605: [22:29:01] <Colin[pi]> <3
1606: [22:29:15] <Colin[pi]> morning good sir
1607: [22:29:33] <antmas> moin
1608: [22:30:42] <simon_w|air> I SEE HOW IT IS
1609: [22:31:28] <ss23> morning all
1610: [22:35:14] <antmas> ss23: morning
1611: [22:42:01] <Colin[pi]> simon_w|air: morning
1612: [22:42:05] <Colin[pi]> ss23: morning
1613: [22:43:23] <antmas> ss23: le howdy
1614: [22:44:11] <antmas> has anyone ever tried importing users from an AD instance into SS?
1615: [22:45:09] <Colin[pi]> antmas: fuck no
1616: [22:45:29] <antmas> Colin[pi]: we have AD authentication here, which isn't a big deal
1617: [22:45:51] <simon_w|air> antmas, just build an authenticator that uses it!
1618: [22:47:25] * antmas_ has joined #silverstripe
1619: [22:47:33] <antmas_> Colin[pi]: but importing is another beast
1620: [22:48:10] <ss23> antmas: Not that I know of, because that would be stupid
1621: [22:48:10] <ss23> :P
1622: [22:48:27] <antmas_> ss23: I know :P
1623: [22:48:27] <ss23> A few clients authenticate against AD, and as part of the authenticator, will "create" an SS user for everyone that loigs in
1624: [22:48:31] <ss23> But no reason to do a perm import
1625: [22:48:40] <antmas_> ^^ this
1626: [22:49:11] <antmas_> I tried explaining this to a friend who is attempting it
1627: [22:49:19] <ss23> lol
1628: [22:49:25] <antmas_> -_-
1629: [22:49:48] * antmas quit (Ping timeout: 240 seconds)
1630: [22:52:48] * antmas_ is now known as antmas
1631: [22:55:34] * Azure quit (Ping timeout: 240 seconds)
1632: [23:04:22] * jenniferaslan quit (Quit: jenniferaslan has left the room)
1633: [23:04:59] <Colin[pi]> ss23: pls be sure to pass on my gratitude to SS for the spam I receive via the community showcase ;P
1634: [23:05:09] * Azure has joined #silverstripe
1635: [23:05:36] <ss23> lol
1636: [23:05:55] <Colin[pi]> just received another email for a "business partnership"
1637: [23:05:59] <Colin[pi]> uh huh
1638: [23:06:15] <Colin[pi]> and I get a monthly phone call from some company in India
1639: [23:06:26] <Colin[pi]> "Hi Colin just wondering if..." "No."
1640: [23:06:32] <Colin[pi]> "Ok, same time next month?"
1641: [23:13:55] <Colin[pi]> mm, warm vibrating feet
1642: [23:15:36] <simon_w|air> TMI!
1643: [23:15:37] <antmas> Colin[pi]: lol love that
1644: [23:16:16] <antmas> I've got something similar in that I reported to a bug to a software company and now the ring me everyday to test their fix
1645: [23:16:30] <antmas> lol, 'I was just letting you know!'
1646: [23:16:40] <Colin[pi]> antmas: ugh
1647: [23:18:17] * jcwacky quit (Ping timeout: 264 seconds)
1648: [23:21:15] <Ryan-Toast> I just ignore clients for a day, they usually figure out that it was keyboard error.
1649: [23:21:43] <Colin[pi]> wow that sucks, it's a really good windows client: http://www.metrotwit.com/2014/03/sunsetting-metrotwit-all-good-things-must-come-to-an-end/
1650: [23:26:15] <simon_w|air> Colin[pi], you have a mac now. You can actually get good twitter clients :p
1651: [23:26:45] <Colin[pi]> simon_w|air: yeah but I don't use the mac until I travel, have a meeting, or sit in bed :P
1652: [23:26:58] <simon_w|air> Sucks to be you then :p
1653: [23:27:02] <simon_w|air> As an aside, I'm in bed!
1654: [23:27:17] <Colin[pi]> lol
1655: [23:27:18] * travis-ci has joined #silverstripe
1656: [23:27:18] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#878 (3.1 - bae9580 : Damian Mooyman): The build passed.
1657: [23:27:18] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/f2c2ffabbcd9...bae95805dd53
1658: [23:27:18] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/24578135
1659: [23:27:18] * travis-ci has left #silverstripe
1660: [23:27:21] <Colin[pi]> your new office?
1661: [23:28:54] * travis-ci has joined #silverstripe
1662: [23:28:55] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2502 (3.1 - 58d2535 : Damian Mooyman): The build passed.
1663: [23:28:55] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5a69cf67ff19...58d25350825a
1664: [23:28:55] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24581432
1665: [23:28:55] * travis-ci has left #silverstripe
1666: [23:31:13] <simon_w|air> Nah, the other laptop doesn't work that well from in bed
1667: [23:34:48] <Colin[pi]> cool, live stream from ISS: http://www.ustream.tv/channel/iss-hdev-payload
1668: [23:35:11] * spronkey has joined #silverstripe
1669: [23:36:24] * spronkey is now known as spronk
1670: [23:38:59] <Colin[pi]> ss23: cheeky bastard
1671: [23:39:12] <ss23> :3
1672: [23:39:17] <ss23> You left yourself open to it!
1673: [23:40:28] <Colin[pi]> lol "why can't I hear anything" in the chat... um because it's space you idiot
1674: [23:42:19] <spronk> ??
1675: [23:42:22] * travis-ci has joined #silverstripe
1676: [23:42:23] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2503 (3.1 - 617827d : Damian Mooyman): The build passed.
1677: [23:42:23] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/58d25350825a...617827d3eda5
1678: [23:42:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/24582143
1679: [23:42:23] * travis-ci has left #silverstripe
1680: [23:43:47] <Colin[pi]> spronk: was watching this: http://www.ustream.tv/channel/iss-hdev-payload
1681: [23:48:02] <spronk> ahh
1682: [23:49:53] <Turnerj> I checked out the iss stream the other day but was just the grey screen
1683: [23:54:19] <antmas> Colin[pi]: oh my god
1684: [23:54:26] <antmas> it's beautiful
1685: [23:55:21] * antmas makes this his screensaver
1686: [23:56:08] * antmas forgets how to do this ^^^
1687: [23:59:07] <antmas> Colin[pi]: the live chat on this is hillarious

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