Coming from C/C++ a long time ago I still have a habit of ensuring that all resources are cleaned up correctly. I always ensure Dispose is called on IDisposable classes and implement Dispose patterns in my classes containing disposable objects.
However, in my environment I'm more or less the only one doing this. Others just don't unders...
I am currently using [[NSBundle mainBundle] resourcePath]. Is there a different way to do this?
...
I recently came across a forum post in the android developers group. (link below)
http://groups.google.com/group/android-developers/browse_thread/thread/ef3bdebcb715b385
It has one post which contains following xml. It is xml file which can be used in drawable folder.
<selector xmlns:android="http://schemas.android.com/apk/res/andro...
I want to build a URL at runtime when a resource is render to either XML or JSON. I can do this easily when the view is HTML and is rendering only parts of the resource, but when I render a resource that contains a links to another resource I want to dynamically generate the correct URL according the host (site) and resource specific URI...
I'd like to use different row descriptors (from the XML layout resource) in one ListView. Can I and how?
Also, I'd like to be able to programmatically change the size of the rows, based on the data in each row, in a ListView. Can I and how?
Thank you in advance--I LOVE stackoverflow.
M
...
I'm trying to get the source of a java resource stored in an oracle database using this code (connecting as SYSTEM for testing):
DECLARE
javalob CLOB;
BEGIN
DBMS_LOB.CREATETEMPORARY(javalob, false);
DBMS_JAVA.EXPORT_RESOURCE('RESOURCENAME', 'SCHEMA', javalob);
DBMS_OUTPUT.PUT_LINE(javalob);
END;
But when I try to run i...
I have a dozen configuration properties files for the ant script. These files are used for a customer customization. For example ant should rename *temp_context.xml* to *customer_name_context.xml* where *customer_name* is a property in the conf. file.
Now I would like to reuse the same files in the Maven project.
<plugin>
<groupId>o...
Hello,
I made some changes with chart (WPF toolkit) component at the MS Blend 3.
A lot of stuff like this:
<Style x:Key="BoardsLineDataPointStyle" TargetType="{x:Type chartingToolkit:LineDataPoint}">
<Setter Property="Background" Value="Orange"/>
<Setter Property="Width" Value="{Binding Mode=OneWay, Path=Value}"/>
<Setter Property="Te...
I am using Visual Studio 2010 RC1.
I define a resource "Brush2" in app.xaml_:
<Application x:Class="VideoThumbnails.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources...
Eclipse is complaining about my Android project saying all my references to resources are unresolved, even though R.java does exist. For example:
signin_btn=(Button)findViewById(R.id.signin_btn); signin_btn.setOnClickListener(this);
I definately have signin_btn defined in my resources. Dont know why Eclipse is not seeing my R class any...
I have a .NET solution with a couple of projects. The output is a WPF application. Now I would like to put my binary resources (images/icons) in a single project/assembly in this solution, so that all my other projects in can use them.
My question is how I can do that? What type of project should I create and how should I reference thes...
Hello,
My exe processes text documents and I want to be able to right click on documents, select open with and point to my exe file. I can double click on my exe and choose a file to process with OpenFileDialog and it works fine. However, when I do open with, I get FileNotFound error.
Here is the error log:
System.IO.FileNotFoundExcep...
I have what seems like a simple problem. I have a Spring web app, deployed in Tomcat. In a service class I want to be able to write a new file to a directory called graphs just under my application root:
/
/WEB-INF
/graphs/
/css/
/javascript/
My service class is a Spring bean, but I don't have direct access to ServletCon...
I'm struggling with multi-threaded programming...
I have an application that talks to an external device via a CAN to USB
module. I've got the application talking on the CAN bus just fine, but
there is a requirement for the application to transmit a "heartbeat"
message every second.
This sounds like a perfect time to use threads, so I ...
Imagine that I have a several Viewer component that are used for displaying text and they have few modes that user can switch (different font presets for viewing text/binary/hex).
What would be the best approach for managing shared objects - for example fonts, find dialog, etc? I figured that static class with lazily initialized objects...
I have a custom Dialog that contains only a TextView to display some text in my application. The documentation lists that only the b, i, u, tt, big, small, sup, sub, and strike tags are supported. I really need to add some newlines for readability. Do I need to change to a more complicated layout, or is there some way to encode newlin...
Hi,
I'm looking for a user interface for a MediaPlayer which should be able to play video as well as audio files.
Furthermore it needs the following things (nothing fancy):
TextView for playing time
Progress Bar for progress visulization
Play/Pause/Stop buttons
NO playlist functionality required, the player will only play a single i...
In our application, we have a collection of data items, each with a DisplayedName property. This property should be localized, i.e. it should be displayed in the language selected by the user. Therefore, another property, DisplayedNameResourceKey, specifies which resource should be returned by the DisplayedName property.
In simplified c...
We are going to begin implementing a web service that will be hosted on a DMZ server. This web server will post data to a SQL server and we're trying to determine the best methodology to handle this. Things that concern us are web service authentication, SOAP, and whether or not to store the database on the DMZ or the local network. This...
Windows resources have a FileVersion and a ProductVersion.
In native development environment(eg. Win32 app, device driver)
How do you manage the ProductVerion automatically?
My language is c/c++. And I use Visual Studio 2008.
I want to increase the version automatically when I build my projects.
Is it possible?
I guess there is a sim...