Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

With the entered code here, I am trying to build a project on springboot. I am using AES encryption in my project. I am keeping the password(key) of AES in the application properties. The variable ...
user31911891's user avatar
1 vote
1 answer
96 views

I'm deploying a simple Django project on a local Ubuntu server VM running Docker (3 containers, Postgres, nginx and Django). The project uses a lot of HTMX and DaisyUI. On my dev environment they ...
Savyexe's user avatar
  • 81
5 votes
1 answer
182 views

The following program gives segmentation fault. #include <iostream> using namespace std; class A { public: static int& a; }; int a = 42; int& A::a = a; int main() { a = 100; ...
Keshav Saraf's user avatar
-3 votes
1 answer
105 views

I am having pojo class with Lombok @data annotation. pojo classes are static in calling classes. So When I execute multiple selenium tests say test 1 and test 2, during test 2 execution, pojo fields ...
SeriousCoder's user avatar
0 votes
0 answers
24 views

I'm working on a Django project with multiple apps (Home, student, login, etc.). When I set DEBUG = False in settings.py, the static files (CSS and JS) from my Home app load fine, but the static files ...
MRKC's user avatar
  • 3
2 votes
1 answer
41 views

I've seen plenty of examples of static SQL in sample Linux DB2 stored procedures. But if I code static SQL in my Linux DB2 stored procedure, as follows: SET v_MsgText = 'DROP LOC CHECK failed.'; ...
Dave Clark's user avatar
2 votes
2 answers
112 views

I have encountered a lambda with static variable in the following answer https://stackoverflow.com/a/79631994/2894535 : EXPECT_CALL(my_mock, foo(_)) .WillRepeatedly(InvokeWithoutArgs([](){ ...
Dominik Kaszewski's user avatar
2 votes
3 answers
244 views

I have a Foo class that includes an array and a static constexpr variable. As a general convention, I want to write public and private variables respectively. But, compiler error occurs 's_array_size' ...
unique's user avatar
  • 130
0 votes
1 answer
387 views

I implement some functions in header files (template functions, for instance), but then some of these functions go unused in some translations units: main.cpp #include "include.h" int main()...
bers's user avatar
  • 6,299
1 vote
1 answer
49 views

This question is a follow up to the question here AspectJ @around a static initializer I accepted that answer because it did apply the aspect to the code, but i hadn't actually run it yet to see there ...
MeBigFatGuy's user avatar
  • 28.7k
0 votes
0 answers
58 views

I need to know if I can have variable as size of array in a loop and in a function. NOTE: I cannot use malloc. Using array sizes as shown below, Is it valid? Will it cause any runtime issues / crash / ...
TechTotie's user avatar
  • 155
0 votes
0 answers
57 views

boost:Version 1.68.0. os:Linux IVI 5.4.134 #1 SMP PREEMPT Tue Mar 18 01:00:37 CST 2025 aarch64 GNU/Linux. compiler:gcc7.3. when I called boost::system::error_code.message() like LOG("open error: %...
Ryan Wong's user avatar
0 votes
0 answers
53 views

common.h static int getBrowserStoreParams111(int type); common.cc int Common::getBrowserStoreParams111(int type) { static int store_param = [type] { int result = type; std::cout <<...
chuya wang's user avatar
0 votes
1 answer
60 views

<!-- about.html --> 1 {% extends 'book/base.html' %} 2 3 {% block title %} About {% endblock %} 4 {% block extra_head %} 5 <link rel="stylesheet" href="{% static '...
Uyi Oduware's user avatar
1 vote
4 answers
210 views

When I'm trying to make instances of my class I get errors unless I add the static keyword. I'm wondering why this is, doesn't this go against the whole concept of being static. Here is my code that ...
Victor Moldoveanu's user avatar
1 vote
0 answers
32 views

In the following example: fn send(_data: &'static mut [u8]) { unimplemented!(); } struct Device { buffer: &'static mut [u8], } impl Device { fn new(buffer: &'static mut [u8]) ...
Emil Sahlén's user avatar
  • 2,162
0 votes
1 answer
98 views

I thought arrays were considered static data structures. Then we executed this: #include <stdio.h> #include <stdlib.h> int main() { int a[5] = {10,20,30,40,50}; a[5] = 100; a[6] = ...
George Eco's user avatar
0 votes
1 answer
43 views

Couldnt understand what wrong with my admin part. It looks like that: I understood that this effect may depend on 'static' resources.. HTML preview shows: <head> <title>Log in | Django ...
Alex P's user avatar
  • 11
-3 votes
2 answers
104 views

I have a class like this: public static class Settings { private static SettingsWindow _settingsWindow = null; public static void Init(SettingsWindow settingsWindow) { ...
Steve Stover's user avatar
0 votes
2 answers
64 views

I'm searching for the (idiomatic) Kotlin equivalent to javas: private static Book currentBook; public static Book get() { if(currentBook == null) { currentBook = new Book(); } ...
citizen_code's user avatar
4 votes
1 answer
234 views

I’m defining an inline static data member in a C++17 class (inline static SharedData gSharedData;). I have two questions: 1)It seems gSharedData instantiated before main() starts like (non-inline ...
sam's user avatar
  • 911
0 votes
2 answers
151 views

I am trying to figure out a way in VBA to give a timestamp when a cell is updated, but I want that timestamp to be static and only update one time, the first time. Columns A-I are a checklist and the ...
Starvsnr's user avatar
-1 votes
3 answers
161 views

I was reading an e-book explaining design patterns, and after explaining the factory design pattern, it suggests some improvements. One of them was to make the factory static. Make the factory (or a ...
FOXDeveloper's user avatar
-4 votes
1 answer
101 views

Since main() is made static so that JVM can access it without creating an object of the class in which it is defined, then what is the need for writing it in a class?
PS Nayak's user avatar
  • 423
2 votes
2 answers
125 views

I created a generic interface that has a static property, and yet the classes that implement that interface do not seem to have access to the property or expose it to other code. For example, the code ...
Manus Hand's user avatar

1
2 3 4 5
330