Displaying 20 results from an estimated 3000 matches similar to: "Remote Postgres is driving me crazy!"
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys,
I''ve been able to successfully install the postgres adapter for a remote
database machine to get rails up. My machine is running on Fedora 2.
Rails version 1.1.2. Is my yml config correct? I am getting this error
when I execute script/generate scaffold service_contents content :
exists app/controllers/
exists app/helpers/
create app/views/spiel
exists
2006 Feb 28
10
Salted hash login, postgresql, unit tests
Hello,
I have tried to install the salted hash login generator by following the
quick start guide at:
http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart.
Everything seems to work fine until I try to run the unit tests by doing
''rake test_units'', then I get the following error message:
<error-message>
[brasse@keso login-test]$ rake test_units
(in
2006 Mar 31
14
[newbi] Create a Model
Hello All,
Yesterday i put RoR with Locomotive. I am very happy :p.
So I follow this tuto
(http://developer.apple.com/tools/rubyonrails.html). I used Sqlite.
my database.yml
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password
2007 Jun 19
2
sequence name prefix
In Postgres, I use different database schemas for each application, by
declaring, e.g.:
class ApplicationController < ActionController::Base
ActiveRecord::Base.table_name_prefix = "keywords."
end
I assumed that the sequence names were also prefixed with the database
schema names, e.g.
keywords.things_id_seq
But Rails 1.2.3 assumes the sequence is *NOT* in the same schema as the
2011 Sep 13
4
Prepared statements and postgreSQL schemas
Hi guys.
I''m using a postgreSQL with multiple schemas. To change between schemas I
use the ''SET schema TO ...'' statement. That works ok in rails 3.0.
Rails 3.1 uses prepared statements and does not take into account the
''schema_search_path''. This is a big problem because the statement is
prepared once and then the same prepared statement is executed
2005 Oct 28
3
PostgreSQL. Multiply schemas in one database. How to?
Hi all.
I am using PostgreSQL in my current project and I have couple of questions
on this topic.
Previously I have used 3 databases for project. i.e.
megaproject_development, megaproject_test and megaproject_development.
But I don''t like this variant because of ''rake dump_db_structure'' writes a
lot of PostgreSQL specific data for structure file (operators, functions,
2010 Dec 06
12
FSX install... Failure
Hey guys I desperately want to install FSX, please don't post anything referring me to another sim, I already have it on another comp and I want to link them, I decided to use linux(Ubuntu 10.1) on this machine(programming reasons) so using wine that I installed three days ago, should have Wine triks, I attempted to install FSX but I got err. 1603.
Help please?
2006 May 17
9
Render No Layout?
Hi guys,
Am having a problem.
I have this def in my index controller that works like this:
def do_something
$a = variable1
$b = variable2
$c = variable3
$d = ""<script language=\"Javascript\"> \n new Insertion.Bottom(''#{$c}'',
''#{$a} - #{$b}''); \n </script>"
$trigger = "1"
render(:partial =>
2006 May 30
11
Another String Manipulation Exercise
Hi guys,
And I thought it wasn''t a problem. Here''s my string
"/var/www/vhosts/mysite.com/httpdocs/public/file/mypic.jpg"
How do i take out all the text that comes before "mypic.jpg"?
Trickier than I first thought.
TIA,
Bing
--
Posted via http://www.ruby-forum.com/.
2003 Sep 17
5
using matrix data for function
Hi All,
I have a function, f(x,y)
I have a matrix of data, m, with the 1st column is x and the 2nd column is y
What's the best way to get f(x,y) for each row of the matrix?
I tried
result<-f(m[,1],m[,2]) but it doesn't work.
Thanks!
Bing
---------------------------------
1060 Commerce Park
Oak Ridge National Laboratory
P.O. Box 2008, MS 6480
Oak Ridge, TN 37831-6480
Phone:
2006 Jun 21
8
Sans Periodically call remote-- possible?
I was wondering, imagine this situation. You have browser 1 on machine 1
and browser 2 on machine 2. I created a div so that I can update certain
elements on the database. Is it possible to have the data rendered on
browser 2 using ajax but without using the periodically call remote? Is
it possible to use the submit event from browser 1 to trigger browser 2
to update?
thanks,
Bing
--
2010 Apr 16
4
www.centos.org and the wildcard dns
hi guys,
At the moment there is a www.centos.org site. There is also a wildcard
dns setup that directs anything.centos.org to www.centos.org's content
This has a couple of 'issues' with SEO and google sepcifically. The
reason we have such low page rank is that google marks all of this as
duplicate content. I am sure there are other search engines that do as
well ( Bing has a
2003 Aug 12
4
print points from a huge matrix
Hi All,
I have a 8000*8000 matrix and I want to print out a file with the row name,
column name and the value for those point with values satisfying a condition.
I tried using a for loop, however, it took me forever to get the result. Is
there a fast way to do this? Thanks!
Bing
---------------------------------
1060 Commerce Park
Oak Ridge National Laboratory
P.O. Box 2008, MS 6480
Oak
2003 Sep 25
2
allShortestPath function in e1071 package
Hi All,
I am using the allShortestPath function based on Floyd's algorithm in e1071
package. It runs great when I have less than 5000 nodes. But when I tried to
work on more than 5000 nodes, I ran into memory problem. The problem I really
want to solve has 10000-15000 nodes.
Does anybody know how to deal with this problem? Are there any other packages
in R that can handle this problem?
2009 Nov 05
3
programming phones
I have question thats not really about astrisk but I figure you guys are doing this sort of thing.
We use Aastra 6757i phones. there is some support for XML. the question is how would i go about learning to customize these phones?
_________________________________________________________________
Bing brings you maps, menus, and reviews organized in one place.
2006 May 31
2
Checkbox Help
Hi guys,
I am need to help again. Sorry for the newbie query but would definitely
appreciate the help.
Here''s the q: I generate a list of items from the database and render
them out with a checkbox beside them. A user may click more than one
item and I would want to save all checked items into another table. I
have been able to give each checkbox a unique id . Would anyone be able
2019 May 13
3
How shall I evaluate the latency of each instruction in LLVM IR?
Inspired by https://www.agner.org/optimize/instruction_tables.pdf, which
gives us the latency and reciprocal throughput of each instruction in the
different architecture of X86, Is there anybody taking the effort to do a
similar job for LLVM IR?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2014 Dec 03
1
Creating a USB bootable modified netinstall ISO image
On Dec 3, 2014, at 12:01, Greg Bailey wrote:
> I think you'd need to use the "isohybrid" command that's included in the syslinux package.
BING! BING! BING! We have a winner! Thanks for that info, it makes
the USB stick bootable. This will make kickstart installations so much
easier, especially for systems that don?t have a CD-ROM (we used to
have to scrounge for an
2005 Sep 20
2
Transform variable number of rows per subject to column variables?
Hello,
I am very new to R, but I am having trouble with my dataset.
I have a data frame where a subject has a variable number of multiple
observations for each row, which I wish the transform these
observations to column variables.
An example of the data frame
ID TEST.A TEST.B
1 10 1
1 13 2
1 11 1
2 15 2
2 17 3
And I wish to transform it to the following:
ID TEST.A1 TEST.A2 TEST.A3 TEST.B1
2018 Oct 29
4
PostgreSQL port accessible even though it should be blocked by firewall
Hi,
this puzzles me: On one of our developer workstations, all ports with
the exception of SSH are closed:
$ firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eno1
sources:
services: ssh dhcpv6-client
ports: 22/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
$
but still port