A no nonsense notebook for nerds
-
Some of the most important SQL commands.
SQL, Structured Query Language, is a programming language designed to manage data stored in relational databases. SQL operates through simple, declarative statements. This keeps data accurate and secure, and it helps maintain the integrity of databases, regardless of size. Most of the actions you need to perform on a database are done with SQL statements. SQL commands are…
-
How to use .htaccess to run all .html files as .php by using PHP handlers in Apache w/o CGI?
If you are not able to find the correct Handler, Simply create a .php file with the following contents: and run/open this file in browser. Use this output in .htaccess file Create a .htaccess file at the root of your website(usually a folder named public_html or htdocs on linux servers) and add this line: Example…
-
How to push into master or any other branch after removing last n commits in git?
git log to find out the commit you want to revert git push origin +daee17:master while daee17 is the commit before the wrongly pushed commit.+ was for force push Finally use git push origin master to sync your local with your git repo And that’s it. Below is my log aka example. One of the…
-
How to setup / enable Directory index listing?
When a web browser is pointed to a directory on your website which does not have an index.html file in it, the files in that directory can be listed on a web page. Directory Lister is a simple PHP script that lists the contents of any web-accessible directory and allows navigating therewithin. Simply upload Directory…
-
Creating a table in PhpMyAdmin Xampp server.
Hello People. In this post we will discuss that how you can create a table in phpmyadmin xampp server for your php project. Before creating a table first you must create a database, because without database you can not create a table. steps to create a table in phpmyadmin. Start your Xampp server and open…
-
How to add color gradients in HTML text?
Live Example
-
5 ways to redirect your Web page?
Hi Everyone! In this post we will be learning about redirects. And see how you can redirect your web-page. We will see two ways to redirect web-pages: Through your registrars’ Cpanel. Right into your code. Through cPanel redirect feature You can easily redirect your visitors from one page to another with the help of the Redirects feature. …
-
Connection timeout with MySQL database.
MySQL disconnects automatically after some time. If you experience MySQL timeouts, it could be due to heavy or very long MySQL queries. You can try using mysql_reconnect command before every query, and it should be fine. MySQL server timeout can occur for many reasons but most commonly it is caused by either an application bug, a network timeout issue, or…
-
How to hide a specific category from Google Index in Magento 2?
In Magento Admin Panel, Go to Catalog in Left Menu > CategoriesSelect the category you want to edit and in Design Section > Layout Update XML, put this value: Save the category and then Clear the cache
-
ReactJS: Create your first react app.
React is one of the most in-demand and popular JavaScript library. And the reason is simple it gives you the ability to create complex User Interfaces with minimal and simplified code. In this article we are going to go through the installation process and the process of creating your first react app. Creating a react…
Got any book recommendations?