bitcoind rpc interface, generate deprecated method in version 0.19.0 (last)

How to generate a block in the new version of bitcoind.

bitcoin-cli -regtest generate 1

The above command no longer works with the last bitcoind package

I want to confirm a transaction that I have executed under the regtest mode for bitcoind, thus generating a block to confirm the tx.

adminhtml: how to use an array for the name of the field in a user interface component?

How do I configure the name of a UI component field to use a nested array instead of just the name?

As an example, I want it to be:

It is currently:

I have seen that the catalog module does this, but this seems to be through a block and not directly in the user interface component, that's what I want to do!

Graphical user interface design: importance of colors in a mobile application?

I am not sure why you have doubts about the use of accent colors in your application, especially in an application that I assume will display data records of different categories (expenses / income) in a timeline. The use of color coding to visually differentiate between records sounds like a dump.

Don't get me wrong, I don't encourage you to use a blue-red / red background with dark green text on it, for nothing. Keep a light white background with dark text for the content, but enter some accent colors for CTAs / graphics (which I think should have a financial application) / category titles / buttons / etc … Both to make the interactive elements stand out but also to make it visually attractive.

You say you want to use white and different shades of gray for your palette and then use red and yellow for errors and warnings. But unless I expect the user to activate these errors and warnings regularly (which will probably cause them to abandon the application anyway), I think the application will be a visually insipid experience. It can still be useful in the sense that it tells the user what he needs to know, but a flat and unattractive user interface will not attract him to explore the application at all and, therefore, any feature he enters in the future can go unnoticed because the application tells the user in his visual representation "I am not interesting, I probably have nothing more to give you. Please stop looking at me …".

For the application to be successful, you need to capture the aesthetic elements for your application.

How to move a user interface image from one main panel to another in Unity?

I have a Canvas and in it I have the TopPanel and the BottomPanel. I also have a Image which at the beginning is in the BottomPanel. After clicking on a button, this image should fly to the TopPanel and become a secondary element of the TopPanel.
How should I move this? Image to the top panel? How to convert your local coordinates to coordinates of Canvas?

inheritance – C ++ robust user interface transition system

I am writing an animation system for GUI elements of my own user interface design system. I am struggling to find an easy way to extend the base animation class. Here it is:

class Animation {


    // Thread to run the animation on
    std::thread anim;

    // Total time for the animation to run
    double time{};


    // Node that the animation affects
    Node* node = nullptr;


    Animation(double time, Node* node)
        : time(time), node(node) { }

    void start() {
        anim = std::thread((&) () {
            Stopwatch sw(time);
            float progress;
            while ((progress = sw.getProgress()) < 1) {


    // Override this. Progress is a float between 0 and 1.
    // Change the node member of the class accordingly.
    // This is called internally.
    virtual void step(float progress) = 0;


I feel this class is fine. Here is an example of a secondary class:

class EaseRight : public Animation {


    double startX{};
    double endX{};


    EaseRight(double time, Node* node, double startX, double endX)
        : Animation(time, node), startX(startX), endX(endX) { }


    virtual void step(float progress) {
        node->setHorizontalOffset(quadInterp(progress, 1, startX, endX));


This is a lot of repetitions for essentially a line of functional code. In java, similar things can be achieved using lambdas or anonymous classes. Is there a better way to create secondary classes, and is there any general advice for my code style or an animation system?

online sharepoint: access to PM Onlne through the SOAP user interface

Battery exchange network

The Stack Exchange network consists of 175 question and answer communities, including Stack Overflow, the largest and most reliable online community for developers to learn, share their knowledge and develop their careers.

Visit Stack Exchange

Object oriented – Should I continue to "program for an interface, not to implement", even if I believe that using specific class members is the simplest solution?

According to the Understanding "programming to an interface", as I understand it, I think it should depend solely on the abstract class. However, in some cases, for example, Student:

public class Student{
    private String name;
    private int age;

modify it so that it becomes dependent only on the abstract class (that MyIString can be a new abstract class that involves String):

public class Student{
    private MyIString name;
    private java.lang.Number age;

I think the modified one is more complex. And a more "real" example, say Address:

public class Address{
    private ZipCode zipcode;

for which I only need one type of ZipCode, but if I modify it as:

public class Address{
    private IZipCode zipcode;

IZipCode is an interface, so I think it can fool other teammates who would have other types of ZipCodes.

I think the previous cases become more complex and less maintainable if a class were allowed to use only abstract members. So, my question is, should I continue "programming for an interface, not implementation" if the "followed" becomes more complex (in my opinion)?

html: make the label the same width with the following semantic user interface

How to make the label and the input box have the same width as bootstrap, currently my page is like this
enter the description of the image here
And my code is like that


Graphical user interface design: why aren't ZUIs (zoom user interfaces) popular?

I've also been asking myself this question since I read Human interface. Although Jef Raskin presented his ZoomWorld as a complete idea, the real expert in ZUI is Ben Bederson. He has been building and studying zoom interfaces for decades. He also has some of his own answers to his question. He summed up, ‘Manual organization of information in a zoom environment rarely makes sense’. He wrote a full article on the question, "The promise of user interfaces with zoom." From the section "Why ZUIs are challenging" (pp. 5–6):

As summarized in Table 1, the potential benefits of ZUI are sometimes mirages. ZUIs are generally attractive (although they make some people feel physically ill) and visually rich. But the promise of simplicity falls short.

While human visual perception makes it easy to see where you are navigating, the reality is that it places a great load on short-term memory to remember where it just was in space and where things are. And the requirement of human memory to know how space is organized means that the ZUIs do not expand very well. ZUIs are often motivated by the physical world and the way people like to put papers on their desk. But nobody wants everyone of his papers on his desk. It is much more common to have only a relatively small number of documents that you are really working with.

The visual descriptions that ZUIs offer for free when moving away may seem like a solution to the burden on human memory, but in practice they do not because visual descriptions of any complexity require significant scanning and a visual search to find something. If there are only a small number of objects, the visual search task is not difficult, but, of course, for a small number of objects, you do not need a ZUI to solve your organizational problems.

Finally, the visual richness of the ZUI is a double-edged sword. It requires skill to design a complex space with documents of arbitrary size, aspect ratio and color that people can understand and scan. Also, people are not as good at scanning 2D designs as 1D designs, unless the design is highly structured. But highly structured 2D designs do not work well for visual objects of arbitrary aspect ratios. Designers are obliged to leave a large amount of unused space, reduce large objects so that large objects cannot be read or trimmed, thus losing much of their distinction.

I would like to add some points of my own. First, Jef Raskin's zoom interface makes more sense in a document / object-centric context. Application-centric environments are conceptually at odds with such interfaces. The Raskin ZUI is good for organizing large amounts of information so that applications become obsolete; but the current computer landscape is about "applications" (following Apple's example, from the original Macintosh to the iPhone). Even the iOS home screen, a kind of smaller zoom interface (especially after adding nested folders), is restricted to the organization of application icons, not real content.

Second, paradigm changes tend to take a long time. Concepts such as graphic interfaces and direct manipulation were invented in the 1960s, but it took until the mid-1980s to make these paradigms available to the general public. Internet and hyperlinked documents took even longer. The multi-touch screens date back to the 80s, but the iPhone was the first affordable implementation available in general. Zoomed interfaces often require more resources; by the time they were practical, traditional GUIs were quite established.

I believe that a "killer application" is necessary to facilitate this paradigm shift focused on the object-centered application. In my opinion, the best way to answer why ZUIs are not more popular is to deny the premise: build one! (That is my own plan).

User interface – Dark mode / theme before Android 10?

How is it possible (through a third-party application or without it) to enable dark mode for all applications (Chrome browser, phone call application, messaging application, etc.) on an Android 5 or 6 smartphone?

It is integrated into the operating system in Android 10:

But how to do this for Android 5+?