search for: jinslee

Displaying 17 results from an estimated 17 matches for "jinslee".

Did you mean: ainsley
2005 Dec 15
8
slightly OT - Ruby division
Hey all, In my code, it seems that when I divide two integers, the result is an integer. Is there any way to make it such that when I divide two integers, the result is a double? Any help appreciated, Jin _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Nov 21
10
Anybody using SCGI in production?
Or does anybody prefer fastcgi/fcgi? I''m using webrick for development, but plan on using scgi when I switch to production (because it appears to be an update to fastcgi, and I couldn''t get fastcgi working anyhow). thanks csn __________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
2006 May 04
1
ruby.exe growing large, possible memory leak in sql server
Hey all, I believe there is a memory leak when using Win2000 + SQL Server + Apache2 + scgi + rails 1.1. My apps so far have been pretty ''low impact'' and i did not notice it before, but the memory footprint of ruby.exe is growing larger. After 6 queries that fetch ~2,000 rows each, ruby.exe has grown to 41 megs (originally around 20). The memory leak is also present in webrick,
2005 Nov 01
1
not updating non-changed fields
Hey all, this is kind of a weird question, but is there any way to tell ActiveRecord to not update a field that hasn''t been changed? When I see my executed UPDATE sql, I see it trying to update every single field, regardless of whether its been changed or not. Is there any way to have ActiveRecord update ONLY the changed fields? Thanks guys, Jin
2005 Oct 19
35
Why you MUST use SCGI for Rails development
Hello happy Railers, I used to develop with a local out-of-the-box Apache and load times were pretty slow (like a few seconds each page). "Well, it''s the price to pay for no compile / cache / etc..." I thought. Nonsense. Yesterday I installed SCGI, and now I''ve got the best of both worlds: rails development env uses my very latest modifications, while SCGI ensures I
2006 Jul 12
1
Changing Application Error (Rails) to something pretty?
Hello all, I have installed the Exception Notifier plugin to email me when my rails application encounters an exception. However, I would like to prevent my users from seeing the "Application Error (Rails)" screen in production. Ideally, it would be nice to have an error message within my site layout. I know people have asked this question before but I can''t seem to find it in
2006 Apr 27
0
text_field_with_auto_complete - NoMethodError in the model
Hey guys, I have a text_field_with_auto_complete that looks like this: <%= text_field_with_auto_complete ("service_request", "req_name", {"size"=>40}) %> which goes to this in the controller: def auto_complete_for_service_request_req_name auto_complete_responder_for_investigators params[:service_request][:req_name] end
2006 Mar 28
0
substring and html in the db
Hey guys, Ran into a snag today and was wondering if anyone can give me a hand. I have a blog type application that I''m developing. There is a page "list all entries" which looks like this: Title1 posted by Person1 about 2 hours ago test1 test1test1 test1test1 test1test1 test1test1 test1test1 test1test1 test1... (click here for full post) Title2 posted by Person1 about 2
2005 Dec 22
1
Really OT: terms of service and privacy statements
Hey everyone, Aplogies asking such an off topic question on this list, as I have no one else to really turn to. I plan to release a website very soon to the public. I am just one-man shop, and do not know much outside the realm of programming. I''ve taken care of the "business" aspect of things, but know nothing of the legal necessities of having a web business. Specifically,
2005 Oct 27
0
SQL Server - Connection Failure after 10 mins
Hey guys, For some strange reason, I started getting this error message this morning: Execute OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server Connection failure HRESULT error code:0x80020009 IF I restart apache and scgi_service, the problem goes away. However, 10 minutes later, it comes back Any ideas? _______________________________________________ Rails
2007 Aug 15
1
can someone explain sql server performance differences?
Friends, I was wondering if any Rails/SQL Server experts could offer some help in regards to a question I had. Lately I have been getting some "timeout expired" errors in rails for some of my find_by_sql queries. When I load these pages, they often take upwards of 2-4 minutes and eventually they throw a timeout exception. When I run the exact same query in SQL Enterprise Manager, the
2008 Sep 08
0
Best way to send JSON request/get a response from controller?
Hello Friends, What is the best way to send json from your controller, and await for a response? Ajax? Ruby''s net/http? The JSON server that I am sending the request to only accept POST methods, and sends a POST back. If I use Ajax, is it possible to get the POST response? Is there a scriptaculous or YUI function that handles this well? Thank you for your help - Jin
2006 May 03
2
grouped output
hello, Suppose I have a table that looks like this: center name email Health Jon jon@test.com Health Bob bob@test.com Admin Jane jan@test.com Admin Jill jill@test.com I would like the output to look like this: Health Jon jon@test.com Bob bob@test.com Admin Jane jan@test.com Jill jill@test.com when i using cold fusion, this was easy via a tag called cfoutput. when i was using java, this was
2006 May 03
6
sql server, date and time
Hey there all, Is there some way to tell rails or sql server to ignore the time in a datetime field when doing a comparison? For example, if I do something like select * from users where registration_date = ?, @date where @date might equal some user input like ''03/14/2006'' The result is nothing returned, because in my tables the datetime field looks like this: 3/14/2006
2006 Aug 08
5
off topic: running non-ruby programs through command line
Hi all, Slightly OT, but is there any way to run command-line programs through Ruby? I have a rails web application that performs some database work. After a certain action is performed, the rails app should then call a java program that performs additional work to our mainframe. This is under Win 2003 Server. Any ideas? Thanks, Jin Lee -------------- next part -------------- An HTML attachment
2005 Jun 22
3
OT: OS X graphics tool
Hey all, Seeing the success of the OT: OS X MySQL tool thread, I thought I''d ask about the tools you guys use for your graphics editing/creating. Like many others, I too made the switch to Apple, and its been an absolute joy so far. I''m an independent contractor/consultant who''s comfort zone is in making admin websites to manage data. With this role comes making little
2006 Feb 27
3
Send parameter along with method in before_filter
Hello list, I have an app that has a very simple authorization scheme. A person can have many roles and roles can have many people. In my app, I''d like to do before_filter :login_required (since no role name is provided, it accepts any users with credentials) before_filter :login_required ("administrator") (only accepts those with role administrator) before_filter