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,631,385 | 2 | null | 75,624,553 | 0 | null | While the answer by Bugumil will be a typical approach, in some scenarios it is worth knowing that it is possible to generate a PDF from a `DataFrame` without going through LaTeX. This can be done via one Julia's plotting interfaces. For an example:
```
using Plots
gr()
plt = plot(;legend=nothing,xaxis=false,yaxis=fals... | null | CC BY-SA 4.0 | null | 2023-03-03T19:57:17.210 | 2023-03-03T19:57:17.210 | null | null | 9,957,710 | null |
75,631,379 | 2 | null | 75,631,318 | 1 | null | If I understand the question/issue correctly you are wanting to add this `"text-oiOrange"` class to the list item (`li`) element, e.g. the text that is actually displayed. You can use the `children` render function for this to apply the active styling to the `li` element instead of the anchor tag that `NavLink` is rend... | null | CC BY-SA 4.0 | null | 2023-03-03T19:56:29.590 | 2023-03-03T19:59:30.150 | 2023-03-03T19:59:30.150 | 8,690,857 | 8,690,857 | null |
75,631,384 | 2 | null | 75,631,146 | 2 | null | SQL Server does not implement this.
> I'm looking for a solution that lets me do it in a calculated column
-- all within a single SELECT query (no subqueries, joins, WITH, etc.)
It's possible but not pretty ([DB Fiddle](https://dbfiddle.uk/naKlQFfF)).
Assuming population is a positive integer then you could use the bel... | null | CC BY-SA 4.0 | null | 2023-03-03T19:57:05.627 | 2023-03-03T21:37:56.877 | 2023-03-03T21:37:56.877 | 73,226 | 73,226 | null |
75,631,386 | 1 | 75,631,722 | null | 1 | 22 | Please tell me what is wrong here, I've been digging the internet over 3 days and can't find the solution.
```
import pandas as pd
import os
import glob
folder_name = input("Please insert the folder name to locate databases: ")
diskD = glob.glob("D:/*/{folder_name}/*.*".format, root_dir="D:", dir_fd=1, recursive=True)... | How do I locate files with glob lib in Python and print them | CC BY-SA 4.0 | null | 2023-03-03T19:57:26.367 | 2023-03-03T20:45:50.063 | null | null | 21,175,463 | [
"python",
"glob"
] |
75,631,364 | 1 | null | null | 0 | 14 | I'm having many issues installing tabulizer in R 4.4 on my Mac OS13. I've reproduced the error message below. I've tried every other suggestion on stack and nothing seems to do the trick. I've verified the rJava is installed. Thanks for any help!
> remotes::install_github(c("ropensci/tabulizerjars", "ropensci/tabulizer... | Issues installing tabulizer in R on Mac OS13 and R 4.4 | CC BY-SA 4.0 | null | 2023-03-03T19:54:13.710 | 2023-03-03T19:54:13.710 | null | null | 21,328,320 | [
"r",
"rjava",
"tabulizer"
] |
75,631,378 | 1 | null | null | 0 | 16 | I have a list of columns of a dataframe that have NA's in them (below). The `dtype` of all these columns is `str`.
```
X_train_objects = ['HomePlanet',
'Destination',
'Name',
'Cabin_letter',
'Cabin_number',
'Cabin_letter_2']
```
I would like to use `SimpleImputer` to fill in the NA's will the most common value (m... | sklearn.impute.SimpleImputer: Unable to fill in the most common value for a list of dataframe columns | CC BY-SA 4.0 | null | 2023-03-03T19:56:27.497 | 2023-03-04T20:52:52.690 | null | null | 3,713,236 | [
"python",
"pandas",
"scikit-learn",
"imputation"
] |
75,631,389 | 1 | null | null | 0 | 11 | I have an angular app. There I have a route ('home') protected by a routeGuard.
I locally save the username and hash(password) if the user has signed in once and on app load I fetch them and initiate the signin process, which is a server call and takes some time.
Now if I reopen the app by hitting the home route (https... | Angular - Re-Trigger router guard | CC BY-SA 4.0 | null | 2023-03-03T19:58:06.453 | 2023-03-03T19:58:46.093 | 2023-03-03T19:58:46.093 | 3,417,377 | 3,417,377 | [
"angular",
"angular-ui-router",
"angular-router",
"angular-router-guards"
] |
75,631,391 | 1 | null | null | -2 | 16 | import excel Miles driven.xls
using required
r(100);
How do i fix this?
| Trying to import excel xls file into stata but keep getting an error | CC BY-SA 4.0 | null | 2023-03-03T19:58:23.157 | 2023-03-03T20:01:15.070 | 2023-03-03T20:01:15.070 | 18,776,803 | 18,776,803 | [
"excel",
"import",
"stata"
] |
75,631,390 | 1 | null | null | 0 | 12 | Im trying to create an action when a user meta value is updated, swap the values.
but nothing is happening, any ideay why ?
```
function my_checkout_update_user_meta( $user_id ) {
if(pll_current_language() == 'he')
{
$first_name_input = isset($_POST['billing_first_name']) ? sanitize_text_field($_POST['... | Wordpress Action "update_user_meta" reading and updating | CC BY-SA 4.0 | null | 2023-03-03T19:58:17.757 | 2023-03-03T19:58:17.757 | null | null | 1,941,008 | [
"php",
"hook-woocommerce"
] |
75,631,387 | 1 | null | null | 0 | 9 | When I try to "debug" cell of jupyter notebook opened in vscode, I get following message:
> Ipykernel setup required for this feature
When I click on current kernel button (red boxed below), it show me following available kernels:
[](https://i.stack.imgur.com/EZyEM.png)
Note that the current kernel correspond to Python... | Vscode jupyter notebook requires ipykernel | CC BY-SA 4.0 | null | 2023-03-03T19:57:45.340 | 2023-03-03T19:57:45.340 | null | null | 6,357,916 | [
"python",
"visual-studio-code",
"jupyter-notebook",
"jupyter",
"ipython"
] |
75,631,382 | 2 | null | 75,623,747 | 0 | null | There are two ways to produce an with UNICODE:
- `ä`- `a``̈`
All other vowels and the too are in the same situation: there are these two ways to produce them.
To deal with this state of affairs, you can simply consider the two possibilities in your pattern, but you can also use the [Normalizer from the intl](https:/... | null | CC BY-SA 4.0 | null | 2023-03-03T19:56:53.367 | 2023-03-03T20:58:13.010 | 2023-03-03T20:58:13.010 | 2,255,089 | 2,255,089 | null |
75,631,388 | 1 | 75,634,794 | null | 0 | 50 | I am trying to do a simple join of two different tables `stock_tracker_max` and `tbl_shipment_data_final`. However, one of the SUMs I get post join is completely wrong.
```
SELECT
a.Stock_Tracker
,SUM(a.Qty_Invoiced) as Qty_Invoiced
,SUM(a.Qty_Received) as Qty_Received
FROM `strange-bird-366417.financial_data.stoc... | LEFT JOIN generating the wrong SUM | CC BY-SA 4.0 | null | 2023-03-03T19:58:04.820 | 2023-03-04T15:30:39.933 | 2023-03-03T20:03:33.013 | 20,777,937 | 20,777,937 | [
"sql",
"google-bigquery"
] |
75,631,393 | 1 | 75,631,507 | null | -3 | 27 | I am using ScreenUtilInit and this error is occurred,
```
The argument type 'MaterialApp Function()' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget?)',
```
This is the flutter code segment, and how can I solve this issue
```
class MyApp extends StatelessWidget {
const MyApp({super.key}... | How can I solve this issue, The argument type 'MaterialApp Function()' can't be assigned error | CC BY-SA 4.0 | null | 2023-03-03T19:58:35.783 | 2023-03-04T04:38:51.687 | 2023-03-04T04:38:51.687 | 19,673,961 | 19,673,961 | [
"flutter",
"dart"
] |
75,631,396 | 2 | null | 59,024,379 | 0 | null | For .NET core 6, 7 and 8, edit .vscode/launch.json and add `"uriFormat": "%s/swagger"` like this :
```
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
"uriFormat": "%s/swagger"
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:59:00.927 | 2023-03-03T19:59:00.927 | null | null | 3,884,581 | null |
75,631,394 | 2 | null | 52,513,955 | 0 | null | You can scan man pages for mentions of CAP_, which won't of course be conclusive.
```
LIST="epoll_ctl fcntl fstat io_getevents io_submit ioctl lseek mmap mprotect munmap read recvfrom recvmsg rt_sigaction sched_yield select sendmsg sendto socket stat sysdigevent write"
$ for S in $LIST ; do \
echo "syscall: $S" ; \... | null | CC BY-SA 4.0 | null | 2023-03-03T19:58:37.690 | 2023-03-03T19:58:37.690 | null | null | 537,673 | null |
75,631,397 | 2 | null | 65,640,708 | 0 | null | If you are using Google 'Programmable Search Engine' with CloudFlare, add `data-cfasync="false"` attibure to the `<script>` tag to make it work:
```
<script async data-cfasync="false" src="https://cse.google.com/cse.js?cx=xxxxxxxxxxxxxxx"></script>
```
Otherwise it may not work correctly with no or blank display.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:59:02.077 | 2023-03-03T20:00:43.987 | 2023-03-03T20:00:43.987 | 2,590,824 | 2,590,824 | null |
75,631,400 | 2 | null | 75,629,387 | -1 | null | I just sorted the issue.
The issue was I was declaring
var heightCon:NSLayoutConstraint!
as local.
I just declare the same in Global.
Following is the code sorted the issue.
```
var heightCon:NSLayoutConstraint!
@objc func tapLabel(gesture: UITapGestureRecognizer) {
isExpanded.toggle()
if let constr... | null | CC BY-SA 4.0 | null | 2023-03-03T19:59:19.923 | 2023-03-03T19:59:19.923 | null | null | 1,917,822 | null |
75,631,392 | 2 | null | 75,631,322 | 0 | null | First create a yearmon variable which internally represents a date by year + fraction where fraction is 0, 1/12, ..., 11/12 for the 12 months. Then we can use that or convert to Date giving several possibilities.
```
library(zoo)
months_since_1960 <- c(0, 1, 12, 13, 24, 25)
ym <- as.yearmon(1960) + months_since_1960 ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:58:24.537 | 2023-03-03T20:24:58.190 | 2023-03-03T20:24:58.190 | 516,548 | 516,548 | null |
75,631,398 | 2 | null | 75,627,887 | 0 | null | ```
add_action('woocommerce_payment_complete', 'custom_msg_customer_process_order' );
function custom_msg_customer_process_order( $order_id ) {
$order = wc_get_order( $order_id );
// Quit early if not a valid order.
if ( ! $order ) {
return;
}
$cart_reg = $order->get_items();
foreach( $... | null | CC BY-SA 4.0 | null | 2023-03-03T19:59:05.827 | 2023-03-04T12:21:16.297 | 2023-03-04T12:21:16.297 | 3,326,406 | 3,326,406 | null |
75,631,404 | 2 | null | 43,539,332 | 0 | null | Also, if you are using Laravel Forge you can change the default time zone for your server.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:59:52.890 | 2023-03-03T19:59:52.890 | null | null | 6,389,167 | null |
75,631,401 | 2 | null | 75,631,084 | 0 | null | If you don't want to use seaborn but rather matplotlib, you could do:
```
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({
'date': ['2021-10-01']*3 + ['2021-11-11', '2021-11-12'],
'product_group': ['A', 'C', 'Z', 'A', 'B'],
'quantity': [10,10,80,13,5]
})
# pivot values into columns... | null | CC BY-SA 4.0 | null | 2023-03-03T19:59:24.727 | 2023-03-03T20:00:30.563 | 2023-03-03T20:00:30.563 | 5,240,684 | 5,240,684 | null |
75,631,399 | 1 | null | null | 0 | 10 | The times measured by Curl look confusing - I am always seeing that [APPCONNECT_TIME](https://curl.se/libcurl/c/CURLINFO_APPCONNECT_TIME.html) is higher than even TOTAL_TIME. I also expect APPCONNECT_TIME being less than STARTRANSFER_TIME because the latter measures when the first byte is received while APPCONNECT_TIME... | Why does time_starttransfer is higher than the total_time? | CC BY-SA 4.0 | null | 2023-03-03T19:59:17.550 | 2023-03-03T19:59:17.550 | null | null | 8,363,393 | [
"curl",
"pycurl"
] |
75,631,403 | 2 | null | 75,631,368 | 0 | null | Use some basic functions to get the size of your data.
Try:
```
wb <- createWorkbook()
addWorksheet(wb, "Data")
writeData(wb, "Data", iris)
col_num <- ncol(iris)
row_num <- nrow(iris)
conditionalFormatting(wb, "Data", cols = 1:col_num, rows = 1:row_num, type = "contains", rule = "A")
saveWorkbook(wb, "iris.xls... | null | CC BY-SA 4.0 | null | 2023-03-03T19:59:29.000 | 2023-03-03T20:01:14.550 | 2023-03-03T20:01:14.550 | 21,227,705 | 21,227,705 | null |
75,631,405 | 1 | null | null | -2 | 12 | [enter image description here](https://i.stack.imgur.com/VIbKp.jpg)
Undefined function .intelephense(1010)
| Undefined function .intelephense(1010) | CC BY-SA 4.0 | null | 2023-03-03T19:59:56.043 | 2023-03-03T19:59:56.043 | null | null | 21,328,337 | [
"php",
"mysql",
"function",
"undefined",
"intelephense"
] |
75,631,410 | 2 | null | 75,484,653 | 0 | null | In your package-lock.json file you should be able to find what it's a dependency on. In my case it was babel-plugin-module-resolver which I upgraded to 5.0.0 to resolve the issue.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:00:21.373 | 2023-03-03T20:00:21.373 | null | null | 21,328,363 | null |
75,631,402 | 1 | null | null | -1 | 26 | I am new to java and mockito, trying to mock my
```
//kinesisClient is of type KinesisAsyncClient
PutRecordResponse result = kinesisClient.putRecord(putRecordRequest).get();
```
like below:
```
KinesisAsyncClient kinesisClient = mock(KinesisAsyncClient.class);
PutRecordResult res = mock(PutRecordResult.class);
res.set... | No suitable method found for thenReturn | CC BY-SA 4.0 | null | 2023-03-03T19:59:27.837 | 2023-03-03T20:29:29.277 | null | null | 9,338,509 | [
"java",
"mockito",
"amazon-kinesis"
] |
75,631,411 | 2 | null | 75,631,166 | 0 | null | The error message is stating that it does not like your use of require, and to use import instead. If you want to use require, check your packages.json file and change
```
"type":"module" or "type":"whatever_it_is_right_now" to "type":"commonjs"
```
This will allow the require to work for your imports
| null | CC BY-SA 4.0 | null | 2023-03-03T20:00:25.773 | 2023-03-03T20:00:25.773 | null | null | 3,745,425 | null |
75,631,407 | 1 | null | null | 2 | 59 | For example, 123456789 in binary is `111010110111100110100010101`. The max number of consecutive 1-bits is `4`. I got interested in solving that efficiently for very large numbers (million bits or even more). I came up with this:
```
def onebits(n):
ctr = 0
while n:
n &= n >> 1
ctr += 1
retu... | Fast way to find max number of consecutive 1-bits in million-bit numbers | CC BY-SA 4.0 | null | 2023-03-03T20:00:05.657 | 2023-03-04T15:40:49.070 | 2023-03-03T20:03:50.450 | 12,671,057 | 12,671,057 | [
"python",
"performance",
"binary",
"biginteger"
] |
75,631,409 | 1 | null | null | 0 | 15 | I wanted to use my ESP32 Cam as camera in Homekit. I found an interesting project which works without bridge, but I have trouble to get it to work. I did in the Terminal on a Mac with MacOS Ventura:
```
cd /Users/<user>/Desktop/Skripte/Mikrocontroller/HomeKit
git clone https://github.com/maximkulkin/esp32-homekit-camer... | ESP32 in HomeKit "cmake" must be available on the PATH to use idf.py | CC BY-SA 4.0 | null | 2023-03-03T20:00:15.637 | 2023-03-04T06:58:02.693 | 2023-03-04T06:58:02.693 | 20,143,530 | 20,143,530 | [
"cmake",
"terminal",
"esp32",
"homekit"
] |
75,631,414 | 1 | null | null | -1 | 9 | PLS HELP
when i run this code on google cloud plateform it generate error
while running on jupyter and on windown python it work
please help might there little mistake in code
```
symbol_CCXT = 'BTC/USDT:USDT'
leverage = 0.3
SMA_ST = 3
SMA_LT = 5
interval = '1m'
import time
import requests
import pandas as pd
import n... | If using all scalar values, you must pass an index [Google Cloud Plateform] | CC BY-SA 4.0 | null | 2023-03-03T20:00:51.380 | 2023-03-03T20:00:51.380 | null | null | 20,873,369 | [
"python",
"pandas",
"numpy",
"google-cloud-platform",
"binance"
] |
75,631,415 | 2 | null | 75,612,642 | 0 | null | Try with [line.new](https://www.tradingview.com/pine-script-reference/v5/#fun_line%7Bdot%7Dnew) (xloc.bar_time)
Something like that:
```
//@version=5
indicator("test", overlay = true)
i_timeFrom = timestamp("2023-03-01 03:46:02.000")
i_price = 1.06736
if barstate.islast
hl_q = line.new(i_timeFrom, i_price, t... | null | CC BY-SA 4.0 | null | 2023-03-03T20:00:54.423 | 2023-03-03T20:00:54.423 | null | null | 5,577,188 | null |
75,631,413 | 2 | null | 75,631,246 | 1 | null | One option would be to use a `reactive` or a `reactiveVal` to pass the state of your button as an argument to the module 2 server:
```
library(shiny)
mod_1_ui <- function(id) {
ns <- NS(id)
fluidRow(
column(
width = 3,
radioButtons(
ns("dist"),
"Distribution type:",
c(
... | null | CC BY-SA 4.0 | null | 2023-03-03T20:00:37.303 | 2023-03-03T20:00:37.303 | null | null | 12,993,861 | null |
75,631,395 | 1 | null | null | 0 | 7 | i'm trying to install avif library and appear this in my console.
> `PS C:\Users\s\OneDrive\Escritorio\apis> pip install avif
Collecting avif
Using cached avif-0.5.0.tar.gz (12 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requiremen... | trying to install avif library python | CC BY-SA 4.0 | null | 2023-03-03T19:58:43.400 | 2023-03-03T19:58:43.400 | null | null | 14,879,446 | [
"python",
"dependencies",
"upgrade"
] |
75,631,416 | 2 | null | 75,630,854 | 2 | null | To answer your question, I don't think you can change the behavior of `git pull` to do this. You could create an alias to loop through each local branch name and fetch that branch, perhaps like this (in bash):
```
git for-each-ref --format='%(refname:short)' refs/heads/ | xargs git fetch origin
```
, since the reason ... | null | CC BY-SA 4.0 | null | 2023-03-03T20:00:58.377 | 2023-03-03T20:09:41.280 | 2023-03-03T20:09:41.280 | 184,546 | 184,546 | null |
75,631,417 | 1 | null | null | 0 | 6 | [enter image description here](https://i.stack.imgur.com/SwHDm.jpg)
Why is each section trimmed and cut off like this
| why does my crystal report builder in VS 2022 look like this. things are all cut off | CC BY-SA 4.0 | null | 2023-03-03T20:01:05.870 | 2023-03-03T20:01:05.870 | null | null | 8,266,792 | [
"crystal-reports",
"visual-studio-2022"
] |
75,631,420 | 2 | null | 75,630,956 | 0 | null | As noted in the comment you can use `coalesce`, a `dplyr` function:
```
library(dplyr)
df %>%
mutate(Column_C = coalesce(Column_A, Column_B)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:01:35.787 | 2023-03-03T20:01:35.787 | null | null | 8,039,978 | null |
75,631,419 | 2 | null | 75,631,151 | 2 | null | A more compact version might look like:
```
let mut file = File::open(path)
.or_else(|_| File.create(path))
.expect(format!("issue reading or creating file: {}", e));
```
Where you can get most of that done in one shot. You can always switch to a more `panic!` driven style, but in practice you'll want to steer... | null | CC BY-SA 4.0 | null | 2023-03-03T20:01:20.407 | 2023-03-03T23:15:41.417 | 2023-03-03T23:15:41.417 | 87,189 | 87,189 | null |
75,631,423 | 1 | null | null | 0 | 10 | I want to transfer an array from an Inertia form array to django.
In the debug window it's shown as `test[0] = 1`, `test[1] = 2`.
Neither calling `request.POST.get("test")` nor `request.POST.getlist("test")` nor `request.POST.getlist("test[]")` returns me a usable list.
My form object looks as follows (data is hard cod... | Trying to retrieve array from django QueryDict | CC BY-SA 4.0 | null | 2023-03-03T20:02:01.877 | 2023-03-03T20:06:49.123 | 2023-03-03T20:06:49.123 | 9,699,530 | 9,699,530 | [
"django",
"inertiajs"
] |
75,631,418 | 1 | null | null | 0 | 13 | I have to use two tools together in a SLURM system with many cores, in a Python wrapper.
- `mpirun -np 4 -oversubscribe --bind-to none python run_solver1.py`- `mpirun -np 80 solver2 -parallel`
What I need is to still use the same syntax as the first case, but also include the second solver in the python script: `mpirun... | mpirun, Python, and task mapping | CC BY-SA 4.0 | null | 2023-03-03T20:01:07.237 | 2023-03-03T20:17:27.983 | 2023-03-03T20:17:27.983 | 10,002,140 | 10,002,140 | [
"python",
"parallel-processing",
"mpi",
"coupling"
] |
75,631,381 | 1 | null | null | 0 | 3 | I have an error in my WINBUGS code and I'm not sure how to fix it.
In the "Model Specification" step, the model is syntatically correct. After loading my data and trying to hit the compile button, I got this error:
Could someone please help me? My model is provided below:
```
model
{ # *** PROGRAM STARTS
for(i in 1:n... | Error in WinBugs: array index is greater than array upper bound for na | CC BY-SA 4.0 | null | 2023-03-03T19:56:44.683 | 2023-03-03T19:56:44.683 | null | null | 21,328,272 | [
"bayesian",
"bayesian-networks",
"winbugs"
] |
75,631,408 | 2 | null | 75,631,407 | 3 | null | Yes, we can do it in O(b log b) time by developing that idea further.
With an [exponential search](https://en.wikipedia.org/wiki/Exponential_search).
Note that by cutting off each streak's top 1-bit, that also widens the gaps between streaks. Originally, streaks were separated by at least 0-bit. After cutting off each... | null | CC BY-SA 4.0 | null | 2023-03-03T20:00:05.657 | 2023-03-04T15:40:49.070 | 2023-03-04T15:40:49.070 | 12,671,057 | 12,671,057 | null |
75,631,424 | 2 | null | 63,191,842 | 0 | null | You need to add `fill=current` to the `path` tag in your svg file before passing any `fill` value to the SVG React component.
So, your component should be something like this
```
import { ReactComponent as YourIcon } from 'assets/icons/yourIcon.svg';
const SVGIcon = ({ fill }) => (
<YourIcon fill={fill} />
)
```
An... | null | CC BY-SA 4.0 | null | 2023-03-03T20:02:11.920 | 2023-03-03T20:02:11.920 | null | null | 10,243,902 | null |
75,631,422 | 1 | null | null | 0 | 36 | [https://i.stack.imgur.com/mx3mN.png](https://i.stack.imgur.com/mx3mN.png)
Heres a picture of the structure of the project
In login.component.html I have code to obtain the username via user input from a standard login screen:
```
<form [formGroup]="loginForm" #ngForm="ngForm" (ngSubmit)="submitForm()" class="login-fo... | How to set a global variable that can be accessed between components? | CC BY-SA 4.0 | null | 2023-03-03T20:01:43.633 | 2023-03-04T01:20:21.320 | 2023-03-04T01:20:21.320 | 19,216,846 | 19,216,846 | [
"javascript",
"angular",
"typescript",
"components",
"global-variables"
] |
75,631,412 | 1 | null | null | -2 | 29 | I have one problem. I have made a program with count all goods from the input.txt like:
18 25 2 - (18$, 25 cents, 2 products of the selected category)
Program consists of 3 files - main.cpp, Price.cpp and Price.h
I compiles normally in online-compilers, but in my Visual Studio Code for MacBook it doesn't. I want to poi... | Problem with a compilation C++ code via Visual Studio Code | CC BY-SA 4.0 | null | 2023-03-03T20:00:30.180 | 2023-03-03T20:12:49.817 | null | null | 20,520,668 | [
"c++",
"visual-studio-code"
] |
75,631,430 | 1 | null | null | 0 | 20 | I have been searching for a platform or API to obtain accurate data on specific Ethereum tokens that are relatively unknown. Specifically, I am looking for data on market cap, price, and 24-hour volume.
Unfortunately, platforms like CoinGecko and CoinPayments have not been useful in providing the information I need, th... | Recommendations for reliable platforms to get data on specific Ethereum tokens | CC BY-SA 4.0 | null | 2023-03-03T20:03:53.977 | 2023-03-04T14:35:06.340 | null | null | 16,640,107 | [
"api",
"token",
"ethereum",
"blockchain",
"bitcoin"
] |
75,631,425 | 1 | 75,631,599 | null | 0 | 61 |
| invoice | ProdId | Price | amount | result |
| ------- | ------ | ----- | ------ | ------ |
| 1 | 1 | 10 | 2 | 20.2 |
| 1 | 2 | 20 | 1 | 20.2 |
| 1 | 3 | 10 | 2 | 20.2 |
| 2 | 1 | 10 | 1 | 10 |
| 2 | 2 | 20 | 2 | 20 |
How to query if an invoice has only `prodID = 1` or 2 then `price * Amount` else `price * ... | How to set formula with condition query in SQL Server | CC BY-SA 4.0 | null | 2023-03-03T20:02:12.707 | 2023-03-04T11:33:12.863 | 2023-03-04T00:46:03.337 | 20,412,749 | 20,412,749 | [
"sql",
"sql-server"
] |
75,631,421 | 1 | null | null | 0 | 44 | Im working with a webapi and when I run it locally, I get the weird error below. There is nothing different with this setup than another webapi I've been using locally, same local sqlserver, etc. Whats really odd is, I assume `index 140` would be char 140. HOWEVER, if I modify the line, put pure garbage in it, etc., it... | System.ArgumentException index 140 | CC BY-SA 4.0 | null | 2023-03-03T20:01:40.193 | 2023-03-03T20:49:43.723 | 2023-03-03T20:49:43.723 | 2,052,655 | 9,472,341 | [
"c#"
] |
75,631,431 | 1 | null | null | -1 | 26 | My goal is to check if any new csv file has been added to a directory and add that as a log to the db.
I tried the below code:
```
<?php
$path = "manifests/*.csv";
$latest_ctime = 0;
$latest_filename = '';
$files = glob($path);
foreach ($files as $file) {
if (is_file($file) && (filectime($file) > $latest_ctime)) ... | PHP - Check if a file is new in the directory | CC BY-SA 4.0 | null | 2023-03-03T20:04:20.323 | 2023-03-03T20:04:20.323 | null | null | 20,167,434 | [
"php",
"file-upload"
] |
75,631,433 | 2 | null | 75,631,187 | 0 | null | - - `(?<!\*)\R(?!\*)`- ``- -
```
(?<!\*) # negative lookbehind, make sure we haven't a * before
\R # any kind of linebreak
(?!\*) # negative lookahead, make sure we haven't * after
```
[](https://i.stack.imgur.com/u16Dx.png)
[](https://i.stack.imgur.com/LLcsm.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T20:04:21.153 | 2023-03-03T20:06:29.100 | 2023-03-03T20:06:29.100 | 372,239 | 372,239 | null |
75,631,428 | 1 | null | null | 1 | 24 | The assignment calls for a calculator that understands squared numbers. To simplify the notation, a squared number is represented as X^ where X is the number you want to square. The whole thing accepts multiple equations. For example, if the user enters:
5^;
1000 + 6^ - 5^ + 1;
it is expected to return
25
1012.
Here'... | Can't get correct output when an equation has multiple arguments | CC BY-SA 4.0 | null | 2023-03-03T20:03:01.817 | 2023-03-03T22:01:30.790 | null | null | 21,328,353 | [
"javascript",
"html"
] |
75,631,427 | 1 | 75,631,639 | null | -1 | 22 | I have a pandas dataframe that looks like this:
| header1 | header2 |
| ------- | ------- |
| First | row1 |
| Second | row2 |
| Third | row1 |
| Fourth | row2 |
| Fifth | row1 |
I want to create a list of dictionaries where, for all rows with matching value in the header2 column (except the first such row), ... | Create a list of single-entry dictionaries where each group by a given column contributes a value from a 2nd column for all but 1st row which is key | CC BY-SA 4.0 | null | 2023-03-03T20:02:47.820 | 2023-03-03T21:25:54.030 | 2023-03-03T20:47:02.700 | 18,135,454 | 10,587,715 | [
"python",
"pandas",
"list",
"dictionary"
] |
75,631,437 | 1 | null | null | 0 | 16 | I have a lot of variables, which i create in pgsql request like @set variable=x.
I need to delete all variables i have so that the system don t remember any. And each time i run the code it used only variables, setted in this script
I could not find how to do it. Tried to exit dbeaver.
| Delete all set variables postgresql dbeaver | CC BY-SA 4.0 | null | 2023-03-03T20:04:40.130 | 2023-03-03T20:04:40.130 | null | null | 13,394,325 | [
"postgresql",
"dbeaver"
] |
75,631,434 | 2 | null | 18,658,322 | 0 | null | For anyone trying to find it still on a fresh Android SDK download: this has been removed from the standard tools in API level 27. To install it, [uncheck "Hide Obsolete Packages" and select "Android SDK Tools (Obsolete)" v 26.1.1.](https://stackoverflow.com/a/61040516/253468)
[](https://i.stack.imgur.com/LcyHZ.png)
an... | null | CC BY-SA 4.0 | null | 2023-03-03T20:04:26.547 | 2023-03-03T20:05:32.513 | 2023-03-03T20:05:32.513 | 253,468 | 253,468 | null |
75,631,442 | 2 | null | 24,035,320 | 0 | null | use comand line
```
./yii cache/flush-all
```
or
```
php yii cache/flush-all
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:05:07.707 | 2023-03-03T20:05:07.707 | null | null | 1,932,494 | null |
75,631,432 | 2 | null | 52,995,552 | 0 | null | (Hello from [feature request Kotlin/kotlinx.coroutines#460](https://github.com/Kotlin/kotlinx.coroutines/issues/460)!)
Here's the rate limiter I'm putting in my internal kitchen sink library. Simple*, multiplatform, no extra deps:
```
public fun <T> rateLimiter(resource: T, minDelay: Duration): Flow<T>
= flow {
... | null | CC BY-SA 4.0 | null | 2023-03-03T20:04:20.703 | 2023-03-03T20:04:20.703 | null | null | 7,467,292 | null |
75,631,435 | 2 | null | 75,631,218 | 0 | null | You can try like following snippet::
```
const { ref, nextTick } = Vue
const app = Vue.createApp({
setup() {
const search = ref('hello')
function boldText(text) {
return text.replace(new RegExp('(' + search.value + ')',"ig"), '<b>$1</b>');
}
return { search, boldText }
},
})
app.mount('#demo... | null | CC BY-SA 4.0 | null | 2023-03-03T20:04:27.020 | 2023-03-03T21:15:51.870 | 2023-03-03T21:15:51.870 | 11,989,189 | 11,989,189 | null |
75,631,438 | 2 | null | 75,631,373 | 0 | null | `groupBy` is an RxJs stream operator, it creates a group from values emitted by an observable, you are wanting to group the values in an array.
Here is a quick and dirty group an array by id function
```
const groupById = array => array?.reduce((group, item) => {
if (group[item.id]) {
group[item.id].push(item);
... | null | CC BY-SA 4.0 | null | 2023-03-03T20:04:40.960 | 2023-03-03T20:13:04.670 | 2023-03-03T20:13:04.670 | 1,679,126 | 1,679,126 | null |
75,631,447 | 1 | null | null | -2 | 35 | ```
<?php
echo 'Hello';
echo 'World':
$e = // Get the output of the page.
echo $e; // 'HelloWorld' should be printed.
?>
```
I want to get all the output of the current page and print it as a variable.
For example, I printed 'Hello' and 'World' respectively. How can I get the content on the page?
| How to get the output of the current PHP? | CC BY-SA 4.0 | null | 2023-03-03T20:05:53.747 | 2023-03-03T20:11:36.573 | 2023-03-03T20:07:48.770 | 21,328,355 | 21,328,355 | [
"php"
] |
75,631,444 | 2 | null | 75,623,171 | 1 | null | You are correct that ultimately a `.keyBy()` has to determine which slot in your TMs will receive a given record, based on its key. The difference is that `.key()` first goes through a "logical partitioning", where each key is assigned to a key group index, which doesn't depend on the specific parallelism of the downst... | null | CC BY-SA 4.0 | null | 2023-03-03T20:05:41.587 | 2023-03-03T20:05:41.587 | null | null | 231,762 | null |
75,631,439 | 2 | null | 75,629,462 | 2 | null | I've written a long to ascii integer converter for an arcade remake.
Actually, you can use DIVU up to `(1<<16*10)-1` as the result of 655359/10 still fits in 16 bits (and is 65535)
To go further, just divide a copy of your long number by `10000`, it cannot be > 655359 either as `6553590000 > 1<<32` so the result will f... | null | CC BY-SA 4.0 | null | 2023-03-03T20:04:43.990 | 2023-03-03T22:42:56.337 | 2023-03-03T22:42:56.337 | 6,451,573 | 6,451,573 | null |
75,631,441 | 1 | null | null | 0 | 26 | For some special plotting routines with different templates it would be helpful to know whether logscale x or y is set or not, and based on that the script might continue differently.
There are e.g. the gnuplot variables `GPVAL_X_LOG` and `GPVAL_Y_LOG` which contain the value `10.0` after the first plot, although logs... | How to programmatically check if logscale is set in gnuplot? | CC BY-SA 4.0 | null | 2023-03-03T20:04:55.113 | 2023-03-04T01:12:51.400 | 2023-03-03T21:19:01.940 | 7,295,599 | 7,295,599 | [
"gnuplot",
"scale",
"logarithm"
] |
75,631,429 | 1 | null | null | 3 | 48 |
I'm using a Windows machine. I know Python 2.* is not supported anymore, but I'm still learning Python 2.7.16. I also have Python 3.7.1. I know in Python 3.* ["unicode was renamed to str"](https://stackoverflow.com/a/18034409/1175496)
I use Git Bash as my main shell.
I read [this question](https://stackoverflow.com/qu... | Python str vs unicode on Windows, Python 2.7, why does 'á' become '\xa0' | CC BY-SA 4.0 | null | 2023-03-03T20:03:24.517 | 2023-03-04T02:38:33.787 | 2023-03-04T02:38:33.787 | 10,248,678 | 1,175,496 | [
"python",
"windows",
"encoding"
] |
75,631,448 | 1 | null | null | 0 | 9 | I maintain an e-commerce shopping site (or "cart") for an external client. They have their own separate web site on their own server on a different domain. Their site links to our cart, opening it in a new tab or window (with target="_blank" in the link). When clicking on a link that is on their site, and pointing to o... | Session cookie is being dropped, but for only one link on one page | CC BY-SA 4.0 | null | 2023-03-03T20:06:00.043 | 2023-03-04T09:15:09.003 | null | null | 1,296,010 | [
"http",
"cookies",
"session-cookies"
] |
75,631,449 | 2 | null | 31,632,637 | 0 | null | The axis labels are the names of columns, so you can just `rename` (or `set_axis`) columns inside the `barplot` call:
```
fake = pd.DataFrame({'cat': ['red', 'green', 'blue'], 'val': [1, 2, 3]})
sns.barplot(x='Values', y='Colors',
data=fake.rename(columns={'cat': 'Colors', 'val': 'Values'}),
#... | null | CC BY-SA 4.0 | null | 2023-03-03T20:06:00.800 | 2023-03-03T20:06:29.360 | 2023-03-03T20:06:29.360 | 19,123,103 | 19,123,103 | null |
75,631,445 | 1 | null | null | 0 | 8 | I have configured Azure application gateway for a Front End (FE) Web App and an API Web App (Backend)
Both the app services are private endpoint enabled and VNET integrated
The FE web app is working fine
But the API app or the backend App is being called by Mulesoft which is sitting in AWS
This API or BE app has multip... | How to use Multiple/Wildcard hosttype in Azure Application Gateway for various API endpoints | CC BY-SA 4.0 | null | 2023-03-03T20:05:47.990 | 2023-03-03T20:12:21.840 | 2023-03-03T20:12:21.840 | 8,123,477 | 8,123,477 | [
"azure",
"api",
"terraform",
"azure-application-gateway"
] |
75,631,443 | 1 | null | null | 0 | 26 | I have a button and when I click, its shown an overlay with `width 100%`, `height 100%` and `position: absolute`.
The problem is that, after I click the button to show the overlay, I can press enter and the overlay will show again (2x times).
I need to prevent this. I have already z-index set and is still happening.
I ... | Prevent onClick (using ENTER) on a button after overlay shown | CC BY-SA 4.0 | null | 2023-03-03T20:05:10.437 | 2023-03-04T18:52:40.917 | 2023-03-03T20:06:53.183 | 16,661,760 | 16,661,760 | [
"javascript",
"reactjs",
"button"
] |
75,631,446 | 2 | null | 75,631,071 | 2 | null | This looks like a good candidate for the [json_query filter](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_filters.html#selecting-json-data-json-queries). My first thought was that this should work:
```
hostvars[host].interfaces | json_query("[?ip_addresses[].address == '192.171.130.8/32']")
```
But... | null | CC BY-SA 4.0 | null | 2023-03-03T20:05:48.460 | 2023-03-03T22:26:20.010 | 2023-03-03T22:26:20.010 | 147,356 | 147,356 | null |
75,631,451 | 2 | null | 75,631,233 | 2 | null | See `help fvvarlist`, and check out the information on the binary operator `#`
For a specific example, see below where I create a 100 row dataset with variables `y`, `x1`, `x2`, and `gender`, the last of which should be similar to yours (i.e. byte with Male and Female labels)
```
clear
set obs 100
set seed 123
gen byte... | null | CC BY-SA 4.0 | null | 2023-03-03T20:06:20.253 | 2023-03-03T22:17:18.857 | 2023-03-03T22:17:18.857 | 4,447,540 | 4,447,540 | null |
75,631,457 | 1 | null | null | -1 | 25 | Is there a way to access the local file system on a Mac from a iPhone connected via USB?
eg An app using the Camera saves photos to the file-system (The Mac connected via a USB cable). The app could be running in XCode?
| How to Access files on connected Mac from app running on iPhone | CC BY-SA 4.0 | null | 2023-03-03T20:07:36.820 | 2023-03-04T23:55:56.483 | 2023-03-04T23:55:56.483 | 21,328,350 | 21,328,350 | [
"ios",
"swift",
"xcode",
"macos"
] |
75,631,456 | 2 | null | 53,714,503 | 0 | null | when i was using a cfg looks like this:
stm32f401.cfg
```
# source [find stlink-v2.cfg]
source [find interface/stlink.cfg]
# chip name
set CHIPNAME stm32f401ccu6
set ENDIAN little
# choose a port here
set telnet_port 0
source [find target/stm32f4x.cfg]
adapter_khz 480
```
it gives me the error "Error: DAP name inva... | null | CC BY-SA 4.0 | null | 2023-03-03T20:07:22.607 | 2023-03-03T20:07:57.007 | 2023-03-03T20:07:57.007 | 20,917,830 | 20,917,830 | null |
75,631,454 | 1 | null | null | 1 | 21 | Suppose I have a file like so
```
test:
long: "This is a sample text
across two lines."
```
When I load the file and dump it back with no changes to the file, it changes this document into
```
test:
long: "This is a sample text\
\ across two lines."
```
While this is correct and doesn't change the... | Preserving multi-line string as is when round-triping in ruamel | CC BY-SA 4.0 | null | 2023-03-03T20:07:09.890 | 2023-03-04T14:32:04.027 | null | null | 3,575,018 | [
"python-3.x",
"yaml",
"ruamel.yaml"
] |
75,631,450 | 2 | null | 75,417,904 | 0 | null | I ran into a similar issue until I wrapped my head around what's going on. The reason you aren't seeing the validation messages next to the fields is because FluentValidation has no idea what the property prefix is. Meaning, it knows `TestValue`, but has no way of knowing the bound property name is `Sample`. So specify... | null | CC BY-SA 4.0 | null | 2023-03-03T20:06:04.240 | 2023-03-03T20:06:04.240 | null | null | 3,829,851 | null |
75,631,453 | 1 | null | null | 0 | 29 | I am new to kubernetes and I am having trouble with my deployment. I have a local k8s cluster (minikube) running 2 Pods (rabbitMQ and a python microservice that needs to connect to rabbitMQ). I have created a Service for RMQ but I cannot get the microservice to be able to connect using the Service by Name. If I use the... | Kubernetes Pod Cannot Resolve Service by Name | CC BY-SA 4.0 | null | 2023-03-03T20:06:34.587 | 2023-03-03T20:10:32.150 | 2023-03-03T20:10:32.150 | 21,328,278 | 21,328,278 | [
"python",
"kubernetes",
"microservices"
] |
75,631,465 | 2 | null | 73,732,210 | 0 | null | The problem is related to permissions, in linux I changed the owner of the flutter folder and the symbolic links that I created for flutter and dart , both were owned by root, I changed it to my owner. I don't use it on windows but depending on the folder in which it is installed I know that you may have problems with ... | null | CC BY-SA 4.0 | null | 2023-03-03T20:08:34.607 | 2023-03-03T20:08:34.607 | null | null | 21,253,215 | null |
75,631,466 | 2 | null | 75,629,305 | 0 | null | i found the answer i needed, "Move your image into wwwroot folder and use ~/cars.jpg, because ASP.NET Core gets static files from only wwwroot folder. Thanks!
| null | CC BY-SA 4.0 | null | 2023-03-03T20:08:35.397 | 2023-03-03T20:08:35.397 | null | null | 21,327,163 | null |
75,631,452 | 1 | null | null | 0 | 17 | I'm trying to draw some geometric shapes in the user interface via Konva and react-konva. One basic element is a vertical arrow with annotated text to show the dimension of a shape, as shown below:
[](https://i.stack.imgur.com/6gDN9.png)
It's created by the following code snippet, which was my first attempt at implemen... | How do I Create a Vertical Arrow with Text Annotation with Dynamic Text Positioning in Konva? | CC BY-SA 4.0 | null | 2023-03-03T20:06:24.803 | 2023-03-04T00:21:28.677 | 2023-03-04T00:19:53.840 | 1,476,114 | 1,476,114 | [
"reactjs",
"react-konva",
"konva"
] |
75,631,460 | 1 | null | null | 0 | 20 | i'm developing an app using swiftUI and i ran into some problems. Im trying to add an animation which will change scale and opacity as i'm dragging scrolling through pages in TabView which has PageTabViewStyle style. So as soon as the offset is changing when I'm dragging the page, so should the scale and opacity.The mo... | SwiftUI adding animation to pages in TabView | CC BY-SA 4.0 | null | 2023-03-03T20:07:39.663 | 2023-03-03T21:13:52.067 | 2023-03-03T21:13:52.067 | 14,403,798 | 14,403,798 | [
"swiftui",
"swiftui-tabview"
] |
75,631,464 | 2 | null | 75,631,022 | 4 | null | Another formula that should return the correct date. This does require Office 365:
```
=--TEXTJOIN(" ",,INDEX(TEXTSPLIT(SUBSTITUTE(TRIM(A1),",","")," "),,{2,1,3,5}))
```
This removes the `,` and then rearranges the order. The `--` turns it into a number.
If the month abbreviations do not match the local settings it ... | null | CC BY-SA 4.0 | null | 2023-03-03T20:08:28.903 | 2023-03-03T22:50:47.057 | 2023-03-03T22:50:47.057 | 4,851,590 | 4,851,590 | null |
75,631,468 | 2 | null | 19,725,292 | 0 | null | Much more simpler one
```
reverseint x = (read (reverse(show(abs(x)))) :: Integer)*signum(x)
```
easier to understand, usually we read inputs with read and now you read a string, convert that string to integer, signum(x) takes care of the sign of the number
| null | CC BY-SA 4.0 | null | 2023-03-03T20:08:56.983 | 2023-03-03T20:11:21.937 | 2023-03-03T20:11:21.937 | 16,662,812 | 16,662,812 | null |
75,631,459 | 2 | null | 75,631,302 | 0 | null |
1. You can pass the :auto positional argument to the DataFrame constructor to make it work: julia> using DataFrames
julia> foo = [1 2;3 4]
2×2 Matrix{Int64}:
1 2
3 4
julia> DataFrame(foo', :auto)
2×2 DataFrame
Row │ x1 x2
│ Int64 Int64
─────┼──────────────
1 │ 1 3
2 │ 2 4
# Not... | null | CC BY-SA 4.0 | null | 2023-03-03T20:07:39.410 | 2023-03-03T20:23:57.880 | 2023-03-03T20:23:57.880 | 11,747,148 | 11,747,148 | null |
75,631,461 | 2 | null | 75,630,421 | 1 | null | To make this work with generics, the generic type must be constrained to a type that has all the properties you want to access (otherwise you only have access to members `T` as an `object` type).
One way to do this is to create an interface that defines these properties:
```
interface ExternalStuff
{
int ExternalAr... | null | CC BY-SA 4.0 | null | 2023-03-03T20:07:49.513 | 2023-03-03T20:11:15.550 | 2023-03-03T20:11:15.550 | 2,052,655 | 2,052,655 | null |
75,631,455 | 1 | 75,636,528 | null | 0 | 20 | I have written a DHCP server code in python using Scapy that can sniff discovery messages and send an appropriate offer message with an IP for a client. I tried to insert another option in the packet regarding the DNS server IP, but it doesn't show up no matter what in the DHCP options in the packet. Can someone help?
... | How to add domain name in DHCP offer packet with scapy? | CC BY-SA 4.0 | null | 2023-03-03T20:07:21.560 | 2023-03-04T15:06:03.130 | null | null | 20,886,506 | [
"python",
"networking",
"scapy",
"dhcp"
] |
75,631,469 | 2 | null | 75,626,022 | 0 | null | Here's a working example using VueDraggable demo page.
The draggable elements seem to all have `data-draggable="true"` attribute, so I use that as selector + text content (name on the card).
It may be that all you need to do is provide an assertion after the drag (to confirm the effect). Otherwise, the test ends too so... | null | CC BY-SA 4.0 | null | 2023-03-03T20:08:57.467 | 2023-03-03T20:11:20.477 | 2023-03-03T20:11:20.477 | 16,695,029 | 16,695,029 | null |
75,631,472 | 2 | null | 75,629,954 | 1 | null | I would recommand you the excellent [Gedmo listeners](https://github.com/doctrine-extensions/DoctrineExtensions), it's exactly what you want.
## Tracking which user edited your entity the last time
Have a look at [this documentation](https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/doc/blameable.m... | null | CC BY-SA 4.0 | null | 2023-03-03T20:09:34.077 | 2023-03-03T20:09:34.077 | null | null | 5,224,479 | null |
75,631,471 | 2 | null | 75,623,795 | 0 | null | You could try using XPUB and XSUB. This is exactly the same as PUB / SUB, except that the subscriber has to send a message to subscribe / unsubscribe, and the XPUBlisher can receive these subscribe / unsubscribe messages. See [the API documentation](https://zeromq.org/socket-api/) for details.
That means that you can d... | null | CC BY-SA 4.0 | null | 2023-03-03T20:09:29.640 | 2023-03-03T20:11:36.687 | 2023-03-03T20:11:36.687 | 2,147,218 | 2,147,218 | null |
75,631,473 | 1 | null | null | 1 | 11 | I'm trying to make a CD for library that uses bond - it compiles perfectly localy but it seems like I can't compile it in a docker image - I'm getting error from below, it suggest that I need to install bond tools - I can't find image that would have them installed and I also can't find the way to install them (I did t... | How can I compile .net app that uses bond in docker? | CC BY-SA 4.0 | null | 2023-03-03T20:09:37.013 | 2023-03-03T20:09:37.013 | null | null | 5,008,568 | [
"c#",
".net",
"bond"
] |
75,631,474 | 2 | null | 75,630,685 | 1 | null | I would the comment block, so it is out of the way. With capture groups you can then identify what you want to keep, and throw away the matches that don't have anything in the capture group.
In this snippet the output has the start-end indices of the matches:
```
const str = `
:this {
display: grid;
}
... | null | CC BY-SA 4.0 | null | 2023-03-03T20:09:38.003 | 2023-03-03T20:09:38.003 | null | null | 5,459,839 | null |
75,631,476 | 2 | null | 67,710,630 | 0 | null | you have dependency conflicts.ignore it and install npm packages.try this:
```
npm install YourPackage --force
```
or
```
npm install YourPackage --legacy-peer-deps
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:09:41.220 | 2023-03-03T20:13:40.090 | 2023-03-03T20:13:40.090 | 14,362,549 | 14,362,549 | null |
75,631,467 | 2 | null | 60,240,750 | 1 | null | While the previous answers are correct when it comes to the `count` overload, that takes an argument of type `std::map::key_type`, they don't address the other overload that takes a templated key:
```
template< class K >
size_type count( const K& x ) const;
```
As is explained [here](https://en.cppreference.com/w/cpp... | null | CC BY-SA 4.0 | null | 2023-03-03T20:08:50.823 | 2023-03-03T20:08:50.823 | null | null | 16,320,854 | null |
75,631,475 | 1 | null | null | -3 | 35 | I have a page where I cannot full css but I can share the image as to how it is showing now, I have the HTML like this
```
.thumbnail .pricetag .spiral {
position: absolute;
top: -19px;
left: 10px;
background: url(../img/spiral.png) no-repeat right 0;
height: 50px;
width: 35px
}
.productpageprice .spiral {... | try to fix the div by using flex | CC BY-SA 4.0 | null | 2023-03-03T20:09:38.543 | 2023-03-04T00:59:10.620 | 2023-03-04T00:59:10.620 | 82,548 | 21,328,379 | [
"html",
"css",
"flexbox"
] |
75,631,479 | 2 | null | 75,631,371 | 0 | null | ```
'col_2' IS NOT NULL
```
will always be true since it is comparing a hardcoded string of the text 'col_2' against null. It is not comparing the value in that column with null.
To refer to the value in the column, you will want to use double-quotes or no quotes.
What you are looking for is likely:
```
ALTER TABLE "m... | null | CC BY-SA 4.0 | null | 2023-03-03T20:10:06.673 | 2023-03-03T20:10:26.660 | 2023-03-03T20:10:26.660 | 5,504,922 | 5,504,922 | null |
75,631,463 | 1 | null | null | 0 | 28 | I'm a brand new coder who was tasked (by my company) with making a web scraper for eBay, to assist the CFO in finding inventory items when we need them. I've got it developed to scrape from multiple pages, but when the Pandas DataFrame loads, the number of results does not match how many pages it's supposed to be scrap... | Python WebScraper w/ BeautifulSoup: Not Scraping All Pages | CC BY-SA 4.0 | null | 2023-03-03T20:08:24.070 | 2023-03-04T18:03:25.213 | 2023-03-03T20:13:42.447 | 21,029,711 | 21,029,711 | [
"python",
"python-3.x",
"pandas",
"web-scraping",
"beautifulsoup"
] |
75,631,478 | 1 | 75,632,037 | null | 2 | 51 | I would like to be able to create `constexpr` values for a type that usually has a non-trivial destructor. Unfortunately, I'm using C++20, so don't have `if consteval`. Here is a minimal working example that is accepted by gcc 12.2.1 and clang++ 15.0.7, but I'm not sure if it's legal:
```
#include <type_traits>
#incl... | constexpr instances of class that usually have non-constexpr behavior in the destructor, in C++20 | CC BY-SA 4.0 | null | 2023-03-03T20:09:51.243 | 2023-03-03T21:37:15.183 | 2023-03-03T21:36:32.183 | 3,188,445 | 3,188,445 | [
"c++",
"c++20",
"constexpr"
] |
75,631,484 | 1 | null | null | 0 | 35 | ```
#include <stdio.h>
#define A "hello world\n"
void main()
{
printf(A);
}
```
```
$ gcc -gdwarf-4 -g3 a.c \
&& gdb -ex 'set confirm off' \
-ex 'break main' \
-ex 'run' \
-ex 'p A' \
-ex q \
a.out
...
Breakpoint 1, main () at a.c:5
5 printf(A);
$1 = "hello world\n"
$ gcc ... | gdb doesn't support DWARF 5 macro sections? | CC BY-SA 4.0 | null | 2023-03-03T20:11:02.767 | 2023-03-03T20:14:50.880 | 2023-03-03T20:14:50.880 | 52,499 | 52,499 | [
"c",
"gcc",
"gdb",
"dwarf"
] |
75,631,487 | 1 | null | null | 0 | 19 | Using the Rest API (not CLI), How do I query an AWS S3 bucket for N last modified objects?
| How do I query AWS S3 bucket for N last modified objects using the REST API? | CC BY-SA 4.0 | null | 2023-03-03T20:11:27.680 | 2023-03-03T20:19:44.177 | 2023-03-03T20:12:32.313 | 1,435,070 | 1,435,070 | [
"amazon-web-services",
"amazon-s3"
] |
75,631,488 | 2 | null | 75,631,447 | 1 | null | Use Output Buffering:
```
ob_start();
echo 'Hello';
echo 'World':
$e = ob_get_clean();
echo $e; // 'HelloWorld' should be printed.
```
More information can be found in the documentation: [https://www.php.net/manual/en/ref.outcontrol.php](https://www.php.net/manual/en/ref.outcontrol.php)
| null | CC BY-SA 4.0 | null | 2023-03-03T20:11:36.573 | 2023-03-03T20:11:36.573 | null | null | 1,347,308 | null |
75,631,481 | 1 | null | null | -1 | 14 | I'm building a website using Bootstrap 5.2 that includes MathJax equations and dropdown menus in the navbar. However, the MathJax equations are overlapping with the dropdown menus, making it difficult to use the menus. I've tried various CSS solutions but none have worked so far.
Here is my HTML
```
<nav class="navbar ... | How can I prevent MathJax equations from overlapping with dropdown menus in Bootstrap 5.2? | CC BY-SA 4.0 | null | 2023-03-03T20:10:21.200 | 2023-03-04T20:59:36.177 | 2023-03-03T20:10:55.367 | 13,062,685 | 13,062,685 | [
"html",
"navbar",
"bootstrap-5",
"mathjax"
] |
75,631,486 | 1 | null | null | 0 | 11 | I am trying to get the colour of a point along a `CAGradientLayer`, the function I am using below works on a view with a solid background colour, but when using on a gradient, it returns the incorrect result.
```
extension UIView {
func colorOfPointView(point: CGPoint) -> CGColor {
let colorSpace: CGColorSpace = CG... | Swift Get color at point in CAGradientLayer | CC BY-SA 4.0 | null | 2023-03-03T20:11:07.173 | 2023-03-03T20:11:07.173 | null | null | 3,976,008 | [
"swift",
"uiview",
"uicolor",
"cagradientlayer"
] |
75,631,490 | 2 | null | 75,628,874 | 0 | null | The rules for allocating a default priority to different XSLT patterns are somewhat crude; they don't always have the effect that if pattern P matches a subset of the nodes matched by pattern Q, then P is chosen in preference to Q. In particular, all patterns of the form `element(*, T)` have the same default priority r... | null | CC BY-SA 4.0 | null | 2023-03-03T20:12:22.547 | 2023-03-03T20:12:22.547 | null | null | 415,448 | null |
75,631,491 | 2 | null | 75,630,320 | 0 | null | With the snippet provided I would suggest that `.a` should have the gradient and on `:hover` just add the image to `.b`.
If this is not an option I would say to add a wrapper to `.b` and follow the steps I first suggest but with the wrapper instead of `.a`.
Hope this helps.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:12:28.173 | 2023-03-03T20:12:28.173 | null | null | 10,839,269 | null |