|
I need to change a few values in a couple of FITs image headers to fit with some test data I have. Therefore I'm trying to hack a FITs image header at the minute to run with the application.
However at the minute - I can't even see the header, never mind...
Started by theEconomist on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
FITS ....
FitsLib - A library for reading and manipulating FITS files on the Microsoft's .Net platform.
There are a number of different packages libraries that should meet your needs .
To read and display the data from the FITS file.
|
|
The scenario is trying to adjust font size to get a nice graphic arrangement, or trying to decide where to break a caption/subtitle. a) In XL VBA is there a way to find out whether a text on a textbox, or caption on a label, still fits the control? b)...
Started by jpinto3912 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The simplest approach may be to make a slightly conservative estimate... .
I'm sure there is no way to do this with the ordinary Excel controls on the Forms toolbar, not least because (as I understand it) they are simply drawings and not full Windows controls .
|
|
I am now facing a problem with getting a string that fits the provided width in pixels.
For example, if I have a sentence like this (in JavaScript):
var mystring = "This is my sentence, I need to get just 50 pixels from it."
If I use the MeasureString...
Started by pang on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can approximate the width....
You can't just take a width for each char and add them together .
Given the intricacies of text rendering, I believe that's the best you can do .
Using a binary search for the optimal length it shouldn't take many iterations .
|
Ask your Facebook Friends
|
The problem here is I have a display window of size x by y, and I need to display an image inside the window without any scrolling, and to maintain the aspect ratio of 4:3. I have the following snippet of code:
// Lock the current height, calculate new...
Started by Extrakun on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
ScaleFactorHeight)
or (if you want outer-fit)
scale = max(scaleFactorWidth, scaleFactorHeight)
Find the largest would need to be 4:3
struct dimensions resize_to_fit_in(struct dimensions a, struct dimensions b.
|
|
I will be building a set of applications. One of these apps is unattended application (written in VB6) which will write data it receives from various sources to a local database. All the other applications (will be written in VS 2008/c# 3.0) will read...
Started by AngryHacker on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
Make sure you check out all the available wrappers as well .
SQLite might just fit the bill.
|
|
I been working the whole week to troubleshot a production error.
I have eventually got the the point where I can find the culprit record which is causing all the mess.
I've got the following error message:
java.sql.SQLException: [BEA][Oracle JDBC Driver...
Started by Oscar Reyes on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It won't fit - 10,385,274,000.
Anything to check for if you want to validate the value before inserting .
Your number has 11 digits and thus the value is to large to fit.
Up to 10 characters long.
|
|
I'm planning to start on a new project and am looking at the current state-of-the-art Java web frameworks. I decided to build my application around Guice, and am likely to use a very lightweight ORM like Squill/JEQUEL/JaQu or similar, but I can't decide...
Started by Jevgeni Kabanov on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Unlike others.
Clear seperation of html api is reasonable compact (all core classes fit in a single jpg on my screen).
So all configuration is done in java - which fits the guice model well.
|
|
What is the best way to truncate a URL when displaying it within a web page? I don't mean a link but literally displaying the URL as a value to the user, assuming that the text might be in a container of fixed width and you don't want to wrap or run outside...
Started by Tom Martin on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Of this page:
http://stackoverflow.com/questions/206899/whats-the-best-way-to-truncate-a-url-so-that-it-fits.
|
|
Given a Unicode string and these requirements:
The string be encoded into some byte-sequence format (e.g. UTF-8 or JSON unicode escape) The encoded string has a maximum length For example, the iPhone push service requires JSON encoding with a maximum ...
Started by jhs on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I truncated to 103 because.
String is back in Unicode but guaranteed to fit within the JSON packet later.
|
|
I'm in the process of designing part of my companies architecture for its JEE web applications. I'm pretty clear on the reasons to use a façade and one or more DAOs. The problem I have is this:
There will be some logic that definitely belongs in the integration...
Started by James Watt on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
When modifications....
The controller will look after the DAOs and present a consistent view (don't think in terms of GUIs, burt rather some client-facing interface) .
It sounds to me like you may be missing a controller, and consequently may need the MVC pattern .
|