9,459 questions
Advice
0
votes
7
replies
45
views
Why are identifiers called ‚keys‘ in computer science?
I am not an English native speaker and I was recently wondering why in many cases things that I would call ‚identifiers‘ are named ‚keys‘ in computer science.
To my understanding, a key is an object ...
-2
votes
1
answer
80
views
Why does my keydown event using addEventListener on a hidden input not work?
Why this doesn't work? When I hit the "c" on my keyboard, nothing is logged to the console.
<input type="hidden" id="keyDetector">
<script>
const keyDetector = document....
-1
votes
1
answer
73
views
Best way to Index and or Key massive datasets [closed]
I have two tables related to each other, each with roughly 200M records.
CREATE TABLE [dbo].[AS_tblTBCDEF](
[CDEF_SOC_NUM] [numeric](5, 0) NULL,
[CDEF_EFF_DATE] [date] NULL,
[CDEF_TYP_BUS] ...
0
votes
1
answer
123
views
How to rename a dictionary key and keep the order in python? [duplicate]
I have a json file to store the data for an app. This json file has this dict in it:
{
"Survival": {
"text": "Survival",
"directory": "...
0
votes
2
answers
196
views
How do I access specific keys and values from CSV files?
I have a CSV file keeping track of people's score in a game. I read it with csv.DictReader().
How do I create a dictionary with the keys being the names and the value being the scores?
CSV file ...
0
votes
1
answer
69
views
Avoid listview child to rebuild in flutter
In the example below, each child of listview is assigned with a key.
Can I restrict the child to build only if the shouldHighlight is updated for any child.
Currently it rebuilds each child and prints ...
1
vote
2
answers
61
views
In Kafka, if a message is manually sent to a specific partition, will subsequent messages with the same key go the same partition?
Consider the following sequence:
Message1 with key "A" is sent to a specific partition of a topic:
kafkaProducer.send("my-topic", 0, "A", "Message content");
...
0
votes
1
answer
100
views
React-Native FlatList Each child in a list should have a unique "key" prop, I've already given keys to all mapped elements
I've followed the advice online and made sure every mapped element has a key in the parent container. My FlatList has the renderCard method, and an included keyExtractor that follows the syntax of ...
-3
votes
2
answers
69
views
Add key/value to dict in map method
I have this code:
results = "[ { user_name: 'User 1',
email: '[email protected]',
userid: 'HJ10092',
event_type: 'download',
country: 'Venezuela',
doc_type: 'mspowerpoint',
...
-1
votes
1
answer
39
views
Why there an error at FOREIGN KEY and REFERENCES because of using ( [closed]
CREATE TABLE menu(
id_menu VARCHAR(50) NOT NULL,
nama_menu VARCHAR(100),
id_kategori VARCHAR(50),
keterangan TEXT,
harga DOUBLE(5,2),
gambar VARCHAR(50),
PRIMARY KEY(...
0
votes
0
answers
30
views
error in sending request to chatGPT using API key
I want to pass a grading request to ChatGPT via API key. the request worked when I passed a text message, but I faced errors when I tried to pass a pdf file that contains the text.
The grading service ...
0
votes
1
answer
136
views
What would be the reason that Ubuntu fails to execute the xdotool key period command?
running a script that uses the "xdotool", "key comma" and "xdotool", "key period".
Yet it seems to skip the period commands entirely or perhaps can't interpret ...
0
votes
4
answers
91
views
Get key of an array of objects, searching by value of object property
I have an array of objects as such
const aaa = [
{id: 10, val: "xx"},
{id: 27, val: "tr"},
{id: 13, val: "ut"}
]
Now, I know how to search for an object by a value ...
0
votes
1
answer
56
views
How to key bind a snippet in Sublime Text?
I had some trouble figuring out how to add a Key Binding to my new Snippet in Sublime.
This answer may save some people some time...
1
vote
1
answer
154
views
Why does AliasX509ExtendedKeyManager not take client alias into account?
I'm trying to do mTLS with SpringBoot (3.4.3) and so use classes from the package org.springframework.boot.ssl.
My client-side KeyStore contains several client certificate keys which I would like to ...