#silverstripe IRC Log

IRC log for 7 November 2013

Logging kindly sponsored by Stripe The Net: Hosting and Deployment, made simple.

All timestamps are in AET (Australian Eastern Time).

1: [00:02:16] <bp01> Hmm ok..
2: [00:04:10] * toebu quit (Ping timeout: 245 seconds)
3: [00:09:54] * UndefinedOffset has joined #silverstripe
4: [00:13:06] * svandragt has joined #silverstripe
5: [00:16:38] <svandragt> bp01: I think you might have replaced the homepage then this happens, but I can't remember the solution.
6: [00:17:10] <svandragt> bp01: if so, in the future, convert the page into the pagetype you want (well this is in 3.0 anyway)
7: [00:18:58] <svandragt> bp01: if you have a backup, perhaps you could try deleting the homepage and run /dev/build maybe it will create a new one without the home?
8: [00:20:09] <svandragt> if you find the answer: http://www.silverstripe.org/general-questions/show/20329
9: [00:36:25] <bp01> svandragt: The company I work for have several old 2.4.5 sites, and they all have this problem. Aupgrading doesn't seem to be an option... :-( I have
10: [00:36:38] <bp01> erhh.
11: [00:36:59] <bp01> Thanks for your input, I'll search around a bit more!
12: [00:38:37] <bp01> Btw, I don't think it's the same problem as in the link you provided. All the other pages work fine, i.e. they don't get prefixed with /home. The problem is I can't get rid of /home from www.site.com/home.
13: [00:39:35] * kinglozzer is wondering how car tyres can be so expensive >:(
14: [00:45:04] <ec8or_> how can i use columns returned by a join in a where statement for ss3?
15: [00:45:09] <ec8or_> like this: http://www.sspaste.com/paste/show/527a45da963ac
16: [00:45:31] <ec8or_> i get unknown column for anything on the joined table
17: [00:46:58] <kinglozzer> ec8or_: Shouldn't you use ->leftJoin() instead of doing it all in the one method?
18: [00:47:08] <ec8or_> yeah that is old 2.4 code
19: [00:47:19] <ec8or_> can't get it to work with leftJoin
20: [00:50:51] <ec8or_> i should probably have a look at improving the data base structure as well :)
21: [01:04:04] <NobrainerWeb> How do i know who (member) created a page or a blogentry?
22: [01:04:48] <NobrainerWeb> I'm trying to do a modeladmin for managing blogposts, and i only want members to see and edit own blogentries
23: [01:11:51] * zippy__ quit (Ping timeout: 245 seconds)
24: [01:12:02] * toebu has joined #silverstripe
25: [01:21:57] * jrthomer has joined #silverstripe
26: [01:24:35] * zippy__ has joined #silverstripe
27: [01:25:31] * spronk2 quit (Quit: spronk2)
28: [01:28:45] * toebu quit (Ping timeout: 245 seconds)
29: [01:48:07] * Alexwijn has joined #silverstripe
30: [01:48:57] <Alexwijn> Does Silverstripe have a log?
31: [01:52:10] <kinglozzer> It can do: http://doc.silverstripe.org/framework/en/topics/error-handling#filesystem-logs
32: [01:53:11] * pathum has joined #silverstripe
33: [01:55:15] <Alexwijn> got it
34: [01:59:19] * bp01 quit ()
35: [02:04:22] * NobrainerWeb quit (Quit: NobrainerWeb)
36: [02:06:51] * phpathum_ has joined #silverstripe
37: [02:07:03] * catcher has joined #silverstripe
38: [02:07:25] * pathum quit (Ping timeout: 272 seconds)
39: [02:16:55] * DesignerX quit (Ping timeout: 272 seconds)
40: [02:19:18] * pathum has joined #silverstripe
41: [02:22:44] * phpathum_ quit (Ping timeout: 246 seconds)
42: [02:23:22] * violetina quit (Remote host closed the connection)
43: [02:24:41] * violetina has joined #silverstripe
44: [02:30:46] * spronk2 has joined #silverstripe
45: [02:30:53] * spronk2 quit (Client Quit)
46: [02:31:25] * phpathum_ has joined #silverstripe
47: [02:34:09] * pathum quit (Ping timeout: 240 seconds)
48: [02:48:55] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
49: [02:49:42] <Alexwijn> Does anyone know a good module where you can edit themes
50: [02:49:55] <Alexwijn> Without coding knowledge
51: [02:50:22] <Alexwijn> So the designer will create a some kind of editor page for the user
52: [02:50:27] <Alexwijn> So he can change for example the color
53: [02:50:31] <Alexwijn> or a slider
54: [02:52:29] * pathum has joined #silverstripe
55: [02:52:37] <catcher> Alexwijn, I believe you'd be looking for a theme that supports that, rather than a module.
56: [02:53:29] <catcher> I can't say whether or not one already exists, but it'd be nice to build one if it doesn't.
57: [02:55:07] * phpathum_ quit (Read error: Connection reset by peer)
58: [02:56:10] <Alexwijn> Is that possible for SS?
59: [02:56:20] <Alexwijn> That a theme can add a page onto the cms?
60: [03:00:09] * Colin[pi] has joined #silverstripe
61: [03:00:46] <catcher> Alexwijn, it'd require an accompanying module, I suppose
62: [03:02:05] <Alexwijn> So SS does no offer this?
63: [03:02:28] <Alexwijn> Is it possible that a module read data from a theme
64: [03:02:33] <Alexwijn> For example code
65: [03:02:36] <Alexwijn> for a form
66: [03:06:08] * Sjohn quit ()
67: [03:11:19] <kinglozzer> Anyone who's familiar with Injector care to take a look at this? http://pastie.org/8460035. I'm sure I can probably do that much more easily with Injector...
68: [03:12:50] * phpathum_ has joined #silverstripe
69: [03:15:28] * pathum quit (Ping timeout: 264 seconds)
70: [03:18:15] * pathum has joined #silverstripe
71: [03:20:05] * Zauberfisch has joined #silverstripe
72: [03:21:15] * phpathum_ quit (Ping timeout: 245 seconds)
73: [03:21:38] * phpathum_ has joined #silverstripe
74: [03:22:00] * Zauberfisch quit (Client Quit)
75: [03:23:41] * pathum quit (Ping timeout: 272 seconds)
76: [03:23:58] <Marvanni2> where can I find the default PasswordValidator settings?
77: [03:25:38] <kinglozzer> PasswordValidator.php?
78: [03:27:09] <Marvanni2> yeah, I got that, but I wondered if there are set some minimal requirements by default
79: [03:28:05] <kinglozzer> As far as I know Member just uses that standard configuration
80: [03:28:08] * pathum has joined #silverstripe
81: [03:31:19] * phpathum_ quit (Ping timeout: 244 seconds)
82: [03:37:52] * jcwacky has joined #silverstripe
83: [03:38:46] <jcwacky> What do I need to add to my extension to change a Page type's name?
84: [03:38:53] <jcwacky> private static $singular_name = 'Single Submission Form'; doesn't seem to be having any effect.
85: [03:42:44] <Zauberfisch23> jcwacky: nothing
86: [03:42:50] <Zauberfisch23> extensions are not the place to do that
87: [03:42:54] <Zauberfisch23> use language files
88: [03:43:37] <jcwacky> Ahh, that's a new one for me. I'll take a look.
89: [03:43:41] <jcwacky> Thanks.
90: [03:43:59] <Zauberfisch23> jcwacky:
91: [03:44:16] <Zauberfisch23> ZauberfischIsAwesomePage:
92: [03:45:03] <Zauberfisch23> SINGULARNAME: 'awesome zauberfisch is awesome'
93: [03:45:15] <Zauberfisch23> PLURALNAME: 'awesome zauberfisches are awesome'
94: [03:45:31] <Zauberfisch23> /mysite/lang/en.yml
95: [03:45:42] <Zauberfisch23> make sure you use 2 spaces for indentation, not tabs
96: [03:52:26] <jcwacky> Thanks, but struggling to get it to take effect.
97: [03:52:40] <jcwacky> Think it might be because I'm trying to rename UserDefinedForm
98: [03:52:57] <jcwacky> And the 'userforms' dir comes after 'mysite'?
99: [03:52:59] <Zauberfisch23> did you forget to flush?
100: [03:53:08] <jcwacky> Flushed several times.
101: [03:53:18] <Zauberfisch23> not sure about the include order of lang files
102: [03:55:46] <jcwacky> Hmm, saying that, removing SINGULARNAME from userforms/lang/en.yml doesn't seem it help.
103: [03:56:39] <jcwacky> Ah, no, it did make it work for DESRIPTION
104: [03:57:09] <Zauberfisch23> jcwacky: if lang file really doesn't work, you can always update the config in php
105: [03:57:42] <Zauberfisch23> I think that should be possible for lang files aswell as for config files
106: [03:57:50] <Zauberfisch23> but I would need to look into that
107: [03:58:02] <jcwacky> Yeh, looks like UserDefinedForm gets SINGULARNAME from it's PHP file, but DESCRIPTION from it's lang file.
108: [03:58:14] <Zauberfisch23> no, thats not what I mean
109: [03:58:39] <Zauberfisch23> or I am pretty sure that UDF does not set the title in php, that would be bad
110: [03:59:03] * phpathum_ has joined #silverstripe
111: [03:59:24] <Zauberfisch23> setting silverstripe configs that are possible with yml should be set with yml or private statics, everything else is bad practice
112: [04:00:23] <jcwacky> Ah, sorry yeh. I've got it now, it was also defined in en_GB & en_US as well as en.yml
113: [04:00:35] * pathum quit (Ping timeout: 260 seconds)
114: [04:01:51] <jcwacky> Presume it should really just be defined in en.yml, as it's the same in both GB & US
115: [04:03:06] * kinglozzer quit ()
116: [04:03:10] * lerni quit (Quit: lerni)
117: [04:09:11] <jcwacky> Hmm, so my custom en_US.yml file appears to work fine overwriting values set in /userforms/lang/en.yml, but it's not overwriting values set in userforms/lang/en_US.yml
118: [04:11:34] <catcher> jcwacky, did you /dev/build?
119: [04:11:49] * svandragt quit (Ping timeout: 272 seconds)
120: [04:12:22] <catcher> jcwacky, well, that seems it applied when I only read the first few lines of the chat :)
121: [04:18:22] <jcwacky> ok, solved it my moving my /lang directory from /mysite to /zlang!
122: [04:27:38] * phpathum_ quit (Ping timeout: 244 seconds)
123: [04:37:14] * svandragt has joined #silverstripe
124: [04:37:57] * SMaction has left #silverstripe
125: [04:47:35] <Alexwijn> What is priority of a ss file?
126: [04:47:47] <Alexwijn> If I put a ss file in the theme folder
127: [04:47:57] <Alexwijn> Can it be overritten by a module
128: [04:48:13] <Alexwijn> or does a module override that
129: [04:55:00] <AlphaCactus> eh, I think themes override site which overrides modules which overrides framework/cms. but i'm not real sure about that.
130: [04:56:37] <Alexwijn> One way to find out :)
131: [04:58:30] <Alexwijn> Any advice you can give me for the following
132: [04:58:40] <Alexwijn> I want to create a slider module, but want to make it globally so all themes can use
133: [04:58:53] <Alexwijn> Ofcourse every theme can adjust if they need adjustments for css or something
134: [04:59:17] <Alexwijn> But the slider must be available globally in the theme
135: [04:59:27] <Alexwijn> And there need to be setting in the CMS
136: [04:59:29] <Alexwijn> to add images for it
137: [05:06:50] <Alexwijn> Anything?
138: [05:07:38] <AlphaCactus> yikes, that would require thinking.
139: [05:07:49] <Alexwijn> :)
140: [05:09:17] <Alexwijn> Maybe that a theme can define a slider name by id
141: [05:09:26] <Alexwijn> And that you get a new tab at settings
142: [05:09:29] <Alexwijn> where you can edit the slider
143: [05:10:07] * SightUnseen has joined #silverstripe
144: [05:12:35] * SightUnseen has left #silverstripe
145: [05:14:32] * svandragt quit (Ping timeout: 272 seconds)
146: [05:27:26] <Alexwijn> How to a ModelAdmin to the settings apge?
147: [05:27:27] <Alexwijn> page*
148: [05:27:34] <Alexwijn> Rather having it own menu
149: [05:32:10] * simon_w quit (Quit: This computer has gone to sleep)
150: [05:34:53] <Alexwijn> Or is that not possible?
151: [05:39:19] <Zauberfisch23> Alexwijn: you mean as in a admin section like model admin but not with a grid? yes its possible, in fact it already exists, the settings admin
152: [05:39:25] <Zauberfisch23> just look at the code of it
153: [05:39:49] <Alexwijn> I want a ModelAdmin inside the Settings Menu Page
154: [05:39:57] <Alexwijn> As a diffent tab
155: [05:40:08] <Alexwijn> So then it becomes tab in tab
156: [05:42:09] <Alexwijn> Do you understand?
157: [05:42:35] <Alexwijn> A ModelAdmin as Tab in the SiteConfig
158: [05:42:38] <Alexwijn> page
159: [05:44:13] <Alexwijn> hm
160: [05:46:25] <Alexwijn> Is this possible?
161: [05:47:45] <Alexwijn> I tried adding this: private static $tree_class = 'SiteConfig';
162: [05:47:49] <Alexwijn> But that does not work
163: [06:06:43] <AlphaCactus> model admin is just a gridfield really. so could you do just a gridfield?
164: [06:10:37] <AlphaCactus> Something like this maybe: http://kh.designkh.com/assets/Screenshot_4.png but its not a ModelAdmin
165: [06:13:24] * coldhand_ is now known as coldhand
166: [06:16:23] * simon_w has joined #silverstripe
167: [06:17:05] * antmas has joined #silverstripe
168: [06:17:29] <antmas> mernin
169: [06:18:25] <antmas> holy crap, xero went up again?
170: [06:18:30] <antmas> O.o
171: [06:24:56] <simon_w> Gotta have some company that can do no wrong :p
172: [06:29:14] <antmas> simon_w: I just wish I invested :P
173: [06:29:36] <simon_w> You know what company would've been awesome to invest in? Apple :p
174: [06:31:31] <simon_w> You know, just before Steve came back
175: [06:31:46] <antmas> simon_w: I guess
176: [06:32:17] <simon_w> I know people that bought houses because of what happened with their Apple stock
177: [06:32:19] <antmas> but imagine if it were invested in Xero and how rich you could have gotten in less than 3 weeks
178: [06:32:26] <antmas> yeah
179: [06:32:54] <antmas> shit is going to crash though
180: [06:32:57] <antmas> surely
181: [06:33:39] <simon_w> Apple is a great case of how screwed up the stock market is. Consistently exceeds expectations, but stock still going down
182: [06:37:22] <antmas> I don't think it has anything to do with any companies anymore, it's all just algorithm swarms and seasonal changes now
183: [06:41:33] <Alexwijn> AlphaCactus, yeah like that
184: [06:41:45] <Alexwijn> Only for example "Windows" is a ModelAdmin
185: [06:43:27] * nickmolhoek has joined #silverstripe
186: [06:44:11] <AlphaCactus> you could put a Gridfield in side windows... I think ModelAdmin wants to take over all of the the main area of the CMS.
187: [06:45:37] <Alexwijn> I guess I'll keep it in the menu for now
188: [06:45:51] <Alexwijn> Need to finish everything in less then 45minutes :)
189: [06:46:01] <AlphaCactus> that always works
190: [06:46:22] * CodeTrap has joined #silverstripe
191: [06:46:23] <Alexwijn> How to retrieve DataObject inside the template
192: [06:46:28] <Alexwijn> I need to use an extension
193: [06:46:29] <Alexwijn> ?
194: [06:46:35] <Alexwijn> for Page.php
195: [06:46:42] <AlphaCactus> you can write stuff right in page
196: [06:46:49] <Alexwijn> It is a module
197: [06:46:50] * pippy_ is now known as pippe
198: [06:46:53] * pippe is now known as pippy
199: [06:46:59] <AlphaCactus> oh.
200: [06:49:33] * Ryan-Toast has joined #silverstripe
201: [06:50:26] * chillu quit (Quit: chillu)
202: [06:50:53] <Alexwijn> So how can I retrieve it?
203: [06:51:27] * Pyromanik has joined #silverstripe
204: [06:52:49] * chillu has joined #silverstripe
205: [06:53:09] <Alexwijn> never mind, found it
206: [06:56:14] * UncleCheese has joined #silverstripe
207: [07:02:17] * DigNZ has joined #silverstripe
208: [07:06:59] * pippy quit (Ping timeout: 272 seconds)
209: [07:10:21] <AlphaCactus> how u do it
210: [07:13:43] <Alexwijn> What you mean
211: [07:13:57] * pippy has joined #silverstripe
212: [07:14:26] <Alexwijn> Is it just me or are Requirements very buggy
213: [07:15:13] <zippy__> What you mean?
214: [07:15:18] <Alexwijn> I created a DataExtension, add it Page
215: [07:15:23] <Alexwijn> And add this to init
216: [07:15:28] <Alexwijn> Requirements::javascript('jquery_cycle/javascript/jquery.cycle.min.js');
217: [07:15:32] <Alexwijn> But did does not get included
218: [07:15:42] <Alexwijn> Before I had problems witht his too
219: [07:15:49] <Alexwijn> Sollution, a lot of refreshes and flushes
220: [07:16:00] <Alexwijn> But now, that does not work
221: [07:17:34] <Pyromanik> zippy__: What you say?
222: [07:17:45] <Pyromanik> Someone set up us the bomb.
223: [07:18:00] <Pyromanik> take off every zig!
224: [07:18:33] <Pyromanik> Alexwijn: I don't think there is an init on dataextension.
225: [07:18:49] <Alexwijn> Ah
226: [07:18:50] <Alexwijn> Goit it
227: [07:18:58] <Alexwijn> I set it on where I needed it
228: [07:19:01] <Alexwijn> At the get function
229: [07:20:01] <guzzlefry> Using SilverStripe as a backend for mod_auth_mysql
230: [07:20:05] <guzzlefry> SEE IF I WON'T
231: [07:24:12] <Pyromanik> Hey just a thought
232: [07:24:31] <Pyromanik> does yml config violate open/closed priciple?
233: [07:24:41] <Pyromanik> well, specifically being able to modifly db, etc?
234: [07:25:01] <guzzlefry> question
235: [07:25:10] <guzzlefry> shouldn't composer install pull in a .htaccess file?
236: [07:25:12] <simon_w> You mean like you used to be able to do from your _config.php?
237: [07:25:25] <simon_w> guzzlefry, only if you're installing silverstripe-installer
238: [07:25:54] <guzzlefry> hm, odd
239: [07:27:43] <guzzlefry> I need some type of skelton SS install to work with. :/
240: [07:27:52] <guzzlefry> maybe a scirpt to harass me about steps I forget.
241: [07:28:11] * zfmf has left #silverstripe
242: [07:28:29] <simon_w> Zauberfisch has a silverstripe-bootstrap type thing that has a bunch of modules and defaults and stuff
243: [07:28:52] <Pyromanik> we have one too, because fuck composer
244: [07:29:45] <Ryan-Toast> What does HeadingLevel do for fields?
245: [07:29:46] <guzzlefry> I actually like Composer. :P
246: [07:30:10] <simon_w> Ryan-Toast, for HeaderFields it sets the number in the <h#> tag
247: [07:30:17] <Ryan-Toast> Ah, coolio.
248: [07:30:21] <Ryan-Toast> cheers.
249: [07:30:27] * simon_w mentions composer way too much: http://logs.simon.geek.nz/stats.php#composer
250: [07:30:52] <Ryan-Toast> I have a skeleton that I'm working on to learn SS: https://github.com/Rhym/ss_boilerplate
251: [07:31:11] <guzzlefry> hm
252: [07:31:17] * antmas_ has joined #silverstripe
253: [07:31:33] * antmas quit (Ping timeout: 250 seconds)
254: [07:31:54] <catcher> ffs
255: [07:31:54] <catcher> Nick Number times used
256: [07:31:54] <catcher> Pyromanik 136
257: [07:31:54] <catcher> catcher 54
258: [07:32:04] <guzzlefry> simon_w: Is there a simple way to use just the CMS? Currently I have composer pulling in cms and framework. It seems i also need a module with $databaseConfig set.
259: [07:32:24] <catcher> Interesting.. must be something else contains ffs for me.
260: [07:32:36] <catcher> Pyromanik, on the other hand..
261: [07:32:52] <simon_w> guzzlefry, well, it needs to know how to talk to the database
262: [07:32:59] <simon_w> I just use _ss_environment.php
263: [07:33:25] <guzzlefry> To set the database as well?
264: [07:33:28] <Alexwijn> Is it possible to have a hidden administrator?
265: [07:33:28] <guzzlefry> database name
266: [07:34:31] <simon_w> guzzlefry, yes, SS_DATABASE_NAME or SS_DATABASE_CHOOSE_NAME (the one I use)
267: [07:34:35] <simon_w> Alexwijn, no
268: [07:34:53] <guzzlefry> thanks
269: [07:35:28] <Pyromanik> ffs catcher, why you gotta go bringing that up?
270: [07:35:31] <Pyromanik> xP
271: [07:35:57] <Pyromanik> SS_DATABASE_NAME
272: [07:35:58] <Pyromanik> REALLY?
273: [07:36:07] <Pyromanik> pretty sure that never used to be there :<
274: [07:36:12] <Pyromanik> only prefix and suffix!
275: [07:36:20] <simon_w> yeah, it's rather recent
276: [07:36:22] <guzzlefry> hm so
277: [07:36:25] <Pyromanik> simon_w: ah, cool
278: [07:36:31] <simon_w> cause SS_DATABASE_CHOOSE_NAME is so much more better
279: [07:36:46] <Pyromanik> I have (if not defined SS_DATABASE_CHOOSE_NAME) $database = 'blah';
280: [07:36:50] <Pyromanik> in my _config.php
281: [07:37:09] <Pyromanik> for live sites vs devs which use folder name
282: [07:37:17] <guzzlefry> If my silverstripe files are in web-admin/, and I have SS_DATABASE_CHOOOSE_NAME, Silverstripe will look for the ss_web-admin database?
283: [07:37:26] <Pyromanik> yes
284: [07:37:29] <Pyromanik> well
285: [07:37:33] <Pyromanik> depends on what you defined it as
286: [07:37:37] <guzzlefry> 1
287: [07:37:39] <Pyromanik> 1 will give you web-admin
288: [07:37:50] <Pyromanik> 2 will give you this(/web-admin)
289: [07:37:55] * guzzlefry wonders how he missed that while reading the docs.
290: [07:37:56] <Pyromanik> etc
291: [07:38:12] <Pyromanik> quick
292: [07:38:25] <Pyromanik> what does the u modifier flag do to a regex?
293: [07:38:31] <Pyromanik> first to answer wins a prize
294: [07:38:39] <simon_w> unicode support
295: [07:38:47] <Pyromanik> boom, 10 points for simon_w :D
296: [07:39:00] <Pyromanik> cheers :)
297: [07:41:30] <guzzlefry> oh wait
298: [07:41:42] <guzzlefry> I don't think web-admin would be a vaild database name. >_>
299: [07:42:01] <simon_w> It is
300: [07:42:48] <guzzlefry> in MySQL?
301: [07:42:58] <guzzlefry> I figured the - would throw it off.
302: [07:43:00] <AlphaCactus> ya
303: [07:43:13] <guzzlefry> Unless I need to escape it with ""?
304: [07:43:19] <AlphaCactus> can have _ or -
305: [07:44:48] <guzzlefry> yeah, it's yelling at me about the -
306: [07:47:21] <guzzlefry> hrm
307: [07:47:46] <guzzlefry> SilverStripe Framework requires a $databaseConfig defined.
308: [07:47:48] <simon_w> Yes, you have to quote it
309: [07:48:01] <simon_w> have you defined the server, user and password as well?
310: [07:48:06] <guzzlefry> yep
311: [07:48:17] <simon_w> Where's your _ss_environment.php?
312: [07:48:23] <simon_w> Using the default mysite/_config.php?
313: [07:48:29] <guzzlefry> oh
314: [07:48:38] <guzzlefry> I might need that?
315: [07:49:27] <simon_w> Well, your _config.php needs to set the $project value and include conf/ConfigureFromEnv.php
316: [07:49:28] <guzzlefry> _ss_environment.php is in /var/www/web-admin/
317: [07:54:20] <guzzlefry> "Setting up the database; you will be returned to your site shortly...."
318: [07:54:26] <guzzlefry> That shouldn't take more than a minute should it?
319: [07:54:44] <simon_w> Depends how much it needs to do and how slow your machine is
320: [07:55:09] <guzzlefry> It's...in the cloud! >_>
321: [07:55:35] <guzzlefry> okay so, I guess I need a basic template for this to work.
322: [07:58:51] <simon_w> Bah, http_build_url() is only available in pecl
323: [07:59:15] * zfmf has joined #silverstripe
324: [08:00:25] <guzzlefry> okay so
325: [08:00:30] <guzzlefry> adding a template didn't help.
326: [08:00:44] <guzzlefry> /admin is blank.
327: [08:00:52] <guzzlefry> err
328: [08:01:03] <guzzlefry> /Security/login rather
329: [08:01:44] <guzzlefry> oh ffs
330: [08:05:26] * micmania1 has joined #silverstripe
331: [08:05:34] <guzzlefry> So I guess all I really need are a theme and a skeleton site module that I can pull in with Composer.
332: [08:09:39] <micmania1> guzzlefry, hows the ecommerce coming along?
333: [08:09:55] <guzzlefry> dude..
334: [08:10:07] <guzzlefry> Another project now has priority. :P
335: [08:10:26] <micmania1> haha I hate that.
336: [08:10:32] <guzzlefry> After I set this mod_auth_mysql thing to use SilverStripe's member database.
337: [08:11:02] <micmania1> http://awesomescreenshot.com/0101xbx5d3 - I'm pimping mine up :)
338: [08:12:10] <simon_w> Woo, time to implement http://svn.php.net/viewvc/pecl/http/branches/DEV_2/php_http_url.c?view=markup#l186 and http://svn.php.net/viewvc/pecl/http/branches/DEV_2/php_http_url.h?view=markup#l51 in user land!
339: [08:12:44] <guzzlefry> micmania1: SS_shop?
340: [08:12:49] <guzzlefry> forget the name of it :P
341: [08:13:09] <micmania1> nah, custom. Didn't like the others
342: [08:13:20] <guzzlefry> oh, nice
343: [08:14:17] <micmania1> It still has a LONG way to go though
344: [08:16:07] <guzzlefry> What's left?
345: [08:16:56] <micmania1> EVERYTHING!!
346: [08:17:00] <guzzlefry> :(
347: [08:17:05] <micmania1> I'm just building components atm
348: [08:17:11] <micmania1> and linking models etc.
349: [08:17:13] * UndefinedOffset quit (Quit: Leaving.)
350: [08:17:35] <guzzlefry> I have the checkout process stuff and the backend order management left.
351: [08:17:40] <guzzlefry> But mine is very bare-bones.
352: [08:18:14] <micmania1> Mines just a personal project so i'm doing it with all the trimmings
353: [08:18:30] <guzzlefry> ...masochist :P
354: [08:18:42] <guzzlefry> well actually
355: [08:19:00] <guzzlefry> I'd be having fun with this if I wasn't in a rush.
356: [08:20:39] <antmas_> the idea of doing that makes my head hurt
357: [08:20:47] <antmas_> Shopify all the things!
358: [08:22:47] * Jakx has joined #silverstripe
359: [08:23:30] * [BNC]bull5hit quit (Quit: bye)
360: [08:25:39] <Ryan-Toast> Can I do: $sqlQuery->orderBy = 'RAND()'; in a query?
361: [08:26:17] <Ryan-Toast> going to send that query a rand, bitches love rand.
362: [08:29:47] <guzzlefry> I remember RAND() being bad.
363: [08:30:50] <Jakx> simon_w, I believe javascript parsed in the CMS's preview iframe are interrupting the CMS behavior. Do you know any obvious reasons why this may be happening?
364: [08:37:13] * UncleCheese quit (Quit: UncleCheese)
365: [08:37:35] <antmas_> hmmm
366: [08:38:03] <antmas_> if I delete everything in /assets/_combined files, then view the a page in the CMS/frontend, those js files should regenerate, right?
367: [08:43:56] <simon_w> yes
368: [08:44:02] * spronk has joined #silverstripe
369: [08:44:39] <ss23> Some of our deployment scripts will expliiclty delete those files to get them to regenerate, antmas_
370: [08:44:47] * antmas_ quit (Ping timeout: 250 seconds)
371: [08:45:07] * antmas has joined #silverstripe
372: [08:47:00] <Alexwijn> How to get the page type of the current page
373: [08:48:19] <Jakx> Alexwijn, depends what you mean by page type. But $this->ClassName or $ClassName will do it.
374: [08:48:23] <ss23> ohhh
375: [08:48:24] <ss23> Handy
376: [08:48:36] <ss23> I was going to say get_class($this), but that looks beter
377: [08:48:36] <Alexwijn> in template
378: [08:48:46] <ss23> lol
379: [08:49:09] <Jakx> ^ as mentioned... $ClassName
380: [08:49:13] <guzzlefry> so
381: [08:49:22] <guzzlefry> #debian or #ubuntu for asking questions? :P
382: [08:51:35] * Guest111 has joined #silverstripe
383: [08:56:17] <guzzlefry> Which encryption type does SilverStripe use for passwords?
384: [08:57:55] <ss23> guzzlefry: crypt() with bcrypt atm I think
385: [08:58:07] <ss23> Could probably patch 3.1 to use password_hash maybe
386: [08:58:11] <ss23> or maybe not old enough yet
387: [08:58:51] <guzzlefry> mod_auth_mysql better support that. :P
388: [08:59:05] <guzzlefry> otherwise I'm going to be bad and use plaintext or MD5. >_>
389: [08:59:53] <ss23> lol
390: [09:00:01] <ss23> oh shit
391: [09:00:16] <guzzlefry> They're using .htaccess with plaintext crap right now.
392: [09:00:24] <ss23> I was implementing that here at work too, guzzlefry
393: [09:00:30] <ss23> guzzlefry: I checked, it should support it on some distros
394: [09:00:33] <guzzlefry> Did you get that working?
395: [09:00:38] <guzzlefry> I'm using Ubuntu >_>
396: [09:00:46] <ss23> guzzlefry: lol
397: [09:00:54] <ss23> Ubuntu is generally good at supporting things, so should be okay there
398: [09:01:33] <ss23> Reason is that it uses crypt() which may or may not support it
399: [09:01:40] <ss23> (syscall crypt, not php crypt)
400: [09:02:20] <ss23> guzzlefry: btw, you can use mod_authn_dbd, which comes built into apache
401: [09:02:45] <guzzlefry> That can handle MySQL?
402: [09:02:53] <ss23> yeah
403: [09:02:59] <ss23> well
404: [09:03:00] <ss23> I think so
405: [09:03:08] * DigNZ quit (Quit: DigNZ)
406: [09:03:28] <ss23> yeah
407: [09:03:34] <ss23> guzzlefry: It has a DBDriver mysql option
408: [09:03:50] <ss23> guzzlefry: http://httpd.apache.org/docs/current/mod/mod_dbd.html#dbdriver
409: [09:05:38] <ss23> guzzlefry: http://httpd.apache.org/docs/current/misc/password_encryptions.html Oh looks like it supports it on all distros!
410: [09:05:46] <antmas> note sure if my last question was answered, got booted
411: [09:05:48] <ss23> guzzlefry: ucky you :)
412: [09:05:54] <ss23> Let me know if you get it set up, guzzlefry
413: [09:05:55] <antmas> anyone for the regenerated files?
414: [09:06:06] <ss23> antmas: 10:39:05 < antmas_> if I delete everything in /assets/_combined files, then view the a page in the CMS/frontend, those js files should regenerate, right?
415: [09:06:09] <ss23> 10:44:58 <@simon_w> yes
416: [09:06:11] <ss23> 10:45:04 -!- spronk [~noemail@118-93-11-76.dsl.dyn.ihug.co.nz] has joined #silverstripe
417: [09:06:15] <ss23> 10:45:41 <+ss23> Some of our deployment scripts will expliiclty delete those files to get them to regenerate, antmas_
418: [09:06:19] <guzzlefry> ss23: I don't see an option to set salt field. 0.o
419: [09:06:25] <guzzlefry> although it's in the old docs.
420: [09:06:35] <antmas> ss23: ah, cool. Thought so
421: [09:06:37] <ss23> guzzlefry: You don't set a salt field
422: [09:06:46] <guzzlefry> oh
423: [09:06:52] <guzzlefry> it grabs it from the encrypted string?
424: [09:06:53] <ss23> guzzlefry: The "password" contains the salt already
425: [09:06:55] <ss23> yeah
426: [09:06:56] <guzzlefry> okay
427: [09:06:58] <ss23> :P
428: [09:07:02] <guzzlefry> The old docs had a salt field. :P
429: [09:08:19] <antmas> :( it's not generating
430: [09:08:22] <antmas> le poos
431: [09:09:05] <guzzlefry> Now, if only there was a way to get the queries it was sending to MySQL land.
432: [09:09:51] <AlphaCactus> ?showqueries
433: [09:10:16] <guzzlefry> non-SilverStripe related.
434: [09:10:35] <AlphaCactus> oh
435: [09:11:01] <guzzlefry> I'm playing sysadmin now. :P
436: [09:11:26] * DigNZ has joined #silverstripe
437: [09:11:34] <antmas> guzzlefry: fun fun, I'm about to switch to being 'training this guy on how to use Android'
438: [09:13:10] <AlphaCactus> i'm trying to be sysadmin too. linux is complicated
439: [09:13:17] <ss23> antmas: permissions?
440: [09:13:25] <zippy__> guzzlefry: turn on the mysql log for full queries... (for a bit)
441: [09:14:34] * DigNZ quit (Client Quit)
442: [09:14:58] <antmas> ss23: 777 on assets for now
443: [09:15:18] <ss23> antmas: Make sure it's -R, so that the assets/_combinedfolders is writable too
444: [09:15:29] <antmas> ss23: yeah did that
445: [09:15:30] <ss23> antmas: And make sure you have combined files turned on so it's meant to be writing there
446: [09:15:34] * DigNZ has joined #silverstripe
447: [09:15:37] * DigNZ quit (Client Quit)
448: [09:15:40] <antmas> ss23: in config?
449: [09:15:42] <zippy__> 777 -R / :-)
450: [09:15:51] <ss23> antmas: well, in your everywhere
451: [09:15:54] <ss23> I can't recall how it works
452: [09:15:54] <zippy__> doing / is bad. mykey
453: [09:15:57] <ss23> But it's opt-in, right
454: [09:16:04] <antmas> ah
455: [09:17:25] <antmas> man, docs have such a spaz in IE
456: [09:17:53] * Guest111 quit (Quit: Page closed)
457: [09:18:35] <ss23> fuck
458: [09:18:38] <guzzlefry> okay so, it's not even hitting the database.
459: [09:18:40] <ss23> client on monday -> "PLEASE CLEAR CACHE"
460: [09:19:37] <ss23> IT'S NOW THURSDAY
461: [09:19:59] <antmas> hmmmmm
462: [09:20:01] <antmas> Requirements::set_combined_files_folder(ASSETS_DIR . '/_combinedfiles');
463: [09:20:39] <guzzlefry> FFUUUU mod_auth_mysql
464: [09:21:02] <ss23> guzzlefry: Why aren't you using the built in modules for it?
465: [09:22:33] <guzzlefry> ss23: Because mod_auth_mysql should handle it.
466: [09:22:41] <guzzlefry> And I don't think mod_dbd does auth anywya.
467: [09:22:43] <guzzlefry> anyway
468: [09:23:07] <ss23> guzzlefry: Authentication in Apache works by combining two modules -- one to get the data, and one to do the actual auth
469: [09:23:32] <ss23> guzzlefry: So mod_auth_dbd gets the mysql query data result thing, then you hand it to the mod_password_digest w/e to do the actual auth
470: [09:23:35] <ss23> idk
471: [09:23:40] <ss23> seems silly to use external modules when the built in ones should do it
472: [09:24:05] * Twist_ has joined #silverstripe
473: [09:24:55] <Twist_> Hello - I'm a first time caller, I need some understanding assiatnce with what is probably a very rookie problem
474: [09:25:19] <antmas> ah, stupid IE caching. It's fine in FF and Chrome
475: [09:25:24] <antmas> story of my life
476: [09:25:26] <Twist_> been working with ss on my own for a few months so my knowledge is patchy
477: [09:26:53] * SphereSilverNL has joined #silverstripe
478: [09:27:09] * catcher quit (Quit: Leaving)
479: [09:27:13] * DigNZ has joined #silverstripe
480: [09:27:35] <SphereSilverNL> \o
481: [09:28:19] <Twist_> I have an app with a number of page types. In one of them - ModulePage - when the page gets called in the browser, I create a dataobject, in the index function. when I call a totally different pagetype, somehow, the index function from ModulePage gets called and dataobjects are created. I know this becuase changing the index function to private stops it happenening, but also stops ModulePage from workig at all. Am I missing som
482: [09:28:54] <SphereSilverNL> Is it extending ModulePage?
483: [09:28:59] <Twist_> nope
484: [09:29:08] <Twist_> totally different page
485: [09:29:21] <Twist_> both extend Page
486: [09:29:38] <SphereSilverNL> How is the DO created? any inherits on the ModulePage?
487: [09:29:39] <Twist_> same thing happen if I move the logic from index to init
488: [09:30:13] <SphereSilverNL> Hmmm, that's odd, parsing A where B is requested.
489: [09:30:16] <Twist_> $attempt = new PlayerModuleAttempt(); $attempt->write();
490: [09:30:31] <Twist_> just normal DOs
491: [09:30:41] <Twist_> I've tried to track it down for hours
492: [09:30:41] <SphereSilverNL> Version?
493: [09:30:45] <Twist_> 3.1
494: [09:31:13] <AlphaCactus> can you do a SS_Backtrace::backtrace(); in your init/index to see where it is getting called from
495: [09:31:18] <Twist_> I can re-architect, but would rather know
496: [09:31:39] <Twist_> cool never done that - what should I expect to see?
497: [09:31:46] <SphereSilverNL> a backtrace would be nice though ;) would probably help you a lot ;)
498: [09:31:47] <AlphaCactus> stack dump
499: [09:31:48] <Twist_> thanks for your help by the way :)
500: [09:32:00] <SphereSilverNL> The classes, runtime, stackdump, of the request
501: [09:32:24] <guzzlefry> yay, progress
502: [09:32:27] <Twist_> where will it output to?
503: [09:32:34] <Twist_> just adding it now
504: [09:32:35] <AlphaCactus> http response
505: [09:32:43] <AlphaCactus> like Debug::show() would do
506: [09:32:52] <Twist_> OK on it, will report back
507: [09:32:57] <Twist_> thanks again :)
508: [09:34:09] <SphereSilverNL> Did any of you guys send me an Elite FXX model?
509: [09:35:08] * AlphaCactus googles Elite FXX
510: [09:35:31] <antmas> lolwut?
511: [09:35:34] <antmas> I get cars?
512: [09:35:36] <SphereSilverNL> It's a scale model of the Ferrari FXX, Elite refers to the build-quality of the model :P
513: [09:35:37] <Pyromanik> TIL ' is mandatory not optional when applying a decorator.
514: [09:35:52] <AlphaCactus> who was I talking to about racing in NZ the other day?
515: [09:35:56] <antmas> random
516: [09:36:01] <SphereSilverNL> works
517: [09:36:03] <Pyromanik> AlphaCactus: antmas and I
518: [09:36:15] * EasyCo has joined #silverstripe
519: [09:36:22] <AlphaCactus> Pyromanik: so turns out teh guy I was talking about was in NZ racing as we spoke...
520: [09:36:24] <EasyCo> Mornin'
521: [09:36:39] <SphereSilverNL> It's my birthday, and I don't mind presents, but I really have no clue whoever send me this. Must be someone who knows I collect Ferrari-models
522: [09:36:51] <Pyromanik> AlphaCactus: ha, nice.
523: [09:37:21] <Pyromanik> SphereSilverNL: Happy Birthday :)
524: [09:37:43] <antmas> SphereSilverNL: how old?
525: [09:37:51] <SphereSilverNL> Pyromanik: Thanks
526: [09:38:00] <SphereSilverNL> antmas: it starts with a 3 now :(
527: [09:38:11] <EasyCo> SphereSilverNL: Welcome to the club!
528: [09:38:15] * Jakx has left #silverstripe
529: [09:38:15] <antmas> SphereSilverNL: oh, so a big one?
530: [09:38:32] <EasyCo> Nothing really changes, you just sleep more
531: [09:38:37] <EasyCo> …well at least I do :)
532: [09:38:48] <antmas> and your back gets more sore
533: [09:39:04] <SphereSilverNL> antmas: According to my passport, I'm 30 now. According to my ex, my boss, my friends, I'm probably closer to just the 3
534: [09:39:24] <antmas> SphereSilverNL: lol!
535: [09:39:50] <SphereSilverNL> I'm just a kid in a grown-up's body :D
536: [09:40:01] <AlphaCactus> Pyromanik: http://targa.co.nz/
537: [09:40:03] <Pyromanik> SphereSilverNL: good man.
538: [09:40:06] <Pyromanik> AlphaCactus: ah, the targa!
539: [09:40:09] <Pyromanik> good times.
540: [09:40:19] <Pyromanik> it's a Rally, not speedway :P
541: [09:40:33] <Pyromanik> although I thought it was a tarmac rally, not dirt.
542: [09:40:54] <SphereSilverNL> who cares, race is race, pedal to the metal, press it down hard, corners are for wimps
543: [09:41:27] <antmas> Pyromanik: <3 tarmac rally
544: [09:42:15] <Pyromanik> targa pretty cool event.
545: [09:42:22] <SphereSilverNL> targa NZ is not in Silverstripe? I are disappoint
546: [09:42:43] <Pyromanik> ha, yeh. Whoever made it doesn't really know websites.
547: [09:43:13] <SphereSilverNL> Targa looks cool though. I should probably not enter :)
548: [09:43:18] <antmas> Pyromanik: best day ever - seeing one of these go nuts in the Westcoast http://www.youtube.com/watch?v=cDRkHXMHqFo
549: [09:45:17] <SphereSilverNL> That makes me want to buy an old Quatro
550: [09:45:22] <Pyromanik> haha http://www.yafdev.com/
551: [09:46:32] <Pyromanik> antmas: http://www.youtube.com/watch?v=G5ceykLZDKA
552: [09:46:50] <AlphaCactus> stop sending fun links, I 'm at work here
553: [09:46:57] <Pyromanik> so am I
554: [09:47:20] <SphereSilverNL> I'm not working, keep the fun links coming
555: [09:48:01] <Pyromanik> http://www.youtube.com/watch?v=gmifaKiPa6M
556: [09:48:02] <SphereSilverNL> I never work actually, I just sit there and get paid :P
557: [09:48:29] <AlphaCactus> sign me up. haven't had a job like that for years
558: [09:48:47] <SphereSilverNL> Willing to move to the Netherlands?
559: [09:48:49] * travis-ci has joined #silverstripe
560: [09:48:49] <travis-ci> [travis-ci] chillu/silverstripe-framework#117 (pulls/2638-uploadfield - 61f99fa : Ingo Schommer): The build was broken.
561: [09:48:49] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/54a6417164b4...61f99fa1effd
562: [09:48:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13606599
563: [09:48:49] * travis-ci has left #silverstripe
564: [09:49:09] <Alexwijn> SphereSilverNL, in this weather?
565: [09:49:13] <SphereSilverNL> Is it me, or is Travis an asshole?
566: [09:49:18] <SphereSilverNL> Alexwijn: It sucks
567: [09:49:25] <Alexwijn> Tell me about it
568: [09:49:41] <Pyromanik> SphereSilverNL: www.youtube.com/watch?v=DCWbFwF9Uyk
569: [09:49:43] <Pyromanik> :D ?
570: [09:49:43] <Alexwijn> Today I had to wait a half hour in the rain, waiting for the bus
571: [09:49:50] <AlphaCactus> suuuuuureee.... where is the netherlands?
572: [09:50:08] <Alexwijn> Next to Belgium and Germany
573: [09:50:22] <antmas> Norway?
574: [09:50:26] <antmas> wiat
575: [09:50:28] <antmas> wait*
576: [09:50:30] <SphereSilverNL> AlphaCactus: you don't know where the Netherlands is????
577: [09:50:30] <antmas> yes?
578: [09:50:50] <Alexwijn> SphereSilverNL, we'r not that big... :)
579: [09:50:57] <Alexwijn> Although we are one of the riches in europe
580: [09:51:04] <SphereSilverNL> Yes we are. We are huge!
581: [09:51:17] <AlphaCactus> https://maps.google.com/?ll=-84.786525,-63.105469&spn=14.775888,228.339844&t=h&z=3
582: [09:51:32] <antmas> ah man, always get Norway and Netherlands mixed up
583: [09:51:35] <antmas> :(
584: [09:51:53] <SphereSilverNL> Yeah, they're only a few hundred miles apart
585: [09:52:00] <SphereSilverNL> I would mix that up too.
586: [09:52:11] <antmas> Black Metal!
587: [09:52:18] <antmas> \m/
588: [09:52:18] <Alexwijn> AlphaCactus...wtf?
589: [09:52:21] <SphereSilverNL> http://goo.gl/DqUPLj <-- I live there
590: [09:52:21] <Twist_> hey back again. well, adding the backtrace into the index gave me a backtrace when I call ModulePage directly (output to the browser) when I call the other page, nothing. I should add, ModulePage is the only place in the app that creates these DOs.
591: [09:52:48] <Alexwijn> Or your link is corrupted or you trying to point out NL
592: [09:52:54] <guzzlefry> rawr
593: [09:52:56] <AlphaCactus> SphereSilverNL: how far is the drive to the Nürburgring?
594: [09:53:00] <SphereSilverNL> Hey Twist_ , could you pasty the backtrace of the ModulePage and OtherPage it's links?
595: [09:53:07] <SphereSilverNL> AlphaCactus: Depends on my mood
596: [09:53:17] <AlphaCactus> lol
597: [09:53:42] <antmas> SphereSilverNL: what language is the native?
598: [09:53:48] <SphereSilverNL> Officially, it's about 2:48
599: [09:54:00] <SphereSilverNL> The native language of the Netherlands?
600: [09:54:01] <AlphaCactus> thyere are lots of roads in the netherlands
601: [09:54:09] <SphereSilverNL> For some reason.... it's "Dutch"
602: [09:54:12] <antmas> SphereSilverNL: well, the most spoken
603: [09:54:14] <Twist_> yep
604: [09:54:14] <antmas> ah
605: [09:54:28] <SphereSilverNL> It's somewhat a mix between German and Stupid
606: [09:54:39] <Alexwijn> It a lot more then that
607: [09:55:43] <SphereSilverNL> AlphaCactus: I've been to the Nurburgring a few times on my motorcycle. It usually took me about 2 hours to get there.
608: [09:55:51] * Motoservo has joined #silverstripe
609: [09:56:11] <Alexwijn> English, Germany, France
610: [09:56:14] <antmas> SphereSilverNL: :O
611: [09:56:16] <antmas> jelly
612: [09:56:34] <AlphaCactus> SphereSilverNL: nice, i know people that drive that far just to do autocross here.
613: [09:56:48] <SphereSilverNL> I know them too ;)
614: [09:57:01] <Alexwijn> Dutch is a mix of that
615: [09:57:01] <Pyromanik> Danish?
616: [09:57:09] <SphereSilverNL> I'm not that fanatic, but if I can,It's the best circuit in the world
617: [09:57:17] * Motoservo quit (Client Quit)
618: [09:57:20] <SphereSilverNL> Danish is more like Frisian than Dutch
619: [09:57:38] <SphereSilverNL> Dutch and Danish are hardly the same, nor have they anything in common
620: [09:57:42] <Twist_> this is the backtrace from the ModulePage http://goo.gl/re3niU
621: [09:57:59] <Pyromanik> interesting. The more you know!
622: [09:58:22] * ajmitch wants to visit the netherlands one day
623: [09:58:32] <Alexwijn> Only one day?
624: [09:58:45] <SphereSilverNL> Fun fact of the day: Finnish (you know, IKEA), is closer to Russian and is nothing like any other language in Europe ;)
625: [09:58:49] <ajmitch> not 'for one day' :P
626: [09:58:59] <guzzlefry> PasswordEncryptor_MySQLPassword looks promising...
627: [09:59:18] <Pyromanik> ERROR [Notice]: Indirect modification of overloaded property has no effect
628: [09:59:20] <Pyromanik> halp!
629: [09:59:21] <guzzlefry> And...I'm the first person in the logs to mention it. :P
630: [09:59:22] <SphereSilverNL> You'd probably be high after one day, than, lying in a mudpool for 3 days
631: [09:59:38] <Pyromanik> SphereSilverNL: finnish is...
632: [09:59:42] <Pyromanik> nothing like russian.
633: [09:59:47] <SphereSilverNL> Finland
634: [09:59:54] <Pyromanik> also Ikea is Swedish.
635: [09:59:55] * violetina quit (Remote host closed the connection)
636: [09:59:56] <SphereSilverNL> I said "closer to" not "it's like"
637: [10:00:10] <Pyromanik> true, you did.
638: [10:00:14] <SphereSilverNL> Ikea is Swedish??
639: [10:00:17] <Pyromanik> yep
640: [10:00:19] <irogue23> yeah, IKEA is extremely swedish
641: [10:00:23] <Pyromanik> Nokia is Finnish.
642: [10:00:27] <unsignedint> can anyone enlighten me as to why Silverstripe doesnt allow setting class-level variables on DataObjects? http://sspaste.com/paste/show/527ac7ea059c1
643: [10:00:28] <irogue23> tho the company is registered in NL for tax reasons iirc
644: [10:00:29] <AlphaCactus> Twist_: so if you die or backtrace in your index function where you create the DO, but you load up a different page, it doesn't die or show backtrace, but does create the DO?
645: [10:00:34] <SphereSilverNL> ok, scrap my ikea-remark... I thought Ikea was Finnish
646: [10:00:41] <Pyromanik> unsignedint: it does
647: [10:00:45] <AlphaCactus> unsignedint: sure it does
648: [10:00:46] <irogue23> Pyromanik: not for long it isn't
649: [10:00:54] <Pyromanik> irogue23: hmm?
650: [10:01:00] <Twist_> AlphaCactus - yep exactly. Crazy...
651: [10:01:02] <unsignedint> Pyromanik, AlphaCactus: then why is the data I am setting disappearing?
652: [10:01:03] <irogue23> Nokia bought by Microsoft
653: [10:01:06] <irogue23> so will be American soon
654: [10:01:14] <Pyromanik> unsignedint: probably sublties with __set and setField
655: [10:01:18] <Colin[pi]> HAI2ALL
656: [10:01:29] <AlphaCactus> Twist_: can you put a Backtrace in the constructor of your DO?
657: [10:01:30] <SphereSilverNL> Hey Colin[pi]
658: [10:01:32] <Pyromanik> it doesn't make a concrete field, as such.
659: [10:01:42] <Twist_> good idea
660: [10:01:47] <SphereSilverNL> also, please dump the request
661: [10:01:49] <SphereSilverNL> ?
662: [10:01:59] <Twist_> wiil do :)
663: [10:02:07] <AlphaCactus> unsignedint: is it disappearing inside a template? or somwhere else?
664: [10:02:55] <unsignedint> AlphaCactus: see code, the template calls AccessoryItems() which sets a class-level field on each item, but within each AccessoryItem getNicePrice() the data is gone
665: [10:03:33] <guzzlefry> PasswordEncryptor_MySQLPassword <--- how do I actually set the Member stuff to use this?
666: [10:03:55] <SphereSilverNL> Address the parent?
667: [10:04:08] * nicolaas has joined #silverstripe
668: [10:04:09] <nicolaas> can you have a many many with yourself???
669: [10:04:21] <Pyromanik> easily
670: [10:04:28] <SphereSilverNL> yes, sure, you can, but I'd personally advise to use an intermediate.
671: [10:04:45] * DaShiVaDan has joined #silverstripe
672: [10:04:53] <nicolaas> as in how?
673: [10:05:13] <SphereSilverNL> My experience with self-related objects often turn out to become a behemoth of an object.
674: [10:05:36] <SphereSilverNL> Using an intermediate, LinkObjectOneToObjectTwo method
675: [10:05:44] <SphereSilverNL> keeps the code cleaner, usually
676: [10:06:22] * AlphaCactus squints at teh code
677: [10:06:30] <Twist_> sorry, stupid rookie question here, my DOs don't have constructors - I can add them I assume, can't find any syntax for how to that?
678: [10:06:44] * SphereSilverNL knows it's not the best, but better than linking to itself
679: [10:07:17] <Colin[pi]> fuck you windows and your network settings
680: [10:07:20] <SphereSilverNL> Check DO-class. It has the constructor, so pass at least those parameters, and have fun manipulating them ;)
681: [10:07:26] <ss23> NOW YOU'RE UNDER CONTROL AND NOW YOU DO WHAT THEY TOLD YA
682: [10:07:34] <SphereSilverNL> Colin[pi]: Ever tried that Apple OS?
683: [10:07:44] <Colin[pi]> OS X?
684: [10:07:48] <SphereSilverNL> yeah?
685: [10:07:59] <Colin[pi]> yes
686: [10:08:13] <AlphaCactus> Twist_: copy the DataObject::__construct function and start from there.
687: [10:08:13] <SphereSilverNL> Trust me, it's worse. Best OS is Debian/GNU/Linux
688: [10:08:27] <Colin[pi]> ss23: THOSE WHO DIED ARE JUSTIFIED
689: [10:08:40] <ss23> FUCK YOU I WON'T DO WHAT YOU TELL ME
690: [10:08:44] <nicolaas> UBUNTU just keeps surprising me
691: [10:08:45] <SphereSilverNL> That's what I said AlphaCactus, only I use complicated words to sound super-smart
692: [10:08:52] <Colin[pi]> SphereSilverNL: yeah but... but.. I was able to copy files to a share, yesterday, right?
693: [10:08:55] <Colin[pi]> and NOTHING has changed
694: [10:09:01] <Colin[pi]> and today it says I dont have permission
695: [10:09:04] <Colin[pi]> FUUUU WINDOWS
696: [10:09:09] <nicolaas> SphereSilverNL: I looked up behemoth
697: [10:09:09] * travis-ci has joined #silverstripe
698: [10:09:09] <travis-ci> [travis-ci] chillu/silverstripe-framework#117 (pulls/2638-uploadfield - 61f99fa : Ingo Schommer): The build passed.
699: [10:09:09] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/54a6417164b4...61f99fa1effd
700: [10:09:09] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13606599
701: [10:09:09] * travis-ci has left #silverstripe
702: [10:09:14] <SphereSilverNL> Colin[pi]: Copying in OSX has always been a hell
703: [10:09:23] <guzzlefry> ss23: GET OFF THE ROOF
704: [10:09:32] <ss23> Crank the music up
705: [10:09:37] <unsignedint> ss23: get back to maintaining the docs
706: [10:09:44] <guzzlefry> haha
707: [10:09:52] <ss23> BRING THAT SHIT IN
708: [10:09:52] <SphereSilverNL> ss23: stay on the roof, I'll be there right away to get you a beer.
709: [10:09:55] * ss23 headbangs all over
710: [10:09:58] <nicolaas> Twist_: what are you trying to do?
711: [10:10:21] <Colin[pi]> SphereSilverNL: you'd think it'd be something they'd get right, since copying files is, like, i dunno, one of the first things an OS was ever used for
712: [10:10:27] <AlphaCactus> SphereSilverNL: indeed you did.
713: [10:10:59] <ss23> Seriously guys, I spent like 8 hours yesterday doing a pull request for you all
714: [10:11:02] <ss23> Don't make me go back to docs!
715: [10:11:12] <Colin[pi]> DO IT
716: [10:11:16] <AlphaCactus> unsignedint: have you verified that the values are set before you return $items on line 12
717: [10:11:33] <SphereSilverNL> Please don't say "return array();"
718: [10:11:40] <AlphaCactus> ss23: what was in this alleged pull request
719: [10:11:47] <ss23> Alleged?!
720: [10:12:07] <SphereSilverNL> To quote Avdi: "It works in my browser"
721: [10:12:09] <ss23> https://github.com/silverstripe/silverstripe-cms/pull/801
722: [10:12:10] <unsignedint> AlphaCactus: yep within the setCurrentVehicleItemID() I echoed the value of getCurrentVehcileItemID() and it matched
723: [10:12:32] <AlphaCactus> unsignedint: how about after your loop though I mean.
724: [10:12:39] <ss23> Refactor out the old page redirector functionality, makes it a lot less shit, fixes a potential issue where you can view/become aware of stagged content, and makes it so you can disable it
725: [10:13:11] * Twist_ quit (Ping timeout: 250 seconds)
726: [10:14:24] <AlphaCactus> unsignedint: also, i'm not sure how efficient SS templates are. Does it cache its own copy of the result from AccessoryItems so it can iterate it without calling the function each time? might check that cache, if so, to see if it isn't doing something weird. thats beyond my knowledge though.
727: [10:15:15] <SphereSilverNL> In dev-mode, the cache shouldn't be used
728: [10:15:42] <unsignedint> AlphaCactus: thanks for your help. its looks like that *during* the loop, calling $item->getCurrentVehicleItemID() returns the value that was set. But as soon as the loop ends, calling $items->first()->getCurrentVehicleItemID() returns nothing. WTF silverstripe??
729: [10:16:20] <AlphaCactus> unsignedint: i'm not so sure this is a SS issue?
730: [10:16:30] <SphereSilverNL> Ofcourse it's returning nothing but a model
731: [10:16:42] <SphereSilverNL> that's the lazy method
732: [10:16:53] <AlphaCactus> where do the instances for the loop go then
733: [10:16:56] <SphereSilverNL> If not addressed, it's not queried
734: [10:17:14] <AlphaCactus> how do you force the query then
735: [10:17:40] <irogue23> ungh, i require caffeines
736: [10:17:49] <irogue23> damn people knocking on the door at 8am
737: [10:17:54] <Alexwijn> And I require sleep
738: [10:17:59] <Colin[pi]> I bought some brazilian caffeines today... soo good
739: [10:18:02] <SphereSilverNL> actually address the query in the code. And even that might not work. AFAIK, the new lazy method, will only actually execute a query if it's needed
740: [10:18:16] <unsignedint> yeah its like the instance is destroyed after the loop ends and a new instance is instantiated every time its accessed
741: [10:18:18] <SphereSilverNL> I should be in bed irogue23
742: [10:18:28] <guzzlefry> Allows pluggable password encryption. By default, this might be PHP's integrated sha1() function, but could also be more sophisticated to facilitate password migrations from other systems. Use register() to add new implementations. <--- lies
743: [10:18:31] <Alexwijn> SphereSilverNL, same here....same here
744: [10:18:33] <Colin[pi]> yeah I was gonna say aren't you up a bit late SphereSilverNL?
745: [10:19:12] <SphereSilverNL> Colin[pi]: It's my mothafrikkin' birthdaaay! I'm allowed to stay up late today! Just not allowed to be groggy at work tomorrow :/
746: [10:19:22] <Colin[pi]> HAPPY BIRTHDAY DUDE!
747: [10:19:42] <Alexwijn> Congratz
748: [10:19:50] <SphereSilverNL> Thanks, although 20 minutes late :P
749: [10:20:03] <Alexwijn> Then why say it's your birthday
750: [10:20:11] <Colin[pi]> well fuck you then :D
751: [10:20:19] <SphereSilverNL> Because I just noticed it's 20 minutes late.
752: [10:20:31] <SphereSilverNL> Colin[pi]: I prefer not to, if that's ok with you?
753: [10:20:38] <Colin[pi]> aww, but... aww :(
754: [10:20:47] <Colin[pi]> birthday special?
755: [10:20:51] <SphereSilverNL> Me and my big mouth :/
756: [10:20:59] <Colin[pi]> I'll even let you give the reach around
757: [10:20:59] <Alexwijn> Yeah I something on the radio today
758: [10:21:02] <Alexwijn> heard*
759: [10:21:06] <SphereSilverNL> Ehhhh, Maybe my cat is up for something?
760: [10:21:10] <Alexwijn> nvm
761: [10:21:17] <Colin[pi]> hey good to see you're getting some pussy on your b'day
762: [10:21:27] <Alexwijn> I don't think its approiate here what I wanted to say
763: [10:21:33] <Alexwijn> oh dear
764: [10:21:46] <SphereSilverNL> owwwww god, this is going wrong bigtime
765: [10:21:52] <Colin[pi]> not appropriate on the chat they said
766: [10:22:18] <Alexwijn> :)
767: [10:22:18] <SphereSilverNL> I somewhat completely agree with the chat this time, I think.
768: [10:22:25] <Alexwijn> And it also been logged
769: [10:22:29] <AlphaCactus> unsignedint: so did someone say how to force an eager load instead of lazy?
770: [10:22:33] <Alexwijn> It sticks forever :)
771: [10:22:35] <EasyCo> Did Pyromanik ever get his GFs question answered yesterday?
772: [10:22:39] <Colin[pi]> lol
773: [10:22:43] <Colin[pi]> I got over that a while back
774: [10:22:52] <Colin[pi]> HEY EASYCO
775: [10:22:53] <SphereSilverNL> I have been logged? That might explain that burning feeling
776: [10:22:54] <Colin[pi]> I got a pic for you
777: [10:22:56] <Colin[pi]> one sec
778: [10:23:00] <unsignedint> AlphaCactus: no they didnt :( I tried it myself by accessing a field on the item but it did nothing
779: [10:23:17] <Alexwijn> Colin, no nude pics here on chat
780: [10:23:29] <Colin[pi]> EasyCo: after our chat yesty: https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-prn1/1382064_10152347546628206_278858407_n.jpg
781: [10:23:30] <EasyCo> Haha a pic of me? Am I looking studly?
782: [10:23:31] <guzzlefry> ss23: Any idea on how to set the default encryption method?
783: [10:23:40] <ss23> guzzlefry: In SilverStripe/
784: [10:23:48] <Alexwijn> I'm scared to click that link
785: [10:23:54] <Colin[pi]> it's safe :P
786: [10:23:54] <EasyCo> Haha
787: [10:23:57] <Colin[pi]> wine and cheese :P
788: [10:23:58] <EasyCo> A pic FOR me
789: [10:23:59] <EasyCo> Oh
790: [10:24:00] <EasyCo> Haha
791: [10:24:02] <EasyCo> That's awesome
792: [10:24:12] <EasyCo> So you that chat was enough to spur you on!
793: [10:24:14] <Colin[pi]> I wanted it so bad after talking about it LOL
794: [10:24:21] <EasyCo> Haha
795: [10:24:26] <EasyCo> Good man
796: [10:24:27] <ss23> guzzlefry: http://api.silverstripe.org/master/source-class-Security.html#782-794 -- but if you do that, you're dumb ;_;
797: [10:24:31] <Colin[pi]> couldn't get the wine I wanted, but that one is pretty good
798: [10:24:34] <EasyCo> That right glass is filled to the brim!
799: [10:24:40] <Alexwijn> http://www.youtube.com/watch?v=sSJ5PgUx0Zg
800: [10:24:54] <EasyCo> I went an picked up a case of Oranjeboom instead :)
801: [10:24:59] <Colin[pi]> that's mine, my gf's on the left, we hadn't started yet :(
802: [10:25:10] <EasyCo> Looks delish
803: [10:25:16] <Colin[pi]> mouthgasm
804: [10:25:30] <guzzlefry> ss23: How do I get it to use the PasswordEncryptor_MySQLPassword?
805: [10:25:34] <EasyCo> The second best type of gasm
806: [10:25:36] <guzzlefry> Also, I am not!
807: [10:25:40] <Colin[pi]> LOL
808: [10:26:54] <Alexwijn> Look what I found: http://memebase.cheezburger.com/thisisphotobomb/tag/boobs/
809: [10:26:58] <Pyromanik> EasyCo: well yours never showed up to answer!
810: [10:27:14] <Pyromanik> also weird, your mention didn't highlight me :<
811: [10:27:22] <ss23> guzzlefry: Set it to that with that function?
812: [10:27:58] <guzzlefry> not sure which string to pass
813: [10:28:01] <ss23> idk
814: [10:28:04] <ss23> tias
815: [10:28:11] <ss23> probably 'PasswordEncryptor_MySQLPassword' is fine
816: [10:28:57] <AlphaCactus> unsignedint: could you just do $NicePrice($Up.ID) ?
817: [10:30:49] <guzzlefry> So
818: [10:30:56] <guzzlefry> I'm supposed to register the encryptor first.
819: [10:31:18] <guzzlefry> but guess what!? Fatal error: Call to undefined method PasswordEncryptor::register() in /var/www/cm-admin/mysite/_config.php on line 20
820: [10:31:48] * DigNZ1 has joined #silverstripe
821: [10:32:13] <EasyCo> Wait a minute! If you have a template called MyController_home.ss. Will the automatically match for the home action?
822: [10:32:23] <SphereSilverNL> I'm off to bed. Before I say anything stupid :)
823: [10:32:36] <Colin[pi]> TOO LATE
824: [10:32:37] <Colin[pi]> ;D
825: [10:32:39] <unsignedint> AlphaCactus: the code is called outside of templates too, and id rather it was automatic. But thanks for the suggestion :)
826: [10:32:40] <Colin[pi]> nn dude
827: [10:32:41] <SphereSilverNL> :'(
828: [10:32:53] * DigNZ quit (Ping timeout: 268 seconds)
829: [10:32:54] * SphereSilverNL quit (Remote host closed the connection)
830: [10:33:44] <irogue23> http://ow.ly/i/3EeNI/original
831: [10:33:49] <irogue23> teehee
832: [10:33:51] <unsignedint> AlphaCactus: also the call to NicePrice is within a <% include %> so passing parameters doesnt work
833: [10:33:59] <irogue23> i really get off on traffic nightmares (unless i'm in them :P)
834: [10:34:00] <unsignedint> (code pasted was simplified)
835: [10:34:16] <ss23> irogue23: Why is that traffic nightmare? Cause everyone going down to one lane?
836: [10:34:37] <irogue23> ss23: ya, accident in the tunnel, 3 lanes reduced to 1
837: [10:34:53] <ss23> lol
838: [10:34:54] <ss23> sux
839: [10:36:49] <Alexwijn> What if everyone wants to go back: http://4.bp.blogspot.com/-dcqhf6FGFks/UHRmXEA_BZI/AAAAAAAADdU/pBNuRJKr4AI/s1600/traffic_jam.jpg
840: [10:36:57] <irogue23> ss23: result = https://dl.dropboxusercontent.com/u/4618071/tunneltraffic.png
841: [10:37:07] <guzzlefry> oh ffs
842: [10:37:07] <Colin[pi]> ouchies :(
843: [10:37:17] <guzzlefry> PasswordEncryptor::reigster() was removed in 3.1
844: [10:37:21] <ss23> lol
845: [10:37:24] <ss23> RED IS GOOD, RITE?
846: [10:37:37] <Colin[pi]> RED MEANS FASTER
847: [10:37:40] <Colin[pi]> everyone knows that
848: [10:39:11] <irogue23> black means "basically non-moving" (that's the tunnel), red means going <30 km/h iirc
849: [10:39:41] <Colin[pi]> you know how they get that traffic data? so cool
850: [10:39:52] <guzzlefry> Is there an easy way to find out why a method was removed?
851: [10:40:11] <irogue23> Colin[pi]: in Auckland it's done with sensors all along the motorway that track average speed
852: [10:40:41] <Colin[pi]> hmm well depends on the system, I heard with google traffic they use data from android devices in the cars
853: [10:40:49] <DaShiVaDan> anyone here develop android apps with eclipse on windows ?
854: [10:41:04] <irogue23> yeah, the google maps stuff works that way Colin[pi]
855: [10:41:45] * DesignerX has joined #silverstripe
856: [10:41:46] <irogue23> it's a bit less accurate tho as relies on accuracy of GPS, can't really handle tunnels, and only tracks people who happen to have an android phone
857: [10:41:56] <Colin[pi]> still very cool idea
858: [10:41:58] <Colin[pi]> not perfect
859: [10:41:59] <irogue23> yup
860: [10:42:11] <Colin[pi]> but when I read that I was like "...huh. That's awesome"
861: [10:42:57] <irogue23> the AA have their own nationwide system (and have done for quite a long time) which uses data from in-car GPS systems (TomTom, Navman etc.)
862: [10:43:25] <irogue23> combined with data from transport angencies etc. in areas that have sensor-based systems
863: [10:43:30] <Colin[pi]> I thought those systems just received info and didnt send?
864: [10:43:43] <Alexwijn> Damn, I need to sleep
865: [10:43:57] * antmas quit (Ping timeout: 250 seconds)
866: [10:44:00] <unsignedint> sleep is for the weak!
867: [10:44:06] <lewellyn> week
868: [10:44:14] <Colin[pi]> yes sleep is for the week
869: [10:44:16] <irogue23> Colin[pi]: nah, most of the modern ones have data connections for live info on road closures, receiving traffic info etc.
870: [10:44:31] <Colin[pi]> ah k.. I have an old one and usually use my phone now
871: [10:44:52] <irogue23> i tried using my old Android phone for navigation in Auckland
872: [10:44:54] <irogue23> never again :P
873: [10:45:11] <Colin[pi]> my iphone is ok... though it tried to send me into a paddock the other day
874: [10:45:24] <irogue23> google maps doesn't really stay very up-to-date in NZ
875: [10:45:38] <irogue23> new highways that don't even exist on it, etc.
876: [10:45:52] <Colin[pi]> really? get your shit together google
877: [10:45:57] <unsignedint> 12:45 Colin[pi]: my iphone is ok... though it tried to send me into a paddock the other day <-- apple maps master race
878: [10:46:04] <Alexwijn> Google getting bad these days
879: [10:46:04] <Colin[pi]> lol
880: [10:46:18] <irogue23> Navman (originally a NZ company) is also shite at NZ
881: [10:46:21] <Alexwijn> A normal google search is turning up sometimes bad results
882: [10:46:24] <Alexwijn> And weird results
883: [10:46:30] <irogue23> TomTom actually seems to be the best here
884: [10:46:31] <Colin[pi]> well, we could always switch to bing, amirite guise? guise?
885: [10:46:45] <AlphaCactus> who here is in NZ
886: [10:46:48] * unsignedint slaps Colin[pi]
887: [10:46:55] * Colin[pi] deserved it
888: [10:47:05] * Alexwijn claps
889: [10:47:10] <irogue23> Colin[pi]: actually, Bing Maps (which uses Nokia/HERE Maps data) is more up-to-date here, lol
890: [10:47:17] <Colin[pi]> oh god
891: [10:47:19] <Colin[pi]> end times are here
892: [10:47:19] <irogue23> doesn't have street view, and the sattelite imagery is complete shite
893: [10:47:20] <Colin[pi]> lol
894: [10:47:29] <irogue23> but they have better sources for roading data
895: [10:47:53] <irogue23> i think Google likes to do everything themselves rather than being reliant on third-party data sources
896: [10:48:07] <irogue23> which doesn't really work too well in countries they don't even have a physical presence :P
897: [10:48:16] * antmas has joined #silverstripe
898: [10:48:35] <Colin[pi]> yeah but you know what pisses me off? now apple is pissed off with them, they've decided to default to bing for everything
899: [10:48:53] <irogue23> yeah
900: [10:49:05] <irogue23> bing is certainly improving, but it's still got quite a way to catch up
901: [10:49:14] <Colin[pi]> you can change it, but siri for example searches the web in bing now, unless you ask "google <something>"
902: [10:49:20] * CodeTrap quit (Quit: CodeTrap)
903: [10:49:27] <irogue23> i have a Windows Phone, and often just hit search rather than remembering to open the Google app
904: [10:49:46] <irogue23> and am often pleasantly surprised when it gives the correct results :P
905: [10:50:21] * Alexwijn is sleeping on his keyboard
906: [10:50:25] <unsignedint> irogue23: how is the windows phone btw? I have only used android
907: [10:50:42] <irogue23> unsignedint: i like it. it performs massively quicker on low-end hardware
908: [10:50:46] * Alexwijn quit ()
909: [10:50:56] * zfmf has left #silverstripe
910: [10:51:10] <Colin[pi]> unsignedint: the coloured tile thing in Win8 comes from the phone originally
911: [10:51:12] <irogue23> Android you generally have to spend $700+ to get something responsive, iv'e got a Huawei WP8 phone that was $300 and speedy as fuck
912: [10:51:15] <antmas> yeah, they have Win phones at work
913: [10:51:17] <Colin[pi]> so it's kinda like the start menu in Win8
914: [10:51:21] <unsignedint> nice
915: [10:51:30] <irogue23> cos not Java, ultimately
916: [10:51:33] <antmas> $250 phones, run as fast as my GS3
917: [10:51:36] <antmas> crazy
918: [10:51:42] <irogue23> yep
919: [10:51:43] <Colin[pi]> irogue23: so so true
920: [10:52:08] <Colin[pi]> I'm getting tired of android.. any phone I go to try in the store.. touch something.. *wait wait wait wait* THERE it goes
921: [10:52:14] <irogue23> yeah
922: [10:52:18] <Colin[pi]> at least with iOS it's bloody fast
923: [10:52:18] <irogue23> i've never been able to handle it
924: [10:52:28] <antmas> I'm considering switching once the MS takeover of Nokia produce something nicer than the 1020
925: [10:52:30] <irogue23> cos i don't buy high priced phones :P
926: [10:52:35] <unsignedint> Colin[pi]: thats not a fair comparison, an iOS phone costs $1200
927: [10:52:44] <irogue23> unsignedint: so do high end androids
928: [10:52:46] <unsignedint> compare it to a GS4 or something
929: [10:52:47] <unsignedint> yeah
930: [10:53:06] <antmas> I've never seen a $1200 top shelf android phone
931: [10:53:12] <antmas> maybe for like 2 days post launch
932: [10:53:23] <unsignedint> yeah I bought my gs4 for $1150
933: [10:53:28] <antmas> jesus
934: [10:53:30] <unsignedint> when it was launched
935: [10:53:32] <guzzlefry> simon_w: Is there an alternative to PasswordEncryptor::register()? Since it seems to be removed as of SS3.1.
936: [10:53:36] <antmas> day 1?
937: [10:53:39] <unsignedint> yep
938: [10:53:40] <Colin[pi]> yeah but to me it shows that Android is not as polished, as a consumer that's the impression I get
939: [10:53:46] <Colin[pi]> I know there are a lot of factors at play
940: [10:53:47] <simon_w> guzzlefry, config api
941: [10:53:49] <antmas> if you'd waited a week, it would be $900
942: [10:53:52] <antmas> :P
943: [10:53:57] <unsignedint> at least you can do what you want on Android, as a programmer thats the most important thing
944: [10:54:10] <unsignedint> and also you dont need itunes or any of that crap
945: [10:54:28] <unsignedint> oh and your phone will show as a mass storage device, very handy
946: [10:54:39] <unsignedint> oh and bluetooth works
947: [10:54:50] <antmas> that reminds me, I should really get an SD card
948: [10:54:51] <irogue23> < unsignedint> and also you dont need itunes or any of that crap
949: [10:54:54] <Colin[pi]> unsignedint: I hardly ever use itunes
950: [10:54:55] <antmas> only 16gb :(
951: [10:54:56] <irogue23> as of iOS6, no itunes required
952: [10:55:17] <unsignedint> about bloody time then. what about for updates or transferring music to your phone?
953: [10:55:28] <Colin[pi]> and quite frankly.. I like that apple is kinda restrictive on the OS
954: [10:55:52] <Colin[pi]> because I don't get the same BS I have on android, malware, intrustive ad stuff, task killers etc.
955: [10:56:20] <unsignedint> task killers are really only for low-end phones
956: [10:56:24] <unsignedint> but fair enough
957: [10:56:30] <antmas> Colin[pi]: agreed
958: [10:56:32] <Colin[pi]> well I have an aging tablet which needs it ;)
959: [10:56:55] <Colin[pi]> but it started to have icons appearing that I didn't authorise
960: [10:56:59] <Colin[pi]> i'm like wtf
961: [10:57:05] <Colin[pi]> some malware crept in with an app
962: [10:57:06] <unsignedint> I dont think the malware argument is very good either, just dont install malware. theres far more malware available for windows etc but nobody complains about that
963: [10:57:28] <Colin[pi]> yeah but i have never had that happen on iOS.. never
964: [10:57:37] <antmas> Colin[pi]: neither
965: [10:57:44] <antmas> on OSX sure
966: [10:57:56] <unsignedint> i also like what cyanogenmod is doing, reporting to the app that it will supply the capabilities and then return empty lists etc when the app requests contacts or whatever
967: [10:58:12] <Colin[pi]> anyway I don't want to get into a fanboi argument :)
968: [10:58:17] <unsignedint> haha fair enough
969: [10:58:18] <Colin[pi]> if you like what you use, then that's fine :D
970: [10:58:26] <antmas> unsignedint: yeah I'm waiting for my warranty to run out then its on to 4.4 ;)
971: [10:58:46] <unsignedint> nice :)
972: [11:01:00] <antmas> HATE having to wait for carriers to test that crap
973: [11:01:44] <unsignedint> carriers should stop implementing their own stuff and just trust google
974: [11:02:02] <antmas> speaking of sd cards, do you really need class 10 for phones?
975: [11:02:23] <unsignedint> I wouldnt think so if youre just using them for music etc
976: [11:02:38] <Colin[pi]> class 10 is just for HD video and stuff, right?
977: [11:03:00] <guzzlefry> simon_w: encryptors.yml I'm guessing? Should I just copy that over to /mysite/_config/ and add onto it?
978: [11:03:15] <simon_w> You just add to the array
979: [11:03:28] <antmas> Colin[pi]: yeah probably
980: [11:03:40] <antmas> pretty much never watch videos on my phone besides youube
981: [11:03:42] <guzzlefry> okay, I'll keep digging.
982: [11:03:44] <antmas> youtube*
983: [11:03:49] <antmas> just music really
984: [11:06:05] <Colin[pi]> remember when internet video looked like crap and tv was amazing?
985: [11:06:10] <Colin[pi]> now it's the opposite
986: [11:06:15] <Colin[pi]> for our free to air anywya
987: [11:06:18] <Colin[pi]> *anyway
988: [11:08:27] <EasyCo> Jesus, TSLA is taking a pounding
989: [11:09:12] <unsignedint> Colin[pi]: the dialup days right? I used to spend 2 weeks downloading a movie
990: [11:09:16] <Colin[pi]> lol
991: [11:09:49] <unsignedint> and it would be a shitty cam divx encode
992: [11:09:54] * chillu quit (Quit: chillu)
993: [11:10:43] <antmas> yeah it took me 24 days to download LoTR
994: [11:10:45] <antmas> lol
995: [11:11:01] <guzzlefry> fsck
996: [11:11:03] <AlphaCactus> 24 days... netflix can send it in like 2
997: [11:11:08] <guzzlefry> Don't know why this is so confusing to me. :P
998: [11:11:21] <antmas> AlphaCactus: yeah, netflix is amazing
999: [11:11:22] <antmas> love it
1000: [11:11:50] <unsignedint> lucky bastards who get netflix
1001: [11:11:58] <AlphaCactus> Netflix makes ripping movies easy and/or unnecessary.
1002: [11:11:59] <unsignedint> I used to have movieshack
1003: [11:12:11] <unsignedint> could get around ~10 movies a month
1004: [11:12:25] <unsignedint> postage delays were a pain though
1005: [11:12:59] * guci0 quit (Ping timeout: 250 seconds)
1006: [11:17:32] <EasyCo> Is there a $ModuleDir type varaible?
1007: [11:18:03] <guzzlefry> Config::inst()->update("PasswordEncryptor", "mysql", array("mysql", "PasswordEncryptor_MySQLPassword")); What am I doing wrong?
1008: [11:20:06] <antmas> unsignedint: you in NZ?
1009: [11:20:35] <antmas> you can get netflix anywhere...
1010: [11:29:15] <guzzlefry> how in the hell do I add onto an array in the Config system?
1011: [11:29:19] <EasyCo> So if you have an images folder in your module and you want to reference that image from your module template, is there a base path like $ThemeDir built in or do you need to register a variable with the base path yourself?
1012: [11:30:37] <unsignedint> antmas: sure am
1013: [11:31:09] <AlphaCactus> EasyCo: I think you need your own var
1014: [11:31:26] <unsignedint> antmas: you can get it in NZ but you have to proxy through a US ip address
1015: [11:31:46] <unsignedint> id rather just pirate until the assholes at the movie companies stop having retarded licensing restrictions
1016: [11:35:59] <guzzlefry> oh, I think I did it: Config::inst()->update("PasswordEncryptor", "encryptors", array("mysql" => array("PasswordEncryptor_MySQLPassword" => "mysql")));
1017: [11:38:43] <irogue23> unsignedint: in the case of Netflix, it's SKY stopping them from starting up here
1018: [11:39:02] <irogue23> they've basically bought up exclusive rights to ALL OF THE THINGS
1019: [11:39:08] <irogue23> and are extremely douchey about it
1020: [11:39:09] <unsignedint> corporate bastards always trying to protect their monopolies and bottom line
1021: [11:40:34] <Pyromanik> fucking console gamers.
1022: [11:40:39] <AlphaCactus> whats SKY
1023: [11:40:42] <Pyromanik> 'Wow the new battlefield is pretty great"
1024: [11:41:01] <guzzlefry> ss23: I DID ITS
1025: [11:41:03] <Pyromanik> AlphaCactus: think like "cable" but by satellite and actually a providers name (because it's a monopoly)
1026: [11:41:04] * guzzlefry goes crazy.
1027: [11:41:32] <AlphaCactus> oh that sky. how does sky block netflix?
1028: [11:41:35] <Pyromanik> tldr, SKY is subscription TV.
1029: [11:41:50] <unsignedint> AlphaCactus: the company owns the rights to all the shows so other companies cant broadcast them
1030: [11:42:01] <Pyromanik> AlphaCactus: probably something to do with business politics.
1031: [11:42:28] <Pyromanik> unsignedint: wait, I thought you were in the US?
1032: [11:42:36] <unsignedint> Pyromanik: lol no, im in NZ. Napier
1033: [11:42:40] <Pyromanik> rofl
1034: [11:42:52] * Pyromanik wonders why he though unsignedint was from the USA.
1035: [11:42:56] * Pyromanik shrugs
1036: [11:43:07] <unsignedint> is it coz of my murrican accent?
1037: [11:43:12] <AlphaCactus> less crack 4 u
1038: [11:43:52] <AlphaCactus> auy! dun merk fuhn uv us ammericuns
1039: [11:44:53] <irogue23> fuuuuu
1040: [11:45:00] <guzzlefry> guys
1041: [11:45:05] * unsignedint hands AlphaCactus a gun and expects him to say 'FUCK YEAH 'MURRICA *bang* *bang*'
1042: [11:45:05] <guzzlefry> stop watching South Park
1043: [11:45:07] <irogue23> i thought i was being so smart this morning, buying lunch at the same time i bought breakfast
1044: [11:45:12] <ss23> guzzlefry: l33t, nice
1045: [11:45:30] <irogue23> but now i'm gonna go back to the shops anyway to get a drink
1046: [11:45:33] <ss23> guzzlefry: Just FYI, using the mysql passowrd encryptor is bad, like, "holy shit why bother, just store it in plaintext" bad.
1047: [11:45:55] <AlphaCactus> Hey thar boy. Gimme dat gun! Yeeehaw
1048: [11:45:59] <guzzlefry> ss23: This is for http auth crap, don't care.
1049: [11:46:07] <guzzlefry> Client was using plaintext before. :P
1050: [11:46:12] * unsignedint stores passwords in plaintext
1051: [11:46:19] <guzzlefry> YOU WHAT
1052: [11:46:22] <Pyromanik> irogue23: yeah don't be smart. It is excuse to get up and walk.
1053: [11:46:24] <unsignedint> sue me, when an asshole asks what their password is its easy to tell them
1054: [11:46:48] <unsignedint> also theres nothing really important stored anyway
1055: [11:46:48] <ss23> guzzlefry: Don't care, ur lame
1056: [11:46:57] <guzzlefry> ss23: haters gonna hate
1057: [11:46:59] <ss23> guzzlefry: If you want, I'll write a blog post on how to do it properly when/if I do it
1058: [11:47:02] <ss23> lol
1059: [11:47:12] <Pyromanik> unsignedint: rofl
1060: [11:47:13] <guzzlefry> ss23: You should.
1061: [11:47:13] <AlphaCactus> passwords are sooo last century
1062: [11:47:17] <guzzlefry> also
1063: [11:47:24] <guzzlefry> ss23: Lecture unsignedint before me. :P
1064: [11:47:34] <Pyromanik> when some arsehole asks me what their password is I go "no fucking idea, that's 1/4 hr charge, thanks for your call."
1065: [11:47:54] <ss23> Whats this, you have a bug on your site?
1066: [11:48:00] <ss23> rm -rf /tmp/silverstripe*
1067: [11:48:01] <ss23> fixed.
1068: [11:48:03] <AlphaCactus> "Go click the i'm a dumbass and forgot my password link under the login form"
1069: [11:48:05] <guzzlefry> I have a little book full of passwords.
1070: [11:48:17] <Pyromanik> I just remember all my passwords.
1071: [11:48:32] <guzzlefry> Mine are like 15 characters long with no pattern. :P
1072: [11:48:35] <Pyromanik> I turn that "make my derp browser remember my derp password because I'm derp"
1073: [11:48:38] <Pyromanik> off
1074: [11:48:40] <Pyromanik> so then I remember.
1075: [11:48:45] <ss23> Pyromanik: That sounds like a good sign you're a) using a predictable scheme for your passwords, or b) reusing passwords
1076: [11:48:48] <Pyromanik> guzzlefry: oh, for that we have google docs :P
1077: [11:48:52] <ss23> Either way, it's a hell of a lot worse than writing them down.
1078: [11:49:08] <Pyromanik> nah
1079: [11:49:11] <ss23> nah?
1080: [11:49:15] <Pyromanik> because I remember them.
1081: [11:49:19] <ss23> no
1082: [11:49:20] <AlphaCactus> derp chrome basically stores them in plain text. you can go look at stoed password in chrome without any authentication
1083: [11:49:21] <Pyromanik> yes
1084: [11:49:29] <Pyromanik> the fuck is the point in a password you can't remember?
1085: [11:49:40] <AlphaCactus> security from yourself
1086: [11:49:45] <Pyromanik> AlphaCactus: every browser does. How else can it put it in the form?
1087: [11:49:47] <guzzlefry> If it's hard to remember then it's sometimes hard to guess. :P
1088: [11:50:04] <ss23> Pyromanik: Do you have a new randomly generated password for every site you use?
1089: [11:50:14] <ss23> It is worse to reuse passwords than it is to write them down.
1090: [11:50:19] <ss23> That is the reason "I just remember my passwords" is bad.
1091: [11:50:25] <AlphaCactus> Pyromanik: indeed. but you can do it without hacking the page or going to a page. you can seee them all.
1092: [11:50:26] <Pyromanik> ss23: ZyldujEkKad0
1093: [11:50:42] <Pyromanik> old server password. I still remember it because I typed it every day for 2 years.
1094: [11:50:51] <ss23> Pyromanik: And? That doesn't answer my question.
1095: [11:50:51] <guzzlefry> ss23: I have a few characters variation between my passwords that I don't care too much about. >_>
1096: [11:50:58] <Pyromanik> ss23: yes.
1097: [11:51:07] <ss23> Pyromanik: I presume oyu have maybe 30+ accounts easily? (I have 200+ stored in my manager)
1098: [11:51:15] <ss23> If you can remmeber that many generated passwords for every account you've signed up for
1099: [11:51:21] <ss23> You should go talk to a university
1100: [11:51:27] <ss23> Cause that is soem ungodly memory skills.
1101: [11:51:44] <Pyromanik> ss23: I fucking hate needlessly signing up for shit, so it doesn't happen often.
1102: [11:51:50] <Pyromanik> I also have a tier system for passwords.
1103: [11:51:53] <ss23> lol
1104: [11:51:55] <ss23> I fucking knew it
1105: [11:51:58] <ss23> You reuse the shit out of your passwords.
1106: [11:52:07] * Ryan-Toast quit (Quit: Ryan-Toast)
1107: [11:52:07] <Pyromanik> shit I don't really care about get pattern generator passwords.
1108: [11:52:17] <irogue23> so
1109: [11:52:20] <irogue23> how about dat adobe
1110: [11:52:20] <guzzlefry> hax
1111: [11:52:24] <irogue23> not hashing their passwords
1112: [11:52:30] <Pyromanik> irogue23: meh?
1113: [11:52:31] <guzzlefry> I thought they did?
1114: [11:52:32] <Pyromanik> it's adobe.
1115: [11:52:35] <ss23> irogue23: looooool
1116: [11:52:37] <ss23> CBC CBC
1117: [11:52:37] <ss23> idek
1118: [11:52:45] <Pyromanik> someone thought they were good engineers and was surprised when they found out they're not?
1119: [11:52:45] <ss23> like
1120: [11:52:46] * spronk2 has joined #silverstripe
1121: [11:52:48] <Pyromanik> LOL
1122: [11:52:53] <irogue23> guzzlefry: nope, they were encrypted, all with the same key
1123: [11:52:59] <Pyromanik> lol
1124: [11:53:04] <ss23> Someone had to sit there and think "We shouldn't store our passwords in plaintext"
1125: [11:53:10] <ss23> Then, they had to think "LETS USE 3DES"
1126: [11:53:11] <ss23> like
1127: [11:53:12] <irogue23> and since the hackers also got a dump of all their code etc., highly likely they have the key
1128: [11:53:12] <ss23> how the fuck.
1129: [11:53:57] <guzzlefry> wait
1130: [11:54:10] <guzzlefry> ss23: You're the security guy, not the doc maintainer!
1131: [11:54:15] <Pyromanik> they totally should have used a revolving hex hydra morphing algorithm.
1132: [11:54:25] <Pyromanik> WOW, science! thanks Swordfish!
1133: [11:54:33] <Pyromanik> you put it together like a cube!
1134: [11:54:40] <irogue23> relevant xkcd: http://xkcd.com/1286/
1135: [11:54:51] <ss23> Ah, this building
1136: [11:54:57] <ss23> It's like a constant game of "walking or earthquake"
1137: [11:55:09] <simon_w> Gah dangit, I didn't use a generator for my adobe account
1138: [11:55:11] <simon_w> Stupid old logins
1139: [11:55:12] <ss23> lol
1140: [11:55:18] <ss23> simon_w: want me to try find out your password? :D
1141: [11:55:36] <irogue23> yeah, the data dumps are on the torrents
1142: [11:55:53] <ss23> I have the logins at home if anyone wants me to check for them
1143: [11:56:23] <ss23> I was going to write a web form thing that let you put in your email and it tells you some stats (e.g. your password if it knows it, commonness of passowrd, guessed length, password hints, etc)
1144: [11:56:45] <irogue23> Adobe also decribed the customer credit card data and other PII (Personally Identifiable Information) that was stolen in the same attack as "encrypted."
1145: [11:56:48] <irogue23> And, as fellow Naked Security writer Mark Stockley asked, "Was that data encrypted with similar care and expertise, do you think?
1146: [11:57:16] <guzzlefry> I thought they had to get audited for that PCI-DSS compliance thing?
1147: [11:57:21] <guzzlefry> to store card info
1148: [11:57:34] <ss23> PCI complaiance means literally nothing in terms of real world
1149: [11:57:35] <ss23> Like
1150: [11:57:37] <ss23> Literally
1151: [11:57:38] <guzzlefry> oh
1152: [11:57:42] <guzzlefry> hm
1153: [11:57:49] <guzzlefry> ss23: Wouldn't they have the keys to decrypt anyway?
1154: [11:57:50] <Pyromanik> http://xkcd.com/792/
1155: [11:57:57] <ss23> guzzlefry: Who is "they", Adobe?
1156: [11:58:10] <guzzlefry> the people that managed to get that level of access into their Adobe's system :P
1157: [11:58:11] <guzzlefry> haxors
1158: [11:58:14] <ss23> Yeah, guzzlefry
1159: [11:58:15] <irogue23> PCI is self-audited. you basically sign a piece of paper saying "i swear i'm doing everything right!"
1160: [11:58:15] <ss23> Well
1161: [11:58:17] <Pyromanik> my email address is probably in that list
1162: [11:58:17] <ss23> Probably
1163: [11:58:26] <ss23> :(
1164: [11:58:30] <Pyromanik> but it's only going to be my address for 3 more weeks
1165: [11:58:31] <ss23> I don't have the files with me at work to check
1166: [11:58:46] * Pyromanik shrugs
1167: [11:58:49] <Pyromanik> meh
1168: [11:58:57] <Pyromanik> not my credit card.
1169: [11:59:06] <Pyromanik> nor my password
1170: [12:01:23] <Colin[pi]> nor my axe
1171: [12:01:46] <irogue23> nor my penis
1172: [12:02:48] <unsignedint> nor my rubber chicken
1173: [12:02:57] <unsignedint> nor my squeaky horn
1174: [12:03:20] <unsignedint> lord of the burger rings what?
1175: [12:04:27] <ss23> I have a weird bug... a live site isn't displaying the documents attached to a page
1176: [12:04:30] <ss23> $val .= SSViewer::execute_template('Documents', $scope->getItem(), array());
1177: [12:04:37] <ss23> oh
1178: [12:04:46] <ss23> I thought that said "exclude template", not "execute template"
1179: [12:04:52] * Ryan-Toast has joined #silverstripe
1180: [12:04:55] <ss23> Either way, that template doesn't seem to be being included on some pages, which cnofuses me.
1181: [12:06:46] <ss23> or something
1182: [12:06:47] <ss23> wtf
1183: [12:08:34] <ss23> blargh
1184: [12:16:42] <ss23> guis
1185: [12:16:44] <ss23> :(
1186: [12:16:48] <ss23> $this->record...
1187: [12:16:50] <ss23> is an array
1188: [12:16:51] <ss23> not a class
1189: [12:16:51] <ss23> ;_;
1190: [12:16:54] <ss23> how 2 get the object
1191: [12:17:31] <guzzlefry> ss23: $this being the controller?
1192: [12:17:36] <ss23> yeah
1193: [12:17:41] <guzzlefry> $this->data();
1194: [12:17:43] <ss23> ty
1195: [12:17:47] <guzzlefry> I think. :P
1196: [12:17:54] <ss23> yeah
1197: [12:17:54] <ss23> :D
1198: [12:18:01] <guzzlefry> yay
1199: [12:20:51] <ss23> edit on live like a boss.
1200: [12:21:20] <antmas> unsignedint: re-netflix
1201: [12:21:35] <unsignedint> hmm?
1202: [12:21:39] <antmas> yeah you just need a vpn, it works very well
1203: [12:22:03] <unsignedint> good to know
1204: [12:22:18] <unsignedint> im still going to pirate out of principle, I shouldnt have to use a VPN
1205: [12:22:40] <antmas> I have it setup so I generate a false gmail account every week and sign up to unblockus, takes the dns addresses and email myself with them
1206: [12:22:46] <unsignedint> region-specific licensing restrictions are retarded and im not going to pay money to support them
1207: [12:22:48] <antmas> :) saving $5 a month lol
1208: [12:22:59] <unsignedint> haha nice :)
1209: [12:23:15] * nyeholt has joined #silverstripe
1210: [12:28:03] * travis-ci has joined #silverstripe
1211: [12:28:04] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1506 (3.1 - 252b6e5 : Damian Mooyman): The build passed.
1212: [12:28:04] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/9d550f893847...252b6e53ac8e
1213: [12:28:04] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13611801
1214: [12:28:04] * travis-ci has left #silverstripe
1215: [12:30:36] <antmas> trouble is it SUCKS on xbox
1216: [12:30:45] <antmas> awesome on pc/ipad
1217: [12:32:13] <antmas> xero just reached 5 billion
1218: [12:32:15] <antmas> :O
1219: [12:32:24] * Motoservo has joined #silverstripe
1220: [12:33:07] <unsignedint> wow
1221: [12:33:21] <unsignedint> I like Xero only because it has an API
1222: [12:33:30] <antmas> 1 billion in less than 2 days
1223: [12:33:33] <antmas> insane
1224: [12:33:45] <unsignedint> venture capital raising round?
1225: [12:33:56] <zippy__> nope share price just going up
1226: [12:34:28] <zippy__> amazing how it's gone from $17~ a share to $37 now -> https://www.nzx.com/markets/NZSX/securities/XRO
1227: [12:34:54] <antmas> they're targeting $47.5 or so?
1228: [12:34:56] <zippy__> crazy how it's now valued at more than all but 1 other nz company.... mental, for software
1229: [12:35:14] <zippy__> antmas: some stock market people think it will hit that much...
1230: [12:35:16] <antmas> how bloody risky is that now
1231: [12:35:49] <unsignedint> when will the business types learn...
1232: [12:36:00] * unsignedint waits for a rcession-style bubble burst
1233: [12:36:04] <unsignedint> recession*
1234: [12:36:22] <antmas> I would have sold all mine probably around the $30 mark
1235: [12:36:51] <unsignedint> in other news, 1 BTC is $NZ 319
1236: [12:36:54] <unsignedint> I sold mine at $160
1237: [12:36:57] <unsignedint> I am gutted
1238: [12:37:01] <zippy__> lol doh
1239: [12:37:05] <antmas> bitcoin?
1240: [12:37:08] <unsignedint> yeah
1241: [12:37:14] <antmas> I have 1.5 now :)
1242: [12:37:21] <unsignedint> bitnz.com is where im trading
1243: [12:37:27] <unsignedint> im waiting for it to go back to !$110
1244: [12:37:32] <unsignedint> I may be waiting for a while
1245: [12:37:34] <Pyromanik> guys guys guys guys guys (no catcher, don't get excited)
1246: [12:37:38] * travis-ci has joined #silverstripe
1247: [12:37:38] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#646 (3.1 - f9c3f4d : Damian Mooyman): The build was fixed.
1248: [12:37:38] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/77ef09e857b8...f9c3f4d1ccc5
1249: [12:37:38] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/13611811
1250: [12:37:38] * travis-ci has left #silverstripe
1251: [12:37:45] <Pyromanik> http://sspaste.com/paste/show/527aecd626631
1252: [12:38:07] <unsignedint> whats that?
1253: [12:38:15] <Pyromanik> A slugger!
1254: [12:38:23] <antmas> THLUG LI4E
1255: [12:38:26] <Pyromanik> eg, what SiteTree SHOULD have!
1256: [12:38:28] <unsignedint> how is URLSlug used?
1257: [12:38:31] <unsignedint> oh right
1258: [12:38:41] <Pyromanik> instead of ingraining it
1259: [12:38:49] * DigNZ1 quit (Quit: DigNZ1)
1260: [12:38:49] <unsignedint> yeah I literally just overrode getURLSegment() to return a slug of the title
1261: [12:38:56] <unsignedint> if theres a clash, who cares
1262: [12:38:59] <Pyromanik> yeah but
1263: [12:39:01] <Pyromanik> yeh
1264: [12:39:01] <Pyromanik> lol
1265: [12:39:04] <Pyromanik> this cares :>
1266: [12:39:16] <Pyromanik> and it's an extension - slug ALL the things!
1267: [12:39:17] <unsignedint> fair enough :) in my case it wasnt an issue since there wont be a clash
1268: [12:39:21] <unsignedint> nice
1269: [12:39:38] <Pyromanik> also optionally supports nesting (cf parentid)
1270: [12:39:48] <Pyromanik> vs test all of the things for a clash
1271: [12:39:59] <irogue23> http://www.youtube.com/watch?v=TCF2TPQOA7I
1272: [12:40:02] <irogue23> fucking cool cover
1273: [12:40:13] <Pyromanik> also last param is "hide segment from user, or let them be able to fuck shit up?"
1274: [12:40:24] <antmas> -_-
1275: [12:40:29] <antmas> anything to do with that song
1276: [12:40:38] <unsignedint> definitely allow them to fuck shit up, all the more power to the user!
1277: [12:40:39] <Pyromanik> antmas: what is song?
1278: [12:40:46] <Pyromanik> unsignedint: haha, agreed.
1279: [12:40:47] <antmas> Lorde
1280: [12:40:48] <unsignedint> and then charge them when you fix it
1281: [12:40:53] <Pyromanik> except in my very first usecase, I don't care, fuck you user!
1282: [12:41:01] <Pyromanik> antmas: royals?
1283: [12:41:05] <Pyromanik> dat lorde.
1284: [12:41:06] <antmas> Pyromanik: yeh
1285: [12:41:09] <irogue23> but... funk!
1286: [12:41:10] <antmas> NO
1287: [12:41:13] <Pyromanik> found out yesterday she's from NZ, and she's only 16.
1288: [12:41:17] <antmas> funk yes, lord no
1289: [12:41:19] <antmas> lorde*
1290: [12:41:21] <irogue23> Pyromanik: 17 now!
1291: [12:41:26] <Pyromanik> ooooh
1292: [12:41:29] * Pyromanik cares less
1293: [12:41:37] <antmas> o.O
1294: [12:41:38] <irogue23> birthday yesterday :P
1295: [12:41:48] <unsignedint> well at least shes legal
1296: [12:41:57] <Pyromanik> irogue23: do you like my slugger?
1297: [12:41:59] <antmas> give it time, she'll be twerking before you know it
1298: [12:42:03] <ss23> Whats this? Lorde?
1299: [12:42:04] <ss23> I think you mean
1300: [12:42:08] <ss23> http://www.youtube.com/watch?v=-6Xl9tBWt54
1301: [12:42:09] <Pyromanik> do you at least like my sluggy freelance reference?
1302: [12:42:10] <ss23> Lordi.
1303: [12:42:18] <antmas> ss23: WINWINWINWINWINWIN
1304: [12:42:18] <Pyromanik> Lawdie
1305: [12:42:28] * ss23 headbangs
1306: [12:42:35] * Pyromanik hears TATU, lolwut
1307: [12:43:59] <antmas> slug
1308: [12:44:07] <antmas> needs moar Atmosphere
1309: [12:44:13] * antmas listens to atmosphere
1310: [12:44:42] <ss23> NOW CHOICE TO JOIN US OR GO STRAIGHT TO DRUPAL
1311: [12:45:10] * DigNZ has joined #silverstripe
1312: [12:45:14] <ss23> choose*
1313: [12:45:39] <unsignedint> I would choose Drupal but I hear its worse than Joomla
1314: [12:45:40] <antmas> http://www.youtube.com/watch?v=2Da5fqQ34mc
1315: [12:45:50] <unsignedint> and Joomla is an utter piece of crap
1316: [12:46:02] <antmas> so is Derple
1317: [12:46:42] <ss23> Oh, antmas is posting rap
1318: [12:46:45] * unsignedint dreams of the SS cms ui on top of a modern base like laravel 4
1319: [12:47:28] <antmas> ss23: :D
1320: [12:48:11] <irogue23> unsignedint: OH GOD
1321: [12:48:14] * irogue23 jizzes
1322: [12:48:14] <ss23> http://www.youtube.com/watch?v=bWXazVhlyxQ rap?
1323: [12:48:46] * antmas feels like I'm 16 again
1324: [12:49:05] <ss23> antmas: What, you don't feel like you want to be an anarchist anymore? Grew out of it?
1325: [12:49:10] <antmas> also, unsignedint said the jword
1326: [12:49:12] <antmas> :O
1327: [12:49:17] <ss23> lol
1328: [12:49:25] <antmas> ss23: always!
1329: [12:49:30] <unsignedint> whats the link to the swear word stats again?
1330: [12:49:50] <ss23> logs.simon.geek.nz/stats?
1331: [12:50:05] <antmas> borked!
1332: [12:50:15] <unsignedint> The requested URL /stats was not found on this server.
1333: [12:50:21] <ss23> http://logs.simon.geek.nz/stats.php
1334: [12:50:22] <ss23> :D
1335: [12:50:27] <ss23> oop
1336: [12:50:28] <unsignedint> ss23: go update the docs :P
1337: [12:50:29] <ss23> it's not cached
1338: [12:50:31] <ss23> this could take some time
1339: [12:50:32] <ss23> unsignedint: STOP
1340: [12:50:34] <ss23> ;_;
1341: [12:51:18] <antmas> we don't talk about the docs in here
1342: [12:51:19] <ss23> guis
1343: [12:51:22] <ss23> I hope you didn't all click that stats link
1344: [12:51:22] <antmas> shunned
1345: [12:51:26] <ss23> cause his server is going to die
1346: [12:51:27] <unsignedint> how many people opened the page lol
1347: [12:51:29] <antmas> ss23: I did
1348: [12:51:30] <ss23> STAMPEEEEEEEDE
1349: [12:51:31] <ss23> lol
1350: [12:51:33] <unsignedint> I did too
1351: [12:51:34] <irogue23> i did
1352: [12:51:36] <antmas> horaay!
1353: [12:51:44] <ss23> fffffuck
1354: [12:51:52] <simon_w> 14:51:46 up 178 days, 2:27, 2 users, load average: 3.70, 1.18, 0.41
1355: [12:51:58] <simon_w> Eh :p
1356: [12:52:07] <antmas> lol
1357: [12:52:13] <unsignedint> maybe it will motivate him to put the code on github so we can improve it
1358: [12:52:25] <irogue23> simon_w is just outsourcing his load-testing
1359: [12:52:52] <antmas> it broked good!
1360: [12:53:04] <simon_w> Pfft, it ain't going on github
1361: [12:53:17] <Pyromanik> antmas: ss23 http://www.youtube.com/watch?v=OO_XG1m4bpc
1362: [12:53:20] <irogue23> git is against simon_w's religion
1363: [12:53:29] <unsignedint> simon_w: what if github had svn?
1364: [12:53:33] <antmas> Pyromanik: no headphones today :9
1365: [12:53:36] <antmas> :(
1366: [12:53:38] <simon_w> unsignedint, it does
1367: [12:53:48] <ss23> lol
1368: [12:53:52] <ss23> "what if github had svn"
1369: [12:53:53] * Motoservo quit (Quit: Motoservo)
1370: [12:53:56] <unsignedint> even though it has svn you still dont want to use it?
1371: [12:54:05] <simon_w> Why should I?
1372: [12:54:10] <Pyromanik> antmas: put it on anyway.
1373: [12:54:14] <unsignedint> makes the code more accessible?
1374: [12:54:18] <antmas> no speakers :(
1375: [12:54:29] <simon_w> No it doesn't
1376: [12:54:29] <irogue23> nah bro, cvs is where it's at unsignedint
1377: [12:54:34] <Pyromanik> antmas: :<
1378: [12:54:40] <ss23> irogue23: dude no way
1379: [12:54:42] <Pyromanik> antmas: on the phone!
1380: [12:54:44] <ss23> microsoft source safe.
1381: [12:54:49] <simon_w> http://logs.simon.geek.nz/source/
1382: [12:54:49] * irogue23 throws up everywhere
1383: [12:54:54] <unsignedint> oh yeah I will use cvs in all my future projects
1384: [12:55:09] <antmas> I put Cannible Corpse as my voice mail on my company phone a month or so agi
1385: [12:55:15] <simon_w> For the five of you waiting, the stats have loaded
1386: [12:55:19] <antmas> ago*
1387: [12:55:32] <ss23> yay
1388: [12:55:32] <ss23> :D
1389: [12:55:35] <unsignedint> oh shit I closed the tab, time to reopen
1390: [12:55:42] <irogue23> hahaha
1391: [12:55:45] <simon_w> Oh noes, it's cached now
1392: [12:55:55] <unsignedint> indeed
1393: [12:55:56] <simon_w> Need to switch it to a cron or something
1394: [12:56:06] <antmas> lol at subsites
1395: [12:56:09] <unsignedint> well Pyromanik is still top of the list
1396: [12:56:14] <ss23> lol simon_w, what... you put "blink" and "chrome" on here!
1397: [12:56:35] <simon_w> yes, chrome was in the first batch
1398: [12:56:35] <irogue23> just for you ss23
1399: [12:56:42] <simon_w> blink may have been too
1400: [12:56:43] <Pyromanik> antmas: rofl, did people stop ringing you?
1401: [12:56:48] <ss23> yay
1402: [12:56:49] <ss23> I am composer
1403: [12:56:50] <ss23> :D
1404: [12:56:56] <antmas> Pyromanik: yeah, it was great
1405: [12:57:23] <ss23> I AM THE CUNT, MASTER
1406: [12:57:49] <unsignedint> put a comma after CUNT
1407: [12:58:28] <simon_w> hang on...
1408: [12:58:38] * Motoservo has joined #silverstripe
1409: [12:58:41] <ss23> unsignedint: That changes the meaning!
1410: [12:58:55] <unsignedint> I know :P
1411: [12:59:13] <unsignedint> fuck im getting too distracted in here, better go do some work
1412: [12:59:30] <simon_w> http://logs.simon.geek.nz/index.php?date=2013-11-07#log_1109713
1413: [12:59:32] <antmas> my boss and 2ic are away today :)
1414: [12:59:32] <simon_w> :D
1415: [12:59:41] <ss23> simon_w: SON
1416: [12:59:44] <ss23> lol
1417: [12:59:48] <ss23> dammit
1418: [12:59:50] <ss23> cheater.
1419: [12:59:54] <simon_w> So much easier now that it's database driven
1420: [13:00:13] <simon_w> Can't screw up my editing by saying something while I have the file open now!
1421: [13:00:20] <antmas> lol, best page ever. irogue23 puking and ss23 screaming about cunts
1422: [13:01:14] * antmas wonders whether to raid the caffeteria for biscuits
1423: [13:01:32] <simon_w> Stop wondering and just fuckin' do it
1424: [13:01:41] <irogue23> AMEN BROTHER SIMON
1425: [13:02:22] <antmas> ;__;
1426: [13:02:29] <antmas> they're only digestibles
1427: [13:02:31] <antmas> YUCK
1428: [13:02:41] <antmas> fuck that jazz
1429: [13:03:01] <simon_w> oh, fuck of zendesk
1430: [13:03:45] <simon_w> fuck off too
1431: [13:04:05] <zippy__> wooo I finally made it on the fucking stats list, yea bitch
1432: [13:04:08] <irogue23> hahaha zendesk
1433: [13:04:08] <irogue23> so bad
1434: [13:04:54] <antmas> zippy__: so many people at kmart -_-
1435: [13:05:03] <zippy__> I bet!
1436: [13:05:16] * antmas has never been to kmart
1437: [13:05:20] <antmas> what do they sell there?
1438: [13:05:31] <ss23> you know what the most depressing part of zendesk is?
1439: [13:05:35] <ss23> THERE'S NOTHING BETTER ;_;
1440: [13:05:35] <simon_w> zippy__, but you're only on the crap bitching ones
1441: [13:06:04] <simon_w> ss23, I know! And it'll take long to write a better one :(
1442: [13:06:10] <antmas> I thought it was just a slightly more expensive warehouse
1443: [13:06:11] <ss23> mmm :(
1444: [13:06:12] <antmas> ...
1445: [13:06:25] <ss23> I don't care about the zendesk backend, functionally it seems fine. It's just the retarded frontend I hate
1446: [13:06:59] <Ryan-Toast> Hey guys, can anyone tell me how I can make a GridField item use a popup window intend of opening a new page?
1447: [13:07:24] <simon_w> Ryan-Toast, don't think you can. Moved away from popups for a reason.
1448: [13:07:34] <Ryan-Toast> Ah, kay. Cheers :)
1449: [13:07:50] <irogue23> wow. so, my damn near new office chair broke
1450: [13:08:06] <irogue23> so i pulled it apart to see what was up
1451: [13:08:12] <irogue23> holy crap these things are badly made
1452: [13:08:24] <Ryan-Toast> And yet they still cost $500+
1453: [13:08:36] <irogue23> well, to be fair this is a $100 warehouse stationery one
1454: [13:08:51] <simon_w> Whereas these life chairs we "borrowed" from SilverStripe are still going fine
1455: [13:09:15] <irogue23> but still, the seat back sits on top of the pole bit on the back
1456: [13:09:30] <Ryan-Toast> I brought this one a few months ago, it's so damn comfy: http://www.harveynorman.co.nz/furniture/desks-and-suites/san-marino-pu-recliner-chair.html
1457: [13:09:34] <irogue23> pole has pins poking out the side which go into holes in the plastic framing inside the chair
1458: [13:09:41] <irogue23> the plastic has just fallen apart
1459: [13:09:50] <irogue23> which means the seat back moves around in all directions instead of just back and forward
1460: [13:10:18] <irogue23> there's no holes for the pins to go in, the seat back is literally just sitting on top of the pole
1461: [13:10:19] <antmas> Ryan-Toast: too racey
1462: [13:10:34] <Ryan-Toast> antmas: Gotta go fast
1463: [13:10:37] <antmas> also, $900?
1464: [13:11:11] <Ryan-Toast> I got it for $half price, since one of my fellow charity workers is a lawyer for Harvey norman.
1465: [13:11:16] <simon_w> My home chair is great. No idea where it's from though
1466: [13:11:44] <Ryan-Toast> There are heaps of chairs I want from overseas, but the shipping is way too much.
1467: [13:12:03] <zippy__> Life chairs are nie
1468: [13:12:05] <zippy__> *nice
1469: [13:12:26] <simon_w> Well, these ones are way past their prime, so not really :p
1470: [13:12:40] <zippy__> spend 2g on a bed, may as well spend that much in a chair you sit in for just as long
1471: [13:13:04] <antmas> zippy__: agreed
1472: [13:13:18] <antmas> kinda how I feel about buying my new car
1473: [13:13:22] * UncleCheese has joined #silverstripe
1474: [13:13:40] <irogue23> right, fixed my chair
1475: [13:13:49] <irogue23> (completely removed the back)
1476: [13:14:06] <zippy__> so it's a bit like a swiss ball now?
1477: [13:14:20] <irogue23> kinda like a stool
1478: [13:14:32] <irogue23> altho now that you mention it, there's a swiss ball in the house
1479: [13:14:47] * antmas will buy whatever chair doesn'
1480: [13:14:52] <antmas> t absorb farts
1481: [13:15:07] <irogue23> my flatmate has cerebral palsy so he bought it with the intention of using it, but he never does
1482: [13:15:11] <irogue23> antmas: AMEN
1483: [13:15:46] <irogue23> was "fixing" my chair, kept leaning on the padding and releasing the stored stank
1484: [13:16:19] <antmas> irogue23: blegghgeehgheheghegh
1485: [13:16:20] <antmas> GROSS
1486: [13:16:42] <antmas> my old one would simply puff with what appeared to be smoke
1487: [13:16:46] <antmas> then I realised
1488: [13:16:50] <antmas> it's mostly SKIN!
1489: [13:16:51] <antmas> :O
1490: [13:18:39] <Ryan-Toast> If I have a has_many relationship in my SiteConfig, how would I pull a list of those into a page? Would I use the get() function?
1491: [13:20:00] * nickmolhoek quit (Quit: nickmolhoek)
1492: [13:20:46] <Ryan-Toast> Anyone?
1493: [13:26:35] <Pyromanik> fuckn
1494: [13:26:41] <Pyromanik> slag with a bright yellow scooter
1495: [13:26:49] <Pyromanik> keeps parking it in the push bike rack in the carpark
1496: [13:27:06] <Pyromanik> basically blocking 2-3 spaces to put a bicycle
1497: [13:27:27] <Pyromanik> just watching now as she comes out, pushes all the bikes over to get her fucking scooter out, then just rides off.
1498: [13:27:46] <Pyromanik> shit 'bout to go down.
1499: [13:28:05] <Ryan-Toast> Let the air out of her tyres.
1500: [13:28:14] <Ryan-Toast> Or set her house on fire.
1501: [13:28:18] <Pyromanik> Ryan-Toast: nah, we're probably going to ... yes.
1502: [13:28:32] <Pyromanik> also, $SiteConfig.RelationName
1503: [13:28:39] <Ryan-Toast> <3
1504: [13:28:47] <Pyromanik> or $this->SiteConfig->RelationName()
1505: [13:28:55] <spronk> :|
1506: [13:29:00] <antmas> can of V in the gas tank
1507: [13:29:04] <Pyromanik> or SiteConfig::current_siteconfig()->RelationName()
1508: [13:29:05] <spronk> paint her scooter black
1509: [13:29:11] <spronk> light it on fire
1510: [13:29:39] <Pyromanik> antmas: fantastic. Passing that on to the lads.
1511: [13:29:41] <spronk> replace it with a piece of cardboard
1512: [13:29:50] <Pyromanik> rofl spronk
1513: [13:30:55] <Ryan-Toast> Pyromanik: Tried this: http://pastebin.com/Mr2e9nF9 but the drop down is empty.
1514: [13:32:29] <Colin[pi]> *twitch twitch* http://i.imgur.com/J6G8O07.png
1515: [13:32:45] <antmas> Colin[pi]: KILL IT WITH FIRE
1516: [13:32:47] <Colin[pi]> lazy css like this annoys me
1517: [13:34:57] <Pyromanik> http://www.youtube.com/watch?v=7bN2r3PzuGg
1518: [13:35:36] <antmas> put spiders in her helmet
1519: [13:35:42] <Pyromanik> Ryan-Toast: it might be lowercase ($this->siteconfig)
1520: [13:35:54] <Colin[pi]> that poor fucking scooter
1521: [13:35:55] <Pyromanik> and will only work on page objects
1522: [13:36:04] <ss23> How to get all members that are in groups foo, bar, baz, and not in groups kitten, dog, banana?
1523: [13:36:17] <Pyromanik> ->filter()->exclude()
1524: [13:37:01] <Ryan-Toast> Pyromanik: No dice.
1525: [13:37:57] <Pyromanik> http://iforce.co.nz/i/0ke3dvj0.11i.png
1526: [13:38:10] <ss23> Pyromanik: how 2 filter by groups though?
1527: [13:38:41] <Pyromanik> Ryan-Toast: oh, SiteConfig is on ContentController, not page.
1528: [13:38:49] <Pyromanik> or... hmm
1529: [13:38:58] <Pyromanik> Ryan-Toast: $this->SiteConfig() ?
1530: [13:39:09] <Pyromanik> yeh
1531: [13:39:20] <Pyromanik> $this->getSiteConfig()->RelationName()
1532: [13:39:33] <Pyromanik> http://api.silverstripe.org/3.1/class-SiteTree.html#_getSiteConfig
1533: [13:39:46] <Pyromanik> knew it was there somewhere.
1534: [13:40:30] <Pyromanik> ss23: really?
1535: [13:40:32] <Ryan-Toast> Pyromanik: Tried: $sliders = $this->getSiteConfig()->Slider
1536: [13:40:39] <Ryan-Toast> but it's still empty.
1537: [13:40:43] <Ryan-Toast> :(
1538: [13:40:43] <ss23> Pyromanik: i am a first time silverstripe user please help.
1539: [13:41:02] <Pyromanik> array('blah'=>array(1,4,5,ID,ID,ID))
1540: [13:41:14] <Pyromanik> Ryan-Toast: becuase it's a relation -.-
1541: [13:41:18] <Pyromanik> Slider()
1542: [13:41:30] <Ryan-Toast> Slider() would be a method though, right?
1543: [13:41:34] <Pyromanik> yes.
1544: [13:41:47] <Pyromanik> Slider would be a db property
1545: [13:41:50] <Ryan-Toast> So make a method that gets the sliders in siteConfig?
1546: [13:41:56] <Pyromanik> Slider() would be for has|many*
1547: [13:42:03] <Pyromanik> no
1548: [13:42:24] <Pyromanik> $has_many = array('Slider' => 'SliderObject');
1549: [13:42:36] <Pyromanik> blah blah getsitetree ->Slider()
1550: [13:42:39] <Ryan-Toast> I have that in my siteConfig.
1551: [13:42:57] <Pyromanik> should call it slides. or something a little more logical.
1552: [13:43:04] <Pyromanik> but it's irrelevant what you call it.
1553: [13:43:12] <Pyromanik> RelationName => ObjectType
1554: [13:43:15] <Ryan-Toast> there are slides in slider
1555: [13:43:22] <Pyromanik> you ->RelationName() to get relations on DataObjects.
1556: [13:43:22] <Ryan-Toast> which is why it's called slider.
1557: [13:43:33] <Pyromanik> SiteTree is a DataObject, so is SiteConfig.
1558: [13:43:39] <Pyromanik> nothing special about it.
1559: [13:43:48] <Pyromanik> so
1560: [13:43:49] <Pyromanik> you
1561: [13:43:51] <Pyromanik> what
1562: [13:44:09] <Pyromanik> you want all your sliders or all your slides?
1563: [13:44:21] <Ryan-Toast> A list of my sliders :P
1564: [13:44:24] <Pyromanik> yeah
1565: [13:44:32] <Pyromanik> $this->SiteConfig->Sliders()
1566: [13:45:07] <Pyromanik> ah, you want it in a dropdown.
1567: [13:45:10] <Pyromanik> use ->map
1568: [13:45:14] <Ryan-Toast> Yeah, that's what I had before,; but the drop down was empty.
1569: [13:45:21] <Pyromanik> $this->getSiteConfig()->Sliders()->map()
1570: [13:45:35] <Pyromanik> yeah you need to give it an array or a map of key => value
1571: [13:45:54] <Pyromanik> a relationlist is a datalist that is a list which is just more like an unkeyed array.
1572: [13:46:20] <Pyromanik> dropdownfield takes a source array of value => title
1573: [13:46:33] <Pyromanik> as such, you need to map it
1574: [13:46:35] <Ryan-Toast> Ah, kay. Still empty even with ->map()
1575: [13:46:48] <Pyromanik> suggest you var_dump it and find out what's going on.
1576: [13:47:04] <simon_w> Turns out our servers don't support blowfish for unix passwords
1577: [13:47:05] <simon_w> Oops
1578: [13:47:38] <Pyromanik> ss23: http://doc.silverstripe.org/framework/en/topics/datamodel#filter
1579: [13:48:03] <simon_w> Guess who just locked themselves out of a server that no one else has access to?
1580: [13:48:26] <antmas> simon_w: ss23 ?
1581: [13:49:38] <Ryan-Toast> Pyromanik: Here's the var dump: http://pastebin.com/DkHGhUrv
1582: [13:50:28] * antmas wishes he could be at Sema
1583: [13:50:33] <Pyromanik> Ryan-Toast: do map()->toArray() to make it easier to read.
1584: [13:50:35] <Pyromanik> dump that
1585: [13:50:36] <Pyromanik> check it
1586: [13:50:43] <Pyromanik> make sure it's not size: 0
1587: [13:51:06] <Ryan-Toast> It's empty.
1588: [13:51:17] <Pyromanik> Ryan-Toast: do you have a Title for your sliders?
1589: [13:51:17] <Ryan-Toast> rabble rabble
1590: [13:51:43] <Ryan-Toast> Yes
1591: [13:52:00] <Pyromanik> do your sliders has_one SiteConfig?
1592: [13:52:05] <Ryan-Toast> Yes.
1593: [13:52:17] <Ryan-Toast> Want me to paste bin the classes?
1594: [13:52:23] <Pyromanik> k
1595: [13:53:02] <Ryan-Toast> Pyromanik: http://pastebin.com/7VLnvnBH
1596: [13:54:20] <Ryan-Toast> Pyromanik: SiteConfig Extension: http://pastebin.com/qCsiPVTS
1597: [13:55:10] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
1598: [13:55:14] <ss23> ty Pyromanik
1599: [13:55:24] <ss23> wait
1600: [13:55:26] <ss23> Pyromanik: this doesn't tell me
1601: [13:55:31] <Pyromanik> yes it does
1602: [13:55:32] <Pyromanik> fuck
1603: [13:55:35] <ss23> where? o.o
1604: [13:55:36] <Pyromanik> read down about 4 lines.
1605: [13:55:40] <Pyromanik> geez
1606: [13:56:00] <ss23> ...
1607: [13:56:08] <ss23> how do I do the join though, Pyromanik?
1608: [13:56:13] <Pyromanik> what join?
1609: [13:56:18] <ss23> ... >.>
1610: [13:56:21] <ss23> I need to join for this
1611: [13:56:24] <Pyromanik> do you?
1612: [13:56:27] <Pyromanik> trust the ORM.
1613: [13:56:32] <ss23> Well how do I tell the ORM to join
1614: [13:56:37] <Pyromanik> you don't!
1615: [13:56:43] <ss23> How do I tell the ORM to filter then?
1616: [13:56:47] <ss23> The docs don't show me that I can see
1617: [13:57:10] <antmas> fix it fix it fix it fix it fix it fix it
1618: [13:57:17] <irogue23> https://dl.dropboxusercontent.com/u/4618071/fibre.jpg
1619: [13:57:30] <Pyromanik> Member::get()->filter('Groups.ID', $arrayOfIDs)->exclude('Groups.ID', $arrayOfExclusionIDs);
1620: [13:57:47] <irogue23> UFF: http://i.imgur.com/bazqF.gif
1621: [13:57:58] <ss23> irogue23: holy shit rofl
1622: [13:58:00] <Pyromanik> ss23: try it and find out.
1623: [13:58:13] <ss23> Pyromanik: hmmmmm
1624: [13:58:18] <irogue23> ss23: they're demanding we pay to get the tree at the red section cut down cos it's in the way
1625: [13:58:21] <ss23> Pyromanik: I see, I will try that, thank you
1626: [13:58:23] <antmas> irogue23: bahahaha
1627: [13:58:31] <irogue23> the one on our neighbour's property
1628: [13:58:35] <spronk> man
1629: [13:58:41] <spronk> this is why chorus are failing hard.
1630: [13:58:42] <irogue23> while there's a fucking UFF pole directly across the street
1631: [13:58:47] <irogue23> spronk: this is UFF not Chorus
1632: [13:58:56] <antmas> nice deck
1633: [13:59:14] <spronk> oic
1634: [13:59:20] <Pyromanik> ss23: it may not work, but I'd hope that it does.
1635: [13:59:28] <Pyromanik> pretty sure it does.
1636: [13:59:35] <irogue23> spronk: but yes, seems all the UFB companies are sucking anus except for NorthPower
1637: [13:59:47] <Pyromanik> enable networks?
1638: [14:00:31] <guzzlefry> hm
1639: [14:00:54] <Pyromanik> dunno Ryan-Toast, should work.
1640: [14:01:09] <Ryan-Toast> Should the SiteConfig parent ID be 0?
1641: [14:01:15] <guzzlefry> Is Email required for a Member?
1642: [14:01:22] <guzzlefry> Possible to bypass?
1643: [14:01:25] <Ryan-Toast> SiteConfigID**
1644: [14:01:29] <Pyromanik> Ryan-Toast: no.
1645: [14:01:38] <Ryan-Toast> Perahaps that's the issue
1646: [14:01:47] <Pyromanik> that means that your siteconfig has no sliders, so the code is 100% correct.
1647: [14:02:22] <Ryan-Toast> It's strange that they shpow up in the cmd and can be edited then.
1648: [14:02:30] <Ryan-Toast> show** cms**
1649: [14:04:21] <irogue23> antmas: thanks. i put some deck sealant on it, now everybody wants to get on my deck.
1650: [14:04:47] <antmas> irogue23: so it's a shiny deck?
1651: [14:06:13] * mobiusnz`home has joined #silverstripe
1652: [14:06:24] <Pyromanik> Ryan-Toast: because your gridfield wrong probably
1653: [14:06:44] <Pyromanik> Ryan-Toast: indeed, completely wrong.
1654: [14:06:49] <Pyromanik> 1) uses new
1655: [14:06:58] <Pyromanik> 2) uses DataList('Slider')
1656: [14:07:04] <Pyromanik> 3) gets ALL sliders.
1657: [14:07:19] <Pyromanik> it goes like this:
1658: [14:08:20] <Pyromanik> GridField::create('Sliders', null, $this->Sliders(), GridFieldConfig_RelationEditor::create())
1659: [14:08:48] <Pyromanik> I never understand why people insist on building thier own configs that 9 times out of 10 are pretty much exactly a predefined one :<
1660: [14:09:48] <Pyromanik> but if you love it, that's cool. Just a saying. So many examples I see floating around build up configs from scratch.
1661: [14:10:07] <Pyromanik> when you could easily use an existing one then remove a component to get the same result in 1 line of code instead of 20.
1662: [14:10:10] <Ryan-Toast> I just have no idea what I'm doing,so tinkering.
1663: [14:10:23] <Pyromanik> Ryan-Toast: Docs! :D
1664: [14:10:42] <Pyromanik> http://docs.silverstripe.org/framework/en/reference/grid-field
1665: [14:10:45] <Pyromanik> :)
1666: [14:11:26] <Pyromanik> Ryan-Toast: for a beginner the docs are great.
1667: [14:12:08] <Pyromanik> many examples you find elsewhere are often filled with their own idiosyncratic ways of doing things based on the knowledge the author has only often only just learnt themselves.
1668: [14:12:23] <simon_w> yaaay, I can do sudo stuff agains
1669: [14:12:26] <Pyromanik> so, not always the best.
1670: [14:12:49] <simon_w> Also, why doesn't Debian support $2a$?
1671: [14:12:57] <madmatt> </3 macport
1672: [14:13:20] <madmatt> 4hrs now of compiling/rebuilding
1673: [14:13:20] <unsignedint> hey where abouts does SS store its temp files? the ones that get flushed etc when doing /dev/build?
1674: [14:13:30] <simon_w> madmatt, doing it wrong!
1675: [14:13:45] <madmatt> unsignedint: /tmp, or /path/to/webroot/silverstripe-cache/ if it exists
1676: [14:13:45] <simon_w> unsignedint, /tmp or silverstripe-cache if you've got one of those
1677: [14:13:55] <unsignedint> thanks
1678: [14:13:58] <madmatt> heh
1679: [14:14:13] <unsignedint> on windows, is it the default system temp folder as well?
1680: [14:14:32] <simon_w> yes
1681: [14:14:35] <madmatt> Yeah, from memory C:\windows\TEMP for Win7
1682: [14:14:55] <Ryan-Toast> Pyromanik: Thanks for your patience :) I will try to figure this shit out.
1683: [14:15:43] <ss23> madmatt: Get a Windows PC!
1684: [14:18:01] <antmas> macbook air's keyboard is backlit right?
1685: [14:18:08] <simon_w> Now that I can use sudo again, ansible can now propagate a password change. Yay!
1686: [14:18:16] <simon_w> (thanks adobe)
1687: [14:18:18] <Pyromanik> Ryan-Toast: good luck:)
1688: [14:18:27] <ss23> #thanksbadbios
1689: [14:19:19] <Pyromanik> rofl badbios
1690: [14:19:22] <Pyromanik> so 1337
1691: [14:19:34] <Pyromanik> keylock from bios leve.
1692: [14:19:40] <Pyromanik> hoorah
1693: [14:19:40] <spronk> o_O
1694: [14:19:49] <Pyromanik> naw, but that would fuck some shit up
1695: [14:20:19] <antmas> such a dumb name -_-
1696: [14:20:57] <Pyromanik> badbios?
1697: [14:21:00] <antmas> yeh
1698: [14:21:02] <Pyromanik> not really
1699: [14:21:10] <Pyromanik> it's bad, and it's in your bios!
1700: [14:21:36] <antmas> it's implying that the bios was always bad
1701: [14:21:46] <antmas> I dunno
1702: [14:23:06] <antmas> #stevethemalware
1703: [14:23:08] <antmas> way better
1704: [14:24:42] <simon_w> What kind of malware name is Steve, anyway?
1705: [14:24:51] <antmas> an awesome one
1706: [14:25:20] <Pyromanik> #patrickthebadnamer
1707: [14:25:38] <antmas> So Troublesome, Everybody Vagina Evil
1708: [14:25:59] <ss23> Pyromanik: No
1709: [14:26:01] <ss23> Your code didn't work
1710: [14:26:07] <ss23> Pyromanik: As I thought it wouldn't, hence why I asked
1711: [14:26:18] <ss23> simon_w: $members = Member::get()->filter(array('Group.ID' => array(91, 93, 94, 95, 96, 97, 98)))->first();
1712: [14:26:21] <ss23> how2?
1713: [14:26:43] <simon_w> groups
1714: [14:27:05] <ss23> Groups.ID?
1715: [14:27:53] <simon_w> yes
1716: [14:27:57] <guzzlefry> ss23: What are you trying to accomplish?
1717: [14:28:24] <ss23> ty
1718: [14:28:32] <ss23> guzzlefry: get users in one set of groups not in other
1719: [14:28:42] <ss23> or by defeault, is filter an OR or an AND?
1720: [14:28:50] <ss23> e.g. is that "has to be in all these groups" or "In all of these"
1721: [14:28:52] <ss23> It uses IN() right?
1722: [14:29:31] <guzzlefry> tias?
1723: [14:29:38] <guzzlefry> You need a debugger!
1724: [14:29:59] <simon_w> ss23, that's an IN(), yes
1725: [14:30:29] <ss23> My debugger was like "this doesn't work, SQL error"
1726: [14:30:31] <ss23> so I came on IRC :P
1727: [14:30:40] <guzzlefry> 0.o
1728: [14:31:06] <guzzlefry> Member::get()->filter(array('Group.ID' => array(91, 93, 94, 95, 96, 97, 98)))->sql();
1729: [14:31:07] <madmatt> It's an OR basically
1730: [14:31:12] <ss23> simon_w: No change
1731: [14:31:19] <ss23> guzzlefry: Yes...
1732: [14:31:24] <ss23> guzzlefry: and the SQL had no join, so I asked how to do it :P
1733: [14:31:30] <guzzlefry> oh
1734: [14:31:32] <ss23> $members = Member::get()->filter(array('Groups.ID' => array(91, 93, 94, 95, 96, 97, 98)))->first();
1735: [14:31:35] <ss23> SQL ERROR
1736: [14:31:38] <ss23> SQL ERROR HELP
1737: [14:31:39] <simon_w> ss23, 3.0 then?
1738: [14:31:42] <ss23> hmm
1739: [14:31:43] <ss23> Not sure
1740: [14:31:44] * ss23 has a look
1741: [14:31:44] <simon_w> Groups.ID:ExactMatch
1742: [14:32:07] <ss23> I would tell you, but framework is commited to core, not composer, so hard to know.
1743: [14:32:37] <ss23> simon_w: Well, no error, but doesn't work (gives no rows)
1744: [14:32:43] * antmas quit (Quit: Page closed)
1745: [14:32:53] <ss23> simon_w: ("Group"."ID" = 'Array')
1746: [14:33:07] <ss23> God the ORM was shit in 3.0
1747: [14:33:10] <ss23> Maybe I should just raw SQL it
1748: [14:33:13] <ss23> It's for a once off task
1749: [14:33:13] <ss23> :/
1750: [14:33:14] * Ryan-Toast quit (Read error: Connection reset by peer)
1751: [14:33:32] <simon_w> Oh right, 3.0 is silly
1752: [14:33:33] <simon_w> :ExactMatchMulti
1753: [14:33:43] <guzzlefry> 0.o
1754: [14:33:47] <guzzlefry> I don't remember that one.
1755: [14:33:54] <simon_w> That's because it's silly
1756: [14:33:56] <ss23> ty simon_w
1757: [14:34:01] <ss23> Well, it casts wrong, but it works I think
1758: [14:34:05] * Ryan-Toast has joined #silverstripe
1759: [14:34:05] <ss23> Lets hope it's not slow because of the casting
1760: [14:34:21] <ss23> yay, A+ simon_w :D
1761: [14:34:24] <guzzlefry> oh
1762: [14:34:30] <guzzlefry> I need to bug simon about a bug. :P
1763: [14:34:34] <guzzlefry> after I verify :P
1764: [14:34:44] <simon_w> guzzlefry, FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT FIX IT
1765: [14:35:00] * guzzlefry skips away.
1766: [14:41:27] <guzzlefry> okay
1767: [14:41:30] <guzzlefry> I'm doing something stupid.
1768: [14:41:38] <guzzlefry> Member::get()->Count();
1769: [14:41:40] <guzzlefry> returns null...
1770: [14:42:03] <guzzlefry> maybe I'm calling it too early?
1771: [14:42:51] <guzzlefry> k, I was
1772: [14:48:27] <ss23> simon_w: :(
1773: [14:48:27] <ss23> $members = Member::get()->filter(array('Groups.ID:ExactMatchMulti' => array(91, 93, 94, 95, 96, 97, 98)))->exclude(array('Groups.ID:ExactMatchMulti' => array(103, 90, 89, 88, 87)))->Count();
1774: [14:48:32] <ss23> why this no work
1775: [14:48:49] <simon_w> because 3.0's exclude is borked
1776: [14:48:56] <simon_w> you'll need to use subtract()
1777: [14:50:07] <ss23> Hmm
1778: [14:50:11] <ss23> literal replacement?
1779: [14:50:29] <guzzlefry> Can you do Groups.ID:ExactMatchMulti:Not?
1780: [14:50:52] <ss23> hmm
1781: [14:50:56] <ss23> subtract takes a datalist as an argument
1782: [14:51:06] <ss23> I don't think that will work
1783: [14:51:11] <ss23> oh yeah it will
1784: [14:51:13] <ss23> but holy shit expensive
1785: [14:51:39] <simon_w> ss23, just use where() then
1786: [14:51:54] <simon_w> guzzlefry, support for those arguments is also 3.1 only
1787: [14:51:59] <guzzlefry> ah
1788: [14:52:01] <guzzlefry> Also
1789: [14:52:09] <guzzlefry> ss23: I thought you said this was a one-time thing?
1790: [14:52:13] <ss23> it is
1791: [14:52:22] <ss23> I could've done it with raw SQL in 10 mins
1792: [14:52:22] <guzzlefry> So why does it matter if expensive? :P
1793: [14:52:23] <ss23> ;/
1794: [14:52:29] <ss23> I WANT MY CODE TO BE NICE
1795: [14:52:34] <guzzlefry> oh >_>
1796: [14:52:46] <ss23> simon_w: If I do where, do I need to join manually or what (or are there docs etc?)
1797: [14:53:14] <simon_w> not if you've already done the filter
1798: [14:54:10] * mobiusnz`home quit (Quit: Leaving.)
1799: [14:55:01] <ss23> oic
1800: [14:55:11] <ss23> so you filter first, that does the join, then ->where adds a new clasuse
1801: [14:56:04] <ss23> :D
1802: [14:56:05] * ss23 spins simon_w
1803: [14:56:05] <ss23> ty
1804: [14:58:10] <guzzlefry> simon_w: So, I have a $products->Count(); returning 34. When I call $products->Last(); I get null back.
1805: [14:58:22] <guzzlefry> Is there anything stupid I'm doing with this, or is it actually a bug?
1806: [15:00:35] <Ryan-Toast> Pyromanik: I found the issue. The siteconfig was being set as null.
1807: [15:00:52] <Ryan-Toast> Also, the docs grid fields look so much nicer :P
1808: [15:01:02] <Ryan-Toast> Thanks for the help, man.
1809: [15:02:00] <spronk> hey Pyromanik your job's on seek
1810: [15:07:21] <guzzlefry> of course I can't reproduce it with something simpler...
1811: [15:09:37] <madmatt> guzzlefry: What about ->First()?
1812: [15:10:48] <guzzlefry> hmm yep
1813: [15:11:52] <guzzlefry> Trying to remember how I got the SQL last time...
1814: [15:12:05] <madmatt> $products->dataQuery()->sql()
1815: [15:12:08] <madmatt> from memory
1816: [15:12:19] <ss23> Can just do ->sql directly on a datalist
1817: [15:12:30] <madmatt> noice
1818: [15:12:42] <guzzlefry> ss23: This is after calling Last()
1819: [15:12:56] <guzzlefry> hm
1820: [15:13:02] <madmatt> what's not nice is macports *still* compiling packages
1821: [15:13:10] <madmatt> like, 5+hrs now, wth
1822: [15:13:34] <ss23> lol
1823: [15:15:28] * Ryan-Toast quit (Quit: Ryan-Toast)
1824: [15:15:37] <guzzlefry> Why does DataList::last() have a loop that returns during the first iteration? 0.o
1825: [15:16:37] <guzzlefry> okay so
1826: [15:16:45] <guzzlefry> recall that I said the DataList had 34 items?
1827: [15:16:54] <guzzlefry> LIMIT 1 OFFSET 34
1828: [15:17:19] <guzzlefry> ss23: fix it!
1829: [15:17:25] <ss23> NU UH
1830: [15:17:28] <guzzlefry> :(
1831: [15:17:31] <ss23> guzzlefry: you fix it
1832: [15:17:35] <ss23> :P
1833: [15:17:40] <guzzlefry> I are not smart enuff
1834: [15:18:17] <guzzlefry> welp
1835: [15:18:25] <guzzlefry> Guess I should start with figure out why it has the offset of 34.
1836: [15:21:42] <guzzlefry> I take it the SS devs don't really hang out around here?
1837: [15:22:01] * sam_ has joined #silverstripe
1838: [15:22:38] <sam_> Hi...
1839: [15:23:04] <sam_> I am getting warning [Notice] Undefined index:
1840: [15:23:06] <ss23> hi sam_
1841: [15:23:13] <ss23> guzzlefry: well, assuming ss devs means core devs, a decent amount of them do
1842: [15:23:17] <ss23> simon_w, ingo
1843: [15:23:18] <ss23> uh
1844: [15:23:21] <ss23> sminee sometimes
1845: [15:23:25] <ss23> whoever else
1846: [15:24:27] <sam_> http://www.sspaste.com/paste/show/527b14090375b
1847: [15:26:20] <guzzlefry> ss23: I'm guessing I have to throw together a reproduction of this bug for them to give a damn about the fix?
1848: [15:26:48] <guzzlefry> Or does it just need to pass tests?
1849: [15:27:13] <ss23> guzzlefry: It would be a *lot* apperciated to add a test where it fails
1850: [15:27:21] <ss23> guzzlefry: Otherwise you have a large chance of it not being merged, or being reverted later, etc
1851: [15:27:29] <guzzlefry> ah, gotcha
1852: [15:29:48] <guzzlefry> weird
1853: [15:31:02] * sam_ quit (Quit: Page closed)
1854: [15:33:43] <Azure> I have a feeling that I might've asked this back in 2010, but I might as well ask now.
1855: [15:33:44] <Azure> I wish to have the current page's type as a class in my main layout. I know I can use $ClassName to get it, however it is formatted in in CamelCase. I would like to have it "like-this".
1856: [15:33:44] <Azure> I would guess that I will have to write my own function in my site's base Page pagetype to format it the way that I want.
1857: [15:34:09] <guzzlefry> Probably.
1858: [15:34:26] <guzzlefry> hm
1859: [15:36:49] <guzzlefry> Azure: looking at how the form field names get change from MyField to My Field might be a good start.
1860: [15:41:44] <ss23> mmm, tfw you go to fix a bug, but someoen else already fixed it...
1861: [15:45:36] <guzzlefry> tfw?
1862: [15:45:42] <guzzlefry> too many initialism!
1863: [15:48:12] * DigNZ quit (Quit: DigNZ)
1864: [15:48:57] * cloph has joined #silverstripe
1865: [15:49:15] * cloph_away quit (Ping timeout: 246 seconds)
1866: [15:49:52] * UncleCheese quit (Quit: UncleCheese)
1867: [15:51:17] <guzzlefry> ugh
1868: [15:51:21] <guzzlefry> I don't understand bug.
1869: [15:54:04] <guzzlefry> simon_w: Is there a way to isolate the ORM?
1870: [15:58:46] * nicolaas quit (Remote host closed the connection)
1871: [16:00:52] * anujit has joined #silverstripe
1872: [16:01:13] <anujit> hi anybody can help me how to show image from ss page?
1873: [16:01:28] <anujit> in DB there is a field "HomeImage"
1874: [16:01:44] <anujit> I need to loop <% Control ???? >
1875: [16:03:03] <Colin[pi]> anujit: $HomeImage should work in the template, or $HomeImage.URL for example
1876: [16:03:20] <Colin[pi]> or one of the cropping functions
1877: [16:17:25] <anujit> http://www.sspaste.com/paste/show/527b206a852ea
1878: [16:20:10] <anujit> not working
1879: [16:28:33] <Colin[pi]> anujit: HomePicture should be Image not File
1880: [16:31:06] <anujit> but it is working in another code
1881: [16:31:17] <anujit> similar thing
1882: [16:32:16] <anujit> http://www.sspaste.com/paste/show/527b206a852ea
1883: [16:47:15] <EasyCo> Is it the weekend yet?
1884: [16:47:20] <guzzlefry> What format should the CSV import dates be in?
1885: [16:47:30] <guzzlefry> EasyCo: It's only wednesday here.
1886: [16:47:39] <guzzlefry> well, Thursday technically, since it's 1 in the morning
1887: [16:47:51] <EasyCo> Eeesh
1888: [16:47:58] <EasyCo> I'd be in bed by then :)
1889: [16:48:03] <EasyCo> 9pm and I'm out
1890: [16:48:28] <EasyCo> guzzlefry: Do you work best at night?
1891: [16:49:05] <guzzlefry> usually
1892: [16:50:16] * Colin[pi] quit (Ping timeout: 264 seconds)
1893: [16:53:31] * violetina has joined #silverstripe
1894: [16:57:07] * spronk2 quit (Quit: spronk2)
1895: [16:58:45] <guzzlefry> to answer my question, yyyy-mm-dd works, didn't test any others.
1896: [17:21:50] * Nightjar has joined #silverstripe
1897: [17:30:06] <Nightjar> http://imgur.com/gallery/ObdxBKU
1898: [17:30:27] <Nightjar> best comment: My 'unfortunate' cousin would love this.
1899: [17:35:12] * EasyCo quit (Quit: We can't stop here, this is bat country)
1900: [17:41:41] * anujit quit (Ping timeout: 250 seconds)
1901: [17:47:03] * Shashitechno has joined #silverstripe
1902: [17:47:31] <Shashitechno> Hello everyone,
1903: [17:47:46] <Shashitechno> I am looking for sendgrid integration with silverstripe
1904: [17:48:05] <Shashitechno> anyone redirect me to proper documentation please ?
1905: [17:48:57] <Zauberfisch23> Shashitechno: send grid for sending emails only or recieving aswell?
1906: [17:49:20] <Shashitechno> Zauberfisch23: for both
1907: [17:49:40] <Shashitechno> Zauberfisch23: We need to manage bulk emails
1908: [17:50:07] <Zauberfisch23> well, I guess recieving is rather easy, they will just POST json to you (I think), so just create a controller that accpets the data)
1909: [17:51:09] <Zauberfisch23> how do you make sendgrid send the emails? smtP?
1910: [17:51:13] <Zauberfisch23> *smtp
1911: [17:52:41] <Shashitechno> Yup will prefer using smtp
1912: [17:52:42] <Zauberfisch23> well, anyway you do it, you need to create a Mailer class for it
1913: [17:52:46] <Zauberfisch23> and then set it
1914: [17:53:00] <Zauberfisch23> Email::set_mailer(new MyMailerClass());
1915: [17:53:35] <Zauberfisch23> then $email->send() will call ->send() (and a couple of other things probably) on your Mailer
1916: [17:53:52] <Shashitechno> Yup, Looks fine.
1917: [17:54:00] <Zauberfisch23> here is the default Mailer, it sends emails via mail()
1918: [17:54:02] <Zauberfisch23> https://github.com/silverstripe/silverstripe-framework/blob/3.1/email/Mailer.php
1919: [17:54:05] <Shashitechno> So I will need to set the mailer class to sendgrid one
1920: [17:54:28] <Zauberfisch23> so just subclass this, and overwrite the methods that would send the email via mail() and send it via smtp instead
1921: [17:54:56] <Shashitechno> okay !
1922: [17:55:32] <Zauberfisch23> actually, checkout this repo
1923: [17:55:40] <Zauberfisch23> https://github.com/xeraa/silverstripe-smtp
1924: [17:55:45] <Zauberfisch23> its for version 2.3
1925: [17:55:59] <Shashitechno> Ahh
1926: [17:56:05] <Zauberfisch23> but I guess you can take some ideas from it
1927: [17:56:13] <Zauberfisch23> or maybe even better, update the module to 3.1
1928: [17:56:37] <Shashitechno> cool, thanks Zauberfisch23
1929: [17:56:42] <Shashitechno> Let me try :)
1930: [17:57:14] <Zauberfisch23> Shashitechno: if you do come up with a solution that works well and is useable for other stmp then sendgrid, I'd love to see the code go open source
1931: [17:57:27] <Zauberfisch23> a SMTP mailer is certainly a missing feature for silverstripe
1932: [17:58:20] <Zauberfisch23> Shashitechno: btw, also check out http://mandrill.com/ its an alternative to sendgrid, but I think they have cheaper pricing
1933: [17:58:35] <Zauberfisch23> its from the mailchimp guys
1934: [17:58:41] <Shashitechno> Zauberfisch23: Ohh'
1935: [18:47:50] * willr has joined #silverstripe
1936: [19:03:58] * zfmf has joined #silverstripe
1937: [19:06:38] <Nightjar> http://i.imgur.com/rBUNwcw.gif
1938: [19:07:57] <irogue23> mandrill sounds like something i'd be into
1939: [19:09:45] <Nightjar> irogue23 http://i.imgur.com/z3Bt5Wb.jpg
1940: [19:12:34] * oddnoc has joined #silverstripe
1941: [19:12:47] <Nightjar> <3
1942: [19:13:25] <ss23> gaay~
1943: [19:13:51] <Nightjar> nou
1944: [19:24:26] <oddnoc> your tilde is gay?
1945: [19:25:03] * chillu has joined #silverstripe
1946: [19:25:38] <ss23> Yeah, the ~ was a mistake
1947: [19:25:39] <ss23> :,
1948: [19:25:52] <oddnoc> lol
1949: [19:28:27] <irogue23> Nightjar: i have "hah, gaaaaay" (chang) as a G key on my keyboard
1950: [19:28:37] <irogue23> set up to always play out the speakers, even if i'm using headphones
1951: [19:28:53] <irogue23> so when lanning etc. i can just hit G10
1952: [19:28:54] <irogue23> it's so good
1953: [19:38:17] * spronk2 has joined #silverstripe
1954: [19:45:40] * svandragt has joined #silverstripe
1955: [19:53:59] * ARNHOE has joined #silverstripe
1956: [19:54:11] * lerni has joined #silverstripe
1957: [20:01:23] * Pathum has joined #silverstripe
1958: [20:04:33] <Nightjar> hahahahha irogue23, brilliant
1959: [20:04:57] * simon_w|air has joined #silverstripe
1960: [20:05:00] <Nightjar> I love how straight white folks are the ones who get most upset about shit like that.
1961: [20:05:13] <spronk2> ???
1962: [20:05:23] <Nightjar> the word "gay" etc.
1963: [20:05:35] * kinglozzer has joined #silverstripe
1964: [20:05:45] <ss23> Nightjar: Just noobs
1965: [20:05:52] <Nightjar> so I made a smoothie
1966: [20:06:03] <ss23> Shit is so smooth?
1967: [20:06:12] <Nightjar> I went to make one at about 9:30
1968: [20:06:13] <simon_w|air> Did it bring all the boys to your yard?
1969: [20:06:22] <Nightjar> simon_w: that's milkshakes!
1970: [20:06:32] <Nightjar> ss23: shit so smooth.
1971: [20:06:35] <simon_w|air> Obviously your smoothies aren't good enough then!
1972: [20:07:01] <ss23> simon_w|air: do you know how long it'll take noobies to crack wep and/or packet capture etc?
1973: [20:07:08] <Nightjar> got me some kiwifruits, banana, orange and mango, peaches, yogurt (natural unsweetened greek style!0
1974: [20:07:10] <Nightjar> so good
1975: [20:07:18] <simon_w|air> ss23, here, run this program
1976: [20:07:21] <simon_w|air> done!
1977: [20:07:24] <Nightjar> ss23: about 20 seconds?
1978: [20:07:26] <ss23> simon_w|air: Yes, how long will that take them?
1979: [20:07:27] <ss23> well
1980: [20:07:29] <ss23> I don't think 20 seconds...
1981: [20:07:30] <ss23> like
1982: [20:07:34] <Nightjar> 5 mins, mebbe
1983: [20:07:42] <ss23> last year, some people took 30+ mins to extract text from a packet capture
1984: [20:07:43] <ss23> so like...
1985: [20:08:05] <Nightjar> so like
1986: [20:08:09] <simon_w|air> isn't that like -A?
1987: [20:08:14] <Nightjar> they cracked the WSA too didn't they?
1988: [20:08:38] <ss23> WPA, I presume, and anyone can if they have the right stuff
1989: [20:08:44] <ss23> simon_w|air: wireshark, but *shrug*
1990: [20:08:52] * travis-ci has joined #silverstripe
1991: [20:08:53] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1508 (3.1 - 62bb6f1 : Will Rossiter): The build passed.
1992: [20:08:53] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/252b6e53ac8e...62bb6f1be428
1993: [20:08:53] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13622490
1994: [20:08:53] * travis-ci has left #silverstripe
1995: [20:08:55] <ss23> simon_w|air: Anywa,y point is, how long it would take someone who knows how to do it is *not* a good estimate
1996: [20:09:28] <simon_w|air> Nor's getting an estimate from someone who has never done something like that before
1997: [20:10:01] <Nightjar> yeh, starts with a W, has an A in it. That one ss23.
1998: [20:10:08] <ss23> lol
1999: [20:10:11] <ss23> simon_w|air: okay, sorry, thought you might know
2000: [20:22:54] * oddnoc quit (Quit: bye!)
2001: [20:25:59] * pippy quit (Ping timeout: 246 seconds)
2002: [20:28:08] * pippy has joined #silverstripe
2003: [20:46:05] * willr quit (Quit: willr)
2004: [21:18:40] <spronk2> o_O
2005: [21:21:30] <irogue23> < Nightjar> I love how straight white folks are the ones who get most upset about shit like that.
2006: [21:21:53] <irogue23> i also derogitorily call people fags, so meh :P
2007: [21:24:18] * jcwacky quit (Quit: jcwacky)
2008: [21:32:57] * guci0 has joined #silverstripe
2009: [21:33:03] <guci0> Hello World!
2010: [21:33:16] <ss23> Hallo guci0!
2011: [21:33:41] <guci0> ;)
2012: [21:52:21] * NobrainerWeb has joined #silverstripe
2013: [21:54:01] * micmania1 has joined #silverstripe
2014: [21:54:16] <NobrainerWeb> Hi
2015: [21:54:41] <micmania1> Anybody know where the regex is in 2.4 which cleans filenames of obscure chars?
2016: [21:57:46] <kinglozzer> micmania1: Is this what you're looking for? http://api.silverstripe.org/2.4/source-class-Upload.html#124-127
2017: [21:58:04] <NobrainerWeb> my <script> tag and content is removed from a textareaField - with datatype HTMLText, if i use Varchar the code is just output as text. What do i need to do to add a simple scipttag in a textareafield and output it correctly as script to template?
2018: [21:59:46] <NobrainerWeb> Nvm it started working, must have forgot dev/build, flush or something
2019: [21:59:49] <micmania1> kinglozzer: cheers
2020: [22:07:57] * Pathum_ has joined #silverstripe
2021: [22:10:38] * Pathum quit (Ping timeout: 240 seconds)
2022: [22:11:58] <micmania1> Am I right in thinking underscores are converted to dashes in 3.1? http://api.silverstripe.org/3.1/source-class-FileNameFilter.html#42 (just checking)
2023: [22:12:54] <kinglozzer> Yep
2024: [22:28:25] <micmania1> bit strange that... Is there any reason underscores shouldn't be in filenames?
2025: [22:32:13] <kinglozzer> No idea, none that I can think of
2026: [22:32:17] <kinglozzer> I guess you could override it
2027: [22:32:25] <Marvanni2> also GroupCodes are converted... You can change this behaviour by creating a CustomFileNameFilter and use Custom Class
2028: [22:32:41] <Marvanni2> FileNameFilter:
2029: [22:32:42] <Marvanni2> default_use_transliterator: false
2030: [22:32:47] <Marvanni2> default_replacements:
2031: [22:32:55] <Marvanni2> or set that in yml
2032: [22:33:05] <Marvanni2> and overload the defaul_replacements
2033: [22:33:08] <kinglozzer> FileNameFilter: default_replacements: '/_/' => '_' should probably override it
2034: [22:33:29] <micmania1> yeah, you can override. We've got a client who uses 2.4 and their naming conventions for certain files include underscores. I assumed it would be fixed in 3.0
2035: [22:33:38] <micmania1> https://github.com/silverstripe/silverstripe-cms/issues/719
2036: [22:39:44] <irogue23> sweet jebus, if someone was to walk into my office right now they'd think i was a nutter
2037: [22:40:09] <irogue23> lack of sleep + too much caffeine = laughing maniacally at 'fuckyouautocorrect' posts
2038: [22:40:16] <ss23> dude
2039: [22:40:17] <ss23> holy shit
2040: [22:40:18] <ss23> irogue23: yes
2041: [22:40:25] <ss23> I have a bunch of peopel who think I'm fucking *crazy*
2042: [22:40:30] <ss23> cause I used to get mega tired and read fuckyouautocorrect
2043: [22:40:31] <ss23> like
2044: [22:40:38] <ss23> holy shit there's something about autocorrect when you're tired and giggly
2045: [22:40:42] <ss23> I don't know waht the fuck it is, but it's amazing.
2046: [22:40:48] <irogue23> yesss
2047: [22:40:56] <irogue23> this is a "best of" compilation
2048: [22:41:28] <Marvanni2> has anyon tried to put a list view of the SiteTree in a Page tab?
2049: [22:42:30] <irogue23> o_O
2050: [22:42:48] <Marvanni2> I am now putting large datasets in dataobject and show them as pages, bit since 3.x is mich better in handling large sitetrees, im lookin how far i can go with working with large trees
2051: [22:43:01] <irogue23> ah ok
2052: [22:43:07] <irogue23> yeah, it's *so* much better
2053: [22:43:15] <Marvanni2> on of the opions im exploring is limit children view in the treedropdown. that works quite good..
2054: [22:43:18] <Marvanni2> it is
2055: [22:43:27] <irogue23> >20 items in the sitetree in 2.4 was like, just kill yourself now
2056: [22:43:44] <Marvanni2> yeah, and now 5 => 100 => 100 works just fine
2057: [22:43:56] <Marvanni2> even with reordering a complete set with 100 childs
2058: [22:44:19] <Nightjar> fuck, suddenly 12:40
2059: [22:44:22] <irogue23> Nightjar: haha
2060: [22:44:25] <irogue23> before you leave Nightjar
2061: [22:44:31] <irogue23> read these: http://funkypickens.com/25-funny-auto-correct-fails/
2062: [22:44:34] <Nightjar> no I can't do your threads
2063: [22:44:35] <Nightjar> ok
2064: [22:44:37] <Nightjar> nah
2065: [22:44:39] <Marvanni2> I have 2 objectives : 1 show Children in a GridField like the root list view works
2066: [22:44:40] <Nightjar> read so many of those
2067: [22:44:42] <Nightjar> always shit
2068: [22:44:47] <irogue23> lol
2069: [22:44:50] <micmania1> irogue23, is that link "work safe"?
2070: [22:45:06] <irogue23> micmania1: *mostly*
2071: [22:45:16] <irogue23> a few bad words in screenshots
2072: [22:45:18] <Marvanni2> 2. when certain members can only edit pages, not add and restructure tree, show only the pages the can edit in a list as well, without showing the treedropdown
2073: [22:45:29] <irogue23> so, NZ work safe, maybe not US work safe :-P
2074: [22:45:43] <Nightjar> infact this exact compliation I got half way through before giving up about 2 days ago.
2075: [22:45:47] <micmania1> meh, that's worksafe
2076: [22:45:50] <irogue23> Nightjar: lol
2077: [22:45:59] <irogue23> you obv weren't tired and hopped up on caffeine enough :P
2078: [22:46:38] <micmania1> hahaha I can't read this at work. I'll end up having some sort of laughing fit
2079: [22:46:59] <irogue23> :P
2080: [22:47:06] <irogue23> trust me, i am
2081: [22:47:10] <irogue23> thank fuck i'm alone
2082: [22:47:17] <Nightjar> obviously not irogue23.
2083: [22:47:21] <Nightjar> oh well
2084: [22:47:25] <Nightjar> tomorrow Friday.
2085: [22:47:35] <Nightjar> Pulled one of my first computers apart just before :<
2086: [22:47:48] <Nightjar> I think it still goes - seems like a shame.
2087: [22:48:10] <Nightjar> it has issues extracting thing and other intensive tasks. Seems like dodgy ram.
2088: [22:48:16] <irogue23> yep
2089: [22:48:27] <Nightjar> although K6-2 was renowned for heat issues, could be half fried cpu
2090: [22:48:34] <Nightjar> but then I'd expect issues everywhere
2091: [22:48:35] <Nightjar> dunno
2092: [22:48:38] <Nightjar> poor old thing
2093: [22:48:41] <Nightjar> <3
2094: [22:48:54] <Nightjar> Dunno if I have the heart to turf it out.
2095: [22:49:06] <Nightjar> Might turn it into a clock.
2096: [22:49:14] <Nightjar> another day!
2097: [22:49:20] * Nightjar /sleep
2098: [22:49:26] * Nightjar has left #silverstripe
2099: [22:50:33] <ss23> help irogue23 I read it too
2100: [22:50:36] <ss23> i am dead.
2101: [22:51:47] <ss23> my stomach is rumbling as I tense it with laughing
2102: [22:52:21] <irogue23> hahaha
2103: [22:52:34] <irogue23> "i'm not eating her out, i'm eating her out"
2104: [22:53:52] <ss23> lol
2105: [22:55:43] <ss23> oh man
2106: [22:55:45] <ss23> I'm giggling
2107: [22:55:49] <ss23> so glad my flatmate isn't rying to sleep atm
2108: [22:56:06] * Motoservo has joined #silverstripe
2109: [22:56:56] <irogue23> ss23: you have seen the Deck Maintenance video?
2110: [22:57:01] <ss23> oh yes
2111: [22:57:02] <ss23> rofl
2112: [22:57:06] <irogue23> i keep rewatching
2113: [22:57:06] <ss23> MY BIG AFRICAN CAUK
2114: [22:57:07] <irogue23> so good
2115: [22:57:10] <ss23> link?
2116: [22:57:17] <irogue23> despite the weird hybrid NZ/AU/SA accent
2117: [22:57:23] <irogue23> https://www.youtube.com/watch?v=hkmeoYKYctw
2118: [22:57:37] <ss23> oh yeah man
2119: [22:57:39] <ss23> that accent is weird
2120: [22:58:42] <ss23> who wouldn't want a gold kid?
2121: [23:04:50] <irogue23> eh, time to sleep
2122: [23:04:55] <irogue23> still haven't quite recovered from the weekend :P
2123: [23:05:48] <ss23> wait
2124: [23:05:49] <ss23> wait irogue23
2125: [23:05:49] <ss23> wait
2126: [23:05:51] <ss23> are you still here?
2127: [23:05:52] <ss23> irogue23:
2128: [23:05:55] <ss23> pls
2129: [23:05:56] <irogue23> yes
2130: [23:05:57] <ss23> irogue23:
2131: [23:05:58] <irogue23> yes i am
2132: [23:06:00] <ss23> pls
2133: [23:06:02] <ss23> okay
2134: [23:06:05] <ss23> http://cdn.damnyouautocorrect.com/wp-content/uploads/2013/10/overlyemotion-britni.jpg
2135: [23:06:08] <ss23> dis
2136: [23:06:11] <ss23> http://www.damnyouautocorrect.com/67546/an-overly-emotion-reaction/ if hotlinking disabled
2137: [23:06:31] <irogue23> gotta be honest
2138: [23:06:33] <ss23> mmk u can sleep now
2139: [23:06:35] <irogue23> "reared up"
2140: [23:06:40] <irogue23> did not make me think of horse
2141: [23:06:43] <ss23> haha
2142: [23:06:44] <ss23> yes
2143: [23:06:45] <ss23> PENIS
2144: [23:06:47] <ss23> I THOUGHT OF PENIS
2145: [23:07:09] <ss23> rite irogue23
2146: [23:07:10] <ss23> rite?
2147: [23:07:30] <irogue23> http://www.youtube.com/watch?v=Utxb-kzvFZU
2148: [23:10:08] <ss23> HAH GAY
2149: [23:10:15] <ss23> http://www.youtube.com/watch?v=ZZ5LpwO-An4
2150: [23:27:21] * ss-log has joined #silverstripe
2151: [23:30:09] * Pathum_ quit (Quit: Leaving)
2152: [23:38:26] * svandragt quit (Ping timeout: 272 seconds)
2153: [23:49:06] * simon_w|air quit (Ping timeout: 244 seconds)
2154: [23:50:57] * simon_w|air has joined #silverstripe
2155: [23:58:38] * simon_w|air quit (Ping timeout: 240 seconds)

Logging kindly sponsored by Stripe The Net: Hosting and Deployment, made simple.

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