instruction stringlengths 0 30k ⌀ |
|---|
I'm writing a programming lab and I have this error, I don't know how to solve this, please help
[bug](https://i.stack.imgur.com/cpGdK.png)
the program crashes when I select item 10 and information from the file is not deleted afterward
Also, the program doesn't delete information from file
My mentor said that... |
The instruction at 0x00007FF697F8AE43 referenced memory at OxFFFFFFFFFFFFFFFF. The memory could not be read |
|c++|c++14| |
null |
|ios|react-native|policy|privacy| |
This problem occurres when trying to deploy Databrciks Assets Bundles using poetry locally.
When I deployed the bundle (with the artifact block) using Azure DevOps Pipeline, I didn't face the problem.
|
I have a local csv file having table name as `market_date_info`. One of the column in this table is `market_date`. The date is in DD-MM-YYYY format. Below are first 5 rows of the column shown in attached picture. I have taken only 5 rows just for the sake of simplicity.
[First_5_rows_of_csv](https://i.stack.imgur.com/... |
How does Big Query differentiate between a day and month when we upload any CSV or text file? |
|sql|csv|date|google-bigquery|schema| |
null |
In VLC I use this line in the procedure for loading from a .csv file:
StringGrid1.Rows[i].Assign(SRow);
But in FMX there is no property `Rows[]` so that I can insert delimited text with a line.
I can use `StringGrid1.Cells[i,j]`, but then I'll have to handle the delimiters myself.
How to write a string... |
|csv|delphi|firemonkey| |
Had the same issue on Mac, even with the drag & drop option.
Click the small icon in the middle of the top line (right to the "Autogenrate" etc. things).
Select "Provide code in this dialog" and paste:
```
from qgis.PyQt.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
def __in... |
I am attempting to install [EnergyPlus](https://github.com/NREL/EnergyPlus/releases/tag/v24.1.0) in a Docker Image, but getting stuck a the license acceptance during the docker build step?
My Dockerfile looks like:
```Dockerfile
FROM ubuntu:22.04
# wget
RUN apt-get update
RUN apt-get install -y wget
RUN r... |
I am upgrading my project to the latest version and noticed that AWS Amplify (`aws-amplify/storage`) also got upgraded from v5 to v6. I used `Storage.get(img.key)` back then to obtain a pre-signed URL, which now changed to `getUrl(img.key)`. Now, the problem lies in the response they give, which used to be a string, bu... |
Convert AWS Amplify's V6 getUrl() output to V5 get() presigned url string |
|aws-amplify| |
[microsoft store screen](https://i.stack.imgur.com/0N0Ld.jpg)
I want an automatic login to the Microsoft store application with my e-mail and password address (without showing the password to the user).
Auto it [demo script ](https://www.autoitscript.com/forum/topic/210881-microsoft-store-auto-login-or-auto-f... |
How to auto login to microsoft store? |
|store|autologin| |
null |
I have mutliple applications configured under same realm and using keycloak security adapter 18.0.2 library, when I login to one app, it automatically logs me to all other application, that part is good, but when I logout from one app it did not log out from other apps, I see that keycloak sessions were cleared for all... |
single signout is not working in keycloak spring security adpter 18.0.2 |
null |
null |
null |
I'm experimenting with some Bootstrap tabs that render partials, and inside the partials are other nested tabs that could possibly eventually render the same partials, in a never ending maze of Bootstrap tabs. I resolved the issue of certain tabs not working within the maze (because their divs were using the same ID as... |
New error on random number assigned to local variable , Rails |
|ruby-on-rails|exception|random| |
somehow I am unable to sort the values in descending order in horizontal bar chart.
occupation_stats = users_data.groupby('Occupation').agg(Occupation_Total=('User_Total','sum'),
Occupation_Mean=('User_Total','mean'),
... |
matplotlib sort barh by values |
|sorting|matplotlib|bar-chart| |
So it seems that `nextTick()` wasn't enough to wait for all the asynchronous tasks to finish.
I tried adding:
```
const [result,app] = withSetup(async() => {
const { postMessageFromIframe } = usePostMessage();
await postMessageFromIframe(expectedPayload);
return { p... |
{"Voters":[{"Id":269970,"DisplayName":"esqew"},{"Id":354577,"DisplayName":"Chris"},{"Id":2756409,"DisplayName":"TylerH"}]} |
I'm trying to make a text recognition program and caught this error.
here's the code:
```
from PIL import Image
import pytesseract
print("Enter File/Folder's Full Path")
file = input('> ')
print("Enter output Folder")
outfol = input('> ')
print() print('Converting...')
print()
os.system('cd /d ' ... |
UnicodeDecodeError occured using tesseract OCR in python 3.1 |
|python|ocr|tesseract| |
null |
{"Voters":[{"Id":1931641,"DisplayName":"PassKit"},{"Id":12957340,"DisplayName":"jared_mamrot"},{"Id":2756409,"DisplayName":"TylerH"}],"SiteSpecificCloseReasonIds":[18]} |
I would like to modify some HTML stuffs in a function called **pagination()** in this Wordpress core file:
**wp-admin/includes/class-wp-list-table.php**
I have been searching for relevant hook which can be used to update HTML in the above function, but I have not found one.
Here are HTML I would like to change... |
Use following `xpath` to identify the element, which is checkbox element.
@FindBy(xpath="//input[@id='Tnc']")
|
Diagnostics configs are not visible from the Network Gateway section, you can enable it by going to the generic `Monitor` section. From the Left blade go to `Diagnostic Settings` > find the Virtual Network Gateway that your using for your Point-to-Site VPN. Enable the Tunnel Diagnostic Logs (and any others you want), s... |
Just use `SignedJWTVerifier` from `app-store-server-library`
for example
```javascript
import { SignedJWTVerifier } from 'app-store-server-library';
const verifier = new SignedJWTVerifier(appleRootCAs, enableOnlineChecks, environment, storeConfigs.appStore.BundleId, appAppleId);
``` |
I have developed a console app that has the following:
- MyProject
- Program.cs
- log4net.config
- AssemblyInfo.cs
- MyProject.csproj
- MyProject.sln
In Program.cs:
using log4net;
using log4net.Config;
namespace MyProject
{
class MyClass
{
... |
ERROR: Failed to find configuration section 'log4net' in the application's |
Main thread frozen handling interval, sending accumulated data with enormous delay |
|python|telegram|python-telegram-bot| |
I'm writing some tests for an AWS lambda that handles and routes notifications from a SNS topic, and if a specific feature flag is off, then it returns immediately. However one of the test's implementation carries over to the next test, and it makes the handler fails when it should not.
**MWE for the handler:**
```... |
Try using [`add_compile_definitions`](https://cmake.org/cmake/help/latest/command/add_compile_definitions.html) at the top of the top-level CMakeLists.txt file (or whichever variable scope you want this to apply to) with the `$<COMPILE_LANGUAGE:languages>` [generator expression](https://cmake.org/cmake/help/latest/manu... |
konichiwa
I am doing some homework and prepare for final exam, but I got stuck in here many hours, pls help me
A square matrix (nxn)
Write down the Even elements into matran.txt, then read from file and display it on screen
```
//this is function write down file matrix.txt, and it's work normally
v... |
|keycloak| |
null |
Convert AWS Amplify's V6 getUrl() output to V5 Storage.get() presigned url string |
> Does Polly reconnects and establishes new connection during retry on errors like "connection was terminated abnormally" or "A connection with server could not be established" etc or "Server returned invalid or unrecognized response".
Polly's retry policy (or strategy in case of V8) is domain agnostic. That means t... |
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}],"SiteSpecificCloseReasonIds":[18]} |
I am new to AWS. I'm trying to use Lambda to deploy a backend made with FastAPI and Mangum.
It works well if I use Lambda's 'Function URL', but if I use the 'AWS API Gateway' URL, it seems that somehow the path is not resolved correctly. What am I doing wrong?
I tested it with code similar to the following:
`... |
AWS Lambda successfully called with 'Function URL', but not with 'API Gateway' |
Now, pytorch 2.2.0, 2.2.1 and 2.2.2 support windows with cuda 12.1.
By the way, I build a tool website for easy find and download right install wheels.
https://install.pytorch.site/?python=Python+3.12&device=CUDA+12.1 |
Using Gleam, what is best practice for spawning a process:
import gleam/io
import gleam/http
import gleam/http/response
import gleam/http/request
import gleam/int
import gleam/otp/process // <<<< this does not exist?
pub fn handle_request(_req: request) -> response {
... |
We are developing a multi-tenant application with a common Web API for all the tenants and tenant specific databases.
We are planning to use a single azure application insights using OpenTelemetery for instrumentation.
Questions
- How can we ensure that the tenant of is populated in all the metrics, logs and ... |
OpenTelemetry in an multi-tenant ASP.NET Core app |
I'm using ProjectsV2 in Github, and since we don't have some pretty basic automations, I'm trying to write my own.
I need to get a list of all my custom fields in the project, so I can then use their ids to modify those fields using my script.
I already managed to get a list of projects, labels, issues, prs, but ... |
I have a service called at `github.com/me/service` and I import this in a worker `github.com/me/worker`. I pushed a branch to the service, say `dev_branch` and when I do:
```
go get github.com/me/service@commit_sha // or @dev_branch - I tried both
```
in the worker, it complains:
```
go: github.com/me/service@com... |
importing non-master go branch in another go repo |
|go|dependency-management|go-modules| |
// MARK: - Text Styles, iOS 15+:
import SwiftUI
struct TextStyle {
var fontFamily: String = "Roboto Flex"
let fontSize: CGFloat
let fontWeight: Font.Weight
let lineHeight: CGFloat
var lineSpacing: CGFloat { lineHeight - fontSize }
}
// MARK:... |
I am testing the m.if3 function in gekko by using conditional statements of if-else but I get two different outputs. The optimal sites i get from below code is 12. I plug that in the next code with if-else statement to ensure that the cost matches up but it does not. Am I using if3/if2 incorrectly? The enroll_rate is 0... |
I was trying to add spinner to my angular project but got weird error:
my ngx-spinner-component.d.ts line with error: `ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxSpinnerComponent, [null, null, null, { optional: true; }]>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxSpinnerComponent, "ngx-sp... |
ngx-spinner error Property '"bdColor"' is incompatible with index signature |
|angular|typescript|spinner| |
Using CSS and HTML I would like to achieve this effect without duplicate content?
[1. Screen width greater than 550px:](https://i.stack.imgur.com/rShOq.png)
[2. Screen width less than 550px: ](https://i.stack.imgur.com/8vUAK.png)
Here's a link to the sample page which uses the code which I pasted in next section:
h... |
We are currently working on a MAUI project, versioned on git. I got View containing a picker, but in my case the picker isn't visible. I can click and interact with it, and the logic is still here.
Furthermore, my colleagues have the right display (see below).
my colleagues' popup:
, uses the watchdog library to monitor a folder for changes. When a new image is detected, it executes a command to process the image with the YOLOv5 model. The process is suppo... |
I my code, where I have 3 dropdown menus dependend on each other, middle menu does not keep the value selected. Everything else works as intended, that means, if I select Option1 for an example in main menu, sub menu should have options aaaa and bbbb and then sub sub menu keeps me select from 1111 and 2222 accordingly.... |
Install EnergyPlus in. Docker Image |
|docker|energyplus| |
Second one is definitely not a right thing because `18.495` will end up being "obesity grade 2" for example.
As for "right or wrong" - ask your teacher for `bmi` value which will lead to actually testing different number conditions compared to the suggested solution.
To verify number of `if`'s tested you can ad... |
Change the sdk version as installed. You can find by running the command in terminal in VSC or "Developer Powershell" in VS.
Then change the version to the version you want.
Like in my case 6.0.408 was there annd I changed it to 6.0.128.
https://learn.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed... |
{"Voters":[{"Id":11082165,"DisplayName":"Brian61354270"},{"Id":3776927,"DisplayName":"derpirscher"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[18]} |
Firstly, --timer will always return 4 since 5 was set as the initial value, thus you will never be redirected. You should add a else block to reduce timer value by 1 after every 60 000 milliseconds. |
{"Voters":[{"Id":13114418,"DisplayName":"Gokhan Ozpay"}],"DeleteType":1} |
{"Voters":[{"Id":13114418,"DisplayName":"Gokhan Ozpay"}]} |
I got a better solution, in my case I am working with a `<mat-grid-tile>` and to resolve the issue I've just setted `overflow: visible` on the mat-grid-tile.<br>
I'm getting an error trying to build the Stackblitz example that you shared but I guess that in your case you should add the `overflow` property on the `<mat... |
How to fix Django warning "(models.W042) Auto-created primary key used when not defining a primary key type"? |
|django|django-models| |
Given the following df:
```
data = {'Org': ['Tom', 'Kelly', 'Rick', 'Dave','Sara','Liz'],
'sum': [3, 4, 4, 4, 5, 5]}
df = pd.DataFrame(data)
# Org sum
# 0 Tom 3
# 1 Kelly 4
# 2 Rick 4
# 3 Dave 4
# 4 Sara 5
# 5 Liz 5
```
I want to shuffle only the duplicate ... |
Connecting Python to MongoDB. Performing crud operations, Get is working but Post is not working.
Below is the code for the form that has textfields and submit button.
@app.route('/submit-form', methods=['POST'])
def submit_form():
data = request.json
print(data)
... |
Post method in python for mongo db |
|python|reactjs|mongodb| |
There are a number of different ways of tackling this, and which one works best probably depends on how much commonality there is between the different input document types.
One way would be to write a stylesheet module to handle each kind of input document, each using a different mode, and then use the top-level st... |
The biggest obstacle here seems to be that the flow-chart at the top of the question is either incomplete or plain incorrect. I was at first confused about the right-shifting of the divisor shown in the flow-chart, as most bit-by-bit division algorithms keep the divisor unchanged and instead apply a left shift to the c... |
If the most recent change for both directories is a deletion in `local_folder` this sync:
```bash
rsync -avzru local_folder/ remote_folder
rsync -avzru remote_folder/ local_folder
```
will revert the deletion change (restore the files/dirs) regardless of the execution order.
There are different approaches to t... |
I am working with the power query editor in power bi (M).
I want to calculate the average durations based of a column of texts in the format as are shown in the picture and I want this average to be in "X Days Z Hours Y Minutes C Seconds".
As an example assuming that this column had 2 rows:
1. "2 Hours 30 Mi... |
Calculate average duration from text in power bi |
|powerbi|dax|powerquery|m| |
null |
You can redefine classes and inject code at runtime just fine even when the verifier is 'on'. The bytecode you inject has to pass the verifier, though. This is normally not particularly difficult. This sounds like an X/Y problem: The underlying issue is that the code you have that injects bytecode is badly written (gen... |
## Impossible? Hold my beer.
Make the select element aware of the current option. CSS can handle the rest. For this, all we need is a value assignment in the *onchange* event. With a little more effort you can also initialize the `<select>` tag by its original value; not included below but it's super easy, just give... |
In my case, I solved it by changing the following in wakelock build.gradle:
buildscript {
ext.kotlin_version = '1.5.20'
[enter image description here][1]
[1]: https://i.stack.imgur.com/0ipzr.png |