Questions tagged [block]
DO NOT USE This tag is scheduled for removal because it can refer to many different things depending on the use of other tags with it.
3,603
questions
-3
votes
0
answers
13
views
freedns blocks an account, administrator ignores emails [closed]
I had a free account on the freedns service for about a year. Everything was fine, the user of the service was active, there were enough free features.
Suddenly I get a block on May 5th. I'm emailing ...
0
votes
0
answers
22
views
How to use proxy with vpn (android)
How to use custom http proxy
While isp block using it
how to bypass.. I used vpn but not working.. Can you tell me proper way
I need method to run proxy and vpn same time.. And use proxy over vpn
-1
votes
1
answer
25
views
Account vs Block in Blockchain Solana
What is the difference between an Account and a Block in Solana Blockchain technology?
As per solana docs,
Block: A contiguous set of entries on the ledger covered by a vote. A leader produces at most ...
0
votes
0
answers
46
views
Accessing Nested Attributes in a WordPress Gutenberg block via PHP
I have a working WordPress Gutenberg Block project which uses nested blocks. I'm trying to rewrite the javascript save function in PHP to create a dynamic block.
I've modified the PHP file to include ...
0
votes
1
answer
18
views
Slack API: how to get state of all input/action elements at once upon submit
I'm trying to build rich, interactive Slack messages. Example: message with date picker, set of checkboxes and a long text. Upon submit (if modal) or push of an action button, I'd like to receive the ...
0
votes
0
answers
15
views
Snort is not dropping the traffic or blocking the website
I used this snort rule to block a website but it is not blocking the website. I already made the mode inline but still it is not working. Can anyone help me in this regard?? It would be really helpful ...
0
votes
1
answer
27
views
What is deference between local plugin and block plugin in Moodle?
I have to make a page to manage a series of videos in a Moodle system, but I am wondering that if I use block plugin or local plugin for managing videos; or
may be basically I should use block to ...
0
votes
0
answers
35
views
There is some way to block ads in a flutter webview?
I've made a an app thats stream a video by an URL,using a webview
there is anyway to block ads on webview while video is playing?
0
votes
2
answers
35
views
Python Tweepy block user returns 401 Unauthorized
I am trying to block a Twitter user using Python scripting and the Tweepy API. I am able to extract users, IDs, followers and tweets with no problem. When I try to call api.create_block(screen_name = '...
0
votes
0
answers
15
views
How does the block protection system work in Proof-of-Stake?
Let's say we have a block that contains a signature.
Example:
Block {
Id,
Transactions,
PreviousHash,
Hash,
Signature,
Validator
}
The block was signed by the validator. What ...
1
vote
0
answers
37
views
Why finally block does not execute? [duplicate]
When I run this code, finally block does not execute. If I change System.out to System.err in try block, it works. Or when I change out to err in finally block it works. What is the reason?
Thanks in ...
0
votes
0
answers
28
views
how can I use gpucoder.stencilKernel function for a 3D image (colored image) in Matlab?
I have to divide each image to separate blocks and then apply a function on each block in Matlab. In CPU, I used blokproc function for block processing of image. But it takes too time. So I have to ...
0
votes
0
answers
22
views
Python : threading.Thread block
import pymysql
from multiprocessing.pool import ThreadPool
def process(item):
host = str(item).strip()
db = None
try:
db = pymysql.connect(host=host, user='root', passwd='root', ...
0
votes
0
answers
28
views
java main block on sun.usagetracker.UsageTrackerClient.registerUsage
my java app sametimes will block on this stack serveral minite,who known why
it is not necessarily
java version: 8u_152(b16)
"main" #1 prio=5 os_prio=0 tid=0x00007efcec027800 nid=0x2bbda ...
0
votes
1
answer
24
views
Add attributes to named blocks in mako templates
For a meta tag like:
<meta name="description" content="Sample Content">
I want to write a similar named block in mako template. I know the basic template format:
<%block ...
0
votes
0
answers
17
views
Why doesn't the array keep its values outside of forEach block? [duplicate]
Note: Inside forEach block the UserInfo array contains a value
const UsersInfo = []
// product.users it's array
product.users.forEach(async(u)=> {
console.log(u.userID)...
0
votes
0
answers
25
views
Scanf reads data entered while waiting for recv
While the server or client is waiting on recv() the user can input (any) N amount of data that will later be scanned by scanf which will cause the other socket to prompt the user for "Message: &...
0
votes
0
answers
46
views
Frontrun Bot for the Binance Smart Chain
I've built a frontrun bot for BSC, but I am really disappointed with the result..
Sometimes the bot works, sometimes it doesnt.
Example:
Transaction is pending (5gwei) (Block 1000)
My Bot will send ...
0
votes
0
answers
31
views
Why is Nginx Ignoring my Regex Location Rules?
Explanation
With the simple Nginx config below, I am getting asked for Basic auth credentials at all endpoints including /graphql/ and /wp-content/, even though I have asked Nginx to specifically turn ...
0
votes
0
answers
15
views
Apache Server SNI field Change implementation
i'm not good English
hello
Block sites through SNI filtering in Korea.
(HTTPS site block)
I can't tell Korean customers to use vpn.
server status
1 IP and 1 site exist
Apache,php in use
My ...
0
votes
1
answer
35
views
Java Syntax that executes Block statements through conditional expressions
Are there any Java Syntax that executes Block statements through conditional expressions other than:
if
while
do/while
switch
for
foreach
try/catch
?
0
votes
1
answer
23
views
Cannot get/post data in Firefox
I use following code to post data to database
router.post('/insert',async(req,res)=>{
const data =new model({
name: 'GLX SHAHIN 3',//req.body.name,
price: 7100000,//req.body.price,
...
0
votes
2
answers
58
views
Variable number of inputs and outputs in Python Block?
I am building a GNURadio block in Python that has a variable number of input, So I can change the number of input in each simulation.
I use self.k=k to get the number of input as:
def __init__(self, ...
0
votes
0
answers
52
views
How to disable a block in grapesjs?
I have a custom block and I need to disable it from being dragged and dropped after it has been used once.I came across only the option to disable a block entirely when it is first added.I am looking ...
0
votes
2
answers
36
views
Apache: .htaccess vs vhost conf file for blocking URLs
I need to block some uld URLs that are generating a lot of traffic in my web server (Apache). For example to block all the requests like https://example.com/xxxxxx/
I Can't do that with IPtables so I ...
0
votes
1
answer
91
views
Gutenberg - add full width background on a nested wide width group
I'm trying to add a full-width background on a wide-width group in Gutenberg.
Steps I made :
create a full-width group with my background color
create a group inside my full-width group
Issue : I ...
0
votes
3
answers
222
views
The way to properly do multiple CUDA block synchronization
I like to do CUDA synchronization for multiple blocks. It is not for each block where __syncthreads() can easily handle it.
I saw there are exiting discussions on this topic, for example cuda block ...
3
votes
1
answer
112
views
Case insensitive without importing modules. I need the original output and not the lower ones
this is my code:
x = ["Hello","Nice","WELCOME"]
y = "HELLO"
app x y = filter (isInfixOf (map to Lower y)) (map (map toLower) x)
Output:
app x y -> ["...
0
votes
0
answers
13
views
Larger block size address parsing- CS excercise example
I'm currently trying to solve a problem/excercise in my computer science class which goes as follows:
A cache memory has 32 blocks and there are 8 bytes/block. Given the following 32-bit addresses ...
0
votes
0
answers
15
views
Change transaltion of Wordpress Post Format name
I wish to change the translation of a post format's name. The original post format name is "Gallery". The translation is "Galleria" which I need to change into something else.
...
0
votes
1
answer
33
views
conditional block display with TBS in DOCX tables
I am processing DOCX files for invoices with TBS. A first TBS block contains all the taxable items, one per line, followed by lines for subtotal and tax. A second TBS block contains all the non-...
-1
votes
3
answers
46
views
SQL nesting BEGIN END Blocks gives SQL Error (102) [closed]
I'm getting the following error for this simple piece of SQL code. Any ideas why? Any BEGIN ... END block causes this error to occur
/* SQL Error (156): Incorrect syntax near the keyword 'END'. */
...
2
votes
0
answers
296
views
Gstreamer leaky queue stops the pipeline
The following code get in inputs a list of url and it create a Gstreamer pipeline. Specifically, for each url, a uridecodebin element is initialized and attached to a queue element. Each queue has the ...
1
vote
1
answer
44
views
Optional Parameters with blocks?
# multi_map
# Write a method multi_map that accepts an array, an optional number (n), and a block as arguments.
# The method should return a new array where each element of the original array is ...
0
votes
1
answer
83
views
python json to csv Reading line by line is slow
I have a large JSON file about tens of GB, I adopted reading the file line by line, but it is slow to write about 10M for 1 minute.
help me to modify the code
this is my code
import pandas as pd
...
0
votes
2
answers
175
views
How to get all the Transactions from a block in NEAR protocol using a single call?
I want to fetch all the transaction from a block using the single rpc call.
I know we can fetch using the chunk id but in that case we have to make a call for each chunk.
0
votes
0
answers
88
views
How to set the location of the port with code?
In the description of Matlab help:
Flexible port placement in Simulink Editor lets you move ports by clicking and dragging the port along the block icon outline, and this way you can put ports on any ...
0
votes
0
answers
23
views
How to encapsulate custom parameters in block mask?
I have customized a physical module block. The internal code of this block runs to generate a matrix. I want to use this matrix as a parameter of the block, then external programs or modules can get ...
0
votes
0
answers
7
views
How to add custom fields for offline payment method(Purchase order) from admin side?
how to add custom fields for offline payment method(Purchase order) from backend admin side
below the image Please help me on this issues.
How to add another one textbox field?
0
votes
1
answer
20
views
How can I block apache2 root path to a proxy? is it even possible?
So I am hosting an icecast server and I want to proxy ssl termination to icecast using apache2.
I was using an nginx proxy to icecast which was perfect but there were some complications with nginx and ...
0
votes
1
answer
34
views
Can I have my application use my own implementation of a class instead of the class from a external jar
I have a situation where a external jar is loading a class which has a static block to initialise some configurations , i want to stop that happening . the only way i see is to extract that jar and ...
0
votes
1
answer
424
views
How to block Bluetooth File Transfer on Windows
So I want to block file transfer on windows device. Solution should do following things:
Block bluetooth file transfer via all bluetooth transfer apps
Not block other devices like: headphones, mouse, ...
-1
votes
2
answers
234
views
Docosaurus: How can you hide Copy button next to the code example?
I want to do the opposite from https://gist.github.com/yangshun/55db997ed0f8f4e6527571fc3bee4675.
Can I somehow hide the Copy button from individual Code block (https://docusaurus.io/docs/markdown-...
-1
votes
1
answer
51
views
How to read a block of pattern file?
I have some pattern files that I like to read just a few parts of them.
Exemple: text.txt
Recipe:
'name'
Ingredients:
Item 1
Item 2
Item N...
How to prepare:
Item 1
Item 2
Item N...
I'd like to ...
2
votes
1
answer
41
views
SysML UML Block definition diagram how to hide attributes and operations
I am trying to draw some bdd in my papyrus. I want to hide the attributes and operations. But I couldn't find how to do it. Does anyone know how to combine them as a simple block or hide the ...
0
votes
0
answers
46
views
How to each heading level in title block using layout builder
In drupal 8, how we can create custom design styles for each heading level in title block, assigning custom fonts, text sizes and font styles to H1, H2, H3, H4, H5 and H6 independently. This makes ...
0
votes
0
answers
36
views
Updating last block inserted attributes in AutoCAD using Python
I would like update the attributes of last inserted block in Autocad using Python but I don't know how to do this... Iterate drawing objects doesn't let me to resolve the problem if I'm not able to ...
0
votes
1
answer
21
views
gutenberg blockListBlock filter block control renders multiple times
I have no clue why Gutenberg render my added BlockControl 3 times, and also to other components, that are not 'core/paragraph'.
My code:
const filter_text_highlight_color = createHigherOrderComponent( ...
1
vote
0
answers
8
views
Holding an MDL read lock will block the MDL write lock fetch, and after the MDL write lock fetch blocks, it will also block the MDL read lock fetch
Front
MySQL version: 5.7.36
transaction_isolation: REPEATABLE-READ
Table:
CREATE TABLE `test` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT ...
0
votes
2
answers
501
views
Subscribe to blocks in Solana (JSON RPC API)
I have been reading old blocks from the solana JSON RPC API (using python), but now I am trying to subscribe to the block production on the solana network (to get up live updates).
I tried to pull ...