Displaying 20 results from an estimated 600 matches similar to: "File upload (lighttpd + apache2_"
2005 Dec 14
3
image upload (apache2.0+ lighttpd)
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 Mar 07
2
file_upload ... won''t
Hi, I''m just trying out Sebastian''s file_upload plugin, but I''m having
problems - bound to be my fault! I can''t search gmane at the moment for
examples that I''m sure have been recently posted :-(
I have a MySQL table "scripts" with a field "filename varchar(255) not
null, and a basic scaffold''d set of files for model
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 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 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 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
2005 Dec 18
1
Showing images secure way
Hello all,
I am working a big project for a kind of image storing and sharing
website. Whole idea is to be member and store your images on the site
and make some of them public.
For security reasons; I store images outsite of public and in
Administration section
def show_image
image = Image.find(params[:id])
raise "You are not owner of this image" if image.member != @member
2010 Jun 24
2
Euclidean Distance Matrix Analysis (EDMA) in R?
I am studying on statistical shape analysis, I wonder is there any way or
package available that I can perform Euclidean Distance Matrix Analysis
(EDMA I or EDMA II) in R...
thanks
Gokhan
--
View this message in context: http://r.789695.n4.nabble.com/Euclidean-Distance-Matrix-Analysis-EDMA-in-R-tp2266797p2266797.html
Sent from the R help mailing list archive at Nabble.com.
2007 Jan 30
0
using file_column with backgrounDRb ?
Hi list,
I am quite new to baclgrounDRB, so far I just tested the samples, so far
it works fine, also I got it working the cronstyleway for testingpurposes.
Now I have seen ppl are using bDRb for fileupload, especially with the
file_column plugin.
Unfortunatly there are only a few tutorials out there, well, more
articles than tutorials in fact, and additionally the few I found are
all
2006 May 17
0
RJS referring to window.parent
Hi all,
I''ve been doing some work on the Ajax Scaffold
(http://www.ajaxscaffold.com/), to make it work with file uploads
(more specifically, the file_upload plugin).
The first logical step was to get rid of form_remote_tag, since it''s
impossible to send files via XMLHTTPRequests (to my best knowledge).
So I referred to the iframe hack, similar to the upload progress bar
here
2006 May 30
0
url_for_file_column and image_tag not working right together
i just got file_column working and i love it. but i''m having some
problems with the urls. my application is not in the base directory, it
is in a folder called "/testapp". when i use "image_tag" with
"url_for_file_column", i get this path:
/testapp/testapp/entry/image/3/myimage.jpg
the image is located at:
/testapp/entry/image/3/myimage.jpg
to see if
2006 Mar 11
0
file_column value always null
Hello,
I am trying to use file_column to upload images. I went through the
examples and correctly have the file upload button and field working
in a create form. When I save the new record the file_upload column
is always null. I updated the model and everything else appears to be
correct, however I assume it is some sort of configuration issue. Any
guidance would by greatly appreciated.
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 Aug 10
0
polymorphic challenge
Hello guys,
I have 2 classes (I pasted small part of them here);
class Shop < ActiveRecord::Base
has_many :items, :as=> :itemable
protected
def self.paying_scope
with_scope(:find => {:conditions => ''expires_on > NOW()'', :include
=> [:address]}) do
yield
end
end
end
class Item < ActiveRecord::Base
belongs_to :itemable,
2006 Jul 03
0
Mysql configuration is slowing me down
Hi all,
I have a strange configuration problem
I ordered Debian VPS and installed Rails with all the necessary
components with and deploying a dating site. But this is my first system
admin work as well.
I was surfing site I develop and when it performs so good on my local
computer it is having problems on my VPS.
Let my production log explain it
Completed in 0.79161 (1 reqs/sec) |
2006 May 30
0
Ajax.Updater problem in IE
Hello All,
Anybody can give me an advice why following code works
in Firefox + Safari but not in IE?
function load_mails(div_id){
$(div_id).toggle(); //hide or show
var pars = ''id='' + div_id;
var myAjax = new Ajax.Updater(
div_id,
''../library/partials/load_messages.aspx'',
{
method: ''get'',
parameters:
2005 Dec 17
0
Qtek 9100 IE simulator
Hello all,
I will develop small application with Rails and client wants to reach
with Qtek 9100 to work with it.
Anybody know any simulator that I can test Internet Explorer
capabilities on Qtek?
I have WindowsXP + Mac OS X, so any software that will work on them will
be good for me.
Thanks
Gokhan
--
Posted via http://www.ruby-forum.com/.
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/.
2023 Oct 30
1
[PATCH 2/2] nouveau/disp: fix post-gsp build on 32-bit arm.
From: Dave Airlie <airlied at redhat.com>
This converts a bunch of divides into the proper macros.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
drivers/gpu/drm/nouveau/dispnv50/disp.c | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c
index