search for: agnieszka

Displaying 20 results from an estimated 47 matches for "agnieszka".

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 Apr 20
1
fit testing, FitNesse
...stored in svn together with the app, ability to run the tests with a rake task + a hook to FitNesse, so that non-developers can easily see and run the tests (not necessarily modify them). Feasible? If anyone has experiences please share! Also, which Ruby implementation of FIT are you using? -- Agnieszka -- 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
2006 Feb 23
1
HABTM testing - fixtures not loading?
...0 although there should be one. The weird thing is that when I run the tests with rcov there''s no failure :| Also, when I do script/console "test" I can see that the association gets loaded and the same code that fails in the test works. Anybody seen something like this? -- Agnieszka Figiel -- Posted via http://www.ruby-forum.com/.
2005 Aug 08
2
INDVAL and mvpart
...dre 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 mailto:astrzelczak at ps.pl
2008 Apr 09
2
GLM fitting in R and Statistica
...idea how to deal with that? Or how to explain why R results are different (and hopefully better)? I tried to argue that I did everything according to Crawley's R Book so probably the models are constructed correctly but my supervisor wasn't convinced... Looking forward any suggestions, Agnieszka -- Agnieszka Kloch Instytute of Environmental Sciences, Jagielonian University ul. Gronostajowa 7, 30-387 Krakow, Poland, tel. (12) 664 51 51
2006 Jul 24
7
RoR + MySQL + Unicode
hello! I have a problem when I want to display data in Unicode from database. I read <a href="http://ruphus.com/blog/2005/06/23/getting-unicode-mysql-and-rails-to-cooperate/">this tutorial</a> but I still have problem with non-English characters. I don''t have any other idea what I should do. Did you meet with similat problem? Have you got any idea? Thanks in
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 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/.
2006 Nov 24
2
advanced search with ferret?
...me 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 the variuos criteria. is this something ferret (acts_as_ferret?) is suited for and is there a clean way to do it? Thanks, Agnieszka Figiel -- Posted via http://www.ruby-forum.com/.
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
2006 Mar 22
9
render partial from withit mail template
Hi, I''m trying to include a partial in an email template but it throws me this: undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #12): 11: 12: <%= render :partial => ''footer'' %> I guess email views are a little different from normal ones as they don''t seem to have a access to a proper controller (?)
2009 Jan 23
2
get maildir current quota usage from external program
Hello, i want to get the maildir current quota usage of an user, but i'd know what is the better way to do. in imap clients my quota usage, in example, show: 505KB, but if i sum only the size of each message from Maildir, i get total: 440KB, trying to use real and apparent block size but the sum differs from value showed in imap client. is quota usage based on why, have another way to
2006 Mar 30
2
A few problems after installation
Hello, I just installed RoR on my server together with cPanel. On port 3000 there is the Rails welcome page. Could you tell me how I can change the home page directory? Currently, the home page directory is /home/username/public_html, but I''d like to use RoR''s home directory instead. I also have another problem: I put .rthml files and instead of the web server parsing it,
2005 Sep 06
1
error_messages_for - different controllers, one view [revisited]
...s well. And in case of errors in the items I would like to stay in the same view with the order properties above and item list below. so far I haven''t managed to satisfy all of these conditions whatever approach I take, I would appreciate it if you could be specific about this :-) -- Agnieszka Figiel _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2005 Oct 12
1
step.gam and number of tested smooth functions
...= 99.8127 Trial: X143S ~ lo(ALC, degree = 2, span = 0.5); AIC= 100.5275 Lowess turned out to be better in this situation. Is there any way to examine all the models without stopping when AIC is higher in the next trial? Or maybe manual handling is the only solution? thanks for help in advance Agnieszka Strzelczak
2006 Apr 03
16
Dealing with Application error (Rails) in production
Hi all, Week 2 working with Ruby on Rails... I have a working app in development that is now throwing a generic, "Application error (Rails)" message in production. How do I deal with this so I can find more information about why the error is being thrown in production, but not in development? Thanks! -- Posted via http://www.ruby-forum.com/.