#silverstripe IRC Log

IRC log for 26 June 2013

All timestamps are in UTC.

1: [00:00:09] <ss23> Me and simon_w were just talking about how he's doing that!
2: [00:00:19] <ss23> He said he's going to charge you guys 10x the original amount and mke it buggy!
3: [00:00:22] <ss23> :P
4: [00:00:24] <Peavers> I'm the guy that has to implement it once you're done with it!
5: [00:00:36] <ss23> Well at least simon_w will be here to help you with it
6: [00:02:23] <simon_w> I'm trying to make it really easy!
7: [00:02:34] <Peavers> The entire thing doesn't sound that complicated?
8: [00:02:40] <simon_w> Oh, SAML is
9: [00:02:48] * Jayden90 quit (Quit: Jayden90)
10: [00:02:59] * LoveDuckie quit (Ping timeout: 260 seconds)
11: [00:03:31] <simon_w> I guess I should build the authenticator tie-in now
12: [00:04:25] <simon_w> And get time-outs working
13: [00:04:26] * mobiusnz quit (Quit: Leaving.)
14: [00:06:08] <simon_w> But installation should just be stick the IdP XML somewhere and point the config to it, run the task for generating the SP XML and stick that into the IdP, done
15: [00:08:18] <Peavers> easy as pie
16: [00:08:52] <ss23> How can I compare between two sha's in git? Or like... how can I check what one sha's commit changed
17: [00:08:55] <ss23> Using CLI
18: [00:10:10] <simon_w> git log <sha>?
19: [00:10:17] <Peavers> git diff a..b?
20: [00:10:26] <ss23> git log sha just gives message, no changes
21: [00:10:55] <ss23> Hmm
22: [00:11:17] <simon_w> svn diff -c <revision>?
23: [00:11:52] <ss23> lol
24: [00:11:54] <ss23> git diff worked
25: [00:11:54] <ss23> :D
26: [00:12:02] <Peavers> I should work at SS.
27: [00:12:09] <ss23> Well, it gave me *something*... I'm still nervous that I'm commiting the wrong stuff
28: [00:12:11] <Peavers> Know more than this kid about git geeze
29: [00:12:13] <ss23> haha Peavers
30: [00:12:17] <ss23> THIS KID
31: [00:12:26] <ss23> I'll have you know I dressed myself this morning.
32: [00:12:34] <Peavers> Who laid it out the night before?
33: [00:12:44] <ss23> No one, I had to drag it out of a cold suitcase
34: [00:12:45] <ss23> ;_;
35: [00:12:50] <ss23> It was horrible
36: [00:12:55] * ss23 cries
37: [00:12:59] <ss23> I WANT MY MOMMY
38: [00:13:01] <Peavers> ha, just moved?
39: [00:13:12] <ss23> Peavers: Yeah, staying with friends in Wellington till I find an apartment
40: [00:13:29] <Peavers> Groovy, I'm CBD based and always up for a brew if you're lacking friends.
41: [00:13:42] <irogue> http://media.tumblr.com/83b7f2e7efeb45afdb429012d6a8df3e/tumblr_inline_mkw7mtop4W1qz4rgp.jpg
42: [00:13:46] <ss23> Sweet!
43: [00:14:02] <ss23> And really, my motivation to find my own place (one without holes in teh floor so that I can heat it) is mega high when I wake up, but by the time I have free time to look for a place I'm lazy again "meh it's afternoon/night, I'll do it later"
44: [00:14:11] <ss23> lol irogue
45: [00:14:36] <Peavers> Thorndon is where you want to live
46: [00:14:56] <irogue> nah, ss23 loves it in Newtown
47: [00:15:08] <Peavers> bit far from your office though I suppos
48: [00:15:18] <Peavers> people get stabbed in Newtown on a daily bases.
49: [00:15:29] <irogue> he's from Melville, it feels like home for him
50: [00:16:15] <simon_w> ss23, go for Oriental Bay!
51: [00:16:24] <simon_w> Real close to the office ;)
52: [00:16:49] <Peavers> Belagio apartments on the corner of court and taranaki are what you want.
53: [00:17:04] <ss23> Peavers: Pricy?
54: [00:17:16] <Peavers> I was on the 10th floor in a two bedroom place for $575 a week
55: [00:17:23] <Peavers> moving out though is my lifes biggest regreat.
56: [00:17:30] <ss23> Hmm
57: [00:17:42] <ss23> That is really cheap
58: [00:17:52] <ss23> Peavers: I don't have a second person thoguh, and finding a 1bdrm is so much harder :<
59: [00:17:55] <ss23> Peavers: you wanna move back into one? :D
60: [00:18:02] <Peavers> Ha
61: [00:18:09] <Peavers> If I was single I would
62: [00:18:22] <Peavers> The showers in the bathrooms could easily fit 10 people.
63: [00:18:27] <Peavers> some good shower parties were had.
64: [00:18:29] <ss23> haha
65: [00:19:56] * RojoD quit (Ping timeout: 248 seconds)
66: [00:20:20] <simon_w> Who wants to turn https://github.com/silverstripe/silverstripe-framework/issues/2126 into a PR for me?
67: [00:20:27] <simon_w> Just needs unit tests!
68: [00:20:46] <irogue> ss23 does
69: [00:21:03] <ss23> lol
70: [00:21:07] <simon_w> There's even a class all ready
71: [00:21:12] <ss23> Let me just put it on my todo list after these 39 other tickets
72: [00:21:13] <simon_w> Just needs the test logic around it
73: [00:21:18] <ss23> i accidently made a commit
74: [00:21:26] <ss23> how to commit --undo --bad --don't push this
75: [00:21:31] <Peavers> You're in so much trouble now
76: [00:21:34] <ss23> lol
77: [00:21:37] <ss23> don't make me rm /it
78: [00:21:38] <ss23> :D
79: [00:22:10] <Peavers> git reset --hard c14809fa
80: [00:22:18] <Peavers> using the commit id from one step ago
81: [00:22:21] <Peavers> obviously
82: [00:22:24] <Peavers> should pull you back
83: [00:22:39] <ss23> ty
84: [00:22:40] <ss23> so hard
85: [00:22:40] <ss23> o/
86: [00:23:28] <Pyromanik> ss23: remember that rage I had at adobe the other day
87: [00:23:31] <Pyromanik> about thier shit emails?
88: [00:23:34] <ss23> lol yes
89: [00:23:39] <Pyromanik> I called it.
90: [00:23:41] <Pyromanik> On 8 May 2013 Adobe® announced the biggest update in the history of Adobe Creative Cloud™, with new features across the entire CC product range. A raft of these updates shipped globally on 19 June, with major updates to Adobe Photoshop® CC, Illustrator® CC, Premier® Pro CC and more.
91: [00:23:46] <ss23> haha
92: [00:23:49] <Pyromanik> ANOTHER INBOX WASTE
93: [00:24:43] <Pyromanik> launched June 19 - HEY GUYS, IT'S BEEN A WEEK I THINK WE SHOULD REMIND THEM
94: [00:24:58] <Pyromanik> JUST INCASE THEY MEANT TO UPGRADE BUT ACCIDENTALLY FORGOT
95: [00:25:06] <Peavers> They didn't get the intake they expected...
96: [00:25:15] <Pyromanik> nah
97: [00:25:23] <Pyromanik> it's cloud subscription
98: [00:25:33] <Pyromanik> this email goes out to people WHO ARE ALREADY CUSTOMERS
99: [00:25:39] <ss23> Pyromanik: Unsubscribe?
100: [00:25:44] <Pyromanik> ss23: no, then I can't rage.
101: [00:25:49] <Peavers> lol
102: [00:25:50] <ss23> hahaha
103: [00:25:51] <ss23> touche
104: [00:26:01] <Peavers> you're like people that rage about TM success fees then go on to keep selling through them
105: [00:26:14] <ss23> Peavers: Is there an alternative?
106: [00:26:24] * mobiusnz has joined #silverstripe
107: [00:26:24] <Peavers> I hear wheedle is good....
108: [00:26:27] <ss23> lol
109: [00:26:30] <ss23> I wheedled my bike.
110: [00:27:45] <ss23> There are too many government departments with too many weird ancroynms with too many weird subsites/domains
111: [00:27:51] * ss23 glares at Peavers
112: [00:27:55] <Peavers> we're cleaning that up now
113: [00:28:01] <Peavers> there is massive work going on to sort that shit out
114: [00:28:13] <spronk> lulz wheedle
115: [00:29:47] <simon_w> The government takes all my money!
116: [00:29:48] * simon_w glares at Peavers
117: [00:30:00] <Peavers> whoa now.
118: [00:30:06] <ss23> lol
119: [00:30:48] <simon_w> Fine, not all of it
120: [00:31:10] <simon_w> And half of what it takes isn't even tax
121: [00:31:15] * zippy__ has joined #silverstripe
122: [00:31:20] <zippy__> Afternoon
123: [00:31:39] <Peavers> Don't worry simon_w, I'm in the same boat... think something like 50% of my income goes straight back
124: [00:31:46] * simon_w still blames the government!
125: [00:31:53] <ss23> afternoon, zippy__
126: [00:32:14] <Peavers> I'm not allowed to express my opinions of the government in public yeah....
127: [00:32:24] <ss23> haha
128: [00:32:48] <simon_w> Peavers, my last pay raise all went straight to the government. Something about putting my over the student loan repayment threshold
129: [00:33:00] <simon_w> 7 years to go!
130: [00:33:00] <zippy__> ouch!
131: [00:33:12] <ss23> I'm allowed to express my opinions of silverstripe in public! It's seriously the 4,4*****^H^H^H^H^H best
132: [00:33:17] <Peavers> yeah my student loan is about 40k... going to be paying that forever...
133: [00:33:21] <ss23> damn, Peavers
134: [00:33:22] <ss23> wtf did you do
135: [00:33:25] <ss23> Mine is $2k
136: [00:33:31] <ss23> I can pay it off before I find an apartment if I'm lucky
137: [00:33:34] <simon_w> Mine is about $35k
138: [00:33:38] <zippy__> In my model which extends from page, I am saving a field. $this->MyField = 'done'; $this->write(); - in the _Live table I can see the value is updated, but not in the non _Live. So in the CMS when I make a change and click Save and Publish, my other change is gone.
139: [00:33:48] <ss23> If I have my tax code as M SL and I pay off my loan, do I need to do anything?
140: [00:33:51] <zippy__> I tried, $this->write();
141: [00:33:51] <zippy__> $this->publish('Stage', 'Live'); but no go either
142: [00:33:59] <simon_w> ss23, nope
143: [00:34:03] <Peavers> Isn't msl no longer a thing?
144: [00:34:04] <ss23> simon_w: gangsta
145: [00:34:07] <simon_w> zippy__, other way around
146: [00:34:20] <simon_w> Peavers, nah, it's now compulsory
147: [00:34:31] <simon_w> even when earning below the threshold
148: [00:35:07] <zippy__> simon_w: Indeed! thanks...
149: [00:35:17] <simon_w> It really sucks if you're above that threshold while a full time student :p
150: [00:35:25] <zippy__> is there a way to clear a ss_DateTime field in the CMS (set it back to null)
151: [00:35:52] <zippy__> I can delete the contents and save, so I guess thats something
152: [00:36:16] * unsignedint quit (Remote host closed the connection)
153: [00:36:18] * simon_w goes back to working on this thing for Peavers
154: [00:36:30] <Peavers> whipishhhh get it done!
155: [00:42:33] <Peavers> Foundation them for ss includes sidebar, which has nothing but includes sidenav o.O
156: [00:45:10] <ss23> "P ≠ NP on account of the N. can't you see the N. god computer scientists are dumb"
157: [00:47:27] <simon_w> So go for NP \subseteq P
158: [00:47:37] <Colin[pi]> I use skeleton for my ss themes
159: [00:47:41] <Colin[pi]> so simple
160: [00:47:42] <ss23> simon_w: subseteq?
161: [00:47:51] <simon_w> subset or equal
162: [00:47:52] <ss23> simon_w: No Unicode sybmol for it, you latex nerd? :P
163: [00:48:08] <simon_w> Hang on, will find the code point :p
164: [00:48:13] <ss23> :D
165: [00:48:26] <ss23> Finding music is probably the hardest thing I'll spend time doing today
166: [00:48:35] <Peavers> use Google music dude
167: [00:48:48] <ss23> "EDM TIME, DANCE"
168: [00:48:49] <ss23> lets try it
169: [00:49:10] <ss23> Peavers: I thought you had to put music in or something?
170: [00:49:15] <Peavers> Na
171: [00:49:21] <ss23> oh sweet
172: [00:49:27] <ss23> Set up Google Wallet
173: [00:49:31] <Peavers> works like other streaming services too, but its better, because, well google.
174: [00:49:35] <Peavers> First 30 days are free
175: [00:49:39] <Peavers> $7 a month after that
176: [00:49:41] <ss23> :/
177: [00:49:45] <simon_w> Hehe, better because google
178: [00:49:53] <ss23> Peavers: It's lgoged me into my @silverstripe instead of my personal...
179: [00:50:04] <ss23> I can't change because the "change account" button is greyed out until I activate my Silverstripe account.
180: [00:50:05] <Peavers> I'm an android dev by nature and love google. Come at me.
181: [00:50:14] <simon_w> Buzz.
182: [00:50:43] <ss23> there we are, I could manually delete the <div>'s that were in the way
183: [00:50:45] <ss23> OWNED GOOGLE :D
184: [00:50:57] <Peavers> lol really?
185: [00:50:58] <ss23> Peavers: But srsly, grooveshark is free
186: [00:51:05] <ss23> Peavers: I mean to change account. Doubt the service works
187: [00:51:30] <Peavers> yeah I used google music for streaming MY music a year ago, and they have only just added the streaming services thingy
188: [00:51:40] <ss23> I would, but they only allow 20k songs
189: [00:51:41] <Peavers> so was good for me since google already knows my listening tastes and habbits
190: [00:51:54] <ss23> Seems easier to just stream from my own house, since I already have it set up
191: [00:51:57] <ss23> Just no port fowarding atm
192: [00:52:04] <Peavers> 20k is enough to stream when I'm out and about with my phone. Otherwise its .flac files from the media tank in my office
193: [00:52:19] <Peavers> I can reach my home wifi while at work.
194: [00:52:20] <Peavers> is epic
195: [00:52:21] <spronk> ughhhhhh
196: [00:52:23] <spronk> fucking subsites :@
197: [00:52:28] <ss23> lol Peavers, that's nice
198: [00:52:43] <Peavers> get solid speed at 10MB/s too ;)
199: [00:52:51] <ss23> Peavers: I tried streaming my music at home...
200: [00:52:52] <ss23> Over wifi
201: [00:53:03] <ss23> Turns out G isn't fast enough to stream .flac in a crowded area :<
202: [00:53:07] <Peavers> lol
203: [00:53:09] <ss23> Anyone else using the wifi == music not good
204: [00:53:10] <Peavers> AC all the way
205: [00:53:29] <ss23> I got them to re-arange the network, now I've got a switch on my desk for my two PCs
206: [00:53:32] <simon_w> lol, flac
207: [00:53:34] <ss23> Only 100mbit, but enough for music now :D
208: [00:53:38] <ss23> simon_w: mad @ my quality?
209: [00:53:57] <ss23> 24bit 192khz FLAC
210: [00:53:57] <spronk> flac offers no perceivable increase in quality to 320mp3 :P
211: [00:54:12] <spronk> certainly no point streaming that shit
212: [00:54:17] <ss23> spronk: Out of all the qualities to compare against, you picked a) a shitty one (mp3? really?), and b) fucking CBR? Why?
213: [00:54:26] <lewellyn> spronk: it just reduces the loss when you transcode in the future.
214: [00:54:42] <spronk> lewellyn: exactly. great for archival, stupid for streaming playback
215: [00:55:01] <ss23> I'm streaming it from my archive!
216: [00:55:09] <Peavers> It doesn't really hurt to stream it if you've got the gear to support it.
217: [00:55:09] <spronk> so get a transcoder and stream mp3
218: [00:55:17] <lewellyn> i try to keep flac of my various video game ost albums, but i use mp3/aac in my itunes library.
219: [00:55:22] <ss23> spronk: I do have one, I just don't normally require to use it at home
220: [00:55:28] <ss23> I don't stream my .flac's to work :P
221: [00:55:48] <Peavers> I do though lol
222: [00:55:50] <Peavers> because I just don't care.
223: [00:56:28] * spronk got sick of flac taking up so much space and stopped bothering with it
224: [00:56:29] <ss23> You must have speedy tubes
225: [00:56:31] <ss23> (or wifi to work :P)
226: [00:56:43] <Peavers> yeah wifi sits at 10MB/s
227: [00:56:45] <ss23> spronk: I'm not in a position to care about the size of my music I guess
228: [00:56:54] <ss23> So much smaller than video etc anyway
229: [00:57:00] <Peavers> I've got 21ish TB of datastorage at home, not really worried about space.
230: [00:57:07] <simon_w> So much bigger than a decent lossless
231: [00:57:19] <spronk> rich pricks
232: [00:57:44] <ss23> simon_w: Decent lossless? FLAC was around the same size as ALAC last I checked, and ALAC only just recently went opensource
233: [00:57:51] <ss23> simon_w: MOTHER FUCKER DON't YOU PUSH YOUR APPLE PROPGANDA IN HERe
234: [00:58:05] <ss23> We should rename to #silverstripe-applefanboys
235: [00:58:09] <ss23> Because of all you fanboys in here
236: [00:58:34] <lewellyn> ss23: have i shared my uname?
237: [00:58:35] <spronk> what do you mean rename, that chan's already here :P
238: [00:58:57] <ss23> lewellyn: Nope?
239: [00:58:59] <ss23> lol spronk
240: [00:58:59] <lewellyn> Interix boojum 6.2 10.0.7063.0 x86 Intel_x86_Family6_Model58_Stepping9 Windows
241: [00:59:06] <ss23> Uh
242: [00:59:09] <lewellyn> :)
243: [00:59:14] <ss23> My brain is not processing this right
244: [00:59:29] <lewellyn> ss23: it's the posix subsystem. windows 8.
245: [00:59:31] <ss23> Okay so Interix is the POSIX subsystem for Windows...
246: [00:59:34] <ss23> Why, lewellyn
247: [00:59:36] <ss23> ;_;
248: [00:59:47] <lewellyn> because it's the only way to get fork()? ;)
249: [00:59:55] <ss23> lol, why do you want fork() on your Windows 8?
250: [01:00:07] <ss23> Use a Lunix box and be done with it!
251: [01:00:20] <lewellyn> but really, i mostly have it enabled because uwin is unhappy on windows 8 64-bit right now.
252: [01:00:22] <ss23> obligatory "I hate timezones" note
253: [01:00:38] <Peavers> I'm using W8 x64 atm and its fine.
254: [01:01:05] <lewellyn> (uwin is at&t research's posix runtime for the win32 subsystem. like cygwin, but run by old-school unixbeards)
255: [01:01:19] * nickmolhoek quit (Ping timeout: 260 seconds)
256: [01:01:20] <ss23> Interix is the MS supported one, right?
257: [01:01:22] <Colin[pi]> I have W8 x64 here too
258: [01:01:39] <lewellyn> ss23: it's the one which started as microsoft's unix in the 80s, yes.
259: [01:01:45] <ss23> I swear my mac makes 99x notification noises that I can't recognize
260: [01:01:52] <ss23> and I just look around for shit jumping out at me and find nothing
261: [01:01:53] <lewellyn> ss23: like that one?
262: [01:01:59] <ss23> lewellyn: I have bells turned off
263: [01:02:00] <ss23> :P
264: [01:02:02] <lewellyn> :D
265: [01:02:14] * nickmolhoek has joined #silverstripe
266: [01:02:15] * nickmolhoek quit (Remote host closed the connection)
267: [01:02:18] <ss23> Besides, with this PoC terminal, I would be surprised if they supported bells
268: [01:02:21] <ss23> :P
269: [01:02:29] * nickmolhoek has joined #silverstripe
270: [01:03:25] <lewellyn> another reason to run windows. there are plenty of terminal apps in active development which are older than os x. ;)
271: [01:03:50] <lewellyn> (am i reducing the apple fanboy temperature yet?)
272: [01:04:02] <ss23> I see a page on the front end, but can't find it in the CMS
273: [01:04:03] <ss23> :<
274: [01:04:11] <Colin[pi]> I feel like such a n00b when I use OS X :(]
275: [01:04:13] <ss23> lol lewellyn, I enjoy it!
276: [01:04:21] <ss23> You that is
277: [01:04:23] <ss23> Not the fanboyism
278: [01:04:23] <ss23> :P
279: [01:04:29] <lewellyn> ss23: i use a variety of operating systems. to each its own tasks.
280: [01:04:50] <ss23> trudat
281: [01:04:59] <ss23> I'm yet to find one for OSX though (though that's me personally)
282: [01:05:45] <lewellyn> i do like having a posix system whenever possible though. windows has one available out of the box (for now), and there are addon choices. so even that meets my criteria.
283: [01:06:15] <ss23> Hmm, anyone familiar with timestamps in Silverstripe?
284: [01:06:20] <ss23> And MySQL I guess
285: [01:06:33] <ss23> datetime in MySQL shows a timezone *aware* value, right?
286: [01:06:49] <ss23> As in, if I'm getting a date + time, that's *after* it's had Timezone stuff applied, right?
287: [01:06:53] <ss23> SS just shows that same value?
288: [01:07:12] <ss23> Long story short, this server is showing times as 12 hours behind
289: [01:07:15] <simon_w> Nope, no TZ support
290: [01:07:26] <Colin[pi]> ISO dates in SQL are just date and time
291: [01:07:33] <ss23> simon_w: So it should pull the datetime out of the Database and Silverstripe should apply the timezone there?
292: [01:07:44] <ss23> So if SS is displaying the raw data in the DB, it's an issue I need to fix yet?
293: [01:07:44] <simon_w> ss23, no timezone
294: [01:07:53] <ss23> simon_w: Explanation unclear
295: [01:08:07] <simon_w> Neither MySQL nor SilverStripe apply timezones
296: [01:08:27] <ss23> So Silverstripe should *insert* it as the current server time (where that time itself is timezone aware)
297: [01:08:38] <simon_w> Well, it does a NOW()
298: [01:09:18] <simon_w> So, most likely, PHP and MySQL are running in different timezones
299: [01:09:28] <ss23> I thought MySQL just took the current server timezone?
300: [01:09:51] <ss23> In MySQL, select now() gives the expected date/time
301: [01:10:12] <simon_w> MySQL has its own timezone setting
302: [01:10:29] <ss23> In any case, the timezone is right in MySQL if I do a "select now();"
303: [01:10:41] <ss23> simon_w: The issue started after upgrading an old Silverstripe site I'm told
304: [01:11:43] <Colin[pi]> did the php.ini change?
305: [01:11:47] <Colin[pi]> i.e. the timezone setting?
306: [01:11:55] <ss23> Hmm
307: [01:12:04] <ss23> I assumed that was always correct. I will see, but I'm not sure...
308: [01:12:16] <Colin[pi]> it's tripped me up before
309: [01:12:33] <Colin[pi]> for instance, if I had mine set to Australia/Canberra, it was wrong, but Australia/Sydney was fine
310: [01:12:49] <ss23> looks fine here
311: [01:12:52] <Colin[pi]> hmm
312: [01:13:07] <ss23> does a phpinfo() give the current 'active' time too?
313: [01:13:09] <ss23> current time or w/e
314: [01:16:41] <simon_w> Don't think so. But a echo date("r\n"); does
315: [01:17:47] * mobiusnz quit (Quit: Leaving.)
316: [01:17:50] * unsignedint has joined #silverstripe
317: [01:36:57] <ss23> simon_w: that works fine too! :O
318: [01:38:08] <ss23> can confirm even in test
319: [01:38:44] <ss23> simon_w: So, PHP gave the right date('r'), was like "yo it's 1:37pm +1200", mysql did too, but when I create a new News page, the date it fills in is 12 hours behind
320: [01:41:20] <ss23> urgh, its in this silverstripe-express stuff :<
321: [01:42:30] <ss23> So, PHP has right timezone, so does SS, but $this->Date = SS_Datetime::now()->Format('Y-m-d H:i:s'); adds a date/time that is 12 hours behind. I presume that this is because it's like... now() == unix timestamp, not now() giving the *current* timestamp with timezone applied kind of thing
322: [01:42:51] <ss23> simon_w: how 2 fix / why is this going on / am I stupid
323: [01:45:30] <ss23> simon_w~ :<
324: [01:52:17] <simon_w> ss23, has someone set a mock now object?
325: [01:54:22] <Pyromanik> simon_w: know off the top of your head if there's an nl2br on ViewableData?
326: [01:54:45] <simon_w> Not in 3.0, added back in 3.1
327: [01:54:53] <simon_w> Well, on Text anyway
328: [01:54:59] <Pyromanik> balls.
329: [01:55:04] <Pyromanik> Oh well, extension here I come!
330: [01:57:50] <Pyromanik> ooh, Convert::nl2os
331: [01:58:05] <Pyromanik> wait, no.
332: [02:00:04] <ss23> simon_w: Doubtful, unless they set a mock object to the exact current date in the process somewhere... which is possible I guess, but I can't help but feel unlikely. I'll play around soonish
333: [02:00:32] <ss23> Another client just rang and is like "how long will it take to go live?" "Hmm, maye an hour or so, just let me know the day before so I can schedule time in" "Oh okay. We want it live before 10am tomorrow."
334: [02:00:36] <ss23> lol
335: [02:00:39] <ss23> She was nice though
336: [02:00:42] <ss23> tfw client is like "omg this is so awesome you got this working" :D
337: [02:00:54] <ss23> simon_w: So, on this other topic :D
338: [02:01:03] <ss23> simon_w: any way to stop tinymce adding random span shit to my short tags?
339: [02:03:33] * Zauberfisch|idle has joined #silverstripe
340: [02:04:40] * irogue spans ss23's shit
341: [02:05:31] <simon_w> Hmm, tinyMCE adding random stuff.
342: [02:05:32] <simon_w> I'm going with no.
343: [02:06:16] <ss23> lol
344: [02:06:19] <ss23> Didn't think so
345: [02:06:56] * Zauberfisch quit (Ping timeout: 245 seconds)
346: [02:19:21] <simon_w> Hmm, dehydration. I should probably do something about that.
347: [02:19:52] <Colin[pi]> drink more coffee!
348: [02:19:53] * Jayden90 has joined #silverstripe
349: [02:19:55] <ss23> simon_w: mock_now is null
350: [02:20:32] <Jayden90> Is there a way to recursivly traverse levels of $Children in templates?
351: [02:20:53] <ss23> wtf
352: [02:21:01] <ss23> the now() call returns the perfect date/time
353: [02:21:07] <ss23> where is it getting mangled...
354: [02:21:09] <ss23> :q
355: [02:21:11] <ss23> fff
356: [02:22:22] <simon_w> Jayden90, <% if $Children %><% loop $Children %>... <% include WhateverImCalled %><% end_loop %><% end_if %>
357: [02:22:48] <ss23> simon_w: I have a question about this... I'm going to gist it so you can tell me it's wrong
358: [02:23:27] <Jayden90> simon_w: but that will just loop one layer. What if I have an unknown number of layers?
359: [02:23:29] <ss23> simon_w: https://gist.github.com/ss23/5864262#file-code-php-L14 Is that going to be populated with the above default $this->Date?
360: [02:23:44] <simon_w> Jayden90, that's what the include's for.
361: [02:23:54] <ss23> simon_w: Because if I do a var_dump($this->Date, it's right. Yet in the CMS, the date/time is 12 hours behind
362: [02:24:06] <Jayden90> simon_w: You can not run $Children in an include: http://www.sspaste.com/paste/show/51c7a47c400ba
363: [02:25:11] <Jayden90> simon_w: Not the code I am attempting, but illistrative
364: [02:25:23] <simon_w> Jayden90, yes you can.
365: [02:25:51] <simon_w> https://github.com/silverstripe-themes/silverstripe-simple/blob/master/templates/Includes/SidebarMenu.ss
366: [02:26:22] <simon_w> ss23, yeah, it'll get given $this->Date
367: [02:26:36] <simon_w> Wanna debug the Zend stuff to figure out why it's screwing up? :p
368: [02:26:59] <ss23> I have to, we can't just not fix it for a client
369: [02:27:02] * ss23 grinds his teeth
370: [02:27:13] <ss23> simon_w: Never heard of this happening though? Like, it's not an obvious issue?
371: [02:27:37] <simon_w> Well, I've never seen it before
372: [02:27:48] <ss23> mmk
373: [02:27:55] <simon_w> Hang on, is it pm always going to am?
374: [02:28:07] <simon_w> Like, am times work fine?
375: [02:28:09] <ss23> Well... I haven't tested in the AM to verify
376: [02:28:13] <ss23> Hmm
377: [02:28:17] <ss23> I can set my system time to AM though
378: [02:28:27] <ss23> I just assumed... we're in +12... it's 12 behind now
379: [02:28:28] <ss23> dammit
380: [02:28:32] <ss23> NZ has the worst timezone for timezone issues.
381: [02:28:47] <simon_w> So do timezone stuff during the summer :p
382: [02:28:50] <simon_w> Or move to NZCHAT
383: [02:28:51] <ss23> lol
384: [02:29:09] * danjacka has joined #silverstripe
385: [02:29:11] <ss23> Let me just tell this client to hold off on reporting issues till then! :P
386: [02:31:30] <ss23> "Thanks so much for helping at short notice, and prioritising this for me!"
387: [02:31:38] <ss23> wahaha, little does she know I was forced to put it off due to a more pushy client
388: [02:31:41] <ss23> I <3 clients that are nice :D
389: [02:34:45] <Colin[pi]> yes they make up for the ones who are arsehats
390: [02:34:55] <irogue> if only the ratio was better...
391: [02:35:01] <Colin[pi]> sadly yes
392: [02:35:24] <Colin[pi]> that said at the moment the ratio pretty good for me
393: [02:35:36] <Colin[pi]> have lucked out I think
394: [02:37:37] <ss23> Your branch is ahead of 'origin/prod' by 33 commits.
395: [02:37:39] <ss23> not something I wanna see on a production server...
396: [02:38:55] * ss23 does it
397: [02:39:02] <ss23> phew, it worked fine
398: [02:39:11] <ss23> looks like the 33 commits was including other branches for some reason
399: [02:41:23] <Peavers> out of the blue error require_once(HTML5LIB_PATH/HTML5/Parser.php): failed to open stream: No such file or directory
400: [02:42:46] <Peavers> seems to have rooted my site ;S
401: [02:45:37] <simon_w> Peavers, I can log in using my local IdP. You don't care about the logout side of the authentication system, right? :p
402: [02:45:41] <ss23> lol Peavers
403: [02:46:07] <simon_w> Eh, still got 12 hours planned against this
404: [02:46:23] <Peavers> lol you can deal with the project manager ;)
405: [02:46:53] <simon_w> Heh, I'm not :p
406: [02:47:14] <simon_w> Skipping the PM at both SS and MoE
407: [02:47:22] <simon_w> Not my job :)
408: [02:47:48] <ss23> lol
409: [02:49:55] <Peavers> So question for anyone - Looking at using the newsletter and messagequeue to send ~60k emails
410: [02:50:11] <Peavers> any idea on the stress that would place on an avg server and bandwidth?
411: [02:50:29] <Pyromanik> Jayden90: http://www.filedropper.com/sitemap ?
412: [02:50:30] <Peavers> just from your experince in mail spamming if anyone has any
413: [02:50:34] <simon_w> First, set it up so it doesn't just empty the queue at the end of the request
414: [02:50:41] <ss23> simon_w: You were right
415: [02:50:46] <ss23> simon_w: I set my time to AM, it still displays as AM
416: [02:51:06] <simon_w> ss23, um, try to get the datetimefield to display in 24 hour time
417: [02:51:51] <simon_w> Peavers, sending emails is extremely light, but you still want to stagger it so as to not flood whatever's actually sending them
418: [02:52:23] <ss23> :<
419: [02:52:29] <ss23> "24 hour time silverstripe" -> "time silverstripe 2.4"
420: [02:52:32] <ss23> Close, google, but not quite.
421: [02:52:51] <Peavers> Googling anything silverstripe often comes up short...
422: [02:52:56] <ss23> trudat
423: [02:53:01] <ss23> I'm using api.silverstripe.org a lot now
424: [02:53:02] <ss23> it's awesome
425: [02:53:43] <Peavers> I HATE the fact that comments seem to show up everwhere
426: [02:53:57] <Peavers> It should be set that comments are for each class/object of the API, not just general spam
427: [02:54:19] <simon_w> They're supposed to be
428: [02:54:30] <Peavers> If I look up Package framework\parsers, I want to see comments about Package framework\parsers. Not Daniel Box comments
429: [02:54:35] <Peavers> which show up on everything
430: [02:55:04] <Peavers> also, is the API even hosted on SS?
431: [02:55:10] <simon_w> yeah
432: [02:55:17] <simon_w> https://github.com/silverstripe/api.silverstripe.org
433: [02:55:22] <ss23> simon_w: Works perfect in 24 hour time! I can deal with this :D
434: [02:55:30] <simon_w> Wait, API isn't. docs is
435: [02:56:11] <ss23> simon_w: Would you care to tell me how you knew it would work if I did that, along with what a more perm fix might be etC? Though this works fine
436: [02:56:11] * priithansen quit (Quit: priithansen)
437: [02:57:02] <simon_w> ss23, All I've seen is the title of posts to the forum complaining about it. I guessed it'll be Zend being stupid and not correctly parsing the am/pm, so dropping it
438: [02:57:22] <ss23> Hmm
439: [02:57:27] <ss23> I would ope a bug, but ingo would probably rage about it
440: [02:57:44] <Pyromanik> lol
441: [02:57:45] <Pyromanik> really?
442: [02:57:47] <Pyromanik> https://github.com/silverstripe/silverstripe-framework/blob/3.1/email/Email.php#L327
443: [02:58:19] <ss23> rofl Pyromanik
444: [02:58:20] <Peavers> haha
445: [02:58:20] <simon_w> Pyromanik, nicer than <% if $is_a('Email') %>
446: [02:58:20] <ss23> dat code
447: [02:58:37] <simon_w> We do similar things through pocketrent's controllers
448: [02:58:39] <Pyromanik> simon_w: but, why should ViewableData care?
449: [02:58:46] <Pyromanik> or SSViewer even.
450: [02:58:46] <ss23> Guess it works, but honestly, I woudl *much* rather that Silverstripe templates just gave an error if you tried to $doesntExist
451: [02:58:59] <simon_w> Pyromanik, "SSViewer templates"
452: [02:59:15] <Pyromanik> simon_w: right.
453: [02:59:28] <Pyromanik> scroll up 10 lines...
454: [02:59:56] <Pyromanik> does that not sufficient?
455: [03:00:01] <simon_w> Notice the if?
456: [03:00:10] <Pyromanik> I do
457: [03:00:13] <Pyromanik> just wondering why
458: [03:00:53] <simon_w> If you haven't called ->populateTemplates()
459: [03:01:27] <Pyromanik> so... here's a cool question
460: [03:01:31] <simon_w> The bit in the if bit's redundant
461: [03:01:31] <Pyromanik> if someone subclasses Email
462: [03:02:06] <Pyromanik> and then subclasses that subclass
463: [03:02:16] <Pyromanik> and calls $this->populateTemplate from the constructor
464: [03:02:54] <Pyromanik> if I decorate the first subclass with a populateTemplate (which doesn't already exist), will that get called in stead of Email::populateTemplate
465: [03:02:57] <Pyromanik> ?
466: [03:03:20] <simon_w> Nope, because populateTemplate() does exist
467: [03:03:32] <Pyromanik> yeah but on the base class, not the subclass
468: [03:03:39] <Pyromanik> I guess that's not important though
469: [03:03:48] <simon_w> That only matters for traits
470: [03:03:52] <Pyromanik> right
471: [03:07:31] <ss23> simon_w: Do you have the forum link for that by the way? (I can search if you don't remember it by heart)
472: [03:08:22] <simon_w> http://www.silverstripe.org/content-editor-discussions/show/24005
473: [03:08:31] <ss23> Thanking you
474: [03:09:47] * swordsmanz quit (Quit: swordsmanz)
475: [03:10:16] * Jayden90 quit (Quit: Jayden90)
476: [03:10:39] <Colin[pi]> just had a customer say to me "Please feel free to send the invoice, I can't promise when it will be paid though"
477: [03:10:41] <Colin[pi]> wat
478: [03:11:56] <ss23> rofl Colin[pi]
479: [03:11:59] <ss23> Were they serious?
480: [03:12:03] <Colin[pi]> I think so
481: [03:12:04] <Colin[pi]> o_O
482: [03:12:10] <ss23> lol
483: [03:12:19] <Colin[pi]> payment terms: WHENEVER BITCH
484: [03:12:39] <Colin[pi]> sometime before 2053
485: [03:13:11] <ss23> XD
486: [03:14:40] <Colin[pi]> same customer, has a series of records with images, thumbnails generated at cropped 150x200
487: [03:14:46] <Colin[pi]> but can't get them to look correct
488: [03:14:55] <Colin[pi]> I said just upload a 3:4 ratio, any resolution
489: [03:15:00] <Colin[pi]> it will work fine
490: [03:15:05] <Colin[pi]> can't do it
491: [03:15:05] <Colin[pi]> :(
492: [03:15:28] <Colin[pi]> "very difficult"
493: [03:15:29] <Colin[pi]> :(
494: [03:15:58] <ss23> AS in, they don't know how to crop to that resolution to get it to look fine?
495: [03:16:02] <ss23> That's understandable
496: [03:16:05] <ss23> Most people don't know stuff like that
497: [03:16:07] <Colin[pi]> no as in SS crops it
498: [03:16:19] <Colin[pi]> I said just upload a portrait image
499: [03:16:21] <Colin[pi]> it will work
500: [03:16:23] <Colin[pi]> (too hards)
501: [03:16:25] <Colin[pi]> :(
502: [03:16:58] <ss23> lol
503: [03:17:02] <Colin[pi]> sigh
504: [03:22:39] * wmk has joined #silverstripe
505: [03:23:39] <zippy__> Hmmm so I got a class extending from ModelAdmin - following http://doc.silverstripe.org/framework/en/reference/modeladmin but for the life of me, summary_fields are not being used!
506: [03:23:56] <zippy__> ahh flip!
507: [03:23:58] <zippy__> nm :P
508: [03:24:37] <zippy__> They go in the object class, not class extending ModelAdmin
509: [03:24:45] * zippy__ is a guru!
510: [03:25:43] <ss23> lol
511: [03:26:48] <ss23> simon_w: I wanna spend some time tracking down this bug. I wanna trae it from the top down. Whats the top function that does a TimeField->bePrettyForMe(); that the cms calls?
512: [03:27:11] <simon_w> setValue()?
513: [03:27:24] <ss23> getValue()?
514: [03:27:37] <ss23> Does it set it, or get it?
515: [03:27:49] <ss23> I can replicate if you save the page with a PM time, then load it in the CMS, it'll display as AM
516: [03:28:13] <Pyromanik> Colin[pi]: new customer requirements: Question 1) Can you use a computer?
517: [03:28:46] <Pyromanik> Colin[pi]: hopefully Aus isn't as shit as USA, and the courts will be on your side re: payment.
518: [03:28:55] <Pyromanik> if they asked for the invoice they ahve to pay it.
519: [03:29:24] <Pyromanik> ss23: what is your issue now?
520: [03:29:27] <Pyromanik> DateField.Nice?
521: [03:30:33] <ss23> Pyromanik: I don't know enough about internals to know what the issue is. When I leave the TimeField format as default (e.g. a format that has a PM/AM), it display always with AM, as per http://www.silverstripe.org/content-editor-discussions/show/24005
522: [03:30:35] <Pyromanik> simon_w: so back to emails right... I have BlahEmail inherits FooEmail inherits Email
523: [03:30:48] <Pyromanik> and it's used like: BlahEmail::create()->send();
524: [03:30:56] * funkygibbon has joined #silverstripe
525: [03:30:59] <Pyromanik> I want to inject variables for template use
526: [03:31:07] <ss23> lol
527: [03:31:13] <ss23> Pyromanik: That was a quick dropping of my issue :<
528: [03:31:20] <Pyromanik> (which is built and populated in BlahEmail::__construct()
529: [03:31:39] <Pyromanik> ss23: oh
530: [03:31:42] <Pyromanik> buggy
531: [03:31:46] <Pyromanik> you should fix that.
532: [03:32:02] <ss23> Pyromanik: Yes, yes I should. It's for a client too, so it's opensource work that I get PAID for
533: [03:33:00] <Pyromanik> ss23: lucky.
534: [03:33:02] <Pyromanik> I wish.
535: [03:33:05] <Pyromanik> anyway
536: [03:33:09] <Pyromanik> so I have this email issue ruight
537: [03:33:47] <Colin[pi]> http://i.imgur.com/MKhJGDK.jpg
538: [03:33:52] <Pyromanik> inline CSS gets turned into style attributes with Email::parseVariables
539: [03:34:05] <Pyromanik> which I need to preserve on ...
540: [03:34:06] <Pyromanik> shit
541: [03:34:07] <Pyromanik> can't think
542: [03:36:56] <Pyromanik> yeah, I need a hook somewhere between __construct & send.
543: [03:37:20] <Pyromanik> except Email has no hooks in it :<
544: [03:37:22] <Pyromanik> FFFFFFFFFFFFF
545: [03:37:37] <Pyromanik> so
546: [03:37:46] <Pyromanik> how does injector work?
547: [03:38:14] <Pyromanik> or should I just use ::use_custom_class ?
548: [03:44:11] <ss23> We need more simon_w's in here... :<
549: [03:44:15] * danjacka has left #silverstripe
550: [03:44:21] <ss23> I wonder if SS would hire simon_w to just sit in here and help people and solve tickets (official SS ones) etc...
551: [03:47:16] <Peavers> Isn't that your job?!
552: [03:47:19] <Peavers> solve my issue!
553: [03:48:50] * cloph_away has joined #silverstripe
554: [03:49:07] * cloph quit (Ping timeout: 240 seconds)
555: [03:50:59] <ss23> Peavers: I don't see a ticket in my helpdesk :3
556: [03:51:18] <Peavers> Because I don't have any issues =(
557: [03:51:21] <ss23> Client says "For some reason I can't access this link" and gave a link to an image... image is completely white.
558: [03:51:38] <ss23> Like... I don't know if there was an erorr, or they're saying the issue is when they click the link, they get a white page
559: [03:51:48] <ss23> fuck
560: [03:51:52] <ss23> I bet I gave them the internet testing URL
561: [03:54:40] <zippy__> access logs on server? see if they've hit / what status code
562: [03:55:00] <Pyromanik> ss23: I do try, but I'm not that good.
563: [03:55:05] <Pyromanik> 15:43 <@ss23> We need more simon_w's in here... :<
564: [03:55:37] <ss23> Yeah zippy__, was :<
565: [03:55:40] <Pyromanik> ss23: push back on client.
566: [03:55:47] <Pyromanik> image is completely white.
567: [03:55:52] <ss23> lol
568: [03:56:07] <ss23> Why do that? Just takes extra time for no reason. I just checked whether I could access the link I gave them when not on the internal network
569: [03:56:16] <ss23> IT didn't work, so it was verification the user would get a simliar error
570: [03:56:17] <ss23> gave them right link
571: [03:56:31] <ss23> No need to push back on client if I'm capable of debugging myself. Takes more time to push back than to just fix if it's something like this
572: [03:56:42] <ss23> Also a muscle in my leg has got some mad twitches going on
573: [03:57:47] <simon_w> Amputate.
574: [03:57:51] <ss23> lol
575: [03:57:58] <ss23> it stopped now :D
576: [04:01:20] <Pyromanik> ss23: you left that vital info out.
577: [04:04:02] <simon_w> ss23, SS isn't allowed to poach me
578: [04:06:41] * zippy__ quit (Quit: zippy__)
579: [04:11:24] * simon_w really wants to hit the person that keeps making tests that check if the database returns multiple things without putting in a sort
580: [04:12:01] <ss23> simon_w: Do it! Via words!
581: [04:14:01] <simon_w> 40 minute until home time...
582: [04:14:07] <simon_w> Come on home time!
583: [04:19:23] <Colin[pi]> lol simon_w, out the door at home time and not one second more :D
584: [04:19:49] <simon_w> I'm bored :p
585: [04:19:54] <ss23> So, today I learned you can't git revert a merge.
586: [04:19:55] <ss23> fun
587: [04:23:24] <EasyCo> Is there an opposite method to generateURLSegment?
588: [04:23:53] <simon_w> nope
589: [04:24:23] <EasyCo> Damn you
590: [04:25:08] <simon_w> Yay! The patch needed for my code got merged
591: [04:26:58] * Shrike_Finland has joined #silverstripe
592: [04:28:06] <ss23> damn lunix
593: [04:28:22] <ss23> git failing with 'unable to update local ref'
594: [04:28:25] <ss23> p sure it's stupid permission issues
595: [04:31:25] * travis-ci has joined #silverstripe
596: [04:31:25] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#432 (3.1 - 5c46acc : Hamish Friedlander): The build passed.
597: [04:31:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/83726b21a204...5c46acc018f8
598: [04:31:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8451184
599: [04:31:25] * travis-ci has left #silverstripe
600: [04:32:15] <EasyCo> http://cdn-static.zdnet.com/i/story/60/52/020842/18-06-2012-13-33-24.jpg
601: [04:35:59] * Peavers quit (Ping timeout: 256 seconds)
602: [04:40:28] <ss23> oh man, I swear
603: [04:40:34] <ss23> 99% of my issues are cause I forget to flush
604: [04:40:40] <ss23> Was just like "OMG HOW DID THIS BREAK"... :<
605: [04:40:43] <ss23> stupid stupid
606: [04:40:46] <simon_w> Don't worry, it's worse in 3.1 :p
607: [04:40:50] <ss23> lol
608: [04:41:01] <ss23> This was a /dev/build being like "Yo I can't find this file that doesn't exist at all anymore!"
609: [04:41:05] <simon_w> Every static and config change requires a flush
610: [04:41:06] <ss23> And I was like "WHY ARE YOU LOOKING FOR IT"
611: [04:41:15] <ss23> I bet this is how Niki Minaj composed "stupid hoe"
612: [04:41:21] <ss23> you a stupid hoe, you a you a stupid hoe
613: [04:41:24] <ss23> stupid stupid
614: [04:41:26] <ss23> oh man I have dejavu
615: [04:41:28] <ss23> ;_;
616: [04:41:32] <ss23> I hope I don't get fired tonight
617: [04:41:44] <ss23> No more releases tonight, just in case.
618: [04:41:50] <simon_w> Haha
619: [04:42:26] <ss23> Also, this dev/build stopped at a certain point and looks like it's stalled
620: [04:42:29] <simon_w> "This is a follow up to Bug ID# 14241803. This bug has been closed as a Duplicate."
621: [04:42:30] * ss23 pokes it
622: [04:42:34] <ss23> oh there we are
623: [04:42:34] <simon_w> Always with the duplicates
624: [04:42:38] <ss23> lol simon_w
625: [04:42:44] * DigNZ quit (Quit: DigNZ)
626: [04:44:57] <spronk> hmm
627: [04:44:58] <spronk> guys
628: [04:44:59] <spronk> subsites
629: [04:45:24] <irogue> OH GOD HERE WE ARE AGAIN
630: [04:45:26] <spronk> my subsite virtual pages can't see files attached to their target pages for some reason
631: [04:45:27] <irogue> :-P
632: [04:45:31] <spronk> SHUTUP
633: [04:45:36] <ss23> lol
634: [04:45:37] <spronk> its just so buggy man :p
635: [04:45:40] <ss23> Is this a reoccurant issue?
636: [04:45:48] <ss23> Pretty sure I heard someone saying today like "please no more subsites"
637: [04:45:58] <spronk> every time I use subsites I have at least 1 reasonably major issue
638: [04:47:39] <ss23> And that issue is called 'subsites'
639: [04:48:17] * lewellyn is now known as lart
640: [04:51:52] <spronk> yupe
641: [04:51:56] <spronk> ufgh
642: [04:52:01] <spronk> i just want to make two country sites
643: [04:52:03] <spronk> that share most of their pages
644: [04:52:03] <spronk> ffs
645: [04:52:07] <spronk> shouldn't be that hard
646: [04:52:18] <Bollig|DesignCty> it isn't. Jus don't use subsites.
647: [04:52:31] <Bollig|DesignCty> :(
648: [04:52:40] <spronk> >:(
649: [04:52:44] <spronk> what am I meant to use?
650: [04:53:00] <Bollig|DesignCty> I'd personally create two stand-alone sites.
651: [04:53:28] <spronk> how to share pages?
652: [04:53:39] <Colin[pi]> magic
653: [04:54:00] <Bollig|DesignCty> It should be relatively easy to import pages directly from another site's ss database (I think there's a module for that) or create an advanced virtual page that scrapes content from another site and caches it for display.
654: [04:54:51] <Bollig|DesignCty> sub sites makes integration easier once the site is built, but my personal expereicen is the build is more costly, as are future site updates.
655: [04:55:35] <spronk> blegh
656: [04:55:49] <Colin[pi]> seems more trouble than they're worth
657: [04:55:59] <spronk> it's such a common use case for my contract clients
658: [04:56:19] * ss23 yawns
659: [04:56:38] <ss23> I need to sleep early tonight
660: [04:57:10] * Shrike_Finland quit (Quit: Leaving.)
661: [04:57:36] <Colin[pi]> once my gf moved in I've started going to bed earlier for some reason
662: [04:57:45] <ss23> lol
663: [04:57:50] <ss23> I'll clarify
664: [04:57:54] <ss23> I need to start going to *sleep* earlier
665: [04:57:55] <ss23> :P
666: [04:57:58] <Colin[pi]> ;D
667: [04:58:17] <Colin[pi]> did I say anything different? :D
668: [04:58:20] <ss23> lol
669: [04:58:25] <ss23> "Unable to connect to server: foo" is really lame.
670: [04:58:28] <ss23> WHY NOT TELL ME WHY :<
671: [04:58:48] <spronk> ... how many whys are there when it comes to "unable to connect" ?
672: [04:59:06] <simon_w> ss23, need more vs!
673: [04:59:10] <ss23> lolwhat
674: [04:59:16] <ss23> my dev/build hadn't finished loading
675: [04:59:22] <ss23> It was just speweing out more and more "could not connect"
676: [04:59:25] <ss23> until chrome died from OOM
677: [04:59:51] <ss23> dammit, macports doesn't add the extensions you install to your PHP CLI autoamtically :<
678: [05:00:16] <simon_w> Boom! Fix for the bug I was working on at the hackfest merged.
679: [05:00:27] <simon_w> ss23, haha!
680: [05:02:00] <ss23> :D
681: [05:02:04] <ss23> simon_w: Your one, or Hamishes?
682: [05:02:10] <simon_w> Hamish's
683: [05:02:13] <ss23> Nice :D
684: [05:02:23] <simon_w> Such a nicer fix than mine
685: [05:02:26] <simon_w> Anyway, home time!
686: [05:02:29] <ss23> wow
687: [05:02:30] <ss23> early
688: [05:02:31] <ss23> slacker.
689: [05:02:36] <simon_w> 8 hours done :p
690: [05:02:57] <spronk> argh
691: [05:03:04] <ss23> simon_w: Slakcer slacker!
692: [05:03:05] <spronk> yet another problem with subsites
693: [05:03:08] <ss23> lol
694: [05:03:18] <ss23> spronk: Rename it to the YAP module
695: [05:03:21] <simon_w> ss23, don't make me make GoTest hurt you!
696: [05:03:24] <ss23> Cause when you use it, you'll find Yet Another PRoblem
697: [05:03:34] <ss23> simon_w: help what is GoTest. The Go testing suite?! :O
698: [05:03:35] <spronk> i had if ClassName == "ProductsPage" in my template
699: [05:03:47] <spronk> this fails to work with subsites virtualpages
700: [05:03:48] <simon_w> Test replacement for ss-log in Go
701: [05:03:51] <spronk> because the templates don't pass through
702: [05:03:52] <ss23> o.o
703: [05:04:00] <ss23> I see, simon_w!
704: [05:04:04] * simon_w leaves before his bus does
705: [05:04:07] <ss23> using Go? You Google fanboy
706: [05:04:08] <ss23> lol
707: [05:04:08] <ss23> cya
708: [05:04:16] <spronk> go is quite cool
709: [05:04:53] * nickmolhoek quit (Quit: nickmolhoek)
710: [05:07:46] <Colin[pi]> ytf doesn't uploadify have a download link in the backend for files?
711: [05:08:31] * Pyromanik quit (Quit: leaving)
712: [05:13:34] * travis-ci has joined #silverstripe
713: [05:13:35] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#433 (3.1 - aecda48 : Simon Welsh): The build passed.
714: [05:13:35] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/5c46acc018f8...aecda4882ba3
715: [05:13:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8451704
716: [05:13:35] * travis-ci has left #silverstripe
717: [05:15:31] * lart is now known as lewellyn
718: [05:20:03] <ss23> wtf, dev/build isn't dying if it can't connect to the DB. Who's idea was that
719: [05:25:04] <irogue> well, my normal policy is to blame whatever SS Ltd guy is here...
720: [05:28:45] <spronk> yeah
721: [05:28:48] <spronk> fucking ss23
722: [05:30:48] * Jayden90 has joined #silverstripe
723: [05:31:22] <Jayden90> Is it possible to get a thumbnail of a pdf file for use in templates?
724: [05:32:37] <spronk> not with native ss
725: [05:32:46] <Jayden90> :(
726: [05:33:31] <Jayden90> There will be hundreds of pdf's to manualy upload thumbnails for
727: [05:36:26] <spronk> you could potentialy photoshop action that
728: [05:36:34] <spronk> and use css?
729: [05:37:46] <Jayden90> hmmm
730: [05:38:03] <ss23> fucking spronk
731: [05:38:21] <ss23> irogue: ;_;
732: [05:38:25] <ss23> IT'S NOT ME It'S NOT Me.
733: [05:38:52] <Jayden90> There seems to heaps of PDF modules for creating PDF's, can see any off the bad for .pdf -> .png
734: [05:44:52] <ss23> lol at this git message "FEATURE: Basic SQL Injection protection for the vulnerable 'Sort' GET parameter"
735: [05:45:01] <ss23> That's a nice feature, I might want that feature in my software
736: [05:52:11] <spronk> o_O
737: [05:52:45] <simon_w|air> Ah, people that coded for 2.4 and just stuck $_GET straight into things
738: [05:52:54] <ss23> 2.4?
739: [05:52:56] * ss23 giggles
740: [05:53:12] <ss23> When I did my audits, I found at least 2 modules that had sqli, and a case of sqli in core, and xss in core
741: [05:53:17] <ss23> It isn't just 2.4 :P
742: [05:53:36] <ss23> In all cases, nothing was just injected $_GET stuff
743: [05:53:44] <ss23> apart from the XSS
744: [05:53:59] <spronk> are you a sec person ,ss23?
745: [05:54:05] <ss23> spronk: I try, I try
746: [05:54:12] <ss23> I don't work in it, but I like breaking stuff
747: [05:54:16] <spronk> mm
748: [05:54:19] <spronk> likewise
749: [05:54:20] * ss23 sqlinjects spronk's backdoor to get root access
750: [05:54:21] <ss23> :3
751: [05:54:26] <ss23> spronk: Do you come to kiwicon?
752: [05:54:29] <simon_w|air> ss23, have a look at sunny side up's modules
753: [05:54:36] <ss23> simon_w|air: Are they 'fun'? :D
754: [05:54:36] <spronk> once upon a time i thought i could be a sec dude
755: [05:54:39] <spronk> ss23: nah
756: [05:54:46] <simon_w|air> ss23, yeah, something like that
757: [05:54:46] <ss23> I only looked at official SS modules the first time
758: [05:54:49] <spronk> but then i realised just how fucking insane it is
759: [05:54:54] <ss23> lol spronk
760: [05:55:23] <ss23> Someone really needs to have a look through all the sites SS hosts and do a proper audit for crap like outdated modules/code + custom code that has issues etc
761: [05:55:40] <ss23> Would only take like 3 hours per project, and could save lots if anyone ever felt evil and wanted to pwn SS
762: [05:55:43] <ss23> (doubt anyone would I guess)
763: [05:56:00] <ss23> simon_w: conf/ConfigureFromEnv.php == _ss_enviornment irght?
764: [05:56:01] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
765: [05:56:05] <ss23> So if that's missing, my enviornment file doesn't work?
766: [05:56:13] <simon_w|air> ss23, yes
767: [05:56:48] <ss23> Then I curse the guy who commited this
768: [05:56:58] <ss23> 5 months ago, someone removed all of that and hard coded a bunch of stuff
769: [05:57:02] <ss23> including SS_SEND_ALL_EMAILS_TO
770: [05:58:23] <spronk> simon_w|air: got any examples of sunny side up module funness?
771: [06:02:28] * mirrors has joined #silverstripe
772: [06:03:32] <mirrors> hey I am using SS2.4 unfortuately still and have called removeDuplicates() on a dataobjectset...now the function like Middle() nad Pos are not behaving correctyl
773: [06:04:01] <mirrors> i discovered that removeDuplicates isnt reseting the iteratorPos
774: [06:04:36] <mirrors> do you know how I can reset the iteratorPos so these helper functions will work again
775: [06:05:27] <mirrors> i tried looping the dataobjectset and calling iteratorProperties() on each dataobject but that does not work
776: [06:05:30] * Bollig|DesignCty has joined #silverstripe
777: [06:09:13] <mirrors> the way I can fix my solution (i can think if) is to loop through my dataobjectset and then one by one add each dataobject to another dataobjectset
778: [06:10:42] <simon_w|air> spronk, bit harder to find after they got sued for it, but was things like DataObject::get('Blah', 'Field = \'' . $_GET['field'] . '\'')
779: [06:11:42] <simon_w|air> mirrors, $dos = new DataObjectSet(array_values($dos->toArray()));
780: [06:12:48] <spronk> they got sued?
781: [06:13:09] <spronk> also, dang
782: [06:13:55] <simon_w|air> Yeah, too slow, insecure code, buggy code
783: [06:14:00] <spronk> o_O
784: [06:14:02] <spronk> who sued them?
785: [06:14:35] <simon_w|air> Some client
786: [06:14:43] <ss23> lol
787: [06:14:50] <ss23> I think you've given me a new weekend projet
788: [06:14:50] <ss23> :D
789: [06:15:13] <Colin[pi]> woah woah, what happened exactly?
790: [06:15:32] <ss23> ^^
791: [06:15:34] <ss23> DETAILS
792: [06:15:39] <spronk> mm
793: [06:15:57] <ss23> simon_w|air: One of my dev sites is called SS_projectname_sshkardoon
794: [06:16:02] <ss23> Another one is building as projectname
795: [06:16:05] <ss23> How 2 fix?
796: [06:17:22] <simon_w|air> One has a prefix/suffix defined, the other doesn't?
797: [06:17:35] <ss23> I'm trying to copy the same config options between both... hmm
798: [06:17:50] <ss23> oh, so you define a $database too, not just $databaseConfig
799: [06:20:08] <ss23> still not working
800: [06:20:09] <ss23> :<
801: [06:20:52] <ss23> https://gist.github.com/ss23/5865132 simon_w|air Database is created as '_ssharkdoon'
802: [06:20:55] <ss23> which is my suffix
803: [06:21:06] <ss23> why not SS_foo_sshkardoon like the ohter one? :<
804: [06:22:21] <simon_w|air> ss23, depends on _ss_environment
805: [06:23:12] <ss23> simon_w|air: Oh, I figured it out, though I'm not sure why it matters
806: [06:23:24] <mirrors> cheers simon_w|air once again
807: [06:23:25] <ss23> If I define $database, then include _ss_enviornment, then do $databaseConfig it works
808: [06:23:35] <simon_w|air> yup
809: [06:24:01] <simon_w|air> Also, define('SS_DATABASE_CLASS', 'MSSQLDatabase');
810: [06:24:38] <ss23> It works without that, do I need that?
811: [06:25:13] <simon_w|air> Instead of the $databaseConfig stuff
812: [06:42:08] * zippy__ has joined #silverstripe
813: [06:54:54] * zippy__ quit (Quit: zippy__)
814: [07:02:39] * MrJeremy quit (Quit: MrJeremy)
815: [07:11:54] * Jayden90 quit (Quit: Jayden90)
816: [07:16:57] * wmk quit (Ping timeout: 256 seconds)
817: [07:17:26] * chillu has joined #silverstripe
818: [07:18:53] * kylehudson00 has joined #silverstripe
819: [07:29:01] * PigeonFriend has joined #silverstripe
820: [07:35:53] * mattybalaam has joined #silverstripe
821: [07:35:58] * mattybalaam quit (Client Quit)
822: [07:37:07] * Colin[pi] quit (Ping timeout: 240 seconds)
823: [07:37:20] * maknz has joined #silverstripe
824: [07:37:20] * maknz quit (Changing host)
825: [07:37:20] * maknz has joined #silverstripe
826: [07:42:13] * Jack_Cotton has joined #silverstripe
827: [07:45:38] * zippy__ has joined #silverstripe
828: [07:55:15] * ocm has joined #silverstripe
829: [07:55:41] * RojoD has joined #silverstripe
830: [07:55:42] * kinglozzer has joined #silverstripe
831: [07:57:24] * EasyCo quit (Quit: EasyCo)
832: [08:02:51] * zippy__ quit (Quit: zippy__)
833: [08:15:46] * kerosene quit (Ping timeout: 256 seconds)
834: [08:17:55] * priithansen has joined #silverstripe
835: [08:26:01] * kylehudson00 quit (Quit: Page closed)
836: [08:30:12] * wmk has joined #silverstripe
837: [08:37:04] * mattybalaam has joined #silverstripe
838: [08:43:45] * osterlaus has joined #silverstripe
839: [09:01:49] * LoveDuckie has joined #silverstripe
840: [09:12:20] * mirrors quit (Quit: Page closed)
841: [09:18:14] * ocm is now known as oceanmountain
842: [09:18:16] <oceanmountain> howdy!
843: [09:20:29] * rved has joined #silverstripe
844: [09:20:45] <rved> 2.4.10 : how do i redirect domains to a specific url?
845: [09:20:58] <rved> url.fr should go to url.nl/locale=fr_FR
846: [09:21:11] <rved> i can't do this in my shared hosting control panel..
847: [09:23:36] <Bollig|DesignCty> partial F!&^#ing caching!
848: [09:24:18] <Bollig|DesignCty> rved: can you set up aliases and pointers from your planel?
849: [09:24:38] <rved> like A CNAME etc? yes
850: [09:24:39] <rved> brb
851: [09:25:06] * osterlaus quit (Quit: Leaving.)
852: [09:25:26] <Bollig|DesignCty> if you set up the second language domain as a alias (so it displays the new url and the old site, but doesn't redirect) then the translatable module will do the rest if you set up the domain in the translatable admin.
853: [09:33:12] * Colin[pi] has joined #silverstripe
854: [09:36:12] * zippy__ has joined #silverstripe
855: [09:37:15] * kamran has joined #silverstripe
856: [09:37:28] <kamran> Hi everybody,
857: [09:38:09] * rved quit (Quit: rved)
858: [09:38:11] <kamran> I want to built a Multilingual website in the Sliverstrip version 3.05. Can anbody help me in this regard.
859: [09:39:31] <kamran> is there anybody over there???????????
860: [09:43:01] <oceanmountain> kamran, take a look at the translatable module
861: [09:43:15] <oceanmountain> https://github.com/silverstripe/silverstripe-translatable
862: [09:43:51] * oddnoc has joined #silverstripe
863: [09:44:02] * oddnoc quit (Client Quit)
864: [09:44:27] * oddnoc has joined #silverstripe
865: [09:47:08] * kamran quit (Ping timeout: 250 seconds)
866: [09:54:25] * rved has joined #silverstripe
867: [09:55:00] <rved> Bollig|DesignCty what kind of alias should i make?
868: [09:58:22] <Bollig|DesignCty> what's not working for you rved? Are you able to visit the website via the alternative url and have it appear without redirecting to the main url?
869: [09:58:27] <Bollig|DesignCty> that's all you need.
870: [09:58:59] <Bollig|DesignCty> the translatable module will detect the alternative domain name and change the language automatically (once you add the language in the admin interface)
871: [09:59:05] <rved> i have set up the website on my hosting www.cyclefit.nlwww.cyclefit.fr is linked to cyclefit.nl in the hosting settings
872: [09:59:19] <rved> should i just add
873: [09:59:23] <rved> "Use this page as the 'home page' for the following domains: (separate multiple domains with commas)"
874: [09:59:32] <rved> for the french as www.cyclefit.fr
875: [10:00:37] <rved> did that now, but still .fr is en_US
876: [10:00:39] <rved> instead of fr_FR
877: [10:00:43] <Bollig|DesignCty> are you using translatable?
878: [10:00:46] <rved> yes
879: [10:01:11] <Bollig|DesignCty> have you changed the en_US hardcoded in the template to $ContentLocale?
880: [10:01:29] <rved> yes $ContentLocale is in the template
881: [10:01:54] <rved> <html lang="$ContentLocale">
882: [10:02:06] <rved> but the page source keeps saying en_US
883: [10:02:07] <Bollig|DesignCty> have you set up the languages in the translatable admin?
884: [10:02:25] <rved> unless you go to ?locale=fr_FR
885: [10:02:31] <rved> yes all is set up correctly
886: [10:02:47] <rved> if your in chrome and do view-source:http://www.cyclefit.fr/mycyclefit-fr-FR/
887: [10:02:57] <rved> then html lang = fr-FR
888: [10:03:50] <rved> what is the 'normal' way to linked a domain to a specific language?
889: [10:04:03] <rved> i normally do this in the hosting settings, but for this hosting it is not possible
890: [10:04:03] <Bollig|DesignCty> you're on 2.4.10, yeah?
891: [10:04:06] <rved> yes
892: [10:04:21] <Bollig|DesignCty> try adding the following to your page.php init() function
893: [10:04:36] <Bollig|DesignCty> if($this->dataRecord->hasExtension('Translatable')) {
894: [10:04:37] <Bollig|DesignCty> i18n::set_locale($this->dataRecord->Locale);
895: [10:04:38] <Bollig|DesignCty> }
896: [10:04:43] <Bollig|DesignCty> sorry, bad formatting...
897: [10:04:55] <rved> what should this do?
898: [10:04:59] <Bollig|DesignCty> I'm going off memory here, been a while since I did a translatable site myself...
899: [10:05:19] <rved> are we trying to make the "Use this page as the 'home page' for the following domains: (separate multiple domains with commas)" work?
900: [10:05:27] <rved> or what will be the approach?
901: [10:05:49] <rved> this is already in the page init btw
902: [10:05:50] <rved> if($this->dataRecord->hasExtension('Translatable')) {
903: [10:05:51] <rved> i18n::set_locale($this->dataRecord->Locale);
904: [10:05:52] <rved> }
905: [10:05:57] <Bollig|DesignCty> in essence, translatable and locale are separate systems in 2.4, so this tells SS the correct locale to used based on the translatable record.
906: [10:06:20] <rved> but how does this work together with a domain?
907: [10:07:46] <Bollig|DesignCty> I'd just do a quick check on $_SERVER['HTTP_HOST']
908: [10:08:16] <Bollig|DesignCty> for the french domain, if it's found force a specific locale using i18n::set_locale()
909: [10:08:57] <rved> maybe i should use this https://github.com/cbryer/Translatable-Domains
910: [10:10:12] <wmk> anyone can help me with a kmz problem (googlemaps v2)?
911: [10:10:45] <Bollig|DesignCty> rved: nice find.
912: [10:11:04] <Bollig|DesignCty> that module does exactly what I said actually, except you can more easily configure more domains.
913: [10:11:15] <rved> ok great, ill test it now
914: [10:11:18] <Bollig|DesignCty> although to be honest it seems about as hard as just adding the check in yourself...
915: [10:11:32] <Bollig|DesignCty> 40 characters of code vs 2 entire classes...
916: [10:12:09] <rved> very nice
917: [10:12:16] <rved> check it out,w ww.cyclefit.fr
918: [10:12:18] <rved> www.cyclefit.fr
919: [10:12:34] * ben__ has joined #silverstripe
920: [10:12:40] <Bollig|DesignCty> very nice… With the module or just added the check by hand?
921: [10:13:23] <ben__> hi pls help me in case of bulk image uplaoder
922: [10:13:46] <ben__> for version silverstripe 3.5
923: [10:14:05] <Bollig|DesignCty> which version ben__ ?
924: [10:14:11] <ben__> 3.5
925: [10:14:37] <Bollig|DesignCty> Not sure that version exists..
926: [10:14:52] <ben__> 3.1
927: [10:15:04] <ben__> 3.5 is the latest
928: [10:15:35] <ben__> actualy i need to have a slider in home page
929: [10:15:54] <ben__> so i need to have provision in cms admin to enable bulk image iplaod
930: [10:15:58] <ben__> uplaod
931: [10:16:17] <Bollig|DesignCty> 3.0.5 is the latest stable. 3.5 is non-existent :)
932: [10:16:24] <Bollig|DesignCty> go on, see if we can help :)
933: [10:16:30] <ben__> $fields->addFieldToTab("Root.Content.Image", new ImageDataObjectManager( $this, 'Image', 'Image', 'Image', array( 'URL' => 'URL' ), 'getCMSFields_forPopup' ) );
934: [10:16:49] <ben__> image datobject manager not found error comes
935: [10:16:53] <ben__> class is missing
936: [10:17:06] <rved> thx again Bollig ;)
937: [10:17:14] <ben__> will that be not there in the default silverstripe 3.0.5
938: [10:20:06] <Bollig|DesignCty> np rved. Did you use the module or just check by hand?
939: [10:20:17] <rved> i used the module, very easy
940: [10:20:38] <Bollig|DesignCty> nice.
941: [10:21:06] <Bollig|DesignCty> ben__: ImageDataObjectManager is a class from DataObjectManager… that's not 3.0 compatible if I remember correctly...
942: [10:21:35] <ben__> so how can we accopolish that
943: [10:22:00] <ben__> will you send me any help tutorial for silverstripe 3.0.5
944: [10:22:27] <ben__> inorder to enable bulk image uplaoder fro siverstripe 3.0.5
945: [10:23:16] <Bollig|DesignCty> To be honest, I don't work in 3.0, so I'm not sure. From my understanding, you should be able to upload images in bulk directly into ss3 without the need for external modules.
946: [10:23:41] <ben__> okay
947: [10:24:09] <Bollig|DesignCty> If you feel the need, Kickassets (https://github.com/unclecheese/KickAssets) has MultipleFileAttachmentField which I've used in 2.4 (but is now 3.0 compatible)
948: [10:24:46] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
949: [10:30:42] * rved quit (Quit: rved)
950: [10:35:11] * cloph_away quit (Remote host closed the connection)
951: [10:35:22] * cloph_away has joined #silverstripe
952: [10:40:55] * EasyCo has joined #silverstripe
953: [11:03:35] * chillu quit (Quit: chillu)
954: [11:04:59] <kinglozzer> ben__: https://github.com/colymba/GridFieldBulkEditingTools/tree/0.5
955: [11:09:26] * micmania1 has joined #silverstripe
956: [11:27:30] * mattybalaam quit (Quit: mattybalaam)
957: [11:29:57] * mattybalaam has joined #silverstripe
958: [11:30:26] * priithansen quit (Quit: priithansen)
959: [11:34:28] * RojoD quit (Ping timeout: 256 seconds)
960: [11:35:07] * r3v3rb has joined #silverstripe
961: [11:35:22] * chillu has joined #silverstripe
962: [11:44:52] * kinglozzer quit (Remote host closed the connection)
963: [11:52:30] <ss23> ~(._.)~
964: [12:06:18] * Jack_Cotton quit (Quit: Leaving)
965: [12:06:41] * UndefinedOffset has joined #silverstripe
966: [12:09:34] * ajshort has joined #silverstripe
967: [12:10:42] <zippy__> is it possible to add a a custom button to the CMS?
968: [12:10:53] <ss23> zippy__: Almost certainly, yes!
969: [12:10:54] <wmk> can i set a relation (e.g. document) as required?
970: [12:10:57] <ss23> dpends what "custom button" is
971: [12:11:17] <ss23> wmk: Depends how you define "relation". If you mean like a dataobject / like, data relationship, look at the docs on dataobject and datamodel
972: [12:11:37] <zippy__> ss23: I want to send an email based on details in the record
973: [12:11:46] <zippy__> call a custom function on the page
974: [12:11:55] <wmk> a documentuploaddataobject, has a cagetory enum and the file as has_one relation
975: [12:11:56] <zippy__> I think under ss2.4 it was an arse
976: [12:12:06] <ss23> zippy__: As in, only admin users in the CMS can send the emails, and only via the backend CMS?
977: [12:12:19] <zippy__> yes
978: [12:12:39] <ss23> zippy__: Hmm... well, you can easy add a tab and have a submit button there I think... hmmm, actually, I'm not so sure
979: [12:12:47] <ss23> zippy__: Oh, look at how betterbuttons module does it! That adds buttons to the CMS
980: [12:12:51] <ss23> zippy__: That should give you a good start :D
981: [12:13:02] <zippy__> gotcha, will look
982: [12:13:04] <zippy__> thanks
983: [12:13:27] <ss23> wmk: I'm heading off to bed now sorry, but if you can explain a little more, someone else might be able to help (though lots of people who help are in NZ, and it's midnight here, so if you could wait and come back in ~10 hours, then you'll be much more likely to get help)
984: [12:13:53] <wmk> ss23, ok. good night
985: [12:17:37] * RojoD has joined #silverstripe
986: [12:17:38] * RojoD quit (Changing host)
987: [12:17:38] * RojoD has joined #silverstripe
988: [12:22:01] * rved has joined #silverstripe
989: [12:24:58] <micmania1> wmk, you can extend the validate method from within the DataObject and check to make sure it has a file attached.
990: [12:25:44] <wmk> ok, but afaik you have to create the do first and then you can add the document?
991: [12:27:04] <micmania1> in the validate method, check to see if there's an ID set on your DataObject. If not, then its new and you should skip validation. I don't think there's a perfect solution though unless you delve in and do a lot more work.
992: [12:35:42] * tomspeak has joined #silverstripe
993: [12:36:07] <wmk> micmania1, hmm, as it's a frontend form i don't know if bulk-upload works. this could make some thinge easier
994: [12:37:12] <tomspeak> hey, can anyone help me with 2.4 Mollom integretion with userforms? I was under the impression once Mollom and Spamprotection was installed, pub/priv key was added mollom would automatically be applied to contact forms? Any ideas where I am going wrong?
995: [12:40:58] * r3v3rb quit (Quit: r3v3rb)
996: [12:45:06] * Teqz has joined #silverstripe
997: [12:45:22] <Teqz> Hi I have a Form question
998: [12:46:11] <Teqz> I 'm trying to setup RequiredFields in SS 3, but the prototype library won't load
999: [12:46:19] <Teqz> see also http://www.silverstripe.org/form-questions/show/24038
1000: [12:47:18] <wmk> Teqz, afaik SS3 doesn't use prototype anymore . Does php validation work?
1001: [12:48:08] <Teqz> Uhh, php validation? Does'nt RequiredFields work at all anymore?
1002: [12:48:40] <wmk> i mean validation after you press "send" button. server side validation (by php) instead of on-the-fly js validation
1003: [12:48:54] <wmk> ss3 uses jquery instead of prototype
1004: [12:50:58] <Teqz> ok, but jQuery won't load either
1005: [12:51:20] <wmk> frontend or backend?
1006: [12:51:23] <Teqz> probably because i loaded it before?
1007: [12:51:25] <Teqz> front
1008: [12:53:04] * r3v3rb has joined #silverstripe
1009: [12:54:22] <wmk> Teqz, While there are no built-in JavaScript validation handlers in SilverStripe, the FormField API is flexible enough to provide the information required in order to plug in custom libraries.
1010: [12:54:33] <wmk> http://doc.silverstripe.org/framework/en/topics/form-validation
1011: [12:56:09] <wmk> that's odd
1012: [12:57:37] <Teqz> ok, thanks. the html5 validator works. (but i don't think the good old IE is happy with it)
1013: [12:58:44] <wmk> Teqz, what html5 valdiator?
1014: [12:59:05] <Teqz> $naam->setAttribute('required', true);
1015: [12:59:20] <wmk> ah.
1016: [13:01:36] <Teqz> but when I want to use a Javascript validation, I need to upload and include a library by myself?
1017: [13:03:05] <wmk> in /framework/thirdparty/ you can find some jquery stuff. if you need a newer version of e.g. jquery-validate you can upload it to mysite
1018: [13:08:41] * UndefinedOffset quit (Quit: Leaving.)
1019: [13:09:03] * kinglozzer has joined #silverstripe
1020: [13:11:03] * cloph_away is now known as cloph
1021: [13:11:43] * UndefinedOffset has joined #silverstripe
1022: [13:12:38] <r3v3rb> in a dataobject that is controlled via gridfield - how can I remove a field from the add/edit list
1023: [13:14:22] <kinglozzer> r3v3rb: Do you mean from the add/edit form? Or from the list of dataobjects? getCMSFields() / $summary_fields? Or am I misunderstanding? :P
1024: [13:14:32] * zippy__ quit (Quit: zippy__)
1025: [13:15:05] * Colin[pi] quit (Ping timeout: 256 seconds)
1026: [13:16:11] <r3v3rb> kinglozzer: my mistake, from the edit form
1027: [13:16:22] <r3v3rb> tried removeFieldFromTab but it doesnt get removed
1028: [13:16:29] <kinglozzer> removeByName() ?
1029: [13:16:37] <r3v3rb> lemme try dat
1030: [13:17:16] <oceanmountain> r3v3rb, how did you fix your gridfield problem yesterday?
1031: [13:17:22] <oceanmountain> I might have walked into the same problem
1032: [13:17:39] <kinglozzer> r3v3rb: It might be removeByName('MyField');, removeByName('Root.MyField');, or removeByName('Root.Main.MyField'); - I can never remember which works where
1033: [13:17:40] <r3v3rb> oceanmountain: one mo
1034: [13:18:08] <oceanmountain> sure thing :)
1035: [13:18:18] <r3v3rb> kinglozzer: neither
1036: [13:18:23] <r3v3rb> http://www.sspaste.com/paste/show/51cae981423f6
1037: [13:18:29] <r3v3rb> is how I populate the list
1038: [13:18:35] <oceanmountain> removeByName('FieldName') does the trick for removing any field from the cms, not sure for gridfield
1039: [13:18:49] <r3v3rb> maybe I should use the normal non push way though
1040: [13:19:01] <kinglozzer> r3v3rb: Ah 2.4, never used 2.4 so don't have a clue :D
1041: [13:19:14] <r3v3rb> nope 3.1 but using old fashioned way :P
1042: [13:19:18] <oceanmountain> haha, why push?
1043: [13:19:32] <oceanmountain> return new FieldList (); would do
1044: [13:19:35] <r3v3rb> was the old way to populate edit fields for Popup
1045: [13:19:40] <r3v3rb> afaik
1046: [13:20:22] <oceanmountain> I know, in ss2.4
1047: [13:20:25] <oceanmountain> but we aint living in the past :D
1048: [13:20:46] <oceanmountain> and with fieldlist you dont have to remove stuff, just add them
1049: [13:21:28] <r3v3rb> oceanmountain: but when using with gridfield for some reason all fields get listed regardless of whats in the getCMSFields stuff
1050: [13:21:47] <r3v3rb> this is for adding a DO to a gridfield in 3.1
1051: [13:22:15] * funkygibbon quit (Quit: Leaving)
1052: [13:22:23] <oceanmountain> I use css to hide the SortOrder fields and stuff like that
1053: [13:22:44] <oceanmountain> display: none; works like a charm
1054: [13:23:03] <r3v3rb> oceanmountain: i guess I could but thats just as hacky :D
1055: [13:23:23] <oceanmountain> well, the client wont notice
1056: [13:23:27] <r3v3rb> lmao
1057: [13:23:29] <oceanmountain> :D
1058: [13:23:48] <kinglozzer> I didn't even realise getCMSFields_forpopup was a thing in 3.1 :P
1059: [13:23:52] <UndefinedOffset> oceanmountain removeByName to zap fields or removeFieldFromTab i think it is for fields from tabs if they share a name with a tab :P atleast thats the way it was is < 3.1 lol
1060: [13:24:16] <r3v3rb> its probably not kinglozzer :P
1061: [13:24:23] <r3v3rb> I copy/pasted from an old site
1062: [13:24:47] <oceanmountain> $fields->removeByName('MyField'); works like it should in SS3.0.5
1063: [13:25:08] <kinglozzer> r3v3rb: Are you sure you should be using _forPopup() then? :P
1064: [13:25:13] <oceanmountain> or $fields->removeFieldFromTab('Root.MyTab', 'MyField');
1065: [13:25:15] <UndefinedOffset> wasn't getCMSFields_forpopup a DOM thing? I've always used getCMSFields() which works in 3.0 anyways
1066: [13:25:21] <oceanmountain> removeByName removes a whole tab btw
1067: [13:25:25] <oceanmountain> I just realize that
1068: [13:25:35] <UndefinedOffset> oceanmountain mm :)
1069: [13:26:05] * UndefinedOffset quit (Read error: Connection reset by peer)
1070: [13:26:41] <oceanmountain> LMOA, getCMSFields() would be the proper way of doing it
1071: [13:26:57] <oceanmountain> just noticed that the 'hidden' fields, like SortOrder and Page dont show in the DOM
1072: [13:27:01] * tomspeak quit ()
1073: [13:27:51] <r3v3rb> fixed, just use the normal way from getCMSFields… tch!
1074: [13:28:08] <r3v3rb> lesson one today: do not copy paste code between 2.4 & 3.1
1075: [13:28:10] <oceanmountain> encode(utf8)
1076: [13:28:14] <oceanmountain> :P
1077: [13:33:31] * ben__ quit (Quit: Page closed)
1078: [13:35:08] * mattybalaam quit (Quit: mattybalaam)
1079: [13:38:25] <r3v3rb> ok, TreeDropdownField - why can it not have an empty option!
1080: [13:38:34] * swordsmanz has joined #silverstripe
1081: [13:38:43] <r3v3rb> what if I don't want to select an item in the drop down… :(
1082: [13:39:28] * mattybalaam has joined #silverstripe
1083: [13:39:32] <oceanmountain> isnt it empty by default?
1084: [13:39:43] <oceanmountain> it should have an 'x' to clear the field
1085: [13:39:44] <r3v3rb> as soon as I save it selects the first item...
1086: [13:39:52] <r3v3rb> oceanmountain: not in my current view
1087: [13:40:01] <oceanmountain> what is your code?
1088: [13:40:18] <r3v3rb> $fields->addFieldToTab('Root.Main', new TreeDropdownField('AdLinkID', 'Advert links to', 'Page'));
1089: [13:40:37] <oceanmountain> AdLink.ID
1090: [13:40:38] <oceanmountain> ?
1091: [13:40:39] <r3v3rb> but I want them to be able to 'not' choose a page if necessary
1092: [13:40:42] <oceanmountain> perhaps
1093: [13:41:46] <r3v3rb> interesting taking out Treedropdown and letting the cms add the default dropdown works
1094: [13:42:28] <oceanmountain> what kind of field are you using? DropdownField?
1095: [13:42:39] <r3v3rb> it was TreeDropdown
1096: [13:43:00] <r3v3rb> now I'm not adding one but the cms populates a standard dropdown due to the field existing
1097: [13:45:09] <oceanmountain> because you use push to add the fields an not fieldlist?
1098: [13:45:40] <r3v3rb> no, not using push any more corrected that ages ago!
1099: [13:45:43] <r3v3rb> heh
1100: [13:45:47] <oceanmountain> haha
1101: [13:45:53] <oceanmountain> 'aaages' ;)
1102: [13:46:38] <oceanmountain> this works like a charm for me
1103: [13:46:39] <oceanmountain> http://sspaste.com/paste/show/51caf04f0a9c8
1104: [13:46:39] * obbo has joined #silverstripe
1105: [13:46:53] <oceanmountain> nicely populated treedropdownfield there
1106: [13:47:14] <obbo> hello, is there any search filters that handle greater than or equal to and less than or equal to?
1107: [13:47:38] <obbo> i'm trying to have scaffolded search for start date and end date be inclusive
1108: [13:52:31] <r3v3rb> oceanmountain: yes, but as soon as you save the DO it will automatically 'choose' to select the first item - what if I want the user to leave it empty… or unselected...
1109: [13:53:09] <oceanmountain> I can save it as much as I like
1110: [13:53:21] <oceanmountain> it stays empty: (Choose)
1111: [13:54:06] <r3v3rb> not in this version of 3.1 for me it doesn't
1112: [13:54:15] <oceanmountain> ah, I am on 3.0.5
1113: [13:55:42] <r3v3rb> also using Field.ID doesn;t save the relation
1114: [13:55:47] <r3v3rb> FieldID does
1115: [13:56:00] <r3v3rb> hmm
1116: [13:56:04] <oceanmountain> hmm, you are right
1117: [13:56:21] <oceanmountain> whohoo, I need more coffee and nicotine
1118: [13:56:43] <r3v3rb> :)
1119: [13:56:56] <r3v3rb> i just need a working solution :D and coffee
1120: [13:57:45] <oceanmountain> haha
1121: [13:58:00] <r3v3rb> who wants a challenge then to fix up a drop down with a empty selection after saving?
1122: [13:58:04] <oceanmountain> well even with FieldID it keeps empty when I dont pick anything
1123: [13:58:10] <r3v3rb> pants!
1124: [13:58:23] <oceanmountain> keeps = stays*
1125: [13:59:04] <oceanmountain> hm, however once I choosed a page I cannot unselect it anymore
1126: [13:59:09] <r3v3rb> oceanmountain: is that being used in a gridfield?
1127: [13:59:21] <oceanmountain> yes gridfield but ss3.0.5
1128: [13:59:25] <r3v3rb> hmmm
1129: [13:59:30] <oceanmountain> it stays empty as long as I dont choose a page to link to
1130: [13:59:52] <oceanmountain> once selected fro mthe treedropdown and saved it wont give me the option for a blank anymore
1131: [14:00:27] <r3v3rb> nope, as soon as I save the DO in 3.1 it will automatically 'choose' the first item in the tree
1132: [14:00:39] <r3v3rb> :(
1133: [14:00:51] <oceanmountain> the first option in 3.0.5 stays (Choose) untill I select
1134: [14:01:03] <oceanmountain> does it give you a blank option if you first create a new DO?
1135: [14:01:12] <r3v3rb> sure, not that way anymore in 3.1 :(
1136: [14:01:25] <r3v3rb> oceanmountain: yes it has 'select'
1137: [14:01:47] <r3v3rb> but then on saving will show the first item as the selected item thereafter
1138: [14:01:54] <oceanmountain> ah its 'Kies' here (dutch version)
1139: [14:02:08] <r3v3rb> and no option to remove with an 'x'
1140: [14:02:37] <oceanmountain> I lost the x aswell once I changed Field.ID to FieldID
1141: [14:02:51] <oceanmountain> but atleast it saves the link now
1142: [14:05:06] <r3v3rb> hmm, maybe I'll use a ListFIeld instead :D
1143: [14:05:24] <oceanmountain> haha, it still has the same problem r3v3rb liek I told you
1144: [14:05:32] <oceanmountain> it is in line 180 of TreeDropdownField.php
1145: [14:05:40] <r3v3rb> que?
1146: [14:06:06] <oceanmountain> the missing 'Choose' option
1147: [14:06:10] <oceanmountain> anyway, time for a smoke
1148: [14:06:11] <oceanmountain> brb
1149: [14:06:37] <kinglozzer> oceanmountain: The TreeDropdownField can be unselected, you have to click the already selected item to unselect it
1150: [14:07:00] <r3v3rb> kinglozzer: really… but can you save with no selection?
1151: [14:07:06] <kinglozzer> Unless I'm going mad
1152: [14:07:14] <kinglozzer> r3v3rb: Yeah I think so
1153: [14:08:10] <r3v3rb> kinglozzer: 3.1 automatically shows first item as chosen after save
1154: [14:10:13] <r3v3rb> TreeDropdown doesn't have ->setEmptyString though so I think not
1155: [14:10:40] <kinglozzer> Doesn't for me
1156: [14:10:49] <kinglozzer> Just checked with a Page $has_one Page
1157: [14:11:23] <kinglozzer> It doesn't have an empty string, it just says '(Choose)' by default
1158: [14:12:01] <kinglozzer> http://i.imgur.com/UglMlfw.jpg
1159: [14:12:07] * obbo quit (Quit: Page closed)
1160: [14:12:24] <kinglozzer> It stays like that even after I save it
1161: [14:12:57] <r3v3rb> using this: http://www.sspaste.com/paste/show/51caf677bda3a
1162: [14:13:10] <r3v3rb> will always save dropdown with first item selected
1163: [14:14:09] <kinglozzer> Ah that's a dropdownfield, not a treedropdownfield
1164: [14:14:10] <r3v3rb> if I switch to $drop = new TreeDropdownField('AdLinkID', 'Advert Link', 'Page'); still the same
1165: [14:14:16] <r3v3rb> lol :D
1166: [14:14:22] <kinglozzer> :P
1167: [14:14:50] <r3v3rb> 3.10beta3
1168: [14:14:56] <r3v3rb> seems funky
1169: [14:15:42] <kinglozzer> r3v3rb: http://api.silverstripe.org/3.1/source-class-DropdownField.html#154
1170: [14:15:50] <kinglozzer> It's saying is_object($source)
1171: [14:15:59] <kinglozzer> Your source in sspaste was an array
1172: [14:16:08] <kinglozzer> Perhaps that's why it's not working?
1173: [14:16:08] <r3v3rb> doh!
1174: [14:16:11] <r3v3rb> mebbe
1175: [14:16:26] * ARNHOE has joined #silverstripe
1176: [14:16:39] <r3v3rb> $drop = new TreeDropdownField('AdLinkID', 'Advert Link', 'Page') is object though and still not working
1177: [14:17:06] <kinglozzer> r3v3rb: 'Page' is a string there
1178: [14:17:17] <kinglozzer> Try $drop = new TreeDropdownField('AdLinkID', 'Advert Link', SiteTree::get());
1179: [14:17:56] <kinglozzer> Hmm
1180: [14:18:00] <kinglozzer> It should work even with an array anyway :/
1181: [14:19:25] <r3v3rb> kinglozzer: ready?
1182: [14:19:37] <r3v3rb> [User Error] singleton() passed bad class_name: DataList::__set_state(array( 'dataClass' => 'SiteTree', 'dataQuery' => DataQuery::__set_state(array( 'dataClass' => 'SiteTree', 'query' => SQLQuery::__set_state(array( 'select' => array ( ), 'from' => array ( 'SiteTree' => '"SiteTree"', ), 'where' => array ( ), 'orderby' => array ( '"Sort"' => 'ASC', ), 'groupby' => array ( ), 'having' => array ( ), 'limit' => array ( ), 'distinct' =>
1183: [14:19:37] <r3v3rb> true, 'delete' => false, 'connective' => 'AND', 'replacementsOld' => array ( ), 'replacementsNew' => array ( ), )), 'collidingFields' => array ( ), 'queriedColumns' => NULL, 'queryFinalised' => false, 'querySubclasses' => true, 'filterByClassName' => true, 'queryParams' => NULL, )), 'model' => DataModel::__set_state(array( 'customDataLists' => array ( ), )), 'inAlterDataQueryCall' => false, 'failover' => NULL, 'customisedObject' =>
1184: [14:19:38] <r3v3rb> NULL, 'objCache' => array ( ), 'class' => 'DataList', 'extension_instances' => array ( ), ))
1185: [14:22:36] <kinglozzer> r3v3rb: Try changing $drop->setEmptyString('Choose an Item'); to $drop = $drop->setEmptyString('Choose an Item');
1186: [14:22:44] <kinglozzer> Add the $drop = to the start
1187: [14:22:53] <r3v3rb> que?
1188: [14:22:56] <oceanmountain> bk
1189: [14:23:07] <kinglozzer> The line in the sspaste: $drop->setEmptyString('Choose an Item');
1190: [14:23:16] <kinglozzer> Add '$drop = ' to the start of that line :P
1191: [14:24:02] <r3v3rb> aye, still no worky
1192: [14:24:26] <kinglozzer> r3v3rb: I'd try to debug this 'if' statement $drop->setEmptyString('Choose an Item');
1193: [14:24:28] <r3v3rb> if I choose 'Choose an Item' and save the dropdown reverts to the first item in the list on saving
1194: [14:24:29] <kinglozzer> Oops
1195: [14:24:30] <kinglozzer> http://api.silverstripe.org/3.1/source-class-DropdownField.html#163
1196: [14:24:53] <kinglozzer> Even if you pick one, it goes back to the first?
1197: [14:25:10] <kinglozzer> Sounds like the relationship isn't set up right
1198: [14:25:16] <r3v3rb> npe if I chose an item it stays with that one
1199: [14:25:21] <kinglozzer> Oh
1200: [14:25:21] <kinglozzer> :P
1201: [14:25:49] <oceanmountain> kinglozzer, thnx for pointing out that clicking the selected page from treedropdown deselects it, for me it works
1202: [14:25:53] <oceanmountain> r3v3rb still has issues?
1203: [14:25:59] * RojoD is now known as rojod|WORK
1204: [14:26:06] <kinglozzer> r3v3rb: Can you paste the relationship as well?
1205: [14:26:10] <kinglozzer> The $has_one
1206: [14:26:16] <r3v3rb> ssshhh… ;P
1207: [14:26:27] * r3v3rb is thunking
1208: [14:31:09] <r3v3rb> :P needed a many_many on the containing page to keep the relation
1209: [14:31:20] <r3v3rb> not a has_many
1210: [14:31:27] <r3v3rb> don't ask me why but it works!
1211: [14:31:57] <kinglozzer> r3v3rb: So you've got a has_one on one end, and a many_many on the other end?!
1212: [14:32:03] <r3v3rb> no
1213: [14:32:06] <r3v3rb> :)
1214: [14:32:19] <r3v3rb> the AdLink is a $has_one to a Page
1215: [14:32:27] <r3v3rb> Page doesn't have a $has_many
1216: [14:32:32] <r3v3rb> to AdLink
1217: [14:32:51] <r3v3rb> I could use 'Int' to be honest I guess as all I am storing is an ID
1218: [14:33:38] <kinglozzer> r3v3rb: I did something similar with 'offers' instead of ads
1219: [14:33:49] <r3v3rb> its confusing as hell
1220: [14:33:50] <r3v3rb> :D
1221: [14:33:51] <kinglozzer> Offer $has_one Page, Page $has_many Offers
1222: [14:34:05] <kinglozzer> That way, if you ever need to loop through the offers that a page has, you can :D
1223: [14:35:10] <r3v3rb> I know that! lol
1224: [14:35:56] <r3v3rb> this is to create a link so an ad panel can create a 'click' through link to another page on the site - I have switched to storing an Int instead and its working fine
1225: [14:36:21] <r3v3rb> by choosing a page in the dropdown that the ad links too
1226: [14:36:46] <r3v3rb> no relation needed as I now have a custom function to return the link based on the stored ID
1227: [14:36:50] <r3v3rb> in the Int
1228: [14:37:10] <kinglozzer> Ah cool :)
1229: [14:37:20] <r3v3rb> my brian is frazzled
1230: [14:37:34] <r3v3rb> spent last night installing/learning : project anarchy
1231: [14:37:42] <r3v3rb> was up way tooooooo late
1232: [14:37:46] <r3v3rb> like 3am late
1233: [14:39:45] <kinglozzer> Lol, I know the feeling
1234: [14:57:26] * Nivery has joined #silverstripe
1235: [15:10:42] * PigeonFriend quit ()
1236: [15:11:13] * catcher has joined #silverstripe
1237: [15:13:32] <Nivery> when i change the inheritance of a class from extending data object directly to extending a different class that extends data object (sorry for how verbose that sounds), a gridfield that displays all of the instances of that class (via ClassName::get()) stops working even after a dev/build and cms flush
1238: [15:14:00] <Nivery> anyone have an idea as to why?
1239: [15:16:49] <catcher> Nivery, 'stops working' in what way?
1240: [15:17:28] <Nivery> catcher, it stops displaying the instances of that class
1241: [15:17:33] <Nivery> sorry, that was ambiguous
1242: [15:17:45] <catcher> Nivery, the records don't exist in the new parent class.
1243: [15:18:24] <catcher> If you add a new one, you'll see it (and only it) in your GF.
1244: [15:19:10] <catcher> more accurately, the records don't exist in the new parent table.
1245: [15:19:11] * kerosene has joined #silverstripe
1246: [15:19:23] <AlphaCactus> could you write a little task to load em all up and write()?
1247: [15:20:03] <Nivery> catcher, so if i wanted to have old instances work correctly, i'd have to write a function to create new objects… what Alpha said
1248: [15:20:07] <catcher> As long as the IDs match up..
1249: [15:20:49] <catcher> Nivery, yes, though it may be easier to do it in sql.
1250: [15:21:36] <catcher> insert into parent (field1, field2...) select field1, field2 from child
1251: [15:22:00] <Nivery> catcher, i think i will give that a try
1252: [15:22:01] <Nivery> thank you
1253: [15:22:14] <catcher> np, watch the IDs!
1254: [15:24:39] * kerosene quit (Read error: Connection reset by peer)
1255: [15:27:31] * kerosene has joined #silverstripe
1256: [15:37:53] * maknz quit (Ping timeout: 256 seconds)
1257: [15:40:15] * kinglozzer quit (Ping timeout: 246 seconds)
1258: [15:42:54] * kinglozzer has joined #silverstripe
1259: [15:50:25] * kinglozzer quit (Remote host closed the connection)
1260: [16:40:01] * r3v3rb quit (Quit: r3v3rb)
1261: [16:41:17] * r3v3rb has joined #silverstripe
1262: [16:41:34] * SphereSilverNL has joined #silverstripe
1263: [17:00:56] * Colin[pi] has joined #silverstripe
1264: [17:04:21] * lietzmk has joined #silverstripe
1265: [17:09:27] * wmk quit (Ping timeout: 241 seconds)
1266: [17:10:31] * r3v3rb quit (Quit: r3v3rb)
1267: [17:12:06] * oleze has joined #silverstripe
1268: [17:12:27] <oleze> FrozenFire: Are you currently here?
1269: [17:12:36] <FrozenFire> In some fashion
1270: [17:12:47] <oleze> :-D.
1271: [17:13:12] <oleze> Tried your code: http://www.sspaste.com/paste/show/51bf791e4f8b2 for Translatable SiteTree objects in ModelAdmin
1272: [17:13:14] <FrozenFire> Might want to get that mole checked
1273: [17:13:23] <oleze> seems the "createtranslation" method doesn't get called
1274: [17:13:29] <oleze> any idea?
1275: [17:13:39] <FrozenFire> Let's see your code for setting it on your GridField
1276: [17:16:29] <oleze> http://www.sspaste.com/paste/show/51cb2178d2975
1277: [17:16:40] <oleze> That's what I'm doing on the edit form
1278: [17:17:23] * micmania1 quit (Ping timeout: 250 seconds)
1279: [17:18:37] <FrozenFire> And what does the TranslatableGridFieldDetailForm look like?
1280: [17:19:29] <oleze> http://www.sspaste.com/paste/show/51cb223021e1c
1281: [17:19:52] <oleze> The versioning via VersionedGridFieldDetailForm works perfectly
1282: [17:20:57] <FrozenFire> I don't see where you're setting your ItemRequestClass on the detail form
1283: [17:23:04] <oleze> I should add these two lines to getEditForm? http://www.sspaste.com/paste/show/51cb22f8dfb64
1284: [17:23:46] <FrozenFire> Yep
1285: [17:23:59] <FrozenFire> Assuming that the versioned stuff doesn't use its own
1286: [17:25:06] <oleze> Having an internal server error as soon as I click the ModelAdmin
1287: [17:25:34] <oleze> sorry that was my fault
1288: [17:27:37] <oleze> Weird: Getting a log mail with: Uncaught ReflectionException: Class Translatable_ItemRequest does not exist
1289: [17:28:03] <oleze> when I click on an object to get the edit form
1290: [17:28:14] * rved quit (Quit: rved)
1291: [17:28:25] * tv_ has joined #silverstripe
1292: [17:29:50] <tv_> Composer is driving me crazy! Does anyone know why when I create a 3.1.x-dev project and then run composer update it switches me to the master-dev branch. In the master-dev branch the Create Page button in the admin is disabled so I can't move forward.
1293: [17:32:12] <tv_> Any thoughts on why Composer would be switching branches ( from 3.1.x-dev to master-dev ) on me?
1294: [17:32:24] <tv_> When I run composer update?
1295: [17:32:34] * Error404NotFound has joined #silverstripe
1296: [17:32:45] * rved has joined #silverstripe
1297: [17:38:02] * chillu quit (Quit: chillu)
1298: [17:38:49] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
1299: [17:43:02] * Nivery quit (Quit: Nivery)
1300: [17:43:23] * tv_ quit (Ping timeout: 250 seconds)
1301: [17:45:40] <SphereSilverNL> Probably because you have master-dev somewhere in a composer.json?
1302: [17:50:45] <SphereSilverNL> I've been debugging an issue for about an hour now, why won't the image show up?!
1303: [17:50:49] <SphereSilverNL> Then it hit me...
1304: [17:50:51] * Nivery has joined #silverstripe
1305: [17:51:15] <SphereSilverNL> This database doesn't have the images I'm testing in it's file-table
1306: [17:53:37] * Nivery quit (Client Quit)
1307: [17:56:46] * chillu has joined #silverstripe
1308: [17:58:33] * oleze quit (Ping timeout: 250 seconds)
1309: [17:59:19] * rved quit (Quit: rved)
1310: [17:59:49] * rved has joined #silverstripe
1311: [18:00:02] <SphereSilverNL> Is it monday somewhere?
1312: [18:08:09] * ARNHOE quit (Remote host closed the connection)
1313: [18:09:43] * Colin[pi] quit (Ping timeout: 256 seconds)
1314: [18:13:09] <catcher> What would be the most straightforward way to group an arraylist by the first letter of a field?
1315: [18:13:28] <SphereSilverNL> GroupedList::create(YourArrayList)
1316: [18:13:29] <catcher> i.e. an ArrayList of people, grouped by the first letter of their last name
1317: [18:13:46] <SphereSilverNL> and in the array-list, have a function that returns the first letter of the last name
1318: [18:13:58] <SphereSilverNL> Is it an array-list or a DataObject?
1319: [18:14:08] <catcher> arraylist
1320: [18:14:36] <SphereSilverNL> You seen the documentation?
1321: [18:14:52] <SphereSilverNL> http://doc.silverstripe.org/framework/en/howto/grouping-dataobjectsets
1322: [18:14:59] <catcher> just did now, there's even such an example. Awesome
1323: [18:15:16] <SphereSilverNL> I think, best method, is to create a virtual DO, if you don't want to store or fetch
1324: [18:15:25] <SphereSilverNL> yes, your question is LITERALLY the example :D
1325: [18:15:59] <catcher> except mine is a true arraylist, coming from a restful request. hrm..
1326: [18:22:45] <SphereSilverNL> Create a virtual DO for it?
1327: [18:22:48] * rved quit (Quit: rved)
1328: [18:23:05] <catcher> looping through the entire set on each request?
1329: [18:23:10] <SphereSilverNL> You can just run GroupedList on an ArrayList, but the sorting-by-first would be tricky
1330: [18:23:40] <SphereSilverNL> I think, your best method would be to sort and loop them manually I guess
1331: [18:24:34] * rved has joined #silverstripe
1332: [18:25:25] <SphereSilverNL> Hmmm, can I detect if a user has javascript enabled on the serverside?
1333: [18:27:02] <catcher> SphereSilverNL, you can't, not reliably anyway
1334: [18:27:20] <SphereSilverNL> Bummer. Ah well, it's ok, no biggy :)
1335: [18:27:41] * r3v3rb has joined #silverstripe
1336: [18:28:45] <SphereSilverNL> I'm losing control over the release-numbering :P
1337: [18:38:25] * oddnoc quit (Quit: sleeping...)
1338: [18:45:18] * zfmf1 has joined #silverstripe
1339: [18:49:55] * rojod|WORK is now known as RojoD
1340: [19:08:05] * Webdoc has joined #silverstripe
1341: [19:10:20] <Webdoc> hi can i somehow control the current colale on ss2.4 so that if current locale is en_US it shows only $Field_US if current locale is ru_RU then it shows $Field_RU
1342: [19:10:33] <Webdoc> locale i mean
1343: [19:10:55] <Webdoc> and so on
1344: [19:20:17] * UndefinedOffset has joined #silverstripe
1345: [19:22:27] * wmk has joined #silverstripe
1346: [19:24:05] <Webdoc> can anyone help me with that
1347: [19:27:28] <Webdoc> Can i somehow control locale on template so that if my current locale is en_US its shows $Field_EN. if my current locale is ru_RU its shows $Field_RU
1348: [19:27:50] <Webdoc> is it even possible or not
1349: [19:27:52] <wmk> Webdoc, not in the template but with getter function
1350: [19:28:12] <wmk> there is a translatable dataobjects extension by unclecheese which deals with that
1351: [19:29:41] <Webdoc> i have fields in my dataobject code like so Objactname, Objectname_Ru, And Objectname_EN
1352: [19:30:30] <Webdoc> So i only insert the objects in one language but it shows diffrent names in locales
1353: [19:30:35] <wmk> Webdoc, https://github.com/unclecheese/TranslatableDataObject and http://www.leftandmain.com/silverstripe-tips/2012/04/03/translatabledataobject-insanely-simple-translation/ should give you some direction
1354: [19:33:05] <Webdoc> where i put it
1355: [19:33:22] <Webdoc> to mysite/code folder?
1356: [19:33:27] <wmk> yup
1357: [19:33:34] <wmk> as it's just a file, not a module
1358: [19:36:30] * mattybalaam quit (Quit: mattybalaam)
1359: [19:37:23] * mattybalaam has joined #silverstripe
1360: [19:38:26] * mattybalaam quit (Client Quit)
1361: [19:38:46] <Webdoc> foreach($this->getTranslationFields("Title") as $field) { 6 $f->addFieldToTab("Root.Titles", $field); 7 }
1362: [19:39:17] <Webdoc> this i need to put where in my dataobject? inside popup?
1363: [19:40:11] <Webdoc> or after the fileds
1364: [19:40:16] <Webdoc> like a function
1365: [19:40:19] <Webdoc> ?
1366: [19:40:54] * SightUnseen has joined #silverstripe
1367: [19:40:57] * andrew_____ has joined #silverstripe
1368: [19:41:05] * SightUnseen has left #silverstripe
1369: [19:43:02] <andrew_____> Morning, can some one help me with a logo issue? im new to learning silverstripe coding... logo appears on home page... but does'nt show on any other???? http://ticklenetwork.co.nz/silverstripe/
1370: [19:43:55] <simon_w> andrew_____, you're missing your <% base_tag %>
1371: [19:44:11] <simon_w> and then you just make the img's src path relative to the base of the site
1372: [19:44:37] <Webdoc> use themes/Tickle/images/tickle_edited-1.png for image src
1373: [19:44:48] <Webdoc> it should work
1374: [19:45:55] <UndefinedOffset> Webdoc you could also use $ThemeDir/images/tickle_edited-1png as well
1375: [19:46:09] <simon_w> almost
1376: [19:46:09] <Webdoc> yup
1377: [19:46:21] * Peavers has joined #silverstripe
1378: [19:46:32] <simon_w> Still, it's just the base tag that's needed
1379: [19:46:43] <UndefinedOffset> mm true :)
1380: [19:48:40] <Webdoc> how i insert the TranslatableDataObject - foreach($this->getTranslationFields("Title") as $field) { 6 $f->addFieldToTab("Root.Titles", $field); 7 } code if i usecode like so public function getCMSFields_forPopup() { return new FieldSet( new TextField('Title', 'Title'),
1381: [19:49:32] * mobiusnz has joined #silverstripe
1382: [19:50:32] * CodeTrap has joined #silverstripe
1383: [19:52:27] <andrew_____> sorry where does base tag sit? lol is does it fo in the header? cos its still not working :S think more youtube tutorials are needed haha
1384: [19:52:44] <simon_w> andrew_____, it goes in the <head>
1385: [19:54:17] * mobiusnz quit (Client Quit)
1386: [19:55:02] <Webdoc> simon_w: can you help me with TranslatableDataObject
1387: [19:55:09] <andrew_____> Sorted :) Thanks @simon_w, and others... one last question... the code for drop down nav menu?
1388: [19:55:22] * Motoservo has joined #silverstripe
1389: [19:55:35] <Webdoc> 3.0 or 2.4 ss
1390: [19:56:04] <Webdoc> andrew_____: what version u using
1391: [19:56:11] <simon_w> Webdoc, doubt it.
1392: [19:56:23] <simon_w> andrew_____, just any generic HTML one. Isn't SS specific.
1393: [19:56:42] <andrew_____> i think its 3. il check
1394: [19:57:20] <Webdoc> http://blog.arvixe.com/how-to-make-dropdown-menu-for-silverstripe-cms-theme/
1395: [19:57:46] <Webdoc> just cahnde control to loop then if you using 3.0
1396: [19:57:53] <Webdoc> chamnge i mean
1397: [19:57:59] <simon_w> Zauberfisch|idle, you really should stop with the flushing the template for every single request :p
1398: [19:58:16] <Zauberfisch|idle> simon_w why?
1399: [19:59:00] <simon_w> Because you don't need to do it
1400: [19:59:15] <simon_w> And it's a massive slow down
1401: [20:00:06] <simon_w> Heck, you don't even need to do a normal flush with template changes anymore
1402: [20:01:08] * wmk quit (Read error: Connection reset by peer)
1403: [20:01:21] * ARNHOE has joined #silverstripe
1404: [20:01:47] * wmk has joined #silverstripe
1405: [20:03:29] * gelignite has joined #silverstripe
1406: [20:05:20] <andrew_____> http://blog.arvixe.com/how-to-make-dropdown-menu-for-silverstripe-cms-theme/ tried it. and not working.....
1407: [20:06:07] <ARNHOE> did u flush?
1408: [20:06:13] <andrew_____> yes
1409: [20:06:24] <ARNHOE> what doesnt work?
1410: [20:06:42] * Werner_2_ has joined #silverstripe
1411: [20:06:48] <andrew_____> no drop down apears
1412: [20:07:02] <ARNHOE> what silverstripe version?
1413: [20:07:20] * wmk quit (Read error: No route to host)
1414: [20:07:23] <andrew_____> 3.0
1415: [20:07:25] <ARNHOE> besides, are there any menus if you check the sourcE?
1416: [20:07:37] <ARNHOE> oke 3.0, then change control to loop and end_control to end_loop
1417: [20:07:41] <simon_w> ARNHOE, http://logs.simon.geek.nz/index.php?date=2013-06-27#7_43 and down
1418: [20:08:03] <UndefinedOffset> looks like your html is bad http://validator.w3.org/check?uri=http%3A%2F%2Fticklenetwork.co.nz%2Fsilverstripe%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
1419: [20:09:13] <ARNHOE> and down?
1420: [20:09:32] <simon_w> ARNHOE, that line and down.
1421: [20:09:35] <ARNHOE> also, andrew_____ http://ticklenetwork.co.nz/silverstripe/ the children seem to show up, seems like a styling issue
1422: [20:09:46] <ARNHOE> simon_w: ah yeah, I read that just didnt entirely understand what you meant with and down
1423: [20:10:56] <UndefinedOffset> my hunch, its the way the unordered lists are nested, shouldn't the child unordered list be a child of the list item not the top unordered list (per what the validator is complaining about)
1424: [20:11:02] <ARNHOE> andrew_____: You only used the html, in order to get the dropdown working you need to use the css aswell
1425: [20:12:26] <ARNHOE> also, you still seem to forget to add the base_tag that simon_w told you to add
1426: [20:12:38] <Webdoc> andrew_____: how did u include the menu
1427: [20:12:45] <Webdoc> u have both old and new
1428: [20:13:03] <ARNHOE> Webdoc: he didnt add the styling
1429: [20:13:08] <ARNHOE> the children are showing up
1430: [20:13:09] * UndefinedOffset quit (Quit: Leaving.)
1431: [20:13:10] <ARNHOE> in the source
1432: [20:14:46] <Webdoc> ARNHOE: nop his menu doubled
1433: [20:15:02] <ARNHOE> he is probably testing them
1434: [20:15:02] <Webdoc> menu with no childs and with childs
1435: [20:15:28] <ARNHOE> and have them both, but he doesnt have the stlying that the tutorial tells him to use in his css file
1436: [20:15:34] <ARNHOE> so no way the dropdown is going to work
1437: [20:15:47] <andrew_____> Like i said im still learning this stuff haha. So in the page.ss i have... </div> <div class="wrapper row2"> <nav id="topnav" class="clear"> <ul> <% include Navigation %> </ul> thats it.. do i need anything else there?
1438: [20:16:01] * r3v3rb quit (Quit: r3v3rb)
1439: [20:16:02] <andrew_____> then in Navigation.ss i have <% loop Menu(1) %> <li id="nav_{$Pos}" class="$LinkingMode"><a href="$link"><span>$MenuTitle</span></a></li> <% end_loop %> <ul class="menu"> <% loop Menu(1) %> <li><a class="$LinkingMode" href="$Link" title="$Title.XML" alt="$Title.XML" style="text-transform:uppercase;">$MenuTitle</a> <% if Children %> <ul> <% loop Children %> <li><a class="$LinkingMode" href="$Link" title="$Title.XML"
1440: [20:16:04] <Webdoc> andrew_____: nop
1441: [20:16:12] <ARNHOE> andrew_____: http://blog.arvixe.com/how-to-make-dropdown-menu-for-silverstripe-cms-theme/ you need to do step 2 first
1442: [20:16:17] <andrew_____> so what the hell have i done wrong... *frustrating*
1443: [20:16:27] <ARNHOE> and remove everything in navigation.ss before <ul class
1444: [20:16:41] <ARNHOE> <% loop Menu(1) %> <li id="nav_{$Pos}" class="$LinkingMode"><a href="$link"><span>$MenuTitle</span></a></li> <% end_loop %>
1445: [20:16:44] <ARNHOE> should be removed
1446: [20:17:34] <Webdoc> u have div with nav inside there insert <% include Navigation %> only without UL start and end
1447: [20:17:52] * zippy__ has joined #silverstripe
1448: [20:18:01] <andrew_____> Then nav bar has disappeared after taking the code out
1449: [20:18:12] <ARNHOE> yes, because you havent styled the new menu
1450: [20:18:44] <andrew_____> half way there lol
1451: [20:19:28] <ARNHOE> the css that you copied into your css file, you should now style that to your own website
1452: [20:19:38] <andrew_____> cool thanks :)
1453: [20:19:41] <ARNHOE> and then you are done
1454: [20:19:46] <simon_w> Out of caffeine! ss23, bring me some!
1455: [20:20:01] <ARNHOE> also <ul> <% include Navigation %> </ul> , remove ul here it should be only include navigation
1456: [20:20:43] <Webdoc> now you can just change the css and u done andrew_____
1457: [20:21:01] <ARNHOE> hehe Webdoc
1458: [20:21:03] * r3v3rb has joined #silverstripe
1459: [20:21:13] <andrew_____> Just done that. Thats what made it appear. haha, Thanks guys you have been a big help
1460: [20:21:50] <simon_w> Someone really should change the tutorials back to the pre-simple state so they're actually useful again
1461: [20:22:49] <ARNHOE> at the start of my silverstripe "career", I found the tutorials not helping me alot, took me awhile to really understand it. But its hard to really make good tutorials I would say
1462: [20:22:51] <catcher> simon_w, I need to group an ArrayList (by first letter of a field), but the ArrayList is the result of a restful request. What's my best bet?
1463: [20:23:54] <andrew_____> i only started using ss the other day... coding wise... this was the best tutorial that i had found. http://vimeo.com/34760038 I had a go last year, but thought it was way too complicated
1464: [20:25:23] <simon_w> catcher, do the grouping yourself
1465: [20:26:31] <catcher> simon_w, kk. Any known issues with ArrayList->removeDuplicates()? It's removing everything, rather than dups of the 'field' I'm specifying.
1466: [20:27:13] * Peavers quit ()
1467: [20:28:48] <catcher> This type of thing - https://gist.github.com/anonymous/5871314
1468: [20:30:31] <simon_w> removeDuplicates() doesn't return
1469: [20:31:22] <catcher> no, no it doesn't. ty
1470: [20:31:56] * micmania1 has joined #silverstripe
1471: [20:35:28] * r3v3rb has left #silverstripe
1472: [20:35:34] * SphereSilverNL quit (Remote host closed the connection)
1473: [20:35:48] * Peavers has joined #silverstripe
1474: [20:37:11] <Peavers> Morning boys n girls
1475: [20:37:40] * DigNZ has joined #silverstripe
1476: [20:38:01] * CodeTrap quit (Ping timeout: 252 seconds)
1477: [20:38:56] * nickmolhoek has joined #silverstripe
1478: [20:38:57] * nickmolhoek quit (Remote host closed the connection)
1479: [20:39:11] * nickmolhoek has joined #silverstripe
1480: [20:40:10] * ARNHOE quit (Remote host closed the connection)
1481: [20:42:25] <Werner_2_> Peavers, good evening
1482: [20:48:31] * theorytank has joined #silverstripe
1483: [20:50:40] <andrew_____> can someone help me with css. yes i know its not silverstripe coding but its doing my head in
1484: [20:50:56] <simon_w> Hmm, ss23 hasn't brought me any caffeine. Maybe I should get Peavers to instead
1485: [20:51:07] <Peavers> That a joke mate?
1486: [20:51:14] <Peavers> Am I about to get punked?
1487: [20:51:21] <Peavers> is Kutcher gonna jump out any second?
1488: [20:51:28] * Webdoc quit (Quit: Page closed)
1489: [20:51:32] <Peavers> Where are the cameras?
1490: [20:51:39] <simon_w> Well, this can of V hash't done much
1491: [20:52:04] <Peavers> Black coffee is all you need
1492: [20:52:27] <simon_w> bleugh
1493: [20:52:44] * Pyromanik has joined #silverstripe
1494: [20:55:21] <irogue> mornin' all
1495: [21:02:45] <catcher> starting to lose my mind a bit, not sure why this is giving me blank results in the template: https://gist.github.com/anonymous/5871633
1496: [21:03:08] <andrew_____> i have one css issue that i cant find the code for can someone PLEASE HELP http://ticklenetwork.co.nz/silverstripe/ in the nav bar. its got the lines... can someone tell me how to get rid of them?!?!?!
1497: [21:04:08] * LoveDuckie quit ()
1498: [21:04:41] <catcher> andrew_____, ,menu li a has a border-right
1499: [21:05:15] <catcher> .menu li a rather
1500: [21:06:00] <andrew_____> Yet it was so simple. Thank you! :D
1501: [21:06:26] <catcher> np!
1502: [21:10:32] <Pyromanik> dolbre utra irogue
1503: [21:10:38] <micmania1> catcher, you need to set stuff to ArrayData
1504: [21:10:46] <micmania1> Give me 2 mins, I'll mock something up.
1505: [21:11:31] <Peavers> ffs composer.
1506: [21:11:32] <simon_w> catcher, new ArrayList(array_map(function($a) { return new ArrayData($a); } , $peopleByLetter))
1507: [21:11:58] <simon_w> faster micmania1, faster :p
1508: [21:12:58] <Peavers> Failed to clone http://github.com/silverstripe/silverstripe-cms.git
1509: [21:13:19] <Peavers> All my other projects update without issue... just one project won't update =(
1510: [21:16:07] <micmania1> damn you simon_w!!
1511: [21:17:07] <micmania1> catcher, there's my untested solution: https://gist.github.com/anonymous/5871633 ;P
1512: [21:18:55] <catcher> simon_w, anything need to change in my array formation in the foreach? no values in the template yet.
1513: [21:19:37] * gelignite quit (Quit: http://bit.ly/nkczDT)
1514: [21:19:49] <micmania1> simon_w, i'm going to steal that code for future reference :)
1515: [21:20:50] <simon_w> catcher, oh right, ArrayData only handles nested ones.
1516: [21:20:50] <simon_w> catcher, new ArrayList(array_map(function($a) { return new ArrayData(array('People' => new ArrayList($a['People']))); } , $peopleByLetter))
1517: [21:20:59] <simon_w> *nested ArrayDatas
1518: [21:23:09] <catcher> simon_w, gnarly, that does it. Would it be cleaner to form the data differently, or would I end up with something like this anyway?
1519: [21:23:45] * travis-ci has joined #silverstripe
1520: [21:23:45] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#440 (3.1 - bcc09de : Ingo Schommer): The build passed.
1521: [21:23:45] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/aecda4882ba3...bcc09deb0801
1522: [21:23:45] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8480795
1523: [21:23:45] * travis-ci has left #silverstripe
1524: [21:23:55] <simon_w> Well, you could do what micmania1 did and build up the ArrayLists and ArrayDatas as you go
1525: [21:24:18] <catcher> great, thanks simon_w & micmania1
1526: [21:24:53] * pex has joined #silverstripe
1527: [21:26:27] <Pyromanik> 09:10 < Peavers> ffs composer.
1528: [21:26:30] <Pyromanik> ikr
1529: [21:26:38] <Peavers> IKR!
1530: [21:27:07] <Peavers> just had to go through my project removing each folder, running update, removing the next folder, running update, etc etc
1531: [21:27:11] <Peavers> through the entire project.
1532: [21:27:14] <Peavers> What a pain in the arse.
1533: [21:27:38] <Pyromanik> composer so bad.
1534: [21:27:49] <theorytank> hey folks. I think I found a bug in File but was wondering if maybe it was by design. File::validate nevers calls parent::validate() where the $this->extend lives, so no DataExtension's validate method ever gets called (that decorate File). I can't think of a reason for that.
1535: [21:27:53] <Peavers> Finally seem to have to have it working as expected now. whats more annoying is the project is just a clone in the firstplace from my master project which updates fine, and so does every other clone of the master...
1536: [21:28:23] <Pyromanik> theorytank: does anything else live in the parent::validate that file might not like? or is it just the extend call?
1537: [21:28:50] <Pyromanik> Peavers: composer threw errors at me and never worked.
1538: [21:29:13] <Pyromanik> someone explain to me how the payments module works please?
1539: [21:29:14] <Peavers> Composer is great when it works
1540: [21:29:22] <Pyromanik> y6eah I'll bet
1541: [21:29:23] <Pyromanik> but
1542: [21:29:29] <Pyromanik> .gitignore vs submodule
1543: [21:29:30] <simon_w> Pyromanik, it takes your money!
1544: [21:29:32] <Pyromanik> dunno what do
1545: [21:29:35] <Pyromanik> simon_w: haaha
1546: [21:29:37] <Pyromanik> yes but
1547: [21:29:42] <theorytank> Pyromanik: no.. that's about it. The extend call and returning the ValidationResult object (that's been passed around in the extend call)
1548: [21:29:59] <simon_w> Is that the one with all the different gateways?
1549: [21:30:03] <theorytank> 3 lines total.. nothing that would break anything.
1550: [21:30:29] <Peavers> oh gitlab 5.3 is out, this should be fun times ahead...
1551: [21:33:09] * MrJeremy has joined #silverstripe
1552: [21:34:30] <theorytank> trying to write an extension that passes the file through a virus scanner (clamAV) first... hard when you can validate it. Guess I'll tie into the onBeforeWrite but it's sorta ugly... not the write place for sure.
1553: [21:34:43] <theorytank> when you *can't* validate
1554: [21:34:54] * rved quit (Quit: rved)
1555: [21:35:11] * mattybalaam has joined #silverstripe
1556: [21:35:13] * micmania1 quit (Ping timeout: 250 seconds)
1557: [21:37:44] <simon_w> theorytank, pull request :)
1558: [21:37:55] * samthejarvis has joined #silverstripe
1559: [21:38:29] <samthejarvis> wondering if someone knows what to do here: i've added an Extension to the Security class, but in my Security.ss it won't pick up any of the new methods
1560: [21:39:01] <samthejarvis> if i add allowed_actions to the Security class with the extension though, it registers those
1561: [21:39:06] <theorytank> @simon_w: can I do that even when there's no bug in the issues area?
1562: [21:39:19] <simon_w> theorytank, yes
1563: [21:39:25] <theorytank> ok.. will do.. Thanks.
1564: [21:39:52] <simon_w> samthejarvis, Security renders a Page/Page_Controller if you've got the CMS module
1565: [21:40:05] <samthejarvis> ah ok
1566: [21:40:20] <samthejarvis> so i should be applying it to the Page_Controller?
1567: [21:40:58] <samthejarvis> thanks simon :)
1568: [21:41:16] <simon_w> Well, the action methods will still need to be on Security
1569: [21:41:22] <samthejarvis> ah, righto
1570: [21:41:39] <samthejarvis> so i'll need two extensions, gotcha
1571: [21:42:11] <samthejarvis> i'm making a uh, pretty login screen for SS
1572: [21:42:19] <Pyromanik> simon_w: there's only the one payment module that I know of, and yes, people write gateway adaptors to use with it
1573: [21:42:21] <samthejarvis> will release
1574: [21:42:35] <simon_w> Pyromanik, well, I've got no idea how it works
1575: [21:42:44] <simon_w> But those gateways are important
1576: [21:43:23] <Pyromanik> simon_w: this is true. But the cheque one (which should probably be named 'offline-payment') returns as paid, although it more than likely isn't when the transfer goes through.
1577: [21:43:31] <Pyromanik> err, order goes through
1578: [21:43:47] * Werner_2_ quit (Quit: nice to meet you ;))
1579: [21:44:01] <Pyromanik> samthejarvis: 'pretty'?
1580: [21:44:08] <samthejarvis> 'pretty' :)
1581: [21:44:13] <Pyromanik> please define...
1582: [21:44:20] <simon_w> Bah, can't make a PR from the edit button on github
1583: [21:44:25] * SphereSilverNL has joined #silverstripe
1584: [21:44:27] <samthejarvis> i'll get you a screeny
1585: [21:44:50] <Pyromanik> samthejarvis: but... I mean what's with the need to decorate? Templates allow for pretty.
1586: [21:45:01] <Pyromanik> but screenies are good :>
1587: [21:45:11] <Pyromanik> simon_w: you can't?
1588: [21:45:17] <samthejarvis> what's happening here is uh
1589: [21:45:21] <simon_w> Pyromanik, yeah. Just does an edit.
1590: [21:45:26] <Pyromanik> edit button makes a clone of that branch in your account, which you can then PR against
1591: [21:45:43] <simon_w> Not when you have edit rights
1592: [21:45:43] <Pyromanik> at least, when I tried to use it.
1593: [21:45:48] <Pyromanik> simon_w: ah.
1594: [21:45:52] <Pyromanik> lol
1595: [21:46:06] <simon_w> #sscoredevproblems
1596: [21:46:07] <Pyromanik> so you just live edit? JOYS!
1597: [21:46:24] <Pyromanik> simon_w: so I have a site with 2 sites on it
1598: [21:46:27] <Pyromanik> gg subsites
1599: [21:46:33] <Pyromanik> now I need to update one of them, but not the other.
1600: [21:46:34] <samthejarvis> authenticate through ajax (need to add an action to post to), so I can apply some animation
1601: [21:46:39] * SphereSilverNL quit (Remote host closed the connection)
1602: [21:46:48] <Pyromanik> so there's a ss/(second_install) going on atm
1603: [21:46:55] <Pyromanik> that works fine
1604: [21:47:12] <samthejarvis> so, shake for auth fail, shrink in auth success
1605: [21:47:26] <Pyromanik> can I leave it there and do some HTTP_HOST (or whatever) magic in my .htaccess to magic away the ss/ folder with mod_rewrite?
1606: [21:48:17] <Pyromanik> samthejarvis: ah, so you're adding a json endpoint because the normal Security/login is too heavy (full html) for you?
1607: [21:48:25] <samthejarvis> yeah
1608: [21:48:29] <Pyromanik> right.
1609: [21:48:31] <samthejarvis> just, cleanliness
1610: [21:48:31] <Pyromanik> ok.
1611: [21:48:43] <Pyromanik> I hate ajax.
1612: [21:48:55] <samthejarvis> heh, won't be writing too much of it :)
1613: [21:49:00] <Pyromanik> it makes people lazy and terrible at interwebsdevn.
1614: [21:49:15] <samthejarvis> well, tis essential to get the effect I want
1615: [21:49:20] <Pyromanik> tis true.
1616: [21:49:52] <Pyromanik> not saying what you're doing is bad, btw. Just voicing an opinion. Done right ajax logins can be very nice.
1617: [21:50:05] <Pyromanik> cf airnz.com & gog.com
1618: [21:50:24] <samthejarvis> I guarantee this will be very nice hehe
1619: [21:50:45] <Pyromanik> :D
1620: [21:50:55] <simon_w> So much effort for a simple pull request
1621: [21:50:56] <Pyromanik> ...
1622: [21:50:58] <Pyromanik> ps
1623: [21:51:05] <Pyromanik> it's not bootstrap is it -.-
1624: [21:51:10] <samthejarvis> hahah heck no.
1625: [21:51:31] <Pyromanik> :D
1626: [21:51:31] <samthejarvis> frontend frameoworks that provide design are for pussays
1627: [21:51:32] <simon_w> Also, github being slow as balls
1628: [21:51:44] <Pyromanik> samthejarvis: front end frameworks are built to get in the way.
1629: [21:51:54] <Pyromanik> nothing more, nothing less.
1630: [21:52:12] <Pyromanik> simon_w: so, can I magic away a folder depth with mod_rewrite?
1631: [21:52:24] <Pyromanik> or will SS have a 'mare
1632: [21:52:25] <Pyromanik> ?
1633: [21:52:30] <samthejarvis> pyromanik: heh, indeed, i've got a sass library that i've been building on over the years, quite proud
1634: [21:52:33] <Pyromanik> I think probably
1635: [21:52:36] <Zauberfisch|idle> simon_w you don't need to flush templates anymore?
1636: [21:52:41] <simon_w> Pyromanik, yeah. Change framework/main.php to blah/framework/main.php
1637: [21:52:43] <samthejarvis> i'd call that a framework
1638: [21:52:45] <Pyromanik> because assets/blah will have to become ss/assets/blah
1639: [21:53:11] <Pyromanik> samthejarvis: but sass requires ruby :<
1640: [21:53:15] <simon_w> Zauberfisch|idle, only needed to with 2.4 because of includes. They're now cached separately, so can be automatically refreshed on change
1641: [21:53:35] <Zauberfisch|idle> oh, that is cool, I was not aware
1642: [21:53:50] <Zauberfisch|idle> so flush is only used to do:
1643: [21:53:56] <Zauberfisch|idle> - flush manifest
1644: [21:53:59] <Pyromanik> no
1645: [21:54:00] <simon_w> New files, config changes
1646: [21:54:02] <Pyromanik> flush is templates
1647: [21:54:02] <Zauberfisch|idle> - flush generated images
1648: [21:54:08] <Pyromanik> it finds new templates
1649: [21:54:16] <simon_w> Pyromanik, "flush manifest"
1650: [21:54:28] <Pyromanik> ?flush=manifest?
1651: [21:54:29] <Zauberfisch|idle> yep, manifest
1652: [21:54:33] <Pyromanik> o.0
1653: [21:54:34] <Zauberfisch|idle> no, its called manifest
1654: [21:54:39] <Pyromanik> I thought that's what dev/build was for
1655: [21:54:54] <Pyromanik> am I confusing two manifests here?
1656: [21:55:01] <simon_w> dev/build's for building the database and does an implicit flush
1657: [21:55:43] <Zauberfisch|idle> so simon_w can you confirm that its just for manifest and generated images now?
1658: [21:55:48] <samthejarvis> pyromanik: what's your beef with ruby :D
1659: [21:56:27] <simon_w> Zauberfisch|idle, well, it does also force SSViewer to skip its cache, but so does having a higher mtime on the .ss file
1660: [21:56:50] <Zauberfisch|idle> yeah,ofcourse it also flushes template
1661: [21:57:04] <Zauberfisch|idle> but as you pointed out its useless
1662: [21:57:10] <Zauberfisch|idle> so that leaves manifest and images
1663: [21:57:10] <simon_w> Yup
1664: [21:57:26] <simon_w> The one thing to remember in there is the ConfigStatic manifest
1665: [21:57:42] <Zauberfisch|idle> good, thanks for clearing that up and bringing me up to speed
1666: [21:57:57] <simon_w> And that ?flush=all on dev/build never did anything
1667: [21:58:11] <simon_w> Using it there is one of my pet peeves :p
1668: [21:58:15] <Zauberfisch|idle> well, it did in 2.3 didn't it?
1669: [21:58:24] <simon_w> Nope
1670: [21:58:37] <simon_w> SSViewer handled the =all, and dev/ doesn't use it
1671: [21:59:02] <Pyromanik> please what is the point in: RewriteCond %{REQUEST_URI} ^(.*)$
1672: [21:59:04] <Zauberfisch|idle> simon_w I think it is used once
1673: [21:59:14] <Pyromanik> samthejarvis: the people that use it.
1674: [21:59:20] <Pyromanik> for the most part.
1675: [21:59:24] <Zauberfisch|idle> there is one part where there is a check for $_GET['flush'] == 'all'
1676: [21:59:27] <Pyromanik> in fact, pretty much the whole part.
1677: [21:59:28] <simon_w> Pyromanik, the %1 in the next line
1678: [21:59:37] <samthejarvis> Pyromanik: what's your beef with ruby users?
1679: [21:59:38] <Pyromanik> simon_w: oh, so it's capturing.
1680: [21:59:49] <Pyromanik> samthejarvis: they're worse than apple users?
1681: [21:59:59] <Pyromanik> well
1682: [22:00:01] <Pyromanik> hmm
1683: [22:00:05] <Pyromanik> maybe a close second.
1684: [22:00:07] <samthejarvis> haha
1685: [22:00:14] <irogue> truth
1686: [22:00:26] <samthejarvis> well, preprocessors are glorious
1687: [22:00:26] <Pyromanik> truth.
1688: [22:00:34] <samthejarvis> i care not for the rest
1689: [22:00:34] <Pyromanik> this is true.
1690: [22:00:44] <Pyromanik> It's just very unfortunate that the best one runs on ruby.
1691: [22:00:45] <irogue> well
1692: [22:00:51] <irogue> i actualy have no issues with ruby
1693: [22:00:55] <irogue> RoR on the other hand...
1694: [22:00:59] <Pyromanik> hahaha
1695: [22:01:02] <Pyromanik> well this is true.
1696: [22:01:23] <Zauberfisch|idle> irogue keep in mind, ss is RoR flavoured
1697: [22:01:24] <Pyromanik> but by extension... pretty much anything ruby that's worthwhile is either RoR based or RoR oriented
1698: [22:01:36] <Pyromanik> Zauberfisch|idle: sif, Django.
1699: [22:02:08] <irogue> Zauberfisch|idle: oh for sure
1700: [22:02:13] <irogue> i actually quite like the *idea* of RoR
1701: [22:02:16] <irogue> but the execution...
1702: [22:02:31] <irogue> "security? fuck that, it's hard"
1703: [22:02:39] <samthejarvis> haha.
1704: [22:02:47] <irogue> and every RoR dev i've ever encountered has been defensive to the max
1705: [22:02:55] <irogue> you say anything *slightly* bad about RoR and they'll bite your face
1706: [22:03:06] <irogue> or even suggest that anything else might possibly be better
1707: [22:03:19] <Zauberfisch|idle> haha, simon_w you are right, I can no longer find anything indicating that all is used
1708: [22:03:27] <Zauberfisch|idle> just greped for flush all
1709: [22:03:34] <irogue> whereas us PHP devs *know* that PHP is a cobbled together hunk of shit :-P
1710: [22:03:49] <Zauberfisch|idle> and turns out the only place where it is used is to return a login form if you try to flush all
1711: [22:04:19] <simon_w> Zauberfisch|idle, SSViewer::__construct
1712: [22:04:27] <Zauberfisch|idle> yep
1713: [22:04:44] <Peavers> well, gitlab upgrade went smooth. They even added graphs =D
1714: [22:04:48] <simon_w> Just like since it got added
1715: [22:05:09] <Zauberfisch|idle> simon_w but I was sure that it once was use for flushing some images or so
1716: [22:06:02] <simon_w> Peavers, I want graphs, dammit
1717: [22:06:16] <Peavers> I know right, graphs are the best
1718: [22:06:30] <simon_w> ss23, you may want to make "Nelson Marlborough Institute of Technology - cms 404 reduction hack 2" private :p
1719: [22:06:34] <Peavers> You can view my graphs once I get oauth playing nice
1720: [22:07:04] * EasyCo quit (Quit: EasyCo)
1721: [22:07:43] * theorytank quit (Ping timeout: 250 seconds)
1722: [22:08:01] <simon_w> Peavers, I take it this isn't the cwp gitlab?
1723: [22:08:19] <Peavers> Yeah, I run my own on my own servers
1724: [22:08:29] <Peavers> been using it for many, many years
1725: [22:08:30] <simon_w> That's why I don't have graphs :(
1726: [22:08:37] <simon_w> Ah, 5.2.1
1727: [22:08:39] <Peavers> what version is the cwp stack running?
1728: [22:08:42] <simon_w> There's the version number
1729: [22:08:51] <Peavers> update that bitch to 5.3 son!
1730: [22:08:55] <simon_w> I can't!
1731: [22:09:15] <Peavers> then you're just going to have to dream of graphs.
1732: [22:10:17] <Peavers> @simon_w, do you know what the gitlab callback uri is?
1733: [22:10:18] <Zauberfisch|idle> gitlab sounds pretty nice
1734: [22:10:26] <simon_w> Peavers, nope
1735: [22:10:42] <Zauberfisch|idle> looks almost as cool as github from a UI perspective
1736: [22:11:04] <Peavers> Its pretty close to github, but github is about sharing with everyone, gitlab is about telling everyone to get out and no you can't see my code
1737: [22:11:44] <simon_w> gitlab is also open source
1738: [22:12:11] <Peavers> and they have a cool CI server if you want to roll that way which plays real nice with it
1739: [22:12:12] <simon_w> Well, you get the source
1740: [22:12:44] <Zauberfisch|idle> yes, of course Peavers
1741: [22:12:46] <simon_w> Haha, it's github hosted: https://github.com/gitlabhq/gitlabhq
1742: [22:12:50] <Zauberfisch|idle> but that is perfect for my needs
1743: [22:13:08] <Zauberfisch|idle> I want my own github, but enterprise seems to be a bit expensive
1744: [22:13:18] * DigNZ1 has joined #silverstripe
1745: [22:13:19] * DigNZ1 quit (Read error: Connection reset by peer)
1746: [22:13:34] <Peavers> so setup gitlab on a server out back?
1747: [22:13:38] * samthejarvis quit (K-Lined)
1748: [22:13:38] * andrew_____ quit (K-Lined)
1749: [22:13:41] <Zauberfisch|idle> yeah, sounds good
1750: [22:13:44] <simon_w> bitbucket's free as well
1751: [22:13:53] <Zauberfisch|idle> at the moment I am using bitbucket
1752: [22:14:07] <Zauberfisch|idle> but I wish to use my own server
1753: [22:14:11] <Zauberfisch|idle> there is stash
1754: [22:14:18] <Zauberfisch|idle> which I was planing on using
1755: [22:14:47] <Zauberfisch|idle> its just 10$ for a 10 person team
1756: [22:15:06] * TickleNetwork has joined #silverstripe
1757: [22:15:08] * samthejarvis has joined #silverstripe
1758: [22:15:08] * samthejarvis quit (K-Lined)
1759: [22:15:08] * TickleNetwork quit (K-Lined)
1760: [22:15:47] <Zauberfisch|idle> but gitlab sounds better
1761: [22:16:09] * zfmf1 has left #silverstripe
1762: [22:16:12] <Peavers> just really depends if you want to host it yourself and deal with the issues that can creep up with keeping it in house or not.
1763: [22:16:37] <Zauberfisch|idle> atlassian seems to be a pretty cool company with pretty awesome products, but if there is an equal product that is open source, I'll of course take that
1764: [22:18:15] <irogue> wow, gitlab looks insanely like github
1765: [22:18:24] <irogue> i like it
1766: [22:18:24] <irogue> :P
1767: [22:18:57] <Zauberfisch|idle> yeah
1768: [22:19:02] <Pyromanik> beer down1
1769: [22:19:16] <Zauberfisch|idle> well, bed time
1770: [22:19:17] <Zauberfisch|idle> good night
1771: [22:19:19] <Pyromanik> went in for morning tea, found a handle of beer on the bench.
1772: [22:19:32] <Pyromanik> got dared to boom it, did.
1773: [22:19:44] <Pyromanik> 10am, lulz
1774: [22:20:25] <irogue> night Zauberfisch|idle!
1775: [22:20:50] <Pyromanik> gn Zauberfisch|idle
1776: [22:21:32] * samthejarvis_ has joined #silverstripe
1777: [22:21:38] <irogue> weee
1778: [22:21:56] <irogue> <3 Snap
1779: [22:22:09] <samthejarvis_> pyromanik: http://puu.sh/3p4OL.gif preview
1780: [22:22:29] <samthejarvis_> it's been designed for a small group of users
1781: [22:22:39] <samthejarvis_> intranet
1782: [22:22:46] <Pyromanik> http://sspaste.com/paste/show/51cb6946bf748
1783: [22:22:51] * Colin[pi] has joined #silverstripe
1784: [22:23:21] <samthejarvis_> can't see the cursor, gifcam doesn't record em
1785: [22:23:37] <Pyromanik> samthejarvis_: that is... I lol'd.
1786: [22:23:43] <samthejarvis_> :D
1787: [22:23:54] <Pyromanik> simon_w: does paste legit?
1788: [22:23:59] <Pyromanik> irogue: what snap do
1789: [22:24:00] <Pyromanik> ?
1790: [22:24:36] <simon_w> Pyromanik, probably want to use %2
1791: [22:24:45] <Pyromanik> but otherwise sweet?
1792: [22:24:45] <catcher> anything in SS to check the response code of a url? Or should I use curl?
1793: [22:25:00] <simon_w> Pyromanik, assuming you didn't want to use a subfolder, yeah
1794: [22:25:33] <Pyromanik> catcher: yeah, code.
1795: [22:26:07] <Pyromanik> http://api.silverstripe.org/3.0/class-SS_HTTPResponse.html
1796: [22:26:13] <Pyromanik> getStatusCode
1797: [22:27:28] <Pyromanik> simon_w: it resulted in "You don't have permission to access / on this server."
1798: [22:27:31] <Pyromanik> :(
1799: [22:27:39] <irogue> Pyromanik: we're switchin from VDSL to UFB
1800: [22:27:47] <irogue> they handled the changeover flawlessly
1801: [22:27:51] <irogue> we had a 2 second blip
1802: [22:27:53] <Pyromanik> irogue: UFB faster than VDSL?
1803: [22:28:02] <Pyromanik> wow, hawt
1804: [22:28:05] <Peavers> Pyromanik of course it is
1805: [22:28:09] <irogue> and called us beforehand to warn us
1806: [22:28:17] <Pyromanik> Peavers: I don't tech.
1807: [22:28:23] <Pyromanik> irogue: yeah, snap PR so great
1808: [22:28:26] <Peavers> I've got 100/50MB/s being installed in a months time when they get around to it
1809: [22:28:29] <Peavers> love snap
1810: [22:28:33] <simon_w> Pyromanik, VF's cable's really the only thing that rivals it
1811: [22:28:36] <irogue> "hey, blah here from snap, we're gonna switch you over in 5 minutes, we're leaving your VDSL up for a couple days in case it goes downhill"
1812: [22:28:47] <irogue> "your static IP will be moved over automatically"
1813: [22:28:48] <Pyromanik> lol sweet
1814: [22:29:01] <Pyromanik> <3 snap, have at home. do recommend
1815: [22:29:02] <ss23> simon_w: I can't bring you caffine when I'm still sleeping ;_;
1816: [22:29:07] <Pyromanik> NZ's best ISP
1817: [22:29:11] <simon_w> ss23, not good enough!
1818: [22:29:19] <Pyromanik> brb, have to restart modem because TCL slow as balls.
1819: [22:29:25] <Pyromanik> (truestory)
1820: [22:29:36] <ajmitch> Peavers: yeah, I put an a request for UFB back in April, they're still getting around to it :P
1821: [22:29:52] <irogue> Pyromanik: yeah, we have/had 2x VDSL, each one was ~40/10. on UFB we're getting 92/43
1822: [22:29:59] <ajmitch> overly slow consents process
1823: [22:31:08] <Peavers> My issue is I'm part of a MDU so they need to get consent of 30 people....
1824: [22:31:12] <Peavers> going to take years.
1825: [22:31:14] <simon_w> Ooh, Snap's finally fixed their validation on the UFB availability form
1826: [22:31:22] <irogue> ajmitch: which LFC?
1827: [22:31:31] <irogue> simon_w: yeah their site is their downfall. piece of shit.
1828: [22:31:45] <simon_w> irogue, + in your email address? Haha, no!
1829: [22:32:19] <ajmitch> irogue: chorus, it's a MDU
1830: [22:32:37] <irogue> ajmitch: ah right
1831: [22:32:37] <irogue> yeah
1832: [22:32:43] <irogue> fucking MDUs
1833: [22:32:44] <ajmitch> Peavers: I'm sorry, it's taken nearly 3 months so far for me
1834: [22:33:06] <Peavers> Yeah gonna be a long wait.
1835: [22:33:07] <irogue> we're in a multi-unit business park thing
1836: [22:33:10] <irogue> but we probably had it easy
1837: [22:33:15] <irogue> cos there's ducting in the ground
1838: [22:33:20] <irogue> so there was no digging required
1839: [22:33:23] <ajmitch> this is just for home, haven't tried for work yet
1840: [22:33:52] <ajmitch> probably would be easier to get consent for work even though it's a larger building, there are less people involved
1841: [22:33:54] <irogue> just pulled the cable through from the street straight into the building through the ducts
1842: [22:34:05] <irogue> plus it wasn't Chorus doing the install, which helps
1843: [22:34:28] <irogue> cos Visionstream (the Chorus contractors for Auckland) are shitfucks
1844: [22:34:34] * lerni has joined #silverstripe
1845: [22:34:46] <ajmitch> not sure who the local installers are for Dunedin
1846: [22:34:55] <irogue> but they're overwhelmed so have outsourced the North Shore to Cable-net
1847: [22:34:55] * Pyromanik quit (Ping timeout: 256 seconds)
1848: [22:35:01] <irogue> who actually know how2fibre
1849: [22:35:27] <simon_w> Would be nice if Wellington was done by CityLink, but politics
1850: [22:35:38] <irogue> yeah, same with Auckland and Vector
1851: [22:35:47] <irogue> vector have a massive fibre network, but nope, Chorus!
1852: [22:35:56] <Peavers> the gitlab callback uri is "/users/auth/google_oauth2/callback" for anyone who cares...
1853: [22:36:18] <Peavers> for google oauth of course...
1854: [22:37:40] * Pyromanik has joined #silverstripe
1855: [22:38:36] * Jayden90 has joined #silverstripe
1856: [22:38:53] <ss23> gitlab yuck
1857: [22:38:56] <ss23> github master-race
1858: [22:39:09] <Peavers> two different products for two diff useages dude.
1859: [22:39:22] <Peavers> we've just had this conversation, where were you?
1860: [22:39:31] <irogue> he was busy fapping
1861: [22:40:07] <simon_w> ss23, just because you left your hack project public :p
1862: [22:40:24] * ajmitch went with bitbucket just for the price
1863: [22:40:30] <ss23> XD
1864: [22:40:41] <ss23> A price of free, ajmitch/
1865: [22:40:47] <ss23> Peavers: Yeah yeah, that's like "Oh there's a use for OSX"
1866: [22:40:51] <ajmitch> yeah, free private repositories
1867: [22:40:51] <Peavers> I've just added github loggin to my gitlab server. Come at me.
1868: [22:40:52] <ss23> The use is for when you're A DUMMY!
1869: [22:40:54] <ss23> amirite? :d
1870: [22:40:55] <Pyromanik> so, router reboot
1871: [22:41:00] <ss23> Peavers: ohhhh, that is nice
1872: [22:41:09] <ss23> Peavers: Actually, that is such a good idea....
1873: [22:41:19] <Peavers> google, twitter, and gitlab accounts will get you in
1874: [22:41:20] <simon_w> ss23, your hack's boring :p
1875: [22:41:50] <ss23> simon_w: Are you being serious and I actually left dodgy shit public or what?
1876: [22:42:02] <simon_w> ss23, public as in it requires a CWP login
1877: [22:42:27] <ss23> I'M CONFUSED, are you talking about my dodgy cms hack?!
1878: [22:42:43] <simon_w> "Nelson Marlborough Institute of Technology - cms 404 reduction hack 2"
1879: [22:42:45] <simon_w> that one
1880: [22:42:49] <ss23> DUDE
1881: [22:42:50] <ss23> GET OUT OF IT
1882: [22:42:52] <ss23> GET OUT OF MY CWP
1883: [22:42:55] <ss23> THOSE HACKS ARE PRIVATE
1884: [22:42:57] <Peavers> mwahaha
1885: [22:42:57] <ss23> ;___;
1886: [22:43:01] <simon_w> Apparently not :p
1887: [22:43:11] <Peavers> dat dur public
1888: [22:43:12] <ss23> I cna't believe I had to actually *fork* cms...
1889: [22:43:18] <simon_w> My module, on the other hand, is
1890: [22:43:21] <ss23> simon_w: I had it public so I wouldn't have issues checking it out :<
1891: [22:43:35] <ajmitch> dirty, dirty hacks?
1892: [22:43:46] <ss23> Apart from the mebarrasing nature of forking cms and hacking core, there's nothing *really* bad in there
1893: [22:44:46] * simon_w stops looking and goes back to work
1894: [22:45:22] * ss23 waits for this file to transfer
1895: [22:45:24] <ss23> needs more fibure
1896: [22:45:25] * samthejarvis_ quit (Ping timeout: 250 seconds)
1897: [22:45:26] <ss23> fibre
1898: [22:45:34] <Pyromanik> simon_w: rewrite no goes :<
1899: [22:47:36] <catcher> any way restfulservice can convert html entities? Or should that strictly be the endpoint's job?
1900: [22:47:48] <irogue> Pyromanik: http://iforce.co.nz/i/uubmfass.opx.png
1901: [22:51:35] <Pyromanik> irogue: yeh I saw he other day when you did it
1902: [22:51:45] <irogue> VDSL was ~40/10
1903: [22:51:54] <Pyromanik> :>
1904: [22:52:20] <Pyromanik> so what you're saying is that UFB finally almost brings general interwebs up to scratch with Cable?
1905: [22:52:28] <Pyromanik> :P
1906: [22:52:47] <Peavers> yup
1907: [22:52:49] <Peavers> tis cheap too
1908: [22:52:51] <ss23> 9 ms from wellington to auckland with cable?
1909: [22:53:00] <irogue> 9ms is a bit shit
1910: [22:53:05] <ss23> A BIT SHIT
1911: [22:53:06] <ss23> mother fucker.
1912: [22:53:08] <irogue> that was non-ideal
1913: [22:53:23] <ss23> come on, throw in an international hop
1914: [22:53:33] <ss23> Show me what your fibre does when you're playing on US servers
1915: [22:53:33] <ss23> :D
1916: [22:53:35] <irogue> kk, sec
1917: [22:53:42] <Peavers> server in LA would be good
1918: [22:53:47] <Peavers> something real world.
1919: [22:54:21] <lewellyn> or you can ping one of my IPs since i'm well-connected.
1920: [22:54:33] <Peavers> I'll ping your face in a second mate.
1921: [22:54:41] <ss23> bro.
1922: [22:54:47] <ss23> I'll pong your mom
1923: [22:55:08] <Peavers> thats not a very prof image form a SS employee.
1924: [22:55:19] <Peavers> you fixed my tickets yet?!
1925: [22:55:24] <ss23> Your not a very professional image of a government employee!
1926: [22:55:27] * ss23 looks at his list
1927: [22:55:35] <Peavers> whoa now. back up.
1928: [22:55:36] <ss23> I see a million tickets from "needy government department"
1929: [22:55:41] <ss23> GOING TO FIX NONE OF THEM
1930: [22:55:42] <ss23> :D
1931: [22:55:55] <Peavers> I don't actually have a ticket because I just fix everything.
1932: [22:56:10] <ss23> lol
1933: [22:56:27] <simon_w> Peavers, if you want some sort of professional SS image, http://ss.org.nz/3
1934: [22:56:28] <ss23> I could use the pocketrent ticket system for getting help from simon_w :D
1935: [22:56:45] <Peavers> oh Sam... what are you up to now
1936: [22:57:28] <Peavers> I had to explain to him that sublime text was also available on windows... and using a mac for sublime just isn't a good enough reason...
1937: [22:57:28] <simon_w> That's from a Twitter conversation with one of the external board members
1938: [22:57:47] <Peavers> lol what a good guy
1939: [22:57:55] <ss23> Didn't something else come out of the hackfest recently too?
1940: [22:59:18] <simon_w> ss23, nah, it was that line again
1941: [23:01:25] <irogue> ugh, can't reliably speedtest anymore
1942: [23:01:33] <irogue> now that the fibre is being used in production it's QoSed
1943: [23:01:50] <spronk> o_O
1944: [23:02:08] <spronk> im in ur intertubez holding up your paktz
1945: [23:02:25] <simon_w> irogue, it's why I don't speed test at home
1946: [23:02:35] <irogue> we have le QoSing set up so the VoIP gets priority & no one person can hog the tubes
1947: [23:02:37] * RojoD quit (Ping timeout: 248 seconds)
1948: [23:02:46] <simon_w> Slowed down by the router
1949: [23:02:46] <irogue> simon_w: yesterday i had the UFB to myself
1950: [23:02:51] <irogue> cos it wasn't in production yet
1951: [23:03:06] <spronk> fucking voice
1952: [23:03:10] <irogue> so i was testing it with all of the routers
1953: [23:03:11] <spronk> just get that shit right off
1954: [23:03:20] <irogue> see which could keep up
1955: [23:03:39] <irogue> so i could do this: https://www.snappernet.co.nz/product/dv2110
1956: [23:03:40] <simon_w> I've only got a 100 mbit router :(
1957: [23:03:54] <irogue> (the "UFB Ready" bit)
1958: [23:04:21] <irogue> that router could only do 80/40 so i mark it as swt for 30/10 but not 100/50
1959: [23:04:37] <spronk> 80/40 slowww
1960: [23:04:54] <simon_w> I only get 50/10 at home
1961: [23:05:07] * spronk gets 10/1. yeahhh
1962: [23:05:16] <irogue> haven't marked this one yet but i've tested it with just a local iperf and pushed 900Mbps through it no sweat http://www.snappernet.co.nz/product/dv2130
1963: [23:05:22] <simon_w> Apparently my modem's giving 110/10
1964: [23:05:45] <irogue> so that can do 100/50 just fine :P
1965: [23:05:54] <irogue> & its running OpenWRT ^_^
1966: [23:06:23] <spronk> irogue: the 2110 can't even do 80/40 local?
1967: [23:06:27] <simon_w> Bah, I need to set up the local SLS endpoint before the SLS request can finish
1968: [23:07:02] <irogue> spronk: not "local"
1969: [23:07:13] <irogue> LAN <> WAN, but where "WAN" isn't an internet connection
1970: [23:07:21] <spronk> ja
1971: [23:07:31] <irogue> i.e. what it can NAT
1972: [23:07:31] <spronk> still seems quite slow o_O
1973: [23:07:35] <irogue> ya, is very old router
1974: [23:07:42] <irogue> 2130 is the replacement model
1975: [23:07:44] <spronk> ah
1976: [23:07:46] <irogue> nfi why we still have the 2110
1977: [23:08:38] <irogue> http://www.speedtest.net/result/2799315794.png <-- damn QoS engaging
1978: [23:09:18] <ss23> 28 ping ouch
1979: [23:10:02] <spronk> i hate you all so mcuh with your fucking fibre
1980: [23:10:10] <irogue> ^_^
1981: [23:10:25] <spronk> pretty sure my net connection here is only marginally faster than waht I used to get with jetstream
1982: [23:10:28] <spronk> back in like... 2001
1983: [23:11:49] <spronk> too bad speedtest wasn't around thern
1984: [23:12:35] * travis-ci has joined #silverstripe
1985: [23:12:36] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#442 (3.1 - 973a23f : Andrew Short): The build passed.
1986: [23:12:36] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/bcc09deb0801...973a23fac823
1987: [23:12:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8484998
1988: [23:12:36] * travis-ci has left #silverstripe
1989: [23:19:36] * lerni quit (Remote host closed the connection)
1990: [23:21:01] * mattybalaam quit (Quit: mattybalaam)
1991: [23:23:08] <unsignedint> hey does anyone know if theres some documentation on how to set the number of records displayed by GridField at a time, or how to increase this number if theres no documentation?
1992: [23:26:29] <simon_w> GridFieldPaginationComponent
1993: [23:26:36] <ss23> I wonder how annoying it would be for a sysadmin if when he was ssh'd into a server, you just ran "bash" (or whatever his shell is) like 50 times
1994: [23:26:39] <ss23> Minimial impact in resources, but when he does "exit", he'll be like "Back in local machine!" then "wtf is going on oh gosh"
1995: [23:26:43] <simon_w> *GridFieldPaginator
1996: [23:27:54] * robert_ quit (Ping timeout: 256 seconds)
1997: [23:28:00] <simon_w> unsignedint, http://api.silverstripe.org/3.0/class-GridFieldPaginator.html
1998: [23:28:14] <unsignedint> thanks simon_w
1999: [23:29:04] * catcher quit (Quit: Leaving)
2000: [23:30:37] * robert_ has joined #silverstripe
2001: [23:30:38] * robert_ quit (Changing host)
2002: [23:30:38] * robert_ has joined #silverstripe
2003: [23:32:27] <unsignedint> simon_w: is it really supposed to be this verbose or am I doing something wrong? http://sspaste.com/paste/show/51cb798b1013f
2004: [23:33:19] <simon_w> unsignedint, $config->getComponentByType('GridFieldPaginator')->setItemsPerPage(50);
2005: [23:33:29] <unsignedint> ah
2006: [23:33:33] <unsignedint> thanks :)
2007: [23:33:42] <simon_w> or just $config = GridFieldConfig_RecordEditor::create(50);
2008: [23:35:04] <spronk> ss23: srs bro, wtf
2009: [23:35:16] * Peavers quit ()
2010: [23:36:57] <ss23> spronk: @ my shell thing? ^.^
2011: [23:39:44] <spronk> yes
2012: [23:40:09] * chillu quit (Quit: chillu)
2013: [23:40:42] <simon_w> Woo, got SLS working! Almost done with this SAML stuff :)
2014: [23:41:32] <spronk> do you hate SAML with a passion yet?
2015: [23:41:58] <simon_w> Eh, mostly just its lack of decent, easy to understand documentation
2016: [23:42:10] <simon_w> This library does most of the work for me :p
2017: [23:44:45] <simon_w> Dammit, where's Peavers when I need to hurry the MoE along so I can actually test with their IdP?
2018: [23:46:36] <spronk> o_O
2019: [23:46:38] <spronk> what are you building?
2020: [23:47:08] <simon_w> A SAML authentication module, specifically for the MoE's IdP
2021: [23:47:28] <spronk> ministry of ed?
2022: [23:47:56] <simon_w> yeah
2023: [23:48:09] <spronk> presumably not for their schools IAM stuff?
2024: [23:49:07] <simon_w> Nah, internal stuff
2025: [23:49:17] <spronk> mm
2026: [23:49:20] <simon_w> But, after nova pay, has to be definitely not shit
2027: [23:49:24] <spronk> they love them their SAML at the MoE...
2028: [23:49:46] <spronk> simplesamlphp?
2029: [23:50:03] <simon_w> yeah, grabbed it's SAML library
2030: [23:50:34] <spronk> mm, it's kinda akward in its standard deployment. they should componentise it a bit more
2031: [23:51:02] <simon_w> They really should
2032: [23:51:23] <spronk> i ended up doing the same thing as you and gutting it for just the SAML lib
2033: [23:53:19] <spronk> we got funding from the MoE to build in SSO
2034: [23:53:22] <spronk> aaaand then nobody used it
2035: [23:55:32] <ss23> ujelly, non Silverstripe companies? Security::setDefaultAdmin('admin', 'password');
2036: [23:55:36] <ss23> dat _config.php
2037: [23:55:42] <unsignedint> Why dont they just use something like OpenID for SSO? Government creates an OpenID provider, modifies applications to use it,problem solved?
2038: [23:56:06] <ss23> Didn't IRD do that?
2039: [23:56:09] <ss23> Govt Services or something?
2040: [23:56:10] <spronk> unsignedint: SAML is more enterprisey
2041: [23:56:17] <spronk> that's why
2042: [23:56:22] <ss23> lol
2043: [23:56:32] <unsignedint> yeah you have to have XML or ist not enterprise-ready
2044: [23:56:35] <unsignedint> its*
2045: [23:56:48] <spronk> also handles authz and authc
2046: [23:56:52] <spronk> not just authc
2047: [23:57:32] <ss23> authz?
2048: [23:57:38] <spronk> authentication and authorisation
2049: [23:57:47] <simon_w> yeah, SAML is more a cross between OAuth and OpenID
2050: [23:57:48] <unsignedint> ok so use oauth?
2051: [23:58:09] <spronk> as i said before, SAML is enterprise :P
2052: [23:58:21] <simon_w> ouath's just authorisation
2053: [23:58:27] <unsignedint> damn "enterprise" software haha
2054: [23:58:30] <spronk> yeah
2055: [23:58:39] <spronk> you have to add your own authentication solution to oauth to make it viable
2056: [23:59:02] <spronk> realistically it probably wouldn't ahve been any more work than the SAML implementation
2057: [23:59:13] <spronk> MoE are already doing OpenID stuff with wordpress and google
2058: [23:59:24] <unsignedint> ugh, wordpress
2059: [23:59:30] <spronk> indeed
2060: [23:59:39] <ss23> enterprise
2061: [23:59:49] <unsignedint> wait, wordpress is the opposite of enterprise, its open source and written in PHP

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