#silverstripe IRC Log

IRC log for 18 August 2013

All timestamps are in UTC.

1: [00:02:25] * travis-ci has joined #silverstripe
2: [00:02:25] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#811 (3.1 - c7bdfcd : Will Rossiter): The build passed.
3: [00:02:25] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/3690ae16582e...c7bdfcd76a71
4: [00:02:25] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10321298
5: [00:02:25] * travis-ci has left #silverstripe
6: [00:08:49] * travis-ci has joined #silverstripe
7: [00:08:49] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#812 (3.1 - 1621d6a : Will Rossiter): The build passed.
8: [00:08:49] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/c7bdfcd76a71...1621d6afde1f
9: [00:08:49] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/10321391
10: [00:08:49] * travis-ci has left #silverstripe
11: [00:09:34] * priithansen quit (Quit: priithansen)
12: [00:47:51] * toddmorey quit (Quit: Leaving.)
13: [01:05:00] * toddmorey has joined #silverstripe
14: [01:22:16] * toddmorey quit (Quit: Leaving.)
15: [01:23:54] * violetina quit (Remote host closed the connection)
16: [01:24:04] * toddmorey has joined #silverstripe
17: [02:00:34] * toddmorey quit (Quit: Leaving.)
18: [02:08:04] * toddmorey has joined #silverstripe
19: [02:11:48] * simon_w quit (Quit: Leaving)
20: [02:17:30] * SightUnseen has joined #silverstripe
21: [02:17:35] * SightUnseen has left #silverstripe
22: [02:27:16] * DigNZ has joined #silverstripe
23: [02:32:41] * DigNZ quit (Quit: DigNZ)
24: [02:46:07] * DesignCity has joined #silverstripe
25: [03:18:51] * DigNZ has joined #silverstripe
26: [03:18:51] * DigNZ quit (Client Quit)
27: [03:19:54] * Mayzie has joined #silverstripe
28: [03:32:11] * cloph quit (Ping timeout: 246 seconds)
29: [03:36:52] * cloph_away has joined #silverstripe
30: [03:38:43] * DesignCity quit (Quit: DesignCity)
31: [03:50:44] * abitran has joined #silverstripe
32: [04:19:31] * jrthomer_ has joined #silverstripe
33: [04:22:30] * jrthomer quit (Ping timeout: 245 seconds)
34: [04:36:52] * joelpittet quit (Remote host closed the connection)
35: [04:47:41] * DigNZ has joined #silverstripe
36: [04:54:39] * toddmorey quit (Quit: Leaving.)
37: [05:02:13] * DesignCity has joined #silverstripe
38: [05:05:25] * Shrike_Finland quit (Quit: Leaving.)
39: [05:14:59] * DigNZ quit (Quit: DigNZ)
40: [05:54:58] * toddmorey has joined #silverstripe
41: [05:59:33] * toddmorey quit (Ping timeout: 264 seconds)
42: [06:11:45] * DesignCity quit (Quit: DesignCity)
43: [06:43:53] * SightUnseen has joined #silverstripe
44: [06:52:03] * DesignCity has joined #silverstripe
45: [06:52:57] * SightUnseen quit (Ping timeout: 264 seconds)
46: [06:55:30] * toddmorey has joined #silverstripe
47: [07:00:09] * toddmorey quit (Ping timeout: 256 seconds)
48: [07:05:04] * zfmf1 has joined #silverstripe
49: [07:22:55] * Shrike_Finland has joined #silverstripe
50: [07:44:26] * SightUnseen has joined #silverstripe
51: [07:53:42] * SightUnseen quit (Ping timeout: 276 seconds)
52: [07:56:08] * toddmorey has joined #silverstripe
53: [08:04:17] * pevjan has joined #silverstripe
54: [08:05:19] * toddmorey quit (Ping timeout: 264 seconds)
55: [08:12:27] <pevjan> If I am looping of a collection of objects, and I have the currently selected object ID in a session variable, how can I change the css class for the selected object?
56: [08:14:02] <pevjan> I've tried the following inside my loop, but it doesn't pass on the ID for the object: $Up.isSelected($ID)
57: [08:14:04] <Zauberfisch> pevjan: please show us the code
58: [08:14:27] <Zauberfisch> ah, you are trying to pass $ID as a param
59: [08:14:34] <Zauberfisch> hmm, I am not sure that works
60: [08:14:42] <pevjan> Zauberfisch: no, it doesn't :)
61: [08:14:53] <Zauberfisch> I mean there are certain limitations to that, that I have not investigated yet
62: [08:15:10] <Zauberfisch> what are those objects you are looking?
63: [08:15:23] <pevjan> custom models I've created
64: [08:16:07] <Zauberfisch> how about a isCurrent method in those models?
65: [08:16:35] <pevjan> I'll try that
66: [08:16:41] <Zauberfisch> public function isCurrent() { return $this->ID == Session::get('SomeID') }
67: [08:18:28] <pevjan> How am I supposed to call that function? This doesn't work inside my loop: "Current: $isCurrent"
68: [08:18:42] <Zauberfisch> it should
69: [08:19:02] <Zauberfisch> but if $isCurrent returns a boolean you probably won't see an output if you just call $isCurrent
70: [08:19:24] <Zauberfisch> do a <% if $isCurrent %><h1>zauberfisch is super awesome</h1><% end_if %>
71: [08:19:31] * SightUnseen has joined #silverstripe
72: [08:21:49] * maknz has joined #silverstripe
73: [08:21:50] * maknz quit (Changing host)
74: [08:21:50] * maknz has joined #silverstripe
75: [08:21:54] <pevjan> Aha, it did tell me Zauberfisch is awesome!
76: [08:22:10] <Zauberfisch> wonderful
77: [08:22:15] <pevjan> Now the only thing is it feels kinda dirty to put session retrieval stuff in the model.. but I'll figure that out
78: [08:22:16] <pevjan> Thanks!
79: [08:22:46] <Zauberfisch> well, from the model you could also call a method on the controller
80: [08:23:01] <Zauberfisch> Controller::curr()->someMethod($this->ID);
81: [08:23:07] <Zauberfisch> curr() returns the current controller
82: [08:23:15] <Zauberfisch> in the case of a page that is Page_Controller
83: [08:23:27] <pevjan> Is there no way of passing the session data as a param to the model?
84: [08:24:05] * SightUnseen quit (Ping timeout: 248 seconds)
85: [08:24:28] <Zauberfisch> of course you could also do function getSomethingFromTheSession() { return Session::get('foo'); }
86: [08:24:45] <Zauberfisch> and thenn access $SomethingFromTheSession in the template
87: [08:24:52] <Zauberfisch> then you could probably also d a compare
88: [08:25:12] <pevjan> experimenting with that a bit
89: [08:25:12] <Zauberfisch> like <% if $Up.SomethingFromTheSession == $ID %>
90: [08:25:18] <Zauberfisch> but not sure if that works
91: [08:25:49] <pevjan> it did
92: [08:25:51] <pevjan> much better
93: [08:26:24] <pevjan> thanks a lot
94: [08:31:36] * zippy__ has joined #silverstripe
95: [08:48:25] * violetina has joined #silverstripe
96: [08:54:06] * zippy__ quit (Quit: zippy__)
97: [08:55:19] * SightUnseen has joined #silverstripe
98: [09:00:36] * pevjan quit (Remote host closed the connection)
99: [09:00:37] * SightUnseen has left #silverstripe
100: [09:01:13] * toddmorey has joined #silverstripe
101: [09:05:23] * toddmorey quit (Ping timeout: 246 seconds)
102: [09:07:07] * mayko has joined #silverstripe
103: [09:50:25] * swordsmanz quit (Ping timeout: 245 seconds)
104: [10:01:47] * toddmorey has joined #silverstripe
105: [10:05:56] * toddmorey quit (Ping timeout: 246 seconds)
106: [10:40:50] * mayko quit (Ping timeout: 245 seconds)
107: [10:46:51] * priithansen has joined #silverstripe
108: [10:47:53] * Rojod is now known as rojod
109: [10:56:23] * maknz quit (Read error: Connection reset by peer)
110: [11:02:20] * toddmorey has joined #silverstripe
111: [11:06:38] * toddmorey quit (Ping timeout: 240 seconds)
112: [11:28:07] * zfmf1 has left #silverstripe
113: [11:29:34] * ARNHOE has joined #silverstripe
114: [11:38:58] * peter_w has joined #silverstripe
115: [11:51:52] * LoveDuckie has joined #silverstripe
116: [12:01:10] * gelignite has joined #silverstripe
117: [12:03:23] * toddmorey has joined #silverstripe
118: [12:05:09] * peter_w quit (Quit: Page closed)
119: [12:07:52] * toddmorey quit (Ping timeout: 256 seconds)
120: [12:11:46] * rojod is now known as RojoD
121: [12:29:55] * ARNHOE quit (Read error: Connection reset by peer)
122: [12:50:34] * DesignCity quit (Quit: DesignCity)
123: [12:52:35] * DesignCity has joined #silverstripe
124: [13:02:52] * DesignCity quit (Quit: DesignCity)
125: [13:03:59] * toddmorey has joined #silverstripe
126: [13:07:19] * ARNHOE has joined #silverstripe
127: [13:08:40] * toddmorey quit (Ping timeout: 260 seconds)
128: [13:43:03] <wmk> how can i rename a tab in a tabset?
129: [13:44:19] * jrthomer_ quit (Remote host closed the connection)
130: [14:04:31] * toddmorey has joined #silverstripe
131: [14:07:28] * DesignCity has joined #silverstripe
132: [14:09:24] * toddmorey quit (Ping timeout: 276 seconds)
133: [14:14:51] * RojoD is now known as rojod
134: [14:42:17] * Marvanni has joined #silverstripe
135: [14:53:58] * jcwacky has joined #silverstripe
136: [14:54:58] <jcwacky> Any ideas why this is happening: http://spdr.me/Hsxm
137: [14:55:29] <jcwacky> The Settings tab never loads properly when switching to it from a different tab, but loads fine on a refresh.
138: [14:55:47] * ARNHOE quit (Remote host closed the connection)
139: [14:56:56] * ARNHOE has joined #silverstripe
140: [14:57:35] <jcwacky> I'm getting a JS error: TypeError: hints is undefined
141: [15:05:12] * toddmorey has joined #silverstripe
142: [15:09:00] <jcwacky> Ah, looks like it's fixed in 3.1rc1
143: [15:09:58] <jcwacky> Now need to find a way to force modules to install on rc1, that haven't updated to the correct requirement format.
144: [15:10:13] * toddmorey quit (Ping timeout: 268 seconds)
145: [15:21:30] * toddmorey has joined #silverstripe
146: [15:26:47] <Zauberfisch> jcwacky: this seems to be a bug, I have it to since RC1 or so
147: [15:27:13] <Zauberfisch> hmmm, you say its fixed in RC1?
148: [15:27:18] <Zauberfisch> maybe I am on master then
149: [16:19:03] * Marvanni quit ()
150: [16:40:43] * jrthomer has joined #silverstripe
151: [16:41:17] * jrthomer quit (Remote host closed the connection)
152: [16:41:44] * jrthomer has joined #silverstripe
153: [16:45:08] <Zauberfisch> hmmm, I can no longer use customise to overwrite Layout? :O
154: [17:17:14] * micmania1 has joined #silverstripe
155: [17:42:51] * zfmf1 has joined #silverstripe
156: [17:53:10] * DesignCity quit (Quit: DesignCity)
157: [17:54:36] * DesignCity has joined #silverstripe
158: [17:58:29] * micmania1 quit (Ping timeout: 248 seconds)
159: [18:12:55] * DesignCity quit (Quit: DesignCity)
160: [18:24:36] * zfmf1 quit (Ping timeout: 260 seconds)
161: [18:36:58] * MrGuits has joined #silverstripe
162: [18:36:59] * Guits quit (Read error: Connection reset by peer)
163: [18:55:59] * SightUnseen has joined #silverstripe
164: [18:57:42] * SightUnseen has left #silverstripe
165: [19:01:26] * chillu has joined #silverstripe
166: [19:38:47] * Peavers has joined #silverstripe
167: [19:39:22] * Peavers quit (Client Quit)
168: [19:41:38] * ARNHOE quit (Remote host closed the connection)
169: [19:44:39] * rojod is now known as Rojod
170: [20:14:00] * toddmorey quit (Quit: Leaving.)
171: [20:16:59] * DigNZ has joined #silverstripe
172: [20:17:01] * DigNZ quit (Read error: Connection reset by peer)
173: [20:17:14] * DigNZ has joined #silverstripe
174: [20:31:48] * nickmolhoek has joined #silverstripe
175: [20:31:49] * nickmolhoek quit (Read error: Connection reset by peer)
176: [20:32:05] * nickmolhoek has joined #silverstripe
177: [20:44:27] * Stomach has joined #silverstripe
178: [20:45:38] * swordsmanz has joined #silverstripe
179: [21:05:22] * LoveDuckie1 has joined #silverstripe
180: [21:05:44] * LoveDuckie1 has left #silverstripe
181: [21:06:56] * LoveDuckie quit ()
182: [21:07:19] * LoveDuckie has joined #silverstripe
183: [21:21:02] * Stomach quit (Quit: Leaving.)
184: [21:21:22] * Stomach has joined #silverstripe
185: [21:31:33] * zippy__ has joined #silverstripe
186: [21:31:45] <zippy__> Morning
187: [21:37:01] * UncleCheese has joined #silverstripe
188: [21:55:52] <ss23> moin
189: [21:56:46] <ss23> "We don't have a formal 'bounty program', but, would like to discuss some form of reward for your efforts / handling of this situation."
190: [21:56:50] <ss23> oh yeahhhhh
191: [21:58:13] * atmos has joined #silverstripe
192: [21:59:30] <atmos> morning all - can someonte tell me why the second if statement here is always returning true? I want to catch if the user is entering $ characters into the 'Amount' field. http://www.sspaste.com/paste/show/521142a7da645
193: [22:00:13] <ss23> atmos: = vs == :P
194: [22:00:33] <ss23> atmos: $foo = 'bar'; // Assignemnt, $foo == 'bar'; // comparison
195: [22:00:47] <atmos> ss23: BAH - Monday :P
196: [22:00:52] <ss23> atmos: And I don't think that will work anyway. You probably want validation that is more like... checking it's only every digits
197: [22:00:57] <ss23> you don't want an amount of like 3l2kfn2lfkn21lfkn
198: [22:01:22] <atmos> ss23: so check for ONLY numeric characters?
199: [22:01:46] <ss23> I think that would work best? Maybe with a . too
200: [22:02:09] <atmos> ss23: cool, thanks
201: [22:21:25] <UncleCheese> anyone want to hear about my bonehead move of the year?
202: [22:21:40] <ss23> Sure :D
203: [22:21:50] <zippy__> Moved close to Wellington? :P
204: [22:21:55] <UncleCheese> so when the earthquake hit on Friday, i texted my wife.. "Jesus fuck!"
205: [22:21:56] <ss23> hahaha
206: [22:22:07] <UncleCheese> and she never wrote back.. so i got nervous, and i called her.. everything fine, of course
207: [22:22:16] <UncleCheese> but i always wondered why she never responded to my text
208: [22:22:34] <UncleCheese> opened my phone the next day, and saw that I had not sent the text to her.. I had sent it to Sigurd Magnusson.
209: [22:22:50] <ss23> hahahahaha
210: [22:23:10] <UncleCheese> i wrote him again to make sure he wasn't offended.. seemed to see the humour in it.
211: [22:23:34] <zippy__> he was probably saying much the same at that time
212: [22:23:42] <UncleCheese> but i'm just trying to picture what must have been going on in his head.. huge quake hits, and the first thing he sees is an explicit text from Uncle Cheese
213: [22:25:09] <ss23> hahaha
214: [22:25:35] <ss23> OMG YAY
215: [22:25:36] <ss23> :D
216: [22:25:37] * ss23 claps
217: [22:25:43] <ss23> "Can you please let me know your address - I have something for you."
218: [22:25:48] <ss23> HELLS PIZZA IS GIVING ME FREE FOOD I THINK
219: [22:25:54] <ss23> :D
220: [22:26:22] <zippy__> Visit from the police? were you breaking their website?
221: [22:26:29] <ss23> hahaha
222: [22:26:38] <ss23> Yes, I was, but I was a good boy and reported it properly :P
223: [22:26:54] * spronk has joined #silverstripe
224: [22:27:52] <ss23> :D
225: [22:27:53] <ss23> yay
226: [22:27:54] <ss23> I'm so happy
227: [22:27:56] <ss23> PIZZAA
228: [22:28:33] <guzzlefry> \o/
229: [22:29:19] <UncleCheese> how did you swing that, ss23?
230: [22:30:06] <ss23> reported some sqli in the ecommerce platform Hells (as well as a crapton of other companies) use for all their ordering + credit card processing
231: [22:30:36] <spronk> lul
232: [22:32:32] <UncleCheese> holy shit
233: [22:32:35] <UncleCheese> that's so cool, man
234: [22:32:39] * ss23 preens
235: [22:32:47] <UncleCheese> wouldn't it be cool if the same thing worked for design?
236: [22:32:51] <spronk> they use ss? or something else?
237: [22:33:04] <ss23> haha spronk, no, not SS
238: [22:33:06] <UncleCheese> "Your interface sucks"
239: [22:33:14] <UncleCheese> "Thanks! Free pizza headed your way."
240: [22:33:32] <ss23> hahaha UncleCheese
241: [22:38:27] <Zauberfisch> haha, yeah, I wish it was that simple to get free pizza
242: [22:39:22] <Zauberfisch> UncleCheese: y u no skype?
243: [22:39:29] <UncleCheese> oh
244: [22:39:43] <Zauberfisch> or at least it looks like you are off
245: [22:39:44] <UncleCheese> because Skype has taken on new utility in New Zealand
246: [22:39:52] <UncleCheese> we use it for communicating with family now
247: [22:40:07] <UncleCheese> and it was super annoying to be skyping back home and have clients bugging me
248: [22:40:51] <Zauberfisch> ah, well, I usually prefer IRC queries as well, was just used to writing you on skype
249: [22:40:57] <UncleCheese> "don't shit where you eat"
250: [22:41:12] <UncleCheese> i know.. but until Skype allows multiple sessions
251: [22:41:15] <UncleCheese> maybe it does, i dunno
252: [22:41:34] <UncleCheese> we use it as our phone line, too, which makes it even more complicated
253: [22:41:42] <Zauberfisch> multiple sessions? as in you can login with 2 PCs?
254: [22:41:58] <UncleCheese> no, on the same workstation
255: [22:42:04] <Zauberfisch> or as in one session where the cool people see you, and one where the cilents see you
256: [22:42:09] <UncleCheese> right
257: [22:42:15] <Zauberfisch> don't think so
258: [22:42:34] <UncleCheese> yeah, it's just weird mixing work and friends and family like that
259: [22:42:49] <UncleCheese> so i made a new account for our family, and i'm always logged into that because that's how we get phone calls
260: [22:44:10] <Zauberfisch> UncleCheese: I have a similar problem, but for me its the other way around. I don't want friends and family to bug me :P
261: [22:44:21] <UncleCheese> haha
262: [22:45:48] <spronk> ugh
263: [22:45:50] <spronk> stupid skype
264: [22:46:07] <spronk> need to open up their network so trhird party clients can connect
265: [22:46:08] <Zauberfisch> yeah, of course, best case would be to totally dump skype and just use IRC
266: [22:46:10] <spronk> hate that official client bs
267: [22:46:29] <Zauberfisch> same here, I mean its cool for video calls, but the client just sucks
268: [22:46:33] <Zauberfisch> the sync is bad
269: [22:46:41] <Zauberfisch> I can't run it in console
270: [22:46:46] <Zauberfisch> the list goes on
271: [22:47:30] <Zauberfisch> but its not that easy to get the office to switch to IRC
272: [22:47:52] <Zauberfisch> tried and failed in the last company
273: [22:48:22] <ss23> We use flowdock here, which is... well it has a webapp, which is a little nicer than Skype
274: [22:48:26] <ss23> but we use Skype too
275: [22:48:28] <ss23> So really, we're segmented.
276: [22:49:00] <Zauberfisch> ss23: we are also not set on skype
277: [22:49:07] <Zauberfisch> there is of course also email
278: [22:49:11] <ss23> mmmm
279: [22:49:18] <Zauberfisch> and then there os good old screaming through the whole office
280: [22:49:19] <ss23> Because like 5 modes of communication are never enough!
281: [22:49:22] <ss23> Phones too
282: [22:49:39] <Zauberfisch> ah, right, phones
283: [22:49:43] <Zauberfisch> I refuse those
284: [22:49:53] <Zauberfisch> or at least try
285: [22:57:42] <guzzlefry> hrm
286: [22:57:51] <guzzlefry> Can you use a thumbnail image as a summary field?
287: [23:02:00] <UncleCheese> yes
288: [23:04:21] <guzzlefry> Do I just add the image's name to the array?
289: [23:06:40] <guzzlefry> eep, I get giant images. :P
290: [23:11:22] <guzzlefry> Ah, I see now I think. Basically anything you can call in a template can go into $summary_fields?
291: [23:12:03] <UncleCheese> right.. $summary_fields accepts custom getters
292: [23:12:14] <UncleCheese> 'MyImageThumbnail' => 'Image'
293: [23:12:35] <UncleCheese> public function getMyImageThumbnail() { return $this->Image()->CroppedImage(100,100); }
294: [23:20:00] <guzzlefry> hm, mine doesn't seem to work.
295: [23:21:12] <guzzlefry> https://gist.github.com/anonymous/714238c61a9c02f7c80a It just displays the regular size image.
296: [23:23:30] <priithansen> guzzlefry: ?flush=all
297: [23:24:28] <guzzlefry> Tried that, didn't hlep.
298: [23:24:36] * chillu quit (Quit: chillu)
299: [23:26:15] <guzzlefry> maybe "Image" => "TinyThumbnail"...
300: [23:27:01] <guzzlefry> yay
301: [23:27:17] <guzzlefry> so..hrm
302: [23:27:31] <guzzlefry> How do I specify the heading title for it?
303: [23:28:13] <priithansen> $field_labels array
304: [23:29:27] <guzzlefry> ooh, brilliant, thanks
305: [23:43:12] * micmania1 has joined #silverstripe
306: [23:54:10] <guzzlefry> Is there anyway to specify width for summary field columns?
307: [23:54:32] * gelignite quit (Quit: http://bit.ly/nkczDT)
308: [23:57:50] * UncleCheese quit (Quit: UncleCheese)

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