Displaying 20 results from an estimated 800 matches similar to: "image upload (apache2.0+ lighttpd)"
2005 Dec 14
0
File upload (lighttpd + apache2_
Hello all,
I use lighttpd 1.4.8 and I have a problem with image uploads.
I tried file_upload plugin, but it is strangely working sometimes and
refuse to work sometimes.
Function in the controller is (@user is loaded in before_filter)
def update_watermark
@user.watermark = params[:user][:watermark]
@user.save
redirect_to :action => "index"
end
Model is
2006 Apr 25
3
limiting options in file_upload
Does anyone know if it''s possible to set constraints to the size & type of file that file_column will accept?
I''d like to limit to image files of less than 2MB.
If this isn''t possible with file_column, is there a graceful way of getting the controller to handle it?
thanks
dorian
--
--
I do things for love or money
2006 Jun 18
10
acts_as_enumerated
Hello All,
Any one using acts_as_enumerated? I need help using (I like that it
caches values in memory)
I am working on a dating website and there are lots of options I want to
store as enumerated like
Status; divorce, single,
Sex: male, female
Eye color; blue, brown, green....
and lots more....
But I do not wanna keep them in seperate tables, and wanna keep them all
together.
Anyone has a
2006 Mar 22
5
foreach item in column
Hi there,
I have a database with phonenumbers, and I want to make a function
that runs a command for each of these numbers, with the number as an
argument
Something like this in Perl:
system("/bin/command $number");
mysql> select * from numbers where list = "one"
+----+----------+----------+---------------------+-----------+
| id | number | name | email
2006 Jun 23
2
polymorphic challenge
Hello All,
I have a little challenge and I am not sure if this is even possible
I am working on a dating/event site and few functionalities are similar
that I want to centralize them.
We have users which can have
- favorite users
- interest list
- blocked users
All these relations are like;
User <-> Relation <-> User
I was thinking I could have a class called Relation (with a
2006 Jan 19
4
validates_presence_of
I am just going through the book and I come across a problem with the
code in the app/models:
validates_format_of :image_url,
:with => %r{^http:.+\.(gif|jpg|png)$}i,
:message => "must be a URL for a GIF, JPG, or PNG image"
It seems to moan when it''s empty even though I removed :image_url from
validates_presence_of. How should I make it optional?
2006 Jan 26
4
Override has_many :order at run-time?
Is it possible to override has_many''s :order attribute at run-time? e.g.
something like:
<% for category in @site.categories(:order=>''name'') %>
...
<% for category in @site.categories(:order=>''rank'') %>
...
thanks
csn
--
Posted via http://www.ruby-forum.com/.
2006 Jan 10
3
Serving lots of images to only registred users
Hello guys,
I am building a photo website and I have some questions before I really
start programming the site.
My system will be Debian + lighttpd + mysql +fastcgi + ImageMagick
I plan to use file_column for image handling/verification and thumbnail
creation.
My question is;
I need to store images in a place outside of webroot so only registered
members can see them. To serve them secure
2006 Jan 20
8
validates_confirmation_of not working
is there any special requirement for validates_confirmation_of ? I am
trying to make sure 2 passwords are equal (cleanly the rails way)..
In my view i have two fields with id user[password] and
user[password_confirmation].
in the model i have
validates_confirmation_of :password, :message =>"Passwords do not match "
Am i missing something here ?
thanks
adam
2006 Apr 01
4
Saving images in shared directory w/ Capistrano/SVN?
Hi all,
I''m using Capistrano and SVN to version control and deploy, but I''m not
sure what to do about my images directory. I use file_column and
RMagick to save images to the disk under a model called "Image", and
they''re saved in public/image/... etc.
Each time I deploy a new version, my image folder doesn''t exist anymore.
I don''t want
2006 Jun 07
2
Qick Q: Expression in this Controller
I tried putting this inside my controller:
def goodbye
@link = Link_to "goodbye!", :action =>"goodbye"
end
and display it in my views calling the @link variable.
Of course it doesn''t work.
Why?
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Mar 22
3
Problems with validates_presence_of...anybody?
Hello everybody,
I have been developing small applications in Rails from quite some time.
But lately, I came across a bug which I have not been able to correct.
If anybody could help me with it, would be of great help thankyou.
Actually, the problem is that I have a form in my application with some
set of fields.
Now what "validates_presence_of" should do is that if I submit the form
2006 Apr 30
4
Subversion and Capistrano
I have a project under Subversion, deployed by Capistrano.
When it is deployed, obviously I need to deploy "real" copies of
database.yml, deploy.rb, and maybe a couple of other files.
But if I offer it for public checkout, I obviously do not want these
files as part of the checked out code.
What''s the best way to handle this?
--Al Evans
--
Posted via
2003 Aug 28
1
Print Options & CUPS - Can't stop watermarking?
Greetings,
I have just set up samba printing with CUPS as the back end. (Samba
2.2.8a, CUPS 1.1.9)
Everything works great, including automatic driver download/Point -n-
Print.
The problem is that whenever I print through Samba from a Windows 2000
Workstation, a watermark gets added to the print job.
The default driver options are set on the server, so that watermarking is
"off",
2009 Jul 24
1
Attachment_fu - watermark tmp file before saved to S3
Hi there,
I''d like to use RMagick to watermark an image in the tmp directory
before Attachment_fu saves it to Amazon S3.
I took a look at the callbacks available in attachment_fu. There''s an
''after_attachment_saved'' method but this would be too late, and a
''before_thumbnail_saved'' but this is no good because it''s for
thumbnails.
I
2009 Apr 13
5
HP Laserjet Printer Installation
Hi all,
I have a very good query related to printer sharing using samba. Following
is the scenario...
I had installed HP laserjet 9040Dn printer on redhat Enterprise linux 5.
Shared it using samba. Used winbind protocol to integrate linux with
windows AD 2003. Now i am able to see printer in Active directory as well
as linux computer account in AD. But unable to set option
lpadmin -p printer
2019 Nov 27
3
RFC: Loadable segments watermark for lld
The ELF file header isn't always covered by a segment but still affects
loading. I think everything else that effects loading/dynamic linking is
always covered by a PT_LOAD segment. As evidence this is basically what
--strip-sections in llvm-strip and eu-strip do and they produce perfectly
runnable binaries.
Having a hash of the actual memory map is interesting IMO. Build IDs can't
really
2006 Jul 14
2
watermark with file_colum
Is this possible?
I see rmajick allows for a image.stenago( watermark=>''myimage.gif'')
Anyone have any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060714/6e9af7a6/attachment.html
2018 Mar 05
2
Why files goes to hot tier and cold tier at same time
Hi Guys
Got a quick question regarding hot tier and cold tier.
I got a gluster volume with 1 x 3 hot tier and 1 x 3 cold tier.
watermark-low is 75 and watermark-hi is 90. usage of volume is very less.
My files always go to hot tier and cold tier at same time
As I understand, data should go to hot tier only until demoted.
Could someone please shed some light into this?
Thanks in advance.
--
2019 Nov 21
2
RFC: Loadable segments watermark for lld
Hello all,
I'm implementing a watermarking feature for lld that computes a hash of
loadable
segments and places the result in a note section. Ongoing work can be found
here:
https://reviews.llvm.org/D70316
https://reviews.llvm.org/D66426
The purpose of this watermark is to enable detection of post-link
modifications
to the loadable segments of the binary. Such modifications may produce a