bitcoind – Bitcoin RPC – Returning values in bytes, should I display in gibibytes or gigabytes?

I’m using Python and the requests library to get some data from Bitcoin using RPC. For example, from the getblockchaininfo call:

 "size_on_disk" : n,                     (numeric) the estimated size of the block and undo files on disk

Right now, this call returns 366080268200 bytes:

"size_on_disk": 366080268200,

Dividing by 1024*3 gives me 340.938817896 gibibytes (GiB).

Dividing by 1000*3 gives me 366.0802682 gigabytes (GB).

What is the “best” way to display this size to users? I’m leaning towards using gigabytes (GB), but isn’t this technically “wrong”? Every online dashboard I check currently shows the blockchain around 366GB, so they must be dividing by 1000*3, right?

display – Wacom Bamboo on Ubuntu 20.04 LTS, stylus proximity causes screen blank (X restart?)

I have extremely annoying problem with my Wacom Bamboo tablet. It may be that everything works as intended, so perhaps it is not visible to some users of Wacom tablets.

I use Ubuntu 20.04 on Raspberry Pi 4, 4 GB, “desktopified” using Desktopify, dual monitor setup. I suspect none of these specific has a bearing on my problem though. If someone thinks it has, I can test it out under livebooted Ubuntu on my otherwise windows machine (I don’t have ubuntu installed anywhere else right now).

What happens is, that when the stylus is brought closer to the pad after it has been lifted this causes 3-5 second blanking of both monitors (cursor is visible on black background) and corresponding freeze in desktop activity.

It seems like the “discovery” of the stylus proximity by the tablet causes some kind of X/desktop restart.

If I keep stylus close to the pad at all times even without drawing/pushing, this does not happen. It strictly happens after the following sequence of events:

  1. the stylus is lifted (tablet loses contact, and cursor stops tracking the tablet which is expected behavior) (everything ok)
  2. the stylus is brought back into the vicinity of the tablet – cursor starts tracking the tablet, but the displays go through aforementioned blink-black-blink-normal phase, and desktop apps are unresponsive for those few seconds (so if drawing anything the shape would be lost for that amount of time).

Any ideas why this happens? The problem is I use OpenBoard app for drawing (actually my daughter is) and this happens whenever the stylus is lifted to go to the pheripheral part of the screen to change tool or color.

So perhaps with some training and very strong will not to lift the stylus more than 5mm of the board this could be controlled, that’s why I suspect that perhaps is happening to other users -just that everyone else accepts it as a matter of fact?

I am prepare to record videos or generate some logs, it you only give me an idea what logs are needed. I am pretty experienced Linux user/administrator, but this simply baffles me as nobody yet described this phenomenon.

Display WP Meta Details in Bootstrap Modal

This question relates directly to a previous question I asked in WordPress StackExchange:
display WP image posts in Bootstrap 4 modal that was superbly solved by Sally CJ

The live website displays each posts Meta details below the image in a lighter grey font after the image title

I further developed the solution by adding a title to the modal image BUT now the client wants to put the WP post Meta details inside the modal as well. I have tried to further develop the original solution but all my attempts have failed.

This is the complete code-block which calls the modal:

<div class="row">
       global $query_string;
       query_posts( $query_string . '&posts_per_page=-1' );
    <?php $featured_query = new WP_Query( array(
       'category_name' => 'canvas'
    )); ?>
    <?php while($featured_query->have_posts()) : 
       $featured_query->the_post(); ?>
          <div class="col-md-6">
              <div class="divPad">
                  <a data-toggle="modal" data-target="#galleryModal" href="<?php echo 
                  the_permalink(); ?>" data-image="<?php the_post_thumbnail_url(); ?>" data-title="<? 
                  php echo the_title(); ?>">
                     <?php $post_id = get_the_ID(); ?>
                     <?php the_post_thumbnail(); ?>
                  <br />
                  <span class="fontBrand1 fontType1 text"><?php echo the_title(); ?></span>
                  <span class="fontBrand2 fontType1 smallText">&nbsp;<?php echo get_post_meta($post- 
                  >ID, 'Materials', true); ?>&nbsp;<?php echo get_post_meta($post->ID, 'Dimensions', 
                  true); ?>&nbsp;<?php echo get_post_meta($post->ID, 'Price', true); ?></span>
              </div><!-- /.divPad -->
      <?php endwhile; ?>
      <?php wp_reset_postdata(); ?>
</div><!-- /.row -->

And this is the actual modal code:

<div class="modal fade" id="galleryModal" tabindex="-1" role="dialog" aria-labelledby="galleryModalLabel" aria-hidden="true">
    <div class="modal-dialog  modal-xl" role="document">
        <div class="modal-content">
            <div class="modal-body">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                <?php the_post_thumbnail($post_id); ?>
                <?php echo get_the_title($post_id); ?>

        </div><!-- /.modal-content -->
</div><!-- /#galleryModal -->

I am trying to rewrite these code lines from the main code block to the modal block

<span class="fontBrand2 fontType1 smallText">&nbsp;<?php echo get_post_meta($post- 
>ID, 'Materials', true); ?>&nbsp;<?php echo get_post_meta($post->ID, 'Dimensions', 
true); ?>&nbsp;<?php echo <span class="fontBrand2 fontType1 smallText">&nbsp;<?php echo get_post_meta($post- 
                  >ID, 'Materials', true); ?>&nbsp;<?php echo get_post_meta($post->ID, 'Dimensions', 
                  true); ?>&nbsp;<?php echo get_post_meta($post->ID, 'Price', true); ?></span> ?></span>

I suspect the problem is being caused by my not being able to correctly alter

<?php echo get_post_meta($post->ID, 'Materials', true); ?> 


<?php echo get_post_meta($post_id, 'Materials', true); ?>

Note that the $post_id variable was created in the main block with <?php $post_id = get_the_ID(); ?> and has already been used successfully to display both image and title in the modal already… However, and despite many and varied attempts, I’ve not been able to use the same variable to display the Meta details

I hope I’ve managed to explain the problem clearly enough and happy to supply any further details that might be needed. Any help you can give will be very much appreciated. Thanks

Display and editing complex data

I am looking for suggestion how to display complex data for reading/editing.

Data will be key-value, example:

string-val: “v12”,
int-value: 99,
boolean: true

I these types I think simple table will do the trick (with editable rows).

I will also have to support the following:
array-val: (1, 2 ,3), object-value: {name: “bp”, amount: 4}, array-object-value: ({name: “bp”, amount: 4}, {name: “bp”, amount: 4})

I am considering using: (just an example because we use material-ui), where the dropdown V will have an embedded table.

I am open for any suggestion, this is the only solution I can think of.

ilo – HP iLO4 Remote Console Java Applet display

We have an HP Proliant DL360 G8 server, with iLO4 installed. I normally uses Firefox to access the iLO web interfacefrom an Ubuntu server. The Ubuntu server hopped through 2 subnets to get to the iLO interface.

ubuntu$ xhost +
ssh -X
ssh -X
firefox -no-remote

Then https://… to logon to the iLO interface. However, when trying to run Remote Console using Java Applet, the normal Ice tea applet window is not showing anything, and there’re no remote window popping up. Is that because of export DISPLAY does not apply to JAVA applets? Is there something I can do to fix this?
enter image description here

datetime – View based on months or days – display certain items during specified times of the year

I am trying to create a calendar-type view that will display links to specific nodes during certain months of the year. For example, this would show ‘Taxes’ in Feb and April, ‘Travel’ from May to September, etc.

So far I have added a boolean field to my node to appear in the view, but I am stuck on how to implement the date selector. Theoretically I would like to have people select the months that this node should appear in the view, and the view will contextually display the nodes depending on the current month.

The problems I’m running into are:

  • The date field seems to require a year, but I want this to be year agnostic
  • The date field doesn’t allow selection of multiple months

I am thinking that I will have to use a date field so that I can use contextual filters to display based on month of the year. I don’t have access to the codebase so I need to do all of this within the UI using modules, if possible.

Any tips on how I can achieve this?

display – After connecting 3rd external monitor typing lag starts, Macbook Pro 2016

Have macbook pro 2016 and connected 3rd external monitor. Then all monitors including macbook screen have typing lag. But let me clear about there is no mouse lag OR when I move the application window like chrome or jet brains IDE like pycharm no window movement lag.

But when I start typing in IDE or browser’s search bar. I can see clearly that there is typing lag. And about the monitors and cables. I have a LG Ultrawide 5K and Apple Display 27inch (apple display connected VIA mini display port to thunderbolt by apple official tool)

I am not very sure why macbook pro 2016 having such a problem on? One of the cable is LG’s original and the other one is apple’s thunderbolt changer. By the way as grafic card Pro has Radeon Pro 460

Any idea what is causing this problem and how to solve this?

How to efficiently implement a 7-segment display?

I want to construct a 7 segment display (as shown below). When you input a number, the script will read the input number and light up the respective segment
(change the spriterenderer color to red) to display the number.

But I think the code has become too long, since there is 0-9 digit to display, I need 10 if statements, 8 scripts and the function of each statement is to light up the respective segment so it displays the number correctly.

Is there any better way to make the code shorter?

using UnityEngine;

public class ClockController :  MonoBehaviour
    Rect1 rect1;
    Rect2 rect2;
    Rect3 rect3;
    public GameObject othergameobjectrect2;
    public GameObject othergameobjectrect3;

    void Start()
        int x = 1;
        if (x == 1)
            rect1 = GetComponent<Rect1>();
            rect2 = othergameobjectrect2.GetComponent<Rect2>();

            rect3 = othergameobjectrect3.GetComponent<Rect3>();

using UnityEngine;

public class Rect3 : MonoBehaviour
    public void Rectangle3()
        GetComponent<SpriteRenderer>().color =;
using UnityEngine;

public class Rect2 : MonoBehaviour
    public void Rectangle2()
         GetComponent<SpriteRenderer>().color =; 
using UnityEngine;

public class Rect1 : MonoBehaviour
    public void Rectangle1()
        GetComponent<SpriteRenderer>().color =;    

enter image description here