#silverstripe IRC Log

IRC log for 7 January 2014

All timestamps are in UTC.

1: [00:00:03] * willr quit (Quit: willr)
2: [00:00:05] <simon_w> Cause I need to do the dishes at home :(
3: [00:01:20] * DigNZ1 has joined #silverstripe
4: [00:02:13] * ajmitch_ has joined #silverstripe
5: [00:02:33] <pippy> is there a SilverStripe 3.2 roadmap?
6: [00:02:51] * Colin[pi] quit (*.net *.split)
7: [00:02:52] * DigNZ quit (*.net *.split)
8: [00:02:53] * FrozenFire quit (*.net *.split)
9: [00:02:54] * ajmitch quit (*.net *.split)
10: [00:03:19] <ss23> I don't think so, I think we got rid of the "roadmap" in the change to Github? Not sure though
11: [00:03:56] <simon_w> It's all the features tagged with 3.2. Oh, wait...
12: [00:04:12] * FrozenFire has joined #silverstripe
13: [00:04:51] * camfindlay has joined #silverstripe
14: [00:05:14] <pippy> i've read about the nosql stuff
15: [00:05:16] <pippy> interesting
16: [00:05:36] <pippy> i'd be estatic if they'd work on optmisations
17: [00:05:53] * Colin[pi] has joined #silverstripe
18: [00:06:56] <pippy> https://groups.google.com/forum/?fromgroups#!topic/silverstripe-dev/17BhkkRyxX0
19: [00:07:06] <pippy> this seems to be in the 3.1 roadmap
20: [00:09:52] <simon_w> pippy, that's the only time something like that's been mentioned
21: [00:10:14] <ss23> Someone here at SS the company was working on NoSQL with SilverStripe
22: [00:10:19] <ss23> Personally, I feel like it's... idk
23: [00:10:26] <ss23> It would be better to devote your efforts elsewhere
24: [00:10:58] <ss23> I don't think it should be on an official roadmap though, seems more like a feature request for a miniscule subset of users than a "WE need this for next version!"
25: [00:11:13] <simon_w> DataObjectInterface, you can build your own
26: [00:11:26] <simon_w> we do in PocketRent to have some stuff in Mongo
27: [00:12:10] <ss23> BBL LUNCH since simon_w isn't giving me anyway
28: [00:12:11] <ss23> QQ
29: [00:12:12] <ss23> any*
30: [00:12:58] <pippy> ss23: fair enough
31: [00:14:22] * mojo5000 quit (Remote host closed the connection)
32: [00:31:46] * UncleCheese quit (Quit: UncleCheese)
33: [00:45:27] * UncleCheese has joined #silverstripe
34: [00:54:47] <pippy> :O
35: [00:55:03] <pippy> MSIE is now the #3rd most popular browser on wikimedia
36: [00:55:07] <pippy> http://stats.wikimedia.org/archive/squid_reports/2013-12/SquidReportClients.htm
37: [00:55:36] <guzzlefry> yay
38: [00:55:41] <Colin[pi]> fuck yes
39: [00:55:59] <guzzlefry> And Google Chrome is taking over as random broken stuff champion.
40: [00:56:03] <Colin[pi]> wow chrome's rise is staggering
41: [00:56:28] <guzzlefry> well, they have Google behind it.
42: [00:56:42] <Colin[pi]> yeah I suppose it's pushed on every google search
43: [00:56:57] * mojo5000 has joined #silverstripe
44: [00:56:58] <pippy> that's out of 146 billion page requets, it's far better than the few thousand net applications use
45: [00:57:31] * mojo5000 quit (Remote host closed the connection)
46: [00:57:32] <pippy> (no idea why blogs take netapplications seriously, they've even admitted in their fineprint they fabricate data)
47: [00:57:38] <Colin[pi]> now if only someone would write a virus to delete MSIE from the internet entirely... ;)
48: [00:57:52] <simon_w> Then you'd have to deal with Firefox instead
49: [00:58:06] <Colin[pi]> firefox I have no problem with, apart from it's sluggishness and memory use
50: [00:58:39] * mojo5000 has joined #silverstripe
51: [00:58:53] <ss23> I am not a big Firefox fan!
52: [01:01:09] <Colin[pi]> why not? I don't get why everyone doesn't seem to like it, apart from the usual quibbles
53: [01:01:45] <simon_w> Why do people not like IE?
54: [01:01:51] <guzzlefry> I prefer it over chrome. >_>
55: [01:01:53] <Colin[pi]> because it's a piece of shit
56: [01:01:59] <guzzlefry> IE10 isn't horrible.
57: [01:02:17] <Colin[pi]> each new version becomes slightly less horrible
58: [01:02:24] <simon_w> We've had far less problems with IE than FF
59: [01:02:35] <simon_w> Had to stop using animated gifs because of FF
60: [01:02:47] <Colin[pi]> ah yes, is this the playback issue?
61: [01:02:59] <Colin[pi]> starts and then kinda starts again, stutters a bit, then plays?
62: [01:03:20] <simon_w> This was it using 99% of the CPU rendering a hidden spinner.gif
63: [01:03:42] <Colin[pi]> hmm never had a CPU issue with them, in my experience anyway
64: [01:03:45] <ss23> Yeah, I remember had to turn off all of our JavaScript for Firefox and IE6 because it was bad, but fine in latest IE at the time
65: [01:04:18] <simon_w> Colin[pi], FF outside of Windows is potentially worse than iTunes in Windows :p
66: [01:04:33] <Colin[pi]> lol wow
67: [01:04:42] <Colin[pi]> well there's your problem, outside of windows ;D
68: [01:04:47] <Colin[pi]> in windows for me it's fine
69: [01:04:52] <pippy> the only accpetable version of MSIE is 11, but then you have to use windows 8 :/
70: [01:05:20] <Colin[pi]> pippy: I've still experienced some IE11-only quirks in my stuff too ;(
71: [01:05:30] <Colin[pi]> but it happens
72: [01:05:53] <pippy> it has the agent string "like gecko" in it
73: [01:06:05] <pippy> it pretends that it's firefox
74: [01:06:11] <pippy> which i find funny
75: [01:06:22] <pippy> so it breaks some site specific hacks
76: [01:06:33] <simon_w> Uh, pretty much every browser does?
77: [01:06:48] <simon_w> Just like they all have Mozilla versions
78: [01:07:36] <pippy> simon_w: they added "like Gecko" in msie11
79: [01:08:03] <pippy> i think most browsers had Mozillia/5.0 for a while to support framesets
80: [01:08:24] <pippy> http://www.geek.com/microsoft/internet-explorer-11-will-pretend-its-firefox-1543903/
81: [01:08:55] <pippy> it's great for the web
82: [01:09:33] <simon_w> Gah, that's horrible
83: [01:09:42] <Colin[pi]> I don't care how good IE gets, after all of the pain and suffering over the years, I will never switch to it ;D
84: [01:09:45] <simon_w> All WebKit UAs also say like-gecko
85: [01:09:52] <simon_w> It doesn't mean it's pretending to be Firefox
86: [01:10:37] <Colin[pi]> yeah chrome sends "like Gecko" too
87: [01:11:20] <pippy> user agent strings are becoming a joke... the chrome one is hueg
88: [01:11:52] <pippy> this one is mine:
89: [01:11:53] <pippy> Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36
90: [01:12:11] <pippy> why not just say Chrome/31
91: [01:16:05] <Colin[pi]> LUNCH TIME!!
92: [01:16:17] <simon_w> BURGERFUEL?
93: [01:16:25] <Colin[pi]> PIZZA
94: [01:16:47] <simon_w> Eh :p
95: [01:17:44] <ss23> I had to get McDonalds
96: [01:17:45] <ss23> QQ
97: [01:17:47] <ss23> well I didn't have to
98: [01:17:48] <ss23> But I di
99: [01:17:49] <ss23> did
100: [01:17:52] <Colin[pi]> smoked salmon with dill, home made, it's awesome :D
101: [01:19:13] * HELOP has joined #silverstripe
102: [01:19:30] <simon_w> Signup! That's what I was working on
103: [01:19:43] <simon_w> Time to start subclassing UITableViewCell again
104: [01:20:06] <HELOP> Hey guys! Really quick question. I am trying to run composer install / composer update to start working on a SS site, but when it comes to installing silverstripe/framework, it is popping up "Authentication required (api.github.com):"
105: [01:20:38] <simon_w> HELOP, you're trying to install an old version, grab a newer one (3.1.2)
106: [01:21:02] <ss23> simon_w: Whats the cause of that? o.o
107: [01:21:12] <simon_w> ss23, renaming from sapphire to silverstripe-framework
108: [01:21:22] <ss23> Ah, figured
109: [01:21:26] <ss23> Stupid renaming
110: [01:22:34] <HELOP> interesting, okay, just had a look in the composer.json, ""silverstripe/framework": "3.1.2"," is what I have...
111: [01:24:06] <simon_w> HELOP, though, with a composer update, it shouldn't error like that at all
112: [01:24:20] <ss23> What about usage limits?
113: [01:24:29] <simon_w> Perhaps?
114: [01:24:51] <simon_w> HELOP, you could try --prefer-dist or --prefer-source to see if either of them makes a difference
115: [01:25:44] <HELOP> @simon_w, just chuck it on the end of the update? or just composer --prefer-dist ?
116: [01:25:53] <simon_w> on the end of update
117: [01:26:44] <HELOP> okay, will have a look
118: [01:30:48] <HELOP> by the looks, --prefer-source has worked! Wonderful, now, jsut to solve my fragment issue when run dev/build
119: [01:32:39] <ss23> Blargh, I'm hitting this stupid AM/PM bug again
120: [01:32:47] <HELOP> and I have fixed that. Woo! Game on! Much appreciated guys!
121: [01:32:48] <ss23> I hate so much about the CMS backend
122: [01:33:10] <simon_w> ss23, that's Zend_Date
123: [01:33:17] <ss23> I know
124: [01:33:18] <ss23> :(
125: [01:33:26] <ss23> I spent ~2 hours looking into it once
126: [01:33:33] <ss23> It's hard to debug because there's thousands of lines of code that are touched.
127: [01:34:52] * Jakx has left #silverstripe
128: [01:35:56] <ss23> Fuck it, I'll put this on the list of "known bugs" and tell him he can pay for it if he wants.
129: [01:37:10] * mojo5000 quit (Remote host closed the connection)
130: [01:37:29] * HELOP quit (Ping timeout: 272 seconds)
131: [01:39:30] * mojo5000 has joined #silverstripe
132: [01:44:25] <guzzlefry> hrm
133: [01:44:36] <guzzlefry> How often does SilverStripe pull in new versions of the third party stuff?
134: [01:44:45] <guzzlefry> ZF, JQuery, etc.
135: [01:45:24] <simon_w> Whenever someone does it
136: [01:45:30] <simon_w> And it doesn't break stuff
137: [02:11:17] <Colin[pi]> ping
138: [02:11:26] <guzzlefry> pong
139: [02:11:47] <Colin[pi]> ah someone is here, when it's quiet for a long time I feel my connection has spazzed
140: [02:12:14] <guzzlefry> I think you can do /ping nickname
141: [02:12:22] <simon_w> Just do /ping
142: [02:12:32] <guzzlefry> ah
143: [02:12:34] <Colin[pi]> i just ping the channel, I like the human touch
144: [02:12:35] <Colin[pi]> :D
145: [02:12:42] <guzzlefry> (9:12:25 PM) PING reply -- Lag: 0 seconds
146: [02:12:47] <guzzlefry> How am I just now finding this out? :P
147: [02:16:33] <ss23> lol
148: [02:16:37] <ss23> I prefer the whois myself
149: [02:25:16] <Colin[pi]> that feel when you have some code that is kinda shitty, and needs improvement... but is working :o
150: [02:25:57] <simon_w> So, SilverStripe? :p
151: [02:26:31] <Colin[pi]> so all software ;P
152: [02:27:37] <pippy> haah
153: [02:28:05] <Colin[pi]> that said I have seen far worse than SS... FAR worse
154: [02:28:49] <pippy> tidy, fast, works: pick two
155: [02:29:10] <simon_w> Really? I've found you tend to get one. If you're lucky.
156: [02:29:48] <Colin[pi]> http://en.wikipedia.org/wiki/Project_management_triangle :)
157: [02:31:33] <simon_w> Goal for today: get this signup thing working nicely and shit
158: [02:31:46] <Colin[pi]> are those two mutually exclusive?
159: [02:32:07] <simon_w> If they were, I'd never achieve my goal
160: [02:32:12] <Colin[pi]> lol
161: [02:32:32] <Colin[pi]> meanwhile, I am building a behemoth of an object model ;C
162: [02:33:03] <simon_w> Oh man, I'm not looking forward to that part. Especially since I'm matching an API that hasn't been fully fleshed out :(
163: [02:33:25] <Colin[pi]> nothing worse then hooking in to a shitty API
164: [02:33:39] <simon_w> Also, it's been half done by the original developer before he knew anything about the app
165: [02:33:44] <Colin[pi]> eek
166: [02:33:49] <simon_w> So as I'm getting to bits he's done, I'm just throwing them out
167: [02:35:10] <Colin[pi]> suxky
168: [02:35:12] <Colin[pi]> *sucky also
169: [02:36:49] <simon_w> Well, it has a side-effect of improving the code quality :)
170: [02:37:39] <Colin[pi]> that's a plus :)
171: [02:38:04] <Colin[pi]> I am refactoring some code at the moment... some of it is so shit
172: [02:38:31] <Colin[pi]> side effect of working with clients who don't understand software development timeframes
173: [02:38:50] <Colin[pi]> "WE DONT CARE WE JUST WANT TO DEMO IT MONDAY"
174: [02:38:55] <Colin[pi]> "it will be shit!"
175: [02:39:02] <Colin[pi]> "JUST DO IT1"
176: [02:39:05] <Colin[pi]> *sigh* ok
177: [02:42:03] <simon_w> Come Monday: "WHY IS IT SO SHIT?"
178: [02:42:09] <Colin[pi]> ding ding
179: [02:42:47] <ss23> lol
180: [02:44:17] <simon_w> Clients! I don't work with them :)
181: [02:44:59] <Colin[pi]> I'm envious ;)
182: [02:49:28] <Colin[pi]> anyone used bitbucket?
183: [02:49:39] <simon_w> We're using it for this app
184: [02:49:48] <Colin[pi]> how do you find it?
185: [02:49:51] <Colin[pi]> ok?
186: [02:50:00] <simon_w> It's hosted git and works like it
187: [02:50:01] <ss23> I signed up to it last night, using my Github account
188: [02:50:31] <Colin[pi]> using the sourcetree app?
189: [02:50:57] <simon_w> Why would I do that? :p
190: [02:50:58] * mojo5000 quit (Remote host closed the connection)
191: [02:51:04] <simon_w> CLI and a little Xcode
192: [02:51:04] <Colin[pi]> I DONT KNOW
193: [02:51:06] <Colin[pi]> ;P
194: [02:58:26] * nickmolhoek quit (Ping timeout: 264 seconds)
195: [02:59:43] * nickmolhoek has joined #silverstripe
196: [03:13:46] <Colin[pi]> hmm I should go for a bike ride this evening :o
197: [03:16:47] <simon_w> I should walk home
198: [03:17:16] <Colin[pi]> not riding the bike much anymore?
199: [03:17:32] <simon_w> Not in this heat
200: [03:17:43] <Colin[pi]> what, 17 degrees? LOL
201: [03:17:43] * zippy__ has joined #silverstripe
202: [03:18:05] <simon_w> 200m climb over 6km, 100m of which is in the first 2 :p
203: [03:18:24] <Colin[pi]> pansy
204: [03:18:25] <Colin[pi]> ;D
205: [03:18:45] <simon_w> You know I'm not all that fit, right? :p
206: [03:19:12] <Colin[pi]> dude you're prolly better than me
207: [03:19:17] <Colin[pi]> no
208: [03:19:19] <Colin[pi]> not prolly
209: [03:19:20] <Colin[pi]> ARE
210: [03:19:21] <Colin[pi]> ;D
211: [03:20:40] <simon_w> And you bike on the flat :p
212: [03:21:31] <Colin[pi]> not really
213: [03:21:54] <Colin[pi]> the first 7 kms is like down... the next 5 are flat, and the last 3 are up ;D
214: [03:23:40] * Zero has joined #silverstripe
215: [03:23:47] * abitran quit (Ping timeout: 240 seconds)
216: [03:24:04] * Zero is now known as Guest41337
217: [03:25:46] <ss23> simon_w: LIAR
218: [03:25:48] <ss23> It's not hot today!
219: [03:25:57] <ss23> It was really really nice when I walked to work this morning
220: [03:26:14] <ss23> Not cold enough to make me hate it, and windy enough to keep me from sweatying, was just really nice
221: [03:29:51] <Colin[pi]> 24C here now, perfect
222: [03:29:58] <Guest41337> hey, is there any where in silverstripe where the main IP is explicitly set? We're having some issues with a server error, and all assets appear to be being served from another IP
223: [03:30:08] <Guest41337> I've checked through a DB dump and the main htaccess files
224: [03:32:37] * jrthomer has joined #silverstripe
225: [03:33:01] * jrthomer quit (Remote host closed the connection)
226: [03:44:34] <Colin[pi]> oh javascript
227: [03:44:39] <Colin[pi]> why do you waste my time so
228: [03:48:01] <ss23> Story of my life
229: [03:48:21] <ss23> Guest41337: Depends on what "main IP" is, but might be a good idea to check in the assets folder in the error-XXX files
230: [03:48:46] <ss23> Guest41337: Long story short, it generates the static error pages once, and never regenerates them even when you change server. DElete assets/error-XXX and run dev/build to fix
231: [03:50:50] <simon_w> Or open the CMS and Save & Publish the Server Error and Not Found pages
232: [03:51:12] <ss23> Yeah, but that is effort (and I forgot about that method)
233: [03:53:07] * openbees has joined #silverstripe
234: [04:00:04] * DigNZ1 quit (Quit: DigNZ1)
235: [04:00:08] <Guest41337> Wow that's weird. Why were those pages being served instead of the main content?
236: [04:00:11] <Guest41337> deleting those seems to have fixed it
237: [04:03:18] * nickmolhoek quit (Quit: nickmolhoek)
238: [04:03:49] * openbees quit (Quit: Leaving)
239: [04:16:23] * cloph_away has joined #silverstripe
240: [04:16:37] * cloph quit (Ping timeout: 248 seconds)
241: [04:30:23] * Guest41337 quit (Ping timeout: 272 seconds)
242: [04:34:36] * DesignerX has joined #silverstripe
243: [04:52:08] * UncleCheese quit (Quit: UncleCheese)
244: [04:54:34] * camfindlay quit (Quit: camfindlay)
245: [05:30:28] * mrzero_ has joined #silverstripe
246: [05:30:46] * mrzero_ quit (Changing host)
247: [05:30:46] * mrzero_ has joined #silverstripe
248: [05:36:34] * ss-log has joined #silverstripe
249: [05:36:34] * hubertusanton has joined #silverstripe
250: [05:39:42] * torstein quit (*.net *.split)
251: [05:39:42] * mrzero quit (*.net *.split)
252: [05:39:42] * mrzero_ is now known as mrzero
253: [05:39:43] * Colin[pi] quit (Write error: Broken pipe)
254: [05:39:51] * Colin[pi] has joined #silverstripe
255: [05:49:14] * mrzero quit (Read error: Operation timed out)
256: [05:52:17] * cloph_away quit (*.net *.split)
257: [05:52:18] * FrozenFire quit (*.net *.split)
258: [05:52:18] * ajmitch_ quit (*.net *.split)
259: [05:52:18] * Colin[pi] quit (*.net *.split)
260: [05:52:18] * Kapdap quit (*.net *.split)
261: [05:52:18] * hubertusanton quit (*.net *.split)
262: [05:52:18] * andylockran quit (*.net *.split)
263: [05:52:18] * zippy__ quit (*.net *.split)
264: [05:52:18] * Azure quit (*.net *.split)
265: [05:52:18] * pippy quit (*.net *.split)
266: [05:52:18] * irogue23 quit (*.net *.split)
267: [05:52:19] * discorpia quit (*.net *.split)
268: [05:52:19] * ss23 quit (*.net *.split)
269: [05:52:19] * simon_w quit (*.net *.split)
270: [05:52:19] * lewellyn quit (*.net *.split)
271: [05:52:19] * lab-notes quit (*.net *.split)
272: [05:52:19] * joelpittet quit (*.net *.split)
273: [05:52:19] * spronk quit (*.net *.split)
274: [05:52:19] * Shrike_Finland quit (*.net *.split)
275: [05:52:19] * mobiusnz1 quit (*.net *.split)
276: [05:52:19] * Zauberfisch23 quit (*.net *.split)
277: [05:52:19] * ec8or___ quit (*.net *.split)
278: [05:52:19] * blindMoe|2 quit (*.net *.split)
279: [05:52:19] * EasyCo quit (*.net *.split)
280: [05:52:19] * robert_ quit (*.net *.split)
281: [05:52:19] * coldhand_ quit (*.net *.split)
282: [05:52:19] * wmk quit (*.net *.split)
283: [05:52:19] * unsignedint quit (*.net *.split)
284: [05:52:19] * guzzlefry quit (*.net *.split)
285: [05:52:19] * Kolin quit (*.net *.split)
286: [05:52:19] * madmatt_ quit (*.net *.split)
287: [05:52:19] * DesignerX quit (*.net *.split)
288: [05:52:20] * goesta quit (*.net *.split)
289: [05:57:56] * mrzero has joined #silverstripe
290: [05:57:56] * torstein has joined #silverstripe
291: [05:57:56] * Colin[pi] has joined #silverstripe
292: [05:57:56] * hubertusanton has joined #silverstripe
293: [05:57:56] * andylockran has joined #silverstripe
294: [05:57:56] * DesignerX has joined #silverstripe
295: [05:57:56] * cloph_away has joined #silverstripe
296: [05:57:56] * zippy__ has joined #silverstripe
297: [05:57:56] * FrozenFire has joined #silverstripe
298: [05:57:56] * ajmitch_ has joined #silverstripe
299: [05:57:56] * joelpittet has joined #silverstripe
300: [05:57:56] * EasyCo has joined #silverstripe
301: [05:57:56] * Azure has joined #silverstripe
302: [05:57:56] * spronk has joined #silverstripe
303: [05:57:56] * Shrike_Finland has joined #silverstripe
304: [05:57:56] * guzzlefry has joined #silverstripe
305: [05:57:56] * robert_ has joined #silverstripe
306: [05:57:56] * coldhand_ has joined #silverstripe
307: [05:57:56] * wmk has joined #silverstripe
308: [05:57:56] * Kapdap has joined #silverstripe
309: [05:57:56] * ss23 has joined #silverstripe
310: [05:57:56] * unsignedint has joined #silverstripe
311: [05:57:56] * simon_w has joined #silverstripe
312: [05:57:56] * goesta has joined #silverstripe
313: [05:57:56] * mobiusnz1 has joined #silverstripe
314: [05:57:56] * Zauberfisch23 has joined #silverstripe
315: [05:57:56] * ec8or___ has joined #silverstripe
316: [05:57:56] * lab-notes has joined #silverstripe
317: [05:57:56] * Kolin has joined #silverstripe
318: [05:57:56] * blindMoe|2 has joined #silverstripe
319: [05:57:56] * madmatt_ has joined #silverstripe
320: [05:57:56] * lewellyn has joined #silverstripe
321: [05:57:56] * irogue23 has joined #silverstripe
322: [05:57:56] * pippy has joined #silverstripe
323: [05:57:56] * discorpia has joined #silverstripe
324: [06:32:50] * jrthomer has joined #silverstripe
325: [06:35:00] * jrthomer quit (Client Quit)
326: [06:35:52] * jrthomer has joined #silverstripe
327: [06:43:45] * joelpittet quit (Remote host closed the connection)
328: [06:44:18] * joelpittet has joined #silverstripe
329: [06:46:28] * Shrike_Finland quit (Quit: Leaving.)
330: [06:48:37] * joelpittet quit (Ping timeout: 248 seconds)
331: [07:02:04] * new_learner has joined #silverstripe
332: [07:14:41] * zippy__ quit (Quit: zippy__)
333: [07:15:33] * abitran has joined #silverstripe
334: [07:23:04] * zippy__ has joined #silverstripe
335: [07:26:17] * new_learner quit (Ping timeout: 272 seconds)
336: [07:33:50] * ajmitch_ quit (Ping timeout: 264 seconds)
337: [07:45:38] * ajmitch has joined #silverstripe
338: [07:49:42] * jrthomer quit (Remote host closed the connection)
339: [07:53:16] * mattybalaam has joined #silverstripe
340: [07:53:24] * mattybalaam quit (Client Quit)
341: [08:11:53] * Shrike_Finland has joined #silverstripe
342: [08:32:59] * joelpittet has joined #silverstripe
343: [08:37:26] * joelpittet quit (Ping timeout: 264 seconds)
344: [08:38:13] * jrthomer has joined #silverstripe
345: [08:39:18] * ARNHOE has joined #silverstripe
346: [08:42:59] * jrthomer quit (Ping timeout: 260 seconds)
347: [08:51:18] * nedmas has joined #silverstripe
348: [08:51:34] * nedmas has left #silverstripe
349: [08:51:42] * nedmas has joined #silverstripe
350: [08:56:25] * kinglozzer has joined #silverstripe
351: [09:16:09] * new_learner has joined #silverstripe
352: [09:18:02] <new_learner> how to solve this [Notice] Undefined offset: 0 ?
353: [09:32:42] <new_learner> what is the BREAK doing in the loop of this code....http://sspaste.com/paste/show/52cbc6f120208 ??
354: [09:32:45] * jrthomer has joined #silverstripe
355: [09:37:26] * jrthomer quit (Ping timeout: 264 seconds)
356: [09:48:10] * micmania1 has joined #silverstripe
357: [10:06:06] <kinglozzer> ping lewellyn
358: [10:21:48] * joelpittet has joined #silverstripe
359: [10:27:02] * jrthomer has joined #silverstripe
360: [10:27:07] * joelpittet quit (Ping timeout: 272 seconds)
361: [10:29:14] * qlex has joined #silverstripe
362: [10:29:21] * qlex says hi
363: [10:31:11] * jrthomer quit (Read error: Operation timed out)
364: [10:42:06] <Zauberfisch23> qlex: greetings
365: [10:42:32] <Zauberfisch23> you poked me a couple of times the past days, sorry, was always asleep when you where online
366: [10:43:00] <Zauberfisch23> and i was really lazy, did basiclally no work at all during the holliday :/
367: [10:43:16] <Zauberfisch23> but i will look into the pull request thingy within e week
368: [10:43:24] <qlex> ok
369: [10:43:25] <qlex> great
370: [10:43:30] <qlex> greetz in 2014 !
371: [10:43:32] <Zauberfisch23> *within the week
372: [10:43:59] <Zauberfisch23> most likely on friday,make sure to poke me on friday
373: [10:49:25] * nedmas quit (Quit: nedmas)
374: [11:03:26] <qlex> Zauberfisch23: will remind you on friday AM
375: [11:03:55] <DesignerX> hi Zauberfisch23 Happy new Blub :)
376: [11:12:00] * stripemonkey has joined #silverstripe
377: [11:12:03] <stripemonkey> Hi o/
378: [11:12:53] * Pyromanik has joined #silverstripe
379: [11:13:11] <Pyromanik> gawd, getting up late ftw
380: [11:14:23] <stripemonkey> I'm just about to start using the silverstripe/widgets module but have fallen at the first hurdle: where exactly do I place my code?
381: [11:14:30] <stripemonkey> This page https://github.com/silverstripe/silverstripe-widgets says "Each widget should be in its own folder like widgets_widgetName/", but where does that folder itself go - in the Silverstripe root or under widgets/ or other?
382: [11:15:16] <stripemonkey> (Note that the widgets module itself installs in the root to widgets/ so I really don't want to add mine in there)
383: [11:21:08] * jrthomer has joined #silverstripe
384: [11:22:21] <kinglozzer> stripemonkey: Those folders go in the root folder
385: [11:22:48] <stripemonkey> kinglozzer: OK, thanks... So many things in the root folder with SS, very messy :-(
386: [11:25:25] * jrthomer quit (Ping timeout: 248 seconds)
387: [11:30:05] <Zauberfisch23> blubb DesignerX (:
388: [11:30:13] <Zauberfisch23> qlex: perfect, until friday then
389: [11:31:50] <DesignerX> stripemonkey: hi, I think they should work the same in a sub-folder, give it a try.
390: [11:32:23] <DesignerX> GN everyone
391: [11:35:29] * qlex says bye
392: [11:35:31] * qlex has left #silverstripe
393: [11:37:36] * Sj0hn has joined #silverstripe
394: [11:39:56] <Sj0hn> heya
395: [11:41:38] <Sj0hn> im using the sitemap module on 3.0.5 but i get the follwing error when going to /sitemap.xml
396: [11:41:40] <Sj0hn> error on line 11 at column 8: Opening and ending tag mismatch: base line 0 and head
397: [11:49:51] * [1]Pyromanik has joined #silverstripe
398: [11:49:59] <[1]Pyromanik> hooray internet :<
399: [11:50:04] * Pyromanik quit (Ping timeout: 261 seconds)
400: [11:50:04] * [1]Pyromanik is now known as Pyromanik
401: [11:50:43] <Pyromanik> stripemonkey, not messy.
402: [11:50:51] <Pyromanik> just deal with it xD
403: [11:51:09] <Pyromanik> all extension code goes in it's own folder in the SS root
404: [11:51:15] <Pyromanik> modules, widgets, etc.
405: [11:51:25] <Pyromanik> mysite is also technically a module.
406: [11:51:29] <Pyromanik> as is cms
407: [11:51:57] <Pyromanik> it'd be just as messy if there was a subfolder "modules" as they'd just have a 'mess' of folders under it anyway
408: [11:52:30] <Pyromanik> anyway, the one caveat of installing modules is that sometimes (often) the folder needs to be called something specific.
409: [11:53:03] <Pyromanik> eg if you download widgets from github and extract it, the folder will probably be called "silverstripe-widgets", where you are more than likely required to rename it to just "widgets"
410: [11:54:23] <Pyromanik> don't do what DesignerX suggested and put it in a subfolder anyway, because although it sometimes works, it's not how the system is designed to work and causes issues.
411: [11:54:27] <Pyromanik> not worth the trouble.
412: [11:55:00] <Pyromanik> Sj0hn, because there is no sitemap module for .... oh you mean googlesitemaps?
413: [11:55:29] <Pyromanik> make sure you get the 3.0 version, not the one for 3.1 or whatever (match the version the module is intended for with your installed version of SS)
414: [11:56:00] <Pyromanik> also that error will likely be because of an XML fault, not necessarially a fault with the module.
415: [11:56:45] <Pyromanik> XML is strict, you can't have an unclosed tag like you can in html (eg <div><p></div> - in html the browser will forgive or try to fix this, in xml it will just error).
416: [11:57:15] <Pyromanik> so check your version, update if necessary, check xml output if it still persists, fix bug, submit pull request :P
417: [12:06:05] * Shrike_Finland1 has joined #silverstripe
418: [12:07:29] <stripemonkey> Pyromanik: it is messy vs other frameworks where everything has a logical place... Having ALL modules in the root directory is particularly nasty when there's a vendor directory sat there feeling lonely...
419: [12:08:05] * Shrike_Finland quit (Ping timeout: 248 seconds)
420: [12:10:13] * Colin[pi] quit ()
421: [12:12:00] <stripemonkey> For module-specific parameters, should I put them in the module's _config.php or in _config/config.yml ?
422: [12:13:20] <stripemonkey> For example, I've got a Disqus "disqus_shortname" that is module-specific and I need to access it from a controller, what's the standard way to do that?
423: [12:15:56] * stripemonkey feels tired and confused today :-/
424: [12:16:34] <Pyromanik> stripemonkey, and where is that logical place?
425: [12:16:45] <Pyromanik> in a folder named "modules" ?
426: [12:17:08] <Pyromanik> as with all things, if you're editing code you didn't write (and you're not bugfixing) then you're doing it wrong.
427: [12:17:18] <Pyromanik> all config options go in your project's config.
428: [12:17:32] <Pyromanik> mysite/_config.php or mysite/_config/config.yml
429: [12:17:41] <stripemonkey> Pyromanik: maybe, depends on the framework. I've come from Zend Framework and a bit of Symfony 2, and both have better directory layouts (but do other stuff badly...)
430: [12:17:58] <Pyromanik> vendor directory is a composer thing.
431: [12:17:59] <stripemonkey> Pyromanik: "as with all things, if you're editing code you didn't write (and you're not bugfixing) then you're doing it wrong." <- agreed, and I'm not.
432: [12:18:10] <Pyromanik> SilverStripe pre-exists composer.
433: [12:18:19] <Pyromanik> :)
434: [12:18:44] <stripemonkey> Pyromanik: yes, I get that, I just thought by now it would have caught up - I'm guessing the autoloader changes aren't so straightforward.
435: [12:18:53] <Pyromanik> indeed.
436: [12:20:01] <stripemonkey> Thanks for the advice on the config, I'm reading up on it but find the examples not-so-great :-)
437: [12:20:36] <stripemonkey> Bah, I'm going for a break to clear my head, bbl and thanks again!
438: [12:21:48] <Pyromanik> mmm, docs could use some work probably, but learning by example is best really.
439: [12:22:43] <Pyromanik> basically most/all private static $var; are config options, and serve only as defaults to the config system. Everything is read in (and overwritten) by yaml specified options.
440: [12:22:49] * Shrike_Finland has joined #silverstripe
441: [12:24:41] * Shrike_Finland1 quit (Read error: No route to host)
442: [12:25:23] * stripemonkey quit (Ping timeout: 272 seconds)
443: [12:29:12] * rohitbanerjee has joined #silverstripe
444: [12:29:26] <rohitbanerjee> hello
445: [12:30:23] <rohitbanerjee> can someone help me setup Recaptcha module with SpamProtection, to work on Comments
446: [12:38:14] <Pyromanik> install module, follow instructions, done.
447: [12:38:30] <Pyromanik> Readme.md
448: [12:39:16] <Pyromanik> rohitbanerjee, https://github.com/chillu/silverstripe-recaptcha/blob/master/README.md
449: [12:39:52] <rohitbanerjee> hey Pyro, thanks for answering
450: [12:40:17] <rohitbanerjee> I have already installed the Comments, SpamProtection and the Recaptcha modules
451: [12:40:49] <rohitbanerjee> and have added the following in the mysite/_config.php file
452: [12:41:18] <rohitbanerjee> SpamProtectorManager::set_spam_protector('RecaptchaProtector'); RecaptchaField::$public_api_key = '<actual public key>'; RecaptchaField::$private_api_key = '<actual private key>';
453: [12:41:47] <rohitbanerjee> It seems that Im still missing a step somewhere ..
454: [12:51:22] * zippy__ quit (Quit: zippy__)
455: [12:56:10] <Pyromanik> did you actually put a public and private key in there?
456: [12:56:20] <Pyromanik> rohitbanerjee, ^
457: [12:56:38] <rohitbanerjee> yup, i did
458: [12:57:08] <rohitbanerjee> I think the step I was missing was adding the following line in mysite/_config.php
459: [12:57:13] <rohitbanerjee> CommentingController::add_extension('CommentSpamProtection');
460: [12:57:24] <rohitbanerjee> but then I get error
461: [12:57:47] <rohitbanerjee> error for missing argument
462: [12:59:52] <rohitbanerjee> but for the love of God, I can't seem to get the first paramter right
463: [13:00:20] <Pyromanik> there is no class CommentSpamProtection I think
464: [13:01:03] <rohitbanerjee> actually there is
465: [13:01:05] <rohitbanerjee> https://github.com/silverstripe/silverstripe-spamprotection/blob/master/code/extensions/CommentSpamProtection.php
466: [13:01:27] <rohitbanerjee> got it off from here
467: [13:01:27] <rohitbanerjee> http://www.silverstripe.org/all-other-modules/show/23106
468: [13:01:50] <Pyromanik> oh
469: [13:01:56] <Pyromanik> what version of SS are you using?
470: [13:02:03] <rohitbanerjee> but I know Im messing (or missing) something
471: [13:02:08] <rohitbanerjee> 3.0.2
472: [13:02:47] <Pyromanik> try instead Object::add_extension('CommentingController', 'CommentSpamProtection');
473: [13:03:02] <Pyromanik> that's probably the issue.
474: [13:03:23] <Pyromanik> that or use yml
475: [13:03:57] <Pyromanik> but I'm not sure if that works in 3.0
476: [13:04:16] <rohitbanerjee> ok
477: [13:05:30] <rohitbanerjee> yup, that did the trick
478: [13:05:34] <rohitbanerjee> thanks Pyro
479: [13:06:57] <Pyromanik> You're welcome
480: [13:09:19] * jrthomer has joined #silverstripe
481: [13:09:25] <rohitbanerjee> I'll add this code snippet to the Forum post above, for others
482: [13:13:11] * Pyromanik quit (Read error: Connection reset by peer)
483: [13:13:53] * Pyromanik has joined #silverstripe
484: [13:14:19] * jrthomer quit (Ping timeout: 272 seconds)
485: [13:16:38] * rohitbanerjee quit (Quit: Page closed)
486: [13:27:30] <Sj0hn> Pyromanik where can i check the xml output=
487: [13:27:32] <Sj0hn> ?
488: [13:28:23] <Sj0hn> cuz on the sitemap.xml it shows nothing but: This page contains the following errors:
489: [13:28:24] <Sj0hn> error on line 11 at column 8: Opening and ending tag mismatch: base line 0 and head
490: [13:28:24] <Sj0hn> Below is a rendering of the page up to the first error.
491: [13:29:07] <Sj0hn> version is ok. using 1.1
492: [13:38:06] <Sj0hn> Not sure where to locate the bug
493: [13:38:44] <micmania1> Sj0hn try adding ?flush=1 to the URL
494: [13:39:01] <Pyromanik> Sj0hn, right click, view source?
495: [13:41:40] <Sj0hn> flushing fixed the error..
496: [13:46:29] <new_learner> hi
497: [13:46:58] <Sj0hn> now it only indexed one page..
498: [13:47:21] <Sj0hn> thanks for you help Pyromanik & micmania1
499: [13:48:59] * stripemonkey has joined #silverstripe
500: [13:49:05] <stripemonkey> Hi o/
501: [13:49:59] <stripemonkey> How do I read back values in my module's config.yml? Each time I try it just dies, and the docs aren't clear :-(
502: [13:52:27] <stripemonkey> The names have been changed to protect the innocent: http://pastebin.com/Kq6UinSa
503: [13:52:54] <stripemonkey> I want to read back the value for disqusShortname from within a controller in the module
504: [13:54:53] <stripemonkey> If I do print_r($this->config()->get('silverstripe-doobry-module/config');); I get nothing :-/
505: [13:56:04] <stripemonkey> Same for print_r($this->config()->get('silverstripe-doobry-module'););
506: [13:56:25] <stripemonkey> Oops, ignore the extra semi-colons
507: [13:58:29] * joelpittet has joined #silverstripe
508: [13:58:32] <Pyromanik> stripemonkey, I think you're confused on context
509: [13:58:50] <stripemonkey> Yeah I think so too :-(
510: [13:58:53] <Pyromanik> $this->config() will get config options for $this, ie whatever controller is in current scope.
511: [13:58:55] * dimistripe has joined #silverstripe
512: [13:59:06] <stripemonkey> Pyromanik: Yep, just noticed that :-(
513: [13:59:22] <Pyromanik> sounds like you want ClassName::config()->get('paramName')
514: [13:59:35] <dimistripe> Hi Guys, Updating 2.4 to 3.1.3 - where I can find auth_openid module for 3.1.2 ? (or should i switch to smth else ?)
515: [13:59:39] <Pyromanik> module, etc doesn't matter, it's teh class name.
516: [13:59:54] <stripemonkey> How do I access the stuff in a module's .yml? The module doesn't have a class name iirc?
517: [13:59:54] <Pyromanik> dimistripe, try addons.silverstripe.org
518: [14:00:19] <Pyromanik> there may not be a 3.1 version, although I think it's a simon_w module so you might be in luck.
519: [14:00:39] <Pyromanik> stripemonkey, no, but all config options are bound to classes.
520: [14:00:46] <Pyromanik> there's nothing that isn't a class option.
521: [14:01:11] <Pyromanik> or you can go the long way, I think there's something like Config::get or something, check the docs.
522: [14:01:13] <stripemonkey> Pyromanik: so in that YAML file I pasted, what class would that config be bound to (if any)?
523: [14:01:15] <Pyromanik> maybe not, dunno.
524: [14:01:34] <Pyromanik> social
525: [14:01:44] <stripemonkey> Ah righty, OK
526: [14:01:48] <Pyromanik> stripemonkey, I think you're misunderstanding configs.
527: [14:01:57] <stripemonkey> Yep!
528: [14:01:59] <Pyromanik> the header section is just inclusion order.
529: [14:02:13] <stripemonkey> Yep, I get that bit :-)
530: [14:02:15] <Pyromanik> you give it a name so you can include other things after it, etc.
531: [14:02:24] <Pyromanik> it's got nothing to do with fetching options.
532: [14:02:48] <Pyromanik> SS creates a directional acyclic graph to merge options.
533: [14:03:03] <Pyromanik> options in a config file go in the format of
534: [14:03:15] <Pyromanik> ClassName:
535: [14:03:16] * joelpittet quit (Ping timeout: 265 seconds)
536: [14:03:27] <stripemonkey> OK, so if I change "social" to "SocialshareWidget" (a class that exists) I'll be fine
537: [14:03:28] <Pyromanik> Setting: Value
538: [14:03:39] * jrthomer has joined #silverstripe
539: [14:03:40] <Pyromanik> yes, likely.
540: [14:03:59] * Vik has joined #silverstripe
541: [14:04:03] <stripemonkey> From a different module I'll want to set it differently, won't it break by just taking the last one specified?
542: [14:04:04] <Pyromanik> provided 'disqusShortName' is a private static set in SocialshareWidget
543: [14:04:15] <stripemonkey> It is
544: [14:04:26] <Pyromanik> (you can define anything in config, but the class has to read it obviously :P )
545: [14:04:27] <stripemonkey> Actually it's a public at the mo but private static is fine
546: [14:04:53] <Pyromanik> stripemonkey, if you're using 3.1 it should be private static $configvar = 'value'; or similar
547: [14:05:09] <stripemonkey> OK, I'll try this out... bbiab...
548: [14:05:15] <irogue23> ohai Pyromanik
549: [14:05:17] <Pyromanik> look at the likes of framework/_config and cms/_config to get some hints about how this all works.
550: [14:05:28] <Pyromanik> hai irogue23 at 3:05am
551: [14:05:29] <stripemonkey> Will do, thanks!
552: [14:06:34] * Shrike_Finland quit (Write error: Broken pipe)
553: [14:06:39] <irogue23> Pyromanik: shhhhh
554: [14:07:03] <irogue23> i may have spent the last 45min trying to figure out why an SS template wasn't working
555: [14:07:13] <Pyromanik> you named it wrong?
556: [14:07:14] <irogue23> only to realise i was using <% loop %> on ss2.4
557: [14:07:19] <Pyromanik> oh, lulz
558: [14:07:25] <irogue23> no errorz, just did nothing :P
559: [14:07:33] <Pyromanik> yeh, it would coz regex
560: [14:07:45] <irogue23> yep
561: [14:07:49] <Pyromanik> just alias it :P
562: [14:07:49] <irogue23> so frustrating once i realised tho
563: [14:08:04] * new_learner quit (Quit: Page closed)
564: [14:08:16] <Pyromanik> (read: edit line in ssviewer to be control|loop :P
565: [14:08:18] <Pyromanik> )
566: [14:08:29] <irogue23> Pyromanik: lol yeah
567: [14:08:39] * jrthomer quit (Ping timeout: 276 seconds)
568: [14:08:47] <Vik> Hi there, where can I find some good resources on creating custom modules for silverstripe
569: [14:08:49] <Vik> ?
570: [14:11:43] <stripemonkey> Vik, the standard docs are fairly explanatory, have you run into a particular issue?
571: [14:13:14] <irogue23> Vik: as far as knowing how to write custom code, http://doc.silverstripe.org/framework/en/tutorials/2-extending-a-basic-site
572: [14:14:08] <Pyromanik> Vik, look at other simple modules out there also good.
573: [14:14:20] <Pyromanik> rule of thumb: move code to own folder/code
574: [14:14:25] <Pyromanik> make folder/_config
575: [14:14:26] <Pyromanik> done.
576: [14:15:03] <stripemonkey> And add a composer.json for deploying or sharing :-)
577: [14:17:07] <stripemonkey> Pyromanik: that config stuff didn't work for me, the value of $disqusShortname in the widget is null when instantiated from the module whose config is trying to set it
578: [14:17:39] * stripemonkey is very tempted to write a module config class to cheat
579: [14:19:43] <stripemonkey> This is the code for my widget: http://pastebin.com/a76EnNpZ
580: [14:20:04] <stripemonkey> (plz excuse ugly code, just trying to get it to work)
581: [14:20:33] <Pyromanik> composer.json not important :P That's the other side to your 'messy' modules argument stripemonkey.
582: [14:20:38] <Vik> Thanks guys! Much Appreciated. I'll have a look now
583: [14:20:44] * jrthomer has joined #silverstripe
584: [14:20:45] <Pyromanik> I don't have a vendor folder! I don't use composer.
585: [14:21:41] <stripemonkey> This is the content of my /doobry/_config/config.yml: http://pastebin.com/vYNz4An8
586: [14:22:08] <stripemonkey> Pyromanik: I'm going by what the docs recommend, they say to include a composer.json for sharing :-p
587: [14:22:21] <Pyromanik> urgh dude, as I said before, you can set whatever you want in config, but it's not going to be any good if the class doesn't make use of it ;)
588: [14:22:31] <Pyromanik> for starters, it refers to $this->disqusShortname
589: [14:22:32] <stripemonkey> Pyromanik: it's trying to!
590: [14:22:40] <Pyromanik> which won't work at all because it's static.
591: [14:22:41] <stripemonkey> Oh, that
592: [14:22:47] <Pyromanik> you'd need self::disqusShortname
593: [14:22:55] <stripemonkey> Whoops, I only just changed it to static following what you said and forgot that bit :-)
594: [14:23:00] <Pyromanik> and secondly, it will need to be $this->config()->disqusShortname
595: [14:23:05] * stripemonkey needs to sleep better
596: [14:23:19] <stripemonkey> o i c, it doesn't automatically set it on instantiation?
597: [14:23:25] <Pyromanik> thirdly, social is a crock, more trouble than it's worth :P
598: [14:23:36] <stripemonkey> Surely no need for it to be static then?
599: [14:23:38] <Pyromanik> but if you're into that kinda thing :P
600: [14:23:52] <Pyromanik> stripemonkey, if it's a config option, then yes, static.
601: [14:23:57] <Pyromanik> or just none.
602: [14:23:59] <stripemonkey> Pyromanik: yeah, it has to emulate what the current Zend Framework based site does, and that's one of the "features"
603: [14:24:09] <Pyromanik> gotcha
604: [14:24:12] <stripemonkey> So I have to rewrite it in SS
605: [14:24:16] <Pyromanik> right well
606: [14:24:22] <irogue23> thats not a fun game
607: [14:24:36] <irogue23> i recently converted an ASP Classic site to silverstripe
608: [14:24:38] <Pyromanik> private $blah will give you a localised variable on THAT instance.
609: [14:24:43] <kinglozzer> 0/10 would not play again
610: [14:24:46] <kinglozzer> :P
611: [14:25:05] <Pyromanik> private static $var gives you a variable bound to the CLASS (not an instance) thus is useful for a setting config as there's only one.
612: [14:25:42] <irogue23> kinglozzer: its ok, IGN would give it 9/10
613: [14:25:44] <Pyromanik> converting soemthing to SS is generally easy, so long as you can understand it in the first place :P
614: [14:25:46] <irogue23> (as long as i pay them)
615: [14:25:55] <Pyromanik> hahahha irogue23
616: [14:26:06] <stripemonkey> Agreed, understanding SS is three quarters of the battle
617: [14:26:07] <Zauberfisch23> :D
618: [14:26:34] <Pyromanik> stripemonkey, no I mean that whatever the other code base is needs to be a) understood by converter and b) well written enough to not be a maintenance nightmare
619: [14:26:46] <stripemonkey> :-)
620: [14:26:48] <Pyromanik> understanding SS is easy :P
621: [14:26:52] <stripemonkey> lulz
622: [14:26:57] <Pyromanik> just... different if you're not used to MVC and such.
623: [14:27:03] <irogue23> hahahaha, watching Dog Squad, with a fresh out of training MPI Biosecurity dog
624: [14:27:04] <Pyromanik> or... not a PHP programmer.
625: [14:27:17] <stripemonkey> or... tired from no sleep
626: [14:27:24] <Pyromanik> yeh, that too.
627: [14:27:26] <stripemonkey> (almost none anyway)
628: [14:27:38] <stripemonkey> Well lookit that, it wurks! Fanks!
629: [14:27:44] <Pyromanik> :>
630: [14:27:51] <stripemonkey> Dog help whoever has to maintain this after I'm done :-)
631: [14:27:53] <irogue23> it correctly identified a suspect bag
632: [14:28:03] <irogue23> that turned out to have an omelette in it
633: [14:28:18] <irogue23> and then tried to nom the omelette when the MPI lady unwrapped it
634: [14:28:26] <irogue23> pretty sure that's not part of the job description :P
635: [14:28:31] <stripemonkey> lol!
636: [14:28:40] <kinglozzer> Hahaha
637: [14:29:04] <irogue23> the asian tourists were most amused
638: [14:29:16] <Pyromanik> rofl, gawd irogue23 http://imgur.com/gallery/Hkxxv
639: [14:29:39] <Vik> Eventually found this if anyone is interested in module coding and bestt practices...http://doc.silverstripe.org/framework/en/topics/module-development
640: [14:29:52] <Pyromanik> well yeah
641: [14:29:58] <Pyromanik> that's what the docs are for!
642: [14:30:01] <Pyromanik> ;)
643: [14:30:02] <irogue23> Pyromanik: hahahaha
644: [14:30:09] <Pyromanik> ikr
645: [14:30:13] <irogue23> Pyromanik: NPH is one of my fav gays
646: [14:30:14] <Pyromanik> NPH the champ
647: [14:30:27] <Pyromanik> Takei also a champ.
648: [14:30:39] <Pyromanik> read that thing about him getting his own fragrance?
649: [14:30:42] <Pyromanik> classic.
650: [14:30:44] <irogue23> haha yes
651: [14:31:04] <irogue23> i always forget how old he is, then once i get reminded i'm like BUT HE REDDITS AND FACEBOOKS AND STUFF IDGI
652: [14:31:19] <Pyromanik> yeh, ikr
653: [14:31:46] <Pyromanik> omfg, what?
654: [14:31:47] <Pyromanik> "TrampStampOfAproval 354 points : 11 hours ago reply
655: [14:31:48] <Pyromanik> The look on his daughter's face at margarita #12
656: [14:31:49] <Pyromanik> "
657: [14:31:57] <Pyromanik> daughter?
658: [14:32:22] <irogue23> Pyromanik: ya, twins
659: [14:32:38] <irogue23> surrogate mother
660: [14:32:41] <Pyromanik> ah
661: [14:32:52] <stripemonkey> Takei has kids?!
662: [14:33:02] <Pyromanik> hahahahahahhahahh http://instagram.com/p/i2eSi-STuH/
663: [14:33:07] <Pyromanik> stripemonkey, no, nph
664: [14:33:26] <stripemonkey> Pyromanik: Ah OK, wasn't keeping up
665: [14:33:43] <Pyromanik> hahahahahahahahahah oh ouch.
666: [14:33:44] <Pyromanik> http://imgur.com/gallery/dTdYvEE
667: [14:34:10] * stripemonkey is sat in busy office, wishes he could follow pic links :-(
668: [14:34:58] <irogue23> there is a cat sitting on my deck
669: [14:35:28] <irogue23> he has been there for like 2 hours. just sitting and staring at the lawn.
670: [14:35:43] <Zauberfisch23> stripemonkey: while everyone else is on facebook, do you really think they would notice you browsing image links? :P
671: [14:36:03] <stripemonkey> Zauberfisch23: they're not on FB, the firewall stops them :-)
672: [14:36:10] <Zauberfisch23> :S
673: [14:36:19] <irogue23> damn its a quiet night tonight, police radio's practically silent
674: [14:36:32] <Zauberfisch23> I don't use facebook, but I would still be upset if there is a firewall that blocks things
675: [14:36:45] <Pyromanik> stripemonkey, get a new office! xD
676: [14:36:55] <Zauberfisch23> yeah, was about to say the same thing
677: [14:36:55] <Pyromanik> got a scanner irogue23?
678: [14:37:07] <irogue23> Zauberfisch23: yeah, fuck that. i've never worked anywhere with an internets filter, tho i have implemented them for others peoples' offices :P
679: [14:37:18] <stripemonkey> The network here is seriously locked down. I can only test my social links and connect to IRC by disconnecting from the corporate ethernet and grabbing some Wi-Fi goodness from the nearby bistro!
680: [14:37:24] <irogue23> caught a guy who worked at a client, which was a christian tv station
681: [14:37:38] <irogue23> went into the office for 8 hours on a sunday and spent the entire time watching gay porn
682: [14:37:56] <stripemonkey> lolz
683: [14:38:07] <Zauberfisch23> irogue23: haha, good for him. I think every employee should have the right to do that
684: [14:38:21] <irogue23> was "logging only" not blocking, but we checked the proxy logs each week or so
685: [14:38:37] <irogue23> Zauberfisch23: not like i care, but the christian tv station he worked at did :P
686: [14:38:52] <Zauberfisch23> irogue23: I hope you covered it up? :P
687: [14:39:18] <Zauberfisch23> in fact, I am often in the office on a sunday, love it when its nice and quiet
688: [14:39:56] <irogue23> Pyromanik: yup
689: [14:40:19] <Zauberfisch23> stripemonkey: you work for a big company?
690: [14:41:05] <stripemonkey> Zauberfisch23: Was about 500 or so but recently shrank through selling off bits and pieces and general attrition to 300ish
691: [14:41:35] <stripemonkey> Actually I think in its heydey was a few thousand
692: [14:41:44] <stripemonkey> But that was about 6 or 7 years ago
693: [14:41:49] <Zauberfisch23> I see, i guess its common for big companies to have such restricted networks
694: [14:42:04] <Zauberfisch23> I work parttime for a company with <10 people
695: [14:42:12] <stripemonkey> Zauberfisch23: it's a financial services company too, so even more watchful of what goes in and out
696: [14:42:27] <stripemonkey> Zauberfisch23: I miss small companies :-(
697: [14:43:09] <irogue23> i work in a shed behind my house :P
698: [14:43:09] <Zauberfisch23> its nice and cosy, being able to have a laught with your boss and all
699: [14:43:16] <irogue23> so, no internet filter ;)
700: [14:43:20] <Zauberfisch23> irogue23: haha :D
701: [14:43:45] <Zauberfisch23> but sometimes I wonder what it might be like to work for a big but still cool company
702: [14:43:57] <stripemonkey> OK, seeing as I'm on the subject of daft questions, Disqus likes a unique identifier per article, does SiteTree expose a reasonable one that preferably isn't the primary key?
703: [14:44:33] <Zauberfisch23> well, the url is unique
704: [14:44:40] <Zauberfisch23> (obviously)
705: [14:44:46] <Zauberfisch23> if you have urls on your articles
706: [14:45:07] <irogue23> yeah, disqus uses the url by default, which is pretty safe
707: [14:45:55] <irogue23> or you could use the full slug including parents, if you're dealing with multiple domains
708: [14:46:21] <Zauberfisch23> irogue23: so you are this guy here: http://www.youtube.com/watch?feature=player_detailpage&v=AqW5EnyJAjc#t=92 ?
709: [14:48:14] <stripemonkey> I don't want to use the URL in case someone changes the slug from the CMS admin, eg, correcting typos (they seem to happen here a lot)
710: [14:48:47] <stripemonkey> Maybe module . primary key wold be best :-/
711: [14:48:53] <stripemonkey> +u
712: [14:48:54] <irogue23> stripemonkey: primary key would be the only real option then
713: [14:49:45] <stripemonkey> irogue23: Probably :-/ I don't like exposing primary keys because of this: https://www.owasp.org/index.php/Top_10_2013-A4-Insecure_Direct_Object_References
714: [14:51:45] <stripemonkey> Next daft question: what method or property of SiteTree is the ID?
715: [14:51:47] <kinglozzer> stripemonkey: Add a permalink field or something? The only trouble is you've got to introduce extra logic somewhere to handle when someone visits them
716: [14:52:00] <kinglozzer> ->ID
717: [14:52:08] <stripemonkey> Hahaha, thanks :-)
718: [14:52:11] <kinglozzer> :P
719: [14:56:17] * Vik quit (Read error: Connection reset by peer)
720: [14:56:37] * Vik has joined #silverstripe
721: [14:59:16] <micmania1> I need a nice way to route controllers
722: [15:00:28] <Pyromanik> you mean like... ?
723: [15:00:36] <Pyromanik> private static $url_handlers ?
724: [15:01:24] <Pyromanik> or just plain ol Director: routes: match: controller in yml?
725: [15:03:11] <kinglozzer> . ERROR! The server quit without updating PID file (/usr/local/var/mysql/loz.local.pid).
726: [15:03:12] <kinglozzer> FUUUUUUU
727: [15:03:23] * Vik quit (Read error: Connection reset by peer)
728: [15:03:23] <micmania1> oh sorry, i got dragged away haha.
729: [15:03:32] <micmania1> yeah soooo controllers.
730: [15:03:45] * Vik has joined #silverstripe
731: [15:03:53] <micmania1> basically I have my app in /app and it routes to the next controller by a static url_segment
732: [15:04:05] <micmania1> app/urlsegment
733: [15:04:21] * stripemonkey quit (Ping timeout: 272 seconds)
734: [15:04:33] <micmania1> Is there a nice way to get to the third level? /app/urlsegment/thirdlevel ?
735: [15:09:04] <micmania1> the only other example of it currently being done that I can think of is GridField or other form fields.
736: [15:10:26] * kinglozzer brb
737: [15:10:27] * kinglozzer quit ()
738: [15:12:42] * kinglozzer has joined #silverstripe
739: [15:16:07] <Pyromanik> micmania1, not sure how you've done it, so this probably isn't cleanest, but perhaps easiest
740: [15:16:42] <Pyromanik> re-implment handleAction (and possible hasAction) similar to how SiteTree does it
741: [15:17:23] <Pyromanik> if all your controllers are staicly defined in any case, it's probably easier to use the config system and route everything from the beginning rather than having static binds for segments.
742: [15:19:47] <micmania1> I'm aiming for /app/companies/$CompanyID/sites
743: [15:20:08] <micmania1> At /app/companies its using the CompanyAdmin controller.
744: [15:20:35] <micmania1> The probelm i'm having is $CompanyID is actually the action which varies, so i'm having trouble routing it through to a method
745: [15:21:34] <micmania1> Once i'm at the method I can just return the correct controller.
746: [15:21:46] <kinglozzer> micmania1: Use index() ?
747: [15:23:00] <kinglozzer> micmania1: I did something similar with the framework
748: [15:23:16] <kinglozzer> Director: rules: 'project/$ID!/$Action' : 'ProjectController'
749: [15:23:36] <micmania1> only issue is I don't need the 'project' bit
750: [15:23:48] <micmania1> so mine is mroe like /$ID/sites/$Action
751: [15:24:06] <micmania1> I'm going to try and implement something in handleAction
752: [15:24:38] <kinglozzer> micmania1: Override $url_handlers
753: [15:24:44] <ARNHOE> kinglozzer: ERROR! The server quit without updating PID file (/usr/local/var/mysql/ seriously hate that error
754: [15:24:48] <kinglozzer> Perhaps
755: [15:24:59] <ARNHOE> with all my heart I do
756: [15:25:04] <kinglozzer> micmania1: Actually, you could just leave it as it is and do everything in index()
757: [15:25:32] <micmania1> everything could turn in to a lot :(
758: [15:26:13] <micmania1> I think Ii'm getting there.
759: [15:26:47] <kinglozzer> $Action would be your ID
760: [15:26:48] <kinglozzer> $ID would be 'sites'
761: [15:26:48] <kinglozzer> And $OtherID would be the action
762: [15:27:15] <kinglozzer> http://pastie.org/8610215
763: [15:27:15] <kinglozzer> Might help, that's my approach
764: [15:27:22] <micmania1> I have it working (fingers crossed)
765: [15:27:31] <micmania1> '$CompanyID/sites/$Action/$ID/$OtherID' => 'handleAction'
766: [15:27:56] <kinglozzer> ARNHOE: I'm uninstalling and reinstalling mysql :P
767: [15:30:18] <ARNHOE> I had it on a production server, pretty stressfull
768: [15:30:26] <ARNHOE> and was some db based sites
769: [15:31:03] <ARNHOE> it always ended up being a problem in my my.cnf file
770: [15:31:36] <Pyromanik> micmania1, yeh, that or use $url_handlers = array('$CompanyID' => 'serveCompany');
771: [15:32:31] <Pyromanik> or, if your url structure is simply /, /$company, /$company/blah, then do a director rule for it
772: [15:32:49] <Pyromanik> '$CompanyID': 'CompanyController'
773: [15:32:53] <ARNHOE> micmania1: Perhaps https://github.com/ARNHOE/silverstripe-simplenews/blob/master/code/NewsHolder.php could help you, I deffo don't want to promote my work and I am pretty sure it isn't perfect. But mabye it can get you on the right path
774: [15:33:19] <micmania1> I think I got it. '$CompanyID/$Action/$ID/$OtherID'
775: [15:33:30] <irogue23> hahahahah
776: [15:33:32] <Pyromanik> hmm
777: [15:33:41] <Pyromanik> '$CompanyID!': 'CompanyController'
778: [15:33:42] <irogue23> dispatcher listing a guy's flags
779: [15:33:52] <Pyromanik> flags?
780: [15:34:15] <irogue23> Pyromanik: flags that can be attached to a person's record
781: [15:34:25] <Pyromanik> right, like 'dangerous', etc
782: [15:34:36] <irogue23> usually things like 1M (mental health issues), firearms holder, etc. etc.
783: [15:34:59] <Pyromanik> right
784: [15:35:11] <irogue23> dispatcher just said "flag 'Hates Police With A Passion'"
785: [15:35:22] <irogue23> then said "have fun!" to the unit
786: [15:35:34] <Pyromanik> lol, bl unit :<
787: [15:36:22] <kinglozzer> Ughhh
788: [15:36:31] * cloph_away is now known as cloph
789: [15:36:45] <kinglozzer> How the fuck can mysql break itself?! I didn't even touch it
790: [15:36:46] <kinglozzer> :(
791: [15:36:52] * Vik quit (Ping timeout: 260 seconds)
792: [15:37:15] <Pyromanik> kinglozzer, because mysql
793: [15:37:31] <Pyromanik> sad but true.
794: [15:37:36] <micmania1> YES! We have success.
795: [15:37:52] <Pyromanik> micmania1, easy way or hard way?
796: [15:38:04] <micmania1> '$CompanyID/$Action' => 'sites', << That's it.
797: [15:38:19] <micmania1> Then routes through correctly to the next controller :)
798: [15:38:24] <Pyromanik> in, url_handlers?
799: [15:38:27] <micmania1> yep
800: [15:38:29] <Pyromanik> cool
801: [15:38:34] <Pyromanik> probably want a bang though
802: [15:38:37] <Pyromanik> $CompanyID
803: [15:38:41] <Pyromanik> $CompanyID!
804: [15:38:43] * irogue23 bangs Pyromanik
805: [15:38:46] <Pyromanik> (required)
806: [15:39:00] <Pyromanik> irogue23, Too late, I already did that today!
807: [15:39:06] <Pyromanik> ( xD ! )
808: [15:39:18] <kinglozzer> sudo mysql.server DIE
809: [15:39:21] <kinglozzer> DIE DIE DIE
810: [15:39:24] <kinglozzer> Ugh
811: [15:39:25] <micmania1> I added it to $Action as that's the required one out of the two
812: [15:39:41] <Pyromanik> sudo service mysql restart
813: [15:39:42] <irogue23> WOOF WOOF WOOOF I AM A DOG
814: [15:39:44] <irogue23> fuck off dog
815: [15:39:48] <Pyromanik> sudo killall mysql
816: [15:40:00] <Pyromanik> irogue23, idek
817: [15:40:08] <irogue23> Pyromanik: neighbour's dog
818: [15:40:12] <Pyromanik> oic
819: [15:40:18] <Pyromanik> punch it
820: [15:40:27] <irogue23> cat goes within like 50 metres of it and it barks for half an hour
821: [15:40:36] <Pyromanik> it won't end badly, promise (not really)
822: [15:40:44] <irogue23> i'd estimate it's barking about 50% of the night
823: [15:40:46] <Pyromanik> fuck'n dogs.
824: [15:40:58] <Pyromanik> how do any neighbours get sleep?
825: [15:41:13] <irogue23> can only assume they wear earplugs
826: [15:41:40] <irogue23> i watch Dog Squad and think "dogs are cool, i want a dog"
827: [15:41:44] <kinglozzer> Wait now it's telling me mysql has started successfully
828: [15:41:44] <kinglozzer> Wait
829: [15:41:44] <kinglozzer> Wat
830: [15:41:47] <Pyromanik> lol, got my ears cleaned before flight. WTF I NEVER JUST WTF WOW
831: [15:41:53] <irogue23> then the neighbour's dog does its thing and i'm like "nope, i'm still a cat person"
832: [15:41:59] <kinglozzer> HAHAH YES FIXD
833: [15:42:01] <irogue23> Pyromanik: microsuction?
834: [15:42:04] <Pyromanik> irogue23,yeh
835: [15:42:08] <irogue23> is amazing
836: [15:42:20] <irogue23> WTF TURNS OUT I HAVE BEEN SOMEWHAT DEAF THIS WHOLE TIME
837: [15:42:21] <Pyromanik> yeh, left ear couldn't be suctioned
838: [15:42:54] <Pyromanik> did combo hook and suction, pulled out blockage as large as the tip of my little finger (last knuckle to tip)
839: [15:43:10] <Pyromanik> was all "wtf wow how long no wonder it gets painful from time to time"
840: [15:43:14] <irogue23> yeah
841: [15:43:32] <Pyromanik> been like that for probably 10+ years
842: [15:43:45] <Pyromanik> ironically didn't enable me to hear much better though, was weird.
843: [15:43:51] <Pyromanik> maybe just a bit crisper, dunno.
844: [15:44:11] <Pyromanik> I wonder if I can swim without getting imbalanced and vomiting now...
845: [15:44:16] <Pyromanik> lol
846: [15:44:34] <irogue23> they have a dedicated room and nurse for microsuction at my medical centre
847: [15:44:40] <Pyromanik> hehe, cool.
848: [15:44:51] <Pyromanik> I went to some woman's house on the morning before I left, lol.
849: [15:45:00] <Pyromanik> she had a dental chair and a full set up in one of her rooms.
850: [15:45:23] <irogue23> so when getting a checkup one time doc was like "your ears are pretty gunked up, you should make an appointment with our ear lady"
851: [15:45:25] <Pyromanik> weird feeling being at the same time disgusted, amazed and relieved.
852: [15:45:47] <irogue23> i'm like "wtf is an ear lady"
853: [15:45:55] <Pyromanik> I lol'd, she looked in my right ear and goes "oh this is severely impacted" and I"m all "lol, not even the bad one"
854: [15:46:43] <irogue23> lol
855: [15:46:51] <Pyromanik> Mum was with me, she was all "WTF O.O AMAZE"
856: [15:47:31] * joelpittet has joined #silverstripe
857: [15:47:41] <Pyromanik> so yeah, apparently not just the baby gays that are bad, but good ol' earplugs too.
858: [15:47:55] <Pyromanik> err, cotton buds, or whatever people call them.
859: [15:47:57] <Pyromanik> these days.
860: [15:48:03] <irogue23> baby gays?!?
861: [15:48:04] <irogue23> lol
862: [15:48:06] <Pyromanik> QI informed me they were originally named 'baby gays'
863: [15:48:10] <irogue23> lol
864: [15:48:13] <Pyromanik> because they made the inventor's baby gay.
865: [15:48:20] <Pyromanik> (no shit)
866: [15:48:34] <Pyromanik> gay like happy, of couse. this was a long time ago :P
867: [15:48:38] <irogue23> :P
868: [15:49:08] <Pyromanik> and apparenlty was a bit of cotton wool on the end of a tooth pick
869: [15:49:26] <Pyromanik> and I was all "wtf who in their right mind shoves a tooth pick onto their baby's ear?"
870: [15:49:46] <Pyromanik> along with how did the cotton wool not just fall off?
871: [15:49:52] <Pyromanik> idek
872: [15:50:48] <irogue23> valid questions
873: [15:50:55] <irogue23> along with "why the fuck am i not in bed right now?"
874: [15:52:39] * joelpittet quit (Ping timeout: 272 seconds)
875: [15:54:13] * catcher has joined #silverstripe
876: [16:00:02] * dimistripe quit (Quit: Page closed)
877: [16:01:58] * Error404NotFound has joined #silverstripe
878: [16:02:29] <Pyromanik> http://www.wired.com/design/2014/01/this-photographer-makes-drugs-look-super-duper/?viewall=true
879: [16:02:40] <Pyromanik> irogue23, because internet ^
880: [16:03:50] <Pyromanik> is it ironic that the site is called 'wired' ?
881: [16:05:39] * Vik has joined #silverstripe
882: [16:06:02] <ARNHOE> kinglozzer: I guess you cant explain entirely how you fixed it? :D
883: [16:07:09] <kinglozzer> ARNHOE: Nope, don't have a clue :P
884: [16:07:17] <ARNHOE> hehe
885: [16:07:24] <kinglozzer> I kept doing mysql.server start / stop and eventually it kicked in again
886: [16:07:41] <kinglozzer> That's it :P
887: [16:07:47] <kinglozzer> Didn't touch anything else lol
888: [16:08:08] * Sj0hn quit (Ping timeout: 260 seconds)
889: [16:08:52] <ARNHOE> seems like a gift of god ;d
890: [16:18:38] * hubertusanton quit (Remote host closed the connection)
891: [16:19:00] <catcher> Need help please! http://www.silverstripe.org/general-questions/show/35407
892: [16:20:25] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
893: [16:32:15] * ARNHOE quit ()
894: [16:42:42] * violetina has joined #silverstripe
895: [17:06:05] <kinglozzer> catcher: I've never noticed that before, let me test
896: [17:07:06] <kinglozzer> catcher: Where are you echoing the memory usage? in getCMSFields?
897: [17:09:48] <catcher> kinglozzer, thanks! Yes, right after $fields = parent::getCMSFields();
898: [17:10:32] <kinglozzer> catcher: My memory usage goes up and down a bit, but doesn't keep increasing
899: [17:10:32] <kinglozzer> Using Debug::log(memory_get_usage()) instead by the way
900: [17:12:20] <kinglozzer> catcher: AFAIK PHP should just dump everything when it's finished with the request anyway
901: [17:12:26] <kinglozzer> Do you have any other processes running?
902: [17:12:36] <kinglozzer> CRON tasks etc?
903: [17:12:56] <catcher> kinglozzer, nothing unusual, it's just a local dev box..
904: [17:13:08] <catcher> The memory usage doesn't drop back down after I restart apache either
905: [17:14:14] <kinglozzer> Strange. If you keep refreshing, does it hit PHP's memory limit? What do you do then? :P
906: [17:14:33] <catcher> I did run out the other day, which is what got me started looking into it.
907: [17:15:01] <catcher> I haven't hit the limit again yet, it'd take a few hundred refreshes.
908: [17:16:15] <kinglozzer> And you definitely haven't got any CRON/CLI tasks running?
909: [17:16:38] <catcher> kinglozzer, related to SS?
910: [17:16:52] <kinglozzer> Related to anything
911: [17:17:24] <kinglozzer> Anyway, gotta go, good luck!
912: [17:17:28] * kinglozzer quit ()
913: [17:31:42] <Pyromanik> catcher, serious shits!
914: [17:32:38] <Pyromanik> also, better to try someone who knows about php internals and such
915: [17:33:13] <Pyromanik> I didn't even know web apps could segfault until a couple of years ago.
916: [17:36:17] * joelpittet has joined #silverstripe
917: [17:37:41] <catcher> Pyromanik, right?? you mean as in #php
918: [17:37:41] <catcher> ?
919: [17:38:09] <catcher> They'll just tell me there's a problem in the framework, I know it.
920: [17:38:28] <catcher> Pyromanik, do you have a sec to see if you can reproduce?
921: [17:38:45] <catcher> Reproduce this issue that is, hopefully the other kind takes more than a sec.
922: [17:41:15] * joelpittet quit (Ping timeout: 265 seconds)
923: [17:46:04] * mojo5000 has joined #silverstripe
924: [17:50:55] * EasyCo quit (Ping timeout: 240 seconds)
925: [17:51:05] * EasyCo_ has joined #silverstripe
926: [17:51:32] * EasyCo_ is now known as EasyCo
927: [18:08:14] * gelignite has joined #silverstripe
928: [18:15:10] * joelpittet has joined #silverstripe
929: [18:47:32] * gelignite quit (*.net *.split)
930: [18:49:07] * gelignite has joined #silverstripe
931: [19:01:20] * gelignite quit (Ping timeout: 240 seconds)
932: [19:12:33] * CodeTrap has joined #silverstripe
933: [19:19:49] * Stomach has joined #silverstripe
934: [19:20:22] * travis-ci has joined #silverstripe
935: [19:20:22] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1755 (3.1 - ac1658b : Simon Welsh): The build passed.
936: [19:20:22] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/98c01a34f63d...ac1658b500c5
937: [19:20:23] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/16543441
938: [19:20:23] * travis-ci has left #silverstripe
939: [19:24:26] <simon_w> Lucky irogue23 :p
940: [19:27:22] <ss23> merged!
941: [19:33:57] * joelpittet quit (Remote host closed the connection)
942: [19:34:35] * mojo5000 quit (Remote host closed the connection)
943: [19:44:22] * DigNZ has joined #silverstripe
944: [20:00:26] * zippy__ has joined #silverstripe
945: [20:04:23] * UncleCheese has joined #silverstripe
946: [20:15:22] <catcher> simon_w, I know you have a bunch of ideas for my memory usage issue. I can just tell.
947: [20:15:48] <catcher> Or just one really good one.
948: [20:22:04] <Pyromanik> simon_w, eh?
949: [20:22:10] <Pyromanik> <@simon_w> Lucky irogue23 :p
950: [20:22:33] <Pyromanik> [06:38] <catcher> Reproduce this issue that is, hopefully the other kind takes more than a sec.
951: [20:22:37] <Pyromanik> haha, well played
952: [20:22:50] <Pyromanik> also nah not really sorry.
953: [20:27:40] * Jakx has joined #silverstripe
954: [20:27:45] <Jakx> yo
955: [20:28:29] <Jakx> I have a hasAction() method that used to work < 3.1.2, but since I've updated it doesn't work: http://sspaste.com/paste/show/52cc603f3c9a5
956: [20:28:37] <Jakx> What should I be doing instead?
957: [20:29:18] <simon_w> Jakx, $allowed_actions
958: [20:33:22] <zippy__> catcher: fixed it yet?
959: [20:33:39] <catcher> zippy__, negative, sadly
960: [20:34:58] <catcher> I tried killing all modules & extensions, tried it on a mac running mamp, older framework, no APC (with reboot), scaffolded & custom gridfield, and still it climbs.
961: [20:36:19] <zippy__> is the code open? on this site or the other site you tested on yesterday?
962: [20:36:37] <zippy__> ie can I get a copy of it to test locally
963: [20:36:54] <catcher> I'm about to try a base install to see if I can reproduce it there.
964: [20:36:57] <zippy__> does it fail on a fresh install with a single cms page with a grid field?
965: [20:36:59] <zippy__> sweet :)
966: [20:37:14] <zippy__> if it does, throw me link to a zip
967: [20:37:33] * mojo5000 has joined #silverstripe
968: [20:39:57] <Jakx> simon_w, the array of custom actions in my method is generated dynamically based on existing objects
969: [20:40:30] <Jakx> simon_w, can I still achieve that with $allowed_actions?
970: [20:41:38] <catcher> Fresh install: no gridfield, memory_get_usage is consistently 1 of 2 values. Add a GridField, it climbs, different numbers every time.
971: [20:42:07] <catcher> zippy__, I downloaded & installed CMS/Framework 3.1.2 from http://www.silverstripe.org/stable-download/
972: [20:42:25] <zippy__> zip and send me
973: [20:46:22] <catcher> zippy__, PM'ed, I appreciate it.
974: [20:46:50] <zippy__> sweet, gimme a min, just rolling out some code
975: [20:48:50] <zippy__> bbs
976: [20:51:24] <catcher> Creating the GF in getCMSFIelds is fine, my mem only starts creeping when I push it to $fields.
977: [20:51:32] * ssnewbie has joined #silverstripe
978: [20:52:14] <ssnewbie> hi, my them is looping through a function, is there a way to call other function in the theme loop>
979: [20:52:15] * zippy___ has joined #silverstripe
980: [20:53:06] * zippy__ quit (Read error: Operation timed out)
981: [20:53:07] * zippy___ is now known as zippy__
982: [20:55:31] <catcher> ssnewbie, yes, as long as the function exists on the object being looped. You can use $Up.function to call it up in scope 1 level, or $Top.function if it's declared on the current page/controller.
983: [20:57:49] <ssnewbie> I am showing the latest 10 books on the frontpage, so I have a funtion on the frontpage.php showing the 10 latest books, I also have another function that I want to loop, but it is not working, what I want to do is every time the frontpage loops through a book to call my other function and load more data for that particular book
984: [20:59:48] <ssnewbie> catcher
985: [21:00:12] <ssnewbie> i understand what you said, i moved my second function to the book.php and it is now working
986: [21:00:16] <ssnewbie> thanks alow :)
987: [21:00:24] <ssnewbie> alot :)
988: [21:00:32] <catcher> glad you got it :)
989: [21:07:26] * zippy__ quit (Ping timeout: 240 seconds)
990: [21:08:02] * zippy__ has joined #silverstripe
991: [21:08:20] <Azure> I wish to link to a specific page in a template. Would I just create an element in $has_one in my page type with the type "Page" and access it through my template via the key? (for instance, my key is named MyCustomPage, and the variable would be $MyCustomPage, or using a with block)
992: [21:10:25] * ssnewbie quit (Ping timeout: 272 seconds)
993: [21:12:02] <catcher> Azure, if you want to choose a single page, and you want to choose it in the CMS, that sounds right. You can then use its link, as in <a href="$MyCustomPage.Link">$MyCustomPage.Title</a>
994: [21:12:07] * joelpittet has joined #silverstripe
995: [21:19:30] * ssnewbie has joined #silverstripe
996: [21:19:52] <ssnewbie> in my homepage.ss when i do $BookImage.SetWidth(80)
997: [21:20:04] <ssnewbie> it show the image name and not the image iteself
998: [21:24:01] <Azure> I might've found a bug of some sort with /framework/filesystem/ImagickBackend.php.
999: [21:24:01] <Azure> For some reason I sometimes get an error 500 that points to line 250 when trying to load a page in the admin, but on subsequent loads it doesn't give me the error.
1000: [21:24:50] * abitran quit (Ping timeout: 264 seconds)
1001: [21:25:06] * abitran has joined #silverstripe
1002: [21:25:42] <catcher> ssnewbie, are you sure it isn't something else showing the name, and the image isn't displaying at all?
1003: [21:27:07] <ssnewbie> positive, on my Book.ss it shows fine, but in the homepage.ss it show the file name
1004: [21:28:36] <Azure> Also, I can't seem to be able to get the selected page's URL in my template. Weird.
1005: [21:31:11] * Vik quit (Read error: Connection reset by peer)
1006: [21:33:28] <spronk> ss23: i hate you just a bit right now
1007: [21:33:32] <zippy__> catcher: pmd you
1008: [21:34:42] <Azure> Oh, nevermind. Was using .URL instead of .Link
1009: [21:37:10] * r3v3rb has joined #silverstripe
1010: [21:37:25] <r3v3rb> evening all
1011: [21:37:26] <ss23> spronk: lol <3
1012: [21:38:02] <ssnewbie> catcher it seems its doing it for all html elements, when i do $link in my homepage.ss it actully show me the link path
1013: [21:38:18] <catcher> zippy__, on the way, thanks
1014: [21:39:24] <r3v3rb> Sooooooo... is it possible to have a dataobject that has a has_many 'File' and then in the GridField use a checkbox to determine if its related to this record?
1015: [21:40:18] <r3v3rb> or would I be better suited to creating another dataobject for the client to upload a file and have that as the relation?
1016: [21:42:54] <spronk> ss23: they're sooo close
1017: [21:43:13] <spronk> they've got all the tables and stuff in, and the counter up, and cut a big hole in the concrete wall for another door
1018: [21:44:41] <ss23> spronk: How long?
1019: [21:45:40] <catcher> ssnewbie, can you paste the code?
1020: [21:47:01] <ssnewbie> in my homepage.ss i have $Link and $BookImage
1021: [21:47:07] <spronk> i dont know
1022: [21:47:09] <spronk> they won't say D:
1023: [21:47:28] <ss23> lol
1024: [21:47:36] <ssnewbie> in homepage.php i have return Book::get()->sort('PubDate', 'ASC');
1025: [21:52:11] <catcher> ssnewbie, it'll be easiest if you can paste the php & ss, sspaste.com
1026: [21:52:28] * Colin[pi] has joined #silverstripe
1027: [21:53:05] <Colin[pi]> kia ora
1028: [21:54:47] <ssnewbie> <catcher>
1029: [21:54:48] <ssnewbie> http://sspaste.com/paste/show/52cc74ea9d750
1030: [21:56:08] * r3v3rb quit (Quit: r3v3rb)
1031: [21:58:17] * Jakx has left #silverstripe
1032: [21:58:24] <catcher> ssnewbie, you need a space before the closing %> in the template, i.e. <% loop HomepageBooks %>
1033: [21:58:26] <Azure> ... Just registered on sspaste. I assume that my password is in plaintext.
1034: [21:58:40] <catcher> ssnewbie, then add ?flush=1 to the URL in your browser
1035: [21:59:32] * r3v3rb has joined #silverstripe
1036: [21:59:56] * r3v3rb quit (Client Quit)
1037: [21:59:57] <simon_w> Azure, if it's a SilverStripe Member and running >=2.3 then it's not plaintext
1038: [22:00:30] <Colin[pi]> <2.3 was plaintext?
1039: [22:00:31] <Azure> Still not quite sure why my password would be sent to my via email at least.
1040: [22:00:44] <simon_w> Colin[pi], yup!
1041: [22:00:49] <Colin[pi]> oh dear
1042: [22:00:59] <simon_w> It's why you can still set your encryption method to it
1043: [22:01:05] <ssnewbie> <catcher> I just did that and no luck!
1044: [22:01:38] <ss23> Well technically your password can be hashed and you can send a user their password on registration
1045: [22:02:12] <Colin[pi]> so it gets sent pre-hashing
1046: [22:02:18] <catcher> ssnewbie, what's above <% loop HomepageBooks %>? Any other context changes (loop, with)
1047: [22:02:20] <Azure> I see.
1048: [22:02:32] <ss23> I have no idea what sspaste actually does though, I never use it
1049: [22:02:47] <ssnewbie> nothing just an include for a form
1050: [22:03:34] <Azure> Anyway. For some reason just recently I've been getting this notice: http://pastie.org/8611745
1051: [22:03:34] <Azure> It probably only started appearing after I properly turned on dev mode (apparently I had the key written wrong in config.yml. Oops!)
1052: [22:04:01] <Colin[pi]> who actually made sspaste?
1053: [22:04:38] <Colin[pi]> would be someone known in here, right?
1054: [22:04:42] <ss23> Whoever it is, they haven't fixed that 2.4 SQL injection yet :P
1055: [22:05:13] <Colin[pi]> lol
1056: [22:05:14] <ss23> tbh, I much much much prefer codepad.viper-7.com
1057: [22:05:24] <ss23> (and is also built in SilverStripe)
1058: [22:05:33] <ss23> Eh, viper-7's site might've gone down again. He got all poor and stuff
1059: [22:06:32] * mojo5000 quit (Remote host closed the connection)
1060: [22:08:45] <Colin[pi]> how does SS perform when the db structure gets quite... big
1061: [22:09:07] <simon_w> Ours is bigger!
1062: [22:09:09] <ss23> Depends on the database!
1063: [22:09:10] <Colin[pi]> i.e. I have some objects that are tracking history, and may have a large has_many association
1064: [22:09:37] <simon_w> So the content gets big, not the structure?
1065: [22:09:47] <Colin[pi]> yes
1066: [22:09:55] <Azure> I suppose that the notice could be ignored though.
1067: [22:09:57] <Colin[pi]> that's what I should have said :P
1068: [22:09:58] <simon_w> So long as you're 3.0+, it's fine
1069: [22:09:58] <ss23> Should be fine, things are indexed
1070: [22:10:04] <Colin[pi]> hmm k
1071: [22:10:09] <ss23> Some DBs cry when you get 500+ tables though etc
1072: [22:10:21] <simon_w> Also, paginate your stuff ;)
1073: [22:10:30] <Colin[pi]> nah the tables are ok, it's the content as simon_w corrected me
1074: [22:10:33] <simon_w> (don't do a foreach(History::get() as $blah)
1075: [22:10:35] <Colin[pi]> the amount of records
1076: [22:10:43] <ss23> Pagination is hard
1077: [22:10:51] <Colin[pi]> simon_w: no been avoiding that ;)
1078: [22:10:52] <ss23> (To do accurate pagination)
1079: [22:11:07] <ss23> Normally I just say fuck it and go with inaccurate pagination, users don't normally need it perfect
1080: [22:11:17] <Colin[pi]> also, I think it needs to track records for a month max, so I can probably cron out old ones
1081: [22:13:23] <Azure> Not sure why $backgroundColor is unassigned though. (Or rather why PHP is complaining about it)
1082: [22:13:33] <Azure> (It might be my php.ini)
1083: [22:13:56] <Colin[pi]> about time we had another canberra SS meetup :o
1084: [22:16:00] <simon_w> Colin[pi], mid-February!
1085: [22:16:47] <ss23> Do the SSAU guys come to meetups there?
1086: [22:18:08] * ssnewbie quit (Quit: Page closed)
1087: [22:19:08] <Azure> Ah, and the notice only seems to appear when SS formats images before saving. I think.
1088: [22:22:58] <Colin[pi]> simon_w: yay!
1089: [22:23:02] <Colin[pi]> ss23: yes
1090: [22:23:08] <ss23> cool :D
1091: [22:23:28] <Colin[pi]> ss23: the SSAU MD comes along
1092: [22:23:36] <ss23> MD? Managing Director?
1093: [22:23:44] <Colin[pi]> https://twitter.com/shaneweddell
1094: [22:23:49] <ss23> ah yep, I know of Shane!
1095: [22:23:53] <Colin[pi]> nice guy
1096: [22:24:48] <simon_w> Colin[pi], you'll need to organise it though :p
1097: [22:24:54] <simon_w> And get Caitlin to let me out :p
1098: [22:25:19] <Colin[pi]> simon_w: damn you! I thought it was official
1099: [22:26:04] <ss23> It will be if you make it and say "OFFICIAL"
1100: [22:26:19] <Colin[pi]> lol
1101: [22:27:03] <simon_w> How do you think the hackathons get done? :p
1102: [22:27:13] <Colin[pi]> woah did SSAU get more peeps? http://www.silverstripe.com/about-us/team/#australia
1103: [22:27:31] <ss23> Colin[pi]: I remember a discussion of "Wow, we should really update the Australia listeing on the website!"
1104: [22:27:54] <Colin[pi]> heheh
1105: [22:28:03] <Colin[pi]> poor second class Aussies ;(
1106: [22:28:59] <Colin[pi]> dont even have photos for most
1107: [22:29:28] <simon_w> Well, they're Australian. Their internet probably can't handle sending the photos.
1108: [22:29:40] <Colin[pi]> THANKS TONY
1109: [22:29:54] <Colin[pi]> and you'll soon be enjoying that same internet ;P
1110: [22:30:01] <simon_w> I know :(
1111: [22:30:13] <Colin[pi]> <nelson>HA HA!</nelson>
1112: [22:30:15] <simon_w> Might need to run an ethernet cable across!
1113: [22:30:29] <ss23> hahah simon_w
1114: [22:30:40] <ss23> You guys can but Shane IRL to get it updated? :P
1115: [22:30:45] <Colin[pi]> tincan and string would be faster than here ;D
1116: [22:31:04] <ss23> just upgrade your router to get faster wifi
1117: [22:31:10] <ss23> I've been doing that for years and it works fine
1118: [22:31:11] <ss23> :)
1119: [22:31:12] <simon_w> IPoCP
1120: [22:31:16] <ss23> CP?
1121: [22:31:20] <ss23> Copper pipe?
1122: [22:31:21] <simon_w> carrier pigeon
1123: [22:31:23] <ss23> oic oic
1124: [22:31:36] <Colin[pi]> careful with that acronym D:
1125: [22:31:50] <ss23> :P
1126: [22:31:55] <ss23> Well the other interpreation didn't work so well!
1127: [22:32:02] <Colin[pi]> why dont you take a seat over there?
1128: [22:32:09] <ss23> I mean, how can you put IP over pizza, regardless of if it's cheese or not?
1129: [22:32:26] <Colin[pi]> IP over pizza
1130: [22:32:30] <Colin[pi]> also does not sound good
1131: [22:33:46] <simon_w> IPoCP has high latency but massive throughput
1132: [22:37:49] <Colin[pi]> simon_w: I did go for my bike ride: http://bit.ly/1lzKK7I look at those ascent and descent figures :D
1133: [22:38:47] <UncleCheese> Composer question: has anyone ever gotten the error "The requested package php could not be found in any version" ??
1134: [22:38:52] <UncleCheese> how can PHP not be found?
1135: [22:39:10] <Colin[pi]> package naming error?
1136: [22:40:32] <UncleCheese> it's failing for all packages that require php
1137: [22:40:38] <Colin[pi]> :\
1138: [22:40:45] <UncleCheese> e.g. require: { "php" : ">=5.3.0" }
1139: [22:40:50] <UncleCheese> so weird
1140: [22:41:54] <unsignedint> composer self-update and try again?
1141: [22:42:08] <UncleCheese> latest
1142: [22:42:12] <UncleCheese> !!!!!!!
1143: [22:45:49] <ss23> Maybe it thinks PHP isn't installed?
1144: [22:45:51] <ss23> idk how that could be
1145: [22:46:07] <Colin[pi]> very wtf
1146: [22:46:47] <UncleCheese> nvm, i'm a dumbass
1147: [22:46:54] <Colin[pi]> :D
1148: [22:46:54] <UncleCheese> i was running the wrong version of PHP
1149: [22:46:57] <ss23> lol
1150: [22:47:02] <Colin[pi]> PEBKAC
1151: [22:47:06] <UncleCheese> so it was actually a pretty informative error!
1152: [22:47:07] <ss23> Ambigious message though
1153: [22:47:17] <UncleCheese> PICNIC
1154: [22:47:17] <ss23> Should be "Incorrect version of PHP", not "CAn't find package"
1155: [22:47:24] <UncleCheese> yeah, agreed
1156: [22:47:31] <ss23> Problem is cunts, not in cactus?
1157: [22:47:46] <UncleCheese> in chair, not in computer
1158: [22:50:55] <simon_w> lol, composer
1159: [22:51:09] <Colin[pi]> I don't use it :)
1160: [22:52:02] <guzzlefry> Are controller methods automatically available for DataObjects?
1161: [22:53:04] <Colin[pi]> what do you mean?
1162: [22:53:32] <guzzlefry> I have a Cart DataObject and then a Cart_Controlller that has methods that I need to call.
1163: [22:54:03] <guzzlefry> Cart_Controller not being the current controller.
1164: [22:55:25] <Colin[pi]> so you need to call methods on the Cart's controller, but from another controller?
1165: [22:55:31] <guzzlefry> So say Cart_Controller has a method called receipt(), can do I something like $cart = Cart::get()->First(); $cart->receipt();
1166: [22:55:34] <guzzlefry> err, yes
1167: [22:55:57] <Colin[pi]> why not have the method on the Cart DataObject then?
1168: [22:56:38] <guzzlefry> Doesn't that go against the whole MVC concept?
1169: [22:56:48] <guzzlefry> Anyway, it's way too late in the development process to change. :/
1170: [22:57:01] <Colin[pi]> depends on the responsibility of the method imho
1171: [22:57:10] <Colin[pi]> if it's model related or controller related ;D
1172: [22:58:03] <guzzlefry> It renders a receipt using a Cart object and template.
1173: [22:58:48] <guzzlefry> I'm still confused about controller vs. model. View is fairly obvious. :P
1174: [22:59:01] <Pyromanik> wholey shit busy here today
1175: [22:59:14] <Colin[pi]> view renders data from the model
1176: [22:59:26] <Colin[pi]> model holds the data/structure
1177: [22:59:36] <Colin[pi]> controller responds to user interaction
1178: [22:59:56] <Colin[pi]> but almost no one ever gets MVC right, so there's that
1179: [23:00:35] <Colin[pi]> hai pyromanik
1180: [23:00:35] <Pyromanik> well in traditional ones the model affects the view.
1181: [23:00:46] <Pyromanik> but web is stateless
1182: [23:00:47] <Colin[pi]> yep that's correct
1183: [23:00:56] <Colin[pi]> in non-stateless the view observes the model
1184: [23:01:05] <Colin[pi]> when the model changes, the view updates
1185: [23:01:29] <Colin[pi]> i did smalltalk at uni, that was where MVC all started
1186: [23:01:34] <Colin[pi]> and probably the most pure form of MVC
1187: [23:01:57] <Pyromanik> nonsense, mvc is just a pattern.
1188: [23:02:10] <Pyromanik> a very broad term too, at that.
1189: [23:02:22] <Colin[pi]> MVC as a pattern originated when Smalltalk was developed in the 70's
1190: [23:02:24] <Colin[pi]> look it up
1191: [23:02:28] <Pyromanik> these days they've segmented MVC into so many sub-patterns it's just redonkulux
1192: [23:02:35] <Pyromanik> yeah I know.
1193: [23:02:56] <lewellyn> mvc was novel at the time. but look at the languages available back then.
1194: [23:02:58] <Pyromanik> but it's a pattern, just because it's in smalltalk doesn't make it any more 'pure' than some other implementation.
1195: [23:03:18] <Pyromanik> mvvc, hmvc, etc.
1196: [23:03:23] <lewellyn> you can't really do mvc in, say, cobol.
1197: [23:03:24] <Pyromanik> so many
1198: [23:03:34] <Colin[pi]> no, what I'm saying is the way smalltalk did it, imho, was the most pure form I've seen
1199: [23:03:48] <Colin[pi]> i mean even the smallest parts of the app gui, existed in little triads
1200: [23:04:22] <lewellyn> that's looking at it oddly. they coined the term for it, so they'd by definition be "the most pure form".
1201: [23:04:25] <Colin[pi]> but then I haven't seen the pattern implemented in other languages for some time (i.e. other than stateless web stuff)
1202: [23:04:42] <lewellyn> mvc is actually popular with com programmers.
1203: [23:05:25] <Colin[pi]> smalltalk was such a sweet language, bizarre, but sweet
1204: [23:05:34] <Pyromanik> C++ or go home.
1205: [23:05:37] <Pyromanik> xD
1206: [23:05:46] <Pyromanik> Qt, <3 me some signal slot action.
1207: [23:05:48] <lewellyn> K&R forever
1208: [23:05:53] <Pyromanik> yeh, that too.
1209: [23:05:57] <Pyromanik> fuck this // in C
1210: [23:06:02] <lewellyn> Qt is not quite C++ though ;)
1211: [23:06:03] <Pyromanik> NOT A REAL COMMENT
1212: [23:06:14] <Pyromanik> lewellyn, yeah it is, just not when you type it (purely speaking)
1213: [23:06:15] <Colin[pi]> when the penny dropped that the class hierarchy browser you're using is written in smalltalk, and you can browse it's own source code within itself... mindfuck
1214: [23:06:27] <Pyromanik> MOC is just another preprocessor
1215: [23:06:35] <lewellyn> Pyromanik: it's no more pure than boost.
1216: [23:06:46] <lewellyn> er. c++, not pure.
1217: [23:06:50] <Pyromanik> boost uses it's own preprocessor?
1218: [23:06:52] <lewellyn> my eyes were wandering as i typed.
1219: [23:07:18] <Pyromanik> I thought boost was a collection of pure C++ libs
1220: [23:07:56] <lewellyn> and moc isn't relevant. the fact that you can't mix "real" C++ and Qt without potential severe issues is problematic at times. e.g. mixing std::string and QString.
1221: [23:08:11] <Pyromanik> yeh, sometimes.
1222: [23:08:26] <Pyromanik> generally QString will convert a std::string though.
1223: [23:09:01] <Pyromanik> but no worse than trying to c-'string' a std::string.
1224: [23:09:02] <lewellyn> in any case, Qt and Boost are extensions. they're not C++ ;)
1225: [23:09:12] <Pyromanik> well yeah they are.
1226: [23:09:29] <lewellyn> you're not going to win this case of pedantry... ;)
1227: [23:09:41] <Pyromanik> written in C++, you just gotta think of it more of a case of framework and subclasses
1228: [23:09:45] * catcher quit (Quit: Leaving)
1229: [23:10:14] <lewellyn> i do lots of Qt. so i am quite familiar with its... idiosyncrasies.
1230: [23:10:15] <Pyromanik> passing Qt code through moc produces standard C++
1231: [23:10:39] <Pyromanik> just because it has it's own string class doesn't make it any less C++
1232: [23:10:58] <lewellyn> that was just an example. and i didn't say it wasn't C++, just that it's not quite C++ :)
1233: [23:11:06] <lewellyn> 15:06 lewellyn: Qt is not quite C++ though ;)
1234: [23:11:16] <Pyromanik> while at the same time being exactly C++ and pretty much nothing more :P
1235: [23:11:35] <Pyromanik> but I get what you're getting at.
1236: [23:11:49] <lewellyn> and you can write a C++ compiler in pure C, which would technically make C++ exactly C and no more.
1237: [23:12:32] <Pyromanik> syntactical changes are prolific between languages. Not so much in Qt.
1238: [23:13:01] <Pyromanik> besides meta object definition and a few small things around the signal and slot handling.
1239: [23:13:03] <lewellyn> i'd call QStringBuilder a syntactical change. pretty fundamental at that :)
1240: [23:14:03] <Pyromanik> yeah well Qt is far more than it was, for sure. I'd call QML far far far not C++, but technically still Qt I guess if we're going deep into it :P
1241: [23:14:24] <lewellyn> don't get me wrong. i like Qt. but it's merely a flavor of C++. knowing how to write good Qt isn't necessarily going to translate into writing good C++, whereas the reverse is likely to be more correct.
1242: [23:14:56] <lewellyn> and there are multiple QML dialects out there, with only Quick's being the most widespread ;)
1243: [23:16:07] <Pyromanik> knowing how to write good Qt isn't necessarily going to translate into writing good C++
1244: [23:16:09] * abitran quit (Read error: Connection reset by peer)
1245: [23:16:12] <Pyromanik> Yeah, I guess not.
1246: [23:16:26] <Pyromanik> in the same manner writing jQuery doesn't make one good at javascript
1247: [23:16:34] <lewellyn> but being able to write good C++ is quite likely to make one able to write good Qt.
1248: [23:17:05] <Pyromanik> mm, and being able to write good C allowing one to write good C++
1249: [23:17:10] <Pyromanik> and good assembly good C, etc etc
1250: [23:17:31] <Pyromanik> the better ones understanding is, the better equipped they are to be able to achieve a task.
1251: [23:17:35] <Pyromanik> in whatever language.
1252: [23:17:39] <lewellyn> now you see why i tell people "some 8-bit ASM" when they ask what they should start teaching their kids to program with.
1253: [23:17:41] <Pyromanik> and/or framework.
1254: [23:17:51] <Pyromanik> hahaha :P
1255: [23:18:00] <Pyromanik> dem dynarecs
1256: [23:18:04] <lewellyn> i actually think the ASM/BASIC duo is quite powerful for teaching fundamentals, even i 2014.
1257: [23:18:22] <Pyromanik> dynarec pretty overkill for 8bit, but a fun endeavour
1258: [23:19:23] <lewellyn> with modern HLEs, you don't *need* to know how memory is allocated and such. but having a clue about it can help you write better code the first time around, by intuiting what's going on.
1259: [23:19:38] <lewellyn> er. HLLs.
1260: [23:19:48] <lewellyn> E and L are across the keyboard. wtf. i need food. bbiaf.
1261: [23:21:18] <guzzlefry> lewellyn: I was sad when my school chose to replace C with Python as the language for Intro to Programming. :/
1262: [23:21:25] <Pyromanik> HLE makes sense
1263: [23:21:37] <lewellyn> Pyromanik: that's why it was more irritating of a typo. :P
1264: [23:21:55] <Pyromanik> though I depends on what you're commenting on...
1265: [23:22:00] <Pyromanik> emulation or languages :P
1266: [23:22:48] <lewellyn> in any case, i'm an old fart these days. i think the whippersnappers should be learning actual fundamentals before having the scaffolding abstracted away.
1267: [23:22:48] <Pyromanik> but yeh, I agree. most interpreted languages are so garbage collecty that it mostly doesn't matter anyway.
1268: [23:22:59] <Pyromanik> I always think that lewellyn
1269: [23:23:12] <Pyromanik> I started with C++, and moved DOWN to C
1270: [23:23:18] <Pyromanik> xD
1271: [23:23:37] <Pyromanik> then Java, then PHP, then JS, now trapped :<
1272: [23:23:37] <guzzlefry> I dont' even know where to begin with learning ASM >_>
1273: [23:23:59] <Pyromanik> oh, I did learn a bit of ASM, although nothing useful as it was a custom board designed for teaching students ASM
1274: [23:24:03] <lewellyn> 8 bit forever :0
1275: [23:24:06] * lewellyn is fond of 6502
1276: [23:24:18] <Pyromanik> it wasn't any production CPU or anything (I hear a lot of schools teach MIPS)
1277: [23:24:19] <lewellyn> i'm going to have to ramp up on arm asm soon, though
1278: [23:24:31] <Pyromanik> ramp up
1279: [23:24:35] <Pyromanik> OH that choice of words
1280: [23:24:50] <lewellyn> Pyromanik: i've been talking to "front-facing people" today, sorry :P
1281: [23:24:51] <Pyromanik> I learnt on a machine called the 'ramp board'
1282: [23:24:54] <Pyromanik> or something like that
1283: [23:26:00] <Colin[pi]> ooh flights to NZ on sale
1284: [23:26:09] <Pyromanik> oh yeah, there we go. hahahhahha the memories: http://www.paulmonigatti.com/projects/wramp-cpu-simulator/
1285: [23:26:12] <lewellyn> pick me one up ;)
1286: [23:26:12] <Colin[pi]> Sydney to Auckland for $169... bah, Auckland
1287: [23:26:14] <Pyromanik> lewellyn, ^
1288: [23:26:46] <Pyromanik> lewellyn, define "front facing people" ?
1289: [23:26:52] <ss23> 12:23:59 < Pyromanik> oh, I did learn a bit of ASM, although nothing useful as it was a custom board designed for teaching students ASM
1290: [23:26:56] <ss23> Pyromanik: You went to WAikato?!
1291: [23:27:06] <Pyromanik> ss23, yeah duh. Did you have to do it too?
1292: [23:27:10] <ss23> lol yes
1293: [23:27:14] <Pyromanik> rofl
1294: [23:27:40] <Pyromanik> ss23, I was cleaning up my house, I found an electronics board with "PROPERTY OF WAIKATO UNIVERITY" printed across it
1295: [23:27:41] <ss23> I don't think WRAMP as an idea is bad, but I fucking despiste the whole "Lets take ARM, and make it closed source and propreietary and make it so you have to use our own shitty compilers and fuck dfunasdfkjadsfn"
1296: [23:27:42] <lewellyn> Pyromanik: so it's probably useful for learning arm asm from, but less useful for learning x86.
1297: [23:27:45] <ss23> mad
1298: [23:27:47] <Pyromanik> oh, also I found my CARDAX card, hahahahah
1299: [23:27:48] <ss23> hahaha Pyromanik
1300: [23:27:50] <lewellyn> Pyromanik: and people "on the front lines" :P
1301: [23:28:10] <Pyromanik> ss23, but it's not ARM.
1302: [23:28:17] <Pyromanik> it's just RISC.
1303: [23:28:27] <Pyromanik> which ARM sort of is.
1304: [23:28:46] <Pyromanik> but so is MIPS and a bunch of other processors, like the Power platform.
1305: [23:29:08] <lewellyn> and technically modern x86
1306: [23:29:33] <Pyromanik> lewellyn, it was usefull to teach second year students the fundamentals of assembly and how computers execute instructions and the like.
1307: [23:30:04] <ss23> MIPS
1308: [23:30:05] <Pyromanik> without getting into the complexities of x86 and the like, which I'm sure could be learnt at a later date if need be.
1309: [23:30:08] <ss23> I meant MIPS
1310: [23:30:12] <ss23> Pyromanik: It's almost a direct MIPS clone
1311: [23:30:18] <Pyromanik> ss23, yeah, almost.
1312: [23:30:23] <lewellyn> i really need to convince my gf that she's capable of hacking code. she's learnt fundamentals pretty well from my years of ranting.
1313: [23:30:26] <Pyromanik> it was designed by one of the students.
1314: [23:30:27] <Pyromanik> lol
1315: [23:30:35] <ss23> But that's my issue, the language is basically MIPS, but because it's just a shitty clone, it ends up being like "lol you get none of the advantages of mips, and all the disadvantages of propireritary!"
1316: [23:30:40] <ss23> Pyromanik: yeah, rageeee
1317: [23:30:42] <Pyromanik> he came in and strutted around while I was there.
1318: [23:30:44] <lewellyn> she could probably explain things that kids don't even learn anymore
1319: [23:30:48] <ss23> /nick rm
1320: [23:30:49] <ss23> /nick rms
1321: [23:31:03] <Pyromanik> ss23, lawls
1322: [23:31:29] <Pyromanik> lewellyn, sounds like a prize lass.
1323: [23:31:47] <lewellyn> Pyromanik: sadly, it means she's picked up some of my biases.
1324: [23:31:53] <Pyromanik> then again, I can spout out shit about how landslides and debris cover affects glaciers.
1325: [23:32:00] <lewellyn> of course, she also has the reasoning behind the biases.
1326: [23:32:01] <lewellyn> :)
1327: [23:32:06] <Pyromanik> :P
1328: [23:32:12] <Pyromanik> that's the important part!
1329: [23:32:33] <Pyromanik> It doesn't matter the argument, so long as you can support it! (so I ended up graduating with and arts degree, not computer science, lol)
1330: [23:32:42] <lewellyn> i hope to have her writing Qt and Python and maybe Ruby by year's end.
1331: [23:32:50] <Pyromanik> pyQt
1332: [23:32:56] * nimeso has joined #silverstripe
1333: [23:32:56] <lewellyn> not quite.
1334: [23:32:57] <lewellyn> :)
1335: [23:32:57] <Pyromanik> LOLOLOLOL SEE HOW I TROLLED THERE?
1336: [23:33:51] <Pyromanik> I tried to learn Python, but the whole 2/3 split really irked me.
1337: [23:33:52] <lewellyn> i really wish she worked from home already. she's an art director by trade. so it's better for me to bounce ui issues off her than for me to spend a day trying to figure them out. :(
1338: [23:34:03] <lewellyn> (art director for a software publisher)
1339: [23:34:10] <Pyromanik> hahahah, winning lewellyn
1340: [23:34:21] * guzzlefry has left #silverstripe
1341: [23:34:36] <lewellyn> Pyromanik: python handled 2 -> 3 pretty well.
1342: [23:34:46] <Pyromanik> join #mupen64plus
1343: [23:34:48] <Pyromanik> urth
1344: [23:34:50] <Pyromanik> ffff
1345: [23:34:51] <lewellyn> compare to perl 6 and php 6-no-wait-it-isn't
1346: [23:35:15] <Pyromanik> lewellyn, yeah Python might have, but the community and all module maintainers... not so much.
1347: [23:35:52] <lewellyn> it's a matter of traction. now that there are OSes shipping only python 3, it's helping a lot on making a need for things to be updated.
1348: [23:36:14] <lewellyn> in some cases, it's mainly a matter of it being a one-guy's-itch-scratcher project.
1349: [23:36:38] <lewellyn> and in others, it's just pure bigotry
1350: [23:36:43] <Pyromanik> Man I should have kept up with emulator hacking :<
1351: [23:36:51] * Error404NotFound has joined #silverstripe
1352: [23:37:08] <lewellyn> write an emu in ss ;)
1353: [23:37:13] <Pyromanik> gawd, no
1354: [23:37:30] <Pyromanik> I hacked around N64 emus for a while
1355: [23:37:41] <Pyromanik> about 7 years ago now I guess :<
1356: [23:38:26] <Pyromanik> was fun, made friends, was going to teach myself proper computer science (since I slept through most of my lectures and that's why I don't have the degree)
1357: [23:38:38] <Pyromanik> then... had to get a job and shit, that sucked :<
1358: [23:39:14] <Pyromanik> lewellyn, lol though that said, did you know some chap implemented an 86 emu in js!?
1359: [23:39:29] <lewellyn> uup.
1360: [23:39:31] <lewellyn> yup.
1361: [23:40:05] * mojo5000 has joined #silverstripe
1362: [23:40:41] <Pyromanik> that's just madness to me :<
1363: [23:40:46] <lewellyn> given sufficient motivation and time, one can write emulators in almost anything.
1364: [23:40:59] <lewellyn> i saw a pdp8 emu written in cobol once :P
1365: [23:41:19] <lewellyn> ran like a frozen turd, but it met the specific need it was written for.
1366: [23:41:31] <lewellyn> i would have just reimplemented the single tiny app, but whatever.
1367: [23:42:04] <lewellyn> protip, cobol is a terribad choice for tasks like that.
1368: [23:45:00] <Pyromanik> wholey shit zilmar released a project64 v2.0 and made it open sourece
1369: [23:45:02] <Pyromanik> wowz
1370: [23:45:30] * Pyromanik is so behind the times :<
1371: [23:45:56] <Pyromanik> lewellyn, yeah, that's the thing about language choice these days.
1372: [23:46:05] <Pyromanik> You really just gotta pick the right tool for the job.
1373: [23:48:16] * guzzlefry has joined #silverstripe
1374: [23:48:27] <guzzlefry> guys, I have questions!
1375: [23:48:37] <Pyromanik> but... bed time!
1376: [23:49:37] <guzzlefry> So I have this SalesReceipt template, and it's already in the context of a Cart object when used in the CMS, so all of the variables in Cart can be populated without appending $Cart or whatever.
1377: [23:49:51] <guzzlefry> Is there a way to duplicate that when using $email->populateTemplate()?
1378: [23:50:02] <Pyromanik> no
1379: [23:50:06] <guzzlefry> I am sad.
1380: [23:50:08] <Pyromanik> well
1381: [23:50:17] <Pyromanik> no.
1382: [23:50:30] <lewellyn> Pyromanik: give guzzlefry a happy on your way out, at least.
1383: [23:50:38] <Pyromanik> lewellyn, hah
1384: [23:50:42] <Pyromanik> that sounds... dodgy
1385: [23:50:51] <guzzlefry> a wat
1386: [23:50:59] <Pyromanik> handjob I think he said...
1387: [23:51:01] <Pyromanik> not sure.
1388: [23:51:04] <Pyromanik> xD
1389: [23:51:05] <guzzlefry> yeah
1390: [23:51:07] <guzzlefry> don't do that
1391: [23:51:12] <Pyromanik> yeah nah, wasn't going to.
1392: [23:51:27] <Pyromanik> I'm a selfish bastard, I keep all those for myself.
1393: [23:51:31] <Pyromanik> xD
1394: [23:51:53] <Pyromanik> so anyway yeah you can define variables like a call to customise() would give you
1395: [23:52:03] <Pyromanik> I'm pretty sure
1396: [23:52:11] <lewellyn> Pyromanik: uh. i suppose that's one way to do it. i simply wanted you to replace his sad with a happy, since you denied him twice.
1397: [23:52:35] <Pyromanik> emails are fiddly things
1398: [23:52:55] <Pyromanik> Even though it was the last thing I did before I quit my job, I can't recall the nitpicky bits of it
1399: [23:53:09] <Pyromanik> I think you can do something like that guzzlefry, but generally... yeah.
1400: [23:53:11] <Pyromanik> oh
1401: [23:53:15] <Pyromanik> just pass the cart in
1402: [23:53:16] <guzzlefry> I could probably just ghetto it.
1403: [23:53:19] <Pyromanik> that would probably do it
1404: [23:53:27] <Pyromanik> that or ghetto it.
1405: [23:53:33] <Pyromanik> although probably just don't do that.
1406: [23:53:38] <Pyromanik> but hey, if it works it works.
1407: [23:53:41] <Pyromanik> that's rule 1 right.
1408: [23:53:45] <Pyromanik> 1: make it work.
1409: [23:53:48] <Pyromanik> 2: make it nice.
1410: [23:53:52] <lewellyn> even better if you'll be paid maintenance by the hour.
1411: [23:54:25] <lewellyn> Pyromanik: again, i'm getting old. i tend to do them in the reverse order. :)
1412: [23:55:22] <Pyromanik> lewellyn, I know, I do too. It got me into trouble for pushing projects over time.
1413: [23:55:38] <lewellyn> in the long run, it saves a LOT of time, though.
1414: [23:55:54] <Pyromanik> optional step 3? Obfuscate the shit out of it until it looks like an aeroplane. http://blog.aerojockey.com/post/iocccsim
1415: [23:56:08] <Pyromanik> lewellyn, yeh, but when folks don't understand that...
1416: [23:56:27] <ss23> spronk: I'm going to get lunch now
1417: [23:56:30] <ss23> spronk: you know what
1418: [23:56:31] <ss23> ;)
1419: [23:56:31] <Pyromanik> oh, also most especially when it's web dev. Because mothefuckers change their minds every 2 sseconds liek a crack horse
1420: [23:56:40] <Pyromanik> STILL no burgerfuel spronk?
1421: [23:56:49] * Pyromanik feels like he's won a bet.
1422: [23:57:05] <Pyromanik> iirc someone said they'd be open by Christmas :P
1423: [23:57:27] <Pyromanik> and I was all 'nuh uh, no way in this year, or even early the next"
1424: [23:57:32] <Pyromanik> or something like that
1425: [23:57:35] <simon_w> Come on, another one in Wellington opened
1426: [23:57:41] <Pyromanik> simon_w, hahahahahha
1427: [23:57:59] <Pyromanik> simon_w, I have nfi, but ss23 is strutting and taunting, so I'm assuming that's what it is.
1428: [23:58:20] <Pyromanik> I haven't had a burger in forevers.
1429: [23:58:21] <guzzlefry> gah, my brain :/
1430: [23:58:30] <Pyromanik> scared I'll get foot and mouth over here :<
1431: [23:58:35] <ss23> lol
1432: [23:58:36] <ss23> Yeah
1433: [23:58:42] <ss23> spronk was posting on Twitter about how burgerfuel is ALMOST open
1434: [23:58:46] <ss23> and I'm like "GUESS WHATS FOR LUNCH?!"
1435: [23:58:47] <Pyromanik> or end up eating HORSE
1436: [23:58:47] <ss23> :D
1437: [23:58:57] <lewellyn> Pyromanik: it's easy: "hire a proper architect, or i'll have to do my own architecture."
1438: [23:58:58] <Pyromanik> BK got busted for horsemeat here.
1439: [23:59:07] <lewellyn> hiring a proper architect is expensive.
1440: [23:59:15] <Pyromanik> lewellyn, heh, yeah. But that shit is just never going to fly
1441: [23:59:24] <lewellyn> i'm stubborn.
1442: [23:59:25] <Pyromanik> "You're our tech man, deal with it"
1443: [23:59:35] <lewellyn> and now that i work for myself, i can do it and gloat over it :D
1444: [23:59:39] <Pyromanik> but in reality I was intermediate at best filling senior role.
1445: [23:59:40] <guzzlefry> At least hey didn't get fox in their donkey meat...
1446: [23:59:50] <ss23> TRUST ME I'M A LAW MAN.

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