instruction stringlengths 0 30k ⌀ |
|---|
|marquee| |
null |
![Unwanted text on icon][1]
I created a return icon while designing, but this text appeared on it. What is this text and how do I solve this?
There does not seem to be an error in my code, I searched the internet but could not find any results.I don't know how to investigate.
[1]: https://i.stack.imgur.com... |
Unwanted text on created icon |
null |
This is kinda late but if you want to change the desktop icon and the overall icon when you open the .jar file, you can use the Launch4j and this.
`
ClassLoader classLoader = Main.class.getClassLoader();
URL resourceURL = classLoader.getResource("nameOfYourPackage/nameOfImage.png");
ImageIcon thisIsTheName ... |
```
static ArrayList<Integer> LinearSearch(int[] arr,int index,int target) {
ArrayList<Integer> iList = new ArrayList<>();
if(index == arr.length){
return iList;
}
if(arr[index] == target){
iList.add(index);
}
ArrayList<Integer> temp =... |
i have the following block of code that checks if the field with id=streetNumber contains either the values 23 or 45 and adds a value depending on what it finds
```
async function replace(page: Page) {
if (await page.locator('id=streetNumber'), { hasText: "23"}) {
await page.locator('id=streetNumber')... |
Playwright checking the text of a locator and replacing values |
|typescript|function|if-statement|playwright| |
I'm trying to ggplot2 as facet_wrap box plot, but I'm having trouble in few things:
1- triangle symbol isn't showing in the graph but it shows in the environment window and console
2- in facet_wrap I'm using theme_lindraw and I want to remove x axis labels and leave it at the bottom panel only
3- I want to add geom... |
null |
Instead of going for `valueChanges` which seems to be tedious for form array, instead try the below approach, where we listen for the input changes using `(input)` event and also reset the autocomplete using `(opened)` and `(click)` event where we reset the inputs latest value, by passing the fields as arguments to the... |
As far as I understand it, the `await` keyword prevents a function from continuing until the called asynchronous function completes. Essentially, it makes the asynchronous function synchronous. So that the following holds:
```c#
await MyAsyncMethod(); // first this is called
await MyOtherAsyncMethod(); // onl... |
.NET: How to add launch on startup option to ClickOnce installer |
|c#|.net|wpf|visual-studio|clickonce| |
use pandas and duckdb
def function1(dd:pd.DataFrame):
dd1=df1.sql().filter("date<='{}'".format(dd.Date.iloc[0])).select("*,case when date='{}' then Home_Team else Winner end as winner2".format(dd.Date.iloc[0])).order("date desc").df()
dd2=dd1.groupby(['winner2'],as_index=False).agg(col2=("col1"... |
The two required steps are:
1. `gcloud auth login`
2. Setting up authentication for docker, as described [here][1]
`gcloud auth configure docker asia-south1-docker.pkg.dev`.
The exact command for your repo can also be seen by logging in to the Google Cloud console, entering the repo and clicking on `SETUP IN... |
I would like to check if files or folder exist in my current project.
I have try using react-native-fs but this not take the files in the project but on the phone.
So for exemple, i would like to get the names of the files like App.js
Thank you in advance |
Check if a path exist in React Native |
|javascript|react-native|path|verification| |
Return an arraylist without passing an argument |
|javascript|java|recursion|stack| |
null |
Why you don't import that python file in nodejs only once and i use it,
for all of your nodejs app lifecycle,
BTW i have written this library for that: [Py3][1]
Simple usage:
# simple.py
import json
def validate():
# props are auto json-ed
return {'hi': 'hello', 'nu... |
{"Voters":[{"Id":23096025,"DisplayName":"CarlKilla"}],"DeleteType":1} |
There is an important difference in assignment. These two assignments are not equivalent:
df['j'] = pd.Series(...)
df.loc[:,'j'] = pd.Series(...)
- Indexing with `[...]` replaces the series. The new series comes with its own `dtype`, the existing `dtype` is discarded.
- Indexing with `loc[...]` rep... |
**addon** ensure envs are there before imports read them:
```
import { a} from "A.mjs";
console.log('env checks here')
import {b} from "B.mjs";
```
Despite log is before the import, nodejs will hoist all imports to the top and process respective modules. If any module eg B.mjs imports an env variable it will ru... |
How can I get the current model in the laravel nova actions field function? Can't find it out ...
public function fields(NovaRequest $request)
{
Log::info($request->model());
return [
//
];
} |
When is omitting await acceptable in asynchronous functions? |
|c#|.net|async-await| |
null |
I have been trying to reinstall anaconda navigator on my MacBook Pro M3 pro after I deleted the previous one fro system files. Now, while I install the package, every time it shows "chosen path already exists". I have also tried to install anaconda-clean package from terminal but it's not installing.
Any suggestions... |
Chosen path already exist: Reinstalling anaconda navigator on macOS |
|python|macos|installation|anaconda|uninstallation| |
null |
I think what you are asking is how to update the UseEffect in Sidebar so that it doesnt error?
If that is the case, it is erroring because the `currentUser` is null when trying to call `OnSnapshot`
To fix this you can simply check if `currentUser` is not null or undefined inside that `useEffect` :
... |
I have a problem creating a project with Visual Studio 2022 Enterprise on Windows 10.
I try to create a project with the template "Angular and ASP.NET Core".
I dont change the default options (.NET 8.0,...). When creating the project I get the message "The version of Angular CLI was not valid." The template tries to ... |
Visual Studio 2022 getting error when creating "Angular and ASP.NET Core" project |
|asp.net|angular| |
null |
I'm currently working on managing role assignments in Terraform for Azure Storage Access, and I'm looking to streamline my code. Below is the snippet I'm working with,
locals {
sa_we = "0c975d82-85a2-4b3a-bb23-9be5c681b66f"
sa_gl = "9ee248b1-26f6-4d72-a3ac-7b77cf6c17f2"
}
resource "az... |
Try Simple Query, without Array
SELECT request_at, COUNT(*) as total
FROM trip
GROUP BY request_at;
And here is With Array
WITH datas AS (
SELECT array_agg(distinct request_at) as request_dates
FROM trip
), counts AS (
SELECT unnest(request_dates) as request_date, ... |
I am trying to deploy a gcp function with custom entry point path. File at location `src/custom.js` relative to `package.json` contains delcarations that I'd like gcp to invoke:
functions.http('helloHttp', async (req, res) => {
//code
});
I tried specifying entry-point with:
gcloud funct... |
|javascript|google-cloud-platform|google-cloud-functions| |
null |
I updated Flutter to 3.19. Then when I try to run the iphone15 simulator I get the following error. what should I do?
Error: The pod "Firebase/Firestore" required by the plugin "cloud_firestore" requires a higher minimum iOS deployment version than the plugin's reported minimum version.
To build, remove... |
The pod "Firebase/Firestore" required by the plugin "cloud_firestore" requires a higher minimum iOS deployment version |
|flutter|dart|google-cloud-firestore|flutter-dependencies| |
I guess what you want is to receive an object with three (or more) properties and in this case I would use a [calculated property](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_calculated_properties):
Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName $compu... |
This error is not a result of MLE. It's because #keyId is missing from the request header. You can generate a keyid from the dashboard -> project name -> credentials then scroll down to Encryption and Decryption. Click Generate keyId.
After getting the key, you must add a "keyId" header with a value of the generated... |
Simple Counter as a webapp with increase and decrease buttons |
I am using transactionScoped but this error is generated: The transaction associated with the current connection has completed, but has not been discarded. It must be downloaded before using the connection to execute SQL statements.
I already increased the time out but it still generates the error. |
The transaction associated with the current connection has completed, but has not been discarded |
|c#| |
null |
I have macbook and iphone device and react native project, I want to know steps to do inorder to run that app on my real ios device without using xcode. |
How to run react native on real ios device (iphone) without using Xcode |
|ios|react-native|mobile-development|iosdeployment| |
|c#|.net|visual-studio|visual-studio-2022| |
I came with an updated answer. To get current status of all compose services, you can use [docker compose ps](https://docs.docker.com/engine/reference/commandline/compose_ps/) comand like this (I choose the easiest formatting to manipulate it in a script context, feel free to read the [format doc](https://docs.docker.c... |
I want to make my button to play and pause the track, is it possible? I use iframe,but i don't know how to make the control button to it, maybe there are other ways.
\<iframe className="w-50 absolute bottom-0 right-0" src={url} width="80%" height="100" frameBorder="0" allowFul... |
Is it possible to link my button with the button of spotify embed player in react js? |
Get corresponding model in laravel nova action fields function |
|laravel|laravel-nova| |
I have a server and i'll connect using the ssh from my laptop , **Both the server and my laptop are in a same network** ! Is there any way to share files and videos from the server to my local laptop without any internet or data loss , but i don't any cable connection , need this to be wireless ! lets consider the file... |
Share files from the server without data or internet usage |
|linux|networking|ssh|server| |
null |
When trying to minimise an objective through CVXPY, I have two different optimisation problems. When a parameter alpha is set to 0, both these objectives should give the same minimisation results. But for me it gives two different results.
These are the two problems
Problem 1 :
```
w = cp.Variable(shape = m)... |
|java|recursion| |
I made programm but it gives me error
"Access denied for user acer: using PASWORD "yes""
This happend when I run my program on another pc, it means that database does not exist on this pc . how I program my App to connect to the MySQL database on any other pc that doesn't have preior instalation of Mysql?
Do I... |
Connection with MySQL database on any other pc! Python |
|python|mysql| |
null |
{"Voters":[{"Id":23096025,"DisplayName":"CarlKilla"}]} |
{"Voters":[{"Id":1968182,"DisplayName":"Ulrich Eckhardt"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":466862,"DisplayName":"Mark Rotteveel"}],"SiteSpecificCloseReasonIds":[11]} |
How to consolidate duplicate blocks for Azure Role Assignments using Terraform? |
|terraform|terraform-provider-azure| |
Now this is more directed towards Svelte authors I suppose, but I just recently fully realized that derived stores are constantly recreated on `get`.
[Example][1]
<script>
import { derived, get, writable } from 'svelte/store'
const store = writable(0)
const derivedA = derived(store, s => {
... |
I tried the 'fa-meh-blank' Remove. When I clicked it worked. And when I clicked again, my icon disappeared completely.
I managed to find the solution. I think I expressed myself badly. I wanted to alternate the icons with each click. The following javascript works perfectly.
My new JavaScript:
```
icone.ad... |
If you use the standard Blazor form controls it will work as you expect.
Here's a demo page:
```csharp
@page "/"
<PageTitle>Home</PageTitle>
<h1>Demo ToDo</h1>
<EditForm Model="_model" OnValidSubmit="HandleValidSubmit">
<div class="form-group col-md-4 mb-3">
<label>ToDo</label>
... |
{"Voters":[{"Id":1974224,"DisplayName":"Cristik"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":522444,"DisplayName":"Hovercraft Full Of Eels"}]} |
To get the real path from a content URI, you can use the ContentResolver to query the MediaStore and obtain the file path. Here's an updated version of your onActivityResult method:
@Override
public void onActivityResult(ActivityResult result) {
if (result.getResultCode() == Activity.RESULT_OK) {
... |
I am developing an API with nodejs and I am using Sequelize as ORM.
I have the following many to many relationship within User and UserType.
User.model.js
const { Sequelize, DataTypes } = require('sequelize');
const sequelize = require('../config/db');
const bcrypt = require('bcryptjs');
con... |
I am making a custom keras Model. I want to customize the training loop so I implemented a custom train_step method. I want to understand the logic of the fit method. As of my understanding, train_step is used in the fit method and test_step in the evaluate method and predict_step in the predict method. How does the fi... |
how keras.Model.fit works? |
|tensorflow|keras|deep-learning| |
Given a **host** compiler that supports it, you can use `std::bit_cast` in CUDA C++20 **device** code to initialize a `constexpr` variable. You just need to tell nvcc to make it possible by passing [`--expt-relaxed-constexpr`][1].
This flag is labeled as an "Experimental flag", but to me it sounds more like "this fl... |
By default, `Data_free` is not a finite resource that will run out. It's only a count of the extents (1MB contiguous space) that has already been allocated in the physical file, but which contains no data.
InnoDB tablespaces usually are configured to auto-expand. The default in current versions of MySQL is to store ... |
Depending on what exactly you mean by "the text", you probably want the [`get_body` method.](https://docs.python.org/3/library/email.message.html#email.message.EmailMessage.get_body) But you are thoroughly mangling the email before you get to that point. What you receive from the server isn't "HTML" and converting it t... |
`
final String uid = FirebaseAuth.instance.currentUser!.uid;
Padding(
padding: const EdgeInsets.all(20),
child: StreamBuilder(
stream: FirebaseFirestore.instance.collection('Users').doc(uid).snapshots(),
builder: (context, snapsh... |
I'm trying to get the name from the database but I can't get it [Flutter] |
|flutter|firebase| |
null |
I'm not sure if i understand you fully and also not sure how your vsCode is setup. My first instinct is that you need to install an extension thats specifically does SQL linting that detects syntax errors and enforcing code style.
search for SQLFluff and install it as as extension.
|
felixolszewski@Felixs-MacBook-Pro-2 SMART TV % ares-install --device emulator "/Users/felixolszewski/Desktop/SMART TV/com.felixolszewski.app1_1.0.0_all.ipk"
ares-install ERR! [syscall failure]: connect ECONNREFUSED 127.0.0.1:6622
ares-install ERR! [Tips]: Connection refused. Please check the devic... |
I have an array state variable `flashingBoxLoaderItems` that will collect the "receipts" of individual async fetches happening in the component, to let me know when all the fetches are complete. There's also a boolean variable `flashingBoxLoaderComplete` that is set on an `Effect` monitoring any changes on `flashingBox... |
React: Multiple async fetches writing to an array state variable |
|reactjs| |