search for: canva

Displaying 20 results from an estimated 211 matches for "canva".

Did you mean: canvas
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 don''t have a host/are relative). Interestingly, if I use a named route, and pa...
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 html would return "something" that results in canvas drawing. Do...
2003 Oct 27
1
Difficulties with R.oo (static fields, etc.)
...with comments below. Thank you for your help. Gabriel Baud-Bovy #--------------------------------------------------------------------------------------------------------------------- Description of Turtle Basic Class: private fields: .x, .y, .a (turtle position and heading) .turtle: ID of canvas item representing turtle static fields: .canvas: tcltk canvas widget .top: tcktk toplevel widget methods: TurtleBasic: constructor plot: display turtle in Turtle World forward, turn: move turtle delete: delete turtle (not implemented) Note: My current code is very buggy: -...
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...
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
...<- function(n.col, b.color=NULL,e.color=NULL){ B.ChangeColor <- function() { b.color <<- tclvalue(tkcmd("tk_chooseColor",initialcolor=e.color, title="Choose a color")) if (nchar(b.color)>0){ tkconfigure(canvas.b,bg=b.color) Rmp.Draw() } } E.ChangeColor <- function() { e.color <<- tclvalue(tkcmd("tk_chooseColor",initialcolor=e.color, title="Choose a color")) ##cat(e.color) if (nchar(e.color)>0){...
2008 Apr 05
0
url_for + :canvas => false weirdness for non resource controllers
I noticed something strange in my app today. It appears that the extra canvas path appended in url_for is back but only for controllers that are not resources. Here is an example I have in my site: campaigns is a resource checkout is not # With the canvas false flag (rdb:1) @controller.url_for(:controller => ''campaigns'', :action => ''...
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 plugin called facebooker_extensions which essentially reverts this change until I figure out a way to smartly format the url from either a facebook or nonfacebook...
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. http://myserver.com/my_action/my_action/new I suppose I could write a helper to pull it out...
2012 Aug 07
3
Barcode Generating With Label On Canvas by using Barby gem
...ick_outputter'' require ''barby/barcode/code_128'' require ''barby/outputter/prawn_outputter'' require ''pdf/writer'' module Barby class RmBarcode < ActiveRecord::Base register :to_image_with_data def to_image_with_data #Make canvas bigger canvas = Magick::ImageList.new canvas.new_image(full_width , full_height + 10) canvas << to_image canvas = canvas.flatten_images #Make the text text = Magick::Draw.new text.font_family = ''helvetica'' text.pointsize = 14...
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?
2009 Apr 03
0
New R graphics package targeting HTML 5 canvas element
Hi, canvas is a new R package implementing a graphics device that emits javascript code conforming to the HTML 5 CanvasRenderingContext2D interface. Available on CRAN soon, but you can get it here immediately: http://www.rforge.net/canvas If you have access to a beta web browser like Firefox 3.1 or later...
2009 Apr 03
0
New R graphics package targeting HTML 5 canvas element
Hi, canvas is a new R package implementing a graphics device that emits javascript code conforming to the HTML 5 CanvasRenderingContext2D interface. Available on CRAN soon, but you can get it here immediately: http://www.rforge.net/canvas If you have access to a beta web browser like Firefox 3.1 or later...
2011 Jan 06
1
Cairo pdf canvas size
Hello, I want to save a pdf plot using Cairo, but the canvas of the saved file seems too large when compared to the actual plotted area. Is there a way to control the relation between the canvas size and the size of actual plotting area? Thanks in advance, and best regards, Eduardo Horta [[alternative HTML version deleted]]
2008 Jan 11
6
couple of newbie questions about redirects
...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. This raises Facebooker::Session::IncorrectSignature. Once I get this error, however, if I then go back to the canvas page, it pulls in the fbml from my controller just fine, and everything works. Should my app immediately go to the canvas page when a user authenticates to it, or is there a convention for what the base callback page should look like? And what is missing in my configuration such that I have to b...
2005 Jul 31
3
Drawing a graph with vertices and edges using tcl/tk
Dear all; I would like to draw a graph with vertices and edges, and I guess tcl/tk would be appropriate. I don't know tcl/tk but have googled for a 10-page (or so) introduction to 'getting started with tcl/tk in R' but without any luck. - Does anyone know of the existence of such a document or any other web-based material on the subject? - Does anyone have an (informative) piece of
2008 Jul 11
0
canvas url rewriting fails for templates loaded through ajax
I just encountered a bug that caused the links in my partials to be generated as non-canvas routes when the partial was loaded via ajax. This bug is due to facebooker url rewriting checking for fb_sig_in_canvas to determine if the application is running in or outside a canvas, and fb_sig_in_canvas is not sent for ajax requests. My hacked together patch diff is below, sorry I didn'&...
2007 Jul 16
0
[1113] trunk/wxruby2/samples/caret/caret.rb: Ensure the canvas has focus so KeyEvents are directed to it, fixing bug 10663
...patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[1113] trunk/wxruby2/samples/caret/caret.rb: Ensure the canvas has focus so KeyEvents are directed to it, fixing bug 10663</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>1113</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>200...
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 links: <fb:tab_item href="http://apps.facebook.com<%= url_for(:controller => ...
2007 Nov 09
2
Helpers and URL Rewriting
...r :application, etc in my controller. Second one, which unfortunately means I think I''ll have to switch back to the older revision is with the URL rewriting. I''m writing an application that''s available outside of Facebook too and I''m finding that on non canvas pages my canvas path still is being added to all my generated URLs. In addition, with my stylesheet the basename had been substituted too. The svn logs suggested that possibly work on the URL rewrite might not be complete, is that the right assumption? Anyway, I hope this is the best way...
2003 Oct 15
0
tkcanvas/bitmap for Turtle World
To represent a turtle inside a canvas (tcltk package), I have a serie of bitmaps representing the turtle heading in different directions and I would like to display the one that corresponds to the current direction of the turtle (function below). I have created with Paint a bitmap representing the turtle in BMP format and succeeded...