#silverstripe IRC Log

IRC log for 8 October 2013

All timestamps are in UTC.

1: [00:01:40] <EasyCo> Ruby <3
2: [00:01:55] <ss23> EasyCo: HEATHEN
3: [00:01:57] <ss23> :P
4: [00:02:11] * UncleCheese has joined #silverstripe
5: [00:02:41] <EasyCo> I'd switch over to Ruby and Rails if only I had more work that required it.
6: [00:02:53] <EasyCo> But I'm still very much a Rails rookie
7: [00:03:20] <Colin[pi]> guzzlefry... needs to be working by Wednesday.. as in.. tomorrow?
8: [00:03:36] <guzzlefry> It's Monday here in the States.
9: [00:03:42] * Bollig|DesignCty has joined #silverstripe
10: [00:03:47] <Colin[pi]> oh well that makes all the difference :P
11: [00:04:31] <atmos> Colin[pi]: lol
12: [00:04:36] <ss23> mfw eating lemons >.<
13: [00:04:43] <atmos> +1 for RoR
14: [00:04:44] <guzzlefry> heh, yay
15: [00:04:56] <guzzlefry> Migrating clients websites over, some of them have absolute URLs...
16: [00:05:03] <guzzlefry> client's*
17: [00:05:26] <atmos> guzzlefry: jesus, where do you work? 'I Do Everything Ltd.'?
18: [00:05:44] <Colin[pi]> that's where I work lol
19: [00:05:51] <guzzlefry> possibly
20: [00:05:57] <EasyCo> He works for Amurica
21: [00:05:59] <guzzlefry> I think I'd be called...devops?
22: [00:06:20] <EasyCo> But obviously not the gov. or he'd be on force holidays :)
23: [00:06:32] <atmos> SHUTDOWN JOKE!
24: [00:06:35] <atmos> :D
25: [00:06:45] <EasyCo> I try
26: [00:06:46] <guzzlefry> meh
27: [00:06:55] <guzzlefry> Don't really notice the shutdown.
28: [00:07:01] <Colin[pi]> you poor merkins... so screwed by your govt
29: [00:07:19] <EasyCo> guzzlefry: You guys should get a tax discount at the end of the year.
30: [00:07:33] <atmos> I read yesterday that the FDA isn't even testing food right now 0.o
31: [00:10:46] <Colin[pi]> testing schmesting
32: [00:12:17] * zagoodwin has joined #silverstripe
33: [00:13:03] * Jayden90 quit (Quit: Jayden90)
34: [00:13:03] <zagoodwin> Hey for some reason its adding the current url to $ThemeDir
35: [00:13:14] <atmos> guzzlefry: why you're own iteration? Why not a module?
36: [00:13:45] <guzzlefry> it just seems easier to do it this way.
37: [00:13:47] <guzzlefry> well, faster. :P
38: [00:14:13] <guzzlefry> All that's left is coding up the cart and something to abstract the payment processor API.
39: [00:14:56] <atmos> guzzlefry: all of that seems way over my head being a .net dev. It's really simple in C# :D
40: [00:15:07] <guzzlefry> It might be over mine as well, we'll see. :P
41: [00:15:30] <UncleCheese> guzzlefry: what state are you in?
42: [00:16:06] <UncleCheese> after living in NZ for 3 months, i get excited when i find out someone is from the US
43: [00:16:08] <guzzlefry> Florida
44: [00:16:10] <UncleCheese> ah
45: [00:16:23] <UncleCheese> Nascar and old people
46: [00:16:30] <guzzlefry> yep
47: [00:16:38] <guzzlefry> well, miami has gangs and stuff I think
48: [00:16:46] <guzzlefry> And we have that Disney World thing. :P
49: [00:16:46] <ss23> and Dexter
50: [00:16:47] <UncleCheese> miami scares the hell out of me
51: [00:16:54] <guzzlefry> I've never been.
52: [00:16:55] <atmos> + bath salts
53: [00:16:56] <UncleCheese> so much crime there
54: [00:17:01] <guzzlefry> I did see that Top Gear special though...
55: [00:17:07] <ss23> Don't worry, Dexter will protect you
56: [00:17:07] <ss23> :D
57: [00:19:44] <guzzlefry> hrm
58: [00:19:48] <guzzlefry> [User Error] DataObject::buildSQL: Can't find data classes (classes linked to tables) for Varchar. Please ensure you run dev/build after creating a new DataObject.
59: [00:20:43] <guzzlefry> wait
60: [00:20:45] <guzzlefry> I think I did a dumb
61: [00:21:52] <guzzlefry> So..don't space out and add a Varchar to $has_one :P
62: [00:22:29] <Colin[pi]> yeah you'll totally be fine for wednesday ;P
63: [00:22:45] <guzzlefry> I'm doomed. :P
64: [00:22:45] <EasyCo> Haha
65: [00:24:09] <Pyromanik> 13:04 < atmos> +1 for RoR
66: [00:24:11] <Pyromanik> GTFO
67: [00:24:15] <Colin[pi]> lol
68: [00:24:22] <Colin[pi]> instaban
69: [00:28:39] <atmos> Pyromanik: you love it
70: [00:28:58] <Pyromanik> hey people that know stuff about creation, MyObj::create(array('MemberID'=>Member::currentUserID())) no-goes. Why not :<
71: [00:29:09] * Pyromanik sadfances
72: [00:29:12] <Pyromanik> err
73: [00:29:14] * Pyromanik sadfaces
74: [00:30:03] <guzzlefry> Pyromanik: write()?
75: [00:30:09] <Pyromanik> guzzlefry: yeh.
76: [00:30:13] <atmos> mmmmmmm dat 1 step documentation
77: [00:30:38] <guzzlefry> fsck
78: [00:30:39] <ss23> atmos: Speaking of 1, how did that SilentOne intergration work out?
79: [00:30:43] <ss23> The updated aPI or w/e it was
80: [00:30:47] <guzzlefry> Getting "Bad Gateway" errors in the CMS now.
81: [00:30:54] <atmos> ss23: oh
82: [00:30:58] <Pyromanik> guzzlefry: nginx?
83: [00:30:58] <ss23> guzzlefry: Tell it off!
84: [00:31:05] <ss23> Bad gateway, stop being nauthy!
85: [00:31:05] <guzzlefry> yep
86: [00:31:06] <ss23> naughty*
87: [00:31:13] <Pyromanik> guzzlefry: increase headerlength.
88: [00:31:25] <Pyromanik> capacity
89: [00:31:37] <atmos> ss23: good in the end, most of the problems were just the ordinal positions of table attributes + some minor styling issues
90: [00:31:37] <Pyromanik> google it
91: [00:31:40] <guzzlefry> ah
92: [00:31:56] <Pyromanik> nginx silverstripe bad gateway
93: [00:31:58] <atmos> 1 or 2 security blunders on SilentOne's part
94: [00:31:59] <guzzlefry> it went away when I switched from dev to live. :P
95: [00:32:04] <Pyromanik> find solution.
96: [00:32:06] <Pyromanik> do it.
97: [00:32:08] <Pyromanik> fixed.
98: [00:32:10] <Pyromanik> now
99: [00:32:11] <Pyromanik> hmm
100: [00:32:12] <ss23> atmos: Sweet :D
101: [00:32:13] <guzzlefry> perfect
102: [00:32:38] * atmos hates ordinal positions
103: [00:37:20] <Pyromanik> your mum is ordinal.
104: [00:37:43] <atmos> ss23: if you ever find yourself working with it again, talk with Senh at SO
105: [00:38:13] <ss23> atmos: He is the guy I talked to
106: [00:38:14] <ss23> :<
107: [00:38:21] <atmos> ss23: ah yes
108: [00:38:26] <atmos> I remember
109: [00:38:41] <atmos> ss23: you probably just didn't get angry at him like I did :D
110: [00:38:50] <ss23> haha
111: [00:38:54] <ss23> Yeah, I'm always professional!
112: [00:39:47] * DesignerX has joined #silverstripe
113: [00:40:51] <atmos> Pyromanik: zing!
114: [00:41:03] * mrzero quit (Ping timeout: 252 seconds)
115: [00:42:36] <atmos> anyone use the windows Git client?
116: [00:43:11] <ss23> atmos: The Github one?
117: [00:43:13] <atmos> *gitHub client
118: [00:43:17] * mrzero has joined #silverstripe
119: [00:43:20] <atmos> ss23: yeah
120: [00:44:43] <simon_w> People use Windows and git?
121: [00:44:57] <Stomach> I use sourcetree on windows
122: [00:45:08] <atmos> simon_w: yes
123: [00:46:48] <atmos> simon_w: only for viewing repos/changes
124: [00:47:47] * guzzlefry gets a crazy idea.
125: [00:47:49] <DryerLintPurple> I use git on Windows. Via the git wrapper for Mercurial. ;)
126: [00:48:02] <guzzlefry> $has_one = "Cart" => "Order"
127: [00:50:12] <DryerLintPurple> actually I do have git installed, but only for Composer. I avoid using git directly as much as possible.
128: [00:51:15] * atmos quit (Ping timeout: 250 seconds)
129: [00:53:27] <DryerLintPurple> take git, make it less arcane and Linux-centric, and you've got Mercurial. suits me fine, k thx.
130: [00:56:37] <Avroceptyr> https://www.youtube.com/watch?v=fI_xuFA18m4 - I just don't know... :/
131: [00:57:06] <simon_w> One of the directors just came in and ask why I'd been endorsed on LinkedIn as a git
132: [00:57:15] <ss23> hahahhaha simon_w
133: [00:57:30] <ss23> simon_w: Tweet that so I can RT it
134: [00:57:31] <ss23> :D
135: [00:58:59] <guzzlefry> Is git slang for something in the eastern hemisphere?
136: [00:59:12] <Avroceptyr> guzzlefry: a git is an idiot
137: [00:59:15] <Colin[pi]> git in british english is like idiot
138: [00:59:18] <Colin[pi]> yeah that
139: [01:00:01] <Colin[pi]> if I add an extension to an object, and the extension has a method with the same name as one in the object being extended, it should override that method right?
140: [01:00:35] <simon_w> Colin[pi], nope
141: [01:00:49] <simon_w> Unless be extension you mean subclass
142: [01:01:02] <Colin[pi]> o rly? no I mean Object::add_extension()
143: [01:01:40] <simon_w> Need to get into __call() for Extensions to be called, which means the method can't exist
144: [01:02:55] <Colin[pi]> ok.. so if there is a controller index() method, and I add an extension to that controller, with an index method, it will not replace the original?
145: [01:03:25] <Avroceptyr> You know what's awesome?!
146: [01:03:37] <Avroceptyr> "SharePoint is awesome!" -- said nobody ever
147: [01:03:43] <ss23> lol Avroceptyr
148: [01:05:52] <simon_w> Colin[pi], correct
149: [01:05:57] <Colin[pi]> well poop
150: [01:06:21] <simon_w> Did you sell something you can't deliver? :p
151: [01:06:35] <Colin[pi]> well the ss-shop code has an extension to change the checkout controller to a stepped checkout
152: [01:07:00] <Colin[pi]> it 'does' this by having an index() in the extension that returns the first step instead of whatever the checkout page originally does
153: [01:07:04] <Colin[pi]> except it doesn't
154: [01:07:16] <Colin[pi]> because it only works when I comment out the index() method on the original checkout
155: [01:07:23] <Colin[pi]> I guess that's why lol
156: [01:08:37] <Pyromanik> hg!
157: [01:08:40] <Pyromanik> it's like git, only not!
158: [01:08:44] <Pyromanik> eh DryerLintPurple
159: [01:08:53] <ss23> Like git, but more hipster!
160: [01:09:43] * atmos has joined #silverstripe
161: [01:10:07] <atmos> oh noes - PABX problems :<
162: [01:11:06] <Pyromanik> wtb
163: [01:11:11] <Pyromanik> operator definintions in php
164: [01:11:34] <Pyromanik> ss23: better than bazaar
165: [01:11:56] <spronk> hg is pwn
166: [01:12:08] * spronk finds it disappointing that git is more popular than hg
167: [01:12:10] <Pyromanik> which sounds both like a market you get fleeced in, and brings up memories of kazaa, which in turns brings up memories of bonzai buddy.
168: [01:12:11] <Avroceptyr> I can sell you a whole new language, Pyromanik; I'll even throw in a framework to go with it. "SharePoint 2013 is your panacea to all your IT problems." -- said every sales rep everywhere
169: [01:12:34] <Pyromanik> Avroceptyr: yeah, because commission.
170: [01:12:51] <Pyromanik> fucks given? 0, kick it out the door and problem solved!
171: [01:13:11] <Avroceptyr> "It compiles! Go live!"
172: [01:13:44] <Pyromanik> wait, you have to compile it?
173: [01:13:48] * atmos looks at his pile of Sharepoint 2013 work
174: [01:13:52] <ss23> 1 2 3 kick it!
175: [01:13:53] <Pyromanik> haha
176: [01:13:56] <Pyromanik> guts 4 u
177: [01:13:57] <ss23> Drop that beat like an ugly baby!
178: [01:14:01] <Pyromanik> councils eat that shit up
179: [01:14:12] <Pyromanik> just like they eat babies.
180: [01:14:33] <ss23> lol
181: [01:14:41] <ss23> How long does the default cache last for SS_Cache?
182: [01:14:49] <atmos> Pyromanik: to be fair, if you know what you're doing, it's pretty good for intranet only. Trouble is, no one knows how to do the things!
183: [01:14:52] <atmos> :<
184: [01:15:14] <ss23> Yeah
185: [01:15:21] <Pyromanik> http://www.youtube.com/watch?v=93kkEMIXu5s
186: [01:15:26] <ss23> I'm told Sharepoint is one of those peices of software that if you configure it perfectly, it's amazing
187: [01:15:26] * zippy__ quit (Ping timeout: 240 seconds)
188: [01:15:27] <Pyromanik> Politics!
189: [01:15:29] <ss23> And no one in the world can configure it properly
190: [01:16:12] <Pyromanik> ss23: yeah, if you configure it and you're in the exact pigeon hole it caters for.
191: [01:16:19] <Pyromanik> if not, you're fucked, even if you can configure it.
192: [01:16:23] <atmos> all I need to 'build' is a wiki, team/department calendar and a trade post :P
193: [01:16:48] <Pyromanik> media wiki, google apps, ... umm...
194: [01:16:48] <Pyromanik> fuck
195: [01:17:00] <atmos> exactly :D
196: [01:17:02] <pippy> company intranets: welcome to the 90s
197: [01:17:07] <Pyromanik> define: trade post
198: [01:17:14] <Pyromanik> pippy: ikr
199: [01:17:18] <atmos> buy sell swap
200: [01:17:27] <Pyromanik> but you know, councils are like MONEY FOR EVERYTHING, where did our money go?
201: [01:17:30] <atmos> == announcment list
202: [01:17:42] <ss23> I forget
203: [01:17:42] <Pyromanik> atmos: so... what
204: [01:17:45] <ss23> how to get page from controller?
205: [01:17:48] <Pyromanik> why does a council need a trademe?
206: [01:17:50] <ss23> $this->myshit->ID?
207: [01:17:58] <Pyromanik> ss23: ContentController?
208: [01:18:01] * spronk has left #silverstripe
209: [01:18:02] <Pyromanik> $this->data()
210: [01:18:08] <ss23> ty
211: [01:18:15] <Pyromanik> ss23: or just $this->ID
212: [01:18:19] * spronk has joined #silverstripe
213: [01:18:24] * spronk has left #silverstripe
214: [01:18:27] <Pyromanik> if you just want the id, for example.
215: [01:19:14] <UncleCheese> if you think about it, SivlerStripe isn't really an MVC, is it? it's an MVVM
216: [01:19:23] <Pyromanik> nup, there's a C.
217: [01:19:33] * spronk has joined #silverstripe
218: [01:19:35] <Pyromanik> MVVM is more like every JS app ever.
219: [01:19:51] <spronk> ugh
220: [01:19:52] <spronk> mvvm
221: [01:19:57] <spronk> it's the same as MVP
222: [01:19:59] <Pyromanik> VVVVVVVVVVVVVVVMMMMMMMMMMMM
223: [01:20:05] <Pyromanik> you're my MVP spronk
224: [01:20:12] <spronk> which is the same as MVC, depending on exact implementation
225: [01:20:14] <spronk> haha
226: [01:20:18] * spronk won mvp for his team this year :P
227: [01:20:35] <ss23> *for* your team?
228: [01:20:37] <ss23> P is player
229: [01:20:39] <ss23> As in, singular person
230: [01:20:39] <Pyromanik> :D nice
231: [01:20:39] <ss23> :P
232: [01:20:56] <Pyromanik> most veritible playah
233: [01:21:21] <UncleCheese> ModelAsController is for all intents and purposes a ViewModel
234: [01:22:04] <atmos> Pyromanik: dunno, it's a small job
235: [01:23:20] * atmos wonders if there are any councils using anything other than windows for primary functions
236: [01:26:13] <spronk> MVP, as in Maddest Vietnamise Pimp
237: [01:28:25] <Pyromanik> UncleCheese: no it's not, it gets a controller based on the value passed in (urlsegment).
238: [01:28:37] <Pyromanik> atmos: sif.
239: [01:28:51] <Pyromanik> they lap up whatever the shit consultant they pay a ridiculous sum tells them.
240: [01:29:25] <Pyromanik> "We spent a million dollars of ratepayer money looking at alternative intra-council systems. In the end we decided to upgrade sharepoint"
241: [01:29:31] <Pyromanik> YAY, THERE GOES OUR ROADS.
242: [01:29:36] <atmos> LOL
243: [01:29:52] <Pyromanik> you lol because you know it's true.
244: [01:29:55] <simon_w> Eh, maybe they're being paid by the 4x4 industry
245: [01:30:01] <Pyromanik> rofl
246: [01:30:06] <Pyromanik> moneygoround!
247: [01:30:10] <atmos> we spent nothing on ours :D
248: [01:30:21] <atmos> but I do, yes
249: [01:31:10] <Pyromanik> UncleCheese: it's just poorly named. ModelAsController is a controller that finds a model & instantiates a controller for it, then passes execution to that controller.
250: [01:31:29] <Pyromanik> it should be called FindControllerForModel
251: [01:32:17] <Pyromanik> and the view layer doesn't pass directly back to the model layer. It goes through a controller first, due to the stateless nature of the web in part I guess.
252: [01:34:03] * Kapdap quit (Quit: leaving)
253: [01:34:15] * Kapdap has joined #silverstripe
254: [01:34:18] <Colin[pi]> itunes logic: "I've just been updated... better check to see if any updates are available."
255: [01:34:39] <simon_w> Fairly common process that
256: [01:34:43] <simon_w> Check for updates on open :p
257: [01:35:03] <ss23> Not a bad process either, since it's async right?
258: [01:35:08] <ss23> Unless it's a blocking check for updates
259: [01:35:12] <ss23> In which case fuck that
260: [01:35:37] <simon_w> It's blocking if user initiated. Check on start is async
261: [01:35:46] <ss23> Yeah, that sounds fine to me
262: [01:36:14] <atmos> should be timed from last update
263: [01:36:47] <simon_w> iTunes has a weekly or so check too
264: [01:36:59] <simon_w> But, given that it's not blocking, there's no harm doing it on startup
265: [01:37:00] <Pyromanik> sounds like malware
266: [01:37:50] <Pyromanik> simon_w: I can't check an extrafield value on an unsavedcomponentslist?
267: [01:38:04] <Pyromanik> errr UnsavedRelationList
268: [01:38:10] <simon_w> Check? In what way?
269: [01:38:24] <Pyromanik> hmm
270: [01:38:30] <Pyromanik> wait, hang on, might just have a typo
271: [01:38:38] <Pyromanik> check as in fetch.
272: [01:38:42] <Pyromanik> getter
273: [01:38:43] <Pyromanik> etf
274: [01:38:45] <Pyromanik> etc*
275: [01:39:09] * SightUnseen has joined #silverstripe
276: [01:39:15] <Pyromanik> mm, typo :<
277: [01:40:38] <Pyromanik> can I do casting?
278: [01:40:40] <Pyromanik> still
279: [01:40:42] <Pyromanik> in data objects?
280: [01:40:46] <simon_w> yes
281: [01:40:55] <Pyromanik> eg, public function blah returns 1.23
282: [01:41:11] * SightUnseen has left #silverstripe
283: [01:41:12] <Pyromanik> cast as float in templates but have it just as (float)1.23 in php?
284: [01:41:25] <Pyromanik> is it still just casting: field: type?
285: [01:42:22] <simon_w> yes
286: [01:42:36] <Pyromanik> cool, ta
287: [01:42:48] <Pyromanik> I will do this, because fuck ->getValue() everywhere :<
288: [01:46:28] * Peavers has joined #silverstripe
289: [01:46:45] <Peavers> Is anyone able to install/update the blog or document converter module via Composer?
290: [01:47:11] <Peavers> As within the last twoish hours...
291: [01:49:30] <ss23> Peavers: I haven't tried -- what's the error?
292: [01:49:52] <atmos> ss23: when you worked with the embargo - di the email reminder/notification have a flag for it?
293: [01:49:54] <Peavers> package could not be found in any version
294: [01:49:56] <atmos> did*
295: [01:50:07] <Peavers> was fine this morning..
296: [01:50:44] <ss23> atmos: No idea :O
297: [01:50:51] <atmos> :<
298: [01:51:46] <Peavers> Same kinda question dude, if I have a module on gitlab and push an update to it, if I just redeploy with deploynaut it won't get the latest version without the .lock file being updated first yeah?
299: [01:52:44] <simon_w> If it does a composer install, yes
300: [01:52:51] <simon_w> (it probably does)
301: [01:53:34] <Peavers> yeah but it doesn't lol
302: [01:54:03] <Peavers> I seem to have to update the .lock file by running composer update locally, then commiting the new lock file, and then deploy via deploynaut
303: [01:54:47] <Peavers> Your button has moved from LSI to preprod simon_w - congratulations
304: [01:59:33] * joelpittet has joined #silverstripe
305: [02:04:47] <atmos> snow!
306: [02:08:51] <simon_w> Beatbox!
307: [02:10:04] <Stomach> is there a way to set the default sort order of a dataobject as the sort order of a has_one relationship on that object?
308: [02:10:19] <Stomach> eg foo has_one bar.... sort foo by bar.sortorder
309: [02:10:29] <simon_w> nope
310: [02:10:33] <Stomach> darn
311: [02:10:53] <Stomach> oh well, im not content loading this so it doesnt matter
312: [02:10:56] <Stomach> :D
313: [02:11:16] <Pyromanik> 15:08 <@simon_w> Beatbox!
314: [02:11:18] <Pyromanik> eh?
315: [02:11:27] <simon_w> It's our Hiphop framework!
316: [02:12:01] <Peavers> facebook hipsters.
317: [02:12:02] <Colin[pi]> dammit! switch to stepped checkout page to better support shipping methods... new checkout does not support current payment method
318: [02:12:09] * Colin[pi] is developer bad luck brian
319: [02:12:29] <Pyromanik> simon_w: oh yeh, makes sense.
320: [02:12:59] <simon_w> https://svn.pocketrent.com/beatbox/trunk/
321: [02:13:06] <simon_w> Needs a readnme
322: [02:13:22] <simon_w> Someone write one for me!
323: [02:14:38] <simon_w> Dammit, need to rename the tabs thing
324: [02:15:01] <ss23> lol
325: [02:15:12] <ss23> was going to be like "wtf is it? needs a readme!"
326: [02:15:35] <spronk> doesn't support multiple database connections?
327: [02:15:51] <simon_w> Yeah it does
328: [02:16:27] <spronk> orm Connection is a singleton?
329: [02:16:44] <simon_w> Notice how the constructor's public?
330: [02:17:18] <simon_w> Bah, all the XHP tags are still pr namespaced
331: [02:18:08] <Colin[pi]> does anyone know if there is an SS payment class for EWAY shared/hosted payment?
332: [02:18:19] * Colin[pi] thinks ima have to write it, sigh
333: [02:19:38] * gordon has joined #silverstripe
334: [02:20:02] * gordon is now known as Guest34479
335: [02:21:16] <atmos> never heard of away
336: [02:21:20] <atmos> eway*
337: [02:23:04] <Colin[pi]> AU-based payment gateway
338: [02:23:25] <Colin[pi]> there is a few classes in the payment module, but they are not using the type of payment I need
339: [02:23:53] <atmos> Colin[pi]: ah ok
340: [02:24:06] <Colin[pi]> is ok I can write one, but pita
341: [02:24:19] <atmos> I helped write one for Kiwipay
342: [02:25:33] <atmos> god they had bad customer service back then
343: [02:25:56] <Colin[pi]> shitty because it seems that certain modes of checkout in ss-shop support CC fields on the shop site, and some modes do not
344: [02:26:34] * zippy__ has joined #silverstripe
345: [02:27:11] <atmos> zippy__: :D that ALMOST looks like sleet outside
346: [02:27:31] * Guest34479 quit (Ping timeout: 245 seconds)
347: [02:28:00] <zippy__> HA!
348: [02:28:09] <zippy__> I was just out in the car, didn't see no sleet
349: [02:29:37] <atmos> I said almost :P
350: [02:30:23] <zippy__> 3.1.1 out already, dang!
351: [02:30:45] <atmos> yeah I really hope we upgrade soon
352: [02:31:45] <ss23> zippy__: A bug was found ~4 hours after it was released
353: [02:31:52] <ss23> (as in, big regression that broke parts of the CMS)
354: [02:31:55] <ss23> So yeah, we got a new one quick
355: [02:31:55] <ss23> :D
356: [02:32:07] <atmos> that's cool
357: [02:32:37] <ss23> So, my first time implmenting some static caching for a site!
358: [02:32:58] <zippy__> ss23: congrats! It was my first a few days ago
359: [02:33:22] <ss23> Are there any staticache docs? o.o
360: [02:33:36] <zippy__> I ran into a gotcha where the /cache folder wasn't created on the production site automatically (permissions) so the cache wasn't working
361: [02:34:11] <ss23> You just need to add a htaccess to start with, right?
362: [02:34:25] <zippy__> There is a doc page somewhere
363: [02:34:49] <ss23> Do you remember the name?
364: [02:35:15] <zippy__> trying to find it
365: [02:35:58] <ss23> Hmm
366: [02:36:02] <ss23> I think I'll get burgerfuel
367: [02:36:34] <ss23> Though I don't feel *amazingly* hungry, had a bacon and halumi bagel for breakfast, then a hot chocolate
368: [02:36:37] <ss23> :D
369: [02:36:53] <zippy__> ss23: http://doc.silverstripe.org/framework/en/3.0/reference/staticpublisher
370: [02:36:59] <atmos> ?me wishes there was burgerfuel in Nelson
371: [02:37:02] <atmos> feck
372: [02:37:31] <zippy__> I've been liking bk a bit these days
373: [02:37:42] <atmos> zippy__: actually, me too
374: [02:37:45] <atmos> never used to
375: [02:38:11] <atmos> whatever the burger is with onion rings
376: [02:38:16] <atmos> steakhouse something
377: [02:39:04] * Guest34479 has joined #silverstripe
378: [02:40:59] <atmos> zippy__: nelson KFC has to the worst in NZ :(
379: [02:41:01] <zippy__> ss23: Make sure to read past the sub sites and multi sites as well
380: [02:41:15] <zippy__> atmos: yes it sure is, I never go there
381: [02:42:05] <spronk> simon_w: apart from all the pear crap, looks aaight
382: [02:42:30] <atmos> zippy__: and then apparently the one in Mot is awesome
383: [02:42:42] <zippy__> it is :)
384: [02:46:43] <simon_w> spronk, at least it's not ZF
385: [02:46:59] <spronk> i dno which is worse :P
386: [02:47:18] <simon_w> I've got the two things from PEAR that are known to actually work :p
387: [02:47:31] <spronk> hahaha :D
388: [02:47:38] <spronk> that's so sad :(
389: [02:48:04] <spronk> also, debian really needs a repository for pretty-coloured-bash
390: [02:51:06] <irogue> weee
391: [02:51:20] <irogue> someone ddosing one of the websites i host
392: [02:51:39] <irogue> turned cloudflare level up and laughed at their face
393: [02:53:07] <Pyromanik> irogue: rofl?
394: [02:53:48] <irogue> http://pastie.org/8385596
395: [02:54:36] * Guest34479 quit (Ping timeout: 245 seconds)
396: [02:55:10] <irogue> was originally doing ?flush=1 and their web host was like FUCK THIS. i took over, upgraded silverstripe, been quiet for a while since
397: [02:55:20] <irogue> now they've come back doing that
398: [02:56:35] <DryerLintPurple> "-"
399: [02:56:51] <ss23> zippy__: Will read :D
400: [02:57:00] <Pyromanik> irogue: Posting to root eh?
401: [02:57:12] <irogue> yep
402: [02:57:21] <DryerLintPurple> also, that's a lot of IE6 users >_< :P
403: [02:57:34] <Pyromanik> Not acutally ie6.
404: [02:57:37] <Pyromanik> probably
405: [02:57:39] <DryerLintPurple> I know
406: [02:57:48] <Pyromanik> or windows xp
407: [02:57:56] <irogue> yeah
408: [02:57:57] <Pyromanik> sp1
409: [02:57:59] * zippy__ is curious to know what they're posting
410: [02:58:34] * Pyromanik is curious to know why American's leave the "to" out when they talk about writing to someone.
411: [02:58:41] <irogue> cloudflare's WAF is blocking it as "IE6 Binary POST Botnet"
412: [02:58:52] <Pyromanik> WAF
413: [02:58:59] <DryerLintPurple> Wife Approval Factor
414: [02:59:04] <Colin[pi]> lol
415: [02:59:07] <irogue> Web Application Firewall :P
416: [02:59:08] <zippy__> Wickedly awesome filter
417: [02:59:08] <guzzlefry> Pyromanik: Like "I wrote my wife"?
418: [02:59:09] <Colin[pi]> yep I get that as I have a HTPC
419: [02:59:10] <irogue> bloody useful things
420: [02:59:11] * Pyromanik googles
421: [02:59:14] * guzzlefry doesn't do that. :P
422: [02:59:33] <Pyromanik> "Wife acceptance factor", "World Architecture Festival", "waf - the meta build system"
423: [02:59:38] <Colin[pi]> "What the Actual Fuck"
424: [02:59:48] <guzzlefry> 0.o
425: [03:00:03] <Pyromanik> guzzlefry: yes. Why did you write "My wife", and more importantly, where did you write it?
426: [03:00:26] <Pyromanik> because I don't think you'd get much WAF if you scribbled it in the hallway as a surprise for her when she comes home.
427: [03:01:05] * guzzlefry is confused now.
428: [03:01:14] <Pyromanik> guzzlefry: did you write it on her forehead? if so, it won't make much sense when she's out alone. Anyone could claim to be the 'my' part.
429: [03:01:41] <Pyromanik> or is it because you have alzhimers and you need reminding who she is when you wake up in the morning
430: [03:01:44] <Pyromanik> and if that's the case
431: [03:01:46] <Pyromanik> do you write other notes?
432: [03:01:50] <Pyromanik> like "my fridge"
433: [03:01:55] <Pyromanik> "my toaster"
434: [03:02:01] <Pyromanik> "put my milk in my bowl"
435: [03:02:06] <Pyromanik> with my cereal
436: [03:02:13] <guzzlefry> :P
437: [03:02:25] <irogue> "rubs the lotion on its skin"
438: [03:02:29] <guzzlefry> You don't have regional dialects of English? :P
439: [03:02:51] <Pyromanik> Sure, there's English, and then there's that crazy Americanese stuff.
440: [03:03:32] <atmos> there are some regional things
441: [03:03:47] <Pyromanik> atmos: I'm not too sure slang really counts.
442: [03:05:25] <atmos> Pyromanik: I'm thinking more accents I guess
443: [03:06:02] <Pyromanik> yeh
444: [03:06:11] <Pyromanik> English is very structured
445: [03:06:18] <Pyromanik> doesn't vary too much from place to place
446: [03:06:26] <Pyromanik> thanks to the British Empire being what it was.
447: [03:08:34] <atmos> that ole Yankee dialect is pretty badass :D
448: [03:08:49] <Pyromanik> http://www.ted.com/talks/sugata_mitra_build_a_school_in_the_cloud.html
449: [03:09:04] <Pyromanik> from 1m until about 5mins or so
450: [03:09:08] <ss23> I <3 new-age teaching
451: [03:09:11] <ss23> Universities are shit
452: [03:09:25] <Pyromanik> also if you have time watch the whole video because what ss23 said.
453: [03:09:35] <Pyromanik> it's pretty badass.
454: [03:09:39] <atmos> bookmarked
455: [03:09:45] <ss23> I don't know if thats the one I've seen, but I have seen a bunch of talks (and read, and experienced) stuff on it
456: [03:09:52] <atmos> <3 ted
457: [03:10:23] <atmos> anyone else see that one from the 19yo designing the mini nuclear reactors?
458: [03:10:24] <Pyromanik> atmos: guzzlefry but the start of the video pretty much explains why there's fuck all 'dialects' when it comes to English.
459: [03:10:37] <atmos> Pyromanik: ah
460: [03:10:39] <atmos> cool
461: [03:11:22] * UncleCheese quit (Quit: UncleCheese)
462: [03:11:27] <atmos> can anyone recommend a good cloud storage service? Drive? SkyDrive? Mega? Pretty much only going to use it for photos
463: [03:12:25] <Pyromanik> get a server?
464: [03:13:04] <simon_w> Flickr?
465: [03:13:39] <atmos> simon_w: how big is Flickr's free accounts?
466: [03:13:53] <simon_w> 1 TB?
467: [03:13:59] <atmos> badass
468: [03:14:52] <DryerLintPurple> now if they'd just get rid of this http://xkcd.com/1264/
469: [03:14:55] <simon_w> http://www.flickr.com/help/limits/#150427010
470: [03:16:18] <atmos> Anything with bulk upload from the android app would be high on the list - stupid Drive only allows individual files = crap
471: [03:16:31] <zippy__> atmos: decent gust :)
472: [03:16:46] * Oishi has joined #silverstripe
473: [03:17:17] * zagoodwin quit (Ping timeout: 250 seconds)
474: [03:18:55] <DryerLintPurple> I've got a 100GB Box.com account. I just wish their desktop sync app weren't so limited (can only specify one folder to sync).
475: [03:19:43] <zippy__> DryerLintPurple: Can you symlink other folders to it?
476: [03:19:57] <atmos> can you have folders in Flickr?
477: [03:20:05] <zippy__> DryerLintPurple: I mean, in the folder can you have symlinks to other folders?
478: [03:20:21] <simon_w> atmos, you can have sets
479: [03:20:33] <DryerLintPurple> zippy__: tried that, it picks up the symlinked folders when you first set it up, but further changes aren't synced.
480: [03:20:38] <atmos> simon_w: ok
481: [03:20:55] * nickmolhoek quit (Quit: nickmolhoek)
482: [03:21:01] <simon_w> Looks like http://www.flickr.com/photos/simon_w/sets/
483: [03:22:00] <atmos> simon_w: sweet - that'll do. thnx
484: [03:22:14] <zippy__> simon_w: nice - http://www.flickr.com/photos/simon_w/sets/72157629228641953/
485: [03:22:33] <simon_w> Haha, I remember those!
486: [03:23:20] <zippy__> nice external hdds you have here, http://www.flickr.com/photos/simon_w/4223835153/in/set-72157622959656915
487: [03:23:50] <simon_w> Was just swapping their drives
488: [03:24:00] <simon_w> So much easier than physically doing it
489: [03:25:14] <zippy__> was a handy feature
490: [03:25:58] <simon_w> Still exists, just over thunderbolt now
491: [03:26:10] <simon_w> Has a different logo bounce around the screen too
492: [03:33:49] * atmos quit (Quit: Page closed)
493: [03:36:24] * cloph_away has joined #silverstripe
494: [03:36:40] * cloph quit (Ping timeout: 245 seconds)
495: [03:38:58] <EasyCo> Is it quite easy to extend a requiredfield to only be required if another field is filled?
496: [03:39:46] <Colin[pi]> EasyCo: look at CustomRequiredFields
497: [03:40:59] <EasyCo> Qué?
498: [03:41:24] <ss23> First result searching for "edit" in Grooveshark artist search is Eminem
499: [03:41:30] <ss23> Like the 10th result is the artist "edit"
500: [03:41:31] <ss23> >.>
501: [03:41:51] <Colin[pi]> EasyCo: CustomRequiredFields allows you to do what you want
502: [03:42:08] <Colin[pi]> i.e. only require certain fields if others are filled
503: [03:42:09] <EasyCo> It's not in 3.0
504: [03:42:12] <Colin[pi]> oh lol
505: [03:42:19] <Colin[pi]> replaced with something?
506: [03:42:23] <EasyCo> On 2.4 as far as uncle google is concerned
507: [03:42:27] <EasyCo> Yah with RequiredFields
508: [03:42:35] * gordon has joined #silverstripe
509: [03:42:38] <Colin[pi]> and.. it doesn't have this functionality anymore?
510: [03:42:46] <EasyCo> Not at a glance, looking now
511: [03:43:11] * gordon is now known as Guest16851
512: [03:44:54] <simon_w> just write your own Validator. Isn't hard :p
513: [03:45:14] <Colin[pi]> get simon_w to do it, he loves volunteering
514: [03:45:18] <EasyCo> Your :p is making me dubious
515: [03:45:27] <ss23> Hmm
516: [03:45:34] <simon_w> Will be even easier if https://wiki.php.net/rfc/anonymous_classes gets accepted
517: [03:45:35] <ss23> I need to statically cache with some get params
518: [03:46:01] <ss23> Good idea to just rewrite the URLs (only 1 of them) that have GEt params to a specific static file?
519: [03:48:28] <simon_w> can't be bothered installing another browser to test, is https://wiki.pocketrent.com/beatbox/start world-accessible?
520: [03:48:42] * Guest16851 quit (Ping timeout: 264 seconds)
521: [03:48:46] <ss23> simon_w: Yes
522: [03:48:50] <simon_w> Goody
523: [03:48:52] <ss23> simon_w: but why would you need another browser to test? :S
524: [03:49:03] <simon_w> So I don't have to log out
525: [03:49:12] <ss23> open an incognito window?
526: [03:49:27] <simon_w> porn mode starts with the current cookies
527: [03:49:55] <ss23> lol, lame
528: [03:49:58] <ss23> Chrome clears all
529: [03:49:59] <ss23> :D
530: [03:50:09] <ss23> Don't wanna accidently hit the like button in porn mode!
531: [03:50:45] <Colin[pi]> i know someone that did that
532: [03:50:56] <Colin[pi]> good times
533: [03:51:04] <Pyromanik> aaaahahahahaa
534: [03:51:20] * DigNZ quit (Quit: DigNZ)
535: [03:51:25] <Colin[pi]> I had a screenshot of it somewhere I think
536: [03:51:32] <Pyromanik> is that like that (probably fake) meme floating around where the chap is all "DAD FACEBOOK IS NOT GOOGLE" after at least 3 status updates for "CHICKS WITH DICKS"
537: [03:51:44] <ss23> lol
538: [03:52:32] <Pyromanik> kinda like this one, only worse. http://iwastesomuchtime.com/on/?i=4736
539: [03:55:51] * Oishi quit (Ping timeout: 250 seconds)
540: [03:58:47] <zippy__> simon_w: https://pocketrent.com/ the theme on that ipad looks like something off of https://wrapbootstrap.com/
541: [03:58:49] <ss23> Hmm
542: [03:58:55] <ss23> Think I'm going to do a little custom version of static caching
543: [03:59:11] <ss23> Dammit, so many links are broken on the SS docs
544: [04:01:44] <simon_w> zippy__, predates that by half a year at least :)
545: [04:02:05] <zippy__> ss23: whats the beef?
546: [04:02:35] <Colin[pi]> <@ss23> Dammit, so many links are broken on the SS docs - FIX IT
547: [04:04:17] <ss23> NU UH
548: [04:04:26] <ss23> Was the link to static exporter on the bottom of the static cache docs
549: [04:05:20] <Pyromanik> fuck, 1705
550: [04:05:23] * Pyromanik quit (Quit: leaving)
551: [04:06:43] <simon_w> ss23, FIX IT
552: [04:06:57] <ss23> ;____;
553: [04:07:01] <ss23> NU UH
554: [04:07:05] <ss23> simon_w: You're working late today :D
555: [04:07:27] <simon_w> Not really
556: [04:08:12] <Colin[pi]> yeah remove the working part
557: [04:08:27] <ss23> You're late today?
558: [04:08:34] <Colin[pi]> that's it1
559: [04:08:42] <ss23> simon_w: ARE YOU PREGNANT?
560: [04:08:43] <ss23> :O
561: [04:08:48] <simon_w> Yes.
562: [04:08:51] <ss23> XD
563: [04:08:58] <ss23> The father is burger fuel.
564: [04:12:40] <spronk> niice
565: [04:13:03] <ss23> HMMMMMMM
566: [04:13:05] <ss23> This is annoying
567: [04:13:14] <ss23> Because I have get params, I don't know how useful the static publisher module will be
568: [04:14:05] <simon_w> Home time!
569: [04:14:19] <ss23> Cyao, simon_w ^.^
570: [04:14:53] <Colin[pi]> tchau
571: [04:18:21] * UncleCheese has joined #silverstripe
572: [04:27:53] <guzzlefry> hrm so, class Customer { $has_many = "Orders" }, Is there any way to tie an order back to a customer without adding a $has_one = "Customer" on the Order class?
573: [04:29:47] <guzzlefry> oh, looks like maybe $Belongs_to does that...
574: [04:30:18] <guzzlefry> nope, that's for 1-1 relationships
575: [04:31:19] <Colin[pi]> you can't modify the Order class?
576: [04:32:07] <guzzlefry> I can, just wondering if something is done automagically.
577: [04:32:46] <Colin[pi]> it is, by putting a has_one Customer on the Order class ;P
578: [04:33:38] <guzzlefry> dang fangled ORMs... :P
579: [04:34:28] <Colin[pi]> better to explicitely define your relationships, no?
580: [04:34:46] <guzzlefry> probably
581: [04:35:49] <Colin[pi]> ;P
582: [04:36:53] * stecman quit (Quit: This computer has gone to sleep)
583: [04:49:08] <guzzlefry> should I always call parent::init() when overriding?
584: [04:49:57] <Colin[pi]> guzzlefry: yes
585: [04:53:19] * UncleCheese quit (Quit: UncleCheese)
586: [04:59:16] <guzzlefry> This is already getting more complicated than I realized. Wondering how to assign a cart to a customer who may not have an account. :P
587: [04:59:30] <guzzlefry> oh wait, sessions...
588: [05:03:18] <Colin[pi]> yep session
589: [05:03:30] <Colin[pi]> in ss-shop the cart/order are basically the same thing
590: [05:04:00] <guzzlefry> yeah, that's how I modeled mine.
591: [05:04:32] <guzzlefry> And I guess I'm going to do what amazon does when a user logs in but had a cart previously, combine them. :P
592: [05:20:08] <Colin[pi]> man after about a week of fixing this shop might almost work
593: [05:35:55] <guzzlefry> gah, this is messy.
594: [05:36:54] <guzzlefry> Well wait, are sessions destroyed after a user logs out?
595: [05:36:55] * Guits has joined #silverstripe
596: [05:38:07] <guzzlefry> oh, yay they are
597: [05:38:10] <guzzlefry> So this might be a non-issue.
598: [05:42:33] <EasyCo> Well that was definitely not a 'small' task to write a custom required fields that depends on rules.
599: [05:46:12] <guzzlefry> I'm guessing a DataObject created with new doesn't get an ID until call write()?
600: [05:46:21] <guzzlefry> you^
601: [05:46:37] <EasyCo> Yes
602: [05:49:40] * Shrike_Finland has joined #silverstripe
603: [05:54:52] <Shrike_Finland> Any idea what could cause this: SHOW FULL FIELDS IN "SiteTree" Incorrect key file for table '/tmp/#sql_f5a_1.MYI'; try to repair it
604: [05:58:13] * joelpittet quit (Remote host closed the connection)
605: [06:07:39] <guzzlefry> Shrike_Finland, Did you try the usual /dev/build/?flush=all?
606: [06:08:32] <guzzlefry> Unrelated, I hate undefined index errors...
607: [06:16:16] <guzzlefry> [Notice] Undefined property: Member::$Cart <--- if ($this->owner->Cart)
608: [06:16:25] <guzzlefry> What am I doing wrong?
609: [06:16:45] <guzzlefry> Cart is on the DataExtension for member.
610: [06:17:21] <Shrike_Finland> guzzlefry: Yep, done that many times. Does not help.
611: [06:18:50] * Guits quit (Read error: Connection reset by peer)
612: [06:23:30] <guzzlefry> So, isset() fixes the undefined index errors.
613: [06:24:45] * Nightjar has joined #silverstripe
614: [06:25:46] * irogue licks Nightjar
615: [06:26:27] * Nightjar licks extrafields
616: [06:29:09] <guzzlefry> 0.o
617: [06:29:42] * guzzlefry licks SortableGridField.
618: [06:29:48] <guzzlefry> Doesn't taste very good...
619: [06:29:49] <Shrike_Finland> guzzlefry: any tips for best practices on isset()?
620: [06:31:01] <guzzlefry> Shrike_Finland: Not really. My method is to crank error reporting in PHP up so I can get notices, then whenever my code does from it, I wrap the variable in isset. :P
621: [06:31:09] <guzzlefry> err
622: [06:31:12] <guzzlefry> does = dies***
623: [06:31:26] <Nightjar> guzzlefry Doesn't taste very good...
624: [06:31:30] <Nightjar> Pretty sure I wouldn't either.
625: [06:35:51] <Nightjar> Shrike_Finland: Back to basics. Initialise or sanitise your variables before you use them.
626: [06:38:52] <guzzlefry> My issue was with magic properties. :P
627: [06:41:40] <Nightjar> if($obj->Prop)
628: [06:41:51] <Nightjar> no need for isset
629: [06:41:55] <Nightjar> if it's not there it'll return null
630: [06:42:09] <guzzlefry> I still get an error.
631: [06:42:25] <guzzlefry> Nightjar: [Notice] Undefined property: Member::$Cart <--- if ($this->owner->Cart)
632: [06:44:54] * willr has joined #silverstripe
633: [06:45:27] <irogue> yeah
634: [06:45:48] <irogue> isset/!empty is actually required in a lot of places in order to not get Notice-level
635: [06:46:36] <irogue> also, have i ever mentioned how much i hate c++? :-P
636: [06:47:05] <guzzlefry> You're playing with C++? :P
637: [06:47:27] <irogue> mmmm, have been for a while
638: [06:47:33] <irogue> and have just started to have to add threading
639: [06:47:58] <irogue> the lack of ability to even have *read* access to the main thread is driving me nuts
640: [06:53:18] <Colin[pi]> C++, shudder
641: [06:54:48] <guzzlefry> That has the weird access modifier syntax where you put public:, and then all of the public members on subsequent lines, right?
642: [06:55:15] <irogue> yup
643: [06:59:43] * Sjohn has joined #silverstripe
644: [07:00:26] * Shrike_Finland quit (Ping timeout: 245 seconds)
645: [07:02:46] <Sjohn> Goodmorning
646: [07:04:13] <irogue> A 4-year-old boy has died after he was run over by a council tractor mower in a Hastings park this evening.
647: [07:04:18] <irogue> how the FUCK does that happen?
648: [07:04:26] <irogue> Sjohn: g'day
649: [07:05:40] <Sjohn> That does sounds quite odd.
650: [07:06:19] <Sjohn> The guy on the mower must ave been sleeping
651: [07:06:36] <willr> irogue that's why you should mow your own lawns
652: [07:06:54] <irogue> knowing a lot of council workers, probably high and/or drunk
653: [07:07:15] <willr> and knowing Hasting..
654: [07:07:24] <irogue> cos really, in a park, surely you'd be ridiculously careful about people, dogs etc.
655: [07:07:56] <Nightjar> it's not weird
656: [07:08:02] <Nightjar> C++ is amazing
657: [07:08:17] <Sjohn> The prbly has a big lawsuite coming his way
658: [07:08:22] <Sjohn> the guy*
659: [07:08:28] <Nightjar> Sjohn: this is not america
660: [07:08:43] <Sjohn> It's just accepted?
661: [07:08:43] <irogue> The Police Serious Crash Unit and the Ministry of Business, Innovation and Employment's labour department have launched investigations.
662: [07:08:52] <Nightjar> He'll just get a manslaughter charge and possibly time in the klink
663: [07:09:20] <Nightjar> Sjohn: no, he caused a death. But in this country you can't just demand money for random shit.
664: [07:09:40] <Sjohn> That's not what i meant :p
665: [07:09:50] <Sjohn> that Murica
666: [07:09:52] <Sjohn> indeed
667: [07:09:55] <Nightjar> lawsuits are generally about that kinda thing.
668: [07:10:02] <Nightjar> but court case, yeh sure.
669: [07:10:05] * ARNHOE has joined #silverstripe
670: [07:10:15] <Nightjar> He'll have one of them.
671: [07:10:17] <Sjohn> Isnt it also about demanding some kind of punishment?
672: [07:10:22] <Nightjar> no
673: [07:10:26] <Nightjar> that's what laying charges are for.
674: [07:10:30] <Sjohn> aah court case
675: [07:10:35] <Sjohn> thats what i meant xD
676: [07:10:38] <Nightjar> yup
677: [07:10:39] * ARNHOE quit (Read error: Connection reset by peer)
678: [07:10:41] <Nightjar> I figured.
679: [07:10:49] <Nightjar> after a bit
680: [07:10:52] <Sjohn> haha
681: [07:11:06] <Sjohn> Its early here
682: [07:11:24] * ARNHOE has joined #silverstripe
683: [07:15:38] <Colin[pi]> mfw the payment gateway asked me to switch to a newer spec with an 83 page doc vs 9 pages currently: http://i.imgur.com/9rqU413.png
684: [07:15:49] <Nightjar> ahahahaha http://www.youtube.com/watch?v=1bQSOBJCPQE
685: [07:17:50] * wmk quit (*.net *.split)
686: [07:18:47] <guzzlefry> Is there a special way of accessing a has_one attribute of a DataExtension? I'm doing $this->owner->Cart; Getting errors.
687: [07:18:58] <guzzlefry> [Notice] Undefined property: Member::$Cart
688: [07:19:05] <irogue> Colin[pi]: what gateway?
689: [07:19:07] <irogue> (so i know to avoid)
690: [07:19:38] <Nightjar> guzzlefry: it's a function.
691: [07:19:54] <Nightjar> ()
692: [07:21:19] <guzzlefry> Nightjar: What is? owner() isn't.
693: [07:21:34] <Nightjar> $this->owner->Cart();
694: [07:22:09] <Nightjar> relations are always getter functions.
695: [07:22:24] <Nightjar> only record properties are accessed like plain properties.
696: [07:23:21] <guzzlefry> oh!
697: [07:23:22] <guzzlefry> thank you
698: [07:23:46] <guzzlefry> You just saved me probably another two hours of searching.
699: [07:24:00] * wmk has joined #silverstripe
700: [07:25:11] <guzzlefry> Hm, so how do I assign relations?
701: [07:25:17] <guzzlefry> $this->Cart = CartID; ?
702: [07:25:26] <Nightjar> guzzlefry: depends on the relation.
703: [07:25:45] <Nightjar> has one stores itself on the dataobject that defines it, using the ID.
704: [07:25:51] <Nightjar> relationnameID
705: [07:26:05] <Nightjar> $this->RelationNameID = $cart->ID
706: [07:26:28] <guzzlefry> So, if $has_one = array("Cart"); ?
707: [07:26:29] <Nightjar> has_many and many_many return lists
708: [07:26:42] <Nightjar> so you use those lists to manipulate the relation.
709: [07:26:47] <Nightjar> usually with ->add()
710: [07:26:55] <Nightjar> or ->remove() etc.
711: [07:27:07] <Nightjar> cf api docs on HasManyList and ManyManyList
712: [07:28:56] <Nightjar> guzzlefry: yes, $this->CartID = $cart->ID
713: [07:29:12] <Nightjar> and then of course ->write()
714: [07:29:16] <guzzlefry> ah, probably $this->owner>CartID in my case.
715: [07:29:16] <Nightjar> if you want to save it.
716: [07:29:20] <Nightjar> yep
717: [07:29:35] <guzzlefry> Maybe I should change my naming scheme. :P
718: [07:29:45] <guzzlefry> CartID instead of Cart. :)
719: [07:29:50] <Nightjar> wut
720: [07:30:06] <guzzlefry> dunno!
721: [07:30:06] <Nightjar> then you'd have CartIDID
722: [07:30:16] <guzzlefry> oh wait...
723: [07:30:29] <Nightjar> CartID will return an int, the related object's ID.
724: [07:30:37] <Nightjar> Cart() will return the related object
725: [07:31:02] <Nightjar> IF it's defined as a has_one (ie, you don't have a $db field named CartID and no has_one)
726: [07:31:02] <guzzlefry> okay, I think I get it. xID is created for x in $has_one
727: [07:31:07] <Nightjar> yes
728: [07:31:13] <Nightjar> look at tables in phpmyadmin or something
729: [07:31:14] <Nightjar> you'll see
730: [07:31:15] <guzzlefry> phew, thanks again
731: [07:31:31] <Nightjar> or when you define a has_one, the dev/build will show it in green
732: [07:45:16] <guzzlefry> Does SilverStripe do anything extra like creating foreign key constraints when using Postgresql?
733: [07:45:23] <Nightjar> nfi
734: [07:57:38] * mento has joined #silverstripe
735: [08:04:15] <irogue> afaik SS doesn't do any DB-level things like that
736: [08:05:06] * kinglozzer has joined #silverstripe
737: [08:06:08] <irogue> hmm, looks like maybe it does
738: [08:06:09] <irogue> https://github.com/silverstripe/silverstripe-postgresql/blob/master/code/PostgreSQLDatabase.php#L731
739: [08:08:25] <kinglozzer> Quick question, a server admin we're working is trying to run a SilverStripe site over HTTPS, but the CSS, base href etc are all still http. Presumably it's just a case of telling SilverStripe to use HTTPS?
740: [08:10:04] * chillu has joined #silverstripe
741: [08:10:42] <Nightjar> kinglozzer: it should detect that.
742: [08:10:44] * zfmf1 has joined #silverstripe
743: [08:11:08] <kinglozzer> It's not :/ might try Director::forceSSL()
744: [08:11:11] <Nightjar> kinglozzer: there used to be a Director::forceSSL()
745: [08:11:22] <Nightjar> dunno if it's still around in 3.1 but you could give it a go
746: [08:11:35] <willr> still there in 3.1
747: [08:12:00] <mento> argh - TinyMCE is such a pain in the ***
748: [08:12:00] <irogue> kinglozzer: sounds like PHP/SS can't tell that it's SSL. Is it nginx+php-fpm by chance?
749: [08:12:17] <kinglozzer> Haven't the foggiest idea what the setup is
750: [08:12:18] <willr> but pretty sure CSS will just use the current HTTP settings not foreceSSL
751: [08:12:20] <irogue> If so, you need to tell nginx to pass through the protocol header to PHP
752: [08:13:28] <kinglozzer> Thanks irogue, I'll pass that on
753: [08:13:45] <mento> has anyone ever come accross some issues related to TinyMCE when adding custom styles to editor.css - it appears as: <span style="font-family: __;">my text that should become red</span>
754: [08:14:08] <mento> instead of <span class="red">my text that should become red</span>
755: [08:14:11] <kinglozzer> The CSS /should/ work, the link is just <link rel="stylesheet" type="text/css" href="/themes/<theme>/css/style.css?m=1376924734">
756: [08:14:19] <kinglozzer> It doesn't specify http/s
757: [08:14:20] <irogue> kinglozzer: np. if you put this line above your server{} declaration
758: [08:14:22] <irogue> map $http_x_forwarded_proto $is_https { default off; https on; }
759: [08:14:45] <Nightjar> mento: never had that.
760: [08:14:52] <irogue> er, actually, ignore me kinglozzer...
761: [08:15:17] <Nightjar> mento: could be wrong encoding type for css sheet?
762: [08:15:21] <irogue> my setup is overcomplicated. you really just need to put "fastcgi_param HTTPS" within the php block in your nginx config
763: [08:15:24] <Nightjar> dunno
764: [08:15:43] <Nightjar> irogue: well... depends if it's always going to be HTTPS or not, not?
765: [08:15:57] <Nightjar> if it's either or presumably you don't want to be telling php that it's in https when it's not
766: [08:15:58] <irogue> Nightjar: generally in nginx you have a seperate declaration for the https website
767: [08:16:10] <irogue> two different vhosts
768: [08:16:11] <Nightjar> hmm, that's true. Just like Apache.
769: [08:16:47] <mento> Nightjar: nope, it's just fine as far as i can see.. strange issue though - must say it is on an old silverstripe installation stilling running on 2.3.7
770: [08:16:52] <irogue> my setup is overcomplicated and *doesn't* have two vhosts, cos keeping both of the rewrites in sync was getting old :P
771: [08:16:54] <mento> still*
772: [08:17:05] <irogue> hence why i started explaning a complicated way to do it :P
773: [08:17:21] <Nightjar> mento: ah... heh. Update!
774: [08:18:52] <guzzlefry> How would I properly do overloaded has_one properties?
775: [08:19:14] <guzzlefry> $this->Property() won't fire the method, but $this->Property does.
776: [08:19:49] <Nightjar> guzzlefry: eh?
777: [08:20:57] <Nightjar> urgh ffs
778: [08:20:59] * spronk2 has joined #silverstripe
779: [08:21:31] <mento> Nightjar: i think thats all i can do :)
780: [08:21:46] <Nightjar> mento: likely a good idea anyway
781: [08:21:50] <guzzlefry> meh, I'm probably doing something stupid again. :P
782: [08:22:38] <guzzlefry> nope
783: [08:23:18] <Nightjar> guzzlefry: still likely.
784: [08:23:25] <Nightjar> what _are_ you doing?
785: [08:23:52] <guzzlefry> I'm calling $member->Cart();
786: [08:23:53] <guzzlefry> And...
787: [08:24:29] <guzzlefry> The Member class has a DataExtension that adds a Cart object to $has_many, there's also a method in the DataExtension titled getCart();
788: [08:24:36] <guzzlefry> But getCart() isn't firing.
789: [08:24:44] <Nightjar> because it's php.
790: [08:24:45] <guzzlefry> err
791: [08:24:48] <Nightjar> not magic templates
792: [08:24:48] <guzzlefry> has_one :P
793: [08:25:25] <Nightjar> calling Cart() is going "doesn't exist" so it searches for a property, finds one, returns that.
794: [08:25:31] <Nightjar> it never looks on the extension.
795: [08:25:37] * Stomach quit (Ping timeout: 248 seconds)
796: [08:26:01] <Nightjar> if you want to call getCart, then you'll need to call getCart()
797: [08:26:22] <Nightjar> or call the method Cart() instead, maybe
798: [08:26:28] <guzzlefry> I tried that.
799: [08:26:34] * micmania1 has joined #silverstripe
800: [08:26:40] <Nightjar> depending on whether or not extensions are searched first or last
801: [08:27:09] <Nightjar> or call the method something completely different, because magics are getting in the way of what you want to happen
802: [08:27:20] <Nightjar> getMyCart()
803: [08:28:28] <guzzlefry> Well that works.
804: [08:28:57] <Nightjar> http://api.silverstripe.org/3.1/source-class-Object.html#688-752
805: [08:30:09] * ocm has joined #silverstripe
806: [08:30:10] <ocm> howdy!
807: [08:30:21] <Nightjar> hi
808: [08:45:18] <zippy__> hi
809: [08:46:27] <Nightjar> hey
810: [08:52:32] <kinglozzer> Just to confirm I'm not making this up, the fact that my https site's base href tag is 'http://....' is likely what's causing my relative CSS links to break, right?
811: [08:53:37] <EasyCo> Anybody know why I'm getting a redirect page after submitting a form?
812: [08:53:38] <kinglozzer> Links like that presumably get the protocol from that tag?
813: [08:53:47] <EasyCo> It's just a 2 second plash but it's annoying
814: [08:54:51] <willr> kinglozzer yep, though have you manually set the baseURL? normally dynamic
815: [08:54:53] <ocm> EasyCo try sending the form through ajax
816: [08:55:14] <Nightjar> EasyCo: because you're making output before the redirect
817: [08:55:20] <willr> EasyCo you'll have some whitespace after a ?> somewhere which is outputting content on the poage
818: [08:55:22] <Nightjar> or rather
819: [08:55:28] <willr> what he said :)
820: [08:55:33] <Nightjar> serving content along with the redirect header
821: [08:55:49] <EasyCo> Hmm, ok I gotta suss out where that's happening
822: [08:55:53] <kinglozzer> willr: Nope, haven't set that. I'm hopefully going to run through Director::is_https(); with them and find out where it's falling down - presumably it's failing in there somewhere
823: [08:55:59] <EasyCo> Cause it's only happening on live not dev.
824: [08:56:02] <Nightjar> either whitespace like willr says, or a var_dump, or echo, string, any of the above
825: [08:56:15] <Nightjar> or a notice error
826: [08:56:24] <EasyCo> Hmm, thanks I'll have a peak
827: [08:56:43] <Nightjar> turn up your error reporting on dev if you haven't already
828: [08:56:54] <EasyCo> Yah nothing on dev
829: [08:57:04] <EasyCo> with reporting to the tip-top
830: [08:57:16] <EasyCo> I might have an idea of where it's happening though
831: [09:03:20] * travis-ci has joined #silverstripe
832: [09:03:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1156 (3.1 - aa6ca49 : Ingo Schommer): The build passed.
833: [09:03:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/8d5209aef649...aa6ca496518a
834: [09:03:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12265555
835: [09:03:20] * travis-ci has left #silverstripe
836: [09:04:24] <EasyCo> Where is say Output started on $file...
837: [09:04:36] <EasyCo> Does that mean that's where the problem is?
838: [09:05:29] <Nightjar> huh?
839: [09:06:18] <EasyCo> When I get the redirect notice
840: [09:06:30] <zippy__> yes, likely
841: [09:06:37] <zippy__> check there for any vardump/echo/white space
842: [09:07:19] <EasyCo> I get Redirecting to /somform/finished… (output started on /home/xxx/xx/code/Base.php, line1)
843: [09:07:29] <EasyCo> So I'm assuming it's aroundthere
844: [09:07:36] <EasyCo> What a pain
845: [09:07:51] <zippy__> check that file, at the very top, is there a space before the <?php ?
846: [09:08:05] <Nightjar> or is it UTF-8?
847: [09:08:17] <Nightjar> the BOM can cause issues if present.
848: [09:09:02] <EasyCo> Yah no whitespace
849: [09:09:09] <EasyCo> Nightjar: The BOM?
850: [09:09:59] * willr quit (Quit: willr)
851: [09:10:06] <Nightjar> wiki, byte order marking
852: [09:10:19] * kerosene has joined #silverstripe
853: [09:10:24] <Nightjar> EasyCo: if you're using notepad++ then it'll tell you
854: [09:10:38] <EasyCo> Nah VIM
855: [09:10:45] <Nightjar> under encoding menu, swi...oh
856: [09:10:45] <EasyCo> Ok, I'll look into that too
857: [09:10:46] <EasyCo> Thanks
858: [09:11:01] <Nightjar> http://en.wikipedia.org/wiki/Byte_order_mark
859: [09:11:19] <Nightjar> A text editor or web browser interpreting the text as ISO-8859-1 or CP1252 will display the characters  for this.
860: [09:11:43] <Nightjar> urgh, irc client doesn't input fancy chars :<
861: [09:12:21] <Nightjar> looks like an i with an oomlet, &raquo; and the upside down ?
862: [09:12:42] <Nightjar> and causes havoc if PHP interprets it as plain text.
863: [09:12:58] <EasyCo> Right, the search continues
864: [09:15:03] <Nightjar> EasyCo: it gives a similar message when you've already messed up the redirs
865: [09:15:04] <Nightjar> http://api.silverstripe.org/3.1/source-class-Controller.html#459-479
866: [09:15:18] <Nightjar> but that's not exactly what you're getting
867: [09:16:37] <Nightjar> EasyCo: easiest thing to do is grep "?>" mysite
868: [09:16:42] <Nightjar> err, grep -r
869: [09:17:03] <Nightjar> if anything turns up, you're in trouble.
870: [09:19:10] <EasyCo> lol, ok lets see
871: [09:19:18] <kinglozzer> I'm guessing using Requirements::combine_files() with ''//ajax.googleapis.com/ajax/libs/...' is a bad idea? :P
872: [09:19:31] <kinglozzer> Fail
873: [09:19:37] <Nightjar> kinglozzer: hmm... probably yes.
874: [09:19:47] <Nightjar> you'll at least need http:
875: [09:20:10] <Nightjar> but it'll only work if it leverages file_get_contents and you have curl installed and enabled.
876: [09:20:30] <kinglozzer> Well, it was https://
877: [09:21:02] <kinglozzer> But when running the site on http, it refused to fetch them
878: [09:21:09] <kinglozzer> I'm thinking it's a pretty stupid idea anyway
879: [09:21:34] <kinglozzer> Why bother with a CDN to just combine them? >.<
880: [09:21:36] * kerosene quit (Quit: carry on!)
881: [09:21:58] <Nightjar> kinglozzer: yeh, it's a pretty silly idea.
882: [09:22:18] * zippy__ quit (Ping timeout: 264 seconds)
883: [09:24:42] <kinglozzer> Turns out that combine_files() disagrees with them when using https anyway
884: [09:24:52] <kinglozzer> I just hadn't seen it as the site was in dev mode
885: [09:25:15] <kinglozzer> No idea what I was thinking when I did that..
886: [09:27:43] <EasyCo> Nightjar: Got it!
887: [09:28:00] <EasyCo> Nightjar: Thanks for your help, there was some weird white space going on
888: [09:28:12] * travis-ci has joined #silverstripe
889: [09:28:13] <travis-ci> [travis-ci] chillu/silverstripe-framework#83 (pulls/form-validation-exempt - b8d54a4 : Ingo Schommer): The build has errored.
890: [09:28:13] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/0e7231ff60ef^...b8d54a43eab8
891: [09:28:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/12266551
892: [09:28:13] * travis-ci has left #silverstripe
893: [09:28:18] <Nightjar> you're welcome EasyCo
894: [09:28:42] * travis-ci has joined #silverstripe
895: [09:28:43] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#593 (3.1 - d532d05 : Ingo Schommer): The build passed.
896: [09:28:43] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/c0cc51763510...d532d05fc224
897: [09:28:43] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/12266471
898: [09:28:43] * travis-ci has left #silverstripe
899: [09:28:58] * EasyCo quit (Quit: EasyCo)
900: [09:30:22] <Nightjar> kinglozzer: interesting, I"d ahve thought it'd work. It does use filegetcontents
901: [09:31:19] <Zauberfisch> its a stupid idea anyway, because it defeats the purpose of a CDN
902: [09:31:36] <Nightjar> yeah I know, but I mean I'd have thought it'd still work.
903: [09:32:04] <kinglozzer> Yeah - perhaps it's an issue with http vs https?
904: [09:32:11] <Nightjar> dunno
905: [09:32:33] <Nightjar> maybe it was timeout
906: [09:32:58] <kinglozzer> Must be, I just switched them all to http and it still doesn't like it
907: [09:33:52] <Nightjar> could be some kind of server side block. I dunno.
908: [09:33:58] <kinglozzer> Requirements::javascript('//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js');
909: [09:34:02] <kinglozzer> Seems to be the safest method
910: [09:34:13] <Nightjar> mm
911: [09:34:30] <Nightjar> I prefer to give an identifier with my includes, to make it easier to block.
912: [09:35:02] <Nightjar> oh ignore me, i'm talking about customScript
913: [09:36:27] * travis-ci has joined #silverstripe
914: [09:36:28] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1157 (3.1 - e489384 : Ingo Schommer): The build passed.
915: [09:36:28] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/aa6ca496518a...e489384eea39
916: [09:36:28] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12266483
917: [09:36:28] * travis-ci has left #silverstripe
918: [09:41:30] * g4b0 has joined #silverstripe
919: [09:41:37] <g4b0> HI ALL
920: [09:41:54] <g4b0> sorry for uppercase :)
921: [09:42:01] <Nightjar> hi
922: [09:43:16] <g4b0> I have a DO[1] with a GridField of related DO[2]
923: [09:43:38] <g4b0> when editing DO[2] passing through the GridFIeld
924: [09:43:49] <g4b0> how can I access to DO[1] ID ?
925: [09:44:08] <Nightjar> you must set the reverse relation.
926: [09:44:33] <Nightjar> a has_many on [1] needs to has_one on [2]
927: [09:44:38] * travis-ci has joined #silverstripe
928: [09:44:39] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1158 (master - 62fa273 : Ingo Schommer): The build passed.
929: [09:44:39] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/6e8ec778c3c5...62fa2739e610
930: [09:44:39] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12266511
931: [09:44:39] * travis-ci has left #silverstripe
932: [09:44:41] <g4b0> mmm
933: [09:44:53] <Nightjar> many_many should have a belongs_many_many set on the opposing side.
934: [09:44:56] <g4b0> there is no has_many and has_one relationship
935: [09:45:08] <g4b0> it's a little bit more complex :)
936: [09:45:14] <Nightjar> how is [1] related to [2]?
937: [09:47:27] <g4b0> http://pastebin.com/XS6fdZJT
938: [09:48:03] <g4b0> The GF is created by hand
939: [09:48:29] <kinglozzer> g4b0: Why are you not using a relation?
940: [09:48:52] <kinglozzer> DoCd has_many DoCdSoftware, DoCdSoftware has_one DoCd?
941: [09:48:56] <g4b0> kinglozzer: because of the table prefix problem :)
942: [09:49:09] <kinglozzer> I see
943: [09:49:14] <g4b0> https://groups.google.com/d/msg/silverstripe-dev/3mFGWVy30AQ/M9anuV5OW_MJ
944: [09:49:34] <kinglozzer> The short answer is that there's no consistent way of accessing that ID
945: [09:49:41] <g4b0> underlying db tables are views form another DB
946: [09:49:49] <Nightjar> g4b0: external DB I take it.
947: [09:50:15] <Nightjar> In which case you'll need to make a more complex query using SQLQuery or the like and building a list from the result
948: [09:50:23] <Nightjar> it is the only way here.
949: [09:51:02] <g4b0> Nightjar: I think there is an easyer way to do it
950: [09:51:07] * travis-ci has joined #silverstripe
951: [09:51:07] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#594 (master - 16d8505 : Ingo Schommer): The build passed.
952: [09:51:07] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/0eb56f965019...16d8505bbb22
953: [09:51:07] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/12266525
954: [09:51:07] * travis-ci has left #silverstripe
955: [09:51:07] <g4b0> since the ID of DO[1] is into the URL
956: [09:51:13] <Nightjar> then yeh
957: [09:51:37] <Nightjar> $this->request->param/getVar('DO[1]id')
958: [09:51:49] <g4b0> But I was wandering if there is an elegant way to have it without parsing the url
959: [09:52:11] <g4b0> maybe passing it through the GF
960: [09:52:55] <g4b0> URL is the following:
961: [09:53:15] <g4b0> /admin/do-admin/DoCd/EditForm/field/DoCd/item/63/ItemEditForm/field/Software/item/new
962: [09:53:29] <g4b0> I would like to access DoCd #63
963: [09:54:03] <Nightjar> g4b0: it'll be a param on the request object.
964: [09:54:12] <Nightjar> you just need to figure out how to access it.
965: [09:54:18] <g4b0> yep
966: [09:54:28] <g4b0> let'go dumping :)
967: [09:59:48] <g4b0> mmm, what can I dump from inside getCMSFields ?
968: [10:00:20] <Nightjar> Controller::curr()->request
969: [10:00:23] <Nightjar> err
970: [10:00:29] <Nightjar> Controller::curr()->getRequest()
971: [10:01:30] <g4b0> tnx
972: [10:08:47] <Nightjar> g4b0: your'e either looking for Controller::curr()->getRequest()->getParam('ID') or Controller::curr()->getRequest()->latestParam('ID')
973: [10:08:56] <Nightjar> something to that effect.
974: [10:09:53] * Nightjar has left #silverstripe
975: [10:10:38] <Marvanni> Hi, I have a 2.x subsite installation, and now I need to move one subsite to a standalone.
976: [10:11:10] <Marvanni> Any ideas how to to that, while maintaining sitestructure and image relations?
977: [10:24:52] * travis-ci has joined #silverstripe
978: [10:24:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1160 (3.1 - 93558a6 : Ingo Schommer): The build passed.
979: [10:24:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/e489384eea39...93558a6d6238
980: [10:24:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12267908
981: [10:24:52] * travis-ci has left #silverstripe
982: [10:31:54] * travis-ci has joined #silverstripe
983: [10:31:54] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1161 (3.1 - 36d8a9f : Ingo Schommer): The build passed.
984: [10:31:54] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/93558a6d6238...36d8a9f62d33
985: [10:31:54] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12268113
986: [10:31:54] * travis-ci has left #silverstripe
987: [10:35:39] * travis-ci has joined #silverstripe
988: [10:35:39] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#595 (3.1 - 34a0fe3 : Ingo Schommer): The build passed.
989: [10:35:39] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/d532d05fc224...34a0fe3bf122
990: [10:35:39] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/12268120
991: [10:35:39] * travis-ci has left #silverstripe
992: [10:43:47] <kinglozzer> Is $_SERVER['SSL'] a standard PHP key? Or is it something SilverStripe-specific for fooling the server? I can't find an PHP docs mentioning it
993: [10:44:14] <kinglozzer> We need to set it manually, there won't be any issues with setting $_SERVER['SSL'] = true; in _config.php will there?
994: [11:01:14] <Colin[pi]> kinglozzer: ss seems to check it in it's core files to verify if the server is running via https, but I can't see where it gets set
995: [11:01:35] <kinglozzer> Director::is_https()
996: [11:10:22] * chillu quit (Quit: chillu)
997: [11:20:33] * kerosene has joined #silverstripe
998: [11:20:57] <ec8or_> with the new allowed_actions functionliaty in 3.1 i can't seem to use $LoginForm anywhere
999: [11:21:26] <Zauberfisch> ec8or_: have you flushed?
1000: [11:21:37] <Zauberfisch> as of 3.1 private statics are checked
1001: [11:21:40] <Zauberfisch> *cached
1002: [11:21:41] <Zauberfisch> fail
1003: [11:22:46] <kinglozzer> ec8or_, Zauberfisch: Is it because $LoginForm would usually use the Security controller and now it's using your Page_Controller?
1004: [11:23:06] <kinglozzer> You might need to add the allowed_actions that are in Security.php
1005: [11:23:08] <ec8or_> yeah, or it is using another controller that is subclassing Page_Controller even
1006: [11:23:18] <ec8or_> ah got it
1007: [11:26:32] <ec8or_> kinglozzer: that made the form go through but think it stops at /login
1008: [11:26:42] <ec8or_> like i would have to define that method in order for anything to happen
1009: [11:27:52] <ec8or_> ah no, something else is going on
1010: [11:28:06] <ec8or_> need to have another look, getting a bit confused :)
1011: [11:31:31] * chillu has joined #silverstripe
1012: [11:39:00] <ec8or_> maybe i just need to upgrade
1013: [11:39:01] <ec8or_> https://github.com/silverstripe/silverstripe-framework/commit/4a0f9d5
1014: [11:42:14] <ss23> ec8or_: That bug is kind of unrelated
1015: [11:42:34] <ss23> The bug report that talks about waht it fixes says more thouhg, but I'm off to bed!
1016: [11:42:38] <ss23> nn
1017: [11:43:48] <DesignerX> join #lesscss
1018: [11:49:43] <ec8or_> yeah, now i get Action 'httpSubmission' isn't available on class MemberLoginForm.
1019: [11:50:59] <ec8or_> chillu: have you got any tips? basically i'm trying to use $LoginForm from Page_Controller
1020: [12:03:45] * Colin[pi] quit (Ping timeout: 245 seconds)
1021: [12:08:25] * Shrike_Finland has joined #silverstripe
1022: [12:08:32] * cloph_away is now known as cloph
1023: [12:10:30] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1024: [12:32:33] * chillu quit (Quit: chillu)
1025: [12:48:28] * chillu has joined #silverstripe
1026: [13:02:09] * UndefinedOffset has joined #silverstripe
1027: [13:14:24] * osterlaus has joined #silverstripe
1028: [13:17:25] * osterlaus has left #silverstripe
1029: [13:38:33] * Shrike_Finland quit (Quit: Leaving.)
1030: [13:38:34] * spronk2 quit (Quit: spronk2)
1031: [13:38:37] * kerosene quit (Quit: whamp)
1032: [13:43:49] * Alexw has joined #silverstripe
1033: [13:46:23] * catcher has joined #silverstripe
1034: [13:46:56] <Alexw> Hi, does anyone know how to disable a module without removing it's directory...So just use a specific code to disable it...
1035: [13:50:44] <UndefinedOffset> Alexw: add a file in the root of the module called _manifest_exclude then run dev/build that will "hide" the module from silverstripe
1036: [13:52:36] <Alexw> No, I really need to use it through code...Because I want a lot of people using the same installation but not all users may use all modules
1037: [13:54:20] <Zauberfisch> Alexw: I _strongly_ recommend you carefully think that over
1038: [13:54:42] <Alexw> How would you do it then?
1039: [13:54:52] <Zauberfisch> multiple websites running on the same code is only rare cases a good idea
1040: [13:54:58] <Zauberfisch> what is your usecase?
1041: [13:55:15] <Alexw> I'm trying to start a hosting website where people can a CMS
1042: [13:55:18] <Alexw> get*
1043: [13:55:27] <Alexw> But you have to pay for the extra modules
1044: [13:55:46] <Alexw> So you have a basic website at start and can extend it
1045: [13:56:05] <Zauberfisch> what are the modules that you wish to offer?
1046: [13:56:21] <Zauberfisch> excluding them from manifest on a per request base is not going to work well
1047: [13:56:32] <Alexw> All kinds
1048: [13:56:33] <Zauberfisch> even if you get it working, its going to be a pain in the arse I think
1049: [13:57:00] <Alexw> Well if I use multiple installations then it's going to get harder to keep everything up-to-date
1050: [13:57:15] <Alexw> Uhm, I accedently activated bold :)
1051: [13:57:18] <Zauberfisch> well, if I was you I would explore 2 options:
1052: [13:57:20] <Alexw> Nvm, fixed it
1053: [13:57:56] <Alexw> I mean the bold part, I fixed that...not my issue, yet
1054: [13:57:57] <Zauberfisch> 1) see if modules can be made conditional via php (like say Object::remove_extension() if the user does not have access to this extension)
1055: [13:58:34] <Zauberfisch> 2) separated installs, and build a install script that takes care of installs and updates
1056: [13:58:48] <Zauberfisch> considering that we now have composer, that shouldn't be to hard
1057: [13:59:07] <Alexw> Hm..
1058: [14:00:12] <Alexw> For example: http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site. How can I make a page type conditional...Since they are files that always be included
1059: [14:01:25] <Alexw> And I don't want to bloating the user database will all modules that the user don't even need
1060: [14:05:47] <Alexw> Is it not possible to redirect the framework to look elsewhere for the modules?
1061: [14:15:02] <Alexw> Ok, I go for option 2
1062: [14:15:26] <Alexw> But one last question...How can I silently install the database without using /dev/build?
1063: [14:19:48] <Zauberfisch> sake /dev/build
1064: [14:19:54] <Zauberfisch> in your shell
1065: [14:20:08] <Zauberfisch> Alexw: whats your github account?
1066: [14:20:16] <Zauberfisch> I can give you access to my silverstripe vagrant repo
1067: [14:20:44] <Alexw> alexw@asclub.eu
1068: [14:20:46] <Zauberfisch> there I have a shell script that sets up a new virtual server, installs php, mysql, apache, ... and then installs silverstripe
1069: [14:20:48] <Alexw> Alexwijn
1070: [14:20:55] <Zauberfisch> all automaticly, no user interaction
1071: [14:21:02] <Alexw> ok good, thanks
1072: [14:21:29] <Zauberfisch> (its a developement only, alpha version, do not use it in production! but it should give you an idea of what you can do)
1073: [14:21:44] <Alexw> ok
1074: [14:23:30] * vogels has joined #silverstripe
1075: [14:23:44] <Zauberfisch> the relevant lines for you are:
1076: [14:23:58] <Alexw> I can even push to it...
1077: [14:24:08] <Zauberfisch> Alexw: yeah, but don't
1078: [14:24:14] <Alexw> :)
1079: [14:24:31] <Zauberfisch> install/bootstrap.php Line 30 and down (this is basicly a git clone of the project code)
1080: [14:25:06] <Zauberfisch> /install/bootstrap.php Line 8 to Line 19 creates the database config file
1081: [14:26:16] <Zauberfisch> /install/bootstrap.sh Line 25 runs after bootstrap.php. this composer update will install silverstripe itself and all modules
1082: [14:26:39] <Zauberfisch> /install/bootstrap.sh Line 40 installs sake
1083: [14:26:48] <vogels> he ppl
1084: [14:26:49] <Zauberfisch> Line 41 runs sake to build the database
1085: [14:26:56] <Zauberfisch> blubb vogels
1086: [14:26:56] <vogels> have a question related to spam
1087: [14:27:16] <vogels> i use the comment filed from silverstripe
1088: [14:27:22] <vogels> comment field
1089: [14:27:27] <vogels> as a guestbook
1090: [14:27:39] <vogels> but now it's getting overloaded with spam
1091: [14:27:50] <vogels> is there a simple way to deal with this
1092: [14:28:08] <Alexw> Zauberfisch, what's Sake?
1093: [14:28:54] <Alexw> Ah, that is the command line version of Silverstripe
1094: [14:29:17] <Zauberfisch> http://doc.silverstripe.org/framework/en/topics/commandline
1095: [14:30:01] <Alexw> Vogels, add a recaptcha system (http://www.google.com/recaptcha)
1096: [14:30:11] <Alexw> Ok got it, thanks
1097: [14:31:53] <vogels> thats an option alexw
1098: [14:32:01] <vogels> but not a nice one
1099: [14:32:04] <Alexw> Why?
1100: [14:32:17] <vogels> i hate to type a string of text before i can post
1101: [14:32:28] <Alexw> Then show it for guests only
1102: [14:32:32] <Alexw> And when you register show it then too
1103: [14:32:47] <vogels> it's an open website
1104: [14:33:11] <vogels> ppl can comment here, so it should be opten for everyone
1105: [14:33:42] <Alexw> You can try to search for keywords, or restrict people to post whitin 5min or something on a certain ip
1106: [14:33:51] <Alexw> Anything else I dont know
1107: [14:34:55] <Sjohn> Is it just me or is : http://addons.silverstripe.org/ not working?
1108: [14:35:09] <Alexw> Not working here, too
1109: [14:35:33] <kinglozzer> chillu: http://addons.silverstripe.org/ :(
1110: [14:35:55] <Sjohn> Vogels: there are different spam protections for silverstripe i think not only the extremely hard google one
1111: [14:36:55] <vogels> i know sjohn, but they all do someting with recappa or another form of this
1112: [14:37:17] <vogels> i would like a solution where the user is not effected
1113: [14:37:45] <catcher> vogels, Mollom does a decent job of figuring out when it's a real user, and letting them through without the captcha.
1114: [14:37:47] <chillu> kinglozzer: I'll have a look
1115: [14:37:54] <vogels> can you simply deny comments with url's in
1116: [14:38:14] <vogels> most spam is with url's
1117: [14:38:39] <catcher> vogels, then you'll auto-deny any real comments with useful urls
1118: [14:38:51] <vogels> yeah i also took a look at mollom, but i read allot of stuff that it still lets lots of spam trough
1119: [14:39:09] <vogels> thats the downside indeed
1120: [14:39:11] <catcher> vogels, I get almost no spam on a couple relatively high-profile sites
1121: [14:39:16] <catcher> (using mollom)
1122: [14:39:19] <chillu> kinglozzer: Alright, back - MySQL crapped out, hrm hrm
1123: [14:40:25] <chillu> I'm getting outage alerts, so normally aware of this stuff - but addons has had <5min outages every now and then in the last days, which I haven't had time to investigate, so missed that this one was actually a bigger outage
1124: [14:42:40] <vogels> catcher, is it easy to install
1125: [14:42:43] <vogels> mollom
1126: [14:43:05] <catcher> vogels, yep, pretty straightforward
1127: [14:43:05] <kinglozzer> chillu: No worries, I can just use packagist anyway - was just making sure you were aware :)
1128: [14:43:30] <vogels> maybe i'll will give it a try
1129: [14:47:05] <Alexw> Zauberfisch, would symlink be a problem? So I place the modules up-to-date inside a folder and install symlinks to the user installation dir.
1130: [14:47:55] <Alexw> Or should the user manually update it?
1131: [14:48:02] <Alexw> With a button or some sort
1132: [14:49:35] <vogels> Catcher, mollom is a free option?
1133: [14:50:09] <catcher> vogels, free within certain usage limits, which are pretty high
1134: [14:50:36] <catcher> vogels, http://mollom.com/pricing
1135: [14:50:46] <Alexw> Yeah, I saw the free is 50 posts...Does that mean that people can only post 50 items?
1136: [14:50:58] <Alexw> Or does that mean I can submit 50 posts to Mollom to inspect
1137: [14:51:40] <catcher> Alexw, 50 legit, filters are unlimited for free.
1138: [14:52:09] <Alexw> What does that mean?
1139: [14:53:10] <Alexw> Personal inspections?
1140: [14:53:49] <catcher> It means it'll filter out unlimited spam for free, and allow 50 legit through.
1141: [14:54:14] <Alexw> So then the maximum is 50 posts
1142: [14:54:21] <Alexw> Excluding the spam
1143: [14:54:32] <catcher> per day, yes
1144: [14:56:38] <vogels> so if you have 51 posts per day mollom will not let the 51 pass
1145: [14:56:49] <vogels> if non are spam
1146: [14:57:11] <Alexw> So what should you when there are 51 posts?
1147: [14:57:23] <vogels> pay
1148: [14:57:25] <vogels> :(
1149: [14:57:33] <Alexw> Block it and return a message to the user: "Sorry, but I can't verify if you are a bot or not"
1150: [14:57:52] <vogels> i don't have that problem with my site, more like 50 posts a year
1151: [14:58:26] <vogels> can't you block bot's in another way?
1152: [14:58:33] <Alexw> I guess Mollon is good for sites that really need to avoid recaptcha's
1153: [14:58:53] * ARNHOE quit (Remote host closed the connection)
1154: [14:59:01] <vogels> i always hate it when i fill in a site and i need to retype a recapta
1155: [15:11:51] * Sjohn quit (Ping timeout: 250 seconds)
1156: [15:17:17] <Alexw> Zauberfisch: Are you there?
1157: [15:18:22] * zfmf1 has left #silverstripe
1158: [15:19:48] * Shrike_Finland has joined #silverstripe
1159: [15:24:48] <kinglozzer> vogels How about a 'honeypot'?
1160: [15:25:05] <kinglozzer> Instead of a captcha
1161: [15:28:54] <Zauberfisch> Alexw: yes
1162: [15:29:18] <Alexw> Zauberfisch: Would symlink be a problem? So I place the modules up-to-date inside a folder and install symlinks to the user installation dir.
1163: [15:29:52] <Alexw> Or should I let the user update the module by pressing a button
1164: [15:29:54] <Alexw> n the CMS
1165: [15:30:12] <Zauberfisch> Alexw: some poeple tryed it, I know they ran into some trobles
1166: [15:30:16] <Zauberfisch> *troubles
1167: [15:30:20] <Zauberfisch> but they got it working in the end
1168: [15:30:35] <Alexw> The symlinks you mean?
1169: [15:30:42] <catcher> micmania1, if you're around, I'm digging your blogger module. Question on it - after I save edits to blog posts, I notice they appear in the sitetree until I refresh. Is that an issue specific to 3.1?
1170: [15:31:32] <micmania1> nah, it's always happened. Its just a ss thing, but i've always found it quite useful so never really treat it as a bug
1171: [15:32:47] <catcher> gotcha, in the unintended feature column.
1172: [15:34:07] <Zauberfisch> Alexw: yes, symlinks
1173: [15:34:23] * violetina has joined #silverstripe
1174: [15:34:25] <catcher> micmania1, any known issues with it?
1175: [15:34:47] <Alexw> Zauberfisch, so better to use a updating page for the user?
1176: [15:34:56] <Zauberfisch> Alexw: update page?
1177: [15:35:06] <Alexw> Where users go to and update their module
1178: [15:35:10] <Zauberfisch> hmmm
1179: [15:35:16] <Zauberfisch> yeah, I guess that would work
1180: [15:35:26] <Zauberfisch> or you build yourself a script that does it
1181: [15:35:34] <Zauberfisch> basicly all you need to do us:
1182: [15:35:39] <Alexw> Or is that too difficult for the user, keep their site up-to-date
1183: [15:35:49] <Zauberfisch> composer update && sake /dev/build flush=1
1184: [15:36:04] <Zauberfisch> you could run that in a cron job
1185: [15:36:13] <Zauberfisch> but you should build some error handling around it
1186: [15:36:22] <Zauberfisch> and some tests that check if the updating went OK
1187: [15:36:45] <Alexw> Ok, what would you think...do it automaticly or let the users update them
1188: [15:37:00] <Alexw> Or have a strict up-to-date policy
1189: [15:38:14] <Zauberfisch> If I would do this thing, I would probably make a script, and run that script manualy myself
1190: [15:38:31] <Alexw> Ok
1191: [15:38:40] <Alexw> So the user would not notice if there has been update
1192: [15:38:54] <Alexw> Maybe only include a version name on the page
1193: [15:38:56] <Zauberfisch> (the danger with a cron job is that it breaks all websites and you are a sleep or on hollidy)
1194: [15:39:46] <Alexw> I guess I have to some tutorials how to setup a composer server
1195: [15:39:52] <Alexw> For my own modules
1196: [15:39:57] <Alexw> read*
1197: [15:40:28] <Alexw> Ok, thanks for your help
1198: [15:40:40] <Zauberfisch> Alexw: composer is a tool
1199: [15:40:44] <Zauberfisch> a php comandline programm
1200: [15:40:55] <Zauberfisch> that you can use to fetch dependiencies
1201: [15:41:11] <Zauberfisch> so how it works is that you write a config file called composer.json
1202: [15:41:25] <Zauberfisch> and in that file it says "i need silverstripe, blog module, contact module"
1203: [15:41:44] <Zauberfisch> and then you run "composer update" and it downloads all the things from the composer.json
1204: [15:41:56] <Zauberfisch> and then you run sake /dev/build flush=1
1205: [15:41:59] <Zauberfisch> and thats it
1206: [15:42:14] * mento quit (Quit: Page closed)
1207: [15:42:47] <Zauberfisch> here is an example composer.json file:
1208: [15:42:47] <Zauberfisch> https://github.com/silverstripe/silverstripe-installer/blob/3.1/composer.json
1209: [15:43:04] <Zauberfisch> self.version in this case is 3.1
1210: [15:43:22] <Zauberfisch> so it basicly says I need the cms and the framework in version 3.1
1211: [15:43:30] <Zauberfisch> and the theme namend simple in any version
1212: [15:43:59] <Zauberfisch> or here, this one has some more modules: https://github.com/Zauberfisch/silverstripe-boilerplate/blob/master/composer.json
1213: [15:49:17] <kinglozzer> Stupid kindle
1214: [15:49:35] <kinglozzer> Can't load a webfont, so rather than fall back to the other fonts in the CSS rule, it just loads a serif font
1215: [15:49:50] <kinglozzer> It can't load any fonts served from google webfonts..
1216: [15:49:53] * DesignerX quit (Ping timeout: 248 seconds)
1217: [16:00:01] * kinglozzer quit (Remote host closed the connection)
1218: [16:00:06] * Colin[pi] has joined #silverstripe
1219: [16:01:11] * vogels quit (Quit: Page closed)
1220: [16:05:52] * g4b0 quit (Quit: Sto andando via)
1221: [16:07:33] <micmania1> catcher, no issues.
1222: [16:12:37] <catcher> micmania1, cool. Thanks for your work on it, I think non-sitetree admin should be possible for the core module.
1223: [16:13:25] * micmania1 quit (Ping timeout: 248 seconds)
1224: [16:37:02] <Alexw> Zauberfisch: Ok, thanks. Sorry, I was eating dinner
1225: [16:38:17] <Alexw> Zauberfisch: But how to write your own package
1226: [16:39:09] <Alexw> Hm
1227: [16:39:55] <Alexw> But how does composer know silverstripe/cms?
1228: [16:53:28] * Shrike_Finland quit (Quit: Leaving.)
1229: [16:57:53] <Alexw> I still don't get it, I can't find anything about a url that locates the silverstripe files
1230: [16:57:58] <Alexw> From where he needs to download it
1231: [17:10:33] <Alexw> Ah I get it, silverstripe/cms is a global package that has been registered on packagist.org
1232: [17:10:59] <Alexw> And I need to use the "source" in composer.json to let it look it up
1233: [17:11:10] <Alexw> For my custom modules that does not need to public
1234: [17:18:20] * Shrike_Finland has joined #silverstripe
1235: [17:25:38] <catcher> What's the best way to enforce almost site-wide filtering of a couple DO getters? I don't want to override get(), but I also don't want to repeat the same ->filter() in a bunch of places.
1236: [17:27:49] <AlphaCactus> catcher: you could check out the subsites module for an example. SiteTreeSubsites DataExtends SiteTree and then uses augmentSQL to modify the query.
1237: [17:28:37] <AlphaCactus> or you could use the simpler solution and provide a static method on your class that you call instead of get, but this would not "enforce" the filter, just make it easier to use.
1238: [17:28:38] * zfmf1 has joined #silverstripe
1239: [17:28:58] <catcher> AlphaCactus, the problem with the second route is that it won't work for relationship getters
1240: [17:29:24] <AlphaCactus> indeed
1241: [17:29:29] <catcher> AlphaCactus, and with the first, which query is overridden? get()?
1242: [17:29:58] <Zauberfisch> Alexw: i am on the move now
1243: [17:30:09] <Zauberfisch> poke me later or tomorrow
1244: [17:30:11] <Alexw> Alright, take care
1245: [17:30:47] <AlphaCactus> catcher: I think it works at a lower level than that. it can affect all queries to that object including delete, etc.
1246: [17:31:27] <catcher> AlphaCactus, sounds like it would chage the lists generated in the CMS, which I need to be unfiltered.
1247: [17:32:51] <AlphaCactus> perhaps you could detect if you were in the CMS or not. For exable, subsite uses Subsite::$disable_subsite_filter which can be set or not depending on the situation.
1248: [18:18:45] * Colin[pi] quit (Ping timeout: 248 seconds)
1249: [18:59:11] * Stomach has joined #silverstripe
1250: [19:22:41] * UndefinedOffset quit (Quit: Leaving.)
1251: [19:24:20] * UndefinedOffset1 has joined #silverstripe
1252: [19:25:01] * UndefinedOffset1 is now known as UndefinedOffset
1253: [19:29:17] <Alexw> I get a error from composer saying that the silverstripe-themes/simple does not exist
1254: [19:29:40] <Alexw> I'm not on "minimum-stability": "dev"
1255: [19:29:51] <Alexw> Using the default (Stable)
1256: [19:33:58] <unsignedint> you can leave "minimum-stability" on dev, and set "prefer-stable" : true
1257: [19:34:31] <unsignedint> in my experience that makes it work much better as it will pull in packages that dont have stable versions tagged without whining, but if there is a stable version tagged it will use it
1258: [19:37:27] * DesignerX has joined #silverstripe
1259: [19:42:04] * travis-ci has joined #silverstripe
1260: [19:42:05] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1162 (3.1 - f0ccdeb : Ingo Schommer): The build passed.
1261: [19:42:05] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/36d8a9f62d33...f0ccdeb9fcb1
1262: [19:42:05] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12288847
1263: [19:42:05] * travis-ci has left #silverstripe
1264: [19:45:57] * SightUnseen has joined #silverstripe
1265: [19:45:58] * SightUnseen has left #silverstripe
1266: [19:56:01] * DigNZ has joined #silverstripe
1267: [19:56:02] * DigNZ quit (Remote host closed the connection)
1268: [19:56:16] * DigNZ has joined #silverstripe
1269: [19:57:12] * UndefinedOffset quit (Quit: Leaving.)
1270: [19:59:56] * zippy__ has joined #silverstripe
1271: [20:00:47] <zippy__> The notification of when I join says 3.1.0 has been released, but the topic is 3.1.1 ..
1272: [20:01:15] <zippy__> just fyi :)
1273: [20:07:28] <simon_w> And they're both true!
1274: [20:07:54] * Pyromanik has joined #silverstripe
1275: [20:09:55] * UncleCheese has joined #silverstripe
1276: [20:10:16] * stecman has joined #silverstripe
1277: [20:17:50] <Pyromanik> PHP Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir is not writable'
1278: [20:18:02] <Pyromanik> f-u openbasedir
1279: [20:18:31] <Alexw> Hello to you too
1280: [20:18:43] <Alexw> The error message itself already gives the right answer
1281: [20:18:50] <Alexw> 'cache_dir is not writable
1282: [20:19:37] <Alexw> On linux it is /tmp
1283: [20:20:25] <Avroceptyr> I reckon
1284: [20:20:36] <Avroceptyr> we should re-write Silverstripe in Zend
1285: [20:20:47] <Pyromanik> Alexw: no, that's not quite right.
1286: [20:20:48] <Avroceptyr> haha, Silverstripe in whitespace
1287: [20:20:58] <Avroceptyr> Alexw: Zend Cache has a specified cache folder
1288: [20:21:14] <Alexw> \framework\cache ?
1289: [20:21:17] <Pyromanik> the issue arose when I changed a folder.
1290: [20:21:19] <Pyromanik> name
1291: [20:21:25] <Alexw> oh wait, thats not it :)
1292: [20:21:43] <Pyromanik> /var/www/vhosts/olddomainname/httpdocs -> /var/www/vhosts/newdomianname/httpdocs
1293: [20:21:53] * nickmolhoek has joined #silverstripe
1294: [20:21:54] * nickmolhoek quit (Remote host closed the connection)
1295: [20:21:59] <Pyromanik> thus httpdocs/silverstripe-cache
1296: [20:22:08] * nickmolhoek has joined #silverstripe
1297: [20:22:11] <Pyromanik> was no longer in the openbasedir allowed paths
1298: [20:22:26] <Pyromanik> so I cleaned out the cache manually and tried to get it to rebuild
1299: [20:22:31] <Pyromanik> which normally works fine.
1300: [20:22:33] <Alexw> On my installation it is on: "/tmp/silverstripe-cache-home-SilverStripe"
1301: [20:22:48] <Pyromanik> except it wasn't for some reason. So I just rm -r'd the whole thing.
1302: [20:23:06] <Avroceptyr> Pyromanik: a fine choice, good sir
1303: [20:23:08] <Pyromanik> Alexw: nope, it's different for every install.
1304: [20:23:18] <Pyromanik> Avroceptyr: it now uses /tmp
1305: [20:23:20] <Avroceptyr> rm -rf the whole thing
1306: [20:23:25] <Avroceptyr> including /
1307: [20:23:32] <Alexw> Why every install?
1308: [20:23:34] <Avroceptyr> no one needs /usr anyway
1309: [20:23:38] <Avroceptyr> or /bin
1310: [20:23:39] <Pyromanik> Alexw: every install has it's own cache.
1311: [20:23:42] <Avroceptyr> waste of hard drive spaces
1312: [20:23:58] <Alexw> yeah the folder now
1313: [20:24:03] <Alexw> but it is on /tmp
1314: [20:24:05] <Pyromanik> /tmp/silverstripe-cache-sitepath
1315: [20:24:08] <Alexw> yes
1316: [20:24:15] <catcher> I need to override a method in a module with a decorator. Reasonable to add $this->extend() to the module method & pull request?
1317: [20:24:18] <Pyromanik> Alexw: no
1318: [20:24:25] <Avroceptyr> you could also compress all the files in httpdocs/ by running them through the MD5 compression algorithm
1319: [20:24:30] <Avroceptyr> Makes your site faster
1320: [20:24:39] <Pyromanik> silverstripe checks for the existance of a folder "silverstripe-cache" in it's installation root.
1321: [20:24:43] <Alexw> Why would compressing make it faster?
1322: [20:24:56] <Pyromanik> Alexw: he's trolling.
1323: [20:25:03] <Avroceptyr> Alexw: compressing with MD5 makes Silverstripe faster - didn't you know that?
1324: [20:25:18] <Pyromanik> Avroceptyr: md5 makes your mum faster.
1325: [20:25:33] <Alexw> Intresting to use a non-reversal encryption for compressing
1326: [20:25:52] <Avroceptyr> Alexw doesn't have his humour module enabled this morning
1327: [20:26:13] <Avroceptyr> lol Pyromanik - my mum's at least a sha1
1328: [20:26:18] <Alexw> Alright, just trying to help here
1329: [20:26:45] <catcher> there's a blowfish joke here somewhere.
1330: [20:26:56] <Avroceptyr> haha
1331: [20:27:27] <Alexw> good one
1332: [20:27:36] <simon_w> Can someone else write these installation docs for me?
1333: [20:27:56] <Alexw> Can you be more specific?
1334: [20:27:59] <Avroceptyr> simon_w: Run the installation docs through MD5 to get nice formatting
1335: [20:28:05] <Avroceptyr> haha, I crack myself up
1336: [20:28:23] <simon_w> https://svn.pocketrent.com/beatbox/trunk/
1337: [20:28:23] <simon_w> Someone figure out how to install it, then write the docs :p
1338: [20:28:30] <Pyromanik> rofl
1339: [20:28:30] <Pyromanik> no
1340: [20:28:54] <Alexw> @simon_w http://api.silverstripe.org/3.1/
1341: [20:29:43] <catcher> I need to add a filter to a module's (blogger) getter method (getBlogPosts). What's the right way?
1342: [20:29:44] <Alexw> Btw, using bcrypt with a little salt is better for formatting
1343: [20:29:48] <Alexw> @Avroceptyr
1344: [20:29:49] <guzzlefry> yay, more nginx errors
1345: [20:29:55] <guzzlefry> Guess I really do need to fix those. :P
1346: [20:30:00] <simon_w> Alexw, this isn't SilverStripe :p
1347: [20:30:16] <Alexw> Why ask that on a Silverstripe channel without context?
1348: [20:30:31] <simon_w> Because it's #silverstripe.
1349: [20:30:47] <Alexw> yeah but your question is not about silverstripe...
1350: [20:31:03] <simon_w> catcher, does it have a call to ->extend() in it you can use?
1351: [20:31:22] <simon_w> Alexw, that's like 75% of the content in here
1352: [20:31:24] <catcher> simon_w, unfortunately no, just returns a list with a simple filter.
1353: [20:31:27] <Pyromanik> the awdasssssidiggity of you simon_w! GOSH
1354: [20:31:40] <Alexw> Did not saw one yet, your the first
1355: [20:32:18] <catcher> simon_w, add ->extend() and pull request? I could see that getting out of hand..
1356: [20:32:23] <simon_w> catcher, depending on the filter, you can just do it in the template (<% loop BlogPosts.filter('Blah', 'Thing') %>
1357: [20:33:21] <Alexw> @simon_w: try googleing phpdoc generator...you have plenty of result
1358: [20:33:21] <catcher> simon_w, didn't know that, cool. If I didn't want to go the template route, what would be the 'right' way?
1359: [20:34:02] <catcher> in this case, my filter will use the results of a static method on another class
1360: [20:34:03] <Alexw> @simon_w: There are utlities that generates it into html and also in PDF form
1361: [20:34:11] <simon_w> catcher, subclass and override, or add an extension that does return $this->owner->getBlogPosts()->filter()
1362: [20:35:28] <catcher> simon_w, an extension with a differently named method? And then override the template & call it?
1363: [20:35:34] <simon_w> catcher, yeah
1364: [20:35:37] <catcher> k, thanks
1365: [20:36:52] <simon_w> Alexw, I doubt phpdoc or doxygen would be able to parse it properly and that doesn't help me get the installation docs written :p
1366: [20:36:58] * atmos has joined #silverstripe
1367: [20:40:05] <atmos> mornin
1368: [20:40:21] <Alexw> evenin
1369: [20:40:32] <guzzlefry> hrm
1370: [20:41:53] <Alexw> Where to report issues with translation of the cms?
1371: [20:42:47] <simon_w> Just fix them instead: http://doc.silverstripe.org/framework/en/trunk/misc/contributing/translation
1372: [20:44:53] <Alexw> Seems like a issue with silverstripe...they translation is correct in the xml file
1373: [20:44:56] <Alexw> the*
1374: [20:45:37] * ARNHOE has joined #silverstripe
1375: [20:45:39] <Alexw> But the framework adds &#039; in it that my browser can't read
1376: [20:47:47] <catcher> simon_w, that method is used a lot throughout the blog class, and wrapped in a PaginatedList before it hits the template. Now is it reasonable to add an ->extend() to the module?
1377: [20:48:52] <simon_w> catcher, yeah. You do have to be a bit more careful when using an extend() with a DataList though
1378: [20:48:57] <simon_w> given its immutability
1379: [20:49:20] <catcher> simon_w, I think I'm noticing that very thing, setValue() error on non-object
1380: [20:50:40] <guzzlefry> question!
1381: [20:50:45] <Alexw> ok!
1382: [20:50:59] <guzzlefry> CSV Export in the CMS, is that file passed through the headers?
1383: [20:51:14] <Alexw> What you mean?
1384: [20:51:23] <Alexw> If you download a file, you get the contents of a file as body
1385: [20:51:30] <Alexw> Not inside a header name or something
1386: [20:51:48] <guzzlefry> I'm getting "upstream sent too big header while reading response header from upstream" when I try to export.
1387: [20:51:55] <Pyromanik> guzzlefry: all ajax requests return their requirements in the headers
1388: [20:52:05] <Pyromanik> all require javascript, require css, etc.
1389: [20:52:05] <guzzlefry> gah so
1390: [20:52:14] <Pyromanik> inspect the response.
1391: [20:52:21] <Pyromanik> oh right, nginx.
1392: [20:52:27] <Pyromanik> inspect the response on a page that works.
1393: [20:52:44] <simon_w> guzzlefry, nginix's default header response size is too small to work with the CMS
1394: [20:52:48] <Pyromanik> guzzlefry: it's not a hard thing to solve. There are solutions all over the googlse for ti.
1395: [20:53:18] <guzzlefry> fastcgi_buffers 8 16k;
1396: [20:53:18] <guzzlefry> fastcgi_buffer_size 32k;
1397: [20:53:24] <guzzlefry> That's in nginx.conf, still seems broken.
1398: [20:53:32] <Alexw> I'm kinda confused, since when is the raw file inside a header name
1399: [20:53:38] * UndefinedOffset has joined #silverstripe
1400: [20:54:16] <guzzlefry> Alexw: Just the CSS/Javascript if I read that correctly.
1401: [20:54:19] <Alexw> It is export not import
1402: [20:54:28] <Alexw> Also that goes through the body
1403: [20:54:33] <Alexw> it is the same as html
1404: [20:54:34] <Pyromanik> Alexw: it's not, the filenames are.
1405: [20:54:51] <Alexw> only with a different content type
1406: [20:54:57] <Alexw> nope
1407: [20:55:00] <Pyromanik> load the cms, inspect the response headers
1408: [20:55:01] * wilr_ has joined #silverstripe
1409: [20:55:03] <Alexw> you can even spoof the filenames
1410: [20:55:03] <Pyromanik> it's not hard.
1411: [20:55:30] <Alexw> the filename or something is just what the host gives you
1412: [20:55:49] <Pyromanik> X-Include-CSS
1413: [20:55:51] <simon_w> Alexw, SS includes headers in AJAX responses that include the paths of all the CSS and JS requirements
1414: [20:55:54] <Pyromanik> X-Include-JS
1415: [20:56:47] <Alexw> Yeah ok, that just means that the javascript of ss will interpet it as: "hey i need to download that file"
1416: [20:57:01] <Alexw> I dont see the full raw javascript inside the header
1417: [20:57:23] <simon_w> Yes, but if you have lots of requirements, nginix will complain about the header size
1418: [20:57:51] <Alexw> Then you need a lot of requirement...but ok...fair enough
1419: [20:57:57] <Alexw> But I thought this was about downloading a file
1420: [20:58:09] <simon_w> That's just the context
1421: [20:58:16] * UndefinedOffset quit (Client Quit)
1422: [20:58:34] <Pyromanik> Alexw: there is no JS in the header. Just filenames.
1423: [20:58:44] <Alexw> And downloading a file is just that the host send you the contents of that file as body and then set headers like content-type so the browser knows that he needs to download it
1424: [20:58:55] <Pyromanik> yes.
1425: [20:59:00] <Pyromanik> everything happens as normal.
1426: [20:59:06] <Alexw> Pyromanik: yeah, I can see that...I'm just trying to make a point about my previous sentence
1427: [20:59:19] <Pyromanik> Silverstripe just makes use of headers to let receiving JS know to download more stuff.
1428: [20:59:24] <Alexw> yes
1429: [20:59:26] <Pyromanik> Alexw: but it's irrelevant.
1430: [20:59:38] <Pyromanik> your previous sentence is only confusing everyone more.
1431: [20:59:38] <guzzlefry> Firebug's net panel doesn't show any new requests when I click "Export to CSV" :/
1432: [20:59:51] <Pyromanik> guzzlefry: change filter.
1433: [21:00:14] <guzzlefry> Pyromanik: ?
1434: [21:00:17] <Pyromanik> ie, hit the first three buttons: clear, persist, all.
1435: [21:00:19] <Pyromanik> then try again.
1436: [21:00:34] <guzzlefry> oh derp
1437: [21:00:51] <guzzlefry> Still nothing.
1438: [21:01:18] <Alexw> Kinda weird that he complains about the header size if "Export to csv" just goes to php that gives you a file
1439: [21:08:13] * ss-log has joined #silverstripe
1440: [21:09:57] <Alexw> nvm
1441: [21:10:03] <ss23> i am a heron. i haev a long neck and i pick fish out of the water w/ my beak. if you dont repost this comment to 10 other channels i will fly into your kitchen tonight and make a mess of your pots and pans
1442: [21:10:31] <Alexw> Ok, have fun tonight...
1443: [21:15:52] <atmos> hmmm
1444: [21:16:42] <atmos> anyone had an issue with the sitetree refreshing when dragging and dropping pages?
1445: [21:18:15] <unsignedint> atmos: yep me. I give up on it and refresh the whole page. also you have to republish the pages you moved or the live site structure wont update
1446: [21:18:27] * unsignedint quit (Remote host closed the connection)
1447: [21:19:21] <atmos> kinda sucks - but minor
1448: [21:19:41] <atmos> makes a bit hard to keep track of where the drop went
1449: [21:19:42] <ss23> Can you guys imagine many less bugs there would be if the CMS wasn't rewritten in friggen JS?
1450: [21:20:12] <Alexw> uh...no..?
1451: [21:20:22] <ss23> WELL I CAN
1452: [21:20:23] <atmos> ss23: a lot less work for you guys :P
1453: [21:20:24] <ss23> #jshaters
1454: [21:21:02] <Alexw> Javascript can make a website interface user-friendly
1455: [21:21:15] <Alexw> For example Silverstripe use ajax to load his pages
1456: [21:21:44] <Alexw> So the user does not need to reload the enite page and so have a more smooth translation
1457: [21:21:50] <ss23> The best interface I've seen that utlizes Javascript is Github
1458: [21:21:50] <atmos> Alexw: maybe, but it's not the best option for UI
1459: [21:21:58] <ss23> And that's *not* JS heavy
1460: [21:22:06] <ss23> Think the main thing it does is the page transitions, etc
1461: [21:22:19] <Alexw> No you can also drag and drop things
1462: [21:22:20] <ss23> All those angular/ember interfaces?
1463: [21:22:23] <ss23> Horrible as crap
1464: [21:22:32] <ss23> You know why it's called ember, right?
1465: [21:22:46] <ss23> Because whenever I have to use an interface backed by ember, there are burning embers of *rage* in my heart
1466: [21:23:22] <Alexw> Are you using the web irc now?
1467: [21:23:30] * atmos has never used ember
1468: [21:23:48] <ss23> Alexw: No way
1469: [21:23:50] <ss23> lol
1470: [21:24:03] <guzzlefry> okay, so wtf
1471: [21:24:10] <guzzlefry> http://sspaste.com/paste/show/52547663acc2f That's in fastcgi.conf
1472: [21:24:11] <ss23> Actually though, qwebirc is a nice interface (though not *heavily* JS). Mibbit isn't though :P
1473: [21:24:18] <guzzlefry> restarted the server, still getting the error.
1474: [21:24:19] <ss23> guzzlefry: hacked!
1475: [21:24:23] <catcher> ss23, what's your pref for client-side over js?
1476: [21:24:35] <ss23> catcher: Why shove all my code in the client side at all?
1477: [21:24:41] <atmos> guzzlefry: how's the payment module going?
1478: [21:24:42] <ss23> I'm not opposed to Javascript when it should be use
1479: [21:24:42] <ss23> used
1480: [21:24:51] <ss23> I'm opposed to shoving so much crap into it that it fails
1481: [21:24:53] <Alexw> Yeah why not have a the 90's all over again
1482: [21:24:54] <ss23> e.g. SilverStripe CMS
1483: [21:24:56] <ss23> e.g. Mibbit
1484: [21:25:01] <ss23> e.g. Ember crap
1485: [21:25:03] <catcher> fair enough
1486: [21:25:09] <ss23> Alexw: Change for change's sake isn't good
1487: [21:25:09] <ss23> :/
1488: [21:25:16] <ss23> Nice falcious argument thoguh
1489: [21:25:20] <ss23> "Oh well that's old so it's bad!"
1490: [21:25:27] <Alexw> That was sacarm
1491: [21:25:33] <guzzlefry> atmos: Had a lot of derp moments for the cart initialization logic. :P
1492: [21:25:51] <Alexw> So you only want a website with only images and text
1493: [21:25:53] <ss23> YEAH I BET IT WAS YOU JAVASCRIPT SYMPATHEZIER :O
1494: [21:25:53] <guzzlefry> Didn't know that you pulled relations like $this->relation() instead of $this->relation :P
1495: [21:26:00] <ss23> Alexw: Yes, that's literally waht I said :P
1496: [21:26:11] <Alexw> Intresting...
1497: [21:26:21] <Alexw> Let check for a good example that is not possible without js
1498: [21:26:29] <ss23> lol
1499: [21:26:33] <ss23> Alexw: That was me being sarcastic
1500: [21:26:51] <ss23> Alexw: Also, if you weren't reading up before, I said I'm not opposed to JS and referenced several things that I *like* that use JS
1501: [21:27:00] <ss23> SilverStripe CMS is not one of them
1502: [21:27:05] <ss23> Anything I've ever used in ember is not either
1503: [21:27:21] <ss23> Does it even count as strawmanning if you ignore what people say when they clarify?
1504: [21:27:34] <Alexw> You know that slideshow won't work without JS
1505: [21:27:47] <Pyromanik> ss23: if I do $this->redirect() does it perm or temp?
1506: [21:28:00] <Alexw> Dropdown menus are harder to make
1507: [21:28:05] <Pyromanik> Alexw: incorrect, slideshows work if you're an animal with css.
1508: [21:28:05] <simon_w> Pyromanik, 302 by default
1509: [21:28:10] <ss23> Pyromanik: Never checked :O
1510: [21:28:11] <Pyromanik> simon_w: so temp right?
1511: [21:28:15] <simon_w> yes
1512: [21:28:18] <Alexw> Email scripts
1513: [21:28:19] <Pyromanik> sweet
1514: [21:28:20] <Alexw> date time functions
1515: [21:28:21] <ss23> Pyromanik: 302 by default!
1516: [21:28:26] <Alexw> Popup windows
1517: [21:28:28] <Pyromanik> because seems browser has cached it :<
1518: [21:28:30] <simon_w> ss23, too slow!
1519: [21:28:34] <ss23> Pyromanik: ... lol chrome?
1520: [21:28:37] <ss23> simon_w: I just copied you :P
1521: [21:28:41] <Pyromanik> ss23: ff
1522: [21:28:43] <atmos> Alexw: lot's of that can be done in CSS
1523: [21:28:45] <ss23> aw k
1524: [21:28:47] * Colin[pi] has joined #silverstripe
1525: [21:28:52] <ss23> cause Chrome caches stuff when it shouldn't which is annoying
1526: [21:28:53] <Pyromanik> I just commented out the redir, still redir'n.
1527: [21:29:01] <Pyromanik> which is what is supposed to happeen.
1528: [21:29:03] <Pyromanik> but
1529: [21:29:05] <Pyromanik> I just don't even.
1530: [21:29:07] <Alexw> Form validation
1531: [21:29:39] <Pyromanik> 10:28 < Alexw> Dropdown menus are harder to make
1532: [21:29:40] <Alexw> Weather websites with a live radar
1533: [21:29:46] <Pyromanik> if you're using JS for dropdowns then you're doing it wrong.
1534: [21:29:56] <atmos> ^^^^^^^^
1535: [21:29:59] <Pyromanik> JS has many uses, but these are not some.
1536: [21:30:06] <Pyromanik> live update radars ok, sure.
1537: [21:30:08] <Alexw> Since when can use a click function with only CSS?
1538: [21:30:12] <Pyromanik> but that's not trivial.
1539: [21:30:19] <Alexw> So you click a on a button and get a menu
1540: [21:30:21] <Pyromanik> Alexw: you don't click.
1541: [21:30:28] <Pyromanik> hover states.
1542: [21:30:31] <Pyromanik> or use active state
1543: [21:30:31] <Alexw> That was my point for a dropdown menu
1544: [21:30:36] <Pyromanik> if browser isnt' derp.
1545: [21:30:48] <Pyromanik> hack it with stated form elements
1546: [21:30:51] <Alexw> That, sir is a good one...active state
1547: [21:30:52] <Pyromanik> many things.
1548: [21:30:59] <Pyromanik> :active
1549: [21:31:00] <Pyromanik> :focus
1550: [21:31:18] * ARNHOE quit (Remote host closed the connection)
1551: [21:31:28] <atmos> I've seen some pretty nice (if not concept only) UI's with no click actions
1552: [21:31:37] <Pyromanik> I'm not arguing against JS, I'm arguing against people using it needlessly.
1553: [21:31:39] <Alexw> Oh well, the next thing ss23 will say is that CSS is overrated too
1554: [21:31:56] <ss23> lol
1555: [21:32:02] <Pyromanik> Alexw: it's not the JS that's overrated, it's how the majority of 'developers' use it.
1556: [21:32:02] <ss23> It is in a lot of cases -- people can use CSS wrong
1557: [21:32:03] <ss23> :D
1558: [21:32:04] * violetina quit (Remote host closed the connection)
1559: [21:32:13] <Pyromanik> and people can use css wrong.
1560: [21:32:18] <ss23> Less cases than JS, but you can still do things excessivly in CSS
1561: [21:32:18] <ss23> mm
1562: [21:32:27] <Alexw> I wish that CSS was inventend way back
1563: [21:32:31] <Pyromanik> float all the things so you don't have to clear any of the things!
1564: [21:32:35] <ss23> A lot of times people will build insane contraptioins that would be better in Javascript
1565: [21:32:36] <Alexw> CSS3 i mean
1566: [21:32:38] <ss23> :D
1567: [21:33:18] <Alexw> I can't imagine someone like you that turn offs the javascript in your browser
1568: [21:33:34] <Alexw> And face on almost every website..."You can't use this website without javascript"
1569: [21:33:35] <ss23> OH: "I wanna build my own jQuery"
1570: [21:33:47] <ss23> Alexw: No, how would I use the nice JS parts of sites like Github if I did that? :D
1571: [21:33:56] <ss23> *though*, I think if a site doesn't work with JS, it can kind of go fuck itself
1572: [21:33:59] <ss23> :P
1573: [21:34:07] <ss23> That's a good sign you're doing JS wrong actually
1574: [21:34:20] <Alexw> Now I'm kinda confuse
1575: [21:34:21] <Alexw> d
1576: [21:34:21] <ss23> A quick "Is this person using Javascript wrong?" is "Does the site work without JS?"
1577: [21:34:37] <Alexw> First you want a free-JS www and now you approve JS
1578: [21:35:11] <ss23> No
1579: [21:35:26] <ss23> lol
1580: [21:35:29] <guzzlefry> pft, progressive enhancement died in the 2000s
1581: [21:35:30] <Alexw> You know that using JS you CAN also save bandwidth of your client
1582: [21:35:47] <ss23> Thanks for letting me know!
1583: [21:35:47] <ss23> :P
1584: [21:35:56] <Alexw> No problem
1585: [21:35:56] <ss23> I've not used JS before, so it's handy to be told
1586: [21:36:23] <DryerLintPurple> for my sites, I don't really give a flip about paranoid kiddies who turn off javascript, but the site damn well better be crawlable by search engines.
1587: [21:36:34] <Alexw> Then how can you talk about to get a free-JS without using it
1588: [21:36:47] <ss23> What do you mean, Alexw?
1589: [21:36:49] <atmos> Alexw: you're missing the point
1590: [21:36:56] <Alexw> I guess so
1591: [21:37:47] <atmos> do it all in the code!
1592: [21:38:25] * zfmf1 has left #silverstripe
1593: [21:39:48] * mobiusnz1 has joined #silverstripe
1594: [21:40:32] <Alexw> Does anyknow get &# html codes inside their translations...just the converted symbol but litterly raw &#039; for example
1595: [21:41:16] * Colin[pi] quit (Ping timeout: 245 seconds)
1596: [21:41:49] <atmos> simon_w: any good ipad apps for Flickr? It seems they only made an official iPhone one :/
1597: [21:42:11] <simon_w> No idea, mine doesn't have a camera :p
1598: [21:42:17] <Pyromanik> Alexw: I think you're just supposed to put the character proper into the translation, and it gets converted to an entity later.
1599: [21:42:31] * mobiusnz quit (Ping timeout: 240 seconds)
1600: [21:42:44] * Alexw quit ()
1601: [21:42:48] <atmos> simon_w: mine does, but I was only planning to use it to browse (more so my gf)
1602: [21:43:23] <ss23> While I think of it
1603: [21:43:29] <ss23> FUCKING JAVASCRIPT CLIPBOARD FUCKERY
1604: [21:43:32] <ss23> oh god makes me so mad
1605: [21:43:45] <atmos> what about it?
1606: [21:43:53] <ss23> Read more at: Fuck you.com
1607: [21:43:56] <ss23> That stuff, it sucks
1608: [21:44:14] <simon_w> JS can't access the clipboard
1609: [21:44:15] <atmos> :P
1610: [21:45:15] <ss23> Hmmmm
1611: [21:45:17] <ss23> Flash then?
1612: [21:45:20] <ss23> Whatever the fuck it is
1613: [21:45:32] <ss23> (I know it can be done with CSS, just seems unlikely)
1614: [21:45:52] <atmos> <canvas>!
1615: [21:45:57] <atmos> :D
1616: [21:46:21] <guzzlefry> gah, digging around a 2.4 site.
1617: [21:46:29] * EasyCo has joined #silverstripe
1618: [21:46:59] <catcher> later skaters
1619: [21:47:11] * catcher quit (Quit: Leaving)
1620: [21:47:23] * AlphaCactus quit (Quit: kthxbai)
1621: [21:47:51] <atmos> guzzlefry: always fun
1622: [21:47:54] * guzzlefry feels cool now.
1623: [21:48:39] <atmos> heh, just realised we still have a 2.3 site floating around
1624: [21:49:27] <ss23> Us too!
1625: [21:49:34] <ss23> atmos: Quick, gimmie URL, lemme sqli it for you
1626: [21:49:34] <ss23> ;)
1627: [21:49:39] <ss23> I mean... *cough*
1628: [21:50:14] <atmos> ss23: :P
1629: [21:50:29] <atmos> at least I think it's 2.3
1630: [21:50:38] <atmos> knowing our network guy it probably isn't
1631: [21:50:46] <simon_w> Hmm, can I be bothered updating the 2.4 site we've got on jar jar
1632: [21:51:14] * AlphaCactus has joined #silverstripe
1633: [21:52:22] <Peavers> Who was it who was also having issues with subsites on cwp?
1634: [21:52:27] <Peavers> Was talking to you a few days back...
1635: [21:52:31] <atmos> whoop whoop $300 late penalty fees from IRD WIPED
1636: [21:52:32] <atmos> boom
1637: [21:52:39] <atmos> \o/
1638: [21:52:46] <simon_w> Peavers, spronk? :p
1639: [21:53:00] <Peavers> Yeah might have been... spronk you about?
1640: [21:53:10] <ss23> spronk doesn't use CWP
1641: [21:53:18] <Peavers> hmm
1642: [21:53:19] <ss23> (right?)
1643: [21:53:24] <ss23> i think you're the only one here who does, Peavers
1644: [21:53:27] <ss23> (The only regular at least)
1645: [21:53:29] <simon_w> But sub sites!
1646: [21:53:40] <atmos> Spronk? Subsites?
1647: [21:53:42] <ss23> spronk does love subsites!
1648: [21:53:42] <Peavers> Well, ss23,
1649: [21:53:42] <ss23> :D
1650: [21:53:45] <Peavers> you better hide.
1651: [21:53:48] * atmos grabs popcorn
1652: [21:56:03] <simon_w> # cat cms/silverstripe_version
1653: [21:56:04] <simon_w> $URL: http://svn.silverstripe.com/open/modules/cms/branches/2.4/silverstripe_version $
1654: [21:56:04] <simon_w> Old!
1655: [21:56:05] * atmos quit (Quit: Page closed)
1656: [21:56:35] * atmos has joined #silverstripe
1657: [21:57:01] <simon_w> Haha, it's set up with svn:externals to svn.silverstripe.com. This is hilarious.
1658: [21:57:15] <guzzlefry> Did anyone use the Blog module with 2.4? I'm wondering how I change the number of entries per page.
1659: [21:59:23] <atmos> guzzlefry: ($default_entries_limit in BlogTree.php)
1660: [21:59:37] <atmos> it's 10 by defaul I thnk
1661: [21:59:58] * zfmf1 has joined #silverstripe
1662: [22:01:20] <guzzlefry> ah thanks, I see it now.
1663: [22:01:33] <guzzlefry> BlogEntries($limit) uses that if nothing is passed.
1664: [22:03:33] <atmos> np
1665: [22:05:11] * SightUnseen has joined #silverstripe
1666: [22:06:27] * SightUnseen has left #silverstripe
1667: [22:07:14] <ss23> help
1668: [22:07:23] <ss23> I have to write a bio for kiwicon
1669: [22:07:24] <Peavers> possible to make modules and dataobject subsite aware?
1670: [22:07:25] <ss23> help
1671: [22:07:43] <Peavers> "bad ss support" just put that in there ;)
1672: [22:07:56] <ss23> lol
1673: [22:08:43] <Pyromanik> atmos: guzzlefry no, you set it from config.php
1674: [22:08:45] <Pyromanik> :<
1675: [22:08:46] <Peavers> yeah but seriously... cwp was sold to us as being very easy and possible to host completely unreleated sites on the same instance... seems thats not the case...
1676: [22:08:49] <Pyromanik> don't hack core files.
1677: [22:09:01] <atmos> Pyromanik: ah
1678: [22:09:11] <atmos> Pyromanik: guzzlefry correcto
1679: [22:09:28] <guzzlefry> ah
1680: [22:09:28] <Pyromanik> but yeh, that'll be the var you use.
1681: [22:09:35] <guzzlefry> even in 2.4?
1682: [22:09:41] <Pyromanik> of course.
1683: [22:09:53] <guzzlefry> It's so foreign to me! :P
1684: [22:09:53] <Pyromanik> that's what _config.php is for
1685: [22:10:13] <Pyromanik> if you're changing files you did not create then you're doing it wrong! no matter what app.
1686: [22:10:38] <ss23> Peavers: Go back and complain to the people who sold it to you, I don't know about CWP, nor am I sales!
1687: [22:10:41] <ss23> :P
1688: [22:10:46] <guzzlefry> Config::inst("BlogHolder")->set("default_entries_limit", 15); ?
1689: [22:10:48] <ss23> Bitching about sales to a bunch of devs is counter-productive!
1690: [22:11:18] <Peavers> lol
1691: [22:11:25] <Peavers> Its not my fight
1692: [22:11:32] <Peavers> I'm just paid to make it work
1693: [22:11:34] <atmos> war has changed
1694: [22:11:59] <guzzlefry> atmos: Did you decide to start playing MGS4? :P
1695: [22:12:01] <Peavers> so here I am asking if there is an easy solution to seperate dataobjects from subsites...
1696: [22:12:41] <Peavers> if there isn't, I'll write one and sell it to cwp users on the side - but i'm not going to reinvent the wheel...
1697: [22:12:46] <atmos> guzzlefry: yay someone got it :D
1698: [22:13:06] <guzzlefry> I feel like quoting that every other week, nfi why.
1699: [22:18:59] <Peavers> Well, that was easier than expected.
1700: [22:19:31] <Peavers> added a subsiteid to each object, check that to the subsite, return if true, deny if not etc etc. Job done.
1701: [22:19:34] <Peavers> I'm going home
1702: [22:20:07] <Peavers> Sometimes I do think SS is the best CMS ever to be built. It does have its perks _b
1703: [22:21:21] <atmos> It's the best I've worked with - but then again, it's not a big bar to raise :P
1704: [22:21:23] <atmos> imo
1705: [22:22:11] <Peavers> its "easier" alot of the time working with wordpress or drupal simply because it has the userbase
1706: [22:22:29] <EasyCo> Morning
1707: [22:22:37] <Peavers> so any issue you have, there is a good chance 100,000 other people had that issue... with silverstripe being the new comer its a bit hard to find information about some things
1708: [22:23:17] <simon_w> Easy solution: stop having issues :p
1709: [22:23:28] <Peavers> Well yes.
1710: [22:24:55] <atmos> Magento is easily the worst I've worked tih
1711: [22:24:57] <atmos> with*
1712: [22:25:02] <atmos> and maybe Concrete 5
1713: [22:25:06] * DigNZ quit (Quit: DigNZ)
1714: [22:25:12] <simon_w> WordPress is the worst I've worked with
1715: [22:25:14] <Peavers> But for that to be the case, I'd have to invest time into properly learning php and web dev, and I'd rather shoot myself in the face than do that to be honest.
1716: [22:25:25] <simon_w> But then it's also the only one that isn't SS I've worked with
1717: [22:25:58] <atmos> Peavers: what do you do normally?
1718: [22:26:09] <Peavers> java/android dev
1719: [22:26:21] <simon_w> Wrong! You usually bug ss23 :p
1720: [22:27:05] <Peavers> Trying out web dev since a position came up, and need to experince all these things.
1721: [22:27:24] <atmos> welcome to hell
1722: [22:27:39] <spronk> Peavers: separate DOs from subsites?
1723: [22:27:39] <Peavers> been in this job less than 6 months and I agree with you.
1724: [22:27:40] <spronk> like
1725: [22:27:46] <spronk> how?
1726: [22:28:05] <Peavers> are you asking me how I did it spronk?
1727: [22:28:11] <spronk> wait
1728: [22:28:12] <spronk> you've done it!?
1729: [22:28:15] <Peavers> yeah
1730: [22:28:26] <spronk> how did you do it?
1731: [22:28:45] <Peavers> ohhh noooooo this was done on goverment time, I can't just be giving that away. Tax payers and all.
1732: [22:28:54] <Peavers> $45k and I'll send the source
1733: [22:29:10] <Peavers> I kid, I kid
1734: [22:29:28] <Peavers> let me just make sure it all works as expected and get a few bits of testing done and I'll throw it on gitlab/hub
1735: [22:29:34] <spronk> icic
1736: [22:29:45] <spronk> i went down the route of attempting to use extensions a whilea go
1737: [22:29:48] <spronk> didn't really work
1738: [22:30:05] <Peavers> but just add a subsiteID field to each dataobject with a basic extension, then compare it with the subsite id
1739: [22:30:29] <spronk> using augmentsql on the DO?
1740: [22:30:33] <Peavers> up
1741: [22:30:34] <Peavers> yup
1742: [22:31:53] * mobiusnz1 has left #silverstripe
1743: [22:33:17] * mobiusnz has joined #silverstripe
1744: [22:37:19] * DigNZ has joined #silverstripe
1745: [22:37:20] * DigNZ quit (Remote host closed the connection)
1746: [22:37:37] * DigNZ has joined #silverstripe
1747: [22:37:47] * zippy__ quit (Ping timeout: 248 seconds)
1748: [22:38:38] * micmania1 has joined #silverstripe
1749: [22:48:15] <guzzlefry> http://sspaste.com/paste/show/52547663acc2f <--- So this is in fastcgi.conf, restarted nginx. Still hitting the header size limit.
1750: [22:49:36] * Colin[pi] has joined #silverstripe
1751: [22:52:06] <atmos> is anyone else getting 500s from trademe?
1752: [22:53:07] <simon_w> Nope
1753: [22:53:17] <atmos> hmmm
1754: [22:53:32] <atmos> not on clicks to open an item?
1755: [22:53:36] <atmos> to view an item* rather
1756: [22:54:37] <simon_w> Well, I get a banana error
1757: [22:55:00] <atmos> simon_w: ah yeah, getting that now instead
1758: [22:55:03] <atmos> ouch
1759: [22:55:52] <atmos> somone pressed the big red button
1760: [22:56:15] <simon_w> Maybe the slide fell over
1761: [22:59:50] * SightUnseen has joined #silverstripe
1762: [23:04:50] * SightUnseen has left #silverstripe
1763: [23:09:55] * zfmf1 has left #silverstripe
1764: [23:10:34] <longtips> have you guys ever hosted the same ss app from 2 domains and changed the template based on the domain?
1765: [23:11:00] <longtips> i basically have to have a facebook iframe version and a microsite version, but everything is the same except some header/footer content and the domains are different (Due to ssl)
1766: [23:11:24] <spronk> longtips: irogue has some nice quick code to do this
1767: [23:11:26] <longtips> it should figure out the base tag just fine eh, and i can probably put something in my _config to force the theme based on the domain
1768: [23:11:33] <spronk> actually
1769: [23:11:35] <spronk> yeah
1770: [23:11:39] <longtips> yeah sweet as
1771: [23:12:43] <ss23> simon_w: Lunch today? :D
1772: [23:13:10] <simon_w> ss23, can you bring it down here so I don't have to go outside? :p
1773: [23:13:26] <ss23> Uh.............
1774: [23:13:37] <ss23> Argh dammit, I need to go to a pharmacy too before I die
1775: [23:14:12] <simon_w> There's one in Readings
1776: [23:14:20] <simon_w> There's two across the road from me
1777: [23:14:40] <ss23> :O
1778: [23:14:42] <ss23> mmk
1779: [23:14:49] <ss23> idk if they'll give me what I need
1780: [23:14:55] <ss23> I need needles, but I don't have a prescription
1781: [23:15:03] <ss23> Other pharmacies have given me it if I just pay for it though
1782: [23:15:14] <ss23> Some haven't though
1783: [23:15:20] <Colin[pi]> DIABEETUS?
1784: [23:15:21] <ss23> In fact, I really need to book a doctors appointment too :O
1785: [23:15:23] <ss23> Colin[pi]: YEAH
1786: [23:15:27] <Colin[pi]> ;C
1787: [23:15:33] <ss23> I'm out of needles, and like less than week before out of insulin
1788: [23:16:29] <simon_w> Colin[pi], he has the type that you get to laugh at him about
1789: [23:16:37] <Colin[pi]> :o
1790: [23:16:48] <ss23> lol
1791: [23:17:02] <ss23> As opposed to the other type, where it's completely self inflicted, so you can't make fun of them
1792: [23:17:05] <ss23> ?
1793: [23:17:08] <ss23> :P
1794: [23:17:23] <ss23> simon_w: so did you wanna come out for lunch?
1795: [23:17:44] <simon_w> I'm still not sure about this whole "outside" thing, though I guess I could just grab my jacket
1796: [23:17:51] <ss23> Well you don't have to
1797: [23:18:01] <simon_w> If I want lunch I do :p
1798: [23:18:09] <ss23> I thought about getting my jacket too, but I took your guys recommendations for jackets, and I ended up with one that if I wear, I die
1799: [23:18:26] <ss23> it' like "lol I'm designed for sub-zero temperatures! IT's 10c? BURN! CATCH ON FIRE WITH HEAT"
1800: [23:18:29] <ss23> ;_;
1801: [23:18:35] <atmos> Death Jacket
1802: [23:18:51] <atmos> #metalbandnames
1803: [23:18:54] <simon_w> That's why I get jackets that aren't lined
1804: [23:18:58] <ss23> XD
1805: [23:19:07] <ss23> I thought it actually got cold here in Wellington
1806: [23:19:20] <simon_w> Pfft
1807: [23:19:33] <ss23> Even with my sweatshirts when I walk home, at best, I end up putting the hood on and unzipping the main jacket, since it's hot, but the wind hurts my ears
1808: [23:19:33] <simon_w> Just get a windbreaker and there goes the cold
1809: [23:19:38] <atmos> Stephen's Detah Jacket = #hipsterbandnames
1810: [23:19:47] <ss23> hhahahha atmos
1811: [23:19:47] <ss23> dude
1812: [23:19:50] <ss23> You're so good at that
1813: [23:20:05] <atmos> I'm here all week
1814: [23:20:05] <Colin[pi]> "Dear client, can you please send a high quality version of your logo?" *client sends 140x180px jpeg*
1815: [23:20:07] <ss23> Emergency Purple Elephant Band
1816: [23:20:36] <atmos> Colin[pi]: lol
1817: [23:21:08] <atmos> Colin[pi]: at least you didn't get a logo.ihavenoideawhatformatiambutimfromthe90s like I do
1818: [23:21:10] <simon_w> ss23, I think we're heading out for lunch now
1819: [23:21:14] <simon_w> 4 minutes?
1820: [23:21:19] <Colin[pi]> atmos: haha
1821: [23:22:10] <simon_w> ss23, reply, dammit :p
1822: [23:23:57] <simon_w> ss23, Stephen Stephen Stephen Stephen Stephen Stephen Stephen Stephen Stephen Stephen
1823: [23:24:54] <ss23> sdaf
1824: [23:24:54] <ss23> sirry
1825: [23:25:02] <simon_w> Okay, three minutes now
1826: [23:25:07] <ss23> kk :D
1827: [23:27:06] <Colin[pi]> "Ohhh sorry, this is the correct image." *client sends PNG at HALF the resolution of the JPEG, and PNG has no transparency*
1828: [23:27:14] * Colin[pi] bangs head on table
1829: [23:30:10] * guzzlefry puts pillow on table.
1830: [23:30:36] <guzzlefry> I need three, myself.
1831: [23:30:38] * Colin[pi] sleeps
1832: [23:38:06] <Colin[pi]> rofl: http://i.imgur.com/Ojzw8r9.jpg
1833: [23:44:16] * zippy__ has joined #silverstripe
1834: [23:51:11] * chillu quit (Quit: chillu)

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