instruction stringlengths 0 30k ⌀ |
|---|
null |
The problem is that my code works but when downloading it says that the file type is not supported
by my code --->
```
var urlContract = "https://dashboard-8tl3.onrender.com/%D0%90%D0%BD%D0%BD%D0%BE%D1%82%D0%B0%D1%86%D0%B8%D1%8F_2024-03-11_144401.png"
function downloadContract(urlContract) {
if (urlContract... |
{"Voters":[{"Id":4621513,"DisplayName":"mkrieger1"},{"Id":197758,"DisplayName":"toolic"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[13]} |
HTML CODE:

My code for this dropdown selection is:
```java
WebElement LocationInput = driver.findElement(By.xpath("//*[@id=\"app\"]/div[1]/div[2]/div[2]/div/div[1]/div[2]/form/div[1]/div/div[3]/div/div[2]/div/div/div[1]"));
LocationInput.click();
pauseFor(3);
WebEle... |
{"Voters":[{"Id":476,"DisplayName":"deceze"}],"SiteSpecificCloseReasonIds":[13]} |
the given code is not conerging to correct eigenvalues. Kindly highlight potential issues and make corrections.
```
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import simps
xlower = 10**-15
xupper = 60
dr = 0.001
x = np.arange(xlower,xupper+ dr,dr)
G = x.shape[0]
... |
This can help [SqlDumpReader][1]
```
from sql_dump_parser import SqlSimpleDumpParser
sample_lines = [
'create table TBL1 (id1 int, id2 int, id3 int);',
'insert into TBL1 (id2, id1) values (1, 2)',
'insert into TBL1 values (3, 4, 5)'
]
sql_parser = SqlSimpleDumpParser()
data = sql_parser.p... |
I'm using Angular xeditable for my project.
I'm using Angular xeditable row component for my grid.
As I know, if I use
return $http.post('api/students',model).sucess(function(data) {
})
.error(function(data) {
}) ;
As I know, what happens - above code will call students CONTROL... |
Return Angular promise at client side, without server round-trip |
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}],"SiteSpecificCloseReasonIds":[13]} |
Say I have an interface like `interface IThing { virtual string A => "A"; }`. What effect does the `virtual` keyword have on implementing types here? Surprisingly, I couldn't find anything regarding this on either SO, `dotnet` GitHub pages and discussions, nor on `learn.microsoft.com`, possibly buried under all the unr... |
After using Thymeleaf for server-side rendering in Spring, I saw a post about JTE on Reddit that was mentioning the Spring View Component library https://github.com/tschuehly/spring-view-component, prompting curiosity about different UI design approaches.
What are the potential downsides of JTE and patterns that gr... |
Thymeleaf, JTE, and Alternative Patterns for Spring Server-Side Rendering |
|server-side-rendering| |
This could be accomplished using Power Query, available in Windows Excel 2010+ and Excel 365 (Windows or Mac)
To use Power Query
- Select some cell in your Data Table
- `Data => Get&Transform => from Table/Range` or `from within sheet`
- When the PQ Editor opens: `Home => Advanced Editor`
- Make note of th... |
A FPGA Project Proposal where I can use both PS and PL |
|embedded|fpga|vivado|hdmi|soc| |
null |
{"Voters":[{"Id":11182,"DisplayName":"Lex Li"},{"Id":1974224,"DisplayName":"Cristik"},{"Id":5468463,"DisplayName":"Vega"}]} |
I am a beginner and I want to build LLVM, clang and Libfuzzer from source. So I run the cmake command
```
cmake -S llvm -B build -G Ninja \
-DLLVM_ENABLE_PROJECTS="clang;lldb" \
-DLLVM_ENABLE_RUNTIMES="libcxx" \
-DCMAKE_BUILD_TYPE=Debug \
-DLLVM_TARGETS_TO_BUILD="AArch64" \
-DLLVM_ENABLE_AS... |
Build LLVM, Clang and Libfuzzer |
|build|clang|llvm|lldb|libfuzzer| |
null |
I came up with a query myself. Not sure if a simpler solution exists.
```
SELECT DISTINCT *
FROM (
SELECT group_concat(v2_id ORDER BY v2_sort_me ASC)
FROM (
SELECT v1.id AS v1_id, v2.id AS v2_id, v1.sort_me AS v1_sort_me, v2.sort_me AS v2_sort_me
FROM t v1
JOIN t v2
ON abs(v1.val... |
The provided code dynamically wraps consecutive paragraphs with the class *foo* inside separate `<div>` elements with the class *wrap*:
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-html -->
<style>
/* Styles for better visualization */
body {
... |
I am trying to setup a set of computers to connect over an ad-hoc network, or mesh (on top of adhoc) using batman-adv.
The adhoc network is able to establish a station, but I can't ping one computer from another.
When using batman-adv to create a mesh on top of the adhoc network, the bat0 device never seems to ha... |
Adhoc / mesh network not working (with and without batman-adv) |
|networking|mesh|openwrt|adhoc| |
|python|mongodb|web-scraping|pymongo|langchain| |
See title start forward... I need to log onto youtube as I am a new domain admin many thanks in advance!
research google domain admin
allowed sites
no workie
How can I access, log in, create a youtube account for my new business? Im having trouble getting myself access while being a new online business owner.
... |
I am the domain admin, newbie, how do I connect youtube.com on my domain? |
|asp.net|dns|youtube|google-admin-sdk|google-domain-api| |
null |
I'm not sure the cookies are the best place to store user preferences.
Cookies are sent to server so if you don't plan on storing those preferences on the server, it is useless extra network used. I think using localStorage suits more your needs.
Anyway, [w3schools][1] gives two good functions to handle cookies in ... |
What you want is a "stable" sort. "Stable" means it maintains the current order when the keys are identical. The default algorithm, quicksort, is not stable.
```
df2.sort_values('size',kind='stable')
``` |
Here:
```
g++.exe -o bin\Release\GraphicsC++.exe obj\Release\main.o -s ..\..\..\..\Windows\SysWOW64\glu32.dll
```
You are trying to statically link a DLL (glu32.dll). You cannot do that, and your "simple code snippet" does not need OpenGL in any event.
Moreover you cannot normally statically link code buil... |
This is because the generic type `S` can have more keys than just `"a"` and `"b"` — that's what the `extends` keyword means in that position: that the generic type `S` must be [constrained](https://www.typescriptlang.org/docs/handbook/2/generics.html#generic-constraints) by `Pick<Test, "a" | "b">` (not that it **only**... |
What effect does the `virtual` modifier have on an interface member? |
|c#|oop|inheritance| |
I'm using **Auto** mode in Blazor Web App. I tried to use Authentication and authorization in the server project. But I cannot use authorization in the client project. I want to add `<AuthorizeView>` tag in some components exist in the client project. This tag is unknown in the client project. How can I use `<Authorize... |
Please help me :(( According to the network diagram above, the connection from company A's pc0 to the server system including gmail and facebook is successful, but company B's pc6 and pc7 cannot ping the server system. I tried to give ip from dns but it didn't work. I just joined this system course. I hope everyone can... |
Network System - Cisco Packet Tracer |
|networking|system|packet|cisco| |
null |
**Method 1 (recommended)**
make sure to import:
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.client.dsl.SearchRequest;
import org.elasticsearch.client.dsl.SearchResponse;
import org.elasticsearch.index.query.Que... |
You'd have to edit file `gradle/libs.versions.toml` and add in TOML format:
[versions]
androidx_compose_bom = '2024.03.00'
androidx_compose_uitest = '1.6.4'
androidx_media3 = '1.3.0'
# ...
[libraries]
androidx_compose_bom = { module = "and... |
i am here to ask about the problem about this function that calculates the sum at a given depth in a tree, it is working in all cases but the last level, the compiler is giving me this :
`[Done] exited with code=3221225477 in 0.309 seconds`
and this is my code and everything you need(there is more other functions and... |
I have observed an issue while using the **Hyperband** algorithm in **Optuna**. According to the Hyperband algorithm, when **min_resources** = 5, **max_resources** = 20, and **reduction_factor** = 2, the search should start with an **initial space of 4** models for bracket **1**, with each model receiving **5** epochs ... |
Optuna Hyperband Algorithm Not Following Expected Model Training Scheme |
|python|algorithm|machine-learning|optuna| |
This is my ``Magento_Checkout/web/template/summary/cart-items.html``
```
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<div class="block items-in-cart" data-bind="mageInit: {'collapsible':{'collapsible': true, 'openedState': 'active', 'active': isIt... |
You can't do this directly. `addParticle` is a function within your `ParticleContainer` component, inaccessible from the outside scope - and you can't move it outside because it references the `setParticleDetails` function which is necessary internal to the component (as that is returned from `useState` which, like all... |
{"Voters":[{"Id":1127428,"DisplayName":"Dale K"},{"Id":6152400,"DisplayName":"P.Salmon"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[11]} |
from bs4 import BeautifulSoup as bs
import requests as rq
#Replace <your url> with the url you want to scrap
url ='<your url>'
r=requests.get(url)
soup=bs(r.content,"html.parser")
links = soup.find_all("a")
# Create an empty dict
dct = {}
for x in li... |
My tests folder consists outside of src folder looks like this:
myproject/
src/
config/
controllers/
types/
schemas/
app.ts
tests/
data/
routes/
barber/
auth/
login.test.ts
When I write a test
I need... |
When building pygame (2.5.2) with buildozer (1.5.0) on python (3.10.12) the error attached occurs.
It happens when building pygame for armeabi-v7a.
The command ran was `buildozer -v android debug`
I am following this tutorial: [https://www.youtube.com/watch?v=L6XOqakZOeA](https://stackoverflow.com)
```
fatal... |
|python|android|pygame|buildozer| |
I have a DataGrid - there is
1. A hidden column (SubjectFull) and a visible column with up to 60 characters of SubjectFull called Subject.
2. A Column called Unread - this is an image in the case it has not been unread.
I can get a ToolTip to show the value of SubjectFull for just the visible part of the gri... |
Binding forecolour and ToolTip to a DataGrid |
|wpf| |
|mysql|query-optimization| |
I'm not at a proper machine to test this on, but I think it's simpler if you use a two-stage approach. First, generate each of the images with its label, then pipe all those into a second `montage` command to lay them all out together. In simple terms, that will look like this:
for f in *.jpg; do
# Gener... |
I am trying to understand the internal workings of RowSet.
How does it set the properties data and create a connection?
```
RowSetFactory factory = RowSetProvider.newFactory();
JdbcRowSet jdbcRowSet = factory.createJdbcRowSet();
jdbcRowSet.setUrl( … );
jdbcRowSet.setUsername( … );
jdbcRowSet.setPassword... |
null |
I'm going through [this][1] azure exercises and have a question regarding this statement:
From the All resources view in the Azure portal, go to the Overview page of ***the production slot*** of the web app.
I have 2 deployment slots in my newly created test app services. Creating a `training-Staging` slot i... |
Application settings for production deployment slot in azure app services |
|c#|azure|azure-appservice|azure-deployment|azure-deployment-slots| |
I have stuck with a pretty simple problem - I can't communicate with process' stdout
The process is a simple stopwatch, so I'd be able to start it, stop and get current time.
The code of stopwatch is:
```python
import argparse
import time
def main() -\> None:
parser = argparse.ArgumentParser()
parse... |
There's a list of supported formats in [`terminalLinkParsing`](https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkParsing.ts#L9) at the definition of `lineAndColumnRegexClauses`.
At the time of this writing, among the supported formats, I see
- `foo:33... |
How to write a clickable link in VS Code terminal that points to a multiline range? |
Please suggest the right way to implement it. The below-mentioned is the error I got when I try implement a line chart
Canvas is already in use. Chart with ID '0' must be destroyed before the canvas with ID '' can be reused.
The code below is used visually to represent the Historical/periodic chart of cryptocur... |
I am using the Chart.js library to draw a Line graph using coingeko api. But it not working properly. Please suggest the right way to implement |
|reactjs|charts|material-ui|linechart|react-chartjs-2| |
null |
The build process of my app is not completing and it stops at react-native-reanimated setup.
This is my terminal screen
(https://i.stack.imgur.com/5NVvC.png)
I have tried a few of the commands from a similar stack overflow thread
(https://stackoverflow.com/questions/58131602/unable-to-resolve-module-re... |
tsconfig for path route outside of src |
|node.js|typescript| |
I found this error:
```
Error: Timeout of 60000ms exceeded. For async tests and hooks,
ensure "done()" is called; if returning a Promise, ensure it resolves.
```
I am encountering this error, in my selenium test automation with mocha js, below are my two codes and the `package.json`. I really am not able to reso... |
{"Voters":[{"Id":286934,"DisplayName":"Progman"},{"Id":1362568,"DisplayName":"Mike Kinghan"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[18]} |
I am trying to automate the captcha using the below code I am getting an error
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
```java
WebElement captchaElement = driver.findElement(By.xpath("//img[... |
I try to go from Spring-Boot 2.7 to 3.1 - its regarding Security.
What I have under old version 2.
public class SecurityConfiguration extends WebSecurityConfigurerAdapter
{
@Override
protected void configure (HttpSecurity http) throws Exception
{
http.cors ().an... |
You can work with a custom parser, like:
<pre><code>import Data.Char(toLower)
import Options.Applicative(ReadM, eitherReader)
data OutputType = File | Env | Db
parseOutputType :: <b>ReadM OutputType</b>
parseOutputType = <b>eitherReader</b> $ (go . map ToLower)
where go "file" = Right File
... |
I'm currently working a UI selenium project in which I want to get the String data from the UI and parse it into a variable in my .feature scenario file.
I will use this scenario to explain, in this case, I only have the customerID:
**Given** I search for customer A <customerID>
**When** I get the customer inf... |
Asyncio: how to communicate with Process? |
|python|python-asyncio| |
null |
I am writing a small app to upload files to a shared Google Drive using a service account (JSON file credential, no user impersonation or consent, service account has been granted permission directly). There are many example scripts online but none seemed to work as-is. I have ended up with the script below. I was ... |
Got TypeError when new SourceTextModule() with a `cachedData` option.
It says `TypeError: A dynamic import callback was not specified.`
But the `importModuleDynamically` option is clearly there.
```js
import vm from "vm";
let context = vm.createContext({console})
async function importModuleDynamically(n... |
|c#|blazor|blazor-server-side|blazor-webassembly| |
I am new to script writing, self taught over the last 6 months. The below script has been working fine for multiple things but the letter returns as a PDF letter named "Site Utilities" this is the whole spreadsheet name.
I would like it to return tab/sheet name "Park Letter" instead. Even better would be a chosen name... |
Would like the script to return the PDF letter via email with the sheet name not the spreadsheet name |
I see so many people asking questions about their website, JavaScript, HTML, etc. But my question is, have all these people figured out how to make a server and host a website themselves? I have never figured out how to do any of that. They would not be asking their questions if they had no website to be working on, ri... |
How are there so many web development questions? Is it really that easy to get a web server, register a domain name, etc? |
|css|html|javascript| |
{"Voters":[{"Id":238704,"DisplayName":"President James K. Polk"},{"Id":9014097,"DisplayName":"Topaco"},{"Id":9214357,"DisplayName":"Zephyr"}]} |
I am plotting histograms showing distributions of an angle tau. I used a random normal distribution as shown:
N= 100000
tau = np.arccos(np.random.normal(-1, 1, N))
I got the error "RuntimeWarning: invalid value encountered in arccos tau = np.arccos(np.random.normal(-1, 1, N))", which did not pop up... |
I think a good and simple solution is to use an adorner to render the masking symbols as an overlay of the original input.
Show the adorner to render the masking characters while hiding the password by setting the foreground brush to the background brush.
The following example shows how to use an `Adorner` to dec... |
I am creating a data pipeline in Fabric Data Factory using date as a parameter. However, the system presents the following error:
[enter image description here](https://i.stack.imgur.com/gbUuX.png)
And I wanted to pass a date in variable format that always collects the current day and sets it in the variable {vi}, ... |
Difficulty creating a data pipeline with Fabric Datafactory using REST |
|azure|rest|azure-pipelines|azure-data-factory|fabric| |