Tutorials  Articles  Notifications  Login  Signup


Sign in to Publish articles, apply into jobs, participate in Hackathons.

Sign in

RK

Rajan Kumar

Founder at HackersFriend Jan. 22, 2023, 8:38 p.m. 43 views

How to get inside docker container shell ?

To get inside a running docker container you can use below command:

docker exec -it <container id> bash

or

docker …

RK

Rajan Kumar

Founder at HackersFriend Jan. 20, 2023, 1:54 p.m. 40 views

Python - check if a path is file or directory

To check whether given path is file or a directory we can use Python’s isdir() and isfile() functions. See below …


RK

Rajan Kumar

Founder at HackersFriend Updated Jan. 20, 2023, 1:39 p.m. 51 views

Python - Raise an exception with message

In order to raise an exception in python you need to use raise keyword followed by type of exception. For …


RK

Rajan Kumar

Founder at HackersFriend July 10, 2022, 11:08 p.m. 342 views

How to present your software engineering projects

A lot of software engineers struggle at making an impactful pitch of what they have built and not do a …


RK

Rajan Kumar

Founder at HackersFriend July 9, 2022, 9:17 a.m. 327 views

Most common mistakes you should avoid in interviews

After interviewing 50+ candidates for senior and junior software engineer roles for my team, here are the most common patterns …


RK

Rajan Kumar

Founder at HackersFriend May 9, 2022, 9:25 p.m. 565 views

Leaky Bucket algorithm for Rate limiting system design

Designing a rate limiting system for any API can be done in many ways. In this article I'll talk about …


RK

Rajan Kumar

Founder at HackersFriend Updated April 24, 2022, 6:09 p.m. 671 views

How to format date output in Linux bash script

To get current timestamp in bash you can use:

timestamp=$(date +%s)

This will give you seconds since UNIX epoch …



RK

Rajan Kumar

Founder at HackersFriend July 18, 2021, 12:59 p.m. 1226 views

What is HTTP header X-Forwarded-Host ?

The HTTP X-Forwarded-Host header is the part of HTTP header that contains information for identifying the original host requested by the …


VK

Vikash Kale

Programmer and Software Engineer at Tata Consultancy Services Jan. 8, 2021, 7:55 p.m. 2638 views

Program Code - calculate the absolute difference between the sums of its diagonals.

Given a square matrix, calculate the absolute difference between the sums of its diagonals.

For example, the square matrix  is shown …


HackerFriend Logo

Join the community of 1 Lakh+ Developers

Create a free account and get access to tutorials, jobs, hackathons, developer events and neatly written articles.


Create a free account

View more
HackerFriend Logo

Join the community of 1 Lakh+ Developers

Create a free account and get access to tutorials, jobs, hackathons, developer events and neatly written articles.


Create a free account

HackersFriend Updates




View more