magento2 – How to make a shipping method that has been integrated with the courier API in my country?

In my country, there is an API for logistics service provider named RajaOngkir, here I have difficulties in making the method, so here I want my Magento to be integrated with the RajaOngkir API. If I buy an extension, I see the price of the extension is very expensive, and the needs of the magento that I’m working on aren’t too complex. I hope there are steps in making a shipping method, and I have difficulty in finding files from the shipping method, even I don’t know where to start.

What if a periodic redistribution of bitcoin had been integrated into the protocol / wallets?

For example, each month, you and all other wallets would pay 20% of their bitcoin equally to everyone else.

There is a technical problem with this, and a social problem:

Technical: How do you decide where the 20% is paid? How can we determine that each real human being is paid and only paid once? If you agree to centralize control of this function, it is not too difficult: everyone simply registers their identity with the central authority, so that the central authority is solely responsible for guarantee that all payments are made accurately.

Of course, this is completely contrary to the conception of bitcoin: there is no such hierarchy or position of authority in the network. Without the central authority, there is an obvious problem: a single human could simply register many different addresses / devices / IP addresses / etc, to earn more than their "fair share" of redistribution **. This is a fundamental problem for decentralized systems, it is not trivial to solve.

Social: It will probably be difficult to convince people to opt for a system in which they could lose up to 20% of their net worth each month. I think you can adjust this tax at the level and frequency you want, but that won't change the situation much.

The function of such a system would depend on the altruistic participation of the wealthy. This is not a stable proposition, we must expect that a rich and rational actor cannot opt ​​for such a system, given the choice.

Would that encourage more transactions and economic activity?

This would encourage you to move your wealth to another store of financial / silver instruments.

These two ideas, bitcoin and wealth redistribution, are inherently incompatible. Bitcoin is fully opt-in, while in order for wealth redistribution to really work, you need a system that does not allow users to opt out.

** Interestingly, bitcoin mining is in itself a solution to this problem: users who want to earn the reward must prove that they have spent energy to secure the network to do so . There is no way to fake energy, and spending more energy does not earn you a disproportionate amount of the reward. Bitcoin mining is a probabilistic solution to this sybil network attack problem: the attacker can no longer simulate being a large number of nodes on the network, he must spend real resources to participate .

Self-signed certificates in an integrated IoT device

I have several IoT devices that will be connected to a cloud-based platform in order to control these devices (IoT node running an SoC arm baremetal).

I would like to know how to configure each IoT node to generate a self-signed certificate and how this element can improve the overall security of the system.

This certificate will only be used when deploying IoT devices and will be used to avoid possible ManInTheMiddle attacks. Is it really useful for this specific case?

object oriented – Personalized and integrated

For any custom object, we need some sort of variable / attribute to store a value, which basically separates an object from its value. There is a distinction between the object and the value of personalized objects. Technically, we are not saying that value is the object itself. Colloquially, we do

class custom:
    def __init__(self,value):
        self.value = value

    def __repr__(self):
        return f "{self.value}"  

However, for built-in items, it appears to the end user that the object is the value itself

a = (1,2)
b = 4

This is so because of the way it is represented

Internally this should also work exactly as it works for custom objects
There must be an attribute / variable storing the values ​​to distinguish between the object and the value

Is it true??

I was asked this question recently during the last round of an interview
few months ago


2d – A custom shader with stencil breaks the Unity integrated masking

my custom shader works like a charm for what i wanted, but if it is referenced in the scene, Unity built-in masking stops working (both the Sprite Mask component and the Mask based stop masking on rect).

What I needed was an unlit 2D shader that would fight against the overlapping semi-transparency for 2D shadows without light. In other words, instead:
enter description of image here
I want this:
enter description of image here

Since I don't know the first thing about shaders, I copied the shader (like a clueless monkey) from here.
It works but, as I mentioned, it breaks other elements (masking). As soon as I change the shader of the referenced material to any other shader, the masks start working without problems, so I know the shader is the culprit.
I discovered that the problem was related to the stencil. Testing different shaders that use the template and expose the properties of the template shows that the template ID, comparison and operation values ​​that help achieve the required effect always break Unity's built-in masking. This leads me to the conclusion that the stencil is "shared" between the shaders and the masking effects. I have also tried different mask write / read mask values, but that did not help. Please keep in mind that my understanding of the subject of the stencil is super-superficial.

seo – How do I create a video sitemap for my website when the video is hosted on vimeo and integrated using it?

I would like to know what should be done when creating a video sitemap when the integrated player is from Vimeo?

I am very new to the SEO world and I learn by doing and reading official documentation.

For example, the video page on my website is

This has 1 video on a page. If you look at the source of the page, the relevant part follows

Now I have read the Google Video sitemap documentation at and the appropriate tag is see is

However, I don't know how to use this tag, would it work when creating the index?

I'm not sure if it's correct since the description of the

A URL pointing to a player for a specific video. Usually, this is the information in the src element of an  tag. Must not be the same as the  URL. For YouTube video, this value is used rather than video:content_loc. This is the equivalent of VideoObject.embedUrl in structured data.
Must not be the same as the  URL.

Any help is greatly appreciated!

node.js – You are looking to restructure my application which is integrated into react, redux, node, mongo and express

So I'm looking to improve the folder structure of my application.


The client root is index.js and i have all the actions userActions.js. It's over 200 lines of code. In addition, there is a component folder. Except LandinPage, Hero, Footer and NotFoundPage all other components are connected to the redux store.auth reducer has the authentication connection logic (startup, success, error, disconnection) and post reducer to all CRUD operations of a station, on 110 lines. registration has a recording logic (start, success, error) and finally userPosts the reducer has user messages retrieved from the server (recovery from user startup, success, error).


Starting with models, I have the basis User and Post model defining the schema and exporting it. Controller for the user, sending messages and emails. The rest is self-explanatory.

enter description of image here

enter description of image here

DRUPAL 8: pass several arguments (table) to the integrated view

I am on DRUPAL 8 and I have a view with several arguments (node ​​ID list) but I cannot integrate it on my node.twig.html

Here is my code:
{% set myArray = ()%}
{% for the element in content.field_articles_lies (& # 39; # items & # 39;)%}
{% set myArray = myArray | merge ((item.entity.nid.value))%}
{% endfor%}

{{drupal_view (& # 39; articles_lies & # 39 ;, & # 39; default & # 39 ;, myArray ())}}

if i do that: {{drupal_view (& # 39; articles_lies & # 39 ;, & # 39; default & # 39 ;, myArray.0)}}
it's ok but obviously only for one.

Thanks in advance

Integrated Opera and Epic VPN browsers

Opera browser has built-in VPN

The epic browser has a built-in VPN where you can select IP addresses from 10 countries

reference request – unbounded functus that can be integrated into the square

In R.D. Richtmyer, Principles of Advanced Mathematical Physics, p.85, an example is given of continuous and square integrable on $ bf {R} $ function, which is not limited to infinity:
$$ f (x) = x ^ 2 exp {(- x ^ 8 sin ^ 2 {x})}. $$
Intuitively, one can expect that $ f (x) $ is square integrable because its peaks become more and more narrow. But how can you rigorously prove that $ f (x) $ is indeed square integrable?