Photo by Vitaly Vlasov from Pexels
Photo by Vitaly Vlasov from Pexels

Have you ever thought of why internet cookies are called cookies? 🤔 Actually, it was coined from the term ‘magic cookies’ that derived from a fortune cookie 🍪; a cookie with an embedded message, just like the real cookie with some embedded crumble on it. It’s interesting, isn’t it?

What is a Third-Party Cookie?

There are different kinds of cookies, third-party cookie is one of the kinds which is set by a domain that is not the one that you see in the address bar, mostly they collect information from users for analytic purposes. This has been essential to advertisers…


In our daily 9–6 jobs, we hardly get a chance to pop out of our regular duties and spread our wings into something interesting to expand our knowledge spectrum, not getting a chance to try out some silly crazy things might also lead to experience monotonous feeling from the work. I think it is important to try out new things from time to time to get energize and live up to the spirit.


Monolithic Architecture

The literal meaning of Monolith is something huge, like a single giant stone. In the same way, the Monolithic architecture is the traditional unified model for the software development where the application is single-tiered in which the user interface and data access code are combined into a single program from a single platform.

The monolithic application can be also comprised of a series of components within a single platform such as User Authorization, Presentation View, Business Module, Persistence Layer, Integration Layer, etc. …


Earlier, I explained about username/password authentication to authenticate the users before serving the content. Let’s check out few cool extensions on basic authentication together with IP address, specific URLs, and cookie handling this time.

Prerequisites

  • The password file is already created (htpasswd)
  • username/password authentication is already working

Basic Authentication together with Access Restriction by IP address

Restricting certain IP address together with HTTP basic authentication can be also achievable with few configurations. Let’s see this implementation in the following two cases.

Case 1: Allowing access to the user with a valid username/password as well as with a valid IP Address

server { location / { # satisfy all conditions satisfy…


Whenever we think of JavaScript debugging 🤔 console.log, debugger, browser dev tools are some terms that come up in our mind but have you ever thought of debugging JavaScript with IDE?

This post will guide you to integrate JavaScript debugging in PhpStorm in no time.

Lets get started…

Step1 — Install JetBrains IDE Support extension

First of all, you need to install JetBrains IDE Support extension for Google Chrome to debug client-side apps in any IDEs from JetBrains.

After installing the extension, now you should see the JetBrains icon in your google chrome panel.


It is very common practice to restrict your development environment with some sort of username/password authentication so that the visitors has to authenticate first before landing into the website. For this purpose, HTTP basic authentication comes really handy, it is a simple response mechanism with which a server can request authentication information (userId and password) from a client, if the client provides correct credentials then the server serves the protected content otherwise sends authorization error with 401 status code.

Lets get started

Prerequisites

  • NGINX
  • apache2-utils as a password creation utility

Step 1 — Create a Password File

Creating a password file with a first user user1. Run the htpasswd utility with…


Integrating Xdebug on PhpStorm has been always hectic, something always comes up which makes you to go through number of guides on the web and cost lot of time, if you are lucky you will somehow manage to integrate successfully otherwise keep on looking…

I faced this kind of situations multiple times in past and one more recently with macOS Catalina. I managed to integrate successfully after spending quite bit of time but this time, I would like to share my findings with you so that you don’t have to bang your head on the wall :)

The problem with…

Yubraj Ghimire

A Web Coder

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store