#silverstripe IRC Log

IRC log for 6 December 2015

All timestamps are in UTC.

1: [00:09:38] * Azure quit (Ping timeout: 260 seconds)
2: [00:13:32] * Azure has joined #silverstripe
3: [00:44:20] * NewGuy has joined #silverstripe
4: [00:50:15] <NewGuy> Hey stupid question. How do i check which SS version i am using? My composer.json says 3.1.* and inside /framework/silverstripe_version i dont see anything
5: [01:50:05] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
6: [02:36:45] * r_hector has joined #silverstripe
7: [03:04:39] * MichaelHabib quit (Ping timeout: 260 seconds)
8: [03:21:09] * UncleCheese has joined #silverstripe
9: [03:23:02] * MichaelHabib has joined #silverstripe
10: [04:19:06] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
11: [04:39:55] * saysora has joined #silverstripe
12: [04:56:34] * saysora quit (Quit: My Mac has gone to sleep. ZZZzzz…)
13: [05:01:37] * r_hector quit (Remote host closed the connection)
14: [05:14:29] <Audlex> has anyone used the fluent module for Japanese?
15: [05:14:42] <Audlex> I am wondering if someone can paste me what to use for 'native'
16: [05:57:23] * TRB143 quit (Ping timeout: 246 seconds)
17: [06:22:33] * NewGuy quit (Ping timeout: 252 seconds)
18: [06:51:35] * TRB143 has joined #silverstripe
19: [07:01:14] * kerozene quit (Ping timeout: 260 seconds)
20: [07:08:32] * kerozene has joined #silverstripe
21: [09:17:19] * DimiStripe has joined #silverstripe
22: [09:22:03] <ss-helper> Silverstripe comment module is not working - http://stackoverflow.com/questions/34115851/silverstripe-comment-module-is-not-working
23: [09:39:08] * darjusIT has joined #silverstripe
24: [09:55:42] * UncleCheese has joined #silverstripe
25: [10:22:25] * swaiba has joined #silverstripe
26: [10:47:01] * MarkGuinn has joined #silverstripe
27: [10:51:02] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
28: [11:18:19] * MarkGuinn quit (Remote host closed the connection)
29: [11:56:52] * MarkGuinn has joined #silverstripe
30: [11:58:41] * MarkGuinn quit (Remote host closed the connection)
31: [12:49:37] <Sphere> Hello World
32: [12:52:59] <swaiba> Sphere o/
33: [12:55:53] <Sphere> I just created the worst ever error-system on a form. Since for some reason, it wouldn't use $Form.Message :|
34: [12:57:31] <Sphere> http://sspaste.com/paste/show/566430b4dd65a
35: [12:57:42] <Sphere> For some reason, I couldn't get it working any other way :|
36: [13:04:46] * MichaelHabib quit (Ping timeout: 260 seconds)
37: [13:07:12] <swaiba> Sphere hmmm validtors not working?
38: [13:07:44] <Sphere> Nope, calling the validator or Message gives null
39: [13:07:54] <Sphere> so I have had to resort to "creative" error-checking :X
40: [13:08:04] <swaiba> wow
41: [13:10:06] * Azure quit (Excess Flood)
42: [13:10:23] <Sphere> I'm not proud of it, but it works...
43: [13:12:00] * Azure has joined #silverstripe
44: [13:22:04] * gelignite has joined #silverstripe
45: [13:22:27] <Sphere> Someone should update the topic. Latest stable isn't 3,2,0 anymore, and the EU Conf is in the past, plus it's URL is now https://stripecon.eu
46: [13:23:55] <Snowman23> Do I *have* to? :(
47: [13:24:22] * Snowman23 changed the topic to ' Welcome to #silverstripe | Latest Stable (3.2.1): http://www.silverstripe.org/software/download/ | Dev Mailing List: http://silverstripe.org/dev-list | IRC Logs: http://silverstripe.org/irc-logs | Feature requests: http://silverstripe.uservoice.com | EU Conf: https://stripecon.eu'
48: [13:24:29] <Snowman23> I can remove the EU thing if you want
49: [13:24:58] <Sphere> You don't *HAVE* to, but it's at least updated now :P
50: [13:25:21] <Sphere> About the EU-conf. Leave it for now, since I updated the site with the videos recently.
51: [13:25:26] <Snowman23> Sweet ^.^
52: [13:25:41] <Sphere> Maybe ask Sam or Joel what they think?
53: [13:26:07] <Sphere> Nah, I'll ask Joel what he thinks and have him update it if he feels like it ;)
54: [13:27:09] <Snowman23> Psh, Joel doesn't even come on IRC!
55: [13:27:33] <Sphere> I'll force him. I'll revoke his "buy beer on Sphere's creditcard" privileges :P
56: [13:28:21] <Snowman23> XD
57: [13:28:29] <Snowman23> So not related to SilverStripe, but I just saved some .jpg's
58: [13:28:36] <Snowman23> Size: 281kb
59: [13:28:38] <Snowman23> Size on disk: 1MB
60: [13:28:45] <Sphere> FAT32?
61: [13:29:04] <Snowman23> Should be ext4 on lvm with some luks on raid, as a mounted samba share
62: [13:29:20] <Snowman23> I'm not sure if I want to go through the trouble of finding out which part is making it big
63: [13:29:26] <Snowman23> I have the space, so I'll probably leave it
64: [13:29:37] <Snowman23> /dev/mapper/media-media 7.2T 4.6T 2.4T 66% /mnt/media
65: [13:29:49] <Sphere> That's odd, but if it works, it works, right?
66: [13:29:55] <Snowman23> Yep yep!
67: [13:30:49] <Snowman23> And it'll be a whiel before I run out of space again
68: [13:30:49] <Sphere> Hmmm, the pillows on my couch are scattered throughout the livingroom.
69: [13:30:49] <Sphere> And two cats are sitting in the window, looking at me with a face that says "WHAT ARE YOU GOING TO DO ABOUT IT?"
70: [13:30:52] <Snowman23> XD
71: [13:31:02] <Sphere> My cats are assholes :P
72: [13:31:09] <Snowman23> I kind of want to get a cat, but I'm too lazy
73: [13:31:16] <Snowman23> I'd accidently murder it by not feeding it one day :(
74: [13:31:19] <Sphere> Where do you live?
75: [13:31:26] <Snowman23> Apartment building in NZ
76: [13:31:31] <Snowman23> Speaking of, I really should sleep
77: [13:31:38] <Sphere> Haha, cats can go without food for a few days. It's no water that's a problem..
78: [13:31:50] <Snowman23> I'd forget about it being fed if I went away I bet
79: [13:31:52] <Snowman23> Or something silly
80: [13:31:59] <Snowman23> I'm not ready for the resopnsibility of keeping another living thing alive!
81: [13:32:07] <Sphere> Hmmm, I could try to import Tesla for you? I'm busy importing Dodge anyway, importing another cat should go easy :P
82: [13:32:20] <Sphere> Don't worry, a cat _will_ make sure you feed him/her :P
83: [13:32:44] <Sphere> If it requires sitting on your face, they'll sit on your face when you're asleep.
84: [13:32:47] <Sphere> (And then, fart)
85: [13:32:55] <Sphere> And yes, you should go to bed I guess :P
86: [13:33:17] <Sphere> It's 2.30-ish at your side of the world, right? :O
87: [13:34:53] <Snowman23> crap
88: [13:34:56] <Snowman23> Yeah, 2:30
89: [13:35:01] <Snowman23> speaking of not being responsibile for living things
90: [13:35:05] <Snowman23> I forgot I started cleaning the shower
91: [13:35:27] <Sphere> So.... half your shower is clean, the other half looks like someone had explosive diarhea?
92: [13:35:29] <Snowman23> I've had cats, just not in this house
93: [13:35:30] <Snowman23> haha
94: [13:35:31] <Snowman23> no
95: [13:35:37] <Snowman23> It's covered in corrosive cleaning junk
96: [13:35:38] <Snowman23> :P
97: [13:39:16] * vebb has joined #silverstripe
98: [13:39:29] <Snowman23> woah!
99: [13:39:32] <Snowman23> My shower is so clean
100: [13:39:33] <Snowman23> :O
101: [13:41:47] * Kolin_ has joined #silverstripe
102: [13:42:09] * FrozenFire[alt] has joined #silverstripe
103: [13:43:02] <Sphere> Ah, so all the tiles have let loose, your water is now a blue-ish green and you're unsure if it's safe to enter?
104: [13:43:03] * veb quit (Ping timeout: 240 seconds)
105: [13:43:08] * Seraphia quit (Ping timeout: 240 seconds)
106: [13:43:16] * FrozenFire quit (Ping timeout: 240 seconds)
107: [13:43:16] * Kolin quit (Ping timeout: 240 seconds)
108: [13:43:18] * Sphere quit (Ping timeout: 240 seconds)
109: [13:45:49] * SphereSilver has joined #silverstripe
110: [13:45:49] * SphereSilver is now known as Sphere
111: [13:46:48] * Seraphia has joined #silverstripe
112: [13:54:11] * Seraphia quit (Ping timeout: 264 seconds)
113: [13:54:29] <Sphere> Freenode having issues?
114: [13:54:37] <Snowman23> They often do
115: [13:54:42] <Snowman23> But I'm going to sleep
116: [13:54:44] <Snowman23> goodnight, Sphere ^.^
117: [13:54:47] * Seraphia has joined #silverstripe
118: [13:55:03] <Sphere> Sleep tight. And don't melt under the warm blanket :P
119: [13:58:12] <Snowman23> I KNOW MAN, summer
120: [13:58:15] <Snowman23> Sucks so bad :(
121: [13:58:20] <Snowman23> wtb winter
122: [13:58:28] <Snowman23> zzz
123: [14:15:38] <Sphere> Hmmmm, sleeeeep.....
124: [14:32:03] * TheVoid quit (Ping timeout: 260 seconds)
125: [14:36:03] * TheVoid has joined #silverstripe
126: [15:04:42] * Sphere quit (Quit: Bye now!)
127: [15:06:15] * SphereSilver has joined #silverstripe
128: [15:06:16] * SphereSilver is now known as Sphere
129: [15:08:26] <ss-helper> Re: Clearly, we should also have "should we drop PHP 5.4 support in SS4?" thread as well :-) - https://groups.google.com/d/msg/silverstripe-dev/7mVvhNNeNps/-gYBMVt3DAAJ
130: [15:09:56] <Sphere> Thank you ss-helper
131: [15:11:16] <Sphere> But I'm late to the party :|
132: [16:05:24] * saysora has joined #silverstripe
133: [16:35:34] * Azure quit (Ping timeout: 245 seconds)
134: [16:38:09] * Azure has joined #silverstripe
135: [16:38:29] * darjusIT quit (Ping timeout: 245 seconds)
136: [16:42:48] * Seraphia quit (Ping timeout: 264 seconds)
137: [16:43:04] * Liquide quit (Ping timeout: 245 seconds)
138: [16:43:34] * Seraphia has joined #silverstripe
139: [16:47:38] * Liquide has joined #silverstripe
140: [17:14:51] * MarkGuinn has joined #silverstripe
141: [17:20:09] * Azure quit (Ping timeout: 245 seconds)
142: [17:21:58] * FrozenFire[alt] is now known as FrozenFire
143: [17:23:15] * Azure has joined #silverstripe
144: [17:36:53] * swaiba quit (Remote host closed the connection)
145: [17:46:50] * saysora quit (Quit: My Mac has gone to sleep. ZZZzzz…)
146: [18:03:35] * MarkGuinn quit (Remote host closed the connection)
147: [18:04:59] * Seraphia quit (Ping timeout: 264 seconds)
148: [18:05:41] * Seraphia has joined #silverstripe
149: [18:05:43] * MarkGuinn has joined #silverstripe
150: [18:06:58] * Azure quit (Quit: Oops.)
151: [18:12:24] * darjusIT has joined #silverstripe
152: [18:15:42] * MarkGuinn quit (Remote host closed the connection)
153: [18:56:11] * MarkGuinn has joined #silverstripe
154: [19:06:53] * MarkGuinn quit (Remote host closed the connection)
155: [19:12:47] * Seraphia quit (Ping timeout: 264 seconds)
156: [19:15:18] * Seraphia has joined #silverstripe
157: [19:22:14] * darjusIT quit (Ping timeout: 245 seconds)
158: [19:41:15] * helenclarko has joined #silverstripe
159: [19:45:13] * Phlunk3 has joined #silverstripe
160: [20:02:00] * MarkGuinn has joined #silverstripe
161: [20:10:50] * micmania1 has joined #silverstripe
162: [20:16:14] * dollardad has joined #silverstripe
163: [20:16:15] <ss-helper> dollardad: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
164: [20:16:42] <dollardad> Good morning SilverStriper
165: [20:17:06] <dollardad> Lovely day here in Wellington
166: [20:17:47] <dollardad> Can anyone give me the url or directions to create a standalone form as a class that extends form
167: [20:19:44] * MarkGuinn quit (Remote host closed the connection)
168: [20:30:14] * joelpittet has joined #silverstripe
169: [20:31:10] * darjusIT has joined #silverstripe
170: [20:37:21] * antmas has joined #silverstripe
171: [20:37:29] <antmas> morning all o/
172: [20:40:35] * micmania1 quit (Quit: micmania1)
173: [20:45:33] * micmania1 has joined #silverstripe
174: [20:46:03] <antmas> this jquery is horrible
175: [20:46:13] <antmas> needs moar refactor!
176: [20:54:22] <dollardad> OK I found the answer I was looking for: https://docs.silverstripe.org/en/3.2/developer_guides/forms/how_tos/encapsulate_forms/ hope this helps anyone else who is new to SS
177: [21:02:18] * Stomach has joined #silverstripe
178: [21:05:18] <antmas> dumb js question
179: [21:05:29] <antmas> if I have an array of items
180: [21:05:46] <antmas> how do I exclude one of those items in a function?
181: [21:06:26] <antmas> like 'do this with everything from myArray except for item [9]' or whatever
182: [21:12:50] <antmas> ah, maybe slice() will do
183: [21:12:56] * DanaeNZ has joined #silverstripe
184: [21:13:14] <Sphere> Maybe slice, or just loop and manually make the exception?
185: [21:13:22] <Sphere> Too late :P
186: [21:13:57] <antmas> :P
187: [21:15:22] <antmas> hmmm slice might not work
188: [21:15:25] <antmas> as it's range based
189: [21:15:38] <antmas> but I might want to exclude an item in the 'middle' of an array
190: [21:16:48] <Sphere> Is the name of the item you want to exclude consistent?
191: [21:17:05] <antmas> yeah to an extent
192: [21:17:06] <antmas> like
193: [21:17:27] <antmas> they are all like "#iframe_foo", "#iframe_blah"
194: [21:19:29] <Sphere> Sounds like you'll need to unset things, based on a key....
195: [21:19:56] <antmas> mm
196: [21:20:00] <antmas> like
197: [21:20:28] <antmas> my use case is I want to, on click, show an #iframe, but hide 'all others'
198: [21:21:50] <Sphere> In that case, I would just remove all, and then show iframe
199: [21:22:09] <antmas> so hide first, then show the one in question?
200: [21:22:12] <Sphere> Just have them all detached, then show, instead of trying to show exactly the one selected and hide all others.
201: [21:22:26] <antmas> WHY DIDN'T I THINK OF THAT Stomach
202: [21:22:28] <antmas> :|
203: [21:22:29] <antmas> lol
204: [21:23:14] <Stomach> what
205: [21:23:18] <Stomach> I didn't do anything
206: [21:23:20] <Stomach> leave me alone
207: [21:23:22] <Stomach> :(
208: [21:23:29] <Sphere> Heh, sometimes the simple answer, is the answer to something you're trying to complexify to the extreme :P
209: [21:23:30] <antmas> :P
210: [21:23:42] <Sphere> Sorry Stomach, I just had to punch you. :P
211: [21:23:56] <antmas> Sphere: that is 100% what I end up doing :P
212: [21:25:09] <Sphere> Javascript nowadays is fast enough, to have that kind of thing happen, without the user actually noticing ;)
213: [21:28:18] <Sphere> Hey Stomach
214: [21:28:24] <Sphere> Could you stop growling?
215: [21:30:37] <Sphere> I'm having too much fun poking Stomach...
216: [21:30:43] <Sphere> Just because....
217: [21:37:33] * Stomach quit (Quit: zzz)
218: [21:38:14] <Sphere> Well, that's a punch in the Stomach :(
219: [21:41:45] * Stomach has joined #silverstripe
220: [21:57:42] * zlinux has joined #silverstripe
221: [22:09:22] * Liquide quit ()
222: [22:11:26] * darjusIT quit (Ping timeout: 246 seconds)
223: [22:14:15] * joelpittet quit (Remote host closed the connection)
224: [22:16:46] * joelpittet has joined #silverstripe
225: [22:23:41] <ss-helper> Re: SilverStipe UserHelp card sort discussion - https://groups.google.com/d/msg/silverstripe-dev/XU40-UKcD8M/1ajzY7RUAAAJ
226: [22:26:21] <antmas> if you want to use vars in selectors (jquery), can you do 'myVar = "#myElement"; and then $(myVar).hide(); ?
227: [22:27:11] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
228: [22:27:17] <antmas> or do you have to go $('#' + myVar).hide(); ?
229: [22:32:29] <Sphere> First one should work.
230: [22:32:51] <Sphere> But it's a bettter idea, to assign the objects, not the references.
231: [22:33:15] <Sphere> So, var myObject = $('#myObject');
232: [22:33:41] <Sphere> so in future usecases, you can just use myObject.doStuff().AddStuff() etc.
233: [22:34:04] <antmas> Sphere: nice, thanks
234: [22:34:17] <Sphere> And the DOM object is readily available. As long as it is actually a unique identifier, ofcourse.
235: [22:35:33] <antmas> Sphere: what about in arrays? like myObjects = [$('#myObject1'); , $('#myObject2');]; ?
236: [22:35:43] <Sphere> The $('thingy') call, actually means, jQuery, or actually, javascript, has to traverse the entire DOM to find it and attach it. So calling it once, and then manipulate it, is way better.
237: [22:36:29] <Sphere> It works just fine, it's just like stuffing objects into an array. So, as long as you call them correctly (e.g., don't re-
238: [22:36:42] <antmas> ok cool
239: [22:36:53] <Sphere> call them, but call myObjects[0].manipulationHere()
240: [22:37:05] <Sphere> Why not?
241: [22:37:33] <antmas> true
242: [22:37:36] <Sphere> Re-calling is the slow method. Even pushing them in an array works just fine and is not slowing down your JS operations :)
243: [22:38:26] <Sphere> PHPStorm and IntelliJ even give you hints on not calling a DOM object multiple times because of speed and system load :)
244: [22:38:42] <ss-helper> Re: SilverStipe UserHelp card sort discussion - https://groups.google.com/d/msg/silverstripe-dev/XU40-UKcD8M/Q7ys_DhVAAAJ
245: [22:40:15] <Sphere> A good rule of thumb is, "If you asked this question before, you're doing it wrong"
246: [22:40:43] <Sphere> Where "the question" obviously means a code-based question ;)
247: [22:41:25] <Sphere> In real life, it's ok to forget what someone's name is.
248: [22:41:38] <antmas> ok, put together an example
249: [22:41:49] <antmas> https://jsfiddle.net/eeLx8zmr/5/
250: [22:41:54] <Sphere> In coding, you should store him/her name in some private storage, so the code doesn't have to ask twice.
251: [22:42:31] <antmas> that's very crude/bad js, buy you get the idea :P
252: [22:43:31] <Sphere> You're not passing a reference to the object, in the click method. That's the first thing I should improve.
253: [22:43:49] <Sphere> A click gives an event and an object. Pass the object around ;)
254: [22:44:09] <antmas> how in that case though?
255: [22:44:30] <antmas> I thought I implied the object in the array, and then I'm just calling that object based on it's index
256: [22:45:03] <Sphere> You did, but you're not using the reference it seems (at least, from the jsfiddle)
257: [22:45:43] <Sphere> And, to be honest, I'm deadbeat tired, I need to have a look at it when I had some sleep :)
258: [22:46:00] <antmas> lol all good :P
259: [22:46:22] <antmas> Stomach: any thoughts?
260: [22:46:51] <Sphere> First thing, you're not calling the event-object itself. $(this) is readily and quickly available.
261: [22:47:02] <Stomach> whats it supposed to do?
262: [22:47:21] <antmas> on load, hide all the divs
263: [22:47:21] <Sphere> Why not use it?
264: [22:47:34] <antmas> then on either click, show a div
265: [22:49:25] <antmas> Sphere: why do I need to use $this in this case?
266: [22:49:47] <antmas> I'm not doing anything after the button after click
267: [22:49:56] <antmas> anything with the*
268: [22:51:30] <Sphere> The $(this) DOM object is readily available. That's why ;)
269: [22:53:13] <Stomach> one sec I'll write you something
270: [22:54:11] <antmas> Sphere: I get that, I just don't see a use for it in this particular case
271: [22:56:29] * david___ has joined #silverstripe
272: [22:58:02] <david___> I have a canCreate($member = null) method on a dataobject that has "return !!($member);" just to verify that we at least have a user session. Strange thing is when I'm logged into the admin system no member is passed to the function, the value of $member is null
273: [22:58:14] <david___> I am in the admin though, so I have a session by definition
274: [22:59:15] <micmania1> david___: that doesn’t mean a value is passed into the method. You should check that the $member variable has a value and fallback to Member::currentUser() is not.
275: [22:59:18] <micmania1> if not*
276: [22:59:33] <micmania1> (also don’t assume Member::currentUser() has a value).
277: [22:59:47] * Colin[pi] has joined #silverstripe
278: [23:00:30] <micmania1> also, isn’t !!($member) the same as $member :/
279: [23:00:32] <Colin[pi]> o/
280: [23:00:47] <Sphere> micmania1: nope
281: [23:01:08] <Sphere> It's more like "!empty(Member))"
282: [23:01:21] <antmas> Colin[pi]: o/
283: [23:01:39] <micmania1> ah ok :/
284: [23:01:47] <david___> GridFieldDetailForm calls canCreate(), etc. without passing a member
285: [23:02:16] <david___> why would this be like that? Couldn't they pass Member::currentUser() and it would be null if there was no session anyway
286: [23:02:30] * joelpittet quit (Remote host closed the connection)
287: [23:06:54] * hailwood has joined #silverstripe
288: [23:08:18] <Stomach> antmas - https://jsfiddle.net/q939gtkg/
289: [23:08:59] <antmas> Stomach: oooooh I'll take a gander shortly
290: [23:09:02] <antmas> thanks man :D
291: [23:09:25] <Stomach> I've probably misunderstood your problem completely
292: [23:09:26] <Stomach> :D
293: [23:09:31] <antmas> :P
294: [23:14:35] * joelpittet has joined #silverstripe
295: [23:16:11] * cheddam-work has joined #silverstripe
296: [23:27:02] * zlinux quit (Ping timeout: 246 seconds)
297: [23:27:34] * DanaeNZ quit (Remote host closed the connection)
298: [23:28:10] * DanaeNZ has joined #silverstripe
299: [23:32:17] * DanaeNZ quit (Ping timeout: 246 seconds)
300: [23:50:07] * DanaeNZ has joined #silverstripe
301: [23:55:15] * david___ quit (Ping timeout: 252 seconds)

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