3,429 questions
Tooling
0
votes
1
replies
26
views
How does blockchain ensure data immutability without a central authority?
I’m trying to better understand how blockchain technology maintains data integrity and immutability in a decentralized environment.
From what I understand, blockchain uses a distributed ledger where ...
0
votes
0
answers
80
views
Woocommerce blocks checkout: add dynamic text under shipping methods
I'm trying to add a simple text line directly under the shipping methods list, e.g. "Add x € to your basket to receive free shipping!" This will be shown only when shipping country is Greece ...
0
votes
0
answers
81
views
How to convert bitcoin genesis hex string to ascii or utf-8 string?
Hex string is from https://github.com/bitcoin/bitcoin/blob/d30f149360d10de31bd7f7369aa61ce8be0837b5/src/kernel/chainparams.cpp#L75C5-L75C206
I have tried the following Python 3 code but it doesn't ...
1
vote
0
answers
52
views
Gutenberg block finished. I now want to build the production version
I love the Gutenberg documentation, but I think I am missing something. Now that I am finished, I want to test it in a production environment. The node_modules folder is huge. Am I supposed to delete ...
0
votes
0
answers
40
views
ldap_start_tls_sA hangs on second LDAP session during persistent search on Windows Server 2022/2019?
I'm using the LDAP C API (wldap32.dll) in a Delphi app on Windows Server 2022 (also reproducible on Server 2019).
The problem: The first instance of my class connects to Active Directory with ...
0
votes
0
answers
23
views
Blocking responses to iframes
I a currently researching the blockage of post request responses to a cross-origin iframe. My iframe currently sends out both a get and post request. The former is completed and brings the content of ...
1
vote
1
answer
111
views
The navigation animation and UI break after implementing page blocking for TabView on iOS 18
I need to prevent users from selecting a different tab in TabView. The solution using onChange no longer works on iOS 18.
Steps to reproduce:
Navigate from Home → Details → (UI works as expected)
...
0
votes
0
answers
120
views
Custom Gutenberg block doesn't appear
I just followed this tutoriel to build a plugin that add a custom block to Gutenberg: https://developer.wordpress.org/block-editor/getting-started/tutorial/
And it's work well.
But when i duplicate ...
2
votes
2
answers
115
views
Sequence color blocks inside ggplot2 plot area at specific coordinates
I have a simple line plot where I show a DNA sequence on the x-axis, done in the following way with ggplot2:
myseq <- "AGAATATTATACATTCATCT"
set.seed(123)
mydata <- data.frame(time=1:...
0
votes
1
answer
1k
views
Mermaid Block Diagram: Spanning Multiple Columns Within Group
I have the following Mermaid block diagram:
block-beta
columns 4
a:1
block:b:3
columns 3
c:1
d:1
e:1
f:3
end
g:4
h:4
style f stroke-...
2
votes
2
answers
240
views
Can't embed YouTube video
Just pasting the embed code inside an HTML Block, and getting a "cannot embed" error:
Paste a link to the content you want to display on your site: https://www.youtube.com/watch?v=h5R_SxV-...
2
votes
1
answer
150
views
Variable number of generic parameters
I have a set of some parameters of different types. And I want to do some operation with them. But only if at least of one them is not null.
My code is something like this:
fun <A, B, C, R> ...
2
votes
2
answers
77
views
numpy 2d array into block matrix
Given a 2x6 array like below
x = np.array([[0,1,2,3,4,5],[6,7,8,9,10,11]])
How do I convert this in to 6x6 matrix with block diagonal filled with above array
Input
output I am expecting
I got the ...
2
votes
4
answers
105
views
Why does this code result in a "Cannot store into ->" error message?
Executing this code in Pharo results in a Cannot store into -> error message?
[ :x |
x := x + 33.
x + 2] value: 5
Is this a logical consequence of Smalltalk's syntax, or is it a consequence of ...
0
votes
1
answer
22
views
Warning: fsockopen(): when creating a WordPress Block
I'm getting a Connection refused error like this Warning: fsockopen(): Unable to connect to db5....lan:3809 (Connection refused) in /home/org/public_html/wp-content/db.php on line 1083
It started ...
0
votes
1
answer
180
views
Drupal 10 block visibility only if content has a specific term
It's been 7 years that I don't use Drupal
I want the visibility of a block only if there is a specific term in a specific taxonomy (vocabulary)
So I go in and I can only choose the whole vocabulary
...
2
votes
0
answers
520
views
Pancake swap error while selling token with tax rate ( execution reverted: Pancake: K )
I got stucked at point, where i am selling tokens with tax rate on BSC chain.
I am working on crypto bot, and created it using ether.js and node.js. I am using Pancake swap for swapping tokens on BSC ...
3
votes
3
answers
104
views
Convert vector to matrix by blocks -reshape
just a quick question
I am struggling in R to convert a list of numbers to a matrix that has a fixed number of rows
and the numbers are placed in triplets (blocks of 3 rows) at a time
The elements are ...
0
votes
0
answers
22
views
postgresql sql developer display via RAISE NOTICE [duplicate]
I can see tables and can write a SQL query via sql developer (23.1) connected to a postgresql database.
I try to execute an anonymous block to display a variable in the output script :
DO $$
DECLARE
...
2
votes
1
answer
53
views
How to include a backtick in inline code in Markdown with no space at the end
I would like to have the following code block:
i`
Become an inline code with no spaces at the end
So for example, I can do this and it will work:
``i` ``
It produces:
i`
However, there is a ...
-1
votes
1
answer
168
views
How to select closed 2d polylines that don't have an specific block inside Autocad
I need a lisp routine to check the polygons (closed polylines) and verify if there's a block (selected by user) inside. After that, highlight the empty polygons, something like this picture.
Autocad
...
0
votes
1
answer
141
views
Lifetime break out from block? [duplicate]
struct container<'x> {
value: &'x i32,
}
impl<'x> container<'x> {
fn f(&'x mut self) {}
}
fn main() {
let v = 1;
let mut a = container{value: &v}; // 'a-...
0
votes
1
answer
76
views
How to create additional options for a specific block
I created a plugin that has a Gutenberg block created with React, my block consists of the following files (edit.js, save.js, index.js, block.json, style.scss, editor.scss). This plugin has many ...
0
votes
1
answer
69
views
How can i display this.state value in save.js?
i'm new to react and wanna ask how i can display this.state values in my wordpress frontend? (save.js)
edit.js:
import apiFetch from '@wordpress/api-fetch';
const { Component } = wp.element;
const { ...
0
votes
1
answer
240
views
Can images be blocked from being pushed to Harbor based on the number of artifacts for that image?
I see some teams push an unnecessary number of image artifacts (revisions/tags) to a harbor repository. I understand that there may be some rules that can be applied that prune artifacts but I do not ...
0
votes
1
answer
338
views
Codesys question about using a Ladder function block into a SFC (doesn't work properly)
I have a function block made in Ladder which I want to use in SFC, but I can't get it work properly. I hope someone knows the solution here.
This is my devices tree:
I have the following function ...
2
votes
2
answers
2k
views
Minecraft fabric overriding existing blocks 1.20
I have been trying to find a way online to find any way to modify existing blocks in minecraft fabric and there properties, and yet all I could find was how to create new blocks.
Any that I do find a ...
1
vote
0
answers
256
views
Blocking certain domains from php mailer process script or form
I keep getting blasted with emails from certain domains or domain extensions. I would like to add a function to mitigate these emails. If somebody could help me with either adding a function to block ...
0
votes
1
answer
85
views
Not able receive block level events in hyperledger fabric golang
I was trying to listen block level events in Golang. I am not able to receive blocklevel events at all. It is just showing block 0 always and not moving ahead. I have given the sample code. Please let ...
-2
votes
1
answer
92
views
Switching block PNGs in PyGame [duplicate]
I am creating a 2D minecraft clone in Pygame and everything is going well so far. I am stuck on how to switch the block's picture so that it places a different block. The variable in which the PNG is ...
0
votes
1
answer
532
views
Gutenberg Block, Change supports with controls
I'm working on my plugin but I'm stuck with block supports. I need to change supports of block with inspector controls. It's like attributes. However, I have not seen anywhere that the supports ...
0
votes
1
answer
601
views
Gutenberg Block, getMedia() is undefined
I'm trying to get the featured image of selected post, but I'm getting undefined when I try this:
const media = select('core').getMedia( FEATURED_IMAGE_ID );
console.log(media);
It turns to undefined ...
0
votes
1
answer
105
views
What code do I add to a .js file to define "start", to fix the Invalid Block Definition?
I'm new to Blockly. To learn how to create a Custom Block, I used https://developers.google.com/blockly/guides/configure/web/toolbox#json. I copied portions of this text to an HTML file:
'''
<body&...
-1
votes
1
answer
121
views
Android whastapp call to reject or not
Android/Java: I'm trying to block WhatsApp calls but I'm not being able to do it. Does anyone have a way to intercept the WhatsApp call? I would only need to obtain the number and the call button, to ...
0
votes
0
answers
56
views
Div block & none
i have two div which have have the property display none and block
and these div has input fields if we put data in input fields in one
of the div and obviously the other div is display none but the ...
1
vote
1
answer
114
views
How do I locate and block a Javascript function?
A website that I'm using has an annoying pop-up that randomly appears on the screen every x minutes. Inside the Chrome developer tool bar using the 'break on subtree modifications' option, I can see ...
0
votes
4
answers
102
views
Why does an empty child element with display: inline-block create space in its parent element?
Here is a parent element which has a child, the parent element does not have any width or height property
but the child has 100% percent width and height and display: inline-block .
HTML and CSS
<!...
0
votes
1
answer
166
views
Terrraform nested dynamic blocks with condition
I'm trying to create Azure Application Gateway using following resource:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/application_gateway
The locals are build from ...
2
votes
1
answer
57
views
How block works in UIMA Ruta
I've tried to mark the W (Basic Annotation) with and without block logic. Outputs were same. But without BLOCK logic take less time compared to with BLOCK logic. Could any one explain in detail why ...
1
vote
2
answers
604
views
CloudFlare WAF Custom Rule Issue
I am using the CloudFlare WAF Custom Rule:
(ip.geoip.country ne "US")
with action set to Block.
This works great on the first domain I set it up on but doesn't work on any other domain. All ...
1
vote
1
answer
337
views
How to define unequal allocation of groups in blockrand() in R
I want to design a randomized clinical trial using R v.4.0.3 and blockrand package.
The following is my code:
library(blockrand)
library(writexl)
library(openxlsx)
set.seed(101)
Mos1<-blockrand(n=...
-3
votes
1
answer
278
views
Can I set the start block number while creating a datasource template in Subgraph?
https://thegraph.com/docs/en/developing/creating-a-subgraph/#data-source-templates
The Graph supports starting a dynamically instantiated data source from a block earlier than the current block?
The ...
0
votes
1
answer
946
views
How can I embed React Apps in WordPress blocks for rendering for end users?
I want to embed my React app in a WordPress Block and provide this app for end users. My expectation is that I can put my app in view.js, but I cannot get view.js content to render. I can run React ...
0
votes
1
answer
332
views
Cannot save attributes and render on page custom block
A new custom block I created, it is visible in the block list and renders correctly on the edit page, but when saved, it is not rendered on the home page.
functions.php
<?php
require 'inc/autoload....
0
votes
2
answers
777
views
INSERT Block and Dynamically used content access in DXF with ezdxf
I want to make a table in python like the COUNT LIST command used in the drawing. I'm pulling the number of blocks used in the drawing, but I can't pull the number of dynamic blocks. What I want to do ...
0
votes
1
answer
133
views
how do you block access to my site from any IP address other than mine
I have a staging site I do not want anyone to view except for me. I thought I had it blocked, but I found the staging site live while searching. I want to block all IPs except my IP from seeing the ...
0
votes
1
answer
86
views
how does buf retain data in the next iteration although we are re-declaring it every time?
"Buf" should destroy after line #28, as it is local to if block and we are re-declaring then it may have some different values or at least a different memory address when re-declared.
I ...
0
votes
1
answer
68
views
How to check if a customer's visit overlaps a one hour time block
Our restaurant has 20 tables. We want to understand how many maximum tables have customers at any give hour. We want to allocate the staff accordingly, find out our busiest hours, etc.
Customers can ...
1
vote
1
answer
723
views
IBM Cognos 11...Using Conditional Block with variable to select a Date Selector Type in a drop down on a prompt page
I have the Prompt page working in Page Design, I have a Block variable and a "Current Block" setting for each of 3 selection possibilities, if the customer wants to only select entire Fiscal ...
0
votes
1
answer
575
views
Move Javascript const from block scope to global
I have a file I am including in my html files containing constants for my Javascript code. I also want to ensure that the constants are not redefined - a syntax error occurs if you try. If it was PHP ...