Displaying 20 results from an estimated 4000 matches similar to: "[OT] mysql and selinux"
2005 Mar 08
3
is there any rails hosting out there?
anyone?
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| When you do something, you should burn yourself completely, like a good
| bonfire, leaving no trace of yourself. --Shunryu Suzuki
===============================================================================
2005 Mar 09
6
auto increment id
looking at the unit tests of activerecord leads me to think the db is
completely responsible for auto-incrementing the id field and rails does no
magic here. can someone confirm that this is a true statement?
that being the case - what is the preferred way to write database agnostic sql
for one''s schema since each of the dbs has slightly different syntax for this
functionality... does
2005 Mar 03
0
uniform handling of timestamps
considering that sqlite, mysql, postgresql, etc all handle times differently
(well only postgresql really *handles* them) i''m wondering how to best
approach time fields in rails. my current thinking is that sqlite is the
least common denominator: it stores everything as text and does not checking,
mysql has datetime, date, and timestamp but does poor checking (crippled to be
precise) to
2005 Mar 12
0
scaffolding issue
i''ve got a little rails app i''m messing with
the schema is
create table timedatevalidates (
id serial,
timedatetovalidate timestamp,
primary key (id)
);
the mvc was initialized using
rails scripts/generate scaffold timedatevalidate
i''ve got this in a subdir of webroot and have modified .htaccess and
config/routes.rb like so
.htaccess :
2005 Mar 03
12
bug in postgresql ''now'' time handling??
line 212 of postgresql_adapter.rb is
return Time.now.to_s if value =~ /^\(''now''::text\)::(date|timestamp)/
i don''t think this will work. in postgresql the field ''now'' is pinned to the
SAME TIME for the duration of a transaction. eg. if you do
begin transaction;
insert into t values(42, ''now'');
# sleep one minute
2005 Mar 18
4
NoMemoryError on "gem install rails"
Greetings all--
Humble newbie requesting help here. I''ve just installed Ruby 1.8.2, Rake
0.4.15, and RubyGems 0.8.8. When I try to get Rails into place via "gem
install rails," I get the error below. What have I done wrong? Can anybody
throw me a rope?
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
Attempting remote
2005 Mar 09
21
Converting time retrieved from MySQL
I''m having a problem converting a date retrieved from my MySQL database
and I''m hoping someone can help.
MySQL stores the date/time as this:
2005-03-08 17:00:34.0
and according to my Pickaxe book Ruby stores times as "the number of
seconds and microseconds since [...] January 1, 1970". All well and good.
Unfortunately, RoR is converting my date to this:
2005 Mar 09
10
mysql vs postgres
I''ve used mysql for quite some time now. Other than crashing when the
partition gets full, I''ve had no problems with it.
But I''ve heard great things about postgres and have seen some people
say it''s much superior to mysql.
So, with a Rails application, is there any reason why I would want to
learn/use another DB besides mysql? Any pragmatic benefits?
2005 Mar 09
4
max requests for fcgi interface
I think my rails app has a slow memory leak that degrades performance
over the course of several days. I''d like to get to the bottom of it
but in the meantime I''d prefer to just bandage it and force the fcgi
library to start a new instance of my app every so often. Is there a
clean way to do this? Calling break in the each_cgi loop causes an
error. Sending SIGUSR1, which
2005 Mar 10
7
Forking FCGI dispatcher
I hacked a forking FCGI dispatcher for Rails. I have no idea if this is
the correct way to do it, but it seems to work fine. It improves memory
usage a bit; after it is started the processes share almost 10 MB (of 12
MB total), but unfortunately it drops to 2 MB after a few requests.
=====================================
#!/usr/local/bin/ruby
require File.dirname(__FILE__) +
2005 Mar 04
3
Boolean values
Hi,
I''m using SQL Server. I have a BIT field. I have a fix and a question.
This is a patch for a bug in the SQL Server adapter that causes any insert or
update to fail:
lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -239,2 +239,2 @@
- when TrueClass then (column && column.type == :boolean ?
"''t''" : "1")
2001 Mar 06
2
RedHat 7.0 on Dell Poweredge 6300
I went to RedHats' page and found hardware requirements and it said
that the Dell Poweredge 6300 is a supported hardware. Then I went to
linuxcare.com and it does not list the machine. Before I look like a
buffoon, or continue to, Redhat will run on this machine, right? I
appreciate the help.
Thanks,
---------------------------------------------------
Tony Ricker
Technology Coordinator
2001 Nov 27
1
log in script question
All,
I was hoping someone could point me in the right direction in obtaining
a solution to the the following; I want to have the log in script map
not only their home directory, but also the group folders as well. For
instance, I would have a share with valid users=@usergroup and would
want the script to map the directory based on this criteria. Would I
have to have a log on script for each
2005 Mar 15
15
Web-based Ruby Syntax Highlighter
Hi all,
Last night, I wrote a web-based syntax highlighter that takes Ruby and
produces nice HTML of the code, ready for including on web pages, or in blog
posts, or whatever. I don''t know how useful it will be for other people, but
feel free to use it. Anyway, the URL is :
http://syntax.carldr.com/
Any comments/suggestions would be gratefully received. Enjoy!
2018 Jan 28
1
Newbie wants to compare 2 huge RDSs row by row.
Thanks, I think I've found the most succinct expression of differences in two data.frames...
length(which( rowSums( x1 != x2 ) > 0))
gives a count of the # of records in two data.frames that do not match.
//
________________________________________
From: Henrik Bengtsson [henrik.bengtsson at gmail.com]
Sent: Sunday, January 28, 2018 11:12 AM
To: Ulrik Stervbo
Cc: Marsh Hardy ARA/RISK;
2018 Jan 28
0
Newbie wants to compare 2 huge RDSs row by row.
Cool, looks like that'd do it, almost as if converting an entire record to a character string and comparing strings.
-- M. B. Hardy, statistician
work: Applied Research Associates, S. E. Div.
8537 Six Forks Rd., # 6000 / Raleigh, NC 27615-2963
(919) 582-3329, fax: 582-3301
home: 1020 W. South St. / Raleigh, NC 27603-2162
(919) 834-1245
2005 Mar 10
6
Expiring Cache Fragments and fcgi
First let me say that Rails caching is very very cool. The traffic
(and responsiveness) I''ve saved by added 10 lines of ruby code would
be enourmous, if I actually had traffic... ;)
Sweepers as observers are great, btw. Since every page of my side is
dynamic, once I did some DB optimization I''m caching the content of
the index page which was taking the bulk of the time to load
2018 Jan 28
2
Newbie wants to compare 2 huge RDSs row by row.
The anti_join from the package dplyr might also be handy.
install.package("dplyr")
library(dplyr)
anti_join (x1, x2)
You can get help on the different functions by ?function.name(), so
?anti_join() will bring you help - and examples - on the anti_join
function.
It might be worth testing your approach on a small subset of the data. That
makes it easier for you to follow what happens
2018 Jan 28
0
Newbie wants to compare 2 huge RDSs row by row.
The diffobj package (https://cran.r-project.org/package=diffobj) is
really helpful here. It provides "diff" functions diffPrint(),
diffStr(), and diffChr() to compare two object 'x' and 'y' and provide
neat colorized summary output.
Example:
> iris2 <- iris
> iris2[122:125,4] <- iris2[122:125,4] + 0.1
> diffobj::diffPrint(iris2, iris)
< iris2
>
2018 Jan 27
2
Newbie wants to compare 2 huge RDSs row by row.
If your two objects have class "data.frame" (look at class(objectName)) and
they
both have the same number of columns and the same order of columns and the
column types match closely enough (use all.equal(x1, x2) for that), then
you can try
which( rowSums( x1 != x2 ) > 0)
E.g.,
> x1 <- data.frame(X=1:5, Y=rep(c("A","B"),c(3,2)))
> x2 <-