Categorize the files by year and month as folders

before categorize

I came across an incident that there is a screenshot directory that contains more than 4000 high-quality images, when I open the screenshots folder every time the system hangs even sometimes it freezes too. So I needed to find a solution to categorize all of my images into folders even it’s not possible by just cut and paste through file explorers.

I needed to move an image to a folder named the year and month from the image’s created date also at the end of this categorization I needed to mention…

This article is based on the question asked on StackOverflow.

The approach is to send an Angular component-based dynamically generated templates to users’ email from the Angular SSR project.

Find the example repository at the bottom of this answer.

The steps you need to follow;

  1. Design your templates in an individual routing path that is dedicated to showing only the email templates not your navigation bars, global CSS, etc.



import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
selector: 'app-welcome-email-component',
templateUrl: './welcome-email-component.component.html',
styleUrls: ['./welcome-email-component.component.css']
export class WelcomeEmailComponentComponent implements OnInit {
username: any;

Socket.IO Session Handling Algorithm

Pure JavaScript Module for Session Handling | NPM

When we use Socket.IO for connecting many clients at a same time with Socket transports we need to handle the connection and disconnection triggers at the time of the event occurred, but unfortunately, you need to do a lot of array-based connection operations to simply handle the connections, that’s why the io-session-handler library was built for.

Let me explain the logic behind this Socket.IO connection method.

When the first time a client connected to Socket.IO server from a browser the Socket.IO creates an ID for the particular connection and manages it by itself and when the user creates another browser…

Enable HTTPS secure connection to Socket.IO and Android

If you are going through the Socket.IO HTTPS connection issue on Android by following the Socket.IO official tutorial

You have to do some changes to your project to make it work.

First of all, if you have followed the above official reference from Socket.IO you might have included the library as below which is no longer valid.

implementation '

It seems the Socket.IO official documentation is not that much updated.

You need to implement the below library instead of the above one.

👍implementation ''

Then you are good to import or replace the imported libraries from the…

The modern look is always better with powerful features.

Finally, some expected UI has been launched with some cool stuff.

Finally, the UI has been released with the feature preview.

GitHub has been in an ordinary UI look for many years so far, but they have been trying to give so many new features for developers such as GitHub Actions and automated pull requests for security vulnerabilities.

Anyway, those features are out of the UI looks but finally they’ve made something on the look of the UI as all the developers expected.

The old repository view,

Get A+ Grade in SSL vulnerability testing and prevent hacking.

Certbot is a Python CLI which helps to generate certificates.

Testing summary from

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. It is a service provided by the Internet Security Research Group (ISRG).

It gives people the digital certificates they need in order to enable HTTPS (SSL/TLS) for websites, for free, in the most user-friendly way we can. We do this because we want to create a more secure and privacy-respecting Web.

Let’s Encrypt will serve as a platform for advancing TLS security best practices, both on the CA side and by helping site operators properly secure their servers.

If you want to know more…

From a native Sri Lankan developer.

Photo by Austin Distel on Unsplash

Developing Software in Sri Lanka is so affordable?

Wow it’s a nice question but believe me, the statement you get here will give your brain spin.

Since it’s very simple to answer but you need to know the primary reasons which make this happen for many years.

The software industries are moving nowadays on artificial intelligence, machine learning, and own algorithms. …

Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device, we can install apk files to any debuggable Android devices directly using adb terminal command.

adb install file.apk

You can install the apk file from the URL directly using the help of below shell script file.

adb-url-install “"

Shell script can be forked from this Gist for the further developments.

Everything matters when it delivered on time, so why not the same rule applies for your programming unless you are developing a system for turtles.

Getting the execution time of a bunch of methods together in one line will not give you an accurate time. You can execute each method in Java runnable class to measure the elapsed time of each and every method with the identification name.

The below method is a demonstration of getting elapsed time of “myMethod()” by executing the method inside a runnable interface into “ProfileTime.exec()” static method.

Copy the ProfileTime class into your project and…

Aslam Anver

Passionate in AI Deep Learning, Find me on GitHub & StackOverflow

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