rendering

Ruby On Rails: Display html source code instead of rendering it

Hello! I have a big problem (even my server's admin seems to have some difficulties to solve it). I used my cpanel (11.25.0-STABLE) to create a new ruby on rails application, which work fine when accessed to its original uri (with port number). To make that uri more "user friendly", I have created a rewrite to access my RoR applicatio...

How to insert JSF page rendering time and response size into the page itself, at least partially?

I realize it's a chicken and egg problem and that it's not possible to accurately resolve the time it took to render a page (or the size of response) and insert that number into the page itself without affecting either measure. Nevertheless, I'm looking for a way to insert either number partially in a page of a JSF/Facelets/Seam applicat...

SDL + SDL_ttf: Transparent blended text?

Hi, This is a many discussed topic. But after searching for hours, I still could find how to do it... So, what I want is to render an anti-alias string on an SDL_Surface with a given alpha channel. It is possible to render: an anti-alias string with the Blended variant of the string render method. But then I can't make it transparen...

In webkit browsers, sometimes part of the background appears white

I have this issue that appears only when using a webkit browser. Sometimes, when I reload my browser, certain parts of the background become white, and if I resize the window, it renders the background completely. I was wondering, does anyone else have this issue? I don't think it's a markup issue, so I'm not going to attach any code. J...

Font-size differences in input fields on FF 3.5 for Mac?

I've noticed while testing my website that the font-size in fields on FF 3.5 on Mac's is bigger than on FF 3.5 for windows or any other browser. Is there a way to style this or fix it? I've tried setting input { font-size: XXpx; } to no avail! ...

JTextFields on top of active drawing on JPanel, threading problems.

Dear developers, 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 rectangle drawn onto a background. The background does not need to be updated every frame so I render it onto a BufferedImage an...

How is this 3D rendering on the desktop done

I read a topic on OpenGL.org where a guy made this: http://coreytabaka.com/programming/cube-demo/ He said to release the source code but he never did, does anyone how I could get the same idea? Has to do with clearing the window with alpha but drawing on it as well.. just don't get how to get OpenGL setup like that. From there I can do...

iphone to ipad, iphone 4 uialertview problems

So I've upgraded the code to the ipad (i.e. converted to a universal app). However, the UIAlertview rendering seems to be off for IOS4. Instead of being positioned in the middle, it jumps up and is displayed on top, with half the box cut off. Same goes for landscape orientation. It is my understanding that the UIalertview is always set...

IE 8 input type text/password bug

<tr> <td>Password:</td> <td><input type="password" name="j_password" id="j_password"/></td> </tr> The code above increases the CSS offset of the input element 6 pixels right. If the type is changed to 'text' as opposed to 'password' the CSS offset is not increased. I would file this as a bug with MS but I don't have the time nor e...

Render image or pdf stream from SQL database in asp.net

Hi, I have a table with documents saved some of them in pdf, some of them image. I want to create a web app, to show the images (that can be either pdf, either jpg) in the same control. I can manage to see pdf, if I set the Response.ContentType = "application/pdf" or image if I set "application/jpg". But the problem is that how can I ge...

Swing active rendering efficiency or how to combine active rendering with gui widgets..

Hi folks, Continuing from a previous question, I keep searching for the optimal way to combine active rendering with textfields in Java. I tried several options, using BufferStrategy, VolatileImage or overriding update() and paint() in standard AWT, but I ended up using Swing. I'm posting the current state of affairs here just in case...

IE8 Rendering extra Padding or Margin

I'm having with some margin or padding issues with IE8 that I'm hoping someone here will be able to help me out. Below is a screenshot of the site in IE7 with the correct spacing (it looks pretty much the same in FF and Chrome/Safari as well). Next is the same page in IE8 with a whole bunch of extra spacing between the created by line...

Please recommend a view technology to be used in Spring MVC 3 applications.

I'm looking for what view technology would be considered the best approach for Spring MVC 3.0 which is flexible, maintainable and allows multiple rendering technologies such as HTML, PDF etc... We're looking to develop our next web application using Spring MVC 3.0 and have settled on Hibernate for persistence but are still trying to dec...

How to make an asp:panel render as a div via .RenderConrol

tl:dr version: Is there a way to get the panels to render as divs when rendered by RenderControl? Background: I am working on an asp.net 1.1 site, and I am trying to render a control containing panels to a string so I can pass it back to the page as JSON and refresh part of the page. I am rendering the control thusly: StringWriter t...

WPF canvas zoom and rendering

Hi Guys, I am trying to place a canvas within a control which I will then use a Layout transform to implement zooming functionality. The problem is that while enlarging the canvas is easy, cropping the required section is proving difficult. I think it boils down to the following example code: <Canvas HorizontalAlignment="Center" ...

Rails Render Helper Not Rendering

As the title says, one of my helper functions to render partials isn't rendering correctly. def render_contact_list @contact_groups = ContactGroup.find(:all, :conditions => ["user_id = ?", current_user.id]) @contact_groups.each do |contact_group| @contacts = Contact.find(:all, :conditions => ["group_id = ? and O...

JSP renders weird HTML

I'm getting a very strange behaviour in one of my JSP pages. It looks like it doesn't render the complete HTML. It looks like this: <html> ... <table> ... </table> <div id= So the last line is exactly what you get when the page is rendered. Furthermore, when you do a view source you get exactly the same. This page doesn...

2D Rendering - From Back to Front with Different Heights

I'm wondering what the best way to render a scene made up of multiple-sized tiles, from back to front, with different heights. Like this: http://www.youtube.com/watch?v=Ahfrxm6ETgA Important stuff starts at 2:35. Ignore the horrible narration. :P I'm using VB2008. So here's what I have right now: My graphics consist of bitmaps that...

ASP.NET Page Rendering

How does the ASP.NET page rendering happens from Server to Client Browser? The question is, consider the Page has a Header and Footer which are User controls and contain many server controls. Does ASP.NET start sending the HTML to client browser, once it gets some of the controls being rendered and converted in their respective HTML? Or...

Form renderer for PHP

I tried the Drupal form APIs and like it a lot. What stand-alone PHP classes exist that perform similar functions? ...