Have you ever heard of the Dunning-Kruger Effect? If you haven’t come across the term before, you have definitely experienced the principle. It’s a psychological rule that states; it’s the most incompetent who are the most confident, while the intelligent ones doubt their own abilities. Put simply, dumb people are too dumb to know how dumb they are. Smart people are clever enough to know how much they don’t know. British philosopher Bertrand Russell who first laid out the idea perhaps summed it up best: “The trouble with the world is that the stupid are cocksure and the intelligent are…
I once had a hard time trying to update my local State with Redux state in my component before rendering the content.
Firstly, I couldn’t do it in the component constructor because redux mapStateToProps only update the render method.
Also, I couldn’t update the local state with the redux state in the render method because I will run into “ Invariant Violation: maximum update depth exceeded “ error. Since it will be calling setState() repeatedly which can lead to an infinite loop.
I can’t use componentWillReceiveProps because it’s depreciated, So I thought of using the new static method getDerivedStateFromProps.
Get any code from 1000+ valid code saved by the app members.
Quick Pin Application provides easy way to get and save sim service code and Network provider, ussd and Short Message.
Download Quick-pin now for, available for Android and IOS
The unstructured supplementary service data (USSD) — is currently the best available technology to deliver mobile financial services to both low and high-income customers. In order to make mobile banking easy for you, in alphabetical order here is a list of all USSD code for all banks in Nigeria.
We also promise to update these codes/USSD as the new…
Some pages are built for specific user type and the user role list are usually in hierarchical order.
Therefore, Ehex created some helper methods to help in selecting a list of roles from the start to the specified role.
To give any existing User a role, e.g Admin’s role, you can either change the user role column in the database to “admin” or update your model by running a simple command anywhere in your code, e.g
This will change the existing user with id 1 to Admin Role.
Simple User Model with a role column example.
We have seen a lot of lazy loader libraries for loading images but nothing much on pure text content.
With Ehex “Url1::loadContentByAjax(…)” you can fetch any content with ajax, Hence, speed up page loaded time.
Read more on Ehex Php Framework at https://ehex.xamtax.com
Github Repo https://github.com/ehexphp
Ehex is built for both novice and professional developers and it is the most friendly Php Framework So Far. One of the big advantages is that it allows the Use of Themes and Plugins like CMS In a very simple and modular way.
Ehex Superpowers are:
1. Modular, Simple and Lightweight framework. 2. Create/Debug very fast 3. Easy to migrate from Laravel Framework. 4. Almost everything is automatic 5. Automatic generation of Database and Model Table. Auto Generate and Create Model Database Table. 6. Automatic generation of Html Form (default bootstrap class), Html Widget for Image, Loader, Popup, e.t.c. 7…
As we already know the Ehex PHP framework is built with a lot of out-of-box features to simplified web development, so I decided to talk about the inbuilt dynamic dashboard.
The advantage of using this dashboard is that:
Web Developer and Creator of Ehex (ex) Php Framework