similar to: Log question

Displaying 17 results from an estimated 17 matches similar to: "Log question"

2006 Jan 19
3
problems with migrations in sql server
Is anyone using migrations with a SQL Server database who might be able to lend me a hand? I''ve used migrations with MySql in the past and haven''t run into any issues so forgive When I run rake migrate nothing is actually getting updated in my database. I created a migration using ./script/generate migration AddFooTable and updated the migration to look as follows: class
2008 Mar 14
15
Is anyone running Rails 2.x against a MS SQL Server DB?
I am unable to get ActiveRecord session support to work under 2.x against a SQL Server database. I''m starting to wonder if anyone is running 2.x against SQL Server? Is anyone running under the following configuration: Rails 2.x SQL Server 2000 DB (using AR adapter in ODBC mode) AR store for ActionController session store. I''d like to chat with you if you are. Thanks, Wes --
2006 Mar 20
2
subsetting and NAs
R-help, I'm getting some unexpected behavior with subsetting a data frame (aircraft flight data) that I can't sort out. Here is a simplified version of my data frame and problem: > flight FlightID TailNo FlightDate HobbsTime FlightCost Date year 1 4497 6009K <NA> 2.2 330.0 <NA> NA 2 4498 6009K <NA>
2005 Nov 13
0
Problem with find and join (wrong id?)
This statement works correct in my controller (list action): @reports = Report.find_by_sql("SELECT r.* FROM reports AS r INNER JOIN Users AS u ON r.user_id = u.id WHERE " + cond + " ORDER BY flightnumber, flightdate") This statement does not: @reports = Report.find(:all, :order => "flightnumber, flightdate", :conditions => cond, :joins => "AS r INNER
2006 Aug 15
1
rails and MSSQL transactions
Hello, I have rails using a MSSQL db. The set up works fine with low volume, but with 2+ requests/second I keep on getting the following error: DBI::DatabaseError: Execute OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server Cannot create new connection because in manual or distributed transaction mode. HRESULT error code:0x80020009 Exception occurred.: SELECT
2013 Dec 17
1
ggplot2: stat_smooth for family=binomial with cbind(Y, N) formula
With ggplot2, I can plot the glm stat_smooth for binomial data when the response is binary or a two-level factor as follows: data("Donner", package="vcdExtra") ggplot(Donner, aes(age, survived)) + geom_point(position = position_jitter(height = 0.02, width = 0)) + stat_smooth(method = "glm", family = binomial, formula = y ~ x, alpha = 0.2, size=2) But how can I
2005 Apr 23
2
[Tip] Introspection to determine if a column may be null
I still want to get this into Rails for all connection adaptors, but for now I''ve hacked my own addition on for just PostgreSQL. The following code extends every Column object returned by MyModel.columns to support a new #required? method, which indicates if the column may or may not be null. The following is a huge hack - suggestions on a cleaner way to add this functionality
2006 Apr 03
2
Fast way of finding new position for model object?
I have a model object that acts as a list. The position of each object is determined by two factors: number of votes ascending and age of object descending. When a user adds or deletes a vote I need to quickly update the associated model object''s position. Right now this is done with the following method: def update_position position = nil Bug.find(:all, :order =>
2011 Jan 27
1
performance question
I got sidetracked while benchmarking ruby factorial code: http://rosettacode.org/wiki/Factorial#Ruby I put all that code into test_fact.rb and ran with: > ruby test_fact.rb > rails runner test_fact.rb #from a fresh rails app > rails runner test_fact.rb #from a mature rails app here are the respective results: user system total real #ruby recursive:
2016 Jul 26
1
[PATCH] daemon: lvm: change the separator character to '\r'
Commit b91b39e06ab7eb9b9b06c8b4dfef2ef9f381ab19 changed the separator to ':', although this creates parsing issues when there are fields with colons (for example lv_tags=imgbased:pool). Change once more the separator, but this time using a non-printable character such as '\r': while it will produce uglier debug logs, this should greatly reduce the possibilities of conflicts with
2007 Sep 27
0
query string parsing C extension
Hey all, here is a less hacky version of the query string C extension I posted before. http://s3.amazonaws.com/four.livejournal/20070927/qsp.tar.bz2 It uses an http11-like interface to the state machine. the escape/unescape functions are also slightly more libraryish. again, here is the about benchmark results. it seems to be about 10 times faster than the ruby functions. i''ve seen
2008 Sep 03
3
yet another World of Warcraft thread
hi, im having some problems on WoW. it has been running on my fedora core 7 desktop PC perfectly out of the box, even in directX mode(i added the direct3d key to the registry). im now trying to run it on my Fedora 9 laptop. it is an intel x3100GMA. the graphics are working after some messing with config.wtf, im experiencing random lockups that can happen anywhere between the character select
2015 Nov 10
0
[PATCH] daemon: lvm: Change the separator character to ':'.
The separator character (currently comma) was picked arbitrarily to allow us to parse the output of commands like 'lvs' for APIs such as 'lvs-full'. Unfortunately the choice of comma conflicts with the 'lvs -o modules' column, since the list of modules is separated by commas, breaking our parser. Change the separator to another arbitrary character (colon) which hopefully
2008 Mar 08
6
World Of Warcraft perfomance problem.
Hello. I'm running WoW 2.3.3, my wine version is wine-0.9.56. My PC: 512 ram, Athlon 300+ and ATI radeon 600x. Problem: 4pfs under Arch Linux and up to 12 under Ubuntu. Drivers: Fglrx (catalyst-8.3-1) Rendering: Yes Code: glxinfo |grep direct direct rendering: Yes fglrxinfo display: :0.0 screen: 0 OpenGL vendor string: ATI Technologies Inc. OpenGL renderer string: RADEON X600/X550 Series
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all, Looking at the IO.readlines source in io.c, it looks to me like they grab 8k chunks, split on the input record separator, and buffer accordingly. Since it looks like ReadFileScatter() does some of that work automatically (in page file sized chunks), I thought I''d give it a try. Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
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
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
Per discussion on IRC, here are two changes to convert all TABs-as-indentation to spaces. The first one is the fully-automated conversion. However, note that the command mentioned uses a file (the .x-sc* one) that is added only in the following patch. The second patch adds rules to help keep things that way: Document and enforce the new spaces-only indentation policy. * cfg.mk