search for: paint

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

Did you mean: pain
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 fin...
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...
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 bel...
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...
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, pr...
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 (C...
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 to time. Anybody knows if and how I can run Paint in WINE? Cheers and thanx! PepeLa...
2007 Apr 12
1
[PATCH] Transparent cube
...yl's transparent cube, and ported 3d plugin to compiz. I'm attaching a patchset here that includes the transparent cube patches (i'll post the 3d plugin when i fix some problems that didn't happen in beryl). Patching order: btf-ftb.patch, clip-planes.patch, plugin-events.patch, cube-paint-order.patch, transparent-cube.patch. Special thanks to Dennis Kasprzyk (who originally wrote some of these patches to compiz, and helped me now with various things), Quinn Storm (who helped me with the options), and Danny Baumann (who did most of the events stuff). This is what my patch includes:...
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 handler that changes @cl and calls refresh on the frame to get it to redraw. Without calling refresh, things seem to be fine. (...
2007 Apr 29
0
[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,
...0;} #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>[983] branches/wxruby2/wxwidgets_282: Make Window#paint work both inside and outside a paint event handler,</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>983</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-04-29 09...
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-pai...
2007 Mar 16
1
[PATCH] Rendering: swap buffers and copy only needed parts
Hi, I've been experiencing serious tearing in compiz when screen is painted only partly. Either "Sync To Vblank" option in compiz doesn'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 ac...
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...
...ass MyApp < Wx::App def on_init #Containing frame. frame = Wx::Frame.new(nil, :size => [300, 300]) frame.show #Offscreen drawing buffer. buffer = Wx::Bitmap.new(300, 300) #Displays drawing. window = Wx::Window.new(frame, :size => [300, 300]) window.evt_paint do |event| window.paint do |dc| #Copy the buffer to the viewable window. buffer.draw do |buffer_dc| dc.blit(0, 0, 300, 300, buffer_dc, 0, 0) end end end #Animate. (1..40).each do |i| #Clear screen. buffer.draw do |surface|...
2007 May 07
1
[ wxruby-Bugs-10662 ] ClientDC paint not being shown on OS X with 2.8
...7 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: Since moving to wxWidgets 2.8, drawing done with a ClientDC (outside a paint event, via the paint method) is not being shown until the window is invalidated, on OS X only. This can be seen in the cursor sample in bigdemo; the red circle shown on c...
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-gard...
2008 Feb 18
2
how to plot image() without painting a map (the background)
...ature for different latitudes and longitudes ? 3 o'clock. akilonlat06 is the temperature for different latitudes and longitudes ? 6 o'clock. I would like to plot akilonlat03 and then akilonlat06 and keep the map of France in background. My script (see below) doesn't work as image "paints" the background as I read somewhere in this forum. So would have someone a solution to correct my script ? Thanks in advance, Ptit Bleu. ---------------------------------------------------- akilonlat03<-interp(lonlat03$Longitude, lonlat03$Latitude, (5/9)*(lonlat03$TMP_200802150300-32))...
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...
2007 Mar 22
0
[910] branches/wxruby2/wxwidgets_282: Moved paint() method back into C++, so DC object is destroyed in timely
...n:10px 0;} #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>[910] branches/wxruby2/wxwidgets_282: Moved paint() method back into C++, so DC object is destroyed in timely</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>910</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2007-...
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 Ass...