#silverstripe IRC Log

IRC log for 10 September 2014

All timestamps are in UTC.

1: [00:03:34] * __will has joined #silverstripe
2: [00:03:49] * jenniferaslan quit (Quit: jenniferaslan has left the room)
3: [00:04:49] * Ryan-Toast quit (Quit: Ryan-Toast)
4: [00:05:41] <simon_w|work> "ProTip! You can create and checkout a branch in one command with git checkout -b."
5: [00:05:46] * simon_w|work does that ALL THE TIME!
6: [00:05:50] * simon_w|work must be a Pro!
7: [00:08:03] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
8: [00:08:22] * UncleCheese has joined #silverstripe
9: [00:10:12] <willr> barly use git checkout without -b :P
10: [00:12:03] * seah0rse quit (Quit: seah0rse)
11: [00:12:22] <simon_w|work> I use its other functionality rather often
12: [00:19:02] * LimRes has joined #silverstripe
13: [00:19:07] <LimRes> Help me SS, you are my only hope.
14: [00:19:32] <LimRes> Client has moodle running in a subdirectory, SilverStripe in root
15: [00:20:01] <LimRes> when I use my typical .htaccess, Moodle won't break because of the ReWrite rules
16: [00:20:12] <LimRes> sorry, Moodle wont WORK because of ReWrite rules
17: [00:20:38] <simon_w|work> Yes, don't run it in a subdirectory
18: [00:20:46] <LimRes> anybody know how to configure htaccess to allow SS to run without "/index.php/" showing up in urls while still allowing subdirectories to do their own thing?
19: [00:21:47] <simon_w|work> You can add a RewriteCond to exclude that folder from SilverStripe's rules, though it'll be a lot easier to not run it in a subdirectory
20: [00:22:39] <LimRes> Thanks Simon, I despise Moodle, and the thought of even touching it makes me want to hurl, the subdomain is all set nicely and it is working, so if I can handle it with a condition in htaccess I would prefer that
21: [00:22:50] <LimRes> Any idea how?
22: [00:23:03] <simon_w|work> Oh, it's a subdomain as well. That makes things worse
23: [00:23:26] <simon_w|work> Seriously, just move the moodle folder out of the silverstripe one and change the subdomain's root to that new folder
24: [00:25:01] <adrexia> "<simon_w|work> Also, it's not like Entwine's actually good"
25: [00:25:05] <adrexia> it has its use cases
26: [00:25:26] <adrexia> it provides decent structure to jquery
27: [00:26:04] <simon_w|work> Just don't try nesting namespaces
28: [00:26:18] <adrexia> it's like using a js framework for people who don't want to actually do all their processing on the js side
29: [00:26:35] <adrexia> hmm
30: [00:26:40] <simon_w|work> Or remembering the difference between onadd and onmatch
31: [00:26:48] <adrexia> lols
32: [00:26:58] <LimRes> Thanks Simon, I never handle hosting stuff, my partner is unavailable,
33: [00:27:06] <adrexia> you can learn that stuff
34: [00:27:19] <adrexia> but if in doubt, try one and see if it works
35: [00:27:34] <simon_w|work> adrexia, not really. Whichever one was added later (since they both exist) was added after the docs were written
36: [00:27:42] <adrexia> docs?
37: [00:27:47] <adrexia> there are docs?
38: [00:28:00] <LimRes> simon_w where else can it go in a typical environment? Doesn't every publicly accessable folder need to be under public_html (root) or equivalent?
39: [00:28:04] <simon_w|work> Hamish wrote some tutorial thing back when it was Concrete
40: [00:28:17] <simon_w|work> LimRes, nope. It can go wherever you want it to
41: [00:30:38] <LimRes> Ok thanks Simon_W will give that a go cheers!
42: [00:30:58] * __will quit (Ping timeout: 246 seconds)
43: [00:34:49] * LimRes quit (Ping timeout: 246 seconds)
44: [00:35:53] * Ryan-Toast has joined #silverstripe
45: [00:54:51] <UncleCheese> is anyone here good at query optimisation?
46: [01:01:38] <simon_w|work> First step: ditch MySQL :p
47: [01:01:58] <simon_w|work> (Seriously, its EXPLAIN syntax is just shit)
48: [01:03:13] <Ryan-Toast> UncleCheese: use HHVM instead.
49: [01:03:23] <Ryan-Toast> or ask facebook for the answer.
50: [01:03:50] <Colin[pi]> explain... EXPLAINNNN </dalek>
51: [01:04:33] <Ryan-Toast> Colin[pi]: Was just amaking a joke.
52: [01:05:14] <Colin[pi]> naw I saw EXPLAIN in all caps and thought of Doctor Who daleks :(
53: [01:05:30] * Ryan-Toast needs to get the latest two WHO episodes.
54: [01:05:33] <Olliepop> anyone tested SS in HHVM?
55: [01:05:36] <simon_w|work> Yes
56: [01:05:42] <Ryan-Toast> simon made it, pretty sure
57: [01:05:49] <Olliepop> how is it @simon_w|work?
58: [01:05:58] <simon_w|work> So much faster!
59: [01:06:14] <Olliepop> nice! did you port anything to hack?
60: [01:06:32] <Olliepop> or was it good out of box?
61: [01:06:50] <simon_w|work> https://git.simon.geek.nz/simon_w/silverstripe-framework
62: [01:06:55] <simon_w|work> It's good out of the box though
63: [01:08:07] <Olliepop> promising
64: [01:08:44] <Olliepop> i guess if there's any clients which require scale SS on hhvm is an option
65: [01:09:01] <Olliepop> Is your HHVM work endorsed by SS or was it just your spare time?
66: [01:11:33] <simon_w|work> I don't work for SS
67: [01:14:29] <Olliepop> Oh haha
68: [01:14:52] * joelpittet quit ()
69: [01:26:51] * micmania1 has joined #silverstripe
70: [01:27:29] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
71: [01:29:25] * Olliepop quit (Ping timeout: 246 seconds)
72: [01:30:56] <simon_w|work> Mmm, cookies
73: [01:31:35] <Kolin> I like cookies
74: [01:31:51] * zippy has joined #silverstripe
75: [01:33:42] <Stomach_> so does Zauberfisch
76: [01:33:42] <Stomach_> http://stevie.co.nz/zauberfisch.jpg
77: [01:36:58] <Ryan-Toast> Stomach_: you always upload stuff tyo your server :P
78: [01:37:30] <Stomach_> where else would I upload it
79: [01:41:12] * nickmolhoek has joined #silverstripe
80: [01:49:54] <zippy> Stomach_: the cloud? I hear it's secure...
81: [01:50:58] <Phlunk3> yeah, we need to get things off of servers and into the cloud!
82: [01:51:39] * UncleCheese has joined #silverstripe
83: [01:53:41] <UncleCheese> simon_w|work that's what Sean was just telling me re: EXPLAIN
84: [01:53:43] <Ryan-Toast> Is there a hook for when a Form fails to send?
85: [01:53:51] <Ryan-Toast> whether due to validation, or otherwise?
86: [02:00:00] <simon_w|work> UncleCheese, if you can get it into Postgres, you'll get much more useful output from EXPLAIN (though the optimisation engine also tends to be better, so it won't directly apply to MySQL, but should in general)
87: [02:00:39] <simon_w|work> Ryan-Toast, nope
88: [02:10:53] * Tanger has joined #silverstripe
89: [02:19:43] * Ryan-Toast quit (Quit: Ryan-Toast)
90: [02:26:00] * Olliepop has joined #silverstripe
91: [02:40:28] * Olliepop_ has joined #silverstripe
92: [02:42:55] * Olliepop quit (Ping timeout: 246 seconds)
93: [02:44:23] * Phlunk3 quit (Quit: Leaving)
94: [02:53:23] * jrthomer has joined #silverstripe
95: [03:06:42] <Tanger> Hey guys, is there an inclusive OR filter for DataLists?
96: [03:08:17] <Tanger> Or do I needa filter by callback?
97: [03:08:45] <simon_w|work> Tanger, so, an IN()?
98: [03:10:06] <Tanger> An IN()?
99: [03:10:28] <simon_w|work> The SQL construct IN
100: [03:11:26] <Tanger> Ah, yeah. Spot on! Thanks simon_w
101: [03:11:48] <simon_w|work> Tanger, so, ->filter('field', $arrayOfValues)
102: [03:16:10] <Tanger> Haha, can't believe I misread the filter() docs so hard
103: [03:20:43] * Bosie quit (Ping timeout: 246 seconds)
104: [03:23:41] <Tanger> Actually… Say I wanted to look for any objects with either their Title set to 'X' or 'Y', but also objects that have an ID of 1,2 or 3. But I don't want to ONLY look for (Title == 'X' OR 'Y' AND ID == 1 OR 2 OR 3)
105: [03:24:15] * Ryan-Toast has joined #silverstripe
106: [03:24:36] <Ryan-Toast> Getting people to agree on what to do with our new website is like herding cats.
107: [03:26:10] <Tanger> I think Filter() uses IN for values for a field, but AND's the results of different fields and only takes what overlaps
108: [03:29:15] <simon_w|work> Tanger, filterAny()
109: [03:30:53] <Ryan-Toast> Stomach_: Who does your blog posts, man?
110: [03:31:28] <Stomach_> Mike Little according to the tag line
111: [03:33:51] <Tanger> simon_w: Legend! Thanks again
112: [03:33:58] * Error404NotFound has joined #silverstripe
113: [03:34:47] <pippy> CWP won't let me upload a big file :(
114: [03:35:16] <ss23> Hit it with a spoon!
115: [03:37:18] <Ryan-Toast> Stomach_: Boss wants me to start writing a blog, trying to get out of it :P
116: [03:37:31] <Stomach_> Ryan-Toast, lol :D
117: [03:37:34] <Stomach_> that is my boss
118: [03:38:33] <Ryan-Toast> Stomach_: If I’m forced to I’ll ust apply for your PHP dev job, haha.
119: [03:40:35] <Ryan-Toast> It should be illegal for this site to sit on this domain: http://www.webdesign.co.nz/
120: [03:42:28] * cloph_away has joined #silverstripe
121: [03:42:55] <Tanger> Ryan-Toast: What is this?! I clicked on one of their examples: http://www.lakefrontmoteltaupo.com/
122: [03:43:06] * cloph quit (Ping timeout: 268 seconds)
123: [03:43:09] <Tanger> Looks like they rebuilt the wheel. And by wheel I mean Marquee
124: [03:43:38] <Ryan-Toast> Tanger: You just got webdesign.co.nz'd
125: [03:43:45] <Tanger> Lol
126: [03:45:40] <Ryan-Toast> time to send my weekly email asking to buy a domain name.
127: [03:49:03] <Zauberfisch> simon_w|work: namespaces in silverstripe
128: [03:49:17] <simon_w|work> Zauberfisch, what about them?
129: [03:49:53] <Zauberfisch> simon_w|work: work well, ecxept templates. have you managed to get templates to work?
130: [03:50:07] <simon_w|work> Zauberfisch, templates work for me fine
131: [03:50:12] <simon_w|work> Just not on Windows
132: [03:50:15] <Zauberfisch> I had to overwrite getViwer() to make my classes use templates
133: [03:50:21] <Zauberfisch> simon_w|work: really? :O
134: [03:50:28] <simon_w|work> Well, it uses the classname
135: [03:50:40] * wmk has joined #silverstripe
136: [03:50:44] <simon_w|work> And, if you're not on Windows, file names can contain \
137: [03:50:53] <Zauberfisch> simon_w|work: when I used namespace\Page it trys to use mysite/templates/namespace\Page.ss
138: [03:50:56] <Zauberfisch> oh
139: [03:51:01] <Zauberfisch> so you actually put a \ in the file name
140: [03:51:05] <simon_w|work> Ys
141: [03:51:22] <Zauberfisch> I am on linux, so that would work. but it would still make me feel uncomfortable
142: [03:51:31] <simon_w|work> Patches welcome :p
143: [03:51:42] <Zauberfisch> guessed so
144: [03:51:55] <micmania1> I changed the ‘\’ to ‘-‘ once so I could use it on windows
145: [03:51:56] <Zauberfisch> was just checking if you had already found a solution
146: [03:52:10] <micmania1> but then you end up with huge filenames
147: [03:52:13] <Zauberfisch> micmania1: did the same thing, overwritten getViewer() to use - instead
148: [03:52:16] <simon_w|work> Basically what micmania1 did
149: [03:52:28] <simon_w|work> Though, with a patch, you'll still need to support \
150: [03:53:08] <Zauberfisch> idk, \ sounds like a really bad thing in the first place
151: [03:54:03] <simon_w|work> Too bad. It's the current API
152: [03:54:35] <Zauberfisch> good thing it will only break your setup, because I doubt anyone else did use \ :P
153: [03:54:43] <micmania1> I just tend not to namespace anything that relies on a template.
154: [03:54:57] <simon_w|work> Zauberfisch, and guess who gets to review PRs relating to namespaces :p
155: [03:55:02] <Zauberfisch> micmania1: yeah, still avoiding namespaces just because of templates
156: [03:55:06] <Zauberfisch> simon_w|work: -.-
157: [03:55:17] <Zauberfisch> simon_w|work: when do you plan your next holliday?
158: [03:55:30] <Zauberfisch> so I can get someone else to fasttrack it while you are gone :D
159: [03:55:39] <simon_w|work> Zauberfisch, there's a revert button right on github now
160: [03:56:01] <simon_w|work> You don't get to break BC without a deprecation cycle.
161: [03:56:03] <Zauberfisch> oh yeah, damn those github people and all those features
162: [03:56:16] <Zauberfisch> so much boring
163: [04:01:10] * Zopiclone has joined #silverstripe
164: [04:03:55] <Zopiclone> Hi all
165: [04:04:46] <simon_w|work> Hello
166: [04:08:23] <Stomach_> good evening
167: [04:11:06] <zippy> hello
168: [04:17:09] <Colin[pi]> y hello thar
169: [04:18:19] * Selay has joined #silverstripe
170: [04:18:26] <Tanger> Hey
171: [04:25:11] <Blacklite> i love subsites source code
172: [04:25:12] <Selay> Hi, In SS 3.16, there seems to exist problems with controller access. I have the same access config and controller from 3.1 but it doesnt work
173: [04:25:13] <Blacklite> "// If you're querying by ID, ignore the sub-site - this is a bit ugly... (but it was WAYYYYYYYYY worse)"
174: [04:26:04] <adrexia> probably very very true
175: [04:28:39] <spronk> Blacklite, so much iwn
176: [04:28:40] <spronk> win
177: [04:29:30] <Blacklite> in fact if you just search "ugly" through the whole code base you get quite a bit
178: [04:29:37] <Blacklite> "// Getting the title from the URL is pretty ugly, but it works for now"
179: [04:29:45] <Blacklite> "// IE 8 has a bug where dynamically loading stylesheets would produce a 1 item remaining bug 1652 // This fix seems to resolve that issue by realcing the document ones a stylesheet finishes loading 1653: // It's ugly but it seems to work fine."
180: [04:30:53] <zippy> Selay: flushed?
181: [04:31:32] <ss23> lol Blacklite
182: [04:31:36] <ss23> TODO: make this not shit
183: [04:31:42] <Blacklite> yeah..
184: [04:32:57] <Selay> @zippy yes, it thinks I am trying to access a draft page. the error is You must log in with your CMS password in order to view the draft or archived content .... But I have rule to allow certain url to access a function in controller. same as here http://doc.silverstripe.org/framework/en/topics/controller
185: [04:34:07] <adrexia> / The foreach is an ugly way of getting the first key :-)
186: [04:34:15] <adrexia> Love the smiley face
187: [04:34:56] <Blacklite> yeah it's kinda like
188: [04:35:34] <Tanger> So I hear SS 3.2 supports polymorphism with Dataobjects?
189: [04:35:37] <Blacklite> http://www.roflcat.com/images/cats/xDeal_With_It.jpg.pagespeed.ic.RX4hPJpUjr.jpg
190: [04:38:12] * snae has joined #silverstripe
191: [04:41:25] <snae> I’ve create a JS script which is loaded in the CMS that checks for a certain field’s value. If that value exist then another hidden. I am just using jquery to hide the element based on the element id
192: [04:42:16] * Olliepop_ quit (Ping timeout: 246 seconds)
193: [04:42:37] <snae> The above works when I’ve visited the page directly but if I visit the page from another CMS page (AJAX) then the above doesn’t fire off
194: [04:43:02] <snae> This is because the JS has already fired off when the initial page was loaded
195: [04:43:06] <micmania1> snae: can you paste your js somewhere?
196: [04:43:37] <snae> Is there a JS hook I can hook into on the page load from anotehr page (AJAX)
197: [04:44:25] <wmk> snae, how about https://github.com/unclecheese/silverstripe-display-logic
198: [04:45:35] <zippy> snae: use the display logic...
199: [04:45:45] <snae> http://www.sspaste.com/paste/show/540fd2b2be3e0
200: [04:45:54] <zippy> otherwise, might have to deal with entwine and all that goodness
201: [04:46:19] <Selay> @zippy, I just saw some restrictions have been applied to controller access by url rules. http://doc.silverstripe.org/framework/en/changelogs/3.1.0
202: [04:46:29] <snae> Line 4 fires off on page load but when the page is loaded from another page (AJAX) line 4 doesn’t fire off again
203: [04:46:44] <Selay> it is good now, I fixed
204: [04:49:09] <snae> Thanks WMK. does exactly what i need
205: [04:50:40] * Zopiclone quit (Read error: Connection reset by peer)
206: [04:53:35] * Kingy is now known as Kingy[a]
207: [04:56:51] * micmania1 has left #silverstripe
208: [04:56:54] <adrexia> <snae> you really need to use entwine if including js within the CMS
209: [04:57:19] <adrexia> but thankfully the displaylogic module should delay your need for that :D
210: [05:01:13] <Stomach_> that would be easy enough though
211: [05:03:48] <Stomach_> http://pastie.org/9540757
212: [05:05:42] <adrexia> easy for people who know entwine ;)
213: [05:06:15] <adrexia> togglefields would be better asa method inside the entwine call
214: [05:06:16] * nickmolhoek quit (Quit: nickmolhoek)
215: [05:06:19] <Blacklite> btw i managed to get my subsite woes sorted
216: [05:06:40] <Blacklite> $RelatedLinkID = new SubsitesTreeDropdownField('RelatedLinkID','Related link','Page');
217: [05:06:54] <Blacklite> $RelatedLinkID->setSubsiteID($myCondition ? 1 : 0);
218: [05:07:04] <Blacklite> $fields->addFieldToTab('Root.Main', $RelatedLinkID);
219: [05:07:14] <Blacklite> had to update subsites though
220: [05:07:15] <wmk> snae, np ;)
221: [05:07:49] <Blacklite> thanks to everyone for helping me out yesterday
222: [05:08:40] <adrexia> something liek http://pastie.org/9540778#8
223: [05:09:32] <adrexia> Blacklite congrats!
224: [05:17:53] * wmk quit (Ping timeout: 260 seconds)
225: [05:18:29] <Blacklite> whenever i ask questions here it's always for 2.4
226: [05:18:33] <Blacklite> well 99% of the time
227: [05:19:45] * Ryan-Toast quit (Quit: Ryan-Toast)
228: [05:19:58] * snae quit (Quit: snae)
229: [05:24:52] * hailwood quit (Ping timeout: 245 seconds)
230: [05:26:30] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
231: [05:30:45] * zippy quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
232: [05:34:23] * willr quit (Quit: willr)
233: [05:34:25] * guci0 quit (Ping timeout: 246 seconds)
234: [05:39:39] * Stomach_ quit (Ping timeout: 246 seconds)
235: [05:43:08] <simon_w|work> Yay, they want to keep me on!
236: [05:44:14] * Kingy[a] is now known as Kingy
237: [05:45:36] * Kingy is now known as Kingy[a]
238: [05:45:37] * Zopiclone has joined #silverstripe
239: [05:58:09] * babak has joined #silverstripe
240: [06:04:47] * Zopiclone quit (Ping timeout: 245 seconds)
241: [06:12:24] * Selay quit (Quit: Page closed)
242: [06:27:03] * vebb has joined #silverstripe
243: [06:30:44] * vebbbbbbbbbbb has joined #silverstripe
244: [06:32:40] * wmk has joined #silverstripe
245: [06:33:52] * vebb quit (Ping timeout: 240 seconds)
246: [06:35:28] * Werner_2_ has joined #silverstripe
247: [06:35:56] * ss31noob has joined #silverstripe
248: [06:36:26] * Werner_2__ has joined #silverstripe
249: [06:38:32] * wmk quit (Ping timeout: 245 seconds)
250: [06:39:11] * Werner_2__ is now known as wmk
251: [06:40:03] * Werner_2_ quit (Ping timeout: 255 seconds)
252: [06:45:14] * r_hector has joined #silverstripe
253: [07:09:32] * Shrike_Finland has joined #silverstripe
254: [07:28:38] * Zopiclone has joined #silverstripe
255: [07:30:56] * Shrike_Finland quit (Quit: Leaving.)
256: [07:39:32] * ocmnt has joined #silverstripe
257: [07:40:44] <ocmnt> howdy
258: [07:41:20] <wmk> hey ocmnt
259: [07:43:29] <ocmnt> waddup?
260: [07:45:08] * stnvh has joined #silverstripe
261: [07:48:28] <ocmnt> lol, the javascript channel is all about time and mass now all of a sudden
262: [07:51:24] <wmk> ?
263: [07:51:49] <wmk> ocmnt, happy coding atm. have to make an idea real
264: [07:53:25] <ocmnt> haha, I am just in the morning coffee
265: [07:53:29] <ocmnt> discussing physics and stuff
266: [07:53:31] <ocmnt> always good fun :)
267: [07:55:06] <wmk> time and mass.... hmm. sounds like age and weight
268: [07:57:11] * vebbbbbbbbbbb is now known as vebb
269: [08:01:00] * vebb is now known as vebbbbbbbbbbb
270: [08:02:28] * ss31noob quit (Ping timeout: 246 seconds)
271: [08:04:56] * kinglozzer has joined #silverstripe
272: [08:07:11] * Zopiclone quit (Ping timeout: 276 seconds)
273: [08:07:15] * zfmf has joined #silverstripe
274: [08:08:53] * Zopiclone has joined #silverstripe
275: [08:27:22] <ocmnt> anyone around at this moment using nginx?
276: [08:27:34] * Liquide quit ()
277: [08:28:11] * Pyurghusersk has joined #silverstripe
278: [08:29:42] <Pyurghusersk> Today: The report has 2 columns, one with the orderer and one with the stock site. But on some the stock site is empty. Obviously we need a location column where we can see where the stock is, which is either at a stock site or at the orderer's site.
279: [08:30:06] <Pyurghusersk> OKAY THEN WHATEVER YOU SAY
280: [08:30:56] <ocmnt> Pyurghusersk, so you say you are wearing stockings? :')
281: [08:35:07] * Audlex has joined #silverstripe
282: [08:36:33] * ss31noob has joined #silverstripe
283: [08:36:36] <ss31noob> hi guys.. most of my pages from 2.4 that i am migrating right now at 3.1 has a .shtml in their urlsegment.. and right now what is happening is that they returns a 404 when being access.. is there a way that i can allow the urlsegment to have a special character (i think the issue here is having a dot in the urlsegment) ?
284: [08:37:12] <ss31noob> is there some configuration in silverstripe that i need to enable or such?
285: [08:40:12] * Robke has joined #silverstripe
286: [08:40:26] <Robke> hello :) i made one page in cms as redirectorpage :)
287: [08:41:34] <Robke> how could i recognize it in template? :)
288: [08:41:44] <Robke> $RedirectorPage doesnt work :)
289: [08:43:53] * simon_w has joined #silverstripe
290: [08:44:42] <Robke> Pyurghusersk: are you there?
291: [08:46:50] <Robke> thanks i founjd the solution
292: [08:48:43] * ss31noob_ has joined #silverstripe
293: [08:49:21] <ss31noob_> did someone answered me? i wasnt able to follow since i lost my connection :(
294: [08:50:04] * ss31noob quit (Ping timeout: 246 seconds)
295: [09:13:59] <ocmnt> haha, nice burn this is: http://imgur.com/PIE4WJE
296: [09:18:33] <Robke> ocmnt: :DDDDD
297: [09:21:07] * Tanger quit (Quit: Tanger)
298: [09:22:18] * Tanger has joined #silverstripe
299: [09:22:20] * Tanger quit (Client Quit)
300: [09:23:10] <ss31noob_> is period or dot not allowed in the urlsegment of silverstripe 3 (sample.shtml) for example?
301: [09:24:22] <ss23> Yeah
302: [09:25:29] <simon_w> Bah, Amazon customer support is pathetic
303: [09:29:26] <ss23> Trudat
304: [09:30:41] <ss31noob_> ss23, is that an answer to my question? :)
305: [09:31:15] <ss23> help
306: [09:31:21] <ss23> why is someone impostering me
307: [09:31:21] <ss23> :O
308: [09:31:22] * Robke quit (Ping timeout: 246 seconds)
309: [09:31:23] <ss23> Oh wait
310: [09:31:26] <ss23> Conincidence
311: [09:31:37] <ss23> ss31noob_: Hmmmm, I amn not sure off hand how you would fix it
312: [09:31:42] <ss23> ss31noob_: But it was in response, yeah
313: [09:31:54] <ss23> Can you just update the URLs?
314: [09:38:26] <simon_w> Okay, change that. Amazon.com's customer support is shit
315: [09:38:32] <simon_w> .co.uk on the other hand, not so bad
316: [09:44:07] <ss31noob_> we have tons of urls that has a .shtml :|
317: [09:44:23] <ss31noob_> and it will took ages before we'll be finish
318: [09:44:45] <ocmnt> ss31noob_, perhaps an idea to rewrite all urls (find replace script?)
319: [09:44:55] <ocmnt> and use htaccess to redirect the old requests to the new urls?
320: [09:45:04] <ocmnt> page-name__shtml as url
321: [09:45:11] <ocmnt> and let .shtml rewrite to __shtml
322: [09:45:13] <ocmnt> or something?
323: [09:45:14] <simon_w> ss31noob_, In 3.1, extensions on URLs are ignored, so just drop the .shtml from your URLSegment
324: [09:48:40] <ocmnt> woohoo \o/ my nginx issues have resolved themselves
325: [09:48:48] <ocmnt> plesk + nginx + silverstripe IS possible
326: [09:48:57] <Pyurghusersk> ss31noob_: why are there extensions in the first place?
327: [09:48:59] <Pyurghusersk> :<
328: [09:49:29] <ss23> ocmnt: That sounds like Hell
329: [09:49:50] <ocmnt> not my hell though
330: [09:49:55] <ocmnt> I mailed the hoster, and he was like
331: [09:49:59] <ocmnt> hmmkay I can make this work
332: [09:50:03] <ocmnt> 5 minutes later, it works
333: [09:50:10] <ocmnt> issue was with 502: bad gateway on CMS
334: [09:50:37] <ocmnt> perhaps the hoster is like the devil then? :D
335: [09:51:00] <ss31noob_> it was an old seo stuff that we had way way back
336: [09:52:40] <simon_w> ocmnt, sounds like someone forgot to bump their fastcgi buffer size
337: [09:53:42] <ocmnt> might be, I never used nginx before
338: [10:07:43] * vebbbbbbbbbbb is now known as vebb
339: [10:15:54] * Zopiclone quit (Quit: Leaving.)
340: [10:19:15] <Pyurghusersk> ocmnt: you quit yesterday before I could reply, but plesk (at least when I last used it) only uses nginx as a forward proxy, not to actually process the request (apache still does that).
341: [10:19:36] <ocmnt> ah I see :)
342: [10:19:44] <Pyurghusersk> 502 bad gateway is usually to do with header buffers being too small
343: [10:20:19] <Pyurghusersk> ie, SS puts all CSS and JS requirements into the header when ajax is involved (ie, all the cms) - which causes buffer overflow issues in nginx.
344: [10:20:31] <Pyurghusersk> they probably just upped the size and now you're good.
345: [10:21:55] <ss23> (buffer overflow is not the right phrase to use there)
346: [10:22:14] <ocmnt> Pyurghusersk, I guess it was something like that. all is working now so I am happy :D
347: [10:22:20] <Pyurghusersk> well, buffer gets full, does not overflow.
348: [10:22:31] <Pyurghusersk> full buffer, still more to write, error happens instead.
349: [10:22:50] <Pyurghusersk> ss23: I know it's not technically correct term.
350: [10:24:14] <ocmnt> thanks anyway for thinking along to solve it :)
351: [10:24:18] <cloph_away> simon_w: any specific reason why you deleted my version of the nginx docu? esp. the part about setting up ssl and using filepath from URL instead of fixed main.php, the hint about fastcgi_buffer_size, hint to use expires for static stuff http://doc.silverstripe.org/framework/en/trunk/installation/nginx vs https://github.com/silverstripe/silverstripe-framework/blob/26ed69508a183c9a43f1f7b1ad563392a72c4a3f/docs/en/installation/nginx.md
352: [10:24:21] * cloph_away is now known as cloph
353: [10:27:29] * zfmf quit (Remote host closed the connection)
354: [10:27:37] <simon_w> cloph, it's confusing, incomplete and broken.
355: [10:29:37] <ss23> Awww snap
356: [10:29:39] <ss23> #fightingwords
357: [10:29:45] <cloph> care to elaborate how it is is incomplete and broken, since of course I have it in use that way since quite a while, and find your update to be incomplete instead. I'd love to understand what was bad about my version that you replaced it by one that from my perspective follows nginx best practices less than mine...
358: [10:31:57] * zfmf has joined #silverstripe
359: [10:34:06] <simon_w> Yours doesn't block access to templates, doesn't set the 404 handler, has syntax errors, doesn't block yaml
360: [10:34:49] <ss23> :O
361: [10:34:56] <ss23> cloph: Which sites od you run? Lets test! :D
362: [10:35:55] <cloph> mine did block all stuff that the at-the-time existing .htaccess did block... and even added blocking of editor's backup files..
363: [10:36:49] <cloph> yours doesn't even support ssl, so talking about what's secure... :-P
364: [10:37:04] <simon_w> Nor does yours
365: [10:37:46] <cloph> of course it does - the part that reads "optional ssl" stuff where it includes the ssl snippet.
366: [10:38:27] <simon_w> Or tries to and fails
367: [10:38:29] <cloph> But anyway, I see that you disagree completely and that I don't need to bother writing a pull request for that.
368: [10:39:46] <cloph> since adding an additional block for *ss and a missing semicolon is of course much harder than allowing execution of arbitrary php lying around..
369: [10:46:04] <simon_w> cloph, the main problem with your one was it's overly confusing
370: [10:50:09] <wmk> ocmnt, there is a nginx talk in linz, maybe you can contact the speaker
371: [10:50:31] <wmk> Zauberfisch, surely has his contact details
372: [10:51:57] <cloph> I thought the comments spread into the config did make pretty clear what each statement's job is. Just because the current version has fewer lines, doesn't make it more clear, at least not for me. Have there been actual complaints about it being confusing?
373: [10:52:40] * Otterpocket has joined #silverstripe
374: [10:52:59] <simon_w> Yes
375: [10:53:34] <cloph> OK then, I won't bother you with that anymore.
376: [10:56:18] <Otterpocket> Hi, So I have a little message system and I am displaying the messages from/to a user in a conversation type format using GroupedList, but I would like to group the list from- or to-member IDs instead of just to-member, any advice?
377: [10:56:26] * zfmf quit (Ping timeout: 272 seconds)
378: [10:57:27] * zfmf has joined #silverstripe
379: [11:01:08] <Pyurghusersk> cloph: if you're using one of the commonly found solutions, it breaks just about every single one of nginx's own docs saying "don't do this".
380: [11:01:55] <Pyurghusersk> cloph: also, .htaccess in the root only blocks some things, there is more than 1 .htaccess!
381: [11:03:35] <cloph> sure. I personally find the current version of the doc inferior to mine, and hoped to get some concrete answers, but it is an too annoying topic, so I just have my config and be happy... And surely there is more than one .htaccess, but stating a missing block of *.ss as reason to rewrite the whole thing/stating it would be not secure is just saying: "I don't want to be bothered with that stuff". I got the message.
382: [11:04:38] <Pyurghusersk> cloph: you reference this in your first line - http://wiki.nginx.org/SilverStripe
383: [11:05:00] <Pyurghusersk> which when I last checked broke about every single of the suggested best practices in the nginx tutorials.
384: [11:05:22] <cloph> I didn't delete that reference at the time, yes.
385: [11:06:33] * zfmf quit (Ping timeout: 264 seconds)
386: [11:06:57] <cloph> (that's still there in the current version as well)
387: [11:07:05] <Pyurghusersk> nginx configuration itself is very confusing, even after readign the docs.
388: [11:07:22] <Pyurghusersk> then the amount of shit floating around the internet by wordderpies setting up bad configs is even greater
389: [11:07:28] * zfmf has joined #silverstripe
390: [11:08:03] <Pyurghusersk> most configs I've seen for SS have been based around this style, or modifications of it (such as the one on the nginx wiki itself - the dangers of a wiki)
391: [11:08:16] <Pyurghusersk> for a while it was the most prolific setup.
392: [11:08:25] <Pyurghusersk> sure it works... but that didn't really make it good.
393: [11:08:49] <Pyurghusersk> in any case, apache is still faster.
394: [11:08:51] <Pyurghusersk> :P
395: [11:09:34] * Audlex quit ()
396: [11:09:41] <cloph> lol - if apache is faster for you, then you must have one of the rumored quantum computers that do apply some magic to their calculations :-)
397: [11:09:51] <ss23> cloph: Or you just realise that apache is faster?
398: [11:10:02] <ss23> cloph: I presume in this case, "faster" means "faster at doing the PHP work"
399: [11:10:50] <ss23> cloph: http://www.eschrade.com/page/why-is-fastcgi-w-nginx-so-much-faster-than-apache-w-mod_php/ has a bit of an overview of what I mean, as well as what most people do wrong when trying to compare nginx and apache
400: [11:11:00] <ss23> Of course, if you're using HHVM, nginx is obviously going to be infinitly better than Apache :D
401: [11:11:46] * zfmf quit (Ping timeout: 252 seconds)
402: [11:11:47] <cloph> if that faster comes with huge increase of memory used, and huge slowdown when handling ssl-connections, the little bit of faster php handling doesn't matter. After all typical silverstripe installation is handing out a website, i.e. one php file and 10-30 static files...
403: [11:12:11] * zfmf has joined #silverstripe
404: [11:15:08] <ss23> cloph: Yeah, pick the right tool for the job, just pointing out most people have no clue about which is faster for certain things :P
405: [11:17:24] <Colin[pi]> ss23: I had a guy once walk into our server room, see one of those big blue Sun microsystems servers, and he goes.. "Blue, eh?? OHH, THAT LOOKS FAST"
406: [11:17:32] <ss23> XD
407: [11:17:35] <Colin[pi]> it's a server not a fucking car you tool
408: [11:18:02] <Colin[pi]> same guy called buttons on the taskbar "virtual machines"
409: [11:18:09] <Colin[pi]> -_-
410: [11:20:41] * simon_w quit (Quit: Ping timeout: your mum)
411: [11:20:55] <wmk> can i block a javascript also in my template?
412: [11:21:07] <ss23> block a javascript in your template?
413: [11:21:08] <ss23> what?
414: [11:21:11] <wmk> e.g. require another jquery version than in the template
415: [11:21:16] <wmk> than in theme
416: [11:21:22] <ss23> hmm
417: [11:21:23] <ss23> Doubt it
418: [11:22:02] <Colin[pi]> can only do via Requirements::block() amirite?
419: [11:22:10] <Colin[pi]> or config or whatever these days
420: [11:22:25] <ss23> simon_w|work: I know this is a long shot, but have you ever tried doing the apigen stuff with hhvm vs php?
421: [11:22:51] <ss23> (e.g. for api.silverstripe.org)
422: [11:23:22] * r_hector quit (Quit: Leaving.)
423: [11:26:23] <wmk> hm, sad i cannot solve this in my template. well, nevermind
424: [11:26:32] <kinglozzer> wmk: Have you tried?
425: [11:27:01] <kinglozzer> In theory, any Requirements method should be available when using <% require ... IIRC...
426: [11:27:12] <wmk> hmm, in theory ;)
427: [11:27:48] <kinglozzer> <% require block(somefile.js) %> ?
428: [11:29:00] <kinglozzer> https://github.com/silverstripe/silverstripe-framework/blob/3.1/view/SSTemplateParser.php#L1866-L1868
429: [11:29:51] * zfmf quit ()
430: [11:30:09] <kinglozzer> wmk: Build it like that, so I can then break it for 3.2 when https://github.com/silverstripe/silverstripe-framework/pull/3132 is merged :D
431: [11:30:36] <kinglozzer> (I'm kidding) :P
432: [11:30:58] <wmk> hey, you can really block in template!
433: [11:31:21] * simon_w has joined #silverstripe
434: [11:31:37] <Colin[pi]> does that work? blocking in the template?
435: [11:32:22] * ThePeach has joined #silverstripe
436: [11:33:10] * wmk wonders if it's good to update to jquery 1.11, but the plugin needs at least 1.8
437: [11:33:14] <wmk> bundled. 1.7
438: [11:37:05] <wmk> Colin[pi], yes, worked
439: [11:37:12] <Colin[pi]> cool
440: [11:37:18] <wmk> next try'll be combining js in template *G*
441: [11:39:12] <wmk> kinglozzer, 10x
442: [11:39:40] <kinglozzer> wmk: Not sure if you can use arrays in template methods :(
443: [11:39:42] <kinglozzer> 10x?
444: [11:39:46] <kinglozzer> oh
445: [11:39:49] <kinglozzer> tenx?
446: [11:39:50] <kinglozzer> :P
447: [11:43:03] <kinglozzer> https://groups.google.com/forum/#!topic/silverstripe-committers/EzYN7M_dCtg
448: [11:43:10] <kinglozzer> :| I'd have shit myself
449: [11:44:30] <ss23> hahaha
450: [11:44:30] <ss23> yeah
451: [11:44:30] <wmk> puh
452: [11:44:43] <ss23> He's mentioned it at work a few times
453: [11:44:47] <ss23> Sounded like it wasn't fun :P
454: [11:46:33] <kinglozzer> ss23: Damn...
455: [11:46:52] <kinglozzer> Thank god for Github support :P
456: [11:48:57] * Nafetsch has joined #silverstripe
457: [11:55:41] <wmk> argh jquery!
458: [11:56:36] <wmk> TypeError: $ is not a function
459: [11:57:07] <Pyurghusersk> cloph: nope, just turn off .htaccess.
460: [11:57:23] <Pyurghusersk> mod_php is faster than fcgi, and apache is faster than nginx.
461: [11:57:53] <wmk> apache is faster??
462: [11:57:54] <Pyurghusersk> it may not handle so many requests per second, but it's faster (if you're a benchmarking microsecond ubernerd).
463: [11:58:31] <cloph> wmk: all depends on what you're looking at.
464: [11:58:53] <Pyurghusersk> wmk: yeh, googles.
465: [11:58:55] <wmk> cloph, well, if we use staticpublisher i guess it's fast as hell
466: [11:59:02] <kinglozzer> Pyurghusersk: You'd really love this Lemonstand site
467: [11:59:12] <kinglozzer> <noscript><p><strong>Error:</strong> You need to have Javascript enabled to proceed through the checkout</p></noscript>
468: [11:59:14] <cloph> There's no point if it can execute php 0.01% faster, if it spends 12% more time in dealing with connections..
469: [11:59:22] <cloph> I certainly don't want to go back to apache :-)
470: [12:05:05] <wmk> why do i need to call jQuery() inside $(function(){}) ???
471: [12:05:52] <cloph> because you want to make it clear you're suing jQuery / don't want to use the shorthand?
472: [12:06:40] <wmk> i want it short
473: [12:06:55] <wmk> i use $() for document ready two lines above
474: [12:08:24] <cloph> you only *need* to use jQuery when you used noconflict() to undo the mapping of $ → jQuery - in other cases you can freely pick between using the full label and the $ shorthand.
475: [12:09:48] <wmk> cloph, http://sspaste.com/paste/show/54103ac542417
476: [12:10:19] * UndefinedOffset has joined #silverstripe
477: [12:11:56] <wmk> $ works in line one but not inside the function
478: [12:13:08] <cloph> use ..function( $ ) { }. to pass it down.
479: [12:14:43] <wmk> other errors
480: [12:14:50] <wmk> didn't need to pass it down in past
481: [12:18:26] <cloph> using the local $ is one of the methods that jquery uses in their docu to use $ it even with noconflicts...
482: [12:21:22] <wmk> right. it's an error with the script in simply theme. maybe it doesn't like recent jquery versions
483: [12:22:26] <wmk> cloph, thanks a lot
484: [12:25:51] <ocmnt> how to set translations for the formlabels in frontend?
485: [12:26:41] <ocmnt> can I just do
486: [12:27:14] <ocmnt> TextField::create('FieldName', _t("Namespace.Entity","Field Name"))
487: [12:27:14] <ocmnt> ?
488: [12:27:37] <wmk> or use fieldLabels() method if already used
489: [12:27:47] <wmk> but of course, _t() should work
490: [12:27:48] <ocmnt> not using fieldlabels currently
491: [12:27:54] <ocmnt> kk :)
492: [12:28:14] <wmk> sometimes fieldlabels concentrates the stuff on one place.
493: [12:28:18] <wmk> and scaffolding uses it, too
494: [12:31:20] <ocmnt> works like a charm :)
495: [12:33:09] <wmk> doesn't look themedCSS in the modules css folder if it doesn't find a file in the theme?
496: [12:38:35] <wmk> note to myself: pass modulename as second param to themedCSS
497: [12:44:03] * simon_w quit (Quit: Ping timeout: your mum)
498: [12:48:46] <wmk> .typography .onepage article * {
499: [12:48:46] <wmk> color: inherit;
500: [12:48:46] <wmk> }
501: [12:48:57] <wmk> i need to put .typography before my definition.
502: [12:49:11] <wmk> this way it takes the color defined in the article element
503: [12:51:04] <wmk> oops, wrong chat, sorry
504: [12:52:51] <ocmnt> tssk :P
505: [13:03:06] * Error404NotFound quit (Ping timeout: 246 seconds)
506: [13:05:45] * Error404NotFound has joined #silverstripe
507: [13:16:56] <NETim> morning. Idiot question, SS2.4, using a dataobject::get on an object that extends dataobject, how do i get the ID?
508: [13:18:12] <NETim> I should also point out that for some reason $obj->ID returns null
509: [13:18:37] <wmk> guess it's not loaded
510: [13:18:53] <NETim> guess again. the dataobject get returns the object
511: [13:19:14] <wmk> var_dump($obj)
512: [13:19:15] <NETim> returns a dataobjectset
513: [13:19:21] <wmk> aaahhhh
514: [13:19:34] <wmk> if you need one you may use DataObject::get_one()
515: [13:19:48] <wmk> DO::get() always returns a dataobjectset, even if it's only one
516: [13:20:31] <NETim> just realised that. Must not have had enough coffee yet.
517: [13:20:44] <wmk> jup. just making another one over here
518: [13:21:56] <NETim> Our coffee machine is out of action at the moment. Productivity is noticeably down.
519: [13:22:20] <wmk> OMG!
520: [13:22:27] <wmk> use filter coffee
521: [13:26:49] <NETim> don't have a filter :(
522: [13:28:07] * Colin[pi] quit (Ping timeout: 245 seconds)
523: [13:34:50] <NETim> fixed it.
524: [13:37:42] <wmk> NETim, in doubt put coffee powder in a big cup and add hot water
525: [13:37:56] <wmk> and be careful while drinking ;)
526: [13:41:16] * NETim quit (Ping timeout: 246 seconds)
527: [13:41:42] * catcher has joined #silverstripe
528: [13:48:00] <kinglozzer> http://thenounproject.com/ is awesome
529: [13:48:19] <kinglozzer> Tricky to find the free ones (I'm a cheap bastard), but there are loads of good ones in there
530: [13:48:21] <kinglozzer> png / svg
531: [13:49:51] * mento has joined #silverstripe
532: [13:54:13] * NETim has joined #silverstripe
533: [13:54:41] <NETim> ok, anyone know of a way in 2.4 to get a parent page of a specific class?
534: [13:55:10] <NETim> so a destination page has a few parents, one of which is a region page. Thoughts on getting the ID of the region page?
535: [13:55:30] <wmk> recoursively
536: [13:56:31] <wmk> do <check pagetype> while parent = current->parent
537: [13:57:23] <wmk> or check on creation / on save and write to a db field
538: [13:58:28] * vebb quit (Quit: preprocessor-irc-cli)
539: [14:04:09] <NETim> Should point out that this is in the controller.
540: [14:04:20] <NETim> Need to get the region page to format the response.
541: [14:04:41] <NETim> the dataobjects already exist, I just need to get them.
542: [14:05:34] <wmk> jup, but it's just "look at parent, if it doesn't fit look at parent's parent, rinse, repeat'
543: [14:06:09] <NETim> That's where I was thinking of heading. Just wanted to check that there wasn't a gizmo() that I hadn't come across.
544: [14:10:34] <wmk> if you need it all the time go and write it to db
545: [14:11:38] <NETim> could do. will see how the climbing search works.
546: [14:26:09] <wmk> can i put an key=>value array in config.yml?
547: [14:26:42] <catcher> wmk, yep, colon separated
548: [15:02:44] <Pyurghusersk> wmk: yes <% require block(...) %>
549: [15:04:19] <wmk> Pyurghusersk, yup, it's an undocumented feature...
550: [15:04:35] <Pyurghusersk> [12:30] <wmk> hey, you can really block in template!
551: [15:04:38] <Pyurghusersk> oh too late :<
552: [15:05:10] <Pyurghusersk> wmk: all (well most) of the requirements things work in templates.
553: [15:05:11] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
554: [15:05:35] <Pyurghusersk> you can <% requirements Clear %> I think, although that may not work.
555: [15:11:31] <Pyurghusersk> shit I'm tired, I'm no thinking properly.
556: [15:11:40] <Pyurghusersk> not*
557: [15:13:02] * mento quit (Ping timeout: 246 seconds)
558: [15:13:39] <Zauberfisch> kinglozzer: agreed
559: [15:14:34] <Zauberfisch> kinglozzer: you might also want to check out http://www.flaticon.com/
560: [15:19:16] * toddvalentine has joined #silverstripe
561: [15:20:04] <kinglozzer> ty Zauberfisch, are they all creative commons?
562: [15:20:34] * StefanLehmann quit (Read error: Connection reset by peer)
563: [15:21:14] <Zauberfisch> haven't checkednot sure if all of them are
564: [15:21:41] <Zauberfisch> but one of my designers uses it queit a lot, and has so far only asked me to use icons that where cc
565: [15:22:42] <Zauberfisch> anyway, gotta go
566: [15:22:44] <Zauberfisch> buy guys
567: [15:23:45] <toddvalentine> Hey everyone. I have SS 3.1 on a 8GB Digital Ocean server. We have a couple other sites on the this droplet as well. When we do a post to twitter and get even a slight click through to our site, everything slows to a crawl. I have never used Varnish or Cloudflare before. Does anyone have any suggestions on which to use ( or both )? Any gotchas to look out for?
568: [15:26:01] * Nafetsch quit (Remote host closed the connection)
569: [15:26:15] <kinglozzer> toddvalentine: Have never used either, but I had a similar issue before on DO (not caused by twitter). Used NewRelic server monitoring (it's free) to track what was eating up CPU and memory.
570: [15:26:46] <kinglozzer> Unless you think there's nothing "wrong" as such, just high traffic
571: [15:27:01] <kinglozzer> Static publishing is your friend :)
572: [15:28:48] <toddvalentine> No, something is wrong for sure. I have everything I can partially cached and the sites still are slow. I'm not sure static publishing is an option for us as we have frequently updated content.
573: [15:30:06] <kinglozzer> toddvalentine: Ours turned out to be an apache configuration issue
574: [15:30:23] <kinglozzer> Apache would consume more and more memory, to the point where the droplet would run out and start killing random process to try to free some
575: [15:31:01] <kinglozzer> tldr; mpm_prefork - MaxConnectionsPerChild was set to 0 (no limit), this caused havoc under higher loads
576: [15:31:44] <toddvalentine> kinglozzer: thanks. I will check this in the apache config.
577: [15:34:24] <toddvalentine> Strange thing is we had the same sites ( albeit a SS 2.4 site vs 3.1 ) on an 8GB Media Temple DV and never had issues. I've seen folks mention that the configuration in 3.1 can be a bottleneck. Is 3.1 a great deal more resource hungry?
578: [15:36:18] <kinglozzer> I've honestly no idea, I've hardly ever used 2.4 thankfully :P
579: [15:38:21] <toddvalentine> kinglozzer: were you referring to the MaxRequestsPerChild setting in apache config? Not seeing a MaxConnectionsPerChild.
580: [15:39:53] <kinglozzer> toddvalentine: Nope, MaxConnectionsPerChild. You might not have the module loaded (though I think it's loaded by default in the preconfigured droplets). It's in /etc/apache2/mods-enabled/mpm_prefork.conf
581: [15:40:32] <toddvalentine> Ok. Thaks
582: [15:45:58] * jenniferaslan has joined #silverstripe
583: [15:53:42] * Pyurghusersk quit (Quit: Page closed)
584: [15:53:52] <ocmnt> time to go home
585: [15:53:54] <ocmnt> bubye
586: [15:55:18] * Liquide has joined #silverstripe
587: [16:07:13] * NETim quit (Ping timeout: 246 seconds)
588: [16:15:17] * wmk quit (Ping timeout: 245 seconds)
589: [16:15:22] * Liquide quit ()
590: [16:20:42] * Liquide has joined #silverstripe
591: [16:22:28] * kinglozzer quit ()
592: [16:25:47] * stnvh quit ()
593: [16:42:34] * Otterpocket quit (Quit: WeeChat 0.4.1)
594: [17:07:44] * wmk has joined #silverstripe
595: [17:09:30] * gelignite has joined #silverstripe
596: [17:42:14] <toddvalentine> I am starting to look into static publisher. Can anyone give me a sense of if this would be a good solution for a site that adds content 3 to 4 times a day? Does running the /buildcache use alot of server resources?
597: [17:46:36] <catcher> toddvalentine, I'd go for partial caching instead.
598: [17:48:12] <toddvalentine> Cool. Thanks.
599: [17:50:32] <catcher> np
600: [17:54:55] <wmk> toddvalentine, depends on what you want to do and how many pages you have.
601: [17:55:13] <wmk> if there is dynamic content (Hello User) then i'd go for partial caching
602: [17:55:24] <ss31noob_> is there anyway that i can configure in silverstripe 3.1 that it will allow a customized url in the pages? we used to have pages with a url like this (test.com/here/123) as here/123 is set in the URL field of that page.. note that "here" is not the url of the parent page of 123..
603: [17:55:50] <wmk> if it's a static html i'd go for staticpublisher or if it's many many pages staticpublishqueue (which is something different)
604: [17:56:41] <wmk> ss31noob_, you'll have to write your own controller that handles those urls and finds the right article
605: [17:57:22] <toddvalentine> wmk: I've looked into staticpublishqueue, but saw issues related to ssl connections. Have you used the module?
606: [17:57:34] <wmk> not yet
607: [17:57:42] <wmk> was buggy with 3.1.4 should be fixed now
608: [17:58:33] <ss31noob_> wmk, so there's no configuration in ss that will allow this? :(
609: [17:59:20] <wmk> ss31noob_, not that i know of.
610: [18:15:00] <catcher> ss31noob_, if I understand you, that breaks all kinds of MVC rules. You could do a couple 301s at the server level if necessary, but that's not something you want to do a lot.
611: [18:16:44] <ss31noob_> well i just want to have a fix that old pages that has the nested url setup should still be accessible..
612: [18:17:09] <ss31noob_> i think it was an old seo legacy that we had before thats why some pages have this kind of url
613: [18:21:26] * VO_ has joined #silverstripe
614: [18:27:07] <wmk> ss31noob_, you want it additionally to the nested urls?
615: [18:27:38] * scpi has joined #silverstripe
616: [18:29:07] <ss31noob_> wmk, all i want is that i can somehow customized the URL segment and can have an input like aaaa/bbbb in it.. because right now.. if i do it.. it will return a aaaa2fbbbb.. the / is transformed to 2f..
617: [18:29:35] <wmk> hmm, urlsegment may not have / in it
618: [18:29:55] <wmk> you'd have to switch off nested controller and hack it in.
619: [18:30:01] <wmk> but nested controller depends on /
620: [18:30:31] <wmk> if you want to tell the pages an old legacy url which is cought and redirected to new url it should be possible
621: [18:30:35] <ss31noob_> i dont want to use the nested_url configuration of silverstripe because it will automatically get the parents url and use it in the page you are currently doing..
622: [18:34:08] <catcher> ss31noob_, that's how MVC works. If you're trying to preserve legacy URLs, you should do it with 301s.
623: [18:35:49] <ss31noob_> but how come that it was possible in 2.4?
624: [18:36:10] <catcher> 2.4 allowed you to put slashes in url segments?
625: [18:40:01] * VO_ quit (Quit: Page closed)
626: [18:40:06] <cloph> would having those actions work for you? Or manual director rules?
627: [18:43:42] * ThePeach quit (Quit: leaving)
628: [18:46:27] * mento has joined #silverstripe
629: [18:46:33] <wmk> crazy. when loading a site in IE i just don't get some divs rendered.
630: [18:46:40] <wmk> inspector doesn't see them
631: [18:46:53] <mento> good evening everybody
632: [18:47:42] <mento> i'm giving my ui datepicker some custom styling, but since the default theme (smoothness) gets loaded from the framework/thirdparty/ folder, it overrules my custom styling
633: [18:48:17] <mento> how can i change the order of the CSS files to be loaded in this case? It seems it adds the smoothness.css theme automatically as last CSS file in the HEAD tag
634: [18:48:52] <wmk> you can block the file via Requirements::block
635: [18:49:29] <mento> i guess i need to the that in the page controller right? Since i want to overrule it everytime
636: [18:50:06] <mento> wont it break the backend?
637: [18:52:22] <ss31noob_> catcher, i think some backend customization was made to accomodate / in the URL way back 2.4..
638: [18:52:34] <wmk> backend doesn't call the controller
639: [18:53:10] <wmk> mento, you can also block it in your frontend template <% requirement block(/path/to/javascript.js) %>
640: [18:53:56] <mento> wmk: i blocked it now, using the requirements::block in my init function on my Page Controller, seems to work as charm! thanks
641: [18:54:18] <wmk> youre welcome
642: [18:54:54] <wmk> damn. just stumbled over the published thingie....
643: [18:55:29] * catcher quit (Quit: Leaving)
644: [18:57:54] <toddvalentine> Has anyone used a cdn with SS before? How would you set it so that SS uses the CDN link instead of the link to the assets directory?
645: [18:58:38] <wmk> toddvalentine, yes ;)
646: [18:59:10] <toddvalentine> wmk: can you explain how you got everything working?
647: [18:59:43] <wmk> mom
648: [19:00:01] <toddvalentine> huh?
649: [19:00:07] <wmk> moment ;)
650: [19:04:28] <wmk> toddvalentine, https://gist.github.com/wernerkrauss/6f2019e127d4ab60d11a
651: [19:04:39] <wmk> got this running w/ 3.1
652: [19:05:05] <wmk> you can switch replacement of urls on/off and define the cdn domain in you config.yml
653: [19:07:36] <wmk> i used amazon cdn which grabs the images from my primary domain automatically
654: [19:07:41] <toddvalentine> wmk: thanks so much! Do you have your cdn set to use your content server as as the origin...
655: [19:07:47] <toddvalentine> ha!
656: [19:08:00] <toddvalentine> you just answered my question.
657: [19:08:04] <wmk> ;)
658: [19:08:29] <toddvalentine> thanks for the code. very much appreciated.
659: [19:09:06] <wmk> toddvalentine, did a blogpost long time ago about this issue... http://werner.mundraeuber.de/archives/148-Silverstripe-and-Amazon-Cloudfront-CDN
660: [19:09:36] <toddvalentine> will check it out.
661: [19:20:20] * shoaib__ quit (Ping timeout: 272 seconds)
662: [19:20:46] * shoaib__ has joined #silverstripe
663: [19:37:05] * antmas quit (Quit: Page closed)
664: [19:42:23] * Azure quit (Excess Flood)
665: [19:46:16] * harold__ has joined #silverstripe
666: [19:46:32] <harold__> is this possible in my template
667: [19:46:38] <harold__> consider this html
668: [19:46:47] <harold__> <div class="item">
669: [19:47:11] <harold__> if my loop is at $pos==1 I want to output <div class="item active">
670: [19:47:20] <harold__> something like: <div class="item <% if $Pos==1 active %>">
671: [19:49:10] <wmk> <% if $First %>
672: [19:50:09] <harold__> nice!
673: [19:50:10] <wmk> harold__, http://doc.silverstripe.org/framework/en/reference/templates#looping-over-lists
674: [19:50:26] <wmk> it becomes $Even $Odd !!
675: [19:50:31] <wmk> *duck*
676: [19:50:41] <harold__> I got my carousel working btw
677: [19:50:43] <harold__> working nicely
678: [19:50:46] <harold__> very slick
679: [19:50:57] <wmk> nice
680: [19:51:03] <wmk> example available?
681: [19:51:14] <wmk> ah, the many_many carousel
682: [19:54:08] <harold__> yes remember last night you were helping
683: [19:54:18] <harold__> i set up the admin cms control easily
684: [19:59:07] <wmk> fine.
685: [20:00:56] * Stomach has joined #silverstripe
686: [20:03:31] * Olliepop has joined #silverstripe
687: [20:05:48] * Kingy[a] is now known as Kingy
688: [20:07:00] <Kingy> morning
689: [20:07:40] <wmk> evening
690: [20:09:01] * UndefinedOffset quit (Quit: Leaving.)
691: [20:12:51] <Kingy> don't ya love customers
692: [20:12:58] <Kingy> oh we want this simple page but please don't spend much time on it
693: [20:13:07] <Kingy> do the work.. ok here it is.
694: [20:13:16] <Kingy> "oh no we want this this and this instead"
695: [20:13:20] <Kingy> ffff
696: [20:13:26] <Stomach> lol :D
697: [20:15:15] * Kingy thinks they need to look up definitions for simple and short period of time
698: [20:22:52] <wmk> Kingy, cool, extra money for extra features
699: [20:23:08] <Kingy> if only that's how it worked
700: [20:23:18] <Kingy> i'm just the lowly developer in an organisation
701: [20:26:15] * Olliepop_ has joined #silverstripe
702: [20:27:33] <Olliepop_> Morning! Have any of you received the console error message "ERR_INVALID_CHUNKED_ENCODING " when trying to load an item from a gridfield in admin?
703: [20:28:40] * Olliepop quit (Ping timeout: 246 seconds)
704: [20:30:06] <Olliepop_> its so weird... can click 'edit' to go to the actual cms page
705: [20:30:13] <Olliepop_> but not ajax load it
706: [20:34:49] * Ryan-Toast has joined #silverstripe
707: [20:42:40] * harold__ quit (Ping timeout: 246 seconds)
708: [20:42:58] * nickmolhoek has joined #silverstripe
709: [20:55:52] <wmk> Olliepop_, check if there are other errors
710: [20:56:09] <wmk> error log or firebug -> network -> http answer
711: [21:04:29] * micmania1 has joined #silverstripe
712: [21:07:46] * Azure has joined #silverstripe
713: [21:11:43] <wmk> ah, font-face... get errors shown in nice fonts
714: [21:12:52] * willr has joined #silverstripe
715: [21:12:56] <ss31noob_> goodnight everyone! thanks for the help again :)
716: [21:16:16] <wmk> yeah, time for bed. cu tomorrow gents
717: [21:16:45] * hailwood has joined #silverstripe
718: [21:23:57] <Ryan-Toast> mmm dat fresh npm install
719: [21:26:23] * ss31noob_ quit (Quit: Page closed)
720: [21:29:10] * gelignite quit (Quit: http://bit.ly/nkczDT)
721: [21:29:57] * willr quit (Quit: willr)
722: [21:32:27] * willr has joined #silverstripe
723: [21:32:41] <Stomach> sometimes npm install is bad
724: [21:32:43] <Stomach> npm install
725: [21:32:48] <Stomach> .... 400mb later
726: [21:33:13] <Kingy> downloading half the internet
727: [21:33:14] <Kingy> love it
728: [21:36:00] * scpi quit (Ping timeout: 255 seconds)
729: [21:37:45] * mento quit (Quit: Page closed)
730: [21:42:48] * wmk quit (Ping timeout: 252 seconds)
731: [21:45:59] * oetiker quit (Ping timeout: 272 seconds)
732: [22:00:23] * toddvalentine quit ()
733: [22:00:30] * zippy has joined #silverstripe
734: [22:00:33] <zippy> I can not believe, there is no <td colspan="*">
735: [22:02:29] <Stomach> tables are fun
736: [22:06:41] * oetiker has joined #silverstripe
737: [22:18:25] * UncleCheese has joined #silverstripe
738: [22:31:28] * Jakx has joined #silverstripe
739: [22:31:34] <Jakx> mornin'
740: [22:32:13] <Jakx> Whats the best spam protection trick for user defined forms?
741: [22:46:18] <zippy> a spam protection module
742: [22:46:44] <Jakx> zippy, nice. ok. ty.
743: [22:46:52] <zippy> np
744: [22:47:12] <zippy> add the module, then add in mollum or math
745: [22:48:51] <zippy> Jakx: I was getting a couple an hour on a clients one, and added the math one - I just logged in and checked (did it a month ago) and it's been fine
746: [22:49:09] <simon_w|work> ss23, nope
747: [22:56:33] * UncleCheese quit (Ping timeout: 255 seconds)
748: [22:57:11] * UncleCheese has joined #silverstripe
749: [23:07:40] <Jakx> hmmm. Running 3.1.6, installed the spam protection module, implemented it at _config.yml, and can see the spam protection field in the list of available fields in the user defined form....
750: [23:08:12] <Jakx> But when I add a spam protection field: Uncaught ReflectionException: Class does not exist.
751: [23:08:33] <Jakx> It's flagging, $reflector = new ReflectionClass($class); line 14 of \framework\control\injector\InjectionCreator.php
752: [23:08:42] <micmania1> Jakx: ?flush=1
753: [23:09:32] <Jakx> micmania1, yep, tried just now, and had done a flush moments ago when I updated to 3.1.6
754: [23:09:41] <Jakx> I updated to try and resolve this error.
755: [23:10:02] <micmania1> does the class exist in your repo?
756: [23:10:25] * vebb has joined #silverstripe
757: [23:11:09] <zippy> oh I had that issue the other day
758: [23:11:34] <zippy> it was because I hadn't done a dev build
759: [23:11:56] <Jakx> zippy, I wish mine was that simple.
760: [23:12:07] <Jakx> micmania1, can't seem to find ReflectionClass in my repo :S
761: [23:12:42] <micmania1> not ReflectionClass. It’ll be the $class its passing to reflection class that doesn’t exist.
762: [23:12:45] <zippy> Jakx: ReflectionClass is a php class - the real class name is in $class
763: [23:13:28] <Jakx> oh got it. Cheers. Man... finding this amongst other peoples modules is gonna be a pain.
764: [23:13:29] <zippy> Jakx: I found when I had the issue, I had added the field before devbuilding, which meant the class column in the EditableFields didn't have the spam protection class in it, so it was null or empty or something - so once I dev built I had to edit that row in the Db ai think
765: [23:13:53] <zippy> I think I just removed the field from the userable forms, flush and built again, then added it
766: [23:14:32] * jenniferaslan quit (Remote host closed the connection)
767: [23:17:30] * azureRaven has joined #silverstripe
768: [23:18:04] <azureRaven> When I'm writing the InlineCSS requirement, why is my php variable not working?
769: [23:18:30] <azureRaven> Everytime I try to write $HeaderGraphic.URL to show, it just shows up blank.
770: [23:18:50] <Jakx> zippy, I just axed the forms from my db, and ran a build. Worked very well, tyvm
771: [23:18:58] <azureRaven> Sorry, customCSS in the php
772: [23:19:16] <Jakx> micmania1, turns out I was implementing a spam module that I hadn't installed yet using the spam protection module config.
773: [23:19:25] <Jakx> micmania1, thanks for pointing me in the right direction.
774: [23:19:32] <simon_w|work> azureRaven, you probably want $this->HeaderGraphic()->URL
775: [23:19:40] <azureRaven> I'll try that @simon_w|work
776: [23:24:47] <azureRaven> simon_w|work you were right. Thought I had tried that. Thanks!
777: [23:25:58] <simon_w|work> There we go. kinglozzer's link doesn't work for plebs any more ;)\
778: [23:29:37] * Olliepop_ quit (Ping timeout: 246 seconds)
779: [23:39:30] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
780: [23:39:32] * babak quit (Quit: Connection closed for inactivity)
781: [23:40:39] <adrexia> any solr experts?
782: [23:41:05] <adrexia> alternatively, anyone know for certain that this module works with solr 4? https://github.com/silverstripe-labs/silverstripe-textextraction
783: [23:43:01] * Colin[pi] has joined #silverstripe
784: [23:44:51] <adrexia> no one huh? I don't blame you
785: [23:45:47] <Colin[pi]> morning all
786: [23:46:01] <adrexia> mornin'
787: [23:46:20] <Colin[pi]> you just know it's going to be a great day when the first email you see is from a client with the subject "I've done something really dumb"
788: [23:47:59] <simon_w|work> At least they're admitting it was them to start with
789: [23:47:59] * cloph_away has joined #silverstripe
790: [23:48:12] * cloph quit (Ping timeout: 245 seconds)
791: [23:48:20] * cloph_away is now known as cloph
792: [23:48:22] <Colin[pi]> simon_w|work: lol true
793: [23:49:48] <Colin[pi]> I see what they've done, they've deleted their member record - smooth
794: [23:55:54] <Stomach> adrexia - I'm trying to install solr on a server right now
795: [23:55:59] <Stomach> and my god is it not fun
796: [23:57:24] <adrexia> <Stomach we're having trouble with in document search
797: [23:57:48] <adrexia> :-/
798: [23:58:20] <adrexia> (when I say "we" I've mostly only been involved with debugging)
799: [23:58:34] <adrexia> Not even sure if we are approaching nit from the rigth angle
800: [23:58:47] <adrexia> *it
801: [23:58:51] <Stomach> its pretty obtuse

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