All Questions

413
votes
14answers
239423 views

Render a view as a string

I want to output two different views (one as a string that will be sent as an email), and the other the page displayed to a user. Is this possible in ASP.NET MVC beta? I've tried multiple examples: ...
9
votes
2answers
8760 views

JTextFields on top of active drawing on JPanel, threading problems

Has anyone ever tried to use Swing to construct a proper multi-buffered rendering environment on top of which Swing user interface elements can be added? In this case I have an animating red rectang...
49
votes
8answers
26469 views

Swing rendering appears broken in JDK 1.8, correct in JDK 1.7

I have installed IntelliJ IDEA (13.1.1 #IC-135.480) and JDK 1.8.0 (x64) and I generated some GUI with the GUI Form designer. Then I ran the code and realized that something is not alright. Here is...
3
votes
2answers
1938 views

OpenGL - Index buffers difficulties

I have a custom file format that has all the needed information for a 3D mesh (exported from 3ds Max). I've extracted the data for vertices, vertex indices and normals. I pass to OpenGL the vertex da...
64
votes
8answers
46054 views

Convert SVG to PNG in Python

How do I convert an svg to png, in Python? I am storing the svg in an instance of StringIO. Should I use the pyCairo library? How do I write that code?
40
votes
4answers
20160 views

How to make item view render rich (html) text in Qt

Suppose my model has items with the following string for Qt::DisplayRole <span>blah-blah <b>some text</b> other blah</span> I want QTreeView (actually, any item view) to ren...
97
votes
25answers
128957 views

Unsupported major.minor version 52.0 when rendering in Android Studio

When I try to render a layout preview in Android Studio I get error: Unsupported major.minor version 52.0
53
votes
15answers
142822 views

failed to resolve com.android.support:appcompat-v7:22 and com.android.support:recyclerview-v7:21.1.2

I installed ALL Extra and SDK API 21-22 including changed compileSdkVersion 22 to 21 buildToolsVersion '22.0.1' to 21.1.2 but error. And Rendering Problems for API 22 and I changed to <= 2...
118
votes
7answers
130536 views

In Rails, how do you render JSON using a view?

Suppose you're in your users controller and you want to get a json response for a show request, it'd be nice if you could create a file in your views/users/ dir, named show.json and after your users#s...
55
votes
3answers
37158 views

Chrome rendering issue. Fixed position anchor with UL in body

There is a rendering issue with Google Chrome and Opera (why?=) with such code: <html> <style> #content { width: 150px; background: gray; } #sidebar { ...

Previous Next