display

How to display HTML using .NET in an interactive way.

What I basically want to do is take some HTML and display it in a way that when you mouse over any element, the application can parse the HTML I'm pointing to. I want to do this with C#/.NET Framework. Using IE is fine in my project and I'll want to basically edit the HTML so that when i hover over a table for instance, the table's bor...

How do I detect whether sys.stdout is attached to terminal or not?

Is there a way to detect whether sys.stdout is attached to a console terminal or not? For example, I want to be able to detect if foo.py is run via: $ python foo.py # user types this on console OR $ python foo.py > output.txt # redirection $ python foo.py | grep .... # pipe The reason I ask this question is that I want to make su...

JOGL four blank initial frames

In JOGL, there is the addGLEventListener, I add a listener to it. When the display() "callback on gl" is called, the screen is printed in black, just after four frames the display() prints something. How to make display() print something on the first callback display()? ...

Display triangles in 3D using Python

Disclaimer: The context is a project I'm working on as part of my Master's degree. I guess it qualifies as homework. Introduction (feel free to skip to the bottom line) Curved 3D surfaces are commonly displayed as a large set of very small triangles. Each triangle has the following properties: 3 corners uniform color Such tha...

X11 changing value of whitepixel

I have hardware which has an overlay buffer as fb and another buffer which renders video (analog video in like TV). z order with first video and on top of it fb rendered through cairo, agg library based application. The overlay buffer take one color key which is made transparent. I want to make my White pixel to be that color (say I con...

Display already hidden table cells in IE with CSS.

IE 7 does not display the initially hidden table cells (class="c") when class of the containing div is changed to "b", where "display:none" rule is removed. However, it should as it does for the row (class="r"). Other browsers behave properly. Seems like an IE bug. Did anyone came across this issue before? Any solutions? Thanks a lot. ...

Displaying image in Picture Box at runtime

I am designing an app and I want to attach some pictures to the VB forms I have used a picture box and the image is only visible before I debug . Once the debugging starts the images disappears. Does any one know how to display the image when I run it. This is the code I used for the picture box but still no luck PictureBox1.Image = My...

How can I get my website to display a .c file instead of trying to make the user download it?

My webserver is Apache (I don't have admin rights over it though). In my www/ directory, I have some .c files I'd like to display to the user to view in their browser. Currently though, the website tries to make the user download the files instead of simply displaying them. How can I fix this? Is there some sort of .htaccess trick? ...

How to export a remote java webstart app thru WAN ?

Hi, I've got the following problem. A client is looking for better latency to access a forex trading java web app (.jnlp) that is stored on a third party server. I can provide him access to one of our servers (running linux) that is geographicaly closer to the trading portal (rather than connecting directly to the trading server, less...

What's the best way to display a single record in a webpage?

I have a master/detail form. I have a jquery grid for the detail, works fine. I'm not sure how to display the master single record. I don't want to use an html table. Just a styled list maybe? I've was always so spoiled with asp.net controls in webforms that I don't know any good practices for this sort of thing. I am using PHP and...

Vertical spacing between display:inline divs in a fluid grid

Ok, not too sure where to start... I'm putting myself together a blogger, completely gutting it's css and just using it as a simple content manager. here is the test site i've been working with http://jamesparishtestblog.blogspot.com/ Ignore the header, its broken, but I know what I'm doing there. My problem is with the film reviews...

Android with E-Ink display

I'm interested in using Android for a E-Ink based platform. I know it has been demonstrated once by MOTO, but I'm interested in using it for a commercial grade product and not 'just' a technology demo. I have got a question on the ability to change the platform to cope with specific display effect caused by E-Ink. I'm asking this quest...

Display Multiple Form Submit Buttons Inline Same Line In IE8 In Table

I am trying to display two form submit buttons on the same line inside a table. In IE7 the following code works great, however in IE8 the Delete button drops down to the next line even though I declared the form to display inline. Any suggestions? I created a basic test page here to show the issue: http://ajondeck.net/test/displayinli...

Can I display a wiki inside a web part?

If you include the default wiki web part on a page it just shows the names of the articles. I'm looking for a way to actually embed the nicely formated wiki data inside a web part. TIA, Robert ...

How can I find out the current color depth of a machine running vista/w7?

Hi! I want to check the current color depth of the OS to warn users if they try to run my application with a "wrong" color depth (using c++ & Qt). I guess there's a win api call to get this information, but I couldn't find anything... Thaks for any hint, Hannes ...

Display String Tokens

I have String tokens separated by $$ which are list of particulars which are further separated by comma (e.g. Peter Adams,255 Jhonson Street, NY,74322 $$ Mary Luther,54 Eglinton Ave.,Mississauga,ON L5A1W6) I want to display above in following way Name : Peter Adams Addr :255 Jhonson Street City : NY Pincode :74322 Name : Mary Luther A...

Attribute localization using jQuery

Hi, I have a javascript page which I am looking at localising. I have the translation handled, however one thing I am having difficulty with is the best way to handle which text to set. Obviously, for a button I should set the title / value. For a span probably the innerHTML / innerTEXT and for an image the alt. I was wondering if ...

Detect multiple monitors and set separate wallpapers for each

I'm starting a project to make a wall paper rotator for computers with multiple monitors. 1) how do you detect the monitors in windows and the associated resolution 2) how would i set the image per monitor. do I make one image that's crafted together or do I set each one individually and how? thanks ...

Blank text editor in Vis Studio

I have just installed VS 2005. I created a project. I added code to the project and then debugged the code. The program ran ok. I save the project. Everything saves fine. I go to open the project and the text editor is blank, or so it appears. After further investigation I notice that the code is there but I just can't see it. I ...

Waterfall display

Hi, I need help in creating a waterfall display of my image data stored in a buffer. The stream of image data needs to be displayed scrolling down the screen as its being acquired from the camera. I am using visual studio c++ windows forms. Can someone please help me to figure out how to achieve this display? Thanks in advance ...