PHP Development with VS Code and Docker Dev Containers
Nowadays it is a must-have skill to use docker for your development. To start the development with docker here are some prerequisites: If you're on Windows you have WSL installed on your system. It will also be required for Docker. You have D ...
How To Develop Cloud-based Fullstack Application From Scratch?
So, from today we are going to start developing a personal finance system from the ground up where we can track our expenses, income, get an idea of where our money goes, have a birds-eye view of our financial status, and generate some statistical r ...
var vs const vs let in JavaScript
When programming in JavaScript, developers have three main options for declaring variables: var, let, and const. Each of these options has its own advantages and use cases, and understanding the differences between them is crucial to writing efficie ...
How to undo the last git commit?
There are situations where you just committed a change in git and just after that realized you made a mistake in the last commit. If you haven’t pushed that code then the last local changes can be undone with this command.
Creating Git branch in detached HEAD State
Recently, I came across a situation where I checked out a git branch and it showed me this message related to detached HEAD state: You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can d ...
Mounting NFS Share on Windows 10 & 11 with Write Access
It is easy to mount a drive from Linux NFS share on Windows 10 & 11 machines. To do that make sure you have NFS Client (Services for NFS) installed from Programs and Features. Following is the command to mount the NFS drive. Note that this comman ...
Mark parent category menu active on single custom post view in WordPress
Recently I developed a theme for one of my clients and I had to highlight the menu item of the parent category in the main menu when one of its associated single custom posts was viewed. For that, I had to add an action in my functions.php file for n ...
Codenvy and BitBucket Integration
OK, this post is a quick one about BitBucket integration. Let's go! In your Codenvy workspace go to Profile > Preferences > SSH > VCS and generate a key and give it the name bitbucket.org. This will generate a key for you. Copy this key by ...
Displaying Multiline Title in WordPress
In WordPress when the title is written it is usually displayed in a single line on front-end until it is too long to display in one line. But if you want to write the title in multiline and want to line break the title after a certain word how can yo ...
Different color for each menu item in WordPress
In a recent project, I got a requirement that each menu item should be highlighted in a different color when visited. The menu items and their required active colors were: Home - Green Portfolio - Blue Team - Yellow Contact - Red These colo ...
Rollover image – Change image on hover/mouse over
Often when designing websites static or dynamic, PHP or ASP.Net, Laravel or WordPress, you have to design in a way that if the user hovers an image it gets changed and an alternate image is displayed. This can be easily achieved via simple HTML event ...
Sharing data between Laravel and Angular
When building applications with Laravel and Angular you might come across a problem where you want to print data using AngularJS brackets {{}} but before it can be parsed by Angular, Laravel blade engine parses it and tries to replace the value if it ...
Laravel: Specified key was too long error on migration
When you install a new Laravel project with 'laravel new' and run the migration that comes with it you might get the following error: #php artisan migrate Migration table created successfully. SQLSTATE: Syntax error or access violation: 1071 Spe ...
Setup CodeIgniter Docker container for development
Docker Docker is the world’s leading software container platform. Developers use Docker to eliminate “works on my machine” problems when collaborating on code with co-workers. Operators use Docker to run and manage apps side-by-side in isolated conta ...
Setup Laravel with Docker containers
Docker Docker has captured my attention lately and has been growing exponentially for last few years. Docker has revolutionized the virtualization space and has given DevOps engineers and developers a new set of tools that can ease their development ...
How to use wildcard domain with OpenShift hosting?
If you have a domain name and want to use OpenShift for hosting then using a wildcard domain name is a bit tricky with some domain registrars like GoDaddy. The reason is IP address of the app on OpenShift doesn't remain the same and to use the wildca ...
Event handling with custom components in Vue.js
If you've been working with Vue.js lately and developing custom components to build your apps you might come across how to communicate from child component to parent. There are couple of scenarios here. Immediate parent child components If you want i ...
Deploy your first ASP.Net MVC App to AppHarbor
Our focus is to deploy our ASP.Net MVC app built using new Visual Studio 2015 MVC template to AppHarbor via GitHub.
How to Find a Stored Procedure in all the Databases?
When working with MS SQL Server sometimes you need to find a stored procedure in the databases and all that you know is the name of the stored procedure that your teammate told you that he had used but couldn't remember in which database it was. All ...
Searching Lowercase data in MS SQL Server
A few days back I came across a requirement to fetch the records from the table having all lowercase letters. This was an interesting scenario. The SQL Server database by default is set for case-insensitive. But, I need to do a case-sensitive search. ...
Resolving error in installing any gem by Ruby
After installing the Ruby installer you might need to install some gems. For example, if you are developing with RedHat OpenShift you want to install 'rhc' gem to access remote files on OpenShift. To install 'rhc' you would run the following command. ...
Override parent shortcodes in your WordPress Child Theme
Overriding shortcode defined in WordPress parent theme is pretty easy. Just use a after_theme_setup section in functions.php of the child theme; example: add_action( 'after_setup_theme', 'my_child_theme_setup' ); function my_child_theme_setup() { ...
Unlocking HTC Sensation Z710e Bootloader for Android
Take the following steps to Unlock your Device's Bootloader. Step 1 After powering down, press Volume Down and while pressing Volume Down, press Power holding both buttons to start the device into Bootloader mode. If you have difficulty, power u ...
Create your first real-time AngularJS application
In my previous article I talked about creating real-time PHP application. That was on the server side and I demonstrated a very very basic client to connect with it. Let's take that to next step and create a Javascript client with AngularJS. Code ang ...























