instruction stringlengths 0 30k ⌀ |
|---|
i use Material 16. I would like mat-form-field with appearance="outline" but the label should inside my InputField. CURRENTLY it looks like this
[![enter image description here][1]][1]
But i want this.
[![enter image description here][2]][2]
[1]: https://i.stack.imgur.com/MVpsH.png
[2]: https://i.st... |
Angular Material mat-form-field appearance="outline" |
|angular|material-ui|angular-material|material-design|mat-form-field| |
From https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html :
{CHAR_BIT}
Number of bits in a type char.
[CX] [Option Start] Value: 8 [Option End]
The POSIX issues 7 and 6 specifications state that char has 8 bits.
POSIX standard before issue 6 did _not_ require that. From... |
it's my test code
```
public class Test {
public static SoftReference<byte[]> cache = new SoftReference<>(new byte[0]);
public static List<byte[]> list = new ArrayList<>();
public static void main(String[] args) {
try {
func();
} catch (OutOfMemoryError e) {
... |
I have a JSON file with data, and I am looking to see if a participant has completed a lesson by looking to see if an object called targetTitle has "Exit" where object pTitle has all the following text elements: "hard", "easy", "medium", "CD", "CH", "WU" for a given lesson.
Currently, the code cannot differentiate b... |
I am having difficulty with a side project I am working on. The goal of the program is to be able to do a few functions with a youtube video or playlist link.
1. download a youtube video and audio and merge them.
2. download a youtube playlist's video and audio and merge them.
3. download a youtube video's audi... |
This is the SQL query that I'm trying to replicate in CakePHP.
$sql = "select sl.name_en, l.*
from service_line_entries sle
inner join escalation_entries ee on ee.service_line_entry_id=sle.id
inner join service_lines sl on sle.service_line_id=sl.id
... |
The main problem here is that you use `and_` as reduce operator, so that means that you specify as condition that the `code_postal` should start with `78` and `95` at the same time. No text/number can start with `78` and `95` (and all other values) at the same time.
You can easily fix this by reducing this with `or_... |
null |
I am trying to create a new strapi project in my api folder for an ecommerce website project. However no matter what I do to try to change the node version using nvm I still get this error (that it is not compatible to the current version). As you can see below I literally just used nvm to change the node version to 20... |
nvm not changing node version to comply with strapi |
|node.js|terminal|strapi|nvm| |
null |
To create an [`array`][1] you can do the following:
```sql
select array[Column1, Column2]
from table;
```
[1]: https://prestodb.io/docs/current/language/types.html#array |
I am trying to make a tooltip using TailwindCss but I am facing a problem as I am not very good with border manipulation
Example of how I want it to look:

I am able to round the tip of the arrow by making a rounded triangle and adding it ... |
I would add something more to the [answer][1]. To get all options for the resources that are in defined providers you can use run command:
terraform providers schema -json
Part of the output:
"google_storage_bucket_iam_member": {
"version": 0,
"block": {
"attributes": {
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract Marketplace is ReentrancyGuard {
// Variables
address payable public imm... |
This is the solidity code to list nft in marketplace after minting but while calling makeItem function Error is showing that Faliled to estimate gas |
{"OriginalQuestionIds":[77252112],"Voters":[{"Id":2370483,"DisplayName":"Machavity"}]} |
I have a bottomNavView with Viewpager2 using FragmentStateAdapter. I have 4 tabs. Before i was using viewpager. then, i switch to viewpager2 because of this error. But on viewpager2 same error is occurring.
When i switch between apps tiktok,facebook,instagram and come back to my app. its recreated. all 4 fragment a... |
I recommend method with @Transactional of CommandLineRunner, or ApplicationRunner. |
I installed arch linux (current version archlinux-2024.03.01-x86_64) on VM VirtualBox 7.0 (didn't use the archinstall script in case thats' relevant)
Install docker and git with
pacman -S docker
pacman -S git
And run the `pacman -Sy` and `pacman -Su` commands
Then followed the steps from this lin... |
null |
null |
null |
null |
null |
To get adjusted results, you will need to use `add_p()` with a custom function for the p-value calculation. See below!
``` r
library(gtsummary)
#> #BlackLivesMatter
packageVersion("gtsummary")
#> [1] '1.7.2'
df <- data.frame(
group = c(2, 1, 1, 2, 1, 2),
var1 = (rnorm(6,mean=10, sd=3)),
var2 = (rno... |
Cypress e2e tests crashing with Monaco Editor for React |
|cypress|react-monaco-editor| |
null |
In my project inside scripts folder I have multiple Python executable scripts. I want to create multiple executables for each Python script.
How can achieve this using pyinstaller? |
How to convert multiple Python files to multiple executable using pyinstaller |
I have a specific use case where I need to create a button (Custom Tools) within Perforce in which it enables the user to right-click a pending changelist with checked out files and it will shelve the files, revert the checked out files, then change the user to a single user and assign the changelist to a specific work... |
P4 change ownership through command line |
|version-control|perforce|p4v| |
null |
That's most likely due to the lack of the annotations dependency.
Add to your `build.gradle` and sync:
```
dependencies {
implementation("androidx.annotation:annotation:1.7.1")
}
``` |
I am doing TFS to Devops migration and for that I am running a JSON file. FOr testing I thought to migrate a single Epic(for example epic number 123). IS it possible to migrate single item and the items below this. TO make it run, what WIQLQueryBit I should write?
"WIQLQueryBit": "AND [System.WorkItemType] ... |
How to migrate a single workitem in Devops |
|azure-devops|devops| |
{"Voters":[{"Id":2756409,"DisplayName":"TylerH"},{"Id":1974224,"DisplayName":"Cristik"},{"Id":354577,"DisplayName":"Chris"}],"SiteSpecificCloseReasonIds":[13]} |
You can use the `rn` command after you've created the archive:
7z.exe a -r D:\TEST.zip ROOT_FOLDER\*
7z.exe rn D:\TEST.zip ROOT_FOLDER ROOT
The `--help` flag gives you information about available commands:
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Usage: 7z <... |
Fragment in FragmentStateAdapter become null when activity when switching between app |
|android|android-viewpager2| |
Using rmbolger's amazing posh-acme I deployed an SSL cert from let's encrypt into the personal certificate store of a Server 2022 VM following [this guide](https://www.dvolve.net/blog/2019/12/using-lets-encrypt-for-active-directory-domain-controller-certificates/).
I did some custom modifications to the script and ... |
|ssl|active-directory|adfs2.0|windows-server-2022|acme| |
I have some trouble in Prestashop 1.6 using Smarty.
I have an array, but its offset are not reset for each product.
So for the first product, with attribute it has offset 1,2,3,4 Then for the next product it has offset 5,6,7,8 etc.
I have that kind of array
$combinations Smarty_Variable Object (3)
... |
Smarty get offset of array |
I'm trying to create a test to check the correct behaviout of my service object,
```ruby
def api_call_post(connection, message, url)
pp message
response = connection.post do |conn|
conn.url url
conn.body = message
conn.headers = @headers
end
check_response(response)
end
..... |
I'm building a docker image and I have the node_modules folder included in the .dockerignore file. This is what my file looks like:
```
node_modules
```
This is what my Dockerfile looks like:
```
FROM node:20.6.0-alpine
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
CMD ["npm", "start"]
... |
This is syntactically correct, but according to TS, this option is not supported:
@t.Unique("user-hash-device", ["hash", "userId", "deviceId"], {background: true})
@t.Entity('vibe_trace') /// ^^^^^^
export class Trace {
// ...
}
(the above is not q... |
How to place unique compound index into background with MongoDB? |
|mongodb|typeorm|database-indexes|mongodb-indexes|mongo-index| |
According to the [documentation][1], You can use this annotation:
nginx.ingress.kubernetes.io/use-regex: "true"
[1]: https://kubernetes.github.io/ingress-nginx/user-guide/ingress-path-matching/ |
I'm trying to create an AWS Custom Labels Cloudstack via the template provided by AWS:
https://ml-specialist-sa-demo-us-east-2.s3.us-east-2.amazonaws.com/custom-brand-detection/1.0.0/amazon-rekognition-custom-brand-detection.template
At first, I ran into the following issue which was displayed in the console:
... |
I'm trying to log all cassandra queries of a springboot application into a console. I'm using 3.11 version of Cassandra. Tried using Query Logger as shown in the code below, but facing issues while autowiring Cluster i.e., **could not autowire. No beans of type 'Cluster' found.**
Can anyone please do let me know if ... |
How to do Cassandra Query Logging in Springboot Applicatiom? |
|spring-boot|cassandra| |
|c#|.net|apache-kafka|confluent-kafka-dotnet| |
I got it working with slight modification of what @LãNgọcHải 's suggested:
```
const volumeResetHandler = async () => {
inputRef.current.value = 0;
(inputRef.current as any).addEventListener('change', volumeChangeHandler);
(inputRef.current as any).dispatchEvent(new Event('change', { bubbles: true })... |
Error WebMock::NetConnectNotAllowedError in testing with stub using minitest in rails |
|ruby-on-rails|testing|minitest|webmock| |
null |
Here is an example for both cases:
public class PECSExample {
public static void main(String[] args) {
List<C> producerCList = new ArrayList<>();
List<D> producerDList = new ArrayList<>();
List<E> producerEList = new ArrayList<>();
producerCList.... |
Your function isn't updating `a` to point to the string; in your `main` function `a` is still `NULL` after the call to `fn`.
Remember that C passes all function arguments by value; when you call `fn` the argument `a` is evaluated and the result of that evaluation (`NULL`) is *copied* to the formal argument `n`. `a`... |
|css|tailwind-css|border|rounded-corners| |
I need to add IP Restrictions onto my Cloud Function, and before you mention it using a SA or other forms of auth are out of the question..! ;)
I am having trouble, however.
My Cloud Function is deployed all fine, and I've setup a VPC.
This VPC has one subnet, deployed in the same region (europe-west1) and ... |
Connecting to a Cloud Function through a VPC returns 404 |
|google-cloud-platform|google-cloud-functions|vpc| |
Since the `data` parameter of the `insertDataToEndList` function is allocated on the stack, its address is no longer referencing allocated memory once that function returns. Yet you've saved this address in `res->dataPtr = data;`. This will lead to undefined behaviour when you'll read the memory pointed to by that `dat... |
when trigger like this:
---
ALTER TRIGGER dbo.TG_a
ON dbo.a
FOR DELETE
AS BEGIN
select *
into dbo.b
from deleted
END
===
when i delete multi row in edit tab:
there will be problem: there is already object name 'b'
when trigger like this:
---
ALTER TRIGGER dbo.TG_a
ON dbo.a
FOR DELET... |
SQL Server: delete trigger run for each deleted row when delete multi row on edit tab |
|sql-server|triggers|sql-delete| |
null |
The following code creates a cosecant squared radiation pattern. There is a phases and amplitude_norm_V vector which are the coefficients of AF expression. I am looking to create a GA inetative algorighn that given a know AF data will recreate phases and amplitude coefficients .I was given a link to possible method sho... |
iterative GA optimization algorithm |
|arrays|matlab|genetic-algorithm|antenna-house|optim| |
null |
A root is a storage location, such as local variable, that could contain a reference and is known to have been initialized, and that your program use at some point in the future without needing to go via some other object reference.
In ***Programming C# 10.0*** by **Ian Griffiths** in the seventh chapter it is state... |
How to adjust subtitle font size in Swift macOS? |
Some other people were having the same issue.
- [Pylance does not show auto import information from site-packages directory #3281](https://github.com/microsoft/pylance-release/issues/3281)
- [Pylance not indexing all files and symbols for sqlalchemy even with package depth of 4](https://github.com/microsoft/pylance... |
To set a pipeline description in a Jenkinsfile, you can try, in theory, the `properties` step, assuming you have the [Project Description Setter](https://plugins.jenkins.io/project-description-setter/) Jenkins plugin installed.
The `properties` step allows you to define job properties, which include the description of... |
null |
I saw this [thread](https://www.reddit.com/r/unrealengine/comments/gpc2hh/ghost_trail_motion_trail_removal/) where they describe an issue that I've been having where the machine struggles with calculating AA so it leaves a ghost trail.
I want to record the viewport and use these as videos so no real time calculation... |
I am trying to place shadows in one of the div and it's not showing up. Here is one div where I am trying to implement the shadow:
#intro {
padding: 0px;
margin: 0px auto;
width: 100%;
float:inherit;
overflow: hidden;
height: 800px;
position:inherit;
background-co... |
How about this? Not quite as seamless but a bit closer to what you want.
diff = df["Input"] - df["Input"].shift(1)
diff.columns = pd.MultiIndex.from_product([["Diff"], diff.columns])
df = pd.concat([df, diff], axis=1)
Regarding the second part of your question (really a separate question), the probl... |
I'm using [flutter_carousel_widget](https://pub.dev/packages/flutter_carousel_widget) package to make a carousel with this code:
FlutterCarousel(
options: CarouselOptions(
physics: const NeverScrollableScrollPhysics(),
controller: _carouselController,
... |
I have a .NET 6 application that my client has asked me to deploy on AWS Fargate and expose via a Rest API Gateway.
I need to change the application context root to be /<stage name> instead of /
I have the following Dockerfile so far
```
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /WebAdmin
EXPOSE ... |
I think, you need to set absolute path to the **resource**.
const path = require('path');
...
resource = createAudioResource(path.join(__dirname, 'sounds', 'alert.mp3')); |
You can use:
```ts
switch (category) {
case "fruit":
food = food as Fruit
return food
case "grain":
food = food as Grain
return food
case "meat":
food = food as Meat
return food
}
``` |
You need to update or add these in your environment variables as following:
In `.env.production` or `env.local` files
NEXTAUTH_URL=http://YOUR_LOCAL_OR_DEPLOYED_HOST_URL:HOST_PORT
AUTH_TRUST_HOST=http://YOUR_LOCAL_OR_DEPLOYED_HOST_URL:HOST_PORT
Results be like:
NEXTAUTH_URL=http://192.152.1.1:3... |
I am quite new to deep learning/machine learning and I have been trying to use my Apple M2 to accelerate training for my CNN in Jupyter notebook however, I am finding that despite using 'mps' it performs much slower per epoch (1m 30-40 seconds) than Google Colab CPU which is taking 40 seconds per epoch.
I'm not sure... |
PyTorch training on M2 GPU slower than Colab CPU |
|machine-learning|deep-learning|jupyter-notebook|conv-neural-network| |
null |
In that way it works. I think u put `tearoff=0` in `menubar` instead of `fileMenu`. If you put your `tearoff=0` in `menubar` it won't affect `fileMenu`. So, u need to specifically put `tearoff=0` in specific `tk.Menu()`
import tkinter as tk
window = tk.Tk()
window.geometry("800x600")
... |
I was trying to connect the BNO08x IMU Breakout board with Pico RP2040, I tried connecting it to both the I2C ports, but it didnt worked.
I am using the official Adafruit BNO08x lib.
Below is the part of Example code included in the lib which I was trying to run:
#include <Adafruit_BNO08x.h>
// For ... |
Does rendering/baking get rid of any Antialiasing ghosting? |