Nathanael Jones

Nathanael Jones

52p

129 comments posted · 1 followers · following 0

4 weeks ago @ Nathanael Jones - Referencing stylesheet... · 0 replies · +1 points

Sincere apologies for the delay. I lost those files during a disaster in 2009, and had to re-create them.
I've uploaded them as a project to https://github.com/nathanaeljones/WebFormsFixes Let me know if you find any bugs; e-mail me at support@imageresizing.net, as I don't get comment notifications.

4 weeks ago @ Nathanael Jones - Extending Page: Adding... · 0 replies · +1 points

I lost those files during a disaster in 2009. I've recreated them and uploaded them as a project to https://github.com/nathanaeljones/WebFormsFixes Let me know if you find any bugs; e-mail me at support@imageresizing.net, as I don't get comment notifications.

14 weeks ago @ Nathanael Jones - 20 Image Resizing Pitf... · 0 replies · +2 points

True - RoughCompare assumes both the source file and destination file are on the same filesystem type. If you have part of the website on NTFS and part on FAT, you'd definitely need to change the code. However, changing it to 2s acuracy may cause false matches, so I wouldn't suggest it unless you are actually using FAT.

Regarding the time stamps, time zone issues are always important. I've had an issue where the file came from a SAN with the time set in the future and ASP.NET threw an exception when I tried to use the value in theLast-modified: HTTP header.

For the ImageResizer DiskCahce however, file times don't need to be accurate or use the right time zone for the disk cache to work properly - it really doesn't care - it only cares if the source file timestamp changes. If you use a broken file copy tool to move from one SAN to antoher, well, images may get regenerated. But there's really no way to fix that without introducing false matches, which happen. A few years back I used to (due to a typo) only compare the millisecond count, not minutes/hours, and I had multiple reports of cached files not updating.

17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 1 reply · +1 points

Yep, and it's easy. Just call

jcrop_reference.setOptions({ aspectRatio: 16/9 });

Notice that that's the same code used by the event handler for the 'lock aspect ratio' checkbox.

17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 0 replies · +1 points

Glad I could help :)

17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 2 replies · +2 points

The issue is that you were trying to use the sample project as a "Web Site" instead of a "Web Project", and thus the files were not compiling correctly. If you open a Web Project as a Web Site, you must change "Codebehind" to "Codefile" in the first line of each .aspx file.

17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 4 replies · +1 points

Well, in lieu of answering questions, perhaps you could e-mail me a .zip of your project so I can take a look?

17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 6 replies · +1 points

What version of Visual Studio are you using? Are you using the original JCropExample project or did you copy it into your own? It sounds like Advanced.aspx.designer.cs is not being compiled.

Try creating a new .aspx page in your project (so that it will use the correct files appropriate to your specific project type), then copy and paste the sample code into Page_Load, and the contents of the .aspx into the new .aspx page. Leave the <%@ Page> declaration alone - don't replace it with the declaration from the sample code.

Try that, and see if it will compile for you. I suspect you're using a Web Site project instead of a Web Application project.

FYI, login to IntenseDebate if you want your comments to be automatically approved... anonymous comments have to be individually moderated.

17 weeks ago @ Nathanael Jones - Referencing stylesheet... · 0 replies · +1 points

It doesn't work as expected because MS hacked the way master pages are implemented. They could fix it easily (in minutes), if it was a priority for them. The issue was reported in 2007, and is still listed as open and pending. Vote for it here: https://connect.microsoft.com/VisualStudio/feedba...

17 weeks ago @ Nathanael Jones - jCrop and ASP.NET serv... · 8 replies · +1 points

Looks like there was a bug in the commented-out code: It should read (this is inside Advanced.aspx.cs, in Page_Load):

if (Page.IsPostBack && !string.IsNullOrEmpty(img1.Value))
ImageBuilder.Current.Build("~/" ImageResizer.Util.PathUtils.RemoveQueryString(img1.Value), "~/cropped.jpg", new ResizeSettings(img1.Value));

Put a plus symbol between "~/" and ImageResizer.Util... The comment system is stripping it out..