instruction stringlengths 0 30k ⌀ |
|---|
RequestClientCredentialsTokenAsync and ClientAssertion Encoded |
|c#|jwt|token| |
I added some layers to pretrained MobileNet model and trained it. Then **saved** model with
```
model.save('model.keras')
```
Also tried this just in case:
```
keras.saving.save_model(model, 'model.keras')
```
But when i **load** the model I get the **error**:
```
keras.models.load_model('model.keras')
... |
I want to modify the width of the node border in `Netgraph` (Python) in order to increase or decrease it. I unfortunately do not find the parameter controlling the width of the border node. Here is as follows a picture of what I want to do.
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.co... |
Node border width control in Netgraph |
Are you looking at synchronous or asynchronous operations? anyway here is the async version, your solution looks too simple
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Mai... |
I have a Laravel 10 project, and I want to use a supervisor to deal with processes like queuing and scheduling. I have already done a supervisor configuration for the `queue:work` command.
```bash
#/etc/supervisor/conf.d/laravel-worker.conf
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02... |
|laravel|supervisord|laravel-10|ubuntu-22.04| |
You are likely to be running into the problems documented in this Spring Boot issue: https://github.com/spring-projects/spring-boot/issues/28387.
As shown there, a configuration similar to this is required to work around limitations of the BitBucket Docker configuration:
```
tasks.named('bootBuildImage') {
do... |
Perhaps it was already somewhere in the themes. But I couldn't find a similar question. And the question is why Angular can't find modules and services. I create through "ng g", it seems that everything should be tightened. But it gives you an error or a warning.
The service itself has several methods (functions):
... |
Why does Angular ^17 have problems with my modules, services, etc |
|angular|typescript|service|module|angular-template| |
null |
I'm currently working on unit testing a Flask application using pytest. However, when I attempt to test my routes (seemingly any of my routes), I consistently receive a 404 Not Found error, despite the route being defined and working as expected outside of the testing environment. I've checked the route registration an... |
`collectAsState` doesn't collect the latest value when emitted from the viewModel |
|android|kotlin|android-jetpack-compose|state-management| |
null |
My issue lied with all my attempts of getting the auth_user_id aka User UID from supabase authentication. I simplified my route.ts file to disregard that.
```typescript
import { NextRequest, NextResponse } from 'next/server';
import { supabase } from '@/app/utils/client';
export async function POST(req: NextRe... |
Thank you all for your suggestions.
I used the sample PCD files shown above and re-processed them with "-colorspace sRGB" instead of a leading '-colorspace rgb" and the images look way more normal than my previous attempts.
This Works:
convert charmouth2.pcd[6] -colorspace sRGB charmouth2.tif
This provides... |
I'm trying to map a single `String` parameter to a field on target type:
```java
@Mapper(uses = ReferenceUniqueIdentifierMapper.class)
public interface NestedReferenceMapper {
@Mapping(source = "referenceId", target = "referenceUniqueIdentifier")
public NestedReference toDomainModel(String referenceId);
... |
|android-jetpack-compose|jetpack|navigation-compose|navigation-android| |
null |
I am looking to translate Excel workbook files with some content in cells and other content in text box objects placed throughout each sheet as efficiently as possible. I've found some great examples for creating VBA macros to translate text in cells, but these don't work for text within the text boxes.
It would a... |
null |
I have a component that looks like this
import { useState, useEffect, useMemo } from 'react'
import Input from '~/components/Input'
import Fuse from 'fuse.js'
interface Props {
data: any[]
keys: string[]
onUpdate: (data: any[]) => void
placeholder: string
}
... |
As per the duplicate:
```python
fig, ax = plt.subplots(figsize=(9, 7))
sns.barplot(x='class', y='Percentage', hue='who', data=df, ax=ax)
sns.move_legend(ax, bbox_to_anchor=(1, 0.5), loc='center left', frameon=False)
# get the unique values for hue
hue_col = df.who.unique()
# iterate through each group of c... |
These days you need to make sure you have the `@expo/metro-runtime` (`npm install @expo/metro-runtime`) package and import it into your main entry point file (ie: App.js/index.js)
`import "@expo/metro-runtime"` |
SOLVED How do I make it so all arrays are the same length? |
null |
Inspecting the [code][1] of `vegan::rrarefy` reveals that it is taking an independent (by row) sample from a multivariate hypergeometric distribution. The `rmvhyper` implementation from `extraDistr` is much faster (possibly multiple orders of magnitude, depending on the value of `min_sample`).
Performing the samples... |
{"Voters":[{"Id":4136999,"DisplayName":"toyota Supra"},{"Id":1940850,"DisplayName":"karel"},{"Id":13629335,"DisplayName":"Thingamabobs"}],"SiteSpecificCloseReasonIds":[13]} |
I am new to the field of computer vision and have a challenge finding an fish icon within an [image](https://imgur.com/a/9rRqkWR). Specifically, I need to locate the fish icon from a game and obtain its coordinates. The icon's size changes depending on its position within the water, as well as its color when the fish i... |
Search for an icon on an image OpenCV |
|python|c++|opencv|computer-vision| |
null |
`i was trying a simple main that calls a test function with a header file.
and when running this message pops out
main.cpp:(.text+0xe): undefined reference to test(char)'
collect2: error: ld returned 1 exit status
Found out that in order to make this work i had to change the "${file}" with "${workspaceFolde... |
Translating & Replacing Text Box Content From Spanish to English Using VBA (Excel Macro) |
|excel|vba|textbox|google-translate| |
null |
I have a very large `Pandas` Dataframe ~9 million records, 56 columns, which I'm trying to load into a MSSQL table, using `Dataframe.to_sql()`. Importing the whole Dataframe in one statement often leads to errors, relating to memory.
To cope with this, I'm looping through the Dataframe in batches of 100K rows, and ... |
Im currently building a laravel vue app with laravel 11 and vue 3 using inertia.
So the issue is i have such a controller called ListingController that is resourceful, i.e. php artisan make:model Listing -mrc, meaning automatically a controller , model and migration is created. All the pages are loading fine until i... |
Resource URI is recognised but page wont load and browser throws 404, route:list says the route exist |
|laravel|vue.js|vuejs3|inertiajs|laravel-11| |
null |
I want to write/read a tuple into a BIN file. I know how to write/read each element of the tuple, but the tuple has 13 elements and i would rather make this all at once using a loop. But i have been unable to do so.
This is the code that i have tried:
```
#include <fstream>
template <typename T>
std::ostream... |
mapstruct: map string parameter to a field |
|mapstruct| |
Im trying to scrape simplify for it to login into my account and keep sending me matches it finds to my slack/telegram bots later on. Im finding a problem with entering the sign in after i input my email and password and im confused as ive tried everything i can think of
I tried using page.keyboard.down("Enter"), i... |
Automating a user sign in to scrape data after logging in with Playwright |
|web-scraping|playwright|playwright-python| |
null |
I am trying to plot a scatterplot for the below data frame:
[DATAFRAME](https://i.stack.imgur.com/2t5Fj.jpg)
please note i am unable to post the dataframe code here and hence the photo.
i want to represent the scatterplot with the different stages being shown as different markers(circle,square etc) and different ... |
{"Voters":[{"Id":573032,"DisplayName":"Roman C"},{"Id":721855,"DisplayName":"aled"},{"Id":18157,"DisplayName":"Jim Garrison"}],"SiteSpecificCloseReasonIds":[13]} |
A Delimited VBA Lookup in Excel (Structured) Tables
-
- If you have MS365, Office 2021, and I'm not sure about Office 2019, you could use the following formula in the first cell of column `EX_Fakturen` (clear the column first):
=TEXTJOIN(", ",,FILTER(Monitor[Faktura],Monitor[Transport]=[@LADUNGSNUMMER],"... |
The padding or cropping techniques may causing damage to data and you don't want that you have to change the length without damage the features of this sound.
You can use this code :
import librosa as sib
from PIL import Image
import numpy as np
import soundfile as sd
path_file = 'file.wa... |
I'm trying create a docker-compose file to connect a backend created in nodejs using typeorm to manipulate and connect with a postgresql database, but always is getting error. It's working in separeted containers but when I try to connect the typeorm using service name in docker-compose always returns connect ECONNREFU... |
Single Value Attribute
----------------------
The `Directory.Build.props` is auto imported very early -- before the body of the .csproj file and even before the 'standard' properties are defined. Unless you have a specific need, I suggest avoid using the `Directory.Build.props` file and favor using the `Directory.B... |
there is some white space in my nav bar and the h1 and h2 are the same size.
i don't know what to do for the nav bar. i don't know if i should add padding and make it 0px. i was thinking i should change the font size for my h1 and h2 in css but after i closed the last section, the h1 and h2 are different sizes.
... |
h1 and h2 dont show size difference and the white space in my navbar |
|html|css| |
null |
In MySQL, you can create a [limited user][1] (create new user and grant limited access), which can only access certain table.
[1]: https://dev.mysql.com/doc/mysql-security-excerpt/8.3/en/creating-accounts.html |
there is some white space in my nav bar and the h1 and h2 are the same size.
i don't know what to do for the nav bar. i don't know if i should add padding and make it 0px. i was thinking i should change the font size for my h1 and h2 in css but after i closed the last section, the h1 and h2 are different sizes.
... |
In your XAML add `SelectedValuePath="Content"`
<ComboBox Name="cboPickOne" SelectedValuePath="Content">
<ComboBoxItem>This</ComboBoxItem>
<ComboBoxItem>should be</ComboBoxItem>
<ComboBoxItem>easier!</ComboBoxItem>
</ComboBox>
This way when you use `.SelectedValue.ToString()` in... |
I have assembly A witch have reference to type T in another assembly B. But at runtime this assembly doesn't have that type, so I get `TypeLoadException`.
Is there any way to load T from my assembly without **(!)** recompilation of B?
Runtime doesn't call `AppDomain.AssemblyResolve` nor `AppDomain.TypeResolve` fo... |
You need to create a component/ use an existing component to test a directive, a directive cannot be initialized separately, that is why you are getting this error. Instead use `TestBed.createComponent(MyTextComponent)` to initialize the component and test the directive through the component.
[Angular docs for direc... |
Try this approach using your original code with `.onSubmit` (for testing) and a small
function in the `Exercise` model.
Note I changed some of the names to better reflect the
meaning of the property, eg with or without `s`
The `func isCorrectAnswer()` removes any white spaces from the text and
also remo... |
Flask Application Testing with pytest Returns 404 for Routes |
|python|flask|pytest| |
For me, it turned out to be some permission issues, see [answers here][1]
Try to write in your VS Code terminal or Windows PowerShell:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
or
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
[1]: https://... |
164b: f3 0f 1e fa endbr64
164f: 55 push %rbp
1650: 53 push %rbx
1651: 48 83 ec 28 sub $0x28,%rsp
1655: 64 48 8b 04 25 28 00 mov %fs:0x28,%rax
165c: 00 00
... |
Even when number is getting right, and im guessing it. it still writes that im not guessed the number and i typed wrong. You can see it [here](https://i.stack.imgur.com/i3ZAn.png). [Here's](https://i.stack.imgur.com/SlSne.png) the code. Yea im doing it via cogs.
I tried to remove or add bracets but it doesnt work. |
I have some .php files in my MAMP/htdocs folder. I want to perform some automated stuff (I'm pretty much just trying to practice/test scraping on source code I copied from live pages to my machine to avoid getting banned/throttled) in Python Selenium by starting MAMP Servers and running the commands:
```python
driv... |
I need to take a screenshot of the screen and save it to a folder. It is necessary to encode the resulting screenshot in base64 and pack it into Poco::JSON:Object.
I wrote the following code. I get a screenshot, but when I save it in jpeg format I get a black rectangle.
I also can't encode it in base64, my code c... |
Create screenshot and encode it in base64 |
null |
I am trying to get basic Geometry support for Oracle into SQL Alchemy since Geoalchemy2 doesn't support it. I've created a custom datatype that works perfectly if geometries aren't too big. But since I use wkb or wkt as an input, large geometries (in terms of nr of coordinates) cause the varchar2 limit to be exceeded. ... |
having problem with running multiple files in vs code |
|c++|header-files|vscode-tasks| |
null |
I figured it out. I had to change the folder that this component was in. I had it in the same folder as the page.
The `/src/app` folder had both `page.tsx` and `icon.tsx`
I moved the `icon.tsx` to `/src/app/_component/` and that resolved it. I feel silly for not realizing that but this page of the Next.js docs helped... |
{"Voters":[{"Id":4621513,"DisplayName":"mkrieger1"},{"Id":14460824,"DisplayName":"HedgeHog"},{"Id":5459839,"DisplayName":"trincot"}]} |
To fix this, you can move the console.log statement outside of the JSX and conditionally render it based on the authUser state. Here's the updated code:
import React, { useState, useEffect } from "react";
import Tasks from "../tasks";
import { IoIosArrowBack } from "react-icons/io";
import { Link ... |
[network tab from server [redux dev tools][1]Okay, so I am making a little information card of Liverpool FC, using a public API from the back-end. I am now trying to pass my routes through RTK query. I have been trying to mess with with selectResult and I guess there's just something that I am not understanding. It wen... |
I figured it out. I had to change the folder that this component was in. I had it in the same folder as the page.
The `/src/app` folder had both `page.tsx` and `icon.tsx`
I moved the `icon.tsx` to `/src/app/_component` and that resolved it. I feel silly for not realizing that but this page of the Next.js docs helped:... |
I want to make my code read a sheet of IDs and when someone enters the wrong ID the code removes the unmatched response from the google response sheet.
```
My current code below I am a bit of a newbie at this. I would appreciate any help in this its been driving me crazy for awhile. I am dying to get this to work... |
{"Voters":[{"Id":2386774,"DisplayName":"JeffC"},{"Id":2395282,"DisplayName":"vimuth"},{"Id":20292589,"DisplayName":"Yaroslavm"}],"SiteSpecificCloseReasonIds":[13]} |
I'm currently working with Angular 17 and Angular Material 17.3.1, and I'm encountering an issue with styling the Menu component. Specifically, I'm trying to adjust the height of the menu items, but my attempts haven't been successful so far.
Link -> https://material.angular.io/components/menu/examples#menu-overview
... |
Angular 17 | Angular Material 17.3.1 Issue with styling Angular Material Menu component |
|html|angular|sass|angular-material|angular17| |
null |
I found the problem in the code.
I just change the root in `app.config['SQLALCHEMY_BINDS']`
```
path = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secretkey'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(path, 'databaset... |
I am attempting to train my models on my own data. If I run the lora.py command using the 7b models from mistral or llama, it works fine. As soon as I upgrade to the larger models, I get an error File “/Users/conleysa/AI/MLX/mlx_venv/lib/python3.11/site-packages/mlx/nn/layers/base.py”, line 211, in load_weights
raise ... |
idk what title to write this man making me mad if condition rn't working |
|python|discord|bots|operator-keyword| |
null |
Adding Submodule Paths in a Vite React Library |
I have a web app deployed on Azure. During testing, I found one of my endpoints is not working...sometimes. More specifically, this POST endpoint always works in my dev environment, and it randomly works in Prod. When it fails my controller endpoint is not hit (discovered by adding logs), and a "successful" 200 is re... |
ASP .NET6 randomly returning 200 with empty response |
|asp.net|.net-6.0| |