resources

C# Query a remote computer for resource usage (i.e. cpu load, ram usage)

Is there some simple way to send out a ping-style message to a remote PC and get back some general facts/figures about the PC in C#? I'd be mostly interested in CPU Load, RAM usage, current running processes, etc. but the more information the merrier (extra info like CPU specs would be cool)! I imagine in an ideal situation it'd be as ...

How to dynamically load and switch the resource file in the web app (ASP.NET) without recompiling ?

I would like to store the resource files (containing texts for labels etc.) for my web application in the database to be able to edit and create them dynamically later (probably in the UI). My idea was to store the whole resx file in an xml column and simply load it on demand - depending on the language and some other attributes of the c...

Accessing resources in Xaml across projects/dlls

Is it possible to reference Xaml assets stored in a ResourceDictionary (build action = resource) from another project? I would like to either merge the assets into the main project's resource dictionary or access them individual. For example: Project "MyResources" contains a folder named "Assets" which has a ResourceDictionary called...

define animations and triggers as reusable resource?

Is there a way to define an animation somewhere in xaml (eg. as a resource) once and then reuse it multiple times? I have a lot of independent brushes across differnt datatemplates that independently need to start the same kind of animation based on a datatrigger. Now since it seems that an animation has to define an Storyboard.TargetNam...

Platform independant resource management

Hi, I'm looking for a way to embed text files in my binaries (like windows resource system). I need something thats also platform independant (works in windows and linux). I found qt resource management to be what I need but Im not keen on my app depending on qt for this alone. I also found this tool at http://www.taniwha.com/~paul/res/...

How to protect PE file resources(string,image....) ?

Hi: I need any method to protect pe file resources form editing and thank you very much.. editing like: 1) open pe file as binary file and search about a string then edit it. or 2) edit assembly code like "jne"(jumb if not equal) to "je"(jumb if equal) **best regards** ...

Microsoft WPF ribbon - how can I add a RibbonTab stored in a Resources.xaml file?

I have a RibbonTab defined in a Resource file (xaml resources) and i need to add it to the ribbon's tabs collection. How do i do that? (In xaml) The Ribbon in xaml is something like that: <Ribbon> <Ribbon.Tabs><Ribbon.Tabs/> </Ribbon> So it holds a collection of tabs, i don't know how to insert a tab stored in the static resour...

Can you provide information or links that discuss using resource state over session or DB state?

There is a talk here by Stefan Tilkov, where he is describing REST architecture at its core. I haven't watched all of it, but in the portion where he talks about the 5 Principles of REST (slides 12-19) he mentions maintaining state through the resource (i.e. -- the URI). His example is a shopping cart. Usually the state of your shopping ...

Programmatic resource monitoring per process in Linux

Hi, I want to know if there is an efficient solution to monitor a process resource consumption (cpu, memory, network bandwidth) in Linux. I want to write a daemon in C++ that does this monitoring for some given PIDs. From what I know, the classic solution is to periodically read the information from /proc, but this doesn't seem the most...

Casting .resx classes to obtain ResourceSet

Hello, I am trying to populate a dropdownlist with data pulled from a .resx file. Instead of having 5 different functions I'd like to be able to pass in the name of the .resx file and cast it somehow so I can retrieve it using GetReourceSet. Here's what I'm currently doing: protected void populateCountryPickList(DropDownList whatDropD...

Use Resource String as ToolStripMenuItem Text during design time?

I have a simple form with a toolstripmenu control that contains various toolstripmenuitems and the strings that I want to use for the menu items' text are stored in a Resources.resx file. What's the best way to associate the menu item with the menu strings? I'm using C# and VS2008 so I'm hoping that there's a way of doing this at des...

Delphi data structures

I maybe need to do a project in Delphi and are a beginner in that field. Currently, I am searching the net for ressources and get confused because there are so few resource sites. First of: can you give me some good websites with resources for Delphi I missed so far? I was also searching for data structures in Delphi and was wondering ...

vb.net: Get to resources of a referenced project

I have a project which contains all custom controls and images; we'll call it projectBase. Now I have created a windows forms project (project1) that references projectBase. I need to access the embedded resource (images) of projectBase in project1. Any idea how i can pull this off? ...

JBoss: @Resource not injected when classloader isolation enabled

Hello, JBoss 4.2.3, an application deployed as a ear. Works. Then I enable classloader isolation by adding a loader-repository tag into jboss-app.xml. In multiple beans @Resource TimerService stops being injected and the code throws NullPointerException. What could possibly be the reason of such behavior? I have no clue. Thanks, Artem...

problems with initializing video preview and releasing resources on Android

Hi, I am trying to solve the problem with initializing video preview and releasing resources when the application exits. in onResume() the following methods are executed: holder.addCallback(surfaceCallback); holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); and in onPause() the following method is called: holder.removeCallba...

Writing compilers ... what's right and what's wrong?

Okay, in my quest to figure out the necessary stuff to write a compiler, I've reached a bit of a roadblock. It seems that every technology or tool that I find has some opposition somewhere. I use Bison and Flex right now but I'm getting the feeling that this method is outdated. Is this true? Is this a good forward-compatible way to p...

C# - Get number of references to object.

I'm trying to write a simple Resource Manager for the little hobby game I'm writing. One of the tasks that this resource manager needs to do is unloading unused resources. I can think of doing this in two ways: When an object no longer requires a reference to the resource, it must call a method of the Resource Manager to signify it is ...

Problem with displaying/updating drawable resources

Hi, I have created a method updateGUI() which include the following method calls: if (settings.isMute()) { muteIcon.setIconImage(R.drawable.ic_volume_off_small); } else { muteIcon.setIconImage(R.drawable.ic_volume_small); } Where setIconImage() is defined the following way: public void setIconImage(int imageF...

resources on creating a windows service using c#

does anyone knows any good resources and articles that can explain how to create windows services using c#. thanks ...

Python: ulimit and nice for subprocess.call / subprocess.popen ?

I need to limit the amount of time and cpu taken by external command line apps I spawn from a python process using subprocess.call , mainly because sometimes the spawned process gets stuck and pins the cpu at 99%. nice and ulimit seem like reasonable ways to do this, but I'm not sure how they'd interact with subprocess. The limits lo...