#silverstripe IRC Log

IRC log for 29 October 2013

All timestamps are in UTC.

1: [00:07:27] <DaShiVaDan> I'm thinking I need to modify /mysite/code/page.php to have a method or something that collects the wanted constants into an array/object of some sort so I can call like: $Constants.CONSTANT_NAME in the template, but not sure if this is the best way to go about it or exactly how to achieve this (tho I am sure with enough digging around the docs I can figure it out)
2: [00:07:55] <Zauberfisch23> DaShiVaDan: if you need it globaly avaliable, there is GenericTemplateGlobalProvider
3: [00:08:08] <DaShiVaDan> Zauberfisch23: lemme google that :)
4: [00:08:25] <Zauberfisch23> DaShiVaDan: but the faster way is to just add a method to your Page_Controller or your dataobject depending on where you need it
5: [00:08:28] <Zauberfisch23> like:
6: [00:08:53] <DaShiVaDan> found the page, but do I need to edit core files to use it?
7: [00:09:03] <Zauberfisch23> class Page_Controller extends Page { public function getSomeVar() { return MY_CONSTANT_THINGY; } }
8: [00:09:09] <Zauberfisch23> and then in template use $SomeVar
9: [00:09:21] <simon_w> DaShiVaDan, nah, you just create a class that implements the interface
10: [00:09:31] <DaShiVaDan> yeah I was thinking I'd add to Page_Controller {} public function Constants() or something along those lines?
11: [00:09:47] <DaShiVaDan> ok, however:
12: [00:10:00] <Zauberfisch23> yep, look at GenericTemplateGlobalProvider as a example implemetation
13: [00:10:18] <simon_w> If you're doing that, might as well just public function GetConstant($name) { return constant($name); }
14: [00:10:31] <DaShiVaDan> I want to create a function Constants() that I can use in the template like: $Constants.DEFINE_NAME and have all my defines I want to use it in, rather than making a function for every define, kinda feels like the wrong way to do it
15: [00:10:56] <DaShiVaDan> simon_w: yeah, that's more the style, but can I call it like that in the ss template?
16: [00:11:03] <Zauberfisch23> simon_w s suggestion is good,this way you could do $Contstant('DEFINE_NAME')
17: [00:11:07] <simon_w> $GetConstant('BASE_DIR')
18: [00:11:17] <DaShiVaDan> cool, that sounds like exactly what I need
19: [00:11:28] <Zauberfisch23> simon_w: uppercase G?
20: [00:11:32] <DaShiVaDan> and I can have getConstant() check an array of 'allowable constants' to pull
21: [00:11:39] <DaShiVaDan> i.e. all the ones I want have teh same prefix.
22: [00:11:43] <DaShiVaDan> or whatever.
23: [00:11:48] <Zauberfisch23> DaShiVaDan: yes, you can do that
24: [00:11:53] <simon_w> Zauberfisch23, makes it more obvious that you need the Get
25: [00:12:15] <Zauberfisch23> simon_w: whats wrong with getSomething() => $Something ?
26: [00:12:30] <simon_w> Can't pass in arguments
27: [00:12:46] <Zauberfisch23> oh, really? I see
28: [00:12:51] * guci0 quit (Ping timeout: 250 seconds)
29: [00:13:02] <Zauberfisch23> intresting
30: [00:13:22] <Zauberfisch23> do we consider this a bug or is it expected behaviour?
31: [00:13:59] * violetina quit (Remote host closed the connection)
32: [00:14:46] <simon_w> It's expected
33: [00:14:53] <simon_w> Doesn't work in PHP, doesn't work in the template
34: [00:19:01] <Colin[pi]> YOUTUBE Y U NO EMBED IN HD
35: [00:19:07] * Colin[pi] cries
36: [00:19:47] * zagoodwin quit (Ping timeout: 250 seconds)
37: [00:20:31] <simon_w> That's a fun game called "trolling" :p
38: [00:22:25] <Colin[pi]> jeez it doesn't even generate valid embed code
39: [00:28:55] * Jakx has joined #silverstripe
40: [00:29:00] <Jakx> yo
41: [00:29:17] <DaShiVaDan> Anyone feel like explaining why I can't compare unix timestamps here: http://codepad.viper-7.com/x5LQqj ? :) heh
42: [00:31:15] <ss23> DaShiVaDan: Looks fine, error is probably somewhere else
43: [00:31:45] <DaShiVaDan> ss23: cool thanks, that's a good place to start :)
44: [00:31:59] <ss23> DaShiVaDan: That code is completely fine (the code you pasted)
45: [00:32:06] <ss23> DaShiVaDan: Sure you're not getting an error on another line/file/
46: [00:34:07] <DaShiVaDan> ss23: found it now, you're right i was looking in teh wrong place, just one of those 'unhelpful' error messages :)
47: [00:34:16] <ss23> ^.^
48: [00:34:37] <Jakx> SS developed Westpac's website right? Does anyone know what tech they used for their web chat?
49: [00:35:12] <ss23> Jakx: Link?
50: [00:36:03] <ss23> The westpac guys use a lot of Javascript fun stuff
51: [00:36:23] <antmas> anyone know who(what tech) is behind ASB's site?
52: [00:36:34] <simon_w> The internet!
53: [00:36:51] <ss23> antmas: ASB have their own team, and if I remember rightly, they use a lot of Microsoft specific tech
54: [00:36:55] <ss23> wait no
55: [00:36:58] <ss23> I'm thinking of Kiwibank
56: [00:37:01] <ss23> No idea about ASB
57: [00:37:01] <Jakx> ss23, yeah makes sense. I can't find a link! I don't know why I think Westpac has chat support :S
58: [00:37:14] <ss23> XD
59: [00:37:23] <antmas> I love ASB's site
60: [00:37:35] <Jakx> ss23, I believe it was mentioned to me by someone at SS Auckland.
61: [00:37:37] <ss23> I love parts of it
62: [00:37:53] <ss23> It's nicer than a lot of other banks, like old Westpac, but I know ASB just put a new front end on a shitty system >.<
63: [00:37:56] <Zauberfisch23> I love http://zauberfisch.at
64: [00:37:58] <Zauberfisch23> best site ever
65: [00:38:00] <ss23> Case insensitive, 6 char passwords
66: [00:38:03] <ss23> I'm like REALLY ASB?!
67: [00:38:05] <ss23> FUCKING REALLY?!
68: [00:38:07] <Jakx> Zauberfisch23, lol
69: [00:38:11] <simon_w> ss23, so, just like what Westpac did?
70: [00:39:01] <antmas> ss23: lol
71: [00:39:14] <antmas> I like the design more than anything, the others just look... cheap?
72: [00:39:32] <ss23> mm
73: [00:39:39] <ss23> Have you seen new westpac, antmas?
74: [00:39:48] <ss23> simon_w: New westpac did a lot of backend changes too
75: [00:39:56] <antmas> ss23: the current one?
76: [00:40:03] <ss23> antmas: The one in closed beta eatm
77: [00:40:03] <ss23> atm
78: [00:40:07] * wilr_ has joined #silverstripe
79: [00:40:14] <ss23> Have to be Westpac or SilverStripe employee to get it
80: [00:40:33] <antmas> ss23: how would I have seen it then? :P
81: [00:40:35] <simon_w> https://sec.westpac.co.nz/IOLB/Login.jsp still just as shit as ever :p
82: [00:40:35] <Jakx> ss23, tease.
83: [00:40:39] <antmas> but.. the current one does look cheap
84: [00:40:55] <ss23> That's not the new one!
85: [00:40:59] <ss23> *that* one is *really* shit
86: [00:41:01] <ss23> I agree
87: [00:41:13] <Jakx> ss23, screencap?
88: [00:41:19] <antmas> ^^^^
89: [00:41:23] <ss23> antmas: I don't know if you're on the new westpac system or not! You could work for them in secret!
90: [00:41:24] <simon_w> ss23, keep breaking your NDA? :p
91: [00:41:26] <ss23> Uh
92: [00:41:27] <ss23> I don't have a Westpac account
93: [00:41:33] <ss23> simon_w: It's not NDA, it's had press releases etc
94: [00:41:43] <ss23> (at least, I fucking hope it has)
95: [00:41:54] <Jakx> ss23, the last SS newsletter mentioned it
96: [00:42:08] <Jakx> ss23, featured it even.
97: [00:42:12] <ss23> http://www.westpac.co.nz/who-we-are/newsroom/media-releases-2013/25-september-2013/
98: [00:42:15] <ss23> There :D
99: [00:42:19] <ss23> It has some screenshots on fancy OSX devices!
100: [00:42:19] <antmas> if they have simply removed the gradients and those horrendous graphics, It would be a marked improvement
101: [00:42:23] <ss23> Not big though
102: [00:42:35] <ss23> Mid September 2013 – new online banking rolled out to Westpac staff
103: [00:42:35] <antmas> ss23: it looks nice
104: [00:42:38] <irogue23> http://www.nzherald.co.nz/nz/news/video.cfm?c_id=1&gal_cid=1&gallery_id=138729
105: [00:42:39] <ss23> End of October 2013 – first opportunity for some customers to access new online banking
106: [00:42:41] <irogue23> OOPS
107: [00:42:53] <ss23> lol irogue23, saw about that
108: [00:43:10] <antmas> ss23: it looks a bit like ASB with different colours :P
109: [00:43:11] <ss23> irogue23: dude, *fuck* shovelling that all up...
110: [00:43:18] <irogue23> ikr
111: [00:43:24] <irogue23> at 1:10 is weird
112: [00:43:27] <irogue23> fireman on point duty
113: [00:43:35] <irogue23> while cops are cleaning up the rubbish
114: [00:43:40] <ss23> XD
115: [00:43:45] <irogue23> seems backwardsish
116: [00:44:08] <antmas> haha, yeah he looks PISSED while he shovels
117: [00:44:21] <antmas> condoms and nappies stuck to his boots etc
118: [00:44:36] <ss23> Always good to know that the shit I just said in public isn't breaking NDA
119: [00:44:39] <ss23> *phew*
120: [00:44:49] <ss23> (simon_w made me nervous for a moment)
121: [00:45:06] <DaShiVaDan> Zauberfisch23, simon_w : http://codepad.viper-7.com/EHf4u6 - I'm probably making some beginner mistake, but it's not putting teh values in the template (I just get blanks)
122: [00:45:16] <DaShiVaDan> (this is for teh constants to template thing)
123: [00:45:24] <irogue23> antmas: i think the guy shovelling at the start is the truck driver. but he still looks unpleased.
124: [00:45:37] <antmas> irogue23: ah, figured
125: [00:45:51] <ss23> Always good to see a client be all "Hi this should be straight forward!"
126: [00:45:57] <ss23> REALLY? CAUSE I'M THE FUCKING DEVELOPER HERE
127: [00:46:03] <ss23> IF I WANT YOUR OPINION ON HOW HARD MY JOB IS I'LL ASK.
128: [00:46:05] <DaShiVaDan> ss23: damn skippy.
129: [00:46:12] <irogue23> shiny tow truck looks like it's hesitant to drive through the shit
130: [00:46:15] <ss23> lol
131: [00:46:16] <Jakx> ss23, baahhaha
132: [00:46:34] <antmas> ss23: :O not me is it? I almost put that in the last ticket
133: [00:46:36] <antmas> :P
134: [00:46:42] <ss23> hahaha antmas
135: [00:47:15] <ss23> Good thing you didn't then!
136: [00:48:04] <antmas> I think Jean's on the case for this one anyway
137: [00:49:21] <DaShiVaDan> anyone else care to take a peek at: http://codepad.viper-7.com/EHf4u6 ? - I've never actually really worked with templates in SS before (working on hand me down sites) so it's probably just a syntax error in the .ss call?
138: [00:49:39] * UncleCheese has joined #silverstripe
139: [00:49:48] <simon_w> <ss23> REALLY? CAUSE I'M THE FUCKING DEVELOPER HERE
140: [00:49:49] <simon_w> Aww, delusions of grandeur. How cute.
141: [00:49:59] <Jakx> simon_w, burn.
142: [00:50:09] <DaShiVaDan> simon_w: harsh
143: [00:50:32] <DaShiVaDan> simon_w: I only became a developer cause I thought we were Gods... I am dissapoint.
144: [00:51:09] <ss23> simon_w: :< ouch
145: [00:51:13] <antmas> DaShiVaDan: we're not limited to 'expertise in Office software', so to everyone else, we're Gods
146: [00:52:24] <DaShiVaDan> antmas: lol. I could rant about that for a good 30 minutes, I better not tho :) I will say that my current place, where I was employed as a Developer, this SS site updates is the rare occasion where I do anything developer-ish, mostly I do garbage work)
147: [00:52:33] <Jakx> DaShiVaDan, what happens when you do something like var_dump('RFTH_'.$name) at line 27?
148: [00:53:24] <DaShiVaDan> Jakx: hmm I'm not 100% sure I actually can call that way, I'll run a test script somewhere to test that
149: [00:54:49] <DaShiVaDan> Jakx: http://codepad.viper-7.com/6g4jqp doesn't work, but it does return something, and my template call is getting an empty string there
150: [00:54:57] <EasyCo> Hmm, now I have a SAVE and DELETE button in my AssetAdmin Files page. Weird.
151: [00:55:09] * wilr_ quit (Quit: wilr_)
152: [00:55:33] * dospuntocero has joined #silverstripe
153: [00:55:43] <antmas> ugh, people who type loudly -_-
154: [00:56:00] <ss23> I type really loudly
155: [00:56:01] <ss23> :<
156: [00:56:08] <ss23> Especially at home where I have mechanical KB
157: [00:56:12] * wilr_ has joined #silverstripe
158: [00:56:13] <DaShiVaDan> Jakx: fixed it here: http://codepad.viper-7.com/Rqe1fh will see if that somehow makes the template work
159: [00:56:17] <ss23> Anyway, off to get noms, since simon_w isn't here to get it for me
160: [00:56:18] <ss23> :<
161: [00:56:19] <simon_w> ugh, people
162: [00:56:27] <Zauberfisch23> <@simon_w> ugh, people
163: [00:56:27] <Zauberfisch23> !
164: [00:56:52] <antmas> ss23: yeah but there is a difference between confident noisy typing and those who just fucking pulverise the keys
165: [00:56:59] <ss23> antmas: I AM THE LATTER
166: [00:57:05] <ss23> People arel ike "holy fuck you're going to break your KB"
167: [00:57:09] <antmas> fffffffffffffffffff ss23
168: [00:57:11] <antmas> :P
169: [00:57:16] <DaShiVaDan> Jakx: ok, works now when testing the lines of code, but still not getting pulled into the template
170: [00:57:24] <ss23> Especially bad since mac keyboards are really annoying to type on, then go home to a mech one where I don't need to mash anymore
171: [00:57:31] <DaShiVaDan> mechanical keyboards ftw
172: [00:57:36] <antmas> +1 ^
173: [00:57:39] <ss23> hate the travel distance, end up just hitting mac keyboards mega hard
174: [00:58:06] <antmas> I do admit to liking the sound of mac keyboards being typed on :D
175: [00:58:16] <ss23> Psh, quiet lover
176: [00:58:18] <DaShiVaDan> i loathe chiclet keyboards
177: [00:58:30] * ss23 replaces antmas's offices keyboards with bucking spring
178: [00:58:31] <ss23> :D
179: [00:58:34] <DaShiVaDan> if I want a 'quiet' keyboard, I'll get one of those laser projected ones
180: [00:58:36] <antmas> lol
181: [00:58:37] <DaShiVaDan> :)
182: [00:59:02] <ss23> DaShiVaDan: those can be quite loud, depending on what tou yype on
183: [00:59:05] <antmas> we have mechanical ones here
184: [00:59:09] <ss23> tapping on my desk is louder than mac keyboard
185: [00:59:23] <Colin[pi]> TAKA TAKA TAKA TAKA TAKA
186: [00:59:29] <DaShiVaDan> ss23: I was just thinking that after I typed it, and was literally drumming my fingers on teh desk to see....
187: [00:59:35] <simon_w> DaShiVaDan, those are like the worst for typing on. No feedback at all.
188: [00:59:58] <spronk> like typing on an ipad
189: [01:00:00] <antmas> it's at its worst when regular typing is fine and the CRACK everytime the space key is hit
190: [01:00:20] <simon_w> spronk, at least there you know when to stop
191: [01:00:22] <DaShiVaDan> simon_w: oh, I agree, mechanical all teh way, but if keyboard noise was the only decider... I need some feedback or I don't know if I am even getting the letters out. I tried a laser one once, was almost impossible (but very quiet)
192: [01:00:25] <antmas> meeting time - YAY
193: [01:00:33] <Jakx> DaShiVaDan, try $GetContastant(START_DAY) from your template
194: [01:00:46] <Jakx> DaShiVaDan, without the typo's
195: [01:01:15] <Jakx> DaShiVaDan, $GetConstant(START_DAY)
196: [01:01:18] <DaShiVaDan> Jakx: that was it, thanks, no quotes :)
197: [01:01:47] <DaShiVaDan> just put it live, working... now I get to replace the dates in the other 35 .ss files that contain one of the related dozen or so dates
198: [01:02:49] <EasyCo> simon_w: Where would you start looking? For some reason there's a Save and Delete button in the File list: http://i44.tinypic.com/35lxow1.png
199: [01:03:38] <simon_w> EasyCo, aren't those supposed to be there, so you can rename/delete the folder?
200: [01:04:06] <EasyCo> simon_w: I'm not in a folder? It's just at /admin/assets/
201: [01:04:12] <EasyCo> They don't do nuffin'
202: [01:04:51] <EasyCo> Actually
203: [01:04:56] <EasyCo> It looks like they're always there
204: [01:05:09] <EasyCo> Weird that they'd be there though given they don't do shit
205: [01:05:15] <EasyCo> I guess I just always overlooked them until now
206: [01:05:41] <Jakx> DaShiVaDan, also you should be able to use $Constant(START_DAY) from your template as well. The get is implied from the template.
207: [01:10:48] * mirrors quit (Quit: Page closed)
208: [01:11:30] <EasyCo> Hmmm. Anybody got a fresh 3.1 running?
209: [01:12:14] <EasyCo> Looks like if you go directly to /admin/assets/ with fresh session data, you get the Save and Delete button. But if you go to /admin/assets/show/0 you don't.
210: [01:13:36] <Jakx> EasyCo, yep I get the same
211: [01:14:18] <DaShiVaDan> Jakx: yeah, removing the quotes was all I needed to do, all working now thanks :) Now just putting calls throughout all teh other templates T.T
212: [01:14:51] <irogue23> < ss23> People arel ike "holy fuck you're going to break your KB"
213: [01:14:53] <irogue23> this is also me
214: [01:15:26] <Pyromanik> 14:14 < irogue23> < ss23> People arel ike "holy fuck you're going to break your KB"
215: [01:15:35] <Pyromanik> I'd just tell them that I'm working hard.
216: [01:15:49] <ss23> haha
217: [01:17:35] <DesignerX> Zauberfisch23: hi u online ? regarding the GF Relation limit, I just tried it & when adding existing objects to GridField the pages doesnt refresh so the buttons stay on the page
218: [01:18:24] <Pyromanik> urgh
219: [01:18:25] <Avroceptyr> girlfriend relation limit?
220: [01:18:27] <Pyromanik> fuck you 24/7 hosting
221: [01:18:38] <DaShiVaDan> Pyromanik: go to http://soundbible.com/tags-typing.html > pick your favourite wav > click 'play' > take a break. You're "working hard" :)
222: [01:18:39] <Pyromanik> Avroceptyr: haha, poor bastard that has more than one.
223: [01:18:39] <Avroceptyr> yeah, business hours hosting for the win!
224: [01:18:42] <DesignerX> Avroceptyr: yep :D
225: [01:18:58] <Pyromanik> DaShiVaDan: working hard at hardly working!
226: [01:19:16] <Pyromanik> irogue23: again with the 24/7 hosting fuckups.
227: [01:19:34] <unsigned_> Pyromanik: DaShiVaDan: working hard at hardly working! <-- sounds like every manager ever
228: [01:19:38] <Pyromanik> HEY GUYS, HERE'S A GOOD IDEA, Make all your MX records point to @!
229: [01:19:47] * unsigned_ is now known as unsignedint
230: [01:19:57] <unsignedint> okay!
231: [01:20:10] <Pyromanik> when you put a new site live they change the A record, STILL FUCKS ALL EMAILS
232: [01:20:18] <Pyromanik> derp derp derp
233: [01:20:30] <Jakx> Pyromanik, lewl.
234: [01:20:40] <simon_w> Oh right, I should add in postfix monitoring too
235: [01:20:48] <simon_w> To the nagios!
236: [01:22:01] <Pyromanik> argh fuck sakes, don't tell me that's the cpanel default
237: [01:22:11] <Zauberfisch23> DesignerX: pong
238: [01:22:12] <Pyromanik> herpy derpy doo
239: [01:22:31] <Zauberfisch23> DesignerX: are you using inline editing?
240: [01:22:36] <Zauberfisch23> otherwise the grid should reload
241: [01:24:51] <DesignerX> Zauberfisch23: ah, yes it reloads on adding an item but not on removing for some reason
242: [01:27:57] <Jakx> can you do math via a template in ss 3 + ?
243: [01:28:04] <Zauberfisch23> no
244: [01:28:12] <Zauberfisch23> but you can create a method for it
245: [01:28:34] <Zauberfisch23> sum(1,2)
246: [01:28:36] <Zauberfisch23> or so
247: [01:28:40] <Zauberfisch23> $sum(1,2)
248: [01:28:48] <Jakx> Zauberfisch23, oh got it. Cheers!
249: [01:28:58] <Zauberfisch23> function sum($a,$b) { return $a+$b; }
250: [01:31:42] <Jakx> Zauberfisch23, I've used $SlideByPos($Pos)
251: [01:31:51] <Jakx> $Pos is 1 too high.
252: [01:32:11] <Zauberfisch23> make $SlideByPos reduce it by 1?
253: [01:32:25] <Jakx> Zauberfisch23, yeah that's the one :) it worked nicely.
254: [01:33:02] <simon_w> Or just pass in $Pos(0)
255: [01:33:46] <Jakx> simon_w, !!
256: [01:33:51] <Jakx> simon_w, thanks
257: [01:34:17] <simon_w> (argument is the number you start counting from, default is 1)
258: [01:34:29] <Zauberfisch23> simon_w nice to know
259: [01:34:44] <Jakx> simon_w, handy
260: [01:36:07] <simon_w> Time for some lunch, me thinks
261: [01:36:49] <ss23> simon_w: Late!
262: [01:36:49] <ss23> :D
263: [01:36:52] <ss23> It's 2:30
264: [01:36:53] <ss23> :3
265: [01:37:14] <simon_w> ss23, even if I was in NZT, that wouldn't be late :p
266: [01:42:07] * zagoodwin has joined #silverstripe
267: [01:45:10] <ss23> I fucking hate how SilverStripe uses Javascript so heavily
268: [01:45:11] <ss23> goddam it
269: [01:45:35] <guzzlefry> web 2.0, bro
270: [01:45:36] <guzzlefry> :P
271: [01:45:46] <guzzlefry> I hate it also. >_>
272: [01:45:52] * nayeema has joined #silverstripe
273: [01:46:01] <simon_w> Just be glad the CMS isn't also doing JS-side rendering
274: [01:46:14] <guzzlefry> What's that one thing...progressive enhancement.
275: [01:46:27] <ss23> guzzlefry: Or in this case, progressive fucking up as we move mor eand more to Javascript
276: [01:46:43] <guzzlefry> eep
277: [01:47:05] <guzzlefry> wonder how hard a rewrite would be...
278: [01:47:07] <guzzlefry> in you konw
279: [01:47:10] <guzzlefry> something sane :P
280: [01:51:12] <wilr_> extjs would prefer web apps just be <body> tag
281: [01:52:31] * nayeema quit (Ping timeout: 250 seconds)
282: [01:53:14] <Colin[pi]> rofl from reddit: http://i.imgur.com/6AakoIW.jpg
283: [01:53:31] <Colin[pi]> (he has allergy to shrimp)
284: [01:53:33] <antmas> Colin[pi]: hahah
285: [01:55:44] <Zauberfisch23> well, there are valid reasons to use client side templating, but with silverstripe I agree, stick to serverside
286: [01:58:11] <antmas> ffffff If I see one more goddamn corporate mobile app built in goddamn jquery mobile...
287: [01:58:32] <Colin[pi]> or bootstrap
288: [01:58:40] <simon_w> There's even more reasons to not use client side templating, which is why Twitter switched back to server side
289: [01:58:47] <Stomach> git
290: [01:58:51] <Stomach> whoops
291: [01:58:52] <Stomach> :D
292: [01:59:44] <antmas> it's like their devs simply google 'how to quickly build a mobile app'
293: [02:00:10] <antmas> 100% width on buttons!
294: [02:00:18] <antmas> responsive!
295: [02:00:22] <Zauberfisch23> :D
296: [02:03:22] <Colin[pi]> lol antmas
297: [02:15:23] <UncleCheese> why can't unix time be negative? what does it matter?
298: [02:16:09] <UncleCheese> like why can't 31 Dec, 1969 be represented by 0 - (365*24*60*60) ?
299: [02:16:20] <UncleCheese> 1968*
300: [02:17:10] <Zauberfisch23> UncleCheese: singed int I guess
301: [02:17:23] <UncleCheese> that's an easy problem to solve
302: [02:17:43] <Zauberfisch23> *unsinged
303: [02:17:43] <UncleCheese> it just sucks because it completely excludes unix time as a solution for anything dealing with birthdays
304: [02:18:37] <Zauberfisch23> well, I'd say unix time is a standard, and you can't just say we now doulbe the bits of an int and make it signed
305: [02:18:48] <Zauberfisch23> you gonna break a lot of apis
306: [02:19:24] <Zauberfisch23> but I agree, the limit downwards is anoying
307: [02:19:35] <simon_w> Uh, they are signed?
308: [02:19:53] <ss23> https://github.com/gruntjs/gruntjs.com/issues/81
309: [02:19:56] <ss23> rofl
310: [02:20:31] <Zauberfisch23> simon_w: was that a question or a statement. to be honest I am just guessing here
311: [02:22:12] <antmas> ss23: hahah, kinda hard to tell what was going on there
312: [02:22:54] <ss23> yeah...
313: [02:23:17] <ss23> Would be interested to see a real test case...
314: [02:23:25] <ss23> Kind of points to some kind of corruption somewhere
315: [02:24:47] <Zauberfisch23> actually, UncleCheese
316: [02:24:51] <Zauberfisch23> php > echo strtotime('1905-05-05') . PHP_EOL;
317: [02:24:52] <Zauberfisch23> -2040508800
318: [02:25:13] <ss23> Remember that some builds of PHP use 64bit ints and some use 32bit
319: [02:25:31] <Zauberfisch23> php > $time = -2040508800;
320: [02:25:31] <Zauberfisch23> php > echo date('Y-m-d', $time);
321: [02:25:31] <Zauberfisch23> 1905-05-05
322: [02:25:54] <Zauberfisch23> UncleCheese: so it would seem that you can actually use negative values for unix time, at least in php
323: [02:26:30] * antmas_ has joined #silverstripe
324: [02:26:45] * antmas quit (Ping timeout: 250 seconds)
325: [02:26:53] * antmas_ is now known as antmas
326: [02:26:59] <UncleCheese> thats new?
327: [02:27:09] <UncleCheese> oh actually
328: [02:27:37] * chrisrio quit (Ping timeout: 250 seconds)
329: [02:27:38] <Zauberfisch23> php -v
330: [02:27:39] <Zauberfisch23> PHP 5.3.10-1ubuntu3.7 with Suhosin-Patch (cli) (built: Jul 15 2013 18:05:44)
331: [02:51:10] <wilr_> Zauberfisch23 time to upgrade
332: [02:51:39] <Avroceptyr> yeah, you're running a *really* old version of PHP :P
333: [02:54:02] <Zauberfisch23> wilr_: non production VM
334: [02:54:24] <Pyromanik> This is why I hate the shit out of Ubuntu
335: [02:54:32] <Pyromanik> hosting companies go for the LTS editions
336: [02:54:56] <Pyromanik> so they sec patch PHP but you can't get upgrades until you move to a new OS.
337: [02:55:07] <Pyromanik> which in LTS is something like ~5 years
338: [02:55:32] <DaShiVaDan> For 64-bit versions of PHP, the valid range of a timestamp is effectively infinite, as 64 bits can represent approximately 293 billion years in either direction.
339: [02:55:46] <wilr_> understandable though
340: [02:55:54] <DaShiVaDan> 32 bit and platform-dependant, negative doesn't work
341: [02:56:20] <DaShiVaDan> so while you might be able to use negative unix timestamps, you can't rely on them unless you know they will be on minimum platform X
342: [02:56:45] <Zauberfisch23> good intel, thanks DaShiVaDan (cc UncleCheese)
343: [02:57:02] <Pyromanik> hahaha ss23
344: [02:57:04] <UncleCheese> oh wow
345: [02:57:05] <Pyromanik> https://github.com/gruntjs/gruntjs.com/issues/81
346: [02:57:19] <ss23> yeah, ikr
347: [02:57:43] <Pyromanik> wilr_: yeh understandable, but still a bit of an annoyance when you're close to end of life.
348: [02:57:50] <DaShiVaDan> Zauberfisch23: No worries, I cheated: http://php.net/manual/en/function.strtotime.php (notes section about a page or so in depending on resolution)
349: [02:59:10] <DaShiVaDan> I am a little surprised that there's no function written by anyone to give support to negative timestamps as relevant functions, but I guess it could end up getting pretty hairy to cover every possible use case
350: [03:01:32] <DaShiVaDan> Does the datetime class uspport it? http://us2.php.net/manual/en/class.datetime.php ? (about to read it for a while myself)
351: [03:01:32] <Pyromanik> FUCK, ANOTHER ONE
352: [03:01:34] <Pyromanik> WTF
353: [03:01:35] <Pyromanik> http://learnboost.github.io/stylus/
354: [03:01:37] <Pyromanik> WHY
355: [03:01:38] <Pyromanik> WHY
356: [03:01:40] <Pyromanik> WHY!?
357: [03:01:41] <antmas> anyone ever used a jquery file tree/browser before?
358: [03:06:55] <Zauberfisch23> Pyromanik: why another css preprocessor?
359: [03:08:13] <Zauberfisch23> or why "oh, lets just screw any consistency we had left"?
360: [03:09:06] <DaShiVaDan> Zauberfisch23: http://codepad.viper-7.com/wxZLll (not returning the exact same results as the PHP doc page does, but seems like it might be workable - still not sure on cross-platform tho - the 'U' version is sposed to work, and the default one is supposed not to work, but for that test they both work, might be 64 bit)
361: [03:10:06] <DaShiVaDan> I don't believe in CSS pre-processors. I kinda figure if it was best to write the CSS that way, then the default CSS3 (4) whatever would do it already.... but I'm an odd brand of cynic :P
362: [03:10:38] <Zauberfisch23> DaShiVaDan: I do love SCSS
363: [03:10:43] <Zauberfisch23> especially with compass
364: [03:12:00] <EasyCo> Preprocessor are pretty much a necessity for larger sites. %placeholders, @mixins and $vars ftw
365: [03:12:07] <DaShiVaDan> Zauberfisch23: well, I've realised that I'm just gonna have to learn to love whatever my next company uses :) If they don't use anything, I'll be happiest, but if there's something really worthwhile out there I don't mind learning it. This current company uses none, or a random selection of like 3 or 4 preprocessors, depending on what developer created the specific site :(
366: [03:12:39] <Zauberfisch23> DaShiVaDan: well, that obviously is a bad idea
367: [03:12:52] <DaShiVaDan> And I'm totally for anything that combines and simplifies 'all teh css' like SS does
368: [03:13:21] <Zauberfisch23> I hate it myself if someone forces me to use some tool, but what I hate more is the pain that comes with a team using different tools
369: [03:13:27] <DaShiVaDan> I just hate having to learn 3 new ways to write CSS :P call me lazy
370: [03:13:39] <DaShiVaDan> yeah
371: [03:13:42] <Zauberfisch23> DaShiVaDan: I don't use less or stylus
372: [03:13:59] <Zauberfisch23> and luckily I am in the position that I can force others to use what ever tool I deem best
373: [03:14:02] <Zauberfisch23> so SCSS it is
374: [03:14:06] <DaShiVaDan> but so long as i can use a single one for at least a period of 6 months before changing i'm ok
375: [03:15:02] <DaShiVaDan> heh at my last place I told the other devs what to use :) but this place I just have to deal with whatever is there, but I did get let go last friday, so only 2 more weeks, and those 2 weeks are all assigned to 2 near-identical SS sites :)
376: [03:19:28] * Jakx quit (Quit: ~ Trillian Astra - www.trillian.im ~)
377: [03:20:34] <antmas> :< feedly is overloaded
378: [03:20:38] <antmas> grr
379: [03:22:10] <simon_w> SimCity is not
380: [03:23:45] <irogue23> yeah, I've just started using SCSS
381: [03:24:12] <irogue23> even just being able to properly nest CSS... unf
382: [03:26:11] * DigNZ quit (Quit: DigNZ)
383: [03:26:35] * mike_kirto has joined #silverstripe
384: [03:26:41] <mike_kirto> Hi everyone
385: [03:27:20] <wilr_> howdey
386: [03:27:21] <Zauberfisch23> irogue23: yeah
387: [03:27:24] <unsignedint> Pyromanik: http://learnboost.github.io/stylus/ WHY <-- I started using stylus a few weeks ago (first CSS preprocessor I ever tried) and I must say its really nice
388: [03:27:26] <mike_kirto> I am trying to install SilverStripe for the first time and i am getting the following error "Can't find home/1 in stage Stage" when running dev build
389: [03:27:27] <Zauberfisch23> and the spriting features of compass
390: [03:28:06] <mike_kirto> then when i go into the admin area I can see 3 pages but they say "removed from draft"
391: [03:28:30] <mike_kirto> i tried clearing the database and running dev/build again but the same thing keeps happening
392: [03:28:44] <Zauberfisch23> unsignedint: well, you'll have that feeling for every preprocessor I guess, because they all share the same basic features which are quiet amazing if you only did native css before
393: [03:29:05] <wilr_> mike_kirto want to try republishing the pages in the cms
394: [03:29:12] <Zauberfisch23> anyway, bed time
395: [03:29:14] <Zauberfisch23> good night gents
396: [03:30:06] <irogue23> night Zauberfisch23!
397: [03:30:30] * dospuntocero quit (Remote host closed the connection)
398: [03:31:25] <mike_kirto> wilr_: republising then fixes the problem
399: [03:31:31] <mike_kirto> here is my error http://pastie.org/8439043
400: [03:33:19] <mike_kirto> so when it publishes from stage to live it cant find the stage version I guess?
401: [03:36:49] <mike_kirto> any ideas?
402: [03:38:11] <ss23> playlist on shuffle
403: [03:38:14] <ss23> NWA just came on
404: [03:38:17] <ss23> FUCK THA POLICE
405: [03:38:34] * DigNZ has joined #silverstripe
406: [03:42:42] * davelyon has joined #silverstripe
407: [03:43:41] <davelyon> does everyone run silverstripe 'as-is' or is there a way I'm not finding that will let me run it with all the code outside the document root?
408: [03:44:17] <davelyon> I found this conversation proposing something like this- https://groups.google.com/forum/#!msg/silverstripe-dev/DndIpQ26F7M/ueqvlK4FsisJ but it seems more theoretical than a working idea
409: [03:44:18] <ss23> hmm
410: [03:44:35] <ss23> davelyon: Possible, don't think it's done yet
411: [03:45:05] <ss23> davelyon: Any reason you want to though? Seems more effort than it's worth
412: [03:45:41] <davelyon> just to minimize risk- I suppose out of habit than anything else
413: [03:46:52] <davelyon> I've just always tried to keep PHP out of the document root except for index.php
414: [03:46:57] <ss23> davelyon: Yeah, I get the idea, but I think a better way to deal with it is to make sure the webserver only ever has access to write to the /assets directory, and make 100% sure that you can't excecute from there
415: [03:47:39] <davelyon> ss23: thanks for that- I'll check to make sure that's the case
416: [03:48:33] <davelyon> I'm fairly confident I could do it, but then I'd be making code edits to the silverstripe distro every time we update- just another kind of nightmare
417: [03:49:07] <davelyon> for now I'll leave it as-is, just curious if there was something obvious I was missing that could do it
418: [03:55:10] * dospuntocero has joined #silverstripe
419: [03:58:04] * nickmolhoek quit (Quit: nickmolhoek)
420: [03:58:09] * DigNZ quit (Quit: DigNZ)
421: [04:02:57] * davelyon quit (Quit: Page closed)
422: [04:07:59] * biodiesel is now known as kerosene
423: [04:08:58] <irogue23> yo ss-log
424: [04:09:02] <irogue23> *ss23
425: [04:09:10] <irogue23> organised a hackfest yet?
426: [04:09:22] <ss23> Am I meant to? o.o
427: [04:10:50] * Stomach quit (Read error: Connection reset by peer)
428: [04:22:00] <DaShiVaDan> Is there interest in identifying broken tutorial pages on docs.silverstripe?
429: [04:22:32] <DaShiVaDan> (I assume teh system would compile it's own report for this)
430: [04:23:27] <wilr_> DaShiVaDan sure, anything to help improve the docs is welcome via github
431: [04:24:20] <ss23> DaShiVaDan: A report isn't helpful, since someone would still need to fix it, I think
432: [04:24:27] <ss23> DaShiVaDan: But you are welcome to remove/fix broken links as wilr_ says!
433: [04:24:28] <ss23> :D
434: [04:24:29] <wilr_> and the system doesn't identify 404's. You could extend the system to do the report (https://github.com/silverstripe/silverstripe-docsviewer)
435: [04:25:34] * cloph has joined #silverstripe
436: [04:25:50] * cloph_away quit (Ping timeout: 245 seconds)
437: [04:25:55] <wilr_> usually the 404's arise from people moving pages around between versions. Perhaps it needs a version mapping file for pages
438: [04:26:54] <ss23> Would be cool to have a travis/scruitinizer/whatever test for new 404's
439: [04:26:59] <ss23> Like a docs only test or something, idk
440: [04:27:07] <ss23> I do feel like docs should be a seperate branch/repo
441: [04:30:18] <wilr_> ss23, me and ingo had that discussion when I first did the prototype, docsviewer supports it if you want to do it that way but was decided wanted the docs as close to code as possible
442: [04:30:42] <wilr_> though as it grows, could review that
443: [04:30:54] <ss23> wilr_: Assuming the reason of having them close is the idea that "oh people will just update them easily at the same time", it seemsl ike that idea hasn't worked
444: [04:31:00] <ss23> API docs get updated, but the actual docs.silverstripe don't
445: [04:31:16] <wilr_> ss23 well docs gets updated more than 2 years ago
446: [04:31:56] <ss23> wat?
447: [04:32:05] <wilr_> Also don't like having the change logs in docs
448: [04:32:26] <ss23> You've lost me.
449: [04:32:43] <wilr_> well the idea is that a PR can contain everything in one
450: [04:33:20] <mike_kirto> wilr_: I am still getting that issue....everytime I install a new module that requireDefaultRecord() i get this error Can't find under-construction/4 in stage Stage..in the requireDefaultRecord() the page is cleary being written using $page->write() but then the $page->publish('Stage', 'Live') saves that the stage version does not exist)
451: [04:36:40] <ss23> wilr_: I get the idea, but that doesn't happen right?
452: [04:37:58] <wilr_> ss23 seems to. Better than in 2.4 which had several API changes that just never had documentation till a month or 4 after it made it in
453: [04:38:19] <ss23> mmmmmmk
454: [04:38:48] * UncleCheese quit (Quit: UncleCheese)
455: [04:49:44] <Colin[pi]> "why does my list not having padding?" "because you forgot to wrap it in a <ul> colin you stupid fuck"
456: [04:50:05] <Colin[pi]> "ohhh, thanks colin" "you're welcome colin"
457: [04:51:18] <ss23> lol
458: [04:55:28] <EasyCo> Don't let past Colin[pi] get to you. He can be a real dick since he never has to deal with consequences.
459: [04:55:57] <Colin[pi]> yeah he's a douche
460: [04:56:09] <ss23> I don't know, I feel like Colin[pi] is just misunderstood
461: [04:59:46] <Colin[pi]> if I put an action into $url_handlers, does that stop the automagic "_actionname.ss" thing from happening?
462: [05:07:10] <irogue23> < ss23> Am I meant to? o.o
463: [05:07:17] <irogue23> yup, to give me an excuse to come visit :P
464: [05:07:22] <ss23> lol
465: [05:07:26] <ss23> I'll organise it after Kiwicon I guess
466: [05:07:59] <irogue23> sam said when <insert name here> started
467: [05:08:03] <irogue23> i can't remember the name :P
468: [05:08:32] <ss23> some conference or somehting?
469: [05:08:38] <ss23> Lets try summon him
470: [05:08:40] <ss23> SMINEE
471: [05:08:40] <ss23> SMINEE
472: [05:08:41] <ss23> SMINEE
473: [05:08:42] * ss23 waits
474: [05:09:09] <Colin[pi]> spell his name correctly and it might work! ;P
475: [05:09:15] <irogue23> ss23: CAM
476: [05:09:20] <ss23> oh, yep yep
477: [05:09:23] <irogue23> http://logs.simon.geek.nz/index.php?date=2013-10-17#log_1084122
478: [05:09:24] <ss23> Colin[pi]: damn
479: [05:09:24] <ss23> :<
480: [05:09:30] <ss23> irogue23: He's starting some time soon!
481: [05:09:38] <irogue23> nov 11 apparently
482: [05:09:39] <ss23> I can't remember what his title is
483: [05:09:45] <ss23> Might be community manager
484: [05:09:45] <ss23> mm
485: [05:10:34] <irogue23> my belly is hungry
486: [05:22:22] * mike_kirto quit (Quit: Page closed)
487: [05:32:02] * Colin[pi] quit (Ping timeout: 246 seconds)
488: [05:37:14] * wilr_ quit (Quit: wilr_)
489: [05:42:48] <ss23> I've had a lot of stupid bugs
490: [05:43:00] <ss23> but just not being able to log in on an IE browser is retarded
491: [05:47:20] <spronk> drp
492: [05:47:39] <ss23> I seriously don't even know
493: [05:47:46] <ss23> Maybe the keyboards are different and I'm typing the password wrong
494: [05:47:46] <ss23> >.>
495: [05:48:26] <spronk> o_O
496: [05:48:31] <spronk> wtf
497: [05:49:14] <guzzlefry> 0.o
498: [05:55:01] * kerosene quit (Quit: tings)
499: [05:58:20] <ss23> Fuck it, I can't deal with this shit right now, too tired
500: [05:58:27] <ss23> Maybe internet explorer is just perma-fucked
501: [05:59:13] <shakesoda> I've had some weird login issues
502: [05:59:22] <shakesoda> never could track most of them down
503: [06:00:09] <shakesoda> more than once I've had to reset passwords that by all means I shouldn't have had to
504: [06:00:42] <shakesoda> (I knew the password and typed it correctly, or it was saved [also correctly], etc)
505: [06:10:36] * dospuntocero quit (Remote host closed the connection)
506: [06:11:03] * dospuntocero has joined #silverstripe
507: [06:11:10] <guzzlefry> master shake? 0.o
508: [06:11:57] * dospunto_ has joined #silverstripe
509: [06:11:57] * dospuntocero quit (Read error: Connection reset by peer)
510: [06:17:46] * Shrike_Finland has joined #silverstripe
511: [06:28:03] * simon__w has joined #silverstripe
512: [06:28:23] * simon_w quit (*.net *.split)
513: [06:28:58] <guzzlefry> :(
514: [06:33:19] * EasyCo quit (Quit: EasyCo)
515: [06:38:12] * Shrike_Finland quit (Quit: Leaving.)
516: [06:48:01] * simon__w quit (Quit: Leaving)
517: [06:57:32] * Shrike_Finland has joined #silverstripe
518: [07:01:39] * Shrike_Finland quit (Client Quit)
519: [07:03:12] * EasyCo has joined #silverstripe
520: [07:03:22] * EasyCo quit (Client Quit)
521: [07:11:33] * Colin[pi] has joined #silverstripe
522: [07:18:21] <DesignerX> HI, anyone here uses the GridField CopyButton module ? I added the component to the $GridFieldConfig but I get this when I click copy "Action 'copy' isn't available on class GridFieldDetailForm_ItemRequest."
523: [07:30:57] * zagoodwin quit (Ping timeout: 250 seconds)
524: [07:34:52] * Shrike_Finland has joined #silverstripe
525: [07:53:43] * skorp has joined #silverstripe
526: [08:17:07] * ARNHOE has joined #silverstripe
527: [08:34:48] * SightUnseen has joined #silverstripe
528: [08:34:49] * SightUnseen has left #silverstripe
529: [08:44:41] * violetina has joined #silverstripe
530: [08:51:35] * travis-ci has joined #silverstripe
531: [08:51:36] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1434 (3.1 - a0b7bfc : Will Rossiter): The build passed.
532: [08:51:36] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/60bb9d81c574...a0b7bfc7a574
533: [08:51:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13196456
534: [08:51:36] * travis-ci has left #silverstripe
535: [08:57:05] * ajshort has joined #silverstripe
536: [08:57:10] * guci0 has joined #silverstripe
537: [08:57:16] <guci0> Morning!
538: [08:58:17] <DesignerX> Night!
539: [08:58:55] * svandragt has joined #silverstripe
540: [09:04:21] * kinglozzer has joined #silverstripe
541: [09:14:19] * Colin[pi] quit (Ping timeout: 272 seconds)
542: [09:28:13] * Nightjar has joined #silverstripe
543: [09:28:44] <Nightjar> someone take my mind off of things
544: [09:28:53] <Nightjar> ENTERTAIN MEEEEEEE
545: [10:16:07] <DesignerX> Nightjar: http://www.animedubbedonline.net/
546: [10:17:18] <Nightjar> :<
547: [10:17:39] <DesignerX> Nightjar: that worked ?
548: [10:17:46] <Nightjar> not really :S
549: [10:17:58] <DesignerX> try this http://www.youtube.com/watch?v=k1MLpsU7QWs
550: [10:22:54] <Nightjar> ah yes, that is a good one.
551: [10:23:02] <Nightjar> but anime, anime should not be dubbed at the best of times.
552: [10:24:18] <DesignerX> :)
553: [10:36:20] <irogue23> Nightjar: https://pbs.twimg.com/media/BXuaGzeIAAAg_0S.jpg:large
554: [10:44:57] <spronk> hm
555: [10:46:40] <spronk> fucking love that one
556: [10:46:47] <spronk> where the guy fucks up his drumming
557: [10:46:49] <spronk> and spills his drink
558: [10:46:52] <spronk> and cries like a little bitch
559: [10:56:57] <spronk> oi motherfuckers
560: [10:57:03] <spronk> where has my keywords field gone
561: [11:00:45] <Nightjar> irogue23: :#
562: [11:00:48] <Nightjar> :3
563: [11:03:31] <spronk> oh ffs
564: [11:03:37] <spronk> 3.1 removes metatitle and metakeywords
565: [11:03:53] <spronk> FUCK YOU SS
566: [11:05:12] <Nightjar> is module
567: [11:05:18] <Nightjar> addons.silverstripe.org
568: [11:06:41] <spronk> what the fuck is called
569: [11:06:47] <Nightjar> metatitle
570: [11:07:02] <spronk> what about keywords!?
571: [11:07:07] <Nightjar> nfi
572: [11:07:08] * skorp has left #silverstripe
573: [11:07:14] <spronk> sigh.
574: [11:07:55] <Nightjar> class herpaderp extends DataExtension{private static $db = array('MetaKeywords'=>'Text')}
575: [11:08:25] <Nightjar> Page: extensions: - herpaderp
576: [11:08:31] <spronk> yeah yeah
577: [11:08:37] <spronk> but it used to be there
578: [11:08:40] <spronk> so i upgrade
579: [11:08:42] <Nightjar> and now it's not
580: [11:08:45] <spronk> then client is all
581: [11:08:48] <spronk> how do i do this
582: [11:08:49] <spronk> and i'm all
583: [11:08:50] <spronk> just do that
584: [11:08:57] <spronk> <= then looks stupid
585: [11:08:58] <Nightjar> is trap, we know.
586: [11:09:05] <Nightjar> was this big debate.
587: [11:09:09] <spronk> yeah
588: [11:09:10] <spronk> i remember now
589: [11:09:11] <Nightjar> apparently it doesn't belong in core.
590: [11:09:12] <spronk> i voted and all
591: [11:09:38] <Nightjar> seo is snake oil, but it keeps snake charmers happy.
592: [11:09:40] <spronk> then noone actually bothered to do anything about it other than kinglozzer's unofficial metatitle module
593: [11:09:53] <spronk> some of it is snake oil
594: [11:09:53] <Nightjar> kinglozzer is a good guy.
595: [11:09:59] <kinglozzer> I SAW MY NAME
596: [11:10:01] <Nightjar> s/some/all/
597: [11:10:04] <kinglozzer> <3
598: [11:10:06] <spronk> indeed, but god damn
599: [11:10:16] <Nightjar> indeed.
600: [11:10:31] * spronk needs LESS frustration, not more.
601: [11:10:35] <kinglozzer> I tried to get them to keep it, I tried :(
602: [11:10:48] <spronk> like fucking safari
603: [11:10:58] <spronk> and it's idiotic elastic scrolling that you can't turn off >=[
604: [11:10:58] <kinglozzer> Heh, I saw your tweets
605: [11:11:14] <Nightjar> wtf
606: [11:11:15] <Nightjar> return number_format(round($this->value, $precision), $precision);
607: [11:11:21] <spronk> YOU TWITTER ME!?
608: [11:11:58] * spronk always thought twitter was teddy bear therapy and that nobody real actually listened
609: [11:12:05] <Nightjar> oic, one returns float, the other string.
610: [11:12:10] <spronk> ja
611: [11:12:32] <spronk> also
612: [11:12:35] <spronk> pwn new tv show: the blacklist.
613: [11:12:54] <Nightjar> indeed, very good.
614: [11:13:03] <Nightjar> <3 new show. All others are shit.
615: [11:13:13] <Nightjar> 'cept Homeland, but I'm miles behind.
616: [11:13:15] <spronk> god
617: [11:13:18] <spronk> i love homeland
618: [11:13:27] <spronk> clare danes is a superb crazy bitch
619: [11:13:28] <Nightjar> oh, and others I watch for fun, but aren't exactly engaging.
620: [11:13:38] <Nightjar> like Castle
621: [11:13:42] <spronk> mm
622: [11:13:43] <Nightjar> The Mentalist
623: [11:13:50] <spronk> new girl is also entertaining
624: [11:13:55] <Nightjar> oh, Person of Interest is good.
625: [11:14:03] <spronk> zooey is a bit of a meal too, which helps things along
626: [11:16:05] <Nightjar> fuck, finding bug, so rage.
627: [11:16:32] <Nightjar> unit cost: $3.313, quantity 3, your price: $1.45
628: [11:16:34] <Nightjar> WUT.
629: [11:16:47] <spronk> o_O
630: [11:16:51] <spronk> what you working on/
631: [11:17:09] <Nightjar> A quotemachine.
632: [11:17:22] <Zauberfisch23> spronk: awesome, blacklist looks cool, thanks for the tip
633: [11:17:40] <Nightjar> it starts off pretty "hmm, could be good, could be bad" but then proceeds to get much better.
634: [11:17:41] <spronk> :)
635: [11:18:15] <Zauberfisch23> Castle, Mentalist and Person of Interest are some of my favourites
636: [11:18:32] <Zauberfisch23> you got any other shows that are similar that you could recomend?
637: [11:18:51] <spronk> hmm
638: [11:18:56] <Zauberfisch23> I am kindof thourgh all of them (expect for person of intrest where new shows are airing now)
639: [11:18:56] <spronk> only other shows i've watched recently are.... dexter
640: [11:19:09] <Zauberfisch23> oh,yeah, dexter is awesome too
641: [11:19:19] <spronk> also burn notice
642: [11:19:22] <spronk> but dno where thats gone
643: [11:19:38] <Nightjar> Zauberfisch23: nah, I pass off on most other shows now.
644: [11:20:01] <Nightjar> Oh, Arrow.
645: [11:20:07] <Nightjar> I watch that.
646: [11:20:14] <Zauberfisch23> watching Suits at the moment
647: [11:20:20] <Zauberfisch23> which is also quiet alright
648: [11:20:28] <Nightjar> And Elementary, Hawaii 5-0
649: [11:20:33] <Zauberfisch23> oh, and House of Cards is really really good
650: [11:20:46] <Zauberfisch23> Elementry yes, Hawaii50 hmm, not so much
651: [11:20:54] <Nightjar> banshee is fucking amazing, but not really the same as a police proceedural.
652: [11:21:41] * jcwacky has joined #silverstripe
653: [11:21:44] <Nightjar> Ray Donovan seems kinda cool, but I seemed to pause that about half way through ( the season)
654: [11:22:05] <Zauberfisch23> other shows I could recommend: Arrow,Revolution,Luther
655: [11:22:17] <Nightjar> I watched Revolution, gave up on it.
656: [11:22:33] <Nightjar> I've heard of Luther, but not seen it.
657: [11:22:49] <spronk> ooo
658: [11:22:52] <spronk> banshee was gooood
659: [11:22:53] <Zauberfisch23> its not as good as sherlock or Elementry
660: [11:22:58] <Zauberfisch23> but still alright
661: [11:23:30] <Nightjar> Might check it out
662: [11:23:52] <Zauberfisch23> Arrow is a robin hood kind of thing
663: [11:23:56] <Zauberfisch23> modern robin hood
664: [11:24:46] <Zauberfisch23> I think vigilante is the word I am looking for
665: [11:25:29] <Nightjar> yeh, I watch that
666: [11:25:44] <Nightjar> you should check out Banshee it sounds like you'd like it.
667: [11:28:05] * PanPipes has joined #silverstripe
668: [11:28:31] <PanPipes> is there a list of option for HtmlEditorConfig::get('cms')->setButtonsForLine written down anywhere?
669: [11:29:42] <Nightjar> HTMLEditorConfig.php probably
670: [11:31:18] * CodeTrap has joined #silverstripe
671: [11:32:25] <PanPipes> no such file exists as far as i can tell. just want to know which ones are selected by default, save me looking through tinymce site
672: [11:33:11] <DesignerX> Zauberfisch23: try BOARDWALK EMPIRE
673: [11:33:37] <DesignerX> was just reading chat above ;)
674: [11:34:06] <PanPipes> all i want to do is remove the Style dropdown but not sure what it is called
675: [11:35:25] * spronk quit (Ping timeout: 245 seconds)
676: [11:36:18] <Nightjar> PanPipes: they're in the config acutally now I think.
677: [11:36:32] <Nightjar> PanPipes: it's not the default tinymce ones anyway
678: [11:37:53] * Shrike_Finland quit (Quit: Leaving.)
679: [11:42:49] <Nightjar> PanPipes: hmm, seems like it does use the default, just edits it on the fly or something.
680: [11:42:55] <Nightjar> https://github.com/silverstripe/silverstripe-framework/blob/3.1/admin/_config.php
681: [11:43:25] <Nightjar> ah no, line 40
682: [11:43:26] <Nightjar> https://github.com/silverstripe/silverstripe-framework/blob/3.1/admin/_config.php#L40
683: [11:43:41] <Nightjar> it's called styleselect
684: [11:44:33] * Shrike_Finland has joined #silverstripe
685: [11:45:56] <Nightjar> bedtime
686: [11:45:59] * Nightjar has left #silverstripe
687: [11:46:28] * Shrike_Finland quit (Remote host closed the connection)
688: [11:47:07] * Shrike_Finland has joined #silverstripe
689: [11:53:29] <jcwacky> Anyone using the lucene search module with 3.1?
690: [12:00:55] <PanPipes> Thanks Nightjar
691: [12:01:00] <PanPipes> oh hes gone nm
692: [12:01:23] * skorp has joined #silverstripe
693: [12:03:56] * spronk has joined #silverstripe
694: [12:12:39] * UndefinedOffset has joined #silverstripe
695: [12:15:18] <spronk> sigh
696: [12:15:22] <spronk> failvodafone
697: [12:29:22] * jrthomer has joined #silverstripe
698: [12:35:49] <irogue23> < spronk> 3.1 removes metatitle and metakeywords
699: [12:35:58] <irogue23> no search engines respect meta keywords
700: [12:37:00] <irogue23> < Zauberfisch23> Arrow is a robin hood kind of thing
701: [12:37:04] <irogue23> it's the comic Green Arrow
702: [12:37:55] <spronk> yes they do
703: [12:38:35] <irogue23> what, altavista or something? :P
704: [12:38:54] <spronk> nah more obscure stuff :P
705: [12:38:56] <spronk> didn't altavista die?
706: [12:39:07] <spronk> yeah
707: [12:39:10] <spronk> redirects to yahoo.com now
708: [12:39:11] <spronk> also
709: [12:39:13] <spronk> FUCK COMPOSER
710: [12:39:35] <irogue23> Google and Bing use meta description, but not meta title or meta keywords
711: [12:41:53] <irogue23> http://search.lycos.com/web?q=silverstripe&keyvol=00f844e8fa102f4d1aed
712: [12:41:57] <irogue23> still exists but is not completely shit
713: [12:41:59] <spronk> hadshlJKAsdjlhkASdjhlk
714: [12:42:00] * chillu has joined #silverstripe
715: [12:42:01] <irogue23> surprisingly
716: [12:42:06] <spronk> vodafone are so fucking broken tonight
717: [12:42:14] <spronk> half the internet is inaccessible
718: [12:42:16] <irogue23> guten morgen chillu
719: [12:42:20] <irogue23> spronk: ha
720: [12:42:24] <chillu> Guten Tag!
721: [12:42:26] <irogue23> what do you mean "tonight"? :P
722: [12:42:30] <spronk> i'm surprsied IRC is working, I was disconnected earlier
723: [12:42:40] <spronk> 3g wasn't working either..
724: [12:42:55] <spronk> just out of interest, www.vodafone.co.nz working for either of you?
725: [12:42:59] <irogue23> chillu: wie geht's?
726: [12:43:14] <irogue23> spronk: nope, is down
727: [12:43:18] * spronk le sighs
728: [12:43:44] <irogue23> and none of their tech or NOC staff have twitter access
729: [12:43:47] <irogue23> so you won't even get status there
730: [12:43:58] <spronk> mm
731: [12:44:00] <irogue23> when the marketing dept goes home for the day, their twitter is closed
732: [12:44:01] <spronk> sigh
733: [12:44:51] <spronk> unfortunately I can't access 2dm either
734: [12:45:02] <spronk> so i can't even stick some credit on my 2d sim to tether with that
735: [12:45:03] * spronk sighs
736: [12:45:20] <irogue23> pop it in your phone and use the phone menu to do it?
737: [12:45:35] <spronk> hmm
738: [12:45:46] <spronk> my sim has a shitty phone menu..
739: [12:46:07] <spronk> aha
740: [12:46:10] <spronk> *call them*
741: [12:46:14] <spronk> why didn't i think of this
742: [12:46:14] <irogue23> yeah
743: [12:46:15] <irogue23> 201
744: [12:46:26] <spronk> jesus it's been a long time since i was a prepay customer..
745: [12:46:32] <irogue23> lol ikr
746: [12:46:40] <spronk> and i used to do this all the time :/
747: [12:46:43] <irogue23> it seems like torture when i see people buying topups now
748: [12:46:55] <irogue23> spronk: are you on 2dm for your phone too?
749: [12:47:07] <spronk> nah i'm voda
750: [12:47:13] <irogue23> ah gay
751: [12:47:14] <spronk> their entire network has shat itself
752: [12:47:17] <spronk> mm
753: [12:47:25] <irogue23> was gonna say, otherwise you could add your data sim as shared data on your plan
754: [12:47:28] <irogue23> <3
755: [12:47:39] <irogue23> is best
756: [12:47:41] <spronk> voda naked dsl + $30/month voda cell plan = cheaper than snap + $19 2dm/tele/voda prepay pack
757: [12:47:51] <spronk> by quite a bit, too...
758: [12:48:04] <irogue23> yep yep
759: [12:48:15] <spronk> $95/month for 100GB vs $94 ? for 50GB
760: [12:48:32] <irogue23> snap and 2d are quite buddy buddy, i wish they'd do some combined pack thingees
761: [12:48:41] <spronk> mm
762: [12:48:46] * spronk would be all over that shit
763: [12:48:51] <spronk> ..maybe
764: [12:49:10] <spronk> 2d's network is a little average outside main centres, though realistically....
765: [12:49:16] <spronk> i'm always at home anyway :p
766: [12:49:20] <irogue23> well yeah, outside main centres it just roams on voda
767: [12:49:43] <spronk> and voda is disgustingly bad outside main centres
768: [12:49:47] <spronk> i don't know why they even bother
769: [12:49:55] <irogue23> ikr
770: [12:50:08] <spronk> it's funny, because XT, or whatever the fuck telecom call it now, is fine
771: [12:50:12] <irogue23> i can always tell when i've left 2d coverage
772: [12:50:15] <irogue23> cos calls keep dropping
773: [12:50:20] <spronk> heh
774: [12:50:32] <irogue23> it's a joke in my group
775: [12:50:41] * Shrike_Finland quit (Quit: Leaving.)
776: [12:50:49] <irogue23> cos in hams, i swear the 2d coverage is *just hamilton itself*
777: [12:50:55] <irogue23> drive 2m out of hamilton borders and you're on voda
778: [12:51:11] * svandragt quit (Ping timeout: 272 seconds)
779: [12:51:13] <spronk> lols
780: [12:51:16] <spronk> yeah
781: [12:51:28] <spronk> palmy is the same
782: [12:51:30] <irogue23> so will be on the phone with a mate
783: [12:51:41] <irogue23> and they're driving to a job just outside of the city or w/e
784: [12:51:41] <spronk> though at least with 2d you get coverage in palmy central, whereas voda is 0bar
785: [12:51:46] <irogue23> call drops
786: [12:51:52] <spronk> :D
787: [12:51:54] <irogue23> they call back and say "sorry, drive into vodafone territory"
788: [12:52:01] <spronk> lul
789: [12:52:07] <irogue23> *drove
790: [12:52:22] <irogue23> and yeah
791: [12:52:25] <irogue23> telecom network so good now
792: [12:52:25] <spronk> ...and this is why we should have a single govt owned mobile infrastructure...
793: [12:52:38] <irogue23> you dirty socialist you :P
794: [12:52:49] <spronk> i know.. D:
795: [12:53:04] <spronk> but they've spent years fucking around with this
796: [12:53:17] <spronk> (the corps)
797: [12:54:47] <spronk> wow
798: [12:54:52] <spronk> this has been down since just after 12
799: [12:55:02] <irogue23> lol
800: [12:55:03] <spronk> i guess they didn't pay their cisco licences..
801: [12:55:14] <spronk> actually
802: [12:55:16] <spronk> they probably use huawei
803: [12:55:25] <spronk> chinese takin ovAhhhh
804: [12:57:39] * PanPipes quit (Quit: Computer went to sleep)
805: [12:59:52] <spronk> http://www.vodafone.co.nz/help/network-status/
806: [12:59:53] <spronk> wooo
807: [13:01:52] <irogue23> Vector is the best for this shit
808: [13:01:57] <irogue23> fancy status page at http://www.vector.co.nz/outages
809: [13:02:10] <irogue23> and also dumps the data onto https://twitter.com/vectorltd in case you can't get to their site
810: [13:02:18] <spronk> mm
811: [13:02:23] <spronk> although, i can't even load that page, so..
812: [13:02:23] <irogue23> also
813: [13:02:29] <irogue23> "Network Equipment on Fire"
814: [13:02:33] <irogue23> uh-oh
815: [13:02:35] <spronk> ??
816: [13:02:44] <irogue23> a current power outage in aucks
817: [13:02:55] <irogue23> that's the reason listed
818: [13:03:03] <spronk> ha
819: [13:03:05] <spronk> :S
820: [13:03:20] <spronk> it say where?
821: [13:03:24] <spronk> skytower burning down?
822: [13:03:27] <irogue23> Glenfield
823: [13:03:31] <irogue23> must just be a local transformer
824: [13:03:49] <irogue23> Electricity Outage #T6583
825: [13:03:49] <irogue23> Network Equipment on Fire
826: [13:03:50] <irogue23> Orton St, Glenfield, Auckland
827: [13:03:50] <irogue23> Time Reporte: 29 Oct 2013 06:22 PM
828: [13:03:50] <irogue23> Estimated Restoration: 30 Oct 2013 5:00 AM
829: [13:03:52] <irogue23> Customers Affected: 50
830: [13:04:02] <spronk> heh
831: [13:04:12] <irogue23> *that* is how you do network status, Vodafone :P
832: [13:04:15] <spronk> yeah
833: [13:04:19] <spronk> orion are pretty good with taht too
834: [13:04:26] * spronk stabs vodafonenz
835: [13:04:32] <spronk> START WORKING IM TRYING TO GET SHIT DONE
836: [13:05:35] <spronk> was in the middle of a composer update
837: [13:05:39] <spronk> it's broken my ss build
838: [13:05:51] <spronk> so... i can't do shit on this site i have a well past deadline for :@
839: [13:05:53] <irogue23> :(
840: [13:06:26] <Zauberfisch23> spronk: copy the files form another project?
841: [13:07:00] <spronk> this is the only 3.1 project i have that's newer than beta2 :(
842: [13:07:11] <Zauberfisch23> :S
843: [13:07:29] <Zauberfisch23> no backup network? :P
844: [13:07:34] <spronk> well
845: [13:07:39] <spronk> i used to have a 3g stick
846: [13:07:54] <spronk> but it was too expensive to keep on a month to month basis
847: [13:08:19] <spronk> so now i'm trying to figure out if ican hook up my cheap android phone via usb to my draytek...
848: [13:08:21] <Zauberfisch23> I have cable and a 3g stick as backup
849: [13:08:40] <Zauberfisch23> and I could make a hotspot with my ipad as well
850: [13:08:48] <Zauberfisch23> don't you have prepaid sticks?
851: [13:09:35] <irogue23> spronk: nope
852: [13:09:46] <spronk> i dno
853: [13:09:49] <spronk> do we have prepaid sticks?
854: [13:09:57] <irogue23> spronk: can only use 3g modems that can present themselves as serial modems
855: [13:10:01] <spronk> :(
856: [13:10:30] <Zauberfisch23> prepaid is a bit more expensive, but you can get 1 GB for 10euro that lasts for 3month after activation, or longer if you don't activate it
857: [13:10:58] <irogue23> yep
858: [13:10:59] <Zauberfisch23> or 1GB for 4euro, but this one expires after 30 days, so its not usefull as backup
859: [13:11:05] <irogue23> http://www.2degreesmobile.co.nz/mobile-data/data-packs
860: [13:11:22] * spronk sighs at vodafone
861: [13:11:30] <spronk> haha
862: [13:11:33] <spronk> google cache works...
863: [13:11:37] <irogue23> our 3g data is nastily expensive tho Zauberfisch23
864: [13:12:02] <spronk> fuck you 2degrees and your content being images
865: [13:12:11] <irogue23> spronk: lol
866: [13:12:21] <Zauberfisch23> yeah, just saw at the link you pasted, 3GB for $50, wow
867: [13:12:33] <irogue23> spronk: did you end up getting money on your 2d sim?
868: [13:12:54] <Zauberfisch23> in austria you get 3GB for 20$, and that is the prepaid version
869: [13:13:03] <Zauberfisch23> contract is even cheaper
870: [13:13:07] <spronk> not yet
871: [13:13:29] <spronk> i realised that seeing as i can't find my data stick i have no way to actually get said net connection working on my non-laptop
872: [13:13:34] <irogue23> ah yep
873: [13:13:40] <irogue23> guts
874: [13:13:53] <spronk> i have a usb wifi adaptor *somewhere*
875: [13:14:01] <irogue23> wait, you can ssh right spronk?
876: [13:14:05] <irogue23> is it just web not working?
877: [13:14:19] <spronk> hmm
878: [13:14:35] <spronk> nope
879: [13:14:38] <spronk> it's all sorts of things
880: [13:14:40] <irogue23> huh
881: [13:14:42] <irogue23> weird
882: [13:14:45] <irogue23> must be routing issues
883: [13:14:48] <spronk> how the fuck is irc still working
884: [13:14:54] * lerni has joined #silverstripe
885: [13:15:09] <irogue23> spronk: possibly the path to the server you happen to be on is still okay
886: [13:15:35] <spronk> it must be about the single route that *is* working
887: [13:15:48] <irogue23> Zauberfisch23: yeah, we really really get raped for mobile data
888: [13:16:09] <spronk> might have something to do with having three completely separate cell networks
889: [13:17:12] <irogue23> on an unrelated note
890: [13:17:19] <irogue23> i am really regretting wearing shorts and jandals right now
891: [13:17:22] <irogue23> BRRRRRRR
892: [13:17:23] <spronk> lol
893: [13:17:37] * svandragt has joined #silverstripe
894: [13:17:41] <spronk> it's about 16c in here
895: [13:17:47] <irogue23> spronk: i'm in a shed
896: [13:17:51] <spronk> o_O
897: [13:17:52] <spronk> why?
898: [13:18:02] <irogue23> office in a shed down the back of the property
899: [13:18:07] <spronk> lol
900: [13:18:34] <irogue23> it's carpeted and walled andd stuff, but no insulation, and louvres that don't close properly...
901: [13:19:35] <irogue23> "2degrees Carryover Plans are the only Plans in NZ that include calls and texts to mobiles and landlines in NZ and Aussie"
902: [13:19:46] <irogue23> huh, wonder what aussie telco they buddied up with to pull that off
903: [13:19:58] <spronk> probably no telstra
904: [13:20:45] <irogue23> unlimited text to aussie eh...
905: [13:20:51] * irogue23 wonders who in AU he can harass
906: [13:21:16] <spronk> colin[pi]
907: [13:23:23] * abitran quit (Read error: Connection reset by peer)
908: [13:24:40] <spronk> $20 for 1GB
909: [13:24:43] <spronk> 1month expiry
910: [13:24:46] <spronk> that's just dumb
911: [13:27:25] <irogue23> yup
912: [13:27:44] <irogue23> prepay data is nasty, and 2d is still the cheapest of them afaik
913: [13:27:57] * catcher has joined #silverstripe
914: [13:28:32] <spronk> its not just prepay though
915: [13:28:35] <spronk> it's aaaalll nasty
916: [13:28:40] <spronk> what are you doing up anyway, irogue23?
917: [13:29:13] <irogue23> server maintenance
918: [13:29:24] <spronk> ic
919: [13:36:28] <irogue23> hmmmmmm
920: [13:36:31] <irogue23> i don't like this one bit
921: [13:36:36] <spronk> ?
922: [13:36:59] <irogue23> upgraded ec2 instances to latest version of Amazon Linux
923: [13:37:01] <irogue23> rebooted
924: [13:37:06] <irogue23> now HTTP works but not HTTPS
925: [13:38:19] <spronk> ruh roh
926: [13:39:35] <irogue23> whew
927: [13:39:38] <irogue23> guessed the cause right away
928: [13:39:48] <irogue23> nginx got upgraded
929: [13:39:52] <irogue23> there was a bug in the version i was running
930: [13:40:13] <irogue23> that required doing something nonsensical in the config to make it actually work
931: [13:40:53] <spronk> mm
932: [13:41:02] <irogue23> you had to enable port 443 on IPv6 but not IPv4 - the IPv6 definition accidentally also included IPv4, so if you enabled both it got mad
933: [13:41:11] <spronk> fail
934: [13:41:20] <spronk> also fail
935: [13:41:21] <irogue23> obv they fixed that now, so my nginx was only listening for SSL on IPv6
936: [13:41:24] <spronk> STILL CANT FTP
937: [13:41:44] <spronk> ahh
938: [13:41:50] <spronk> ipv6
939: [13:41:50] <spronk> hmm
940: [13:44:30] * abitran has joined #silverstripe
941: [13:45:39] <irogue23> right
942: [13:45:40] <irogue23> bedtime!
943: [13:45:43] <irogue23> night spronk, Zauberfisch23
944: [13:46:10] <Zauberfisch23> good night
945: [13:46:20] <spronk> night man
946: [13:58:01] * PanPipes has joined #silverstripe
947: [14:00:46] * CodeTrap quit (Ping timeout: 241 seconds)
948: [14:07:01] * guci0 quit (Ping timeout: 250 seconds)
949: [14:15:16] * lerni quit (Quit: lerni)
950: [14:18:52] * pathum has joined #silverstripe
951: [14:22:07] * dospunto_ quit (Remote host closed the connection)
952: [14:22:14] * dospuntocero has joined #silverstripe
953: [14:22:29] * dospuntocero quit (Remote host closed the connection)
954: [14:23:57] * dospuntocero has joined #silverstripe
955: [14:26:49] * dospuntocero quit (Remote host closed the connection)
956: [15:15:21] <svandragt> Can anyone recommend a SS3.0 compatible gallery module?
957: [15:18:40] * jrthomer_ has joined #silverstripe
958: [15:19:33] * jrthomer quit (Ping timeout: 248 seconds)
959: [15:24:55] * skorp has left #silverstripe
960: [15:28:19] * jrthomer has joined #silverstripe
961: [15:32:41] * jrthomer_ quit (Ping timeout: 272 seconds)
962: [15:33:20] <spronk> hmm
963: [15:33:21] <spronk> onafterwrite
964: [15:33:29] <spronk> is this transactional?
965: [15:33:45] <spronk> i'm trying to write an extension to inspect a userforms submission
966: [15:45:01] * PanPipes quit (Quit: Computer went to sleep)
967: [15:45:16] * PanPipes has joined #silverstripe
968: [15:59:38] * DesignerX quit (Ping timeout: 264 seconds)
969: [16:00:49] * Colin[pi] has joined #silverstripe
970: [16:06:28] * skorp has joined #silverstripe
971: [16:18:25] * bhjared has joined #silverstripe
972: [16:18:26] * bhjared quit (Client Quit)
973: [16:18:55] * bhjared has joined #silverstripe
974: [16:22:01] * Colin[pi] quit (Ping timeout: 265 seconds)
975: [16:23:34] * ARNHOE quit (Remote host closed the connection)
976: [16:27:20] <PanPipes> can anyone help. i am using 3.1 and have the following in Page class HomePage extends Page
977: [16:27:20] <PanPipes> {
978: [16:27:20] <PanPipes> static $db = array(
979: [16:27:20] <PanPipes> 'Link1Title' => 'Varchar(255)',
980: [16:27:20] <PanPipes> 'Link1Summary' => 'Varchar(255)',
981: [16:27:20] <PanPipes> 'Link1URL' => 'Varchar(255)',
982: [16:27:20] <PanPipes> 'Link2Title' => 'Varchar(255)',
983: [16:27:21] <PanPipes> 'Link2Summary' => 'Varchar(255)',
984: [16:27:22] <PanPipes> 'Link2URL' => 'Varchar(255)',
985: [16:27:22] <PanPipes> 'Link3Title' => 'Varchar(255)',
986: [16:27:23] <PanPipes> 'Link3Summary' => 'Varchar(255)',
987: [16:27:23] <PanPipes> 'Link3URL' => 'Varchar(255)',
988: [16:27:50] * pathum quit (Ping timeout: 264 seconds)
989: [16:30:52] <guzzlefry> eep
990: [16:31:00] <guzzlefry> PanPipes: sspaste.com ;)
991: [16:31:07] <PanPipes> can anyone help please. i am using 3.1 and have a class called HomePage which extends Page see here: http://pastebin.com/j4XywHTT However in the CMS it won't upload my image
992: [16:31:21] <PanPipes> guzzlefry: yea sorry about that
993: [16:31:49] <PanPipes> when i click the file to upload nothing happens and no AJAX events are fired
994: [16:32:07] <PanPipes> tried clearing the cache, building etc but still no beans
995: [16:32:18] <guzzlefry> Try dropping         $this->extend('updateCMSFields',$fields);
996: [16:32:33] <PanPipes> when i was firing upload ajax call, it was never returning a response
997: [16:32:41] <PanPipes> ok one sec
998: [16:34:35] <guzzlefry> also, that should be private static $has_one in 3.1
999: [16:34:43] <guzzlefry> Doubt that's causing it though.
1000: [16:34:55] <guzzlefry> Also, did you do the /dev/build/?flush stuff?
1001: [16:38:36] <PanPipes> yes
1002: [16:38:40] <PanPipes> i do
1003: [16:38:48] <PanPipes> also that didn't fix it
1004: [16:38:53] <guzzlefry> hm
1005: [16:39:20] <PanPipes> it's strange, the file select comes up, but nothing happens after you select your image
1006: [16:39:33] <catcher> PanPipes, often something not directly related, best to look at a debug console
1007: [16:39:47] <PanPipes> i have firebug open, no console errors
1008: [16:39:51] <catcher> PanPipes, e.g. assets/ dir permissions, etc.
1009: [16:40:12] <guzzlefry> PanPipes: You are hitting save right?
1010: [16:40:12] <guzzlefry> for that page
1011: [16:40:24] <catcher> PanPipes, It wouldn't necessarily be a js error, check the responses in the network tab too
1012: [16:40:25] <PanPipes> files are owned by www-data
1013: [16:41:06] <PanPipes> there is no ajax call after you select a file :S it did use to fire one to upload, which returned blank
1014: [16:41:38] * pathum has joined #silverstripe
1015: [16:45:30] <guzzlefry> How does 2.4 determine the default date format for templates?
1016: [16:47:40] <bhjared> i've got the blog module installed on a 3.1 site, on my local everything builds fine, but on the production server i'm using it complains about the variables being "private" vs "public", i can't figure out what the difference would be that would cause that
1017: [16:48:25] <guzzlefry> Different versions?
1018: [16:48:53] <guzzlefry> 3.1 likes private statics on classes rather than public
1019: [16:49:13] <bhjared> yeah i checked that, the production server is running the same version of 3.1 as my local
1020: [16:50:13] <kinglozzer> Well, is the blog module a different version?
1021: [16:50:23] <bhjared> nope that's the same as well
1022: [16:50:37] <kinglozzer> Which class is it complaining about?
1023: [16:51:35] <bhjared> it hits ArchiveWidget first, says that it should be "public static $db" instead of "private static $db"
1024: [16:51:51] <kinglozzer> Can you paste the exact message?
1025: [16:51:56] <bhjared> sure, just a sec
1026: [16:52:20] <PanPipes> i just noticed i have client denied by server configuration: <path>/assets/
1027: [16:52:28] <guzzlefry> bhjared: Does a ?flush break the dev site? >_>
1028: [16:52:38] <PanPipes> that mean my file permissions might be wrong after all?
1029: [16:52:39] <guzzlefry> well, flush both actually
1030: [16:53:15] <guzzlefry> PanPipes: The webserver user just needs read/write access to it.
1031: [16:53:21] <guzzlefry> That sounds like you're looking at .htaccess
1032: [16:53:31] <bhjared> Fatal error: Access level to ArchiveWidget::$db must be public (as in class Widget) in /blog/code/widgets/ArchiveWidget.php on line 11
1033: [16:53:47] <kinglozzer> The widget module is outdated
1034: [16:55:11] <kinglozzer> The error is saying that the Widget class has public static $db, so it wants ArchiveWidget to be the same - meaning that the widget module needs updating so it's private as well
1035: [16:55:31] <bhjared> is that a part of framework?
1036: [16:55:40] <kinglozzer> Nope
1037: [16:55:48] <kinglozzer> https://github.com/silverstripe/silverstripe-widgets/tree/master/
1038: [16:57:36] <bhjared> weird that my local would be fine
1039: [16:58:34] <PanPipes> guzzlefry: ye i read that comes from the htaccess
1040: [16:58:47] * kinglozzer goes home
1041: [16:58:49] * kinglozzer quit (Remote host closed the connection)
1042: [16:58:50] <PanPipes> guzzlefry: i had no issues with this server and another SS project
1043: [16:59:00] <PanPipes> guzzlefry: given the folders the same config
1044: [16:59:12] <guzzlefry> what does ls -al say about assets?
1045: [16:59:33] <PanPipes> drwxrwxr-x 1 www-data 306 Oct 28 14:27 .
1046: [16:59:33] <PanPipes> drwxrwxr-x 1 www-data 612 Oct 28 09:38 ..
1047: [16:59:33] <PanPipes> drwxrwxr-x 1 www-data 170 Oct 2 12:16 _combinedfiles
1048: [16:59:33] <PanPipes> -rwxrwxr-x 1 www-data 2.3K Oct 28 09:38 error-404.html
1049: [16:59:33] <PanPipes> -rwxrwxr-x 1 www-data 2.2K Oct 28 09:38 error-500.html
1050: [16:59:33] <PanPipes> drwxrwxr-x 1 www-data 102 Oct 28 15:11 HomePage
1051: [16:59:33] <PanPipes> -rwxrwxr-x 1 www-data 1.5K Oct 29 16:49 .htaccess
1052: [16:59:34] <PanPipes> drwxrwxr-x 1 www-data 102 Sep 28 12:43 Uploads
1053: [16:59:39] <PanPipes> -rwxrwxr-x 1 www-data 4.3K Sep 28 12:43 web.config
1054: [16:59:49] <PanPipes> sorry for the spam
1055: [17:00:03] <andylockran> hey guys, is it possible to use variables inside a HTMLField on the database?
1056: [17:00:23] <andylockran> eg <p>This is some content for $Subsite</p> - and get $Subsite replaced?
1057: [17:02:11] <PanPipes> worked it out!
1058: [17:02:33] <PanPipes> i was setting my permission on my sandbox instead of my local machine D'OH!!
1059: [17:07:08] * svandragt quit (Read error: Connection reset by peer)
1060: [17:07:18] * PanPipes quit (Remote host closed the connection)
1061: [17:14:46] * pathum quit (Read error: Connection reset by peer)
1062: [17:32:00] <catcher> Is there any decent way to create CMS fields for a has_one relation? i.e UploadField::create('Relation.Image');
1063: [17:32:53] <catcher> I'd really rather not limit a gridfield to 1 item.
1064: [17:33:15] <guzzlefry> uhm
1065: [17:34:08] <guzzlefry> catcher: Load the CMS fields for that object in another tab maybe?
1066: [17:34:26] <guzzlefry> Although I'm not sure how whether or not that will auto-save.
1067: [17:34:33] <guzzlefry> s/how/on
1068: [17:35:47] <catcher> guzzlefry, getting them to save is the Q :)
1069: [17:35:59] <guzzlefry> onBeforeWrite
1070: [17:36:03] <guzzlefry> or
1071: [17:36:11] <guzzlefry> onAfterWrite may be more appropriate
1072: [17:41:53] * AlphaCactus_ has joined #silverstripe
1073: [17:42:50] * AlphaCactus quit (Ping timeout: 256 seconds)
1074: [17:43:03] * AlphaCactus_ is now known as AlphaCactus
1075: [17:45:32] <catcher> guzzlefry, how would it grab the uploaded image from the field?
1076: [17:45:51] <guzzlefry> err, not sure
1077: [17:50:34] * AlphaCactus quit (Quit: kthxbai)
1078: [17:50:47] * chillu quit (Quit: chillu)
1079: [17:51:05] * AlphaCactus has joined #silverstripe
1080: [17:51:47] * chillu has joined #silverstripe
1081: [17:53:56] * Alexw has joined #silverstripe
1082: [18:02:09] <Alexw> Hi, is it possible to use ModelAdmin only then the resource if not the local database?
1083: [18:06:29] * bhjared quit (Quit: Page closed)
1084: [18:07:20] <Alexw> Does nobody got any suggestion, or willing to assist me in this?
1085: [18:07:32] <marvanni> I managed to use GridField to show data from a Webservice, but it still required to have a corresponding DB Table/DataObject, that represents the remote data
1086: [18:07:42] <Zauberfisch23> Alexw: in theory yes, you can use a GridField for all data that is representable by SS_List<ViewableData>
1087: [18:07:46] <Zauberfisch23> so you can do:
1088: [18:08:14] <Alexw> Well I setup a Postfix installation that uses MySQL. So I like to manage the mail server users from within SS.
1089: [18:08:15] <Zauberfisch23> GridField::create('Name', 'Title', new ArrayList(array(new ArrayData(array())))
1090: [18:08:42] <marvanni> yeah the ArrayList will work, but not for Detail View
1091: [18:08:50] <Alexw> Well I need that too
1092: [18:08:54] <marvanni> at least not for me ;)
1093: [18:08:55] <Alexw> Since I wan to be able to edit them
1094: [18:09:07] <Alexw> and be able to add them
1095: [18:09:42] <marvanni> You can do that. I don't store the Webservice data in the Table, but the GridField requires a DO Model
1096: [18:10:11] <marvanni> maybe if I had more time, I could work around that, but I ended up created DO's for Webservice record types
1097: [18:10:11] <Alexw> Ok, are there functions that I need to override, functions that get the data
1098: [18:11:39] <marvanni> yes
1099: [18:12:20] <Alexw> Where can I find them?
1100: [18:12:28] <Alexw> Any example anywhere, or docs?
1101: [18:13:53] <marvanni> Well I added a custom dropdown that selects the DataObject. each dataobject het a method that gets the remote data.
1102: [18:14:14] <marvanni> with a custom GridField Component I added getManipulatedData() to create the ArrayList
1103: [18:14:43] <marvanni> its pretty custom for what I needed, so I can't just copy paste the code for you
1104: [18:15:07] <marvanni> first to find out is how, gridfield works and how you can add components to it
1105: [18:15:19] <marvanni> gotto go,, im online later on
1106: [18:15:22] <Alexw> ok
1107: [18:15:26] <Alexw> thanks
1108: [18:23:51] * gelignite has joined #silverstripe
1109: [18:23:56] <catcher> There's got to be a good way to do this. My object has_one exactly 5 of another object, which only has 3 fields. It'd be silly to gridfield it.
1110: [18:25:27] * SightUnseen has joined #silverstripe
1111: [18:25:29] * SightUnseen has left #silverstripe
1112: [18:35:54] <guzzlefry> Should I be putting ($request = null) in all of my controller action method signatures?
1113: [18:36:13] <guzzlefry> Example: public function myAction ($request = null) {}
1114: [18:37:07] <marvanni> Not sure with the latest ss version, but I think only if you need it
1115: [18:37:49] <marvanni> like if you need $request->param('ID');
1116: [18:39:39] <marvanni> anyone experience with a good psd2html slicer?
1117: [18:42:28] * Alexw quit ()
1118: [18:55:40] * Alexw has joined #silverstripe
1119: [18:56:10] * Alexw is now known as Alexwijn
1120: [18:56:11] * Alexwijn quit (Client Quit)
1121: [18:56:19] * Alexw has joined #silverstripe
1122: [18:56:25] * Alexw is now known as Alexwijn
1123: [18:56:31] * Alexwijn quit (Client Quit)
1124: [18:57:01] * Alexwijn has joined #silverstripe
1125: [18:58:02] * antmas quit (Quit: Page closed)
1126: [18:59:21] * chillu quit (Quit: chillu)
1127: [19:03:19] <guzzlefry> Who wants to write a SilverStripe book!?
1128: [19:03:45] * C10ne has joined #silverstripe
1129: [19:03:50] <marvanni> a whole book?
1130: [19:05:20] <Alexwijn> We are programmers, we are lazy :)
1131: [19:06:21] <C10ne> Maybe a strange question, but... Is there a way to limit certain data object so there can be only one made?
1132: [19:07:28] <marvanni> canCreate() {return !DataObject::get_one($this->class);}
1133: [19:08:21] <Alexwijn> marvanni: I'm still stuck with my issue :(
1134: [19:08:28] <C10ne> marvanni: good idea, I figured restricting access to create. Thanks
1135: [19:08:53] <marvanni> with the external data?
1136: [19:08:58] <Alexwijn> Yeah
1137: [19:09:36] <marvanni> well, it all depends of how the data looks like
1138: [19:10:00] <Alexwijn> Columns: id, domain_id, email and password
1139: [19:10:01] <marvanni> You can pass a custom ArrayList with data to GridField. that will display the list just fine
1140: [19:10:21] <marvanni> it gets harder when you need to edit those records
1141: [19:10:23] <Alexwijn> Virtual_domains contains the domain_ids
1142: [19:10:43] <Alexwijn> But the user may only manage their own users not from a different domain name
1143: [19:11:02] <marvanni> hm...
1144: [19:11:11] <Alexwijn> so if you are at http://www.test-domain.com/admin then user can manage *@test-domain.com
1145: [19:12:30] <marvanni> and users are ss members?
1146: [19:12:39] <Alexwijn> No
1147: [19:14:00] <marvanni> from a webservice?
1148: [19:14:14] <Alexwijn> It's stored on the same MySQL server
1149: [19:15:28] <Alexwijn> http://imageshack.us/f/189/d9nh.png/
1150: [19:16:16] <marvanni> ok. so you can temporary login to the seperate database?
1151: [19:16:28] <Alexwijn> Yes
1152: [19:18:00] <marvanni> and the users who can edit. those are ss members?
1153: [19:18:05] <Alexwijn> Yeah
1154: [19:18:07] * DigNZ has joined #silverstripe
1155: [19:19:57] <marvanni> ok. well a bit nasty but
1156: [19:20:01] <marvanni> I think you will need to create a DataObject virtual_users
1157: [19:20:02] * VWD has joined #silverstripe
1158: [19:20:13] <VWD> Hello
1159: [19:20:19] <Alexwijn> So Virtual_Users.php inside models?
1160: [19:20:38] <marvanni> VirtualUser.php for example
1161: [19:20:59] <Alexwijn> Alright
1162: [19:21:02] <marvanni> with the same table names as your remote table
1163: [19:21:09] <marvanni> hold on, im not ready yet
1164: [19:21:16] <VWD> Just curious if anyone is having issues getting the Widgets tabs visible for the blog in SS3.1 please?
1165: [19:21:24] <VWD> Didn't have any issues with 2.4 & 3.0
1166: [19:21:37] <Alexwijn> I'm using the widgets, don't have any issue
1167: [19:21:39] <VWD> But the Widgets tab is missing now in SS3.1
1168: [19:21:50] <Alexwijn> Because it is a external module now
1169: [19:21:59] <Alexwijn> https://github.com/silverstripe/silverstripe-widgets
1170: [19:22:12] <VWD> Using composer and have the latest modules (blog & widgets)
1171: [19:22:30] <Alexwijn> You got silverstripe/widgets?
1172: [19:22:38] <VWD> Thanks @Alexwijn - I do have the latest widgets module
1173: [19:23:01] <Alexwijn> Maybe re-run /dev/build/?flush=1
1174: [19:23:12] <marvanni> then in your custom ModelAdmin you need to query the remote database, loop over the results and for each () {$set->push(new Virtualuser($data))}
1175: [19:23:21] <marvanni> where set is a new ArrayList();
1176: [19:23:28] <VWD> I conclude from reading of the code of that if both are installed (blog & widgets), the Widget functionality is enabled for the blog
1177: [19:23:32] <marvanni> you should feed that list the gridfield
1178: [19:23:41] <Alexwijn> Ok, let me try that
1179: [19:23:45] <marvanni> thats the start....
1180: [19:23:51] <Alexwijn> So VirtualUser is just a dummy
1181: [19:24:01] <VWD> @Alexwijn - yep done numerous /dev/build/?flush=all
1182: [19:24:01] <marvanni> thats how I did it.
1183: [19:24:17] <marvanni> the tables are there, but never populated
1184: [19:24:32] <marvanni> I don't see it is THE way to go
1185: [19:24:37] * DigNZ quit (Quit: DigNZ)
1186: [19:24:39] <marvanni> see = say
1187: [19:25:45] <VWD> Is there anything special that needs to be done to get the widgets module working with blog? Or have I assumed correct that it should just work with both installed and the Widgets tabs should be visible in the BlogHolder page?
1188: [19:25:49] <Alexwijn> getList needs to return SS_LIst
1189: [19:26:26] <Alexwijn> VWD, you read the "But what if I have widgets on my blog currently??" block on the github page?
1190: [19:26:31] <marvanni> ArrayList implements SS_List
1191: [19:26:39] <Alexwijn> ok
1192: [19:26:53] <Alexwijn> How to setup a new DB connection
1193: [19:26:57] <Alexwijn> WIthout using DB:Connection
1194: [19:27:01] <Alexwijn> DB:Connect
1195: [19:27:36] <Alexwijn> Or is'nt there any?
1196: [19:27:47] <Alexwijn> So I just use the native php mysql functions?
1197: [19:28:42] <guzzlefry> Alexwijn: For a database separate from the dataobject stuff?
1198: [19:28:55] <marvanni> you can add a second db config and connect to that when you need the data
1199: [19:29:04] <marvanni> and just use DB::Query();
1200: [19:29:14] <Alexwijn> guzzlefry: What you mean by that?
1201: [19:29:58] <marvanni> $conn = new $dbClass($config);
1202: [19:29:58] <marvanni> DB::setConn($conn);
1203: [19:30:15] <marvanni> but, dont forget to return to the default config afterwards
1204: [19:31:22] <Alexwijn> How about only cchange the database itself
1205: [19:31:27] <Alexwijn> login credentials keep the same
1206: [19:31:46] <marvanni> maybe that works..
1207: [19:31:55] <marvanni> dunno your setup
1208: [19:32:22] <marvanni> can somebody paste a yml example where the property of a Class is set?
1209: [19:34:26] <VWD> @Alexwijn - Thanks very much for pointing that out… Hmmm… it looks like the Blog/Widget code that I have is much newer than what's in the documentation… No such lines of code
1210: [19:34:39] <Alexwijn> No problem
1211: [19:36:20] <Alexwijn> "GridField doesn't have a modelClassName, so it doesn't know the columns of this grid."
1212: [19:36:52] <VWD> Out of curiosity which versions of the blog & widget modules are you using?
1213: [19:36:59] <Alexwijn> No blog
1214: [19:37:11] <Alexwijn> I use the latest version of the widgets
1215: [19:37:28] <marvanni> setModelClass
1216: [19:37:41] <VWD> Fair enough. Thanks for your help @Alexwijn
1217: [19:37:45] <Alexwijn> Sure
1218: [19:39:07] * VWD quit (Quit: Page closed)
1219: [19:39:48] * antmas has joined #silverstripe
1220: [19:39:58] * chillu has joined #silverstripe
1221: [19:44:22] <Alexwijn> marvanni, what if I say that I want to manage DataObject
1222: [19:44:31] <Alexwijn> Rather having a class that extend from it
1223: [19:46:36] <Alexwijn> Only I got the error that there is no database selected
1224: [19:48:25] * nickmolhoek has joined #silverstripe
1225: [19:49:15] <Alexwijn> the variable database is specified in the database config array
1226: [19:49:20] <Alexwijn> Any suggestion?
1227: [19:50:49] <Alexwijn> How to select a database in SS?
1228: [19:56:14] <AlphaCactus> your question is a little confusing. do you want to connect to a different database or does your main database not work?
1229: [19:57:19] <Alexwijn> Main database works
1230: [19:57:34] <Alexwijn> But I created a new conn, but when I try to connect it says: Database not selected
1231: [19:59:24] * skorp has left #silverstripe
1232: [19:59:45] <Pyromanik> 08:27 < Alexwijn> So I just use the native php mysql functions?
1233: [19:59:47] <Pyromanik> you shouldn't.
1234: [19:59:58] <Alexwijn> I'm not doing that now
1235: [20:00:28] <Pyromanik> but if you absolutely have no possible way to achieve what you need through the ORM (and you've read about everything it can do), then use DB::query('SQL in here');
1236: [20:00:40] <Alexwijn> I did
1237: [20:00:46] * Ryan_ has joined #silverstripe
1238: [20:00:46] <Alexwijn> But it says No database selected
1239: [20:01:03] <Pyromanik> should be connected to the SilverStripe install
1240: [20:01:48] * UncleCheese has joined #silverstripe
1241: [20:01:54] <Pyromanik> if your other database is on the same server, you could just plonk the selector in.
1242: [20:02:09] <Pyromanik> SELECT * FROM database.table
1243: [20:02:18] <Alexwijn> Currently I'm on the dev server
1244: [20:02:19] <Pyromanik> you don't need a new connection
1245: [20:02:20] <Alexwijn> hm
1246: [20:02:25] <Pyromanik> provided they're the same user.
1247: [20:02:29] <Alexwijn> Yeah
1248: [20:02:34] <Alexwijn> I'll do that
1249: [20:02:44] <Pyromanik> That's worked for me in the past.
1250: [20:04:19] <Ryan_> Hey guys, can you override SiteConfig variables inside another controller? For example if I had aSiteConfig.ShowHeader as a default, and I wanted to override that in a Page. Or do I just have to have a page variable and run an if statement gainst it?
1251: [20:04:21] <Alexwijn> Not working
1252: [20:05:11] <Alexwijn> Intresting, when I copy and paste the query in my MySQL client, it works just fine
1253: [20:05:14] <Alexwijn> but not in SS
1254: [20:05:22] * stecman has joined #silverstripe
1255: [20:05:28] <Alexwijn> He thinks that my where value is a column
1256: [20:06:00] <Alexwijn> "WHERE mailserver.virtual_domains.`name` = "test-domain.com" Unknown column 'test-domain.com' in 'where clause'"
1257: [20:06:47] * Colin[pi] has joined #silverstripe
1258: [20:07:25] <Alexwijn> fxed it
1259: [20:07:31] <Alexwijn> replaced the quotes
1260: [20:09:07] <AlphaCactus> wow sspaste is slooooooow
1261: [20:09:25] <Alexwijn> Not here
1262: [20:09:42] <AlphaCactus> Alexwijn: here is my example of what I thot you wanted. finally... http://sspaste.com/paste/show/527013efee877
1263: [20:09:59] <Alexwijn> Yeah, I got that
1264: [20:10:08] <Alexwijn> It works now
1265: [20:10:13] <Alexwijn> But I need to define the columns now
1266: [20:10:30] <Alexwijn> I got one row, but it's empty on the page
1267: [20:10:39] <Alexwijn> And I only got one column called ID
1268: [20:10:47] * C10ne quit (Quit: Page closed)
1269: [20:11:26] <Alexwijn> So how to create columns without that he create a table for it
1270: [20:13:01] <AlphaCactus> you want to create columns dynamically inside PHP and change the DB table? or read other columns than ID
1271: [20:13:47] <Alexwijn> I prefer that there are no tables created
1272: [20:14:20] <AlphaCactus> so you want to create the tables with code like SS does?
1273: [20:14:33] <Alexwijn> The tables are already created
1274: [20:14:38] <Alexwijn> I just need to read and edit them
1275: [20:14:54] <Alexwijn> And those tables are in a shared database
1276: [20:15:08] <AlphaCactus> ok. so just use raw SQL queries, right?
1277: [20:15:20] <Alexwijn> yeah
1278: [20:15:58] <AlphaCactus> Whats the question again?
1279: [20:16:23] <Alexwijn> How to set the columns
1280: [20:16:32] <Alexwijn> But also delete the tables that he just created
1281: [20:16:52] <Alexwijn> The table in the SS database
1282: [20:17:03] <Alexwijn> Because those are useless, because they won't contain data
1283: [20:17:09] <Alexwijn> Because everything come from a different database
1284: [20:17:39] <AlphaCactus> You don't want all the columns? You could just use SELECT * FROM TableName; or if you want specific columns, use SELECT Field1, FIeld2, etc fROM TableName; this is basic sql stuff.
1285: [20:17:51] * DigNZ has joined #silverstripe
1286: [20:18:23] <Alexwijn> yes
1287: [20:18:38] <Alexwijn> I already got the data
1288: [20:18:46] <Alexwijn> Bit I don't want it stored in the SS database
1289: [20:18:58] <Alexwijn> I only want to display it in a ModelAdmin
1290: [20:19:02] <Alexwijn> And also able to edit them
1291: [20:19:14] <Alexwijn> With custom functions that write to that second database
1292: [20:21:39] <Alexwijn> So any suggestions?
1293: [20:23:48] <Alexwijn> So what I want to do is impossible?
1294: [20:25:24] <Pyromanik> Alexwijn: probably not easily.
1295: [20:25:34] <Pyromanik> ModelAdmin is set up to manage SilverStripe DataObjects.
1296: [20:25:54] <Pyromanik> you'd need to build your own CRUD interface to manage external data.
1297: [20:25:58] <Pyromanik> probably
1298: [20:26:18] <Alexwijn> And nobody has build that yet
1299: [20:27:19] * AlphaCactus_ has joined #silverstripe
1300: [20:27:50] <Alexwijn> Why is SS keep being so hard for me
1301: [20:28:52] * AlphaCactus quit (Ping timeout: 256 seconds)
1302: [20:28:59] * AlphaCactus_ is now known as AlphaCactus
1303: [20:30:01] * UndefinedOffset quit (Quit: Leaving.)
1304: [20:30:22] <Alexwijn> I guess I have to think about this all
1305: [20:31:07] <Pyromanik> because you're probably using the wrong tool for the job
1306: [20:31:15] <AlphaCactus> Not sure how you would save, you would have to intercept and replace all the load/save stuff for gridfield which would take abit of work.
1307: [20:31:16] <Pyromanik> Silverstripe is a complete system
1308: [20:31:23] * UncleCheese quit (Quit: UncleCheese)
1309: [20:31:29] <Pyromanik> it builds objects and manages those objects.
1310: [20:32:01] <Pyromanik> trying to use it to ALSO manage data external from it's system that doesn't really fit it's structure - you're making it hard for yourself :(
1311: [20:32:11] <Alexwijn> I just wanted to add the functionality to manage your email users for your domain along with managing your website
1312: [20:32:29] <Pyromanik> just install webmin, keep them separate.
1313: [20:32:54] <Alexwijn> This page are for my customers
1314: [20:33:06] <Alexwijn> is*
1315: [20:33:06] * UncleCheese has joined #silverstripe
1316: [20:33:16] <Pyromanik> Alexwijn: how do you set up these email addresses?
1317: [20:33:23] <Alexwijn> Using a database
1318: [20:33:26] <Pyromanik> do you use some kind of control panel?
1319: [20:33:29] <Alexwijn> I got postfix linked to my mysql server
1320: [20:33:32] <Alexwijn> Not yet
1321: [20:33:40] <Pyromanik> ah.
1322: [20:33:44] <Pyromanik> sounds complicated :<
1323: [20:33:48] <Alexwijn> Not really
1324: [20:33:54] * zippy__ has joined #silverstripe
1325: [20:33:57] <Pyromanik> hmm
1326: [20:34:06] <Pyromanik> I've not heard of it being set up like that, but I'm not a sysadmin.
1327: [20:34:10] <Alexwijn> It's just a config file saying you need to execute a SQL to get a specific user
1328: [20:34:26] <Alexwijn> same for domains and aliases
1329: [20:34:46] <Pyromanik> hmm, sounds kinda cool actually
1330: [20:34:55] <zippy__> mail?
1331: [20:35:08] <Alexwijn> With this you can just manage your mail server using php
1332: [20:35:13] <Pyromanik> It doesn't sound as though it's hard - it sounds more like you just need to get silverstripe to deal with external info.
1333: [20:35:13] <Alexwijn> yeah
1334: [20:35:21] <Alexwijn> yeah
1335: [20:35:29] <Pyromanik> that's... hard.
1336: [20:35:34] <Pyromanik> :<
1337: [20:35:35] <zippy__> ah yeap, done something like that in the past - was fun project
1338: [20:36:04] <zippy__> Used postfix iirc
1339: [20:36:09] <Pyromanik> Alexwijn: perhaps try looking at:
1340: [20:36:11] <Pyromanik> http://addons.silverstripe.org/add-ons/silverstripe/external-content
1341: [20:36:25] <Alexwijn> Hm
1342: [20:36:28] <Alexwijn> Looks good so far
1343: [20:36:55] <Alexwijn> Ah, it want a API URL to connect to
1344: [20:37:13] <Pyromanik> Yeah, it also migrates data.
1345: [20:37:20] <Pyromanik> but you should browse around, there might be something already
1346: [20:37:28] <Alexwijn> I guess I just need to make a API
1347: [20:37:30] <Alexwijn> For the mail server
1348: [20:37:58] * jrthomer quit (Remote host closed the connection)
1349: [20:38:14] <Alexwijn> http://www.slimframework.com/
1350: [20:38:15] <Alexwijn> :)
1351: [20:38:32] <Alexwijn> And then use that module to connect to it
1352: [20:39:12] * jrthomer has joined #silverstripe
1353: [20:39:48] <Alexwijn> Alright, I look into that
1354: [20:39:50] <Alexwijn> Thanks for your help
1355: [20:40:10] <Alexwijn> Got to go
1356: [20:40:12] <Alexwijn> Cya guys
1357: [20:40:15] * Alexwijn quit ()
1358: [20:54:56] * AlphaCactus quit (Ping timeout: 256 seconds)
1359: [20:55:52] * AlphaCactus has joined #silverstripe
1360: [20:59:26] * Marvanni2 has joined #silverstripe
1361: [21:03:08] * origincube has joined #silverstripe
1362: [21:05:39] <origincube> hi guys, in desperate need for some help, for some reason my SS install is behaving utterly terribly
1363: [21:05:57] <origincube> for one index.php is showing up everywhere even though mod_rewrite is enabled
1364: [21:06:15] <Colin[pi]> origincube: rename index.php to something else
1365: [21:06:20] <Colin[pi]> like bak-index.php
1366: [21:06:31] <Colin[pi]> then the rewriter should work properly
1367: [21:06:37] <origincube> hmm ok let me have a look
1368: [21:07:13] <origincube> so index.php isn't necessary!?
1369: [21:07:16] <origincube> :O
1370: [21:07:36] * AlphaCactus quit (*.net *.split)
1371: [21:07:36] * marvanni quit (*.net *.split)
1372: [21:08:01] <shakesoda> not in the least
1373: [21:08:03] <shakesoda> I haven't had an index.php in my installs for a while since they muck up apache 2.4's rewriting
1374: [21:08:17] <origincube> awesome, well thats an easy fix! :)
1375: [21:08:24] <origincube> now the next bit of flummoxing
1376: [21:08:36] <origincube> i had two copies of a similar theme
1377: [21:08:39] <origincube> with two different names
1378: [21:08:46] <origincube> one i used earlier for testing
1379: [21:08:53] <origincube> and the newer one which i am prepping for deployment
1380: [21:08:58] <origincube> the only difference is the folder name
1381: [21:09:02] <origincube> code internally is identical
1382: [21:09:08] * aragonne has joined #silverstripe
1383: [21:09:09] <origincube> the testing one i called "blah"
1384: [21:09:12] <origincube> and it works great
1385: [21:09:26] <origincube> if i switch to the other, i get only content html, no theme display
1386: [21:09:51] <origincube> attempting to switch back to the simple theme supplied with 3.1.1 also throws up, displays everything but without a stitch of CSS
1387: [21:13:51] * skorp has joined #silverstripe
1388: [21:13:55] <origincube> been banging my head against the wall repeatedly for the last 2 hours trying to fix it :/
1389: [21:13:55] <catcher> origincube, the theme can be set in a couple places - CMS 'settings', and also in _config.php or config.yml.
1390: [21:14:08] * jrthomer_ has joined #silverstripe
1391: [21:14:11] <origincube> yeah, i've been setting it in the 'settings'
1392: [21:14:13] * jrthomer quit (Ping timeout: 246 seconds)
1393: [21:14:19] <catcher> origincube, have you done a ?flush=all?
1394: [21:14:27] * AlphaCactus has joined #silverstripe
1395: [21:14:33] <origincube> yeah, i can try again now that the index.php issue has been resolved
1396: [21:14:54] <catcher> origincube, and you've checked that the theme isn't being set in your _config.php or config.yml?
1397: [21:14:58] <origincube> ok, so it works now tat index.php isn't screwing me over!
1398: [21:15:02] <catcher> ah, good
1399: [21:15:05] <origincube> phew.
1400: [21:15:20] <origincube> ok one tiny question, will themes built for 3.0.5 work on 3.1.1?
1401: [21:16:00] <catcher> origincube, most of them should
1402: [21:16:19] <catcher> How's that for a definitive answer? :)
1403: [21:16:24] <origincube> hahah
1404: [21:16:42] <origincube> i ask since for some reason the menu code i was using in a 3.0.5 theme just wasn't rendering
1405: [21:17:03] <Ryan_> Hey guys, if I use: Requirements::javascriptTemplate("themes/toast/js/map.js", $aMapVars); How do I call the object in my javascript file?
1406: [21:17:07] * Liquide has joined #silverstripe
1407: [21:17:08] <origincube> i compared the simple themes, and it looks like they changed <% control Menu(1) %> to <% loop Menu(1) %>
1408: [21:17:25] * wilr_ has joined #silverstripe
1409: [21:17:26] <catcher> origincube, that should've been changed in 3.0.5 as well though
1410: [21:17:46] <origincube> hmm, ok, the control still worked in 3.0.5 though
1411: [21:17:51] <origincube> renders nothing in 3.1.1
1412: [21:18:21] <origincube> but anyways, thanks guys! hope to save my forehead and my keyboard... so hopefully no more drama!
1413: [21:18:22] <catcher> origincube, deprecated across releases, those will all need to be updated to <% loop %> or <% with %>
1414: [21:18:22] <origincube> :)
1415: [21:18:33] <catcher> gl!
1416: [21:18:37] * catcher quit (Quit: Leaving)
1417: [21:20:08] <Ryan_> Neevermind, got it. I had to prefix the variables with "$"
1418: [21:25:38] <Pyromanik> origincube: don't use cms settings, it's not as sturdy as other methods
1419: [21:26:03] <Pyromanik> and yeah, don't use <% control %>
1420: [21:27:13] <Pyromanik> Ryan_: yeah, it doesn't use SSViewer for some reason, it just does a simple preg_replace
1421: [21:27:16] <Pyromanik> iirc
1422: [21:27:51] <Ryan_> Pyromanik: Ah, sweet. Yeah works fine though.
1423: [21:29:02] <UncleCheese> Ryan_: JS templates are so ghetto
1424: [21:29:09] <UncleCheese> just use data attributes
1425: [21:29:45] <Ryan_> UncleCheese: Was just an easy way to pass a LatLong to a included google map script.
1426: [21:30:05] <UncleCheese> <div id="map" data-lat="$Lat" data-lng="$Lng">
1427: [21:30:17] <UncleCheese> so much cleaner than dumping all that script
1428: [21:30:31] <Ryan_> UncleCheese: Good point, I'll change that now.
1429: [21:30:36] <Ryan_> UncleCheese: Cheers.
1430: [21:41:09] <AlphaCactus> UncleCheese: you get all settled into NZ?
1431: [21:41:35] <Pyromanik> you thinking of coming out too AlphaCactus?
1432: [21:41:37] <Pyromanik> :P
1433: [21:41:45] <AlphaCactus> lol. Sure, just give me a job
1434: [21:41:57] <UncleCheese> yeah, pretty settled
1435: [21:42:05] <UncleCheese> going on 4 months
1436: [21:42:06] <AlphaCactus> u guyes have race tracks in nz. for cars. that aren't just ovals. and paved?
1437: [21:42:25] <UncleCheese> where are you AlphaCactus ?
1438: [21:42:37] <Pyromanik> AlphaCactus: yes. Proper tracks.
1439: [21:42:43] <AlphaCactus> Spokane. I work with KH. you've done work for them & Micah before.
1440: [21:42:51] <UncleCheese> oh wow
1441: [21:42:59] <UncleCheese> yeah, Micah was a really early client of mine
1442: [21:43:35] <UncleCheese> how are things at KH? is that a good company?
1443: [21:44:10] <Pyromanik> This is really old, but our tracks look more like this: http://upload.wikimedia.org/wikipedia/commons/e/ee/Taupo_Motorsports_Park.svg
1444: [21:44:11] <AlphaCactus> kinda small. just Micah and I are back end devs. but a good place to work. friendly and such
1445: [21:44:24] <AlphaCactus> Pyromanik: that looks just fine
1446: [21:44:37] <Pyromanik> AlphaCactus: so you race real cars then?
1447: [21:44:45] <Pyromanik> or bikes?
1448: [21:44:47] <Pyromanik> karts?
1449: [21:45:10] <AlphaCactus> real cars. karts just for fun. not really racing, just track days. also autocross
1450: [21:45:17] <AlphaCactus> bikes just on road for fun
1451: [21:45:23] <Pyromanik> good man. Fuck ovals.
1452: [21:45:36] <Pyromanik> unless it's speedway
1453: [21:45:50] <Pyromanik> but we have a very different idea of speedway than what you do, I think.
1454: [21:45:59] * skorp has left #silverstripe
1455: [21:46:26] <Pyromanik> it's more like this:
1456: [21:46:27] <Pyromanik> http://www.teara.govt.nz/files/p13478pc.jpg
1457: [21:46:40] <AlphaCactus> XD
1458: [21:46:57] <AlphaCactus> more fun to be driving than to watch me thinks
1459: [21:47:05] <AlphaCactus> but i like to turn both ways
1460: [21:47:06] <Ryan_> There are plenty of track days for bikes around :)
1461: [21:47:09] * DaShiVaDan yawns
1462: [21:47:14] <DaShiVaDan> morning :)
1463: [21:47:15] <Pyromanik> speedway is extremely fun to watch.
1464: [21:47:27] <Pyromanik> it's a real spectacle.
1465: [21:47:34] <Ryan_> I do the odd track day every now and again.
1466: [21:47:37] <Pyromanik> Not just chaps in the same car making left hand turns all day
1467: [21:47:38] * chillu quit (Quit: chillu)
1468: [21:48:06] <DaShiVaDan> I'm probably just way too tired, but is there any obvious cause of getting (when adding ?isDev=1 to a page while also logged in as admin) to this error: Sorry, you can't use ?isDev=1 until your Member and Group tables database are available. Perhaps your database connection is failing?
1469: [21:48:19] <DaShiVaDan> the site otherwise works, it's accessing both tables
1470: [21:50:07] * chillu has joined #silverstripe
1471: [21:50:27] <antmas> hooray for payrises :D
1472: [21:50:34] <Pyromanik> After I met UncleCheese I proceeded to Taupo to race.
1473: [21:50:36] <DaShiVaDan> gratz
1474: [21:50:49] <AlphaCactus> got a pic of ur vehicular?
1475: [21:50:50] <Ryan_> Race what?
1476: [21:51:02] <Pyromanik> Corolla
1477: [21:51:09] <Ryan_> Old school?
1478: [21:51:28] <Pyromanik> AE82, yeh I guess.
1479: [21:51:35] <Ryan_> Ohh, nice.
1480: [21:51:57] <Ryan_> I want to go to the AE86 store when I'm in Japan
1481: [21:52:04] * wmk quit (Ping timeout: 264 seconds)
1482: [21:52:54] <Pyromanik> in fact here is me cutting some poor bastard in a subaru off :< http://www.youtube.com/watch?v=FTMXsisj6Zo&t=11m08s
1483: [21:53:16] <Pyromanik> Right in my blind spot. I looked, but didn't see him.
1484: [21:53:38] <antmas> Pyromanik: hah, nice one
1485: [21:53:47] <DaShiVaDan> anyone know why Security::database_is_ready() might return false, even through it's using the database just fine for login to admin, and displaying member profile pages?
1486: [21:53:55] <Ryan_> Lol, I'd be mad.
1487: [21:54:24] <Pyromanik> Ryan_: it happens.
1488: [21:54:27] <Ryan_> It does.
1489: [21:54:40] <Ryan_> I do it all the time, since my bike is only 500cc
1490: [21:54:43] <Pyromanik> I didn't even know until a mate came across that video (he's in the mini I'm chasing)
1491: [21:54:45] <Ryan_> all the big boys pass me.
1492: [21:55:02] <AlphaCactus> Ae86 rly? nice
1493: [21:55:14] <Pyromanik> AE82
1494: [21:55:18] <Pyromanik> hatch ;
1495: [21:55:20] <Pyromanik> ;)
1496: [21:55:32] <Pyromanik> Front wheel drive
1497: [21:55:51] <AlphaCactus> nice move on the sub lol
1498: [21:55:52] <Pyromanik> not rwd liftback (the infamous ae86)
1499: [21:56:01] * wmk has joined #silverstripe
1500: [21:56:06] <AlphaCactus> yeah i noticed
1501: [21:56:07] <Pyromanik> yeah, I felt like a real d-bag when I found out :(
1502: [21:56:42] <AlphaCactus> what kind of event?
1503: [21:59:06] * SightUnseen has joined #silverstripe
1504: [21:59:14] <Pyromanik> National race
1505: [21:59:45] <Pyromanik> oh, that video there is ... yeah nah National race. Was the all comers all in at the end.
1506: [21:59:51] <Pyromanik> fun race.
1507: [21:59:55] * SightUnseen has left #silverstripe
1508: [22:00:15] <AlphaCactus> i haven't done any actual competition yet. just learning to drive fast costs $$$
1509: [22:00:30] <Pyromanik> haha, not when the car isn't yours!
1510: [22:00:31] <Pyromanik> :P
1511: [22:00:41] <Pyromanik> well, unless you destroy it
1512: [22:01:29] <Pyromanik> AlphaCactus: don't they have beginner type events where you are?
1513: [22:01:54] <antmas> only speedway tracks here :(
1514: [22:01:58] <Pyromanik> eg that event there is usually preceeded by a 'dual car sprints' event on the previous day
1515: [22:02:09] <Pyromanik> which is geared at beginners
1516: [22:02:11] <antmas> oh and karts
1517: [22:02:20] <Pyromanik> :<
1518: [22:02:37] <Pyromanik> your idea of speedway though is a sealed track that's banked and is just an oval.l
1519: [22:02:42] <Pyromanik> that's boring.
1520: [22:03:01] <antmas> who mine>
1521: [22:03:02] <antmas> ?
1522: [22:03:15] <Pyromanik> antmas: no, AlphaCactus
1523: [22:03:18] <antmas> ah
1524: [22:03:27] <Pyromanik> USA speedway is pretty much just nascar.
1525: [22:03:32] <AlphaCactus> yeah, all i do is "beginner" type evenst, and track days, so far. except for autocross which is a competition of sorts
1526: [22:03:36] <antmas> speedway here is fuckin nuts
1527: [22:03:45] <Pyromanik> speedway here is fuck'n boss.
1528: [22:03:53] <AlphaCactus> lol
1529: [22:03:59] <Pyromanik> we had ol' Tiger Woods' caddy come to the Tauranga one
1530: [22:04:04] <Pyromanik> (he's a driver)
1531: [22:04:17] <antmas> le pun
1532: [22:04:24] <Pyromanik> le win
1533: [22:04:31] <Pyromanik> unintentional, but that's great :D
1534: [22:05:01] <antmas> :D
1535: [22:05:15] <antmas> w00t business cards are on their way :P
1536: [22:05:42] <antmas> although they put 'IS Developer' instead of 'Information Services Developer'
1537: [22:05:44] <antmas> :<
1538: [22:06:01] <Pyromanik> I love the sprint cars. AlphaCactus: http://www.youtube.com/watch?v=LxjQExmay7E
1539: [22:06:07] <Pyromanik> we get a few USA drivers come over for that.
1540: [22:07:05] <Pyromanik> but this is what we'd call speedway
1541: [22:07:07] <Pyromanik> http://www.youtube.com/watch?v=66PzcSO6UDA
1542: [22:07:10] <Pyromanik> full contact allowed.
1543: [22:07:32] * gelignite quit (Quit: http://bit.ly/nkczDT)
1544: [22:10:21] <AlphaCactus> there is a local group that is considering coming to NZ for some event. doubt its speedway though.
1545: [22:10:35] <Pyromanik> Probably is.
1546: [22:10:36] <AlphaCactus> i've seen racing like that before ahile ago.
1547: [22:10:45] <AlphaCactus> they don't really seem like the dirt racing sort, but maybe.
1548: [22:10:54] <AlphaCactus> they usually do PRO3
1549: [22:10:55] <Pyromanik> we get a few USA folks come over
1550: [22:10:57] <Pyromanik> to drive
1551: [22:11:05] <Pyromanik> but yeh, usually dirt I have to say.
1552: [22:11:23] <AlphaCactus> must be fun to be constantly drifting
1553: [22:12:57] <Pyromanik> well...
1554: [22:13:04] <Pyromanik> slower, but faster, it's weird.
1555: [22:13:08] <Pyromanik> it's certainly a skill.
1556: [22:13:40] <Pyromanik> that's why I say it's much more of a spectacle than watching people drive a what we'd call a circuit.
1557: [22:13:53] <Pyromanik> that amounts to an oval.
1558: [22:21:57] <Pyromanik> 11:05 < antmas> although they put 'IS Developer' instead of 'Information Services Developer'
1559: [22:22:03] <Pyromanik> well, you is a developer, no?
1560: [22:23:03] * BPower has joined #silverstripe
1561: [22:23:10] * origincube has left #silverstripe
1562: [22:26:05] <AlphaCactus> Hopefully I'll remember to get an onboard cam next year since racing season is over for now. but data logger will come first.
1563: [22:27:00] <antmas> Pyromanik: I is
1564: [22:29:04] <antmas> at least they didn't put 'Jnr IS Developer' -_-
1565: [22:29:32] <DaShiVaDan> == Developer, but !== Developer? :P
1566: [22:32:56] <BPower> Hey - if I want to create my own yaml config, how can I parse the yml file using built-in SS functions?
1567: [22:36:24] * AlphaCactus === developer
1568: [22:37:55] <Marvanni2> $adapter = new sfYaml();
1569: [22:37:56] <Marvanni2> $array = $adapter->load($file);
1570: [22:38:07] <Marvanni2> require_once 'zend_translate_railsyaml/library/Translate/Adapter/RailsYAML.php';
1571: [22:38:32] <ss23> rofl @ http://www.exploit-db.com/exploits/29290/
1572: [22:38:35] <ss23> idek how this wasn't found before now
1573: [22:39:05] <BPower> Marvanni2: Thanks - what about sfYaml::load?
1574: [22:39:58] <Marvanni2> never tried it
1575: [22:40:02] <BPower> it's the same thing anyways.
1576: [22:40:07] <BPower> sfYaml is a static class
1577: [22:40:37] <BPower> Not sure if there are any benefits to instantiating an object, though.
1578: [22:42:05] <ss23> blargh, this was the patched one
1579: [22:42:38] * travis-ci has joined #silverstripe
1580: [22:42:38] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1437 (3.1 - ba1e688 : Ingo Schommer): The build passed.
1581: [22:42:38] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/a0b7bfc7a574...ba1e688729b1
1582: [22:42:38] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13234257
1583: [22:42:38] * travis-ci has left #silverstripe
1584: [22:45:18] <Marvanni2> BPower, I copied the code from i18nTextClollector
1585: [22:45:30] <Marvanni2> have you tried the static way?
1586: [22:45:42] <BPower> i just did - it seems to work flawlessly
1587: [22:45:48] <Marvanni2> ok, ty
1588: [22:45:50] <BPower> thanks for pointing me in the right direction
1589: [22:46:15] <Marvanni2> and if you want back:
1590: [22:46:17] <Marvanni2> $dumper = new sfYamlDumper();
1591: [22:46:18] <Marvanni2> $yml = $dumper->dump($array, 999);
1592: [22:47:53] <DaShiVaDan> noob question: I run a query, to pull one value, run it with: $result = $sqlQuery->execute(); - how do I get the single entry out of the $result? All teh use examples I can find are 'foreach ( $result as $row )' but I don't have multiple results so I refuse to get it out that way :P
1593: [22:48:40] <Marvanni2> ->value() ?
1594: [22:49:31] <DaShiVaDan> I figured I'd just use $result->fetch_row() or fetch_assoc() but neither ... ->value()? it should contain a single result row like: array( 'theid' => thevalue ), $result->value() will just pull that value?
1595: [22:49:50] <Marvanni2> return DB::Query("SELECT Title From DO WHERE ID = $id")->value();
1596: [22:49:52] <Marvanni2> this does work
1597: [22:50:02] <DaShiVaDan> query isn't that simple :(
1598: [22:50:27] <DaShiVaDan> i'll paste it if the value thing doesn't work - lemme try that first
1599: [22:52:08] <DaShiVaDan> ->value() did the trick, thanks :)
1600: [22:52:17] <Marvanni2> $sqlQuery->execute() returns DN::Query()
1601: [22:52:20] <Marvanni2> DB
1602: [22:53:03] <Marvanni2> see Database.php
1603: [22:53:38] <Marvanni2> value(), map(), keyedColumn(), record() etc
1604: [22:54:01] <DaShiVaDan> I'm doing: http://codepad.viper-7.com/7P53pD - with the ->value() call is working a charm. I'm sure there's a better way to do it, but... I got so much other work to do, so I'm just glad it works.
1605: [22:54:37] <DaShiVaDan> (and yeah, teh php filter check should be part of teh query)
1606: [22:56:16] * DigNZ quit (Quit: DigNZ)
1607: [22:58:37] <Marvanni2> I would probable put that in one line DB::Query();
1608: [22:59:01] <antmas> is WDCNZ held every year?
1609: [22:59:33] <Pyromanik> yep
1610: [23:03:54] <Pyromanik> 11:38 < ss23> idek how this wasn't found before now
1611: [23:03:57] <Pyromanik> summarise?
1612: [23:04:29] <DaShiVaDan> Marvanni2: Thanks, I decided to write better code thismorning after all. This is much cleaner: http://codepad.viper-7.com/G6TWPX :)
1613: [23:04:32] <ss23> Pyromanik: ignore
1614: [23:04:40] <ss23> Pyromanik: is old exploit, idk why it got a new release
1615: [23:05:22] <Pyromanik> antmas: yes.
1616: [23:05:46] <Pyromanik> ss23: but it sounds to me like attacker needs access to system already
1617: [23:06:12] <Pyromanik> DaShiVaDan: dude wut
1618: [23:06:29] <Pyromanik> only ever use SQLQuery if you can't achieve it with the ORM directly.
1619: [23:07:03] <ss23> Pyromanik: No, web request is fine
1620: [23:07:37] <ss23> Pyromanik: There was a bug where if you did like "www.sucky-site.com/?-d foobar bazboo", it would be like running the command "php -d foobar bazboo" on that server
1621: [23:07:38] <Marvanni2> why?
1622: [23:07:58] <ss23> Pyromanik: (and the end result was that you could use auto_prepend_file=php://input to get code exec)
1623: [23:08:11] <ss23> Pyromanik: affected hardly any systems, since no one runs PHP-CGI, and is already patched
1624: [23:08:15] <Marvanni2> if you just need a quick check, there is nothing wrong with a raw query
1625: [23:08:16] <ss23> idk why there's a new exploitdb for it
1626: [23:08:55] <DaShiVaDan> Pyromanik: I've been working on SS sites for like a week or so, on and off, I know nothing really about it, so most of what I am doing is finding the code the previous guy wrote and reusing/modifying it where I need to. I know it's about the worst way to go about working on an SS site, but I wasn't given any other options
1627: [23:09:22] <Pyromanik> DaShiVaDan: oh, is this 2.4?
1628: [23:09:54] <Pyromanik> DaShiVaDan: yeah I know your position. But this is just general developer stuff, like not modifying core files (which I know you've already run into :< )
1629: [23:10:00] <DaShiVaDan> Add to that that SS is my first CMS framework.... And that I've been a procedural programmer for the last 18 years, and yeah ut's 2.4 I so so wish these sites were 3.1, or that I could upgrade them to it, but no such budget.
1630: [23:10:14] <Pyromanik> yeah ok cool.
1631: [23:10:19] <Marvanni2> see Controller::init() also. when a user is logged in LastVisited is updated with a raw query as well, much quicker then using the ORM for that
1632: [23:10:20] <DaShiVaDan> Pyromanik: Oh, no, that wasn't me, that was teh guy who built this site - I loathe editing core files
1633: [23:10:24] <Pyromanik> well 2.4 is old now, but very different in the way it operates.
1634: [23:10:33] <Pyromanik> DaShiVaDan: I know it wasn't you :)
1635: [23:10:38] <DaShiVaDan> Pyromanik: I've just had to, because the previous guy did
1636: [23:10:42] <Pyromanik> yeh
1637: [23:10:44] <Pyromanik> sucks :(
1638: [23:10:52] <DaShiVaDan> Pyromanik: lol ok ok... :P I get a bit defensive sometimes lol
1639: [23:10:56] <Pyromanik> DaShiVaDan: but 2.4 bascially takes SQL fragments as parameters.
1640: [23:11:12] <Pyromanik> and...
1641: [23:11:18] <Pyromanik> isn't as flexible as 3.1
1642: [23:11:29] <Pyromanik> so, yeah, SQLQuery actually probably your best bet there :)
1643: [23:11:31] <DaShiVaDan> Pyromanik: yeah, I'd figured out the 2.4 methods for most other things, just this custom query get a single value was the first time I had to do it in SS
1644: [23:11:37] <Pyromanik> yeh
1645: [23:12:10] <Pyromanik> in 3.0 you could do that with ->filter('bib',(int)$entrant->Bib + 1)->column('Bib')
1646: [23:12:20] <Pyromanik> maybe with a ->first() in the middle
1647: [23:12:24] <DaShiVaDan> Pyromanik: well, my last paste: http://codepad.viper-7.com/G6TWPX has the final working version I'm using after Marvanni2's assistance. If I make it any better than it is now, the next coder won't understand it
1648: [23:12:34] <Pyromanik> :P
1649: [23:14:27] <Pyromanik> DaShiVaDan: you'll enjoy life much more when you get to move into 3.1
1650: [23:14:33] <Pyromanik> and start a fresh project
1651: [23:15:06] <Pyromanik> I on the other hand, and busy waiting for an FTP transfer :(
1652: [23:16:50] <DaShiVaDan> Well, I finish here in just over a week, looking for my next job, thinking i might add 'SilverStripe' to my resume, and see what happens. Though I'm not sure, I don't like lying on resumes, and I know I'm a total SS noob, extra so if it comes to 3.1 :/
1653: [23:17:18] <Avroceptyr> SilverStripe is listed as a 'startup' in NZ
1654: [23:17:24] <Avroceptyr> the more you know
1655: [23:22:54] * DesignerX has joined #silverstripe
1656: [23:24:46] <Pyromanik> DaShiVaDan: if it comes to 3.1, just tell them you have 2.4 experience.
1657: [23:25:00] <Pyromanik> also, that was a fast turn around. Were you hired temporary, or did you just quit already? lol
1658: [23:25:20] <antmas> Pyromanik: that's what I did and it helped a bunch
1659: [23:26:00] <Pyromanik> Avroceptyr: pretty much all of NZ is listed as a startup.
1660: [23:26:06] <Avroceptyr> haha Pyromanik
1661: [23:26:25] <Pyromanik> Anything that isn't is usually foreign owned.
1662: [23:26:37] <Pyromanik> y'know... like Telecom.
1663: [23:26:40] <Pyromanik> and all our power companies.
1664: [23:27:12] <Pyromanik> well, maybe not the powercos.
1665: [23:30:46] <antmas> and then we all run a round boasting how NZ is like leading the web tech way
1666: [23:32:48] <antmas> holy crap, power bill is now down to $114 :D
1667: [23:32:54] <antmas> score
1668: [23:33:22] <DaShiVaDan> sorry, was working
1669: [23:33:30] <AlphaCactus> psh, working.
1670: [23:33:33] <DaShiVaDan> I got put on as a web developer when their last guy quit
1671: [23:34:26] <DaShiVaDan> 3 month period, and they decided not to keep me (though will write me a glowing reverence for my coding skills - the issues they have I think are not quite the ones I was told)
1672: [23:35:01] <DaShiVaDan> I was planning on moving, told boss about it, and he told me they're not keeping me but i have the rest of this week and next week to go
1673: [23:35:16] <DaShiVaDan> I was told they need 'more of a front end developer' :)
1674: [23:35:31] <DaShiVaDan> which he elaborated on as follows:
1675: [23:36:55] <DaShiVaDan> He needs someone who can churn out HTML+CSS responsive email templates, is as young as all the designers they have here, and who everyone here likes (one guy and I butted heads a bit, but only cause he's an idiot)
1676: [23:37:11] <antmas> LOL fuck that
1677: [23:37:13] <DaShiVaDan> which confuses me as the current situation here is:
1678: [23:37:16] <antmas> sorry, but that's not a job
1679: [23:37:21] <DaShiVaDan> boss - used to be a designer
1680: [23:37:28] <DaShiVaDan> 5 graphic designers
1681: [23:37:55] <DaShiVaDan> who are adobe champs (all software) and can churn out custom html and css till teh cows come home (so he has 5 guys who can do this already)
1682: [23:37:57] <antmas> so they gave you 2 weeks notice?
1683: [23:38:03] <DaShiVaDan> nah, they said i was done
1684: [23:38:08] <DaShiVaDan> i asked for 2 weeks
1685: [23:38:08] <DaShiVaDan> :P
1686: [23:38:21] <DaShiVaDan> another 3 grand will go a long way
1687: [23:38:27] <antmas> that's not much time to find another dev job though
1688: [23:38:31] <antmas> true I guess
1689: [23:38:32] <DaShiVaDan> oh, i know
1690: [23:38:37] <DaShiVaDan> but it's better than none
1691: [23:38:41] <DaShiVaDan> and I got savings
1692: [23:38:56] <antmas> whats the place called?
1693: [23:39:00] <DaShiVaDan> and my fiance just got a job (we think) - she only moved to australia with me about 2 months ago
1694: [23:39:09] <antmas> ah, ausi
1695: [23:39:12] <antmas> nvm
1696: [23:39:24] <DaShiVaDan> ooh, i'll tell you next week what it's called, after I get my reference, but yeah, in Sydney
1697: [23:39:42] <DaShiVaDan> any case, from the rest of what he said the problem is this:
1698: [23:39:46] <DaShiVaDan> I'm 37.
1699: [23:39:55] <antmas> rude
1700: [23:40:09] * simon_w has joined #silverstripe
1701: [23:40:12] <DaShiVaDan> Everyone else here is 10 years or more younger than me (aside for teh boss and the part time copywriter)
1702: [23:40:22] <DaShiVaDan> and apparently I don't 'fit into teh vibe'
1703: [23:40:35] <DaShiVaDan> which reminds me of teh internship (movie)
1704: [23:40:45] <DaShiVaDan> where they're told they need to have 'googliness' :P
1705: [23:41:14] <ss23> simon_w: Bring me lunch, I'm hungry.
1706: [23:41:15] <antmas> yeah reminds me of a place here that turned me down for the same reason - they're all super hispstery
1707: [23:41:16] <DaShiVaDan> anyhows, gotta go learn some Wordpress now :(
1708: [23:41:20] <antmas> fuckin ruby guys
1709: [23:41:24] <ss23> How old are you, DaShiVaDan?
1710: [23:41:27] <DaShiVaDan> 37
1711: [23:41:32] <ss23> OLD MAN!
1712: [23:41:36] <DaShiVaDan> :)
1713: [23:41:37] <ss23> :P
1714: [23:41:49] <DaShiVaDan> been working with php since i was about 19
1715: [23:42:02] * antmas assumes Pyromanik is old
1716: [23:42:37] * DaShiVaDan wonders what antmas considers as 'old'
1717: [23:42:47] * simon_w considers you all old!
1718: [23:42:53] * antmas has only worked with PHP for ~1 year
1719: [23:43:03] <simon_w> ss23, hmm, let me think about that.
1720: [23:43:05] <ss23> simon_w: Even me?
1721: [23:43:05] <ss23> :<
1722: [23:43:12] <DaShiVaDan> ahh I learned most of what I know in teh first year anyway :P
1723: [23:43:34] <antmas> DaShiVaDan: I feel old at 25
1724: [23:43:40] <antmas> so yeah, 25 and up is old to me
1725: [23:43:49] <ss23> 25 *is* old
1726: [23:43:49] * nicolaas has joined #silverstripe
1727: [23:44:00] <antmas> :P
1728: [23:44:04] <ss23> ~17 is pretty much sweet spot for old/young ratio
1729: [23:44:08] <antmas> pass the voltarin
1730: [23:44:09] * jrthomer_ quit (Ping timeout: 272 seconds)
1731: [23:44:14] <DaShiVaDan> antmas: heh fair enough. I started feeling 'old' at about 25, and i only feel a couple of years older over a decade later
1732: [23:44:34] <antmas> you get REALLY old when you have a kid
1733: [23:44:43] <ss23> ^^^^^
1734: [23:44:48] <DaShiVaDan> 18 is the 'sweet spot' for 'young/old' when you're looking at women to date when you're younger :P
1735: [23:44:49] <ss23> Hell, you get old when you have a GF
1736: [23:45:00] <antmas> ss23: lol true
1737: [23:45:04] <DaShiVaDan> for web developers, i think it's probably closer to like 29 :P
1738: [23:45:17] <ss23> There's a pedo joke in here somewhere
1739: [23:45:29] <ss23> Perhaps, "You're as young as the women you feel!"
1740: [23:45:37] <DaShiVaDan> ss23: Oh, there's several, and I'm avoiding all of them
1741: [23:45:40] <antmas> DaShiVaDan: true, hence why I specialised in .net as everyone is old as shit
1742: [23:46:06] * peter_ss1 has joined #silverstripe
1743: [23:46:14] <DaShiVaDan> antmas: not a bad career move, gonna have a better market :)
1744: [23:46:59] <peter_ss1> hi Guys quick question I'm getting Uncaught Exception: Object->__call(): the method 'setrequest' does not exist on my Class and it extends LeftAndMain class
1745: [23:47:00] <DaShiVaDan> .net being MS and MS stuff hangs around, look at IE :P
1746: [23:47:14] <ss23> Sure, but then you spend your life working with .NET
1747: [23:47:26] <ss23> There are things more important in life than a job, and not wanting to commit suicide is one of them!
1748: [23:47:43] <DaShiVaDan> hehe tell me about it
1749: [23:47:55] <peter_ss1> don't know what the issue i just extend the LeftAndMain and follow the docs http://doc.silverstripe.org/framework/en/2.4/reference/leftandmain
1750: [23:48:27] <DaShiVaDan> i'm pretty much a dinosaur already - I worked for 10 years on one companies website only, so no exposure to CMS's, no real OO stuff, etc.. trying to learn all over again
1751: [23:48:50] <antmas> right, lunch time
1752: [23:49:48] <DaShiVaDan> peter_ss1: sorry, not sure on that one, but if you're patient, one of the other guys may catch up on their reading and offer you some direction at least :)
1753: [23:50:11] <peter_ss1> ok thanks DaShiVaDan
1754: [23:50:42] * SightUnseen1 has joined #silverstripe
1755: [23:51:01] * chillu23 has joined #silverstripe
1756: [23:51:01] * chillu23 quit (Changing host)
1757: [23:51:01] * chillu23 has joined #silverstripe
1758: [23:51:38] * peter_w has joined #silverstripe
1759: [23:52:52] <peter_w> Hi simon_w I am getting the following error when I am adding a new page that has a gridfield that is using the GridFieldManyRelationHandler "GridFieldManyRelationHandler requires the GridField to have a RelationList. Got a UnsavedRelationList instead."
1760: [23:53:54] <peter_w> there are no existing objects that the gridfield is managing...i think that might be the problem
1761: [23:55:25] <peter_w> normally I have some existing dataobject and then I add your module on...this time I am adding it before creating anything...i think that is the only difference
1762: [23:57:06] * SightUnseen1 has left #silverstripe
1763: [23:57:13] * Toe has joined #silverstripe
1764: [23:58:10] * BPower quit (*.net *.split)
1765: [23:58:10] * chillu quit (*.net *.split)
1766: [23:58:11] * DryerLintPurple quit (*.net *.split)
1767: [23:58:11] * chillu23 is now known as chillu

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