bitcoin core – What’s up with the block size of block# 295182?

I found an anomaly in the block size data: block 295182. This one seems to have a way higher payload. What happened there?

Bitcoin Block Size
Or is this there something wrong with my parsing? This file block does appear to be at the end of a .dat file.

Here’s the code I used:

import struct
import matplotlib.pyplot as plt

blockchain_path = 'mypath/blocks'

def get_block_path(index):
    file = 'blk' + str(index).zfill(5) + '.dat'
    return blockchain_path + "" + file

def plot(x, y, title, xlabel, ylabel):
    plt.scatter(x, y)
    plt.suptitle(title, fontsize=20)

def uint4(stream):
    return struct.unpack('I',

def blocks_remaining(f, i):
    cur = f.tell()
        return True
        print("End of file: blk" + str(i).zfill(5) + '.dat')
        return False

BlockHeight, BlockSize = (() for i in range(2))
cur_block_height = -1

for i in range(0, 100):
    block_path = get_block_path(i)
    #stay with single file
    f = open(block_path, 'rb', buffering=16 * 1024 * 1024)

  #loop blocks in file
    while blocks_remaining(f, i):
        cur_block_height += 1
        magic_num = uint4(f)
        block_size = uint4(f)

        print(cur_block_height, f.tell(), magic_num, block_size)

        #append data

        #skip to next block

plot(BlockHeight, BlockSize, 'Block Size', 'block height', 'bytes')

sharepoint online – why restricted view simply block the user?

I tried to use restricted view as a permission level for a group. But the group was unable to access the site and kept asking for access. So I change the permission level to Read but had restricted view for the libraries. In this case, the visitor can access the site but is blocked at the library again.

Can someone explain the restricted view permissions because it is not doing what it is supposed to based on descriptor?

Option for removing block not appearing in custom gutenberg block

I’m developing a custom gutenberg block. I’m able to get the fields to appear and I’m able to interact with it when adding it to a page. But the menu that allows you to remove the block does not appear when it’s highlighted.
I’m referring to the menu in the screenshot below

enter image description here

I’m using the esnext syntax and this is what my main block js file looks like

    import "./style.scss";
import "./editor.scss";

const { __, setLocaleData } = wp.i18n;
const {
} = wp.blocks;
const {
} = wp.editor;
const { Button } = wp.components;

registerBlockType( 'tc-blocks/hero-block', {
    title: __( 'Hero Block', 'tc-blocks' ),
    icon: 'index-card',
    category: 'layout',
    attributes: {
        title: {
            type: 'string',
            source: 'attribute',
            selector: 'h2',
        mediaID: {
            type: 'number',
        mediaURL: {
            type: 'string',
            source: 'attribute',
            selector: 'img',
            attribute: 'src',
    edit: ( props ) => {
        const {
            attributes: {
        } = props;
        const onChangeTitle = ( value ) => {
            setAttributes( { title: value } );

        const onSelectImage = ( media ) => {
            setAttributes( {
                mediaURL: media.url,
            } );

        return (
            <div className={ className }>
                    placeholder={ __( 'Write Title…', 'tc-blocks' ) }
                    value={ title }
                    onChange={ onChangeTitle }
                <div className="tc-image">
                        onSelect={ onSelectImage }
                        value={ mediaID }
                        render={ ( { open } ) => (
                            <Button className={ mediaID ? 'image-button' : 'button button-large' } onClick={ open }>
                                { ! mediaID ? __( 'Upload Image', 'tc-blocks' ) : <img src={ mediaURL } alt={ __( 'Upload Image', 'tc-blocks' ) } /> }
                        ) }
    save: ( props ) => {
        const {
            attributes: {
        } = props;
        return (
            <div className={ className }>
                <RichText.Content tagName="h2" value={ title } />

                    mediaURL && (
                        <img className="tc-image" src={ mediaURL } alt={ __( 'Image', 'tc-blocks' ) } />
} );

Here’s how I’m registering the block type in my index.php file

function tc_blocks_hero_block_block_init() {
    register_block_type_from_metadata( __DIR__ );
add_action( 'init', 'tc_blocks_hero_block_block_init' );

And here’s my block.json file

"apiVersion": 2,
"name": "tc-blocks/hero-block",
"title": "Hero Block",
"category": "widgets",
"icon": "smiley",
"description": "This is a header block built for a large hero image and text",
"supports": {
    "html": false
"textdomain": "hero-block",
"editorScript": "file:./build/index.js",
"editorStyle": "file:./build/index.css",
"style": "file:./build/style-index.css"

I’ve compared my code to the gutenberg examples code found here but I can’t seem to find any major differences that would cause an issue and I don’t see any js errors in the console.

How do I get the remove block menu to appear in my custom block?

ads – How to I block advertisements for one specific app?

Since these objectionable ads show up in multiple apps, they are likely being mass-distributed by a large advertising provider company (such as Google).

I don’t think you’ll be able to successfully block ads for a single product that are distributed this way, but since the content of the ads is questionable, you can determine which ad provider is delivering questionable content, and file a report with them. If the content being pushed is illegal in your jurisdiction, you can also involve law enforcement.

Finally, you can notify the developers of all the apps in which you see these ads and let them know about the issue. They can then file a report with their ad providers and consider finding more suitable ad providers. If you leave accurate reviews regarding this issue, you may be able to pressure the developers of the apps you use to find a more appropriate advertising provider or remove the advertising content altogether. Often, you can purchase paid versions of apps that have no advertising.

mining hardware – How can I mine a block, in C#, on a new Testnet network where no other miners exist?

I want to demonstrate how to use NBitcoin or the most simple C# function to collect transactions for use in a block, and then sign that block, and submit it into the Bitcoin-QT network client on the RPC port?

I want to demonstrate how this is done on low powered devices.

ads – How to I block advertisements from one specific app?

Lately I’ve been getting ads for a TikTok-like app called Kwai. These ads always include girls of questionable age dancing very suggestively to the sound of very bad music.

These ads appear on many of my apps, from YouTube to Duolingo (and other language study apps), and it’s very annoying to see these while I’m trying to concentrate, especially since it always comes with loud music (while I’m wearing headphones to listen to my lessons). I did manage to get rid of them on YouTube by using Vanced, but I’ve still got issues with the other apps I use.

I don’t mind any of the other ads that show up; it’s only this one I’ve got beef with. That being so, I’d like to know if there’s any way to block all ads for this Kwai app, specifically, from showing on my apps.

Thanks in advance!

bootstrap_barrio subtheme breaks ckeditor’s media insert in custom block

I’m facing this problem (seems to be producible) in a contrib theme that breaks the ckeditor media insert button on custom blocks in the layout builder of individual nodes…
The javascript error says it’s typically caused by the theme neglecting to include proper html attributes for that entity type, but the theme’s block.html.twig is identical to that template in Bartik. This is a custom subtheme of bootstrap_barrio created with the shell script provided by bootstrap_sass (Barrio highly recommends subtheming that way). Error has been repeated on new D8 and D9 installations, and the full message on page load is:

Uncaught Error: Quick Edit could not associate the rendered entity field markup (with (data-quickedit-field-id="block_content/1/body/en/full")) with the corresponding rendered entity markup: no parent DOM node found with (data-quickedit-entity-id="block_content/1"). This is typically caused by the theme's template for this entity type forgetting to print the attributes.

and while editing a block in the layout builder, clicking ckeditor’s media insert button results in the following error (and the media dialog never opens, the “Loading…” message appears but nothing loads):

Object { message: "nAn AJAX HTTP error occurred.nHTTP Result Code: 500nDebugging information follows.nPath: /media-library?media_library_opener_id=media_library.opener.editor&media_library_allowed_types%5B0%5D=image&media_library_selected_type=image&media_library_remaining=1&media_library_opener_parameters%5Bfilter_format_id%5D=basic_html&hash=Ul_KDXiNyg8Mw95OeXpaIZUYieACO4FlRCUQkle_TCsnStatusText: Internal Server ErrornResponseText: The website encountered an unexpected error. Please try again later.", name: "AjaxError", stack: "@" }

I was very excited about the bootstrap_barrio’s subtheme with sass, gulp, browsersync all configured with bootstrap, but maybe I should switch to radix? I’d much prefer to solve this error though, if anyone has any insight? I don’t know where to begin with javascript debugging 🙁

8 – How do I attach a single-use block through a field?

I am working on a project that has a lot of custom block types (about 35). They are complex and have a lot of fields. They are being used with Layout Builder so all the blocks that get created are mostly single-use and hidden. The block plugin that is applicable here is the InlineBlock class provided by Layout Builder.

I want to re-use some of these block types in a node field. This usage is identical to how paragraphs are used on a field. The main module I would turn to in this sort of situation is block_field. Unfortunately it does not work with InlineBlocks, I’ve created an issue about this.

Is there a solution for this problem? Are there other patterns or techniques I’m missing? At this stage my only obvious solution is to convert these types to paragraphs which I know how to use in Layout Builder.

active directory – Windows AD OU Block (Read/List) Objects from other OU

I have a Root OU that has an OU called “Clients” and under I have multiple OU’s and the client’s PC’s/User Accounts in sub-OU’s.

The issue is, my clients can see other groups’ user accounts/computers and need to prevent this as if they’re on completely different machines and not under the same Domain. I am guessing I have to go make Deny rules for every single OU Group about every Client OU Group?

Currently, they can search AD for users and see other clients (not within a said company).

Any thoughts on how to do it and potentially with Powershell or just in general?

protocol – (How/Why) – Work vs Block Size Limit and Leading Zeros

How did Satoshi/the community decide an appropriate block-size-limit?
Why does the protocol increase mining difficulty by adding zeros?

I’ve some limited experience with some of the cryptographic concepts underlying bitcoins protocols.
I have two questions.
Given the fact that there is an upper limit on block size, perhaps the easiest way to breach this is to arrive at an some exceedingly large nonce which will become necessary due to other block contents. The question is, how do you set an appropriate limit for arbitrary blocks?
Would you need to know about inverting the hashing-algorithm in order to prove the efficacy of a given limit for an arbitrary ledger/header/nonce set?

Second question is about the relevance of increasing the leading zeros over time. Would it not be equivalent (wrt work done) to set a total number of zeros? That is, would you need to know about inverting the hash algorithm in order to prove that difficulty is increasing by adding leading zeros as opposed to any other “pattern” of any other hex character of the same cardinality?

Please forgive and correct my understanding of the issues in question.