Displaying 20 results from an estimated 2000 matches similar to: "Nil in CSV Fixtures"
2006 Feb 22
0
Problem: Null values in a CSV format fixture show up a 0 in the test database
Hi all,
I''m running into a strange problem. I''m trying to get null values to
load from a fixture in CSV form into my test database, but they show
up as 0 (zero).
I have a table people (simplified version below)
create table people (
id int not null auto_increment,
target int null default null,
name varchar(50) not null,
primary key(id)
);
that has a
2006 Jan 22
11
ActiveRecord find
Suppose I have three tables - authors, posts and topics.
Every post have a topic and every topic has an author, so I have
posts.topic_id and topic.author_id. When the author is guest (not
registered), author_id is nil.
I need to find all the posts (in one query) where every post have all
the information of the topic and the auther, so if p is one of those
posts I could get the name of the
2006 Jan 29
1
Accessing attributes
I have a name of an attribute and I need to get its value and set a new
value for it:
x1 = a.foo
a.foo = x2
How do I do that if the name of the attribute ''foo'' is a var?
I thought about doing this:
attribute_name = ''foo''
x1 = a.attributes[attribute_name]
a.attributes[attribute_name] = x2
but this is a bypass and I''m quite sure it would cause
2006 Apr 11
4
Two versions of Rails on one PC
I want to have Rails 1.1 + Rails 1.0 on the same PC and be able to load
my script with a different version each time. Is it possible?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 06
5
Using helper method of another model
I have a template that belongs to a certain model (model A). I need to
call a helper method of a different model (model B). Then I need the
helper method of B to call a helper method of model C.
I tried using "include" and "require" and using namespaces, but I got
"undefined method". What is the way to do it?
--
Posted via http://www.ruby-forum.com/.
2005 Dec 23
6
Save using Update
Hi,
I want to update an existing row in table "items" where items.id == 10
I tried this:
item = Item.new
item.f1 = ...
item.f2 = ...
...
item.id = 10
item.save
I got an error
Duplicate entry ... for key 10 : INSERT INTO items ...
How do I make item.save to use UPDATE instead of INSERT?
--
Posted via http://www.ruby-forum.com/.
2005 Mar 23
4
Chanisavail and IAX2
Guys.
Anybody doing ChanisAvail on IAX2 channels?
Im trying to do this:
exten => s,7,ChanIsAvail(IAX2/anton:intrudercom@armando-gw)
But I get that the chan is unavailable eventhough I can make calls to that
channel. Is there any chatch?
The channels is defined as peer and Ialso tried doing a register on iax.conf
for that channel. Everything is registering ok and I CAN make the call.
Any
2001 Oct 26
2
create directories
if i do an rsync to the current directory, how come the parent directory
isn't created?
I normally just get my files spewed into the current directory,
eventhough I am trying to transfer a directory.
Something like this
rsync -avp host::module/ .
--
Jason G Helfman
Network Administrator
2004 Sep 06
2
added background noise problem?
The background noise is unacceptable. I'll have to stick with 32kbps mp3s
eventhough the files are 70% larger.
2011 Oct 04
3
CentOS 6: hostname and timezone
Hello,
I've purchased a new dedicated CentOS 6.0 / 64 bit server
and have 2 minor problems please:
1) The "hostname" is reported as CentOS-60-64-minimal at CLI -
eventhough I've edited /etc/hosts and changed the 2nd line:
127.0.0.1 localhost
176.9.123.123 preferans
2) Why is /etc/localtime a regular file? Should I maybe
rm /etc/localtime
ln -s
2004 Aug 06
2
mount fallback 0 || no streams found
hello,
I'm doing something wrong here, but I can't find what I need to do
right.
If I set the mount fallback to "0", no stream is found eventhough
there maybe one or even two sources in icecast.
What do I need to set/add so I don't need the mount fallback?
Using:
ices-0.2.2
icecast 1.3.11
on 2.4.9
thanks,
t.
--- >8 ----
List archives:
2003 Mar 16
2
> 2GB files on solaris with largefiles enabled!
Hello,
I'm facing a problem syncing files which is over 2GB size, eventhough i searched the archives and it been mentioned its possible if largefiles option is enabled, but still its giving me problems. i.e:
building file list ... readlink dir1/oracle_data1.tar: Value too large for defined data type
readlink dir1/oracle_data2.tar: Value too large for defined data type
readlink
2002 Oct 31
2
Problems of groups accessing shared directory
Hello,
I have problems with people having different groups who access a shared
directory via samba.
The requirements are:
1. There are people with group "group1" and group "group2" in /etc/passwd
2. 3 people from group "group1" and 2 people from group "group2" are allowed
to access a shared directory and have read/write access to that directory.
Our
2007 Feb 15
8
Defending againts simultanious attacks
Hi,
i have one centos 4.3 box, exposed to the internet.
since several weeks ago, i found numerous attemps to connect through
SSH, but failed.
they tried with many username, including root.
it's comes from different IP. some of them are foreign website.
How do i make my centos become smarter in handling this kind of attacks.
eventhough i've disable all the user accounts, left only the
2010 May 13
4
Free and Robust Hotspot Management Software ?
Dear all,
Could anybody give me some recommended open source software for wifi management?
What I am looking for is a simple and basic tools, for example the software will have these kind of features :
- user connect to the wifi network
- user got IP from DHCP but he can't browse to anywhere at first. Instead he will redirected to a "login page"
- administrator will set the
2007 Jan 30
1
Mounting a LVM partition on a USB attached drive
I have one of those USB hard drive cases, and I have my old hard drive
in it.
Eventhough I have made the changes to mount multiple USB drives in one
USB device (works fine for my media play with internal and SD drive), I
am only getting the first partition (/Boot (2)) automounted.
df does not show anything more about the drive, but the gnome hardware
browser shows all three partitions on the
2002 Jun 06
1
Backuo problem from ext3 file system
I have backup problem of redhat 7.2 with ext3 file system. I'm using dump for backup.
The problem is one of the filesystem (/proj) Incremantal backup is not happening.
The command used is
dump -u1a -f /dev/st0 /dev/md0
Daily its taking the entire file system backup eventhough i tried incremental.
This is happening only for /proj and proj1 is working fine.
Filesystem Size
2006 Feb 22
1
Centos on a Thumb drive
Here are 2 different 4Gb USB drives.
Flash memory: http://www.ecost.com/ecost/shop/detail~dpno~339754.asp $143
Mini Drive: http://www.ecost.com/ecost/shop/detail~dpno~306189.asp $80
How does one load Centos on these? Can you boot from CD, point to an
FTP server for OS, and install on the USB drive, eventhough the
system has its own harddrive?
Does the install have to be for a specific
2009 Jan 03
1
Unable install ffmpeg
Hi,
I installed ffmpeg using yum, and then tried to convert a asx video to flv
it says unable to find encoder x264, eventhough it is installed and I am
able to view it when I check ffmpeg --help.Can anyone tell me how to fix
this issue?
Thanks and Regards
Marky
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2013 Jun 10
1
Where Query in SQL
Hey all
I am trying to use where in clause in sql query in R
here is my code:
sql.select<-paste("select PERSON_NAME from UNITS where UNIT_ID in
('",cathree,"')",sep="")
where cathree is 1 variable with 16 observations as follows
UNIT_ID
1 205
2 209
3 213
4 217
5 228
6 232
7 236
8 240
9 245
10 249
11 253
12 257
13 268
14 272
15 276
16 280
but when i run