#silverstripe IRC Log

IRC log for 4 February 2013

All timestamps are in UTC.

1: [00:05:00] <Pyromanik> joha... oh he quit. USE THE ORM
2: [00:06:00] <Pyromanik> ><
3: [00:06:00] <simon_w> joha, you've turned off your SQLQuery!
4: [00:06:00] <Pyromanik> USE THE FORCE, LUKE
5: [00:06:00] <Pyromanik> haha
6: [00:06:00] <Pyromanik> the minds
7: [00:06:00] <Pyromanik> they are alike
8: [00:06:00] <simon_w> USE THE ORM, joha!
9: [00:07:00] * joha has joined #silverstripe
10: [00:07:00] <simon_w> Couldn't resist :p
11: [00:08:00] <simon_w> joha, use the ORM
12: [00:08:00] <simon_w> $a = A::get()->byID(1); $a->B = null, $a->write();
13: [00:08:00] <Pyromanik> ^
14: [00:09:00] * simon_w is resisting thinking up more star wars references now
15: [00:09:00] * gelignite has joined #silverstripe
16: [00:09:00] <Pyromanik> SQLQuery is like the darth vader
17: [00:09:00] <simon_w> only Han says something like that :p
18: [00:09:00] <Pyromanik> the ORM is your sister!?
19: [00:09:00] <simon_w> *brother
20: [00:10:00] <simon_w> And DB::query() is the emproper, since no good can ever come of it
21: [00:10:00] <Pyromanik> the father of the ORM, but is bad.
22: [00:11:00] <Pyromanik> indeed
23: [00:11:00] * Pyromanik suddenly remembers
24: [00:12:00] <Pyromanik> simon_w: currently desktop bg http://iforce.co.nz/i/h3ntd0ld.eef.jpg
25: [00:12:00] <Pyromanik> libz, is that gzip?
26: [00:12:00] <Pyromanik> zlib?
27: [00:13:00] <joha> thanks Simon_w, that works
28: [00:13:00] <simon_w> Pyromanik, awesome :D
29: [00:13:00] <Pyromanik> joha: 12:26 Pyromanik joha: you set a new value and write it?
30: [00:13:00] <Pyromanik> just so you know, that's exactly what I meant.
31: [00:13:00] <simon_w> yeah, libz is zlib
32: [00:13:00] <joha> but one more question, how to delete a whole row?
33: [00:13:00] <Pyromanik> Always use the ORM where you can.
34: [00:13:00] <simon_w> joha, $a->delete()
35: [00:13:00] <Pyromanik> joha: ->delet()
36: [00:13:00] <Pyromanik> +e
37: [00:14:00] <joha> sweet, thanks!
38: [00:14:00] <simon_w> Too slow Pyromanik!
39: [00:14:00] <Pyromanik> you foil me again simon_w
40: [00:14:00] <simon_w> Join me, and together we can rule the channel!
41: [00:14:00] <joha> ...
42: [00:14:00] <Pyromanik> joha: http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management
43: [00:15:00] <Pyromanik> what does git rely on?
44: [00:16:00] <Pyromanik> joha: oh, that's a bit silly.
45: [00:16:00] <Pyromanik> also
46: [00:16:00] <Pyromanik> how to get dep info from a dpkg?
47: [00:16:00] <joha> the link you sent me doesnt teach me how to delete though
48: [00:17:00] <simon_w> Pyromanik, Depends: libc6 (>= 2.9), libcurl3-gnutls (>= 7.16.2-1), libexpat1 (>= 1.95.8), zlib1g (>= 1:1.2.0), perl-modules, liberror-perl, git-man (>> 1:1.7.10.4), git-man (<< 1:1.7.10.4-.)
49: [00:18:00] <Pyromanik> joha: how about this then: http://api.silverstripe.org/3.0/framework/model/DataObject.html
50: [00:18:00] <simon_w> That's from apt-cache show git
51: [00:18:00] <Pyromanik> show
52: [00:18:00] <Pyromanik> thanks
53: [00:18:00] <Pyromanik> oh, and apt-cache
54: [00:22:00] <joha> yes exactly..
55: [00:22:00] <joha> that helps
56: [00:56:00] * liam has joined #silverstripe
57: [00:57:00] <liam> can form fields be named so that when using $form->saveInto the field will update a related objects relationship?
58: [00:58:00] <liam> e.g. a checkboxsetfield that is for a has one related objects has many?
59: [00:58:00] <simon_w> Depending on the field, yes
60: [00:59:00] <simon_w> CheckboxSetField will work like that
61: [00:59:00] <liam> simon_w: yes but what is the syntax for naming?
62: [00:59:00] <howardgrigg> liam can you call it RelatedObjectID where the ID is the value returned from the form
63: [00:59:00] <simon_w> the name of the realtion
64: [00:59:00] * instabil quit (Read error: Connection reset by peer)
65: [00:59:00] <liam> e.g. HasOne.HasMany
66: [00:59:00] * dodo_ has joined #silverstripe
67: [00:59:00] <liam> or HasOneID.HasManyName
68: [00:59:00] <liam> ?
69: [00:59:00] <simon_w> howardgrigg, that's for a hasone
70: [00:59:00] <simon_w> liam, just HasManyName
71: [00:59:00] <simon_w> or ManyManyName
72: [01:00:00] <liam> simon_w: event if the hasmany is on the hasone?
73: [01:00:00] <simon_w> Huh? You're saving a relation through a relation?
74: [01:00:00] <dodo_> hey all... a quick question..
75: [01:00:00] <liam> even*
76: [01:00:00] <liam> hasone object*
77: [01:00:00] * pex__ has left #silverstripe
78: [01:01:00] <dodo_> what column of sitetree hold the information about page's status like published, deleted .. ... ..
79: [01:01:00] <simon_w> I'm fairly sure it's Status
80: [01:01:00] <dodo_> i want to filter my get() method based on page status.
81: [01:01:00] <dodo_> i get error using "Status = 'Published'"
82: [01:02:00] <liam> simon_w: yes
83: [01:03:00] <simon_w> liam, then should be HasOneName.HasManyName, assuming that notation works in general
84: [01:03:00] <liam> ok thanks ill give it a try
85: [01:04:00] <simon_w> dodo_, in SS3, it's a calculated value rather than a stored one
86: [01:04:00] <dodo_> Unknown column 'STATUS' in 'where clause'
87: [01:04:00] <dodo_> it says unknown column :(
88: [01:05:00] <simon_w> dodo_, if this is in the front end, then you automatically get only the pages that have been published
89: [01:07:00] <dodo_> it outputs everything thing.. including the deleted ones..
90: [01:07:00] <dodo_> im trying to output the blog entries as rss..
91: [01:07:00] <dodo_> well, it doesnt :( the rss outputs everything
92: [01:08:00] <simon_w> What's your ::get() line?
93: [01:08:00] <simon_w> It shouldn't be getting them
94: [01:08:00] <dodo_> im trying to filter them.
95: [01:10:00] <dodo_> return DataObject::get("BlogEntry", "\"SiteTree\".\"STATUS\" = 'Published'", "Date DESC", "", 10);
96: [01:10:00] <Pyromanik> dodo_: what version of silverstripe are you using?
97: [01:11:00] <Pyromanik> and that's not how you use get
98: [01:11:00] <simon_w> Status doesn't exist in 3
99: [01:11:00] <Pyromanik> and status doesn't exist in v3
100: [01:11:00] <Pyromanik> it was SiteTree.Status
101: [01:11:00] <simon_w> return BlogEntry::get()->sort('Date', 'DESC')->limit(10)
102: [01:11:00] <simon_w> Is that returning everything?
103: [01:11:00] <Pyromanik> and ^
104: [01:11:00] <Pyromanik> that's how you use get now.
105: [01:11:00] <dodo_> yes.. i get everything..
106: [01:11:00] <dodo_> v3
107: [01:11:00] <Pyromanik> and status isn't all uppercase
108: [01:12:00] <simon_w> Okay, try putting ?stage=Live at the end of your URL
109: [01:12:00] <dodo_> rss widget didnt work
110: [01:12:00] <Pyromanik> is this the rss widget or custom code?
111: [01:12:00] <Pyromanik> dodo_: change your code then try again.
112: [01:12:00] <dodo_> everything includes the deleted..
113: [01:12:00] <Pyromanik> also, just use the rss widget?
114: [01:13:00] <Pyromanik> it's because you're logged in as an admin, previewing all draft content.
115: [01:13:00] <dodo_> stage=live worked
116: [01:13:00] <Pyromanik> normal users see the live site
117: [01:13:00] <Pyromanik> which is what you see now
118: [01:14:00] <dodo_> the rss widget gives me a broken link..
119: [01:14:00] <Pyromanik> and rss widget worked for me.
120: [01:14:00] <Pyromanik> make sure you're using RSS Subscribe Widget
121: [01:14:00] <Pyromanik> not RSS widget, that is broken and should be removed from the module.
122: [01:14:00] <dodo_> lol.. k
123: [01:15:00] <dodo_> "Subscribe via RSS widget" is the widget
124: [01:15:00] <Pyromanik> works for me
125: [01:15:00] <dodo_> rss subscriber widget is what I used..
126: [01:16:00] <dodo_> just downloaded the widget
127: [01:16:00] <Pyromanik> and the blog
128: [01:16:00] <Pyromanik> are you using an up to date version?
129: [01:16:00] <Pyromanik> of both blog and widgets?
130: [01:17:00] <Pyromanik> widgets contains the ability to use it.
131: [01:17:00] <Pyromanik> blog contains the widget
132: [01:18:00] <dodo_> yep.. widgets are there.. when i use them, it give a broken link
133: [01:22:00] * mirrors has joined #silverstripe
134: [01:26:00] <mirrors> Hey I am having a problem with the ToggleCompositeField. When I open it in the backend it only opens about 40 px and then i need to scroll inside thart
135: [01:31:00] <simon_w> mirrors, CSS it up.
136: [01:31:00] <simon_w> Or see how SiteTree does the meta data one
137: [01:35:00] <irogue> it is truly amazing how hard some people find password resets
138: [01:42:00] <Pyromanik> irogue: s/resets//
139: [01:42:00] <Pyromanik> irogue: s/ resets/s./
140: [01:46:00] <irogue> that too
141: [01:46:00] <irogue> lol
142: [01:50:00] <Pyromanik> it is truly amazing how hard some people derp
143: [01:54:00] <spronk> it's truly amazing how hard some people find usernames and passwords
144: [01:54:00] <spronk> and can't understand the difference between the two
145: [01:55:00] <irogue> yeah
146: [01:55:00] <Pyromanik> YES BECAUSE THAT IS SECURE
147: [01:55:00] <Pyromanik> or expect them to know what their password is
148: [01:55:00] <Pyromanik> or ring up to ask you what their username is when it clearly says "EMAIL"
149: [01:56:00] <irogue> our old website, when i started here, stored the passwords in plaintext
150: [01:56:00] <irogue> and only allowed one user per customer account
151: [01:56:00] <irogue> was standard practice to just give people their password over the phone when they called
152: [01:56:00] <irogue> i was like NOPE
153: [01:57:00] <spronk> mmlol
154: [01:57:00] <spronk> we still have a system that stores plaintext passwords
155: [01:57:00] <irogue> still get people bitching about our "one user per person in your company" on the new site
156: [01:57:00] * joha_ has joined #silverstripe
157: [01:57:00] <irogue> "BUT THAT'S HARD, can't we all just share one?"
158: [01:57:00] <spronk> old legacy app, not too important, not really worth fixing
159: [01:58:00] <spronk> haha yeah
160: [01:58:00] <irogue> i'm like "so what happens when a staff member leaves? they still know your login and password."
161: [01:58:00] <irogue> "uhhhh..."
162: [01:59:00] <irogue> now my line is "you can have a shared login if you like, but you have to have one person's name attached to that account, and they're responsible for anything incorrectly (or maliciously) ordered by anyone else using that login"
163: [02:00:00] <joha_> hey Pyromanik, I have two pages in the module, is it very hard to delete the first page so that the module should jump to the second one directly?
164: [02:00:00] <irogue> noone wants to be the one person responsible for everyone else's potential fuckups
165: [02:00:00] <spronk> mm
166: [02:12:00] * jona has joined #silverstripe
167: [02:14:00] * joha_ quit (Ping timeout: 245 seconds)
168: [02:17:00] <Pyromanik> joha: I don't understand.
169: [02:18:00] <Pyromanik> irogue: did you twits the wdcnzs ?
170: [02:18:00] <Pyromanik> 'early 2013' is getting further and further away :<
171: [02:19:00] <jona> Pyromanik, my first page is extends ModelAdmin, and load gridField. once click on the field, the page jumps to another page extends DataObject
172: [02:19:00] <jona> now my boss only wants the second page and I dont know how to delete the first page..
173: [02:21:00] <Pyromanik> he can't have it.
174: [02:21:00] <Pyromanik> they're not pages, they're controllers
175: [02:21:00] <Pyromanik> is there only ever one of your second page?
176: [02:21:00] <Pyromanik> 'page' ?
177: [02:22:00] <Pyromanik> there is no second controller
178: [02:22:00] <jona> yes, only one controller
179: [02:22:00] <Pyromanik> if not, then removing model admin is a stupid way to go
180: [02:22:00] <Pyromanik> yes, model admin is the controller
181: [02:22:00] <Pyromanik> dataobject is model data
182: [02:22:00] <jona> can i add the second controller to model admin?
183: [02:22:00] <Pyromanik> you have a dataobject
184: [02:23:00] <Pyromanik> modeladmin admins many of the models you tell it to. that is ALL of them.
185: [02:23:00] <jona> can i add the Dataobject to the model admin?
186: [02:23:00] <Pyromanik> presumably with the ability to have many of them?
187: [02:23:00] <Pyromanik> the only reason you'd want to get rid of model admin is if there is ONLY EVER ONE of your data objects.
188: [02:24:00] <Pyromanik> if that is the case
189: [02:24:00] <Pyromanik> you could look at how the Settings tab does it
190: [02:24:00] <Pyromanik> you'll have to manually extend LeftAndMain
191: [02:26:00] <Pyromanik> yeah
192: [02:26:00] <Pyromanik> generally there's no reason someone would not want model admin
193: [02:26:00] <Pyromanik> but I don't know what you're trying to build
194: [02:26:00] <jona> the thing is, the current model admin i did only shows "create"
195: [02:26:00] <jona> o dear...
196: [02:27:00] <jona> so my boss think i dont need to press create
197: [02:27:00] <Pyromanik> why not?
198: [02:27:00] <Pyromanik> if it's a settings thing
199: [02:27:00] <Pyromanik> and you're making a website (ie, making use of the CMS)
200: [02:27:00] <Pyromanik> what config are you using?
201: [02:28:00] <Pyromanik> your boss really seems to love reinventing the wheel :<
202: [02:28:00] <jona> well, am pretty must doing the same thing as http://www.silverstripe.org/custom-menus-module/
203: [02:28:00] <Pyromanik> from the little information I have.
204: [02:28:00] <Pyromanik> then it probably belongs in an extension to SiteConfig rather than it's own dataobject.
205: [02:29:00] <Pyromanik> you want model admin.
206: [02:29:00] <jona> he just wants to put the second 'page' on model admin...
207: [02:30:00] * dodo_ quit (Ping timeout: 245 seconds)
208: [02:30:00] <jona> same as the screenshot of the website
209: [02:30:00] <jona> is there any possibility i can do this?
210: [02:31:00] * liam quit (Quit: liam)
211: [02:34:00] <jona> Pyromanik, yes you were right, the setting tab
212: [02:35:00] <Pyromanik> jona: for the record, what you see on that website is exactly TreeMultiselectField
213: [02:37:00] <jona> yes i see
214: [02:38:00] <jona> class SiteConfig extends DataObject implements PermissionProvider not module admin
215: [02:38:00] <jona> how to build a new module exactly like the setting tab though?
216: [02:45:00] <Pyromanik> you want to copy the controller, not the siteconfig
217: [02:45:00] <Pyromanik> yes
218: [02:46:00] <jona> Pyromanik where is the controller of the sitting tab though?
219: [02:46:00] <jona> sweet
220: [02:46:00] <Pyromanik> CMSSettingsController
221: [02:47:00] <Pyromanik> http://doc.silverstripe.org/framework/en/reference/urlvariabletools
222: [02:47:00] <jona> great!
223: [02:47:00] <Pyromanik> jona: protip: add ?debug_request to the URL when in dev mode to see which controller you've got.
224: [02:48:00] <Pyromanik> jona: I think though that making a new CMS tab is the wrong thing to do
225: [02:48:00] <Pyromanik> Personally I would add a GridField to the SiteConfig which contained my menus.
226: [02:48:00] <jona> lot
227: [02:48:00] <jona> yes that helps a lo
228: [02:50:00] <jona> sorry am confused
229: [02:50:00] <Pyromanik> ^ menus
230: [02:50:00] <Pyromanik> http://www.silverstripe.org/custom-menus-module/
231: [02:50:00] <jona> menus?
232: [02:51:00] <jona> ok...
233: [02:52:00] <Pyromanik> jona: a gridfield just gives an interface to manage data objects, nothing more.
234: [02:52:00] <jona> so you can put TreeMultiselectField into GridField?
235: [02:53:00] <Pyromanik> you can put a TreeMultiSelect into a DataObject, for sure.
236: [02:54:00] <Pyromanik> you haven't configured it properly probably
237: [02:54:00] <jona> the gridfield am using just shows the database information
238: [02:55:00] <Pyromanik> what does it look like? new GridField('Menus', 'Custom Menus', $this->owner->CustomMenus(), new GridFieldConfig_RelationEditor()) ?
239: [02:55:00] <jona> $form = parent::getEditForm($id, $fields); $fields = $form->Fields(); $gridField = $fields->fieldByName('CustomMenuHolder'); $field_config = $gridField->getConfig();
240: [02:56:00] <Pyromanik> that doesn't create a gridfield, just gets the scaffolded one
241: [02:57:00] <Pyromanik> sspaste.com ?
242: [02:57:00] <jona> may i send mine to your email add?
243: [02:58:00] <jona> to be honest
244: [02:58:00] <jona> i havent changed too much so far
245: [02:58:00] <jona> the structure is the same as http://www.silverstripe.org/custom-menus-module/
246: [03:06:00] * joha_ has joined #silverstripe
247: [03:06:00] * joha quit (Ping timeout: 245 seconds)
248: [03:07:00] * jona quit (Ping timeout: 245 seconds)
249: [03:12:00] <Pyromanik> simon_w: how to use filter?
250: [03:12:00] <simon_w> ->filter('Field', 'Value')?
251: [03:12:00] <Pyromanik> link to page if it exists will do
252: [03:12:00] <Pyromanik> docs are crap
253: [03:13:00] <howardgrigg> you can use an array if you want to filter on multiple fields
254: [03:13:00] <Pyromanik> so I don't need an array?
255: [03:13:00] <simon_w> Not for one thing
256: [03:13:00] <Pyromanik> awesome, thanks
257: [03:15:00] <Pyromanik> or something like that
258: [03:15:00] <Pyromanik> joha_: this is what I would do: http://sspaste.com/paste/show/510f27b45478c
259: [03:16:00] <irogue> my back is trying to kill me :(
260: [03:17:00] <Pyromanik> irogue: lucky there's a break after tomorrow!
261: [03:18:00] <irogue> something is spasming hard under my shoulderblade. hurts like a motherfucker. can't focus on anything at all.
262: [03:18:00] <simon_w> amputatee!
263: [03:18:00] <irogue> might have to go get something done about it tonight
264: [03:18:00] <irogue> idk if i'll last that long
265: [03:20:00] <joha_> Pyromanik, thanks am reading ..
266: [03:20:00] <Pyromanik> mm
267: [03:20:00] <Pyromanik> amputate
268: [03:21:00] * Jedateach has joined #silverstripe
269: [03:22:00] <Jedateach> if you $form->saveInto($dataobject) , does the dataobject still have unescaped data in it, if you are to access it's record fields?
270: [03:23:00] <Pyromanik> also joha_: http://doc.silverstripe.org/framework/en/topics/datamodel
271: [03:23:00] <Pyromanik> no idea :<
272: [03:24:00] <dodo_> hey...
273: [03:24:00] * dodo_ has joined #silverstripe
274: [03:25:00] <dodo_> silverstripe v3, blog archive .. is it working?
275: [03:27:00] <dodo_> the months / years doesnt seem to be populating..
276: [03:27:00] <dodo_> is anyone facing this issue?
277: [03:29:00] <joha_> Pyromanik, hmmmmm, the redirect works though
278: [03:35:00] <Pyromanik> dodo_: you've got something screwed with your blog install
279: [03:35:00] <Pyromanik> that or someone has recently committed something that's made it unstable
280: [03:35:00] <Pyromanik> everything works
281: [03:36:00] <Pyromanik> joha_: huh?
282: [03:37:00] <dodo_> hmm.. looks like so.. ill try to re-install the module and the widget
283: [03:39:00] <Pyromanik> yours should too
284: [03:39:00] <joha_> since i want to skip the first page..i can just redirect though...
285: [03:39:00] <joha_> but its hmmm, i think my boss wont like it
286: [03:39:00] <Pyromanik> make sure your folders are named correctly
287: [03:39:00] <Pyromanik> My RssSubscribeWidget also works without fault.
288: [03:40:00] <dodo_> folders are "blog" and "widgets" right?
289: [03:41:00] <Pyromanik> perhaps try pulling a slightly older commit
290: [03:41:00] <Pyromanik> dodo_: should be :S
291: [03:41:00] <Pyromanik> no idea what's wrong.
292: [03:41:00] <Pyromanik> ok cool
293: [03:41:00] <dodo_> rss works all fine now
294: [03:41:00] <Pyromanik> joha_: you can't redirect, no.
295: [03:42:00] <simon_w> Home time!
296: [03:43:00] <joha_> i know...
297: [03:43:00] <irogue> lies
298: [03:43:00] <Pyromanik> :<
299: [03:44:00] <Pyromanik> ok so
300: [03:44:00] <Pyromanik> like
301: [03:44:00] <Pyromanik> making an uploaded image save as a PNG when altered
302: [03:44:00] <Pyromanik> WHY SO HARD?
303: [03:45:00] <Pyromanik> STILL >.>
304: [03:45:00] <joha_> as its nearly 5pm?
305: [03:45:00] <Pyromanik> so
306: [03:45:00] <Pyromanik> earthquakes
307: [03:45:00] <Pyromanik> that's fun.
308: [03:46:00] * joha has joined #silverstripe
309: [03:46:00] <Pyromanik> http://geonet.org.nz/
310: [03:46:00] <Pyromanik> quite deep though
311: [03:49:00] * joha_ quit (Ping timeout: 245 seconds)
312: [03:49:00] * mirrors quit (Ping timeout: 245 seconds)
313: [03:50:00] * liam has joined #silverstripe
314: [03:50:00] * dodo_ quit (Ping timeout: 245 seconds)
315: [03:50:00] <Pyromanik> still uses get_one
316: [03:50:00] <Pyromanik> https://github.com/silverstripe/sapphire/blob/3.0/filesystem/File.php#L598
317: [03:56:00] * Stomach has joined #silverstripe
318: [03:58:00] * nickmolhoek quit (Quit: nickmolhoek)
319: [04:02:00] * joha quit (Quit: Page closed)
320: [04:08:00] * DigNZ quit (Quit: DigNZ)
321: [04:08:00] * Pyromanik has left #silverstripe
322: [04:15:00] * Zauberfisch quit (Ping timeout: 246 seconds)
323: [04:16:00] * Zauberfisch has joined #silverstripe
324: [04:26:00] * iamss has joined #silverstripe
325: [04:35:00] * liam quit (Quit: liam)
326: [04:41:00] * cloph_away has joined #silverstripe
327: [04:42:00] * cloph_away1 quit (Ping timeout: 255 seconds)
328: [04:49:00] * simon_w|air has joined #silverstripe
329: [04:51:00] * Stomach quit (Quit: Leaving.)
330: [05:07:00] * iamss quit (Ping timeout: 245 seconds)
331: [05:18:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
332: [05:46:00] * Shrike_Finland quit (Quit: Leaving.)
333: [05:57:00] * simon_w|air quit (Quit: This computer has gone to sleep)
334: [05:58:00] * simon_w|air has joined #silverstripe
335: [06:07:00] * dendeffe has joined #silverstripe
336: [06:11:00] * mirrors has joined #silverstripe
337: [06:12:00] <mirrors> If I Page::get()->First() for example is there a way I can access the methods in that pages controller
338: [06:15:00] * liam has joined #silverstripe
339: [06:15:00] <simon_w|air> no
340: [06:25:00] <mirrors> damn
341: [06:27:00] <liam> anyone know if any work has been done on a SS assets filesystem that can be used with cloud file storage API's?
342: [06:30:00] * aa_ has joined #silverstripe
343: [06:31:00] <aa_> eeeeeeeeeee
344: [06:31:00] <aa_> pp
345: [06:31:00] <aa_> bb
346: [06:31:00] <aa_> qqqq
347: [06:32:00] <howardgrigg> i think
348: [06:32:00] * ajshort has joined #silverstripe
349: [06:32:00] <aa_> hello
350: [06:32:00] <aa_> hellp
351: [06:32:00] <simon_w|air> aa_, wha?
352: [06:32:00] <howardgrigg> liam: it was built into the uploadify module
353: [06:33:00] <howardgrigg> boot
354: [06:33:00] <simon_w|air> Yeah, I was just typing it out :p
355: [06:33:00] <howardgrigg> thanks lol
356: [06:33:00] <simon_w|air> Aww, second ban
357: [06:33:00] <aa_> are there funny girls?
358: [06:34:00] <simon_w|air> Yes, but I doubt he's ever going to meet any
359: [06:34:00] <Bollig|DesignCty> 'Are there funny girls?' wow, great question... :/
360: [06:38:00] <Bollig|DesignCty> ;)
361: [06:39:00] <liam> what about ss 2.4?
362: [06:39:00] <howardgrigg> yea
363: [06:39:00] <howardgrigg> not in ss3
364: [06:39:00] <liam> howardgrigg: yes I have seen that module but can it be used in the cms for all uploads?
365: [06:40:00] <howardgrigg> it was good when it worked :p
366: [06:40:00] <Bollig|DesignCty> I'm getting GD to create an image sprite from a few images uploaded via the CMS. Anyone have any thoughts as to how I might use the ss caching system to only refresh the sprite if pages/images/whatever has changed vis the CMS?
367: [06:41:00] <simon_w|air> Bollig|DesignCty, save it using ID1_ID2_ID....jpg, check if that file already exists
368: [06:41:00] <liam> howardgrigg: do you know if it can be used in the CMS in the asset admin tab for the uploads?
369: [06:42:00] <howardgrigg> I'm not sure but probably if you use the assetadmin built into the dataobjectmanager module
370: [06:43:00] <Bollig|DesignCty> simon_w|air: how do I then keep track of and clean up all the old versions?
371: [06:43:00] <liam> howardgrigg: I have used it before but only in the front end
372: [06:43:00] <howardgrigg> liam: have you seen http://ss2doc-v2.ernie.silverstripe.com/old/uploadify#amazon_s3_integration
373: [06:44:00] <liam> I want to do something that will use a service like s3 but within the CMS for any uploads
374: [06:44:00] <liam> from what I am aware there are two places in the cms that uploads are done??? asset admin and in the site content field there is an insert image function which has an upload field...
375: [06:45:00] <Bollig|DesignCty> simon_w|air: I tried caching the .ss that calls the function so that it would only call the function when the cache was refreshed, but it seems to be being called all the time...
376: [06:46:00] <liam> howardgrigg: any ideas what the best approach would be to implement the s3 code from uploadify into SS3?
377: [06:47:00] <howardgrigg> no idea sorry - send a tweet to @_UncleCheese_ he wrote it so may know...
378: [06:48:00] * liam quit (Quit: liam)
379: [06:51:00] * Shrike_Finland has joined #silverstripe
380: [06:52:00] <Bollig|DesignCty> ooh nice
381: [06:52:00] <simon_w|air> Bollig|DesignCty, could have an onBeforeWrite hook that builds up the old string using $this->original['RelationID'] and unlink() it (assuming one of the IDs has been changed)
382: [06:53:00] <simon_w|air> Here, I'm assuming has_ones
383: [06:56:00] <mirrors> and with two jQuerys the js doesnt work
384: [06:56:00] <mirrors> SilverStripes DateField is adding jQuery even tho my Page.php init function is adding jQuery
385: [06:57:00] <mirrors> is there a way I can stop the DateField from adding the jQuery
386: [06:57:00] <Bollig|DesignCty> requirements:: block
387: [06:57:00] <Bollig|DesignCty> just block the jquery you don't want from init()
388: [06:58:00] <mirrors> your a legends
389: [06:58:00] <Bollig|DesignCty> lol
390: [06:58:00] <mirrors> much *
391: [06:58:00] <mirrors> thanks so fuck
392: [06:59:00] <mirrors> i was thinking thank f**k lol
393: [06:59:00] <Bollig|DesignCty> don't you hate when your hands type what you're thinking about?
394: [06:59:00] <mirrors> hahah yeah its the worst
395: [06:59:00] * SightUnseen has joined #silverstripe
396: [06:59:00] <Bollig|DesignCty> mirrors: that is a suer-annoying problem, gets new people to SS caught up often
397: [06:59:00] <mirrors> haha
398: [06:59:00] <howardgrigg> lol
399: [07:00:00] * SightUnseen has left #silverstripe
400: [07:00:00] <simon_w|air> Mostly because they don't want to use the jQuery provided for them for some crazy reason
401: [07:01:00] <mirrors> yeah...was trying ::clear in all sorts of places
402: [07:01:00] <simon_w|air> Bollig|DesignCty, Requirements::combine_files
403: [07:01:00] <mirrors> didnt know about ::block
404: [07:01:00] <Bollig|DesignCty> for some crazy reason = google cdn is faster and more likely to be cached than their crap shared host? :p
405: [07:02:00] <Bollig|DesignCty> why combine a 50k file that a user already has cached simon?
406: [07:03:00] <simon_w|air> Second, requests still get made, so you save yourself a DNS lookup and fetch for a 304
407: [07:03:00] <simon_w|air> First, you're assuming it's cached (bad assumption)
408: [07:03:00] <simon_w|air> Third, so you know it's your file that's the problem with something goes wrong, not some one you have no control over
409: [07:05:00] <simon_w|air> Fourth, because some markets let you position your server closer than a CDN node
410: [07:06:00] <Bollig|DesignCty> pfft, one file to compile vs 2... save what 1ms? :p
411: [07:06:00] <simon_w|air> Fifth, it makes the gzip of your custom javascript work a lot better
412: [07:06:00] <simon_w|air> Sixth, your browser has one file to compile
413: [07:06:00] <Bollig|DesignCty> of course there are cases for and against, but for someone starting out, chucking a site up on shared hosting, I'd say in 99% of the times it'll improve performance...
414: [07:07:00] <Bollig|DesignCty> ooh, wasn't aware of gzip working a lot better... why is that? sounds interesting.
415: [07:07:00] <simon_w|air> The more textual data you have, the better it works (lot higher chance of matching blocks)
416: [07:08:00] <simon_w|air> And, if they're on a shared host, JS download time is the least of their worries :p
417: [07:10:00] * willr_ has joined #silverstripe
418: [07:10:00] * willr_ quit (Changing host)
419: [07:10:00] * willr_ has joined #silverstripe
420: [07:10:00] <Bollig|DesignCty> ah cool, makes sense.
421: [07:11:00] <simon_w|air> willr_, you broke subclassing user forms!
422: [07:11:00] <willr_> Oh now!
423: [07:11:00] <simon_w|air> https://github.com/silverstripe/silverstripe-userforms/blob/master/code/model/UserDefinedForm.php#L40
424: [07:11:00] <Bollig|DesignCty> You're still not convincing me, although it would be cool to see stats on the number of users with a cached copy of jquery on their system...
425: [07:12:00] <willr_> That was years ago..
426: [07:12:00] <simon_w|air> It was! But it was still you :p
427: [07:13:00] <willr_> noob
428: [07:13:00] <simon_w|air> I could pull request, or I could bug you to delete three lines
429: [07:13:00] <simon_w|air> The latter sounds easier
430: [07:13:00] <willr_> why the hell was it added?
431: [07:14:00] <simon_w|air> To annoy pyro<tab> when he tried subclassing?
432: [07:14:00] <willr_> c2a34e3
433: [07:15:00] <simon_w|air> Yay!
434: [07:26:00] * mirrors quit (Quit: Page closed)
435: [07:28:00] * mirrors has joined #silverstripe
436: [07:29:00] * mwm has joined #silverstripe
437: [07:29:00] <willr_> mirrors read the read me :)
438: [07:29:00] <mirrors> using the download as zip from github
439: [07:29:00] <willr_> the module includes it's dependancies via git submodules
440: [07:29:00] <mirrors> ah ha
441: [07:29:00] <mirrors> Hey willr_ when I try downloading your userforms module the jquery.validate.js is not downloaded
442: [07:30:00] <mwm> sorry! need help urgently, none of my yml files are being loaded (ones I added myself on one of my sites). it works on all the other sites, and they use the same code base... what could be wrong?
443: [07:30:00] <mirrors> ok cheers
444: [07:30:00] <mirrors> you would think the zip option from github would include them
445: [07:31:00] <willr_> mwm language files?
446: [07:31:00] <willr_> mirrors yeah that'll be handy
447: [07:32:00] <mwm> no, just configuration files, routes and extensions mainly
448: [07:35:00] <mwm> site was supposed to go live today, my client is very excited (impatient -.-)
449: [07:57:00] * g4b0 has joined #silverstripe
450: [08:01:00] * willr_ quit (Quit: willr_)
451: [08:08:00] <simon_w|air> mwm, flushed?
452: [08:09:00] * dendeffe quit (Quit: dendeffe)
453: [08:16:00] * SightUnseen has joined #silverstripe
454: [08:20:00] * SightUnseen has left #silverstripe
455: [08:20:00] * mwm quit (Ping timeout: 245 seconds)
456: [08:21:00] * mwm has joined #silverstripe
457: [08:21:00] <mwm> ah, sorry, lost it for a sec there
458: [08:22:00] <mwm> i tried dev/build and dev/build?flush=1
459: [08:22:00] <mwm> either from the mysite folder or my zzz_mwm folder
460: [08:22:00] <mwm> i think i have it working for awhile, but it decides to only load some yml files
461: [08:22:00] <mwm> never both ><
462: [08:23:00] <mwm> and then when i get close the manifest fails and i get server errors and im back tow where i started again with the configs not working xD
463: [08:23:00] <mwm> same problem for the past 2.5 hours....
464: [08:24:00] <mwm> i use the system where all sites run from the same codebase, but it is only this site that doesnt seem to be working for some reason? Any ideas?
465: [08:24:00] * lerni has joined #silverstripe
466: [08:26:00] <simon_w|air> Different PHP versions? Dodgy permissions? Dodgy cache folder? Some error that's being logged somewhere?
467: [08:27:00] <mwm> i think my manifest file is corrupted... but i thought flush took care of that?
468: [08:28:00] <mwm> its both running php 5.4, though slightly different numbers
469: [08:31:00] * chillu has joined #silverstripe
470: [08:32:00] <mwm> tried deleting the cache folder in tmp, no go ><
471: [08:32:00] * ARNHOFF has joined #silverstripe
472: [08:33:00] * ARNHOFF quit (Client Quit)
473: [08:36:00] * ARNHOFF has joined #silverstripe
474: [08:37:00] * ARNHOFF is now known as ARNHOE
475: [08:38:00] <mwm> simon_w & willr, thanks for the help! im gonna get off this computer and maybe come back when its hopefully stopped pissing me off
476: [08:38:00] * zfmf has joined #silverstripe
477: [08:38:00] <mwm> thanks again!
478: [08:40:00] <ARNHOE> With the newsletter module I am getting the following error when trying to subscribe, [User Error] Uncaught ValidationException: "Email" field is required; "Email" field is invalid
479: [08:42:00] * mwm quit (Ping timeout: 245 seconds)
480: [08:42:00] <simon_w|air> You're putting in a dodgy email?
481: [08:44:00] * dendeffe has joined #silverstripe
482: [08:45:00] <ARNHOE> simon_w|air, actually I am but it should return a more friendly error? When its in live mode, its gives a regular server error page
483: [08:46:00] <simon_w|air> So stick a validator on the form
484: [08:47:00] <simon_w|air> new RequiredFields('Email') should do it, by the sound of things
485: [08:50:00] <ARNHOE> oke, simon_w|air that seems to do the job now with the custom form I have. But on the module "required" is checked, so something is going wrong. Ill expand my issue on github
486: [08:50:00] <ajshort> ARNHOE, which module?
487: [08:51:00] <ARNHOE> ajshort: https://github.com/silverstripe-labs/silverstripe-newsletter/issues/19
488: [08:55:00] <ARNHOE> Question, jquery-validate/jquery.validate.min.js should validate the form without refreshing the page, right?
489: [08:56:00] <ARNHOE> im talking about the newsletter module, not in general just to be a little more clear
490: [08:56:00] <simon_w|air> If you've got it set up to
491: [08:57:00] <ARNHOE> https://github.com/silverstripe-labs/silverstripe-newsletter/blob/master/code/pagetypes/SubscriptionPage.php Line 354. Should be doing that right?
492: [09:02:00] * liam has joined #silverstripe
493: [09:03:00] * kinglozzer has joined #silverstripe
494: [09:12:00] * Jedateach quit (Quit: Jedateach)
495: [09:18:00] * willr_ has joined #silverstripe
496: [09:18:00] * willr_ has joined #silverstripe
497: [09:18:00] * willr_ quit (Changing host)
498: [09:23:00] * willr_ quit (Client Quit)
499: [09:29:00] <r3v3rb> morning
500: [09:29:00] * r3v3rb has joined #silverstripe
501: [09:31:00] <r3v3rb> any idea why server side validation wouldn't be working for this: http://www.sspaste.com/paste/show/510f7fbc6eb45
502: [09:33:00] <r3v3rb> hello fella
503: [09:37:00] <r3v3rb> anyone home yet?
504: [09:38:00] * liam quit (Quit: liam)
505: [09:41:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
506: [09:47:00] * liam has joined #silverstripe
507: [10:05:00] * liam quit (Quit: liam)
508: [10:12:00] * simon_w|air quit (Quit: This computer has gone to sleep)
509: [10:39:00] * ajshort quit (Quit: Leaving)
510: [10:52:00] * Shrike_Finland quit (Quit: Leaving.)
511: [10:53:00] * FinBoWa has joined #silverstripe
512: [10:59:00] <FinBoWa> hi guys: a quick question: should the exclude and the filter modifiers work actually? at least this documentation refers so http://doc.silverstripe.org/framework/en/reference/modeladmin
513: [11:00:00] <FinBoWa> by using this $list->exclude('Price:LessThan', '100'); I'm getting sequel errors so its not mapping the less than right at all..
514: [11:02:00] * dendeffe quit (Quit: dendeffe)
515: [11:07:00] * lerni quit (Remote host closed the connection)
516: [11:15:00] * Emil_Blume has joined #silverstripe
517: [11:22:00] * C10ne has joined #silverstripe
518: [11:24:00] <C10ne> Anyone knows if I can translate month name directly in template, or I have to write additional logic for that?
519: [11:25:00] * instabil has joined #silverstripe
520: [11:34:00] * dendeffe has joined #silverstripe
521: [11:35:00] <r3v3rb> hi, anyone understand why doing this: RequiredFields::create('dr_businessname[]', 'dr_contactname[]', 'dr_policynumber[]', 'dr_packquantity[]', 'dr_deliveryaddress[]' )
522: [11:35:00] <r3v3rb> automatically shows the fields as required when viewing the form?
523: [11:36:00] <r3v3rb> and then stops them from being valid when they have input?
524: [11:43:00] * gelignite has joined #silverstripe
525: [11:58:00] * howardgrigg quit (Read error: Connection reset by peer)
526: [11:59:00] * howardgrigg has joined #silverstripe
527: [23:32:00] * ss-log has joined #silverstripe
528: [23:32:00] <simon_w> http://pastie.org/6048605
529: [23:34:00] <irogue> ah yep
530: [23:36:00] <irogue> https://dl.dropbox.com/u/4618071/stmatthews/index.html
531: [23:37:00] <simon_w> Hehe, they have two of the clean animals too
532: [23:38:00] * Bollig|DesignCty has joined #silverstripe
533: [23:45:00] * chillu quit (Quit: chillu)
534: [23:46:00] <spronk> picked up 11am yesterday
535: [23:47:00] <travis-ci> [travis-ci] silverstripe/sapphire#1319 (3.1 - ba825ce : Sean Harvey): The build has errored.
536: [23:47:00] * travis-ci has joined #silverstripe
537: [23:47:00] * travis-ci has left #silverstripe
538: [23:47:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4582350
539: [23:47:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/632e0e898dd0...ba825cec286c
540: [23:47:00] <spronk> NOT SCANNED YET. FU FREIGHTWAYZ
541: [23:52:00] * mirrors quit (Quit: Page closed)
542: [23:57:00] <Bollig|DesignCty> why is functionname() being called constantly here: <% cached 'HomeCSS', Aggregate(Page).Max(LastEdited), Aggregate(HeaderImage).Max(LastEdited), Aggregate(File).Max(LastEdited) %>$functionName<% end_cached %>
543: [23:58:00] <Bollig|DesignCty> Seems to me that unless I edit one of those DOs, the function shouldn't be called again? What am I missing here, anyone know?

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