#silverstripe IRC Log

IRC log for 14 April 2014

All timestamps are in UTC.

1: [00:03:22] <Colin[pi]> NZ guys, opinions on this? http://www.kirraholidays.com/product-detail.php?product=6-Day-North-Island-Discovery
2: [00:04:02] <simon_w> Colin[pi], fairly sure all those stops have BurgerFuel
3: [00:04:05] <Colin[pi]> lol
4: [00:05:07] <Colin[pi]> was considering travelling in a campervan but eh... a package like this would be easier
5: [00:05:31] <Stomach> do the campervan! way more enjoyable
6: [00:05:51] <Colin[pi]> really?
7: [00:06:08] <Stomach> well it means you don't have to stay a night in napier
8: [00:06:09] <Stomach> :D
9: [00:06:29] <Colin[pi]> :\
10: [00:07:03] <Stomach> nah that looks pretty good
11: [00:07:13] <Colin[pi]> ooh this one has 7 nights accom http://www.purejourneys.com/journeys/auckland/taste-of-the-north/
12: [00:07:20] <Colin[pi]> about the same price
13: [00:07:51] <Stomach> that map of new zealand...
14: [00:07:52] <Stomach> :S
15: [00:08:11] <Colin[pi]> what, it doesn't really look like that??
16: [00:08:13] <Colin[pi]> :o
17: [00:08:29] <Colin[pi]> here I was expecting a cartoony funland! ;_;
18: [00:08:40] <Stomach> uh oh
19: [00:08:46] <Stomach> prepare to be disappointed
20: [00:08:55] <Colin[pi]> lol
21: [00:11:27] * Ryan-Toast has joined #silverstripe
22: [00:16:36] <UncleCheese_> any wellingtonians have a macbook they're looking to sell?
23: [00:16:45] <UncleCheese_> my son threw a block through my display :(
24: [00:17:03] <simon_w> Insurance is your friend :p
25: [00:17:11] <irogue> Colin[pi]: no hamilton!
26: [00:17:11] <spronk> threw a block?
27: [00:17:16] <spronk> 'some block :|
28: [00:17:25] <simon_w> irogue, is a good thing!
29: [00:17:26] <UncleCheese_> not worth it on a 4 year old laptop, simon_w
30: [00:19:08] <Bollig|DesignCty> he must have quite an arm UncleCheese_!
31: [00:19:16] <UncleCheese_> have you seen those screens?
32: [00:19:27] <UncleCheese_> a stiff wind will take one out
33: [00:19:30] <Stomach> go Gus!
34: [00:19:32] <Stomach> woooooo
35: [00:19:35] <UncleCheese_> :)
36: [00:19:45] <UncleCheese_> I think he's a Linux guy
37: [00:19:51] <Stomach> hahaha :D
38: [00:19:58] <Bollig|DesignCty> lol
39: [00:20:01] <jaredkipe> templates needed ‘SideBar’ => ‘SideBarView’
40: [00:20:05] <UncleCheese_> "Overpriced piece of hipster crap!"
41: [00:20:09] <jaredkipe> which ironically is not the first time I’ve ran accross this
42: [00:20:16] <irogue> simon_w: the asian tourist buses all stop off here on the way from auckland to rotorua
43: [00:20:47] <irogue> there's an all you can eat chinese smorgasbord just up the road from me
44: [00:20:51] <spronk> hmm
45: [00:20:58] <irogue> every day the carpark is full of tour buses
46: [00:21:01] <spronk> strongly contempalting ending my experiment with node and building this in hack instead :|
47: [00:21:12] <irogue> i think they must do some kickbacks to the bus drivers
48: [00:22:02] <simon_w> spronk, do it!
49: [00:22:15] <jaredkipe> anyone familiar with the new config style?
50: [00:22:33] <jaredkipe> before I had CommentingController::add_extension('CommentSpamProtection'); in _config.php
51: [00:22:40] <jaredkipe> had to remove
52: [00:24:01] <spronk> php ecosystem seems healthier than node
53: [00:24:17] <spronk> which is hilarious
54: [00:24:50] <Colin[pi]> irogue: lol I thought the bypass of Hamilton was deliberate ;)
55: [00:50:16] * irogue sighs
56: [00:50:25] <irogue> police radio really makes you lose faith in humanity
57: [00:52:47] * zagoodwin has joined #silverstripe
58: [00:54:37] * Ryan-Toast has left #silverstripe
59: [00:54:37] <Colin[pi]> irogue: already lost it a long time ago
60: [00:56:57] <spronk> noone ever answers your questions in #node.js :(
61: [00:57:40] <zagoodwin> Hey I'm moving a SilverStripe site to a new host but I'm getting this "Uncaught Zend_Cache_Exception: cache_dir is not writable"
62: [00:57:53] * joelpittet has joined #silverstripe
63: [00:58:13] <zagoodwin> anyone encountered / resolved this problem before?
64: [00:58:34] <Colin[pi]> zagoodwin: permissions
65: [01:05:37] <simon_w> irogue, just listen to Wellington's then!
66: [01:05:44] <simon_w> All this garbled white noise :p
67: [01:08:50] * Azure quit (Quit: Blue Sky Fish)
68: [01:10:16] * UncleCheese_ quit (Quit: UncleCheese_)
69: [01:10:25] <irogue> simon_w: haha
70: [01:11:14] <irogue> simon_w: instead of people calling 111 to say "i'm a witness at court on thursday but police are gonna have to pick me up cos i'm gonna spend my bus money on ciggies and booze"
71: [01:11:47] <simon_w> irogue, oh Hamilton
72: [01:12:16] * liam_ has joined #silverstripe
73: [01:12:23] <simon_w> Can you make a live stream of feed?
74: [01:12:40] * liam_ is now known as Guest84456
75: [01:13:06] <Guest84456> hi I recently upgrade to mavericks and now I can't run my SS websites.... I get this error when trying to run the site or a dev/build
76: [01:13:06] <Guest84456> [User Error] Couldn't run query: SHOW FULL FIELDS IN "File" Table 'ss_leads_new.file' doesn't exist
77: [01:13:17] <Guest84456> any ideas how to fix it?
78: [01:13:34] <simon_w> Guest84456, sounds like the database doesn't exist any more
79: [01:15:03] <Guest84456> simon_w: hmm weird. If I run "SHOW FULL TABLES" all of the tables are listed... however when I try query one it says it doesnt exist
80: [01:20:29] <Guest84456> ok I think its something to do with using a different version of mysql with old db files... nvm I will just use a new db
81: [01:21:21] * Azure has joined #silverstripe
82: [01:27:18] * zagoodwin quit (Ping timeout: 240 seconds)
83: [01:31:13] * joelpittet quit (Remote host closed the connection)
84: [01:40:22] <pippy> Guest84456: sounds like a db config issue
85: [01:40:42] <pippy> you'll have to edit your db so it ignores case sensitive table names i think
86: [01:40:47] * robert__ has joined #silverstripe
87: [01:40:47] * robert__ quit (Changing host)
88: [01:40:47] * robert__ has joined #silverstripe
89: [01:46:55] * robert__ is now known as robert_
90: [01:51:21] <juliezygote> hey guys, i'm struggling to find a reasonable explanation of what a themeable style sheet is
91: [02:03:01] <Stomach> does GridField not take an ArrayList, only a DataList?
92: [02:03:41] <simon_w> Stomach, it should work with ArrayList
93: [02:03:48] <simon_w> juliezygote, um, any context for that?
94: [02:04:07] * SightUnseen has joined #silverstripe
95: [02:04:18] * SightUnseen has left #silverstripe
96: [02:07:18] <Stomach> simon_w - can you see any problem with this: http://pastebin.com/4s1gK8qX
97: [02:07:33] <Stomach> the model admin works when I don't have the ArrayList
98: [02:08:35] <simon_w> And what happens when you do?
99: [02:08:41] <Colin[pi]> "Colin your invoices are very confusing, can you show me what each is for?" "Sure, it's in the description text at the bottom of the invoice." "Oh."
100: [02:08:54] * Colin[pi] smashes head into desk
101: [02:09:14] <Stomach> i get no records shown, but the pagination still says 24 pages
102: [02:14:09] <Stomach> sighface.
103: [02:34:34] * UncleCheese has joined #silverstripe
104: [02:36:41] <simon_w> Stomach, I'd try building up the config from scratch, adding one component at a time, and seeing which ones break it
105: [02:37:43] <Stomach> will do that - the outcome expected is that setting them to be a part of an array list like that should work right?
106: [02:38:19] <pippy> Did silverstripe always use Scrutinizer on github?
107: [02:38:37] <ss23> pippy: Not *always*, but for a while now
108: [02:39:49] <pippy> I see. I vaguely remember seeing travis on it
109: [02:40:04] <Stomach> travis is still in use isnt it?
110: [02:40:19] <simon_w> yes
111: [02:40:58] * Ryan-Toast has joined #silverstripe
112: [02:44:12] * Ryan-Toast quit (Client Quit)
113: [02:44:44] <juliezygote> how would i go about changing my page template so i can hide my header when it's Security/* so the login form looks nicer
114: [02:45:26] <simon_w> juliezygote, <% if $ID > 0 %><% include Header %><% end_if %>
115: [02:46:31] <juliezygote> but wont $ID be around for someone logged in trying to look at the normal site?
116: [02:46:43] <juliezygote> like if i have the admin page and a site page open in 2 tabs
117: [02:46:57] <Bollig|DesignCty> can we change the location of the silverstripe.log creation? I wanted to put it above root level bit I can't seem to get the code to do it, even with an absolute path...
118: [02:47:04] <simon_w> juliezygote, hence the > 0. Security specifically sets ID to a negative number
119: [02:47:14] <juliezygote> okay sweet as
120: [02:47:24] <simon_w> Bollig|DesignCty, relative path with ../ stuff in it
121: [02:48:31] <Bollig|DesignCty> aweomse, thanks! although it's kinda annoying if the path depths vary… no absolute option simon_w?
122: [02:49:21] <simon_w> Yeah. Would be easy enough to write a patch to add absolute path support
123: [02:55:50] <Stomach> simon_w - turned out it was a missing canView() on the object and I was logged into the CMS with a user without full administrative rights
124: [02:55:53] <Stomach> man thats annoying
125: [03:02:50] <ss23> 4 minutes for /dev/build isn't normal
126: [03:02:53] <ss23> But on postgresql it is.
127: [03:02:58] <ss23> pgsql, not even once.
128: [03:03:31] <ss23> srsly how the shit is this even so slow, simon_w
129: [03:03:47] <simon_w> Doing it wrong
130: [03:04:48] <ss23> I aint doin shit
131: [03:04:52] <ss23> It's doing shit wrong
132: [03:05:55] <simon_w> 1.92s seconds to dev/build on this postgres site I've got :p
133: [03:05:57] <ss23> VACUUM FULL ANALYZE "Member"
134: [03:05:58] <ss23> 2225.9ms
135: [03:06:02] <ss23> Guess this is the slow part?
136: [03:06:08] <simon_w> Probably
137: [03:06:12] <ss23> why slow
138: [03:06:15] <ss23> how to make fast like you, simon_w
139: [03:06:18] <simon_w> How big's Memebr?
140: [03:06:28] <ss23> big
141: [03:06:37] <ss23> I would tell you, but it will take 15 minutes to figure out how to get a psql shell
142: [03:07:56] <simon_w> sudo -u postgres psql database name
143: [03:07:57] <ss23> select count(*) -> 17492 @ simon_w
144: [03:08:01] <simon_w> What SS version?
145: [03:09:21] <ss23> 3.0.x
146: [03:09:44] <simon_w> SS_Database::$check_and_repair_on_build = false;
147: [03:10:30] <ss23> simon_w: Well that doesn't fix all of my problems, since the main problem I have is postgres being slow as shit regardless :P
148: [03:10:37] <ss23> but ty, will make dev easier I guess
149: [03:11:38] <simon_w> We're basically running a stock-configured postgres (9.1 and 9.3) and it's responding faster than MySQL on our dedicated DB server does
150: [03:11:52] <ss23> yeah, idk why all our postgres sites are slow as fuck
151: [03:12:13] <simon_w> I'm guess the person that set them up originally tried being way too fancy, and screwed them over
152: [03:12:23] <ss23> 100% stock, no fancy
153: [03:18:02] <ss23> I feel like we need to get shakey
154: [03:18:13] <ss23> simon_w needs a leaving quake
155: [03:18:13] <ss23> :D
156: [03:23:10] * cloph_away has joined #silverstripe
157: [03:23:35] * cloph quit (Ping timeout: 252 seconds)
158: [03:24:05] <Bollig|DesignCty> UncleCheese: you about? I have a question about kickassets for ss3 :)
159: [03:24:15] <UncleCheese> hi
160: [03:24:21] <Bollig|DesignCty> *waves*
161: [03:24:54] <Bollig|DesignCty> just querying if you actively use KA in your projects or just the default assetadmin?
162: [03:25:41] <UncleCheese> it's a mix
163: [03:25:45] <UncleCheese> i typically don't use it, though
164: [03:25:57] <Bollig|DesignCty> lol, why not! :)
165: [03:26:00] <UncleCheese> i'm working on a new version that will be heaps better and more stable
166: [03:26:02] <UncleCheese> its too buggy
167: [03:26:06] <UncleCheese> it never really got finished
168: [03:26:19] <Bollig|DesignCty> well, that was my next question actually lol
169: [03:26:57] <Bollig|DesignCty> plenty of KA 2.4 stuff that seems to be missing on KA 3, was wondering if it's worth raising tickets, submitting patches on it or just stick to the default assetadmin for now.
170: [03:27:07] <Bollig|DesignCty> Seems like you've just answered my question :)
171: [03:33:38] <simon_w> Poor Cam, already has one person not going to his meet up
172: [03:34:46] <ss23> awwww
173: [03:34:50] <ss23> poor simon_w not getting to come to meetups
174: [03:34:51] <ss23> :D
175: [03:35:22] <simon_w> Eh, it's only UncleCheese :p
176: [03:38:02] <ss23> AW SNAP
177: [03:38:59] <simon_w> Yeah, it's a marketing talk and a talk on Angular. Screw those :p
178: [03:41:24] <ss23> I'm just going for the free beer
179: [03:41:24] <ss23> :D
180: [03:42:46] <ss23> if($alias === $field || preg_match('/"' . preg_quote($alias) . '"$/', $field)) $clauses[] = $field;
181: [03:42:52] <ss23> who the fuck thought that using preg_match was a good idea there
182: [03:43:18] * simon_w slow claps
183: [03:43:23] <simon_w> blame!
184: [03:44:32] <ss23> lol
185: [03:44:38] <ss23> Geoff from Silverstripe, back in 2k9
186: [03:44:41] <ss23> wait
187: [03:44:42] <juliezygote> i don't really grok how templates/Page.ss (inncluding) templates/Layout/HomePage.ss can be used for controller mysite/code/Layout/HomePage.php (which inherits mysite/code/Page.php)
188: [03:44:43] <ss23> wrong one!
189: [03:44:49] <juliezygote> did i miss a useful document
190: [03:44:56] <ss23> It was bloody sean/halkyon in 2012!
191: [03:45:03] <juliezygote> right now my template isn't being used
192: [03:46:05] <simon_w> ss23, oh, if you want me at another hackathon, it needs to be this Friday
193: [03:46:18] <ss23> juliezygote: Probably is some docs. Gist is that it'll use templates that have the same name as the class, so if you have a class HomePage ... class HomePage_Controller, then it'll try using /templates/HomePAge.ss, then /templates/Page.ss, and for hte layout it'll do same thing, /templates/Layout/HomePAge.ss, then /templates/Layout/Page.ss
194: [03:46:33] <ss23> I'm probably wrong, but that's how it works for me juliezygote :D
195: [03:46:38] <ss23> simon_w: ehhhhhhhhh
196: [03:46:48] <ss23> simon_w: Probably a little close to organise a proper one I think :O
197: [03:47:09] <simon_w> Cam said there'll be one before I leave! Apparently he lied :p
198: [03:47:14] * UncleCheese quit (Quit: UncleCheese)
199: [03:47:19] <ss23> aw he's not on IRC
200: [03:47:22] <ss23> He's just talking to mandrew!
201: [03:47:24] <ss23> I'll poke him
202: [03:48:00] <ss23> Stephen
203: [03:48:01] <ss23> Simon says you've lied to him and now he's crying
204: [03:48:01] <ss23> 15:47
205: [03:48:02] <ss23> He said you said he would have a hackfest before he left, but Friday is the last possible day for it, and you haven't organised one
206: [03:48:04] <juliezygote> okay swet as
207: [03:48:12] <simon_w> ss23, haha
208: [03:48:14] <juliezygote> that's what i thought, i must have broken some code somewhere
209: [03:48:25] <simon_w> juliezygote, got a $Layout?
210: [03:48:31] <ss23> yeah, gotta have a $Layout!
211: [03:48:35] <simon_w> HomePage_Controller extends Page_Controller?
212: [03:52:49] <ss23> simon_w: Cam says "booooo"
213: [03:52:55] <ss23> (And now he's typing)
214: [03:53:16] <ss23> simon_w: We'll skype you into the next one, he says
215: [03:53:16] <ss23> :P
216: [03:53:22] <juliezygote> https://gist.github.com/jotham/92951292944eda08a065 this is what i've got
217: [03:53:32] <simon_w> On the ADSL I'll be on? Good luck :p
218: [03:53:40] <ss23> simon_w: but nbn, nbn!
219: [03:53:41] <ss23> :P
220: [03:54:01] <simon_w> juliezygote, have you tried flushing? (?flush=1)
221: [03:54:07] <ss23> haha
222: [03:54:09] <ss23> The infamous flush
223: [03:54:29] <juliezygote> yep - i assume i've missed a _config var or i'm actually just doing it completely wrong
224: [03:54:51] <simon_w> juliezygote, is your theme being picked up at all?
225: [03:55:11] <juliezygote> if i change my test page to Page type Home instead of Page then it goes to a generic silverstripe one, but if it's type Page it's got my normal theme Page.ss wrapper at least
226: [03:55:30] <juliezygote> also it says Home as the page type though i'd assume they are HomePage, or does it magic the name?
227: [03:56:01] <juliezygote> (my test page = the index page for the site btw)
228: [03:58:33] <simon_w> It shouldn't. Do you have a Home class too?
229: [03:59:02] <juliezygote> nope
230: [03:59:06] <juliezygote> i've got what i posted in the gist
231: [04:00:53] <ss23> simon_w: https://github.com/silverstripe/silverstripe-framework/pull/3030 -- You're probably able to tell me easily if I messed up, but yeah
232: [04:00:59] <ss23> simon_w: I figure, if tests pass, totally wurf merging
233: [04:01:00] <ss23> :D
234: [04:01:49] <ss23> Slowest part of this entire site is Config->get
235: [04:01:50] <ss23> :(
236: [04:01:53] <ss23> </3 3.0
237: [04:02:17] <simon_w> ss23, the preg_quote checked to see if $field ends with "$alias"
238: [04:02:26] <simon_w> After doing an addslashes on $alias
239: [04:02:36] <juliezygote> so i'm basically tossed into the sea at this point aye
240: [04:02:44] <ss23> simon_w: Ah, the ^, I see
241: [04:02:51] <ss23> simon_w: Rather, I notice now it doesn't have a ^ :P
242: [04:03:15] <simon_w> juliezygote, if you look in the SiteTree table, what value does the ClassName column have for the row?
243: [04:04:23] <juliezygote> HomePage
244: [04:04:47] <simon_w> Hmm, and you don't have a templates/HomePage.ss?
245: [04:05:05] <juliezygote> templates/Layout/HomePage.ss
246: [04:05:32] <juliezygote> and it's using templates/Layout/Page.ss
247: [04:05:58] <juliezygote> is there some default memeber variable i am meant to explicitly set
248: [04:06:01] <simon_w> When you changed the page type, did you Save & Publish?
249: [04:06:04] <juliezygote> yes
250: [04:06:24] <simon_w> Nah, it's all supposed to be done on the name of the Controller class
251: [04:07:36] <juliezygote> i assume i've done something stupid, sicne it seems like this is a pretty basic thing
252: [04:07:48] <juliezygote> i looked at some sites someone else has done and they have the same setup and it works fine
253: [04:08:11] <simon_w> Yeah. That it's picking up Layout/Page.ss seems to me to say it's not picking up HomePage_Controller
254: [04:08:35] <simon_w> What do you get if you stick a $ClassName in templates/Page.ss?
255: [04:08:47] <juliezygote> but it wouldn't be able to find the name 'Home Page' for the menu if it wasn't readidng that file
256: [04:08:51] <juliezygote> i'll check
257: [04:09:29] * Shrike_Finland has joined #silverstripe
258: [04:09:44] <juliezygote> HomePage
259: [04:10:10] <simon_w> And if you do $class?
260: [04:10:36] <juliezygote> HomePage_Controller
261: [04:10:52] <simon_w> Hmm, can you try flushing again? Just to make sure
262: [04:11:10] <juliezygote> haha, i may as well have a tippy bird on another machine hitting refresh on the flush link
263: [04:11:37] <juliezygote> yeah same deal, also nothing in my php error logs
264: [04:12:42] <simon_w> And the file is definitely HomePage.ss, not something like Homepage.ss?
265: [04:13:33] <juliezygote> https://gist.github.com/jotham/0c90728e9f37eb3b97fb
266: [04:14:51] <ss23> juliezygote: well I guess you be fucked, yo
267: [04:15:31] <DesignerX> hi, isn't addFieldsToTab suppose to auto create missing tabs ?
268: [04:16:00] <juliezygote> i guess i should just try reinstall it and copy the files back in eh
269: [04:17:14] <ss23> juliezygote: And you checked the theme is set properly etc?
270: [04:17:18] <juliezygote> where can i find the logic for solving the template layout resolution
271: [04:17:38] <juliezygote> it's set in the CMS, not set in the _config.php i wasn't sure why I've seen it in the _config on other sites
272: [04:17:55] <juliezygote> the main page wrapper etc works fine
273: [04:17:57] <ss23> juliezygote: Personal preference, but maybe try it in _config.php too I guess?
274: [04:18:01] <ss23> :O
275: [04:18:02] <ss23> yeah idk
276: [04:18:04] <ss23> 2complex4me3
277: [04:18:22] <Stomach> ss23 you're the only github update I've had all day and then you closed it
278: [04:18:26] <Stomach> :(
279: [04:18:26] <juliezygote> I he^Ar u
280: [04:18:54] <ss23> lol
281: [04:18:59] <ss23> Stomach: Sorry, you can re-open if you want!
282: [04:19:00] <simon_w> DesignerX, only one level
283: [04:19:19] <simon_w> DesignerX, and it won't create a sub tab of an existing tab, just a TabSet
284: [04:20:31] <Stomach> I don't even know why you would want to make silverstripe faster really ss23, its blazing as it is
285: [04:20:40] <Stomach> subsites 6 second flush ftmfw
286: [04:20:45] <juliezygote> haha
287: [04:22:05] <ss23> lol Stomach pls
288: [04:22:16] <ss23> srsly, 10 seconds on Config->get
289: [04:22:37] <Stomach> hahaha
290: [04:22:51] <Stomach> how much configuration are you doing?
291: [04:23:00] <Stomach> turning SS into an XML based system? :D
292: [04:23:02] <ss23> idk man
293: [04:23:09] <ss23> Fucked up though, more time is spent on Config->get than database
294: [04:23:10] <ss23> :/
295: [04:23:37] <Stomach> thats messy
296: [04:23:50] <Stomach> is that on all boxes, or just a specific one from 1978
297: [04:23:55] <ss23> XD
298: [04:24:13] <ss23> I only running xdebug profiler on this box, but presume on all of them
299: [04:24:21] <ss23> even if only this box, still bad
300: [04:24:40] <ss23> simon_w: Wasn't shit meant to be faster if you use YAML instead of setting statics directly or something?
301: [04:24:43] <ss23> Is this true?
302: [04:25:04] <simon_w> ss23, not with the LRU "cache"
303: [04:25:06] <Stomach> yeah, but it could just mean your box has got really bad caching or setup
304: [04:25:29] <simon_w> ss23, and it's all slow in 3.0
305: [04:25:46] <ss23> hmm
306: [04:27:15] <DesignerX> simon_w: thanks, & is there a way to hide the TabSet/Tab when it's empty ? I need to have the Tabs ready so they can be used in SubClasses
307: [04:27:44] * simon_w quit (Quit: Leaving)
308: [04:28:01] * simon_w has joined #silverstripe
309: [04:29:03] * Liquide has joined #silverstripe
310: [04:30:08] * UncleCheese has joined #silverstripe
311: [04:37:45] * Shrike_Finland quit (Quit: Leaving.)
312: [04:40:51] <juliezygote> any ideas where in the framework i can find the thing resolving the template to use for the view? i don't have a step debugger for php
313: [04:41:00] <juliezygote> have just been digging around in afearedness
314: [04:41:12] <juliezygote> must print debuggggg
315: [04:41:19] <ss23> XD
316: [04:41:25] <simon_w> SSViewer::__construct is the start of it
317: [04:41:36] <ss23> juliezygote: want to tar.gz up your entire dir, including framework etc, so I can just unroll and try it here?
318: [04:41:44] <juliezygote> sure
319: [04:43:38] <juliezygote> i bet it's something stupidly simple
320: [04:51:56] * bridgetm quit ()
321: [05:00:17] * nickmolhoek quit (Quit: nickmolhoek)
322: [05:18:01] * robert__ has joined #silverstripe
323: [05:18:02] * robert__ quit (Changing host)
324: [05:18:02] * robert__ has joined #silverstripe
325: [05:18:32] * robert_ quit (Ping timeout: 258 seconds)
326: [05:21:07] <juliezygote> well the upswing to wasting a day
327: [05:21:12] <juliezygote> is that i'm not a total fucking idiot
328: [05:21:16] <juliezygote> thanks ss23 for working it out
329: [05:21:22] <ss23> No problems! #fucksilverstripe
330: [05:21:22] <ss23> :P
331: [05:21:55] <spronk> #fuckjavascript
332: [05:22:04] <spronk> http://pastebin.com/CsRYLDui
333: [05:22:08] <spronk> HOW TO MAKE THIS RETURN SAME PROMISE ALL TIME!?
334: [05:22:15] <ss23> lol
335: [05:22:24] <spronk> MUCH IMPOSSIBLE
336: [05:22:29] <ss23> I promise I hate JavaScript!
337: [05:22:29] <spronk> SO ASYNC
338: [05:22:48] <spronk> SUCH RAGES
339: [05:22:55] <ss23> lol
340: [05:23:02] * UncleCheese quit (Quit: UncleCheese)
341: [05:23:03] <juliezygote> are you nodejs?
342: [05:23:09] <spronk> mm
343: [05:23:15] <juliezygote> you could bullshit a mutex together by doing a dry run first time
344: [05:23:23] <spronk> eugh.
345: [05:23:52] <spronk> i wish there was just a way to be like..
346: [05:23:55] <ss23> Lets play: Helpful advice, or random buzzword generator?
347: [05:24:02] <juliezygote> last week i had nodejs fuck me when i had 17k concurrent users and it wasn't releasing things cause it had no time to deal with GC
348: [05:24:07] <spronk> reenterCodeHEreInsteadOfCallback()
349: [05:24:10] <juliezygote> next node job i'll just manually gc
350: [05:24:16] <ss23> Try recalibrating the promised async callbacks when you've running in a non-threaded cloud environment
351: [05:24:18] <spronk> uguhh
352: [05:24:23] <spronk> lawl
353: [05:30:18] * an_Eskimo quit (Ping timeout: 240 seconds)
354: [05:31:13] * simon_w changed the topic to 'Welcome to #silverstripe | Ask your questions! | IRC Logs: http://ss.org.nz/logs | Dev Mailing List: http://ss.org.nz/ss-dev | Latest stable releases: http://ss.org.nz/3.1.4 and http://ss.org.nz/3.0.10 | Release Archive: http://www.silverstripe.org/release-archive/'
355: [05:31:40] * UncleCheese_ has joined #silverstripe
356: [05:31:54] <simon_w> Yay, packing company's booked
357: [05:34:49] <ss23> Yay!
358: [05:36:26] * Shrike_Finland has joined #silverstripe
359: [05:36:44] <simon_w> Man, I'm going to end up appearing to having similar hours to ss23
360: [05:41:50] <ss23> :O
361: [05:41:51] <ss23> Yeah
362: [05:41:52] <ss23> :D
363: [05:42:00] <ss23> LATE STARTS RULE
364: [05:42:01] <ss23> o/
365: [05:42:03] <ss23> EARLY DRULE
366: [05:43:23] <simon_w> Pfft
367: [05:43:45] <ss23> simon_w: Any good way to get the amount of time it took SilverStripe to get to the *start* of the template?
368: [05:44:06] <simon_w> Um, ?debug_profile or whatever it is? (If it still exists)
369: [05:44:26] <ss23> um
370: [05:44:28] <ss23> it did something....
371: [05:44:31] <ss23> It's hard to know what though
372: [05:45:09] <ss23> Whatever it is, I don't think it gives me quite what I want :(
373: [05:55:47] <ss23> simon_w: still around?
374: [05:55:57] <ss23> simon_w: This postgres site is taking 600ms just on the stock bog standard crap
375: [05:56:02] <ss23> SELECT ordinal_position, column_name, data_type, column_default, is_nullable, character_maximum_length, numeric_precision, numeric_scale FROM information_schema.columns WHERE table_name = 'Member' ORDER BY ordinal_position; 6.5ms
376: [05:56:06] <ss23> e.g. this
377: [05:56:24] <ss23> 6.5ms on every load for something that's like 'wut'
378: [05:56:40] * UncleCheese_ quit (Quit: UncleCheese_)
379: [05:59:18] * PapaBearNZ quit (Ping timeout: 240 seconds)
380: [06:03:17] * Avroceptyr has joined #silverstripe
381: [06:04:13] <juliezygote> fuck off Avroceptyr
382: [06:04:27] <juliezygote> sorry forgot what channel this was
383: [06:04:43] <Avroceptyr> "please extricate yourself promptly and without commotion" ?
384: [06:06:17] <ss23> I'm sorry
385: [06:06:24] <ss23> I'm going to have to kickban you forever for a comment like that, juliezygote
386: [06:06:27] <ss23> #zerotolerance
387: [06:06:31] <juliezygote> fair call
388: [06:06:37] <ss23> :D
389: [06:06:43] <ss23> :P
390: [06:07:33] * Avroceptyr waits for it
391: [06:07:41] <ss23> Sorry, I'm too lazy
392: [06:07:42] <Avroceptyr> One can live in hope
393: [06:07:46] <Avroceptyr> oh damn
394: [06:07:48] <ss23> I don't even have ops
395: [06:07:48] <ss23> :(
396: [06:07:57] <Avroceptyr> you're such a faker
397: [06:08:00] <ss23> XD
398: [06:10:32] <ss23> Glad postgres bailed instead of letting me do it when I mistyped 1024MB as 1024GB :O
399: [06:10:52] * violetina has joined #silverstripe
400: [06:14:35] <DesignerX> hi, is there a way to get a list of templates with filenames that start with $string ?
401: [06:21:02] <ss23> DesignerX: In your code? From memory there's some kind of "get a list of templates" option, which you could then filter yourself
402: [06:21:05] <ss23> Would that work?
403: [06:21:27] <Avroceptyr> $names = exec("find . -name \"$string*\"");
404: [06:21:30] <Avroceptyr> ehehehe
405: [06:21:34] <Avroceptyr> DO NOT DO THAT
406: [06:21:38] <Avroceptyr> but ehehehe
407: [06:22:36] * Shrike_Finland quit (Quit: Leaving.)
408: [06:22:37] <DesignerX> ss23: yep in code
409: [06:22:37] <ss23> lol
410: [06:23:43] <DesignerX> ss23: I need to provide a dropdown of possible templates in the back-end
411: [06:23:45] <ss23> DesignerX: Basically, look at what you can see in SSViewer - http://api.silverstripe.org/3.1/class-SSViewer.html - and pick something
412: [06:23:55] <ss23> Might end up doing a glob though
413: [06:24:58] <DesignerX> looks like it, I may create an exention for this
414: [06:32:56] * SightUnseen has joined #silverstripe
415: [06:35:14] * robert__ is now known as robert_
416: [06:37:54] * Guest84456 quit (Quit: Guest84456)
417: [06:44:26] * SightUnseen quit (Quit: Leaving.)
418: [06:57:26] * violetina quit (Remote host closed the connection)
419: [06:58:13] * qlex has joined #silverstripe
420: [07:12:39] * ARNHOE has joined #silverstripe
421: [07:37:37] <ss23> Anyone know off hand if you can use like <% loop MyPageClass %>?
422: [07:39:18] <Zauberfisch> ss23: probably not
423: [07:39:31] <Zauberfisch> unless you make a controller method for it
424: [07:39:42] <ss23> Zauberfisch: How does the List(PageType) work in partial caching then?
425: [07:39:42] <ss23> :O
426: [07:39:50] <Zauberfisch> good point
427: [07:40:05] <Zauberfisch> I shall find out
428: [07:40:09] <ss23> :D
429: [07:40:14] <ss23> Zauberfisch super fun
430: [07:41:42] <ss23> seems like it works
431: [07:41:42] <ss23> :D
432: [07:41:59] <Zauberfisch> loop $FooClass works?
433: [07:42:06] <ss23> loop List(PageType)
434: [07:42:07] <Zauberfisch> or loop List(FooClass)?
435: [07:42:12] <Zauberfisch> nice to know
436: [07:43:42] <ss23> This code was written by someone who started as a designer then moved into project management role
437: [07:43:55] <ss23> I just took out some code that looped over every page in the site and did "if ID != ParentID"
438: [07:44:00] <ss23> :(
439: [07:44:04] <ss23> No wonder it takes 10 seconds to load
440: [07:50:26] * guci0 has joined #silverstripe
441: [07:50:31] <guci0> Hello World!
442: [07:50:51] <Zauberfisch> ss23: haha
443: [07:51:07] <Zauberfisch> in my previous company, there was a guy who constantly did
444: [07:51:27] <irogue> ss23: holy crap
445: [07:51:28] <Zauberfisch> $obj = DataObject::get('Page', "ID = {$this->ID}");
446: [07:51:36] <ss23> Zauberfisch: pls
447: [07:51:39] <Zauberfisch> return $obj->MenuTitle;
448: [07:51:53] <ss23> oh god
449: [07:51:54] <ss23> ;_;
450: [07:51:58] <Zauberfisch> :D
451: [07:51:58] <ss23> I swear... wouldn't be surprised.
452: [07:53:04] <ss23> I like the guy, but his code is just so bad :(
453: [07:53:23] <guci0> Flexy :)
454: [07:53:32] <ss23> Hallo guci0!
455: [07:53:38] <guci0> :)
456: [07:54:12] * ocm has joined #silverstripe
457: [07:54:13] <ocm> howdy
458: [07:54:19] <Zauberfisch> blubb
459: [07:54:31] <guci0> Yo!
460: [07:55:30] <ocm> whzup?
461: [07:56:00] <ocm> heartaches because of all the blood dripping out, or did y'all skip valentines day this year aswell? :D
462: [07:56:49] <ss23> wut
463: [07:56:52] <ss23> It's Valentines day?
464: [07:56:53] <ss23> ;_;
465: [07:57:03] <Zauberfisch> wasn't that like weeks ago?
466: [07:57:10] <ocm> it was
467: [07:57:20] <ocm> but all of a sudden everyone has bleeding hearts, right?
468: [07:57:33] <Zauberfisch> ah, took me a bit to get that :D
469: [07:57:44] <ocm> get what? the heart? haha
470: [07:57:57] <ocm> stab harder, so you are sure you get the it on the first try
471: [07:57:57] <ocm> :D
472: [07:58:47] <Zauberfisch> all patched now, stab all you want :P
473: [07:58:48] * guci0 quit (Ping timeout: 240 seconds)
474: [07:59:11] <ocm> patched.. but did you get new keys?
475: [07:59:21] <ocm> otherwise the keymaker will still be able to enter
476: [08:00:25] <Zauberfisch> I am actually not sure if I ever was in danger. I patched most servers asap and didn't even try it. but on the one I did later on the "prove of concept" implementation did not work
477: [08:00:55] <Zauberfisch> i should be good. changed all relevant data
478: [08:01:00] <ocm> ah, good :)
479: [08:01:14] <ocm> I simply just don't use any ssl
480: [08:01:17] <ocm> fuck privacy and security
481: [08:01:24] <ocm> just put it all out in the open
482: [08:01:24] <ocm> :D
483: [08:01:38] <Zauberfisch> I have to admit, there where hardly any ssl sites running on my servers anyway
484: [08:02:18] * kinglozzer has joined #silverstripe
485: [08:02:34] <Zauberfisch> I am evven considering taking a weekend and walking through all my passwords of all websites and change them
486: [08:02:44] <Zauberfisch> couldn't hurt
487: [08:03:06] <kinglozzer> That's on my todo list as well ^^
488: [08:03:09] <ocm> ah, I do that on a monthly basis anyway
489: [08:03:10] <Zauberfisch> but its ~400 passwords or something
490: [08:03:25] <ss23> bah... just realised
491: [08:03:36] <ocm> still on my to do list is to automate the pass-changing process
492: [08:03:44] <ss23> <% loop List(Foo) %> if Foo != Top.Foobar ...
493: [08:03:49] <ss23> Literally does a query for every Foo
494: [08:03:49] <ocm> 400? that is an ugly lot of passwords
495: [08:03:49] <ss23> ;_;
496: [08:03:55] <Zauberfisch> ok, I should clean that up, my pass store is pretty messy with redundant entries and so
497: [08:04:08] <kinglozzer> ss23: A query for every Top.Foobar?
498: [08:04:13] <Zauberfisch> after cleanup its probably 200
499: [08:04:16] <Zauberfisch> ^^
500: [08:05:21] <ocm> is anyone here using dropbox btw? talking about privacy/piracy and stuff?
501: [08:05:38] <ss23> kinglozzer: Seems to be
502: [08:05:53] <kinglozzer> :(
503: [08:05:57] <ss23> <% loop List(BrandPage) %> <% if EncodedBrand != Top.EncodedBrand %>
504: [08:06:03] <ss23> looks like the `if` causing it
505: [08:06:15] <ss23> Will verify I guess, cause seems weird
506: [08:06:27] <Zauberfisch> ocm: no. I am using http://www.expandrive.com/strongsync via SFTP on one of my servers
507: [08:06:47] <Zauberfisch> so my dropbox is on my own box
508: [08:06:58] <ocm> seems logical for me, since you start with looping, so querying starts.. then every loops get checked in the if statement?
509: [08:07:13] <ss23> aw actually, I was wrong, seems fine
510: [08:07:22] <ss23> Just happens on flush, weird, must've been one of the other things I cached or something
511: [08:07:41] <ocm> or am I missing anything in my logic there ss23?
512: [08:08:04] <kinglozzer> ocm: The value of Top.EncodedBrand doesn't need to be looked up each time though
513: [08:08:16] <ss23> yeah, basically
514: [08:08:20] <ss23> but it was wrong
515: [08:08:21] <ss23> I think
516: [08:08:24] <ss23> Because it's g one away
517: [08:08:29] * jonShape has joined #silverstripe
518: [08:08:33] <ss23> Must've been some other code causing it, probably code I've cached elsewhere
519: [08:08:44] <ocm> fair enough kinglozzer, but I thought just the foo got requested and the foobar did not
520: [08:08:57] <ocm> but seems no problem is present anyway
521: [08:09:20] <ocm> Zauberfisch, is it any good?
522: [08:09:46] * micmania1 has joined #silverstripe
523: [08:09:51] <ocm> now that is eems Rice is at the board of dropbox, I gonne drop it like its hot
524: [08:10:02] <Zauberfisch> ocm: well. its not that cheap. currently "introductory price of $29.95"
525: [08:10:19] <Zauberfisch> later $50
526: [08:10:37] <Zauberfisch> and by the half price you can also tell that its still a little rough around the edges
527: [08:10:59] <ocm> monthly payment, or just once?
528: [08:11:02] <Zauberfisch> once
529: [08:11:26] <ocm> hm, seems quite fair to me.. but what about Box?
530: [08:11:42] <Zauberfisch> been using it for a month now, and so far it worked for me
531: [08:11:56] <juliezygote> my vps provider just went up to 180 bucks from 35
532: [08:11:58] <ocm> is that somewhat secure and stuff, without any purpetrator on the loose..
533: [08:12:01] <Zauberfisch> only thing I dislike: it stores the stuff on the server in some sort of repository
534: [08:12:05] <juliezygote> but i emailed them and they'll continue to serve me at 35
535: [08:12:05] * qlex says hi
536: [08:12:05] <micmania1> Zauberfisch: does swipestripe tie into the normal login system or does it have its own?
537: [08:12:08] <juliezygote> so that's pretty nice
538: [08:12:09] <Zauberfisch> so you don't have access to plain files on the server
539: [08:12:17] <ocm> hi qlex
540: [08:12:21] <qlex> has any1 seen DesignerX today actively chatting ?
541: [08:12:28] <juliezygote> yeah b4
542: [08:12:35] <Zauberfisch> micmania1: no custom login at all. it just redirects to Security/login?backURL=swipestripe
543: [08:12:46] <micmania1> nice, thanks
544: [08:12:53] <ocm> hm, I would prefer acces to that.. aswell as an browser-upload/view function
545: [08:13:35] * ss23 shaves off another 200ms
546: [08:13:41] <Zauberfisch> yeah. I emailed them asking if that is planed
547: [08:13:44] <Zauberfisch> but no reply yet
548: [08:14:02] <kinglozzer> ss23: Partial caching to the rescue?
549: [08:14:28] <ss23> kinglozzer: Some, but lots of code changes too
550: [08:14:49] <ss23> kinglozzer: You weren't here before, but it uh.... it was written by someone who was a designer, and is now a Project Manager
551: [08:15:09] <ss23> I factored out some code that was literally SiteTree::get() -> foreach(...) { if parentID == foo } etc
552: [08:15:28] <kinglozzer> :P nice
553: [08:19:06] * Shrike_Finland has joined #silverstripe
554: [08:19:13] * qlex has left #silverstripe
555: [08:19:21] <juliezygote> so third party modules should be installed at the root level?
556: [08:19:29] <juliezygote> assuming they contain _configure
557: [08:19:33] <juliezygote> 3er -ure
558: [08:22:52] <ss23> juliezygote: Yeah, pretty much
559: [08:23:06] <ss23> So like, /var/www/mysite/ /var/www/random-module/ etc
560: [08:24:48] * Pyick has joined #silverstripe
561: [08:25:23] <Zauberfisch> juliezygote: silverstripe modules that is
562: [08:25:44] <Zauberfisch> if you install any other php lib via composer it will most likely be in /vendor/
563: [08:25:51] <Zauberfisch> /var/www/vendor/
564: [08:25:53] <ss23> Scary, generating a callgraph with 100% of functions
565: [08:26:03] <ss23> hmm, it spazzed out....
566: [08:26:19] * ss23 does .999 instead
567: [08:26:43] <ss23> :(
568: [08:26:50] <ss23> 34.71% of time still spent in my main menu
569: [08:26:52] <ss23> Wanna get this to be less
570: [08:27:23] <Pyick> zygotes o.0
571: [08:27:23] <micmania1> ss23: what you working on?
572: [08:27:26] <juliezygote> seems a bit messy is all
573: [08:27:27] <Bollig|DesignCty> anyone used https://github.com/silverstripe/sspak and/or compiled their own version?
574: [08:27:32] <juliezygote> NOT THAT I WANT TO TIDY YOUR CMS
575: [08:27:43] <Pyick> fuck the messy argument.
576: [08:27:57] <Pyick> if you put all modules into a folder, then suddenly you have a messy subfolder.
577: [08:28:01] <juliezygote> messy is why we have Metro UI to save us
578: [08:28:01] <Pyick> big whoopty.
579: [08:28:11] <Pyick> rofl wut
580: [08:28:12] <ss23> micmania1: optimize site
581: [08:28:17] <ss23> ~12 second load times atm
582: [08:28:19] <juliezygote> don't internet bully me Pyick
583: [08:28:23] <ss23> 20:27:28 < Bollig|DesignCty> anyone used https://github.com/silverstripe/sspak and/or compiled their own version?
584: [08:28:25] <Pyick> Who is this troll, and why so good?
585: [08:28:26] <ss23> yeah, we rock it here :P
586: [08:28:33] <ss23> Used in CWP too
587: [08:28:34] <ss23> Kind of
588: [08:28:55] <Pyick> dnoise, is that you?
589: [08:29:24] <Bollig|DesignCty> ss23: I notice the compile script isn't there?
590: [08:29:33] <Bollig|DesignCty> (on github)
591: [08:29:52] <ss23> Bollig|DesignCty: No idea man :O
592: [08:30:00] <ss23> https://github.com/silverstripe/sspak/blob/master/bin/build-phar
593: [08:30:02] <ss23> Isn't that it?
594: [08:31:03] * Bollig|DesignCty wondered if that had something to do with the bundle functionality...
595: [08:31:32] <Bollig|DesignCty> Might just be an idiot though...
596: [08:32:15] <Bollig|DesignCty> had some crazy tie into the git version and I was like o_O
597: [08:32:17] <ss23> :P
598: [08:32:39] <ss23> yeah
599: [08:32:45] <ss23> looks like it wants to do the commit too
600: [08:32:49] <ss23> like it's a full build script n shit
601: [08:32:57] <Bollig|DesignCty> lol
602: [08:33:28] <Bollig|DesignCty> right, so I'll comment the pants off of it.
603: [08:33:34] <ss23> I think so!
604: [08:33:44] <ss23> I would poke them and tell them to fix it, but I'm lazy and all that
605: [08:33:44] <ss23> ;P
606: [08:36:23] * Pyick quit (Quit: Page closed)
607: [08:36:47] * jamesfoetus has joined #silverstripe
608: [08:38:08] <ss23> Anyway, done microoptimizing the default page type, time to hit a page with content!
609: [08:39:23] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
610: [08:46:21] <micmania1> I was looking at the static caching stuff over the weekend briefly - that can't help!
611: [08:46:54] <micmania1> There's 00's files to include every time
612: [08:47:07] <micmania1> then unserialize
613: [08:47:35] * Error404NotFound has joined #silverstripe
614: [08:48:03] <ss23> lol mm
615: [08:48:05] <ss23> performance is bad
616: [08:48:06] <ss23> ;(
617: [08:49:07] <micmania1> yep
618: [08:50:18] <jamesfoetus> funny by how making performance better its got worse in other areas, but overall better.
619: [08:50:38] * EasyCo quit (Quit: Connection closed for inactivity)
620: [08:51:45] * jonShape quit (Ping timeout: 252 seconds)
621: [08:52:44] * jonShape has joined #silverstripe
622: [08:56:19] <kinglozzer> Someone XHProf it and see how much time is spent unserializing ^^
623: [08:58:09] <micmania1> Its not just the performance, the amount of data being loaded into RAM will be stupidly high
624: [08:58:59] <ss23> that config system makes me cry
625: [08:59:01] <jamesfoetus> That's what'll happen when one uses php to parse php
626: [08:59:06] <ss23> errorcontrolchain is also an abomination
627: [08:59:09] <ss23> #justsayin
628: [08:59:33] <micmania1> ss23: there could be so much improvement if the config system was limited to the Object class rather than all classes
629: [08:59:53] <micmania1> There'd be no need to cache
630: [08:59:59] <micmania1> from my understanding anyway
631: [09:00:24] <jamesfoetus> How would one set options through other classes? Through injector magic?
632: [09:00:35] <micmania1> YAML
633: [09:00:40] <jamesfoetus> being that injector is done through create, which is on object?
634: [09:00:51] <micmania1> or just no config options
635: [09:00:55] <jamesfoetus> yeah, but ... what are we talking about here?
636: [09:01:08] <micmania1> restricting the config system to Object
637: [09:01:11] <jamesfoetus> static defaults for the config system?
638: [09:01:15] <micmania1> yes
639: [09:01:19] <jamesfoetus> private static $db...
640: [09:01:22] <micmania1> yep
641: [09:01:33] <jamesfoetus> how to define through object?
642: [09:01:41] <micmania1> exactly the same
643: [09:01:48] <micmania1> private static $var
644: [09:02:01] <jamesfoetus> but you're not on object
645: [09:02:15] <jamesfoetus> There's a scope issue, no?
646: [09:02:46] <micmania1> It can still have statics, the same as it does now
647: [09:03:14] <jamesfoetus> I'm completely confused by this.
648: [09:03:33] <jamesfoetus> Example?
649: [09:03:46] <micmania1> Object is a class - i'm not talking about an instance of Obejct
650: [09:03:48] <micmania1> Object*
651: [09:05:33] <jamesfoetus> yes, but if you have CustomPage.php, private static $db = ['Stuff' => 'DBThing'], how to move that to Object?
652: [09:08:00] <micmania1> You wouldn't move it to Object, the problem would be moving it the other way (from Object) but I see your point.
653: [09:08:17] <jamesfoetus> I'm not sure what it is, I'm still well confused.
654: [09:08:37] <micmania1> Obviously you can't inherit private statics
655: [09:08:58] <micmania1> Which makes margin/inheriting config would be the problem to solve
656: [09:09:02] <micmania1> merging*
657: [09:09:11] <ss23> Why the hell even private statics
658: [09:09:20] <jamesfoetus> ss23: because public is bad, mmkay
659: [09:09:26] <jamesfoetus> for performance.
660: [09:09:31] <ss23> ;_;
661: [09:09:31] <ss23> pls
662: [09:09:36] <micmania1> I agree. Its so that they can't be changed when they're not supposed to.
663: [09:09:37] <ss23> brb rewriting this all in hack
664: [09:09:45] <ss23> micmania1: They should be able to be changed FOREVER
665: [09:09:53] <jamesfoetus> CONST
666: [09:09:59] <ss23> YEAH
667: [09:10:02] <ss23> privates are designed to change, yo!
668: [09:10:26] <jamesfoetus> well you could abstract the entirity of all the things out into yaml for all.
669: [09:10:43] <jamesfoetus> but then you've got disassociation of implementation and definition
670: [09:10:53] <micmania1> protected static $db FTW!
671: [09:11:07] <jamesfoetus> Person:
672: [09:11:10] <jamesfoetus> db:
673: [09:11:19] <micmania1> Then you call MyClass::config()->get("db")
674: [09:11:20] <jamesfoetus> FirstName: Varchar
675: [09:11:29] <jamesfoetus> LastName: Varchar
676: [09:11:36] <micmania1> no caching required. Lower memory usage.
677: [09:12:16] <jamesfoetus> but then you have public function Name() {return firstname + lastname;} as an examle.
678: [09:12:21] <jamesfoetus> you'd have two files.
679: [09:12:28] <ss23> guis, I just realised
680: [09:12:31] <ss23> We could just use C?
681: [09:12:31] <jamesfoetus> so much effort.
682: [09:12:33] <ss23> SUPER SPEEED
683: [09:12:34] <ss23> :D
684: [09:12:37] <jamesfoetus> ss23: duh.
685: [09:12:42] <jamesfoetus> make it a php module.
686: [09:12:45] <ss23> XD
687: [09:12:48] <jamesfoetus> problem solved.
688: [09:12:57] <jamesfoetus> there's already a cms that does this.
689: [09:14:32] <ss23> aw snap I think I managed to get the load time down from ~10 seconds to 3 seconds
690: [09:14:43] <jamesfoetus> how do?
691: [09:14:57] <ss23> not do SiteTree::get() ... foreach ($item) ...
692: [09:14:58] <ss23> :D
693: [09:15:06] <jamesfoetus> how do>
694: [09:15:31] <ss23> REWRITE CODE YO
695: [09:15:40] <jamesfoetus> how do.
696: [09:15:43] <ss23> Rewrite the custom code to be not silly, little sprinkle of partial caching
697: [09:15:46] <ss23> do it
698: [09:15:48] <jamesfoetus> how do>
699: [09:15:49] <ss23> jamesfoetus: give me money
700: [09:15:57] <micmania1> haha
701: [09:15:58] <jamesfoetus> >.>
702: [09:16:34] <micmania1> ss23: I was at the pub pre-Newcastle match on Saturday. Got talking to a newcastle fan from Wellington!!
703: [09:16:40] <micmania1> SMALL WORLD!
704: [09:18:01] <ss23> :O
705: [09:18:03] <ss23> WAS IT PYRO?!
706: [09:18:13] <micmania1> haha no. He wouldn't go near the football
707: [09:18:32] <ss23> XD
708: [09:18:39] <jamesfoetus> Aussies don't do football either.
709: [09:19:04] <ss23> micmania1: If I go to a pub before a game and yell out shit like "God, Newcastle has to be the fucking worst team this country has", what will happen? :O
710: [09:19:17] <jamesfoetus> The hell would a soccer fan from wellington be doing in aussie to watch an english game?
711: [09:19:32] <ss23> lol jamesfoetus, pls stop
712: [09:19:32] <ss23> :P
713: [09:19:37] <micmania1> ss23: You'd be right haha
714: [09:19:44] <ss23> XD
715: [09:19:54] <jamesfoetus> ss23: you'll get beaten up for not watching rugby.
716: [09:20:06] <micmania1> ALSO: http://www.chroniclelive.co.uk/sport/football/football-news/newcastle-united-wanted-play-friendly-6934560
717: [09:20:11] <micmania1> SMALL WORLD!
718: [09:20:19] <jamesfoetus> you didn't say where this pub would be.
719: [09:22:02] <jamesfoetus> so who the fuck names themselves after an unborn mammal?
720: [09:22:21] <jamesfoetus> then proceeds to be stuipd and troll a channel.
721: [09:22:34] <jamesfoetus> who the fuck does that?
722: [09:23:06] <micmania1> Pyro!
723: [09:23:47] <micmania1> [09:36:20] Pyick [3e313cda@gateway/web/freenode/ip.62.49.60.218] has quit IRC: Quit: Page closed
724: [09:23:52] <micmania1> [09:36:44] jamesfoetus [3e313cda@gateway/web/freenode/ip.62.49.60.218] has joined #silverstripe
725: [09:24:37] <jamesfoetus> [20:28:19] <juliezygote> don't internet bully me
726: [09:24:45] <jamesfoetus> WHO THE FUCK IS THAT STUPID
727: [09:24:54] <ss23> lol
728: [09:25:00] <ss23> RELAX NIGGA
729: [09:25:17] <jamesfoetus> dafuq u call me , crakka??
730: [09:26:06] <jamesfoetus> "messy is why we have Metro UI to save us" - TROLL DETECTED
731: [09:26:14] * Bollig|DesignCty has joined #silverstripe
732: [09:26:26] <juliezygote> shame i was afk for most of your hysteria
733: [09:26:42] <jamesfoetus> total meh.
734: [09:27:12] <jamesfoetus> also, learn to not take things personally. Not everything said on the internet is a personal attack on you.
735: [09:27:29] <juliezygote> i have no idea what you're talking about
736: [09:27:39] <jamesfoetus> Every 2 months or so some OCD newbie comes in here going EGSDJKGH:SDJGSGJERI MESS MESS TIDY FUCK THIS SHIT CMS
737: [09:27:54] <jamesfoetus> having a big qq about modules in the base dir.
738: [09:28:17] <jamesfoetus> as opposed to index.php and system/ then having all files in the system dir? I mean what, come on.
739: [09:28:43] <ss23> lol
740: [09:28:43] <juliezygote> i'm sure i'm not nearly as emotionally invested in this conversation as you are
741: [09:28:46] <ss23> pls jamesfoetus, are you drunk?
742: [09:29:02] <jamesfoetus> may as well be.
743: [09:29:05] <ss23> help I think jamesfoetus has gone crazy since he moved ;_;
744: [09:29:21] <Avroceptyr> what about that thing with the PHP tags at the end of files and the extra whitespaces?
745: [09:29:24] * Bollig|DesignCty quit (Client Quit)
746: [09:29:27] <ss23> Avroceptyr: YEAH, THAT THING
747: [09:29:28] <ss23> :O
748: [09:29:31] <jamesfoetus> I'm just fucking sick of idiots. They fuck everything up in the world.
749: [09:29:46] <jamesfoetus> EVERYTHING
750: [09:30:18] <jamesfoetus> so anyway, is it ok to kill a zygote?
751: [09:30:20] * simon_w|air has joined #silverstripe
752: [09:30:32] <jamesfoetus> on to philosophy for the day
753: [09:31:04] <Avroceptyr> it's murdering children
754: [09:31:14] <Avroceptyr> children of whatever species that zygote is from
755: [09:31:17] <jamesfoetus> if abortions are bad, at what point does it become terrible? zygotes aren't humanoid in any way except dna, is that acceptable?
756: [09:31:32] <ss23> guis
757: [09:31:33] <ss23> guis pls
758: [09:31:38] <ss23> o.o
759: [09:31:43] <jamesfoetus> if not, then what about all the eggs flushed away around the world every month?
760: [09:31:58] <ss23> ARE YOU READY? DO YOU KNOW? I FEEL IT TOO
761: [09:32:00] <Avroceptyr> why do you think there's so much blood along with those eggs?
762: [09:32:02] <Avroceptyr> MURDER
763: [09:32:04] * ss23 wubbles jamesfoetus
764: [09:32:15] <jamesfoetus> BABY I'VE GOT YOU ON MY MIND
765: [09:32:28] * SightUnseen has joined #silverstripe
766: [09:32:47] <juliezygote> maybe he was the source of that ^A and has been brooding for 3 days
767: [09:32:54] <juliezygote> sorry if you were buddy
768: [09:33:45] <ss23> hahah jamesfoetus
769: [09:33:47] <ss23> juliezygote*
770: [09:34:45] <Avroceptyr> what does the name juliezygote and jamesfoetus have in common?
771: [09:34:49] * SightUnseen has left #silverstripe
772: [09:34:54] <ss23> Both of them are shit, Avroceptyr!
773: [09:35:04] <ss23> hehehehehehe
774: [09:35:14] <Avroceptyr> you're the op, not me
775: [09:35:25] <ss23> :D
776: [09:35:27] <ss23> I know, feels good man
777: [09:35:34] <ss23> Just hope my CEO doesn't feel like coming on I guess...
778: [09:35:42] <Avroceptyr> 16:07:48 + ss23 | I don't even have ops
779: [09:35:47] <ss23> WOAH
780: [09:35:47] <Avroceptyr> YOU LIED TO ME
781: [09:35:47] <ss23> typo
782: [09:35:55] <ss23> ;____;
783: [09:36:04] <Avroceptyr> we can never be lovers because of this
784: [09:36:07] <ss23> I feel like this was a setup
785: [09:36:08] <ss23> :(
786: [09:36:25] <ss23> Avroceptyr: You're like the Chris Hansen of IRC op sting operations...
787: [09:36:36] <simon_w|air> [17:56:02] <ss23> SELECT ordinal_position, column_name, data_type, column_default, is_nullable, character_maximum_length, numeric_precision, numeric_scale FROM information_schema.columns WHERE table_name = 'Member' ORDER BY ordinal_position; 6.5ms
788: [09:36:36] <simon_w|air> SHOW FIELDS FROM "Member" equivalent
789: [09:36:39] <Avroceptyr> speaking of setups, I'm going to attempt not screwing up this debian setup I have running
790: [09:36:44] * Shrike_Finland quit (Quit: Leaving.)
791: [09:37:02] <ss23> simon_w|air: Someoen should totez fix that in the pgsql moduel then cause this shit is slow
792: [09:37:05] <ss23> But not as bad as I thought
793: [09:37:20] <simon_w|air> ss23, 6.5ms is hardly slow :p
794: [09:37:20] <Avroceptyr> just add another index
795: [09:37:31] <Avroceptyr> :D
796: [09:37:33] <ss23> SO SLOW MAN
797: [09:37:38] <Avroceptyr> indexes for eveeeeryone
798: [09:37:39] <simon_w|air> But yes, the postgres extension is rather shit
799: [09:37:43] <ss23> But MySQL says it takes only 0.00006ms
800: [09:37:46] <ss23> So that's a big difference!
801: [09:37:46] <ss23> :O
802: [09:38:19] <ss23> http://global.oup.com/academic/librarians/national-library-week/?cc=sa&lang=en& Free books :O
803: [09:39:00] <jamesfoetus> [10:34] <+ss23> Both of them are shit, Avroceptyr!
804: [09:39:06] <jamesfoetus> ^!!
805: [09:39:19] <ss23> huehueheuheuhhe
806: [09:40:39] <jamesfoetus> Avroceptyr: do you not know what a zygote is?
807: [09:41:01] <Avroceptyr> jamesfoetus: don't bring me into this; it's between yourself and ss23
808: [09:41:13] <jamesfoetus> Avroceptyr: you asked!
809: [09:41:16] <ss23> lol
810: [09:41:25] <juliezygote> worst at being an internet bully
811: [09:41:27] <Avroceptyr> it's perhaps a rhetorical question, given the context
812: [09:41:28] <jamesfoetus> and now I'm asking. Do you not know what a zygote is?
813: [09:41:41] <jamesfoetus> juliezygote: because you've no idea.
814: [09:42:28] <Avroceptyr> how about, rather than telling us about zygotes, we discuss PHP's caching mechanisms and how they contribute to speeding up SQL queries
815: [09:42:34] <ss23> lol
816: [09:42:40] <ss23> HEHEHEHHEE
817: [09:43:14] <simon_w|air> Or just how shit the SS DB layers are?
818: [09:43:30] <Avroceptyr> simon_w|air: they're not too bad, but the code files could be re-organised better
819: [09:44:06] <Avroceptyr> we could tidy up some of the filesystem footprint that a default SS install leaves
820: [09:44:30] <simon_w|air> https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/MySQLDatabase.php#L809-L812
821: [09:44:38] * ajmitch quit (Ping timeout: 252 seconds)
822: [09:44:40] <simon_w|air> That one function adds a massive overhead
823: [09:45:02] <ss23> Does that run every load?
824: [09:47:38] <simon_w|air> Need to find a MySQL thing to check, but it used to be run a heck of a lot on every load
825: [09:47:56] <jamesfoetus> Avroceptyr: what you want to do right
826: [09:47:58] <jamesfoetus> is take all your code
827: [09:48:02] <jamesfoetus> and put it in a folder
828: [09:48:06] <jamesfoetus> then put that folder in a folder
829: [09:48:19] <jamesfoetus> to keep it all abstracted from the folder you started in
830: [09:48:31] <jamesfoetus> otherwise it's just too messy.
831: [09:48:34] <simon_w|air> Rather than just $this->tableList()[$tableName] (once you add caching to tableList())
832: [09:48:41] <jamesfoetus> never have more than 1 file in a directory.
833: [09:49:34] <Avroceptyr> Ooooh! You know how PHP has bult in tar/gz capabilities? Why not have SS as one big phar file? Saves on disk space and makes SS look super neat
834: [09:49:41] <jamesfoetus> yes!
835: [09:49:46] <jamesfoetus> omg you're a genius
836: [09:50:03] <jamesfoetus> scrap composer, we're using PEAR
837: [09:50:09] <Avroceptyr> haha
838: [09:50:25] <jamesfoetus> it's more robust because it's older.
839: [09:50:33] <Avroceptyr> perfect! less security bugs
840: [09:50:35] <jamesfoetus> stability means enterprise man
841: [09:50:50] <Avroceptyr> yep, no Heartbleed on OpenSSL 0.9.8e
842: [09:50:50] <jamesfoetus> SSEE
843: [09:50:56] <jamesfoetus> silverstripe enterprise edition
844: [09:51:02] <Avroceptyr> I like that
845: [09:51:34] <jamesfoetus> or just one s, because it's a compound word after all and it makes a better acrynom, that means better sales!
846: [09:51:36] <jamesfoetus> SEE
847: [09:52:55] <Avroceptyr> yep yep
848: [09:53:01] <Avroceptyr> we also need a sciencey sounding word
849: [09:53:06] <Avroceptyr> like Halogen
850: [09:53:11] <Avroceptyr> but we need to make it sound IT
851: [09:53:21] <Avroceptyr> Silverstripe Halogen IT Editione
852: [09:53:37] <Avroceptyr> whoa, I went all Italian there; pardon the Italian
853: [09:59:54] <kinglozzer> simon_w|air, ss23: Yes that query does run on each page load
854: [10:00:05] <jamesfoetus> Avroceptyr: obviously the answer is synergy
855: [10:00:07] <jamesfoetus> duh
856: [10:00:59] <kinglozzer> SHOW TABLES; 0.0004ms, SHOW TABLES LIKE 'Member' 0.0003ms, SHOW TABLES LIKE 'Group' 0.0003ms, SHOW TABLES LIKE 'Permission' 0.0003ms, SHOW TABLES LIKE 'SiteTree' 0.0003ms.. etc etc
857: [10:01:14] <kinglozzer> Plus all the 'SHOW FULL FIELDS IN', not sure if those can be stripped though
858: [10:02:24] <jamesfoetus> kinglozzer: this is without caching?
859: [10:02:55] <jamesfoetus> I know mysql caches everything it returns, so if you're testing stuff it show as fk the frist time, then speedy thereafter.
860: [10:03:50] <ss23> jamesfoetus: Only if you turn it
861: [10:03:52] <ss23> turn it on
862: [10:03:54] <ss23> Or leave it on
863: [10:03:54] <ss23> etc
864: [10:03:57] <ss23> Only if it's on*
865: [10:04:01] <jamesfoetus> mm
866: [10:04:19] <jamesfoetus> on by default though
867: [10:04:23] <jamesfoetus> iirc
868: [10:05:36] <jamesfoetus> Right, you all got boring.
869: [10:05:40] * jamesfoetus quit (Quit: Page closed)
870: [10:06:05] * Shrike_Finland has joined #silverstripe
871: [10:13:57] <kinglozzer> Can anyone remember the entwine inspector keyboard shortcut? :|
872: [10:15:18] <Zauberfisch> CTRL+`
873: [10:15:20] <Zauberfisch> or something
874: [10:15:28] <ss23> Eh, time to go home I think
875: [10:15:37] <ss23> Losing motivation to find more performance fixes in this app
876: [10:16:10] <Zauberfisch> yep. its CTRL+`
877: [10:16:17] <Zauberfisch> which is weird on EU keyboards
878: [10:16:27] <ocm> why is that weird?
879: [10:16:32] <ocm> works perfectly with sublime aswell
880: [10:16:39] <Zauberfisch> because then you have to do CTRL+SHIFT+´
881: [10:17:36] <ocm> change your keyboard settings :D
882: [10:17:50] <Zauberfisch> well, I am used to german keyboards
883: [10:18:05] <Zauberfisch> but I have actually been thinking about switichign to US for a while
884: [10:18:24] <ocm> why not dvorak as keyboard layout? :D
885: [10:19:26] <Zauberfisch> that looks weird
886: [10:20:01] <kinglozzer> Zauberfisch: Doesn't seem to work in Chrome :(
887: [10:20:03] <Zauberfisch> also have been thinking about NEO
888: [10:20:04] <Zauberfisch> http://www.neo-layout.org/
889: [10:20:11] <Zauberfisch> but thats optimized for german
890: [10:20:17] <Zauberfisch> so not sure if thats a good bet
891: [10:20:23] <Zauberfisch> also not native to any OS
892: [10:20:33] <ocm> interesting
893: [10:20:40] <Zauberfisch> so a pain in the arse to get working
894: [10:20:49] <Zauberfisch> but the concept of keyboard layers is nice
895: [10:20:56] <Zauberfisch> ("Ebene" == "Layer"
896: [10:20:57] <Zauberfisch> )
897: [10:23:03] <ocm> this would be nice aswell: http://www.artlebedev.com/everything/optimus/
898: [10:23:17] * Avroceptyr has left #silverstripe
899: [10:28:08] * Shrike_Finland quit (Quit: Leaving.)
900: [10:42:22] * thibault has joined #silverstripe
901: [10:43:22] * simon_w|air quit (Quit: This computer has gone to sleep)
902: [10:44:05] * Error404NotFound quit (Read error: Connection reset by peer)
903: [10:49:56] * Shrike_Finland has joined #silverstripe
904: [10:54:50] * Bollig|DesignCty has joined #silverstripe
905: [11:00:16] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
906: [11:00:36] * Error404NotFound has joined #silverstripe
907: [11:08:53] * Error404NotFound quit (Ping timeout: 252 seconds)
908: [11:09:47] * thibault quit (Quit: Page closed)
909: [11:10:09] * thibault has joined #silverstripe
910: [11:27:53] * Bollig|DesignCty has joined #silverstripe
911: [11:37:23] * ajmitch has joined #silverstripe
912: [11:55:13] * micmania1 has joined #silverstripe
913: [11:58:31] * Shrike_Finland quit (Quit: Leaving.)
914: [12:15:39] * Error404NotFound has joined #silverstripe
915: [12:16:05] * Pyfark has joined #silverstripe
916: [12:20:04] * UndefinedOffset has joined #silverstripe
917: [12:25:37] * stripee has joined #silverstripe
918: [12:25:44] * Shrike_Finland has joined #silverstripe
919: [12:26:26] <stripee> $get = DataObject::get_one('SiteTree', "URLSegment = 'some text'"); what does this code mean and does?
920: [12:34:00] * wmk has joined #silverstripe
921: [12:46:40] <juliezygote> is this still valid, i'm sure i saw a simpler method somewhere http://archive.ssbits.com/using-silverstripe-url-parameters-to-display-dataobjects-on-a-page
922: [12:47:08] <juliezygote> basically i have a bunch of DataObjects that aren't pages and want to show them based on a route /things/<id> with a thing template
923: [12:49:14] <wmk> juliezygote, well, this tut is for ss 2.2+
924: [12:49:27] <juliezygote> yeah that's why i'm asking
925: [12:49:46] <wmk> https://github.com/Firesphere/silverstripe-newsmodule uses dataobject as pages, you can have a look at the code there
926: [12:50:49] <wmk> https://github.com/Firesphere/silverstripe-newsmodule/blob/master/code/pages/NewsHolderPage.php the controller should get you started
927: [12:51:46] <juliezygote> okay cheers
928: [12:53:17] * Error404NotFound quit (Ping timeout: 240 seconds)
929: [12:57:23] * DesignerX quit (Ping timeout: 245 seconds)
930: [12:57:42] * cloph_away is now known as cloph
931: [12:58:44] <wmk> hope it helps juliezygote
932: [13:01:47] <Pyfark> juliezygote: you use the request object.
933: [13:02:01] <Pyfark> found via the controller at $this->request->*
934: [13:03:12] <Pyfark> so if we're talking pages, the controller finds which page to use via the URL, and any leftover bits (that aren't pages) become 'parameters'
935: [13:03:18] <Pyfark> ie, action
936: [13:03:27] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
937: [13:03:52] <Pyfark> is a param. NewsPage/read/3 as an example, that's NewsPage page type, action=read, id=3
938: [13:04:23] <Pyfark> following the routing rule of $Page//$Action/$ID/$OtherID
939: [13:04:49] <Pyfark> so you can access these named params via $resuest->param('ID') for example.
940: [13:04:58] <Pyfark> in the newpage example I gave above, it would return '3'
941: [13:05:54] <Pyfark> http://doc.silverstripe.org/framework/en/topics/controller#routing
942: [13:05:57] <Pyfark> juliezygote: ^
943: [13:06:02] * Error404NotFound has joined #silverstripe
944: [13:06:23] <Pyfark> also, it's 1am. wtf.
945: [13:07:51] <juliezygote> cheers - yeah 1am makes me a sad guy, i have 2 more hours to go i guess
946: [13:08:16] * Pyfark is now known as Pyneark
947: [13:09:08] <Pyneark> juliezygote: what happens at 3am, you graduate to foetus?
948: [13:09:23] <juliezygote> change to another job
949: [13:09:45] <Pyneark> urgh
950: [13:10:00] <Pyneark> are these for overseas folk or something?
951: [13:10:33] <juliezygote> naah just jan / feb are slow months and i've finally got a good swarm of work so i'm just gonna crack at burning out for maximum return
952: [13:10:36] <juliezygote> then go away
953: [13:12:12] <Pyneark> haha
954: [13:12:17] <Pyneark> que inxs?
955: [13:12:24] <Pyneark> it's better to burn out than fade away
956: [13:12:53] <Pyneark> oh fuck, that's neil young :<
957: [13:12:57] <juliezygote> haha
958: [13:12:57] <Pyneark> not inxs, derp.
959: [13:16:48] * thibault quit (Ping timeout: 240 seconds)
960: [13:16:59] <Pyneark> also cue, not que :<
961: [13:17:25] <juliezygote> i was wondering if you'd read too much lorem ipsum and was busting out latin
962: [13:17:52] <Pyneark> Spanish for "dafuq" iirc
963: [13:19:14] <Pyneark> apparently just means 'and' in Latin.
964: [13:19:44] <Pyneark> as a conjunctive suffix, according to wiktionary.
965: [13:20:17] <Pyneark> I must admit though, I've not read any Cicero before.
966: [13:20:43] <Pyneark> Probably should at some point. He was pretty well regarded back in the day.
967: [13:21:35] <Pyneark> So what's the story behind your nick juliezygote, or do you just really love reproduction or something?
968: [13:21:48] <juliezygote> can't remember
969: [13:22:33] <Pyneark> disappointing.
970: [13:22:49] <juliezygote> i often wonder what value i get from reading stuff in a writing style i don't find natural
971: [13:23:28] <juliezygote> forcing myself to read umberto eco for example feels like i should have the time and the friends to have a talk about it
972: [13:23:45] <juliezygote> but then joseph conrad i find hard to but utterly enjoyable
973: [13:23:50] <juliezygote> +o
974: [13:24:22] <juliezygote> but then you read something easy and you feel like you are a lazy shithead
975: [13:25:04] <wmk> anyone can give me a goot tip for a multilevel responsive nav?
976: [13:25:43] <Zauberfisch> I tend to make it only multilevel on desktop
977: [13:25:59] <Zauberfisch> and 1 level for the rest
978: [13:26:02] <Pyneark> juliezygote: I've no idea what you're on about :<
979: [13:26:12] <Zauberfisch> and then have a sidebar or something on each page
980: [13:26:18] <juliezygote> reading Cicero
981: [13:26:26] <Pyneark> oic
982: [13:26:32] <Pyneark> which works?
983: [13:26:48] <juliezygote> i haven't read any, i just assume it'll be a slog
984: [13:27:08] <juliezygote> i read the republic a couple of years ago and just wanted to drink gin
985: [13:27:18] <wmk> Zauberfisch, which plugin do you use for mobile nav, if any?
986: [13:27:48] * mento has joined #silverstripe
987: [13:28:22] * Shrike_Finland quit (Quit: Leaving.)
988: [13:28:27] * muskie9 has joined #silverstripe
989: [13:28:56] <mento> hey guys, i'm working a restaurant website on ss 3.1.3. and for some reason the CMS automatically adds a -2 in my URL segment for my "Menu" page - even if there is only one page named Menu
990: [13:28:58] <Zauberfisch> none
991: [13:29:04] <Zauberfisch> usualy hand built
992: [13:29:23] <Zauberfisch> wmk: I have seen some websites use a dropdown as a mobile nav, where the nesting is done inside the dropdown
993: [13:29:24] <mento> myurl.com/restaurant/menu/ becomes myurl.com/restaurant/menu-2
994: [13:29:45] <mento> and same for myurl.com/bar/menu becomes myurl.com/bar/menu-2
995: [13:30:55] <wmk> hmm, dropdown isn't sexy, Zauberfisch
996: [13:30:56] <Zauberfisch> have you set the following in your config.yml
997: [13:30:57] <Zauberfisch> SiteTree: nested_urls: true
998: [13:31:10] <Zauberfisch> wmk: agreed. but seems to work for some people
999: [13:32:23] * Error404NotFound quit (Ping timeout: 245 seconds)
1000: [13:32:49] <mento> aren't nested URLs supported by default? Haven't set it in the config.yml - but it works for all other pages though
1001: [13:32:59] <mento> myurl.com/restaurant/reviews etc works fine
1002: [13:34:36] <mento> it seems like it only breaks when the URL segment is /menu/ since /menutest/ works
1003: [13:36:03] <Zauberfisch> mento: hmm. set it and flush
1004: [13:36:05] <Zauberfisch> just to be sure
1005: [13:36:23] <wmk> mento, you're sure there is no old, unpublished "menu" subpage there?
1006: [13:36:35] <mento> yes, i tried it - didnt work though
1007: [13:36:48] <wmk> have you tried it in a fresh holder page?
1008: [13:36:49] <Zauberfisch> mento: yes, its default now. but that wasn't always that way. so my guess is that there is still some left over legacy code that still checks for the flag to be set before doing something
1009: [13:36:58] <wmk> e.g. /testfoo/menu/
1010: [13:37:01] <mento> i made a new page now - as a top level page, named it menu and it works
1011: [13:37:15] <mento> but when i add a menu pages on a second level - it breaks again
1012: [13:37:30] <mento> it automatically adds a -2 to the url segment
1013: [13:37:37] <mento> such a strange thing, even on a fresh holder
1014: [13:38:52] <mento> this stupid thing is driving me nuts :-P i checked the database for "menu" URL segments and those pages are the only ones
1015: [13:39:42] <mento> does any of you have a 3.1.3. installation? Could you test adding a page named Menu to a second level?
1016: [13:40:06] <Pyneark> mento: have you touched any of your _config at all?
1017: [13:41:12] <mento> config.php is default - my config.yml is changed wih dev evironment_type & debug settings
1018: [13:41:28] <wmk> mento, same here
1019: [13:41:35] <wmk> WTF?
1020: [13:41:37] <mento> i tried adding a menu page to another site of mine, as a second2 level page - the same - it adds -2 to the segment
1021: [13:41:43] <mento> wmk: yeah, strange bug!
1022: [13:41:52] <wmk> maybe cause it's a kind of reserved word?
1023: [13:42:15] <mento> perhaps, but why on the second level :/ as a top level page it works just fine
1024: [13:42:49] <wmk> menue works also
1025: [13:44:35] <wmk> mento, seems it was in 2.4 also, at least the menu page of a customer is menu-2
1026: [13:44:57] * Error404NotFound has joined #silverstripe
1027: [13:45:11] <mento> wmk: hmmm weird
1028: [13:45:17] <Pyneark> I think you'll find it's because SiteTree (or ContentController) has a method called Menu() already
1029: [13:46:00] <wmk> but it's no action, so it shouldn't be important for the URL
1030: [13:48:07] <kinglozzer> /Shouldn't/ be important, but might be
1031: [13:48:13] <kinglozzer> I've seen similar with DataObject field names :/
1032: [13:48:44] <kinglozzer> Try commenting out the method in SiteTree/ContentController ^^ see if it works then :)
1033: [13:48:51] <wmk> kinglozzer, calling my page "title" works
1034: [13:49:02] <Pyneark> wmk: but actions map to methods
1035: [13:49:39] <Pyneark> check the function that saves a urlsegment, I think it checks with method_exists or something, rather than whether or not it's a valid action.
1036: [13:49:44] <Pyneark> I don't particularly remember
1037: [13:49:49] <mento> same happens to /link/
1038: [13:49:53] <mento> it ads a -2 aswell
1039: [13:50:11] <mento> *adds
1040: [13:51:49] * Err404NotFound has joined #silverstripe
1041: [13:51:49] * Error404NotFound quit (Disconnected by services)
1042: [13:52:42] * Shrike_Finland has joined #silverstripe
1043: [13:53:40] <Pyneark> same deal, is a function.
1044: [13:54:01] <Pyneark> probably if you call page Parent, etc alsol.
1045: [13:54:31] <wmk> guess SiteTree::validURLSegment() hits in here
1046: [13:54:35] * chr1stopher has joined #silverstripe
1047: [13:54:58] <wmk> though menu or link is no standard ACTION
1048: [13:55:11] <Pyneark> yeah, but as above.
1049: [13:55:23] <Pyneark> You'll have to read the code though as I can't remember
1050: [13:56:05] * Colin[pi] quit (Ping timeout: 240 seconds)
1051: [13:59:40] * micmania1 has joined #silverstripe
1052: [14:07:04] <wmk> mento, however i guess you can file an issue at github, cms module
1053: [14:11:15] <mento> wmk: yep, i guess thats the best thing to do :)
1054: [14:11:54] <wmk> mento, and if you have a step debugger like xdebug runnung you can look at it
1055: [14:24:23] * catcher has joined #silverstripe
1056: [14:24:41] * simon_w quit (Read error: Connection reset by peer)
1057: [14:26:43] * simon_w has joined #silverstripe
1058: [14:32:09] * wmk quit (Quit: nice to meet you ;))
1059: [14:37:15] <Pyneark> lay your head down child, I won't let the boogey man come.
1060: [14:39:32] <kinglozzer> Pyneark: Met some girls from Wellington in the pub Friday, they could barely understand a word I was saying lol
1061: [14:39:38] <kinglozzer> Damn Norfolk accent...
1062: [14:39:45] <Pyneark> kinglozzer: Lies.
1063: [14:39:54] <Pyneark> No way can it be worse than micmania1 :P
1064: [14:40:59] <kinglozzer> Hahaha
1065: [14:40:59] <Pyneark> kinglozzer: I met some girls from Wellington in the weekend too!
1066: [14:41:24] <Pyneark> but that was 100% on purpose :P
1067: [14:41:51] <kinglozzer> The ones I met have jobs as 'nannys' over here
1068: [14:41:56] <Pyneark> ha
1069: [14:42:01] <Pyneark> pu pair?
1070: [14:42:07] <kinglozzer> Though one got fired earlier that day
1071: [14:42:08] * hubertusanton has joined #silverstripe
1072: [14:42:18] <Pyneark> hahahahaha, guts.
1073: [14:42:28] <Pyneark> did she say why?
1074: [14:42:37] <kinglozzer> Apparently one of the parents came home and she was in her dressing gown or something
1075: [14:42:48] <Pyneark> rofl, rude.
1076: [14:43:46] <Pyneark> wait, you mean the nanny was wearing the mother's dressing gown, having been ignoring the kids and taking a shower or something, or that she's a live in nanny and just never bothered to get dressed that day?
1077: [14:43:57] <Pyneark> the former true rude, the latter just classic lulz.
1078: [14:44:31] <Pyneark> (if the latter it was her own dressing gown)
1079: [14:45:06] <kinglozzer> They weren't live in nannys. She didn't say it was the mother's dressing gown, but I assumed
1080: [14:45:14] <Pyneark> hahaha, rude man.
1081: [14:45:17] <kinglozzer> Unless they didn't approve of her being somewhat undressed or something
1082: [14:45:52] <Pyneark> yeah but if they're not live in, then I'd expect some pretty good explanation for it, like a child hurfed all over her so she had to shower and wash her own clothes, or something
1083: [14:46:04] <Pyneark> one does not simply turn up to work in a dressing gown.
1084: [14:46:38] <Pyneark> and if she did surely she'd get fired in the morning, not after coming home. Unless the reason she was in a drssing gown was bcause the father was also home...
1085: [14:46:39] <Pyneark> lol
1086: [14:47:34] <kinglozzer> Hahaha yeah
1087: [14:48:30] <Pyneark> sound like east enders tbh.
1088: [14:48:33] <Pyneark> or something
1089: [14:48:38] * Pyneark doesn't know soaps over here
1090: [14:48:46] <Pyneark> or anywhere really,heh
1091: [14:53:31] * chr1stopher has left #silverstripe
1092: [15:04:55] * iamss has joined #silverstripe
1093: [15:05:07] <iamss> Hello SS!
1094: [15:06:57] <mento> Bonjour!
1095: [15:14:50] * LoveDuckie has joined #silverstripe
1096: [15:17:25] * babak has joined #silverstripe
1097: [15:28:06] * ARNHOE quit ()
1098: [15:31:43] * Shrike_Finland quit (Quit: Leaving.)
1099: [15:33:18] * mento quit (Quit: Page closed)
1100: [15:38:54] * violetina has joined #silverstripe
1101: [15:44:18] * iamss quit (Ping timeout: 240 seconds)
1102: [15:52:42] * thibault has joined #silverstripe
1103: [15:53:07] <thibault> Hey everyone, I am trying to execute BEHAT tests from Silverstripe 3, in a headless server using Xvfb... I keep getting the error cannot find display. Anyone know how to fix this?
1104: [15:53:18] * stripee quit (Ping timeout: 240 seconds)
1105: [15:53:32] * ocm quit (Read error: Connection reset by peer)
1106: [15:59:58] * kinglozzer quit ()
1107: [16:29:56] * LoveDuckie quit (Remote host closed the connection)
1108: [16:31:00] * Pyneark quit ()
1109: [16:42:18] * thibault quit (Ping timeout: 240 seconds)
1110: [16:47:13] * UndefinedOffset quit (Quit: Leaving.)
1111: [16:49:53] * UndefinedOffset has joined #silverstripe
1112: [17:05:21] * gelignite has joined #silverstripe
1113: [17:19:00] * Liquide quit ()
1114: [17:21:57] * muskie9 quit (Ping timeout: 250 seconds)
1115: [17:22:48] * muskie9 has joined #silverstripe
1116: [17:30:05] * Err404NotFound quit (Ping timeout: 240 seconds)
1117: [17:42:34] * Err404NotFound has joined #silverstripe
1118: [18:03:46] * Err404NotFound quit (Read error: Connection reset by peer)
1119: [18:20:12] * Err404NotFound has joined #silverstripe
1120: [18:28:32] * Err404NotFound quit (Ping timeout: 276 seconds)
1121: [18:30:06] * wmk has joined #silverstripe
1122: [18:38:12] * scpi has joined #silverstripe
1123: [18:40:45] * Err404NotFound has joined #silverstripe
1124: [18:44:41] * jaredkipe quit (Ping timeout: 258 seconds)
1125: [19:17:47] * simon_w|air has joined #silverstripe
1126: [19:26:49] * Err404NotFound quit (Read error: Connection reset by peer)
1127: [19:50:05] * SightUnseen has joined #silverstripe
1128: [19:50:12] * SightUnseen has left #silverstripe
1129: [19:59:35] * micmania1 has joined #silverstripe
1130: [20:06:43] * Motoservo quit (Quit: Over & out.)
1131: [20:22:04] * UndefinedOffset quit (Quit: Leaving.)
1132: [20:24:35] * anselmdk has joined #silverstripe
1133: [20:38:27] * an_Eskimo has joined #silverstripe
1134: [20:52:35] * Ryan-Toast has joined #silverstripe
1135: [20:58:00] * simon_w|air quit (Quit: This computer has gone to sleep)
1136: [21:01:27] * gelignite quit (Quit: http://bit.ly/nkczDT)
1137: [21:04:28] * wmk quit (Ping timeout: 245 seconds)
1138: [21:11:13] * UncleCheese has joined #silverstripe
1139: [21:24:09] * muskie9_ has joined #silverstripe
1140: [21:26:21] * muskie9 quit (Ping timeout: 252 seconds)
1141: [21:27:45] * muskie9 has joined #silverstripe
1142: [21:28:31] * muskie9_ quit (Ping timeout: 250 seconds)
1143: [21:32:48] * zagoodwin has joined #silverstripe
1144: [21:35:31] <an_Eskimo> Anyone had an issue where form actions aren't being called on custom forms? It's in allowed actions, spelt the same, but submitting the form brings up the "A technical issue has occured"
1145: [21:36:10] <Zauberfisch> an_Eskimo: form actions should not be in allowed actions
1146: [21:36:27] <Zauberfisch> form actions are called by the form itself. there is no need to make them accessable via url
1147: [21:36:52] <an_Eskimo> Shouldn't they? Ahh right, yeah, cheers for that
1148: [21:37:09] <an_Eskimo> And the issue is solved, appreciate it Zauberfisch
1149: [21:37:18] <Zauberfisch> np
1150: [21:41:01] * muskie9_ has joined #silverstripe
1151: [21:42:40] * muskie9__ has joined #silverstripe
1152: [21:43:13] * muskie9 quit (Ping timeout: 245 seconds)
1153: [21:45:37] * muskie9_ quit (Ping timeout: 258 seconds)
1154: [21:45:41] * scpi quit (Quit: scpi)
1155: [21:51:37] * muskie9__ quit (Remote host closed the connection)
1156: [21:52:03] * anselmdk quit (Quit: anselmdk)
1157: [21:52:11] * muskie9 has joined #silverstripe
1158: [21:54:29] * muskie9 quit (Read error: Connection reset by peer)
1159: [21:57:49] * wmk has joined #silverstripe
1160: [22:01:48] * zagoodwin quit (Ping timeout: 240 seconds)
1161: [22:02:48] <UncleCheese> Very good read, if you're wondering how vaccines cause autism. http://howdovaccinescauseautism.com/
1162: [22:04:40] <Stomach> :D
1163: [22:06:59] <Ryan-Toast> UncleCheese: https://www.youtube.com/watch?v=RfdZTZQvuCo
1164: [22:10:22] <Zauberfisch> :D
1165: [22:15:49] <Ryan-Toast> I broke my wrist, which makes work reaaaallllyyyy slow.
1166: [22:27:34] <Stomach> thats not ideal
1167: [22:31:15] * Colin[pi] has joined #silverstripe
1168: [22:40:27] <simon_w> Ryan-Toast, also, it causes autism
1169: [22:40:44] <Ryan-Toast> I already have autism.
1170: [22:40:49] <Ryan-Toast> Wasnt vaccinated.
1171: [22:40:53] <Ryan-Toast> was**
1172: [22:42:08] * wmk quit (Quit: nice to meet you ;))
1173: [22:48:36] * babak quit (Quit: Connection closed for inactivity)
1174: [22:48:55] <simon_w> Well, you're just fucked then
1175: [22:55:00] * DesignerX has joined #silverstripe
1176: [22:58:24] * jordanmk has joined #silverstripe
1177: [22:58:25] * UncleCheese__ has joined #silverstripe
1178: [22:58:37] <jordanmk> hi guys
1179: [22:58:41] <Zauberfisch> blubb
1180: [23:00:28] * catcher quit (Quit: Leaving)
1181: [23:04:42] * Ryan-Toast quit (Quit: Ryan-Toast)
1182: [23:09:54] * violetina quit (Remote host closed the connection)
1183: [23:09:55] * micmania1 quit (Ping timeout: 250 seconds)
1184: [23:12:49] * Ryan-Toast has joined #silverstripe
1185: [23:21:31] <Stomach> man I love repositorys which build code for me
1186: [23:21:40] <Stomach> 1 commit, 27654 lines added, 27 deleted
1187: [23:21:41] <Stomach> lol
1188: [23:23:04] <spronk> :|
1189: [23:23:32] <simon_w> Eww, committing generated files :p
1190: [23:32:52] * Bollig|DesignCty has joined #silverstripe
1191: [23:36:38] <Stomach> simon_w - most of it was docs generation
1192: [23:37:26] <Stomach> its a javascript repo, they have seperately built bundles for npm and bower outside the main repo
1193: [23:37:30] <Stomach> very confusing
1194: [23:57:18] * UncleCheese__ quit (Quit: UncleCheese__)
1195: [23:57:50] * joelpittet has joined #silverstripe
1196: [23:59:42] * Ryan-Toast quit (Quit: Ryan-Toast)

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