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,632,946 | 1 | null | null | 0 | 20 | I have a problem, I want to get images on devices with android versions lower and higher than 10, but it only takes those from lower than 10, how could I solve this problem?
I tried this...
XML
```
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="29"/>
```
My Clas... | Pick Image Files From Gallery In Android 11 and Above Or Below in Android Studio | CC BY-SA 4.0 | null | 2023-03-04T00:37:17.163 | 2023-03-04T04:08:19.727 | null | null | 21,329,158 | [
"java",
"android",
"permissions",
"android-permissions",
"user-permissions"
] |
75,632,951 | 2 | null | 75,632,930 | 0 | null | The click event handler automatically binds `this` to the element triggering the event. In order to avoid this implicing this binding, you can switch to an arrow function which will avoid the binding to the element object and keep a reference to the Component instance.
Try using an arrow function:
```
contar = ()=>{
... | null | CC BY-SA 4.0 | null | 2023-03-04T00:39:29.030 | 2023-03-04T00:42:28.637 | 2023-03-04T00:42:28.637 | 4,861,760 | 4,861,760 | null |
75,632,949 | 1 | null | null | 0 | 8 | If I do:
```
var proxy1 = WebRequest.GetSystemWebProxy();
proxy1.Credentials = new NetworkCredential("admin", "pass123");
var proxy2 = WebRequest.GetSystemWebProxy();
proxy2.Credentials = new NetworkCredential("admin2", "pass123");
```
The credentials of proxy2 overwrite the credentials of proxy1. This is presumably ... | How to make copy of IWebProxy? | CC BY-SA 4.0 | null | 2023-03-04T00:38:22.873 | 2023-03-04T00:46:46.923 | 2023-03-04T00:46:46.923 | 2,516,916 | 2,516,916 | [
"c#",
".net",
".net-4.0",
".net-4.5"
] |
75,632,954 | 2 | null | 75,629,841 | 0 | null | You can request current assignment for all agents. `assignedRequest` property will be absent for idle agents. This powershell will output all names for busy agents:
```
$agentsUri = 'https://dev.azure.com/{organization}/_apis/distributedtask/pools/{poolId}/agents?includeAssignedRequest=true&api-version=7.0'
(Invoke-Res... | null | CC BY-SA 4.0 | null | 2023-03-04T00:39:39.293 | 2023-03-04T00:39:39.293 | null | null | 8,294,653 | null |
75,632,952 | 2 | null | 75,632,914 | -1 | null | The issue with your code is that the recursive function 'S(int n)' is not correctly computing the nth row of the sequence you're interested in. Instead, it seems to be computing a different sequence altogether.
Assuming that you're trying to generate the sequence that starts with the number 1, and where each subsequent... | null | CC BY-SA 4.0 | null | 2023-03-04T00:39:29.280 | 2023-03-04T00:53:17.490 | 2023-03-04T00:53:17.490 | 21,322,649 | 21,322,649 | null |
75,632,958 | 2 | null | 75,590,618 | 0 | null | I was able to do this with this code
```
g = Github("user", "pass")
repoName = "apiTest"
source_branch = 'master'
target_branch = 'newfeature'
repo = g.get_user().get_repo(repoName)
sb = repo.get_branch(source_branch)
repo.create_git_ref(ref='refs/heads/' + target_branch, sha=sb.commit.sha)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T00:40:43.717 | 2023-03-04T00:40:43.717 | null | null | 9,183,027 | null |
75,632,953 | 1 | null | null | 0 | 28 | Why does the static SpringApplication.run method need a `MyApplication.class` argument?
Spring doc says:
> Parameters: primarySources - the primary sources to load
But when `@SpringBootApplication` presents, we already told Spring that the bean source is in the current package and its sub-packages because `@SpringBootA... | SpringApplication.run: why do we need the "MyApplication.class" parameter when "@SpringBootApplication" annotation presents? | CC BY-SA 4.0 | null | 2023-03-04T00:39:29.423 | 2023-03-04T12:27:50.553 | null | null | 5,175,699 | [
"java",
"spring-boot"
] |
75,632,942 | 2 | null | 75,631,071 | 1 | null | Create the dictionary from the MAC addresses and lists of IPs
```
mac_ip_raw: "{{ dict(interfaces|json_query(mac_ip_query)) }}"
mac_ip_query: '[].[mac_address, ip_addresses[].address]'
```
gives
```
mac_ip_raw:
85-9F-76-AE-57-10:
- 192.171.130.80/32
C8-F1-13-78-9E-E7:
- 192.171.130.8/32
```
Get rid ... | null | CC BY-SA 4.0 | null | 2023-03-04T00:36:22.967 | 2023-03-04T00:36:22.967 | null | null | 6,482,561 | null |
75,632,924 | 2 | null | 68,765,432 | 1 | null | I know this question is a bit old but here is a working solution to organize your files anywhere except the root phone directory or gain persistant access to your directory of choice (so you don't have to prompt over and over again)
First In Your build.gradle file, implement the SAF framework's DocumentFile class:
```
... | null | CC BY-SA 4.0 | null | 2023-03-04T00:32:24.263 | 2023-03-04T00:32:24.263 | null | null | 5,706,996 | null |
75,632,948 | 2 | null | 75,462,304 | 0 | null | Using windowed function:
- `ARRAY_AGG`- `ARRAY_REMOVE`- `(array)[-1]`
Query version readable:
```
WITH cte AS (
SELECT *,
ARRAY_REMOVE((ARRAY_AGG(value_1) OVER(PARTITION BY id ORDER BY date)), NULL)
AS value_1_arr,
ARRAY_REMOVE((ARRAY_AGG(value_2) OVER(PARTITION BY id ORDER BY date)), NULL)
AS... | null | CC BY-SA 4.0 | null | 2023-03-04T00:38:14.483 | 2023-03-04T09:40:25.660 | 2023-03-04T09:40:25.660 | 5,070,879 | 5,070,879 | null |
75,632,957 | 2 | null | 75,623,058 | 0 | null | After doing more research, I decided to parse the response through Java.
In my .feature file I'm calling my function doing:
```
* xml response = cleanUpXml(response)
```
And this is what the Java function looks like:
It get rid of all the invalid character but also the namespaces making it easier to parse the XML thro... | null | CC BY-SA 4.0 | null | 2023-03-04T00:40:37.447 | 2023-03-04T00:40:37.447 | null | null | 12,792,142 | null |
75,632,959 | 1 | null | null | 0 | 22 | I am trying to scrape pricing data off of my companies website and im getting an error i cant figure out.
The error im getting is:
> Exception: Error on line 10: Element type "ARRcookies.length" must be followed by either attribute specifications, ">" or "/>".
getPrice @ Price Scraper.gs:11
Here is my code:
```
functi... | Google sheets Web Scrape script for pricing | CC BY-SA 4.0 | null | 2023-03-04T00:40:44.597 | 2023-03-04T00:40:44.597 | null | null | 18,818,988 | [
"google-apps-script",
"google-sheets",
"web-scraping"
] |
75,632,956 | 1 | null | null | -2 | 42 | I am entirely new to java and I created a sales calculator, but when I try to run the program no output is displayed. I'm not getting any errors. The output is literally just blank with a [ symbol and nothing else.
I tried running the program and instead of my code running I got a [ symbol. What can I do to fix the iss... | Why won't my code run even though I am not getting any errors? | CC BY-SA 4.0 | null | 2023-03-04T00:40:30.893 | 2023-03-04T01:33:04.283 | 2023-03-04T00:43:04.653 | 522,444 | 21,138,545 | [
"java",
"compiler-errors",
"runtime-error"
] |
75,632,961 | 1 | null | null | 0 | 29 | Any help in understanding why I'm getting this error below installing and then referencing npm Angular2-wizard in my Stackblitz.
I have this [Stackblitz](https://stackblitz.com/edit/angular-fmkkwx?file=src/test/test.module.ts) and I installed [angular2-wizard](https://github.com/maiyaporn/angular2-wizard). After I inst... | Error when adding my npm module to imports | CC BY-SA 4.0 | null | 2023-03-04T00:41:10.440 | 2023-03-04T00:41:10.440 | null | null | 1,186,050 | [
"angular",
"npm",
"stackblitz",
"angular2-wizard"
] |
75,632,962 | 2 | null | 75,632,610 | 0 | null | Functional programming is not as fun as they say it is. Here's a procedural version, that applies a function to each value in the column, and extends the data frame. Note that the function can return a variable number of results.
```
import pandas as pd
# Make a three row, one column data frame
df = pd.DataFrame(["foo"... | null | CC BY-SA 4.0 | null | 2023-03-04T00:41:19.107 | 2023-03-04T00:41:19.107 | null | null | 12,379,462 | null |
75,632,964 | 2 | null | 75,570,757 | 0 | null | The problem is that `cmake` installed on your system has version 3.x.0-rc4. This is a bug in the `./ns3` script that it cannot parse `0-rc4` parse properly and expects it to be an integer.
You can try to run `apt-get update && apt-get install cmake` and see if the version of cmake changes.
If nothing else, you can comm... | null | CC BY-SA 4.0 | null | 2023-03-04T00:41:34.343 | 2023-03-04T00:41:34.343 | null | null | 21,313,424 | null |
75,632,955 | 1 | null | null | 0 | 15 | I have a style that I re-use for multiple textboxes. Within the style, I define a control template - and within that control template, I have some triggers. I want to be able to pass a Data Property into one of those triggers from the View.
Here is a shortened version of my current style defined in a Resource Dictionar... | WPF: Passing a data parameter into a style theme? | CC BY-SA 4.0 | null | 2023-03-04T00:40:12.380 | 2023-03-04T13:31:22.153 | null | null | 15,729,660 | [
"wpf",
"data-binding",
"binding",
"staticresource",
"dynamicresource"
] |
75,632,969 | 2 | null | 75,630,683 | 1 | null | Ok in case this helps anyone else, turns out if you go to the gh-pages branch on github, there is either a green check mark or a red x mark that'll indicate to see if all the checks have passed. if they haven't then it wont update.
I clicked on the x and clicked on one of the errors which asked me if I wanted to re-run... | null | CC BY-SA 4.0 | null | 2023-03-04T00:43:07.087 | 2023-03-04T00:43:07.087 | null | null | 21,195,804 | null |
75,632,960 | 1 | null | null | 0 | 46 | I have a table.txt file:
```
class #1
Sect1: cat
Sect2: dog
Sect3: mouse
Sect4: bird
Sect5: squirrel
class#2
Sect1: shark
Sect2: octopus
Sect3: tuna
Sect4: eel
Sect5: dolphin
```
I am able to read the text file and place its contents into a buffer. I prompt the user to enter an animal and the program will search the ... | Read and search buffer from a table text file from user input and display correct table location in C | CC BY-SA 4.0 | null | 2023-03-04T00:40:57.163 | 2023-03-04T02:45:13.747 | 2023-03-04T01:03:07.283 | 21,329,159 | 21,329,159 | [
"arrays",
"c",
"search",
"text",
"buffer"
] |
75,632,966 | 1 | null | null | -1 | 34 | The consumption of RAM increases when I use a network share(\192.168.0.XXX\path). The problem is not with a drive like (C:). Does anyone have an idea what it could be? The size of the files to copy are around 100GB...
```
public void copy (String _quelldatei, String _zieldatei)
{
FileStream fsout = ... | c# copying large data (105GB) to a network share with FileStream /copy increases RAM consumption | CC BY-SA 4.0 | null | 2023-03-04T00:41:53.173 | 2023-03-04T03:02:00.017 | null | null | 16,640,932 | [
"c#",
"filestream"
] |
75,632,965 | 1 | null | null | -1 | 14 | I have inherited a project that intends to make an internal MediaWiki site the multimedia, search, and archiving repository for documents originally authored in Microsoft Word. Today, those Word documents are converted into PDF, and then stored on a file server. But they are not directly searchable, they have proven d... | Publishing to MediaWiki from MS Word | CC BY-SA 4.0 | null | 2023-03-04T00:41:50.973 | 2023-03-04T20:49:50.713 | null | null | 1,536,437 | [
"ms-word",
"mediawiki"
] |
75,632,970 | 1 | null | null | 1 | 15 | following is the example GHA workflow yaml file I'm using. Currently I'm building an pushing docker image to artifact registry. And in the next step I run pytest on the docker image. But for next step it has to pull image which was build in the last step to run pytest. Is there any way I can run pytest without pulling ... | How to use docker build in next step of github actions after build step | CC BY-SA 4.0 | null | 2023-03-04T00:43:15.927 | 2023-03-04T01:17:36.173 | null | null | 7,867,046 | [
"docker",
"pytest",
"github-actions"
] |
75,632,963 | 1 | null | null | 0 | 21 | I'm writing a code about the type of flower that will grow if certain conditions are met. The problem is my code skips my `if` statement and jumps straight to the `else` statement – even when conditions on `if` are met. I have tried to compare my Strings using `.equals()` instead of `==` but it still doesn't work. What... | If Statement Skipped | CC BY-SA 4.0 | null | 2023-03-04T00:41:20.593 | 2023-03-04T17:48:40.917 | 2023-03-04T17:48:40.917 | 2,164,365 | 14,860,342 | [
"java",
"android",
"mobile-development"
] |
75,632,974 | 1 | null | null | -2 | 20 | I would to ask, How to make my mysql localhost online and can be access anywhere via internet while my locally connected Pc's are still connected with out net? For Example I have a Server and Client Setup at my Office, using Lan the client can access to the my mysql server which can be found at one of the PC that serve... | How to make make my mysql localhost online | CC BY-SA 4.0 | null | 2023-03-04T00:44:50.140 | 2023-03-04T00:44:50.140 | null | null | 13,243,784 | [
"mysql",
"web-hosting"
] |
75,632,973 | 2 | null | 75,632,921 | 1 | null | Yes, you can use `class(self)[1]` e.g.
```
Simple <- R6Class(
"Simple",
public = list(
getClass = function(){
class(self)[1]
}
)
)
mysimple <- Simple$new()
mysimple$getClass()
```
Based on the solution in the GitHub issues: [https://github.com/r-lib/R6/issues/135](https://github.com/r-lib/R6/issu... | null | CC BY-SA 4.0 | null | 2023-03-04T00:44:48.457 | 2023-03-04T00:44:48.457 | null | null | 17,581,735 | null |
75,632,967 | 1 | null | null | 0 | 7 | I am working with RealmSwift and the Atlas Sync App. I have made a breaking change in development mode and have received the following error.
```
"Error integrating bootstrap changesets: Failed to transform received changeset: Schema mismatch: Link property 'images' in class 'equipment' points to class 'EquipmentImage... | RealmSwift error "Error integrating bootstrap changesets: Failed to transform received changeset: Schema mismatch:" | CC BY-SA 4.0 | null | 2023-03-04T00:42:20.430 | 2023-03-04T00:42:20.430 | null | null | 6,712,965 | [
"mongodb",
"realm",
"mongodb-atlas"
] |
75,632,971 | 2 | null | 75,496,907 | 0 | null | The following action works:
```
name: Web
on:
push:
branches:
- main
workflow_dispatch:
jobs:
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: ⚙️ Set up repository
us... | null | CC BY-SA 4.0 | null | 2023-03-04T00:43:24.467 | 2023-03-04T00:43:24.467 | null | null | 13,160,199 | null |
75,632,968 | 1 | null | null | 0 | 13 | I'm attempting to add Google Ads conversion tracking within a React App. In this situation I need to set it up to trigger on click as opposed to page URL.
Within the index.html I added the Google Tag without issues:
```
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-____... | Google Ads Conversion Tracking Within React App | CC BY-SA 4.0 | null | 2023-03-04T00:43:04.770 | 2023-03-04T01:21:30.367 | 2023-03-04T01:21:30.367 | 6,222,152 | 6,222,152 | [
"reactjs",
"google-ads-api"
] |
75,632,972 | 1 | null | null | 0 | 7 | If I run the workflow with the following markup (source: [https://github.com/appleboy/telegram-action](https://github.com/appleboy/telegram-action)) it fails.
```
name: telegram message
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: send telegram message on push
u... | Github Action Telegram Bot Workflow failing because of no access to secrets | CC BY-SA 4.0 | null | 2023-03-04T00:44:21.687 | 2023-03-04T00:44:21.687 | null | null | 16,270,817 | [
"github",
"github-actions",
"telegram-bot"
] |
75,632,975 | 1 | null | null | 1 | 23 | I have 2 single column dataframes, after perform a LEFT JOIN using pd.conca, first column value doesn't align with the second one
```
import pandas as pd
df1 = pd.DataFrame({ 'city':['ABC','NEW','TWIN','KING']})
df2 = pd.DataFrame({ 'city':['NEW','ABC']})
```
[](https://i.stack.imgur.com/OlqdY.png)
```
pd.concat([df1,... | how to align rows in datafrane after pd.concat() Python pandas | CC BY-SA 4.0 | null | 2023-03-04T00:45:11.387 | 2023-03-04T11:18:22.747 | null | null | 10,530,575 | [
"python",
"python-3.x",
"pandas",
"dataframe"
] |
75,632,981 | 2 | null | 75,632,940 | 1 | null | The problem here most likely involves the wildcard that you used.
The correct way to ignore all files under that directory is this
```
"saving/client/hls/**/*": true
```
| null | CC BY-SA 4.0 | null | 2023-03-04T00:47:06.100 | 2023-03-04T00:47:06.100 | null | null | 3,795,691 | null |
75,632,980 | 2 | null | 75,626,811 | 1 | null | It's because `Fux.params` [(see the docs)](https://fluxml.ai/Flux.jl/stable/training/reference/#Flux.params) isn't exported by default. You either replace `params` by `Flux.params` (which is how it's often done in the docs, as far as I recall), or replace `using Flux` by `using Flux: params` (the second option being pr... | null | CC BY-SA 4.0 | null | 2023-03-04T00:47:01.143 | 2023-03-04T02:35:21.983 | 2023-03-04T02:35:21.983 | 21,328,933 | 21,328,933 | null |
75,632,977 | 1 | null | null | 1 | 16 | We have a service that uses github, AWS ECR and ECS, also use github action to make the flow work.
Is it possible to disable the rest PRs' mergebility until the current one is successfully deployed to ECS?
I tried to apply Github Branch rule such as CI must pass and codepipeline execution need to success. But that seem... | Is it possible to block subsequent PRs until the current PR is successfully deployed to ECS? | CC BY-SA 4.0 | null | 2023-03-04T00:45:33.383 | 2023-03-04T00:45:33.383 | null | null | 21,329,186 | [
"github-actions",
"devops",
"aws-codepipeline"
] |
75,632,979 | 2 | null | 75,632,469 | 4 | null | This problem is due to a bad conversion causing . Indeed, Numpy use C casts so to convert values, but converting floats outside the range 0-255 to 8-bit unsigned integers results in an in C. We tried to do our best to report errors in this case without impacting performance but this is not possible in all cases. The l... | null | CC BY-SA 4.0 | null | 2023-03-04T00:46:08.000 | 2023-03-04T00:46:08.000 | null | null | 12,939,557 | null |
75,632,984 | 2 | null | 75,621,985 | 0 | null | Figured it out!!
As of now, Apple Silicon chips seem to have some issues when using the latest version of cffi. Downgrading cffi to version 1.14.5 resolved the error!
```
pip install cffi==1.14.5
```
| null | CC BY-SA 4.0 | null | 2023-03-04T00:47:23.643 | 2023-03-04T00:47:23.643 | null | null | 21,322,487 | null |
75,632,976 | 2 | null | 75,610,098 | 0 | null | > Are there reasons not to do the reverse merge
Usually you do not merge integration branches (like `dev` or `main` or `master`) to other branches.
Integration branches are branches you are merging , not from.
If `iss53` itself is a long-lived branch, once you have merged it to `main`/`master`, you would recreate `iss5... | null | CC BY-SA 4.0 | null | 2023-03-04T00:45:18.410 | 2023-03-04T00:45:18.410 | null | null | 6,309 | null |
75,632,985 | 2 | null | 75,538,818 | 0 | null | If you are running in a PSS restricted namespace you will also need seccompProfile.type set to either RuntimeDefault or Localhost. If it is set to Localhost then other settings are required.
| null | CC BY-SA 4.0 | null | 2023-03-04T00:47:44.357 | 2023-03-04T00:47:44.357 | null | null | 13,623,212 | null |
75,632,987 | 1 | 75,633,013 | null | 0 | 17 | I am new to Hive SQL. I want to query some data which contains this part:
```
aid\":\"abcd
```
I have tried this:
```
data like '%aid\\\\":\\\\"abcd%'
```
but it does not work. Thank you!
| Hive SQL escape special char | CC BY-SA 4.0 | null | 2023-03-04T00:48:08.990 | 2023-03-04T00:55:41.407 | null | null | 11,673,354 | [
"hive"
] |
75,632,982 | 1 | null | null | 0 | 25 |
"Error: Dart library 'dart:html' is not available on this platform.
lib/…/pages/sign_up.dart:1
import 'dart:html';"
FAILURE: Build failed with an exception.
- Where:
Script '/Users/calyxwozniak/dev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151- What went wrong:
Execution failed for task ':app:compi... | How do I fix: "Error: Dart library 'dart:html' is not available on this platform." in ios/android development Flutter? | CC BY-SA 4.0 | null | 2023-03-04T00:47:12.550 | 2023-03-04T00:47:12.550 | null | null | 21,329,161 | [
"flutter",
"build.gradle",
"dart-html",
"pubspec"
] |
75,632,990 | 1 | null | null | 0 | 14 | I am trying to connect two BigQuery tables to Tableau but I receive the following error:
> The Google BigQuery service has denied access for this request.
Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials.
In BigQuery, one table receives data from the GoogleSheet that is located on Goo... | The Google BigQuery service has denied access for this request. Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials | CC BY-SA 4.0 | null | 2023-03-04T00:49:08.860 | 2023-03-04T15:10:56.583 | 2023-03-04T01:47:19.330 | 62,576 | 15,310,853 | [
"google-sheets",
"google-bigquery",
"tableau-desktop"
] |
75,632,986 | 1 | null | null | 0 | 18 | I have a C++ function createFolder (the symbols before the comments are for the better comments addon in vscode):
```
void createFolder(const char *dir, const char *foldername)
{
// ! Checking to see if the folder already exists
if (hasFolder(dir, foldername))
return;
// ? Full directory
char b... | Folder not naming properly after creation | CC BY-SA 4.0 | null | 2023-03-04T00:47:50.660 | 2023-03-04T01:48:24.980 | null | null | 18,131,236 | [
"c++",
"function",
"directory",
"naming"
] |
75,632,978 | 1 | 75,633,026 | null | 4 | 47 | I've been using cpython forever, but I'm new to pypy.
In cpython, this is how I use virtual environments and pip.
```
python3 -m venv venv
source venv/bin/activate
python3 -m pip install <package>
```
I recently started using pypy for a project, and noticed that the following works.
```
pypy3 -m venv venv
source venv/... | Correct way to use venv and pip in pypy | CC BY-SA 4.0 | null | 2023-03-04T00:45:43.817 | 2023-03-04T01:34:10.607 | 2023-03-04T01:06:51.683 | 5,530,864 | 5,530,864 | [
"python",
"pypy",
"ubuntu-22.04"
] |
75,632,992 | 1 | null | null | 0 | 21 | It appears that the way to close a Gtk4 library is by closing all the windows. The gir based bindings only allow the closing of a single window.
[https://docs.gtk.org/glib/type_func.List.foreach.html](https://docs.gtk.org/glib/type_func.List.foreach.html) seems to be the way to go.
I want to pass to it the list of appl... | How do I use Commpn Lisp CFFI to close all windows of an Gtk4 app? | CC BY-SA 4.0 | null | 2023-03-04T00:49:30.363 | 2023-03-04T02:18:13.117 | 2023-03-04T02:18:13.117 | 1,395,810 | 1,395,810 | [
"common-lisp",
"gtk4",
"cffi"
] |
75,632,998 | 2 | null | 75,632,923 | 0 | null | Of course I get it working right after I post the question. So changing
```
- npm run build
- npm run test
```
to
```
- npm test
- npm run build
```
Fixed it.
The build command just builds webpack, so I don't think it was the order. But not having "run" seems to fix the issue. Not sure how as npm run test also works ... | null | CC BY-SA 4.0 | null | 2023-03-04T00:51:20.760 | 2023-03-04T00:51:20.760 | null | null | 7,724,007 | null |
75,633,000 | 2 | null | 75,622,428 | 0 | null | Pricing for AutoML models pays for the three main activities: , , and . You can browse through this [documentation](https://cloud.google.com/vertex-ai/pricing) to see the pricing information. Usually, the pricing depends on per hour of usage.
| null | CC BY-SA 4.0 | null | 2023-03-04T00:51:33.643 | 2023-03-04T00:51:33.643 | null | null | 19,371,728 | null |
75,632,995 | 2 | null | 75,632,057 | 0 | null | You can use regex to find the 3rd character
```
out = df[df['ID'].str.contains('^.{2}(?!W)')]
# or
out = df[df['ID'].str.match('.{2}(?!W)')]
# or
out = df[df['ID'].str.match('.{2}[^W]')]
```
NOTE: difference between `str.contains` and `str.match` is that `str.match` match the string from beginning of the target.
```
... | null | CC BY-SA 4.0 | null | 2023-03-04T00:50:12.203 | 2023-03-04T00:50:12.203 | null | null | 10,315,163 | null |
75,632,989 | 2 | null | 73,854,506 | 0 | null | Rather than modifying the Tomcat context an interesting option could be to expose some parameters for modification .
```
<Resources cacheMaxSize="${CACHE_SIZE:-51200}" />
```
Exposing these parameter for the runtime would allow you not to have to rebuild and deploy an image every time you need to fine tune a setting.... | null | CC BY-SA 4.0 | null | 2023-03-04T00:48:52.177 | 2023-03-04T17:17:13.130 | 2023-03-04T17:17:13.130 | 13,659,777 | 13,659,777 | null |
75,632,988 | 1 | 75,633,175 | null | 0 | 40 | I've got a data table source, with various columns that could be either x or null. Depending on a hierarchy table, I would like to check the source whether it is filled out correctly, and if not maybe list the child to parent path where the data is incorrect.
The rule / check to be valid would be: if a child is x, all ... | How to check corresponding parent and child columns to be marked with x? | CC BY-SA 4.0 | null | 2023-03-04T00:48:18.553 | 2023-03-04T11:35:06.513 | 2023-03-04T01:48:03.363 | 62,576 | 17,388,245 | [
"excel",
"powerquery",
"hierarchy"
] |
75,632,999 | 1 | null | null | -1 | 6 | I followed the following steps to create an image and container for Nifi. the container is running but when i connect to localhost or 0.0.0.0, i always get this message:
"
This page isn’t working0.0.0.0 didn’t send any data.
ERR_EMPTY_RESPONSE
"
[docker running](https://i.stack.imgur.com/jcOHi.png)
Can someone help wit... | NIFI Docker localhost not working using MAC M1 | CC BY-SA 4.0 | null | 2023-03-04T00:51:31.327 | 2023-03-04T00:51:31.327 | null | null | 21,231,200 | [
"docker",
"macos",
"localhost",
"apache-nifi"
] |
75,633,003 | 1 | null | null | 0 | 7 | I see similar issues searching and I have adjusted my AWS Glue Crawler config to:
1. Exclude a directory called "Supporting Documents" (which has pdf's and csv's about the data) via the exclude */Supporting Documents/*
2. Had Glue "Create a single schema for each S3 path"
The format of the bucket is as follows:
```
... | AWS Glue Crawler creating one table for each snappy parquet file | CC BY-SA 4.0 | null | 2023-03-04T00:52:51.900 | 2023-03-04T01:02:45.803 | null | null | 237,696 | [
"amazon-web-services",
"aws-glue",
"parquet",
"amazon-athena",
"snappy"
] |
75,632,997 | 2 | null | 75,616,360 | 0 | null | In case anyone wants to solve the same issue:
```
import os
import shutil
import pandas as pd
location = "/home/any_location_you_want/"
# This is the path where you want to search
path = location
# this is the extension you want to detect
extension = '.csv'
for file in os.listdir... | null | CC BY-SA 4.0 | null | 2023-03-04T00:51:16.593 | 2023-03-04T00:51:16.593 | null | null | 21,052,609 | null |
75,633,008 | 2 | null | 67,048,401 | 0 | null | This is what worked for me. In the binding code for the class, include the equality operator for the class as shown.
```
#include <pybind11/operators.h>
namespace py = pybind11;
PYBIND11_MODULE(name, m)
{
py::class_<Data>(m, "Data")
.def(py::self == py::self)
.def(py::self != py::self);
}
```
The... | null | CC BY-SA 4.0 | null | 2023-03-04T00:53:48.170 | 2023-03-04T17:01:05.313 | 2023-03-04T17:01:05.313 | 13,562,030 | 13,562,030 | null |
75,633,009 | 1 | null | null | 0 | 17 | I want to make the following image the background for an app me and my friend are trying to make. However, we tried multiple methods and none succeeded.
We tried various methods, looking on youtube and Stack Overflow.
Here's our code:
```
import PySimpleGUI as sg
window = sg.Window(title="Cobalt", layout=[[]], margins=... | How do we turn an image into a background for a window using PySimpleGUI? | CC BY-SA 4.0 | null | 2023-03-04T00:53:52.067 | 2023-03-04T03:40:55.017 | 2023-03-04T00:57:50.857 | 18,069,264 | 21,100,606 | [
"python",
"background",
"pysimplegui"
] |
75,633,010 | 1 | null | null | -1 | 17 | I was trying to create a table in R Studio (on a local MySQL server)
The code is:
```
create table conditions(
condition varchar(255),
explanation varchar(255),
cid INT not null,
PRIMARY KEY (cid)
);
```
And after running it I got
Show in New Window
Error in .local(conn, statement, ...) :
could not run... | Got syntax error when I tried to create a table in a database | CC BY-SA 4.0 | null | 2023-03-04T00:54:09.440 | 2023-03-04T01:37:54.230 | 2023-03-04T01:37:54.230 | 5,389,997 | 16,326,282 | [
"mysql",
"sql"
] |
75,633,012 | 2 | null | 74,329,121 | 0 | null | I encountered this error using the receive_sharing_intent package. Turns out the [com.android.tools.build](https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google) dependency was out of date.
[Pull Request](https://github.com/KasemJaffer/receive_sharing_intent/pull/239)
Until that gets merged you ... | null | CC BY-SA 4.0 | null | 2023-03-04T00:55:29.520 | 2023-03-04T00:55:29.520 | null | null | 12,806,961 | null |
75,633,007 | 2 | null | 75,631,787 | 1 | null | You can use the AWS Private CA
[IssueCertificate](https://docs.aws.amazon.com/privateca/latest/userguide/PcaIssueCert.html)
API to create a certificate from your private CA. This API returns the ARN of
the certificate, which you can use to retrieve the certificate by calling the
[GetCertificate](https://docs.aws.amazon... | null | CC BY-SA 4.0 | null | 2023-03-04T00:53:45.140 | 2023-03-04T00:53:45.140 | null | null | 223,301 | null |
75,633,013 | 2 | null | 75,632,987 | 1 | null | Would you try this ?
```
WITH data AS (
SELECT 'aid\\":\\"abcd' str
)
SELECT str FROM data WHERE str LIKE '%aid\\":\\"abcd%';
```
[](https://i.stack.imgur.com/zOqjIm.png)
| null | CC BY-SA 4.0 | null | 2023-03-04T00:55:41.407 | 2023-03-04T00:55:41.407 | null | null | 19,039,920 | null |
75,633,011 | 1 | null | null | 0 | 28 | We are currently running Spark jobs on EKS 1.24. The jobs run in a PSS restricted namespace. We specify the securityContext settings in a pod template file. These settings provide a seccompProfile which is required by the PSS restricted policy. However, we discovered that the setting is not being added by Spark but by ... | Running Spark on EKS 1.25 in Restricted Namespace | CC BY-SA 4.0 | null | 2023-03-04T00:55:05.193 | 2023-03-04T17:54:37.520 | 2023-03-04T17:54:37.520 | 13,623,212 | 13,623,212 | [
"apache-spark",
"kubernetes",
"seccomp",
"security-context"
] |
75,633,004 | 1 | null | null | 0 | 21 | I just upgraded my docker desktop to a new version, and it broke my docker, other images work but the only one i need simply does not build and i got this error:
## +] Building 2.4s (2/3) [+] Building 2.5s (3/3) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 3.39kB 0.0... | Why are my docker-compose failing to build? | CC BY-SA 4.0 | null | 2023-03-04T00:53:07.773 | 2023-03-04T02:40:25.407 | null | null | 21,329,210 | [
"ruby-on-rails",
"docker",
"macos",
"docker-compose",
"dockerfile"
] |
75,633,016 | 2 | null | 75,632,760 | 1 | null | It looks like an encoding issue. The script doesn't know what it's trying to read so you have to tell it that it's encoded as `«class utf8»`. I don't use javascript so I can't help you with its syntax but in applescript, it would look like this.
```
read file inputPath as «class utf8»
--> "他是一位非常著名的演员"
```
The audio s... | null | CC BY-SA 4.0 | null | 2023-03-04T00:56:20.327 | 2023-03-04T00:56:20.327 | null | null | 7,410,243 | null |
75,633,020 | 2 | null | 65,349,099 | 0 | null | first try correct this line
```
final reportData = Provider.of<ReportModel>(context, listen: false).listName;
```
for using listview builder with provider on other widget you can pass reportData
```
final reportData = context.watch<ReportModel>();
```
from widget 1 to widget 2 using constructor to avoid error cause... | null | CC BY-SA 4.0 | null | 2023-03-04T00:57:08.277 | 2023-03-04T01:14:17.393 | 2023-03-04T01:14:17.393 | 16,443,387 | 16,443,387 | null |
75,633,005 | 1 | null | null | 1 | 37 | I am making a conversion script for an app I am making and would like to make a protocol for all of the different conversion structs I make. I want all of them to have a property named `unitType`, a property named `amount`, and a mutating function named `convert(to otherType) -> Double`. Here is the code:
```
public cl... | Protocol requirement of the type "class", but want it to be flexible between what property of the class | CC BY-SA 4.0 | null | 2023-03-04T00:53:16.390 | 2023-03-05T01:52:26.870 | null | null | 15,350,161 | [
"swift",
"class",
"struct",
"protocols"
] |
75,633,021 | 2 | null | 75,633,009 | 0 | null | I am sorry, but you cannot create backgrounds using PySimpleGUI. Sorry, just try images. Or, better yet, use Visual Basic.
| null | CC BY-SA 4.0 | null | 2023-03-04T00:57:51.740 | 2023-03-04T00:57:51.740 | null | null | 21,329,236 | null |
75,633,014 | 2 | null | 75,632,617 | 0 | null | >
Actually, you don't.
State properties and getters can be extracted to `ref`s using `storeToRefs` from pinia.
Using `ref` with `v-model` establishes a 2-way binding between the store's state and the input's value.
See it working:
```
const { createApp } = Vue
const { defineStore, createPinia, storeToRefs } = Pinia
c... | null | CC BY-SA 4.0 | null | 2023-03-04T00:56:00.307 | 2023-03-04T03:18:44.317 | 2023-03-04T03:18:44.317 | 1,891,677 | 1,891,677 | null |
75,633,019 | 1 | null | null | 0 | 22 | I have a pipeline that will whitelist the agents current IP to a storage account's network rules with:
```
az storage account network-rule add
```
It then immediately moves to the next task which requires access within one of the storage account's containers. Because there is a 5-30 second period where the network rul... | How can I test for when an Azure Storage Account network rule has actually taken effect | CC BY-SA 4.0 | null | 2023-03-04T00:56:54.483 | 2023-03-04T18:15:10.503 | 2023-03-04T18:15:10.503 | 781,754 | 4,388,132 | [
"azure",
"powershell",
"azure-cli",
"azure-storage-account"
] |
75,633,017 | 2 | null | 75,616,200 | 0 | null | Maybe something like the [AUTOSAR TimeSync over CAN (R22-11 SWS)](https://www.autosar.org/fileadmin/standards/classic/22-11/AUTOSAR_SWS_TimeSyncOverCAN.pdf) could be used similar over UART. AUTOSARs timesync is an adaption of IEEE 802.1AS and the linked document an adaption to CAN and its priority based arbitration. Ad... | null | CC BY-SA 4.0 | null | 2023-03-04T00:56:37.860 | 2023-03-04T00:56:37.860 | null | null | 8,321,975 | null |
75,633,024 | 1 | 75,635,899 | null | 1 | 26 | I call two independent API calls using Obeservable.zip(). In this case, if the first API fails(returning some kind of error), the second API never executes inside the subscribe(onNext) closure even if it is successful. and vice versa. I still want the success case and failure case from each api call. How can I solve t... | How to handle success case and failure case for multiple API calls when using Observable zip in RxSwift | CC BY-SA 4.0 | null | 2023-03-04T00:58:27.053 | 2023-03-04T20:44:52.790 | 2023-03-04T02:15:36.913 | 5,788,352 | 5,788,352 | [
"observable",
"rx-swift"
] |
75,633,022 | 2 | null | 75,544,793 | 0 | null | This solution is for NSAttributedString but you can convert it to AttributedString with init function:
[https://developer.apple.com/forums/thread/682431](https://developer.apple.com/forums/thread/682431)
You can packing the NSAttributedString in a Codable container, and the container is Data: you can convert the NSAttr... | null | CC BY-SA 4.0 | null | 2023-03-04T00:57:58.580 | 2023-03-04T01:22:34.890 | 2023-03-04T01:22:34.890 | 14,716,075 | 14,716,075 | null |
75,633,029 | 1 | null | null | 0 | 9 | Why does interpolation search work poorly for non-linear data? For example it works great when the array is {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} but does not work well with exponential arrays like {2, 4, 8, 16, 32, 63}. Thanks.
When I tried interpolation search on an exponential array, it yielded a higher number of maximu... | Why does interpolation search work poorly for non-linear data? | CC BY-SA 4.0 | null | 2023-03-04T01:01:10.943 | 2023-03-04T01:27:43.703 | 2023-03-04T01:27:43.703 | 11,107,541 | 20,079,697 | [
"search",
"linear-interpolation"
] |
75,633,015 | 1 | null | null | 0 | 20 | I wrote the following RSA tool in python and got it working, then I realized the way it was originally written would leave the encrypted message vunerable to frequency analysis. I've been upgrading it so that instead of encrypting letter by letter it splits a string of ASCII values into equal chuncks and encrypts the c... | Strange, random inconsistencies in RSA decryption of characters in an RSA python program I wrote | CC BY-SA 4.0 | null | 2023-03-04T00:56:04.537 | 2023-03-04T05:45:59.660 | null | null | 21,208,323 | [
"python-3.x",
"encryption",
"rsa"
] |
75,633,023 | 1 | null | null | -1 | 33 | I'd like to transform some data using awk but need some help pls. I want to extract for columns starting with "sam" (where the column number is undefined) everything before the first colon.
Input:
```
col1 col2 col3 col4 sam1 sam2 sam3
a b c d 0/1:12 1/0:9 0/1:16
e f g h 0/0:7 1/1... | Loop through columns, then transform cells, then show unique values in awk | CC BY-SA 4.0 | null | 2023-03-04T00:58:11.497 | 2023-03-04T02:57:19.417 | 2023-03-04T02:39:15.437 | 445,221 | 3,793,378 | [
"awk"
] |
75,633,028 | 1 | null | null | -3 | 25 | I'm parsing a file, the last line has no \n.
AS I parse char by char I get to the end.
In gdb it appears to be empty : IE p buffer = ""
I'm getting a segfault and have traced it to the last line of the file.
My data looks like :
a,b,,,,
```
I cannot determine when I reach that end of file.
I've tried if ((int)*buffer =... | C End of the file in a string | CC BY-SA 4.0 | null | 2023-03-04T00:59:56.040 | 2023-03-04T00:59:56.040 | null | null | 21,329,207 | [
"c",
"string",
"eof"
] |
75,633,030 | 2 | null | 75,632,863 | 0 | null | I was able to finally solve my problem.
Here is how I did it.
in the
> build.gradle(Project NoteTaking)
I replaced all code with
```
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "io.realm:realm-gradle-plugin:10.11.1"
}
}
plugins {
id 'com.android.applicatio... | null | CC BY-SA 4.0 | null | 2023-03-04T01:01:16.827 | 2023-03-04T01:01:16.827 | null | null | 17,441,457 | null |
75,633,032 | 2 | null | 70,553,541 | 0 | null | FYI, I just ran in the same problem (to get `nbconvert` to work).
This worked for me:
```
sudo yum -y install epel-release
sudo yum -y install pandoc --enablerepo=epel
```
For sake of completeness (not sure if necessary for `pandoc`, but I needed it for `nbconvert`), I also installed `xetex`:
```
sudo yum -y install t... | null | CC BY-SA 4.0 | null | 2023-03-04T01:01:41.857 | 2023-03-04T01:01:41.857 | null | null | 758,174 | null |
75,633,034 | 2 | null | 75,633,010 | 0 | null | The word "condition" is a reserved word in MySQL, and you cannot use it as a table name or column name without enclosing it in backticks (`).
Try changing the script to this:
```
create table conditions(
`condition` varchar(255),
explanation varchar(255),
cid INT not null,
PRIMARY KEY (c... | null | CC BY-SA 4.0 | null | 2023-03-04T01:02:10.970 | 2023-03-04T01:02:10.970 | null | null | 3,443,037 | null |
75,633,031 | 1 | null | null | 0 | 9 | I built a cash flow statement to show cash inflows and outflows by month. I used a matrix visual with 3 rows (type of transaction, account name and supplier), 1 column (month) and 1 value (the amount).
[](https://i.stack.imgur.com/JQSBt.png)
For every month, the report meets the expectation, but I have problems when I ... | Custom value to "column subtotal" inside a visual matrix | CC BY-SA 4.0 | null | 2023-03-04T01:01:26.593 | 2023-03-04T20:01:53.770 | 2023-03-04T20:01:53.770 | 19,099,302 | 21,329,200 | [
"powerbi",
"finance"
] |
75,633,036 | 2 | null | 75,633,003 | 0 | null | I deleted the directory and it worked. I couldn't get the excludes to work.
| null | CC BY-SA 4.0 | null | 2023-03-04T01:02:45.803 | 2023-03-04T01:02:45.803 | null | null | 237,696 | null |
75,633,026 | 2 | null | 75,632,978 | 3 | null | > Are there any differences between cpython venv/pip and pypy venv/pip?
Yes, PyPy make some changes in the venv Python code, so they may have some differences. Example for 3.7:
- [https://github.com/python/cpython/blob/v3.7.13/Lib/venv/__init__.py](https://github.com/python/cpython/blob/v3.7.13/Lib/venv/__init__.py)- [... | null | CC BY-SA 4.0 | null | 2023-03-04T00:59:35.020 | 2023-03-04T01:34:10.607 | 2023-03-04T01:34:10.607 | 674,039 | 674,039 | null |
75,633,035 | 2 | null | 75,398,509 | 0 | null | I have resolved this by changing to in function.
version =
Steps to make changes:
1. goto "node_modules/fawn/lib/fawn.js"
2. Scroll down until you see "function isMongoose(obj) { ... }".
3. change "obj.modelScemas" to "obj.Schema" -> save
4. Come back to project's root folder and run the index file -> node index.... | null | CC BY-SA 4.0 | null | 2023-03-04T01:02:32.050 | 2023-03-04T01:02:32.050 | null | null | 5,767,482 | null |
75,633,039 | 2 | null | 6,822,725 | 0 | null | For non-iterators, I find this solution more elegant than using built-in functions.
```
words = ["this", "is", "an", "example"]
def get_sliding_windows(doc, sliding_window, padded=False):
all_windows = []
for i in range(sliding_window):
front = sliding_window-i
all_windows.append(front*['']+doc... | null | CC BY-SA 4.0 | null | 2023-03-04T01:04:13.423 | 2023-03-04T01:04:13.423 | null | null | 7,714,681 | null |
75,633,027 | 2 | null | 75,632,710 | 0 | null | One way to write this, if you're willing to forgo the rounded line caps, is to use a mask layer. The idea is that your main layer's path is always the full rounded rect, and the mask layer is a circle with a wedge taken out to hide part of the rounded rect. It looks like this:
[](https://i.stack.imgur.com/RlRwG.gif)
He... | null | CC BY-SA 4.0 | null | 2023-03-04T00:59:53.030 | 2023-03-04T00:59:53.030 | null | null | 77,567 | null |
75,633,033 | 1 | null | null | -1 | 13 | I am trying to install flake8, to help me debug but it's not installing, note that I do not want to install it in the image
here is
my docker-compose.yml
```
version: "3.9"
services:
app:
build:
context: .
args:
- DEV=true
ports:
- "8000:8000"
volumes:
- ./app:/app
com... | how do you use docker to install packages (trying to install flake8 to help me debug) locally to keep the image as light as possible | CC BY-SA 4.0 | null | 2023-03-04T01:01:52.763 | 2023-03-04T01:01:52.763 | null | null | 19,686,784 | [
"django",
"docker",
"flake8"
] |
75,633,037 | 1 | 75,633,145 | null | 1 | 42 | The url is [https://sputnick.fr/](https://sputnick.fr/)
The HTML is:
```
body {
background-color: #15141A;
background-image: url("https://sputnick.fr/header.jpg");
color: white;
font-family: "Arial";
font-size: 16px;
}
```
```
<h1>foobar</h1>
<p>lorem ipsum doloris</p>
<p>lorem ipsum doloris</p>
<p>lorem ipsu... | How to place my <p>texts</p> after the end of the background image, keeping leading <h1> as is? | CC BY-SA 4.0 | null | 2023-03-04T01:02:55.693 | 2023-03-04T01:43:24.690 | 2023-03-04T01:43:24.690 | 5,641,669 | 465,183 | [
"html",
"css",
"background-image"
] |
75,633,025 | 1 | null | null | 0 | 26 | Video is processed by WebGL shader that adds a blur filter and renders it on canvas. However, as a result, the video is displayed upside down. The demo is [here](https://jsfiddle.net/liubomyrB/jw20e1t7/60/). Whether it's upside down or not - depends on how many times the blur filter was applied. If the blur filter is a... | JS, WebGL: video displayed upside down | CC BY-SA 4.0 | null | 2023-03-04T00:59:12.593 | 2023-03-04T03:02:45.257 | 2023-03-04T03:02:45.257 | 5,714,569 | 5,714,569 | [
"javascript",
"canvas",
"glsl",
"webgl",
"fragment-shader"
] |
75,633,042 | 2 | null | 75,632,933 | 0 | null | You need to create a tunnel for this to work
The below example is for postgresql, however you can use the following steps for mysql too.
First - I logged onto EC2, installed postgresql and did a connectivity check
```
[ec2-user@ip-192-168-1-44 ~]$ sudo su -
[root@ip-192-168-1-44 ~]# yum install postgresql
[root@ip-192... | null | CC BY-SA 4.0 | null | 2023-03-04T01:05:01.263 | 2023-03-04T01:39:27.590 | 2023-03-04T01:39:27.590 | 3,671,056 | 3,671,056 | null |
75,633,046 | 1 | null | null | -1 | 15 | i used [this](https://docs.opencv.org/4.x/dc/dc3/tutorial_py_matcher.html#:%7E:text=Brute%2DForce%20Matching%20with%20SIFT%20Descriptors%20and%20Ratio%20Test) tutorial to find matches of template on image. Here is code:
```
import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt
img1 = cv.imread('template.p... | Remove matches from image by OpneCV on Python | CC BY-SA 4.0 | null | 2023-03-04T01:05:27.080 | 2023-03-04T01:05:27.080 | null | null | 17,033,139 | [
"python",
"image",
"opencv",
"watermark"
] |
75,633,043 | 1 | null | null | 0 | 31 | I am testing a user input on each keystroke to make sure that the input rules are enforced. For some reason when typing in the input it takes two keystrokes to input anything. I'm not sure if it's the regex or my setup that is failing.
Regex expected results:
```
// Should pass
보령남로 162
서울특별시 은평구 증산동 증산로9길 13 rrt
도계읍 문... | Regex for input is failing on every other keystroke - testing for Hangul chars + numerics + up to 3 roman chars | CC BY-SA 4.0 | null | 2023-03-04T01:05:06.167 | 2023-03-04T01:53:50.280 | 2023-03-04T01:53:50.280 | 4,372,579 | 4,372,579 | [
"javascript",
"reactjs",
"regex"
] |
75,633,045 | 2 | null | 75,628,648 | 0 | null | Your variable `device` is not in that hotkey's scope. You'd have to explicitly state that you're using a variable from the global scope. Or in this case what you really want is a static variable in the hotkey's scope.[(about local and global)](https://www.autohotkey.com/docs/v2/Functions.htm#Locals)
And also, you're tr... | null | CC BY-SA 4.0 | null | 2023-03-04T01:05:20.843 | 2023-03-04T01:05:20.843 | null | null | 3,813,732 | null |
75,633,048 | 1 | null | null | -2 | 17 | Can I manipulated the local git with PyGithub?
I am trying to do create a new branch off a local master, commit local changes, push the branch Github server and create merge request.
How can I do these things using PyGithub library?
| Can I manipulated the local git with PyGithub? | CC BY-SA 4.0 | null | 2023-03-04T01:06:00.090 | 2023-03-04T01:06:00.090 | null | null | 9,183,027 | [
"python",
"git",
"github",
"pygithub"
] |
75,633,051 | 2 | null | 75,632,488 | 1 | null | We can loop through `access_id` values and use each value as `id` and get other values from `textFields` with the `access_id` values.
So you can use this spec:
```
[
{
"operation": "shift",
"spec": {
"access_*": {
"*": {
"*": {
"@1": "data[&2].&(3,1)",
"@(4,text... | null | CC BY-SA 4.0 | null | 2023-03-04T01:06:26.777 | 2023-03-04T01:17:32.343 | 2023-03-04T01:17:32.343 | 8,428,397 | 8,428,397 | null |
75,633,050 | 2 | null | 75,631,863 | 0 | null | You can use the `lead` function to check if the value of (age or phone) is changed then aggregate as the following:
```
select Cust_ID, Name,
concat_ws(', ', max(age_flag), max(phone_flag)) as Change_field
from
(
select *,
case
when age <> lead(age, 1, age) over (partition by cust_id order by start_dt) t... | null | CC BY-SA 4.0 | null | 2023-03-04T01:06:07.803 | 2023-03-04T01:06:07.803 | null | null | 12,705,912 | null |
75,633,040 | 1 | null | null | 0 | 40 | I have the following code which can be nicely imported in Scene Builder:
```
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.VBox?>
<fx:root type="javafx.scene.layout.VBox"
xmlns:fx="http://javafx.com/fxml/1"
... | Importing a custom component in Scene Builder with a custom class as root element | CC BY-SA 4.0 | null | 2023-03-04T01:04:22.933 | 2023-03-04T10:13:26.487 | 2023-03-04T10:13:26.487 | 9,087,223 | 9,087,223 | [
"java",
"javafx",
"classloader",
"fxml",
"scenebuilder"
] |
75,633,054 | 1 | null | null | -1 | 12 | I trained a model which has several categorical variables which I encoded using dummies from pandas. Now, when I score the model on new/unseen data, I have lesser categorical variables than in the train dataset. Thus, I get a mis-match error.
Instead of using pd.dummies, is there a better best practice so account for d... | Issues with lenght mis-match when fitting model on categorical variables using xgb classifier | CC BY-SA 4.0 | null | 2023-03-04T01:07:03.560 | 2023-03-04T01:07:03.560 | null | null | 19,321,677 | [
"python",
"machine-learning",
"scikit-learn",
"feature-engineering"
] |
75,633,056 | 2 | null | 75,632,908 | 1 | null | ':' Dos work if you are ok with using the index and not the df-names
```
lst2 <- spec_list[6:9]
```
| null | CC BY-SA 4.0 | null | 2023-03-04T01:08:12.553 | 2023-03-04T01:08:12.553 | null | null | 17,579,093 | null |
75,633,044 | 2 | null | 75,610,195 | 0 | null | The problem is the `pgpass` volume mount:
```
volumes:
- ./backend/pgadmin/servers.json:/pgadmin4/servers.json
- ./backend/pgadmin/pgpass:/var/lib/pgadmin/storage/pgadmin4_pgadmin.org/pgpass
```
If you look at the image filesystem, you will see that `/var/lib/pgadmin` exists and is owned by user `pgadmin`:... | null | CC BY-SA 4.0 | null | 2023-03-04T01:05:16.817 | 2023-03-04T21:37:32.100 | 2023-03-04T21:37:32.100 | 147,356 | 147,356 | null |
75,633,052 | 2 | null | 75,632,706 | 1 | null | Here's the relevant source code [part](https://github.com/scipy/scipy/blob/9da5381f1d75c6a61261009b5517ba54719d87aa/scipy/optimize/_minpack_py.py#L1013):
```
def curve_fit(f, xdata, ydata, p0=None, sigma=None, absolute_sigma=False,
check_finite=None, bounds=(-np.inf, np.inf), method=None,
ja... | null | CC BY-SA 4.0 | null | 2023-03-04T01:06:41.460 | 2023-03-04T01:06:41.460 | null | null | 14,401,160 | null |
75,633,060 | 1 | null | null | 0 | 17 | Data has headers like `_col_0`, `_col_1`, etc. I have a sample data file that has the correct column headers.
However, all the data is in snappy/parquet across ~250 files.
What is the easiest way to remap the column headers in Glue?
Thanks.
| Easiest way to remap column headers in Glue/Athena? | CC BY-SA 4.0 | null | 2023-03-04T01:08:26.940 | 2023-03-04T01:08:26.940 | null | null | 237,696 | [
"amazon-web-services",
"aws-glue",
"parquet",
"amazon-athena",
"snappy"
] |
75,633,059 | 1 | null | null | 0 | 13 | I am working on a Tableau dashboard in which I want to show an employee's salary in one sheet and average salary of that employee's department in another sheet in the same dashboard. So it will look like below
> Employee Salary Department DepartmentAvgSalary
Jessica 1000 Marketing 1200... | Unable to aggregate on department level when I select an employee from filter | CC BY-SA 4.0 | null | 2023-03-04T01:08:25.123 | 2023-03-04T01:23:17.510 | 2023-03-04T01:23:17.510 | 62,576 | 21,329,232 | [
"tableau-api",
"tableau-desktop",
"tableau-prep"
] |
75,633,057 | 2 | null | 75,608,667 | 0 | null | Try first a [git fetch --prune origin](https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt--p) to see if it respect your refspec, and [prune](https://git-scm.com/docs/git-fetch#_pruning) your remote tracking branches that you do not fetch.
Same idea with [git remote prune origin](https://git-scm.com/docs/git... | null | CC BY-SA 4.0 | null | 2023-03-04T01:08:19.340 | 2023-03-04T01:23:28.057 | 2023-03-04T01:23:28.057 | 6,309 | 6,309 | null |
75,633,047 | 2 | null | 75,625,523 | 3 | null | Both `++z` (at `#4` and `#6`) happen before `z.load()` in `main` ([[thread.thread.member]/4](https://eel.is/c++draft/thread.thread.member#4), [[intro.races]/9](https://eel.is/c++draft/intro.races#9), [/10.2](https://eel.is/c++draft/intro.races#10.2)), if they happen at all.
These side effects are necessarily visible to... | null | CC BY-SA 4.0 | null | 2023-03-04T01:05:43.007 | 2023-03-04T14:52:24.560 | 2023-03-04T14:52:24.560 | 20,625,353 | 20,625,353 | null |