Displaying 20 results from an estimated 3000 matches similar to: "Rails 4 - Remote upload image"
2006 Mar 08
3
file_column Cropping -> image offset information
Hello,
I had a problem cropping images with file_column. These are my settings:
file_column :image, :magick => {
:versions => {
:thumb => "80x80>",
:medium => "150x150>",
:square => {
:crop => "1:1",
:size => "50x50!"
}
},
2012 Mar 20
4
Batch mode creates huge diffs, bug(s)?
So the short summary of my problem is, the batch file rsync creates is HUGE
for a very small change. The idea is to create workstation image with
partimage, update it with some software and send the image update diff over
the wire to a large number of destinations over a satellite link, but the
batch file updates are several orders of magnitude too large. I don't know
exactly how partimage
2008 Jan 15
1
Converting Watir script to Mechanize
I have a Watir script that I would like to convert to a Mechanize
script. The watir code looks like this
require ''watir''
include Watir
def test
ie = IE.new
ie.goto(''http://cpref.gsm.com/inter.asp?r=8084'')
ie.text_field(:name, ''inter_string'').set(''Potassium'')
ie.button(:id, ''image1'').click
2005 Apr 22
1
Newbie Question
Dear All,
I have installed Red Hat Enterprise 3 on one Intel-32 bit machine. I
have
installed all systemimager/systeminstaller/flamethrower RPMS that machine. I
would like to install OS through PXE boot on another Athlon machine.
When I execute mkssimage for creating a image master
# mksiimage --Add --name image1 --path
/var/lib/systemimager/images/image1 --filename
/root/rpmlist
2008 Dec 04
2
Does animated gif will work properly using RMagick?
Dear all,
I have used RMagic to read and write a image while uploading. An
animated gif was read from my local machine and was written in my images
folder using RMagick. But the animated gif which i read was witten in my
folder without animation. What should i do to write the gif image with
animation.
Here is my code to read and write image while uploading.
image = params[:image][:blob]
2006 Apr 23
1
file_column does not work with update model
When I am creating a model, everything works but not during update
(where I use Model.update_attributes(model_attributes) ).
I get the error:
Do not know how to handle a string with value ''image_xxx.jpg'' that was
passed to a file_column. Check if the form''s encoding has been set to
''multipart/form-data''.
The form is indeed multipart. Does
2005 Oct 14
0
ImageMagick helper
Trying out the imagemagick helper by Gijs van Tulder, I''ve run into a
bit of a problem.
In environment.rb, I placed: require_gem ''actionpack-imagemagick''
I''ve set up my controller as such:
class ProfileController < ApplicationController
# ..SNIP..
class Photo < ApplicationController
imagemagick_for
2003 Jul 31
2
help with graphics
I'd like to use lattice to make graphics under conditional structure like :
if (TRUE) { barchart(....)
dev.print(png, file = "image1.png", width = 600)
}
but there's nothing in the output file. It seems that it's too long to print graphic into the graphical output and the saved file is a blank picture.
it works if I do that without the conditionnal structure.
it doesn't
2013 Jun 20
10
Two identical copies of an image mounted result in changes to both images if only one is modified
Hi,
I''ve observed a rather strange behaviour while trying to mount two
identical copies of the same image to different mount points.
Each modification to one image is also performed in the second one.
Example:
dd if=/dev/sda? of=image1 bs=1M
cp image1 image2
mount -o loop image1 m1
mount -o loop image2 m2
touch m2/hello
ls -la m1 //will now also include a file calles "hello"
2009 Apr 16
3
Presenting R Results in Webpages
I apologize in advance that this question is not specific to R, but I thought some R users may be using this in their work process flow.
I would like to be able to have a tool (prefer "scriptable") that will take two images and some pre-written text and put it on an simple webpage.
That is, it would look something like the following:
|---------------------------------------------|
2008 Jul 25
4
Creating a Bootable Image file
Newbie Question:
We are using RHEL 5.2 with the 2.6.18-92.1.6.el5xen kernel. I am trying
to follow instructions that I found to create an bootable image by doing
the following:
I first created a 10 gig file and formatted the partition using the dd
and mkfs.ext3 commands:
dd if=/dev/zero if=generic.img bs=1024k count=10000
mkfs.ext3 -t ext3 generic.img
>From a working image that I
2010 Aug 10
2
p-values with pvclust
Hi,
if you look at the first image (Image1) you see that there are 2 main
clusters 7 and 8
I wanted to use pvclust to calculate a p-value whether these clusters are
due to chance
or statistically significant. Unfortunately pvclust does not provide a
p-value for the first
brunch (7 and 8).
So I added a row to my matrix which is very different to the rest of the
data to create an additional
2012 Oct 22
2
Assigning values to several consecutives rows in a sequence while leaving some empty
Hello all,
I'm trying to group several consecutives rows (and assigning them the same
value) while leaving some of the rows empty (when a certain condition is not
fulfilled).
My data are locations (xy coordinates), the date/time at which they were
measured, and the time span between measures. Somehow simplified, they look
like this:
2012 Sep 25
1
Show thumbnail preview of image before upload
Is there any ruby way to show thumbnail preview of image before upload?
Using below javascript, I can achieve this
window.URL = window.URL || window.webkitURL;
var fileElem = document.getElementById("fileElem");
function handleFiles(files) {
var img = document.getElementById("image-preview");
if (!files.length) {
img.src =
2014 Apr 28
0
upload multiple images with paperclip in rails 4?
Hello, I'm learning rails and creating a small project,
Someone could tell me how can I upload multiple images with paperclip in
rails 4?
Thank you very much, I hope someone can help me.
Greetings.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an
2003 Dec 17
3
friday entertainment
Sometimes people call it "Magic Lubricant". Sometimes - "Power
Bottle".
Why?
An amazing erection WITHING SEVERAL SECONDS is guaranteed to you!
Double-strengthed orgasm and full satisfaction... I guess this is
excatly what are waiting from sex!
Your easy-to-use solution is here: [1]http://www.ghkp.us/vpoil/?utopia
-----
Link below is for that people
2006 Jun 16
4
Depot App: Upload Images
Hello,
I''m a newbie to Ruby on Rails and like many others, I have been working
through the depot application in the Agile Web Development book.
I was wondering if anyone had enhanced the depot application to include
the upload of images for each product? The following describes the sort
of thing that I have been asked to produce for a client, so apologies if
the information is not
2006 Jul 02
1
url_for_file_column not working
Hi All
I am able to upload images but when I add the code to my view.rhtml
<%= image_tag url_for_file_column("myimage", "image1", "medium" ) %>
I dont get the image displayed; the reason being some extra numbers are
added to the image file name.
For example when I loaded intro_image.jpeg; it has the right file name
in the database table.
When I check the
2010 Aug 10
0
xenconsole: Could not read tty from store: No such file or directory
Hi,
I build xen-3.4.2 with VT-x support on ubuntu9.10 amd64-server.The machine boots ok and I start xend manually.I encounter the following problem with guest creation: $xm create -c /opt/vm/appscale1/xen.conf
Using config file "/opt/vm/appscale1/xen.conf",start domain appscale1,I get the error:"xenconsole:Could not read tty from store: No such file or directory".The guest
2014 Sep 13
0
Хотите узнать как я заработала 450 тысяч рублей на бинарных опционах?
???? ????? ?????????, ??? 32 ????.
? ????????? ????? ? ???? ??? ????? ??????, ?? ??????? ????? ???? ?? ?????? ?????? ????, ????? ?? ?????, ????? ???????? ?? ????????? ? ??. ???? ???? ???????, ? ?????-?? ???????? ???? ??????? ? ?????????? ?????, ??? ???? ????? 19 ???. ? 31 ??? ??? ???????? ???????????? ? ?????????? ?????????????, ???? ? ?????? ? ??? ????? ???? ????????? (?? ???????? ?????????????