instruction
stringlengths
0
30k
How to add custom property to palette in MUI custom theme
|reactjs|material-ui|vite|custom-theme|
null
It appears that your `GROUP BY` is grouping the entirety of each `InvoiceHeader` row, while the other table references are only used to calculate sums for details and payments. In that case, I believe that is would be simpler to select directly from `InvoiceHeader` only at the top level and use `CROSS APPLY` subqueries...
I have faced the same issue in Angular. By reading @Csabi, it occurred to me to try to remove the training from tidy. It worked. Even though tidy may work well in pure JavaScript, it seems to be problematic in Angular.
Hello Stackoverflow community, Can someone please share their insights on how can we call a javascript function during form submission in Umbraco frontend and then continue the rest of the workflow ? Since, I am implementing an invisible recaptcha we have to trigger `grecaptcha.execute();` to generate a client to...
you can modify DEFINER directly using this : sed -i 's/DEFINER=[^*]*\*/\*/g' $FILE_NAME Overall, this sed command searches for the pattern `"DEFINER=..."` (where "..." can be any characters except "") in the specified SQL file and replaces it with just an asterisk "", effectively removing the "DEFINER" part. ...
In AWS console go to SES. You have to create a SMTP user in the SMTP configuration. Then in the user go to the security credentials tab and create the access key. Don't forget to save the secret access key. You can check with this code if everything work: $SesClient = new SesClient([ 'version' => '...
Following worked for me ``` alias cd='() {if [[ -f $1 ]]; then cd $(dirname $1); else cd $1; fi}' ```
I have a C++ code from the Sapera LT SDK user manual that acquires images from a Nano camera and displays them live. The problem arises when I attempt to build a project in Visual Studio 2022, as I encounter numerous errors. **I have provided detailing the steps outlined in the manual to build the project.** (I ...
Try the below code. Please note that the answer assumes you will always have a combination of start-stop. w0=Window.partitionBy("CpoSku").orderBy(lit("A")) df_test=df_test.withColumn('lag',lag(col("CPO_BB_Status")).over(w0)) df_test=df_test.withColumn('lead',lead(col("CPO_BB_Status")).over(w0)) df...
Currently in my ASP.NET Core 8 Web API (older version), I have the following code in `Startup.cs`: var builder = new ContainerBuilder(); builder.Register(context => { var handler = new WebRequestHandler(); // ... return new HttpClient(handler); }).SingleInstance()....
I have a remix App (SSR). When i add a script for google analytics, it shows an error of hydration in production , especially on line with `gtag('js', new Date())` Does anybody know another way to add this script, or remove this error? [Image Example](https://i.stack.imgur.com/r86uT.jpg) i tried adding `suppre...
Using Malvin Lok's answer as a lead, I located `io.netty.handler.codec.http.HttpHeaders` and put a breakpoint for each `set*(..)` and `add*(..)` method. Here's what I found Default headers are added one by one in different places of Netty code. It's hard-coded, there are no injected strategies or configs. There's ap...
Where could be a mistake? ``` // Input für den iterativen prozentualen Schritt PercentageStep_it = input(1, title="Percentage Step it") // Berechnung des Preisbereichs PriceRange = downfibo ? F_level_S - F_level_E : F_level_E - F_level_S // Berechnung der iterativen Anzahl der zusätzlichen Ebenen NumAdditi...
You'll have to create a separate layout for each role so that you can pass different sidebar items to each layout Example: `admin/layout.tsx` export default function Layout({children} : {children: React.ReactNode}) { return (<DashboardLayout sidebarItems={adminSidebarItems}> {children} ...
{"Voters":[{"Id":15672672,"DisplayName":"ASHISH SINGH"}]}
Manifest file : <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> ...
Background location using WorkManager in Android 13 returns null when app is closed
|kotlin|android-jetpack-compose|location|android-workmanager|android-background|
[sql.js](https://github.com/sql-js/sql.js/) is a sqlite client for javascript, based on the original sqlite compiled to 640KB [WASM](https://sql.js.org/dist/sql-wasm.wasm) to compare: [alasql](https://bundlephobia.com/package/alasql@4.3.2) has a bundle size of 439KB limitation: the full database is stored in memo...
For example, If I define an action in `.github/workflows` like this: ```lang-yaml name: Trigger on release option on: push: option: - release jobs: ``` when I run: ```lang-bash git push --push-option=release ``` GitHub will run this action.But running `git push --push-option=foo` won't trigger ...
|ios|swiftui|accessibility|swiftui-list|swiftui-scrollview|
I have 1000 rows in an excel table related to 10 physicians. How can i randomly pick unique 10 rows for each of the 10 physicians Currently I am using the pivot table to identify the total number of rows per physician. Then from the total count per physician I am applying the mod(row(),n)=0, in conditional formatt...
You could use ``` Math.max(queue[0].duration, 1000 - (performance.now() - start)) ``` to make an interval between the jobs at least 1 second and call the schedule recursively. In that case returning a job could make not much sense, so you could collect your jobs in an array for example if needed. ``` ...
In case you added the `TargetFormat.Msi` to the following block you should have a gradle tasks like `packageMsi` or `packagaReleaseMsi`. Further questions might be answered by this [Readme][1]. compose.desktop { application { mainClass = "your.package.MainKt" javaHome = Syst...
How to use checkbox in loop in react native
I have 1000 rows in an excel table related to 10 physicians. How can i randomly pick unique 10 rows for each of the 10 physicians Currently I am using the pivot table to identify the total number of rows per physician. Then from the total row count per physician I am applying the mod(row(),n)=0, in conditional for...
Try this instead... try{ let response = getFunc(getUrl, token, header); let blob=new Blob([response],{type:"application/pdf"}); let url = URL.createObjectURL(blob); let link = document.createElement('a'); link.target = '_blank'; link.href = ...
I was partly correct in my observation, but to change the vlen option, it had to be done by explicitly initiating the ISA with the RiscvISA() constructor, not by modifying the value in the CPU's ISA object In the configuration file import the ISA object by: `from m5.objects import RiscvISA` Then initialise the...
# Definition of STDIN, STDOUT, and STDERR <br> The OS' kernel of all operating systems use these 3 main **I/O (Input/Output)** streams, and these are **STDIN**, **STDOUT**, and **STDERR**. **STDIN** is the **I/O** stream that is processing information related to input, **STDOUT** is the **I/O** stream that is pro...
I was partly correct in my observation, but to change the vlen option, it had to be done by explicitly initialising the ISA with the RiscvISA() constructor, not by modifying the value in the CPU's ISA object In the configuration file import the ISA object by: `from m5.objects import RiscvISA` Then initialise t...
I have setup a postgres:13.3 docker container and scram-sha-256 authentication. Initially, I ran: ``` docker run -d --name my-postgres13 -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=fbp123 -e POSTGRES_DB=mydb -e POSTGRES_HOST_AUTH_METHOD=scram-sha-256 -v pgdata13:/var/lib/postgresql/data postgres:13...
I am creating a mod for an UnrealEngine game. Sadly the worldtoscreen function in my SDK is broken. Im using CodeRedGenerator and the game is Rocket Legaue. Canvas.Project always returns (0,0,0) for me. if u have any fixes for that let me know. anyways i decided to write my own world_to_screen Given parameters i ha...
WorldToScreen function
|math|vector|3d|geometry|unreal|
null
{"OriginalQuestionIds":[77096087],"Voters":[{"Id":8690857,"DisplayName":"Drew Reese","BindingReason":{"GoldTagBadge":"reactjs"}}]}
I have the following pieces of nodejs code: const watcher = chokidar.watch(path, { persistent: true }); console.log("bbbb"); watcher .on('add', path=> { // do something; }) .on('change', path=> { // do something else }) .on('unlink', path=...
How to trigger GitHub Actions only on specific push option?
There is an important difference in assignment. These two assignments are not equivalent: df['j'] = df['j'].astype('uint8') df.loc[:,'j'] = df['j'].astype('uint8') - Indexing with `[...]` replaces the series. The new series comes with its own `dtype`, the existing `dtype` is discarded. - Indexing w...
I am trying to build my app for iOS (using react-native), and I keep getting the error *Multiple commands produce PrivacyInfo.xcprivacy*. I know where the error comes from, it's related to the fact that the Toast Pod has an PrivacyInfo.xcprivacy file: [![Toast Pod][1]][1] But I also have one for my app, becaus...
Multiple commands produce PrivacyInfo.xcprivacy
|ios|react-native|ios-privacy-settings|privacy-manifest|
while trying to use "#define enl '\n'" in usersnippet we can use `\\` instead of '\' to escape the '\' that is causing to print a newline. Thanks to @Holo for the Help :) .
{"Voters":[{"Id":22660878,"DisplayName":"Satya"}]}
Set environment variable during push for GitHub Actions
while trying to use "#define enl '\n'" in usersnippet we can use `\\` instead of `\` to escape the '\' that is causing to print a newline. Thanks to @Holo for the Help :) .
The error Code 0x8007007e translates as ERROR_MOD_NOT_FOUND (i.e. The specified ‘DynamicCompressionModule’ could not be found).When WSUS is installed, it adds the XPress compression scheme module (suscomp.dll) into IIS. In IIS, Compression Schemes are defined globally and so will attempt to load in every application Po...
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":13302,"DisplayName":"marc_s"}]}
I was creating a multiplayer wordle and am getting this error: `Uncaught TypeError: Failed to resolve module specifier "socket.io-client". Relative references must start with either "/", "./", or "../".` The code is running fine when i run the client locally but not when i host the client side on netlify or github. ...
Getting an error in Socket.io wordle project
|javascript|websocket|socket.io|runtime-error|
null
After upgrading react-native-code-push from 7.0.x to 8.0.1 with React Native 0.70.x, `npx react-native run-android` started to throw error: 1: Task failed with an exception. ----------- * Where: Script '/Users/macair/Documents/code/js/xyz_app6/node_modules/react-native-code-push/android/codepush.g...
This is happening because you are not updating the state and resulting in ui change. Use `Focus` widget and setState in `onFocusChange` callback. class MyHomePage extends StatefulWidget { const MyHomePage({super.key}); @override State<MyHomePage> createState() => _MyHomePageS...
I want to migrate some justpy code to nicegui. While the justpy IMG class could set with and height in the constructor the natural way to migrate would be: ```python with topicHeader: _topicIcon = ui.image( source=icon_url, width=f"{self.iconSize}", ...
I'm trying to use javascript to place an image overlay over an existing HTML image when the user clicks on it. I have that part working, but am wondering if it is possible to reposition the superimposed images when the window resizes so they maintain their position relative to the base image. I'd also like to scale t...
Javascript Place Image Where User Clicks
|javascript|css|image|responsive-design|image-resizing|
{"OriginalQuestionIds":[2723397],"Voters":[{"Id":238704,"DisplayName":"President James K. Polk"},{"Id":11002,"DisplayName":"tgdavies"},{"Id":869736,"DisplayName":"Louis Wasserman","BindingReason":{"GoldTagBadge":"java"}}]}
thanks for solution. In my case it returned only 2 out of 8 terms. For debugging I made it display found taxonomies in a category, so here's fixed script: add_action('woocommerce_before_main_content', function() { $current_cat_id = "335"; // Adjust the category ID accordingly $attr = "s...
As title. I bought an online course I had no time to watch until now. In the course, it says something like this *was* not allowed in TypeScript: ```ts type Name = { name: string } type Age = { age: number } type UnionBoth = Name | Age const test = (union: UnionBoth): void => { if ('name' in union && ...
I am having file in which some binary data available for example: `0100010000101111101101001011010000101110111101111110111110111111111000000000001` I want to convert `11` into `01` For example, if it is 01 that will be 01, if 011 it will be 001, if 0111 will be 0001, 01111 will be 00001 So after converting...
while trying to use "#define enl '\n'" in usersnippet we can use `\\` instead of `\` to escape the `\` that is causing to print a newline. Thanks to @Holo for the Help :) .
{"Voters":[{"Id":6243352,"DisplayName":"ggorlen"},{"Id":3689450,"DisplayName":"VLAZ"},{"Id":9214357,"DisplayName":"Zephyr"}],"SiteSpecificCloseReasonIds":[13]}
I am trying to host a nextjs website on iis here is my set up . 1. Website with web.config hosted under default site [![enter image description here][1]][1] 2. Contents of web.config which causes nextjs site . On access of http://localhost/AppWithNode1/SimpleErrorView it should redirect to the nextjs site. ...
IIS web site with httpplatformhandler on specific route does not redirect to the nextjs site
|next.js|iis|httpplatformhandler|
Not showing the widget wrapped with Obx in Android 14
|flutter|mobile|release|flutter-getx|android-14|
``` x = c(1, 2, 2, 3, 3, 3, 4, 4, 5) x.tab = table(x) plot(x.tab, xlim = c(0, 10), xaxp=c(0, 10, 10)) ``` (Unfortunately, I do not have enough reputation to post image, but received image has only tick marks 1 to 5, instead of intended 0 to 10) Why does R just ignoring xaxp? I understand that I could factor x...
how to set the width and height of an ui.image in nicegui?
|nicegui|
In the below code: package main import ( "errors" "fmt" "math" ) func area(r float64, shapeConstant float64, result *float64) error { if r <= 0 { return errors.New("r must be positive") } *result = shapeConstant * r * r return nil }...
There is a code in which there are several classes: `Injector `is the main class in which calculations are performed, `CentrifugalInjector `and `ScrewInjector` are classes in which calculations also take place, these values obtained in these classes must be placed in the `Injector `class in the function `equivalent_geo...
How to pass the value of a function of one class to a function of another with the @property decorator
|python|python-3.x|oop|debugging|
null
Pure bit operations: ceil: shift 1 left, current: unchanged, floor: shift 1 right, then clear the lo-bits: static int Pow2Ceil(int value) => ((value << 1) & ~(int)(uint.MaxValue >> BitOperations.LeadingZeroCount((uint)value))); static int Pow2Current(int value) => (value & ~(int)(uint.MaxValue >> (BitO...
Pure bit operations: ceil: shift 1 left, current: unchanged, floor: shift 1 right, then clear the lo-bits: static int Pow2Ceil(int value) => ((value << 1) & ~(int)(uint.MaxValue >> BitOperations.LeadingZeroCount((uint)value))); static int Pow2Current(int value) => (value & ~(int)(uint.MaxValue >> (Bi...
Bug description:- Some webpages of the website are not working in Android but on the other side in iOS all webpages of the website are Working. To Reproduce:- website version:- 1.0, webView version:- 11.26.0 ``` package.json:- { "name": "endlesstalesAndroid", "version": "0.0.1", "private": true, "scripts":...
To clarify - the `connect timeout` is the number of seconds Requests will wait for your client to establish a connection to a remote machine. This should be slightly larger than a multiple of `3`, which is the default TCP packet retransmission window. Once your client has connected to the server and sent the HTTP r...
Hi I need help with this project to school. Everything is woriking but part where I ask in terminal what was number it always print it was't that number. ``` import tkinter import random canvas = tkinter.Canvas(width=800, height=400) canvas.pack() number = canvas.create_text(400, 200, text=random.randint(10...
I have the same error just now while importing scanpy library into my googlecolab environment. I did !pip install scanpy. The package was successfully installed and I was able to import scanpy library. I hope it worked for whoever encountered the same problem.
I had the same issue and had to update the iOS target in Xcode -> Click on Runner in left panel -> General -> Deployment Info
What package are suitable for it ? I do know that the showDailyAtTime was removed from flutter_local_notifcations long time ago, is there an alternative to it ? and how do i use it ? a simple code would be so helpful ! I tried to make it happens with multiple packages (cron, flutter_local_notifications, awesome_...
Flutter : How can i make a notifcation that would pop-up every 5 minutes from a given time?
|flutter|notifications|
null
In Laravel, I'm performing a JSON map where I need to transform a JSON to a different schema. To do that I'm following these steps: 1. Dot the array with Arr::dot helper. This way I have this result, example: ```php array(11) { ["0.identificador"]=> int(1) ["0.nome_completo"]=> string(8) "John Doe" ...
The following solution "melts" the data from wide to long format, using the Family as the id column against which to melt. Then, sorting the data table by the sample name and the counts in descending order (which will order the Family with the largest count at the start of each group). Grouping the data table b...
So I have created a simulation of the orbits of Venus, Earth, Mars and Jupiter around the Sun using turtle in Python. Below is my code: ``` import math import matplotlib.pyplot as plt import turtle from turtle import * ... def loop(bodies, earth): timestep = 3600 * 24 * 7 step = 1 earth_years = -1 ...
I need to use the "moment-timezone" library in my appscript. Can someone help me find it. I could find the scriptId for "moment" library but it doesn't include timezone information. Thanks in advance.
ScriptId for moment-timezone project?
|moment-timezone|
You can avoid the join if you mutate after the group_by instead of summarize. library(tidyverse) Original <- data.frame(A = 1:100,B = sample(LETTERS,100,replace = TRUE),C = rnorm(100)) # Calculate unfiltered summary statistic, as in OP Aggregate_OP <- Original %>% group_by(B) %>% ...
This worked for me with Open API 3.0 and API Gateway, CDK Typescript: ``` const model = props.rootApi.dataApi.addModel(`${props.appEnv}-name-${props.apiVersion}`, { contentType: 'application/json', modelName: `ItemResponseModel${props.apiVersion}`, schema: { ...
R is ignoring xaxp while plotting data.table
|r|plot|data.table|