ROR: Paperclip styles
I have a model that handles all my uploads of different filetypes. How do I create a style with the same name as the :basename so that the url will be the same for images and non-image files? ...
I have a model that handles all my uploads of different filetypes. How do I create a style with the same name as the :basename so that the url will be the same for images and non-image files? ...
I was looking for a way to resize and move the browser's window and I've found it: self.resizeTo(w, h) and self.moveTo(x, y) - this seems to work perfectly, but only in Firefox and IE (tested with IE8, don't know how does it work in the previous versions). How can I force the same behavior (resizing and moving) in Opera and Chrome? In th...
I am able to resize the from using the code below but it resizes towards right side , from bottom right corner i want to modify the code so that user can re size the form from bottom left corner. also most of the solution given on this site are based on WndProc / WM_NCLBUTTONDOWN and i am not using it because my form have lots of cont...
Hey everyone, I currently have a HTPC connected to a plasma in my living room, and I've had a few issues with image retention. While browsing the web, etc. for an extended period of time I'll run into the issue. However, it looks like it should be relatively easy to set up a script with AutoHotKey to resize the window automatically on...
I want an NSView that can be resized by dragging its the bottom right corner around, just like an NSWindow. I want to be able to embed this NSView into a parent NSView. Is there a component like this in Cocoa or any of its extensions? ...
How is it possible to zoom a photo contained in a <canvas> tag? In particular I'd like to zoom in on the photo at the point the user clicked. The zoom is not difficult to do: img.width = img.width + 100; img.height = img.height + 100; ctx.drawImage(img,0,0,img.width,img.height); The problem is that I would also like to center the zoo...
Hello! I have a Spark Group with an image inside and a label control. <s:Group><mx:Image source="..."/><s:Label text="Hello!"/></s:Group> The image is that of a speech bubble. I want to make the effect of it growing from bottom-right to full size. How can I do this and make it that resizing the Group will also resize the children? Th...
Possible Duplicate: Scaling images stored at S3 Before going to use Amazon S3 service, I want to know clearly as to the process of resizing images hosted on S3. My plan is - I want to move original image to S3, when user requests different sizes of thumbnails, I need to resize this and serve the image? What is the best soluti...
Hey all, I'm using Qt 4.7.0, a Qtreeview with multiple columns. What I want to do is "simple" : I want a line to increase its height, when it's selected. Will delegates be enough to do this ? I've been through some stuff with a QTableView : m_pMyTableView->verticalHeader()->setResizeMode(QHeaderView::Interactive); ... QSize Abstrac...
My application is running on a touch-screen and it has a transparent main window, so only way to resize is using grip, but on the touch-screen it is quite hard to do. I wonder if there is a way to increase the size programmatically. I have tried using custom commands but the window increases only by a small amount. Here is the code for...
I know I can user componentResized to listen for when the user resizes a window. This isn't a very nice solution. If I do this and add a resize() method for the children components, it waits until the user finishes the resizing until it calls the resize() method. Is there a way to resize the child elements as the resize happens? ...
Hi, I sub classed the BitSet class to add some additional methods. One of the is called "fold". It splits the BitSet in 2 halves and "combines" them with an or. (increases Information density) This works but the size (1024) of the folded BitSet is still the original size. Code: BitSet firstHalf; BitSet secondHalf; for(int...
I'm using gwt-dnd to implement drag-and-drop functionality in my GWT program. To get scrolling to work right, I need <ScrollPanel> <AbsolutePanel> <VerticalPanel> <!-- lots of draggable widgets --> </VerticalPanel> </AbsolutePanel> </ScrollPanel> I have to manually set the size of the AbsolutePane...
Hi, I'm making a application with ruby on rails and I was wondering if anyone knew of a gem or plugin to resize images as they are served similar to http://shiftingpixel.com/2008/03/03/smart-image-resizer/ Thanks. ...
Is there a simple and convenient way to tell when all the Components, Frames, and Child Controls on a TForm are fully painted? I'm basically looking for the equivalent of the onload() event found in web pages but in the context of Delphi forms. Preferably this technique would still work even if some form elements aren't currently visib...
I have a form that I would like to draw a custom title bar with as well as custom borders around the application to take over the form resizing. I turned off the regular title bar for the application and build my own out of a couple image which i set to anchor to the application. The issue is when the form is resized, it looks very chopp...
I'm using the FullCalendar plugin and it's working very well. I would like to disable the dynamic resizing of the table and its cells when the browser window is resized. Is that a possibility? (I noticed in the documentation the 'windowResize' callback fires after the calendar is already resized, so it looks like that won't help.) ...
So I've searched a ton of sites, and what I am looking for is, as the user types, the text automatically resizezs smaller (or larger, if they delete something). For an example, as well as the other code I'm using, you can visit http://twmorton.com/magicpreviewjquery/ Thanks! ...
When I add a subview to a UIView, or when I resize an existing subview, I would expect [view sizeToFit] and [view sizeThatFits] to reflect that change. However, my experience is that sizeToFit does nothing, and sizeThatFits returns the same value before and after the change. My test project has a single view that contains a single butto...
I'm searching for library or just code snippet to provide function like resize, crop with frame and rotate image after user pick image from image picker. Something like on this video: http://www.youtube.com/watch?v=Gb6xncXg1PY (0:55). Maybe someone has the same issue? ...