instruction stringlengths 0 30k ⌀ |
|---|
Regexp to remove small numbers and leave large ones |
|regex|perl| |
```
┌──(em㉿em)-[~]
└─$ sudo create_ap wlan0 wlan0 MyAccessPoint MyPassPhrase
Config dir: /tmp/create_ap.wlan0.conf.Jr1F43yn
PID: 120173
cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead
cp: warning: behavior of -n is non-portable and may change in future; use --update... |
I'm getting an error from Facebook API.
` string(135) "{"error":{"message":"(#100) The parameter data is required","type":"OAuthException","code":100,"fbtrace_id":"AGpuvWfJHaG5Dyx4ffRZ_e-"}}" `
I have used the PayLoad Builder to create my PayLoad and used cURL to post it.
` $pixelID = "MY PIXEL ID";
... |
its not possible to render without attaching canvas to dom, but you can hide it and it will work as expected.
```javascript
const chartEl = document.createElement("canvas");
chartEl.setAttribute("width", "400");
chartEl.setAttribute("height", "400");
chartEl.style.display = "none";
document.body.append(char... |
So I'm trying to make a simple login system using HTML, CSS and Javascript. No passwords, just a simple click on a button to log you in through a profile. I would have thought doing this would be easier than creating a password system, however finding examples and information on this is few and far between.
I'm curr... |
gpg - decrypt generating zero byte output |
|python-3.x|google-cloud-platform|gnupg| |
Thanks in advance for answer my question.
Assume I have a table like t1. There are 3 columns in the table.
t1.id t1.ins_dt base_id
10000 2024-03-27 00:00:00 1234/45678/000/00
10000 2024-03-27 06:30:00 1234/45678/001/00
10000 2024-03-27 09:30:00 1234/45678/002/00
I have another table like t2... |
I'll assume `g` is a function of the two variables so the integrals cannot be decoupled or integrated analytically.
[`scipy.integrate.trapezoid`][1] is for 1D integrals. If you have a 2D integral, you'd need to integrate over each axis of your array separately.
I've changed your function by squaring the integrand... |
I have inherited the class TStringGrid and have redefined two events:
```
class TOwnStringGrid : public TStringGrid
{
public:
__fastcall TOwnStringGrid(TComponent *Owner,
int posX, int posY, int zeilenanzahl, int spaltenanzahl);
__fastcall ~TOwnStringGrid();
void __fastcall DrawCell(TObject *S... |
Creating a login system for my website, navlist not working? |
|javascript|html|authentication| |
null |
|powershell| |
can you please help me solve this error that i am getting on my x code 15 and how to get rid of it and it is happening in my swift code
this is the error:
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ed17ff0)
thank you for your help
i tried to clean the error but did not work
this is my code
import S... |
I am trying to delete a tenant that was created in 2020.
I am stuck on this screen.
[![Delete Tenant Screen][1]][1]
There are no LinkedIn applications or license based subscriptions. This was trial that has long expired. **So how do I go about deleting something that no longer exists?**
I have logged a suppo... |
Microsoft Entra ID - How to delete a tenant? |
|azure-active-directory| |
I noticed an issue after I installed breeze on my Laravel application. When trying to register my user I was receiving the following error:
> Call to a member function prepare() on null
Which pointed to the following:
$user = User::create([
"name" => $request->name,
"email" => $request->e... |
For safety reasons, a library I am working on has to determine owning process stages. Precise determination is not required but something like before/after main, before/after multithreading is enabled?
Something like std::atexit but for the startup?
The best idea I have is to create a class that will set a mark a... |
Where to put event handler method of an inherited class in C++ Builder? |
|events|tstringgrid| |
I'm trying to animate a sine wave made out of a Shape struct. To do this, I need to animate the phase of the wave as a continuous looping animation - and then animate the frequency and strength of the wave based on audio input.
As far as I understand it, the `animatableData` property on the Shape seems unable to han... |
I am new to SwiftUI and I'm trying to pass in some coordinates from an object I have inside a `NavigationStack`
I feel my approach is correct but the error suggests it needs a two way binding property which I don't have in this instance.
I tried setting a variable called `var region` and then passing that to the ... |
Update one-to-one relationship in SwiftData |
|swift|swift-data| |
{
"name": "myapp",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www",
"devstart": "nodemon ./bin/www"
},
"dependencies": {
"cookie-parser": "~1.4.4",
"debug": "~2.6.9",
"express": "^4.19.1",
"http-errors": "~1.6.3",
"jade": "^0.31.2",
... |
Use CalanderView in Kotlin
and then use its inbuild function
"addDecorator()"
impliment like..(JAVA)
binding.calendarView.addDecorator(new DayViewDecorator() {
@Override
public boolean shouldDecorate(CalendarDay day) {
return day.isBefore(CalendarDay.today... |
Use CalanderView in Kotlin
and then use its inbuild function
"addDecorator()"
impliment like..(JAVA)
binding.calendarView.addDecorator(new DayViewDecorator() {
@Override
public boolean shouldDecorate(CalendarDay day) {
return day.isBefore(CalendarDay.today... |
I have a script that process millions of data. Same data are corrupted, thus the framework I use is fail and throws exception. I am dependent to a framework that I cannot change/update. I have use it as it is. Every time I use function of this framework I use try/catch. Therefore, I am using lots of try/catch blocks as... |
[screen shot error](https://i.stack.imgur.com/vmtpK.png)[enter image description here](https://i.stack.imgur.com/JtF4P.png)
Lombok version 1.18.32 is compatible with Java 8, but encounter errors when attempting to use it with Java 17, despite having installed it in Eclipse.
Lombok 1.18.32 ->It is working with ... |
While using Lombok 1.18.32 with java 17 it gives error that The type Lombok.Setter and Lombok.Setter is not accessible |
|java|lombok| |
null |
1. Sure you did not update accidentally to 4.27.**3** or later? I got exactly your problem, after I installed the 4.28.0 Version - see below...
2. You need Hyper-V enabled for this: is it working correctly on your machine? If you are using Windows Home Edition there is no chance: upgrade your Windows to Professional... |
You should not complex this layouts, Instead you can use UIStackView to achieve the UI hierarchy that you want.
You can use, UIStackView inside your UICollectionViewCell, this way your cell will not get collapsed and its height will remain consistent with you content. |
As ngxtreeview is obsolete in Angular 16+, we are now looking into mat-tree.
After data is loaded in the mat-tree, based on business rules, we need to set the default checked for few of the nodes, it can be a parent(s) or few children from the given parent(s).
https://stackblitz.com/angular/gabkadkvybq?file=app%2... |
Angular:Mat-tree - how to select all checkbox during initial load |
|checkbox|treeview|angular16| |
I am very very new to Python domain
I need to insert the increment value for the <tr>.. </tr> in the particular "table 2":
_(And also Don't use any modules since Its changing the alignment and encoding and its very challenges with the input and output.)_
my Codes are below:
import re
... |
I am trying to update column value of filtered data in excel via VBA
I wrote a small macro, which do filter on below table.
[enter image description here](https://i.stack.imgur.com/P2ShF.png)
After running macro to filter the sheet, I see below
[enter image description here](https://i.stack.imgur.co... |
Cannot convert value of type 'MKCoordinateRegion' to expected argument type 'Binding<MKCoordinateRegion>' |
|swiftui|mkcoordinateregion| |
I am having trouble getting chunk data from the Aravis Project Python library.
The code confirms I am enabling the chunk data, yet when I grab a frame from the stream and try to read its chunk data contents, there seems to be no chunk data.
Unfortunately I have not come across any examples that show my particul... |
Aravis: Trouble getting chunk data in Python |
|python|genicam|aravis| |
I am switching from `mssql` (Tedious) to `mssql/msnodesqlv8`, because we need Windows Authentication support in our `Node.js` service.
However after switching, I run into the following issue.
We have a test that checks if there are no race conditions while getting a new id from the database. To make this operatio... |
Request timeouts in mssql/msnodesqlv8 when using default Pool size |
|sql|sql-server|typescript|msnodesqlv8| |
null |
The Audience has to be "00000002-0000-0000-c000-000000000000" - The Documentation was incorrectly updated to use the client ID of the new Microsoft Graph Endpoint while this one specifically needs Azure AD Graph - it has since been fixed : https://github.com/microsoftgraph/microsoft-graph-docs-contrib/commit/03bf982d8b... |
@user4581301 solution regarding moving some functions from generateObjects() to Sphere constructor solved this issue |
Dear docusign team and colleagues here the situation what faced and made own progress.
Migration from Spring Boot 2.7.18 to 3.2 and Java 11 to Java 17 and had a dependency from `com.docusign.docusign-esign-java`
<dependency>
<groupId>com.docusign</groupId>
<artifactId>docusign-esign-jav... |
## Context
After creating a `root_dir/docs/source/conf.py` that automatically generates the `.rst` files for each `.py` file in the `root_dir/src` (and `root_dir/test/`) directory (and its children), I am experiencing some difficulties linking to the `src/projectname/__main__.py` and `root_dir/test/<test files>.py` wi... |
I've @foreach loop and 2 buttons in my blade :
```
@foreach
<div id="app{{$loop->index}}">
<app :gunpla-id="{{ $gunpla->id }}" :csrf-token="'{{ csrf_token() }}'">
</app>
</div>
@endforeach
```
and here's my App.vue :
```
<template>
<div>
<collection-button :in-coll... |
Props always return null in Vue 3 Laravel |
|laravel|vue.js| |
null |
The stockstats.StockDataFrame is a subclass of pd.DataFrame.
This implies there is no need to do a merge in the end.
After making sure the "datetime" column in the original df contains no duplicates, you could define the `st` dataframe as
```
st = stockstats.wrap(df, index_column="datetime")
```
So, passing... |
I'm assuming that by QUIC you mean HTTP3. HTTP3 is associated with the newly emerging [WebTransport](https://developer.mozilla.org/en-US/docs/Web/API/WebTransport) API, which allows HTTP3 browser clients to create unidirectional and bidirectional streams with minimal abstraction over the underlying QUIC connection. You... |
|python|qt|selection|pyside6|qcolumnview| |
My Solana wallet mnemonic was stolen. Hackers keep stealing tokens that are airdropped to my Solana wallet. This time, the wormhole token was airdropped on April 3, and when I looked at the wallet transaction, there was a transaction that the hacker had already worked on. (Link: https://solscan.io/tx/s2JdkWdx3VBFAjwmiN... |
please solve my solana wallet's hacking issues |
|solana|solana-web3js|solana-py| |
null |
I want to show the a FormatViolationError (or error's of other types) to the user. Therefore I programmed a flask webserver that returns the error message in an html file to the user.
The output of the error message has multiple linebreaks included. I want to display these linebreaks to the user but in the html.
... |
I'm seaching a way to customize the Origin Name (TargetOriginId) of CloudFront Distributions in AWS CDK. This is my existing code:
const backendCloudfront = new cloudfront.CloudFrontWebDistribution(this, 'BackendCF', {
originConfigs: [
{
s3OriginSource: {
s3BucketSource: s... |
How to set custom Origin Name in AWS CDK for CloudFront |
|amazon-web-services|amazon-s3|aws-cloudformation|amazon-cloudfront|aws-cdk| |
- Your code is fairly close to finish. You'll get the expected output by removing the logic of `markParent`.
```vb
Option Explicit
Sub DetermineParentChild()
Dim ws As Worksheet
Dim lastRow As Long
Dim currentRow As Long
Dim currentValue As Variant
Dim nextValue As Variant
Dim markP... |
I have two projects: Client and Server. I'm trying to do tracing to the Server using OpenTelemetry and JaegerUI.
I added this code to Program.cs in the Server project:
```
builder.Services.AddOpenTelemetry()
.WithTracing(trace =>
trace.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumen... |
OpenTelemetry + Jaeger tracing "Warnings: invalid parent span IDs=XXXX; skipping clock skew adjustment" |
|c#|asp.net|trace|open-telemetry|jaeger| |
null |
We use timestamps for versioning the derivatives, eg `architectural_example-imperial[2024-03-25T07:44:39.890Z].dwg`.
It turns out, if we replace the bracket characters (with eg "-") it works as expected.
|
Use CalenderView in Kotlin, and then use its built-in function
addDecorator()
implement it like..(JAVA)
binding.calendarView.addDecorator(new DayViewDecorator() {
@Override
public boolean shouldDecorate(CalendarDay day) {
return day.isBefore(CalendarDay.to... |
Use CalanderView in Kotlin
and then use its inbuild function
"addDecorator()"
impliment like..(JAVA)
binding.calendarView.addDecorator(new DayViewDecorator() {
@Override
public boolean shouldDecorate(CalendarDay day) {
return day.isBefore(CalendarDay.today... |
Edit. Hi, I wrote a tool in js that helps me finding things on the internet at work. It opens new tabs with queries which are positioned next to current tab (with the tool). Is there any way to force new tabs to open at the end of the tab bar (or second position on the right, skipping one tab with excel), not by modify... |
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}]} |
I am facing an issue while sending a fetch request from a nodeJS scripture react-native app or reactJs side.
I am not the same network I connected to the hotspot of Raspberry Pi 4 when I run this script of python it is working fine.
import requests
# TODO: Change the URL to your Jetson Nano IP ad... |
cannot connect to raspberry pi 4 from javascript |
|reactjs|node.js|react-native|networking|raspberry-pi4| |
<h2>Updated Answer</h2>
As all modern browsers have support for this now. Saving a large file can be performed as shown below. Using *application/octet-stream* as mime type forces a download.
The code uses window.open to trigger the download, which is blocked inside snippets. This should be used inside a click even... |
The constructor is not where you register your custom element: you register it "immediately" after declaring the class, and then if you want your code to start running only after the browser has finished loading that in, wait for it:
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language:... |
In Visual Studio 2022, you could create a Windows Forms Application project by following these steps:
1. Open Visual Studio 2022.
2. Go to the "File" menu.
3. Select "New" and then "Project...".
4. In the "Create a new project" window, you can search for "Windows Forms App (.NET Framework)" or "Windows Form... |
I am learning Spark, so as a task, we had to create a wheel locally, and later install it in Databricks (I am using Azure Databricks), and test it running it from a Databrick Notebook. This program involves reading a csv file (timezones.csv) included inside the wheel file. The file is inside the wheel (I checked it) an... |
You can't use *parenthesis* to initialize a class member directly in its declaration, the syntax rules don't allow it. But, you use *curly braces* instead, eg:
```
class clsPerson
{
...
clsAddress Address {"", "", "", ""};
...
};
```
I would suggest giving `clsAddress` a default constructor i... |
handling newline characters like "\n" and "\r\n" from an python error message in an html file |
|python|html|flask|line-breaks|extract-error-message| |
null |
I am attempting to install Python3.10 on a Ubuntu v20.04 Docker Image. I am using the line:
```
FROM nrel/energyplus:23.2.0
RUN export DEBIAN_FRONTEND=noninteractive TZ=US && \
apt-get update && \
apt-get -y install python3.10 python3-pip
```
which seems to run properly, and I get a successful Imag... |
{"Voters":[{"Id":205233,"DisplayName":"Filburt"},{"Id":472495,"DisplayName":"halfer"},{"Id":272109,"DisplayName":"David Makogon"}],"SiteSpecificCloseReasonIds":[18]} |
I'm trying to get swagger to run in my spring boot project. I'm currently using the spring verion `3.1.9`. I looked up so many guides that told me to just add `implementation 'org.springdoc:springdoc-openapi-ui:2.2.0'` to my `build.gradle` file and then everything works! Wrong! It doesn't. I get this White label error ... |
Springdoc Whitelabel Error Page with Spring V3 |
|java|spring-boot|gradle|swagger|springdoc-openapi-ui| |
null |
I have a list of comment boxes and buttons that go with each box. When the user clicks edit I only want that particular textbox to be enabled. When the click save or cancel I want the text box to be hidden and the "<p></p>" to be visible.
Here is my ng-template where I am trying to track by index
<... |
I was trying to compile a code with instalooter login when I am getting this error symbol not found in flat namespace '__PyTrash_begin. all the other errors are mostly same but the end package looks very different
I havent tried anything yet in terms of solution |
symbol not found in flat namespace '__PyTrash_begin |