resources

making a python object unsable after a finalize-type call

I have a python object which wraps a sensitive and important resource on the system. I have a cleanup() function which safely releases various locks used by the object. I want to make sure that after a call to cleanup() the object becomes unusable. Ideally, any call to any member function of the object would raises an exception. Is the...

Android ImageButton - determine what resource is currently set

Is there a way I can find what resource a particular ImageButton is set to, at any given time? For eg: I have an ImageButton that I set to R.drawable.btn_on onCreate. Later, at some point, the ImageButton gets set to R.drawable.btn_off. I want to be able to check what resource the ImageButton is set to in my code. Thanks Chris ...

how to map sharepoint mapped resource folder to app_globalResources folder in VS 2010 ??

how to map sharepoint mapped resource folder to app_globalResources folder in VS 2010 ?? ...

Any good resource for learning both JEE *and* J2EE simultaneously?

I am looking for a good resource that teaches JEE while also explaining how the same code, concept, and 'mindset' would have been handled in the older, J2EE era. I need the material to cover all the API and developer-architect mindsets that have (significantly) changed in JEE, with EJB and Persistence being two that I know of. Does ther...

How can I embed gettext po files inside an executable and bind them at runtime?

Hi, I am writing a program that uses get text, and would like to distribute it without the po files. The embedding part is easy, but i could not find a way to bind the catalog from memory. Any help appreciated! Jon. ...

(Android) Passing Resources/activities with intent

I have a fully functioning program that worked. However it had two dialogs that I know I'll be reusing every time I write a program, or potentially multiple times per program. They are a EULA and an info page. So I've moved the two activities to their own project, however I don't want to have a standard EULA and info page obviously. ...

SQL Server trace - translating PAGE information to actual resource

I am researching deadlocks that are happening in our application. I turned trace on for 1204, 1205 and 3605. I got the deadlock trace alright. But I am unable to figure out the resource it is deadlocking on. I have read many forums and they all say that the trace should contain something called a KEY/RID which would point to the resource...

WinForms UserControl image resource

I am developing a user control and want to save an image as a part of that control. I added the image to the control resource, but I can not access the image using code (like Properties.Resources.etc) Any tips? ...

How to reference an icon resource file reference in XAML

Hi Folks I'm trying to get a button to display an icon in XAML. Initially I wanted to paste a character instead, but vb Express 2008 would not recognise it being a symbol as it is not a regular character. Then I created an icon and tried to set the button image property to reference it, but this does not exist, so more misery. Now I've ...

Resources for playing with my landline phone ?

I have few projects ideas that involve plugging a computer or an arduino to my landline phone (or just before it). For example, I would like to grab the caller ID sent when someone calls, do a lookup on the web or in an address book, and display the associated name on a LED screen. The problem is that I can't find any resources on the p...

What is the best free/paid C++ Video Training resource out there?

Hello, I'm a .NET Developer, primarily using c#, asp.net mvc, entity framework and programming for the Web. I want to know what you guys recommend to get a quick startup in learning c++. My biggest worries are pointers, memory management and other languages differences between managed and native languages. I want to know if there is some...

Putting Styles on controls inside a Grid style

I want' to define that every control of specific type inisde a grid gets a Style. This is easy just put the styles with TargetType inside the grid resources. But what then if I wan't to reuse this grid as a style? I can create a grid style and have a setter to resources but can only put one style there. <Style x:Key="GridStyle" TargetT...

Maven properties in gwt.xml

How do I use a Maven properties from pom.xml in my.gwt.xml? ...

Is there a way to re-use Styles for Shapes in Silverlight 4?

I'm trying to create a resource Style for a Path (Shape), however, when creating several Paths that use the Style, only the first one is rendered. //In resources xaml <clr:String x:Key="path">M 50,50 L 35,15 A 8,10 0 0 1 65,15z</clr:String> <Style TargetType="Path" x:Key="pathStyle"> <Setter Property="Stroke" Value="Black"> </Style...

Print Button inside DataTemplate? How to write code

Hi, I have a ContentControl element whose ContentTemplate is determined at run time from the Resource Dictionary. In the datatemplate I have a visual (Convas) and what I want is to also have a button in datatemplate which when clicked should print the visual element(canvas). As I said that the DateTemplate is inside the Resource Diction...

good knowledge and news resources

Possible Duplicate: What are the best RSS feeds for programmers/developers? Hello, Could You please give me good resources like(podcsats, blogs, news, etc.) about software development and it news specially in Microsoft technology but no only. Good resource to improve skills by reading daily maybe once a few days. I know cha...

translate rails namespaces

Hi, lets say i have the following resource map.namespace :admin do |a| a.resources :users end to access the users index action I would have to type /admin/users How can I translate this route to different languages? map.namespace :admin do |a| a.resources :users, :as => ipsum end would result in /admin/ipsum How can i c...

ResX files and extra application layer...

Hello, we are making an web application using some big asp.net web toolkit. At the beginning we created a lot of base classes such as commands and server controls to make our work easier. Now when we built our application using this we decided to biuld another one. To not copy all our work, and not making it from scratch we decided to...

Borrowing resources from another assembly

Hi.. I have project with my resources (resx files), and I want to use them as App_GlobalResources in another assembly which is asp.net project. Now I've tried to click on Add > Existing Item > Add as link, and despite the files are visible int this folder, they are missing on the runtime and i see info that the application cannot find...

How to deploy files with a clickonce application?

I have some files, sound files (.wav and .mp3) and text files (.rtf), in my bin\Debug folder during coding, but after publishing they are nowhere to be found. My application can play sound files and these are the default sound files that are supposed to be installed with the application in the Application.Startup path. The text *.rtf f...