instruction stringlengths 0 30k ⌀ |
|---|
null |
substirng always work from left to right. substring 3 argument shouldnt be -ve.here CHARINDEX(' ', PostCode ) -1 resulting -ve value.so hanndle with case statement.
case when CHARINDEX(' ', PostCode ) > 1
then NULL
else SUBSTRING(PostCode, 1 , CHARINDEX(' ', PostCode ) -1) |
I’ve replaced the default button function, thus I’m adding a new one. Trying to create a custom 50px circle “add to cart” button (fa-solid fa-cart-shopping icon, #F5F5F5 background, 5px padding) using Elementor, WooCommerce, Hello theme. Bottom left corner of product image with 10px margins. Any advice?
[Visual exam... |
|html|css|user-interface|button|woocommerce| |
{"Voters":[{"Id":6910868,"DisplayName":"Maxim Masiutin"},{"Id":1940850,"DisplayName":"karel"},{"Id":354577,"DisplayName":"Chris"}],"SiteSpecificCloseReasonIds":[13]} |
I am currently facing this issue as well,
but I bypassed this issue by replacing
`#define bsimbulknumStates 0` with `#define bsimbulknumStates false`
I don't know, is it a good option or not.
Anyone guide us why we are getting this error
```
In file included from bsimbulk.c:8:
bsimbulkdefs.h:12976:27: e... |
See example. Recursive assembling expression formula from expression_tree table.
```
with -- recursive -- for PostgreSql
triple as(
select expression_id,oid
,concat(
case when lv in('*','+','-','/') then concat('{',lid,'}')
else cast(lv as varchar) end
,ov
,case when rv in('*',... |
|python|node.js|hyperlink|download| |
The way you are using `.matchedGeometryEffect` is to perform a *transition* between two images with different sizes and different aspect ratios. Due to the different aspect ratios, it is noticeable how one image fades out while the other fades in.
To avoid the fade-out/fade-in, you could try using a single image whi... |
|excel|vba|excel-tables|listobject| |
{"Voters":[{"Id":2494723,"DisplayName":"JohnSmith"},{"Id":7644018,"DisplayName":"Paul T."},{"Id":603316,"DisplayName":"Peter"}],"SiteSpecificCloseReasonIds":[11]} |
In Woocommerce, does anyone know a way to Remove the Add To Cart button when On Backorder is selected in Inventory, and still keep the On Backorder text on the front end? This would be site wide?
Thank you!
Tried to work this out with:
add_action('woocommerce_single_product_summary', 'check_if_backordered', 1 ... |
Woocommerce - how to remove add to cart just for On Backorder stock status |
|woocommerce| |
null |
I updated your code.
```
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
padding: 5px 0;
background-color: #ffffff;
}
h1 {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 50px;
color: #ffffff;
text-align: ce... |
You expect that since you passed to correct enum value that only the case that matters is called, and you are correct in that, the issue is that if the enum value does not match the correct case, then you are calling the wrong function. Since none of this checking is done at compile time the compiler is forced to chec... |
|excel|vba|excel-tables|listobject| |
When i run ./gradlew genEclipseRuns it fails to build and i get the error
```
PS C:\Users\camer\Desktop\MinecraftCoding\MinecraftJava> ./gradlew genEclipseRuns
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.4/userguid... |
Simply changing;
```
glVertexAttribPointer(0, verts.shape[-1], GL_FLOAT, False, 0, 0)
glVertexAttribPointer(0, colors.shape[-1], GL_FLOAT, False, 0, 0)
```
to:
```
glVertexAttribPointer(0, verts.shape[-1], GL_FLOAT, False, 0, None)
glVertexAttribPointer(0, colors.shape[-1], GL_FLOAT, False, 0, None)
```
solve... |
1. Edit the order, change status to "pending payment" status, click "Update".
2. To delete an item, look for the small x icon, with a tooltip "delete item".
3. To add an item, click "Add Item".
4. Click Update.
5. Change the status back to "completed", click "Update".
|
Time usage saved from a process is not properly stored/shown |
I am trying to make the functionality of uploading images to MongoDB using GridFS. I am getting the error please have a look
**Complete Error:**
```
[nodemon] restarting due to changes...
[nodemon] starting `node server.js`
K:\Development\MindFuel\Backend\node_modules\multer-gridfs-storage\lib\gridfs.js:71
... |
ı want to create step by step form but ı cant make it ı have been strugling about 2 weeks. Fİrst of
ı want to creat screen like in the left.
I will bring a different form to the screen according to the option selected at first. a Page with dropdownbutton and form states not only string values some of them are maps l... |
There is a lot of text printed on the terminal window from my C# code, some text is printed by an other app that I ran through C# `System.Diagnostics` (without `RedirectStandardOutput` neither I wanna use that `async` thing) and it printed it's own text and some text is printed by C# `Console.WriteLine` function.
I ... |
How to export CMD output to a text file in C# after all the text printing on the CMD window is done? |
|c#|.net|.net-core|cmd|terminal| |
null |
useEffect(() => {
flatlistRef.current?.scrollToIndex({
index: index,
animated: true,
viewPosition,
})
} , [index])
useEffect(()=>{
setIndex(0)
setLastIndex(selectedItem?.questions?.length - 1);
setViewPosition(0.5)
}, [selectedItem... |
I have faced with such issue i am opening project that placed in my desktop (mac 14 pro m3 pro) I can see the folder where is my script:
[enter image description here](https://i.stack.imgur.com/pHR10.png)
After running and stoping the script (i am getting some error) The folder is disappear :
[enter image descriptio... |
I'm making an app with the Qt framework using Qt Creator and CMake (not qmake, because I want the full project to be buildable from other IDEs, but that's not relevant for this topic). In this project, I need the pffft library which is a compact and convenient alternative of fftw. This library has a .h header, and a .c... |
|kubernetes|kubernetes-helm|minikube|gitops|fluxcd| |
> { "sales": [ [ { "id": "123" } ] ] }
Firstly, This case is about "indexing nested arrays". One minor observation is that the outer array does not have a key. Is it intentional ? If intentional, is there any chance of reviewing the schema. The following 2 points would provide more about it.
> { "sales": [ x: [ {... |
<!-- language-all: sh -->
> Why is PowerShell failing when redirecting the output?
The reason is that `python` (which underlies `html2text`) - like many other Windows CLIs (console applications) - modifies its output behavior based on whether the output target is a *console (terminal)* or is _redirected_:
* In... |
When decoding an array of structs encoded by gob I am getting the following error: `Error decoding inodes: gob: decoding into local type *[]filesystem.Inode, received remote type [120] = struct { IsValid bool; IsDirectory bool; Datablocks [4]int; Filecreated Time; Filemodified Time; Inodenumber int; }`
here is my Inod... |
Gob error when decoding: decoding into local type but received remote type |
|go| |
### Summary
There is a difference between `any` in type parameter and `any` in regular function parameter. Your case is the former one for generics. So you need to instantiate `T`(decide `T`'s concrete type) first when assigning it to the concrete variables
### In detail
[Type definition spec](https://tip.g... |
|node.js|mongodb|database-connection|gridfs|multer-gridfs-storage| |
I would suspect it might be something to do with `PATH` being different between the `cmd` and `ps` environments, so some more debugging might help.
With Command Prompt:
```
echo %PATH%
```
With PowerShell:
```
echo $env:PATH
``` |
```
// 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... |
This is the solidtiy code to list nft in marketplace after minting but while calling makeItem function Error is showing that Faliled to estimate gas |
|blockchain|solidity|smartcontracts|web3js|nft| |
null |
{"Voters":[{"Id":2413201,"DisplayName":"Armali"},{"Id":16217248,"DisplayName":"CPlus"},{"Id":10871073,"DisplayName":"Adrian Mole"}]} |
I am using the following command to create a configMap.
kubectl create configmap test --from-file=./application.properties --from-file=./mongo.properties --from-file=./logback.xml
Now, I have modified a value for a key from mongo.properties which I need to update in Kubernetes.
**Option 1:**
kubect... |
[sql.js](https://github.com/sql-js/sql.js/) is a sqlite client for javascript, based on the original sqlite compiled to WASM
limitation: the full database is stored in memory, so the database should be smaller than 100 MB.
ideally, sql.js should support IndexedDB as a storage backend, to reduce memory usage
s... |
In my case I added `ReactRefreshPlugin` and it worked
```javascript
const webpack = require('webpack');
const ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
// ...
config.plugins.push(
new ReactRefreshPlugin(),
new webpack.HotModuleReplacementPlugin(),
);
``` |
{"Voters":[{"Id":1377002,"DisplayName":"Andy"},{"Id":3986005,"DisplayName":"KIKO Software"},{"Id":1145388,"DisplayName":"Stephen Ostermiller"}]} |
Move this code out side of apply (`holder.binding.apply` ) or write else case for this `if (data.sessionStatus == Constants.COMPLETED)` put click listener code inside.
tvDownload.setOnClickListener {
listener.onClickInvoiceButton(position)
}
imgFavorite.setOn... |
I solved the problem by adding the flag '-static' into the g++ terminal command to remove the dependencies. |
I want to make an interactive component for changing the languages on my website, and storing that information in cookies to be able to access the right dictionary in my project. However I am having some issues since Next doesn't allow reactive hooks for server side components, which is needed for using cookies, and I ... |
How to communicate between a server side and client side component in Next.js |
|reactjs|typescript|next.js|server|client| |
null |
I have a couple of "magic"¹ floating point constants, which I want to use bit-exact in CUDA device side computation, in the form of `constexpr` symbols. On the host side you'd use `std::bit_cast<float>(0x........)` for that. However NVCC doesn't "like" `std::bit_cast` in device side code.
In GLSL you'd use `intBitsT... |
I'm trying to show a popup when a item is clicked. The .active class is added once the item is clicked but how do I add the popup container once the class is active?
I believe this is where I add a action to show the popup?
if ($(this).hasClass("active")) {
// Do something here i... |
How do I create a popup based on click? |
|php|wordpress|onclick| |
Forge 1.20.4 MDK fails when building gradle |
|gradle|minecraft-forge| |
null |
I am planning top use FCM with my react-native iOS / Android App. But I need to let my backend know that the user (or OS) kill the application. In the FCM documentation it is said that FCM will be shutdown.
I could not find a way to get a graceful AppState (or something else) notification of the impeding shutdown.... |
When using FCM, how to let my server know that the FCM service on the device is shutdown |
|android|ios|react-native|firebase-cloud-messaging| |
null |
I am trying to get the width of a child's component in my parent one in react:
import { FC, PropsWithChildren, useRef } from "react";
const MyParent: FC<PropsWithChildren> = (props) => {
const myref = useRef(null);
return (<MyChild ref={myref}/>)
}
const MyChild: FC<Props... |
|typescript|react-native| |
I recently started working with React native and Aws Amplify. Can anyone help me how i can customize the SignIn Screen without disturbing the backend flow of Amplify Version 6. I am trying to do custom Ui for SignIn screen but with the new Amplify v6 Hide defaults is not working and if i override the Authenticator co... |
How to modify the prebuilt UI of authentication in aws amplify version 6 in React Native |
|amazon-web-services|react-native|authentication|aws-amplify|authenticator| |
null |
I'm receiving an error when passing a file object using paramiko's putfo().
> AttributeError: 'bytes' object has no attribute 'read'
Here's what my putfo() looks like
```
ssh_client = paramiko.SSHClient()
ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_client.connect(hostname=host, ... |
Pycharm folder disappear |
|python|macos|pycharm| |
null |
I have a react web app. I installed GA tags using the npm package, `react-gtm-module`. I put the app up on [ngrok][1] and tested it in GA on preview mode. Everything worked great. The Google Analytics tag was detected.
Then I pushed the same code to production, and GA preview mode says, "Google Tag: GTM-##### not fo... |
|android|ios|flutter|flutter-dependencies| |
Idea: Parse the array in O(max(range, n)), and for each start-of-interval, count the number of already ended intervals. Whether or not to include single-point intersections as overlaps is a matter of switching two lines of code, so I added a parameter for this.
If range >> n then this is worthless, but if range ~ n ... |
I have two Classes: RemittanceClass and RemittanceStatus
Each remittanceStatus Related to one RemittanceClass and in RemittanceClass there is one CurrentStatus Navigation Property and list of HistoryStatuses Naviagtion Collection
(I use ABP framework By the way)
```
public class RemittanceClass : FullAuditedAg... |
I try three methods to get sum of floats. one method is pandas sum, another one is use for loop, the last one is using math.fsum. It looks like the last method get the right results. but the first and second method get different values.
```
import pandas as pd
import math
def main():
data = [61.1, 19.3, 15.7... |
Inputs need to be inside "form" with "onSubmit" prop |
{"OriginalQuestionIds":[588004],"Voters":[{"Id":4518341,"DisplayName":"wjandrea"},{"Id":235698,"DisplayName":"Mark Tolonen","BindingReason":{"GoldTagBadge":"python"}}]} |
I'm trying to learn to use gui in java using eclipse ide.
When I run this code
import javax.swing.JOptionPane;
public class GUI {
public static void main(String[] args) {
String name = JOptionPane.showInputDialog("Enter your name");
JOptionPane.showMessageDialog(null, "Hello "+name);
}
}
... |
GUI window is not appearing |
|java|eclipse|swing|user-interface| |
null |
Inputs need to be inside "<form>" with "onSubmit" prop |
Inputs need to be inside "form" with "onSubmit" prop |
{"Voters":[{"Id":7730933,"DisplayName":"Vetri vendhan"}]} |
https://nextjs.org/learn/dashboard-app/css-styling#global-styles
One step is missing: check out if you imported global styles in `app/layout.tsx` file |
I am implementing manual multiple login functionality. There are three types of users: Customer, Seller, and Admin. Currently, I am testing the Customer login; however, I am encountering an error. Despite reading the Laravel Documentation and consulting with ChatGPT, the error persists. Could someone help me resolve th... |
Troubleshooting authentication configuration for multiple-login in Laravel 10 |
{"Voters":[{"Id":5741073,"DisplayName":"TomServo"},{"Id":4902099,"DisplayName":"hcheung"},{"Id":1599751,"DisplayName":"PeterJ"}]} |
I could come up with the number of points within 500m buffer with following function, using library (geosphere), however I want to find number of points in 500m buffer with similar values under variables.
For example under variable Race: there are 3 values, white, hispanic, black and I want to find number of point wi... |
Opening modal through Update button with specified ID using ajax |
|ajax|symfony| |
null |
IIUC, you can use [tag:numpy] broadcasting to form a mask:
```
def find(g):
# get sub as 0,1,2…
sub = pd.factorize(g['sub'])[0]
# convert inputs to numpy
a = g['num_1'].to_numpy()
b = g.loc[~g['sub'].duplicated(), 'num_2'].to_numpy()
# form mask
# (a[:, None] > b) -> num_1 > num_2
... |
I've created a live quiz application using Node.js and socket.io over web sockets. Briefly, there's a specific time limit for each question, and I'm sending the countdown to the user with io.to(roomName).emit('countdown', countdown);, and the questions with io.to(roomName).emit('question', question); along with 4-5 oth... |