Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
20 views

Block access when urn contains parameter ?n_items= [closed]

the last 10 days my site accepts too many requests per day (18.000+) from different ips (one request per ip) with get command and parameter ?n_items= . I want to block all these requests that contain ...
grvoice's user avatar
2 votes
2 answers
64 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:...
DaniCee's user avatar
  • 3,087
0 votes
1 answer
47 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-...
Patrick Bucher's user avatar
-1 votes
0 answers
31 views

Blocking banned client IPs from writing to apache access log, while behind CloudFlare

This site is behind CloudFlare and gets hit by many bots, I identify them and count requests by a PHP script, check their IPs, hostname, reverse hostname (to validate GoogleBot and others) etc. But ...
adrianTNT's user avatar
  • 3,990
2 votes
2 answers
89 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-...
Kamal Kumar's user avatar
1 vote
1 answer
71 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> ...
kolarto4's user avatar
2 votes
2 answers
45 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 ...
XYZ's user avatar
  • 383
2 votes
3 answers
68 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 ...
vfclists's user avatar
  • 20k
0 votes
1 answer
12 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 ...
ecairol's user avatar
  • 6,493
0 votes
2 answers
61 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 ...
Antonio Gargiulo's user avatar
1 vote
0 answers
149 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 ...
Devgan Tarun's user avatar
3 votes
3 answers
85 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 ...
chriliv's user avatar
  • 33
0 votes
0 answers
18 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 ...
Christian Soutou's user avatar
2 votes
1 answer
25 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 ...
Nick Revenco's user avatar
-1 votes
1 answer
77 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 ...
Kevin. Perez's user avatar
0 votes
1 answer
77 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-...
Wilson Luniz's user avatar
0 votes
1 answer
33 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 ...
Denis's user avatar
  • 13
0 votes
1 answer
31 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 { ...
pennylane's user avatar
  • 189
0 votes
1 answer
33 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 ...
SteveFishHuntCode's user avatar
0 votes
1 answer
102 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 ...
Laurens's user avatar
3 votes
1 answer
641 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 ...
Vladimir Dergachev's user avatar
1 vote
0 answers
102 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 ...
ManWithAPlan's user avatar
0 votes
1 answer
53 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 ...
user915170's user avatar
-2 votes
1 answer
66 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 ...
Pythonista's user avatar
0 votes
1 answer
298 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 ...
kront's user avatar
  • 43
0 votes
1 answer
284 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 ...
kront's user avatar
  • 43
0 votes
1 answer
61 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&...
ttom's user avatar
  • 1,065
-1 votes
1 answer
89 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 ...
licannus's user avatar
0 votes
1 answer
39 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 ...
Muhammad Danial's user avatar
1 vote
1 answer
84 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 ...
Will's user avatar
  • 23
0 votes
4 answers
80 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 <!...
radman's user avatar
  • 23
0 votes
1 answer
112 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 ...
andre's user avatar
  • 1
2 votes
1 answer
35 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 ...
prasanth's user avatar
  • 281
1 vote
2 answers
268 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 ...
Ping's user avatar
  • 289
1 vote
1 answer
152 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=...
Oscar's user avatar
  • 79
-3 votes
1 answer
169 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 ...
dolchain's user avatar
0 votes
1 answer
580 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 ...
Bruce's user avatar
  • 53
0 votes
1 answer
216 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....
Tsume's user avatar
  • 1
0 votes
2 answers
381 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 ...
Mehmet Kaplan's user avatar
0 votes
1 answer
122 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 ...
David Beeson's user avatar
0 votes
1 answer
71 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 ...
Ankit's user avatar
  • 3
0 votes
1 answer
53 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 ...
Abeworld's user avatar
1 vote
1 answer
398 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 ...
WendellFry's user avatar
0 votes
1 answer
345 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 ...
CraigW's user avatar
  • 23
0 votes
1 answer
283 views

Block store not storing data on Android 13

I have added storing and fetching data from Block store in a sample activity. When I call the method to store the data, and then afterwards read it the code works perfectly on all devices. However ...
Djuro Gluvajic's user avatar
0 votes
1 answer
33 views

Add a link next to the heading of a block

drupal block heading I'm trying to add a link next to the heading of this block by clicking it will goes to more news. I've used css pseudo ::after to add text and a logo. But I couldn't add a link to ...
tharinduka's user avatar
0 votes
1 answer
157 views

Vexriscv - implement ram as block ram

How can I generate a Vexriscv core in a way that the generated ram is a vendor specific block ram (e.g. Intel/Altera or Xilinx)? I tried it by using the black boxing possibility (see https://spinalhdl....
joda's user avatar
  • 395
0 votes
1 answer
435 views

Overwrite "single-product" block template in WooCommerce for some products only

I have a couple of products, I need to render another block template than single-product.html, i.e. single-product-custom.html. The problem is, that there doesn't seem to be a similar logic to select ...
Adrian's user avatar
  • 2,338
0 votes
1 answer
197 views

How to copy block definition in autocad?

I need to copy block definition (not block reference) and set to copy other name in autocad 2022 within one drawing. How can I do that?
graveman's user avatar
  • 131
2 votes
0 answers
173 views

Wordpress 6 - Retrieve Plugin setting inside a Block Editor

I am developing a wordpress plugin, in which I need to store an API key in the settings page of the plugin itself and then use the api key to perform request inside a block editor. In the PHP file I ...
giuseppebrb's user avatar

1
2 3 4 5
69