search for: painting

Displaying 20 results from an estimated 723 matches for "painting".

2010 Oct 12
2
STI and :through, not working?
Artist.first.medias returns all medias. Media is an STI. Media can be video or painting. How do I return all paintings of an artist? Only paintings, not videos? In my Artist model, I tried putting: has_many :paintings, :through => :medias In console, I do: Artist.first.paintings.all And I get: ActiveRecord::HasManyThroughSourceAssociationNotFoundError: Could not find t...
2006 Feb 17
1
validate() with has_many association
I''m creating a simple portfolio site for a painter. I have a painting and an image model with following relationship: Painting has_many :images Image belongs_to :painting On the edit screen the user can edit the Painting data as well as upload pictures for a thumbnails and full size image. The Image model extracts filename, width, and height from the uplo...
2006 May 22
4
use join table in paginate
...or the simplicity of Ruby/Rail, which a see must be there? Anyway, don''t try and answer this rhetoric question. I have got another one for you, seemingly difficult. I''m struggling with a n:m relationship (in a database, that is) and its join table. Here are my objects: class Painting has_and_belongs_to_many :themes which maps to db entity painting id class Theme has_and_belongs_to_many :paintings which maps to db entity theme id And of course the join table paintings_themes painting_id theme_id So, paintings have one or more themes, and a theme can belong...
2010 Oct 11
12
Need advice on controller / view
Need some advice. I''ve got two modules: artists and paintings. In my home page, I''ve got a 2nd page that says "Browse paintings", which displays ALL paintings of ALL artists. This is being rendered by paintings#index. In another page, I should show all paintings of a specific artist ONLY. Meaning, paintings from ONE artist. I cant use pa...
2010 Jul 24
4
Wine 1.2-GIT: Compiler error in user32/painting.c
...ome/quix0r/git/wine/dlls/user32' ccache gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_USER32_ -D_WINABLE_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -g -O0 -fPIC -o painting.o painting.c painting.c: In function ?GetDCEx?: painting.c:913: error: initializer element is not constant make[1]: *** [painting.o] Error 1 make[1]: Leaving directory `/home/quix0r/git/wine/dlls/user32' make: *** [dlls/user32] Error 2 It happens only with last commit, the previous one, previ...
2007 Apr 09
2
Paint chanegs block dbus and fuse plugins
I was writing a simple plugin a while ago which just sets the paint values on inactive windows. The plugin is very simple and the main part is below. When I load this plugin it blocks dbus and fuse plugins so that they only reply to requests when the active window changes. Is there anything obvious here that would cause that? static Bool inactivePaintWindow (CompWindow *w, const
2011 May 20
12
MS Paint with wine?
Hi all, I'm relatively new to Ubuntu and I will most likely install WINE on my next desktop for gaming. However my present puter is an Acer netbook and I would like to run MS Paint on it. I know you will tell me there are a lot of other Ubuntu apps that can do the job but I want MS Paint and it would be nice if I didn't have to log in and out of OS's just to access MS Paint from time
2007 Apr 12
1
[PATCH] Transparent cube
...needed when we paint a a cube face which is reversed. BTF mask alone doesn't do anything, but when combined with FTB mask, core will first paint the screen with regular order and after that in reversed order; the plugin that set BTF and FTB mask together is responsible for preventing core from painting the window twice. This allows plugins to make more complicated drawing orders. This feature isn't needed for transparent cube, but it is needed for 3d plugin. This patch was originally written by Dennis Kasprzyk for beryl (who also gave the idea), and now re-written for compiz by me. - Wrappa...
2006 Sep 29
5
ObjectPreviouslyDeleted when trying to paint
Hi, I''m running into something along the lines of bug 5383. I''m hoping I''m doing something obviously wrong and that someone can point me in the right direction. I''ve got a custom paint event handler: def on_paint puts "mainframe on_paint" paint do |dc| dc.clear @cl.draw dc end end Then I''ve got a key press
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
...ting that a + # paint event is being handled just before running the event + # handler. This ensures that any call to Window#paint within the + # handler will supply a Wx::PaintDC (see swig/Window.i). + def evt_paint(&block) + wrapped_block = proc do + instance_variable_set("@__painting__", true) + block.call + remove_instance_variable("@__painting__") + end + __old_evt_paint(&wrapped_block) + end </ins><span class="cx"> end </span></span></pre></div> <a id="brancheswxruby2wxwidgets_282swigcl...
2007 Mar 31
0
Amazing art work - Paint Mona Lisa on MS Pint
How to Paint Mona Lisa with MS Paint <http://arts-artists.blogspot.com/2007/03/how-to-paint-mona-lisa-with-ms-paint.html> Amazing Art work<http://arts-artists.blogspot.com/2007/03/how-to-paint-mona-lisa-with-ms-paint.html> http://arts-artists.blogspot.com/2007/03/how-to-paint-mona-lisa-with-ms-paint.html --~--~---------~--~----~------------~-------~--~----~ You received this message
2007 Mar 16
1
[PATCH] Rendering: swap buffers and copy only needed parts
...'t work or copying repainted parts from backbuffer to frontbuffer is too slow. And since many people rely on driver's implementation of Sync to Vblank, it would be optimal to always use glXSwapBuffers. This can be accomplished via keeping up-to-date copy of frontbuffer in backbuffer and painting updates over it. My patch (swap-buffers-and-copy-only-needed.patch) keeps copy of last painted region and in case of partial screen repaint uses it to determine which parts should be copied from frontbuffer to backbuffer. Since region going to be painted this time is known, it can be substracte...
2008 Jan 02
3
how can I use draw line in wxruby??
I use dc = DC.new() dc.draw_line(50, 50, 100, 100) but it can''t be compiled I don''t know how to declare DC variable?? in http://wxruby.rubyforge.org/doc/dc.html it don''t tell me how to declare now variable plese tell me :''( -- Posted via http://www.ruby-forum.com/.
2007 Dec 01
5
Tearing in my buffered animation test script...
OK, I have a basic blit demo working (thanks to Alex Fenton for his reply, which I finally saw). However, there''s a great deal of "tearing" on the screen - flickering grey lines in the black background. It looks like the blit isn''t always complete when the screen refreshes. Can anyone look at this and tell me what I might be doing wrong? Any help would be most
2007 May 07
1
[ wxruby-Bugs-10662 ] ClientDC paint not being shown on OS X with 2.8
Bugs item #10662, was opened at 2007-05-07 19:55 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=10662&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 4 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: ClientDC paint not being shown on OS X with 2.8 Initial Comment:
2011 Sep 26
0
Farmhouse in Provence
The Building Painting (http://www.micaroo.com/home-and-garden/wall-art/building-paintings.html) Farmhouse in Provence also known as Entrance Gate to a Farm with Haystacks was made in 1888 by Vincent van Gogh in Arles in Provence at the height of his career. Oil Paintings for sale (http://www.micaroo.com/home-and-garden/...
2008 Feb 18
2
how to plot image() without painting a map (the background)
...col=cm.colors(100), axes=FALSE, add=TRUE) #contour(akilonlat03, col="blue", add=TRUE) image(akilonlat06, col=cm.colors(100), axes=FALSE, add=TRUE) #contour(akilonlat06, col="blue", add=TRUE) -- View this message in context: http://www.nabble.com/how-to-plot-image%28%29-without-painting-a-map-%28the-background%29-tp15546906p15546906.html Sent from the R help mailing list archive at Nabble.com.
2007 Apr 29
0
[991] branches/wxruby2/wxwidgets_282/doc/textile: Update documentation for painting methods and WindowDC subclasses
...nd:#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>[991] branches/wxruby2/wxwidgets_282/doc/textile: Update documentation for painting methods and WindowDC subclasses</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>991</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-29 12:33:41 -0400 (Sun, 2...
2007 Mar 22
0
[910] branches/wxruby2/wxwidgets_282: Moved paint() method back into C++, so DC object is destroyed in timely
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2015 Aug 21
3
[Bug 2450] New: paint visual host key with unicode box-drawing characters
https://bugzilla.mindrot.org/show_bug.cgi?id=2450 Bug ID: 2450 Summary: paint visual host key with unicode box-drawing characters Product: Portable OpenSSH Version: 7.0p1 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: ssh