similar to: RoR + MySQL + Unicode

Displaying 20 results from an estimated 1000 matches similar to: "RoR + MySQL + Unicode"

2006 Mar 18
9
How do I write this SQL the Rails way?
I''m trying to find all the unique bill_number, status records in Bills table. I can do it with a find_by_sql statement like this: @records = Bill.find_by_sql( "select distinct bill_number, status from bills group by bill_number, status;") How would I rewrite it using ''find :all
2005 Sep 19
4
indicator value in labdsv
Hi, I'm trying to find out what threshold of indicator value in labadsv should be used to accept a specie as an indicator one? So far I assumed that indval=0.5 is high enough to avoid any mistakes but it was based only in my intuition. I'd be greatful for any advise best regards Agnieszka
2006 Jan 30
3
Arrays of objects as parameters to webservices
I think I am missing something terribly obvious. Is it possible to have an :expects parameter for a webservice that is an array of objects? I want to have a single webservice that expects all my line items (for an order). Is this something that is possible? -- Posted via http://www.ruby-forum.com/.
2006 Mar 31
2
Backslash Escaping in View
Ok, I''m hoping this won''t be a forehead slapper, but take a look at this code: physician.name.sub(/''/, "\\''") I''m trying to substitute a single quote with a backslash and a single quote. This seems pretty simple right? Well, someone kick me and tell me why it''s not :) Here''s what I''m getting if the
2015 Aug 04
18
[Bug 91557] New: [NVE4] freezes: HUB_INIT timed out
https://bugs.freedesktop.org/show_bug.cgi?id=91557 Bug ID: 91557 Summary: [NVE4] freezes: HUB_INIT timed out Product: xorg Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau Assignee: nouveau at
2006 Mar 24
2
Return all rows, split then show uniques
I''m returning some rows from a tags database that look like this: ID WORDS 1. apple banana pear 2. banana melon 3. apple peach lime What I want to do with that data is use the .split method to divide them into separate values in an array, then use the .uniq method to return a unique list of the words like so: apple, banana, pear, melon, peach, lime So in my controller I
2006 Apr 20
1
fit testing, FitNesse
Hello, this is a typical "how do you do it in Rails" question :) I would like to incorporate fit testing into a RoR app and I''d like to hear your recommendations on how to do it. In the ideal world I would like all the table test definitions and implementations stored in svn together with the app, ability to run the tests with a rake task + a hook to FitNesse, so that
2006 Feb 23
1
HABTM testing - fixtures not loading?
Hi, I have a strange problem with testing classes which have a HABTM relation. It seems that while running my tests with rake the fixture for the association table is not loaded - as a result I get a failure on a test which simply checks the number of associated elements - it says it''s 0 although there should be one. The weird thing is that when I run the tests with rcov
2005 Aug 08
2
INDVAL and mvpart
Hi, I'd like to perform Dufrene-Legendre Indicator Species Analysis for a multivariate regression tree. However I have problems with arguments of duleg(veg,class,numitr=1000)function. How to obtain a vector of numeric class memberships for samples, or a classification object returned from mvpart? thanks in advance -- Best regards, Agnieszka Strzelczak
2007 Jan 22
5
LoadBalancing on many asimetric different dsl''s.
Hi, my company have just bought new network and I have question about one problem. As in topic we must use few completely different dsl''s and balance traffic between them. 2M/0,5M 4Mb/0,5M 8M/0,5M M=Mb/s I''ve never done such thing before so I have doubts how it will work. If the links are symmetric 2/2 4/4 8/8 there is no problem because with weights I can compensate the
2019 Nov 11
2
dovecot -2.2.24 on Fedora 31
On Mon, 11 Nov 2019 17:30:37 +0200 (EET) Aki Tuomi via dovecot wrote: [ ... ] > Is there some reason you want to use ancient dovecot? You should use 2.2.36 at least. I got dovecot-2.2.36.4 compiled but at start the log shows dovecot[342614]: master: Dovecot v2.2.36.4 (baf9232c1) starting up for imap dovecot[342617]: ssl-params: Generating SSL parameters dovecot[342614]: master: Error:
2006 Mar 30
2
How do I format text before saving it?
I tried to use a before_save and use simple_format, it returns and undefined method error. Can I even use these methods within a model? I tried to use auto_link and it failed too. What am I doing wrong? Furthermore, would it be recommended I format text before saving it to the database? Advantages or disadvantages? -- Posted via http://www.ruby-forum.com/.
2008 Apr 09
2
GLM fitting in R and Statistica
Hi, I have a problem concerning discrepances between R (which I use) and Statistica (which uses my supervisor). I can't say what is the origin of these differences but unfortunately my supervisor doesn't know that either. Our response variable is number (or presence/absence) of parasites in rodents and explanatory variables are presence/absence of several alleles. The rodents were
2005 Sep 04
3
Nokia 32 Terminal
Hi, Does anyone have some experience with Nokia 32 Terminal (it is an analog GSM Gateway)? After a configuration I can make only incoming calls, I'm not able to do any outgoing. Nokia signalize an error (4 short tones), when I try to phone someone. I tried postpaid simcards as well as prepaid simcards with the same result. Does anyone try to connect this gateway to Asterisk PBX if so what
2003 Jun 25
2
probelem of function inside function
Hi, I encountered a problem when I am trying to write my own function which contains another function. To simplify a problem, I tried the following simplified function, hope someone can idenfity the problem for me. I have a simple data frame called "testdata" as following: >
2005 May 09
1
extension based on a dialed number?
I have an ISDN line with 10 numbers. The line is then connected to * with one HFC-based card. The format of the numbers is like below: 123456-0 123456-1 ... 123456-9 Now I would like to connect those numbers to different telephones, i.e. when someone dials 123456-0, he/she is connected to the digital receptionist. If someone dials 123456-2, the connection goes to SIP/202 If someone dials
2006 Mar 31
6
how to access a hash within a hash in ruby?
Simple question: I know how to access a data field in a hash by doing hash_name[datafield_name]. But what if the datafield itself is a hash? I tried a couple of variations but nothing seems to be working and tutorials do not go into such details. Is there a simple way or should I create separate instances? -Chris -- Posted via http://www.ruby-forum.com/.
2006 Apr 03
15
How should I pick a random entry from the database?
Hi guys. Total newbie here. I''ve been doing web stuff since 1996 but only began the foray into scripting last year. I haven''t got my skull completely 360 degrees around OOP yet. It''s just me here (in Japan) and there are no Ruby groups in my area (never mind any in English). I''ve got a database table - real simple: question, answer, and id fields - and I
2005 Aug 23
2
I can't access Linux shared folder from Windows XP.
Hi I would be grateful if somebody would tell me why can't I access shared folder on Ubuntu 5.04 computer (computer name is my-computer) from my Windows XP computer (its name is tablet-pc). I am using Samba 3.0.10-Ubuntu. I see this folder in Windows XP but when I try to access it I get error "\\My-computer\backup is not accessible. [...] Network access is denied."
2006 Nov 24
2
advanced search with ferret?
Hello, I''m a novice to ferret, so far only used it via acts_as_ferret. My question is about a recommended pattern for an ''advanced search'', which would be searching by all fields of a model and some fields from related models, with range search, expression search and wildcards. The kind of search in which a user is presented with a huge form that allows them to set