Questions tagged [resources]

Assets (like memory, disk space, CPU power or alike) necessary for effective operation or physical files (like images, configuration files or other) to provide some externalized enrichment to an application.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Ressource editor in IntellIJ doesn't show a references to class code

I opened this [github]https://github.com/00-Evan/shattered-pixel-dungeon) repository as project in Intellij, then i go to assets to resoursces, then i open text resource files .properties. This ...
Drained's user avatar
  • 11
0 votes
0 answers
11 views

Value matrix with weight matrix

I have two non square matrix say V and W of same size. First matrix (V) is the value matrix which tell the resource value of ith row for jth col in cell (ij) of matrix V. The ijth value of other ...
NP2P's user avatar
  • 13
0 votes
0 answers
24 views

Confusion about Resource loader, ClassLoader, inputStream, Loading and writing files in general

In one of my exercises, the text recommended to use the Resource loader, what is it? My researches pointed toward ClassLoader.getResources() and this.getClass().getResources(); I assume it's something ...
Edoardo S's user avatar
1 vote
0 answers
67 views

How can I identity query that use most DTU?

I'm not sure which are the most resource consumer on a DB I have on Azure (which is a Premium P2: 250 DTUs): The most, using this query: SELECT AVG(avg_cpu_percent) AS 'Average CPU Utilization ...
markzzz's user avatar
  • 47.6k
1 vote
1 answer
96 views

How can I add a custom font into my .NET console application?

I created a program to add a text on an image with a custom font "Lucida Calligraphy". I have added the font file into my solution folder. However, at runtime it does not reflect the font. ...
user3542501's user avatar
1 vote
1 answer
28 views

.Net SDK 6 (C#): String resources in a separate project not working

I've read many SO threads before posting to no avail, and I'm stuck. My solution consists in different projects under an hexagonal arquitecture, and I need to share string resources (translations) ...
Diego Perez's user avatar
  • 2,234
1 vote
1 answer
41 views

Trying to read files in /resources in karate and getting: could not find or read file

Read this: https://github.com/karatelabs/karate#reading-files It says how to set pom.xml for restricting classpath to not read /resources. Can i know what should be the pom.xml for classpath to read ...
Nagulan S's user avatar
  • 763
0 votes
2 answers
35 views

Snakemake, slurm and memory

I am struggling to understand how snakemake submits jobs to slurm. When I have a basic slurm sbatch script I usually add a line, such as #SBATCH --mem=5G to determine that slurm may use 5 gigabytes (...
Laura's user avatar
  • 3
0 votes
2 answers
82 views

Add 'resource' file to a C++ visual studio project

I am on Visual Studio 2022, and I have a project built with a C++ code. The code looks for a data file "C:/MyData/data.dat", and the absolute path "C:/MyData/data.dat" is written ...
James's user avatar
  • 383
1 vote
1 answer
68 views

How to serve uploaded Images from external Folder with Vaadin?

Dear all I am using Vaadin v24 and created an upload feature for images. I know how to read and serve single images by using Vaadin Resource Classes, but I am wondering how I can configure the Vaadin ...
megloff's user avatar
  • 1,440
0 votes
1 answer
32 views

Android change app language not working in Play Store version, but release build is ok

I implemented the in app language change by this comment: https://stackoverflow.com/a/75234169 I tested on some device and emulators and worked all of them, debug and release build also. I created the ...
Robertoq's user avatar
  • 559
0 votes
1 answer
43 views

Passing an array of object to laravel api resource showing Attempt to read property "code" on array

I am building an API with laravel. I want to pass this array of object through and API resource so that I can display only code and name but I am getting error: Attempt to read property "code&...
etranz's user avatar
  • 1,041
0 votes
1 answer
13 views

Resource files generated by Maven plugin not readable from OSGi bundle

In my maven OSGi project, I use the maven-bundle-plugin to create my bundle jar. The git-commit-id-maven-plugin generates to target/git.properties by default, and they recommend to generate to /target/...
dschulten's user avatar
  • 3,024
0 votes
0 answers
20 views

error Illegal char <:> at index 42: com.em.app-mergeDebugResources-60:/values/values.xml, when implementation 'com.cometchat:chat-uikit-android:4.0.4'

Caused by: com.android.aaptcompiler.ResourceCompilationException: Failed to compile values resource issue whenever building app Caused by: com.android.aaptcompiler.ResourceCompilationException: Failed ...
Ranjeet Keshri's user avatar
-1 votes
0 answers
47 views

Why does my code get stuck while fetching a file resource?

I was trying to fetch a resource file in my application but it just gets stuck while attempting to fetch the file as a resource stream. Code: long start = System.currentTimeMillis(); ...
ProgrammingGeek11's user avatar
0 votes
0 answers
20 views

Should Docker Container's resource usage increase or decrease with vertical scaling?

If I increase the CPU or Memory Usage of Docker by let's say a core/memory every time it's run using this: docker run --rm --name application-name --cpus 6 application-name docker run --rm --name ...
John Cena's user avatar
0 votes
0 answers
49 views

Visual Studio 2022 XAML designer not showing images used as static resources

I'm trying to start a new WPF project using the VS resource file to handle images. I've made a window with a background image which is showing at runtime but I can't see it at design time. Since I ...
andboz's user avatar
  • 37
1 vote
1 answer
33 views

Closing resources with dependency injection

I have the following pseudocode: class Resource: """E.g. Session, connection, file, etc.""" async def open(self): pass async def close(self): ...
Bharel's user avatar
  • 24.3k
1 vote
1 answer
21 views

SLURM reported memory consumption

I'm trying to understand how much memory a simple job consumes (based on this python script). I run the same script on a single worker with different numbers of cores allocated. The results of this ...
Raphael's user avatar
  • 240
0 votes
1 answer
36 views

Getting resource file to MediaPlayer using string value java android?

I am playing audios in a recyclerview when I click on an icon here is my code: //Recyclerview onClickListener holder.icon_audio.setOnClickListener(new View.OnClickListener() { @...
Anti Atlas Dev's user avatar
0 votes
0 answers
37 views

ERROR: jetified-image-4.8.4\res\layout\com_adobe_image_alert_dialog_buttonbar_material.xml

Complete error is ERROR: C:\Users\Dell.gradle\caches\transforms-3\ef32469b5667299698f5486ff3ea2243\transformed\jetified-image-4.8.4\res\layout\com_adobe_image_alert_dialog_buttonbar_material.xml:18: ...
Muhammad Natiq's user avatar
0 votes
0 answers
16 views

Seize Block not able to grab Resource

I have a test model simulating a simple rail yard operations. I am trying to simulate two train operations competing for one resource (locomotive engine). The first 'seize' block is able to grab the ...
Arka Ghosh's user avatar
1 vote
0 answers
58 views

What is the most directest way to open() a resource file in a macOS (maybe also iOS) app? [closed]

So I want to open a texture file for mmap()ing in Objective-C: const int fd = open([[[NSBundle mainBundle] pathForResource:@"Texture" ofType:nil] UTF8String], O_RDONLY); I also have a Swift ...
user22200698's user avatar
1 vote
1 answer
44 views

How to include special characters like "-" in a resource path of a ballerina service

My requirement is to create an endpoint for /school/{student-id}. I tried the below code. service /school on new http:Listener(9000) { resource function get student/[string student\-id]() returns ...
LochanaJ's user avatar
1 vote
1 answer
32 views

What is the most resource intensive task within a script?

I currently am trying to reduce the loading time of my script by offloading tasks to libraries and functions as explained in the pinescript limitations documentation but wondered if someone here knew ...
MaxiC's user avatar
  • 21
0 votes
1 answer
110 views

How to see Openshift total available resources

I would like to see total available resources for namespace on openshift. I can see (and calculate) requested and limits for my pods, but how to see how much in total is available for specific ...
Pistol's user avatar
  • 1
0 votes
1 answer
32 views

Obtain s3 bucket information from s3_resource

I have a python program to obtain aws s3 bucket information from boto3.client: s3_client = boto3.client('s3') response = s3_client.list_buckets() # get bucket list bucket_location = s3_client....
Brian Mo's user avatar
1 vote
0 answers
57 views

Updating a specific resource in a .NET assembly without rebuilding the whole project

I'm working on a .NET project and have encountered a scenario where i need to update a specific resource in a satellite assembly for the Japanese('ja-JP') culture without rebuilding the entire project....
shubham shishodia's user avatar
0 votes
0 answers
16 views

Cannot edit and save DLL resources in Visual Studio

I try to open a resource DLL in Visual Studio 2010. The DLL contains a string table with Estonian strings. I then try to modify one of the string. And then try to save it. But always get an error: &...
alancc's user avatar
  • 343
8 votes
2 answers
13k views

Downloading from external resources is disabled in hibernate dtd

While I am trying to do hibernate configuration I put hibernate dtd in hibernate.cfg.xml file and it is showing an error that downloading from external resources is disabled. Can you please help me ...
Pushp Raj Thakur's user avatar
0 votes
0 answers
13 views

why can't get the resource by using $r('app.string.tab_title1'+1)

my pc's os is windows10,and I found a question while I'm programing,I can't get resource by using $r('app.string.tab.title'+1) while using $r('app.string.tab.title1') is ok.Why?(I'm editing a file ...
doudou's user avatar
  • 1
0 votes
1 answer
91 views

MissingManifestResourceException error with MenuStrip and how to fix it

I am trying to migrate old project (game editor) from visual studio 2008 with net 2.0 seems like to vs 2022 with net 4.8, sadly i am badly familiar with dotnet and got stuck with error during editor ...
taburetka's user avatar
0 votes
0 answers
19 views

Oscillating disk-pressure causes unnecessary eviction

I have multiple pods on the same node sharing local storage. One of these pods writes a big file, which causes the node to experience disk-pressure. Because all pods share the same local volume they ...
User12547645's user avatar
  • 7,347
0 votes
1 answer
54 views

Allow resource limit violation for some time

I have a pod which exceeds the disk resource limits sometimes for a short time. The pod then gets evicted. Is there a way to allow the pod to exceed the resource limits for e.g. 30 seconds?
User12547645's user avatar
  • 7,347
1 vote
1 answer
50 views

Undefined resource path when using a number in the client resource access path

When having the following sample ballerina client: public client class SimpleClient { resource function get metadata/[string id]() returns string { return ""; } } and ...
Dulmina's user avatar
  • 519
0 votes
0 answers
15 views

VS .NET project add icon (the default icon build-action property is content, so how by default to force resource ?)

in our recent development, an icon was added to the project VS2022 and all was fine until the app was installed using installer. Then we realized that in the case of the installer, the build action ...
code-swimmer's user avatar
4 votes
2 answers
3k views

"No module named 'resource'" error when using TensorFlow and TensorFlow Datasets in Windows virtual environment

I am facing a problem when trying to use TensorFlow and TensorFlow Datasets in my virtual environment on Windows. When I try to import these packages, I receive the following error: ...
Babi's user avatar
  • 41
0 votes
0 answers
9 views

Android public library resource not resolved

In a library com.example.mylibrary I have this strings.xml file: <resources> <string name="cde_test_private">This is a private string</string> <public type="...
F.M.'s user avatar
  • 245
-1 votes
1 answer
139 views

Openshift CPU Usage vs CPU request % vs CPU Limit %

I have dilemma in the understanding of the below terms wrt pod resource utilization in openshift. I have executed the load test against a microservice and while measuring the CPU consumption of the ...
anees's user avatar
  • 11
-1 votes
1 answer
78 views

How to reload config data in running Flask instance?

Suppose we have a service that uses filesystem config file to get some job done: class Service: def _load(): # (re)loads config file pass def do_some_work(): # uses ...
Maxim's user avatar
  • 348
0 votes
0 answers
10 views

unable to solve error in build output in values.xml file

I am trying to solve this error : C:\Users\user.gradle\caches\transforms-3\28a7af075d5af218c19b63a2f54b1523\transformed\core-1.9.0\res\values\values.xml:29:4: Invalid for given resource value. the ...
Maharshi Mahi's user avatar
1 vote
0 answers
23 views

Eliminate render-blocking resources wordpress, wp_dequeue_style not working

I am using wordpress and when I test the site speed on gtmetrix I get this warning Eliminate render-blocking resources. It shows me the stylesheets and the time it takes to load them, I have ...
ErfanA's user avatar
  • 11
0 votes
0 answers
5 views

I used three clients to write to three different databases and found that the writing speeds varied greatly

I used three clients to write to three different databases and found that the writing speeds varied greatly. I start a cnosdb cluster, 3 meta 3 tskv: cnosdb-meta run --config /etc/config_8901.toml ...
Baker X's user avatar
  • 143
-1 votes
1 answer
103 views

Add custom GridView to WinUI 3 C# app (could not use Page.Resources or Window.Resources)

I am working on a WinUI 3 C# project for the first time. This is my code XAML code so far and it works: <?xml version="1.0" encoding="utf-8"?> <Window x:Class="...
Κωνσταντίνος Κ.'s user avatar
0 votes
2 answers
349 views

How to get a list of resource groups in Terraform

I want to get all resource groups in the subscription using Terraform. The goal of it is to go through the storage accounts in these resource groups and create resources based on those storage ...
Simao Gomes Viana's user avatar
1 vote
1 answer
55 views

How to make images, properties, and other resources available to my modular application after jpackage? [duplicate]

I have the following project structure. ProjectName | |---src | |---main | |---java | | | |---ModuleName | | | |---module-info....
davidalayachew's user avatar
-2 votes
1 answer
51 views

How to set properties in a xaml to a maximum value?

I'm working on a UserControl, which has some labels, checkboxes, .... In order to configure that usercontrol, some styles are used, as you can see here: <UserControl.Resources> <Style ...
Dominique's user avatar
  • 16.3k
0 votes
0 answers
5 views

android resource linking:nav_graph.xml

android resource linking failed for me was nav_graph ** android resource linking failed for me was nav_graph I added these codes to build.gradle.kts(:app) in dependencies implementation("androidx....
nh gh's user avatar
  • 1
1 vote
0 answers
94 views

Creating FullCalendar View with Days (Weeks, Months) as Rows and Resources as Columns

I am developing a React 18 application with TypeScript, and I'm utilizing the FullCalendar library to manage and display events. I'm looking to implement a specific calendar view where days are ...
Ilya Kruchinin's user avatar
1 vote
0 answers
67 views

Laravel resource controller won't recognize PUT route

I have a resource controller with method: public function update(StoreRoleRequest $request, string $role) { $validated = $request->validated(); $entry = Role::find($role); if ($entry) { ...
inquisitive's user avatar

1
2 3 4 5
187