Displaying 20 results from an estimated 34 matches for "gokhan".
Did you mean:
gokan
2006 Jun 18
10
acts_as_enumerated
...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 working example virtual_enumerations.rb file for
acts_as_enumarated?
Thanks
Gokhan
--
Posted via http://www.ruby-forum.com/.
2006 Jun 23
2
polymorphic challenge
...Could not
find the source association(s) :favorite or :favorites in model
Relation. Try ''has_many :favorites, :through => :favorite_profiles,
:source => <name>''. Is it one of :relationable?"
Any idea solution? I am open to different options too.
Thanks all
Gokhan
www.sylow.net
--
Posted via http://www.ruby-forum.com/.
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
2005 Dec 14
3
image upload (apache2.0+ lighttpd)
...received an invalid response from an upstream server.
The proxy server could not handle the request POST /myXC/update_avatar.
Reason: Error reading from remote server
If I try lighttpd without apache, it never times out and waits for
server''s response.
So any guess?
Thanks in advance
Gokhan
--
Posted via http://www.ruby-forum.com/.
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 Jan 10
3
Serving lots of images to only registred users
...n in browse controller will be called 20 times =
lots of sql query to run especially for each image action I have to
check if user is logged in user. It can be pretty heavy.
Anybody has better idea? Or anybody worked on such a project and what
kind of solution you followed?
Thanks all
Regards
Gokhan
--
Posted via http://www.ruby-forum.com/.
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 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 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/.
2007 Jan 16
4
ocfs Vs ocfs2
Hi everbody this is my first post,
I have two test server .(Both of them is idle)
db1 : RHEL4 OCFS2
db2 : RHEL3 OCFS
I test the IO both of them
The result is below.
db1(Time Spend)db2(Time Spend)OS Test Command
dd (1GB) (Yazma)0m0.796s0m18.420stime dd if=/dev/zero of=./sill.t bs=1M count=1000
dd (1GB) (Okuma)0m0.241s8m16.406stime dd of=/dev/zero if=./sill.t bs=1M count=1000
cp
2007 Jan 16
4
ocfs Vs ocfs2
Hi everbody this is my first post,
I have two test server .(Both of them is idle)
db1 : RHEL4 OCFS2
db2 : RHEL3 OCFS
I test the IO both of them
The result is below.
db1(Time Spend)db2(Time Spend)OS Test Command
dd (1GB) (Yazma)0m0.796s0m18.420stime dd if=/dev/zero of=./sill.t bs=1M count=1000
dd (1GB) (Okuma)0m0.241s8m16.406stime dd of=/dev/zero if=./sill.t bs=1M count=1000
cp
2005 Dec 18
1
Showing images secure way
...ur experiences?
Also currently we are serving our site with RedHat+ lighttpd + scgi. We
are planning to move it to Debian + lighttpd +scgi(or fastcgi). Is it
the best combination?
Really would love to hear your experiences and also opions if there is
better algorithm I can apply.
Best Regards
Gokhan
--
Posted via http://www.ruby-forum.com/.
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.
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
2007 Jul 11
7
Best way to upload an image and make a thumbnail
Hi, which is the best way to upload an image, keep that and also make a
thumbnail?
The images should not be stored in the database, but as normal image
files in a specific directory.
I think that for the thumbnail i should use rmagick, but for the upload
? (something which work with and without javascript, in every browser)
Thanks :)
--
Posted via http://www.ruby-forum.com/.
2006 Aug 10
0
polymorphic challenge
...wn or not
during searches => NO PROBLEM
I need to do same think for items, if a shop subscription (=expires_on)
is expired then I wanna exclude that item from search.
What is the elegant way to solve it?
Thanks in advance
PS: I use http://rubyforge.org/projects/ez-where/ for my searches.
Gokhan
--
Posted via http://www.ruby-forum.com/.
2006 Jul 03
0
Mysql configuration is slowing me down
...tic part is (50% of the time same page):
Completed in 8.75947 (0 reqs/sec) | Rendering: 1.44400 (16%) | DB:
7.30785 (83%) | 200 OK [http://hidden.com/dating/home]
As you see DB is taking sometimes more then 7 seconds and sometimes
almost none.
I will appreciate any input or direction.
Thanks
Gokhan
OS: Debian Sarge
DB: mysql Ver 14.7 Distrib 4.1.15, for pc-linux-gnu (i386) using
readline 4.3
Rails: 1.3
gem list
*** LOCAL GEMS ***
actionmailer (1.2.2, 1.2.1)
Service layer for easy email delivery and testing.
actionpack (1.12.2, 1.12.1)
Web-flow and rendering framework putting the...