Top new questions this week:
|
Having class X, the following object initialization:
new (ptr) X(X());
requires an accessible destructor even since C++17. Why is that, when the object is initialized by the default constructor ...
|
I'm following along with the internals of the ggplot2 library and I'm trying to understand how non-positional aesthetics get mapped to the values that get passed to grid. The book describes this ...
|
The code below behaves incorrectly.
When f<0> or f<5> is called, it prints as if k = true, but the if statement behaves as if k = false. When f<1> is called, it does the opposite.
...
|
I want to know if there some options to set the MSI file without admin power. When I open the msi file in non-admin user, it always need admin power. How can I set it to open the msi file without the ...
|
I wrote the following program in c++23. Here I've overloaded member functions. But for all cases different compilers give different result as shown below in comment. As you can see I have three cases ...
|
I'm working on a small python program for myself and I need an algorithm for fast multiplication of a huge array with numbers (over 660 000 numbers, each is 9 digits). The result number is over 4 ...
|
I have been reading a ton on this topic over the past view days but would really like clarification on what I learned so far in relations to C# and C. Firstly, Atomicity seems to be fairly intrinsic ...
|
Greatest hits from previous weeks:
|
How do I create or use a global variable inside a function?
How do I use a global variable that was defined in one function inside other functions?
Failing to use the global keyword where appropriate ...
|
In PHP, strings are concatenated together as follows:
$foo = "Hello";
$foo .= " World";
Here, $foo becomes "Hello World".
How is this accomplished in Bash?
|
I got this error from my code:
ValueError: invalid literal for int() with base 10: ''.
What does it mean? Why does it occur, and how can I fix it?
|
How can I convert a String value to an int type?
"1234" → 1234
|
I have a pandas dataframe, df:
c1 c2
0 10 100
1 11 110
2 12 120
How do I iterate over the rows of this dataframe? For every row, I want to access its elements (values in cells) by the name ...
|
How do I generate a random integer in C#?
|
Is there a better way to engineer a sleep in JavaScript than the following pausecomp function (taken from here)?
function pausecomp(millis)
{
var date = new Date();
var curDate = null;
do ...
|
Can you answer these questions?
|
I am new to Visual Studio and I found out that for Visual Studio to compile the folder you need to create a project folder that creates it inside the user folder, now I used fstream to try to create a ...
|
I'm searching for various byte patterns in big memory chunks using this code:
BOOLEAN Find(const unsigned char* data, SIZE_T data_size, const unsigned char* to_find, SIZE_T to_find_size, SIZE_T* index)...
|
Docker desktop was working until I updated it (saw an update button in the app and updated it). After updating, a restart of the app happened and docker is refusing to connect again.
I uninstalled the ...
|