#silverstripe IRC Log

IRC log for 10 July 2015

All timestamps are in UTC.

1: [00:01:00] * Stomach quit (Client Quit)
2: [00:04:01] <simon_w|air> And he's not on IRC?
3: [00:04:03] <simon_w|air> Despicable!
4: [00:04:10] <Kingy> sad guy right
5: [00:04:11] <antmas> http://www.stuff.co.nz/manawatu-standard/news/70117042/manawatu-gorge-closed-while-tanker-is-emptied-of-animal-blood
6: [00:04:13] <antmas> BLEGH
7: [00:04:16] <antmas> pretty metal
8: [00:04:30] <Kingy> sounds like something that would happen in the manawatu lol
9: [00:06:52] * Stomach has joined #silverstripe
10: [00:08:52] <Stomach> Ryan-Toast - Controller::curr()->data()->ID ?
11: [00:09:03] <Ryan-Toast> Stomach: yeah got there in the end, thank you :)
12: [00:09:11] <Stomach> :D
13: [00:23:45] * PenguinMan98 quit (Ping timeout: 246 seconds)
14: [00:33:18] <antmas> Conan is so creepy looking http://i.imgur.com/YCQ5URJ.gifv
15: [00:36:04] * jenniferaslan quit (Quit: jenniferaslan has left the room)
16: [00:36:13] * Stomach quit (Quit: zzz)
17: [00:47:55] * cloph is now known as cloph_away
18: [00:48:27] * sminnee quit (Remote host closed the connection)
19: [00:48:32] * glenn-bautista quit (Quit: Leaving.)
20: [00:48:34] <DanaeNZ> who’s driving the truck antmas ?
21: [00:48:50] * Tanger has joined #silverstripe
22: [00:49:52] * stecman quit (Quit: This computer has gone to sleep)
23: [00:50:39] * Stomach has joined #silverstripe
24: [00:50:43] <DanaeNZ> http://www.pointerpointer.com/
25: [00:51:44] <antmas> DanaeNZ: I dunno?
26: [00:51:47] <spronk> THIS CONFUSES AND INFURIATES US
27: [00:52:17] <antmas> one of the best parts of that movie was the guitar dude
28: [00:52:29] <spronk> has anyone else been getting inkjet printed bank statements lately?
29: [00:52:45] <antmas> people still get printed bank statements?
30: [00:53:01] <spronk> ..yes
31: [00:53:09] <antmas> DanaeNZ: :O that is pretty cool
32: [00:56:44] * joelpittet quit (Remote host closed the connection)
33: [01:00:12] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
34: [01:02:47] * Cheddam_ has joined #silverstripe
35: [01:03:04] * Cheddam_ quit (Client Quit)
36: [01:04:33] * Cheddam quit (Ping timeout: 256 seconds)
37: [01:09:40] * Cheddam has joined #silverstripe
38: [01:09:51] * oddnoc quit (Quit: beer:30)
39: [01:19:49] <Stomach> I am tired
40: [01:20:05] <DanaeNZ> food coma
41: [01:20:54] <Stomach> yeeeea
42: [01:21:33] <Ryan-Toast> seconded
43: [01:23:53] * glenn-bautista has joined #silverstripe
44: [01:24:33] * spronk is so over debugging this fucking fuck thing
45: [01:24:48] <spronk> can i just... plant C4 all over the datacentre and blow the fucker up?
46: [01:27:17] <Stomach> fucking versioned
47: [01:27:18] <Stomach> fuck
48: [01:27:19] <Stomach> fuck
49: [01:27:20] <Stomach> fuck!
50: [01:27:21] <Stomach> FUCK
51: [01:27:25] <Stomach> FUFUFFUFUCK
52: [01:27:28] <DanaeNZ> lmao
53: [01:27:29] <spronk> !!111!!11!1!!!1
54: [01:27:38] * DanaeNZ sits happily plugging away at CSS
55: [01:27:55] <spronk> FUCK CSS
56: [01:27:56] <spronk> D:
57: [01:28:01] <Stomach> FUCK JAVASCRIPT
58: [01:28:03] <Stomach> FUCK PHP
59: [01:28:05] <Stomach> FUCK WORK
60: [01:28:07] <Stomach> FUCK
61: [01:28:11] <hamror> it's friday at least
62: [01:28:23] <spronk> FUCK "com.triactive.jdo.store.WrongPrecisionException"s
63: [01:28:25] * hamror spent two days learning the IIS/MSSQL/C# web stack to deploy a website
64: [01:28:32] <hamror> i want my terminal back :<
65: [01:28:34] <spronk> heh
66: [01:29:09] <Stomach> hamror - its a nightmare aye
67: [01:29:28] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
68: [01:29:29] * stecman has joined #silverstripe
69: [01:30:07] <hamror> it's fairly opaque
70: [01:30:30] <hamror> this dumb little website requires a far more expensive server than some of our large open source products that get millions of hits
71: [01:35:24] <spronk> mm..
72: [01:35:33] <spronk> cost to run ms infrastructure is absurd
73: [01:35:38] <spronk> especially when you want horizontal scalability
74: [01:35:53] <spronk> prices for single servers with e.g. web edition sqlsrv isn't too bad
75: [01:36:05] <spronk> but when you need lots of CPUs and shit, jesus christ microsoft
76: [01:36:26] <spronk> and don't get me started on their arbitrary fucking limitations on the lesser versions
77: [01:36:42] <spronk> w10 SKUs show they aren't learning at all
78: [01:36:45] <spronk> so fuck them
79: [01:36:58] <hamror> plus GUI software is orthogonal to useful data generation and logging
80: [01:37:14] <hamror> so the whole premise goes against the unix philosophy
81: [01:37:36] <hamror> event viewer crashes all the time when you make complex filters
82: [01:37:50] <hamror> rather than fucking piping it somewhere meaningful like you would in a unix environment
83: [01:37:51] <spronk> yeahh
84: [01:38:10] <spronk> some of the gui stuff is nice, like configuration GUIs I prefer over conf files
85: [01:38:16] <spronk> mainly for discoverability of options and integrated help
86: [01:38:17] <hamror> anyway mostly my last 2 days are just because i'm ignorant about the MS web stack
87: [01:38:26] <hamror> yeah i'm pretty anti GUI
88: [01:38:32] <hamror> so we will have to just not have that conversation :D
89: [01:38:35] <spronk> :D
90: [01:41:27] <spronk> OH FFS SQL SERVER
91: [01:41:29] <mahfuz> Hi Guys. What is the best option to get location of the user upto city level using ip address?
92: [01:41:51] <spronk> mahfuz server side or client side?
93: [01:42:03] <spronk> geoip can't really give you city level accuracy
94: [01:42:14] <spronk> it sometimes can, but there's a LOT of incorrect hits
95: [01:46:15] * samlander has joined #silverstripe
96: [01:46:57] <antmas> holy shit
97: [01:47:07] <antmas> knife fight just broke out at our local library o.O
98: [01:47:12] <DanaeNZ> what
99: [01:47:13] <DanaeNZ> thefuck
100: [01:47:32] <antmas> just got an email from library manager
101: [01:47:39] <antmas> 2 people started fighting
102: [01:47:42] <antmas> knife was pulled
103: [01:47:51] <antmas> no one hurt
104: [01:47:55] <Ryan-Toast> antmas: DAN BROWN FUCKING SUCKS, I’M SO MAD I’LL STAB A BITCH.
105: [01:48:04] <antmas> Ryan-Toast: LOL
106: [01:48:21] <antmas> Ryan-Toast: beeteedubs nippies time
107: [01:48:35] * DanaeNZ thought you said ‘nipples'
108: [01:48:41] <Ryan-Toast> antmas: Fridays beers don’t sit well with Nippys’ :’(
109: [01:48:52] <antmas> also nipples time
110: [01:49:16] <antmas> Ryan-Toast: good thing I'm on Dry July ....... *cries internally*
111: [01:49:19] <antmas> \o/
112: [01:49:59] <Ryan-Toast> antmas: huehuehue
113: [01:50:32] <DanaeNZ> (o) (o)
114: [01:50:34] <DanaeNZ> nipples
115: [01:50:42] <antmas> DanaeNZ: lol
116: [01:50:57] <antmas> it rubs the Nippies on the nipples
117: [01:52:10] <DanaeNZ> Bahahaha
118: [01:54:03] <antmas> LOL library manager just sent me this with the text 'don't worry, I handled it the old fashioned way' https://www.youtube.com/watch?v=mcE0aAhbVFc
119: [01:55:11] <ss-helper> Silverstripe Uploadify Add fields - http://stackoverflow.com/questions/14432739/silverstripe-uploadify-add-fields
120: [01:55:17] <DanaeNZ> antmas: bahahahaha
121: [01:55:18] * Cheddam has joined #silverstripe
122: [01:56:38] * veb quit (Quit: veb-irc: quit)
123: [01:56:55] * veb has joined #silverstripe
124: [02:03:33] <mahfuz> spronk: Server side
125: [02:03:38] <antmas> Ryan-Toast: http://lifehacker.com/tag/featured-android-home-screen
126: [02:03:47] <antmas> Ryan-Toast: so many cool setups
127: [02:03:58] <spronk> hmm
128: [02:04:07] <spronk> too bad android is shit
129: [02:04:19] <antmas> they're all shit
130: [02:05:00] <Ryan-Toast> spronk: ?
131: [02:05:05] <spronk> android!
132: [02:05:11] <Ryan-Toast> Why shit?
133: [02:05:27] <spronk> i think the more pertinent question is
134: [02:05:31] <spronk> what about it isn't shit?
135: [02:05:37] * spronk cannot think of much
136: [02:05:44] <spronk> ... maybe that it's "free" ?
137: [02:05:46] <Ryan-Toast> spronk: I can browse reddit in the shower
138: [02:06:10] <antmas> customisation
139: [02:06:15] <antmas> not locked to crappy hardware
140: [02:06:47] <spronk> it's barely customisable these days unless you install custom firmware
141: [02:07:00] <spronk> and most android hardware is pretty average
142: [02:07:12] <Ryan-Toast> I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a
143: [02:07:13] <Ryan-Toast> problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem wit
144: [02:07:13] <Ryan-Toast> recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion. I fixed a problem with recursion.
145: [02:07:23] <spronk> hahahaha
146: [02:07:25] <antmas> not that that is a difficult thing to do
147: [02:07:53] <Ryan-Toast> spronk: competition breeds innovation.
148: [02:07:56] <spronk> ugh
149: [02:08:00] <spronk> android isn't competition
150: [02:08:07] <Ryan-Toast> Why not?
151: [02:08:08] <spronk> android is google copying microsoft's strategy from years ago with a twist
152: [02:08:15] <spronk> embrace and extinguish
153: [02:08:20] <antmas> so, competition
154: [02:08:23] <spronk> only google have the nerve to make it "free"
155: [02:08:26] <Ryan-Toast> And we’ve seen how well Microsoft’s done.
156: [02:08:32] <spronk> of course, any serious business can't compete with that on terms
157: [02:08:47] <spronk> but yknow, with google, you're the product
158: [02:08:53] <Ryan-Toast> Helps when you don’t make shit phones, and only target late adapters.
159: [02:09:18] <spronk> ?
160: [02:09:33] <Ryan-Toast> Lumia flagships were so shit for so long.
161: [02:09:40] <antmas> mm
162: [02:09:43] <spronk> "shit"
163: [02:09:47] <Ryan-Toast> shit.
164: [02:09:51] <spronk> i dno
165: [02:09:57] <Ryan-Toast> I had to make apps for them.
166: [02:10:03] <Ryan-Toast> Trust me, they were fucking bad.
167: [02:10:09] <spronk> the lumia 800 was a very nice piece of hardware
168: [02:10:14] <antmas> only good thing about lumia phones are the cameras
169: [02:10:38] <Ryan-Toast> besides the fact that it weighed a tonne, and froze up after 1 month of ownership.
170: [02:10:39] <spronk> didn't really have the cpu of the iphone or hhigh end android at the time, and screen res was a problem (dictated by wp7)
171: [02:10:48] <spronk> but the camera was arguably better than anything on the other side
172: [02:10:56] <spronk> the 920 was the same
173: [02:11:01] <antmas> mm
174: [02:11:11] <spronk> the 1020 still has nothing remotely equivalent
175: [02:11:17] <Ryan-Toast> My phone’s camera is 23MP, but in low light it fucking sucks.
176: [02:11:26] <Ryan-Toast> always goes grainy
177: [02:11:26] <spronk> the 925 was fantastic physical design
178: [02:12:04] <Ryan-Toast> spronk: I liked it, if it were just sliiiightly smaller it would have been perfect.
179: [02:12:17] <spronk> yeah
180: [02:12:23] <antmas> I feel like these days if you go buy a windows phone, you're just kinda lying to yourself
181: [02:12:23] <spronk> though this is my problem with most android phones currently
182: [02:12:25] <spronk> too big
183: [02:12:36] <Ryan-Toast> That’s why I’ve gone bakck to compact phones.
184: [02:12:39] <Ryan-Toast> Feelsgoodman
185: [02:12:42] <antmas> yeah same
186: [02:12:46] <spronk> but they put shitty hardware in the compact phones
187: [02:12:48] <spronk> and charge lots for them
188: [02:12:52] <antmas> hgih end phones in the smaller forms are the best
189: [02:12:53] * spronk doesn't get it
190: [02:12:54] <Ryan-Toast> That and I can’t live without waterproofing anymore
191: [02:12:59] <antmas> spronk: that hasn't been the way for years
192: [02:13:02] <spronk> i dno
193: [02:13:11] <spronk> samsung minis = shit
194: [02:13:22] <antmas> THAT has always been true
195: [02:13:24] <spronk> sony z compacts = better, but still nowhere like their full size mates
196: [02:13:27] <spronk> htc minis = shit
197: [02:13:27] <antmas> but most samsungs are shit anyway
198: [02:13:32] <spronk> lg minis = shit
199: [02:13:36] <spronk> that leaves.. HUAWUEUWEUAEUI
200: [02:13:45] <spronk> which are just shit in general except for reallly low end phones
201: [02:13:49] <Ryan-Toast> spronk: I like my experia,. It’s not the best phone, but it does a bit of everything just right.
202: [02:13:53] <antmas> Who are We? We're Hua Way!
203: [02:14:12] <Ryan-Toast> besides the low light camera issue
204: [02:14:31] <Ryan-Toast> the Z4C will have an exposed usb that’s waterproof too, which should be interesting.
205: [02:14:36] <spronk> yeahhhh
206: [02:14:38] <spronk> z3?
207: [02:14:44] <Ryan-Toast> I have the z3c
208: [02:14:51] <spronk> z3c isn't a compact phone
209: [02:14:53] <spronk> imo
210: [02:14:54] <antmas> I need a new phone soon
211: [02:15:06] <Ryan-Toast> I was waiting for the z4, but my z1 spent a night at the bottom of the spa with the flaps open.
212: [02:15:08] <antmas> spronk: do you have like tiny hands?
213: [02:15:14] <spronk> no not really
214: [02:15:16] <spronk> i just don't like big phones
215: [02:15:25] <spronk> iphone 4 was perfect size
216: [02:15:32] <Ryan-Toast> spronk: I have big hands.
217: [02:15:51] <antmas> apparently the Galaxy S6 Active is pretty good
218: [02:15:52] <spronk> and yet you opt for a compact phone
219: [02:15:57] <spronk> what is this saying about android hardware manufacturers?
220: [02:16:02] <Ryan-Toast> Apple: “The iPhone 4 is the perfect size, and we would never go bigger as it’s designed to fit you perfectly.”
221: [02:16:04] * zlinux quit (Ping timeout: 264 seconds)
222: [02:16:18] <Ryan-Toast> I don’t like TouchWiz
223: [02:16:29] <Ryan-Toast> though apparently thewy’re becoming more and more vanilla
224: [02:16:30] <antmas> Ryan-Toast: I'd remove that straight away
225: [02:16:36] <spronk> the only decent android implementation is vanilla google edition
226: [02:16:47] <antmas> yeah I always wanted one of those spronk
227: [02:16:55] <spronk> and even then it's a clusterfuck of clusterfucking
228: [02:17:08] <Ryan-Toast> spronk: that’s what roms are for I guess.
229: [02:17:10] <antmas> spronk: what phone do you have?
230: [02:17:14] <spronk> antmas iphone5 currently
231: [02:17:34] <antmas> I found the size of the 5 pretty good
232: [02:17:37] <spronk> hmm
233: [02:17:45] <spronk> its a bit of a stretch one handed for top opposite corner
234: [02:17:50] <antmas> althought I sold mine fairly quickly
235: [02:17:55] <antmas> and stuck with S3 :P
236: [02:17:57] <spronk> 4 was physically a better size
237: [02:18:11] <spronk> if they can get rid of the screen bezel at top and bottom...
238: [02:18:30] * spronk strongly dislikes both the iphone 6 and 6+
239: [02:18:53] <antmas> mm
240: [02:18:59] <spronk> 6+ is just too big
241: [02:19:02] <spronk> and the 6 is too smooth
242: [02:19:04] <spronk> and also too big
243: [02:20:02] <antmas> they should have peaked size around the Galaxy S3 / iphone 5
244: [02:20:03] <spronk> i have a nexus 5 here for app dev, it's marginally ok
245: [02:20:10] <spronk> even the s3 is huge
246: [02:20:25] <antmas> spronk: s3 is my limit for size
247: [02:20:42] <spronk> yeah..
248: [02:20:45] <antmas> also I can't stand phones with square edges
249: [02:20:48] <antmas> re zony
250: [02:20:48] <spronk> s3 is akward one handed
251: [02:20:51] <antmas> sony*
252: [02:20:59] <spronk> antmas yeahhh
253: [02:22:04] <antmas> does always kinda look funny to me when you're at a bar or something and someone whips out a SUPER BRIGHT flagship phone
254: [02:22:14] <spronk> haha
255: [02:22:14] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
256: [02:22:14] <antmas> like EVERYONE can see it
257: [02:22:23] <spronk> retina display
258: [02:22:24] <spronk> as in
259: [02:22:26] <spronk> burn them off
260: [02:22:44] <antmas> just those crazy bright/clear oled jobbies
261: [02:22:47] * Cheddam has joined #silverstripe
262: [02:24:40] <antmas> lol pucker factor 11 http://blackflag.jalopnik.com/pucker-factor-10-watch-a-wrc-driver-nearly-crash-into-1716767308?utm_campaign=socialflow_jalopnik_twitter&utm_source=jalopnik_twitter&utm_medium=socialflow
263: [02:27:23] <spronk> oohhhhhhhhhhhwph
264: [02:28:38] * Stomach quit (Quit: zzz)
265: [02:32:51] <antmas> pretty cool how Makinen is coming back to WRC
266: [02:33:32] <spronk> mm
267: [02:40:39] <antmas> fuckin IE and its retarded compatibility view
268: [02:40:43] <antmas> ffffffff
269: [02:51:27] * antmas quit (Ping timeout: 246 seconds)
270: [02:51:34] * critchie has joined #silverstripe
271: [02:54:42] <Kingy> jesus never go to the dr in aussie without medicare card
272: [02:54:46] <Kingy> $130 later
273: [02:54:57] * antmas has joined #silverstripe
274: [02:55:09] <DanaeNZ> yipes
275: [02:55:13] <ss-helper> Extended Member class still attempting to write to Member table - http://stackoverflow.com/questions/31331653/extended-member-class-still-attempting-to-write-to-member-table
276: [02:55:35] <Kingy> crazy
277: [02:55:54] <antmas> Kingy: woah
278: [02:55:57] <antmas> thanks Abbot
279: [02:56:11] <DanaeNZ> thanks Obama
280: [02:56:27] <antmas> thanks DanaeNZ
281: [02:56:37] <DanaeNZ> gladly
282: [02:57:23] * Stomach has joined #silverstripe
283: [03:00:47] * joelpittet has joined #silverstripe
284: [03:12:42] <antmas> lame, my requiredfields isn't working for this one field :|
285: [03:12:53] <antmas> doesn't pick up that data has been entered
286: [03:16:00] <helenclarko> Tried turning it off and then back on again?
287: [03:16:35] <hamror> i've had great success turning my mouse 720 degrees
288: [03:16:52] <hamror> THROUGH THE Z AXIS
289: [03:16:53] * veb quit (Quit: veb-irc: &)
290: [03:17:26] <DanaeNZ> just clip your mouse through the desk
291: [03:18:07] <helenclarko> But in all seriousness, all other requiredfields work fine?
292: [03:18:38] <DanaeNZ> typo?
293: [03:22:21] * Stomach quit (Quit: zzz)
294: [03:23:16] * ss-helper quit (Ping timeout: 264 seconds)
295: [03:23:53] <antmas> helenclarko: yarp, I think it's just this custom field is using it's own validation
296: [03:23:59] <antmas> is a javascript table field
297: [03:24:17] <helenclarko> Then I stand by my previous solution.
298: [03:24:28] <antmas> so normal requiredFields doesn't 'know' that it has a value entered
299: [03:24:32] <antmas> lol
300: [03:24:34] * Stomach has joined #silverstripe
301: [03:30:49] * veb has joined #silverstripe
302: [03:31:36] <helenclarko> so you'll need to add javascript to make it a required field?
303: [03:31:47] <antmas> yeah I think so
304: [03:33:30] <helenclarko> or add the required attribute to your input (which leaves you with something that cant be styled easily).
305: [03:34:41] <antmas> ugh, the js for this field looks like o.O
306: [03:36:38] <antmas> anyone know how I might be able to add required() to this? http://www.sspaste.com/paste/show/559f3d9da1c61
307: [03:37:54] * Cheddam quit (Ping timeout: 255 seconds)
308: [03:40:37] * ss-helper has joined #silverstripe
309: [03:42:30] <antmas> kinda doesn't make sense withouth the field code :P
310: [03:43:29] <antmas> ss23: is JP aboot?
311: [03:50:55] <helenclarko> anyone having any issues with PHP version 5.6.10
312: [03:51:43] <antmas> helenclarko: what are you seeing?
313: [03:52:46] <helenclarko> since going from 5.6.9 to 5.6.10, admin just loads once logged in.
314: [03:52:59] <helenclarko> and cpu usage hits 99%
315: [03:53:36] <antmas> helenclarko: have you tried turning it off and then back on again?
316: [03:53:59] <helenclarko> Damn, didnt think of that. hang on.
317: [03:54:08] * antmas spins
318: [03:54:10] <antmas> weeeeeeeeeeeee
319: [03:55:15] <helenclarko> okay, so it only hits 99% on admin login.
320: [03:55:33] <spronk> hmm
321: [03:55:34] <spronk> crypto?
322: [03:56:55] * Stomach quit (Quit: zzz)
323: [03:57:54] <helenclarko> rolling back php to check.
324: [03:59:49] <Ryan-Toast> Ddoes anyone know where the editform method is situated for dataobjects?
325: [04:00:13] <Ryan-Toast> trying to edit a dataobject from a custom made list.
326: [04:00:26] <DanaeNZ> getCMSFields tbh
327: [04:00:31] <DanaeNZ> oh weight
328: [04:00:33] <DanaeNZ> waiot*
329: [04:00:35] <DanaeNZ> wait*
330: [04:00:36] <DanaeNZ> fuk
331: [04:00:39] <DanaeNZ> that’s fields
332: [04:00:47] <DanaeNZ> ItemEditForm for Gridfield
333: [04:01:46] <DanaeNZ> GridFieldDetailForm*
334: [04:02:22] * Stomach has joined #silverstripe
335: [04:09:24] * veb quit (Quit: veb-irc: &)
336: [04:11:15] * antmas quit (Ping timeout: 246 seconds)
337: [04:13:41] * pyface has joined #silverstripe
338: [04:24:07] * Ryan-Toast quit (Quit: Ryan-Toast)
339: [04:24:50] * Colin[pi]_iPad has joined #silverstripe
340: [04:25:02] <Kingy> Colin[pi]_iPad: \o
341: [04:25:09] <Colin[pi]_iPad> ermahgerd
342: [04:25:17] <Kingy> happy bday man
343: [04:25:18] <Kingy> !!
344: [04:25:19] <Colin[pi]_iPad> o/
345: [04:25:26] <Colin[pi]_iPad> Thanks dude!
346: [04:25:52] <Kingy> had a good day?
347: [04:26:52] <Colin[pi]_iPad> Slept in, got big breakfast in bed, which was nice
348: [04:27:09] <Colin[pi]_iPad> With my son all morning, now out getting new tyres (as you do)
349: [04:28:08] <Kingy> lol sure why not
350: [04:28:29] <Colin[pi]_iPad> Honda rotated them yesty and put the shitty ones on the front
351: [04:28:41] <spronk> HANDAAAA PAWAAAA
352: [04:28:41] <Colin[pi]_iPad> Then it started raining today (of course)
353: [04:29:00] <spronk> its your birthday too, Colin[pi]_iPad ?!~
354: [04:29:01] <Colin[pi]_iPad> VTEC POWA
355: [04:29:12] <Colin[pi]_iPad> spronk: yarp
356: [04:29:22] * spronk fuckin high fives Colin[pi]_iPad for being awesome
357: [04:29:34] <Colin[pi]_iPad> It's yours too??
358: [04:29:37] * spronk nods
359: [04:29:37] <helenclarko> Yup, turns out PHP 5.6.10 killed our SS CMS
360: [04:29:43] <Colin[pi]_iPad> NO WAI
361: [04:29:54] <spronk> YA WAI :D
362: [04:30:01] <Colin[pi]_iPad> spronk: happy birthday spronkey!
363: [04:30:08] <Kingy> ohhh happy birthday too spronk
364: [04:30:13] <spronk> back atcha!
365: [04:31:43] * Stomach quit (Quit: zzz)
366: [04:34:06] * Ryan-Toast has joined #silverstripe
367: [04:51:14] * adrexia quit (Ping timeout: 272 seconds)
368: [04:53:03] * terryapodaca has left #silverstripe
369: [04:53:51] * Ryan-Toast quit (Quit: Ryan-Toast)
370: [04:59:38] * Hailwood quit (Remote host closed the connection)
371: [05:01:17] * spronk quit (Quit: I may need a longer sleep timer...)
372: [05:01:37] * helenclarko quit (Quit: Leaving)
373: [05:20:51] * veb has joined #silverstripe
374: [05:20:57] * glenn-bautista quit (Quit: Leaving.)
375: [05:22:27] * stecman quit (Quit: This computer has gone to sleep)
376: [05:25:55] * Ryan-Toast has joined #silverstripe
377: [05:28:02] * Ryan-Toast quit (Client Quit)
378: [05:30:42] <Tanger> Hey guys, anybody set up an SS installation on digitalocean before?
379: [05:33:01] * joelpittet quit (Remote host closed the connection)
380: [05:35:47] * joelpittet has joined #silverstripe
381: [05:38:52] * DanaeNZ quit (Quit: DanaeNZ)
382: [05:46:40] * veb quit (Quit: veb-irc: &)
383: [05:47:11] * veb has joined #silverstripe
384: [05:47:37] * samlander quit (Ping timeout: 256 seconds)
385: [05:51:03] * micmania1 quit (Quit: micmania1)
386: [05:53:05] <Kingy> Tanger: not personally, but there is a guide on DO on how to do it
387: [05:53:10] <Kingy> slightly outdated but still: https://www.digitalocean.com/community/tutorials/how-to-install-silverstripe-on-your-vps
388: [05:57:01] <Kingy> Tanger: what in partiuclar you need help with?
389: [05:58:36] <Tanger> Kingy: Just taking a look through that now. Nothing in particular, just figuring out how long it would take to set up with a fresh droplet as opposed to using something like https://serverpilot.io to manage deployment
390: [05:59:24] <Kingy> Tanger: eh follow that tutorial, shouldn't have any major issues
391: [05:59:34] <Tanger> Thanks for the link though, I was surprised there was one for it
392: [05:59:40] <Tanger> Yeah, for sure
393: [06:01:17] * marvanni has joined #silverstripe
394: [06:04:54] * Mike123 has joined #silverstripe
395: [06:08:04] * Stomach has joined #silverstripe
396: [06:08:26] <Mike123> Morning
397: [06:11:40] * micmania1 has joined #silverstripe
398: [06:11:42] * micmania1 quit (Client Quit)
399: [06:20:17] * neilfse has joined #silverstripe
400: [06:22:41] * neilfse quit (Quit: Updating details, brb)
401: [06:22:48] * neilfse has joined #silverstripe
402: [06:23:04] <neilfse> Kingy: veb: hi
403: [06:23:09] <Kingy> hi
404: [06:23:24] <neilfse> I just stalked myself on google and found this place haha
405: [06:23:42] <neilfse> apparently zulumonkey gets the occasional mention :D
406: [06:24:02] <veb> hi
407: [06:24:08] <Kingy> wait wtf
408: [06:24:11] <veb> Kingy: this phone has dual cameras >.<
409: [06:24:13] <Kingy> legit neil?
410: [06:24:18] <veb> zulumonkey?
411: [06:24:20] <veb> wait
412: [06:24:21] <veb> what
413: [06:24:22] <veb> what's going on
414: [06:24:34] <neilfse> apparently veb claimed I stole zulumonkey? wuuut
415: [06:24:38] <veb> oh it's neil
416: [06:24:40] <neilfse> :(
417: [06:24:42] <veb> neilfse: gotta sound good
418: [06:24:45] <veb> also jesus
419: [06:24:50] <veb> never thought I'd hear from you again
420: [06:24:52] * veb hugs neilfse
421: [06:24:55] <neilfse> haha
422: [06:25:08] <neilfse> I was just stalking Jack Cator (from zymic) - he sold his shit for $60,000,000... wow
423: [06:25:11] <veb> how's it going
424: [06:25:18] <veb> neilfse: wait
425: [06:25:20] <veb> fuck
426: [06:25:21] <veb> lol
427: [06:25:22] <veb> jeuweshjadshdukjbsdlz;
428: [06:25:33] <Kingy> aha and zulu just died
429: [06:25:36] <veb> neilfse: how did you find this place by stalking yourself
430: [06:25:43] <Kingy> veb
431: [06:25:44] <neilfse> http://webcache.googleusercontent.com/search?q=cache:wczRKG6xkTMJ:logs.simon.geek.nz/index.php%3Fdate%3D2014-08-12+&cd=5&hl=en&ct=clnk&gl=au
432: [06:25:47] <Kingy> logs
433: [06:25:52] <veb> ohhhh
434: [06:25:54] <veb> lol
435: [06:25:57] <veb> is veb all over google
436: [06:26:01] <neilfse> [09:20:39] <Kingy> was that his name
437: [06:26:01] <neilfse> 367: [09:20:39] <vebb> he stole our code
438: [06:26:02] <veb> for... silverstripe
439: [06:26:04] <veb> rofl
440: [06:26:05] <neilfse> thats rude vebb
441: [06:26:10] <veb> neilfse: you kinda did
442: [06:26:11] <veb> admit it
443: [06:26:16] <neilfse> whaaat
444: [06:26:18] <veb> fucking copied my design
445: [06:26:19] <neilfse> What part of it?
446: [06:26:22] <Kingy> yeah you totes did
447: [06:26:29] <veb> I think we ALL stole each others code
448: [06:26:30] <veb> designs
449: [06:26:33] <veb> but that's what made us learn
450: [06:26:36] <neilfse> ahhh designs?
451: [06:26:42] <Kingy> you still in aussie neilfse?
452: [06:26:44] <neilfse> I can't recall much about the design, the PHP was all mine :)
453: [06:26:45] <veb> I still can't believe we were able to dev all that shit
454: [06:26:45] <neilfse> Kingy: yes
455: [06:26:59] <veb> how old were we?
456: [06:27:00] <Kingy> doing much with life?
457: [06:27:04] * Stomach quit (Quit: zzz)
458: [06:27:18] <veb> Kingy: I hope he says no
459: [06:27:24] <veb> 'cos I might then cry
460: [06:27:25] <veb> :D
461: [06:27:36] <neilfse> I'm homeless
462: [06:27:40] <neilfse> typing this from a phone i found
463: [06:27:41] <Kingy> lol
464: [06:27:42] <veb> I bet he's lying now
465: [06:27:48] <veb> to avoid a crying veb
466: [06:27:48] <neilfse> ;)
467: [06:27:57] <veb> in my excuse I had like a brain infection
468: [06:28:01] <veb> took a long time to get better
469: [06:28:10] <Kingy> neilfse: IT or nah?
470: [06:28:21] <neilfse> Kingy: yeh, full time dev
471: [06:28:23] <neilfse> python
472: [06:28:29] <Kingy> oh nice
473: [06:28:31] <veb> and here I am sitting around being unemployed
474: [06:28:35] <veb> neilfse: www.veb.nz
475: [06:28:41] <veb> neilfse: I too, python
476: [06:28:48] <veb> Kingy: I went through seekacar code
477: [06:28:50] <veb> it's awful
478: [06:28:52] <veb> it's soooo bad
479: [06:28:57] <veb> but man you wrote that shit in like a night
480: [06:28:58] <Kingy> no shit
481: [06:28:58] <veb> hahahahaha
482: [06:29:06] <veb> do you know it still works
483: [06:29:07] <veb> haha
484: [06:29:08] <Kingy> thats why i can never go back to it
485: [06:29:12] <Kingy> will just want to re-write
486: [06:29:18] <veb> yeah loll
487: [06:29:21] <veb> the python version we did was nice
488: [06:29:27] <neilfse> what was your url in 2004 veb?
489: [06:29:31] <neilfse> I wanna see this design i stole now :(
490: [06:29:33] <neilfse> haha
491: [06:29:33] <Kingy> vebome.com probably
492: [06:29:58] <veb> yea vebome.com
493: [06:30:01] <neilfse> 1177: [15:30:33] <Kingy> how am i going to fuck with this scammer
494: [06:30:01] <neilfse> 1178: [15:31:29] <veb> umm
495: [06:30:01] <neilfse> 1179: [15:31:32] <veb> zulumonkey 'em
496: [06:30:04] <veb> who's it registered to now
497: [06:30:18] <veb> neilfse: the amount of times you hacked me is like 1000. I hack you back 1000
498: [06:30:25] <neilfse> how did you guy remember all this stuff after like 8 years
499: [06:30:26] <veb> ... and kids these days "hack" logged in Facebook accounts
500: [06:30:28] <veb> lololol
501: [06:30:30] <veb> neilfse: 8 years?
502: [06:30:34] <veb> more than that right
503: [06:30:38] <neilfse> ahh, 11
504: [06:30:44] <veb> fuck
505: [06:30:45] <veb> 11 lol
506: [06:31:05] <Kingy> http://web.archive.org/web/20040608213956/http://www.vebome.com/
507: [06:31:06] <Kingy> ehehe
508: [06:31:09] <neilfse> what do yu guys do now? silverstripe?
509: [06:31:20] <veb> I'm an unemployed cunt
510: [06:31:34] <Kingy> neilfse: php dev but yeah using silverstripe
511: [06:31:35] <veb> been too sick to work since october
512: [06:31:37] <Kingy> living in Bahrain
513: [06:31:48] <neilfse> http://web.archive.org/web/20040904085223/http://www.vebome.com/
514: [06:31:51] <neilfse> hahaha I can see it now
515: [06:31:59] <veb> Kingy: I'm trying to get back into toribash
516: [06:32:03] <veb> I don't wanna see my baby die
517: [06:32:07] <neilfse> I never stole any PHP at all, that PHP codebase was awesome
518: [06:32:10] <veb> they haven't updated anything since I left for fucks sake
519: [06:32:14] <neilfse> looking back at it now, probably nasty
520: [06:32:18] <veb> neilfse: lol
521: [06:32:19] <neilfse> but it was awesome for 2004
522: [06:32:20] <veb> neilfse: it worked tho
523: [06:32:21] <neilfse> deploying shit via FTP
524: [06:32:23] <neilfse> good times
525: [06:32:24] <veb> in software, what works is good
526: [06:32:48] <veb> nowadays I couldn't fucking code a ... chatbox thing, i'd spend hours on making it perfect in python, then erlang
527: [06:32:50] <veb> lol
528: [06:32:51] <veb> then i'll give up
529: [06:32:52] <neilfse> I had a pretty awesome site after that for condition zero (the game) - 100 times more active than zulumoneky was
530: [06:32:59] <veb> neilfse: yeah that was a cool site
531: [06:33:17] <Kingy> neilfse: should get into CS:GO :P
532: [06:33:20] <Kingy> that's where it's at
533: [06:33:38] <neilfse> Kingy: just ticked over 1,100 hours.
534: [06:33:44] <Kingy> oh no shit
535: [06:33:55] <Kingy> im in aussie for the next month or so
536: [06:33:57] <Kingy> we should play haha
537: [06:34:04] <neilfse> steamcommunity.com/id/neilzmk
538: [06:34:34] <veb> neilfse: I made http://forum.toribash.com
539: [06:34:43] <veb> did most of it before I finished high school
540: [06:34:48] <veb> but trying to get back in now
541: [06:34:54] <neilfse> noice :)
542: [06:34:56] <veb> I don't wanna see my baby die
543: [06:35:05] <veb> https://facebook.com/modernsherlock
544: [06:35:08] <veb> http://teespring.com
545: [06:35:13] <veb> I'M BEST
546: [06:35:18] <veb> not really
547: [06:35:20] <veb> don't have much to show for it
548: [06:35:22] <veb> ... don't get sick
549: [06:35:25] <veb> that's my wisdom
550: [06:35:34] <Kingy> why would you go back there anyway
551: [06:36:04] <veb> Kingy: don't want my baby to die
552: [06:36:22] <veb> and I need to work on something
553: [06:36:29] <veb> best to work on something I could really rectify hard
554: [06:36:32] <veb> fuck it in the anus
555: [06:36:33] <veb> :P
556: [06:36:41] <veb> seekacar is a bit boring
557: [06:36:42] <Mike123> guys, i need to make some sort of user zone... registrations only from from admin site(admin will create users manually), user can login and user profile is shown.. any suggestions on how to better implement this ? maybe there module for user zone already ?
558: [06:36:43] <Kingy> http://www.reddit.com/user/zulumonkey
559: [06:37:04] * marvanni quit (Ping timeout: 256 seconds)
560: [06:37:18] <veb> https://keybase.io/veb
561: [06:37:20] <veb> get it kingy
562: [06:37:26] <neilfse> now you're just becoming stalkerish
563: [06:37:34] * marvanni has joined #silverstripe
564: [06:37:35] <Kingy> haha
565: [06:37:39] <Kingy> don't make yourself hard to find
566: [06:37:40] <veb> oh I forgot that I had agriculturedrones
567: [06:38:10] <veb> Kingy: https://gist.github.com/veb/792ffa4f7c2ab56c1740
568: [06:38:23] <veb> this one is hilarious
569: [06:38:24] <veb> https://gist.github.com/veb/9e19ed35e24f6e756ad3
570: [06:38:26] <veb> I sent them both through
571: [06:38:28] <veb> lololpoloopoal
572: [06:38:31] * veb falls dead
573: [06:39:43] <Kingy> lol
574: [06:39:47] <Kingy> #winning
575: [06:39:50] <veb> over engineering
576: [06:39:51] <veb> lol
577: [06:40:13] <veb> still i dunno why people do if 3 mod 5 and mod 3 then...
578: [06:40:18] <veb> why not mod 15
579: [06:40:25] <veb> I actually haven't seen many implementations with 15
580: [06:40:27] <veb> anyway
581: [06:40:29] <veb> my son is being a dick
582: [06:40:30] <veb> brb
583: [06:40:36] <neilfse> you have a son?
584: [06:40:36] <neilfse> sheeet
585: [06:40:39] <neilfse> haha
586: [06:40:43] <Kingy> haha he's also married
587: [06:40:45] <Kingy> crazy right
588: [06:40:46] <neilfse> BUT WE'RE ALL JUST 14YO DEVELOPERS
589: [06:40:48] <veb> yea Archer
590: [06:40:51] <neilfse> I'm engaged, nearly there ;)
591: [06:41:03] <Kingy> i may as well be married
592: [06:41:04] <veb> neilfse: it's fucking CRAZY we learned and actually did that shit at 14
593: [06:41:14] <Kingy> after 7 years it's de facto isn't it
594: [06:41:18] <veb> I can't believe it was all real
595: [06:41:24] <veb> I struggle to understand how we ... got traffic
596: [06:41:25] <veb> haha
597: [06:41:31] <veb> like how did we get so much organic traffic?!?!?!?
598: [06:41:36] <veb> put up website, people there
599: [06:41:38] <veb> ... lol
600: [06:41:40] <neilfse> I used to get about 2,000 uniques a day
601: [06:41:43] <neilfse> mostly from tutorial views
602: [06:41:48] <veb> yeh
603: [06:41:50] <veb> shit still works
604: [06:41:53] <veb> my last blog post
605: [06:41:53] <neilfse> pretty insane, given that I was ... 14?15?
606: [06:41:54] <veb> 50k
607: [06:41:54] <Kingy> ya that was it
608: [06:41:57] <veb> thanks to hackernews
609: [06:41:58] <Kingy> not many people were doing that then
610: [06:42:05] <veb> oh Kingy I got some more blog post ideas
611: [06:42:08] <veb> might need to sort that
612: [06:42:23] <veb> neilfse: I just appliedfor a job in washington
613: [06:42:24] <Kingy> yeah i haven't looked at that in a while
614: [06:42:29] <neilfse> veb: good luck :)
615: [06:42:39] <veb> I need it, but thanks.
616: [06:43:00] <veb> they're a healthcare organisation, they said "minorities and disabled people strongly encouraged to apply"
617: [06:43:06] <veb> and I'm deaf, with a cochlear implant
618: [06:43:09] <veb> I've worked in healthcare
619: [06:43:18] <veb> few side projects in healthcare
620: [06:43:22] <veb> volunteer orgs....
621: [06:43:26] <veb> I fit the damn list >:{
622: [06:43:27] <neilfse> why washington tho
623: [06:43:27] <veb> I hope/
624: [06:43:28] <neilfse> ?
625: [06:43:30] <veb> neilfse: remote work
626: [06:43:32] <neilfse> where are you now?
627: [06:43:36] <veb> starting salary is 85k usd
628: [06:43:42] <veb> that's 120,000 nzd
629: [06:43:48] <veb> i'm still in lil ol nz
630: [06:44:29] <neilfse> still hang out with anyone else from those days?
631: [06:44:34] * darjus01 has joined #silverstripe
632: [06:44:49] <neilfse> I think I still have veroaero o nfacebook
633: [06:44:52] <veb> neilfse: I can't actually remember anyone else
634: [06:44:54] <veb> NVX
635: [06:44:56] <veb> remember him?
636: [06:44:59] <veb> neo-vortex
637: [06:45:12] <neilfse> nah
638: [06:45:15] <veb> yeah
639: [06:45:18] <neilfse> I don't remember many names
640: [06:45:20] <veb> I remember that Mark dude
641: [06:45:23] <veb> cos he gave me your admin deets
642: [06:45:27] <neilfse> there was 1 guy i hacked more than you that i wish i remembered
643: [06:45:31] <veb> which meant I could hack your site to display goatse
644: [06:45:33] <veb> that was fun
645: [06:45:52] <veb> you didn't protect the admin section from sql/xss injections
646: [06:45:53] <veb> :P
647: [06:46:00] <veb> used CSS overlay of your index
648: [06:46:07] <veb> I thought that was excellent
649: [06:46:13] <neilfse> why did Mark give you that?
650: [06:46:18] <veb> I wanted to do it again a few years later, couldn't even remember how to do that
651: [06:46:20] <Kingy> haha before the days of
652: [06:46:20] <veb> neilfse: he was pissed off with you
653: [06:46:23] <veb> you guys had a fight
654: [06:46:24] <veb> lolosl
655: [06:46:27] <neilfse> haha
656: [06:46:28] <Kingy> who can be bothered protecting against sql injection
657: [06:46:29] <veb> ahhh 14 year old drama
658: [06:46:34] <veb> Kingy: the fact that we DID it
659: [06:46:35] <neilfse> he was much older
660: [06:46:36] <veb> is INSANE
661: [06:46:39] <neilfse> he was the IT manager at my school
662: [06:46:41] <neilfse> then I was in year 9
663: [06:46:43] <veb> seriously
664: [06:46:46] <neilfse> yeh
665: [06:46:53] <veb> why the fuck did 14 year olds protect against SQL injection?
666: [06:46:56] <neilfse> I could never get in trouble in school because i ddosed them once
667: [06:46:58] <veb> 'cos we kept hacking each other
668: [06:46:59] <veb> hahahahahaha
669: [06:47:03] <veb> neilfse: oh yeah, fuck that
670: [06:47:07] <neilfse> well, then i got suspended for 2 weeks once
671: [06:47:09] <veb> guy I ran with got arrested by the FBI
672: [06:47:13] <veb> and my domains/DNS were all over
673: [06:47:17] <neilfse> I sent 10,000 emails to the 'group-all' alias at the school
674: [06:47:22] <veb> luckily back then, FBI wasn't too fused with overseas people
675: [06:47:27] <neilfse> 10,000 emails x 2,000 students
676: [06:47:28] <Kingy> bloody greg
677: [06:47:34] <veb> I helped him write an ipv6 flooder
678: [06:47:38] <veb> and change rxbot
679: [06:47:49] <veb> ... we managed to infect like a whole datacentre of gigabit servers
680: [06:47:55] <neilfse> haha
681: [06:47:56] <veb> I sent 10gbit/sec to slingshot (ISP)
682: [06:48:07] <veb> but I didn't realise the consequencies, and what damage it did
683: [06:48:09] <veb> and when I did
684: [06:48:11] <veb> .delete
685: [06:48:26] <veb> and I sent some emails/docs to cyber...someone
686: [06:48:29] <veb> cyberprotect?
687: [06:48:31] <veb> cyberfarm?
688: [06:48:33] <veb> cybercops?
689: [06:48:41] <veb> which led to gregs conviction iirc
690: [06:48:49] <veb> dude just wen toff the rails
691: [06:48:51] <veb> we were all in it for education
692: [06:48:54] <veb> not... :/
693: [06:48:56] <veb> but yeah
694: [06:49:07] <veb> never touched reverse engineering or anything similar since
695: [06:49:49] <veb> Kingy: you know the only one who WASN'T involved, was Cam
696: [06:50:03] <veb> who ... turned out to be a reverse engineer, malware engineer for some big company
697: [06:50:04] <veb> lol?
698: [06:50:07] <veb> that's funny
699: [06:50:07] <Kingy> yeah and now he's a genius doing crazy things
700: [06:50:19] <veb> NVX helps tho
701: [06:50:23] <veb> with SA-MP
702: [06:50:27] <veb> justcause2mp
703: [06:50:33] <veb> he's the lead security guy
704: [06:50:36] * marvanni quit (Ping timeout: 250 seconds)
705: [06:50:38] <veb> but I thought NVX would've done more
706: [06:50:49] <veb> but nah just cruising along at some corp job
707: [06:52:04] <neilfse> When is silverstripe converting to Symfony2?
708: [06:52:05] <neilfse> :P
709: [06:52:09] <neilfse> I love that framework
710: [06:52:16] <hamror> creep
711: [06:52:25] <veb> hmm symfony
712: [06:52:26] <veb> nah
713: [06:52:28] <veb> laravel
714: [06:52:29] <veb> yeah
715: [06:53:31] <neilfse> what MM rank are you Kingy ?
716: [06:53:48] <Kingy> just hit MG1
717: [06:54:00] <Kingy> the middle east is horrible for MM so I don't play it much
718: [06:54:04] <neilfse> ahhk
719: [06:54:25] <veb> Kingy: I'm currently trying to reverse engineer the roku
720: [06:54:32] <Kingy> neilfse: you?
721: [06:54:33] <veb> to remove the built in DNS
722: [06:54:43] <Kingy> also i don't have 1100 hours :P only like 300 or so
723: [06:54:54] <veb> atm people have to add static routes in their modem to ignore Google's 8.8.8.8 and 8.8.4.4
724: [06:55:04] * spronk has joined #silverstripe
725: [06:55:10] <neilfse> Kingy: I'm lingering around LEM/Supreme
726: [06:55:19] <neilfse> 'post-vac'
727: [06:55:22] <neilfse> before that I was always DMG
728: [06:55:39] <Kingy> haha yeah i went from S4->GNM in about 2 days post vac
729: [06:55:41] <Kingy> was great
730: [06:55:44] <neilfse> haha
731: [06:55:53] <Kingy> but it helped being here with <180ms ping
732: [06:56:01] <Kingy> and english speakers
733: [06:56:13] <hamror> mac users don't appreciate how fundimentally awesome spotlight in OSX 10.10+ is
734: [06:56:36] <hamror> they are all like, hurr durr stop messing with my launch bar
735: [06:56:39] <hamror> whatever, hide that shit
736: [06:56:46] <Kingy> neilfse: I just added you on steam
737: [06:56:52] <Kingy> we should play while im here
738: [06:57:04] <neilfse> kk
739: [06:57:19] <veb> hamror: I did a spotlight hack!
740: [06:57:21] <veb> well a finder
741: [06:57:24] <veb> sec
742: [06:57:37] <veb> I made it so that if you browse to a directory with git repos
743: [06:57:43] <veb> it'll display a round circle
744: [06:57:50] <veb> any colour
745: [06:57:52] <veb> https://gist.github.com/veb/2721b519f689033a20ef
746: [06:57:52] <veb> see?
747: [06:57:56] <veb> I might do a blog post
748: [06:58:20] * wmk has joined #silverstripe
749: [07:03:21] * Kingy is now known as Kingy[a]
750: [07:06:08] * pyface quit (Quit: Leaving)
751: [07:08:09] <hamror> ahh that's hot
752: [07:08:15] <hamror> ur a babe veb
753: [07:08:25] * marvanni has joined #silverstripe
754: [07:08:35] <neilfse> btw Kingy[a] veb http://www.theguardian.com/technology/2015/mar/15/hidemyass-startup-secrets-safe-with-jack-cator
755: [07:09:28] <veb> hamror: :D
756: [07:09:44] <veb> lol hidemyass
757: [07:10:02] <neilfse> Remember et2k?
758: [07:11:53] <veb> yeah
759: [07:12:27] <neilfse> they had an awesome site
760: [07:12:29] <neilfse> I was a fanboy
761: [07:12:51] * lerni has joined #silverstripe
762: [07:14:56] <veb> lol
763: [07:15:01] <veb> ahh life was simple
764: [07:15:05] <veb> neilfse: PM me your fb
765: [07:17:02] <veb> man my son just unlocked my phone with the pattern thing
766: [07:17:05] <veb> dude is 2
767: [07:17:08] <veb> goddamnit
768: [07:17:09] <veb> nothing is safe
769: [07:17:49] <neilfse> Kingy[a]: http://web.archive.org/web/20060614183004/http://www.zulumonkey.org/?id=login&page=staff
770: [07:18:44] <veb> neilfse: I think we must've been added as mods, like ... every day, removed every other day
771: [07:18:50] <veb> haha drama
772: [07:26:04] * spronk quit (Quit: I may need a longer sleep timer...)
773: [07:26:10] * swaiba has joined #silverstripe
774: [07:41:40] <wmk> veb, too easy pattern?
775: [07:44:52] * simon_w|air quit (Quit: My Mac has gone to sleep. ZZZzzz…)
776: [07:55:30] <ss-helper> How to make widget areas in Silverstripe 3.1 - http://stackoverflow.com/questions/31335102/how-to-make-widget-areas-in-silverstripe-3-1
777: [07:55:41] <wmk> hmm, as in 2.4???
778: [07:58:55] * Stomach has joined #silverstripe
779: [08:02:54] * GioVdK has joined #silverstripe
780: [08:08:19] * ss-helper quit (Ping timeout: 246 seconds)
781: [08:10:10] <wmk> hey Stomach
782: [08:10:20] <Stomach> good evening
783: [08:16:06] * Stomach quit (Quit: zzz)
784: [08:18:40] * ss-helper has joined #silverstripe
785: [08:23:27] * ss-helper quit (Ping timeout: 256 seconds)
786: [08:25:11] * kinglozzer has joined #silverstripe
787: [08:26:22] <marvanni> Why can’t I add additional fields to get in DataListt……….
788: [08:27:31] <marvanni> I need to sort the results of a PaginatedList where if a date value >= now they should be on top
789: [08:29:40] <marvanni> if I could do $list->set / add Select() I could do SELECT IF(), which is now impossible...
790: [08:31:51] <marvanni> hm, this might work.. alterDataQuery
791: [08:32:55] * slievr has joined #silverstripe
792: [08:33:45] <wmk> hmm, where to set a different config var for logged in users?
793: [08:33:59] <wmk> _config.php? controller ?
794: [08:35:09] <wmk> i want ShortcodeParser::$error_behaviour to strip unparsed shortcodes for users, but show them for editors
795: [08:35:27] <marvanni> f*ck….. protected function selectField …..
796: [08:35:35] <wmk> ;)
797: [08:36:11] <wmk> marvanni, date >= now on top... sort by date DESC ?
798: [08:36:31] <wmk> so newest first?
799: [08:38:20] <marvanni> no, that would be easy… if SomeDate != '0000-00-00' && SomeDate > NOW() : put on top , ELSE ORDER BY LastEdited
800: [08:38:26] <marvanni> pseudo code…
801: [08:39:11] <marvanni> so all SomeDate in the past should be ignored in the sorting
802: [08:40:20] * ss-helper has joined #silverstripe
803: [08:40:47] * Copperis has joined #silverstripe
804: [08:43:12] <wmk> marvanni, and be sorted chaotically?
805: [08:43:22] <marvanni> no
806: [08:43:38] <wmk> i dont get it
807: [08:43:42] <marvanni> let me explain.
808: [08:44:58] <marvanni> I have list of Vacancies. They are ordered by LastEdited DESC. but some have a ShowOnTopDate. if a Vacancy has a ShowOnTopDate and that date is in the future, it should be showed on top of the list
809: [08:45:39] <marvanni> as soon as the ShoOnTopDate is in the past, it should be sorted by LastEdited
810: [08:46:03] <marvanni> and the pagination should still work
811: [08:46:58] <marvanni> and I don’t want to fetch, all 1000’s vacancies and loop over them to check if $item->ShowOnTop() and reorder an ArrayList...
812: [08:47:59] * simon_w has joined #silverstripe
813: [08:50:23] <wmk> well, how often does this list change? is caching an option?
814: [08:51:00] <wmk> marvanni, but i don't have any idea how to get this with mysql directly
815: [08:51:12] <wmk> stored procedure maybe
816: [08:51:34] <wmk> get all items
817: [08:51:56] <wmk> hmm
818: [08:52:06] <wmk> are showontopdates more than one page?
819: [08:52:41] <wmk> 1st page: get show on top and fill up with other items
820: [08:52:47] <wmk> 2nd page on: only get other items
821: [08:53:04] <wmk> recalculate the startfrom parameter
822: [08:54:45] * mahfuz quit (Ping timeout: 246 seconds)
823: [08:58:21] * Pyd0k has joined #silverstripe
824: [09:01:44] <wmk> Pyd0k, o/
825: [09:01:56] <Pyd0k> \o wmk :)
826: [09:05:36] <marvanni> the list changes all the time…
827: [09:06:08] <marvanni> sometimes showontop can be more then one page, yes.
828: [09:07:58] <marvanni> maybe I can use selectFromTable ….
829: [09:18:29] * Stomach has joined #silverstripe
830: [09:25:06] <ss-helper> Silverstripe 3.1.2 Issue saving FocusPoint when module used with Gallery module - http://stackoverflow.com/questions/24332804/silverstripe-3-1-2-issue-saving-focuspoint-when-module-used-with-gallery-module
831: [09:28:47] * Tanger quit (Quit: exit())
832: [09:29:12] <marvanni> not…..
833: [09:29:34] <marvanni> it adds the table name like Job.CASE stufu
834: [09:41:19] <wmk> marvanni, raw query?
835: [09:41:52] <marvanni> yeah, i guess… trying on other approach..
836: [09:51:51] * DimiStripe quit (Quit: DimiStripe)
837: [09:52:50] * elgabbu has joined #silverstripe
838: [09:53:00] <elgabbu> hi all
839: [09:53:45] <marvanni> this works http://sspaste.com/paste/show/559f96213eb71
840: [09:54:04] <elgabbu> so I have a dataobject which has its own getCMSFields .... i want to put some validation rules for one of the fields and have a pretty message show next to it ... what is the best approach?
841: [09:54:17] * Stomach quit (Quit: zzz)
842: [09:54:25] <marvanni> Overloading DataQuery to make selectField public, so i can set a CASE WHEN select to order by
843: [09:58:35] * Stomach has joined #silverstripe
844: [09:59:43] * jarr0dsz has joined #silverstripe
845: [10:00:23] * TombL quit (Ping timeout: 246 seconds)
846: [10:00:38] <swaiba> elgabbu - http://api.silverstripe.org/3.1/class-Validator.html
847: [10:01:05] * Frans_Amsterdam has joined #silverstripe
848: [10:03:08] <swaiba> then set getCMSValidator to return that validator in the DataObject
849: [10:10:04] * kozmikreis has joined #silverstripe
850: [10:10:07] <ss-helper> Which folder to put email templates in, when sending from admin? - http://stackoverflow.com/questions/26963640/which-folder-to-put-email-templates-in-when-sending-from-admin
851: [10:10:53] * veb quit (Quit: veb-irc: &)
852: [10:12:47] <kozmikreis> Hi everyone o/
853: [10:14:15] <kozmikreis> I'm having difficulty with a new FormAction I'm adding in - the new button appears but is not doing anything. I'd expect it to initiate a full form POST.
854: [10:14:34] <kozmikreis> Why would it not do anything at all? :-(
855: [10:15:36] <kozmikreis> In a nutshell the code I've added into getCMSFields is: $createExperimentCloneButton = FormAction::create('cloneAction', 'Clone Experiment Page'); $fields->addFieldsToTab("Root.ContentExperiment", array($createExperimentCloneButton));
856: [10:16:51] <kozmikreis> Surely clicking the button would at least make the page refresh? When I click it I see nothing on my network tab in Chrome.
857: [10:20:39] <Pyd0k> kozmikreis: because javascript onSubmit(function(){return false})
858: [10:21:39] <Pyd0k> and/or browser based validation failures ( <input ... required="required" />
859: [10:21:43] <Pyd0k> )
860: [10:26:25] <kinglozzer> kozmikreis: IIRC, the JS responsible for form submissions only looks for buttons contained inside an element with the class "Actions"
861: [10:26:48] <kinglozzer> Try $createExperimentCloneButton = CompositeField::create(FormAction::create('cloneAction', 'Clone Experiment Page'))->addExtraClass('Actions')
862: [10:26:53] <kozmikreis> Pyd0k: Yes, something already in the JS is preventing its natural events from finishing such as a return false or e.preventDefault();
863: [10:27:07] <kozmikreis> kinglozzer: OK, thanks, that makes sense, will try it :-)
864: [10:30:51] <kozmikreis> kinglozzer: Same behaviour as before :-( I tried putting the button back within the Main tab in case it wasn't wrapped in the <form /> but no difference there either :-/
865: [10:33:24] <kinglozzer> kozmikreis: This is what I used, works in a ModelAdmin: https://gist.github.com/kinglozzer/254d8ee63d685ac3c182
866: [10:33:30] <kinglozzer> Perhaps it's the ->setUseButtonTag() ?
867: [10:34:04] <jarr0dsz> hi everyone, im running a silverstripe project on server but it throws errors like " PHP Fatal error: Class 'GridFieldOrderableRows' not found in "
868: [10:34:18] * Stomach quit (Quit: zzz)
869: [10:34:21] <jarr0dsz> this worked ok before any experts could guide me in why this happens?
870: [10:34:43] * NETim has joined #silverstripe
871: [10:35:07] <NETim> Morning, is there a way to reverse $fields->removeByName()?
872: [10:35:10] <kinglozzer> jarr0dsz: Have you run a composer install on the server?
873: [10:35:19] <jarr0dsz> no havent run composer anyway
874: [10:35:32] <kinglozzer> jarr0dsz: Have you uploaded the gridfieldextensions module?
875: [10:35:37] <kinglozzer> That's what you're missing
876: [10:35:47] <jarr0dsz> i have a github repo with the silverstripe repo its an existing codebase
877: [10:35:56] <jarr0dsz> and worked before, not sure how I would check if that extension is intsalled
878: [10:36:01] <jarr0dsz> assuming it can be done with composer then?
879: [10:36:38] <kozmikreis> kinglozzer: Thanks, I'll try that!
880: [10:36:43] <kinglozzer> jarr0dsz: On your local copy, is there a "gridfieldextensions" folder in the document root?
881: [10:37:17] <kinglozzer> The "GridFieldOrderableRows" class is part of that module
882: [10:37:18] <jarr0dsz> king: yes there is a mod_gridfieldextensions folder
883: [10:37:33] <kinglozzer> jarr0dsz: And has that been uploaded to the server?
884: [10:37:39] <jarr0dsz> its also on the server that causes this issue
885: [10:37:43] <jarr0dsz> on local dev it works fine though
886: [10:37:56] <kinglozzer> jarr0dsz: Have you run a /dev/build on the server?
887: [10:38:01] <jarr0dsz> i have set for now all user folder rights to 777 ( i know bad ) to prevent issues with rails
888: [10:38:03] <jarr0dsz> also yes
889: [10:38:05] <jarr0dsz> i try /dev/build again
890: [10:38:16] <kinglozzer> jarr0dsz: Is the folder empty or something?
891: [10:38:19] <kinglozzer> on the server
892: [10:38:58] <jarr0dsz> im checking it now kinglozzer
893: [10:39:12] <jarr0dsz> not empty files seem to be there
894: [10:39:41] <jarr0dsz> i ran dev/build but problem persist now checking the log files again
895: [10:40:47] <kozmikreis> kinglozzer: Yay, it works! Now to create the action for it serverside - where should that bit live?
896: [10:40:57] <kinglozzer> kozmikreis: Is this ModelAdmin/
897: [10:41:00] <kinglozzer> ?
898: [10:41:11] <kozmikreis> kinglozzer: No, this is a page class that extends SiteTree
899: [10:41:35] <kinglozzer> kozmikreis: And your action is on the page? Not inside a GridField or anything?
900: [10:41:54] <kozmikreis> kinglozzer: That's right, it's to clone the entire page.
901: [10:42:13] <jarr0dsz> im trying a new clone from the repo now
902: [10:42:23] <jarr0dsz> do i have to run antything related to composer after having the SS code in a folder?
903: [10:42:25] <kozmikreis> (Well, with certain modifications)
904: [10:42:27] <jarr0dsz> like composer install
905: [10:43:09] <kinglozzer> kozmikreis: You'll need to add an extension to CMSMain
906: [10:44:33] * headtrip has joined #silverstripe
907: [10:45:55] <kinglozzer> kozmikreis: https://gist.github.com/kinglozzer/bf49a1f754ccc3ca9d6b
908: [10:45:57] <kinglozzer> Something like that
909: [10:46:14] <kozmikreis> kinglozzer: OK, cheers, I'll continue poking at it. Thanks for all your help, it's been really useful indeed!
910: [10:46:21] <kinglozzer> jarr0dsz: Well that depends on if the project was originally set up with composer
911: [10:46:36] <jarr0dsz> its not setup with composer kinglozzer there is no composer.json file available
912: [10:46:38] <jarr0dsz> so i guess not
913: [10:46:50] <kinglozzer> Yeah, you don't need to do anything with composer then
914: [10:46:50] <jarr0dsz> i tried cloning the project in a new httpdocs and ran /dev/build
915: [10:46:54] <jarr0dsz> but the problem persists
916: [10:47:02] <jarr0dsz> how is this possible? it worked all before
917: [10:47:38] <kinglozzer> jarr0dsz: Is there are file "mod_gridfieldextensions/code/GridFieldOrderableRows.php" ?
918: [10:47:42] <kinglozzer> a file *
919: [10:48:20] <jarr0dsz> yes there is kinglozzer
920: [10:48:51] <kinglozzer> jarr0dsz: And there's not a "manifest_exclude" file anywhere in the "mod_gridfieldextensions" directory?
921: [10:49:28] <jarr0dsz> no, not such file
922: [10:49:39] <jarr0dsz> there is a composer.json in the mod_gridextension folder though
923: [10:49:44] <kinglozzer> Hmm, sounds like a cache issue
924: [10:49:56] <kinglozzer> Do you have a "silverstripe-cache" directory in your document root?
925: [10:50:56] <jarr0dsz> yes i have
926: [10:51:26] <jarr0dsz> its the cache that gets re-generated on ?flush=1 right
927: [10:51:36] <kinglozzer> Yeah, try removing that folder
928: [10:52:39] <jarr0dsz> ok removed and then rerun /dev/build?
929: [10:52:58] <Pyd0k> [11:35] <NETim> Morning, is there a way to reverse $fields->removeByName()?
930: [10:53:01] <Pyd0k> yeh, comment the line!
931: [10:53:03] <Pyd0k> :P
932: [10:53:05] <kinglozzer> jarr0dsz: Yeah
933: [10:54:17] <jarr0dsz> hmz, problem still persist
934: [10:55:22] <jarr0dsz> hmz now after rebuilding the /dev/build
935: [10:55:27] <jarr0dsz> there is no more silverstripe-cache folder ;s
936: [10:55:32] <jarr0dsz> would it be an idea to disable caching?
937: [10:55:37] <jarr0dsz> since that seems to be the problem
938: [10:55:53] <jarr0dsz> assuming its not created it could also not read *everything) inside that folder
939: [10:56:12] <kinglozzer> jarr0dsz: No, you can't disable caching anyway
940: [10:56:20] <kinglozzer> Try making that silverstripe-cache folder again
941: [10:56:24] <kinglozzer> It should then use that as the cache
942: [10:57:00] <kinglozzer> (i.e. add it, but make sure it's empty)
943: [10:57:18] <jarr0dsz> http://devincharge.com/disabling-cache-silverstripe/
944: [10:57:25] <jarr0dsz> ok trying that
945: [10:58:18] * r3v3rb has joined #silverstripe
946: [10:58:25] <r3v3rb> morning
947: [10:58:57] <kinglozzer> Yeah that doesn't really disable it as such, just forces it to be rebuild every time
948: [10:59:03] <kinglozzer> morning r3v3rb
949: [10:59:07] <jarr0dsz> kinglozzer also that does not help
950: [10:59:14] <jarr0dsz> i also checked all the folder permissions and rights
951: [10:59:18] <jarr0dsz> they seem to be ok
952: [10:59:26] <kinglozzer> jarr0dsz: Is there anything in that silverstripe-cache folder now?
953: [10:59:28] <jarr0dsz> checking the error logs now again assuming its complaining again about the grid module
954: [10:59:35] <jarr0dsz> kinglozzer only a www-data folder
955: [10:59:42] <kinglozzer> Yeah, that's correct
956: [10:59:43] <r3v3rb> hi kinglozzer - having a terrible tie with Translatable and siteconfigextension…
957: [10:59:47] <r3v3rb> time*
958: [11:00:02] <kinglozzer> r3v3rb: Does anyone ever have a *good* time with Translatable? :P
959: [11:00:24] <r3v3rb> kinglozzer: sitetree works no problem,
960: [11:00:42] <r3v3rb> each user in a group gets their own sitetree to edit
961: [11:01:03] <jarr0dsz> kinglozzer this is in that folder https://gist.github.com/rubytastic/443a0534338e12b1b426
962: [11:01:11] <jarr0dsz> i changed site name rest is original
963: [11:01:38] <r3v3rb> but I have siteconfig set up as translatable too, yet anyone who logs in gets to see the default site config and all others. Trying to get canEdit/canCreate to play ball is not fun
964: [11:02:15] <kinglozzer> jarr0dsz: Yes, that's normal
965: [11:02:29] <kinglozzer> jarr0dsz: Is it definitely still erroring about GridFieldOrderableRows?
966: [11:02:57] <kinglozzer> r3v3rb: :(
967: [11:03:03] <r3v3rb> however the ‘foreign’ editor is also not able to create a translation from the default site either…
968: [11:03:11] <r3v3rb> time to clear db and start again me thinks
969: [11:03:13] <kinglozzer> Use injector to override the controller responsible for that bit of the CMS, then do your own thing?
970: [11:03:58] <r3v3rb> really? surely canEdit/canCreate should kick in on the extension no?
971: [11:04:03] <jarr0dsz> kinglozzer its still complaining HP Fatal error: Class 'GridFieldOrderableRows' not found in /var/www/app/html/mod_gallery/code/admins/GalleryAdmin.php on line 47, referer: http://localhost:8034/
972: [11:04:14] <jarr0dsz> is there a way to fix this somehow? it may be dirty i don't care atm
973: [11:04:35] <jarr0dsz> since i have this project that have to be updated today or i will be kinda in problem, not my fault bad planning from management
974: [11:04:47] <jarr0dsz> but it could cause me lots of headaches if i can't fix this which seems not posisble atm
975: [11:06:12] <kinglozzer> r3v3rb: Yeah they should, that was just gonna be my suggestion if you couldn't get them to play ball :P
976: [11:06:35] * joelpittet quit (Remote host closed the connection)
977: [11:06:42] <r3v3rb> well debugger slowly starting to show signs of life now
978: [11:06:54] <kinglozzer> jarr0dsz: I'm out of ideas :/
979: [11:09:05] <r3v3rb> kinglozzer: jeex, cant even get it to remove the tab at the moment :P Friday is turning out to be one of those days!
980: [11:09:32] <r3v3rb> it’s calling the functions returning what I expect but the CMS is still playing silly with me!
981: [11:10:07] <r3v3rb> canEdit doesn’t appear to be being called in the extension though
982: [11:11:53] <r3v3rb> humpff, http://stackoverflow.com/questions/16758844/dataextension-and-canview
983: [11:14:23] <swaiba> really? I'm sure in our V3 code we use an "Extension" to handle the canView, CanEdit, etc
984: [11:16:10] <r3v3rb> swaiba, yep just looking at the docs now seems its supported
985: [11:16:50] <jarr0dsz> tried everything still the problem persists Class 'GridFieldOrderableRows' not found in
986: [11:17:27] * r3v3rb confused why not being checked when viewing siteconfig in browser and breakpoint set in PHPStorm for canView
987: [11:17:51] <swaiba> jarr0dsz - might be coming in late on this one, but whenever that happens to be I *delete manually* the contents of my silverstripe-cache
988: [11:18:09] <jarr0dsz> and that resolved it?
989: [11:18:12] <r3v3rb> swaiba: me too, don’t trust ?flush all the time
990: [11:18:22] <jarr0dsz> i have applied the disable cache option also so i now removed the cache alltogher
991: [11:18:27] <r3v3rb> then dev/build again
992: [11:18:37] <jarr0dsz> so assuming that folder is now not needed anymore and it should just grabb everythign from the SS folder itself
993: [11:18:52] <swaiba> well I've had some come up recently and delete the whole cache has rescued the situation where all builds and flushes did not
994: [11:19:03] <jarr0dsz> but same problem persists
995: [11:19:48] <swaiba> r3v3rb - you can stick a break point here... http://api.silverstripe.org/3.1/source-class-DataObject.html#2602
996: [11:20:04] <swaiba> and see what it's doing in terms of finding the extension
997: [11:20:16] <r3v3rb> swaiba: great idea, thanks
998: [11:24:43] * headtrip quit (Quit: (null))
999: [11:25:43] <r3v3rb> nope not calling that one on the DO either swaiba - time for a reboot and flush soon
1000: [11:26:19] <swaiba> is the extension in the same module as the object?
1001: [11:26:44] <swaiba> if not does the config.yml state to include the module with extension after the module withthe dataobject?
1002: [11:27:32] <wmk> marvanni, NOW() inside a query... mysql will not cache it
1003: [11:27:36] <wmk> so heavy load all the time
1004: [11:28:03] <marvanni> hm, but I need to know now....
1005: [11:28:08] <r3v3rb> swaiba: the extension is to SiteConfig so resides in the mysite code folder for now
1006: [11:28:11] <wmk> marvanni, ->where(implode(" AND ", $where))... looks very elegant
1007: [11:28:57] <r3v3rb> _config set with SiteConfig::add_extension(‘kjshfkhd’) and the updateCMSfields is being called on the extension - but not the canEdit/canView functions
1008: [11:29:11] <wmk> marvanni, well, precalculate the current minute or the current 5 minute interval
1009: [11:29:22] <wmk> and > $calculatedTimestamp
1010: [11:29:24] <marvanni> I used it a lot when I have an advanced searchform with a lot of get params.
1011: [11:29:30] <swaiba> r3v3rb - not using config.yml for the extension?
1012: [11:29:51] <wmk> marvanni, was just a note for performance.... mysql NOW() is a cache killer
1013: [11:29:54] <r3v3rb> nope, should I - is it functionally different to _config.php SiteConfig::add_extension?
1014: [11:30:06] <wmk> cause it's different every second
1015: [11:30:12] <kinglozzer> marvanni: Make sure you're escaping those wheres!
1016: [11:30:14] <marvanni> so I could better use php date() ?
1017: [11:30:16] <kinglozzer> :)
1018: [11:30:23] <marvanni> ofcourse :)
1019: [11:30:28] <wmk> kinglozzer, good point
1020: [11:30:30] * kozmikreis quit (Ping timeout: 246 seconds)
1021: [11:30:50] <wmk> though... cannot ->where() just accept an array of different wheres?
1022: [11:31:09] <marvanni> to be sure Convert::raw2sql($_GET); is that enough?
1023: [11:31:20] <wmk> so ->where(implode(' AND ', $where)) is the same like ->where($whereArray) ??
1024: [11:31:49] <marvanni> never thougth about that…. letme check
1025: [11:32:07] <wmk> nope, ->filter($whereArray)
1026: [11:32:16] * lerni quit (Remote host closed the connection)
1027: [11:32:24] <wmk> filter() afaik does an AND to all items
1028: [11:32:57] <swaiba> r3v3rb - well it's what I'd use - I'd reco to use that and then you can check the config::inst to see if registered correctly
1029: [11:33:05] <wmk> though filter() also takes that modifiers
1030: [11:33:07] <marvanni> yeah, where accepts an array..
1031: [11:33:12] <swaiba> if only as it is another option and if not working with option 1, then try option 2
1032: [11:33:20] <r3v3rb> okay thanks swaiba
1033: [11:33:44] <kinglozzer> wmk, marvanni: Yeah ->filter() is AND, ->filterAny() is OR
1034: [11:33:56] <r3v3rb> this is so frustrating as Translatable and the extension worked perfectly in 2.4.X
1035: [11:34:14] <swaiba> r3v3rb comes with the job surely :)
1036: [11:34:20] <jarr0dsz> any thoughts on missing modules in general? they are really persistant
1037: [11:34:21] <r3v3rb> updating site visuals and backend to ss3 and its all a bit pete tong
1038: [11:34:23] <wmk> r3v3rb, problems?
1039: [11:34:24] <darjus01> hi all, on loop is $pos var, its starts from 1, is any var in loop that starts from 0?
1040: [11:34:24] <r3v3rb> swaiba: true
1041: [11:34:31] <jarr0dsz> but it seems SS cannot read them somehow even with correct file permissions
1042: [11:34:43] <marvanni> I build the where array from isset get vars, so i have them grouped
1043: [11:35:27] <marvanni> darjus01 you can use $Pos(1 or 0) ? to start with 1 or 0 ?
1044: [11:35:27] <r3v3rb> wmk, translatable added to siteconfig showing all locales to whoever is logged in, trying to override canView, canEdit to reduce to only those in a specfic group/locale not working
1045: [11:36:05] <wmk> r3v3rb, ok, never had this issue that a user is only allowed to edit one locale
1046: [11:36:07] <darjus01> ok ok thx i didnt know that
1047: [11:36:13] <darjus01> :)
1048: [11:36:35] <r3v3rb> wmk, its for foreign dealers to edit ‘their own’ site in the corporate site
1049: [11:36:51] <marvanni> any regex master that can make replacement between ’Start Text’ (.?) ‘End Text’?
1050: [11:36:55] <r3v3rb> technically they just add/edit pages in their translation
1051: [11:37:04] <r3v3rb> worked really well in 2.4
1052: [11:37:11] <wmk> r3v3rb, yup, i remember you told us some days ago
1053: [11:37:37] <r3v3rb> wmk, yes I left it for a couple of days as there is no deadline for this job
1054: [11:37:45] <r3v3rb> :D
1055: [11:37:48] <wmk> lucky guy
1056: [11:38:35] <marvanni> I would be happy if we all started to speak english, just because of thet i18n, dateformats and translatable shit that comes up every now and then
1057: [11:38:43] * TombL has joined #silverstripe
1058: [11:39:04] <r3v3rb> wmk, sure very friendly with the owner of the company - he lives round the corner from me / my office and we meet regularly for coffee :D It’s a nice working relationship
1059: [11:39:16] <elgabbu> thanks swaiba got it working now :)
1060: [11:39:22] <r3v3rb> he gets what he wants - I get all the time to produce it
1061: [11:39:53] <swaiba> elgabbu my pleasure :)
1062: [11:40:56] <elgabbu> swaiba so basically any custom validation of the CMSFields form would go in such a custom class correct ? ... but one can't have a mixture of validators operationg on the same CMS fields right?
1063: [11:41:54] <swaiba> elgabbu I guess it isn't never got too complicated for me, but I think if you have class a extend class b - both validators would be called
1064: [11:42:06] <swaiba> provided you include parent::validate() :)
1065: [11:42:31] <elgabbu> parent::php($data) you mean
1066: [11:44:11] <swaiba> yes
1067: [11:44:31] <elgabbu> ok i get your point
1068: [11:45:17] * r_hector has joined #silverstripe
1069: [11:45:20] <r3v3rb> swaiba: holy crap - config.yml extension calls canEdit/canView yet _config.php wasn't
1070: [11:46:04] <wmk> ?
1071: [11:46:09] <wmk> got it solved?
1072: [11:46:21] <r3v3rb> wmk, not yet but at least canEdit is being called now
1073: [11:46:26] <wmk> cool
1074: [11:46:55] <swaiba> r3v3rb - wow - is the _config.php depreciated or anything?
1075: [11:47:08] <swaiba> sounds like a tinnie tiny bugette
1076: [11:47:27] <r3v3rb> swaiba: not that I was aware of, maybe a cache issue? just manually deleted SS_cache and now getting the breakpoints
1077: [11:47:32] <r3v3rb> wierd
1078: [11:50:15] <r3v3rb> and now its not again… arghhh time to kick phpstorm in the gnads
1079: [12:00:19] * joelpittet has joined #silverstripe
1080: [12:01:58] <wmk> r3v3rb, dev mode?
1081: [12:03:13] <elgabbu> general question ... when adding new translations using the _t function .... how does the theme translator pick them up from the code?
1082: [12:04:55] * joelpittet quit (Ping timeout: 246 seconds)
1083: [12:07:02] <Pyd0k> marvanni: /^(.+)$/g
1084: [12:07:50] <Pyd0k> lunch time walk I think.
1085: [12:08:39] <Copperis> elgabbu, you mean how does the i18n Textcollector Task work?
1086: [12:09:25] <elgabbu> Copperis ... ah I see so there is a task that goes through the code and insert and new translation entities to the DB
1087: [12:09:51] * fateieder has joined #silverstripe
1088: [12:10:32] <Copperis> i don't know if it uses the db, I know it uses .yml files
1089: [12:12:03] <Copperis> it parses the code _t() functions, and/or provideI18nEntities(). Sometimes fails fatally on the former
1090: [12:14:32] <fateieder> hi all! who can help in private? silverStripe / blog / ajax ? I'm from Russia, I do not speak English
1091: [12:15:02] * UndefinedOffset has joined #silverstripe
1092: [12:15:44] <fateieder> ,блин
1093: [12:22:00] * DimiStripe has joined #silverstripe
1094: [12:22:42] <wmk> elgabbu, there is also a zauberfisch module, betteri18nTextcollector
1095: [12:22:59] <wmk> also generates default strings for e.g. fieldnames etc. for you
1096: [12:23:33] <elgabbu> will check it out thanks wmk
1097: [12:23:58] <wmk> install it with require-dev, so it's only on your dev environment
1098: [12:24:01] <wmk> you won't need it on live
1099: [12:24:06] <wmk> has some other requirements
1100: [12:25:42] <fateieder> tell me how to make a blog work through Ajax
1101: [12:26:10] <wmk> fateieder, ?
1102: [12:27:25] <fateieder> silverstripe/blog It should work through Ajax, without switching pages
1103: [12:28:47] <fateieder> how to make?
1104: [12:29:03] <wmk> pagination?
1105: [12:29:10] <wmk> there is an ajax pagination module around
1106: [12:29:16] <fateieder> no.
1107: [12:29:20] <fateieder> all blog
1108: [12:29:33] <wmk> did you see the latest lession?
1109: [12:30:00] <wmk> http://www.silverstripe.org/learn/lessons #17 and #18 cover this topic afaik
1110: [12:31:11] <fateieder> спасибо. Посмотрю еще раз
1111: [12:31:11] <wmk> have to run, cu later
1112: [12:31:29] <fateieder> thank. Watch again
1113: [12:37:30] <r3v3rb> wmk, sorry eating lunch!
1114: [12:37:34] <r3v3rb> dev mode?
1115: [12:43:50] <jarr0dsz> i managed to fix my error this morning
1116: [12:44:03] <jarr0dsz> the problem was a _config file with no content so it was not put on the prod server by git ;'
1117: [12:44:50] <jarr0dsz> trying to understand the SS filtering and AR methods
1118: [12:45:13] <jarr0dsz> anyone could help me fix this code sample https://gist.github.com/rubytastic/adfad4be4223c09b952a im trying to get all the birthdays for this month from a table employees with birthdate column
1119: [12:45:14] <r3v3rb> ok I give up, translatable new site, new db, new group with ‘view dropdown’, ‘translate en_US’ set and translate all languages. login as user from that group and not able to create translated page from default en_GB
1120: [12:45:25] <jarr0dsz> but i think i tackle it all wrong currently code is bad it shows all future dates instead btw
1121: [12:47:28] * Liquide has joined #silverstripe
1122: [12:50:33] <Copperis> jarr0dsz, you're filtering from this day to whenever. You need to filter from the start of the month to the end of the month. You can do $today = date('Y-m-d', mktime(0, 0, 0, 0, 0)); to start from this month
1123: [12:51:25] <Copperis> and it would no longer be $today, more like $startOfMoth
1124: [12:51:39] <jarr0dsz> the problem would be you need to take into consideration the year also
1125: [12:53:38] <jarr0dsz> so not quite sure how to tackle this
1126: [12:53:45] <marvanni> Pyd0k ty. I need to replace all between this strings “StartGeneratedWithGenerateDataObjectPHPDocAnnotationsTask” (.*) “EndGeneratedWithGenerateDataObjectPHPDocAnnotationsTask”
1127: [12:54:00] <marvanni> I really need to lock myself and learn proper regex
1128: [12:54:08] <Copperis> jarr0dsz, right, you can use MONTH() myslq function to extract the month from a date
1129: [12:54:28] * joelpittet has joined #silverstripe
1130: [12:54:56] <jarr0dsz> Copperis ok but how would that look with the silverstripe syntax?
1131: [12:55:55] <jarr0dsz> i think i would need a filter for when birthdate month is > current_month
1132: [12:56:37] <Copperis> i don't know, maybe this will work: ->filter('Month(Birthdate)', $thisMonth) ?
1133: [12:59:12] * joelpittet quit (Ping timeout: 264 seconds)
1134: [13:00:04] <jarr0dsz> thanks Copperis don't think that works
1135: [13:00:38] * swaiba quit (Remote host closed the connection)
1136: [13:03:01] <jarr0dsz> i have the sql query already perhaps i should try to load the raw sql query with SS
1137: [13:04:22] * fateieder quit (Quit: Page closed)
1138: [13:05:21] <jarr0dsz> expected this to work $Employees = DB::query("SELECT * FROM Employee"); but that fails
1139: [13:05:32] <jarr0dsz> gives me a white page, anything im missed perhaps?
1140: [13:09:46] <Copperis> jarr0dsz, this syntax works http://www.sspaste.com/paste/show/559fc40c8a32d
1141: [13:10:15] <jarr0dsz> thank you Copperis ill try that, th current_month in what format would that be?
1142: [13:11:00] <Copperis> month number from 1 to 12
1143: [13:11:07] <Copperis> https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_month
1144: [13:13:04] <jarr0dsz> okay im trying the code but seems to fail with an error much appreciated though
1145: [13:13:05] <Pyd0k> Privet fateieder
1146: [13:13:51] <jarr0dsz> Copperis it woud throw this exception https://gist.github.com/rubytastic/7f2bfd239abd3a72efd6
1147: [13:14:04] <jarr0dsz> sorry bad link ; https://gist.githubusercontent.com/rubytastic/7f2bfd239abd3a72efd6/raw/a485a2a08f41458d33d1a069a8a98a7168667b8f/gistfile1.txt
1148: [13:14:13] <Pyd0k> rfhj
1149: [13:14:25] <jarr0dsz> ah stupid stupid i already see the problem s nevermind
1150: [13:16:20] <Pyd0k> marvanni: regular-expressions.info is what taught me.
1151: [13:16:23] <Pyd0k> good site.
1152: [13:16:26] <Pyd0k> best site.
1153: [13:17:10] <marvanni> yeah, i should spend more time there :) got it fixed with this : "/$startTag([\s\S]*?)$endTag/"
1154: [13:17:52] <Pyd0k> preg_replace('/StartGeneratedWithGenerateDataObjectPHPDocAnnotationsTask(.*)EndGeneratedWithGenerateDataObjectPHPDocAnnotationsTask/', 'StartGeneratedWithGenerateDataObjectPHPDocAnnotationsTask <Replacement stuff!> EndGeneratedWithGenerateDataObjectPHPDocAnnotationsTask', $string)
1155: [13:19:31] <Pyd0k> marvanni: that is: A character that is white space, or not white space, occurring as many times as you can grab (greedily), including zero times, which might not exist.
1156: [13:20:08] <Pyd0k> ie, .*
1157: [13:20:31] <marvanni> but it didn’t work …
1158: [13:20:40] <Pyd0k> start from start maybe.
1159: [13:20:44] <Pyd0k> what are you trying to do?
1160: [13:20:49] <Pyd0k> match HTML?
1161: [13:21:27] * Coffee has joined #silverstripe
1162: [13:21:34] <Coffee> hi
1163: [13:21:38] <Coffee> anyone here?
1164: [13:21:42] <Pyd0k> hi
1165: [13:21:48] <Pyd0k> No.
1166: [13:21:50] * Coffee is now known as Guest62777
1167: [13:22:04] <Guest62777> i have a problem when using silverstripe's error page
1168: [13:22:15] <Pyd0k> how does one 'use' an error page?
1169: [13:22:21] <Guest62777> its keeps logging me out.
1170: [13:22:43] <Pyd0k> from?
1171: [13:22:44] <Guest62777> anyi create an error page (404)
1172: [13:22:48] <Guest62777> from the admin
1173: [13:23:01] * ss-helper quit (Ping timeout: 246 seconds)
1174: [13:23:14] <Pyd0k> you're browsing to a 404 in the admin?
1175: [13:23:36] <marvanni> no docblock string
1176: [13:23:51] <Guest62777> i have a page of type ErrorPage
1177: [13:23:55] * deskmaster has joined #silverstripe
1178: [13:24:04] <Pyd0k> and?
1179: [13:24:10] <Pyd0k> marvanni: right
1180: [13:24:11] <Pyd0k> so
1181: [13:24:33] <Guest62777> everything i try to edit something and save it.. it logs me out
1182: [13:24:41] <Pyd0k> preg_replace('#/*(.*)*/#', '$1', $string)
1183: [13:24:46] <Pyd0k> oh sorry
1184: [13:24:51] <marvanni> http://sspaste.com/paste/show/559fc79976365
1185: [13:24:54] <Pyd0k> preg_replace('#/\*(.*)\*/#', '$1', $string)
1186: [13:25:03] <marvanni> but this seems fine ? return preg_replace("/$startTag([\s\S]*?)$endTag/", $replacement, $fileContent);
1187: [13:25:27] <Pyd0k> yeah well, if it's working.
1188: [13:25:31] * Pyd0k shrugs
1189: [13:25:51] <Pyd0k> Guest62777: so it has nothing to do with error pages?
1190: [13:26:00] <Pyd0k> just saving something causes you to have to log in again?
1191: [13:27:46] <Guest62777> but only on the error page
1192: [13:27:57] <Pyd0k> Don't save the error page then :P
1193: [13:28:09] <Pyd0k> what version of silverstripe?
1194: [13:28:22] <Guest62777> 3.1
1195: [13:28:25] <Pyd0k> .?
1196: [13:28:41] <Guest62777> .12
1197: [13:29:21] <marvanni> So now PHPStorm recognizes my database properties : dev/tasks/GenerateDataObjectPHPDocAnnotationsTask?DataObject=MyDataObject
1198: [13:29:27] <marvanni> need to find a shorter name though..
1199: [13:30:51] <Pyd0k> Guest62777: so what's the error?
1200: [13:31:03] <Pyd0k> you hit save and it just takes you to Security/login?
1201: [13:39:18] * Guest62777 quit (Ping timeout: 246 seconds)
1202: [13:40:28] * ss-helper has joined #silverstripe
1203: [13:43:40] <kinglozzer> Uh-oh, the Githubs are down
1204: [13:48:44] * joelpittet has joined #silverstripe
1205: [13:52:22] * ss31noob has joined #silverstripe
1206: [13:52:34] <marvanni> any recommendations ? http://sspaste.com/paste/show/559fce0aeb97a
1207: [13:52:45] * ss31noob_ has joined #silverstripe
1208: [13:53:30] * joelpittet quit (Ping timeout: 255 seconds)
1209: [13:53:33] * darjus01 quit (Read error: Connection reset by peer)
1210: [13:53:43] * marvanni has left #silverstripe
1211: [13:53:53] * marvanni has joined #silverstripe
1212: [13:56:27] * ss31noob quit (Ping timeout: 246 seconds)
1213: [14:01:42] * deskmaster quit (Ping timeout: 246 seconds)
1214: [14:02:49] <marvanni> it should not inherit :)
1215: [14:06:19] * swaiba has joined #silverstripe
1216: [14:12:22] * MadAtEntwine has joined #silverstripe
1217: [14:15:42] * muskie9 has joined #silverstripe
1218: [14:16:10] <MadAtEntwine> Hi all. I want Entwine to re-run similarly to jquery 'live' used to do - i.e. every time i visit a page with the matching className. What am I doing wrong, please? http://www.sspaste.com/paste/show/559fd31dd5c0f
1219: [14:17:40] <MadAtEntwine> it runs on hard refresh then if i navigate away and back... nothing. :(
1220: [14:18:42] <marvanni> Is there any other method then requireDefaultRecords to hook into dev/build?
1221: [14:23:25] <jarr0dsz> is it possible to use php inside SS ?
1222: [14:23:33] <jarr0dsz> i have a Birthdate and need to strip the year from it
1223: [14:23:44] <jarr0dsz> but not possible at all to use php inside the SS templates
1224: [14:24:06] <marvanni> You can use $Date.Format(‘m-d’)
1225: [14:24:27] <marvanni> or $Date.i18nFormat(‘%b - %something’)
1226: [14:24:53] <marvanni> this only works if your database field is a date or datetime field
1227: [14:26:43] <jarr0dsz> thank you marvanni $Birthdate.Format('d F') like that works
1228: [14:26:51] <jarr0dsz> only problem then the month name is not in correct locale
1229: [14:26:56] <jarr0dsz> its english, is there a way to fix that?
1230: [14:27:44] <marvanni> use i18nFormat
1231: [14:27:51] <jarr0dsz> i18nFormat?
1232: [14:27:56] <jarr0dsz> ah okay like that
1233: [14:28:00] <jarr0dsz> thank you
1234: [14:28:04] <marvanni> or formati18n, not sure on top of my head
1235: [14:28:16] <swaiba> marvanni - could make a controller extension and check if it is is_a(Controller::curr(), 'DevelopmentAdmin')
1236: [14:28:28] <jarr0dsz> ah onyl problem then its output is empty ;(
1237: [14:29:19] <marvanni> FormatI18N(‘’) ; you need to use strftime then http://php.net/manual/en/function.strftime.php
1238: [14:29:59] * jarr0dsz quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1239: [14:30:24] <Pyd0k> MadAtEntwine: entwine by very definition is 'live'
1240: [14:30:49] <Pyd0k> Javascript by definition is CaseSensitive.
1241: [14:30:55] <Pyd0k> Onmatch !== onmatch
1242: [14:31:24] <MadAtEntwine> are they both valid because the debugger gives me an error saying it shoudl be uppercase?
1243: [14:31:43] <Pyd0k> is that a question or a statement?
1244: [14:32:20] <Pyd0k> read http://takeaway.bigfork.co.uk/a-beginners-introduction-to-using-entwine-in-silverstripe
1245: [14:32:49] <Pyd0k> well sorry, that's a poor assumption. Are you running this in the CMS?
1246: [14:34:15] <Pyd0k> either way it gives a decent grounding I think.
1247: [14:38:27] <MadAtEntwine> ive read that and unless im missing something, it should work? I've tried both Onmatch and onmatch (only difference being SS whines about casing with 'o' and not 'O'. Only thing I missed is the _super and that breaks everything.
1248: [14:39:05] <Pyd0k> You're definitely missing something. I'm not sure what it is though.
1249: [14:39:14] <Pyd0k> ask kinglozzer
1250: [14:40:08] <Pyd0k> also you never said if this is in the cms or not
1251: [14:40:09] * Mike123 quit (Quit: Page closed)
1252: [14:40:55] <kinglozzer> 'onmatch' should be lower case
1253: [14:41:06] <kinglozzer> idk if _super() will do anything if you're not in the 'ss' namespace
1254: [14:41:12] <kinglozzer> (assuming you're in the CMS)
1255: [14:41:34] <marvanni> swaiba, thanks, ill guess I will hook into with requireDefault records...
1256: [14:42:37] <swaiba> marvanni sure, it all depends what you want to do - I use both depending on the situation
1257: [14:42:51] * joelpittet has joined #silverstripe
1258: [14:43:04] <marvanni> generating docblock annotations for the database fields and relations
1259: [14:43:27] <marvanni> so phpstorm will recognize $this->Title
1260: [14:43:39] <marvanni> or $this->Author()
1261: [14:44:07] <swaiba> that sounds interesting
1262: [14:44:22] <marvanni> http://sspaste.com/paste/show/559fce0aeb97a
1263: [14:44:28] <marvanni> still working on it.
1264: [14:45:17] <MadAtEntwine> @kinglozzer - im including a script via LeftAndMainExtension's init() and looking for a specific div. Interestingly, it now works. Bizarre. All I did was move the includes to the getCMSFields of the tab/page in question and then back to the LeftAndMainExtension's init()... net effect. Nothing changed, yet it works.
1265: [14:45:21] <MadAtEntwine> -bangs head on wall
1266: [14:45:26] <MadAtEntwine> thanks all anyways!
1267: [14:45:51] <marvanni> just fixed the inheritted properties. now need a nice way to only generate docblocks for my own DO’s
1268: [14:46:21] <marvanni> Is there a way that Silverstripe knows if a module is coming from composer require of its is added by myself?
1269: [14:46:24] <swaiba> if it becomes a module, I know the guys using phpstorm here would find that very useful
1270: [14:46:50] <marvanni> You I saw the github repo. im using the plugin. very nice
1271: [14:47:05] <swaiba> whats that?
1272: [14:47:16] <marvanni> i will for sure release it when i have tests
1273: [14:47:30] <marvanni> que?
1274: [14:47:48] * joelpittet quit (Ping timeout: 264 seconds)
1275: [14:47:53] <swaiba> cool - I'll keep looking out for it
1276: [14:48:07] <swaiba> I used to use PHP, still do sometimes, but old editor habits die hard :)
1277: [14:48:13] <swaiba> *PHPStorm
1278: [14:48:46] <marvanni> I know. but now I can’t imagine that I used Dreamweaver for so long
1279: [14:49:44] <marvanni> I was always picky on my indenting etc, but with PHPStorm my code looks much, much better
1280: [14:49:54] * MadAtEntwine quit (Quit: Page closed)
1281: [14:49:54] <marvanni> I can even read it ;)
1282: [14:49:58] <swaiba> ha
1283: [14:50:42] <marvanni> But it also helps to look at other frameworks
1284: [14:51:33] * kozmikreis has joined #silverstripe
1285: [14:53:11] <kozmikreis> kinglozzer: I wondered if you could help me with something else - I've got my page clone stuff working perfectly (thanks!) - but at the point that the action in the extension tells the front end to show a success message how do I also tell it to refresh the site tree view?
1286: [14:54:59] <kozmikreis> The last bit of the action looks like this: $this->owner->response->addHeader('X-Status', rawurlencode('Experiment page cloned!')); return $this->owner->getResponseNegotiator()->respond($this->owner->request);
1287: [14:55:13] <ss-helper> SilverStripe 3: UserForms integrate with MailChimp? - http://stackoverflow.com/questions/30790756/silverstripe-3-userforms-integrate-with-mailchimp
1288: [14:55:53] <Pyd0k> lolwut no you silly stackoverflow
1289: [14:56:44] <kozmikreis> I found `X-Reload`: Force a full page reload based on `X-ControllerURL`
1290: [14:56:56] <kozmikreis> But I dont want to force a full reload if I can help it...
1291: [14:57:12] <marvanni> Does SS has a method to see to which module a DO belongs, or should i just check BASE_PATH dirname ?
1292: [14:57:35] <Pyd0k> kozmikreis: just check how the page thing does it :>
1293: [14:57:47] <Pyd0k> inspect requests/responses when you add a page normally
1294: [14:57:58] <Pyd0k> marvanni: not that I'm aware of, no.
1295: [14:58:33] <kozmikreis> Pyd0k: Yep I'm trying to find it now :-) I'm a bit of a silverstripe n00b...
1296: [14:58:38] <Pyd0k> $project is obviously global and used for the 'user' site
1297: [14:58:44] <Pyd0k> kozmikreis: we all were once! :)
1298: [14:59:10] <kozmikreis> Pyd0k: I think at this rate I'll always be one!
1299: [14:59:11] <marvanni> checking dirname will do, was just wondering if someone knew…
1300: [14:59:12] <kozmikreis> lulz
1301: [14:59:35] <Pyd0k> kozmikreis: nah, the more you learn the faster you learn ;)
1302: [15:00:19] <marvanni> I started as a pro.
1303: [15:00:25] <marvanni> I thought….
1304: [15:00:30] <Pyd0k> lol
1305: [15:00:48] <kozmikreis> :-D
1306: [15:01:32] * Frans_Amsterdam quit (Quit: Textual IRC Client: www.textualapp.com)
1307: [15:06:24] * samlander has joined #silverstripe
1308: [15:06:31] * samlander quit (Changing host)
1309: [15:06:32] * samlander has joined #silverstripe
1310: [15:17:01] * r_hector quit (Remote host closed the connection)
1311: [15:27:56] * joelpittet has joined #silverstripe
1312: [15:34:48] * elgabbu quit (Ping timeout: 246 seconds)
1313: [15:37:36] <swaiba> Hi, I'm sure I've seen this before but it's driving me a little crazy...
1314: [15:37:57] <swaiba> I have MyController with MyForm and when submitting it isn't going to
1315: [15:38:17] <swaiba> MyController/MyForm
1316: [15:38:26] <swaiba> which returns... Page not found Sorry, it seems you were trying to access...
1317: [15:40:57] * Penguinman98 has joined #silverstripe
1318: [15:42:16] <kinglozzer> swaiba: it *isn't* going there? where is it going?
1319: [15:42:43] <swaiba> kinglozzer is is going to "MyController/MyForm" and that is saying doesn't exist
1320: [15:42:45] <marvanni> allowed actions?
1321: [15:43:07] <swaiba> should also say that "MyController" has a director rule so it's actuall on like "myurl"
1322: [15:43:12] <kinglozzer> swaiba: Does your route include $Action?
1323: [15:43:28] <swaiba> marvanni - I'm adding every function there!
1324: [15:43:36] <marvanni> code?
1325: [15:43:37] <kinglozzer> i.e. myuri/$Action: MyController or whatever
1326: [15:43:47] <swaiba> and yes it's got $Action - infuritating thing sis antoher form ont eh page is fine
1327: [15:44:02] <swaiba> marvanni - can't share unless I heavily redact it
1328: [15:44:06] <kinglozzer> hmm
1329: [15:44:34] <marvanni> can you just show the methods
1330: [15:44:51] <swaiba> welll
1331: [15:45:00] <swaiba> It fixed , now, always is *after* I ask
1332: [15:45:04] <swaiba> must have been a dev build
1333: [15:45:09] <marvanni> hehe
1334: [15:45:12] <marvanni> been there
1335: [15:45:12] <kinglozzer> :P
1336: [15:45:26] <swaiba> so frustrating the things that need dev builds now, 2.4 used to just work after most changes
1337: [15:45:44] <Penguinman98> I have a large dataset (Flight search results). I need my form to filter/sort it. We have a form for filtering that works. The API for sanity reasons returns a max of 100 records at a time (but this can be changed). Many searches will have result sets in the range of 1000 flights.
1338: [15:45:49] <swaiba> thanks anyway :)
1339: [15:45:55] <Penguinman98> The way I see it we have two options:
1340: [15:46:15] <Penguinman98> 1) use forms for sorting and resubmit the API request when sorting.
1341: [15:46:26] <marvanni> np, sometimes asking the questing is getting the answer by writing it
1342: [15:46:33] <Penguinman98> 2) rewrite the API to return all results and let the ArrayList do the sorting on the client
1343: [15:46:47] <Penguinman98> What do you guys think is better practice?
1344: [15:46:58] <marvanni> sort in you db query
1345: [15:47:36] <marvanni> let the API consumers do the sorting by themself
1346: [15:47:49] <kinglozzer> Penguinman98: Doing it on the API is definitely better
1347: [15:47:52] <marvanni> oops, you are the cosumer :)
1348: [15:47:53] <kinglozzer> Way better
1349: [15:48:14] <kinglozzer> So.. option 1
1350: [15:48:54] <Penguinman98> So if I sort and limit from the api, then of my query of 1000 records, I'll only get 100 back. If I turn on client side sorting this will give unintuitive results. Should I leave that SS_Sortable turned off?
1351: [15:49:03] <marvanni> So now my annotator kan write all my dataobjects at once with a config modules ! :)
1352: [15:49:11] <marvanni> cofig allowed_modules
1353: [15:49:13] <marvanni> config
1354: [15:49:14] <marvanni> pfff
1355: [15:49:34] <marvanni> you could add paging to your api
1356: [15:49:41] <Penguinman98> my api supports paging
1357: [15:49:42] <marvanni> start 100 limit default
1358: [15:49:46] <kinglozzer> Penguinman98: If you import thousands of records and then try sorting them in-memory, you'll end up running out of memory really quickly. Leave it to the API
1359: [15:49:55] <kinglozzer> This might help a little - http://www.bigfork.co.uk/takeaway/working-with-external-data-sources-in-silverstripe-pt2
1360: [15:50:09] <Penguinman98> cool, thanks
1361: [15:53:44] <marvanni> How should i call the module ideannotator, dataobjectannotator, ? should it be a vendor package?
1362: [15:53:56] * jarr0dsz has joined #silverstripe
1363: [15:54:20] * jarr0dsz quit (Client Quit)
1364: [15:55:26] <marvanni> silverstripedataobjectidephpdocblockannotator is a bit verbose…
1365: [15:55:48] <marvanni> but it looks nice in your webroot, marketingwise
1366: [15:55:57] <Penguinman98> Wow, that looks intimidating to implement.
1367: [15:58:39] <kinglozzer> Penguinman98: It might be overkill, depends on what how well integrated it needs to be
1368: [15:59:04] <kinglozzer> But you definitely should add pagination to your form, then just pass the current offset to the API
1369: [15:59:18] <Penguinman98> I only need it for this one form on this one page. ever
1370: [15:59:46] <marvanni> there is no ever in development, whatever your client promises you
1371: [16:00:16] <Penguinman98> I know enough about the project that I'm 99.99% confident
1372: [16:00:23] <Penguinman98> We only need it here
1373: [16:02:02] <marvanni> but still then. I have method that will only exists on the HomePage ever. but I still need to write it
1374: [16:03:15] * kinglozzer home time
1375: [16:03:22] <marvanni> Question, when using Config::get() from yml, do I still need a property on the Class for that setting, or is it considered best practice?
1376: [16:03:23] <kinglozzer> glhf Penguinman98
1377: [16:03:31] <marvanni> its seems to work without…
1378: [16:03:32] <Penguinman98> ty ty
1379: [16:03:35] <kinglozzer> marvanni: You don't need it
1380: [16:03:41] <kinglozzer> Dunno if that's "officially" supported
1381: [16:03:45] <kinglozzer> I've used it a lot though
1382: [16:03:53] <kinglozzer> cya!
1383: [16:03:54] * kinglozzer quit ()
1384: [16:04:09] <marvanni> I guess i will keep it for documentation purposes
1385: [16:04:13] <marvanni> thanks and bye!
1386: [16:07:12] * Penguinman98 parties like it's 1699
1387: [16:10:56] <Pyd0k> Penguinman98: n
1388: [16:10:59] <Pyd0k> err
1389: [16:11:22] <Pyd0k> https://github.com/NightJar/silverstripe-joson
1390: [16:11:36] <Pyd0k> might be of aid if you're reading kinglozzer's blog post
1391: [16:11:57] <Pyd0k> [16:55] <Penguinman98> Wow, that looks intimidating to implement.
1392: [16:11:58] <Pyd0k> Also removes that :P
1393: [16:12:09] <Pyd0k> It is rough around the edges, but should work well.
1394: [16:13:09] <Pyd0k> marvanni: nope.
1395: [16:13:16] <Pyd0k> Config is just a K:V store
1396: [16:13:43] <Pyd0k> It defaults to picking stuff up from classes, and Injector relies on ClassName being set to get config (otherwise just uses defaults)
1397: [16:13:52] <Pyd0k> but you can put whatever the hell you feel like in there :>
1398: [16:15:40] <marvanni> thats what I though, thanks
1399: [16:17:09] <swaiba> bye all have a good weekend
1400: [16:17:18] * swaiba quit (Remote host closed the connection)
1401: [16:19:46] <Pyd0k> Penguinman98: afk :<
1402: [16:19:57] <Pyd0k> Penguinman98: look, before you get too far :/
1403: [16:20:03] <Pyd0k> psh
1404: [16:20:14] <Pyd0k> oh well, glhf! It's like weekend time 'n stuff
1405: [16:20:17] <Pyd0k> ciao
1406: [16:20:19] * Pyd0k quit ()
1407: [16:26:52] * Copperis quit (Quit: Leaving)
1408: [16:32:07] * Penguinman98 peeks in
1409: [16:32:09] <Penguinman98> oh thanks
1410: [16:32:12] * NETim quit (Ping timeout: 246 seconds)
1411: [16:34:18] * ss31noob_ quit (Ping timeout: 246 seconds)
1412: [16:34:51] * kozmikreis quit (Quit: Page closed)
1413: [16:36:58] <Penguinman98> Looks interesting, but.. I'm not sure how to use it
1414: [16:37:34] <Penguinman98> I think the Kingozzer's solution looks like less learning to get running
1415: [16:38:16] <Penguinman98> No offense intended
1416: [16:59:04] * zlinux has joined #silverstripe
1417: [17:07:12] * GioVdK quit (Ping timeout: 256 seconds)
1418: [17:12:28] * r3v3rb quit (Quit: r3v3rb)
1419: [17:21:43] * zlinux_ has joined #silverstripe
1420: [17:22:12] * zlinux quit (Ping timeout: 265 seconds)
1421: [17:23:04] <samlander> well this is tasty : https://github.com/sheadawson/silverstripe-shortcodable
1422: [17:28:13] <marvanni> it does..
1423: [17:45:22] <SphereSilver> Hey folks! Some subtle advertisement coming up: http://www.meetup.com/SilverStripe-Europe-Meetup/events/216972322/
1424: [17:47:01] <SphereSilver> But, since only Robinson Crusoe had everything done by friday, we kinda need your help on sponsoring, talks and all!\
1425: [17:51:49] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1426: [17:53:58] <Penguinman98> I need some fine-grained control over the markup returned by the form renderer
1427: [17:54:16] <Penguinman98> I'm tutorial hunting
1428: [17:55:04] <Penguinman98> is it possible to call a method to wrap certain elements of the form in divs or spans?
1429: [17:55:45] * ss-helper quit (Remote host closed the connection)
1430: [17:55:52] <SphereSilver> How about a custom template?
1431: [17:56:01] * ss-helper has joined #silverstripe
1432: [17:56:10] <SphereSilver> You can change the templates by copying them to your themes-folder and adjust them.
1433: [17:56:37] <SphereSilver> Another option, but more complicated, is extending the fields and adding the onBeforeRender callback method to change it.
1434: [18:03:45] <Penguinman98> a custom template is what we were doing before
1435: [18:03:53] <Penguinman98> Now we've moved into using the SS form
1436: [18:04:03] <Penguinman98> Is there a way to combine the two?
1437: [18:04:51] * keroberos quit (Max SendQ exceeded)
1438: [18:04:54] <SphereSilver> Depends on what you want? For wrapping, you'll have to resort to template updates
1439: [18:05:08] <SphereSilver> If you just want to add classes, just say $field->addExtraClass('classname');
1440: [18:05:45] <Penguinman98> Right. but say I need a span class="pull-left" around my whole optionsetfield...
1441: [18:06:16] <Penguinman98> e.g.: http://screencast.com/t/ufQnQk6Yz
1442: [18:07:01] <Penguinman98> I want that level of control over how my SS form renders
1443: [18:07:02] * keroberos has joined #silverstripe
1444: [18:07:03] <SphereSilver> Templates
1445: [18:07:18] <SphereSilver> Just copy the framework/cms templates to your themes folder and update them.
1446: [18:07:32] <Penguinman98> which one?
1447: [18:07:51] <Penguinman98> they are legion
1448: [18:07:58] <SphereSilver> Of the field(s) you want to update with custom classes
1449: [18:08:12] <SphereSilver> Yep, for every field one, but the core is the FormField template.
1450: [18:08:16] <Penguinman98> What if I'm not rendering all of them the same way?
1451: [18:08:31] <SphereSilver> Add a variable and an if-statement in the template
1452: [18:09:13] <SphereSilver> Another, more complex though, method is via LESS or SASS, where you apply certain classes to other classes.
1453: [18:09:17] <SphereSilver> It's not the clean way.
1454: [18:09:33] <Penguinman98> Sounds complex. Are you sure there isn't a way to tell the form to use a custom template and then have variables to tell it where to put the various form elements?
1455: [18:10:07] <SphereSilver> Yes, that's what I said, use a customised template
1456: [18:10:17] <Penguinman98> but you suggest one template for everything
1457: [18:10:25] <Penguinman98> with variables to switch for every case
1458: [18:10:32] <SphereSilver> But also, you can add settings to fields, and use them in the templates to say left or right
1459: [18:10:47] <Penguinman98> I'd rather have one template per file
1460: [18:10:48] <SphereSilver> That's probably going to take a while to figure out.
1461: [18:11:06] <SphereSilver> One template per file? What do you mean?
1462: [18:11:28] <Penguinman98> OK, say I have a simple search form that's on the footer. It has a textfield and a radio set
1463: [18:11:48] <Penguinman98> I want to render those a custom way.
1464: [18:12:01] <Penguinman98> But on the search page, I have the same form rendered a different way
1465: [18:12:17] <Penguinman98> And on page 3 I have it rendered a different way
1466: [18:12:20] <Penguinman98> etc
1467: [18:12:25] <samlander> that's easy enough
1468: [18:12:30] <samlander> just use a variable style
1469: [18:12:44] <SphereSilver> .footer .TextField { .pull-right; } .SearchFormPage .footer .TextField { .pull-left; }
1470: [18:12:46] <Penguinman98> I'd rather not have one template with a bunch of switches. I would rather one template for each
1471: [18:12:50] <SphereSilver> That's the LESS method.
1472: [18:12:51] <samlander> <div id="footer" class="$VariableStyle"></div>
1473: [18:13:09] <SphereSilver> What samlander should work too.
1474: [18:13:11] <samlander> the user defines the $VariableStyle in a dd
1475: [18:13:32] <samlander> then you can keep on your stylerendering in style sheets
1476: [18:13:42] <Penguinman98> You lost me
1477: [18:13:46] <SphereSilver> But, to be honoust, you're making it quite complicated for yourself
1478: [18:14:05] <samlander> i use a similar approach for my carousel to render the text on the left side or the right side of the slide based on user input
1479: [18:14:29] * muskie9 has joined #silverstripe
1480: [18:14:32] <samlander> if all you're doing is changing layouts, just do it in css
1481: [18:14:42] <samlander> use a variable to store WHICH stylesheet class you're using
1482: [18:14:55] <Penguinman98> I don't know css well enough to use it to inject new elements into the dom
1483: [18:15:05] <samlander> why would you inject elements?
1484: [18:15:19] <Penguinman98> If you're asking this, you missed my initial question
1485: [18:15:20] <samlander> i think maybe take a step back and consider the mvc pattern
1486: [18:15:35] <samlander> the database is your model, the html and css is your view, and the controller is your controller
1487: [18:15:43] <samlander> your view shouldnt have any logic in it whatsoever.
1488: [18:15:45] <samlander> none.
1489: [18:16:00] <samlander> if you're using logic other than <%if exists %> you're doing it wrong
1490: [18:16:28] <samlander> if you have a widget that is going to be variable, it's better to define it's behaviour in your controller
1491: [18:16:33] <Penguinman98> being too strict with your mvc can lead to headaches. but I agree that it's important to keep things as separate as it makes sense to do so
1492: [18:17:41] <Penguinman98> Sometimes you just need to loop 3 times in the template
1493: [18:17:46] <Penguinman98> It happens
1494: [18:18:02] <Penguinman98> drives me crazy that doing so is so difficult in SS
1495: [18:18:13] <Penguinman98> but that's my personal soapbox
1496: [18:18:55] <marvanni> or implements GlobalTemplateProvider
1497: [18:19:07] <marvanni> keep your controllers clean as well
1498: [18:22:16] <Penguinman98> If I'm using forms and the first param is not $this, how does it need to look?
1499: [18:22:27] <Penguinman98> $form = Form::create( FlightSearch_Controller::create(), 'handleFlightSearch',
1500: [18:22:42] <SphereSilver> Making your view custom to what's said in the controller is not "non MVC" to me samlander
1501: [18:22:57] <SphereSilver> Right?
1502: [18:23:07] <SphereSilver> That's what I meant with the addClass or using custom templates.
1503: [18:23:28] <Penguinman98> addClass can't wrap the whole form field in a div or span
1504: [18:23:47] <Penguinman98> can it?
1505: [18:24:09] <SphereSilver> No, it adds a class to the current field. It was just an example ;)
1506: [18:24:20] <Penguinman98> And even if it could, I need to move where the label renders
1507: [18:25:04] <SphereSilver> I'll have to go back to doing actual stuff instead of hanging around on IRC :(
1508: [18:25:24] <Penguinman98> Can I just do a custom template and write the blasted form my way and have it submit to the proper form handler?
1509: [18:25:33] <SphereSilver> Yes
1510: [18:25:34] <Penguinman98> If so, how?
1511: [18:25:52] <SphereSilver> $form.getField and $form.getLabel if I'm not mistaken.
1512: [18:26:06] <SphereSilver> Name the template after your function (?)
1513: [18:26:12] <SphereSilver> And you can manually do everything.
1514: [18:26:23] <Penguinman98> That's what I want
1515: [18:26:29] <SphereSilver> The getField method only retrieves the field itself
1516: [18:26:36] <SphereSilver> the getLabel only gets the label
1517: [18:26:49] <SphereSilver> You can wrap it yourself manually that way.
1518: [18:26:59] <SphereSilver> I'm not entirely sure about the "name it after the function"
1519: [18:27:17] <SphereSilver> You might need to do something like $Form->renderWith() method, but that's not that complex
1520: [18:27:32] * Pyromanik has joined #silverstripe
1521: [18:27:39] <Pyromanik> how is life Penguinman98?
1522: [18:27:51] <SphereSilver> Just look at the given Form templates and you should be able to make a custom form. I've done it a few times. It's just a lot of hassle with the template itself ;)
1523: [18:28:01] <SphereSilver> Hi Pyromanik
1524: [18:28:08] <samlander> the custom form templates are easy
1525: [18:28:11] <Pyromanik> Oh gidday SphereSilver :>
1526: [18:28:24] <Penguinman98> is this english? http://screencast.com/t/dd4M4gMAp
1527: [18:28:29] <SphereSilver> :)
1528: [18:28:55] <SphereSilver> Yes, it's English.... With a bit of fun :P
1529: [18:28:55] <Penguinman98> yo
1530: [18:29:07] <SphereSilver> You can update the errors via the github docs ;)\
1531: [18:29:50] <SphereSilver> Ok, I really need to get back to w.... ooooh! Beer!
1532: [18:29:52] <Penguinman98> I know a few people I'd like to $funcname them
1533: [18:30:12] <Penguinman98> :p
1534: [18:30:31] <SphereSilver> There's actually a slight possibility I wrote that....
1535: [18:30:44] <SphereSilver> No, thank god, it's not me :D
1536: [18:31:12] <Penguinman98> get all of the responds!
1537: [18:31:37] <Penguinman98> sorry, I find it too irresistable to not be an asshole
1538: [18:31:59] <SphereSilver> Errrr, let's ask the crowd. Who's an asshole here? :D
1539: [18:32:58] * Penguinman98 raises Pyromanik 's hand
1540: [18:33:05] <Penguinman98> :p
1541: [18:34:14] <SphereSilver> Pyromanik isn't an asshole!
1542: [18:34:22] <SphereSilver> Pyromanik is a sweetypie
1543: [18:34:30] <Penguinman98> getField only exists on the ViewableData class
1544: [18:34:37] <Penguinman98> there is no getLabel
1545: [18:34:48] <Pyromanik> lulz
1546: [18:35:00] <Pyromanik> wtf is gaan on?
1547: [18:35:04] <SphereSilver> I said I'm not sure about it! Just check the class and see if there's anything available
1548: [18:35:08] <SphereSilver> Niets gaat aan
1549: [18:35:55] <Pyromanik> Penguinman98, did you see the module I linked for you? Was it of any use?
1550: [18:36:04] <Penguinman98> I looked it over
1551: [18:36:16] <Penguinman98> Seems like just as much if not more work than the other one
1552: [18:39:12] <Penguinman98> I gotta go get lunch
1553: [19:07:05] * oddnoc has joined #silverstripe
1554: [19:14:43] <Penguinman98> back
1555: [19:15:13] <Penguinman98> So, looking at the Form.ss
1556: [19:15:24] <Penguinman98> there is a $Fields object that they loop through
1557: [19:16:18] <Penguinman98> which is of type FieldList
1558: [19:16:54] <Penguinman98> that has a '->FieldByName()
1559: [19:38:15] <Penguinman98> =====
1560: [19:38:16] <Penguinman98> So,
1561: [19:38:29] <Penguinman98> I'm creating my simple search form and it has to appear on every page
1562: [19:38:37] <Penguinman98> it's in the footer of every page
1563: [19:39:05] <Penguinman98> I got it to work initially in the FlightSearch Controller but the other pages can't see that one
1564: [19:39:28] <Penguinman98> So I moved the SimpleFlightSearchForm to the Page Controller
1565: [19:40:21] <Penguinman98> The first param of Form::create( is a controller. I replaced $this with FlightSearch_Controller::create()
1566: [19:40:50] <Penguinman98> The second is the method to call to handle the form right?
1567: [19:40:57] <Penguinman98> I set it to 'handleFlightSearch'
1568: [19:41:12] <Penguinman98> no, that's wrong...
1569: [19:54:16] <marvanni> Form::create($controller, __FUNCTION__)
1570: [19:56:46] <Penguinman98> Call to undefined method SS_HTTPRequest::hasMethod() in C:\projects\slcairport-com\public\framework\forms\Form.php on line 1215
1571: [19:57:00] <Penguinman98> I undid my changes and it didn't fix it
1572: [19:58:50] <Penguinman98> I did a git reset back to a working state and everything
1573: [19:58:56] <Penguinman98> Still get that error now
1574: [19:58:59] <marvanni> So you passed a SS_HTTPRequest instead of a FormAction
1575: [19:59:48] <Penguinman98> a /dev/build?flush didn' thelp
1576: [20:00:08] * Penguinman98 flops. dammit. Not again...
1577: [20:18:07] <Penguinman98> looks like it was bad session data
1578: [20:18:08] * UndefinedOffset quit (Quit: Leaving.)
1579: [20:22:39] <Pyromanik> Penguinman98, other module? kinglozzer's blog post was just a blog post, not a module.
1580: [20:24:14] <Pyromanik> Also, you pass Form a controller and a method name, yes. But the method name is not the 'handler', it is the funciton that returns the form itself.
1581: [20:24:30] <Pyromanik> ie, a factory method.
1582: [20:24:58] <Pyromanik> Forms submit to themselves. Thus they need the controller for the route, and the function name for the method that handles the submission (the form handles itself, so it's just the method that returns the form)
1583: [20:25:16] * Stomach has joined #silverstripe
1584: [20:26:10] <Pyromanik> Penguinman98, the module I linked is simply install, define some endpoints in YAML, then use it like any other SS_List for the most part.
1585: [20:26:48] <Pyromanik> Not really much work, and certainly not any implmentation.
1586: [20:26:57] <Pyromanik> ... unless you find bugs or something. idk.
1587: [20:27:03] <Pyromanik> I'm not sure what you're trying to achieve.
1588: [20:30:02] <Penguinman98> Right now, we have the API working
1589: [20:30:10] <Penguinman98> But there is a problem with the controller
1590: [20:30:11] <marvanni> You set the controller so the Form knows where to post to. in the controller you need a MyFormMethod action and that action needs to be in in the $allowed_action array. When you click a button you submit the form action that the form needs to handle. this method will be called after the submission goes thru the Form itself. the form action can be on the Form class, but also on the controller.
1591: [20:30:46] <Penguinman98> So I set the form to use the controller FlightSearch_Controller::create()
1592: [20:31:07] <Penguinman98> then for function I gave it __FUNCTION__
1593: [20:31:50] <marvanni> unless you are on the controller, you can use $this. is FlightSearch_Controller a Controller or a Page_Controller ?
1594: [20:32:37] <Penguinman98> FlightSearch_Controller extends Page_Controller
1595: [20:33:11] <Penguinman98> the SimpleFlightSearchForm lives on the Page_Controller
1596: [20:33:40] <Penguinman98> When I tried to submit the form with $this in the form, it was looking for the handler in the Page_Controller and not finding it.
1597: [20:33:54] <Penguinman98> So I changed it to FlightSearch_Controller::create()
1598: [20:33:59] <Penguinman98> That submitted to the right form
1599: [20:35:20] <Penguinman98> With that in place, we tried to put my controllers and code on another developers local instance
1600: [20:35:25] <marvanni> yeah, that might work
1601: [20:35:34] * Liquide quit ()
1602: [20:35:50] <Penguinman98> When we tried to load the search page though, it error'd out
1603: [20:36:06] <Penguinman98> You must log in with your CMS password in order to view the draft or archived content.
1604: [20:36:38] <Penguinman98> Since this controller does not have a corresponding page in the CMS, how is this possible?
1605: [20:36:59] <Penguinman98> Also, the route should be open to the public
1606: [20:38:35] <marvanni> if the FlightSearch_Controller does not have a FlightSearch Page Type, there is no link. So I would recommend extending Controller instead
1607: [20:38:49] <marvanni> if you don’t need a Page in the CMS for it
1608: [20:39:44] <Penguinman98> yeah, but I want to extend Page Controller because when I do a renderWith() it uses Page.ss
1609: [20:40:09] <Penguinman98> for the chrome
1610: [20:40:40] <marvanni> Why not add FlighSearch_Controller.ss to your theme?
1611: [20:40:56] <Penguinman98> violates DRY
1612: [20:40:59] <Penguinman98> that's all
1613: [20:41:17] <marvanni> depends
1614: [20:42:22] * veb has joined #silverstripe
1615: [20:42:23] <Penguinman98> on?
1616: [20:42:51] <marvanni> This is my Page.ss
1617: [20:42:52] <marvanni> http://sspaste.com/paste/show/55a02e3f3d03a
1618: [20:43:25] <Penguinman98> Ours has a teeny bit more
1619: [20:43:31] <marvanni> The world is not going to explode, if you copy that to FlighSearchController.ss
1620: [20:43:31] <Penguinman98> but not much
1621: [20:43:40] <Penguinman98> kk
1622: [20:43:54] <marvanni> then just put that corresponding template code in Includes
1623: [20:44:31] <Penguinman98> FlightSearchController.ss or just FlightSearch.ss?
1624: [20:44:32] <marvanni> All my ‘difficult’ template code goes in Layou templates or includes
1625: [20:45:39] * Penguinman98 nods
1626: [20:47:18] <marvanni> and you can also create only a Layout/FlightSearchController.ss and do $this->renderWith(array(‘FlightSearchController’, ‘Page’));
1627: [20:47:26] <marvanni> but im not 100% sure about that..
1628: [20:47:28] <Penguinman98> The top and sidebar chrome looks ok but the footer is conspicuously missing now.
1629: [20:47:54] <marvanni> maybe because your missing SiteConfig or something?
1630: [20:48:27] <Penguinman98> I'm not sure. I'm out beyond my understanding threshhold at this point
1631: [20:48:50] <Penguinman98> The menu is missing as well
1632: [20:49:17] <Penguinman98> Controller doesn't have a $Menu?
1633: [20:49:45] <marvanni> hm, yes thats true.
1634: [20:50:06] <Penguinman98> well shit
1635: [20:50:34] <Penguinman98> So let's go back to using Page_Controller
1636: [20:50:52] <marvanni> ehm
1637: [20:51:12] <marvanni> is it a first level menu?
1638: [20:51:24] <Penguinman98> At the moment, yes
1639: [20:51:32] * veb quit (Quit: veb-irc: &)
1640: [20:52:01] <marvanni> public function Menu($level = 1) {return ContentController::create()->getMenu($level);}
1641: [20:52:19] <marvanni> something like that in your Flight Search Controller should work
1642: [20:52:36] <Penguinman98> ContentController eh?
1643: [20:53:03] <marvanni> parent class of Page_Controller
1644: [20:53:14] <Penguinman98> ok
1645: [20:55:59] <Penguinman98> didn't work
1646: [20:57:05] <Penguinman98> The method gives the right answer
1647: [20:57:11] <Penguinman98> but the template doesn't display it
1648: [20:58:40] <marvanni> code?
1649: [20:59:10] <Penguinman98> http://screencast.com/t/jSssJ7RuOuJO
1650: [21:00:22] <Penguinman98> The dump appears to have a menu in it
1651: [21:00:54] <Penguinman98> but it doesn't render in the template
1652: [21:01:41] <marvanni> template code?
1653: [21:04:59] <Penguinman98> there are many
1654: [21:06:09] <marvanni> but you can see where the Meny should appear right?
1655: [21:07:09] <Penguinman98> Yes
1656: [21:07:12] <Penguinman98> There are two
1657: [21:07:17] <Penguinman98> one in the header, one in the footer
1658: [21:07:22] <Penguinman98> both are blank
1659: [21:08:18] <Penguinman98> http://screencast.com/t/qhR4O8pnUv
1660: [21:08:41] <Penguinman98> http://screencast.com/t/l3pTc6I2d
1661: [21:09:17] <marvanni> I mean source code
1662: [21:09:21] <marvanni> the template.ss code
1663: [21:17:03] <Penguinman98> sspaste.com/paste/show/55a03646c07dc
1664: [21:17:07] <Penguinman98> Navigation.ss
1665: [21:18:42] <marvanni> you looping MenuSet not Menu….
1666: [21:19:22] <Pyromanik> <Penguinman98> Since this controller does not have a corresponding page in the CMS, how is this possible?
1667: [21:19:28] <Pyromanik> this is probably the problem then.
1668: [21:19:37] <Pyromanik> You need to specifically define a route
1669: [21:19:52] <Penguinman98> I did in the _config/_routes.yaml
1670: [21:20:08] <marvanni> Nah, Controllers are accessible by there name right?
1671: [21:20:17] <Pyromanik> Not any more.
1672: [21:20:25] <marvanni> ah ok.
1673: [21:20:31] <Penguinman98> Director: rules: 'search-flights//$Action/$ID/$Name': 'FlightSearch_Controller'
1674: [21:20:35] <Pyromanik> Well, if it still is, then not for much longer.
1675: [21:20:58] <Pyromanik> Yep, that should about do it.
1676: [21:21:16] <Pyromanik> but implement Link() on FlightSearch_Controller
1677: [21:21:23] <Penguinman98> got that too
1678: [21:21:39] <Penguinman98> public function Link( $action = null){ return 'search-flights'; }
1679: [21:21:41] <Pyromanik> if(haspage) return parent::link; else 'search-flights'
1680: [21:21:46] <marvanni> 3..1.13 controllers are directly accessible here…
1681: [21:22:02] <Pyromanik> marvanni, yeh, must be a 3.2 change then perhaps.
1682: [21:22:15] <Pyromanik> because semver
1683: [21:22:17] <marvanni> ah…. thats it....
1684: [21:22:29] <marvanni> Link( $action = null){ return 'search-flights'; }
1685: [21:22:46] <marvanni> you will never reach Action ….
1686: [21:22:59] <Pyromanik> yes, because that's done by handleRequest
1687: [21:23:04] <Pyromanik> which calls handleAction
1688: [21:23:10] <Pyromanik> which delegates to the returned Form
1689: [21:23:29] <Pyromanik> Form just needs to know _how_ to get to the controller.
1690: [21:23:29] * Penguinman98 stares blankly
1691: [21:23:34] <marvanni> pffff. man you are making your life harder then necessary
1692: [21:23:47] <Pyromanik> marvanni, it's default implementation!
1693: [21:23:50] <Pyromanik> no code needed
1694: [21:24:24] <Pyromanik> but because Penguinman98 doesn't have a Page associated with his Page_Controller, Page_Controller's Link() isn't going to work.
1695: [21:24:40] <Pyromanik> so needs to override. It's only supposed to link to the controller.
1696: [21:24:48] <Penguinman98> It's inheriting Controller at the moment, not Page_Controller
1697: [21:24:55] <Pyromanik> well, same thing.
1698: [21:25:09] <marvanni> when you pass $controller to the Form class, the form action will be something like controller/FormAction
1699: [21:25:17] <Pyromanik> yes, because second arg!
1700: [21:25:23] <marvanni> the form will call link.
1701: [21:25:25] <Pyromanik> __FUNCTION__ (typically)
1702: [21:25:29] <marvanni> yes
1703: [21:25:31] <Pyromanik> yes, that's a route
1704: [21:25:47] <Pyromanik> it will match() search-flights//$Action/$ID/$OtherID
1705: [21:25:50] <marvanni> you have this : Link( $action = null){ return 'search-flights'; }
1706: [21:25:53] <marvanni> I think
1707: [21:25:55] <Penguinman98> FlightSearch_Controller::create(), __FUNCTION__, etc.
1708: [21:26:06] <marvanni> it should be Link( $action = null){ return 'search-flights/‘ . $action; }
1709: [21:26:14] <Pyromanik> and handleAction on search-flights does the rest
1710: [21:26:15] <Pyromanik> marvanni, nope.
1711: [21:26:24] <marvanni> serious?
1712: [21:26:47] <Pyromanik> new Form($controller, $formActionNameOnTheSuppliedController)
1713: [21:26:50] <marvanni> ah, maybe you are right
1714: [21:27:19] <Pyromanik> so becomes $controller->Link($formActionNameOnTheSuppliedController)
1715: [21:27:45] <Pyromanik> ie 'search-flights' . '/' . $formActionNameOnTheSuppliedController
1716: [21:27:46] <marvanni> not if the method Link() only returns ‘somestringwithoutaction’
1717: [21:28:18] <Pyromanik> yeah well if it doesn't join manually (ie, $controller->Link() . $action)
1718: [21:28:39] * Penguinman98 stares blankly
1719: [21:28:40] <Pyromanik> then Penguinman98 will have to alter the method to return "search-flights/$action"
1720: [21:28:53] <Pyromanik> (where $action is null by default, so it'll work)
1721: [21:29:13] <Penguinman98> public function Link( $action = null){ return 'search-flights/' . $action; }
1722: [21:29:14] <Pyromanik> but you ceratinly don't want to be hard-coding the form name in there
1723: [21:29:20] <Pyromanik> Yep.
1724: [21:29:56] <Pyromanik> try it.
1725: [21:30:21] <Penguinman98> No change
1726: [21:30:24] <marvanni> ah yes : return Controller::join_links($this->controller->Link(), $this->name);
1727: [21:30:48] <Pyromanik> hmm, so it is external from the function.
1728: [21:30:55] <Pyromanik> still, a good catch marvanni :>
1729: [21:31:25] <Pyromanik> (that Link($action) should do something with $action)
1730: [21:32:37] * Stomach quit (Quit: zzz)
1731: [21:33:16] * Penguinman98 did notice that yesterday but tends to trust help before his own thoughts.
1732: [21:33:32] <Penguinman98> besides, it worked
1733: [21:33:54] * vanny has joined #silverstripe
1734: [21:34:00] <Penguinman98> So I had no reason to worry
1735: [21:34:04] * Stomach has joined #silverstripe
1736: [21:34:12] <vanny> morning all
1737: [21:34:16] <Pyromanik> gidday
1738: [21:34:23] <Pyromanik> Penguinman98, so, it wasn't working but now is?
1739: [21:34:25] <Pyromanik> what changed?
1740: [21:34:42] <Penguinman98> Well, it fixed the problem we were having yesterday anyway
1741: [21:34:52] <Pyromanik> which was?
1742: [21:35:00] <vanny> anyone use dompdf?
1743: [21:35:00] <Penguinman98> Don't remember
1744: [21:35:30] <Penguinman98> The remaining problems today are: If I extend Page Controller, I need permission to view the route? If I extend Controller, then I don't get my menus
1745: [21:36:39] <marvanni> something like this should just work
1746: [21:36:41] <marvanni> http://sspaste.com/paste/show/55a03ad9d5448
1747: [21:37:20] <marvanni> so create a FlightSearchPage in the cms and set canDelete() {return Permission::check(‘ADMIN’);}
1748: [21:38:19] <marvanni> and you could do function onBeforeWrite() {$this->URLSegment = ‘flightsearch’; $this->ShowInMenus = 0; //etc}
1749: [21:38:26] <Penguinman98> http://sspaste.com/paste/show/55a03b42f3954
1750: [21:38:56] <Penguinman98> marvanni: i can't do any solution that requires creating a page in the CMS
1751: [21:39:13] <Penguinman98> That is a feature design spec they aren't willing to bend on
1752: [21:40:47] * zlinux_ quit (Ping timeout: 240 seconds)
1753: [21:40:56] <marvanni> Why is this ? ->setFormMethod('get');
1754: [21:41:27] <Penguinman98> Because I wanted the form to call the page with a get string users could use to link to certain flight results
1755: [21:42:02] <Penguinman98> But it doesn't work because the GET only exists when the form submits and calls the handler, then it redirects without the GET back to the search page
1756: [21:42:10] <marvanni> yes.
1757: [21:42:15] <Penguinman98> So, I can remove it but I haven't bothered yet
1758: [21:42:35] <marvanni> return $this->controller->redirect($this->controller->Link() . '?'. http_build_query($data));
1759: [21:42:55] <Penguinman98> Even if I did, it'd be for show only
1760: [21:43:14] <Penguinman98> I'd have to write the page to catch that data and do a search based on it for it to actually be useful
1761: [21:43:17] <marvanni> so what is the problem by now?
1762: [21:43:40] <Penguinman98> [15:35] <Penguinman98> The remaining problems today are: If I extend Page Controller, I need permission to view the route? If I extend Controller, then I don't get my menus
1763: [21:44:35] <marvanni> I told you the problem with the menus
1764: [21:44:45] <Penguinman98> I tried your solution. It didn't work
1765: [21:44:48] <marvanni> you are looping $MenuSet not $Menu
1766: [21:44:54] <Penguinman98> oh, yeah
1767: [21:44:55] <Penguinman98> that
1768: [21:45:17] <marvanni> so probably you have function MenuSet on Page or Page_Controller
1769: [21:45:41] <muskie9> should CheckboxField allow for ->setRightTitle(), when I set it nothing shows... but ->setDescription() works... styling's different though
1770: [21:45:58] <muskie9> my other fields allow ->setRightTitle()
1771: [21:46:17] <marvanni> as far as I know setRightTitle was never consistantly implemented
1772: [21:46:32] <muskie9> wonderful lol
1773: [21:46:37] <Penguinman98> MenuSet comes from the menumanager module
1774: [21:47:50] <marvanni> this one ? https://github.com/heyday/silverstripe-menumanager/
1775: [21:47:57] <vanny> anyone help with PDF's? I cant get the module to work, it looks like it fails at the new SS_domPDF
1776: [21:48:03] * Azure quit (Excess Flood)
1777: [21:48:06] <Penguinman98> yup
1778: [21:49:13] <marvanni> hm that implements TemplateGlobalProvider, so MenuSet should be globally accessible from templates..
1779: [21:49:31] * zlinux has joined #silverstripe
1780: [21:49:54] * Stomach quit (Quit: zzz)
1781: [21:51:29] <marvanni> hm and this works from Page ? <% loop $MenuSet("Header Menu - Column 2").MenuItems %>
1782: [21:51:54] <marvanni> I would think that this should work as well : <% loop $MenuSet("Header Menu - Column 2") %>
1783: [21:52:08] <marvanni> https://github.com/heyday/silverstripe-menumanager/blob/master/code/MenuManagerTemplateProvider.php
1784: [21:52:28] <Penguinman98> yeah well...
1785: [21:52:29] * Azure has joined #silverstripe
1786: [21:52:39] <Penguinman98> If it can break, it will break. For me.
1787: [21:53:50] <marvanni> Show me your FlighSearchController.ss
1788: [21:55:51] <marvanni> Anyone experience with PHPUnit AssertContains always returns true???
1789: [21:58:02] <marvanni> hm, nvm
1790: [21:58:42] <Penguinman98> http://sspaste.com/paste/show/55a0400de0f6e
1791: [21:58:47] <Penguinman98> FlightSearch.ss
1792: [21:58:56] <Penguinman98> templates/FlightSearch.ss
1793: [22:00:01] <marvanni> and this is Footer.ss ? http://sspaste.com/paste/show/55a03646c07dc
1794: [22:00:29] <Penguinman98> That's templates/includes/Navigation.ss
1795: [22:00:56] <Penguinman98> which is called in the header.ss
1796: [22:01:52] <marvanni> weird… seems all fine
1797: [22:02:08] <Penguinman98> yay
1798: [22:02:14] <marvanni> you did ofcourse ran ?flush=all
1799: [22:02:16] * Penguinman98 flops
1800: [22:02:22] <Penguinman98> frequently
1801: [22:02:59] * Stomach has joined #silverstripe
1802: [22:03:05] <marvanni> and you are sure the FlightSearch template is actually called, its not Page.ss and the $Layout renders fine as well?
1803: [22:03:34] <Penguinman98> nope. I'm not sure
1804: [22:03:58] <Penguinman98> But since the FlightSearch.ss and the Page.ss are identical, it shouldn't make a difference
1805: [22:04:10] <marvanni> ok
1806: [22:04:25] <marvanni> I never saw this before in controller init $this->renderWith('FlightSearch');
1807: [22:04:57] <marvanni> can you try to move that line to public function index() {$this->renderWith('FlightSearch');}
1808: [22:05:12] <marvanni> sorry return $this->renderWith('FlightSearch');
1809: [22:05:45] <marvanni> or remove that line and rename FlightSearch.ss to FlightSearch_Controller.ss
1810: [22:06:19] <marvanni> the template engine should find the template if its named the same as the controller class name
1811: [22:07:34] <Penguinman98> When I moved the line to index, the page stopped rendering at all
1812: [22:08:44] <marvanni> you did return right?
1813: [22:08:56] <Penguinman98> just having the index method at all broke it
1814: [22:09:05] <marvanni> public function index() { return $this->renderWith('FlightSearch');}
1815: [22:09:30] <Penguinman98> OK, adding the return fixed it
1816: [22:09:50] <Penguinman98> but that just brings me back to the same place as before
1817: [22:10:02] <marvanni> the missing menu?
1818: [22:10:20] <Penguinman98> Still missing
1819: [22:10:44] <Penguinman98> and submitting the form doesn't work anymore either
1820: [22:10:59] <Penguinman98> just refreshes the page now
1821: [22:11:50] <marvanni> ok. remove the index method. remove the line from init(), rename FlighSearch.ss to FlightSearch_Controller.ss
1822: [22:13:06] <Penguinman98> warnings
1823: [22:13:14] <Penguinman98> filemtime(): stat failed for C:\projects\slcairport-com\public/themes/slcair/templates/FlightSearch.ss
1824: [22:13:23] <Penguinman98> probably flush
1825: [22:13:24] <Penguinman98> hang on
1826: [22:13:28] <marvanni> yeah
1827: [22:13:51] <marvanni> you did removed $this->renderWith('FlightSearch'); from init right ?
1828: [22:14:01] <Penguinman98> I did
1829: [22:14:12] <Penguinman98> now I get the default post installation screen
1830: [22:14:21] <Penguinman98> "Welcome to SilverStripe"
1831: [22:15:28] * Penguinman98 is disheartened we seem to be making this worse, not better
1832: [22:16:12] <marvanni> you have templates/FlightSearch_Controller.ss ?
1833: [22:16:22] <Penguinman98> yes
1834: [22:17:38] <marvanni> hm… it can’t be that hard…. and it ain’t normally…
1835: [22:18:04] * Penguinman98 smiles and shows off his black thumb
1836: [22:19:20] <marvanni> im out of idea’s ….
1837: [22:20:03] <Penguinman98> Well, thanks for trying
1838: [22:23:29] <marvanni> hm…what do you get if you do this in the init method var_dump(Config::inst()->get('SSViewer', 'theme'));
1839: [22:26:04] * ss-helper quit (Remote host closed the connection)
1840: [22:26:17] * ss-helper has joined #silverstripe
1841: [22:27:45] <Penguinman98> string 'slcair' (length=6)
1842: [22:28:22] * Stomach quit (Quit: zzz)
1843: [22:29:12] <Penguinman98> Is their an easy way to clear my session?
1844: [22:29:46] <marvanni> unset($_SESSION);
1845: [22:30:00] <Penguinman98> derp, yeah. That would do it
1846: [22:31:22] * samlander quit (Ping timeout: 250 seconds)
1847: [22:35:17] * ss-helper quit (Read error: Connection timed out)
1848: [22:36:25] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1849: [22:39:25] * zlinux quit (Ping timeout: 244 seconds)
1850: [22:39:46] <Pyromanik> Penguinman98, "I need permission to view the route?" - you always need permission to view the route
1851: [22:40:14] <Penguinman98> I need the route to be public
1852: [22:40:29] <Pyromanik> that is as simple as private static allowed_actions = ['datForm'];
1853: [22:40:44] <Pyromanik> But you need that for any controller, not just Page_Controller
1854: [22:41:35] <Pyromanik> <Penguinman98> But it doesn't work because the GET only exists when the form submits and calls the handler, then it redirects without the GET back to the search page
1855: [22:41:38] <Pyromanik> this is also false
1856: [22:42:48] <Pyromanik> Penguinman98, yes, that IS making the route public.
1857: [22:43:05] <Pyromanik> that 'permission' you speak of is permission for it to be called from a request, as opposed to only in PHP.
1858: [22:43:17] <Pyromanik> allowed_actions is compulsory.
1859: [22:43:33] <Pyromanik> otherwise no requesting for you.
1860: [22:44:13] <Pyromanik> limiting permissions to a subset of users comes when you use the method name as a key (and the value isn't simply the boolean primitive true)
1861: [22:44:22] <Penguinman98> [16:40] <Pyromanik> that is as simple as private static allowed_actions = ['datForm'];
1862: [22:44:26] <Penguinman98> I did that ages ago
1863: [22:44:32] <Pyromanik> so then you have permission
1864: [22:44:40] <Pyromanik> I don't understand what you mean otherwise.
1865: [22:45:00] <Penguinman98> It might be an ephemeral bug caused by session data
1866: [22:45:04] <Pyromanik> 'if page controller, need permission. If controller, no menus.'
1867: [22:45:32] * ss-helper has joined #silverstripe
1868: [22:46:22] <marvanni> The MenuSet should render fine if I look at the module, but I wonder if the correct templates/Template and Layout are rendered
1869: [22:46:40] <marvanni> but besides that pyromanik is right
1870: [22:46:57] * veb has joined #silverstripe
1871: [22:47:05] <Penguinman98> When a user who had never been to the site tried to go to that URL, they got this error:
1872: [22:47:17] <Penguinman98> "You must log in with your CMS password in order to view the draft or archived content."
1873: [22:47:36] <Pyromanik> oh
1874: [22:47:40] <Pyromanik> because Page_Controller
1875: [22:48:02] <Pyromanik> implement canView($member=null){return true;}
1876: [22:48:17] <Pyromanik> problem solved.
1877: [22:48:29] <Pyromanik> the issue is that it's a page controller that has no page.
1878: [22:48:50] <Penguinman98> yus
1879: [22:49:02] <Pyromanik> ie, because it's all cms set data, it's stored on the model, so checks there for infos. But you don't have one because you're directing directly.
1880: [22:49:27] <Pyromanik> This is also an issue that it being a Page_Controller won't have it fix the fact it won't show in the menus (becuase they're built from models too)
1881: [22:49:50] * veb quit (Client Quit)
1882: [22:50:21] <Pyromanik> so IMO the answer here is FlightSearch extends Page implments HiddenClass (iirc, might be HiddenPage)
1883: [22:50:41] <Penguinman98> HiddenClass?
1884: [22:50:43] <Pyromanik> with canDelete return false; canView return true; canCreate return false;
1885: [22:50:45] <Penguinman98> HiddenPage?
1886: [22:50:55] <Pyromanik> yes, makes it so no show in option to create/destroy
1887: [22:50:57] <Pyromanik> in cms
1888: [22:51:03] <Pyromanik> err, create.
1889: [22:51:17] <Penguinman98> So I'd create it first, and then set these flags
1890: [22:51:24] <Penguinman98> Then they could never unmake it
1891: [22:51:30] <Pyromanik> so you use populateDefaultRecords or whatever that funciton is (see SiteTree) and make one if none exist, otherwise do nothing.
1892: [22:51:40] <Pyromanik> and then it will exist on dev/build
1893: [22:51:49] <Penguinman98> what is this now?
1894: [22:51:56] <Penguinman98> populateDefaultRecords
1895: [22:52:01] <Pyromanik> such as home, about-us, and contact-us do when you first install.
1896: [22:52:05] <Pyromanik> something like that
1897: [22:52:10] <Pyromanik> requireDefaultRecords maybe
1898: [22:52:11] <Penguinman98> Where can I find this?
1899: [22:52:16] <Pyromanik> api.silverstripe.org
1900: [22:52:22] <Pyromanik> type defaultrecords
1901: [22:52:28] <Pyromanik> ??? profit.
1902: [22:52:29] * [Fate] quit (Ping timeout: 252 seconds)
1903: [22:53:08] * Azure quit (Excess Flood)
1904: [22:53:46] * Azure has joined #silverstripe
1905: [22:54:08] * Blacklite quit (Ping timeout: 252 seconds)
1906: [22:54:23] <marvanni> use an ide with code completion ;)
1907: [22:54:27] <Penguinman98> $defaultRecords = $this->stat('default_records');
1908: [22:54:30] <Pyromanik> yeh, requireDefaultRecords
1909: [22:55:08] <Pyromanik> http://api.silverstripe.org/3.2/source-class-SiteTree.html#1467-1521
1910: [22:55:31] <Pyromanik> (for example)
1911: [22:56:33] <Pyromanik> You're looking at populateDefaults - different thing.
1912: [22:56:52] <Pyromanik> Penguinman98, populateDefaults is basically onCreate
1913: [22:56:59] <Penguinman98> ok
1914: [22:57:12] <Pyromanik> sets default values at creation time (first write for a record to the db)
1915: [22:57:35] <Pyromanik> requireDefaultRecords does things at build time.
1916: [22:57:49] <Pyromanik> they should probably be renamed really.
1917: [22:57:52] * Pyromanik shrugs
1918: [22:58:29] * Blacklite has joined #silverstripe
1919: [22:58:42] * [Fate] has joined #silverstripe
1920: [22:59:44] <Pyromanik> hmm, actually you're not. Interesting, I've got NFI what that code does, hahahaa
1921: [23:00:15] <Pyromanik> but $this->stat('thing') is basically the old school way of doing $this->config()->thing
1922: [23:00:39] <Pyromanik> afaik Object::stat now just translates it to config::isnt()->get
1923: [23:03:30] <Pyromanik> http://api.silverstripe.org/3.2/source-class-DataObject.html#3787-3802
1924: [23:03:46] <Pyromanik> wow that sounds... a bit dangerous (as it says, anything versioned will instantly fuck up)
1925: [23:03:55] <Penguinman98> Just talked with bossman and with everything going on, I explained all the problems and everything
1926: [23:04:15] <Penguinman98> And the way he sighed and shook his head and then asked me to bundle up what I have and give it to him,
1927: [23:04:30] <Penguinman98> I'm suddenly very afraid I'm not going to be working here much longer
1928: [23:05:32] * simon_w has left #silverstripe
1929: [23:05:55] * veb has joined #silverstripe
1930: [23:06:21] * veb quit (Client Quit)
1931: [23:07:27] * veb has joined #silverstripe
1932: [23:07:51] <Pyromanik> How long have you been there Penguinman98 ?
1933: [23:07:58] <Penguinman98> 2.5 months?
1934: [23:08:06] <Pyromanik> I see.
1935: [23:08:07] * veb quit (Client Quit)
1936: [23:08:18] <Pyromanik> well, it it does turn to custard, see it as an opportunity.
1937: [23:08:34] <Pyromanik> You're certainly not stupid.
1938: [23:08:57] <Pyromanik> And working under that kind of negative pressure all the time is not nice.
1939: [23:09:20] <Pyromanik> You end up bringing it home. So crack on and find a better job with someone who appreciates your skills and years of experience :>
1940: [23:09:24] <Penguinman98> When it happens every 3 months with every single job for 3 years straight, it's harder and harder to see it as an 'opportunity' to do anything but fail again
1941: [23:09:34] <Pyromanik> H..
1942: [23:09:34] * Penguinman98 facedesks and cries
1943: [23:09:45] <Pyromanik> Try moving maybe? hah
1944: [23:10:01] <Pyromanik> Sounds like that movie
1945: [23:10:04] <Pyromanik> with jim carrey
1946: [23:10:13] <Pyromanik> A series of rather unforutnate events :<
1947: [23:12:08] <Pyromanik> Sounds like people in your area are exploiting the hell out of the 'trial period' clause in employment contracts (assuming you have something similar there)
1948: [23:12:10] <Penguinman98> Your sensitivity is broken
1949: [23:12:55] <Pyromanik> Basically bring you on for a project, get it 90 odd % done, then palm it off to a junior to fuck up on until it's done (but probably costs much less)
1950: [23:13:16] <Penguinman98> They don't bring me in at the wages they bring me in at to only keep me 3 months
1951: [23:13:24] <Pyromanik> quite unfair
1952: [23:13:36] <Penguinman98> They offer good wages and great benes
1953: [23:14:58] <Pyromanik> Well, hopefully you're just reading too much into it :<
1954: [23:15:06] <Pyromanik> and everything is actually fine :>
1955: [23:15:19] <Penguinman98> even my coworkers are all saying I'm sunk
1956: [23:15:33] <Pyromanik> You just learnt an entirely new framework in a week.
1957: [23:15:40] <Pyromanik> and coded a rather complex site in it.
1958: [23:15:46] <Penguinman98> I've been working on it for longer than that
1959: [23:15:59] <marvanni> another thing
1960: [23:16:04] <Pyromanik> coworkers sound like dicks tbh.
1961: [23:16:15] <marvanni> when do you show the results of the Form
1962: [23:16:28] <Pyromanik> Even if you were sunk, only a dick would rub it in :/ You sure they're not just hazing the new guy?
1963: [23:16:45] <Penguinman98> No, they tried to reassure me until I told them what bossman just told me
1964: [23:16:53] <Penguinman98> Then they all collectively gasped
1965: [23:16:53] <Pyromanik> :<
1966: [23:17:39] <Pyromanik> :/
1967: [23:17:47] <Penguinman98> He said the only part of the project that didn't work when he demoed it was the parts I worked on
1968: [23:18:15] <Pyromanik> And you got all the tricky bits?
1969: [23:18:18] <Penguinman98> Then he asked me to package all my work up into a branch and give it to him
1970: [23:20:31] <Pyromanik> :S
1971: [23:20:39] <Pyromanik> That does sound rather foreboding.
1972: [23:21:46] * veb has joined #silverstripe
1973: [23:25:22] <Penguinman98> This API is killing me too
1974: [23:25:33] <Penguinman98> It suffers the worst code rot I've ever seen
1975: [23:25:45] <Penguinman98> I fix something and upload the fix and a few days later it's broke again
1976: [23:26:23] <Pyromanik> Sounds about normal tbh :M
1977: [23:26:37] <Pyromanik> 'launch and forget'
1978: [23:27:32] <Penguinman98> I tell him I don't know what's causing it
1979: [23:27:41] <Pyromanik> To be fair you can't really be blamed for things not working if the api behind it all is broken. Your stuff could work perfectly and it'd have the same result!
1980: [23:27:45] <Penguinman98> Then he response that there is always a reason and it's my job to figure it out
1981: [23:28:36] <Pyromanik> heh, write a test harness for the api.
1982: [23:28:49] <Penguinman98> It's in php 4.3.11
1983: [23:28:54] <Pyromanik> :O
1984: [23:28:55] <Pyromanik> !!
1985: [23:28:56] <Penguinman98> You do it.
1986: [23:29:09] <Pyromanik> wait, this is an internal api?
1987: [23:29:23] <Penguinman98> This is the live working API
1988: [23:29:30] <Pyromanik> you can't access the data directly can you?
1989: [23:29:36] <Penguinman98> that is currently serving their live website
1990: [23:29:44] <Pyromanik> oh wow.
1991: [23:29:47] <Penguinman98> Well, the server is but this exact api is not
1992: [23:29:56] <Penguinman98> I have to use their server to build my own api
1993: [23:29:56] <Pyromanik> just pay some black hat to take care of it, haha
1994: [23:30:14] <Pyromanik> then you can re-implement
1995: [23:30:15] <Pyromanik> :P
1996: [23:30:19] <Penguinman98> My code should be really solid but it isn't
1997: [23:30:23] <Penguinman98> it breaks left and right
1998: [23:30:32] <Pyromanik> moar tests!
1999: [23:30:38] <Pyromanik> catch regressions as they happen
2000: [23:30:51] <Pyromanik> pair program all the things! \o/
2001: [23:30:53] <marvanni> this is very basic, but it just works
2002: [23:30:53] <marvanni> http://efshare.com/?s=U89ZH
2003: [23:31:37] <Penguinman98> the word 'city' doesn't even appear in the api
2004: [23:31:54] <Penguinman98> how am I getting 'city' instead of 'query_city' in the response?
2005: [23:32:52] <marvanni> theme/mytheme/templates/FlightSearchController.ss : http://sspaste.com/paste/show/55a055e08a448
2006: [23:33:21] <marvanni> theme/mytheme/tempates/Layout/FlightSearchController.ss : http://sspaste.com/paste/show/55a055ff90997
2007: [23:33:49] <Penguinman98> When I name it FlightSearchController.ss it fails to load. At all.
2008: [23:34:01] <Penguinman98> naming it FlightSearch.ss works
2009: [23:34:29] <marvanni> should not matter. I just tested my code in the zip file
2010: [23:35:09] <Penguinman98> Forgive me, I'm still having a panic here
2011: [23:35:21] <marvanni> its rendering the form, i can submit it, fetch the post data, build the querystring and redirect to the page with query params
2012: [23:35:49] <Pyromanik> winner marvanni :>
2013: [23:36:17] <Pyromanik> Coming to SSEU?
2014: [23:37:06] <marvanni> I don’t think to…
2015: [23:37:10] <Penguinman98> I'm shitting bullets. I just got this thing back working again
2016: [23:37:20] <marvanni> im loaded with work atm
2017: [23:37:21] <Penguinman98> I'm sorry but I'm having trouble trusting it enough to copy it in
2018: [23:37:35] <Penguinman98> panic panic panic
2019: [23:38:32] <marvanni> are you working in dev mode and have error_reporting(-1);
2020: [23:38:32] <marvanni> ini_set("display_errors", 1);
2021: [23:38:55] <marvanni> your clearly missing something obvious…..
2022: [23:38:58] <Pyromanik> marvanni, SS sets error reporting to max in it's bootstrap code iirc.
2023: [23:39:24] <marvanni> well that does not work for me always…
2024: [23:39:24] <Pyromanik> of course dev mode and display_errors help though :>
2025: [23:39:31] <Pyromanik> interesting
2026: [23:39:52] <Pyromanik> I suppose it would depend on the override settings in PHP, as to whether it'd allow changing those values at runtime
2027: [23:40:23] <marvanni> dunno, but this always works for me if (isDev) {crank up}
2028: [23:40:37] <Pyromanik> heh, can't hurt I guess :>
2029: [23:41:34] <marvanni> I have build 100’s of Forms, and I hate it. but this can’t be that hard
2030: [23:42:44] <Penguinman98> ugh
2031: [23:42:55] <Penguinman98> the sspaste brings the line numbers with it
2032: [23:42:56] <marvanni> There are some weird lines in the code, but not that it should not work
2033: [23:43:00] <Penguinman98> wtf
2034: [23:43:11] <marvanni> cick the copy button on the upper richt
2035: [23:43:18] <marvanni> right
2036: [23:43:21] <Pyromanik> oh there's a copy button?
2037: [23:43:27] <marvanni> a tiny one
2038: [23:43:35] <Pyromanik> heh. I didn't know
2039: [23:43:56] <marvanni> old ss 2.4 joke, need to update it
2040: [23:44:13] <marvanni> spamheaven
2041: [23:45:51] <Penguinman98> Uncaught SSTemplateParseException: Parse error in template on line 1. Error was: Unexpected problem parsing template GET /search-flights Line 4728 in C:\projects\slcairport-com\public\framework\view\SSTemplateParser.php
2042: [23:46:57] <Penguinman98> Thanks for the help but I'm having enough trouble fixing my own bugs
2043: [23:47:10] * oddnoc quit (Quit: yawn!)
2044: [23:50:39] <Pyromanik> marvanni, oh yeah, it's yours huh
2045: [23:51:17] <marvanni> yeah
2046: [23:52:05] <Pyromanik> Well, I think I might gaan bed like
2047: [23:52:21] <Pyromanik> it is 1am suddenly :<
2048: [23:53:12] * Penguinman98 quit (Ping timeout: 246 seconds)
2049: [23:53:39] <marvanni> I need to finish my dataobject ide annotator
2050: [23:54:23] <Pyromanik> oh right, that's what that thing is that you're working on
2051: [23:54:43] * Pyromanik doesn't IDE much
2052: [23:55:10] <Pyromanik> or, ever; When it comes to scripting languages.
2053: [23:55:35] <marvanni> I really became a better coder with PHPStorm after years of Dreamweave
2054: [23:55:36] <marvanni> r

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