Hi,
I am trying to display images using an HTML page created by a servlet.
I am using Jetty 6.18 as the web server.
The problem is I'm not sure where to store the image files and how to register them (if needed), since the HTML returned to the client is generated by a servlet.
Let's say I want to write a tag <img src="what_to_write_h...
Hey,
Sorry if this is a dumb question. I'm an amateur programmer and new to Android, though I've prided myself on not having to bother anyone for help until this point.
The problem I'm having is that my program randomly seems to hang on startup. It doesn't happen all the time, and when does happen, it sometimes unfreezes within severa...
We have a WCF service which will be accessed from outside systems. Under certain conditions, we want our responses to include some descriptive text. Because the calling system isn't under our control, we need to return the text itself, not an error_code or similar abstraction. The text we return needs to be human-readable, and it must...
How can I get a named resource from ControlTemplate in a code-behind file (*.xaml.cs)? TryFindResource returns null. Template property of the control is also null. What else should I try?
Thanks.
...
I would like to download an English dictionary -- not just a word list -- in a structured format such as TXT, XML, or SQL.
Specifically, I need phonetic pronunciation and parts of speech (definition is not required).
Surprisingly, I can't find this online anywhere. Wiktionary is available for download, but it is only the MediaWiki art...
I have been working on the iPhone development for three months now. I have a fairly decent understanding of Objective-C and iOS, but I have been putting Interface Builder on the back burner.
I am looking for resources, preferably non-video as well as video (as my Internet connection is very slow)
What's my best path to getting a han...
Hi everyone!
I was just wondering what are the pros and cons of using embedded images instead of dynamic loading? Because when making games on pure AS3 (without Flash IDE), its a pain to manually embed all the assets needed... That makes your code sloppy, besides you don't have control to automatically change the hud, for example, by on...
Hello,
I'm looking for a ready-to-use piece of code that would be able to read and modify Delphi .res files. The thing is that I need to create an application that will be compiling many Delphi projects at once (using the dcc32.exe file). However, it is necessary for me to change file version and language before compilation, and as far a...
I need to extract the resources from a .NET application to a location on my hard drive. How can I do this?
eg.
I have a exe file in my c# resources and i want to copy the resource file to my harddrive programaticaly.
...
I'm a developer working in a small team with another developer and a QA who is split across 5 projects and I've recently been given the title of Scrum Master. I've a few questions/issues which I was wondering if I could get a hand with:
I've not found any good central place for information on my new role, can anyone point me in the ri...
I'd like to parse through XML files with java - ok, easy. It would be REALLY nice if I could use an XML file that I've created within a folder inside my same Eclipse project (let's call it the "resources" folder). Due to issues with version control, multiple development platforms, and general simplicity, it would be VERY, VERY nice to ha...
I have jar with files:
myJar/res/endingRule.txt
myJar/wordcalculator/merger/Marge.class
In Marge.java I have code:
private static final String ENDINGS_FILE_NAME = "res/endingRule.txt";
....
InputStream inputStream = getClass().getClassLoader().getResourceAsStream(ENDINGS_FILE_NAME);
.....
But after this inputStream is null. How to...
Hello,
I have a basic executable JAR with manifest.txt containg the MainClass and some other jar dependencies.
I wanted to move my config file, "application.properties" outside the jar into a directory where it's easy to configure/maintain. The java code does a simple ResourceBundle.getBundle('application.props') to load it.
I have a...
I was looking for a method of implementing a custom resource file system for a while now (googling "c++ custom resource file" doesn't give much of anything) and I stumbled across a book online describing EXACTLY what I was looking for down to every last detail.
It talks in depth about the iPac system, but I have not been able to find an...
Hey,
I'm a newcomer to using C++ but have got a general Idea of its syntax and useability. I want to learn how to communicate over networks through C++ programming though but I can't seem to find any tutorials for C++ specifically.
Does anyone know any good resources to learn about networking with C++ or what I should start with?
Thanks...
Hi,
I have 3 bitmap images each of around 28-30 MB. My application needs to access pixels from these images frequently.
Currently I am creating BitmapData of all 3 files, locking them and then reading all the pixels in 3 different byte[]'s. Following is the code for one image:
System.Drawing.Imaging.BitmapData bmpData = result.LockBits...
Hello,
I have a project I am working on with Qt Creator and I'm trying to get it to add my resource files to my build directories (output) automatically. I have the files in the project directory, but I don't know how to edit the *.pro file to make it include additional content files. (If that is even possible?)
Does anyone know how to...
Hi,
We have a silverlight project; all the text messages are located in a .resx resource file. Since the project has a long history and there were a lot of changes, many strings are orphaned (no longer in use).
Now we are going to translate the project into several languages and I do not want to waste the money on unused text translat...
I have a a WPF prism desktop app with a few modules. In the past I've put all my localized resources in common resource files in the infrastructure assembly and referenced it in all modules.
But lately I have been wondering if that is indeed the right approach from a maintainence perspective. In essence it also sort of breaks modularit...
I am using stylesheets in QT to skin several buttons with images from the QT resource system:
QFrame#DialogButtonTitle_SaveAsNew
{
background-image: url(images:DialogButtonTitle_SaveAsNew.png);
}
This works great, but I would really like to write a warning to our logs if the image file could not be found (and the button is thus nake...