similar to: sql server, date and time

Displaying 20 results from an estimated 2000 matches similar to: "sql server, date and time"

2007 Jul 10
2
Multiple calls to a class method
Hi Just wrote myself a Date.extract_from_rails_hash to handle parsing the "date(1i)", "date(2i)" parameters created in the controller params. I''ve got a method that needs to call this either once or twice, depending on the contents of the form (one section of the form is rendered conditionally). So I had two specs for the case where the second form section
2006 Apr 18
4
upcase special chars (åäöü...)?
Hey guys How do you upcase the special characters (????)? I use latin-1 and not utf-8. How did you solve this problem? (nice ruby way or ugly hack doesnt matter) Daniel -- Posted via http://www.ruby-forum.com/.
2010 Apr 18
2
getting column's main
Hello. I have data of potatoes production in EU during 1998-2009 from EuroStat where the first column consists of the names of EU countries, the following columns consists of appropriate data in each year. Let's say, I investigate Lithuania. For example, I have a row containing potatoes production in 1998, 1999, ..., 2009 in Lithuania. I can easily find the maximum value in this row but...
2007 Apr 03
3
asterisk and mplayer
Odd question here but if I have asterisk running on PC (and mplayer installed). and a video phone calls up the asterisk PC can that video image be played on mplayer? If so how do I do that? How can asterisk pipe the video into mplayer so as to display the video image on screen? Thanks, Jerry
2006 Oct 23
1
find method use without sql in mind
I have a class Day with field date that represents a my sql date type, YYYY-MM-DD. The Ruby type Date class has method, cweek, that returns the calendar week that corresponds to a particular date. Ruby knows cweek, but MySQL has no knowledge of this value. How do I run a find on class Day, (Day.find :all ... ) with condition [date.cweek = ?, week]? This is not a sql search but a Ruby
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action, for example an .rhtml and a .rjs file to handle the view for the same action? I suspect not, but this makes me wonder if there a way to call the .rjs file from within the .rhtml so the statements within it get executed? Thanks, Andy
2007 Jul 11
5
elementary statistics with R (rkward?)
Hi, I am trying to learn some basic statistics stuff but I cannot find any elementary statistics exercises using R language. Using RKward would be even better... I need that in analysing sociological data, obtained through questionnairres - findind corelations between variables, relations between different types of data, etc. Could anyone recommend simple tutorials/exercises, available on www
2002 Apr 15
3
Initial debug of client - Need command line help
I am trying to debug the RSYNC client and server by single stepping through them. The server seems to ok up to the point where it is waiting for the client connection. On the client side, I am having trouble finding the right options so that it will connect up to the local server with out fork() a copy of itself or trying to exec the rsh command. This is on RSYNC 2.5.5 on OpenVMS Alpha. If
2006 Apr 08
5
What is the h for?
In the "Agile Web Development with Rails" book it runs through making an example application, a shopping cart. In one of the views files, there is one line of code I dont understand (below), I dont know what the "h" is for, also I took the h out, and it did not affect the application (as far as i could see). <%= h(product.title) %> Can anyone shed some light on this
2010 Feb 26
2
Fwd: how to install rmagick on fedora please help urgent
hi all i want to run project at local system ..see this i m getting some error http://pastie.org/843746 and when i run server http://pastie.org/843748 plz tell me how to install rmagick on fedora Regards, Shyam +91-9716-18-9650 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2007 Mar 21
6
Converting Rails app to desktop with XUL?
Hi, We are thinking about choosing Rails as our weapon of choice for our next project, which is basically a text editor on steroids, whith some functionality that need an Internet connection. In the first step we are going to develop it as a plain web app (AJAX-ified, yay!), however, in the next step we would like to port some of the functionality (such as the editor) to a desktop app (which can
2006 May 05
2
how to get image properties
Hi friends in PHP there is a direct function GetImageSize(), with it I can easily determine the dimentions of an image file. How can I do in RoR. Please help me out Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060505/13ba1640/attachment.html
2006 Jul 24
2
Flash problem with RoR? missed something?
I have tried to put a flash movie inside of my RoR page and it shows up with nothing on IEPC. It does very well on every other type of browser but does not work with IEPC. I made a folder - "flash" in my public directory and have had the one instance of it point there. Thus my flash directory is www.rails-app.com/flash/flash.swf Is there anything that anyone knows to help out?
2006 May 19
5
How to determine if an object has just been created
Is there a built-in way to determine if a model object has just been created (ie. this object was the one that was originally persisted)? I can''t see it anywhere in the AR code, but thought I''d check. I want something like: p = Person.create p.original_instance? # true Is this built-in or should I just patch AR? -Jonathan.
2003 Sep 29
2
parametric surfaces
Hi, does anyone know how to plot 3D parametric surface,e.g ellipsoid: x=a*cos(s)*cos(t), y=b*sin(s)*cos(t), z=sin(t); s in [0,2*pi], t in [-pi,pi]. Vytautas Maniusis, Vilnius University, Lithuania
2007 Feb 28
6
DRY question - image_tag :alt and :title the same
Hello, I have the following: image_tag(''show.png'', :alt => ''show article'', :title => ''show article'', :border => 0) Is it possible that I don´t need to have "=> ''show article''" twice in this row? e.g. something similar to this pseudo code: (:alt, :title) => ''show article''.
2009 Feb 24
7
Add .html extension by default
Hi all, i would like to add the .html extension by default to all my resources. What is the best way to do that? The reason for this is that i need to download the generated sites via wget and i need the .html extension for the downloaded files. Also it would be nice if the link_to would automatically generate the links with .html... Thanks, Gerold
2006 Jul 15
4
routing requirements broken in Rails 1.1.4?
Hi, I have the following routes map.connect '':controller/:id/:action'', :id=>/4/, :defaults=>{ :action=>''show''} map.connect '':controller/:action'', :defaults=>{:action=>''index''} and when I point my browser to "localhost:3000/departments" I see an error because the show action cannot find a
2006 Jul 25
2
join in legacy DB?
I''ve got a problem with some tables that don''t follow any RAILS standards. how do I define the join in the model when all three tables have wacky names? class Machine < ActiveRecord::Base set_table_name "tbl_CodeMgmt_Host" set_primary_key "Id" end class Pool < ActiveRecord::Base set_table_name "tbl_CodeMgmt_Pool" set_primary_key
2006 May 10
3
text_field_tag options
Hi all, can someone explain to me how the options for helper text_field_tag supposed to be written. I really tried a bunch of stuff without success. For example I need a field with id "query", so I write <%= text_field_tag :query %> which works fine. But what if I want the field only 5 characters big? I tried among other <%= text_field_tag :query ,