Displaying 20 results from an estimated 900 matches similar to: "Drawing a graph with vertices and edges using tcl/tk"
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
Hi,
I am having trouble debugging this one. The code is attached below, but
it seems to be a problem at the
C-tk interface. If I run this 1 time there are no problems if I run it
more than once I start to get warnings
that increase in multiples of 11 everytime I run it. Here is a sample
session
> source("clrramp2.r")
Loading required package: tcltk
Loading Tcl/Tk interface ... done
2003 Nov 27
1
tcltk - tkcreate question
Hello,
i'm trying to translate following tcltk source code, which I found in
newsgroup comp.lang.tcl, written by Tom Wilkason, into R Code.
proc scrolled_Canvas {base} {
frame $base.fm -borderwidth 2 -relief sunken
canvas $base.fm.cv -yscrollcommand "$base.fm.cv_vertscrollbar set"
scrollbar $base.fm.cv_vertscrollbar -orient vertical \
-command "$base.fm.cv
2003 Oct 27
1
Difficulties with R.oo (static fields, etc.)
I would like to use R.oo and tcltk to implement a Turtle World. I have
encountered
many problems because:
1) I am not sure how to implement static fields with R.oo
2) I am not sure how to implement a constructor that would
call a function only for the first instance of a class (i.e., to
initialize
value of static fields only once)
3) I am not sure how to remove/delete cleanly existing
2008 Oct 30
3
using yscrollcommand in tkcanvas crashes R (PR#13231)
Full_Name: Sundar Dorai-Raj
Version: 2.8.0
OS: Windows
Submission from: (NULL) (76.220.41.126)
The following code crashes R:
library(tcltk)
tt <- tktoplevel()
tc <- tkcanvas(tt, yscrollcommand = function(...) tkset(ts, ...))
> sessionInfo()
R version 2.8.0 (2008-10-20)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
2002 Feb 15
1
embed image in R-tcltk canvas
Hi,
I think that R-tcltk doesn't have the capacity to display an image stored in
memory on a tkcanvas object, am I right?
I have digged around everything I can find from Peter Dalgaard and tcltk
references and drew my conclusion.
Can you, Peter, or some other gurus on the list, give us a pointer or two on
how to proceed to solve this problem? I am afraid that it may involve
writing C
2008 Mar 06
5
Setting :canvas => false for URL generation doesn''t always work?
I generate a lot of URL''s in my Facebook related code that point to our main
site, not our FB app. My understanding was that the way to do this was to
use ":canvas => false" as a parameter to url_for and link_to and so on.
However, that doesn''t seem to generate the proper URL''s. The URL''s still
point to apps.facebook.com (because they
2005 Nov 27
3
Canvas Tag + Rails Ajax
Hi all,
Just looking for a quick sanity check. I was thinking of writing a
plugin for rails to give rails developers a good way of using the new
firefox 1.5/safari canvas tags. I was thinking of grabbing an
existing ruby graphics library and modifying it so that it renders
via the canvas tag..
So you could have link_to_remote pointing to controller actions that
instead of returning
2007 Dec 04
5
new facebooker
Hi guys,
I am new to this list and thought i''d say hello. I am using
facebooker on a new project and so far I am really pleased with it. I
saw that some users are having woes with the url_rewriter breaking
urls for paths outside of the facebook canvas (i.e. your site
supports both facebook and non-facebook users). I don''t have a
prefect answer for this but I wrote a
2008 Feb 02
3
Question abt redirect_to..
I found a reference to using attachment_fu and followed the lead of it
but having an issue with the redirect_to that renders the fb:render
tag - In my form I''m setting the canvas to false, file is being
uploaded / save fine but when I attempt to redirect:
redirect_to :action => :new, :canvas => true
Unfortunatly it looks like my callback URL is getting printed twice, e.g.
2008 Feb 08
2
Dynamic resize of drawing canvas and FXImage
How can I use the drawing canvas and its off-screen image buffer, say
FXImage, to dynamically resize or have its width and height attributes
changed in reply to user interaction with the main window (FXMainWindow)?
It seems that whem I put initial values to W and H of the canvas or FXImage,
they remain with its initial values no matter what I do whem resizing the
main window.
--
Ranieri Barros
2008 Mar 10
15
facebooker is rewriting URLs even off of facebook canvas
The URLs for CSS/JS files are being rewritten to the address specified
in the tunnel even when outside of the facebook canvas. Is anyone else
having this problem?
2008 Jan 11
6
couple of newbie questions about redirects
I''m working on an app, and am new to both ruby and facebooker. Here
is my current area of confusion:
What should happen on a user''s initial visit to my app? When I hit
apps.facebook.com/<my app> for the first time with no cookies or
sessions or anything, I''m asked if I want to log into the app, etc.,
and am then redirected to my callback url outside of facebook.
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
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All,
I''m trying to use a form to upload a photo that I will save using
attachment_fu. I''m very new to Facebookr so I apologize if this is covered
somewhere, but I''m kind of stumped.
Here''s what I''m doing now:
<% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id =>
params[:id] }, :html => {
2007 Nov 09
2
Helpers and URL Rewriting
Hey folks,
I''m part way through a project using, I think rev 73 of Facebooker,
and was getting along pretty well. I''ve since tried the latest rev
(86) and have run into a few problems.
First one was with the helpers in that for some reason now none of
them are available so I''ve had to use helper :application, etc in my
controller.
Second one, which
2008 Jan 28
3
A style question
I''m working on the ability to share a single session between Facebook
and Non-Facebook requests. Right now, to setup a shared session, you
create a link like:
<%= link_to "Non-Facebook
view",leaders_url(facebook_session_parameters.merge(:canvas=>false))%>
The facebook_session_parameters includes all of the necessary info. Is
this okay, or would it be better as
2007 Oct 29
2
Changing size of lattice plot?
Hi
I am having a bit of difficulty with changing the canvas size on a
trellis/lattice plot. I am plotting two "cubes" of 3-dimensional random
numbers, as follows:
library(gsl)
library(lattice)
q <- qrng_alloc(type="sobol", 3)
npoints <- 200
rs <- qrng_get(q,npoints)
# Plot the normal variates in a 3-dim cube
p1 <- cloud(rnorm(npoints) ~ rnorm(npoints) +
2009 Mar 24
1
segfault when running heatmap()
Hi, I was wondering if someone in the mailing list has any insight into this
segfault error that I consistently find when running a script containing
heatmap() in R 2.8.1 and 2.8.0 on a Linux 64-bit machine.
Some points:
1. This occurs when running heatmap().
2. Interestingly, if I source() the script or copy and paste the script in
its entirety, this error occurs. However, if I run the
2008 Jan 25
5
ajax with facebooker?
So if I am using fbml,canvas & facebooker, can I do ajax calls? if so
how?
From reading it seems they support some sort of mock ajax, but I
don''t really understand, can somone explain to me?
If I cant do ajax, can I still do javascript?
Can I use 3rd party libs like prototype & scriptaculous?
thanks
Joel
2006 Mar 09
6
rmagick and captcha
Has anyone implemented a captcha with ruby on rails and rmagick?
I tried this example:
http://wiki.rubyonrails.com/rails/pages/HowtoSecureFormsWithNoisyImages
but I got an error:
undefined method `size'' for #<NoisyImage:0x34d8070>
Thank you
--------------------------------------------------
Rodrigo Dominguez
?
Iplan Networks ???????????????Datos Personales