#silverstripe IRC Log

IRC log for 8 July 2015

All timestamps are in UTC.

1: [00:00:12] <antmas> at least it lets you use frameworks for frontend stuff
2: [00:00:14] <samlander> i'll probably get a 6 month demo of sharepoint server and put it on my dedi
3: [00:00:39] <samlander> power watch the pluralsite courses and slap an expert sticker on my ass
4: [00:00:41] <samlander> xD
5: [00:00:47] <DanaeNZ> irogue: add a magical redirector for when you click on a different version number
6: [00:00:49] <antmas> samlander: make sure that box has like 328gb of RAM and a 5000ghz ocotcore CPU otherwise you're fucked
7: [00:00:49] * mattgunn has joined #silverstripe
8: [00:01:06] <Colin[pi]> lol
9: [00:01:08] <irogue> DanaeNZ: thats a bit big for now :P
10: [00:01:12] <samlander> the box has 128 gb of ram a 6 core zeon and 3xSSD
11: [00:01:13] <DanaeNZ> haha yeah
12: [00:01:22] <antmas> samlander: should work fine :P
13: [00:01:29] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
14: [00:01:35] <samlander> although my minecraft users might bitch about lag
15: [00:01:36] <samlander> xD
16: [00:02:13] <antmas> only trouble I find is if you want to dev in sharepoint, you need to have sharepoint server installed on the same machine as VS2013 - even if you're remote deploying .wsp files to your sharepoint production box
17: [00:02:29] <antmas> it's pretty backwards
18: [00:02:37] <samlander> i've got vis on my dedi
19: [00:02:50] <antmas> is it vs pro?
20: [00:02:54] <antmas> or premium?
21: [00:02:56] <samlander> its pro
22: [00:03:05] <antmas> good, cos one of them doesn't work :P
23: [00:03:25] <samlander> dev industry here is pretty shit
24: [00:03:32] <samlander> i left my last job in nov last year
25: [00:03:37] <samlander> took me 6 months to get a contract
26: [00:03:44] <DanaeNZ> yowza
27: [00:03:44] <antmas> "developing for sharepoint is free.... you just need a massive server box, and the most expensive VS distro available"
28: [00:03:46] <samlander> 1000 unemployed devs applying to every job
29: [00:03:47] <DanaeNZ> Canadia?
30: [00:03:51] <samlander> yep
31: [00:04:05] <DanaeNZ> I had some poutine yesterday
32: [00:04:09] <DanaeNZ> holy crap amazingf
33: [00:04:10] <samlander> mmmm poutine
34: [00:04:18] <antmas> only devs I know in Canadaland work at Shopify
35: [00:04:23] <DanaeNZ> chased by a maple + bacon cronut
36: [00:04:24] <Ryan-Toast> Can you grant a Group permissions for everything without granting ADMIN?
37: [00:04:48] <samlander> mmmmmmm doh- nut
38: [00:05:08] <antmas> DanaeNZ: did you instantly put on like 15kgs?
39: [00:05:16] <samlander> seriously though if you ever do come to canada and find yourself in quebec they make the best poutine there
40: [00:05:21] <DanaeNZ> antmas: i felt like i did
41: [00:05:25] <samlander> need to eat it with a montreal smoked meat sandwich
42: [00:05:45] <DanaeNZ> samlander: i’ll kepp that in mind
43: [00:06:00] <DanaeNZ> Al’s Deli here in Auckland does the canadia cuisine
44: [00:06:06] * cupcake quit (Ping timeout: 246 seconds)
45: [00:06:12] <DanaeNZ> they probably make that sort ofd sammy
46: [00:06:28] <samlander> we have a restuarant here that's from montreal that makes it authentic
47: [00:06:34] <samlander> god i feel fatter just thinking about it
48: [00:06:37] <DanaeNZ> http://alsdeli.co.nz/menu/
49: [00:06:43] <DanaeNZ> I’m getting hungry :(
50: [00:07:08] <samlander> wow sacraligious
51: [00:07:09] <DanaeNZ> “The Main”: monteral-style smoked brisket
52: [00:07:16] <samlander> HOLY TABARNAK = holy christ
53: [00:07:31] <DanaeNZ> haha :D
54: [00:07:32] <samlander> sounds like you're set
55: [00:07:46] <DanaeNZ> awesome, it has the Canadian seal of approval now
56: [00:07:51] <samlander> ta
57: [00:09:21] <samlander> i gotta say, i fakn hate php on windows
58: [00:09:38] <samlander> i gave up trying to install silverstripe on my win box
59: [00:09:55] <samlander> spun up a ubuntu lamp distro and installed it on that xD
60: [00:10:23] * spronk has joined #silverstripe
61: [00:10:48] * micmania1 quit (Quit: micmania1)
62: [00:12:21] <DanaeNZ> ugh i have to buy a bed
63: [00:12:29] <hamror> using a local machine rather than a (local) vm for dev is a rookie mistake
64: [00:12:36] <hamror> too much risk of software rot and contamination
65: [00:17:30] * muskie9 has joined #silverstripe
66: [00:19:09] * joelpittet has joined #silverstripe
67: [00:19:33] <Stomach> hamror - not really
68: [00:19:43] <Stomach> unless you dont keep your shit up to date
69: [00:19:47] <Stomach> which is a rookie mistake
70: [00:21:40] <hamror> uh huh
71: [00:26:03] * mattgunn quit (Ping timeout: 246 seconds)
72: [00:43:39] <simon_w|air> "What are my career aspirations or goals for the next 12 months?"
73: [00:43:44] <simon_w|air> I have no idea
74: [00:43:53] <simon_w|air> Stupid self performance review
75: [00:46:33] <hamror> get a decent terminal emulator going in the occulus rift
76: [00:46:37] <hamror> lets do it
77: [00:46:52] <Colin[pi]> simon_w|air: "to be able to go to work in my underwear"
78: [00:46:54] <Ryan-Toast> simon_w: Earn more money, do less work.
79: [00:47:55] * stecman quit (Quit: This computer has gone to sleep)
80: [00:49:32] <simon_w|air> But how to word that in a way that's sufficiently wanky?
81: [00:49:57] <samlander> pft screw the rift
82: [00:50:02] <samlander> hololens is where its at
83: [00:50:05] <samlander> xD
84: [00:50:14] <samlander> at least once they fix the FOV issue
85: [00:50:25] <samlander> i'll buy it when it offers 180 degree
86: [00:50:31] * stecman has joined #silverstripe
87: [00:50:37] * Tanger has joined #silverstripe
88: [00:51:25] <samlander> i have this fantasy of using a HL to dev on, 3 virtual screens with a bluetooth keyboard
89: [00:51:46] <samlander> ill probably end up buying both tbh :/
90: [00:51:50] <Colin[pi]> samlander: oh god, hololens with decent fov
91: [00:51:52] <Colin[pi]> spoooge
92: [00:51:55] <samlander> exactly
93: [00:52:26] <samlander> as if i didnt have enough of a god complex running my minecraft network now im going to be able to poke at them in 3d
94: [00:52:31] <samlander> on my coffee table.
95: [00:52:37] <samlander> bwahahahaha!
96: [00:52:45] <Colin[pi]> I sometimes wonder if the fov issue is deliberate to at least attempt to have people come back to reality occasionally :P
97: [00:52:54] <simon_w|air> I feel like minecraft would work better on the rift than hololens
98: [00:53:16] <Colin[pi]> simon_w|air: yes but the rift is VR, hololens is AR
99: [00:53:17] <samlander> i think honestely that holographic computing is the next paradim shift
100: [00:53:23] <Colin[pi]> AR is where it's at
101: [00:53:40] <Colin[pi]> samlander: did you ever play Remember Me?
102: [00:53:40] <samlander> especially if AR / holo tech gets minified to contact lens
103: [00:53:41] <simon_w|air> Colin[pi], yes, I'm aware of that. That's why the rift would be better :p
104: [00:53:54] <samlander> nope
105: [00:53:59] <Colin[pi]> simon_w|air: point ---------------> you
106: [00:54:04] <samlander> nay sir
107: [00:54:13] <Colin[pi]> samlander: good example of a future with highly integrated AR
108: [00:54:27] <samlander> *if* they fix the fov issue with the holo lens it would have the ability to do full vr as well
109: [00:54:33] <samlander> the technology holds more promise
110: [00:54:33] <Colin[pi]> walk down a street and shop signs open/closed etc just drop down in your vision and hover in front of the stores
111: [00:55:11] <simon_w|air> Ugh, that sounds horrible
112: [00:55:17] <samlander> i can see a future where everyone everwhere uses AR via contact lens
113: [00:55:23] <spronk> yuck
114: [00:55:31] <samlander> billboards no longer sell paper media, but holo media
115: [00:55:37] <samlander> and the ad space is targeted
116: [00:55:44] <hamror> i've been making a painting program with my wacom and the rift
117: [00:55:44] <spronk> i can see a future where all of this shit is gone
118: [00:55:46] <spronk> and it is bliss
119: [00:55:49] <Colin[pi]> here's an example: https://www.youtube.com/watch?v=NRzJLlsF5-4
120: [00:55:53] <hamror> it's a pretty shit experiene at the moment
121: [00:56:12] <hamror> i think something like erlang that can keep running even in fault states and a terminal emulator in-rift would make the pain less
122: [00:56:13] <samlander> colin: great score
123: [00:56:30] <samlander> nice graphics
124: [00:56:32] <Colin[pi]> samlander: that game is a work of art, shame it gets repetitive and you cant explore the world
125: [00:56:35] <samlander> that's rift compatible?
126: [00:56:39] <Colin[pi]> not sure
127: [00:56:50] <samlander> ah, i see the signs
128: [00:56:51] <spronk> has anyone tried a rift here?
129: [00:57:02] <spronk> google cardboard is pretty disgusting
130: [00:57:13] <hamror> yeah i have a devkit 2 for the rift
131: [00:57:23] <spronk> thoughts?
132: [00:57:24] <Colin[pi]> spronk: <thatsthepoint.jpg>
133: [00:57:35] <hamror> it's only suitable for graphics nerds like me
134: [00:57:37] <spronk> Colin[pi] as in, i cannot ever see this VR thing taking off, disgusting
135: [00:57:39] <hamror> not punters or casual devs
136: [00:57:46] <hamror> and it's a long way off being satisfying
137: [00:57:47] <samlander> omg
138: [00:57:50] <Colin[pi]> spronk: VR or AR?
139: [00:57:53] <spronk> VR
140: [00:57:55] <samlander> i seriously need to get developing
141: [00:58:02] <spronk> but, AR is almost the same
142: [00:58:03] <Colin[pi]> VR will happen for people who want imaginary worlds
143: [00:58:07] <samlander> imagine: 100 hololens units
144: [00:58:11] <Colin[pi]> AR will be coming in a BIG way
145: [00:58:15] <samlander> HUGE field/warehouse/arena
146: [00:58:21] <samlander> physical weapons
147: [00:58:32] <samlander> sword art online anyone?
148: [00:58:43] <Ryan-Toast> samlander: aww yiss
149: [00:58:44] <hamror> carmacks focus is on letting people paint up environmental scenes in Scheme that can be shared on things like facebook
150: [00:59:22] <DanaeNZ> someone say SAO
151: [00:59:30] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
152: [00:59:32] <samlander> lol DanaeNZ
153: [00:59:49] * adrexia has joined #silverstripe
154: [00:59:56] <Colin[pi]> I'd say in 10-20 years from now, most people will have some sort of AR device on most of the time
155: [00:59:56] * adrexia quit (Client Quit)
156: [01:00:02] <samlander> even taking over a paintball arena with a AR shooter would be amzing
157: [01:00:20] <samlander> there's a company deving that tech hang on
158: [01:00:39] <samlander> thttps://www.youtube.com/watch?v=kPMHcanq0xM
159: [01:00:42] <samlander> magic leap
160: [01:00:52] <samlander> but again, all the amzing ness DEPENDS on full FOV
161: [01:01:04] <samlander> im so pissed at microsoft for screwing the pooch on that one
162: [01:01:06] <spronk> uuhhhh that just seems disgusting
163: [01:01:12] * spronk does not want
164: [01:01:41] <samlander> im imagining that youtube vid, in a paintball arena
165: [01:01:47] <samlander> with AR scenery
166: [01:02:06] <samlander> have the map, mapped to physical obstacles walls etc
167: [01:02:19] <spronk> see
168: [01:02:26] <spronk> the elephant in the room is sensory mismatch
169: [01:02:58] <hamror> biggest things that suck with the rift at the moment is it needs some kind of clip on the index finger and thumb to give you basic hand presence in environment, right now it's deeply disturbing looking down
170: [01:03:20] <spronk> so basically the same as VR in the 90s
171: [01:03:26] <hamror> second thing is if you get lateral motion without the models giving you cues that you are in say a room or large vehicle, you immediately feel like throwing up
172: [01:03:30] <spronk> just with higher fidelity graphics?
173: [01:03:46] <samlander> i think im gonna spooge when i have full-AR and ask cortana a question and she pops out to answer xD
174: [01:04:03] <Colin[pi]> yeah the AR stuff now will seem like childs play compared to a decade from now
175: [01:04:18] <hamror> it's not very high fidelity, 960 on your eyeball is pretty low
176: [01:04:27] <hamror> the other huge problem is stuttering
177: [01:04:36] <samlander> yeah
178: [01:04:39] <samlander> that could be jarring
179: [01:04:46] <hamror> it's a long way from punters anyway
180: [01:04:53] <hamror> but painting on a wacom and seeing particles is fun
181: [01:05:46] <Colin[pi]> check this film out, it will get like this eventually I am very sure: https://www.youtube.com/watch?v=GJKwHAvR4uI
182: [01:06:05] <Colin[pi]> and not sure if I like or not :\
183: [01:06:50] <spronk> i think it'sawful
184: [01:07:02] <spronk> which is why i'm not convinced we'll really get there
185: [01:07:32] <Colin[pi]> spronk: tech has moved from warehouse, to room, to desktop, to hand, to face...
186: [01:07:44] <Colin[pi]> it's getting closer, it will be in the eye/head eventually :P
187: [01:07:46] * veb quit (Quit: veb-irc: &)
188: [01:07:56] <samlander> colin: i cant wait
189: [01:07:59] <Colin[pi]> but yeah, not sure if I want to be a Borg or not
190: [01:08:05] <samlander> i see that in 10 or 20 years
191: [01:10:52] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
192: [01:11:02] <spronk> i still think it's more likely to go the other way
193: [01:11:07] * micmania1 has joined #silverstripe
194: [01:11:09] <spronk> society will get progressively less turned on by this sort of shit
195: [01:11:36] <Colin[pi]> spronk: you reckon? consumers will lap it up I reckon
196: [01:11:42] <spronk> well
197: [01:11:49] <spronk> how is it going to be implemented?
198: [01:11:54] * marvanni quit (Quit: marvanni)
199: [01:12:02] <spronk> contact lens? :\
200: [01:12:11] <spronk> implant in the eye!?
201: [01:12:16] <spronk> how do you turn it off?
202: [01:12:32] <Colin[pi]> you cant MUHUHAHAHAA
203: [01:12:33] <spronk> i mean
204: [01:12:34] <spronk> right ther
205: [01:12:37] <spronk> that's your barrier to entry
206: [01:12:49] * Cheddam has joined #silverstripe
207: [01:13:14] <spronk> also, look at google glass
208: [01:13:17] <spronk> "ZOMG GOOGLE GLASS"
209: [01:13:23] <spronk> reality: "holy crap this is useless and shit"
210: [01:13:42] <samlander> a little tiny notification screen is shit
211: [01:13:45] <Colin[pi]> spronk: emergent tech
212: [01:13:54] <samlander> the idea was revolutionary
213: [01:14:01] <samlander> hololens takes it further
214: [01:14:02] <spronk> what
215: [01:14:03] <spronk> no it wasn't
216: [01:14:08] <spronk> the idea has been around for literally decades
217: [01:14:20] <Colin[pi]> idea != implementation
218: [01:14:27] <hamror> guys http://docs.silverstripe.org/en/3.1/developer_guides/controllers/introduction/ suggests i can return a new SS_HTTPResponse but I'm doing it from an action, so maybe not. anyway i'm getting an error Call to undefined method SS_HTTPResponse::getIterator()
219: [01:14:30] <spronk> yes, but
220: [01:14:32] <spronk> in the ... x decades it's been out
221: [01:14:42] <spronk> still, nobody has determined whether the proposed uses for it are actually.. useful
222: [01:14:52] <spronk> certainly not for mainstream consumers
223: [01:15:06] <samlander> oh hey i actually thought of an SS related question for you pros
224: [01:15:15] <samlander> debugging?
225: [01:15:21] <spronk> ..?
226: [01:15:53] <samlander> im used to attaching vis to the mini IIS server it uses for run mode
227: [01:15:57] <samlander> err debug mode
228: [01:16:13] <samlander> i havent ever done line by line debugging of php code so i dont have the first idea where to start, what to use etc
229: [01:16:17] <hamror> https://gist.github.com/jotham/4c59bd0e95ef5a52eebc
230: [01:16:18] <spronk> xdebug
231: [01:16:19] <samlander> all i have is my ubuntu lamp
232: [01:16:32] <spronk> + eclipse/webstorm/intellij/zendstudio/netbeans
233: [01:16:33] <hamror> anyway not sure what i've done wrong here
234: [01:17:10] <samlander> ty spronk
235: [01:17:30] <spronk> you can do remote debugging or local debugging with it
236: [01:17:42] <spronk> remote debug requires a bit of config for the php installation
237: [01:17:54] <spronk> xdebug.remote_enable = 1, xdebug.remote_port = x, irrc
238: [01:17:56] <spronk> iirc*
239: [01:18:56] <simon_w|air> hamror, trying to <% loop $Clients %> in a template that uses CampaignManager_API?
240: [01:19:15] <spronk> hamror well, looks ok... o_O
241: [01:19:48] <samlander> does xdebug have a page that dumps are pushed to?
242: [01:20:07] <hamror> i don't have any templates being used, i would assume setting the body would just return that according to the docs
243: [01:20:31] * adrexia has joined #silverstripe
244: [01:20:32] <simon_w|air> hamror, can you paste the error including callstack?
245: [01:21:17] <spronk> samlander "dumps" ?
246: [01:21:37] <samlander> im maybe not interpreting what xdebug "does" it looks like it allows you to send info somewhere
247: [01:21:45] <hamror> not sure how to get a call stack, just got a tail on a ss log and apache log https://gist.githubusercontent.com/jotham/236705a9e72e363b292b/raw/5e51cf36e797d1ffa24596a3cfe54dfa25694967/gistfile1.txt
248: [01:23:10] * david_____ has joined #silverstripe
249: [01:23:16] <samlander> ah i found an xdebug vid
250: [01:23:47] <spronk> xdebug augments your runtime so you can step debug :p
251: [01:24:19] <david_____> if I have preexisting data in dataobjects then want to subclass them to normalize their fields how do I go about that in the database?
252: [01:24:42] <david_____> all the objects still reside in the individual tables and the new super table is empty
253: [01:24:55] <david_____> also calls like DataObject::get return an empty set
254: [01:26:24] <david_____> can I augment the sub class tables with the super classes $db fields?
255: [01:31:27] <UncleCheese> if I have a module locked to 3.0.* and minimum stability 'dev', and I run compser update
256: [01:31:40] <UncleCheese> does that mean I'll get whatever is on master after 3.0?
257: [01:34:06] <hamror> simon_w|air: so this is up till the return, so i guess it is getting some kind of template confusion, is this not the preferred way to return a custom http body then? https://gist.github.com/jotham/ec2a4d1f104cee50b038
258: [01:36:03] <hamror> it's because of some magic getter stuff going on eh, oh well
259: [01:36:53] <spronk> hmm
260: [01:37:07] <david_____> can a dataextension overload the delete method?
261: [01:37:09] <hamror> yeah that's what it was
262: [01:37:36] <spronk> bloody magic
263: [01:41:20] <david_____> or can you prevent a delete from happening in the onbeforedelete method?
264: [01:43:47] <Kingy> john campbell on screen
265: [01:44:24] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
266: [01:44:49] <Ryan-Toast> david______: You should be able to prevent it from the onBeforeDelete
267: [01:48:52] * Cheddam has joined #silverstripe
268: [01:49:23] <david_____> any idea how? I cannot see an interception pathway
269: [01:52:42] <david_____> https://github.com/silverstripe/silverstripe-framework/blob/3.2/model/DataObject.php#L1118
270: [01:54:33] * Sticks has joined #silverstripe
271: [01:57:08] <Kingy> helenclarko: watching?
272: [01:57:25] <helenclarko> listening.
273: [01:57:33] <Kingy> i like our new jersey
274: [01:58:38] <Kingy> antmas: you'll be watching?
275: [02:01:25] <Ryan-Toast> Link to the rugby stream
276: [02:01:26] <Ryan-Toast> ?
277: [02:01:40] <Kingy> im watching on tv
278: [02:01:44] <Kingy> helenclarko had one lemme find it
279: [02:02:03] <Kingy> http://firstrowau.eu/sport/rugby.html
280: [02:02:27] <Kingy> anyone for $10 on a red card today?
281: [02:02:39] <Stomach> starts at 3pm right?
282: [02:02:45] <Kingy> kick off right now
283: [02:03:50] <Kingy> kieran reid injured already lol
284: [02:03:51] <Kingy> good start
285: [02:03:54] <samlander> i cant wait to play rocksmith on hololens
286: [02:03:55] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
287: [02:04:35] <helenclarko> Kingy, Haha, at work, so have to be sneaky
288: [02:04:54] <Kingy> helenclarko: joys of being a contractor working from home. living the dream haha
289: [02:04:59] <Ryan-Toast> That link didn’;t work for me.
290: [02:05:10] <Kingy> hold on Ryan-Toast
291: [02:05:53] <Ryan-Toast> Found one :)
292: [02:07:29] <Kingy> Ryan-Toast: what one?
293: [02:08:15] <helenclarko> Kingy, soon.
294: [02:12:28] * ss-helper quit (Remote host closed the connection)
295: [02:12:40] * ss-helper has joined #silverstripe
296: [02:17:25] <irogue> so I just started to feel super thirsty
297: [02:17:47] <simon_w|air> Have a drink
298: [02:17:52] <irogue> and then had a horrific realisation that an hour ago I'd ordered a juice from Tank, went next door to the post shop to pick up a parcel, and then completely forgot about my juice
299: [02:19:09] <Kingy> ahaha
300: [02:19:26] <irogue> thanks to the huge line at the post shop my juice had probably been thrown out by the time I got to the front of the line anyway
301: [02:19:26] <DanaeNZ> omg
302: [02:19:32] <Kingy> i love watching PI rugby teams... let's hit the opposition as hard as possible
303: [02:19:44] * micmania1 quit (Quit: micmania1)
304: [02:20:30] <irogue> govt must be budget-cutting nzpost hard at the moment, postshops are being closed down left right and centre on top of the drop to 3-day delivery
305: [02:20:53] <irogue> the one I went to was busy as hell and its being closed soon
306: [02:32:28] <adrexia> lol: https://github.com/silverstripe/silverstripe-framework/issues/4380
307: [02:33:01] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
308: [02:33:26] <adrexia> https://en.wikipedia.org/wiki/Dissolution_of_the_Soviet_Union
309: [02:36:26] <DanaeNZ> man I wish post shops and banks were open all day all weekend
310: [02:36:41] <DanaeNZ> too many times go to a post shop at 2pm on a saturday and they’re closed
311: [02:37:58] <hamror> that is a sad tale
312: [02:38:22] <Ryan-Toast> My favorite sushi place is closed on Sunday.
313: [02:38:33] <Ryan-Toast> Which is the perfect day for sushi.
314: [02:40:03] <DanaeNZ> adrexia: lolol
315: [02:40:13] <DanaeNZ> Doesn’t it come from the Zend locale library?
316: [02:40:56] <adrexia> I'm not sure, but the Soviet Union ceased to exist when Silverstripe's founders were about 8-9
317: [02:41:30] <adrexia> so I don't think Zend has any excuse either
318: [02:42:07] <adrexia> http://php.net/manual/en/history.php.php
319: [02:42:12] <adrexia> php was 1994 ...
320: [02:42:53] <Ryan-Toast> adrexia: maybe they sexually identify as the soviet union.
321: [02:43:07] <adrexia> I guess.... the only thing I can think of is if there was a 'what country were you born in'
322: [02:43:23] <adrexia> or where was your first drivers license issued, or soemthign
323: [02:43:43] <adrexia> in which case you'd need all the countries for the past 100 years or so
324: [02:43:59] <adrexia> Ryan-Toast I think taht's against Russian law
325: [02:44:07] <Ryan-Toast> adrexia: lol!
326: [02:50:21] * UncleCheese has joined #silverstripe
327: [03:01:53] <helenclarko> Kingy, Whats going on, 12-3?
328: [03:01:58] * Cheddam has joined #silverstripe
329: [03:02:12] <Ryan-Toast> helenclarko: Kicking, yay...
330: [03:02:40] <helenclarko> I've been out of office.
331: [03:05:36] * Cheddam quit (Client Quit)
332: [03:10:07] <Ryan-Toast> Stomach: how’re you checking the viewport to swap out your header fixed class?
333: [03:10:15] <Stomach> wat
334: [03:10:39] <Ryan-Toast> Fixed headers :)
335: [03:10:50] <Stomach> where?
336: [03:10:51] * micmania1 has joined #silverstripe
337: [03:10:59] <antmas> anyone got a working rugby link?
338: [03:11:07] <Ryan-Toast> Stomach: pretty mucbh all of your sites
339: [03:11:25] <Ryan-Toast> antmas: https://www.reddit.com/r/rugbyunion/comments/3chhi1/match_thread_nz_tour_samoa_v_nz_1400_nz_0300_bst/
340: [03:11:31] <Stomach> http://firstrowau.eu/watch/355183/2/watch-new-zealand-all-blacks-vs-manu-samoa.html
341: [03:11:41] <Stomach> Ryan-Toast - give me an example
342: [03:11:43] <antmas> chur
343: [03:11:48] <Ryan-Toast> Stomach: junkfreejune
344: [03:11:49] <antmas> firstrow didn't work
345: [03:12:08] <Stomach> its just css?
346: [03:12:16] <Stomach> antmas - vipbox.sx
347: [03:12:33] <Ryan-Toast> Stomach: you have js that swaps the classes out though.
348: [03:12:40] <Stomach> where
349: [03:12:40] <spronk> ah vipbox
350: [03:12:41] <spronk> pwn
351: [03:12:47] <spronk> thats where i watch all my f1 :P
352: [03:12:48] <Ryan-Toast> Stomach: I dunno :P
353: [03:12:55] <spronk> choppy as fuck, but hey
354: [03:12:56] <Ryan-Toast> your scripts are minified
355: [03:13:16] <Stomach> what classes
356: [03:13:19] <Stomach> I am so fucking lost
357: [03:13:32] <Stomach> JFJ no classes change?
358: [03:13:47] <Ryan-Toast> Stomach: don’t worry, I’ll just unminify it :P
359: [03:14:00] <Stomach> show me what you mean!
360: [03:15:31] <Ryan-Toast> Stomach: http://pastie.org/10278782
361: [03:16:07] <nontgor> spronk ryan-toast antmas Install Kodi,
362: [03:16:15] <Stomach> thats a scroll helper?
363: [03:16:34] <Ryan-Toast> Stomach: lkine 23
364: [03:17:11] <Stomach> http://pastie.org/10278783
365: [03:17:27] <Ryan-Toast> danke
366: [03:17:46] <antmas> Kodi?
367: [03:17:49] <antmas> wat is?
368: [03:18:40] <nontgor> formerly XBMC but the default install comes with a lot of *useful* media watching sources
369: [03:18:49] <nontgor> add a few more and wham live sport...
370: [03:19:02] <nontgor> living in Thailand few if any legal sources for 'weird' sports like cricket
371: [03:19:40] <Kingy> helenclarko: pretty shit game
372: [03:20:09] <helenclarko> terrible.
373: [03:20:38] <helenclarko> Kind of hoping samoa wins at this point.
374: [03:25:08] <helenclarko> nontgor, so live sport is just sitting on Kodi?
375: [03:25:36] * Cheddam has joined #silverstripe
376: [03:26:40] <nontgor> helenclarko: With the right addons, hes. Took me about 20 secs to find the rugby
377: [03:26:56] <Kingy> helenclarko: jinxed it
378: [03:27:13] <helenclarko> SORRY GUYS!
379: [03:29:45] <nontgor> 12 mins to go - just checking if my feed is actually live
380: [03:30:00] <Ryan-Toast> dat run could have been great
381: [03:30:16] <helenclarko> sounds about live
382: [03:30:36] <helenclarko> ball to samoa
383: [03:30:52] <antmas> can't get any of these links to work :/
384: [03:31:18] <helenclarko> In touch
385: [03:31:28] <helenclarko> 9 mins left.
386: [03:32:21] <antmas> 'VLC is unable to open the MRL'
387: [03:33:39] <nontgor> had forgotten how bit rugby is in NZ, it's barely on the radar in Thailand, just played in international schols
388: [03:35:00] <hamror> it's only big in blue collar circles here
389: [03:37:10] <nontgor> helenclarko: http://imgur.com/Usk76Fq
390: [03:39:02] <helenclarko> okay, how!
391: [03:40:42] <antmas> I need to get a proper sport setup at hom
392: [03:40:44] <antmas> home*
393: [03:42:47] <antmas> should put a pr in to popcorntime asking for live stream stuff :P
394: [03:44:09] <antmas> nontgor: with Kodi - where do you get the stream links from?
395: [03:45:55] <Ryan-Toast> Welp, all over.
396: [03:46:04] <Ryan-Toast> Pretty smaverage game.
397: [03:46:16] <Ryan-Toast> Hopfully Origin is good tonight.
398: [03:46:29] <Kingy> + ashes
399: [03:46:51] <nontgor> antmas: I used mainly tips from this guy https://seo-michael.co.uk/tag/kodi/
400: [03:47:40] <nontgor> antmas: For live sport addons Zem TV, p2p-streams (works on Ubuntu, couldn't get it work on Android), IPTVxtra UKxtra
401: [03:47:59] <antmas> nice
402: [03:48:20] <antmas> been thinking about forking popcorntime and making my own version with live streams
403: [03:52:18] <Colin[pi]> antmas: and hookers and blackjack?
404: [03:52:40] <nontgor> antmas: p2p-streams in Kodi has several acestream and sopcast live stream links
405: [03:52:51] <spronk> pwn
406: [03:52:52] <spronk> nice
407: [03:53:12] <antmas> nice
408: [03:53:15] <antmas> Colin[pi]: always
409: [03:53:30] <nontgor> antmas: I have it installed on a six year old Dell Vostron 1320 with an nVidia card, works well, was surprised Bluray files could be played smoothly
410: [03:55:05] <antmas> nontgor: mm at the moment I have a simple C2D running win8.1 with popcorn time on it
411: [03:55:16] <antmas> would kill to have a desktop app for live streams of sports
412: [03:56:16] <helenclarko> after all this stream talk, I've realised I have access to my satallite box at home. could have streamed from that.
413: [03:56:27] <antmas> hahaha
414: [03:56:55] <antmas> next time my 'rents are up I'll get them to setup SkyGo and use that from home :P
415: [04:03:20] * UncleChe_ has joined #silverstripe
416: [04:08:27] <irogue> antmas: apparently Sky Go fucked up (again)
417: [04:08:58] <antmas> not suprised
418: [04:09:06] <irogue> its a pretty safe bet that any time there's a major sporting event or tv premiere Sky Go will crap its pants
419: [04:09:12] <irogue> it just can't handle load in the slightest
420: [04:09:30] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
421: [04:15:42] * muskie9 has joined #silverstripe
422: [04:16:14] * Cheddam has joined #silverstripe
423: [04:25:12] * camfindlay has joined #silverstripe
424: [04:25:46] * Stomach quit (Quit: zzz)
425: [04:27:40] * wmk has joined #silverstripe
426: [04:31:35] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
427: [04:38:52] <irogue> mmmmm
428: [04:38:58] <irogue> ss23 made us pancakes
429: [04:39:10] * Stomach has joined #silverstripe
430: [04:39:20] <irogue> now I feel better about my lost juice
431: [04:39:58] <Ryan-Toast> irogue: wat
432: [04:40:19] <Ryan-Toast> Wednesday afternoon pancakes?
433: [04:40:24] <irogue> yup
434: [04:40:34] <Ryan-Toast> How quaint.
435: [04:42:03] <ss23> I cooked pancakes for 3 hours
436: [04:42:06] <ss23> 3 hours man.
437: [04:43:18] <irogue> so if you have pending helpdesk tickets, that's why :P
438: [04:43:25] * spronk quit (Quit: I may need a longer sleep timer...)
439: [04:43:26] <antmas> LOL
440: [04:44:01] <Ryan-Toast> ss23: was the first one too light?
441: [04:44:24] <irogue> $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
442: [04:44:30] <irogue> this makes me feel like I'm writing java
443: [04:44:54] <Ryan-Toast> Needs more Iterator
444: [04:45:00] <irogue> and more Factory
445: [04:48:06] * UncleChe_ quit (Remote host closed the connection)
446: [04:51:31] <nontgor> FactoryFactory's were my favorite
447: [04:51:41] <Colin[pi]> $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir))
448: [04:51:43] <Colin[pi]> PUAGH
449: [04:51:52] <Colin[pi]> threw up in my mouth a little
450: [04:56:16] * Stomach quit (Quit: zzz)
451: [04:59:51] * spronk has joined #silverstripe
452: [05:01:37] * UncleChe_ has joined #silverstripe
453: [05:02:42] * antmas quit (Quit: Page closed)
454: [05:02:44] * helenclarko quit (Quit: Leaving)
455: [05:14:33] * Hailwood quit (Remote host closed the connection)
456: [05:17:33] * sneha has joined #silverstripe
457: [05:20:57] * Kingy quit (Ping timeout: 255 seconds)
458: [05:22:06] <DanaeNZ> ss23 can you make me pancakes?
459: [05:22:07] * Kingy[a] has joined #silverstripe
460: [05:22:07] * Kingy[a] is now known as Kingy
461: [05:27:20] * travis-ci has joined #silverstripe
462: [05:27:21] <travis-ci> silverstripe/silverstripe-framework#5295 (3.1 - 5fa5003 : Damian Mooyman): The build passed.
463: [05:27:22] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/31db269f716c...5fa50039b9d1
464: [05:27:22] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/70010927
465: [05:27:22] * travis-ci has left #silverstripe
466: [05:27:36] <DanaeNZ> travis-ci will you make me pancakes?
467: [05:28:55] <ss23> DanaeNZ: You could've had some if you were here
468: [05:28:58] <ss23> Alas, you were not
469: [05:29:12] <DanaeNZ> mail some to me
470: [05:29:30] <DanaeNZ> they might not be so good when they get here though
471: [05:29:30] <ss23> ehhhh
472: [05:29:31] <ss23> pass~ :D
473: [05:29:40] <DanaeNZ> seeennpaaaiiiiii :<
474: [05:30:10] <DanaeNZ> pffft i’m gonna make my own pancakes with blackjack and hookers!
475: [05:30:11] <ss23> dame~!
476: [05:30:22] <DanaeNZ> D:
477: [05:30:31] * DanaeNZ quit (Quit: DanaeNZ)
478: [05:33:46] * UncleChe_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
479: [05:36:09] * david_____ quit (Ping timeout: 246 seconds)
480: [05:40:45] * stecman quit (Quit: This computer has gone to sleep)
481: [05:41:23] * Copperis has joined #silverstripe
482: [05:42:58] * veb has joined #silverstripe
483: [05:48:00] * DanaeNZ has joined #silverstripe
484: [05:51:05] * Sticks quit (Quit: Leaving)
485: [05:52:37] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
486: [05:53:49] * marvanni has joined #silverstripe
487: [05:56:21] * veb quit (Quit: veb-irc: &)
488: [06:01:42] * sneha quit (Ping timeout: 246 seconds)
489: [06:02:44] * micmania1 quit (Quit: micmania1)
490: [06:04:37] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
491: [06:14:56] * Mike123 has joined #silverstripe
492: [06:17:15] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
493: [06:17:36] <Mike123> Morning
494: [06:21:30] * lerni has joined #silverstripe
495: [06:25:05] * camfindlay quit (Quit: camfindlay)
496: [06:32:05] * Ryan-Toast quit (Quit: Ryan-Toast)
497: [06:34:09] * Ryan-Toast has joined #silverstripe
498: [06:41:54] * adrexia has joined #silverstripe
499: [06:42:49] * ss-helper quit (Remote host closed the connection)
500: [06:43:03] * ss-helper has joined #silverstripe
501: [06:44:36] * Eliseth has joined #silverstripe
502: [06:45:50] * veb has joined #silverstripe
503: [06:50:13] * swaiba has joined #silverstripe
504: [06:53:52] * Ryan-Toast quit (Quit: Ryan-Toast)
505: [06:54:09] <Tanger> Hey guys, where the heck does BuildTask get it's default template from?
506: [06:55:29] <ss23> *shrug*
507: [06:55:38] <ss23> From memory it's like the final fall back "everything else failed" one
508: [06:55:41] <ss23> Grep for some of the HTML?
509: [06:56:45] <Tanger> Yeah, maybe. AFAIK it's just a <h1>$Title</h1>, so how hard can it be eh? ¯\_(ツ)_/¯
510: [06:57:45] <ss23> Well it'll be in ./framework I guess
511: [06:57:50] <ss23> So you can check templates there I guess
512: [06:59:31] <simon_w|air> Tanger, there isn't one
513: [06:59:32] * micmania1 has joined #silverstripe
514: [06:59:49] <simon_w|air> TaskRunner::runTask just outputs directly
515: [07:00:00] <ss23> What about the CSS etc?
516: [07:00:10] <simon_w|air> There isn't any
517: [07:00:26] <Tanger> simon_w|sair: So if I want to add proper html structure to a task output without it sticking the H1 outside anything, I could override TaskRunner or something?
518: [07:00:30] <ss23> But it has blue, right? :O
519: [07:00:37] <irogue> no, the tasks themselves don't
520: [07:00:37] <Tanger> Inline styles?
521: [07:00:40] <ss23> Oh, I'm thinking of the /dev/ one
522: [07:00:41] <ss23> Yeah
523: [07:00:43] <ss23> Sorry
524: [07:00:44] <ss23> My bad
525: [07:00:51] <irogue> the /dev/tasks menu does but not the individual ones :)
526: [07:00:58] <ss23> mm, I got confused
527: [07:01:22] <simon_w|air> Tanger, if you're overriding TaskRunner, there's almost no point using BuildTask
528: [07:01:28] <simon_w|air> Just stick a method on your controller
529: [07:01:37] <Tanger> I would just use Title on the buildtask, but it says no HTML allowed :(
530: [07:02:39] <Tanger> Yeah, alright then.
531: [07:03:34] <irogue> ugh I guess I should go home at some point
532: [07:04:20] <simon_w|air> Nah bro
533: [07:04:59] * veb quit (Quit: veb-irc: &)
534: [07:07:54] <Tanger> simon_w|air: Hey Simon_w, if I do subclass TaskRunner and add my task to it, would the best way to get the CMS to use it through class injection in config.yml?
535: [07:08:08] * veb has joined #silverstripe
536: [07:09:36] <simon_w|air> Tanger, change the class for the registered controller
537: [07:09:46] * veb quit (Client Quit)
538: [07:10:00] <Tanger> simon_w|air: Thanks
539: [07:10:09] * irogue quit (Quit: My Mac has gone to sleep. ZZZzzz…)
540: [07:11:53] * veb has joined #silverstripe
541: [07:14:04] * SilverMark has joined #silverstripe
542: [07:15:13] * SilverMark quit (Client Quit)
543: [07:20:03] * benjhocking has joined #silverstripe
544: [07:24:23] * veb quit (Quit: veb-irc: &)
545: [07:26:04] * wmk quit (Ping timeout: 265 seconds)
546: [07:26:50] * spronk quit (Quit: I may need a longer sleep timer...)
547: [07:52:08] * wmk has joined #silverstripe
548: [07:58:34] * kinglozzer has joined #silverstripe
549: [08:07:28] * GioVdK has joined #silverstripe
550: [08:16:21] <marvanni> TemplateGlobalProvider::get_template_global_variables(); wouldn’t it be nice if I could do this : return array( 'SearchPage' => SearchPage::get()->First());
551: [08:17:45] * Pycptrk has joined #silverstripe
552: [08:18:38] <Pycptrk> You know that work you're doing Pycptrk ? Stop that. No more work, don't do anything on that project, or any support requests unless it's actually business critical (not user definition 'critical').
553: [08:18:51] <Pycptrk> Instead Pycptrk; you're writing documentation for 3 months! HOORAY!
554: [08:18:56] <Pycptrk> ............. :<
555: [08:19:12] <Pycptrk> even better, documentation on LEGACY systems!
556: [08:20:09] <Pycptrk> extreme obfuscation, much inefficient, many hacks, wow.
557: [08:20:31] <Pycptrk> better yet, no source control, no idea why half these things exist.
558: [08:20:36] <Pycptrk> or if they're even used
559: [08:20:48] <Pycptrk> "But that's why we need documentation!"
560: [08:20:50] <Pycptrk> :<
561: [08:20:53] <Pycptrk> joy
562: [08:22:37] <kinglozzer> marvanni: That or return array( 'SearchPage' => function() { SearchPage::get()->First(); });
563: [08:22:43] <kinglozzer> + an extra return
564: [08:22:44] <kinglozzer> :P
565: [08:23:00] <marvanni> ah yes, a closure might work….
566: [08:25:28] <marvanni> hm.. no joy…..
567: [08:25:29] <marvanni> [Warning] call_user_func_array() expects parameter 1 to be a valid callback, second array member is not a valid method - See more at: http://sire.local.dev/#sthash.rvPP7IU3.dpuf
568: [08:25:40] <kinglozzer> SSViewer_DataPresenter::createCallableArray(), add it!
569: [08:25:51] <marvanni> stupid Firefox suffixes.....
570: [08:25:55] <kinglozzer> :P
571: [08:27:08] <marvanni> its the addthis pluging that adds it…. stufu
572: [08:30:06] <marvanni> hm, I don’t see it…
573: [08:30:17] <Mike123> i have extension on Slide module, i have this function in extension http://codepaste.net/iq6emu why i am not getting anything in template ?
574: [08:30:31] <Mike123> looping the function name and inside $Slide
575: [08:32:04] <kinglozzer> Mike123: You're looping, but you only have 1 slide?
576: [08:32:21] <Mike123> for now , yes , only one
577: [08:32:34] <Mike123> but i should get me then only 1 slide
578: [08:33:24] <kinglozzer> Well, if you're looping more than 1 slide you can just do: return Slide::get()->filter(array('ParentID' => $this->owner->ID, 'Active' => 1));
579: [08:33:45] <marvanni> I don’t think its going to work, if I read the docblocks…
580: [08:33:58] <kinglozzer> If you want 1 slide, you need to add ->first(), and use ArrayData instead of ArrayList
581: [08:34:04] <kinglozzer> ArrayList is for.. well.. lists
582: [08:34:54] <Mike123> ok but i want to get SlideCode, it's a field in Slide Object
583: [08:35:21] <Mike123> i want to get every slidecode for each slide object
584: [08:38:14] <Mike123> and if i have more than one slide ?
585: [08:44:31] * bemusedrat has joined #silverstripe
586: [08:44:48] * veb has joined #silverstripe
587: [08:48:01] <marvanni> kinglozzer this works : return array( 'SearchPage' => array('value' => SearchPage::get()->First()));
588: [08:48:21] <kinglozzer> marvanni: Ah, nice!
589: [08:48:46] <marvanni> saves a lot of code again in my implementors :)
590: [08:49:09] <kinglozzer> marvanni: One thing to note: that's not quite as efficient. It calls that method and stores the result in memory, even if none of the templates actually call it
591: [08:49:32] <kinglozzer> Shouldn't matter for one object, but worth keeping in mind :)
592: [08:50:16] <marvanni> Thats indeed good to know…
593: [08:50:18] <kinglozzer> Mike123: It's hard to guess, I don't know what module you mean either. <% loop $Slides.Filter('Active', 1) %> $SlideCode <% end_loop %> ?
594: [08:51:26] <marvanni> so I should better store SearchPage::get()->First()->Link() instead of the whole object… do you think that will help?
595: [08:53:44] <kinglozzer> marvanni: Unless you're running out of memory, it won't really matter as a one-off
596: [08:54:10] <Mike123> kinglozzer
597: [08:54:13] <Mike123> http://codepaste.net/szmgo5
598: [08:54:23] <Mike123> i just cant get it right here
599: [08:55:07] <Mike123> i have Slide Object with SlideCode Field , i need to get all Active Slides and their SlideCode fields and just loop them in template
600: [08:55:09] <kinglozzer> marvanni: How about return array( 'SearchPage' => array('callable' => function() { SearchPage::get()->First()); });
601: [08:55:16] <kinglozzer> Does that work?
602: [08:55:23] <kinglozzer> Not as pretty, though :(
603: [08:55:42] <marvanni> I guess that will try to find a callable method, et me try
604: [08:56:20] <marvanni> call_user_func_array() expects parameter 1 to be a valid callback, no array or string given
605: [08:57:52] <marvanni> now lets try the closure when passing a attribute from template like limit …
606: [08:58:10] <kinglozzer> Mike123: Just do: return Slide::get()->filter(array('ParentID' => $this->owner->ID, 'Active' => 1));
607: [08:58:28] <kinglozzer> Then in your template <% loop $ActiveSlides %> $SlideCode <% end_loop %>
608: [08:59:29] <Mike123> kinglozzer , the problem is that this $SlideCode contains <ul></ul> tags, i need to remove them ... so that i have only <li> left
609: [09:03:41] <marvanni> ok, kinglozzer, you are right.. I guess its not a good idea… setting a callback method, just holds the array of methods, and gets called when needed… setting the value keeps the result as an object
610: [09:09:04] * veb quit (Quit: veb-irc: &)
611: [09:11:29] <wmk> Mike123, $text = removeULfromHTML(code->SlideCode);
612: [09:11:44] <wmk> where you have to define a method to remove the UL stuff before you process it further
613: [09:12:56] <wmk> maybe you can also make a method to return the filtered html in your object providing the SlideCode
614: [09:13:34] <Mike123> i need to define a method that remove ul tags
615: [09:13:44] <Mike123> but cant figure it out how
616: [09:14:33] <wmk> Mike123, what does $code->SlideCode return? paste an example please
617: [09:14:46] <wmk> Pycptrk, oh - documenting is fun...
618: [09:15:21] <wmk> reminds me of the german blogpost recently when cool startup projects became unmaintainable, cause management didn't care about refactoring and usable code
619: [09:15:45] <Mike123> it return html text
620: [09:15:54] <wmk> paste an example please
621: [09:16:01] <wmk> htmltext is just a string
622: [09:16:31] <Pycptrk> wmk: oh so fun. I'm busy answering forum questions instead, haha :/
623: [09:17:56] <wmk> Pycptrk, http://blog.fefe.de/?ts=ab72d7ef dunno if google translate makes something useful out of that
624: [09:22:13] * micmania1 quit (Quit: micmania1)
625: [09:22:35] <wmk> Pycptrk, "every big company has big masses of code which is nearly unmaintainable. Cause the companies didn't manage to motivate the employees, to improve old and bad code step by step. Instead a culture of pressure to make new innovations"...
626: [09:22:47] <wmk> features...
627: [09:22:57] <wmk> reminds me a lot of this essay
628: [09:23:37] * jarrodszs has joined #silverstripe
629: [09:23:57] <jarrodszs> hi everyone, when doing a loop inside SS for example for $Employees
630: [09:24:05] <jarrodszs> how would i get inside that loop the first_name from Employee for example?
631: [09:24:16] <wmk> $first_name ?
632: [09:24:35] <jarrodszs> just the column name like $column_name thus thanks Ill try that
633: [09:24:47] <wmk> (though you should use the standard of using CamelCase for db columns)
634: [09:26:59] <wmk> jarrodszs, did you see the lessions on ss site?
635: [09:27:13] <jarrodszs> doesen't seem to work im rather new to SS they dropped me this project in SS ;p
636: [09:27:14] <wmk> http://www.silverstripe.org/learn/lessons
637: [09:27:16] <jarrodszs> something like https://gist.github.com/anonymous/489b3bb389d822e0bbc1
638: [09:27:42] <wmk> jarrodszs, inside loop: $Me.Debug
639: [09:27:51] <wmk> then you see what object you have and what fieldnames you can use
640: [09:28:19] <jarrodszs> thank you wmk
641: [09:28:29] <wmk> for giving a detailed answer i need the paste of the Employee object (db definition at top)
642: [09:30:22] <jarrodszs> works great wmk the problem is it seems, the column I want to display is not in the debug list
643: [09:30:36] <jarrodszs> would I need to do something to get a certain column from $Employees?
644: [09:30:42] <jarrodszs> i assumed all db columns would be available
645: [09:31:02] <wmk> they are
646: [09:31:11] <wmk> look at the employee dataobject
647: [09:31:22] <wmk> is it a subclass of DataObject?
648: [09:31:31] <wmk> has it first_name or FirstName defined in db?
649: [09:31:42] <wmk> has it a getter method getFirstName() or FirstName() ?
650: [09:32:04] <jarrodszs> its a DataList
651: [09:32:17] <wmk> Employees is a DataList, yes
652: [09:32:23] <jarrodszs> it has first_name and last_name defined in db, but other columns are missing
653: [09:32:25] <wmk> which contains some DataObjects
654: [09:32:42] <wmk> that DataObjects have a class (php), where stuff is defined
655: [09:33:03] <wmk> kinglozzer, any problems with underscore in $db? e.g. first_name ?
656: [09:33:05] <jarrodszs> okay i see, so i have to define the columns I want there
657: [09:33:15] <jarrodszs> where would those "models" be normally placed inside SS? im used to laravel
658: [09:33:17] <wmk> it doesn't have that columns yet?
659: [09:33:32] <kinglozzer> wmk: Hmm not that I know of
660: [09:33:52] <wmk> well jarrodszs, columns are created by php. you have to create subclasses of DataObjects where you define the columns and relations
661: [09:33:56] <wmk> see ORM in docs
662: [09:34:01] <jarrodszs> i assume not but i cannot find the file where the employee is defined the "employee model" in laravel its inside app/models/employees.php
663: [09:34:28] <wmk> jarrodszs, can you see where $Employees is defined?
664: [09:34:47] <jarrodszs> inside my controller wmk like so $Employees = Employee::get()
665: [09:34:52] <wmk> it's either a relation of the current page (has_many) or a getter, like getEmployees().
666: [09:34:54] <wmk> ok.
667: [09:35:03] <wmk> so you have to look for an Employee class
668: [09:35:05] <jarrodszs> so my assumption would be I would get all columns inside the $Employees object
669: [09:35:19] <wmk> which is somewhere in <module>/code/employee.php
670: [09:35:21] <jarrodszs> ah right, logic, found it
671: [09:35:35] <wmk> if you use a decent IDE you can search for a classname
672: [09:35:41] <wmk> e.g. phpstorm supports this
673: [09:35:49] <wmk> now i don't care where the file is located...
674: [09:35:59] <jarrodszs> shame 'Birthdate' => 'Date', is specified although not available in the datalist :(
675: [09:35:59] <wmk> ss cares that it's inside <module>/code/
676: [09:36:09] <jarrodszs> wmk yes correct phpstorm to the help hehe
677: [09:36:28] <wmk> windows: ctrl-n -> search for class
678: [09:36:41] <wmk> ctrl-shift-n -> search for filename (e.g. template)
679: [09:37:03] <wmk> jarrodszs, https://www.jetbrains.com/phpstorm/documentation/PhpStorm_ReferenceCard.pdf
680: [09:37:08] <jarrodszs> perhaps there are more of them class Employee extends DataObject
681: [09:37:17] <jarrodszs> thanks reading that, sorry for the real n00b here ;p
682: [09:37:17] <wmk> hmm, not
683: [09:38:13] * travis-ci has joined #silverstripe
684: [09:38:14] <travis-ci> srizzling/silverstripe-framework#5 (revert-4381-patch-2 - 5c2f13a : Sriram Venkatesh): The build has errored.
685: [09:38:14] <travis-ci> Change view : https://github.com/srizzling/silverstripe-framework/compare/6c6c0cc6305c^...5c2f13a5de29
686: [09:38:14] <travis-ci> Build details : https://travis-ci.org/srizzling/silverstripe-framework/builds/70033913
687: [09:38:14] * travis-ci has left #silverstripe
688: [09:39:16] <wmk> jarrodszs, also go through the lessons
689: [09:40:02] <jarrodszs> problem is im on tight schedule and only have to add a few small features but things like this bogs me down, in next weeks i have more time, say that to the boss ;[ just stupid decision but wel ;s
690: [09:40:13] <jarrodszs> the model found is the only one for Employee
691: [09:40:17] <jarrodszs> and Birthday is defined there
692: [09:40:22] * r_hector has joined #silverstripe
693: [09:40:26] <jarrodszs> how could it not be available in my datalist then ? anywhere else to look
694: [09:40:36] <wmk> the datalist doesn't contain it
695: [09:40:55] <wmk> but the datalist contains the dataobjects (Employee), which should have an individual $Birthday set
696: [09:41:22] <marvanni> Anyone using MAMP?
697: [09:41:58] <jarrodszs> ah seems the column is NULL
698: [09:42:03] <jarrodszs> then not listed which seems logical
699: [09:42:12] * Tanger quit (Quit: sleep())
700: [09:43:03] <jarrodszs> is there a way to check if BirthDay is defined as column, well is not null in SS?
701: [09:43:06] <jarrodszs> that would fix the problem
702: [09:43:53] <wmk> it is defined in your code
703: [09:44:04] <wmk> you want to only show it if it has a value?
704: [09:44:08] <wmk> in your template?
705: [09:44:42] <jarrodszs> My goal is to display all employees with Birthday within the next month actually
706: [09:45:02] <wmk> ok.
707: [09:45:02] <jarrodszs> the employees datalist should only contain those and then in my view I just look the correct recordset
708: [09:45:34] <wmk> so you have the code piece where Employees::get(); is defined?
709: [09:45:59] <jarrodszs> i already have the code to calc the month let me post my code so far
710: [09:46:03] <wmk> basically it's just Employee::get()->filter(array(/* your filters here*/);
711: [09:46:24] <jarrodszs> something like this https://gist.github.com/anonymous/089010f80faf699e5482
712: [09:46:38] <jarrodszs> only the SS filtering is a bit problematic im reading the docs for that now
713: [09:46:47] * veb has joined #silverstripe
714: [09:46:49] <wmk> it's a bit hard the first time, yes
715: [09:49:04] <wmk> ->filter(['BirthDate:GreaterThan' => $thisMonth, 'Birthdate:SmallerThan' => $nextMonth)
716: [09:49:25] <wmk> ah, LessThan
717: [09:49:29] <wmk> http://docs.silverstripe.org/en/3.1/developer_guides/model/searchfilters/
718: [09:49:52] * UncleCheese has joined #silverstripe
719: [09:49:55] <jarrodszs> thank you wmk i figured it out works fine now
720: [09:50:21] <wmk> be careful, GreaterThanOrEqual if you have the first of month as $thisMonth
721: [09:50:34] <wmk> othwise all folks with birthday on 1st of july are not listed
722: [09:50:46] <wmk> http://api.silverstripe.org/master/class-SearchFilter.html <- available filters
723: [09:51:24] <jarrodszs> good one i missed that
724: [09:53:13] <jarrodszs> would there also be a way to prevent a ?flush=1 on every reload?
725: [09:53:20] <jarrodszs> it seems without my code changes are not loaded
726: [09:53:29] <Pycptrk> [10:22] <wmk> Pycptrk, "every big company has big masses of code which is nearly unmaintainable. Cause the companies didn't manage to motivate the employees, to improve old and bad code step by step. Instead a culture of pressure to make new innovations"...
727: [09:53:31] <Pycptrk> interesting
728: [09:53:53] <Pycptrk> Not really the case here though wmk - it's more a case of 'we want this thing yesterday' rather than 'please innovate'
729: [09:54:06] <wmk> jarrodszs, well, disable caching on dev
730: [09:54:08] <wmk> or goto dev mode
731: [09:54:43] <wmk> well, Pycptrk, writing docs / refactoring in your (free) time should be a good thing for your boss
732: [09:55:00] <wmk> free like "no important stuff to do else"
733: [09:55:21] <jarrodszs> ah right found it SS_Cache::set_cache_lifetime('default', -1, 100); inside mysite/config
734: [09:55:24] <wmk> same like writing unit tests for existing code
735: [09:55:36] <wmk> jarrodszs, that's fine for dev machines ;)
736: [09:55:54] <wmk> that's also what dev/test/live mode is for
737: [09:56:28] <wmk> jarrodszs, http://docs.silverstripe.org/en/3.1/developer_guides/debugging/environment_types/
738: [09:57:10] <jarrodszs> wmk my query does run ok but results where bad, i tried this now https://gist.github.com/anonymous/ac49d0823d2267ab866b what am i missing there? everything greater than today should be ok
739: [09:59:16] <Pycptrk> wmk: or set up a proper development environment.
740: [09:59:19] <wmk> results were bad..?
741: [09:59:26] <Pycptrk> Just live edit the live environment.
742: [09:59:35] <Pycptrk> No source control beyond CTRL+Z
743: [09:59:48] * Pycptrk sighs
744: [10:05:34] * guci0 has joined #silverstripe
745: [10:06:48] <guci0> Hi all – fast question is possible to check via controller or template is Page is showing by the preview window inside CMS?
746: [10:06:57] <jarrodszs> its a wonderfull framework SS although its getting used to ;p
747: [10:07:13] <guci0> I need turn off music <audio> for Admin :)
748: [10:07:15] <jarrodszs> would there also be something like TextField::create with an option to make that field required?
749: [10:07:23] <jarrodszs> i cannot find any references to documentation on that
750: [10:07:45] * cloph_away is now known as cloph
751: [10:07:56] <swaiba> jarrodszs - what you wnat is to create and use a validator
752: [10:08:09] <jarrodszs> ah found this https://docs.silverstripe.org/en/4.0/developer_guides/forms/validation/
753: [10:08:15] <jarrodszs> thats the way to go then i assume
754: [10:08:57] <Copperis> hi guci0, the preview iframe appends "?stage=Stage" to the url
755: [10:09:04] <Copperis> could check for it
756: [10:09:19] <Copperis> i.e. the GET variable
757: [10:10:00] <wmk> guci0, check http referrer?
758: [10:10:06] <wmk> check logged in user?
759: [10:11:28] <swaiba> jarrodszs yep - one tip is that assuming this is ModelAdmin being used... might need both getCMSValidator and getValidator to return the validaotr
760: [10:11:48] <jarrodszs> my idea is to set an required html5 tag for now,
761: [10:11:59] <swaiba> this was needed in 2.4 for the difference between inline / popup forms
762: [10:11:59] <jarrodszs> it doesent have to be rock solid and in on tight schedule
763: [10:12:01] <guci0> looged user will disturb cache of staticpublisher
764: [10:12:12] <jarrodszs> i have somethig like TextField::create('RowPosition', 'Functie'),
765: [10:12:12] <jarrodszs> though
766: [10:12:18] <guci0> get is good idea $stage
767: [10:13:02] <wmk> guci0, anything will disturb cache of staticpublisher...
768: [10:13:24] <wmk> i'd check http referrer AND logged user AND stage (though it'll play sound in live mode)
769: [10:13:44] <wmk> so maybe just referrer and logged in user (with editor / admin rights)
770: [10:14:03] <jarrodszs> would there be a way to get a required inside the input field with TextField::create('RowPosition', 'Row'), somehow?
771: [10:15:05] <guci0> so JS
772: [10:15:29] <wmk> jarrodszs, http://api.silverstripe.org/3.1/class-FormField.html#_setAttribute
773: [10:15:42] <guci0> so maybe I can check – is page from cache?
774: [10:15:56] <wmk> guci0, well, maybe (i don't know) you can add some js to check if it's in the iframe for preview
775: [10:18:29] <jarrodszs> thank you wmk
776: [10:18:52] <Pycptrk> wmk: that was a really interesting article, thanks :) (although it was hard to read from google translate, the message got through enough)
777: [10:18:53] <jarrodszs> but how would i apply those with a TextField::create('RowPosition', 'Functie')? i found that page already but no examples
778: [10:19:19] <Copperis> guci0, you can check for referrer header with js
779: [10:20:10] <wmk> TextField::create('Foo', 'Bar')->setAttribute('data-foo', 'baz);
780: [10:23:10] <jarrodszs> wmk but how to make it required then?
781: [10:23:21] <jarrodszs> with setAttribute name field, required ?
782: [10:23:21] <wmk> html attribute?
783: [10:23:30] <jarrodszs> or required , true
784: [10:23:48] <kinglozzer> jarrodszs: ->setAttribute('required', true);
785: [10:24:02] <kinglozzer> Or I think you can just do ->setRequired(true)
786: [10:24:15] <kinglozzer> But a RequiredFields validator should take care of that
787: [10:24:58] <wmk> i did something like http://sspaste.com/paste/show/559cfa719fc18 jarrodszs
788: [10:25:23] <wmk> of course you can add the * with css also...
789: [10:25:25] <jarrodszs> i see wmk where would you place those lines? in the controllre itself
790: [10:25:32] <jarrodszs> before building the form i assume
791: [10:25:49] <jarrodszs> the setRequired(true) seems to fail though
792: [10:25:51] * Colin[pi] quit (Ping timeout: 244 seconds)
793: [10:25:58] <wmk> well, you can daisy chain it where you generate the formfield
794: [10:26:25] <wmk> TextField::create('RowPosition', 'Row *')->setAttribute('required', 'required');
795: [10:30:09] <jarrodszs> works great now thanks wmk
796: [10:30:16] <jarrodszs> you are my hero today ;)
797: [10:31:19] <wmk> fine ;)
798: [10:31:48] <kinglozzer> jarrodszs: Remember that non HTML5 browsers can get around that, so check server-side if it's essential data :)
799: [10:31:56] * wmk is searching for that old stiltskin cd with the "we can be heroes" cover
800: [10:32:40] <wmk> wow, 90s???
801: [10:37:25] <jarrodszs> kinglozzer yes thans for mentioning its not that critique for this moment and form is behind login
802: [10:38:08] <ss23> What is the current best way people only have a single DO of a type
803: [10:38:09] <guci0> Copperis: works :) JS and stage –> removeAttr("autoplay");
804: [10:38:17] <guci0> shortly
805: [10:38:18] <ss23> like, only one "FooBar" should exist in a given SS site
806: [10:40:30] <veb> who's on twitter -- let's follow each other
807: [10:40:34] <veb> gimmie your handles
808: [10:40:50] <ss23> Looking at a SilverStripe site and wondering if it's exploitable
809: [10:41:23] <ss23> Code looks like: if (Foo::get()->byID($_GET['input'])) { Bar::get()->where($_GET['foo']); }
810: [10:41:28] <ss23> um
811: [10:41:29] <ss23> well
812: [10:41:34] <ss23> Code looks like: if (Foo::get()->byID($_GET['input'])) { Bar::get()->where($_GET['input']); }
813: [10:41:37] <ss23> Like that
814: [10:41:41] <ss23> Obviously, second line is exploitable, if you can get to it
815: [10:41:54] <ss23> Anyone got ideas of how to pop it?
816: [10:42:10] <ss23> I'm wondering if you can put in something that SilverStripe quotes that goes to MySQL that gets casted to an int which is valid
817: [10:42:26] <ss23> Ideas?
818: [10:43:02] * jarrodszs quit (Quit: My Mac has gone to sleep. ZZZzzz…)
819: [10:44:02] <Copperis> guci0, great, but like wmk said, if you click the "Published" button in the cms, it will have "?stage=Live" in the iframe url
820: [10:44:10] <ss23> :O
821: [10:44:12] <ss23> Looks like it's casted
822: [10:44:37] <guci0> Copperis: checking only is exists stage :)
823: [10:44:42] <guci0> no value
824: [10:45:14] <guci0> hmmm...
825: [10:46:38] * stnvh has joined #silverstripe
826: [10:46:52] <Copperis> oh, that would work then I assume
827: [10:47:42] <guci0> Copperis: works fine
828: [10:48:57] <guci0> Have to check http://m3fitness.pl
829: [10:51:42] <Copperis> yeah, works alright. Though I'd put the volume controls in a more noticeable place or remove the music altogether. Not everyone likes surprise music while their browsing
830: [10:51:54] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
831: [10:51:58] <Copperis> *they're
832: [10:53:14] <veb> nobody on twiter? :(
833: [10:54:21] <kinglozzer> ss23: "1 <sql injection here>"?
834: [10:54:41] <kinglozzer> DataList::byID() does (int)$id, so any string that'll cast to 1 basically?
835: [10:54:47] <kinglozzer> I think that's all you could do
836: [10:56:02] <kinglozzer> veb: Guess mine
837: [10:56:03] <kinglozzer> :D
838: [10:56:44] <guci0> Copperis: I know, I bet that you quickly found those :)
839: [10:56:50] <kinglozzer> ss23: Oh wait, you can just do any string with an int as the first character
840: [10:56:59] <veb> kinglozzer: I followed you!
841: [10:57:02] <veb> is your name Loz?
842: [10:57:10] <kinglozzer> ss23: So you keep guessing numbers until BAM, you're in
843: [10:57:13] <kinglozzer> veb: Yep :)
844: [10:57:20] <veb> kinglozzer: follow me back :D
845: [10:57:27] <Pycptrk> pfft, sif.
846: [10:57:28] <Pycptrk> NO
847: [10:57:31] <Pycptrk> NO FOLLOWS FOR YOU
848: [10:57:41] <veb> :)
849: [10:57:46] <veb> kinglozzer: yayayyaa
850: [10:57:47] * Pycptrk laughs in the face of those who beg for friends.
851: [10:57:49] <veb> anyone else?
852: [10:57:55] <veb> Pycptrk: nope, I wanna news
853: [10:57:59] <Pycptrk> the irony is amaze.
854: [10:58:00] <veb> I'm doing an experiment
855: [10:58:05] <Pycptrk> experiment?
856: [10:58:07] <Pycptrk> do go on.
857: [10:58:08] <veb> yeah
858: [10:58:10] <veb> bmotion!
859: [10:58:20] <veb> https://github.com/jamesoff/bmotion
860: [10:58:22] <kinglozzer> Man these fake Twitter profiles are good these days
861: [10:58:37] <kinglozzer> Tweet any shit including "weekend" atm and it seems to be fav'd by bots
862: [10:58:40] <kinglozzer> Always female
863: [10:58:43] <veb> kinglozzer: dude my profile aint fake :(
864: [10:58:43] <Pycptrk> haha, so we just got an (internal) magazine come around work.
865: [10:58:54] <Pycptrk> good ol' marketing department - didn't catch this cockup
866: [10:59:03] <Pycptrk> http://iforce.co.nz/i/kyoge1j4.xyi.jpg
867: [10:59:11] <kinglozzer> case in point: https://twitter.com/kinglozzer/status/617740627971805184
868: [10:59:35] <kinglozzer> Pycptrk: idgi
869: [10:59:45] <kinglozzer> shirt hanging out?
870: [10:59:53] * hamror follows kinglozzer
871: [10:59:54] <Pycptrk> lol, srsly?
872: [10:59:58] <kinglozzer> vaguely resembling penis?
873: [10:59:59] <kinglozzer> idk
874: [11:00:00] <Pycptrk> zoom out a bit.
875: [11:00:01] <Pycptrk> yeh
876: [11:00:01] <hamror> you better be hilarious
877: [11:00:12] <kinglozzer> Hahaha, yeah, it does look better when zoomed out :P
878: [11:00:30] <kinglozzer> hamror: I'm not
879: [11:00:31] <kinglozzer> :P
880: [11:02:07] <Pycptrk> so molly eh
881: [11:02:14] <Pycptrk> you tapp'n that yet kinglozzer ?
882: [11:02:34] <Pycptrk> She's into your self pity. I think it's a trap. Obviously a closet dominatrix.
883: [11:02:58] <Pycptrk> lulz
884: [11:03:00] <kinglozzer> Pycptrk: Eh? It's another fake :P
885: [11:03:11] <Pycptrk> I know, thus - jokes.
886: [11:03:27] <veb> kinglozzer: is that your car on twitter
887: [11:03:31] <Pycptrk> robotic dominatriz
888: [11:03:34] <kinglozzer> veb: Yeah
889: [11:03:40] <veb> cool man
890: [11:03:43] <veb> I like it
891: [11:04:02] * jarr0dsz has joined #silverstripe
892: [11:04:03] <kinglozzer> Thanks! I'm selling it soon for a BMW M5 ;)
893: [11:04:18] <kinglozzer> Because I don't do enough damage to the environment already
894: [11:04:23] <kinglozzer> :P
895: [11:07:15] <ss23> yeah kinglozzer, thanks, I got it too :D
896: [11:09:42] <ss23> found another place with exploitable sqli though
897: [11:09:43] <ss23> o/
898: [11:12:42] * guci0_ has joined #silverstripe
899: [11:13:08] * ss-helper quit (Remote host closed the connection)
900: [11:13:21] * ss-helper has joined #silverstripe
901: [11:13:33] * guci0 quit (Ping timeout: 246 seconds)
902: [11:20:25] <jarr0dsz> SS is wonderful so far :)
903: [11:20:43] <jarr0dsz> what i was wondering and could not find is how to do migrations, is this possible out of the box?
904: [11:21:00] <swaiba> jarr0dsz :)
905: [11:21:09] <jarr0dsz> need to create some extra tables and was wondering how I would be able to add them as a migration or to my database on /dev/build time
906: [11:21:50] <wmk> jarr0dsz, did you see the ORM lession?
907: [11:21:54] <swaiba> well I've discussed this on the forum (looking for link now) and with hamish SS CTO and have my osolution
908: [11:22:03] <jarr0dsz> havent seen all the lessons yet , no wmk
909: [11:22:09] <wmk> basically: create a new DataObject subclass with $db and relations, run dev/build
910: [11:22:20] <swaiba> hamish said that it should all be possible in requireDefaultRecords, but I disagree
911: [11:22:21] <wmk> afaik lession 8 and 9
912: [11:22:56] <wmk> migrations: what kind of migrations?
913: [11:23:00] <wmk> something else -> silverstripe ?
914: [11:23:20] <wmk> or when renaming a field, change a has_many to a many_many ...?
915: [11:23:39] <wmk> afaik Blog module has some migrating code, that is run on dev/build/
916: [11:23:42] <swaiba> jarr0dsz - this is the tread about migrations on core mailing listhttp://groups.google.com/group/silverstripe-dev/t/f66fb6d3ea90a0d?utm_source=digest&utm_medium=email
917: [11:23:55] <kinglozzer> Yeah someone wrote a module too
918: [11:24:11] <swaiba> the solution we have internally works just like I described on the thread
919: [11:25:22] <swaiba> https://groups.google.com/forum/#!searchin/silverstripe-dev/migtraion|sort:date/silverstripe-dev/niQhqfK-h44/kz98Mcefg_QJ
920: [11:25:30] <swaiba> another thread (this one with more discussion)
921: [11:25:58] <swaiba> it depends how complex your system is, requireDefault records hooks on to dev/build so that could be enough
922: [11:26:33] <swaiba> personally I have 100+ sites all using different bits of the same code so maybe my solution is too complex for most
923: [11:27:13] <swaiba> and regarding wmk comment, I'm talking about ss -> ss, but with datamodel and logic changes inbetween
924: [11:28:10] <ss-helper> Display the content of parent page in SilverStripe - http://stackoverflow.com/questions/31291207/display-the-content-of-parent-page-in-silverstripe
925: [11:33:49] * jarr0dsz quit (Quit: My Mac has gone to sleep. ZZZzzz…)
926: [11:36:24] * lerni quit (Remote host closed the connection)
927: [11:38:49] * lerni_ has joined #silverstripe
928: [11:44:47] * jarr0dsz has joined #silverstripe
929: [11:45:36] * travis-ci has joined #silverstripe
930: [11:45:37] <travis-ci> dhensby/silverstripe-framework#373 (3 - 7434ced : Damian Mooyman): The build passed.
931: [11:45:38] <travis-ci> Change view : https://github.com/dhensby/silverstripe-framework/compare/78a3f703f299...7434ced82cf3
932: [11:45:38] <travis-ci> Build details : https://travis-ci.org/dhensby/silverstripe-framework/builds/70046350
933: [11:45:38] * travis-ci has left #silverstripe
934: [12:09:19] <Pycptrk> :< bored.
935: [12:09:21] <Pycptrk> damn docs.
936: [12:09:23] * Pycptrk quit ()
937: [12:15:02] * Kingy is now known as Kingy[a]
938: [12:16:07] * UndefinedOffset has joined #silverstripe
939: [12:16:20] * bemusedrat quit (Quit: Leaving)
940: [12:20:27] * guci0_ is now known as guci0
941: [12:32:50] * jarr0dsz quit (Quit: Textual IRC Client: www.textualapp.com)
942: [12:33:15] <wmk> neat: http://blog.jetbrains.com/phpstorm/2015/05/postfix-code-completion-for-php-in-phpstorm-9-eap/
943: [12:40:12] * DimiStripe_alt has joined #silverstripe
944: [12:42:03] * DimiStripe quit (Ping timeout: 256 seconds)
945: [12:46:41] * veb quit (Quit: veb-irc: &)
946: [12:51:01] * veb has joined #silverstripe
947: [12:51:07] * veb quit (Client Quit)
948: [12:53:45] * adrexia_ has joined #silverstripe
949: [12:55:20] * adrexia quit (Ping timeout: 272 seconds)
950: [13:16:06] * Arunas has joined #silverstripe
951: [13:21:52] <Copperis> Arunas, ( ͡° ͜ʖ ͡°)
952: [13:22:43] <Arunas> hello, Cooperis :)
953: [13:22:47] <Copperis> hey
954: [13:33:51] * catcher has joined #silverstripe
955: [13:35:19] * r_hector quit (Remote host closed the connection)
956: [13:37:53] * benjhocking quit (Read error: Connection reset by peer)
957: [13:41:08] * cupcake has joined #silverstripe
958: [13:41:37] <cupcake> somebody enlighten me.... has anyone ever managed to get authorization code from instagram through php?>
959: [13:42:38] <kinglozzer> cupcake: What do you mean? Do you just want to pull through a feed of images, or some fancy oauth login stuff?
960: [13:43:12] <ss-helper> SilverStripe frontend Ajax blog post loading with 'read more' button - http://stackoverflow.com/questions/31294370/silverstripe-frontend-ajax-blog-post-loading-with-read-more-button
961: [13:43:18] <cupcake> all i want is to create a class which is able to get a couple of images
962: [13:43:22] <cupcake> from instagram
963: [13:43:27] <cupcake> to be used in a widget
964: [13:43:35] <kinglozzer> cupcake: I've done that before, I used this library: https://github.com/cosenary/Instagram-PHP-API
965: [13:44:25] <cupcake> but then what access token did you use?
966: [13:44:31] <kinglozzer> The difficult part is finding a user's ID... you have to use the instagram API to do a search for them to find it (you can then just store it)
967: [13:44:43] * huberd has joined #silverstripe
968: [13:45:10] <kinglozzer> cupcake: I dunno, the docs say "YOUR_APP_KEY"
969: [13:45:14] <kinglozzer> Is that any help? :P
970: [13:45:29] <kinglozzer> Or in my config it's called "client_id"
971: [13:45:34] <cupcake> i have client id
972: [13:45:38] <cupcake> client secret
973: [13:45:48] <kinglozzer> client_id sounds like the correct one
974: [13:46:08] <kinglozzer> That should be all you need for accessing public stuff like feeds
975: [13:46:21] <cupcake> ive tried this one
976: [13:46:29] <cupcake> and it complained because it needs an access token
977: [13:46:44] <cupcake> how did you implement it?
978: [13:46:48] <cupcake> maybe i can have a look?
979: [13:46:54] * ss31noob has joined #silverstripe
980: [13:47:07] * travis-ci has joined #silverstripe
981: [13:47:08] <travis-ci> silverstripe/silverstripe-framework#5298 (3.1 - 0012bc6 : Loz Calver): The build passed.
982: [13:47:08] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/5fa50039b9d1...0012bc68c412
983: [13:47:08] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/70062414
984: [13:47:08] * travis-ci has left #silverstripe
985: [13:47:17] <kinglozzer> cupcake: $instagram = new Instagram($config->get('Instagram', 'client_id')); $response = $instagram->getUserMedia($config->get('Instagram', 'user_id'), 1);
986: [13:47:19] <kinglozzer> That's all I did
987: [13:47:36] <cupcake> and it works?
988: [13:47:38] <kinglozzer> Yup
989: [13:47:41] <cupcake> if it works
990: [13:47:42] <ss31noob> hi guys.. how can i remove row in a many_many table without doing an SQLQuery, and just do it in a silverstripe way of removing data?
991: [13:47:51] <cupcake> ill grab a coffee haha
992: [13:48:14] <kinglozzer> cupcake: If you're using that library, pass the client id as a single argument - don't put it in an array or anything
993: [13:48:57] <kinglozzer> ss31noob: $obj->ManyManyRelation()->removeByID($id)
994: [13:51:56] <cupcake> what is the user id?
995: [13:51:59] <cupcake> client id?
996: [13:53:27] <cupcake> kinglozzer
997: [13:53:54] <Copperis> cupcake, user id is not client id. It can be looked up using a third party tho http://jelled.com/instagram/lookup-user-id
998: [13:55:31] <kinglozzer> Damnit why didn't I know about that site when I was wrestling with Instagram? :(
999: [13:57:00] <cupcake> yes
1000: [13:57:05] <cupcake> im askign the same question
1001: [13:57:10] <cupcake> bleh
1002: [13:59:44] * wmk quit (Ping timeout: 252 seconds)
1003: [14:19:02] <ss31noob> kinglozzer, doesnt seem to work. this is what i have.. http://sspaste.com/paste/show/559d3144e0634
1004: [14:20:53] <ss31noob> i wanted that if i delete the ProductList.. it will remove all data in the ProductList_ProductItems table that has the ID of that ProductList that was deleted
1005: [14:21:04] <kinglozzer> ss31noob: $list = $this->getManyManyComponents('ProductItems'); foreach($list as $item) { $list->remove($item); }
1006: [14:21:29] <ss31noob> in the code i pasted, what is happening there is it is unpublishing all the Review because of the delete() method
1007: [14:22:39] <kinglozzer> ss31noob: What I just pasted will remove the entry in the join table, but won't delete the "Review" objects themselves
1008: [14:22:55] <kinglozzer> If you want to do that, it should just be $list->remove($item); $item->delete();
1009: [14:23:06] <kinglozzer> If they're pages you might need to unpublish first or something
1010: [14:23:36] <ss31noob> they are pages but i dont want to unpublish them.. i just want to remove them in the many_many table
1011: [14:23:44] <ss31noob> so it wont get populated so much
1012: [14:23:53] <kinglozzer> ss31noob: Okay, just that first bit I pasted should do it
1013: [14:23:59] <kinglozzer> $list = $this->getManyManyComponents('ProductItems'); foreach($list as $item) { $list->remove($item); }
1014: [14:24:17] <kinglozzer> Oh, wait
1015: [14:24:26] <kinglozzer> $this->getManyManyComponents('ProductItems')->removeAll();
1016: [14:24:29] <kinglozzer> Even easier :)
1017: [14:28:43] * svandragt has joined #silverstripe
1018: [14:29:54] <ss31noob> kinglozzer, great! seems to work. thanks so much!
1019: [14:30:04] <svandragt> Hi, I enabled full text search on my dev site, but any page other than the homepage and /dev/build no longer loads due to "client denied by server configuration" to the assets folders (which is owned by www-data). looking for pointers, any ideas?
1020: [14:33:20] * marvanni quit (Ping timeout: 265 seconds)
1021: [14:37:21] <kinglozzer> svandragt: group?
1022: [14:43:12] * guci0 quit (Ping timeout: 246 seconds)
1023: [14:46:24] * darjus01 has joined #silverstripe
1024: [14:48:33] <svandragt> kinglozzer: group is ok hm
1025: [14:50:44] * guci0 has joined #silverstripe
1026: [14:52:19] <Mike123> wmk , or anyone else, i need to use forum for my proj. i wonder if SS forum module is ok ? or ot's bugy ? any tips ?
1027: [14:53:48] * Arunas quit (Read error: Connection reset by peer)
1028: [14:56:06] <swaiba> Mike123 - it must work because it's live :)
1029: [14:56:27] <swaiba> however it's one of those things where you use the SS version becuase you want control and it works int eh same CMS
1030: [14:56:43] <swaiba> or you want to take the best of breed instead and live with it being external
1031: [14:57:02] <Mike123> i think SS will do :)
1032: [15:00:42] * Mike123 quit (Quit: Page closed)
1033: [15:01:26] <cupcake> thanks kinglozzer ure a saviour
1034: [15:07:41] * muskie9 has joined #silverstripe
1035: [15:11:54] * ss31noob quit (Ping timeout: 246 seconds)
1036: [15:21:28] * marvanni has joined #silverstripe
1037: [15:21:53] * muskie9_ has joined #silverstripe
1038: [15:22:02] * muskie9 quit (Ping timeout: 264 seconds)
1039: [15:22:37] * muskie9_ is now known as muskie9
1040: [15:24:42] * travis-ci has joined #silverstripe
1041: [15:24:43] <travis-ci> silverstripe/silverstripe-framework#5301 (3.2 - f32a240 : Daniel Hensby): The build passed.
1042: [15:24:43] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/6ab151e8fa50...f32a24081b41
1043: [15:24:43] <travis-ci> Build details : https://travis-ci.org/silverstripe/silverstripe-framework/builds/70073255
1044: [15:24:43] * travis-ci has left #silverstripe
1045: [15:33:54] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1046: [15:38:10] <swaiba> Hey guys, got a question relating to the earlier migrtaion one
1047: [15:38:22] <swaiba> anyone got an idea how to handle changed enums?
1048: [15:38:45] <swaiba> they just get replaced with blank if the value isn't there - bit annoying
1049: [15:47:36] * cupcake quit (Ping timeout: 246 seconds)
1050: [15:57:08] * ss-helper quit (Ping timeout: 256 seconds)
1051: [16:10:03] * lerni_ quit (Remote host closed the connection)
1052: [16:10:56] * ss-helper has joined #silverstripe
1053: [16:21:39] * swaiba quit (Remote host closed the connection)
1054: [16:25:47] * lerni_ has joined #silverstripe
1055: [16:34:27] * kinglozzer quit ()
1056: [16:37:45] * cloph is now known as cloph_away
1057: [16:41:13] * lerni_ quit (Remote host closed the connection)
1058: [16:44:21] * adrexia has joined #silverstripe
1059: [16:48:24] * adrexia_ quit (Ping timeout: 272 seconds)
1060: [16:53:16] <darjus01> Is any posibility to add languages dropdown in modeladmin like in pages sitetree, then using translatable module?
1061: [17:16:47] <Copperis> sure it possible, "fluent" module does it
1062: [17:17:34] <Copperis> or not, missed the modeladmin part
1063: [17:19:06] * cloph_away is now known as cloph
1064: [17:38:52] * Copperis quit (Quit: Leaving)
1065: [17:51:50] * GioVdK quit (Ping timeout: 252 seconds)
1066: [17:54:37] * zlinux has joined #silverstripe
1067: [18:00:57] * huberd quit (Ping timeout: 246 seconds)
1068: [18:04:29] * muskie9 quit (Quit: My Mac has gone to sleep. ZZZzzz…)
1069: [18:23:12] * muskie9 has joined #silverstripe
1070: [19:09:11] * veb has joined #silverstripe
1071: [19:13:36] * veb_ has joined #silverstripe
1072: [19:14:42] * veb quit (Read error: Connection reset by peer)
1073: [19:14:51] * veb_ is now known as veb
1074: [19:31:39] * gelignite has joined #silverstripe
1075: [19:35:05] * PenguinMan98 has joined #silverstripe
1076: [19:35:51] <PenguinMan98> Todays project in silverstripe: Give all page uploadable images. If a page does not have an image uploaded, traverse up the site tree until you find a page that does have one and use that.
1077: [19:36:09] <PenguinMan98> I have a system set up to upload images and display them on a template already.
1078: [19:36:31] <PenguinMan98> Now I just need that bit about checking for existence and using parent page images instead
1079: [19:36:50] <PenguinMan98> ideas?
1080: [19:38:36] <SphereSilver> if($page->image) { return $this->image; } else { return $this->parent->image; }
1081: [19:38:57] <SphereSilver> Sorry, let me fix that
1082: [19:39:17] <SphereSilver> if($page->image) { return $this->image; } elseif($this->parent()) { return $this->parent()->image; }
1083: [19:39:35] <SphereSilver> Please ignore any errors, put this in a function and call the function recursively
1084: [19:40:22] <muskie9> SphereSilver $page->Image()
1085: [19:40:45] * veb quit (Quit: veb-irc: &)
1086: [19:40:58] <PenguinMan98> cool
1087: [19:41:00] <PenguinMan98> Thanks
1088: [19:42:57] <SphereSilver> http://sspaste.com/paste/show/559d7d3443d80
1089: [19:43:02] <SphereSilver> Roughly, this should work.
1090: [19:43:24] <SphereSilver> It recursively checks if img exists. You might want to use !$img->exists() though
1091: [19:43:28] <SphereSilver> in the if-statement
1092: [19:43:39] <SphereSilver> But again, that's a rough draft
1093: [19:44:58] <SphereSilver> muskie9: Yeah, it is/was a rough thought ;)
1094: [19:45:22] <SphereSilver> The recursive function I just posted should be better, but it's not perfect. And it assumes the availability of getImage() ;)
1095: [19:46:33] <SphereSilver> So it's far from perfect, but with some tweaking, it should work :)
1096: [19:48:51] * veb has joined #silverstripe
1097: [19:57:38] <PenguinMan98> hmm
1098: [19:58:20] <PenguinMan98> Since I called the property 'Photo' => 'Image' in the has_one, then all my photos are named by the variable $Photo
1099: [19:58:33] <PenguinMan98> so to determine if it exists, I ask if( $this->Photo)
1100: [19:58:43] <SphereSilver> Yeps
1101: [19:59:01] <PenguinMan98> But calling $this->getParent()->Photo always returns null even if the parent has one.
1102: [19:59:10] <SphereSilver> And if it doesn't exist, you ask the parent. If the parent says no, go up again by recursively calling the function.
1103: [19:59:32] <SphereSilver> Eventually, it will hit the top parent, and quit (that's the elseif, it checks if there's a parent at all)
1104: [19:59:54] <PenguinMan98> Yep yep.
1105: [20:00:18] <PenguinMan98> when I var dump the $this->getParent() it doesn't have a $Photo property
1106: [20:00:32] <PenguinMan98> I didn't really expect one
1107: [20:00:41] <SphereSilver> You probably just need to use $this->Parent()
1108: [20:00:47] <PenguinMan98> I'll try that instead
1109: [20:00:48] <PenguinMan98> thanks
1110: [20:01:13] <SphereSilver> I bolted the pasty together in 5 minutes or so. As I said, it's probably not perfect, just an example of how it could/should be done ;)
1111: [20:01:29] <SphereSilver> I think I even spend less time on it :P
1112: [20:03:09] <PenguinMan98> bah
1113: [20:03:17] <PenguinMan98> $page->Parent->Photo is still null
1114: [20:07:30] <PenguinMan98> ideas?
1115: [20:08:32] <PenguinMan98> oh crap
1116: [20:08:37] <PenguinMan98> the parent doesn't have an image
1117: [20:08:38] * cloph quit (Remote host closed the connection)
1118: [20:08:41] <PenguinMan98> well blow me down
1119: [20:09:00] * veb quit (Quit: veb-irc: &)
1120: [20:09:23] <PenguinMan98> I coulda sworn...
1121: [20:09:26] * antmas has joined #silverstripe
1122: [20:10:28] <antmas> morning all o/
1123: [20:10:37] <PenguinMan98> And now it's remembered that it does have one
1124: [20:10:41] * Stomach has joined #silverstripe
1125: [20:10:42] <PenguinMan98> so it was there
1126: [20:10:50] <antmas> anyone using phpstorm 9?
1127: [20:10:56] * ss-helper quit (Remote host closed the connection)
1128: [20:10:59] <PenguinMan98> 8.03
1129: [20:11:03] <muskie9> antmas just downloaded it today
1130: [20:11:12] * ss-helper has joined #silverstripe
1131: [20:11:16] <antmas> muskie9: does your current key work with it?
1132: [20:11:17] <muskie9> but I don't use all the features for it... yet
1133: [20:11:38] <muskie9> antmas yes, but my key included an upgrade through october of this year
1134: [20:12:07] <antmas> muskie9: ah ok, will try my work code and see if it works
1135: [20:12:26] <muskie9> feel like I just upgraded to 8 not too long ago
1136: [20:13:17] <PenguinMan98> huh
1137: [20:13:17] <antmas> mm same here
1138: [20:13:25] <PenguinMan98> calling $this->Photo returns null
1139: [20:13:34] <PenguinMan98> on a page that does have one
1140: [20:13:34] <antmas> still need to tweak my setup for debugging etc
1141: [20:13:43] <muskie9> PenguinMan98 $this->Photo or $this->Photo()
1142: [20:14:02] <PenguinMan98> without the braces
1143: [20:14:24] <muskie9> I think you need the braces since it's a relation... otherwise $this->PhotoID
1144: [20:14:52] <muskie9> Photo() gets the object, PhotoID gets the relation ID/Image ID
1145: [20:15:31] <muskie9> if no photo then PhotoID would be 0
1146: [20:15:31] * UndefinedOffset quit (Quit: Leaving.)
1147: [20:15:54] <PenguinMan98> hmmm
1148: [20:16:03] <PenguinMan98> now if($this->Photo()){ returns true on a page that does not haev one
1149: [20:16:30] <muskie9> $this->Photo()->exists()
1150: [20:16:35] <muskie9> or something like that
1151: [20:17:47] * antmas quit (Quit: Page closed)
1152: [20:18:05] <muskie9> so if($this->Photo()->exists()) { return $this->Photo(); }else{ get the parent and run recursively like before } type of thing
1153: [20:18:39] <Stomach> if ($this->Photo() && $this->Photo()->exists())
1154: [20:18:48] <Stomach> $this->Photo() might not return an object
1155: [20:19:00] * cloph_away has joined #silverstripe
1156: [20:19:04] * lerni_ has joined #silverstripe
1157: [20:19:29] <PenguinMan98> exists() doesn't exist
1158: [20:19:32] <PenguinMan98> but ->ID does
1159: [20:19:38] <PenguinMan98> and it's 0 if there is no image
1160: [20:19:56] <muskie9> http://api.silverstripe.org/3.1/class-DataObject.html#_exists
1161: [20:21:06] <PenguinMan98> huh
1162: [20:21:09] <muskie9> but ya, could check if the ID is 0
1163: [20:21:12] <PenguinMan98> I misspelled it
1164: [20:21:22] <PenguinMan98> so exists returns true or null
1165: [20:21:32] <PenguinMan98> Not exactly intuitive, but useable
1166: [20:23:03] <muskie9> used exist() once and went around for hours trying to figure out the issue, then realized I missed the second s 😲
1167: [20:24:29] <PenguinMan98> sweet
1168: [20:24:30] <PenguinMan98> it works
1169: [20:24:49] <PenguinMan98> would you like to see the finished code?
1170: [20:25:30] <SphereSilver> Would be nice. I'm curious what you came up with :)
1171: [20:25:46] <SphereSilver> just go to ss-paste.com and paste it as a solution :)
1172: [20:25:57] <SphereSilver> Not just for me personally ;)
1173: [20:26:18] <PenguinMan98> http://pastebin.com/cxU3JpLp
1174: [20:26:21] <SphereSilver> Exists returns true or null? That's odd.
1175: [20:26:30] <muskie9> should be boolean
1176: [20:26:32] <SphereSilver> I should look into that
1177: [20:27:08] <SphereSilver> Nicely done :) It's an improved version of my quick thought :)
1178: [20:27:28] <SphereSilver> You used the early-exit-method :D That's nice!
1179: [20:27:29] <PenguinMan98> http://screencast.com/t/Oujet3TE
1180: [20:28:05] <SphereSilver> Only one thing you need to adjust
1181: [20:28:06] <PenguinMan98> I did what now?
1182: [20:28:28] <SphereSilver> Ow, nevermind, you did that with the elseif already
1183: [20:28:36] <SphereSilver> You used the "Early Exit" method :)
1184: [20:28:45] <PenguinMan98> whatis?
1185: [20:29:08] <SphereSilver> In simple terms, it's saying "return $stuff" instead of assigning to a variable and at the end return ;)
1186: [20:29:16] <PenguinMan98> oh
1187: [20:29:24] <PenguinMan98> no point using extra variables
1188: [20:29:35] <PenguinMan98> Though many would argue that's micro-optimization
1189: [20:31:35] <SphereSilver> Pasty: http://sspaste.com/paste/show/559d889ea2b73
1190: [20:31:51] * antmas has joined #silverstripe
1191: [20:31:52] <SphereSilver> I agree, but it also saves overhead. And I'd rather return immediately.
1192: [20:32:11] <SphereSilver> For a small case, it's indeed micro optimizing.
1193: [20:32:25] <antmas> has anyone got xdebug working with phpstorm?
1194: [20:32:26] <SphereSilver> But for a big case, it can run into megabytes of stack for nothing.\
1195: [20:33:22] <antmas> or even zend?
1196: [20:33:30] <PenguinMan98> http://www.sspaste.com/paste/show/559d890573dbb
1197: [20:33:56] <PenguinMan98> I got xdebug working once
1198: [20:34:05] <PenguinMan98> Just once though
1199: [20:34:15] <SphereSilver> Only once?
1200: [20:34:24] <SphereSilver> It's not that hard. What OS and all?
1201: [20:34:29] <PenguinMan98> Heh, yeah. I don't find it as useful as other techniques
1202: [20:34:32] <antmas> I've never got it working
1203: [20:34:41] <PenguinMan98> For the overhead
1204: [20:34:46] <SphereSilver> Seriously? What? Debugging "Not that useful"?
1205: [20:34:58] <PenguinMan98> scaffolding. I have it down to an art
1206: [20:34:58] <antmas> "as other techniques"
1207: [20:35:03] <SphereSilver> That's like a bakery saying it's not useful to use whipped cream!
1208: [20:35:39] <antmas> SphereSilver: is there a process to get it working with ss projects? I'm dead keen to get it or something similar working
1209: [20:35:41] <PenguinMan98> SphereSilver: more like the bakery saying it's not useful to use the electric mixer instead of the wooden spoon but they do both work
1210: [20:36:00] <PenguinMan98> Especially if the mixer breaks a lot.
1211: [20:36:13] * helenclarko has joined #silverstripe
1212: [20:36:21] <antmas> I dunno
1213: [20:36:25] <helenclarko> o/
1214: [20:36:33] <SphereSilver> antmas, PenguinMan98, What IDE do you use?
1215: [20:36:39] <PenguinMan98> phpstorm 8.03
1216: [20:36:40] <antmas> SphereSilver: phpstorm
1217: [20:36:45] <antmas> win7
1218: [20:36:49] <PenguinMan98> win 7
1219: [20:37:03] <SphereSilver> PenguinMan98: "Win7" isn't an OS ;)
1220: [20:37:07] <SphereSilver> crap
1221: [20:37:13] <SphereSilver> Win7 is an OS, but not an IDE
1222: [20:37:21] * PenguinMan98 gives SphereSilver a dunce cap
1223: [20:37:24] <PenguinMan98> hehe
1224: [20:37:26] <antmas> I'd be interested in something that I can use that isn't just logs or f12 :P
1225: [20:37:41] <PenguinMan98> <PenguinMan98> phpstorm 8.03
1226: [20:37:48] <PenguinMan98> <PenguinMan98> win 7
1227: [20:37:57] <antmas> lets clarify
1228: [20:38:05] <antmas> we both have phpstorm, running on win7 :P
1229: [20:38:28] <SphereSilver> Vagrant or WAMP?
1230: [20:38:40] <SphereSilver> Or Docker, but that's similar to Vagrant
1231: [20:38:43] <PenguinMan98> XAMPP
1232: [20:38:55] <PenguinMan98> :p
1233: [20:39:07] <antmas> I remote to a LAMP stack
1234: [20:39:20] <SphereSilver> Ok, well, XAMPP is the x-platform version of WAMP, so that's not much different.
1235: [20:39:28] <PenguinMan98> I sometimes use a virtualbox when I need LAMP
1236: [20:39:31] <antmas> as in my project in phpstorm looks at a directory - which is on a LAMP :P
1237: [20:39:46] <SphereSilver> Hmmmm.... I could easily show you how to do it, but I need to think about how I write it down :|
1238: [20:40:01] <PenguinMan98> The docs are really quite adequate
1239: [20:40:08] <PenguinMan98> That's why I used to get it set up
1240: [20:40:21] <antmas> I read a while ago that xdebug has an issue with cURL and mod_rewrite, that still a thing?
1241: [20:40:25] <PenguinMan98> And I can't follow instructions for shit most days
1242: [20:41:09] <SphereSilver> Ok. This needs to be a blogpost I guess.
1243: [20:41:24] <SphereSilver> Because well... I can't write it in here, it's just too much instructions :P
1244: [20:41:38] <antmas> throw it in a paste :P
1245: [20:41:46] * stecman has joined #silverstripe
1246: [20:41:51] <antmas> blog post would be better though I suppose
1247: [20:43:35] <SphereSilver> Ok, I'll write a blog about debugging next week-"ish"
1248: [20:44:02] <SphereSilver> No promises, but I know how to setup XDebug on Windows, Vagrant, OSX and Linux, so I think I can do something :)
1249: [20:44:32] <SphereSilver> It slightly very much depends on how much time I have.
1250: [20:44:48] <antmas> SphereSilver: that'd be awesome, cheers :D
1251: [20:45:21] <PenguinMan98> On sspastes.com I'm not logged in
1252: [20:45:23] <SphereSilver> At least, if you're on Windows, start following this explanation: http://casa-laguna.net/all-the-news/show/easy-manage-multiple-websites-on-wamp
1253: [20:45:31] <PenguinMan98> but the 'my pastes' menu option is available
1254: [20:45:41] <PenguinMan98> When I click on it it errors flagrantly
1255: [20:45:48] <PenguinMan98> You may wanna look at that
1256: [20:46:01] <SphereSilver> Because.... well... it helps a lot in making life easier, and also, I'll probably use it as the base for describing the debugging process
1257: [20:46:11] <SphereSilver> Huh?
1258: [20:46:31] <PenguinMan98> http://screencast.com/t/0CHfwC4jEa4
1259: [20:46:36] <SphereSilver> That server shouldn't error.
1260: [20:46:48] <SphereSilver> Owwww, sspaste!
1261: [20:46:52] <PenguinMan98> Well, I have this black thumb...
1262: [20:46:56] <SphereSilver> Yeah, sspaste isn't mine ;)
1263: [20:47:02] <PenguinMan98> If it CAN be broken, I WILL break it
1264: [20:47:07] <SphereSilver> I'll let Martijn know ;)
1265: [20:47:41] <PenguinMan98> ty
1266: [20:47:46] <SphereSilver> My websites and servers never error! {insert angel face here}
1267: [20:57:14] <SphereSilver> I'm actually trying to figure out why one of my sites is having a huge load on the server atm ;) Can't find the reason :X
1268: [21:01:51] * adrexia quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
1269: [21:02:14] <DanaeNZ> what the, my IRC client had me logged in the whole time
1270: [21:02:26] <DanaeNZ> i think the cleaners where bumping my mouse
1271: [21:05:27] * Stomach quit (Quit: zzz)
1272: [21:06:42] <PenguinMan98> Hey DanaeNZ
1273: [21:06:48] <PenguinMan98> I actually had a SS win today
1274: [21:07:14] <PenguinMan98> Now the fight will be to keep the trend going
1275: [21:09:27] * Stomach has joined #silverstripe
1276: [21:11:04] * UncleCheese has joined #silverstripe
1277: [21:11:42] <DanaeNZ> PenguinMan98: good stuff _b
1278: [21:13:52] * UncleCheese quit (Client Quit)
1279: [21:17:02] <SphereSilver> Hi/Bye UncleCheese
1280: [21:18:25] * Ryan-Toast has joined #silverstripe
1281: [21:22:08] <PenguinMan98> Function on the model that is executed before the template is parsed?
1282: [21:23:29] <Ryan-Toast> PenguinMan98: onBeforeInit
1283: [21:23:39] <PenguinMan98> ty
1284: [21:23:44] <SphereSilver> Only on extensions
1285: [21:23:56] <Ryan-Toast> This is true.
1286: [21:23:59] * micmania1 has joined #silverstripe
1287: [21:24:06] <PenguinMan98> How about on a Page?
1288: [21:24:11] <Ryan-Toast> init is before render, right?
1289: [21:24:48] <Ryan-Toast> I know sometimes I pick what template to use in the index() method, so worst comes tyo worst you can do it there.
1290: [21:24:55] <Ryan-Toast> But not sure if that’s the best place.
1291: [21:25:31] <DanaeNZ> I usually use init() ya
1292: [21:25:40] <DanaeNZ> it is on the Page_Controller class
1293: [21:26:01] <PenguinMan98> page model
1294: [21:26:16] <PenguinMan98> class Page extends SiteTree {
1295: [21:26:57] * Pyromanik has joined #silverstripe
1296: [21:28:47] * adrexia has joined #silverstripe
1297: [21:29:06] <PenguinMan98> I want to do some mutations on $Content before it is displayed to the user
1298: [21:29:49] <Pyromanik> cool.
1299: [21:29:52] <Pyromanik> why
1300: [21:30:23] <PenguinMan98> I want to place tokens e.g. %%ContentImage1%% in the content and then programmatically replace them with <img> tags.
1301: [21:30:40] <Pyromanik> docs on shorttags
1302: [21:30:43] <Pyromanik> shortcode
1303: [21:30:46] <Pyromanik> bbtags
1304: [21:30:50] <Pyromanik> idk, some shit like that
1305: [21:30:50] <PenguinMan98> ok
1306: [21:30:53] <Pyromanik> I forget proper name
1307: [21:30:58] <Pyromanik> but it's there already.
1308: [21:31:00] <DanaeNZ> shortcode*
1309: [21:31:05] <Pyromanik> [ContentImage1]
1310: [21:31:17] <Pyromanik> or something like that, should suffice right PenguinMan98 ?
1311: [21:31:25] <Pyromanik> yeah, that one. Thanks DanaeNZ
1312: [21:31:27] <PenguinMan98> Quite possibly
1313: [21:31:34] <PenguinMan98> Lemme read it over
1314: [21:31:36] <PenguinMan98> thanks!
1315: [21:32:14] <Pyromanik> The other option is to ... wait what? Why not just insert images with the big image button?
1316: [21:32:27] * Hailwood has joined #silverstripe
1317: [21:32:38] <Pyromanik> the other option is to write a wee plugin for tinymce. Although I don't particularly recommend it at all.
1318: [21:32:52] <Pyromanik> but seriously, if it's just an image then just click the image button.
1319: [21:33:22] <Pyromanik> Unless you need some transforms done first, the rest you can set in the editor I believe (ie, height/width)
1320: [21:33:31] <Pyromanik> PenguinMan98, ^
1321: [21:33:58] <PenguinMan98> Boss man says the tinyMCE image thing is unreliable and sloppy
1322: [21:34:28] <Pyromanik> Bossman is more retarded than firefox developer edition crashing on load for a week now.
1323: [21:34:48] <Pyromanik> sorry, that was a bit strong. What I meant to say was "oh? How so?
1324: [21:34:49] <Pyromanik> "
1325: [21:34:58] <Pyromanik> Can he give reasons as to why?
1326: [21:35:12] <Pyromanik> Is this some kind of UX we can maybe look at fixing?
1327: [21:35:31] <PenguinMan98> His words were something like: "The TinyMCE image editor inserts a lot of really ugly positioning and re-sizing code into the markup that we don't want."
1328: [21:35:57] <Pyromanik> Because I'm about 100% sure that selecting an image via a wee dialog is about 500% better than manually uploading an image separately to the article then referencing it manually in the article body with %%hurrdurr1%%
1329: [21:35:58] <DanaeNZ> TinyMCE does that to everything
1330: [21:36:14] <Pyromanik> yeah nah then he doesn't understand at all.
1331: [21:36:25] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
1332: [21:36:31] <Pyromanik> It's not the default image insert code.
1333: [21:36:42] <Pyromanik> click the button and see :)
1334: [21:37:10] <Pyromanik> although yeah, there is a minor point in that some things are very hard to avoid with tinymce.
1335: [21:37:26] <DanaeNZ> I usually strip down the editor to bare bones
1336: [21:38:09] <Pyromanik> I
1337: [21:38:51] <PenguinMan98> Just showed all of that to the bossman. He nodded and agreed. We'll just use the editor.
1338: [21:38:58] <adrexia> PenguinMan98:
1339: [21:38:59] <adrexia> His words were something like: "The TinyMCE image editor inserts a lot of really ugly positioning and re-sizing code into the markup that we don't want."
1340: [21:39:00] <Pyromanik> I'm about 40% sure that if you use the SS image button (which again, is not the default he's probably thinking of) then it doesn't add silly markup (such as e.g. height="400")
1341: [21:39:02] <adrexia> then... strip it out?
1342: [21:39:06] <adrexia> it'd be easier
1343: [21:39:28] <Pyromanik> you'll have to publish the article afterwards PenguinMan98 to be sure though.
1344: [21:39:39] <adrexia> and re: position - if there are no styles for silly globals like .left, .right, .dentre etc, it won't do anythign
1345: [21:39:40] <Pyromanik> I'm about 20% sure that it actually inserts a shortcode.
1346: [21:39:42] <PenguinMan98> He was under the presumption that it was using default functionality
1347: [21:39:42] <Pyromanik> anyway.
1348: [21:39:51] <PenguinMan98> So showing him it wasn't convinced him
1349: [21:39:57] <Pyromanik> I'm 100% sure that (internal) links do
1350: [21:40:07] <Pyromanik> PenguinMan98, cool.
1351: [21:40:23] <adrexia> PenguinMan98:
1352: [21:40:24] <Pyromanik> yeah, there are a few addons to tinymce, which is why it's sort of stuck into SS.
1353: [21:40:25] <adrexia> He was under the presumption that it was using default functionality
1354: [21:40:30] <adrexia> ahh, yeah. that's be frustrating
1355: [21:40:30] <adrexia> :)
1356: [21:40:47] <Pyromanik> the links, the images, and styles dropdown are all customised.
1357: [21:40:50] <Pyromanik> by sS.
1358: [21:41:00] <adrexia> everything should be really
1359: [21:41:07] <adrexia> at least... they should all look the same
1360: [21:41:13] <Pyromanik> which is why it uses an older version (upgrading it is a bit more of a task because need to ensure api compatibility)
1361: [21:41:16] <adrexia> which isn't every hard to do
1362: [21:41:24] <adrexia> it'd just be a bit of css
1363: [21:41:29] <adrexia> *very
1364: [21:41:37] <Pyromanik> adrexia, you'd be surprised how hard things are with tinymce (if you haven't used it)
1365: [21:41:46] <adrexia> nope ;)
1366: [21:41:51] <adrexia> things are hard
1367: [21:42:05] <adrexia> but it turns out styling is is surprisingly easy
1368: [21:42:12] <adrexia> *it is
1369: [21:42:26] <Pyromanik> There are themes to use with it, I assumed by the fact that it needs a whole theme rather than some images and css that it was a bit of a bitch.
1370: [21:42:31] <Pyromanik> Maybe it was in legacy.
1371: [21:42:35] * Pyromanik shrugs
1372: [21:42:53] <adrexia> well, you take the theme and hack it ;)
1373: [21:42:59] <adrexia> ta-da! new theme ;)
1374: [21:43:18] <adrexia> or rather, you take it, copy it somewhere, hack it, and then set theme
1375: [21:43:37] <Ryan-Toast> adrexia: can confirm. Easy to style: http://i.imgur.com/uaMYwas.png
1376: [21:43:42] <adrexia> the bit that is annoying is that the markup it generates is dumb
1377: [21:43:53] <adrexia> +1
1378: [21:44:03] <adrexia> we dumped the bootstrap tinymce into mahara
1379: [21:44:21] <adrexia> SO much nicer thatn the silly schamorphic tinymce buttons
1380: [21:44:30] <Ryan-Toast> Agreed.
1381: [21:44:45] <Pyromanik> you got a div button Ryan-Toast
1382: [21:44:48] <Pyromanik> that's... interesting.
1383: [21:44:54] <Ryan-Toast> Pyromanik: It’s just the code button :)
1384: [21:44:55] <Pyromanik> be sure that it doesn't fuck up around images
1385: [21:44:57] <Pyromanik> it used to.
1386: [21:45:07] <Pyromanik> Ryan-Toast, then change it to <html> yeh
1387: [21:45:14] <Pyromanik> unless I'm blind :<
1388: [21:45:23] <adrexia> lol
1389: [21:45:53] <Ryan-Toast> Pyromanik: Nah.
1390: [21:45:57] <Ryan-Toast> I only code in divs
1391: [21:46:03] <Ryan-Toast> No html
1392: [21:46:07] <Ryan-Toast> It’s my own language
1393: [21:46:09] <adrexia> lol
1394: [21:46:12] <Ryan-Toast> div5
1395: [21:46:12] <Pyromanik> well, tinymce will fuck up your divs.
1396: [21:46:21] <Ryan-Toast> I never use it.
1397: [21:46:25] <Pyromanik> wrap something in a div.
1398: [21:46:28] <Pyromanik> insert an image
1399: [21:46:30] * zippy has joined #silverstripe
1400: [21:46:40] <Ryan-Toast> Only when a client has copy pasted shit from another website, and I need to go in and remove all of the style tags
1401: [21:46:40] <Pyromanik> nekminnit your div is width="image.width"
1402: [21:46:48] * catcher quit (Quit: Leaving)
1403: [21:46:54] <Pyromanik> very enraging.
1404: [21:50:58] * zippy quit (Client Quit)
1405: [21:55:29] <samlander> was thinking, it is possible to put plugins in a plugin folder or do they always have to be root?
1406: [21:55:40] <DanaeNZ> samlander: ahhhh you'
1407: [21:55:41] <Pyromanik> no.
1408: [21:55:48] <DanaeNZ> ve discovered one of the flaws
1409: [21:55:49] <Pyromanik> don't troll me like that samlander
1410: [21:55:53] <Pyromanik> I'll bite your hands off.
1411: [21:56:02] * DanaeNZ backs away slowly
1412: [21:56:09] <samlander> not a troll, just a nub
1413: [21:56:14] <Pyromanik> pet peeve.
1414: [21:56:22] <DanaeNZ> it’s a good question, cos that’s what everyone wants
1415: [21:56:24] <samlander> wouldnt be that hard to add that to the source
1416: [21:56:29] <Pyromanik> everyone is a moron though DanaeNZ
1417: [21:56:42] <Pyromanik> samlander, yes actually, it would.
1418: [21:56:50] <samlander> hm
1419: [21:56:52] <DanaeNZ> lmao
1420: [21:56:54] <Pyromanik> and it's stupid anyway. It's purely asthetic.
1421: [21:57:10] <Pyromanik> and for morons who can't find the mysite folder by pressing m.
1422: [21:57:23] <samlander> perhaps
1423: [21:57:30] <DanaeNZ> I’d like to sort it into a vendor folder
1424: [21:57:43] <Pyromanik> I have large distaste for the vendor folder.
1425: [21:57:55] * firefox2kx quit ()
1426: [21:58:08] * UncleCheese has joined #silverstripe
1427: [21:58:22] <Pyromanik> while it's not actually that impossible, it really depends on the module samlander
1428: [21:58:33] <Pyromanik> and provides no benefit other than moving the 'mess' from one folder to another.
1429: [21:58:45] <samlander> im a bit anal when it comes to organization
1430: [21:58:49] <samlander> you'd hate my code xD
1431: [21:58:59] <Pyromanik> eg. if you're working on a module rather than $project, you still have to wade through the very same 'mess' people are whinging about to find your module folder
1432: [21:59:40] <Pyromanik> samlander, well at least you didn't try to accuse SS of being insecure because it doesn't use a codeigniter style 'public' dir.
1433: [21:59:49] <Pyromanik> that simply has script entry and static assets.
1434: [21:59:55] <Ryan-Toast> Pyro: You don’t rename your mysite? HEATHEN!
1435: [22:00:06] <Pyromanik> Ryan-Toast, yeah, depends on the project.
1436: [22:00:14] <Pyromanik> 98% of the time, no.
1437: [22:00:17] <Pyromanik> no point.
1438: [22:00:27] <Ryan-Toast> looks nice on github :)
1439: [22:00:47] <Pyromanik> I don't put private client work on github.
1440: [22:00:53] <Pyromanik> GOSH
1441: [22:01:23] <Ryan-Toast> Not even private repos?
1442: [22:01:43] <samlander> wow NZ just passed an anti trolling law
1443: [22:01:58] <DanaeNZ> huh?
1444: [22:02:08] <DanaeNZ> you sure you aren’t reading /r/newzealand
1445: [22:02:09] <adrexia> wasn't that like 2 weeks ago?
1446: [22:02:22] * DanaeNZ crawls back under her rock
1447: [22:02:33] <adrexia> we did. It was actually an 'anti online harrassment' law
1448: [22:02:37] <samlander> reading flipbook on my android
1449: [22:04:51] * Kingy[a] is now known as Kingy
1450: [22:07:11] <Pyromanik> samlander, yeah, a stupid one.
1451: [22:08:30] <Kingy> morning
1452: [22:08:37] <Pyromanik> gidday
1453: [22:08:50] <antmas> Kingy: o/
1454: [22:08:54] <Kingy> bit cold in wellington today?
1455: [22:08:56] <Kingy> hey antmas
1456: [22:08:59] <antmas> and all others I missed o/
1457: [22:09:24] <Pyromanik> \o
1458: [22:11:05] <Kingy> how's things antmas
1459: [22:12:46] <antmas> Kingy: a little slow, but busy
1460: [22:12:53] <antmas> leaning towards 'good' :P
1461: [22:12:59] <antmas> Kingy: good being back in NZ?
1462: [22:13:14] <Kingy> haha good is always good :)
1463: [22:13:19] <Kingy> not bad in nz yet, still in aus
1464: [22:13:27] <Kingy> least it's not freezing cold here haha
1465: [22:13:33] <antmas> ah true
1466: [22:13:38] <antmas> where in AUS?
1467: [22:13:45] <Kingy> gold coast
1468: [22:14:15] <Kingy> where every kiwi moves to ever
1469: [22:14:40] <antmas> mm
1470: [22:15:11] <Pyromanik> Kingy, so, Brisbane?
1471: [22:15:25] <Kingy> Pyromanik: about an hour south
1472: [22:15:35] <Pyromanik> <Kingy> where every kiwi moves to ever
1473: [22:15:40] <Pyromanik> also, same thing.
1474: [22:15:51] <Pyromanik> (didn't see gold coast comment)
1475: [22:15:51] * lerni_ quit (Remote host closed the connection)
1476: [22:16:03] <Kingy> pssh, brissy doesn't have nice beaches
1477: [22:16:18] <Pyromanik> doesn't stop it being 'little kiwiland'
1478: [22:16:21] <Kingy> haha
1479: [22:16:26] <Kingy> for sure
1480: [22:17:17] <Pyromanik> wholey shit firefox dev version
1481: [22:17:21] <Pyromanik> worst browser ever.
1482: [22:17:26] <Pyromanik> 'browser'
1483: [22:17:39] <antmas> I blanket that term across firefox
1484: [22:17:42] <Pyromanik> just, rename your fuck'n nightlies to give the false impression of stability.
1485: [22:17:43] <Pyromanik> derp derp
1486: [22:17:44] <antmas> </3
1487: [22:18:00] <Pyromanik> crashes on startup.
1488: [22:18:11] <Pyromanik> so now it finally updated.
1489: [22:18:18] <Pyromanik> restarted... crashed on startup.
1490: [22:18:22] <Pyromanik> DERP
1491: [22:18:57] <Pyromanik> starts in safe mode, but then the tool bar (and the fuck'n back button!) stop working
1492: [22:19:14] <antmas> fuckin fuck fuck
1493: [22:23:51] <Pyromanik> wut
1494: [22:26:57] <PenguinMan98> ok guys
1495: [22:26:59] <PenguinMan98> new problem
1496: [22:27:08] <PenguinMan98> the staging server is ubuntu linux
1497: [22:27:19] <PenguinMan98> Trying to add an image with ss fails
1498: [22:27:25] <PenguinMan98> forbidden
1499: [22:27:28] <adrexia> permsissiosn on assets?
1500: [22:27:34] <PenguinMan98> I'm assuming this is file permissions related
1501: [22:27:35] <adrexia> should be 755
1502: [22:27:37] <adrexia> I think?
1503: [22:27:46] <Kingy> sounds right
1504: [22:27:46] <simon_w|air> And owned by www-data
1505: [22:27:48] <PenguinMan98> The permissions are 755 on that folder but the user is developer
1506: [22:27:51] <PenguinMan98> not www-data
1507: [22:27:55] <adrexia> ahh right :)
1508: [22:28:14] <PenguinMan98> so I'll just chown it
1509: [22:28:55] <antmas> what are the other files www-data needs to be owner off?
1510: [22:29:00] <antmas> of*
1511: [22:29:07] <Pyromanik> cache
1512: [22:29:30] <Pyromanik> dms-assets (if installed)
1513: [22:34:41] <Pyromanik> ah well. bed I guess
1514: [22:34:50] * Pyromanik quit (Quit: Leaving)
1515: [22:35:25] <PenguinMan98> damn
1516: [22:35:38] <PenguinMan98> nobody in the current company has sudo rights to that server
1517: [22:35:42] <PenguinMan98> lol
1518: [22:35:44] <Kingy> lolol
1519: [22:35:47] <PenguinMan98> So we can't chown it
1520: [22:36:20] <PenguinMan98> time to execute the former IT guy
1521: [22:37:39] <Ryan-Toast> phpstorm9 downloading. Excite.
1522: [22:37:49] <DanaeNZ> changelog?
1523: [22:38:12] <simon_w|air> Still no Hack support
1524: [22:39:42] <antmas> Ryan-Toast: it's pretty nice :D
1525: [22:39:47] <antmas> installed this morning
1526: [22:39:53] <antmas> key from 8 worked *yay)
1527: [22:40:35] <antmas> speaking of phpstorm, is there a way to hid eht notifications for 'External file changes sync may be slow'?
1528: [22:40:41] <antmas> hide the*
1529: [22:41:11] <antmas> nvm, found it :P
1530: [22:41:25] <Kingy> how much is it?
1531: [22:41:39] <antmas> either $100 or $200, cant' remember :P
1532: [22:41:51] <antmas> might be like $99 USD
1533: [22:41:56] * darjus01 quit (Read error: Connection reset by peer)
1534: [22:41:57] <Kingy> yep just looked $99
1535: [22:42:23] * marvanni quit (Quit: marvanni)
1536: [22:44:41] * zippy has joined #silverstripe
1537: [22:44:44] <zippy> gif people, I need a gif :) of a head shake or a wtf or something :)
1538: [22:44:56] * zippy summons the gif people
1539: [22:45:55] <Stomach> http://img.ifcdn.com/images/224ec97f35bf4496262ea743f9f0f2bf3d42e01dd674f2d06f19dbb086ca8c6d_1.gif
1540: [22:46:19] <antmas> I hate you Stomach
1541: [22:46:24] <antmas> SO MUCH HATE
1542: [22:46:26] <Stomach> :D
1543: [22:46:30] <Ryan-Toast> Stomach: +100
1544: [22:46:35] <Stomach> there is only one gif
1545: [22:46:51] <zippy> the one true gif
1546: [22:47:02] <Ryan-Toast> Time to chicken butt antmas all week.
1547: [22:47:08] <zippy> lol
1548: [22:47:20] <DanaeNZ> we have this new annoying “share current whatever to our entire network” button
1549: [22:47:25] <DanaeNZ> Ryan-Toast: you know what to do
1550: [22:47:31] <Ryan-Toast> DanaeNZ: I know alright :D
1551: [22:48:50] * marvanni has joined #silverstripe
1552: [22:48:52] * joelpitt_ has joined #silverstripe
1553: [22:50:21] * joelpittet quit (Ping timeout: 255 seconds)
1554: [22:51:05] * Colin[pi] has joined #silverstripe
1555: [22:52:04] <Colin[pi]> o/
1556: [22:52:10] * joelpittet has joined #silverstripe
1557: [22:52:16] <zippy> Colin[pi]: o/
1558: [22:52:58] * marvanni quit (Ping timeout: 246 seconds)
1559: [22:55:18] * joelpitt_ quit (Ping timeout: 255 seconds)
1560: [22:55:42] * AshKyd quit (Ping timeout: 248 seconds)
1561: [22:57:38] * AshKyd has joined #silverstripe
1562: [22:57:53] <Kingy> Colin[pi]: \o
1563: [22:58:59] <Colin[pi]> Kingy: o/
1564: [22:59:10] <Kingy> cold down your way?
1565: [22:59:17] <Colin[pi]> can not feel my toes
1566: [22:59:45] <Kingy> haha yeah i'm having to wear long pants and socks for the first time in a while
1567: [22:59:53] <Colin[pi]> where are you at now?
1568: [22:59:57] <Kingy> gold coast
1569: [23:00:06] <Ryan-Toast> adrexia: material lite uses BEM :) makes me feel good.
1570: [23:00:08] <Colin[pi]> ah! well that shouldn't be too bad at least :P
1571: [23:00:11] * Liquide quit ()
1572: [23:00:17] <Kingy> yeah it's warmer than I expected
1573: [23:00:27] <Kingy> good stepping stone for when we go back to NZ
1574: [23:00:34] <Colin[pi]> Ryan-Toast: fun fact, BEM means "good" in portuguese
1575: [23:00:37] <Kingy> 40C -> 20C -> 0C
1576: [23:00:43] <Ryan-Toast> Colin[pi]: That is a fun fact, Colin.
1577: [23:01:04] <Colin[pi]> Kingy: what's next on the itinerary?
1578: [23:01:08] <DanaeNZ> Oooh, Darcula theme is Darcular-er
1579: [23:01:26] <Ryan-Toast> yarp.
1580: [23:01:28] <Ryan-Toast> I can dig it
1581: [23:01:31] <Kingy> Colin[pi]: NZ for a week at the end of July, back here to the GC until 13th august
1582: [23:01:40] <Kingy> then back home
1583: [23:02:01] <zippy> home being Saud?
1584: [23:02:19] <Colin[pi]> Kingy: pity you weren't closer, I might be popping up to Sydney over the weekend but GC is a bit far to drive ;P
1585: [23:02:21] <zippy> do you live in a sandcastle over there?
1586: [23:02:52] <Kingy> zippy: Bahrain not Saudi. And no not a sandcastle, although I could probably build one
1587: [23:03:03] <Kingy> Colin[pi]: We're trying to organise to go to Syd or Melb at some point
1588: [23:03:08] <Kingy> but i'm still working
1589: [23:03:53] * zippy quit (Quit: Textual IRC Client: www.textualapp.com)
1590: [23:04:20] <Colin[pi]> Kingy: you could visit SS GC
1591: [23:04:21] <Colin[pi]> :D
1592: [23:04:42] <Kingy> waaaa?
1593: [23:04:53] <Kingy> who what where
1594: [23:05:04] <Colin[pi]> Kingy: they have an office there somewhere
1595: [23:05:12] <Colin[pi]> it might be "Shane's house"
1596: [23:05:14] <Colin[pi]> I'm not sure
1597: [23:05:15] <Colin[pi]> lol
1598: [23:05:15] <Kingy> haha
1599: [23:05:34] <Kingy> interesting
1600: [23:05:40] <Kingy> how's your work going Colin[pi]?
1601: [23:05:42] <Kingy> busy?
1602: [23:05:53] <Colin[pi]> Kingy: very :\
1603: [23:06:03] <Colin[pi]> Kingy: http://www.silverstripe.com/contact/
1604: [23:06:09] <Colin[pi]> GC office link!
1605: [23:06:54] <Colin[pi]> Kingy: just drive past and throw eggs and shout "#SS RULES"
1606: [23:06:57] <Colin[pi]> ;)
1607: [23:07:31] <Kingy> oh yeah, it's way up there by in southport
1608: [23:09:03] * spronk has joined #silverstripe
1609: [23:11:06] <antmas> you know what I love? unclear project requirements
1610: [23:11:10] <antmas> love it
1611: [23:11:13] <Colin[pi]> antmas: oh boy, me too
1612: [23:12:23] <antmas> Colin[pi]: hi5 for scope creep o/
1613: [23:12:34] <Colin[pi]> antmas: o/
1614: [23:12:53] <Colin[pi]> antmas: or like yesty I said to you: "Why doesn't it do this?" "Because it wasn't part of the brief?"
1615: [23:13:06] <antmas> Colin[pi]: https://www.youtube.com/watch?v=ItzslynRhwg
1616: [23:13:15] <antmas> Colin[pi]: lol yeah
1617: [23:13:36] <Colin[pi]> antmas: and then she suggested what I had made was wrong
1618: [23:13:40] <Colin[pi]> "urge to kill... rising"
1619: [23:14:21] <Colin[pi]> fucking christ arnie was huge back then
1620: [23:14:45] <DanaeNZ> He’s my favourite
1621: [23:14:48] * spronk would like to announce to everyone that the robot uprising has begun
1622: [23:14:53] <antmas> the number of times I've watch '160 Arnold Quotes' on youtube
1623: [23:14:54] * guci0 quit (Ping timeout: 246 seconds)
1624: [23:15:02] <DanaeNZ> antmas: yeasss
1625: [23:15:05] <DanaeNZ> spronk: how?
1626: [23:15:13] <Colin[pi]> antmas: you would have seen the soundboard prank calls right?
1627: [23:15:17] <Colin[pi]> fuck they were funny
1628: [23:15:18] <spronk> my coffee machine has become self aware
1629: [23:15:23] <antmas> Colin[pi]: yeah that was awesome
1630: [23:15:23] <DanaeNZ> spronk: and yay! I for one welcome our new robot overlords
1631: [23:15:34] <antmas> 'IT'S NOT A TOOMAH'
1632: [23:15:40] <DanaeNZ> spronk: that’s not a nice way to talk about your barista
1633: [23:15:47] <spronk> :D
1634: [23:15:49] <DanaeNZ> ‘WHO IS YOUR DADDY, AND WHAT DOES HE DO
1635: [23:16:02] <DanaeNZ> PUT THE COOKIE DOWN1!!! NOW!!
1636: [23:16:04] <antmas> this is one of my favourites https://www.youtube.com/watch?v=xh3Wveg4DMk
1637: [23:16:14] <Colin[pi]> this is my favourite: https://www.youtube.com/watch?v=8Fq1HeBbYcM
1638: [23:16:54] <adrexia> Ryan-Toast:
1639: [23:16:56] <adrexia> adrexia: material lite uses BEM :) makes me feel good.
1640: [23:16:58] <adrexia> I'm not at all surprised
1641: [23:17:04] <adrexia> BEM is the safest bet
1642: [23:17:13] <antmas> BEM?
1643: [23:17:13] <adrexia> given where css is heading
1644: [23:17:15] <antmas> wat is
1645: [23:17:33] <antmas> Burger Eating Man
1646: [23:17:49] <adrexia> Block, Element, Modifier
1647: [23:17:51] <antmas> Bum Elastic Microwave
1648: [23:17:54] <adrexia> https://css-tricks.com/bem-101/
1649: [23:17:55] <antmas> adrexia: or that :P
1650: [23:18:07] <adrexia> I'mnot a fan of the syntax
1651: [23:18:13] <adrexia> but I am a fan of the ideology
1652: [23:18:26] <DanaeNZ> I like how easy it is to start implementing
1653: [23:18:45] <adrexia> I like that it treats things as unique features
1654: [23:19:24] <Colin[pi]> antmas: lol that video is gold
1655: [23:19:37] <antmas> XD
1656: [23:19:37] <adrexia> but __ and -- are the ugliest things I've ver seen since CamelCase
1657: [23:19:39] <adrexia> ;)
1658: [23:19:43] <spronk> yeahhhhh
1659: [23:19:58] <antmas> don't be hating on CamelCase now
1660: [23:19:59] <spronk> when did they become BEM?
1661: [23:20:07] <adrexia> I guess with sass you don't have to look at it though, if you don't want
1662: [23:20:08] <DanaeNZ> classes with camel case is just argh
1663: [23:20:09] * antmas throws on adrexia
1664: [23:20:15] <antmas> shade*
1665: [23:20:18] <adrexia> you could look at &-- and &__ instead
1666: [23:20:26] <spronk> eh
1667: [23:20:28] <DanaeNZ> yas
1668: [23:20:30] <spronk> whats wrong with CamelCase?
1669: [23:20:34] <spronk> it';s better than fucking_underscores
1670: [23:20:36] <DanaeNZ> it is not beautiful
1671: [23:20:38] <adrexia> lol
1672: [23:20:46] <spronk> ... code is not beautiful.
1673: [23:20:47] <DanaeNZ> not on CSS classes anyway
1674: [23:20:52] <DanaeNZ> TAKE THAT BACK
1675: [23:20:54] <adrexia> so much of it is just waht you are used to ;)
1676: [23:20:54] <DanaeNZ> TRAITOR
1677: [23:20:59] <spronk> its so hilariously ugly
1678: [23:21:05] <adrexia> code should be beautiful'
1679: [23:21:13] <spronk> it's full of symbols
1680: [23:21:13] <DanaeNZ> *sighs wistfully* My code is beautiful
1681: [23:21:22] <DanaeNZ> it’s all about whitespace
1682: [23:21:24] <spronk> and usually viewed in monospaced, low quality fonts
1683: [23:21:24] <spronk> so
1684: [23:21:26] <spronk> no
1685: [23:21:33] <adrexia> If I have to look at something that long, it needs to at least be inoffensive
1686: [23:21:43] <spronk> its just code, stop being precious about it ;)
1687: [23:21:54] <adrexia> my monospace fonts are pretty
1688: [23:21:56] <DanaeNZ> I’m not precious about the actual code, but I like to look at it
1689: [23:21:59] <adrexia> my code looks like candy
1690: [23:22:09] <DanaeNZ> Monokai? :D
1691: [23:22:14] <adrexia> its not _just code_
1692: [23:22:22] <adrexia> DanaeNZ a variation of it, yeah ;)
1693: [23:22:30] <DanaeNZ> I’ve got Darcula, it’s fine
1694: [23:22:37] <adrexia> its how we communicate
1695: [23:22:38] <DanaeNZ> I like the pastel-ness of monokai
1696: [23:22:50] <adrexia> the one that looks like halloweeen candy?
1697: [23:22:51] <adrexia> :D
1698: [23:23:01] <Hailwood> Hey Folks, Is the google sitemap plugin broken? - http://www.silverstripe.org/sitemap.xml shouldn't that be listing the site contents rather than pointing to the sitemap itself? it's causing the sitemap to show up in google results
1699: [23:24:01] * Stomach quit (Quit: zzz)
1700: [23:24:08] <DanaeNZ> ugh I’m trying to find a gif
1701: [23:24:25] <DanaeNZ> it’s from Free! and it’s Rei saying “IT’S NOT BEAUTIFUL!!”
1702: [23:24:57] * Stomach has joined #silverstripe
1703: [23:26:46] <adrexia> https://www.pinterest.com/pin/374150681516816133/
1704: [23:26:51] <adrexia> that?
1705: [23:26:56] <adrexia> but in gif form?
1706: [23:27:03] <DanaeNZ> Haha he says it a lot
1707: [23:27:05] <DanaeNZ> but YES
1708: [23:27:06] <DanaeNZ> THAT ONE
1709: [23:28:12] <Hailwood> Anyone know if my assumption that the silverstripe-google-sitemap plugin is broken is correct?
1710: [23:28:33] <DanaeNZ> Hailwood: nah it works like that
1711: [23:28:45] <DanaeNZ> i think? last time I used it
1712: [23:29:35] <DanaeNZ> is it just the SS site that has a broken iomplements?
1713: [23:29:39] <DanaeNZ> implementaion*
1714: [23:30:01] <hamror> https://i.imgur.com/4u14fJo.jpg
1715: [23:30:01] <DanaeNZ> it’s suddenly way too hot in here
1716: [23:30:16] <Kingy> Hailwood: I had much issues with those plugins so I just wrote my own
1717: [23:30:26] <Hailwood> DanaeNZ, I don't think so, it's affecting all our sites now
1718: [23:30:27] <DanaeNZ> hamror: bahahaha
1719: [23:30:32] <Hailwood> Kingy, open source?
1720: [23:30:45] <Kingy> no unfortunately
1721: [23:30:59] <Hailwood> Darn, ah well!
1722: [23:31:02] <Kingy> was literally a quite a nasty task to export a sitemap file
1723: [23:31:15] <Kingy> nothing fancy like those other ones
1724: [23:31:43] <Ryan-Toast> hamror: that shit is funny.
1725: [23:32:17] * joelpittet quit (Ping timeout: 240 seconds)
1726: [23:32:27] <Hailwood> DanaeNZ, Ah - got it - https://github.com/silverstripe-labs/silverstripe-googlesitemaps/issues/31
1727: [23:32:54] <DanaeNZ> Hailwood: sweet
1728: [23:33:21] <Hailwood> So the next question is - why the heck is the sitemap showing up in google heh
1729: [23:33:26] <DanaeNZ> just track ~1.0 and it should be all good
1730: [23:53:28] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)

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