#silverstripe IRC Log

IRC log for 20 April 2013

All timestamps are in UTC.

1: [00:05:00] * azureKnight quit (Quit: azureKnight)
2: [00:05:00] * trav quit (Ping timeout: 245 seconds)
3: [00:12:00] <FrozenFire> Saw the templating system, bailed.
4: [00:12:00] <FrozenFire> RIP trav
5: [00:38:00] * mobiusnz has joined #silverstripe
6: [00:42:00] <cloph> What is the difference between "split mode" and "edit mode"? I fail to see any change when switching between those two.
7: [00:43:00] <oskarholo> try to make you browser window bigger
8: [00:44:00] <cloph> ah
9: [00:45:00] <cloph> just "bigger" is not enough, more like make it fullscreen.
10: [00:45:00] <willr_> edit mode is no preview
11: [00:47:00] <cloph> too bad that there is no visible indicator and that you cannot change the ratio of the edit and preview.
12: [01:18:00] * DesignerX has joined #silverstripe
13: [01:20:00] * cloph is now known as cloph_away
14: [01:26:00] * mobiusnz quit (Quit: Leaving.)
15: [01:44:00] <willr_> cloph can't you drag and preview / edit screen to scale it to fit your needs?
16: [01:45:00] * mobiusnz has joined #silverstripe
17: [01:52:00] * mobiusnz quit (Quit: Leaving.)
18: [01:57:00] <DesignerX> hi guys.. I am looking for a way to create an "Image Object" on the fly with the image "Filename" being somewhere outside the assets/ folder .. any tips ?
19: [02:00:00] <willr_> tried the following yet DesignerX $image = new Image(); $image->Filename = "/some/path.jpg"; $image->write();
20: [02:01:00] <DesignerX> willr_: My plan is to serve a "Image Not Found" image if no image has been attached ..
21: [02:02:00] <DesignerX> willr_: can I do like : If { this Image object has no file name } then { change the file name to /blabla.jpg} without saving that to the database ?
22: [02:02:00] * EasyCo has joined #silverstripe
23: [02:04:00] <EasyCo> How would you go about aliasing a URL or forwarding a URL? For example, when somebody goes to site.com/food I want them to see the page they'd get if they went to site.com/food/breakfast
24: [02:04:00] <DesignerX> The reason for this is, I need the upload field to be emoty in the backend for user to quickly upload and I so the user dosnt "remove file" instead of "removing the link" then my image will be gone !
25: [02:05:00] <DesignerX> EasyCo: hi, use Virtual Page
26: [02:06:00] <EasyCo> No can do
27: [02:06:00] <EasyCo> Because the parent page /food contains data
28: [02:07:00] <EasyCo> As in it has it's own page type. The child pages (i.e /food/breakfast) references data from its parent (/food)
29: [02:07:00] <DesignerX> EasyCo: oh, kk .. so you want the parent page to show the "breakfast" child page ONLY or the CHild Page + more data ?
30: [02:08:00] <DesignerX> EasyCo: I would create a function on the Parent to get a child page by URLSegment or Page Title
31: [02:09:00] <EasyCo> DesignerX: That's bit is all sorted. All I need to do is: if a user accidentally goes to /food the page doesn't really have a template, so it should forward to food/breakfast by default.
32: [02:10:00] <EasyCo> I think I got a solution, Director::redirect()
33: [02:10:00] <DesignerX> sounds correct
34: [02:11:00] * pippy_ has joined #silverstripe
35: [02:11:00] <willr_> DesignerX probably not
36: [02:12:00] * pippy quit (Ping timeout: 256 seconds)
37: [02:14:00] <sminnee> Hey all, what do you think of this? /cc willr_ FrozenFire ss23
38: [02:14:00] <willr_> sminnee this?
39: [02:14:00] <sminnee> https://gist.github.com/sminnee/5424422
40: [02:15:00] <willr_> sminnee yeah for our sites that functionality has just been bolted onto our deployment scripts
41: [02:15:00] <sminnee> I've never been happy with the "copy prod db & assets to dev" toolchain.
42: [02:16:00] <ss23> Looks handy I guess, but I don't think I would end up using it all that often
43: [02:16:00] <sminnee> I wanted something that didn't require an extra copy of the db credentials, didn't increase the attack surface of the production site, and worked in most Linux environments without special modules or software installed.
44: [02:16:00] <sminnee> willr_: yeah, we have this all in publishsite, but it was all a bit ad-hoc after that.
45: [02:17:00] <sminnee> also, sake is like a 10 line wrapper around php cli-script.php
46: [02:17:00] <willr_> I'd probably bolt it onto the sake executable subcommand rather than another command line tool but that's just me
47: [02:17:00] <sminnee> willr_: the only issue is that sake is bundled with ss, so you'd end up with it being ss version specific.
48: [02:18:00] * EasyCo quit (Ping timeout: 240 seconds)
49: [02:18:00] <sminnee> and i don't want to have this be something that's deployed to prod sites, as it's an unnecessary security vuln.
50: [02:21:00] <willr_> Well the people who would want an easier way to export the state of a site, would probably be the same ones who want a GUI / cms button to export and import.
51: [02:21:00] <sminnee> willr_: yeah... I'd prefer to make that an optional bolt-on, rather than bake it in.
52: [02:22:00] <sminnee> and, for example, you could include that GUI on dev but not prod.
53: [02:22:00] * EasyCo has joined #silverstripe
54: [02:22:00] <willr_> yep that would work for publishing a site but how'd you download a prod database then?
55: [02:23:00] <sminnee> well, $> sspak save user@server:/webroot prod data.sspak
56: [02:29:00] <EasyCo> Ended up just chucking this in my init(): if($this->URLSegment == "food") Director::redirect('/food/breakfast');
57: [02:29:00] <EasyCo> Job done :)
58: [02:30:00] <willr_> sminnee sweet. Going to form part of the CWP toolchain? Everyone is looking forward to seeing it :D
59: [02:37:00] * EasyCo quit (Ping timeout: 245 seconds)
60: [02:40:00] <sminnee> willr_: yeah, well, that's Hamish's call more than mine, but I've prompted him for feedback. I think the idea is that the deployment GUI will eventually also have db+assets transfer tool.s
61: [02:40:00] <willr_> you'd hope so
62: [02:42:00] * EasyCo has joined #silverstripe
63: [02:52:00] * Shrike_Finland quit (Quit: Leaving.)
64: [02:56:00] * EasyCo quit (Ping timeout: 240 seconds)
65: [03:01:00] <DesignerX> WHen I fo $Image.CroppedImage(50,50) in template , what code in the PHP does the resize & returns the new "<img scr= newResizedImageURL" > ?
66: [03:02:00] * EasyCo has joined #silverstripe
67: [03:08:00] * EasyCo quit (Ping timeout: 245 seconds)
68: [03:11:00] * ferge1 has joined #silverstripe
69: [03:15:00] * Kolin quit (*.net *.split)
70: [03:15:00] * ferge quit (Ping timeout: 272 seconds)
71: [03:15:00] * spronk2 quit (*.net *.split)
72: [03:16:00] * willr_ quit (Quit: willr_)
73: [03:20:00] * willr_ quit (Changing host)
74: [03:20:00] * spronk2 has joined #silverstripe
75: [03:20:00] * Kolin has joined #silverstripe
76: [03:20:00] * willr_ has joined #silverstripe
77: [03:20:00] * willr_ has joined #silverstripe
78: [03:22:00] * Shrike_Finland has joined #silverstripe
79: [03:27:00] <willr_> DesignerX - generateFormattedImage() gives you back an Image_Cached object
80: [03:28:00] <DesignerX> willr_: thanks .. also, when I do $Image.CroppedImage(100,50) , how can I getDimensions even if the Filename!=found ?
81: [03:29:00] <DesignerX> willr_: looking throguh the Image class, it checks if the file exists then getDimensions , but I need to getDimensions ( to getWidth & getHeight) regardless if the files exists
82: [03:29:00] <willr_> $Image.Height $Image.Width will return you the dimensions of the original
83: [03:30:00] <willr_> not stored in the database
84: [03:30:00] <willr_> well if it doesn't exist, how can it get dimensions?
85: [03:30:00] <DesignerX> becasue they are set in CroppedImage(100,50) , I need to get the 100 & 50
86: [03:31:00] <DesignerX> what i really need is the 2 values passed in . regarldess if image exists or not .. if thats possible
87: [03:35:00] <FrozenFire> sminnee, Looks interesting. Why does it need sudo, though?
88: [03:36:00] <sminnee> like sudo -u www-data ./framework/sake dev/build
89: [03:36:00] <sminnee> this is supremely annoying and I've patched 3.1-beta3 to fix this IIRC
90: [03:36:00] <sminnee> but it's there.
91: [03:36:00] <sminnee> FrozenFire: sometimes you need to run SilverStripe commands as the same user as your webserver
92: [03:37:00] <sminnee> although you raise a point -- the sudo command should be limited to the sspak-sniffer exectuion
93: [03:37:00] <FrozenFire> Ah
94: [03:38:00] <sminnee> why?
95: [03:38:00] <sminnee> oh, right.
96: [03:38:00] <FrozenFire> To be able to efficiently sync files over
97: [03:38:00] <sminnee> it's just copying 1 or 2 files, i was just going to use scp.
98: [03:38:00] <FrozenFire> If not, it really should
99: [03:38:00] <FrozenFire> Does it use rsync?
100: [03:39:00] <sminnee> but it would be a special case just for transfer.
101: [03:39:00] <sminnee> for 'save' and 'load' it's less relevant.
102: [03:39:00] <FrozenFire> Maybe add a differential switch
103: [03:39:00] <FrozenFire> I often need to sync assets over to production, but don't want to re-copy everything
104: [03:39:00] <sminnee> presumably the "transfer" action could use rsync.
105: [03:39:00] <sminnee> yeah??? the thing is that it's more concerned with creating a ".sspak" file, which essentially represents the volatile state of a SilvrerStripe instance.
106: [03:40:00] <sminnee> yeah - something like that,.
107: [03:42:00] <sminnee> True
108: [03:42:00] <FrozenFire> If you're writing deploy tools, something I've desperately wanted is an equivalent to DBPlumber for SS3, which can identify cruft in the schema
109: [03:42:00] <FrozenFire> Being able to compare the schema to the manifest
110: [03:42:00] <sminnee> yeah i'm not really working on that at the moment.
111: [03:43:00] <FrozenFire> Yup, just putting it out there
112: [03:43:00] <sminnee> The thing I'm writing at the moment is too loosely coupled to SilverStripe for that to be a good feature.
113: [03:44:00] <FrozenFire> Is this something that's already written?
114: [03:49:00] * simon_w quit (Quit: Leaving)
115: [03:55:00] <sminnee> nah i'm about halfway done.
116: [03:55:00] <sminnee> it's my project for the day
117: [03:58:00] * cloph_away1 has joined #silverstripe
118: [04:00:00] * cloph_away quit (Ping timeout: 272 seconds)
119: [04:29:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.1/model/Database.php#L348 Just fiddling and noticed a potential error
120: [04:29:00] <FrozenFire> DB::getConn()->supportsExtensions() implies a method being available on the same class as is calling that function, but doesn't have that function
121: [04:29:00] <FrozenFire> That is, Database should have an abstract function supportsExtensions()
122: [04:30:00] <FrozenFire> Also not sure why it's sending that off to DB::getConn()
123: [04:30:00] <FrozenFire> Would seem to break testing
124: [04:30:00] <FrozenFire> Should be a $this->supportsExtensions() call
125: [04:59:00] <FrozenFire> Hrmm, how do you add an allowed action to a controller through an extension?
126: [05:13:00] <FrozenFire> Aha, had to apply two extensions
127: [05:16:00] * MichaelDesignerX has joined #silverstripe
128: [05:20:00] * ajmitch_ has joined #silverstripe
129: [05:25:00] * DesignerX quit (*.net *.split)
130: [05:25:00] * ajmitch quit (*.net *.split)
131: [05:36:00] <MichaelDesignerX> hi again, Created a CustomImage extends Image . trying to customize the $Image output in the template. I overrided both getTag() and forTemplate on my CustomClass but nothing changes in the template ... Right now is it " return "<img src=\"$url\" alt=\"$title\" />";" but I want to change it to " return "<img src=\"$url\" alt=\"$title\" class='MyCustomClassHere'/>";"
132: [05:37:00] * howardgrigg has joined #silverstripe
133: [05:37:00] * howardgrigg quit (Remote host closed the connection)
134: [05:37:00] * howardgrigg has joined #silverstripe
135: [05:39:00] * wmk has joined #silverstripe
136: [05:45:00] * willr_ quit (Quit: willr_)
137: [05:48:00] <FrozenFire> MichaelDesignerX, I'd recommend simply placing each of your images in a wrapping div with that class
138: [05:49:00] <FrozenFire> Trying to augment the rendering of the image's HTML is going to be excessively difficult
139: [05:49:00] <FrozenFire> And it'd also be inflexible
140: [05:49:00] <MichaelDesignerX> FrozenFire: what I am using it for is a bit more complicated ... full; code here http://www.sspaste.com/paste/show/517229e1e22f6
141: [05:50:00] <MichaelDesignerX> FrozenFire: trying to create a ImagePlaceHolder function that uses a ImageNotFound.jpg if no image has been uploaded yet
142: [05:50:00] <MichaelDesignerX> see lines 12-18
143: [05:52:00] <FrozenFire> MichaelDesignerX, I recommend using a background-image on the holder of the image to do that
144: [05:52:00] <FrozenFire> That is, if there's no image, then the background is visible
145: [05:56:00] <FrozenFire> Hrmm. Well, I'd still recommend simply applying a class to the holder instead.
146: [05:56:00] <MichaelDesignerX> FrozenFire: THis will not work well with the next function I will add, alloing me/user to enable/disable all "temporary" images.
147: [05:56:00] <MichaelDesignerX> I use this alot when I create demo for clients, I downt want to upload all the images yet want to show them how the site"will" look, so I use temporary image/ placeholders
148: [05:57:00] <FrozenFire> E.g. <div class="myimage <% if not $MyImage.exists %>missing<% end_if %>"><% if MyImage %>$MyImage<% else %>$ImageNotFound<% end_if %></div>
149: [05:59:00] <MichaelDesignerX> used to use it , but will not work in my case, there is alot more logic will be added, making it hard to get all this in tamples ( logic = php ) :D ..
150: [06:00:00] <MichaelDesignerX> but, the $100000000 question is : why I cant overload getTag() ?
151: [06:00:00] <MichaelDesignerX> override * =
152: [06:02:00] <FrozenFire> Are you cropping first?
153: [06:02:00] <FrozenFire> Or resizing
154: [06:02:00] <FrozenFire> Or any other manipulation?
155: [06:03:00] <MichaelDesignerX> yeh
156: [06:03:00] <FrozenFire> All manipulations return an Image_Cached
157: [06:03:00] <FrozenFire> Which extends Image
158: [06:04:00] <FrozenFire> Which means any overloads you have in place for Image are moot
159: [06:06:00] <MichaelDesignerX> mm.. so I have to copy Image_Cached & make it CustomImage_Cached extends CustomImage ?
160: [06:06:00] <FrozenFire> You could. But you're just tugging harder on the loose thread
161: [06:07:00] <wmk> hi, how can i reopen a ticket on github?
162: [06:10:00] <FrozenFire> wmk, Just comment on the closed ticket
163: [06:10:00] <FrozenFire> If one of the committers feels it's worth re-opening, they will.
164: [06:11:00] <wmk> FrozenFire, ok, but ticket is still closed ;) I was asked to reopen the ticket if it still doesn't work.
165: [06:11:00] <wmk> well, the author will see my comment
166: [06:12:00] * rohitbanerjee has joined #silverstripe
167: [06:12:00] <rohitbanerjee> hello everyone
168: [06:12:00] <rohitbanerjee> had a requirement
169: [06:13:00] <rohitbanerjee> I want to associate an image to a DataObject
170: [06:15:00] * howardgrigg quit (Remote host closed the connection)
171: [06:15:00] <rohitbanerjee> but when the user on the accesses the image, the image should be generated with watermarked info on it, and then returned
172: [06:15:00] <rohitbanerjee> the watermark info would carry personalized data, like name of the user, etc ..
173: [06:16:00] <FrozenFire> rohitbanerjee, Easy enough, actually.
174: [06:16:00] <rohitbanerjee> I have already seen the watermarkable module by memdev
175: [06:17:00] <FrozenFire> Is this something you want to implement for all images, or just for images associated with that DataObject?
176: [06:17:00] <rohitbanerjee> but i want the watermark image to generated on the fly everytime for each user
177: [06:17:00] <rohitbanerjee> @FrozenFire - only for the ones in the Dataobjevt
178: [06:18:00] <FrozenFire> What version of SS?
179: [06:18:00] <MichaelDesignerX> FrozenFire: I think I will end up using your solution after all :D
180: [06:18:00] <FrozenFire> MichaelDesignerX, :) Yep. Extending Image is already perilous
181: [06:19:00] <rohitbanerjee> SS 3.0.5
182: [06:20:00] <FrozenFire> There's the method used to generate all manipulations to images.
183: [06:20:00] <FrozenFire> Creating a new GD from the filename of the Image you have
184: [06:20:00] <FrozenFire> Except you'd do it from your DataObject
185: [06:20:00] <FrozenFire> You can basically copy that, for the most part.
186: [06:20:00] <FrozenFire> rohitbanerjee, https://github.com/silverstripe/sapphire/blob/3.0/model/Image.php#L313
187: [06:21:00] <FrozenFire> Doing your manipulations, writing it, then produce a new Image_Cached
188: [06:21:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.0/model/Image.php#L283
189: [06:22:00] <rohitbanerjee> ok, but each user will have a different copy, since each image will be personalized with the watermark
190: [06:24:00] <FrozenFire> You can generate it on the fly, but I guarantee your server will die under the strain
191: [06:24:00] <FrozenFire> That does get somewhat more tricky.
192: [06:24:00] <rohitbanerjee> this may be a stupid question, but if 10,000 users access the image, would 10,000 copies of the cached_image exist in the Asset Folder ?
193: [06:24:00] <FrozenFire> And yes.
194: [06:25:00] <FrozenFire> Caching the manipulations to disk is very important
195: [06:25:00] <MichaelDesignerX> ...Unknown open block "with" encountered.
196: [06:25:00] <MichaelDesignerX> has <% with Object %> been removed ?
197: [06:25:00] <FrozenFire> No
198: [06:26:00] <FrozenFire> What version of SS are you on?
199: [06:26:00] <MichaelDesignerX> 3.0.5
200: [06:26:00] <MichaelDesignerX> latest
201: [06:26:00] <FrozenFire> Should be there.
202: [06:26:00] <FrozenFire> This is a regular template, yes?
203: [06:26:00] <FrozenFire> Not an email or something like that?
204: [06:26:00] <FrozenFire> Though that shouldn't matter
205: [06:27:00] <MichaelDesignerX> yeh
206: [06:27:00] <FrozenFire> Hrmm. What's the exact error message?
207: [06:28:00] <MichaelDesignerX> Uncaught SSTemplateParseException: Parse error in template on line 5. Error was: Unknown open block "loop" encountered. Perhaps you missed the closing tag or have mis-spelled it?
208: [06:28:00] <FrozenFire> That's some weird shit you got right there.
209: [06:29:00] <FrozenFire> Unless you forgot to close it and it's being angsty about trying to reconcile it
210: [06:30:00] <MichaelDesignerX> damn.. forgot commenting the HTML doesnt prevent SS for trying to use the code in the comment :(
211: [06:31:00] <FrozenFire> <%-- --%> I think
212: [06:31:00] <FrozenFire> :P
213: [06:33:00] <MichaelDesignerX> & $up. != $Up
214: [06:33:00] <rohitbanerjee> FrozenFire: is there an auto-flush for cached images?
215: [06:33:00] <MichaelDesignerX> capital U
216: [06:34:00] <FrozenFire> rohitbanerjee, Nope
217: [06:34:00] <MichaelDesignerX> FrozenFire: rohitbanerjee dev/tasks/FlushGeneratedImagesTask ?
218: [06:35:00] <FrozenFire> Yeah, you could call that on a cronjob
219: [06:35:00] <FrozenFire> Since that'll clear out every single one, sfaik
220: [06:35:00] <FrozenFire> So it'll regenerate every cached image
221: [06:35:00] <MichaelDesignerX> well, the task could be copied & adjusted :D.. dont ask me how
222: [06:35:00] <rohitbanerjee> hmm
223: [06:35:00] <FrozenFire> But you're going to see gigantic surges in resource usage if you do
224: [06:39:00] <rohitbanerjee> that shouldn't be too hard to do, right ??
225: [06:39:00] <rohitbanerjee> or am I oversimplifying things?
226: [06:39:00] <rohitbanerjee> FrozenFire: is it possible to have a custom FlushGeneratedImagesTask called from a daily cronjob, that would Flush only the images associated with the DataObject ??
227: [06:40:00] <sminnee> FrozenFire: okay, implementation of "save" and "load is at https://github.com/sminnee/sspak
228: [06:40:00] <FrozenFire> It'd probably be easier just to have a cronjob which deletes files with a certain glob that are older than <x>
229: [06:40:00] <FrozenFire> No need to involve SS in the process.
230: [06:41:00] <FrozenFire> sminnee, Incidentally, almost finished my database scrubber. :P
231: [06:41:00] <sminnee> heh
232: [06:41:00] <FrozenFire> Just need to figure out a safe and elegant way to perform the actual scrubbing
233: [06:42:00] <rohitbanerjee> hmmmm, that would make sense
234: [06:42:00] <FrozenFire> Was thinking of listing each table, and listing each superfluous field in the table, with a DropdownField stating an action
235: [06:43:00] <FrozenFire> Or maybe just a checkbox
236: [06:43:00] <FrozenFire> Since it's either drop or do nothing
237: [06:45:00] <rohitbanerjee> FrozenFire: one last question, how do I "sniff" the IP address (and other data like user agent, geo-location, etc.) for each user and display it back on the view ??
238: [06:46:00] <MichaelDesignerX> I need to save ThemeSettings, whats best : "Table for each Theme" vs " Serielized data store in DB" vs "Saving the settings to a file " ? knowing the settings will be unique for each theme
239: [06:48:00] <FrozenFire> rohitbanerjee, Config::inst()->forClass("Security")->login_recording = true;
240: [06:48:00] <FrozenFire> It'll then record each login attempt
241: [06:49:00] <FrozenFire> You can then also add a has_many to Member for LoginAttempt if you want to see it in their profile
242: [06:49:00] <FrozenFire> (Through an extension)
243: [06:50:00] <rohitbanerjee> not just for members.... for all guest users as well, especially for guest users
244: [06:50:00] <rohitbanerjee> so here's the requirement in totallity
245: [06:50:00] <FrozenFire> There's no mechanism in place for that, so far as I'm aware. That'd be something you would implement using your webserver logs, I would think.
246: [06:51:00] <rohitbanerjee> for all guest users who come to a photographer's site, each image is watermarked with the guest user's IP and any other incriminating data, and served to the guest user, on the fly ...
247: [06:53:00] * sewid has joined #silverstripe
248: [06:53:00] <FrozenFire> http://www.gossamer-threads.com/lists/apache/users/284757#284757
249: [06:54:00] <wmk> rohitbanerjee, http://at2.php.net/manual/de/reserved.variables.server.php 'REMOTE_ADDR'
250: [06:54:00] <FrozenFire> Something like that
251: [06:54:00] <FrozenFire> Though, if you get seriously high load, you're going to be putting out fires.
252: [06:56:00] <rohitbanerjee> hmmm, that should help me move in the right direction ..
253: [06:56:00] <rohitbanerjee> FrozenFire: thanks for all the help and patience
254: [06:57:00] * mrzero quit (Remote host closed the connection)
255: [06:57:00] * mrzero_ is now known as mrzero
256: [06:57:00] * mrzero_ has joined #silverstripe
257: [07:00:00] * joelpittet quit (Remote host closed the connection)
258: [07:00:00] <FrozenFire> Happy to help
259: [07:11:00] <FrozenFire> sminnee, You wouldn't happen to know if PHP 5.4's built-in webserver works with SS, would you?
260: [07:13:00] <sminnee> can't' remember if was straight out of the box or what
261: [07:13:00] <sminnee> FrozenFire: i think i gave it a 5 minute look-in and i think it basically does
262: [07:14:00] <FrozenFire> Trying it now, to see.
263: [07:18:00] <FrozenFire> And yeah, it seems to work
264: [07:18:00] <FrozenFire> Blegh. I wish DevelopmentAdmin was routed better
265: [07:19:00] <FrozenFire> Just have to point things to framework/main.php
266: [07:22:00] * joelpittet has joined #silverstripe
267: [07:23:00] * joelpitt_ has joined #silverstripe
268: [07:23:00] * joelpittet quit (Read error: Connection reset by peer)
269: [07:29:00] * FrozenFire wonders why DebugView doesn't include a base tag
270: [07:30:00] <FrozenFire> Harshing my buzz
271: [07:42:00] * mobiusnz has joined #silverstripe
272: [07:44:00] * mobiusnz quit (Client Quit)
273: [07:45:00] * joelpitt_ quit (Remote host closed the connection)
274: [07:48:00] * SightUnseen has joined #silverstripe
275: [07:48:00] * FrozenFire renames it
276: [07:48:00] <FrozenFire> https://github.com/TheFrozenFire/silverstripe-dataobjectcruft
277: [07:48:00] <FrozenFire> Crap, typo in my repo name XD
278: [07:48:00] <FrozenFire> https://github.com/TheFrozenFire/silvestripe-dataobjectcruft
279: [07:50:00] <FrozenFire> Probably not a good idea to be writing database destructive code at 1 a.m.
280: [07:50:00] * FrozenFire goes to bed
281: [07:50:00] <MichaelDesignerX> FrozenFire: nooo
282: [07:50:00] <MichaelDesignerX> one more question
283: [07:50:00] <MichaelDesignerX> how to set image quality in SS
284: [07:50:00] <FrozenFire> :P
285: [07:51:00] <MichaelDesignerX> yep
286: [07:51:00] <FrozenFire> More specifically, https://github.com/silverstripe/sapphire/blob/3.0/filesystem/GD.php#L17
287: [07:51:00] <FrozenFire> 3.0.5?
288: [07:51:00] <FrozenFire> https://github.com/silverstripe/sapphire/blob/3.0/filesystem/GD.php#L11
289: [07:52:00] <FrozenFire> Might be able to do it using Config::inst()->forClass("GD")->default_quality = <int>;
290: [07:53:00] * SightUnseen has left #silverstripe
291: [07:55:00] <MichaelDesignerX> good night.. dream about SS
292: [07:55:00] <MichaelDesignerX> mm.. ok, now U can take a break
293: [07:55:00] <MichaelDesignerX> :D
294: [07:55:00] <FrozenFire> Can I sleep now?
295: [07:55:00] <FrozenFire> :P
296: [07:56:00] <FrozenFire> Always do
297: [07:56:00] * FrozenFire dry humps DataObject
298: [08:02:00] * sewid quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz???)
299: [08:27:00] * priithansen has joined #silverstripe
300: [08:36:00] * chillu has joined #silverstripe
301: [09:02:00] * MichaelDesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
302: [09:28:00] * zfmf has joined #silverstripe
303: [09:36:00] * priithansen quit (Quit: priithansen)
304: [09:49:00] * cloph_away1 is now known as cloph
305: [09:51:00] <cloph> Hmm. the nginx configuration example needs some love... - the htaccess-equivalent kind of contradicts itself http://doc.silverstripe.org/framework/en/3.1/installation/nginx
306: [09:52:00] * Zauberfisch has joined #silverstripe
307: [09:52:00] <cloph> the last rule that is supposed to allow access to framework's main.php, static-main.php and others will not be reached, since the rule before already denies access.
308: [09:52:00] <cloph> Why would you need to call main.php or the others directly anyway?
309: [09:58:00] <cloph> (and even more so when the php is then not even interpreted, but served as a regular file)
310: [10:12:00] * mobiusnz has joined #silverstripe
311: [10:26:00] * mobiusnz1 quit (Client Quit)
312: [10:26:00] * mobiusnz1 has joined #silverstripe
313: [10:28:00] * mobiusnz quit (Ping timeout: 258 seconds)
314: [10:30:00] * simon_w has joined #silverstripe
315: [11:15:00] * mobiusnz has joined #silverstripe
316: [11:17:00] * rohitbanerjee quit (Ping timeout: 245 seconds)
317: [11:23:00] <Marvanni> is there a way to get all the current Requirements::css() in php?
318: [11:34:00] * mobiusnz quit (Ping timeout: 260 seconds)
319: [11:43:00] * webguest has joined #silverstripe
320: [11:44:00] <cloph> ok, so silverstripe indeed needs tiny_mce_gzip.php to be interpreted
321: [11:45:00] <webguest> also the CMS shows the existing languages
322: [11:45:00] <webguest> 2.4.10 - translation question : i have a page created in the CMS 'About' - Class page - translated and published it to 3 other languages - changed class from page to class 'homepage' .. saved... but now the language picker isnt working for this page! on other pages it still works..
323: [11:45:00] <webguest> when i check db; SiteTree_translationgroups ; the id's are still correctly linked to the original
324: [11:46:00] <webguest> in the template i just use: <% control Translations %> ...
325: [11:48:00] <webguest> when i change the class back to page.. the language picker does show again...
326: [11:48:00] <webguest> weird ?
327: [11:52:00] * gelignite has joined #silverstripe
328: [11:52:00] * Zauberfisch quit (Remote host closed the connection)
329: [11:52:00] <cloph> could very well be a bug that it uses the classname of the page to get the translations..
330: [11:53:00] <webguest> siteTree_Live has got class page still
331: [11:53:00] <webguest> found it...
332: [11:54:00] <webguest> so i have to publish the translations again..
333: [11:58:00] <cloph> anyone using SS 3.1beta3 and is able to drag the preview window wider/smaller in the split mode?
334: [11:59:00] <cloph> Doesn't work here (tried with firefox and chromium)
335: [12:00:00] <cloph> guess you need huge monitors for that to be enabled (just like I only actually see something from the split view in fullscreen mode)
336: [12:00:00] <webguest> srry, not using it yet, waiting a while before using it, had to much troubles
337: [12:30:00] * mobiusnz has joined #silverstripe
338: [12:34:00] * mobiusnz quit (Ping timeout: 252 seconds)
339: [13:07:00] * webguest quit (Ping timeout: 245 seconds)
340: [13:31:00] * mobiusnz has joined #silverstripe
341: [13:35:00] * mobiusnz quit (Ping timeout: 260 seconds)
342: [13:56:00] * priithansen has joined #silverstripe
343: [14:17:00] * wmk quit (Ping timeout: 252 seconds)
344: [14:31:00] * mobiusnz has joined #silverstripe
345: [14:33:00] * wmk has joined #silverstripe
346: [14:41:00] * mobiusnz quit (Ping timeout: 256 seconds)
347: [14:47:00] * Guits quit (Ping timeout: 245 seconds)
348: [14:49:00] * jcwacky quit (Quit: jcwacky)
349: [15:37:00] * mobiusnz has joined #silverstripe
350: [15:39:00] * joelpittet has joined #silverstripe
351: [15:41:00] * mobiusnz quit (Ping timeout: 246 seconds)
352: [16:37:00] * mobiusnz has joined #silverstripe
353: [16:41:00] * mobiusnz quit (Ping timeout: 252 seconds)
354: [16:47:00] * wmk quit (Quit: nice to meet you ;))
355: [17:04:00] * priithansen quit (Quit: priithansen)
356: [17:12:00] * joelpittet quit (Remote host closed the connection)
357: [17:39:00] * mobiusnz has joined #silverstripe
358: [17:43:00] * mobiusnz quit (Ping timeout: 252 seconds)
359: [17:47:00] * zfmf has left #silverstripe
360: [18:21:00] * chillu quit (Quit: chillu)
361: [18:27:00] <FrozenFire> Hrmm... need to figure out a way to tell whether a DataObject is requiring a table, without actually invoking any of the requireTable code.
362: [18:28:00] * chillu has joined #silverstripe
363: [18:29:00] <FrozenFire> But that's no good for detecting it...
364: [18:29:00] <FrozenFire> My way of not requiring a table on certain transient DataObjects is to do public function requireTable(){ DB::dontRequireTable($this->class); }
365: [18:39:00] * mobiusnz has joined #silverstripe
366: [18:44:00] * mobiusnz quit (Ping timeout: 258 seconds)
367: [19:05:00] <FrozenFire> Hrmm... can't quite seem to get the PHP built-in webserver working with SS
368: [19:07:00] <FrozenFire> Ah, would help if I was using an up-to-date version of SS
369: [19:18:00] <FrozenFire> sminnee, Mind merging https://github.com/silverstripe/sapphire/commit/1005571163c4d656d555c883b051511b115f537a into 3.0?
370: [19:23:00] * Zauberfisch has joined #silverstripe
371: [19:39:00] * mobiusnz has joined #silverstripe
372: [19:44:00] * mobiusnz quit (Ping timeout: 255 seconds)
373: [19:46:00] * Motoservo has joined #silverstripe
374: [19:48:00] <FrozenFire> Blegh. Someone was over-zealous with the visibility changes
375: [19:48:00] <FrozenFire> I need the protected non-static $stages from a Versioned instance
376: [19:52:00] * FrozenFire begrudingly settles for just assuming Live and Stage
377: [19:53:00] <cloph> Hmm - is it OK for silverstripe to include Microsoft Word & Excel icons and also the Adobe PDF one?
378: [19:53:00] <cloph> Also wonder why it uses the Word icon for html pages in assets...
379: [19:55:00] <FrozenFire> http://www.microsoft.com/en-us/legal/intellectualproperty/Permissions/default.aspx#EEE
380: [19:57:00] <cloph> I read that as a "silverstripe should not come with these icons"
381: [19:57:00] <FrozenFire> Rightfully so
382: [19:58:00] <FrozenFire> http://i.imgur.com/hfBixmG.png
383: [20:04:00] <Zauberfisch> probably font awesome
384: [20:04:00] <Zauberfisch> ss is going font icons
385: [20:04:00] <Zauberfisch> cloph FrozenFire just a few days ago there was a call to arms against the old icons by chillu on twitter
386: [20:05:00] * unsignedint quit (Ping timeout: 276 seconds)
387: [20:05:00] <Zauberfisch> so there will be no word icon any more
388: [20:10:00] <cloph> filed an issue nevertheless, can never be sure...
389: [20:18:00] <cloph> Zauberfisch: that tweet doesn't sound like some definite decision, rather "nice to have if somebody would contribute those changes"....
390: [20:29:00] <FrozenFire> Blegh. Why does DataObject::many_many return belongs_many_many relations? That's buggered.
391: [20:34:00] <Zauberfisch> no matter how the ORM calls it
392: [20:34:00] <Zauberfisch> because from model point of view the n...m relation is the same
393: [20:37:00] <FrozenFire> Just makes it a bugger to get a list of them for the class the defines them
394: [20:40:00] * mobiusnz has joined #silverstripe
395: [20:40:00] <Zauberfisch> FrozenFire what exactly do you want to do?
396: [20:41:00] <Zauberfisch> oh
397: [20:41:00] <Zauberfisch> well
398: [20:41:00] <FrozenFire> https://github.com/TheFrozenFire/silverstripe-dataobjectcruft
399: [20:41:00] <FrozenFire> I'm differencing the manifest-expected fields/indexes of many-many relationships to the fields in the database
400: [20:41:00] <Zauberfisch> FrozenFire
401: [20:43:00] <Zauberfisch> ah, nvm
402: [20:44:00] <FrozenFire> Config::inst()->get($this->owner->class, 'many_many', Config::UNINHERITED)
403: [20:44:00] <Zauberfisch> my idea does not work
404: [20:44:00] <FrozenFire> I figured it out ;)
405: [20:45:00] * mobiusnz quit (Ping timeout: 258 seconds)
406: [20:59:00] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
407: [21:02:00] * chillu quit (Quit: chillu)
408: [21:09:00] <Zauberfisch> FrozenFire https://github.com/TheFrozenFire/silverstripe-freeform
409: [21:09:00] <Zauberfisch> it does all that, with just 1 .md file? :P
410: [21:09:00] <Zauberfisch> wonderful
411: [21:12:00] <FrozenFire> That was my stream-of-consciousness for the idea
412: [21:12:00] <FrozenFire> :P
413: [21:12:00] <FrozenFire> Well, actually, not that
414: [21:12:00] <FrozenFire> I had enough document which I forgot to commit
415: [21:16:00] <FrozenFire> Alright, I think that my cruft scrubber is finished :D
416: [21:17:00] <FrozenFire> Handles tables, fields, indexes, and many_many fields + indexes that aren't in the manifest
417: [21:18:00] <FrozenFire> That client project has been running on for so long and has had so many refactorings, I can't even get everything it identified into a screenshot. :P
418: [21:18:00] <FrozenFire> Just running it on a client project which inspired it. It's pretty damned accurate
419: [21:22:00] <FrozenFire> http://i.imgur.com/hsKKOXU.jpg
420: [21:24:00] <Zauberfisch> afk
421: [21:24:00] <Zauberfisch> cool
422: [21:34:00] * mobiusnz has joined #silverstripe
423: [21:35:00] * ARNHOE has joined #silverstripe
424: [21:37:00] * oskarholo quit (Read error: Connection reset by peer)
425: [21:37:00] * ARNHOE quit (Remote host closed the connection)
426: [21:38:00] * ARNHOE has joined #silverstripe
427: [21:39:00] * oskarholo has joined #silverstripe
428: [21:49:00] * ARNHOE quit (Remote host closed the connection)
429: [21:59:00] * mobiusnz quit (Quit: Leaving.)
430: [22:00:00] * Zauberfisch quit (Remote host closed the connection)
431: [22:26:00] * priithansen has joined #silverstripe
432: [22:26:00] <sminnee> FrozenFire: seems pretty safe; I'll get a confirmation from either Hamish or Ingo though
433: [22:33:00] <FrozenFire> Yeah, it's not a big deal. Just makes for easier non-CLI testing in 3.0
434: [22:34:00] * lx-berlin_ has joined #silverstripe
435: [22:37:00] * lx-berlin_ has left #silverstripe
436: [22:39:00] * SightUnseen1 has joined #silverstripe
437: [22:45:00] * SightUnseen1 has left #silverstripe
438: [22:51:00] * joelpittet has joined #silverstripe
439: [22:53:00] * joelpitt_ has joined #silverstripe
440: [22:56:00] * joelpittet quit (Ping timeout: 256 seconds)
441: [22:58:00] * ferge1 has left #silverstripe
442: [23:33:00] * priithansen quit (Quit: priithansen)
443: [23:54:00] <sminnee> FrozenFire: so your scrubber module - it detects obsolete tables and fields?
444: [23:59:00] * joelpitt_ quit (Remote host closed the connection)

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