Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,634,542 | 2 | null | 75,633,724 | 0 | null | It's a specificity problem:
> When multiple declarations have equal specificity, the last declaration found in the CSS is applied to the element. ([MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity))
Your `last-child` styles are overridden by the odd and even elements styles. To solve this, you can move... | null | CC BY-SA 4.0 | null | 2023-03-04T08:41:06.380 | 2023-03-04T08:41:06.380 | null | null | 21,241,330 | null |
75,634,544 | 2 | null | 75,633,529 | 0 | null | Seems to work perfectly. "Brain Archive" is on the left, and the icons are on the right.
```
header {
display: flex;
justify-content: space-between;
width: 100%;
}
```
```
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50.... | null | CC BY-SA 4.0 | null | 2023-03-04T08:41:56.000 | 2023-03-04T08:41:56.000 | null | null | 2,518,285 | null |
75,634,549 | 1 | null | null | 0 | 7 | Tests fail as the selenium web driver cannot find executable browser drivers. And selenium manager is not able to work because permission was denied.
WARNING: IOException running command [/tmp/selenium-manager6934959080002692789801225066774/selenium-manager, --driver, chromedriver]: Cannot run program "/tmp/selenium-ma... | Getting Permission Denied for Selenium Manager when running selenium grid via docker compose | CC BY-SA 4.0 | null | 2023-03-04T08:42:32.423 | 2023-03-04T08:42:32.423 | null | null | 5,483,409 | [
"selenium-webdriver",
"selenium-grid"
] |
75,634,551 | 2 | null | 75,634,101 | 1 | null | This might work for you (GNU parallel and sed):
```
parallel -q sed -i '/line/a\/to be added/' :::: argument
```
This will append a line `/to be added` to each line which contains `line` for each file in the file called `argument`
| null | CC BY-SA 4.0 | null | 2023-03-04T08:42:57.510 | 2023-03-04T08:42:57.510 | null | null | 967,492 | null |
75,634,552 | 1 | 75,634,718 | null | 0 | 27 | I've written the following HTML and JS code, but not able to get the actual result. I want the timer not to restart after I refresh the page.
```
var spd = 1000;
var spdVal = 1;
var cntDown = 5 * 60 * spdVal;
cntDown += 7;
setInterval(function () {
var mn, sc, ms;
cntDown--;
if (cntDown < 0) {return false;... | How to make timer not to restart after page refresh? | CC BY-SA 4.0 | null | 2023-03-04T08:42:58.317 | 2023-03-04T09:20:00.623 | null | null | 10,266,302 | [
"javascript",
"php",
"html",
"css"
] |
75,634,546 | 1 | null | null | -2 | 13 | Hi I am currently building a website with eleventy for the first time. I am building the templates for eleventy with nunjucks and front matter and am currently dealing with an problem where I want to build an image carrousel with multiple images per page
I have build a code that is working but far from efficient I have... | Loop in nunjucks | CC BY-SA 4.0 | null | 2023-03-04T08:42:00.520 | 2023-03-04T11:56:59.570 | 2023-03-04T11:56:59.570 | 21,330,488 | 21,330,488 | [
"html",
"nunjucks",
"eleventy",
"yaml-front-matter"
] |
75,634,554 | 1 | 75,635,681 | null | 0 | 23 | I am new to Azure VMs and want to have the latest Ubuntu Server stable LTS release. However the list of images isn't quite clear to me:
```
az vm image list -o table --all --publisher Canonical --offer Ubuntu --sku 22_04-lts --architecture x64
// ...
x64 0001-com-ubuntu-server-jammy Canonical 2... | What means the gen2 in Ubuntu Server 22_04-lts-gen2? | CC BY-SA 4.0 | null | 2023-03-04T08:43:13.587 | 2023-03-04T12:31:05.687 | null | null | 298,288 | [
"azure",
"azure-virtual-machine",
"ubuntu-server"
] |
75,634,553 | 2 | null | 75,561,178 | 0 | null | the `N/dialog` method's return type is [promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) . Meaning if you return it from a method you are not returning boolean. Some entry points accept being assigned as async but i don't think that it's officially supported -- maybe n... | null | CC BY-SA 4.0 | null | 2023-03-04T08:43:07.550 | 2023-03-04T08:43:07.550 | null | null | 1,189,625 | null |
75,634,550 | 1 | 75,634,814 | null | -1 | 13 |
CODE:
```
// defines pins numbers
const int stepPin = 3;
const int dirPin = 2;
const int enPin = 4;
int arr[10] = {10, 90, 45, 30, 60, 120, 180, 240, 280, 420};
int currentAngle;
int angle;
float stepPerAngle = 1.8; // full step = 1.8
int numstep;
void setup() {
Serial.begin(9600);
// Sets the tw... | how to control stepper motor with tb6560 using arduino | CC BY-SA 4.0 | null | 2023-03-04T08:42:42.727 | 2023-03-04T09:40:05.843 | null | null | 21,330,497 | [
"arduino"
] |
75,634,555 | 2 | null | 75,633,338 | 0 | null | To style the row group headers use `cells_row_groups()` instead of `cells_body` in `tab_style`
Using some fake example data based on the `gtcars` dataset:
```
library(gt)
library(dplyr)
bovids.summary.carb <- gtcars |>
group_by(ctry_origin, bdy_style) %>%
summarize(
mean_d13C = mean(hp, na.rm = TRUE),
medi... | null | CC BY-SA 4.0 | null | 2023-03-04T08:43:25.290 | 2023-03-04T08:43:25.290 | null | null | 12,993,861 | null |
75,634,547 | 1 | 75,635,276 | null | 2 | 22 | I encountered this issue when trying to encrypt some message using `RSA-OAEP`.
To my surprise (as a beginner in crypto) that in some condition `SHA-256` works while `SHA-512` doesn't.
I couldn't find any helpful info from [https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt#rsa-oaep](https://developer... | Why would web crypto SHA-256 encrypt message while SHA-512 fail sometimes? | CC BY-SA 4.0 | null | 2023-03-04T08:42:18.630 | 2023-03-04T11:12:33.247 | null | null | 7,731,265 | [
"javascript",
"cryptography",
"webcrypto-api",
"subtlecrypto"
] |
75,634,557 | 2 | null | 75,634,488 | 3 | null | ```
def isString(json: io.circe.Json): Boolean = json.isString
```
Or just: `x.isString`, `y.isString`.
| null | CC BY-SA 4.0 | null | 2023-03-04T08:43:30.027 | 2023-03-04T08:43:30.027 | null | null | 6,152,669 | null |
75,634,556 | 1 | null | null | 0 | 7 | I am having problem to fetch specific columns from main table and the relation table by `with` function.
Two table
```
product
product_image
```
Product Class have relation code which is
```
public function productFeatureImage(){
return $this->hasOne('App\Models\ProductImgModel','fk_tbl_product_id','id')->where('... | Laravel get specific column from main and relation table by with function | CC BY-SA 4.0 | null | 2023-03-04T08:43:27.667 | 2023-03-04T08:43:27.667 | null | null | 3,234,532 | [
"laravel-8"
] |
75,634,564 | 2 | null | 75,626,047 | 0 | null | Missing `import OS` in main.py and in requirements.txt missing gunicorn. I am sorry to waste your time ppl :D I am just blind
| null | CC BY-SA 4.0 | null | 2023-03-04T08:44:54.010 | 2023-03-04T08:44:54.010 | null | null | 21,325,179 | null |
75,634,562 | 1 | null | null | 0 | 19 | I am incrementally updating a Snowflake table with dbt incremental model with merge incremental strategy to avoid duplicated records.
I have provided the following configurations to my dbt SQL model but it looks like this model is deployed as append mode. dbt run command insert duplicated records.
Am I missing any conf... | dbt incremental model with merge incremental strategy for Snowflake table | CC BY-SA 4.0 | null | 2023-03-04T08:44:16.980 | 2023-03-04T08:47:32.857 | null | null | 1,872,639 | [
"sql",
"snowflake-cloud-data-platform",
"dbt"
] |
75,634,565 | 2 | null | 13,474,305 | 0 | null | Maybe it's because there are two `src`.
[https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src#description](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src#description)
> If multiple src descriptors are set, only the last declared rule that is able to load a resource is applied.
| null | CC BY-SA 4.0 | null | 2023-03-04T08:44:54.297 | 2023-03-04T08:44:54.297 | null | null | 13,031,224 | null |
75,634,548 | 2 | null | 56,504,421 | 0 | null | .
You can generate `access token` if the expiration time expires!
1. First get the authentication code.
2. Get refresh_token from google using authentication code.
3. Get access_token using refresh_token when it expires.
> I assume that you have the authentication code. If you do not have the
code then here is an [a... | null | CC BY-SA 4.0 | null | 2023-03-04T08:42:24.177 | 2023-03-04T08:42:24.177 | null | null | 12,948,011 | null |
75,634,558 | 2 | null | 75,630,809 | 1 | null | IMO your approach is too much specific, and it will be sub optimal from the (re)usability viewpoint.
SWI-Prolog offers a library predicate that [performs RLE](https://www.swi-prolog.org/pldoc/doc_for?object=clumped/2) (run length encoding), as I discovered from this [interesting topic](https://swi-prolog.discourse.grou... | null | CC BY-SA 4.0 | null | 2023-03-04T08:43:38.870 | 2023-03-04T08:43:38.870 | null | null | 874,024 | null |
75,634,563 | 1 | null | null | 0 | 5 | Assume the below code,
```
async saveToDatabase() {
const transaction = await sequelize.transaction({ autocommit: false });
const user = {name: 'Kamal'};
const someConditionWhichFails = false;
try {
if (someConditionWhichFails) {
await User.create(user, {transaction});
aw... | How to safely release/cleanup unused unmanaged sequelize transaction? | CC BY-SA 4.0 | null | 2023-03-04T08:44:53.490 | 2023-03-04T08:44:53.490 | null | null | 3,764,306 | [
"node.js",
"database",
"orm",
"sequelize.js",
"sequelize-typescript"
] |
75,634,566 | 2 | null | 63,979,186 | 0 | null | step 1 : close anaconda and vscode
step 2 : open command prompt (cmd) and uninstall jupyter lab
```
pip uninstall jupyterlab
```
step 3: now open jupyter lab type
```
jupyter-lab
```
Now open vs code jupyter notebook start working
| null | CC BY-SA 4.0 | null | 2023-03-04T08:45:00.743 | 2023-03-04T08:45:00.743 | null | null | 20,851,992 | null |
75,634,569 | 2 | null | 75,634,515 | 2 | null | you should return a new state like your ADD_PRODUCT case
```
case DELETE_PRODUCT: {
return {
...statePart,
products: statePart.products.filter(product => product.id !== action.payload)
}
}
```
| null | CC BY-SA 4.0 | null | 2023-03-04T08:46:04.040 | 2023-03-04T08:46:04.040 | null | null | 18,985,762 | null |
75,634,567 | 2 | null | 75,633,578 | 0 | null | Why not just set the separator `', '`?
```
df = spark.read.csv('test.csv', sep='\', \'')
df.printSchema()
df.show()
root
|-- _c0: string (nullable = true)
|-- _c1: string (nullable = true)
|-- _c2: string (nullable = true)
+------------+--------------------+--------------------+
| _c0| _c1... | null | CC BY-SA 4.0 | null | 2023-03-04T08:45:04.257 | 2023-03-04T08:45:04.257 | null | null | 11,841,571 | null |
75,634,571 | 1 | null | null | -1 | 18 | [Code Image](https://i.stack.imgur.com/0qIjd.jpg)
What might be the solution to this problem?
| Stuck at tqdm initialization (stuck at 0%) | CC BY-SA 4.0 | null | 2023-03-04T08:46:19.307 | 2023-03-04T08:48:44.850 | 2023-03-04T08:48:44.850 | 19,471,664 | 19,471,664 | [
"python",
"tqdm"
] |
75,634,573 | 1 | null | null | -1 | 5 | I set two apps,when i migrate the first one, it's done perfectly,but when i migrate the second one ,there is something makes me confuse, the second database has the first app's table data,i just want to have the second app's data in the second database,how can i do?
I set two apps,when i migrate the first one, it's don... | Django makemigrations | CC BY-SA 4.0 | null | 2023-03-04T08:47:12.080 | 2023-03-04T08:47:12.080 | null | null | 21,330,542 | [
"django"
] |
75,634,574 | 2 | null | 75,634,562 | 0 | null | You have a typo in `unique_key`.
| null | CC BY-SA 4.0 | null | 2023-03-04T08:47:32.857 | 2023-03-04T08:47:32.857 | null | null | 4,691,920 | null |
75,634,572 | 1 | null | null | 1 | 39 | Please consider the small reproducible example below. I am getting an error when trying to use hyperref links. I am getting an error saying that there is a clash, however, I have only called the package one time. I wonder if some one can give a hand on how to resolve this problem. The idea is to make a backref from cit... | Clash with package Hyperref | CC BY-SA 4.0 | null | 2023-03-04T08:46:45.620 | 2023-03-04T11:45:50.347 | 2023-03-04T09:33:08.647 | 10,858,321 | 1,198,246 | [
"r",
"latex",
"r-markdown",
"biblatex",
"hyperref"
] |
75,634,575 | 2 | null | 75,629,189 | 0 | null | Instead of `XLSX.utils.table_to_book` you have to use `XLSX.utils.json_to_sheet` and provide the data you want to export. `table_to_book` method will only export that table data which is the page it showing. So your code would be like this:
```
public exportAsExcelFile(data: { [key: string]: any }, name?: string): void... | null | CC BY-SA 4.0 | null | 2023-03-04T08:47:38.770 | 2023-03-04T08:47:38.770 | null | null | 3,809,228 | null |
75,634,576 | 1 | null | null | 1 | 57 | So I have multiple lines input and I want to create a list for each line
EX Input:
```
5 2
6 1
7 3
4 2
10 5
12 4
```
EX output
```
[5, 2]
[6, 1]
[7, 3]
[4, 2]
[10, 5]
[12, 4]
```
please help, thanks
I have try create with `for i in rage` but didn't work
```
lst=[]
n, s = [int(y) for y in input().split()]
for i in ran... | How to create mutiple list from mutiple lines input | CC BY-SA 4.0 | null | 2023-03-04T08:47:46.143 | 2023-03-04T12:38:01.073 | 2023-03-04T10:32:01.127 | 13,086,128 | 21,330,534 | [
"python",
"python-3.x",
"list"
] |
75,634,570 | 1 | null | null | 3 | 60 | I'm reading Josuttis' C++20 the Complete Guide, and I I've absorbed that a clause like the one in the template below
```
template<typename T>
requires requires { typename std::remove_const_t<T>; }
…
```
is completely useless as it resolves to `requires true` because `remove_const_t` always returns a type when given a... | Is the expression `requires { typename enable_if_t<fun_v<T>>; }` the same as `fun_v<T>` "by definition" for any meta-predicate fun_v? | CC BY-SA 4.0 | null | 2023-03-04T08:46:15.647 | 2023-03-04T16:06:34.890 | null | null | 5,825,294 | [
"c++",
"c++20",
"c++-concepts",
"enable-if",
"requires-clause"
] |
75,634,577 | 1 | 75,634,972 | null | 0 | 21 | I am learning rust borrow checker and struggling with this:
I want to compare the old value and the new value after the string has been cleared
```
fn main() {
let mut s = String::from("first_word second_word");
let idx = first_word_index(&mut s);
let first_word = &mut s[0..idx];
println!("Before cl... | Trying to compare old v new value after the string update | CC BY-SA 4.0 | null | 2023-03-04T08:47:53.770 | 2023-03-04T10:12:48.317 | null | null | 12,954,914 | [
"rust"
] |
75,634,568 | 2 | null | 75,634,449 | 1 | null | Not sure if lodash can help you there, I would do it manually. Grouping works as always, i.e. for each item, go through the already created groups, and then either add it to an existing group or start a new one. You just have to check for a full object instead of a single field:
```
const roomPrices = [
{
rg_ext... | null | CC BY-SA 4.0 | null | 2023-03-04T08:45:17.077 | 2023-03-04T10:24:25.447 | 2023-03-04T10:24:25.447 | 4,883,195 | 4,883,195 | null |
75,634,581 | 1 | null | null | 0 | 9 | I am getting country name and state name from country picker in flutter. But the required thing in my API is to place ISO Alpha2 code of country name. can anyone guide me how can I do that in flutter?
I tried to search different things on internet but could not found any resource
| How to convert country names to ISO 3166-1 alpha-2 values, using Flutter | CC BY-SA 4.0 | null | 2023-03-04T08:50:11.720 | 2023-03-04T08:50:11.720 | null | null | 20,974,087 | [
"flutter",
"iso"
] |
75,634,583 | 2 | null | 75,632,363 | 0 | null | By using this rules prop you can pass this from your data to that v-select
```
rules: {
select: [(v) => v.length>0 || "This field is required"],
}
```
and add this data to the v-select component as follow:
```
<v-select label="name"
:close-on-select="true"
... | null | CC BY-SA 4.0 | null | 2023-03-04T08:50:27.030 | 2023-03-04T08:50:27.030 | null | null | 11,946,764 | null |
75,634,578 | 1 | null | null | 0 | 28 | I’m just wondering whether there are better, more idiomatic ways of cloning parameters prior to them being moved into async blocks?
For example in the following code:
```
use tokio::sync::mpsc;
#[tokio::main]
async fn main() {
let (tx, mut rx) = mpsc::channel(32);
let tx2 = tx.clone();
tokio::spawn(async ... | Patterns to avoid cloning around async block | CC BY-SA 4.0 | null | 2023-03-04T08:48:14.190 | 2023-03-04T18:59:48.710 | 2023-03-04T18:58:28.670 | 7,884,305 | 2,333,690 | [
"asynchronous",
"rust",
"clone"
] |
75,634,582 | 1 | null | null | 0 | 9 | My need is the following: I would like to allow an application (grim) to be launched only from an interactive shell, but not from another application, especially a script shell...
- In principle, is this possible with AppArmor?- Rather than an interactive shell, wouldn't it be better to use a specific "unlock/startup" ... | Security: how to allow an application (grim) to be launched only from an interactive shell? | CC BY-SA 4.0 | null | 2023-03-04T08:50:15.310 | 2023-03-04T08:50:15.310 | null | null | 21,330,457 | [
"linux",
"security",
"wayland",
"apparmor"
] |
75,634,580 | 1 | null | null | 0 | 20 | From the qt offical example [network-chat](https://code.qt.io/cgit/qt/qtbase.git/tree/examples/network/network-chat/connection.cpp?h=6.4).
I want to find by which code sends the network message. From the UI code we can find this returnPressed calling `client.sendMessage`:
```
void ChatDialog::returnPressed()
{...
... | Where exactly does the qt example network-chat send message? | CC BY-SA 4.0 | null | 2023-03-04T08:49:17.877 | 2023-03-04T08:49:17.877 | null | null | 9,250,490 | [
"c++",
"qt"
] |
75,634,584 | 2 | null | 69,207,784 | 0 | null | Unfortunately, while [SQS can natively trigger AWS Lambda functions](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-lambda-function-trigger.html), it does not support this same native triggering with Batch jobs. As a workaround, you'll have to just trigger a Lambda that impleme... | null | CC BY-SA 4.0 | null | 2023-03-04T08:50:29.780 | 2023-03-04T08:55:47.787 | 2023-03-04T08:55:47.787 | 19,589,016 | 19,589,016 | null |
75,634,585 | 1 | null | null | -1 | 30 | I want to run a program using curl, but for an unknown reason it can't compile my programm, apparently, the compiler is unable to find the library.
I'm using GCC on Windows, I have installed Curl via Mysys2. The error I recive when I try to run any program where I include curl is:
`fatal error: curl/curl.h: No such fil... | Can not compile libcurl on C/C++ | CC BY-SA 4.0 | null | 2023-03-04T08:50:46.813 | 2023-03-04T08:50:46.813 | null | null | 16,364,996 | [
"c++",
"curl",
"compiler-errors",
"path"
] |
75,634,586 | 1 | null | null | 0 | 10 | I am getting a follwing error.
```
code: 'MODULE_NOT_FOUND',
requireStack: []
```

1. Deleted the node_modules directory
2. Deleted the package-lock.json file
3. Run npm install
4. Also Run npm run dev
| internal/modules/cjs/loader:1042 throw err; | CC BY-SA 4.0 | null | 2023-03-04T08:50:48.630 | 2023-03-04T08:55:37.053 | 2023-03-04T08:55:37.053 | 584,192 | 18,391,327 | [
"reactjs",
"next.js"
] |
75,634,591 | 2 | null | 75,634,448 | 0 | null | If you mean the background color of form elements, you can add this CSS rule:
```
.user-details .input-box input {
background: #fff;
}
```
If you mean the color of text, add this CSS:
```
.user-details .input-box input::placeholder {
color: #fff;
}
.user-details .input-box input::-ms-input-placeholder {
color: ... | null | CC BY-SA 4.0 | null | 2023-03-04T08:52:19.317 | 2023-03-04T08:58:01.797 | 2023-03-04T08:58:01.797 | 7,251,995 | 7,251,995 | null |
75,634,588 | 1 | null | null | 0 | 22 | this is the excel sheet
[](https://i.stack.imgur.com/OvHal.jpg)
I am designing a system that is supposed to show the list of items in excel sheet but when I run the code, I am getting Run-time Error 380 stating
> Could not set the RowSource Property. Invalid property value
```
'''''''''''''''display data in listbox
Dim... | run time error 380 Could not set the RowSource Property. Invalid Property Value | CC BY-SA 4.0 | null | 2023-03-04T08:51:41.430 | 2023-03-04T13:28:57.973 | 2023-03-04T13:28:57.973 | 4,420,967 | 21,330,501 | [
"excel",
"vba",
"properties",
"runtime-error",
"datasource"
] |
75,634,589 | 1 | null | null | 1 | 13 | In Jira it's possible to link issues with relationships such as "blocked", "blocked by", etc.
While fetching one or multiple issues using Jira Cloud REST APIs (v3), within the object for each issue in the response, the IDs of the issue links should have been returned in the `issuelinks` array, as per the [documentation... | Empty Array returned for Issue Links by Jira Cloud REST APIs | CC BY-SA 4.0 | null | 2023-03-04T08:52:10.753 | 2023-03-04T10:03:47.117 | null | null | 7,086,326 | [
"jira",
"jira-rest-api"
] |
75,634,590 | 2 | null | 1,304,363 | 0 | null | You can check it by running a simple C program:
```
#include <stdio.h>
#include <omp.h>
int main() {
#ifdef _OPENMP
printf("OpenMP version: %d\n", _OPENMP);
#else
printf("No OpenMP support\n");
#endif
return 0;
}
```
And then compile it with `GCC` or, as in my case, with `mpicc` by adding the flag `-f... | null | CC BY-SA 4.0 | null | 2023-03-04T08:52:17.483 | 2023-03-04T08:52:17.483 | null | null | 8,943,214 | null |
75,634,593 | 2 | null | 75,629,595 | 1 | null | You can use a transformation spec in which
- go 5 levels up (traverse once`:`, and `{` four times ) in order to reach
fields array as picking sub-arrays of data array by using `[&1]`- dissipate all returning key-value pairs through use of `[&3].` node
such as
```
[
{
"operation": "shift",
"spec": {
"ro... | null | CC BY-SA 4.0 | null | 2023-03-04T08:52:48.537 | 2023-03-04T08:52:48.537 | null | null | 5,841,306 | null |
75,634,595 | 2 | null | 75,633,822 | -1 | null | Conditionally aggregate instead
for example:-
```
DROP TABLE IF EXISTS T;
CREATE TABLE T
(dept VARCHAR(20), type int);
INSERT INTO T VALUES
('one', 41),
('one', 41),
('one', 41),
('one', 41),
('two', 52),
('one', 1),
('one', 6),
('one', 1),
('two', 1),
('three', 6);
select dept,
sum(case when type in (41... | null | CC BY-SA 4.0 | null | 2023-03-04T08:53:22.860 | 2023-03-04T08:53:22.860 | null | null | 6,152,400 | null |
75,634,596 | 2 | null | 51,046,454 | 0 | null | Install Library
```
!pip install selenium
!apt-get update
!apt install chromium-chromedriver
```
And set up a chrome driver
```
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
# Set the path to the chromedriver executable
chromedriver_path = '/usr/bin/chromedriver'
# Set the Chro... | null | CC BY-SA 4.0 | null | 2023-03-04T08:53:25.453 | 2023-03-04T08:53:25.453 | null | null | 21,330,549 | null |
75,634,597 | 1 | null | null | 0 | 19 | In all the projects I have done so far, I have stored the images in base64 format in the database. In my next projects, I will store the site on the site server. But I am not sure where to store these images. I don't want to store it in the wwroot folder. Because this developed project is constantly updated. Images in ... | Net.core Project - Where Should Pictures Be Stored? | CC BY-SA 4.0 | null | 2023-03-04T08:53:32.920 | 2023-03-04T09:48:06.277 | 2023-03-04T09:48:06.277 | 20,631,478 | 20,631,478 | [
"c#",
"image",
"asp.net-core",
"ftp",
"local-storage"
] |
75,634,598 | 1 | null | null | 0 | 19 | [](https://i.stack.imgur.com/4soPd.png)
E & G columns are dropdowns. If I select E5 cell Login, it will store the selected E5 cell time automatically. Also same for G column. But I am unable to calculate total Login hours. It is not calculating instantly.
=IF(E5<>"",IF(AND(E5<>"",CELL("address")=ADDRESS(ROW(E5),COLUMN(... | Login & Logout is not calculating instant | CC BY-SA 4.0 | null | 2023-03-04T08:54:31.677 | 2023-03-04T08:54:31.677 | null | null | 18,605,254 | [
"excel",
"excel-formula"
] |
75,634,601 | 2 | null | 75,633,668 | 0 | null | You should strive to ensure that only the presentation code and implementation code of the data layer were platform-specific, the domain layer should be completely platform-independent, as well as the interfaces of the data layer. To avoid a large number of ifs, substitute different implementations of the view and data... | null | CC BY-SA 4.0 | null | 2023-03-04T08:55:43.783 | 2023-03-04T08:55:43.783 | null | null | 8,135,850 | null |
75,634,579 | 1 | null | null | 0 | 13 | Using Windows 64, Visual Studio 2022, Cuda 12, I cannot build and use static libraries using cuda device code. Example code:
```
-----------------
File Func.cuh:
-----------------
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
__device__ void func(double d);
void hostFunc(double d);
----------------... | cuda linking error in Visual Studio when statically linking to device code | CC BY-SA 4.0 | null | 2023-03-04T08:48:35.767 | 2023-03-04T08:48:35.767 | null | null | 4,932,447 | [
"c++",
"cuda"
] |
75,634,602 | 2 | null | 75,633,529 | 1 | null | ```
Make the Parent Span tag us, Div Tag.
<header>
<div>Brain Archive</div>
<div>
<span class="material-symbols-outlined">search</span>
<span class="material-symbols-outlined">menu</span>
</div>
</header>
```
| null | CC BY-SA 4.0 | null | 2023-03-04T08:56:05.247 | 2023-03-04T08:56:05.247 | null | null | 18,209,626 | null |
75,634,600 | 1 | null | null | 2 | 71 | Here is segment I've a problem with, basically just pushing a &str to Vec<&str> in the loop
```
fn main() {
let mut accounting = vec!["Alice", "Ben"];
loop {
let mut add_input = String::from("");
io::stdin()
.read_line(&mut add_input)
.expect("Failed to read line");... | Cannot grasp "borrowed value does not live long enough", please explain | CC BY-SA 4.0 | null | 2023-03-04T08:55:10.570 | 2023-03-04T22:11:09.740 | 2023-03-04T13:38:15.813 | 724,039 | 10,889,806 | [
"rust"
] |
75,634,594 | 1 | null | null | 0 | 14 | I am trying to add some JS to my password field, so I need its ID. I am getting error:
[](https://i.stack.imgur.com/eB6eh.png)
It makes sense if I look into HTML with inspect. There are 2 identical password fields, but in my forms, I am adding ID to only one of them.
Forms:
```
class CustomUserSignUpForm(UserCreationFo... | crispy forms creating fields with id of other form | CC BY-SA 4.0 | null | 2023-03-04T08:52:55.010 | 2023-03-05T02:53:07.900 | null | null | 19,627,846 | [
"django",
"django-crispy-forms"
] |
75,634,599 | 1 | null | null | 0 | 10 | I am using [expo-auth-session](https://docs.expo.dev/versions/latest/sdk/auth-session/#providers) to create login screen with Facebook and Google. The issue is `gglResponse` (full code snippet below) is `null` on the first try. If I call the `gglPromptAsync()` again the second time, it would resolve to '`success`', ass... | Expo AuthSession does not work on the first try | CC BY-SA 4.0 | null | 2023-03-04T08:54:36.230 | 2023-03-04T08:54:36.230 | null | null | 10,931,383 | [
"react-native",
"expo",
"expo-auth-session"
] |
75,634,603 | 1 | null | null | 0 | 15 | I have AssignDb.dbml in my project which has non related tables such as RateTables having one column rateValue of type integer. I have created separate ObservableCollection class of RateTables in my project for getting values from RateTables[ObservableCollection class](https://i.stack.imgur.com/BvjfF.png) and bind it a... | How to Bind System.Data.Linq.Table<dataTable> to dataTemplete of ListBox in Dialog in WPF C#? | CC BY-SA 4.0 | null | 2023-03-04T08:56:16.077 | 2023-03-04T14:42:22.430 | 2023-03-04T14:42:22.430 | 2,395,282 | 10,692,232 | [
"c#",
"wpf",
"mvvm",
"linq-to-sql",
"prism"
] |
75,634,608 | 2 | null | 73,083,632 | 0 | null | The two fixes in the other answer didn't work for me. But I made a duplicate of the misbehaving emulator in Device Manager and this worked. I am now able to delete the original emulator and rename the copy.
| null | CC BY-SA 4.0 | null | 2023-03-04T08:57:58.257 | 2023-03-04T09:16:19.070 | 2023-03-04T09:16:19.070 | 2,227,743 | 2,876,276 | null |
75,634,609 | 1 | null | null | 0 | 13 | can you help me please [enter image description here](https://i.stack.imgur.com/ZG1fU.png)
i generated numbers but not with recursive function and no unique numbers
| Filling the 9x9 matrix randomly and non-recursively with the recursive function | CC BY-SA 4.0 | null | 2023-03-04T08:58:05.883 | 2023-03-04T08:59:56.527 | 2023-03-04T08:59:56.527 | 20,342,753 | 20,342,753 | [
"algorithm",
"recursion",
"matrix",
"random"
] |
75,634,604 | 1 | 75,635,036 | null | 0 | 42 | Here is my current code snippet, without posting all the other information, assume that everything works correctly. There is nothing wrong with the code. As an example, I am reading a text document with Grabber, a Scanner object, with one line of text that will look like this:
`5,4,6,1,10,10,10,10,0,0,0,0,`
There will ... | Is there a more efficient way to quickly edit many variables with corresponding values from a table in Java? | CC BY-SA 4.0 | null | 2023-03-04T08:56:48.707 | 2023-03-05T02:02:38.250 | 2023-03-04T09:00:05.810 | 21,330,447 | 21,330,447 | [
"java",
"arrays",
"arraylist",
"variable-assignment"
] |
75,634,610 | 2 | null | 75,409,693 | 0 | null | I somehow could not get things working using the suggested answers.
Fixed it now by installing a completely new Anaconda distribution:
[https://docs.anaconda.com/anaconda/install/index.html](https://docs.anaconda.com/anaconda/install/index.html)
| null | CC BY-SA 4.0 | null | 2023-03-04T08:58:24.473 | 2023-03-04T08:58:24.473 | null | null | 2,177,047 | null |
75,634,611 | 1 | null | null | 0 | 14 | Fatal error: Uncaught mysqli_sql_exception: Unknown database 'login' in G:\xampp\htdocs\jss\config.php:3 Stack trace: #0 G:\xampp\htdocs\jss\config.php(3): mysqli_connect('localhost', 'root', Object(SensitiveParameterValue), 'login') #1 G:\xampp\htdocs\jss\index.php(10): include('G:\xampp\htdocs...') #2 {main} thrown i... | I'm getting this error while accessing phpmyadmin on localhost: | CC BY-SA 4.0 | null | 2023-03-04T08:59:01.620 | 2023-03-04T08:59:01.620 | null | null | 21,330,578 | [
"javascript",
"php",
"html",
"css",
"mysql"
] |
75,634,612 | 2 | null | 70,958,217 | 0 | null | [SASS API](https://github.com/primefaces/primevue-sass-theme) is open source now, available at github.
| null | CC BY-SA 4.0 | null | 2023-03-04T08:59:07.540 | 2023-03-04T08:59:07.540 | null | null | 306,753 | null |
75,634,605 | 1 | 75,634,903 | null | 0 | 29 | ```
function compressImage($source, $destination, $quality) {
// Get image info
$imgInfo = getimagesize($source);
$mime = $imgInfo['mime'];
// Create a new image from file
switch($mime){
case 'image/jpeg':
$image = imagecreatefromjpeg($source);
imagejpeg($... | Getting Zero bytes File using php image resize | CC BY-SA 4.0 | null | 2023-03-04T08:57:12.567 | 2023-03-04T10:34:24.017 | 2023-03-04T09:14:16.143 | 5,389,997 | 21,330,500 | [
"php"
] |
75,634,543 | 2 | null | 75,633,853 | 1 | null | It seems that there exist multiple extensions, so filter it with some condition, explode related columns and select distincts.
```
df = spark.read.format('xml').option('rowTag', 'mods').load('mods.xml')
df.select('extension', 'relatedItem') \
.withColumn('extension', f.explode('extension')) \
.filter('extension.ac... | null | CC BY-SA 4.0 | null | 2023-03-04T08:41:16.437 | 2023-03-04T08:41:16.437 | null | null | 11,841,571 | null |
75,634,613 | 2 | null | 69,069,357 | 0 | null | Use the `forceReRender` property.
Check out the official Storybook:
[https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalbuttons--default](https://paypal.github.io/react-paypal-js/?path=/docs/example-paypalbuttons--default)
```
<PayPalButtons
style={style}
disabled={false}
forceReRender={[amo... | null | CC BY-SA 4.0 | null | 2023-03-04T08:59:07.983 | 2023-03-04T08:59:07.983 | null | null | 3,803,682 | null |
75,634,616 | 1 | null | null | 1 | 36 | I am using Chartjs to create a Chart. That Chart is being held in a ChartHold div. And even though the CSS Object has a 1px right margin the div has a 100% right margin.Because of that the other charts are under the original one but they are supposed to be next to each other
the CSS (ChartHold is the container for all ... | How to remove a 100% right margin from a div That holds a Chartjs canvas | CC BY-SA 4.0 | null | 2023-03-04T08:59:49.473 | 2023-03-04T18:18:41.277 | 2023-03-04T18:18:41.277 | 19,493,180 | 19,493,180 | [
"javascript",
"css",
"reactjs",
"charts",
"margins"
] |
75,634,560 | 1 | null | null | 0 | 16 | ```
/*Use C51 to write the program for STC89C52 single-chip microcomputer, the clock frequency is 11.0592MHZ*/
#include <reg52.h>
#define unchar unsigned char
#define unint unsigned int
#define unlint unsigned long int
#define fosc 11059200ul
#define N 500//tick=2ms
sbit led1=P1^0;
sbit dula=P2^6;
sbit wela=P2^7;
un... | clock program (6 seven-segment digital tubes) in c51 | CC BY-SA 4.0 | null | 2023-03-04T08:43:58.850 | 2023-03-04T09:07:36.717 | 2023-03-04T09:07:36.717 | 367,865 | 20,041,960 | [
"c51"
] |
75,634,607 | 1 | null | null | 0 | 13 | Be able to dynamically change the ‘Custom format colors’ of a Conditional formatting rule based on HEX (or RGB) values stored in a different cell. This should allow future changing of background/foreground colors without having to manually update each conditional formatting rule individually.
I have multiple records ... | Query - Excel - Dynamically change the custom color formats in Conditional formatting | CC BY-SA 4.0 | null | 2023-03-04T08:57:54.627 | 2023-03-04T08:57:54.627 | null | null | 1,921,454 | [
"excel",
"conditional-formatting"
] |
75,634,617 | 2 | null | 75,633,381 | 2 | null | Another option to the ones offered by @shafee would be to pass a named `list` to `pmap` with the names of the function arguments. Doing so we don't need an anonymous function which merely maps the names of the `list` passed to `pmap` to the names of the function arguments.
Moreover, at least from a `ggplot2` standpoint... | null | CC BY-SA 4.0 | null | 2023-03-04T08:59:54.487 | 2023-03-04T08:59:54.487 | null | null | 12,993,861 | null |
75,634,619 | 2 | null | 75,631,388 | 0 | null | It happens because in Query 3 every string from `strange-bird-366417.financial_data.stock_tracker_max` joins with string with sum(Qty_Shipped) from `strange-bird-366417.financial_data.tbl_shipment_data_final`.
78084/4338=18, so you have 18 * sum, but if i understand correctly you need sum of 18 values. Correct query is... | null | CC BY-SA 4.0 | null | 2023-03-04T09:00:08.810 | 2023-03-04T09:00:08.810 | null | null | 21,327,014 | null |
75,634,618 | 1 | 75,635,619 | null | 1 | 30 | i am trying to match a value using xlookup formula to find `I1` in `A` and if `H1>C` and `H1<D` return `B` i have below this but cant figure out how to make it work `=XLOOKUP(I1,A:A,B:B,,IF(AND(H1>C,H1<D),B:B,"none"))`
i have an index and match that works but im trying to learn with xlookup with multiple critera
`=IFER... | xlookup formula with more than one criteria | CC BY-SA 4.0 | null | 2023-03-04T09:00:07.887 | 2023-03-04T14:59:53.850 | 2023-03-04T14:59:53.850 | 16,220,410 | 16,220,410 | [
"excel",
"excel-formula",
"xlookup"
] |
75,634,623 | 2 | null | 75,633,945 | 1 | null | `package-lock.json` seems to be the issue in the original repo.
use the `package-lock.json` from [https://github.com/kasukur/react-amplify](https://github.com/kasukur/react-amplify)
| null | CC BY-SA 4.0 | null | 2023-03-04T09:01:53.943 | 2023-03-04T09:01:53.943 | null | null | 3,671,056 | null |
75,634,615 | 1 | null | null | 0 | 13 | I am fairly new to react and I wanted to touch base on what is the best architecture for a simple problem.
I have an array of Block components that I display on the page. Every block contains an input and a button next to it. Every time the user clicks on the input it gets focused. When the user clicks on the button ne... | best way to minimise redraw of react component | CC BY-SA 4.0 | null | 2023-03-04T08:59:34.223 | 2023-03-04T08:59:34.223 | null | null | 2,097,439 | [
"javascript",
"reactjs"
] |
75,634,620 | 1 | null | null | 0 | 28 | I need a macro to prevent the need to write the following code for over a dozen powers of 2:
```
pub(crate) fn calc(samples: &[f32]) -> Vec<Complex32> {
let buffer = samples;
let mut res = {
if buffer.len() == 2 {
let mut buffer: [_; 2] = buffer.try_into().unwrap();
... | Rust macro: generate if-else-if chain from variable number of inputs | CC BY-SA 4.0 | null | 2023-03-04T09:00:51.883 | 2023-03-04T16:41:06.867 | null | null | 2,891,595 | [
"rust",
"macros"
] |
75,634,622 | 1 | null | null | 1 | 27 | When I used the variable `based_on_timetable` in the `LET` function it return `#VALUE!`, but when I referenced `H9#` it works? Both have the same formula.
`#VALUE!` problem
1st picture showing error when I used a variable in `LET`:
[](https://i.stack.imgur.com/aN3E1.png)
The second picture is the result I want. When I ... | Why does my formula show #VALUE! when I used a variable in "LET" function, but when I referenced outside it doesn't break, both have the same formula | CC BY-SA 4.0 | null | 2023-03-04T09:01:38.473 | 2023-03-04T11:04:23.573 | 2023-03-04T09:19:04.627 | 11,683 | 16,418,017 | [
"excel",
"excel-formula"
] |
75,634,625 | 2 | null | 75,618,385 | 0 | null | I figured out the issue was tied to this configuration for compression-webpack-plugin:
```
new CompressionPlugin({
test: /\.js$|\.css$|\.html$/,
threshold: 10240,
minRatio: 0.8
})
```
One of the bundles was below the threshold size (10240) and therefore wasn't being compressed.
In many places on the web ... | null | CC BY-SA 4.0 | null | 2023-03-04T09:02:15.720 | 2023-03-04T09:34:44.390 | 2023-03-04T09:34:44.390 | 549,226 | 549,226 | null |
75,634,628 | 2 | null | 75,345,434 | 0 | null | @Graphite Thank you man but is weird google forget the import 'dart:typed_data'.
| null | CC BY-SA 4.0 | null | 2023-03-04T09:02:42.837 | 2023-03-04T09:02:42.837 | null | null | 21,330,582 | null |
75,634,621 | 1 | null | null | 0 | 9 | I'm working on a city soundscape for a project (live model here: [https://drush92.github.io/nftaudiometaverse/nftropolis/](https://drush92.github.io/nftaudiometaverse/nftropolis/) )
I have loaded some audio using:
```
let audioFile = 'audio/police_officer.wav';
// load a sound and set it as the PositionalAudio object's... | How can I change audio sources with three.js' THREE.AudioLoader? | CC BY-SA 4.0 | null | 2023-03-04T09:00:57.990 | 2023-03-04T09:00:57.990 | null | null | 20,952,067 | [
"javascript",
"three.js",
"web-audio-api"
] |
75,634,629 | 1 | null | null | 0 | 9 | I'm building an application and want to receive firebase notification on both mobile and wear app, both app having the same package name. I've using FirebaseMessagingService class in both mobile app and wear app. Mobile app receiving notification successfully while wear app not getting any notification. I do google too... | How to set firebase notification on WearOs | CC BY-SA 4.0 | null | 2023-03-04T09:02:52.647 | 2023-03-04T09:02:52.647 | null | null | 7,090,806 | [
"android",
"push-notification",
"firebase-cloud-messaging",
"wear-os"
] |
75,634,626 | 1 | null | null | 0 | 15 | First time i am using Ktor in my android project I am not getting response from server, my requirement is to make a POST request with JSON in body
request format of JSON as
```
{
"country": "Malaysia"
}
```
I tried on postman it is working fine, but not working with Ktor client
I am trying to make json from a hashM... | Fail to get POST response from Server, using Ktor Client android | CC BY-SA 4.0 | null | 2023-03-04T09:02:16.763 | 2023-03-05T05:45:37.920 | null | null | 2,130,718 | [
"android",
"kotlinx.serialization",
"ktor-client"
] |
75,634,624 | 1 | null | null | -1 | 28 | I have the below program to convert my class into JSON object using Nlohmann JSON, When I used the it gave an error, but when I used the it gave me the JSON object.
Here is my Code from VS2022:
```
#include <iostream>
#include <array>
#include "nlohmann/json.hpp"
using namespace nlohmann;
using namespace std;
type... | nlohmann Json not working with std::array<unsinged char, SIZE> | CC BY-SA 4.0 | null | 2023-03-04T09:01:56.340 | 2023-03-04T19:16:15.137 | 2023-03-04T19:16:15.137 | 7,591,413 | 7,591,413 | [
"c++",
"arrays",
"json",
"unsigned-char",
"nlohmann-json"
] |
75,634,631 | 2 | null | 75,634,630 | 0 | null | ThreadPool is something of a poor relation in escaping the same scrutiny in documentation as the rest of python standard library.
In my code-under-test, I was creating it exactly as shown above. I never saw any complaints. Admittedly I'd never run it on a modern version of python before (today I'm using 3.11).
The pref... | null | CC BY-SA 4.0 | null | 2023-03-04T09:02:53.327 | 2023-03-04T09:02:53.327 | null | null | 866,333 | null |
75,634,630 | 1 | null | null | 0 | 7 | I found this error running pytest from the command line. All my tests still passed but it bothers me:
```
Exception ignored in: <function Pool.__del__ at 0x000001F5C70214E0>
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\multiprocessing\pool.py", line 271, in __del__
self._change_notifier... | pytest command reports "Exception ignored" and "OSError: [WinError 6] The handle is invalid" | CC BY-SA 4.0 | null | 2023-03-04T09:02:53.327 | 2023-03-04T09:02:53.327 | null | null | 866,333 | [
"python",
"threadpool"
] |
75,634,635 | 2 | null | 75,634,420 | 0 | null | A python newbie too. :)
This web page may use asynchronous loading methods such as ajax, and using python's requests library directly can only get the static source code of the web page. In this static source code(you can use ctrl+U to have a look), you can't find the class element ('div',{'class':'thumb'}). That's why... | null | CC BY-SA 4.0 | null | 2023-03-04T09:03:20.247 | 2023-03-04T09:06:12.420 | 2023-03-04T09:06:12.420 | 20,612,180 | 20,612,180 | null |
75,634,637 | 2 | null | 44,525,746 | 0 | null | I was getting this warning even if I am not in any angular project,
later I realized that I have mistakenly created the angular project in the root folder directly and forgot to delete the `node_modules`, `package.json`, and `package-lock.json`
So no matter which directory I move into I was getting this warning.
If you... | null | CC BY-SA 4.0 | null | 2023-03-04T09:04:57.650 | 2023-03-04T09:04:57.650 | null | null | 11,719,787 | null |
75,634,636 | 1 | null | null | -1 | 42 | ```
# welcome to the game
print("-- Hello and welcome to the 'response time game' --")
print("-- In this game you will be prompted to press 'ENTER' after 'x' amount of seconds --")
print("-- LETS SEE HOW GOOD YOU ARE WITH TIME --")
print(' ')
# specify how many rounds you want to play
rounds = False
while type(rounds... | Having issue trying to print a statement for this loop | CC BY-SA 4.0 | null | 2023-03-04T09:03:50.953 | 2023-03-04T09:18:50.747 | 2023-03-04T09:09:35.987 | 2,011,147 | 21,330,504 | [
"python",
"loops",
"for-loop",
"while-loop",
"printing"
] |
75,634,633 | 1 | null | null | 2 | 74 | [[expr.prim.req.compound]](http://eel.is/c++draft/expr.prim#nt:compound-requirement) contains an example:
> [[1](http://eel.is/c++draft/expr.prim#req.compound-example-1): Given concepts C and D,```
requires {
{ E1 } -> C;
{ E2 } -> D<A1, …, An>;
};
```
is equivalent to```
requires {
E1; requires C<decltype((E1))>... | Is the compound-requirement syntax just syntactic sugar for a simple-requirement followed by a nested-requirement? | CC BY-SA 4.0 | null | 2023-03-04T09:03:10.897 | 2023-03-04T09:03:10.897 | null | null | 5,825,294 | [
"c++",
"language-lawyer",
"c++20",
"c++-concepts"
] |
75,634,634 | 1 | null | null | -1 | 25 | I'm trying to multiprocess following `snake_process` function of the following code. I tried reading docs to make it using `multiprocessing.pool`, but I failed.
```
agent = Agent()
def snake_process(x, snakes, snake, nets, max_score, ge):
# print("process no "+str(x))
while True:
state_old, dis_old = a... | How can I multiprocess this python function? | CC BY-SA 4.0 | null | 2023-03-04T09:03:13.877 | 2023-03-04T09:03:13.877 | null | null | 21,322,693 | [
"python",
"python-3.x",
"multiprocessing",
"python-multiprocessing"
] |
75,634,614 | 2 | null | 75,631,454 | 1 | null | I cannot recreate the output so something seems to be missing. In my tests the backslashes went missing, which I expected
as I don't recall there is special code for handling newlines in a double quoted scalar, and AFAICT that
was only added for folded block style scalars, but that was not the problem.
There are a few ... | null | CC BY-SA 4.0 | null | 2023-03-04T08:59:33.590 | 2023-03-04T14:32:04.027 | 2023-03-04T14:32:04.027 | 1,307,905 | 1,307,905 | null |
75,634,632 | 2 | null | 72,301,179 | 0 | null | try this:
Step 1
```
private void get_files_to_delete() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
List<Uri> uri_list = new ArrayList<>();
// File my_folder = new File(Environment.getExternalStorageDirectory().getPath()+"/"+"Your folder");
File my_single_file = ... | null | CC BY-SA 4.0 | null | 2023-03-04T09:02:57.030 | 2023-03-04T09:02:57.030 | null | null | 13,243,154 | null |
75,634,641 | 1 | null | null | -4 | 43 | How to make age to be string from array javascript by function base on key change number to string. don't update original value.
```
const user = [
{id: 1, name: 'john', age: 32},
{id: 2, name: 'Chris', age: 33},
{id: 3, name: 'Write', age: 34}
];
const newUser = user.map(item => item.age.toString());
con... | how to convert number to string value from array javascript | CC BY-SA 4.0 | null | 2023-03-04T09:06:25.893 | 2023-03-04T12:08:59.690 | 2023-03-04T12:08:59.690 | 4,284,627 | 14,942,898 | [
"javascript"
] |
75,634,561 | 1 | null | null | 0 | 11 | I try to deploy a rails-react app and get an unexpected behaviour. When I try to deploy, deployment fails under certain conditions. I use Rails 7 with esbuild in combination with React. The deployment happens through Capistrano.
When I first tried to deploy the app from development to production I had yarn/node complai... | Rails-React app deployment fails on esbuild bundling because of inconsistent case-sensitiveness | CC BY-SA 4.0 | null | 2023-03-04T08:44:04.603 | 2023-03-04T08:44:04.603 | null | null | 4,779,531 | [
"node.js",
"reactjs",
"ruby-on-rails",
"yarnpkg",
"esbuild"
] |
75,634,640 | 2 | null | 75,634,576 | 0 | null | Supposing you want a list of list where inner list contains the values in each row, you need to change the `for` loop like -
```
for i in range(n):
lst.append(list(map(int, input().split())))
print(lst)
```
The output will be like -
```
[[6, 1], [7, 3], [4, 2], [10, 5], [12, 4]]
```
In your code you are overwriti... | null | CC BY-SA 4.0 | null | 2023-03-04T09:05:51.290 | 2023-03-04T09:05:51.290 | null | null | 5,293,112 | null |
75,634,638 | 1 | 75,634,854 | null | 0 | 24 |
```
SizedBox(
width: size.width,
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(left: 10, bottom: 10, top: 10),
child: ClipRRect(
borderRadius: BorderRadius.circular(100),
child: Image.asset(
... | Flutter align IconButton to the right in Row | CC BY-SA 4.0 | null | 2023-03-04T09:05:32.587 | 2023-03-04T10:10:49.967 | 2023-03-04T10:10:49.967 | 13,431,819 | 12,533,416 | [
"flutter",
"row",
"iconbutton"
] |
75,634,648 | 2 | null | 75,628,117 | 0 | null | Try using JQuery to dynamically change the modal form action
```
// listener to permission button
$('.permission').click(function() {
// Get user ID
var userId = $(this).attr('value');
// Set user ID as form action
$('#modal-center form').attr('action', '<?php echo base_url('User/add_mem_to_group/'); ?>' + user... | null | CC BY-SA 4.0 | null | 2023-03-04T09:07:30.417 | 2023-03-04T09:07:30.417 | null | null | 16,249,416 | null |
75,634,645 | 1 | null | null | 0 | 16 | I want to set the seed number in `ergm`, so that my network analysis is reproducible, but when I run
```
main_sup <- ergm(supnet ~ edges + nodefactor("work") +
nodefactor("income") + nodefactor("edu") +
nodefactor("religious") + nodefactor("gender") +
no... | setting seed number for ergm in statnet R | CC BY-SA 4.0 | null | 2023-03-04T09:07:11.830 | 2023-03-04T18:46:34.790 | 2023-03-04T18:44:49.737 | 12,685,768 | 21,320,440 | [
"r",
"random-seed",
"statnet"
] |
75,634,647 | 1 | 75,635,025 | null | -1 | 30 | I'm doing a DNS server, to have a fine-grained control I'm using typenum when I need to use like 3 or 4 bits integer.
```
use typenum::U4;
pub fn from_num(num: U4) -> ResultCode {
match num {
0 => ResultCode::NOERROR,
1 => ResultCode::FORMERR,
2 => ResultCode::SERVFAIL,
... | Not sure how to use typenum type in match | CC BY-SA 4.0 | null | 2023-03-04T09:07:18.387 | 2023-03-04T10:21:51.150 | 2023-03-04T09:45:51.713 | 14,902,846 | 14,902,846 | [
"rust"
] |
75,634,644 | 1 | null | null | 1 | 15 | I am developing a Minecraft Fabric mod with custom player stats.
Here is how I created a custom player stat:
```
public class ModStats {
public static final Identifier MINING_STAT = new Identifier(ExampleMod.MOD_ID, "mining_stat");
public static void registerModStats() {
Registry.register(Registries.CU... | How to get the value of a player statistic? | CC BY-SA 4.0 | null | 2023-03-04T09:06:42.887 | 2023-03-05T02:20:25.777 | 2023-03-05T02:20:25.777 | 3,750,257 | 7,127,837 | [
"java",
"minecraft",
"minecraft-fabric"
] |
75,634,651 | 1 | null | null | 0 | 15 | I am trying to use the beyondcode. But now I am getting this error in my console. Please help me how can I solve this.
```
# POST http://localhost:5173/broadcasting/auth 404 (Not Found)
```
| 404 not found when using beyondcode | CC BY-SA 4.0 | null | 2023-03-04T09:07:58.537 | 2023-03-04T14:55:37.430 | 2023-03-04T14:55:37.430 | 1,998,801 | 18,240,465 | [
"reactjs",
"laravel"
] |
75,634,653 | 1 | null | null | 0 | 7 | [enter image description here](https://i.stack.imgur.com/uUJ48.jpg)I would like to put the title of each category at the top of the page (category and subcategories) that the client will be able to navigate. I hope that I have expressed well!, attached image. thank you !!!
| Show category in products page woocommerce | CC BY-SA 4.0 | null | 2023-03-04T09:08:23.687 | 2023-03-04T09:09:25.210 | 2023-03-04T09:09:25.210 | 16,521,106 | 16,521,106 | [
"woocommerce",
"header",
"categories",
"show",
"title"
] |
75,634,650 | 2 | null | 58,468,719 | 0 | null | i got clangd to work on visual studio code with mingw-w64 compiler, CMAKE and SFML doing the following:
1. install Clangd extension in visual studio code.
2. CMAKE must create the compile_commands.json file. This is done via set(CMAKE_EXPORT_COMPILE_COMMANDS ON), which you already did.
3. create a .clangd file in root... | null | CC BY-SA 4.0 | null | 2023-03-04T09:07:56.253 | 2023-03-04T09:07:56.253 | null | null | 1,634,638 | null |