Skip to content

Instantly share code, notes, and snippets.

View DineshDevaraj's full-sized avatar
💭
A ordinary software developer

Dinesh Devaraj DineshDevaraj

💭
A ordinary software developer
View GitHub Profile
@DineshDevaraj
DineshDevaraj / nodejs_vs_java_for_aws_lambda.md
Created November 4, 2024 04:38
Node.js or Java for AWS Lambda

It depends on your specific use case and requirements. Here are some considerations:

Java

  • Performance: Java can offer better performance for long-running tasks due to its JVM optimizations.
  • Cold Start: Java has longer cold start times compared to Node.js.
  • Libraries: Rich ecosystem of libraries and frameworks.
  • Use Case: Suitable for CPU-intensive tasks and applications that require strong type safety.

Node.js

  • Performance: Faster cold start times, which is beneficial for short-lived functions.
@DineshDevaraj
DineshDevaraj / distributed-storage
Last active July 22, 2020 05:41
Tamil Nadu police department CCTV recordings distributed storage
Hello Sir,
In verge of twin murder by police in Sathankulam, I would like
to bring to your notice that the need of the hour is to establish
live streaming of every police station CCTV to a centralized
monitoring facility most propably SP Office
The thought of superior officers monitoring them will deter the
subordinates from getting involved in illegal activities like the
import time
import pyautogui
screenWidth, screenHeight = pyautogui.size()
iconx = 85
icony = screenHeight - 25
I = 0
1. Cryptography
1.1 Hashing
1.2 Encryption
1.2.1 Symetric
1.2.2 Asymetric
2. Block-chain
3. Proof-of-work
In the website landing page in the News scroll there is a spelling mistake in the PDF document "Year wise Toll Colelction since inception - As per available data for all projects" Colelction should be Collection
I "toll plaza at a glance page" the following toll plaza are wrongly shown under West Bengal which are actually in Tamil Nadu
460 West Bengal 67 Manavasi Km 198.500 Trichy - Karur
464 West Bengal 44 Rasampalayan Km 259.500 Nammakal - Karur
467 West Bengal 81 Thirupparaithurai Km 157.500 Trichy - Karur
468 West Bengal 44 Velanchettiyur Km 338.000 Karur Bypass - Dindigul bypass
In the PDF document "Year wise Toll Colelction since inception - As per available data for all projects" the last 2 entries in page 11 and first 2 entries in page 12 have same serial number
#
# Date : 15/May/2018
# Author : Dinesh Devaraj
# Mobile : 8939773989
# Email : [email protected]
# Github : https://github.com/dineshdevaraj
# Gist : http://bit.ly/deepvalue-bsprob
#
import sys
from xml.dom import minidom
def PrintXml(root, pad) :
sys.stdout.write("\n%s%s : " % (' '*pad, root.tagName))
for child in root.childNodes :
if isinstance(child, minidom.Text) :
if child.data[0] != "\n" :
import os
import time
from datetime import datetime
from stat import *
#
# 1. File type (directory / regular file)
# 2. File permission (owner, group, others)
# 3. Owner name
# perl
use strict;
use warnings;
sub split_comment
{
my $line = shift @_;
my $fhandle = shift @_;
my @line = split //, $line;
struct Manager;
struct Employee
{
Manager * promote_to_manager();
};
struct Manager : Employee
{