search for: szymek

Displaying 20 results from an estimated 56 matches for "szymek".

2011 Nov 22
3
making scatterplot easier to read
Dear R users, do you know an easy way (other than star plot) of making several points laying one over another visible? Is it any simple way of increasing such "multipoint" symbols - or shifting their positions randomly to make several points in one place visible? Cheers, sz. -- Szymon Drobniak || Population Ecology Group *Institute of Environmental Sciences, Jagiellonian University
2006 Mar 08
3
attribute or instance method or what?
Hi! Uhm are attributes just something like additional members of a class, other than those that come from the names of columns in the table? I''ve got images table, which has ''name'' column. I''ve added support for creating thumbnails out of uploaded pictures and i''d like to have an easy way of accessing them in my views. How to do it? I.e. my image
2006 May 10
8
E-mail validtor??
Does anyone have a good working e-mail validator? or even some regexp to make the validates_format_of work right... that would be awesome. Also, maybe an online tutorial for regexp. i''ve always been afraid of it but i think it''s time to face the fears. thanks! -- Posted via http://www.ruby-forum.com/.
2006 Mar 09
7
How to restrict access to admin part of the page?
Hi! What is the easiest way to restrict access to some part of the page? In php i just put .htaccess and .htpasswd files in /admin folder and it worked. Now i''ve got one admin folder for controllers, one for views, public folder and i''m not really sure if it''s still possible. So what is the easiest way? I don''t have any user logging features on my site,
2006 Mar 17
6
Problem with ruby 1.8.4 One-Click Ruby Installer on windows
Hi! Previously i had ruby 1.8.2 (One-Click Ruby Installer) installed, but the rdoc and plugindoc didn''t work, so i decided to install ruby 1.8.4. I had uninstalled ruby 1.8.2 (uninstaller deleted the whole ruby folder with radrails and everything, just great) and installed One-Click Ruby Installer 1.8.4-16 preview3. Then installed rails, rmagick, radrails, created docs for trunk
2006 Mar 08
19
Creating multiple rows with one form
Hello. I''ve been trying this out for the past two days and I can''t seem to get it. I''m going to have a page where you can upload x amount of images at once. Lets say 10 images need to be uploaded, all with a caption. I''d like to have a browse button to choose the file, then the caption. Now, if I put 10 of them in one form, fill them all out and submit, I get
2006 Mar 24
7
Question about flash
Hi! I''ve got a search form, which calls search action. If the result set is empty, i set flash to display a proper message. At the end search action calls "render :action => list". If the search action returns empty result set and the message is displayed, but later user changes searching conditions, calls search again and result set is no longer empty, the message is
2006 Mar 22
4
How to write this SQL query?
Hi! Is there rails version of "where column in (value1, value2, ...)"? I know i could do OR many times, but this way is shorter. I''m ruby/rails newbie, so i have a problem with converting the hash, which i''m receving from the search form into the string for :conditions in find method. Could i instead of creating one, complicated (for me) query do something like
2006 Mar 13
6
Specifying none/single/many conditions at the same time
Hi! It''s rather ruby question than rails... I have a single ''list'' action where i call paginate method. I can receive none, 1 or 2 variables that specify conditions for paginate method. How to write the code so i can call paginate without conditions if all conditions variable are nil, with a single condition if one of conditions variables is not empty and with 2 if
2006 Apr 08
5
Moving my site into production mode - general questions
Hi! I''ve just finished my ror site and i''d like to move it into production mode. Now it runs on linux/apache 1.3/cgi. 1. Can i use fcgi in development mode? I''ve read somewhere that because of caching it causes memory leaks and fcgi shouldn''t generally be used in development. Does plain cgi also causes memory leaks in development mode? 2. Does rails
2006 Apr 01
3
Determine image width of png, gif or jpg?
Hi all In PHP I have a neat function: http://ch2.php.net/function.getimagesize With it I can easily determine the dimensions of an image file. How can I do that in RoR? Thanks for help. Greets, Josh -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
3
How to wait for an image to be loaded?
Hi! I''m making a simple gallery, which uses simple javascript for changing ''src'' attrbiute of ''img'' element. How to wait for an image to be downloaded completely before trying to display it and while browser downloads this image display a spinner gif or ''please wait'' message etc.? Something like this:
2006 Apr 22
0
Re: Rails Digest, Vol 19, Issue 611
Thanks szymek for putting me on track. What I did was re-intstall the file_column plug-in but I still got the same error so I added @recipe = recipe and then then error changed to something about nil.first. So I added a rescue "no image" to the end of my image_tag like so <%= image_tag url_for_fi...
2006 Mar 08
3
Many renders in one view?
Hi! This was probably asked many times, but i can''t find it anywhere. How to render in my view many actions (sometimes from different controllers)? So i.e. I will have user status/login form at the top, form for creating/editing some data on the left and a list of these data elements on the right and some other things at the bottom? Can i put some of this stuff to the layout? So i
2006 Mar 14
3
How to write ! version of non ! method?
Hi! How to write i.e. array.join! based on array.join method? -- Posted via http://www.ruby-forum.com/.
2006 Mar 20
3
Where does it come from?
Below every page in the browser i get: "Loaded suite dispatch.cgi Started Finished in 0.000225 seconds. 0 tests, 0 assertions, 0 failures, 0 errors" I''m not sure if i changed something or someone else did it, but now i don''t know how to get rid of it. It has something to do with testing, right? How to switch it off? -- Posted via http://www.ruby-forum.com/.
2006 Mar 06
4
Newbie problem with adding new method to a class
Hi! If i have Image class and i''d like to add ''create_thumbnail'' method to it, which will later be called from product controller, where to put this method and how to call it? I''ve tried putting it inside image controller and image model, then call it like Image.create_thumbnail, but it didn''t work - undefined method `create_thumbnail''
2006 Mar 09
3
redirect_to :back question
Hi! How to use this? I can declare it only inside a controller, so i tried to do add this to application controller: def back redirect_to :back end so i could call in all my views link_to ''back'', :controller => ''application'', :action => ''back'' but it doesn''t work - there are no errors, but i''m still on the same
2006 Mar 14
3
How to save parent and child objects in a single action?
Hi! I''m struggling with it for a week. I posted a few similar posts that cleared up few things (thanks Mark!), but i still don''t know how to do it properly. What i''m trying to do is to create parent object and its many children (images - i tried using file_column, but it''s a topic for another post)using data from a single form. I''ve got a working
2006 May 25
2
Newbie AJAX rjs syntax question
I''m brand new to Ruby and to Rails, and I''m running through Pragmatic''s "Agile Development" V.2 book and am having problems with the rjs files in their tutorial. First problem: page[:cart].replace_html :partial => ''cart'', :object => @cart This line stopped the AJAX request. The action completed without trouble, but when it hit