I am trying to embed an icon into my my WPF application so that I can pull it out for use as an icon in the Window 7 JumpList using the following code:
newScene.IconResourcePath = System.Reflection.Assembly.GetEntryAssembly().Location;
newScene.IconResourceIndex = 0;
I've gotten it to work using the following method: http://dennisdel....
Hello,
I have developed an application which allows the user to switch between themes. I'm doing this by including the xaml file as a resource in my project and using the following code:
MainTheme.ThemeUri = new Uri("SilverlightApplication1;component/Themes/[ThemeName]/Theme.xaml", UriKind.Relative);
This worked well, untill I found ...
I'm using GlassFish v3. The following field is declared in a class:
@Resource
private javax.sql.DataSource _data_source;
The following is declared in web.xml:
<data-source>
<name>java:app/env/data</name>
<class-name>com.mysql.jdbc.Driver</class-name>
<server-name>localhost</server-name>
<port-number>3306</port-number> ...
This is quite obscure, I may just be missing something extremely simple.
Scenario 1
Lets say I create a gradient brush, like this in my <Window.Resources> section:
<LinearGradientBrush x:Key="GridRowSelectedBackBrushGradient" StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#404040" Offset="0.0" />
<GradientStop Color="#4...
Hello,
I have a test class that has a @Resource annotation for a setter and I need to make it Java 1.4 compliant, so obviously the annotation has to go. I'm using Spring.
So, how would I replace something like @Resource("my.resource") so that the setter gets the correct dependency injection? Would I need to make a bean in an xml file?
...
I'm working on an older project, updating it. Part of the program has a toolstrip with many buttons on it, each with an image. I found that the images are stored in a Base64 encoded imagestream in the resx for the form and accessed as such:
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentR...
how can i get the resource id of an image if i know its name (in android)
...
The following problem occurs on a machine running Ubuntu 10.04 with the 2.6.32-22-generic kernel: Setting a limit for the Resident Set Size (RSS) of a process does not seem to have any effect. I currently set the limit in Python with the following code:
import resource
# (100, 100) is the (soft, hard) limit. ~100kb.
resource.setrlimit(r...
Hi all,
I'm using resources in VB.NET(2008) to manage my files and have 3 icon files that need to be on 3 buttons on my form (clicking the button changes the icon of the form tot the pressed button)
ICO_1.ico
ICO_2.ico
ICO_3.ico
but when I try the code below i get the error that "Value of type system.drawing.icon cannot be converte...
First, 2 common (basic) approaches:
# returning from some FoosController method
respond_to do |format|
# 1. render the javascript directly
format.js { render :json => @foo.to_json }
# 2. render the default template, say update.js.erb
format.js { render }
end
# in update.js.erb
$('#foo').html("<%= escape_javascript(render(@foo)...
InputStream is = this.getClass().getResourceAsStream("/ParseExample/service1.xml");
The code above generates a java.io.IOException: Root is not accessible.
This is the structure of the project folder
http://www.fileden.com/files/2010/5/28/2872707//projectfiles.JPG
How can I properly locate the file? What path should be used?
...
I'm searching for a tool, ant-task, IDE plugin, ... which helps with I18N of a
Java application using the standard message-properties resource bundles. Both
open source and commercial solutions are welcome.
Specifically I'm searching for support in the following tasks:
1) Extract the used keys from Java-code, JSPs and other artifacts...
I tried something like this:
var attrs = typeof(System.Windows.Controls.ComboBox).GetCustomAttributes(typeof(System.Drawing.ToolboxBitmapAttribute), true);
...but attrs is empty collection. I also tried to look up for icons resources in assemblies and nothing found.
...
I created OCUnit test in concordance with "iPhone Development Guide". Here is the class I want to test:
// myClass.h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface myClass : NSObject {
UIImage *image;
}
@property (readonly) UIImage *image;
- (id)initWithIndex:(NSUInteger)aIndex;
@end
// myClass.m
#import "my...
I have created a custom Treeview control and am trying to access the HierarchicalDataTemplate resource of this control from another page in the same project.
my this.sceneTemplate property is coming up null. I have looped through all the objects in the dictionary and it does exist.
How can I access this template?
Thanks
App.xaml
<A...
I recently found out that I will be part of a project that will use Silverlight. Since I will be doing interface design for this application I was wondering if I could get help with some tips & resources.
So what are the tips that you wish you had gotten when you started with Silverlight?
And what resources have you found valuable for ...
I am trying to determine if it is possible to add a concatenated string to one of my local .resx files. This example should clarify:
Let's say I have a simple ASP.NET webpage composed of (1) a label whose text is an important keyword (2) an input with required field validation and (3) a button that causes validation to occur:
(lblMyInp...
I'm a Drupal developer about to start teaching a class at a community organization. The class will focus on basic Internet literacy, and provide hands-on experience with a couple of open source content management systems.
We're going to have a highly diverse group of 6+ students, from high school students to musicians to fledgling pro...
Hello everyone.
I seem to be having a problem with associating a problem marker with a resource; in my case, I'm trying to create a problem marker for the editor.
To achieve this, I've tried to do the following:
public class MyEditor extends TextEditor{
private ColorManager colorManager;
public MyEditor() {
super();
...
In REST based architectures what's the difference between a resource and a method. Is there one?
...