instruction stringlengths 0 30k ⌀ |
|---|
|mysql|next.js|prisma|kysely| |
I am working on two functions, `GetToolbar()` and `SetToolbar()` to control Adobe Illustrator's toolbar panel in a much more efficient way and to implement features such as spring loaded tools, which [illustrator still does not have](https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/s... |
Low efficiency when plotting a large amount of contours on a single axis in python with matplotlib |
|python|matplotlib|contour|contourf| |
null |
I have the same issue. Selling in Sweden so I am using SEK as currency and when the order surpasses 500 its free, as it should. When over 1000 it's back to standard shipping again. Running Betheme. WooCommerce-version: 8.7.0
Just wanted to chime in to show I'm in the same boat. |
If I have a Button in SwiftUI, what is the best wa toy add additional actions to that button using a view modifier? For example, let's say I have the following:
```swift
Button("Tap me") {
print("tapped")
}
```
and I want to write a modifier that we can add to any button, so that when the button is tapped, ... |
The culprit is here:
for shape in paddle:
if ball.hitsShape(shape) == True:
app.yvel = -20
app.xvel = app.paddle_xvel
app.scoreVar += 1
app.score.value = app.scoreVar
Probably, if the inner `if` statement is `True`, you should just `break` out of th... |
I have a query I’m attempting to optimise.
table1 has 300,000 rows and table2 has 100,000 rows
Each table has key columns (key1..key15)
I am attempting to select all rows in table1 and LEFT JOINing table2 on these matching keys.
I also have wildcard keys in table2 (designated ‘all’)
Here is a partial e... |
another way to simply allow all the vars (for those who don't need a name/value check):
```typescript
import * as react from 'react';
declare module 'react' {
export interface CSSProperties extends Record<`--${string}`, any> {}
export default react;
}
``` |
AhkV1:Plaqued by 'Expression too long' error |
|autohotkey| |
In order to implement this, you're going to end up writing a substantial amount of both frontend and backend code. I will give you just an overview since a full explanation is beyond the scope of a question on Stack Overflow.
1. You're going have to implement some sort of backend API endpoint that provides an ID to... |
null |
Thanks to @Cbroe in the comments.
I had the same problem, removed the `target="_blank"` attribute and it worked. |
|javascript|firefox-addon|manifest| |
I am currently experimenting a bit with the Qt DataVisualization. The Goal is that i have a QLineEdit and when i exit it i use the SIGNAL QLineEdit::editingFinished. And than i set the value that was entered to the selected Bar. I get the error in line 46 when i start the second for loop when i try to acces the QBarDat... |
Read Acces violation |
|c++|qt|widget|physics|qt6| |
null |
So I have started making a 3D Tile based farming game in Godot(Inspired from Homegrown). i managed to make the Random Terrain and Camera systems on my own but am now struggling to make the terrain editing thingy...
So the world is generated in tiles of primarily Grass, Farm and Pavement. Now I need a way to edit the... |
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 am confused why this issue is happening because I have the latest versions of everything I am working with:
I am working in Java (version 22)
My Geckodriver is version 34
All the jars I have for selenium are version 4.18.1
My firefox browser is the latest ESR version (115.9.1)
Also for reference my current IDE... |
Selenium error: SessionNotCreatedException | Java, Firefox, everything is updated and should be compatible |
|java|selenium-webdriver|intellij-idea|selenium-firefoxdriver| |
null |
There is absolutely no guarantee that a decompiled code will recompile.
This project https://github.com/java-decompiler/jd-core has recompilation as part of its test suite on a few set of open-source projects, and this fork https://github.com/nbauma109/jd-core continues in this direction, but each new project and vers... |
> What was the problem with `std::is_callable`'s `Fn(Args...)` approach?
This can be answered from [P0604][1] (which renamed `is_callable`) bullet 3 that states:
> 3. *Replace function type encoding of type lists in is_callable and result_of:*
>
> **The function type encoding form used in these type traits is a... |
In my file, I list the championship days by group: [https://docs.google.com/spreadsheets/d/1zYplMk2HOs-AC84sgRH1hDMH5-Yq2DuZ-XzXW3R0kBI/edit?usp=sharing](https://docs.google.com/spreadsheets/d/1zYplMk2HOs-AC84sgRH1hDMH5-Yq2DuZ-XzXW3R0kBI/edit?usp=sharing)
As the days do not correspond to the same dates for the diffe... |
Data recovery based on other data |
|google-sheets|google-sheets-formula| |
null |
Chiming in on this late in the game so to speak. But I can vouch that if you do this correctly, you don't have to put the --openssl-legacy-provider in your npm start.
My use case is a ReactJS 17.x SPA with ASP.NET 8.x. I had actually created the application in the past and just upgraded it through time. What caus... |
my create user work currectlly until i use a signal to create customer (user profile) after user created and i get error unable to create user account
# signal
from django.conf import settings
from django.db.models.signals import post_save
from django.dispatch import receiver
from store.mo... |
Assuming the data has been stored in table named Numbers
``` SQL
WITH NUM AS
(
SELECT
A.*,
ROW_NUMBER() OVER(PARTITION BY ID1, ID2 ORDER BY VALUE) AS RN
FROM
NUMBERS A
)
SELECT
A.ID1, A.ID2, A.LOWER, A.VALUE,A.UPPER, A.MEASUREMENT,
SUM(COALESCE(B.MEASUREMENT, 0))... |
I have setup the rocketmq Dashboard and I was exploring it.
What exactly is the NameServerAddressList?. It is somehow defaulted to 127.0.0.1:9876.
Also, The dashboard looks empty, How do I monitor RocketMQ clusters.
Do I need to create clusters, topics, producers, consumers on my own or can I monitor something w... |
What is NameServerAddressList in the OPS page? |
|dashboard|rocketmq| |
IMHO: Abdelhady's solution scales better, but if there is want for a 1 bit solution and keep things as binary operations then let's start by looking at the truth table.
The truth table for an SLT 1 bit operation is:
```
A,B, SLT(aka. A<B)
------------
0 0 0
0 1 1
1 0 0
1 1 0
```
Since it's so sp... |
I can't find any setting in Nvidia control panel, both cards are installed correctly with the SLI link plugged in. I read something which indicated Nvidia have removed the option for SLI. Is there some way for me to enable it, such as rolling back drivers, or turning it on some other way? |
How to setup SLI on two GTX 560Ti's |
|windows|gpu|driver|nvidia|sli| |
|java|android|mobile-development| |
In C++, to convert a number to long double type, you can simply append an "L" or "l" to the number. This tells the compiler to treat the number as a long double. Here's how you can do it:
long double myNumber = 1.0L;
By appending "L" or "l" to the number, you ensure that it's interpreted as a long double lite... |
|android|xml| |
null |
In my opinion, the causes could be the following
1 you need to declare in your app's manifest file
`<manifest ...>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<application ...>
...
</application>
</manifest>`
2 you need to create the NotificationC... |
@EugeneGorelik 's solution **FIXED** this (in the comments above). Thanks! This solution doesn't need any `chown` or extra restarts. I am only using for local development though.
I am on **Podman** 4.9 (rootful) with postgres:16-alpine on Mac OS. One **minor addition** I did was made the `user id` dynamic - like thi... |
I have a struct that I'm playing around with to make a `doc` field serializable alongside the associated variable:
```rust
#[derive(Debug, Serialize)]
struct Field<T> {
val: T,
#[serde(skip_serializing_if = "Option::is_none")]
doc: Option<String>,
}
```
I'm trying to make it so that you can do ... |
unable to create user account |
|python|django|djoser| |
null |
What you are doing is counterproductive. Because of `margin-left` animation and `setInterval()`, and because of rearrange the html elements.
All this can be achieved with just css: the easiest way is to duplicate `li.marqueme` and apply css `animation` with `animation-play-state: paused;` to `:hover`.
A simple ex... |
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.A)
{
if(pbMainBox.Location == PictureBox.Location)
{
`I leave this if blank because I don't want to do anything when I press A`
}
... |
i have some picture box and I don't want my main character to touch it like to stop moving |
|c#|location|border|picturebox|keydown| |
null |
`ngx-countdown` expects `leftTime` to be a number representing seconds left. So to make it work you need to find a difference between `auctionEnd` which is a UTC string and the current Date and convert it into seconds.
Here is how your component could do this:
```ts
export class TimerComponent {
config: Countd... |
I am fairly new to Java, currently learning about lambda expressions.
so I wanted to use generic with the Consumer function to make it accept any type of parameter passed to it and just print it out
The consumer accepts the first generic as the type that must be passed to it as the first param
I specified it to be... |
I'm trying to add recession bands to this graph:
[The Taylor (1993) rule for the US and the Fed Funds rate, 1960-2023](https://i.stack.imgur.com/UJIa6.png)
I'm not sure where to start. Here's what I've got currently:
```
p <- ggplot(df, aes(date, fedfunds, group = 1, color="red"))+
geom_line( size=1.2, alp... |
Adding Recession Bands to ggplot of Federal Interest Rate, the Taylor Rule and Years |
|r|ggplot2|rstudio|economics| |
null |
When utilizing Poetry to create a new project with **`poetry create`**, it consistently defaults to Python 3.10, despite having Python 3.12 installed on my Ubuntu system. Although I managed to configure Python's global version to 3.12, this adjustment occurred after installing Poetry. Consequently, Poetry persists in u... |
How to change default python version for poetry? |
|python|python-venv|python-poetry|python-3.12| |
null |
I am currently trying to implement a start input adornment in input props in my MUI TextField, however when i do so the default label sits where it sits when the text field is focused (but it's in the unfocused state as it's grey):
[](https://i.stack.im... |
I'm currently deploying an application using `Django Channels` in Production environment.
The target application is based on the sample app from the official `django channel` documentation.
https://channels.readthedocs.io/en/latest/tutorial/index.html
I've confirmed that it works well in a production environment... |
This application gets enabled when you set "Allow users to connect their work or school account with LinkedIn" under Entra ID > **User Settings** in your tenant.
[![enter image description here][1]][1]
To locate that application, you need to go to Enterprise Applications but remove the filter for Enterprise Appli... |
I have a situation where I have several tables in my SQL database that I would like to query using Entity Framework. Rather than have an individual entity for each table, I would like to have one Entity that contains properties for all of the columns across all of the tables. When I try to do this, I end up with a Syst... |
You can use `(input)` instead of `(change)`. `(input)` event fires everytime you enter a character. `(change)` when you lose focus on the input. Or you can do the following:
Use `ChangeDetectorRef` to detect the changes in your component:
constructor(
private formBuilder: FormBuilder,
private cd... |
As title. I want to know all the use cases where the `in` operator is used to operate on types. So I'm not asking for the type-guard usage of `in` in JavaScript.
Given this, am I correct to say that the `in` operator in such cases is only for iterating through a union type? From my current knowledge, I only know its... |
All usecases of `in` operator for types in TypeScript |
|typescript| |
I am working on a project that includes downloading a bunch of data from this website (I have permission).
Anyways, I'm attempting at writing a bot that will do the following:
go into the website
log in
go to packs section of the website (each pack contains x number of clips in different formats)
in each pack down... |
First, the units Godot 4 uses are metres and seconds. So, an speed of `1` is one metre per second.
Second, `_physics_process` will run once every physics frame, which by default is `60` times per second.
Third, `Input.is_action_pressed` returns `true` if the action is pressed, and `false` otherwise.
Thus, here... |
null |
Another way you can try using is a label that essentially works as a break; command but for do-while loops.
```
bool isExit = false;
do
{
Console.Write("Enter the username(Type 'exit' to go back to menu): ");
string username = Console.ReadLine();
if (username.ToLower() == "exit")... |
Need help/guidance on creating a Query that will re-organize a table. It has been over 5 years since I was heavily using Query and Arrayformula's in Google sheets and am not getting the results needed.
.
Google Sheet example Data: https://docs.google.com/spreadsheets/d/1YI1mPJqL8x0GfxMSE9K2xCNzwiUvo0RLhd5DQ0O1mC... |
Google Sheet - Transpose w/Query or ArrayFormula? Help please :) |
|google-sheets|google-sheets-formula| |
null |
If I enter a pipenv virtual environment in command prompt, it will show which virtual environment I am in on the left side inside parentheses. Is there any way to have this same effect while using git bash?
Thank you!
Enter Virtual Environment: pipenv shell |
Is it possible to show which virtual environment you are in when using git bash? |
|git-bash|virtual-environment| |
null |
A **Test Scenario** is a high-level description of what needs to be tested in the software. **For Example**, in a particular website, a test scenario could be "Check the Login Functionality".
A **Test Case** is a set of actions executed to verify a particular feature or functionality of your software application. It... |
I am trying to find the sum of 2 fields that were both pre filled earlier in the form based on conditionals in another script, so there is no direct input of these fields. The following code works if I directly change the value in those fields, but not if they have been previously filled.
```
<script type="text/jav... |
Create One Entity for Multiple Tables? |
|c#|sql-server|entity-framework-core| |
null |
We have been using the `BGTask` (specifically a `BGProcessingTask`) reliably for the last couple of years for our app. Up until now they wake up automatically while the screen is off, the iPad is plugged in, and the app is running (that is, in the background), but never while the screen is on (that is, never when the `... |
BGTask running while iPad is awake--how is this possible? |
|ios|background-task|bgtaskscheduler|bgprocessingtask| |
I'm trying to get animations working within their respective divs so that the user scrolling into a div is what triggers it. At the same time, I need to keep a single page type of feel where each div doesn't have it's own visibly scrollable area. The problem with this is that I can't seem to detect scroll events per ea... |
|python|opencv|computer-vision|embedded|nvidia-vpi| |
I need an efficient way to test some free online HTTP proxies and determine which ones can access a specific website;
And since that proxy testing involves significant waiting time, I opted to redesign my code for asynchronous testing. I then explored the httpx and aiohttp packages. However, I encountered unexpected... |
How to efficiently test some HTTP proxies for accessing a specific domain? |
You could `paste` strings out of the diseases, e.g. `'121'` for patient 2. Then `grepl` in a temporary `.k` column for regex patterns `12|132` and `subset`. Use `ave` to do group by `ID`.
> df |>
+ transform(.k=ave(Disease, ID, FUN=\(x) grepl('12|132', paste(x, collapse='')))) |>
+ subset(.k == 1... |