Displaying 20 results from an estimated 1000 matches similar to: "Re: Visual DB Modelling on Mac"
2006 Jan 18
2
Migration?
I just installed ruby, lighttpd, and mysql from darwinports on me
laptop in lieu of the Apple version of ruby. Now when I fire up my
rails application, it''s not running lighttpd anymore -- it''s running
webrick. It also exits immediately. MySQL is running, the database
and tables are restored from the backup. What step am I missing?
Thanks for the help!
Cheers,
Hasan
2006 Jul 29
3
Engines question
I would like to get at all models in a rails application to be able to
add a field to every one of them as part of a migration. Something
like the following:
Appmodels.each { |x| add_column x.table_name.to_s, :foo, :text }
I understand I can get the table name using
ActiveRecord::Base#table_name, but how do I get all the models into an
array that I can use in the above manner?
--
Cheers,
Hasan
2006 Jan 10
1
Ferret -- Search Partial?
I''d like to implement the search capabilities of Ferret and am
looking for sample code to see how it''s done. I''m thinking my
controller creates the index when "Search" is clicked and a partial
is rendered. What is this partial supposed to look like? Is it built
in to rails/Ferret? Thanks for the help!
Cheers,
Hasan Diwan <hasan.diwan@gmail.com>
2006 Jul 29
0
Mongrel-modproxy Issue
I am trying to setup typo using mongrel and apache2 on Ubuntu Linux
(Dapper). Following the tutorial at
http://www.ridaalbarazi.com/blog/2006/06/21/local-development-environment-part-3/...
1. I set up typo, mongrel-rails to start it -- verified by going to
http:/192.168.2.18:3000
2. I''ve also tried to set up mod_proxy but that doesn''t seem to be
working, my VirtualHost
2011 Feb 17
1
RCurl HTTP Post ?
According to [1] and [2], using RCurl to post a form with basic
authentication is done using the postForm method. I'm trying to post
generated interpolation data from R onto an HTTP form. The call I'm using is
page <- postForm('http://our.server.com/dbInt/new', opts =
curlOptions=(userpwd="test:test", verbose=T), profileid = "-1",
value="1.801",
2017 Dec 01
1
[FORGED] Re: R vs PYTHON vs SAS vs SPSS?
On 01/12/17 20:33, Hasan Diwan wrote:
> Yes.
Very true. But some *thinking* is required; that often proves to be a
formidable stumbling block.
cheers,
Rolf Turner
>
> On 30 November 2017 at 22:28, <hotprojects at nyc.rr.com> wrote:
>
>> I am a mature learner; 3 masters
>> some doctoral work ? statistics for social sciences; psychological
>> statistics ?
2011 Jun 26
1
RJDBC and multiple classpaths
Corect me if this is not the right place to post this.
I have a mdbdriver.jar (to access an MSAccess file) under Linux. I bought
the license from http://www.csv-jdbc.com/ guys. The driver work fine when
tested with DBVisualizer or another JDBC thing.
The problem is that driver needs 3 other more jar files to work. Under R I
have tried this and does not work:
> library(RJDBC)
Loading required
2011 Feb 25
0
RCurl Post
> resp <- postForm('http://our.db/db/new', 'profileid'='181133',
'value'='20110225', 'type'='history','user-agent' = 'R', .opts
=list(verbose=T, userpwd='test:test'))
* About to connect() to our.db port 80 (#0)
* Trying 192.168.1.1... * connected
* Connected to our.db (192.168.1.1) port 80 (#0)
> POST
2012 Feb 17
6
convert zoo object to "standard" R object so I can plot and output to csv file
Another newbie question
I got the 1 minute spine interpolation and 15 mean aggregation working with
many thanks to Gabor Grothendieck using Zoo functions. I got a tip from
Hasan Diwan to look at xts but it seemed I would make better progress using
code from Gabor.
Now I'm having trouble plotting this zoo object. I'm thinking I want a
function to "split" the zoo object back to
2006 Aug 14
5
Tutorial for Queries
Hi! I''m looking for a good tutorial that explains the main points of
performing queries with Rails. I do have AWDWR and have read the
section on ''find'' but I''m looking for something that goes into more
detail on how to perform queries across tables.
Abstracted from my current application, this is an example:
* person has_many sites
* site has_one room
*
2006 Aug 13
3
escape block using red cloth
Hi all,
Is it possible to configure red cloth to escape a block such as:
------------------------------------------------------------------
Hello, _this_ works *beautifull*
[code lang="ruby"]
def foo
bar
end
[/code]
------------------------------------------------------------------
The text in the [code] block should not be parsed by Red Cloth''s to_html
method.
I cannot
2006 Jan 02
5
How to use MySQL sum() to get total of column?
Easy one: Let''s say I have a table called ''employees'' with a column
called salaries, how can I add Employee.salaries_total to the model?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jul 20
0
Rails Omnigraffle template
Came across this little "gem" -
Rails db modelling stencil for omnigraffle - brought to you by
''Summer of Rails''.
http://graffletopia.com/stencils/56
Jodi
2006 Feb 01
2
Uninitialized constant ApplicationController?
Hello list,
I''m trying to start my Rails server after doing a long complex switch
from Postgres to MySQL, and I''m getting the following error:
=> Booting WEBrick...
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:200:in
`const_missing'': uninitialized constant ApplicationController
(NameError)
from
2007 Jan 04
10
New Feature: Graphing
Hi all,
One of the major new features in the upcoming release is that Puppet
now uses a graph library internally to handle resource
relationships. The big benefit to all of you is that you can use
this library to turn these graphs into images.
The trick, right now, is adding --graph when you run puppetd. This
creates .dot files, which can then be interpreted by the
2005 Dec 14
3
Geocode for Ruby
Hey,
Does anybody know of a good Geocode library for Ruby, similar to Perl''s
Geocode::Postal, that i could use in my rail app? I need to do some "within
5 miles" calculations of zipcodes and i dont have a nice ruby (or gem)
utility to do it.
any help would be appreciated.
thanks
adam
_______________________________________________
Rails mailing list
2006 Aug 05
4
file_column just will not work...
Hello,
I have been trying for some time to get a file to upload using the
file_column plugin.
My code is here: http://pastie.caboo.se/7304
But my code is not the issue. I cannot even pass the unit test that
come with the file_column plugin.
If I run ruby file_column_test.rb i get:
1) Error:
test_store_dir_callback(FileColumnTest):
TypeError: can''t convert Fixnum into String
2006 Aug 04
3
forms and relationships
i''m still pretty new to rails, and while i''ve been able to hack my way
into having it do what i want so far, i''m not happy with the way my code
looks. on top of that, i''m sure that what i''m doing prlly isn''t the most
efficient either.
one of my biggest problems is probably to do with using relationships
and forms together. i''ve
2006 Feb 21
6
Select articles from group with id ''1'' and id ''2''
I have to tables: "articles" and "groups". Between I have
article_groups as a jointable. Now I want to select every article who
is a member of group with id ''1'' and id ''2''. Whats best way to get
that?
Extract from schemas:
CREATE TABLE articles (
id int auto_increment,
ingress text NOT NULL,
story_text longtext,
constraint fk_items_users
2006 Jan 05
3
MS SQL server connection problems
I am trying to connect to a remote sql server and I am getting the
following error:
c:/ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb:57:in `connect'': Open
(DBI::Databa
seError)
OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
or access
denied.
HRESULT error code:0x80020009
Exception