1,397 questions
1
vote
2
answers
84
views
How to initialize a 2d array with existing array objects rather than array pointers
This is not a practical question!
I am not asking how one would accomplish the end-goal of this code in a production environment. Rather, this question is about how C works. The given example is ...
2
votes
1
answer
121
views
R reference classes and internal functions
I am drafting two packages: the first defines a reference class (A) with base fields and methods, and a second package that implements a new class (B) which contains (A) and add methods for the ...
1
vote
1
answer
151
views
How to implement Python's unified attribute lookup (__getattribute__) in C++, handling descriptors and metaclasses?
I'm developing a Python interpreter from scratch in C++ as a hobby project to deepen my understanding of the language's internals.
I'm currently stuck on implementing the attribute lookup mechanism (...
0
votes
1
answer
32
views
Google cloud server to server communication results in status 401 although services are authorized
I want to call my backend service 'azhbackend' from my web application 'azhverwaltung' within google cloud run environment.
Both services have service accounts in Google cloud.
Azhbackend requires ...
0
votes
1
answer
98
views
Multithreaded breaking strings : why a return statement needed here
I wrote the code mentioned here Breaking java.lang.String in Scala. Rather than using Future I used plain Java threads and wrote it like this:
def breakIt(original: String): String =
require(...
3
votes
1
answer
84
views
Observing the default process heap getting created (breakpoint on heap creation)
I want to observe when the default process heap gets created, i.e. have a breakpoint and get the callstack of the creation. This has no practical background. I just want to understand the Windows ...
0
votes
1
answer
68
views
Load network/security extension in macOS. finish callback is skipped
i'm working on an endpoint security extension loader and implement several callbacks from delegate object OSSystemExtensionRequestDelegate
the callback i'm interested in is :
public func request(_ ...
6
votes
2
answers
170
views
Random change in obj_addr() output when including the objects into a list and vectorizing over them
There is a strange behavior of lobstr::obj_addr caused by its vectorization over lists, when the list itself doesn't change the address.
I just started Advanced R by Wickham (2ed) and reached the 2.2....
0
votes
1
answer
105
views
Why does `git clone --depth 1` leave packfiles?
I am trying to clone a repository with a lot of blobs in its history, and would like to only download the files at a specific commit without any added overhead or redundancy.
When trying git clone --...
3
votes
1
answer
145
views
What is the internal implementation of `copy.deepcopy()` in Python and how to override `__deepcopy__()` correctly?
When reading Antony Hatchkins' answer to "How to override the copy/deepcopy operations for a Python object?", I am confused about why his implementation of __deepcopy()__ does not check memo ...
1
vote
0
answers
99
views
Is there a Chrome Devtools Protocol API to list off all Runtime.ScriptIds?
I'm trying to write a script that will dump all instances of a specific function signature in node.js's internal modules. Specifically, I'm trying to dump the locations of the internalBinding function ...
0
votes
0
answers
29
views
Network trace an internal domain that is setup to access an external site
I am not a network person but need to track or understand the following. We have a legacy flow that I am trying to understand/reverse-engineer.
Use-case:
Public end user makes call to application ...
1
vote
1
answer
92
views
Does the "acks" configuration apply to the 'sender' thread of the KafkaProducer client?
I have a couple of questions regarding the async nature of the KafkaProducer client which were unanswered by the official documentation.
Background:
I am working on a project where I need to log some ...
0
votes
2
answers
333
views
How to Determine the Low High Water Mark (LHWM) in Oracle DB? [closed]
How could one determine the position of the Low High Water Mark (LHWM) for a non-partitioned heap table segment in Oracle?
Note: Using Locally Managed Tablespaces (LMT) and Automatic Segment Space ...
0
votes
0
answers
414
views
android testing app is not showing on play store
I have make 1 release version apk using Android Studio. Upload that on google play console and app review was complete and become publish. I don't like to make it public(app was shown on play store ...
-1
votes
1
answer
73
views
How to write Mock Unit Test Code that will Test a class method that downcasts an input argument interface as a concrete class?
I'm writing mock unit test code that will Test a class method that downcasts an input argument interface as a concrete class.
Here is the “System Under Test(SUT)” class called CarWrapperFactory:
...
-2
votes
2
answers
257
views
Difficulty Using Internal or Private Types in Swift Protocol Conformance
I'm encountering issues while trying to use internal or private types in Swift protocol conformance. Here's a simplified version of my code:
internal protocol RATIONAL {
associatedtype rational
...
0
votes
1
answer
47
views
ModuleNotFoundError: no module named "StrucPy" - Internal package
When running the developed package "StrucPy" from the folder "Testfiles"- it says "Module Not Found". The same "testfile1" effectively import "StrucPy"...
0
votes
2
answers
109
views
The order of Hashtable.keySet()? [duplicate]
I've been learning Java recently, and I have a question.
I have learned that HashMap and Hashtable do not preserve the insertion order or the order based on the key. But I've encountered a situation ...
1
vote
0
answers
171
views
How to calculate pooled Cronbach's Alpha after multiple imputation
I'm new here and I have a question regarding Cronbach's Alpha after imputation. I've already looked up several resources and I found the same problem here with a reproducible example (How do I ...
0
votes
1
answer
104
views
How can I subscribe to an internal static event Action with reflection? [closed]
I want to subscribe a delegate to an external class' internal event Action:
internal static event Action OnSingletonReady;
I cannot edit the class it is in. Although the event may be exposed as ...
-1
votes
1
answer
72
views
How to programatically set time of latest full charge on Android?
How, if at all, is it possible to manually alter the timestamp of latest full battery charge a system call on Android? How does the adb command alter the value?
1
vote
0
answers
138
views
Tell which mission control desktop is my window on
I'm trying to find (can be undocumented, or old way) to know which mission control desktop (or if the application is full screen which desktop is it) is my application window running on.
I have ...
0
votes
0
answers
238
views
How compatible are KSYSTEM_TIME and FILETIME on Windows?
I've been using information from KUSER_SHARED_DATA (useful overview) in various contexts in the past. Some of the first members are of type KSYSTEM_TIME and the way they're laid out is required due to ...
1
vote
1
answer
188
views
How to open postgresql heap file
I want to check how files, where PostgreSQL stores data from tables, are stored, for educational purposes. How can I do it?
I tried open it with notepad, but structure is corupt database heap file. &...
-2
votes
1
answer
144
views
How does PostgreSQL combine the use of multiple indexes via AND?
How does PostgreSQL combine the use of two btree indexes via the AND operator?
I find this page in the Postgres documentation to be highly surprising, to the point of implausibility:
https://www....
1
vote
0
answers
54
views
Could bound methods be implemented without instantiating MethodType on each call?
As the docs say, functions defined in the class body are bound to class instance on demand (that is, when they're called by that instance); function object is a non-data descriptor.
This is indeed the ...
0
votes
0
answers
210
views
while am open the Eclipse getting in this of error message
An internal error occurred during: "Requesting Java AST from selection".
can't be able to clear this error. repository also not getting old version first appall we suspect to the error ...
0
votes
2
answers
485
views
What happens with async await exactly?
I have such a piece of code
async function loop() {
for (let i = 0; i < 3; i++) {
console.log(i,new Error("").stack);
await 1;
}
}
loop();
when I run it in Node (Chrome ...
0
votes
0
answers
203
views
How does the Windows clipboard popup (Win+V) determine the caret position?
When opening the Windows clipboard history (by pressing Win+V, or the emoji panel by pressing Win+.) it opens at the location of the caret (cursor, although people seem to confuse that with mouse ...
2
votes
2
answers
147
views
PowerShell: External Command Output to Internal Command
I want to run these two commands in PowerShell in conjunction, and use the output of dir as the path in Get-ChildItem
cmd /r dir /b/s/a/t screenshot_37.png; powershell -command "& {Get-...
0
votes
1
answer
939
views
Error: Cannot find module 'C:\Users\my pc\OneDrive\Desktop\react-scripts\bin\react-scripts.js' , code: 'MODULE_NOT_FOUND',
'create' is not recognized as an internal or external command,
operable program or batch file.
node:internal/modules/cjs/loader:1080
throw err;
^
Error: Cannot find module 'C:\Users\my pc\OneDrive\...
1
vote
2
answers
604
views
Does Javascript ever garbage collect functions or constants?
Let's say there is a file in my app that consists of nothing but hundreds of exported functions, but only one rarely used part of my app uses them. A file like this:
export function a() {
..
}
...
0
votes
0
answers
110
views
Windows Container Networking similar to 'internal: true'
I want to use two service in docker-compose.yml: frontend and backend, the first one is nginx and the orther is an asp.net application, both based-on window images. frontend and backend must be on the ...
0
votes
0
answers
38
views
Why adding external dll in class library expected to be added in calling project?
I have to call an external .Net Framework assembly that required to be consumed in different projects (Console, Desktop and Web Applications). In order to avoid adding external assembly, I have ...
1
vote
1
answer
2k
views
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint python flask
I'm trying to create login page and register page for personal project in Python / Flask but I am facing this error in vscode terminal, when I try to access Register endpoint:
"werkzeug.routing....
-1
votes
2
answers
147
views
Why java.lang.Class doesn't implement java.lang.reflect.Member interface?
I'm working on a Package Browser in browser in Java and trying to write a generic method which can handle all members of the class - basically collecting string representation of them, choosing an ...
0
votes
2
answers
2k
views
How to instantiate a class with an internal constructor in Kotlin
I am interested to instantiate Duration class from Kotlin.time package provided by kotlin.
my code so far..
...
import kotlin.time
class MyGLRenderer : GLSurfaceView.Renderer {
override fun ...
3
votes
2
answers
6k
views
Jupyter Notebook - 500 Internal Server Error handling
I'm having trouble opening my jupyter notebooks. Everytime i do so, i get 500 internal server error. I tried to update jupyter in anaconda cmd, but it didn't work as well.
None of my notebooks work. ...
0
votes
1
answer
139
views
Version Control on Visual Basic Internal Web App
I work on an internal web app in visual studio that is a visual basic project. This web app is used in a facility and is going to be scaled larger for other facilities. I am looking for the best way ...
1
vote
1
answer
91
views
Why is 'assert' not considered as a function of type bool->unit, but a keyword?
I do not follow why assert is not considered as a function of type bool -> unit, but a keyword.
# assert (2=2) ;;
- : unit = ()
# assert;;
Line 1, characters 6-8:
Error: Syntax error
3
votes
1
answer
564
views
Why are the ILT and IAT separate tables?
I am learning about the PE format, specifically about the design of imports, and I have a question about the design of the IAT and ILT. why do they need to be separate tables?
To my understanding, ...
0
votes
1
answer
31
views
C# Class with parsed properties for sorting
I want to build a class that parses a Road Number (RdNumber) code for sorting that overrides the default alphanumeric sort of the original values. Examples of the original RdNumber code and they way ...
-2
votes
1
answer
101
views
Where to find information of Django internals and design [closed]
where can I find information of Django internals? more updated then that https://www.youtube.com/watch?v=tkwZ1jG3XgA ?
It is a very good tutorial, but it is almost 20 years old. In Django, I cannot ...
0
votes
1
answer
340
views
Does this Cloud Run Metadata Server endpoint provide the default service account, or the one attached?
In the documentation for the Cloud Run container contract, the endpoints are listed to include those to get the email and token:
/computeMetadata/v1/instance/service-accounts/default/email
/...
2
votes
0
answers
48
views
Google Play Console - cannot submit updates, because in Internal Testing there is a bundle requesting sensitive permission REQUEST_INSTALL_PACKAGES
In Google Play Console I created an Internal Testing a few months ago. I want to start Closed Testing with a newer version (another bundle) but I cannot do this because in the old bundle in the ...
2
votes
1
answer
2k
views
How does Postgres implement JDBC fetch size?
I'm working on a database importer tool. I'm reading from a Postgres DB by setting the JDBC fetch size. Note that I've set it to 1 for testing purposes. I'm using this snippet of code to read from the ...
1
vote
1
answer
78
views
Does it affect the working of programs that how negative numbers are represented internally?
I am not specific about any algorithm or program. But considering bit manipulation programs and other tasks that involves 2's complement or 1's complement etc., what if the negative numbers are ...
1
vote
1
answer
77
views
What is the Group.lostsprites attribute for in pygame?
In pygame, groups have a lostsprites attribute. What is this for?
Link to where its first defined in the code: pygame/src_py/sprite.py
It seems to be some sort of internal thing as I was unable to ...
1
vote
0
answers
149
views
Is SQL Server able to use internal parallelism for an update statement?
I am struggling to find the best way to migrate some varchar columns to nvarchar. One of the options I am using is to add new nvarchar column, then update the values from the original column, drop the ...