Displaying 20 results from an estimated 4000 matches similar to: "ActiveRecord with only a primary key"
2007 Jul 22
18
db:fixtures:load order
I was trying to deal with foreign key issues related to order of
fixture loading when I came across this:
http://techpolesen.blogspot.com/2007/04/rails-fixture-tips.html
This got me looking deeper into rails and I noticed that
db:fixtures:load calls Fixtures.create_fixtures once for each fixture
file. However, Fixtures.create_fixtures is capable of taking multiple
files and also handle the
2007 Dec 01
10
Fixtures Cleanup
All,
I''ve been playing a bit with some patches to make the fixture loading
and management code a little bit easier to maintain. If I were to
start chopping out features, how would you feel about losing:
Fixture instantiation,
Old school single-file fixtures,
CSV fixtures,
The ability to specify a subset of fixtures (everything''s always
loaded instead),
The ability to
2006 Feb 09
1
Shapefiles
Dear List,
I have examined the sp, maptools, and shapefiles packages (Windows) but
cannot seem to figure out a solution for writing shapefiles for 'curvy
shapes'. The scenario is that I generate a series of polygons, circles, and
ellipses on a plot and would like to convert them to shapefiles. Since the
circles and ellipses are do not return a coordinate list during the plotting
2005 May 30
1
Unique arrangements of a vector
Dear List,
Running on a PC (Windows 2000) with 256 MB RAM, Version R1.9.1
I have a relatively simple problem, which I can solve for relatively small
datasets, but run into difficulties with larger ones. I believe that my
approach is a hack rather than something elegant and I was hoping that
somebody on this list might help me improve my code. Basically, given a
vector of values (e.g.,
2011 Sep 20
1
Boxplots from 4 dimensional array
Hello list members,
I am working with simulated data for landscape pattern analysis. I have
1000 replicates of binary (2 colour) gridded landscapes at each combination
of 9 levels of class proportion and 11 levels of spatial autocorrelation.
The results are stored in an array as follows:
> dim(surfaces)
[1] 38 9 11 1000
The dimensions are defined as follows:
[x,,,] 1:38, integers
2006 May 25
1
Building Libraries
Dear List,
I have just compiled my first R library for submission to CRAN; however, I
have a tiny problem with 'R CMD check' that is holding me back. I have read
extensively the PDF document on Writing R Extensions and the 'Making R
Packages Under Windows' tutorial by P. Rossi. All functions are given in R
code (no C/C++/Fortran) with two very simple demonstration datasets. My
2006 May 22
2
selectively disabling parameter logging in controllers
By default, Rails logs all parameters passed to a controller method.
As far as I can tell, this happens in both development and production
modes.
I have a form that collects some sensitive data. I don''t want that data
sent to the log, at least not in production mode. Of course, I''d still
like to log everything else. Is there a way to accomplish this?
--
Posted via
2004 Mar 25
0
AW: Public Printer Share with security=domain
yes, the printer works..I just have to enter a username/password to
print to it. I want it to be totally public, so no authentication is
required.
thanks again,
stephen
Radio Gong 2000 GmbH & Co. KG [Technik] wrote:
> Did u configure the printer on the server???
>
> Make sure ur directory /var/spool/samba has the same rights like /tmp.
>
> If u like to print from windows
2009 Mar 07
0
Be careful of BIGINT primary key fields in MySQL. Will cause problems with ActiveRecord create (but not find)
The MySQL/Ruby library doesn''t properly handle inserts into tables
with the primary key being a BIGINT
If the ID returned to the MySQL/Ruby library is LARGER than the INT
range, the value is returned to Ruby truncated and incorrect. This is
then passed up to ActiveRecord and into the id field of your model.
The actual INSERT worked properly and when do you an ActiveRecord find
for the
2004 Aug 04
2
[Bug 40] system hangs, Availability problems, maybe conntrack bug, possible reason here.
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=40
------- Additional Comments From pmccurdy@net-itech.com 2004-08-04 06:06 -------
We have managed to replicate this bug in-house. It seems to happen to us when
we have a machine acting as a NAT router that we saturate with outgoing UDP
packets; we use hping2 to generate them from a workstation connected via 100
Mbit
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
2005 Nov 21
5
Error: Error creating domain: (22, ''Invalid argument'')
Hi there
I get the following error message when i try to "xm create <domid>"
Error: Error creating domain: (22, ''Invalid argument'')
I have included everything i can think of
Thanks
The DomU config is
kernel = "/boot/vmlinuz-2.6.12-xenU"
ramdisk = "/boot/initrd-2.6.12.6-xenU.img"
memory = 128
name = "xen01"
nics=1
disk = [
2006 May 22
4
How to check an input String is a number or not in ruby?
How to check an input String is a number or not in ruby?
Thanks in advance,
Joshua
--
Posted via http://www.ruby-forum.com/.
2004 Mar 29
0
Multiple connections to a server by same user, using more than one user name, not allowed.
Hi,
I am using samba 2.2.7, configured with winbind, connected to a domain.
I have publically shared printers that are done via user map. I also
have many shares that I need to authenticate for, due to access rights.
With one of the printers installed on my XP laptop, if I try to connect
to a share, but inputting my "DOMAIN\user" and "password" I get the
following error:
2003 Dec 22
0
[Bug 40] system hangs, Availability problems, maybe conntrack bug, possible reason here.
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=40
------- Additional Comments From pmccurdy@net-itech.com 2003-12-23 00:18 -------
We have noticed the same problem with our servers, running kernel versions
2.4.19 and 2.4.21 on systems with 3 Realtek 8139 100Mbit network cards. The
symptoms are that when the system is used as a PPTP server for windows clients
(98, ME, 2000,
2004 Mar 25
0
Public Printer Share with security=domain
Hello,
I am running samba 2.2.7 with winbind. The winbind stuff is working
fine, I am joined to the domain, and can authenticate samba via the
domain user accounts. I also however would like this machine to server
as a public printserver that requires no authentication. Is this
possible? my smb.conf looks like this:
[global]
workgroup = ALCHEMY
template shell = /bin/false
2023 Jan 25
1
Global variables in global variables
Le 25/01/2023 à 17:56, Antony Stone a écrit :
> On Wednesday 25 January 2023 at 16:46:14, Daniel wrote:
>
> On Sunday 01 January 2023 at 17:30:03, Antony Stone wrote:
>
>>> The [globals] section of that dialplan includes:
>>>
>>> Kphones=SIP/KC470IP&SIP/KSnom870
>>> Sphones=SIP/SYealinkT38G&SIP/SGC610IP
>>>
2003 Jul 01
1
tcp 22 > tcp 22
Hi,
I spotted today following line at my FreeBSD 4.6.2-RELEASE IPFIREWALL log:
Jul 1 13:34:35 fbsd /kernel: ipfw: 1400 Accept TCP xxxxxx:22 yyyyy:22 in via
ed1
where xxxxxx is the attacker's IP and yyyyy is my box.
But in sshd log, there are no traces left behind by this connection.
Normally, there is "Did not receive identification string from xxx" etc, when
somebody tries to
2012 Jun 03
0
[LLVMdev] clang -ast-dump-xml....
Hi !
I'm quite newbie with LLVM, so when replying please give sufficient information please. :-)
I want to use LLVM in windows, but apparently clang currently does not support linking of C++ classes against
microsoft compiler - due to export symbols mangling.
Subject was discussed on thread: http://comments.gmane.org/gmane.comp.compilers.clang.devel/20068
and I've tried to contact
2012 Jun 10
0
[LLVMdev] Shared libraries and windows ?
Hi !
clang -shared call_lib.c -olibcall_lib.dll
clang: warning: argument unused during compilation: '-shared'
clang: error: unable to execute command: program not executable
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Do you know are dll's supported on windows ?
--
Have a nice day!
Tarmo.
-------------- next part --------------
An HTML attachment