search for: hcuge

Displaying 20 results from an estimated 30 matches for "hcuge".

Did you mean: hauge
2006 Jul 27
2
accessing a variable inside a plugin
Hello, I would like to load an Hash in my init.rb plugin file ... than I would like to use this hash in my module ... in my init.rb: @anHash = load From file... in mymodule: module Amodule def myFunction #@anHash .... end end How can I access to my hash in my plugin module function ? thanks for this dummy question ;-) Arnaud
2006 Jul 17
2
error_messages_for ?
Hi, I can''t list error_messages in my Form ??, and all the formfields are reset ...(I think my redirect :back clean everything, formfield and error_messages ...), only my flash[:notice] is ok.... I would like to use the "error_messages_for" tag to add a simple red * on my textfiled if a problem occurs ... thanks for help arnaud here are the basics steps to check that
2006 Jul 12
7
Does anyone work with iso-8859-1 database ?
hello, Our database is in is-8859-1, and I want to update some text fields without success due to some accentuate characters ?? ect ... In my html page (where the charset is iso-8859-19) my textarea display the accentuate characters well and when the user post the form ... I thought that I just need to save it .... without success since ruby map one byte for one character ... So I
2006 Aug 09
1
pre-loading sql for testing mode
Hi list, Instead of using fixture for my test (because I have to many tables, and it is easier to use my interface to create the data), I prefer to import all the data from an sql file for each scenario I have ... how I can do this with rails ? thanks for help arnaud
2006 Aug 10
2
save / update and validate
Hi, It seems that the validate method in ActiveRecord is not call when doing an myActiveRecordObject.update, right ? So, I call the save method instead, and the validation happens... some has an explanation ? thanks arnaud
2006 Jun 21
1
about composite primary keys
hello, what is the strategy you use for composite primary keys ? I saw the solution proposed by Graham Glass ( ticket 3201) using a set_composite_key..., but it seems it is not in AR ....(why ?) thanks for feedback arnaud
2008 Sep 18
2
Writing greek letters and subscripts in graph
Dear R-users, I would like to write Greek letters followed by subscripts in a graph (on the X-axis and in a legend). I would appreciate any help. thank you, delphine courvoisier ************************************ Delphine Courvoisier Clinical Epidemiology Division University of Geneva Hospital +4122 37 29029
2005 May 10
1
Rsync copying to many files on Tiger
...k. On a second run 5 minutes later, some files get copied again but I see no logic associated with that (I didn't modify any file). I am simply using: rsync -EaH --progress /dirA/ /dirB Any idea what is going on? -- Alexander Lamb Service d'Informatique M?dicale Alexander.J.Lamb@sim.hcuge.ch +41 22 372 88 62 +41 79 420 79 73
2005 May 10
0
(no subject)
...k. On a second run 5 minutes later, some files get copied again but I see no logic associated with that (I didn't modify any file). I am simply using: rsync -EaH --progress /dirA/ /dirB Any idea what is going on? -- Alexander Lamb Service d'Informatique M?dicale Alexander.J.Lamb@sim.hcuge.ch +41 22 372 88 62 +41 79 420 79 73
2005 Jun 29
1
Again, the error in rsync prototocol
...onnection unexpectedly closed (8 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at / SourceCache/rsync/rsync-20/rsync/io.c(359) --(alamb@cih-a023)-(11|ttyp1)-(11:36|06/29/2005)-- -- Alexander Lamb Service d'Informatique M?dicale Alexander.J.Lamb@sim.hcuge.ch +41 22 372 88 62 +41 79 420 79 73
2006 Jun 18
4
share an hash ..
Hello, How to share an Hash between all objects (model, controller ect ...) => I did a static Hash in my model where a static method fill it basically, this is the code class Person < ActiveModel @@anHash.new def Person.anHelperMethod(aKey) if anHash.size==0 ... load the hash, some SQL to fill the Hash end return anHash[aKey] end => The problem,: it always
2018 Apr 18
1
Problem with regression line
Hi Anne, I would suggest to change the linear model to lm(BloodPressure~Age), as this model makes more sense in biological means (you would assume that age influences pressure, not vice versa) and also obeys the statistical assumption of weak exogeneity, that age can be measured without error, at least compared to error-prone bp measures. Cheers Am 18.04.2018 um 16:07 schrieb Gerrit Eichner:
2006 Aug 12
0
BUG in actionpack , error evaluating nil.downcase ?
hi all, I try to deploy on my host (site5) on I have this error with dispatch.fcgi start ! ( RAILS_GEM_VERSION = ''1.1.6'' ) You have a nil object when you didn''t expect it! The error occured while evaluating nil.downcase /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:18:in `method'' any idea ? arnaud
2006 Aug 14
0
loading an image to instance variable of AR
Hi, I would like to load an image (not uploading from the client) and store this image as an instance variable of my model ? I do that because I want to render it with send_data(Person.defaultImage, :type => "image/jpeg", :disposition =>"inline") This is the code I did in my model, that not works ;-(, no error, but the image is not render wth the send_data def
2006 Aug 16
1
Routing Error !!
hello, oups big problem in production .... I don''t know why but I lost my stylesheets and images ... rails route /images /stylesheets as it was a controller ?? => so no images no stylesheets !! any idea ?? example: Routing Error Recognition failed for "/stylesheets/base.css" thanks for help arnaud
2006 Aug 16
0
`const_missing'': uninitialized ..
bad night ! my db model is like: person has many clients, and clients has many infoattributes so in my computer with script/console I can do aPerson.clients.first.rooms => and it is ok BUT in the new server which use rails 1.1.6 I have a `const_missing'': uninitialized constant Infoattribute Any idea ? arnaud
2006 Aug 17
0
`const_missing'': uninitialized constant
Hi all, still the same error, when accessing my model childs on the site5 server ....(Person.infogroups.first.infoattributes, (a Person has_many infogroup which has_many info_attribute)) I double check my config and the server and it is exactly the same (except for rubygem which is for me 0.8.11). ==>>ERROR
2006 Jul 01
1
Paginator offset =0 ...
Hi list, I Try to do a custom paginator, but the offset never increase ?? def showFriends @friends_pages = Paginator.new self, allFriends.size, 3, @params[''page''] limit= @friends_pages.items_per_page offset= @friends_pages.current.offset
2006 Jul 04
2
clear all sessions keys
hi list, how to iterate over the Session object to reset all session keys (after a logout for example) session[''something'']=nil session[''another_key'']=nil ... is there something like session.keys{|aSessionKey| session[aSessionKey]=nil} ? thanks arnaud
2006 Jul 17
0
error_message_on / error_messages_for
Hi, just a simple question between error_message_on / error_messages_for ... Well, if you use error_messages_for in your web page, there is no problem even if anObject==nil (for example , the first time you load your form) whereas error_message_on must be use with an instanciated object ... So, you always has to double check if anObject is not nil before using error_message_on ? I