#silverstripe IRC Log

IRC log for 20 January 2013

All timestamps are in UTC.

1: [00:09:00] * ARNHOFF quit (Read error: Connection reset by peer)
2: [00:17:00] * gelignite quit (Ping timeout: 248 seconds)
3: [00:19:00] * gelignite has joined #silverstripe
4: [00:25:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
5: [01:54:00] * DesignerX has joined #silverstripe
6: [03:20:00] * gelignite quit (Ping timeout: 245 seconds)
7: [03:36:00] * gelignite has joined #silverstripe
8: [03:52:00] * DesignerX quit (Ping timeout: 246 seconds)
9: [03:54:00] <liam> ?
10: [03:54:00] * liam has joined #silverstripe
11: [03:54:00] <liam> hi anyone know how to set all items in a checkboxsetfield as selected by default>
12: [04:00:00] * DesignerX has joined #silverstripe
13: [04:01:00] <DesignerX> hi, ios tehre an Address Field in ss ?
14: [04:01:00] <FrozenFire> Street addresses cannot be validated
15: [04:01:00] <FrozenFire> TextField
16: [04:02:00] <DesignerX> ah, I may need to create an address object then MyMember has-one Adress
17: [04:02:00] <FrozenFire> That's what I typically do
18: [04:02:00] <FrozenFire> You could feasibly make a CompositeField for the address
19: [04:03:00] * gelignite quit (Ping timeout: 245 seconds)
20: [04:03:00] <DesignerX> ok , if Mymember has Adress , how can i getCMSFields to be availabe on MyMember so I can enter the data ?
21: [04:04:00] <DesignerX> with this has_one relation , I want it to create Adress object & make the input fields available on MyMember .. by default has_one creates a drop down to select an existing object which is not what I want here
22: [04:04:00] * cloph_away quit (Read error: Connection reset by peer)
23: [04:05:00] * ferge1 has joined #silverstripe
24: [04:06:00] * cloph_away has joined #silverstripe
25: [04:07:00] <FrozenFire> DesignerX, Default CMS field scaffolding is patently retarded.
26: [04:07:00] <FrozenFire> ;)
27: [04:11:00] <DesignerX> "scaffolding" is whats called ? ! ( I am self tought so I skipped some terms & jargons ! )
28: [04:11:00] <DesignerX> now, time to get my freind google working
29: [04:19:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
30: [04:20:00] <FrozenFire> By default, DataObject::getCMSFields uses DataObject::scaffoldFormFields
31: [04:20:00] <FrozenFire> The results of which are usually rather bad.
32: [04:27:00] * Error404NotFound has joined #silverstripe
33: [04:37:00] <DesignerX> FrozenFire: thanks, I will look in the DataObject class & see what I can learn from it
34: [04:39:00] <DesignerX> another question, how can I check if a class has a static $var declared ? I need to check if Parent::Var exists
35: [04:42:00] * DesignerX quit (Read error: Connection reset by peer)
36: [04:42:00] * DesignerX has joined #silverstripe
37: [04:46:00] <DesignerX> .
38: [04:52:00] * liam quit (Quit: liam)
39: [04:57:00] * liam has joined #silverstripe
40: [04:57:00] * DesignerX quit (Read error: Connection reset by peer)
41: [04:58:00] * DesignerX has joined #silverstripe
42: [05:05:00] * DesignerX quit (Read error: Connection reset by peer)
43: [05:21:00] * liam quit (Read error: Connection reset by peer)
44: [05:21:00] * liam__ has joined #silverstripe
45: [05:21:00] * liam__ is now known as liam
46: [05:28:00] * DesignerX has joined #silverstripe
47: [05:28:00] <DesignerX> I need help naming a class !
48: [05:29:00] <DesignerX> I have a class that have some tools & randoem methods .. is class Helper sounds good ?
49: [05:31:00] * liam quit (Quit: liam)
50: [05:37:00] * liam has joined #silverstripe
51: [05:44:00] <FrozenFire> DesignerX, That is not how OOP works.
52: [05:44:00] * Error404NotFound quit (Ping timeout: 245 seconds)
53: [05:45:00] <FrozenFire> Throwing random methods on a class and calling it Helper is reducing the maintainability of your application
54: [05:46:00] <DesignerX> just to create enough pages & data for a "demo site"
55: [05:46:00] <DesignerX> DesignerX: this mostly will be used by me, I made few mthods to auto gernrate pages ,sub pages & some data objects ..
56: [05:46:00] <FrozenFire> Bad idea, nonetheless.
57: [05:46:00] <DesignerX> what other way oif doing it, ?
58: [05:47:00] <DesignerX> I love to decoreate the page class & provide some button for the admin to "create demo" page+objects
59: [05:48:00] * liam quit (Quit: liam)
60: [05:48:00] <FrozenFire> Building it into your application is also a bad idea
61: [05:49:00] <FrozenFire> http://api.silverstripe.org/trunk/framework/dev/BuildTask.html
62: [05:49:00] <DesignerX> buildtask ?
63: [05:49:00] <FrozenFire> That's something best done through a BuildTask
64: [05:50:00] <DesignerX> oh, that would be great !
65: [05:50:00] <FrozenFire> It'd be something that shows up in /dev/tasks
66: [05:51:00] <FrozenFire> And you can use XMLDataFormatter to export your demo data to an XML dump.
67: [05:51:00] <FrozenFire> Which could be loaded back in in a database-agnostic manner
68: [05:55:00] * liam has joined #silverstripe
69: [05:55:00] * Error404NotFound has joined #silverstripe
70: [05:59:00] <DesignerX> FrozenFire: you help + this http://www.balbuss.com/creating-tasks/ will do magic for me :D
71: [05:59:00] <DesignerX> your *
72: [06:07:00] * Error404NotFound quit (Disconnected by services)
73: [06:07:00] * Err404NotFound has joined #silverstripe
74: [06:14:00] * magical_octopus has joined #silverstripe
75: [06:15:00] <magical_octopus> how do I get images shown in a gridfield to be a set size rather than their actual size?
76: [06:15:00] <magical_octopus> I've seen something like CMSThumbnail but I'm not sure how to implement it
77: [06:16:00] <DesignerX> magical_octopus: hi, so you want to change the default thumbnail size in the GF ?
78: [06:16:00] <DesignerX> using ss3.0.3
79: [06:16:00] <magical_octopus> yea, atm it is just displaying at full size
80: [06:17:00] <DesignerX> your problem is an old one from ss3.0.0 & has been fixed
81: [06:17:00] <DesignerX> ?
82: [06:18:00] <magical_octopus> yea its 3.0.3
83: [06:20:00] * liam quit (Ping timeout: 248 seconds)
84: [06:20:00] <FrozenFire> magical_octopus, This would be done through GridFieldDataColumns::setFieldFormatting
85: [06:22:00] <FrozenFire> E.g. $gridField->getConfig()->getComponentByType("GridFieldDataColumns")->setFieldFormatting(array("MyImage" => function($val, $obj) { $image = $obj->MyImage(); return $image?$image->CroppedImage(50, 50):null; }));
86: [06:23:00] <magical_octopus> awesome ty :D
87: [06:24:00] <FrozenFire> Depends on whether you're showing it as a summary field, or just in that GridField
88: [06:24:00] <FrozenFire> That too would work
89: [06:24:00] <DesignerX> magical_octopus: or create a function on your class MyImage that returns a cusomized/resized image & use it in $summary_fields
90: [06:26:00] <DesignerX> FrozenFire: where is $summary_fields other then the GF table ?
91: [06:26:00] <DesignerX> where is $summary_fields "used"
92: [06:28:00] <FrozenFire> When setting the display fields on GridFieldDataColumns
93: [06:29:00] <FrozenFire> I would not usually use an image as a summary field
94: [06:30:00] <DesignerX> FrozenFire: so $summary_fields is what get passed to the GF, then "GridFieldDataColumns::setFieldFormatting" \used to further custmoize $summary_fields ?
95: [06:30:00] <FrozenFire> GridFieldDataColumns::setDisplayFields is used to customize the fields which are displayed as columns for each object
96: [06:31:00] <FrozenFire> setFieldFormatting is to apply customized formatting to the displayed fields.
97: [06:32:00] <magical_octopus> im getting it just say Image_Cached now
98: [06:33:00] <magical_octopus> http://www.sspaste.com/paste/show/50fb8fc346989
99: [06:33:00] <FrozenFire> Odd
100: [06:33:00] <magical_octopus> I may have done something wrong
101: [06:34:00] <FrozenFire> Guess you could instead do $image->CroppedImage(50, 50)->forTemplate()
102: [06:34:00] <FrozenFire> That'll explicitly say to render it as HTML
103: [06:34:00] <magical_octopus> i need a thumbnail of Photo in the Photo field in gridfield
104: [06:35:00] <magical_octopus> thanks :
105: [06:35:00] <magical_octopus> that worked
106: [06:35:00] <magical_octopus> :)
107: [06:39:00] * howardgrigg quit (Ping timeout: 245 seconds)
108: [06:41:00] * howardgrigg has joined #silverstripe
109: [06:45:00] * magical_octopus has left #silverstripe
110: [06:54:00] * Shrike_Finland quit (Quit: Leaving.)
111: [07:01:00] * travis-ci has joined #silverstripe
112: [07:01:00] * travis-ci has left #silverstripe
113: [07:01:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4260923
114: [07:01:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/fa35f3eb67f3...3d921e7459fd
115: [07:01:00] <travis-ci> [travis-ci] silverstripe/sapphire#1195 (3.0 - 3d921e7 : Will Rossiter): The build is still failing.
116: [07:15:00] * liam has joined #silverstripe
117: [07:34:00] * liam quit (Quit: liam)
118: [07:39:00] * liam has joined #silverstripe
119: [07:46:00] * liam quit (Quit: liam)
120: [07:52:00] * Shrike_Finland has joined #silverstripe
121: [07:54:00] * Emil_Blume quit (Ping timeout: 240 seconds)
122: [07:55:00] * liam has joined #silverstripe
123: [08:08:00] * liam quit (Quit: liam)
124: [08:10:00] * DesignerX quit (Read error: Connection reset by peer)
125: [08:49:00] * DesignerX has joined #silverstripe
126: [08:52:00] * nhorstmeier has joined #silverstripe
127: [08:54:00] * DesignerX quit (Read error: Connection reset by peer)
128: [08:55:00] * DesignerX has joined #silverstripe
129: [09:04:00] <DesignerX> hi, what happend to sitemap in SS3 ?
130: [09:06:00] * liam has joined #silverstripe
131: [09:06:00] <DesignerX> It used to be mydomain.com/sitemap ? !
132: [09:44:00] * Emil_Blume has joined #silverstripe
133: [09:47:00] * DesignerX quit (Read error: Operation timed out)
134: [09:59:00] * nhorstmeier quit (Remote host closed the connection)
135: [10:29:00] * Unlearned has joined #silverstripe
136: [10:50:00] * lx-bln has joined #silverstripe
137: [10:52:00] * DesignerX has joined #silverstripe
138: [10:55:00] * DesignerX quit (Client Quit)
139: [11:02:00] * Err404NotFound quit (Read error: Operation timed out)
140: [11:02:00] * Error404NotFound has joined #silverstripe
141: [11:05:00] * lx-bln quit (Remote host closed the connection)
142: [11:08:00] * lx-bln quit (Remote host closed the connection)
143: [11:08:00] * lx-bln has joined #silverstripe
144: [11:14:00] * zfmf has joined #silverstripe
145: [11:35:00] * ferge1 has left #silverstripe
146: [11:47:00] * liam has left #silverstripe
147: [11:48:00] <Shrike_Finland> Good day, stripers
148: [11:53:00] <Shrike_Finland> How would one make function to count all published items on certain DataObject and then use it on template for dividing grid by 12 and getting needed "span$functionname" to layout one object from these DataObjects?
149: [11:55:00] <Shrike_Finland> I think it's something like this: $count = DB::query("SELECT COUNT(*) FROM Dog")->value(); But I need checking for 'Published' = yes
150: [11:57:00] * gelignite has joined #silverstripe
151: [12:03:00] <zfmf> Shrike_Finland: see here: http://doc.silverstripe.org/framework/en/topics/datamodel Dog::get()->filter(array('Published'=>'yes'))->count();
152: [12:05:00] * Error404NotFound quit (Disconnected by services)
153: [12:06:00] * Err404NotFound has joined #silverstripe
154: [12:08:00] <Shrike_Finland> zfmf: thanx, of coz this is a great link
155: [12:13:00] * priithansen_ has joined #silverstripe
156: [12:15:00] * priithansen_ is now known as priithansen
157: [12:15:00] * priithansen quit (Ping timeout: 245 seconds)
158: [12:23:00] <Shrike_Finland> If someone searching (from this channel) working solution for this count-case, I pasted the code here: http://www.sspaste.com/paste/show/50fbe1561e0a1
159: [12:28:00] * zfmf has left #silverstripe
160: [12:32:00] * zfmf has joined #silverstripe
161: [12:41:00] * pex__ has joined #silverstripe
162: [12:41:00] <pex__> hi, how can I change background color in GD library?
163: [12:58:00] * pex__1 has joined #silverstripe
164: [12:58:00] * pex__ quit (Ping timeout: 244 seconds)
165: [13:07:00] * Emil_Blume quit (Read error: Connection reset by peer)
166: [13:18:00] * pex__1 has left #silverstripe
167: [13:23:00] <Shrike_Finland> Is there a possibility to disable pagetype by default from showing up in the main menu?
168: [13:24:00] <Shrike_Finland> Found it: http://www.silverstripe.org/customising-the-cms/show/13888
169: [13:29:00] * DesignerX has joined #silverstripe
170: [13:33:00] <DesignerX> hi. How can I add sort to GF in ModelAdmin ?
171: [13:37:00] * lx-berlin has left #silverstripe
172: [13:37:00] * lx-berlin has joined #silverstripe
173: [13:38:00] * zfmf quit (Read error: Connection reset by peer)
174: [13:42:00] * Err404NotFound quit (Ping timeout: 244 seconds)
175: [13:42:00] * zfmf has joined #silverstripe
176: [13:45:00] * DesignerX quit (Ping timeout: 252 seconds)
177: [14:22:00] * Guits quit (Ping timeout: 260 seconds)
178: [14:27:00] * DesignerX has joined #silverstripe
179: [15:02:00] * zfmf has left #silverstripe
180: [15:04:00] * lx-berlin has joined #silverstripe
181: [15:06:00] * lx-berlin_ is now known as lx-berlin
182: [15:06:00] * lx-berlin quit (Read error: Connection reset by peer)
183: [15:06:00] * lx-berlin_ has joined #silverstripe
184: [15:08:00] * lx-berlin has left #silverstripe
185: [15:08:00] * lx-berlin_ is now known as lx-berlin
186: [15:08:00] * lx-berlin quit (Read error: Connection reset by peer)
187: [15:08:00] * lx-berlin_ has joined #silverstripe
188: [15:12:00] * Guits has joined #silverstripe
189: [15:18:00] * Guits quit (Ping timeout: 252 seconds)
190: [15:26:00] * Guits has joined #silverstripe
191: [15:41:00] * EPIK has joined #silverstripe
192: [15:51:00] * Bollig|DesignCty quit (Quit: Connection Reset by Mexicans with wirecutters)
193: [16:10:00] * zfmf has joined #silverstripe
194: [16:14:00] * Error404NotFound has joined #silverstripe
195: [16:44:00] * DesignerX quit (Ping timeout: 255 seconds)
196: [16:49:00] * DesignerX has joined #silverstripe
197: [17:53:00] * zfmf has left #silverstripe
198: [19:17:00] * Emil_Blume has joined #silverstripe
199: [19:17:00] * DesignerX quit (Ping timeout: 240 seconds)
200: [19:26:00] * Pyromanik has joined #silverstripe
201: [19:27:00] * irogue quit ()
202: [19:27:00] <Pyromanik> Urgh, Monday. Morning.
203: [19:28:00] <ss23> Rain is pouring
204: [19:29:00] * Emil_Blume quit (Quit: Leaving.)
205: [19:30:00] <EPIK> It's sunday afternoon here :]
206: [19:32:00] <ss23> Monday morning here... I should get ready for owrk
207: [19:43:00] * irogue has joined #silverstripe
208: [20:00:00] * dendeffe has joined #silverstripe
209: [20:06:00] <Pyromanik> sup irogue
210: [20:06:00] <Pyromanik> have a good weekend?
211: [20:13:00] <irogue> yehh
212: [20:13:00] <irogue> got drunk, played Tropico 4
213: [20:14:00] <irogue> wbu?
214: [20:26:00] <Shrike_Finland> Cold here
215: [20:27:00] * DesignerX has joined #silverstripe
216: [20:27:00] <Shrike_Finland> Actually a bit warmer than few days ago
217: [20:30:00] <Shrike_Finland> Is there any good galley module for SS3 yet?
218: [20:31:00] <priithansen> Anyone know how to get all pages with the same translationgroupID with translatable module. Thinking leftjoin is for something like that?
219: [20:31:00] <Pyromanik> you build them in about 20 seconds anyway.
220: [20:31:00] <Pyromanik> there never was.
221: [20:31:00] <Pyromanik> irogue: got drunk, hit on by a drunk irogue telling me YOLO over steam chat.
222: [20:32:00] <Pyromanik> and started wondering about object dbs
223: [20:32:00] <Pyromanik> then I got mad about prototypal inheritance
224: [20:34:00] <DesignerX> Shrike_Finland: I have a gallery with ModelAdmin & widget
225: [20:35:00] <DesignerX> Shrike_Finland: YOu need to create the gallery(s) in model admin then use the widget to select a gallery . For now only uses FancyBox but working onj more options & more gallery plugins
226: [20:39:00] <Shrike_Finland> DesignerX: Sounds great! I've been thinking, what would be the best way to handle images anyway - Images on Flickr/DropBox or some other 3rd party service and connector between it and SS3 or built in solution in SS3...
227: [20:40:00] <Shrike_Finland> What would be the easiest way for customer to upload new images and almost without any extra hassle.
228: [20:41:00] <DesignerX> Shrike_Finland: well, SS has a good upload function now, but if the client alreay using facebook fanpage then conntecting to that fan page albums is also a good idea
229: [20:42:00] <Pyromanik> I think opening a third party service and uploading then finding the CDN link and moving back into SS is more complicated.
230: [20:42:00] <Pyromanik> Shrike_Finland: drag and drop into SS is too technical?
231: [20:42:00] <Shrike_Finland> Yes, that's what I have been thinking about. Customers are usually quite lazy to upload anything if it's too "technical"
232: [20:42:00] <Pyromanik> there's that CDN question again...
233: [20:42:00] <Shrike_Finland> No, but first accessing the admin panel, selecting right page or module etc.
234: [20:43:00] <Pyromanik> some pictures they put up are 7Mb
235: [20:43:00] <DesignerX> lolz
236: [20:43:00] <Pyromanik> DesignerX: nah, they can't be bothered resizing.
237: [20:43:00] <DesignerX> Pyromanik: they cant be bothered dragging big images, too heavy
238: [20:43:00] <Pyromanik> We've got one (small) client using 2.33 Gb of server because they just upload straight out of the digital camera.
239: [20:44:00] <Pyromanik> put the post max file size down to 4mb recently to try and fix it, lol
240: [20:44:00] <Pyromanik> and I'm all o.0
241: [20:44:00] <Pyromanik> nope
242: [20:44:00] <Shrike_Finland> LOL
243: [20:44:00] <Pyromanik> Apache/php
244: [20:44:00] <Pyromanik> not SS
245: [20:44:00] <DesignerX> doesnt SS have a max image size ?
246: [20:45:00] <Pyromanik> I think you might be able to
247: [20:45:00] <Pyromanik> maximum size of post data, maximum amount of memory to use, etc.
248: [20:45:00] <DesignerX> a good idea would be to set a max image dimensions & size in MB
249: [20:45:00] <Pyromanik> but they upload first
250: [20:45:00] <Shrike_Finland> I'm thinking more customers who use smart phones and take "everyday" pictures and then would have a brains off -solution. For example, if the images are automatically forwarded to Dropbox and SS would go to pickup them from there
251: [20:45:00] <Pyromanik> get denied second
252: [20:46:00] <Shrike_Finland> Could be it, too
253: [20:46:00] <Pyromanik> Shrike_Finland: you mean instagram, right?
254: [20:46:00] <Shrike_Finland> :)'
255: [20:47:00] <DesignerX> I will try & setup Github so all my code is online
256: [20:47:00] <Shrike_Finland> DesignerX: why not
257: [20:47:00] <DesignerX> Shrike_Finland: we both have alot we can do , maybe we can team up on this gallery idea ?
258: [20:48:00] <Shrike_Finland> Great!
259: [20:48:00] <DesignerX> Shrike_Finland: what time is it in your place ?
260: [20:49:00] <DesignerX> ah !
261: [20:49:00] <Pyromanik> Finland time.
262: [20:49:00] <DesignerX> ts 7:50 am & I slept at 4am
263: [20:49:00] <Pyromanik> at a guess, GMT +1
264: [20:50:00] <DesignerX> too many good ideas to let them go
265: [20:50:00] <DesignerX> nope , was working on my reponsive theme with YAML CSS
266: [20:50:00] <Pyromanik> not enough sleep.
267: [20:51:00] <DesignerX> Shrike_Finland: till what time will u be on ?
268: [20:51:00] <Shrike_Finland> 22:51
269: [20:51:00] <DesignerX> + in few hours need to submit my new house rent application(s)
270: [20:52:00] <DesignerX> Shrike_Finland: I day dream about sleeping , thats about it
271: [20:52:00] <Shrike_Finland> DesignerX: U ever sleep? :D I'm off to sleep very soon...
272: [20:53:00] <Shrike_Finland> :D
273: [20:53:00] <DesignerX> Shrike_Finland: I should be back in 4-5 hours, U better be awake :)
274: [20:53:00] <DesignerX> lolz, then when U wake up I should be back & will try clean up my code & send it to u ..
275: [20:53:00] <DesignerX> gtg
276: [20:54:00] <Shrike_Finland> Let's see - I have to get up early...
277: [20:54:00] <Shrike_Finland> Workday, you know
278: [20:57:00] * instabil has joined #silverstripe
279: [21:01:00] * MichaelDesignerX has joined #silverstripe
280: [21:04:00] * DesignerX quit (Ping timeout: 252 seconds)
281: [21:09:00] * dendeffe quit (Quit: dendeffe)
282: [21:16:00] * Pyromanik has left #silverstripe
283: [21:17:00] * tictoc is now known as tict0c
284: [21:17:00] * tictoc has joined #silverstripe
285: [21:19:00] <tict0c> i have moved an action from /aaa/bbb/x to /ccc/x .. is there an easy way to alias one of them so they are handled by the same controller?
286: [21:19:00] <tict0c> (for backwards compatibility with old api implementations)
287: [21:25:00] * Pyromanik has joined #silverstripe
288: [21:26:00] <Pyromanik> is there still a $this->directBack() ?
289: [21:26:00] <Pyromanik> or do I do a $this->redirect($this->Link()) ?
290: [21:27:00] <tict0c> Pyromanik: i have nothing catching the /aaa/bbb/x requests now, not sure how to do that
291: [21:27:00] <tict0c> it's ss3.0
292: [21:27:00] <irogue> tict0c: ss 2.4 or 3.0?
293: [21:28:00] <tict0c> i basically want to simulate rewrites but have no access to the htaccess file
294: [21:28:00] <irogue> tict0c: http://doc.silverstripe.com/framework/en/topics/configuration#priorities
295: [21:29:00] <irogue> i've never done it (since i'm still running 2.4), so can't really help any further than to point you in that direction
296: [21:29:00] <Pyromanik> wait what
297: [21:30:00] <Pyromanik> director
298: [21:30:00] <Pyromanik> _config/routes.yml
299: [21:30:00] <Pyromanik> or something like that
300: [21:30:00] <Pyromanik> oh
301: [21:30:00] <Pyromanik> rules
302: [21:31:00] <Pyromanik> Director::add_rule();
303: [21:31:00] <Pyromanik> and that link irogue posted
304: [21:31:00] <Pyromanik> http://doc.silverstripe.com/framework/en/reference/director#routing-rules
305: [21:31:00] <tict0c> oh, cool, thanks, i'll google it and check it out
306: [21:31:00] <Pyromanik> the old way is still supported too though, with PHP in _config.php
307: [21:32:00] <tict0c> so yml is the ss3 way of doing it? cool, i'll give it a shot
308: [21:32:00] <Pyromanik> mmm
309: [21:32:00] <Pyromanik> afaik
310: [21:32:00] <Pyromanik> although legacy is still supported
311: [21:33:00] <irogue> yeah but throws a deprecation notice
312: [21:35:00] <irogue> very yes
313: [21:35:00] <Pyromanik> oh yeh
314: [21:35:00] <Pyromanik> cool, didn't know that
315: [21:35:00] * ss23 throws you
316: [21:35:00] <ss23> Could be worse, it could be in RoR
317: [21:35:00] <ss23> :)
318: [21:35:00] <Pyromanik> RoR is a joke now?
319: [21:36:00] <Pyromanik> No.
320: [21:36:00] <ss23> Have you just not been on the internet for the past month?
321: [21:36:00] <ss23> Dude
322: [21:36:00] <Pyromanik> also, why?
323: [21:36:00] <ss23> hahah rofl, yes Pyromanik!
324: [21:36:00] <Pyromanik> pitty all the hipsters built half the modern web out of it then.
325: [21:36:00] <irogue> Pyromanik: RoR is giving Java a run for its money
326: [21:37:00] <Pyromanik> (LOLOLOL, that was a troll)
327: [21:37:00] <irogue> java's always insecure, haha
328: [21:37:00] <Pyromanik> too easy to hax?
329: [21:37:00] <Pyromanik> also didn't know java was insecure :<
330: [21:37:00] <Pyromanik> BY JAVA YOU MEAN JAVASCRIPT RITE?
331: [21:37:00] <Pyromanik> just
332: [21:37:00] <Pyromanik> yeah, but I mean like what?
333: [21:37:00] <irogue> ALL OF THE STUPID SECURITY HOLES
334: [21:37:00] <Pyromanik> rails fanbois get their come uppance?
335: [21:38:00] <Pyromanik> hurr hurr
336: [21:38:00] <irogue> "There are multiple weaknesses in the parameter parsing code for Ruby on Rails which allows attackers to bypass authentication systems, inject arbitrary SQL...and execute arbitrary code or perform a denial of service attack on a Rails application"
337: [21:39:00] <Pyromanik> doesn't seem like that big of an issue.
338: [21:39:00] <Pyromanik> haha
339: [21:39:00] <Pyromanik> close it.
340: [21:39:00] <Pyromanik> parameter parsing code
341: [21:40:00] <Pyromanik> doesn't seem possible, other than ror fanbois being retarded like we all knew all along
342: [21:40:00] <Pyromanik> also, how does one get a project that large to write shit code?
343: [21:41:00] * tankr has joined #silverstripe
344: [21:41:00] <irogue> their equivant of is_null() doesn't actually check for all possible values of null
345: [21:41:00] <irogue> okay, so to summarise the most recent RoR issue
346: [21:41:00] <Pyromanik> so when does python get it's big security flaw reveal?
347: [21:42:00] <irogue> that doesn't seem *too* much of a hole, but is *very* stupid coding
348: [21:43:00] <irogue> "oops, i forgot some nulls"
349: [21:44:00] * Motoservo quit (Quit: Over & out.)
350: [21:44:00] <irogue> oh, and strip_tags wasn't actually stripping tags properly
351: [21:44:00] <irogue> nor does escape_html
352: [21:44:00] * Motoservo has joined #silverstripe
353: [21:46:00] <ss23> Tower 2.0
354: [21:46:00] <ss23> http://imgur.com/MQ1D40Q.jpg http://i.imgur.com/TmfLLHp.jpg http://i.imgur.com/F29Q79Z.jpg
355: [21:47:00] <ss23> 10:46:51 < irogue> their equivant of is_null() doesn't actually check for all possible values of null
356: [21:47:00] <irogue> it's just humerous to realise exactly how stupid it is
357: [21:47:00] <irogue> oh for sure
358: [21:47:00] <ss23> Who cares how you sumraize, it end result is "lol anyone can run arbitary code"
359: [21:49:00] <irogue> phones r broken
360: [21:49:00] <ss23> ewpz...?
361: [21:49:00] <irogue> ewpz
362: [21:50:00] <ss23> I see. ewpz == phones are borken
363: [21:50:00] <irogue> it's the most common ewpz around here
364: [21:50:00] <ss23> IT DOESN'T
365: [21:50:00] <ss23> NO
366: [21:50:00] <ss23> I LIED
367: [21:50:00] <irogue> yep
368: [21:50:00] <ss23> makes sense
369: [21:51:00] <irogue> i think i need to take over the phone system
370: [21:51:00] <ss23> Pyromanik: u trollin'?
371: [21:51:00] <ss23> srsly, I can't tell whether you just don't keep up with any news of any sort, or you're master troll
372: [21:51:00] <Pyromanik> so what's so insecure about the javas?
373: [21:52:00] <irogue> there's a new security exploit practically every day, and Oracle's response is generally "oops. we'll fix it when we feel like it. ask us again in a month."
374: [21:52:00] <Pyromanik> larf
375: [21:52:00] <Pyromanik> bit of both
376: [21:52:00] <irogue> oracle aren't known for giving a shit about bugs... see: MySQL
377: [21:52:00] <Pyromanik> Sun wouldn't let that happen
378: [21:53:00] <Pyromanik> urgh
379: [21:53:00] <Pyromanik> yeh yeh
380: [21:53:00] <Pyromanik> ^^
381: [21:53:00] <Pyromanik> someone attempted to put the dishwasher on
382: [21:53:00] <irogue> y'know how when you run a java applet, it's all "yo dawg, you sure you want to run this thang?"
383: [21:53:00] <Pyromanik> also, so oracle: same shit, different product
384: [21:54:00] <Pyromanik> but then they opened it before even the soap got introduced
385: [21:54:00] <Pyromanik> and then didn't restart it
386: [21:54:00] <Pyromanik> it's been there all weekend, with dirty water pooled in the bottom of it
387: [21:54:00] <Pyromanik> and wet soap
388: [21:54:00] <irogue> the current exploit allows you to bypass the permission thing
389: [21:54:00] <Pyromanik> it sprayed up and losened up a heap of dirt
390: [21:55:00] <Pyromanik> haha irogue, winning.
391: [21:55:00] <irogue> auto-grant your applet permission to not only run, but break out of the sandbox
392: [21:55:00] <Pyromanik> so now it stinks like hell, nothing's clean and the soap is rock solid and won't come out of the soap dispenser
393: [21:55:00] <Pyromanik> so can't just re-run it
394: [21:56:00] <irogue> "Notably, a recent study of the Blackhole crimeware kit found that Java bugs were being used to exploit systems in 77% of all successful attacks, compared with 18% of attacks involving a specific PDF vulnerability, 2% involving other PDF vulnerabilities, followed by MDAC, HCP and Flash bugs (1% each)."
395: [22:00:00] <irogue> hahaha: http://24.media.tumblr.com/219c3ce924589e420348f87e4bfcb088/tumblr_mgm2n1D6Rf1qztlmyo1_500.jpg
396: [22:04:00] * Shrike_Finland quit (Quit: Leaving.)
397: [22:05:00] * SightUnseen has joined #silverstripe
398: [22:07:00] * SightUnseen has left #silverstripe
399: [22:10:00] * MichaelDesignerX quit (Ping timeout: 245 seconds)
400: [22:19:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
401: [22:39:00] <priithansen> how to get gridfield column titles multilingual? This does not want to work > static $field_labels = array('Title' => _t('CatalogItem.TITLEFIELD', 'Title'));
402: [22:39:00] <Pyromanik> irogue: haahhaha, muffins, winning.
403: [22:40:00] <priithansen> don't follow
404: [22:40:00] <Pyromanik> priithansen: multilingual or multibyte?
405: [22:52:00] <Pyromanik> priithansen: is the language you're trying to translate to a multibyte character language?
406: [22:53:00] <priithansen> no I don't think so
407: [22:53:00] <Pyromanik> try using $summary_fields on your dataobject
408: [22:53:00] <priithansen> the above line give php error about not liking the _t function where it is
409: [22:54:00] <Pyromanik> or maybe you're calling the _t incorrectly, I'm not sure.
410: [22:54:00] <priithansen> summary fields appears to only change which fields get there but the doc's now say to change the title with field_labels
411: [22:55:00] <priithansen> same thing with both of them PHP Parse error: syntax error, unexpected '(', expecting ')' in /Applications/MAMP/htdocs/remoreks/mysite/code/CatalogItem.php on line 18
412: [22:55:00] <priithansen> line 18 is 'Title' => _t('CatalogItem.TITLEFIELD', 'Title'),
413: [22:56:00] * ray has joined #silverstripe
414: [22:57:00] <Pyromanik> working just got hard
415: [22:57:00] <Pyromanik> I can't see.
416: [22:57:00] <Pyromanik> fuck
417: [22:58:00] <Pyromanik> 'ObjectFieldName' => 'TitleInGridField'
418: [22:58:00] <Pyromanik> priithansen: you can set the labels for the fields
419: [22:58:00] <Pyromanik> $summary_fields goes
420: [22:59:00] <Pyromanik> whatever called for summary fields
421: [22:59:00] <priithansen> that does not change the column name anymore
422: [22:59:00] <Pyromanik> does for me I think
423: [22:59:00] <Pyromanik> in any case, it won't help you translate, just hardcode a translation in.
424: [22:59:00] <Pyromanik> or title in summary
425: [22:59:00] <Pyromanik> or whatevers
426: [23:00:00] <Pyromanik> but it's his Sunday night, so probably not.
427: [23:00:00] <Pyromanik> I'm not too deep into gridfield, so I'm not really sure on the specifics, sorry
428: [23:00:00] <Pyromanik> FrozenFire might be able to help you if he's available
429: [23:01:00] <priithansen> would like to keep all the php stuff consistently in english and then translate everything user facing back to estonian
430: [23:01:00] <priithansen> luckily there's no hurry so I can harras him tomorrow
431: [23:02:00] <priithansen> Pyromanik http://doc.silverstripe.org/framework/en/reference/modeladmin#result-columns thats the doc about field_labels
432: [23:03:00] <priithansen> if my page has_many dataobjects then the grid field columns titles only change with field_labels for me
433: [23:05:00] <FrozenFire> Pyromanik, Well, Sunday afternoon, actually
434: [23:06:00] <irogue> so i should get lunch
435: [23:06:00] <irogue> it just turned monday afternoon
436: [23:06:00] <FrozenFire> I believe the trick for summary fields would be to overload DataObject::summaryFields
437: [23:06:00] <irogue> speaking of which
438: [23:07:00] <FrozenFire> Then do foreach(parent::summaryFields() as $field => &$title) { $title = _($title); }
439: [23:07:00] <FrozenFire> Or gettext, or whatever it is
440: [23:07:00] <FrozenFire> I don't do too much ext/intl stuff
441: [23:07:00] <FrozenFire> Or something to that effect
442: [23:08:00] <priithansen> hm thanks for the ideas
443: [23:09:00] <priithansen> since the backend won't be used in other languages anyway probably going to hardcode it
444: [23:10:00] <Pyromanik> the reason you're getting an error is because you're trying to call a function in a class member declaration.
445: [23:10:00] <Pyromanik> priithansen: oh yeah, of course.
446: [23:11:00] <Pyromanik> but then of course, ti's static i think, so that may or may not pose it's own problems.
447: [23:11:00] <Pyromanik> if you want to call _t() you'll need to do it from the constructor
448: [23:11:00] <Pyromanik> and set the value of $field_labels that way
449: [23:12:00] <priithansen> there's always an if lurking around somewhere
450: [23:46:00] * OomElvis has joined #silverstripe
451: [23:50:00] * NobrainerWeb has joined #silverstripe
452: [23:51:00] <NobrainerWeb> Hello guys - on my FrontPage class i want to call a method on my GalleryPage class, how can i do this?
453: [23:52:00] <NobrainerWeb> The function on the GalleryPage is: is public function getFeaturedImages() { return $this->GalleryImages("Active = 1 AND Featured = 1", "Sort ASC", NUll, 5); }
454: [23:53:00] <NobrainerWeb> Function work well on the GalleryPage, but now i need the data the function returns on my frontpage
455: [23:55:00] * cloph_away1 has joined #silverstripe
456: [23:56:00] * cloph_away quit (Ping timeout: 248 seconds)
457: [23:57:00] * perverse`w has joined #silverstripe
458: [23:58:00] <perverse`w> morning all

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