Displaying 20 results from an estimated 1000 matches similar to: "postgresql date"
2005 Mar 07
3
exclude an attribute from save
Hi,
I''ve used .save to save the attributes, but on my table there is an
autoincrementing id (not the primary key) that doesn''t need to be
inserted... but save try to INSERT it anyway... is there a way to
avoid save from acting this way or to whisper him to be more polite
this time? ;)
Thanks,
Enrico
--
"The only thing necessary for the triumph of evil
is for good men to do
2006 May 04
5
create databases with rake
hi,
is there a way to create the database (say development and or
production) specified in database.yml with rake?
thanks,
Enrico
--
"The only thing necessary for the triumph of evil
is for good men to do nothing"
Edmund Burke
2005 Jun 21
3
dynarch calendar problem when used with ajax
I''ve got a partial with a form using the dynarch calendar
(calendar_field behavior). Working.
Now I render this partial from the action specified in to a link_to_remote.
Now when I click the calendar it''s not showed anymore.
theese lines:
<%= stylesheet_link_tag ''calendar-system.css'' %>
<%= javascript_include_tag ''calendar'',
2006 May 12
4
validates_uniqueness_of with a condition
Hi,
I need to check the uniqueness of an attribute (a doc number) using a
condition (a specific year), I''ve found validates_uniqueness_of
:number, but I need to tell it I just want to check a specific year.
I''ve found :scope but I haven''t really understood it''s meaning, Can I
scope on a specific year?
Thanks,
Enrico
--
"The only thing necessary for the
2006 Feb 04
2
file_column path problem grouping controllers in to modules
Hey there,
good job with the file_column thing, but I''m experiencing a problem I
didn''t found about.
I''m grouping controllers in to modules (like Admin::Category Admin:Item) and:
url_for_file_column("dettaglio", "picture_url")
return this search path:
src="/detail/picture_url/development/5/dark.jpg"
there''s a development coming from
2005 Mar 08
4
change the model''s table name
I need to change the name of the table a model is connected to... like
the example in the API... the table is called mice and I want a class
called Mouse.
class Mouse < ActiveRecord::Base
table_name "mice"
end
I''m doing this cause I want tables in my language (italian) and avoid
the nameS thing.
just adding it in that way doesn''t work
ArgumentError in
2006 Feb 10
2
file column within link_to
Hi,
I correctly see:
image_tag url_for_file_column("element", "picture_url", "medium")
now I need to make it a link so I''ve used:
<%= link_to(image_tag url_for_file_column("element", "picture_url",
"medium"), {:controller => "products", :action => "sec_level",
:level_id => @element.id}) unless
2003 Apr 20
4
${EPOCH} and ${DATETIME} patch
Skipped content of type multipart/alternative-------------- next part --------------
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.14
diff -u -r1.14 pbx.c
--- pbx.c 19 Apr 2003 02:41:22 -0000 1.14
+++ pbx.c 21 Apr 2003 02:27:43 -0000
@@ -713,6 +713,8 @@
{
char *first,*second;
char tmpvar[80] =
2006 May 04
5
How to upload only jpeg & gif & png images into public/images using rubyonrails
Hello iam new to rubyonrails. Please any one help me out in "How to upload
only jpeg & gif & png images into public/images using rubyonrails"
Thanks in Advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060504/33a17ad2/attachment.html
2012 Apr 13
2
Odd characters at beginning of file
I'm use RPostgreSQL to access data on a Postgres server. I would like to
keep my SQL statements in external files, as they're easier to write and
debug in pgAdmin, then I use readLines to bring them into R and feed to
dbGetQuery.
Here's the problem. When I create a SQL script with pgAdmin, then load it
in R, the ensuing script fails when I feed it to dbGetQuery. When I inspect
the
2008 Feb 01
2
pgadmin and Centos 5?
I've been fighting to get the latest source of pgadmin compiled on Centos
5 64-bit.
I obtained gnu-c++ (so it was happy with g++). It then complained about
wxWidgets, so I obtained the source for that, compiled and installed, and
./configure for pgadmin saw wxWidgets and was happy with that. Go to
make...
It complains that some header file is missing. A google search reveals
limited
2006 May 16
9
Date transform
hi all,
i want my users to enter a date in "ddmmyyyy" format, do someone know
how may i transform it in "yyyy-mm-dd" in the controler before i add it
to the base please?
thks
irong
--
Posted via http://www.ruby-forum.com/.
2011 May 04
1
Format ddmmYYYY in date
Hello everybody,
I'm quite new in using R so please do not kill me if I ask stupid questions.
My problem is that I have a table containing dates in the first column of 10
years. These dates have the format ddmmYYYY at least in the csv-file. After
importing the file using read.table() R deletes the first character if it is
a zero. So e.g. if it's 01012010 R displays it as 1012010. Now of
2006 Apr 20
3
how to use own classes properly
I am using rails just for few days
Now i am developing traffic reports for my local network
I had to build database queries manualy becouse ActiveRecord does not
support selection of multiple sum() fields in silgle query
Then i wrote special class QueryBuilder which makes query string from
the given conditions (group by, where, additinal fields to select etc).
I put QueryBuilder just after my
2006 Apr 19
2
ubuntu 5.10 postrgres gem
Hi,
I''ve installed Ubuntu 5.10, with Ruby 1.8.4
with thoose rep:
deb http://www-devel.orcaware.com/packages/ubuntu/ breezy/
deb-src http://www-devel.orcaware.com/packages/ubuntu/ breezy/
when I give:
sudo gem install postgres
I get:
Attempting local installation of ''postgres''
Local gem file not found: postgres*.gem
Attempting remote installation of
2011 Dec 02
2
Problem subsetting: undefined columns
Dear R-users,
-I am new to R, and I am struggling with the following problem.
-I am repeating the following operations hundreds of times, within a loop:
I want to subset a data frame by columns. I am interested in the columns
names that are given by the rows of another data frame that was built in
parallel. The solution I have so far works well as long as the elements of
the second data frame
2005 Feb 15
5
date_select where to add "class"=>"something"
Hi,
I''ve looked on api.rubyonrails.org but I''ve not found how to add to a
date_select(object, method, options = {}) a class option to set the
class of all the select tags.
I''ve tried using "class" => "myclass" in thoose ways:
<%= date_select("costo", "data", "class" => "testo" ) %>
<%=
2003 Aug 17
3
Monitor application temporary hack
[apologies for no line wrap; config lines at bottom]
I have mentioned on several threads here that the Monitor application doesn't do exactly what one would expect: the originating and answering legs of a call are unsynchronized by the duration of the interval that it takes for the answering leg to pick up the phone. This can be very distracting in a final mixed version of the file.
Brian
2008 Apr 19
1
Query: how to group data by months from a text file
Dear R-users,
I have to deal with (txt) files of the form
10092007 24.62 24.31 24.90
11092007 19.20 23.17 22.10
13092007 24.71 27.33 23.10
14092007 27.33 27.90 24.10
15092007 28.22 28.55 24.30
16092007 28.53 29.24 27.40
17092007 24.19 30.64 26.80
18092007 22.60 20.62 28.40
19092007 18.89 21.70 14.70
20092007 21.27 22.92 17.30
21092007 22.38 24.72 18.80
22092007 23.94 24.73 20.40
23092007 25.33
2009 Jul 21
4
how to transform m/d/yyyy to yyyymmdd?
Hello,
I have a set of data that has a Date column looks like this:
12/9/2007
12/16/2007
1/1/2008
1/3/2008
1/12/2008
etc.
I'd like the date to look something like the follow (so that I could sort by
date easily).
20071209
20071216
20080101
20080103
20080112
How to do it? Thank you very much
Julia
--
View this message in context: