display

Is it possible to specify the display dimensions of a directly linked .swf?

Directly-linked .swf files, i.e not embedded in a web page, seem to render at 100% of the browser window size. Is it possible to specify in the .swf file itself dimensions for the .swf to display at? Thanks all, Richard. ...

Swing component prints text differently than it displays it

I am printing a Swing component that contains text. The Swing component renders the text just fine on the screen, but, when I print it (to a .tif file), the characters are all smashed together. Why is this? Run this code to see what I mean: import javax.swing.*; import javax.swing.text.MutableAttributeSet; import javax.swing.text.Sim...

jQuery plugin show image

I generate a HTML page with the links to images from a directory. First I was thinking to load/display all the images and then to hide them using jQuery .hide() When a user will click to a image I'll display that image, but I hope you can offer me a better approach. It's possible to load/show a image, only when the user clicks to a li...

Batch File Display Startup Items

Hey guys Just wonderin' if anyone here knows how to display startup items from within a batch file? ...

Displaying lines from text file in a batch file

Hi I'm tryin' to find a script that will let me display "linenumber# and linenumber# as well as lines#-#" from a text file in a batch file? I found this script here on this site.. @echo off setlocal enabledelayedexpansion if [%1] == [] goto usage if [%2] == [] goto usage SET /a counter=0 for /f "usebackq delims=" %%a in (%2) do ( if "...

Where are displays other than ":0"?

X Power Tools -book has a sentence about ":0": Display 0 on the local computer, connected by a local connection scheme I tried to open a clock by "xclock -display :2", but I got an error: Can't open display: :2 How am I supposed to program if I cannot get displays working? Can you really do everything on it? How can you ru...

Updating display order of multiple MySQL rows in one or very few queries

I have a table with say 20 rows each with a number for display order (1-20). SELECT * FROM `mytable` ORDER BY `display_order` DESC; From an admin area you can drag the rows around or type a new number manually for each row. Surely it's not good to loop over an UPDATE query for every row, what's an alternative in one or very few queri...

Do all developers consider monitor quality (colors, not resolution) to be irrelevant?

I especially hear it from those advocates of "business" notebooks manufactured by IBM/Lenovo, HP, Dell (maybe) that "business users do not need quality screens". They stick in the worst possible LCDs out there (even if with a high resolution) and dare to sell that crap. You can't even distinguish hue variations like light-yellow vs. ligh...

Help needed in figuring out validation and display issues !!

Hi all, I am developing a website for a friend which was earlier developed by some other guy, basically i am a php pro and dont ve much experience in html (or untill now) ... now, i am trying to validate my webpage, earlier it was showing 162 errors, i ve brought it down to 1 error (thankyou) ... ha ha earlier with 162 errors, it was ...

Jquery: How do I set a hidden element to display when another element is in focus?

Hi! I'm trying to display contextual help alongside form fields, that is only visible when those fields are in focus or hovered over. I've tried using mere CSS, but the results seem very fragile and inconsistent. Here is my CSS: form .instruct { position: absolute; right: -220px; top: 10px; visibility: hidden; width: 200px; z-ind...

Asp.net Webform Display Alert and redirect.

Hi all, I'm currently stuck. I have a webform with a button that registers or saves a record. What i'd like to is have it display a javascript alert and then redirect to a page. Here is the code i am using protected void Save(..) { // Do save stuff DisplayAlert("The changes were saved Successfully"); Response.Redirect("D...

How can I specify a display?

When I run some programs over SSH, such as "firefox &", I get an error Error: no display specified I would like open many displays, still showing the stdout of each program. Initial Question: How can I can specify the display to get a many-displayed program? Pablo Santa Cruz gives me the following code as a solution. I do not...

how to put link as an additional column in display tag to redirect it to action class of struts2

i am displaying a object detail through display tag. now i want a link in page through which user can delete or edit that particular record so i want a link which has object id as value and pass it to action class. or any other way so that i can delete or edit perticular record thank in advance ...

Display PDF in Browser

Hi, I'm using tag to display PDF in browser. We have some top navigation tabs. When the user click on a tab the pdf has to be displayed in the page. The issue is when I click on the tab, I'm not able to see the other tabs. This issue is no t there in Firefox. Can someone please help me. ...

Open-source US- state status display

I was wondering if anyone knew of an Open-source project for displaying numbers for the US states. Specifically, you always see these graphics with California in dark grey, Montana in green, etc. Based on some sort of criteria. I'm thinking of building one for a site I maintain, but I was hoping I might not have to reinvent the wheel....

How can display driver version be obtained on the Mac?

How can the display driver version be programatically obtained on the Mac? Related: Programmatically get processor details from Mac OS X ...

Why won't Perl/Tk wipe my spreadsheet?

[cross posted again to Mahalo answers] My Perl/Tk script has an initial spreadsheet like grid displayed using the Tk::TableMatrix::Spreadsheet modules. My spreadsheet is programatically called $ss. This initial grid is wiped before the display of the first spreadsheet, with $ss->pack('forget'); The script as it is now also adds $mw-...

[WPF] Calculating number of visible items in ListBox

I have a class called Book; class Book { public string Name { get; set; } public string Author { get; set; } public int PagesCount { get; set; } public int Category { get; set; } } The ListBox displays a list of Books and the ItemTemplate has been modified so as to visually represent the Book. The text shows the book's Name, autho...

Move window from second screen to the main when the second screen is not visable

I use a VPN and Windows remote desktop to log onto my work computer, running Windows XP, from home, running Windows Vista 64. I Check up on long running data processing tasks, integration tests, or do quick code fixes. The only problem is I sometimes forget to move all my important windows over to the main screen and I only have one disp...

A /dev/null equivilent for DISPLAY when the display is just noise.

I'm running a java app which creates a visual display of some of the things it is doing, while it is doing it. However, I'm want to run this in a script that won't have a display to attach to. In the current environment, there isn't even a DISPLAY environment variable set. I tried to simply set my DISPLAY to :0.0. But that doesn't exist....