search for: mytask

Displaying 7 results from an estimated 7 matches for "mytask".

Did you mean: mstask
2013 Jan 14
2
The three-dot question
...y does not the three-dot accept arguments from the parent environment? I am just confused with this error, can someone give me a hint? > rm(list=ls()) > testFun <- function(a, ...) + { + if(a){ + print(a) + }else + { + print(b) + } + } > > myTask <- function(a) + { + b <- 3 + testFun(a, b = b) + } > myTask(FALSE) Error in print(b) : object 'b' not found Thanks in advance! Feng -- Feng Li Department of Statistics Stockholm University SE-106 91 Stockholm, Sweden http://feng.li/
2006 Apr 06
3
data base
As from the database to get a cell on id?? -- Posted via http://www.ruby-forum.com/.
2007 Aug 23
7
TaskBarIcon gives Typerror
...w any good website or book about wxruby? My problem at the moment is, I wanna test the TaskBarIcon on Gnome and so I did: #!/usr/bin/env ruby $Verbose=true require ''rubygems'' require ''wx'' include Wx class MinimalApp < App def on_init mytask = TaskBarIcon.new mytask.set_icon(''shutdown.svg'',''thats my tooltip'') end end MinimalApp.new.main_loop #eof the doc tells about set_icon: Boolean set_icon(Icon icon, String tooltip) Sets the icon, and optional tooltip text. shutdown.sv...
2007 Jan 25
0
mocking methods that receive blocks - back to mocking Thread again
...seem to be a little bit hard to read now. Any suggestions for improvements? bye, Tobias class TaskRunner def initialize @is_running = false end def running? return @is_running end def execute(task) @is_running = true Thread.new(task) do |myTask| myTask.run @is_running = false end end end context "The TaskRunner" do setup do @runner = TaskRunner.new @task = mock(''SampleTask'') @task.stub!(:run) Thread.stub!(:new) end specify "s...
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
...#39;'m using link_to_remote to show details for an item that''s clicked. I''d like to hide the div with the next click, or alternatively have a "Hide" link within my div. What is the best way to accomplish this? Here''s my existing code: <% for task in @mytasks %> <div class="rowFormat"> <%= link_to_remote( "#{task.title}", :update => "task_#{task.id}", :url =>{:controller => ''front/tasks'', :action => ''show'', :id => task} )%...
2008 Jan 25
8
simple routing & linking question
So I have an existing app & facebook app in same rails application, for now I have decided to go the route of creating a controller for facebook stuff (called FaceController). (setup is canvas, fbml) So I have: facebook config http://myurl:myport/face/ My controllers name is face, so I dont even need a manual route, for the landing page it works like a charm. but, when I try to make
2010 Dec 28
14
cerating multiple cjeck boxes using array
i have a registration form ,i want to store data in corresponding user table in that hobbies field ,i want to store all hobbies in one column so i take multiple check boxes and store in one array all checked values for that i am using below tag,but not working,please any suggestion <%= check_box(:user ,:hobbies,:value =>''Games'') %>Games <%= check_box :user ,