Always Ask, Never Assume

The CNN photographer John was told that a twin engine plane would be waiting at the airport. Arriving at the airport he spotted a plane warming up outside the hangar. He jumped in & said: “Lets go.” The pilot happily took off. Once in the air John told the Pilot: “Fly low over the valley so I can take pictures of the fire on the hill.” Pilot: “Why?” John: “I’m the photographer for CNN. I need to get some close up shots.” ...

नोव्हेंबर 9, 2022 · 1 min · 103 words · शंतनू

IPv6 only experiment

For long time was wondering whether I can shift to 100% IPv6 stack. Finally decided to give it a try. List of site which were evaluated. Category Name IPv6 Ready AntiVirus Macafee No AntiVirus Norton No AntiVirus QuickHeal No Astronomy IUCAA No Banking Axis Bank (Akamai) Yes Banking Axis Bank Netbanking No Banking HDFC Bank Yes Banking HDFC Bank Netbanking No Banking IDBI Bank Yes Banking IDBI Bank Netbanking No* Banking SBI Yes Banking SBI Netbanking Yes Blog Medium (CloudFlare) Yes Blog Wordpress No CDN CloudFlare Yes Cloud Hosting Amazon AWS No Cloud Hosting DigitalOcean Yes Cloud Hosting Heroku No Cloud Hosting Linode Yes Cloud Hosting Oracle Cloud Yes Cloud Infra Open Stack (CloudFlare) Yes Database DuckDB (CloudFlare) Yes Database MariaDB Yes Database MongoDB (CloudFront) Yes Database PostgreSQL Yes Database Sqlite Yes Development BitBucket Yes Development GitHub No Development GitLab Yes Development MDN a.k.a. Mozilla Development Network (CloudFront) Yes Development MSDN MicroSoft No Development Python Package Index Yes Development SourceForge No Development SourceHunt No Editors Vim No Education IISER No Education IITB No Email GMail Yes Email IDNMail.net Yes Email Outlook No Email Proton Mail No Email Yahoo Mail No Email Zoho Mail No Email Client ThunderBird Yes* Encyclopedia Wikipedia Yes Entertainment Amazon PrimeVideo No Entertainment HotStar No Entertainment NetFlix Yes Entertainment SonyLiv (Akamai) Yes Entertainment Zee5 No FOSS GNU - gnu.org Yes Government India (india.gov.in) No Messaging Libera Chat Yes Messaging Matrix - matrix.org (CloudFlare) Yes Messaging Telegram Yes Messaging WhatsApp Yes News AlJazeera (Akamai) Yes News BBC No News CNN (Fastly) Yes News Kesari No News Loksatta (Akamai) No News Maharashtra Times (Akamai) Yes News Prahaar No News Prasar Bharati No News Russian Times - rt.com No News Times Of India (Akamai) Yes News eSakal (CloudFlare) Yes OS Alpine Linux Yes OS Apple (Akamai) Yes OS ArchLinux Yes OS CentOS Yes OS FreeBSD Yes OS IndLinux No OS Microsoft Yes OS Mint No OS NetBSD Yes OS OpenBSD No OS RedHat Yes OS Ubuntu Yes Online Storage Box No Online Storage Dropbox Yes Online Storage Mega Yes Online Storage OneDrive No Programming Go Lang Yes Programming Java Yes Programming JavaScript Yes Programming Lua Yes Programming PHP Yes Programming Perl (Fastly) Yes Programming Python (Fastly) Yes Programming Ruby (Fastly) Yes Q&A Quora (Fastly) No Q&A StackOverflow No SSL Certs Let’s Encrypt No SSL Certs ZeroSSL No Search Bing Yes Search Brave Yes Search DuckDuckGo No Search Google Yes Search Start Page No Shared Hosting DreamHost Yes Shopping AmazonIN (Cloudflare) Yes Shopping Flipkart No Social Network FaceBook Yes Social Network Instagram Yes Social Network Twitter No VCS/DVCS Fossil Yes VCS/DVCS Git Yes VCS/DVCS Mercurial (Hg) Yes VCS/DVCS Subversion Yes VPN Nord VPN No VPN Proton VPN No VPN WireGuard Yes Video Vimeo No Video YouTube Yes Web Server Apache Yes Web Server HAProxy Yes Web Server Nginx Yes WebBrowser Brave Yes WebBrowser Dillo No WebBrowser FireFox No WebBrowser Opera No - NIXI - nixi.in Yes* - Registry.in No - Tor - www.torproject.com Yes No* -> Has DNS entry, site not accessible Yes* -> Website available, Download not available

मे 31, 2022 · 3 min · 508 words · शंतनू

Random Color for iTerm Tabs

Add following in $HOME/.zshrc function color { case $1 in random) t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;red;brightness;${t}\a" t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;green;brightness;${t}\a" t=$((( RANDOM % 256 ) )) echo -e "\033]6;1;bg;blue;brightness;${t}\a" ;; esac } color random

जुलै 13, 2021 · 1 min · 43 words · शंतनू

Python packaging with cython

cython converts python code to C/C++ and creates compiled extensions. Generally this is used to speed up the execution, but one can also use it for protecting their python source code. Code structure package_tutorial +- setup.py +- README.md +- my_pkg +- __init__.py +- module_one.pyx +- module_two.pyx +- utils.pyx # __init__.py from . import utils from . import module_one from . import module_two # utils.py def add(a, b): return a+b # module_one.py import utils def func1(): return utils.add(1, 2) # module_two.py import utils def func2(): return utils.add('abc', 'xyz') # setup.py import setuptools from Cython.Build import cythonize from glob import glob with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() extensions = [] for x in glob('my_pkg/*pyx'): extensions.append( setuptools.Extension(x.replace('.pyx', '').replace('/', '.'), sources=[x])) setuptools.setup( name="My Package", version="0.0.1", author="", author_email="", description="", long_description=long_description, long_description_content_type="text/markdown", classifiers=[ "Programming Language :: Python :: 3", ], packages=['my_pkg'], ext_modules=cythonize(extensions), python_requires=">=3.9", ) Building package # Build .whl. Package will be created in dist directory python setup.py bdist_wheel Install package pip install _whl_file_created_in_dist_directory_ Use package >>> import my_pkg >>> my_pkg.module_one.func1() >>> my_pkg.module_two.func2()

एप्रिल 17, 2021 · 1 min · 170 words · शंतनू

Documentation

Importance of Documentation

ऑक्टोबर 9, 2016 · 1 min · 171 words · शंतनू

Front Door

जुलै 26, 2016 · 0 min · 0 words · शंतनू

Read Receipt and Delivery Receipt

Use following email headers for requesting e-mail acknowledgement. Return-Receipt-To: [email protected] Disposition-Notification-To: [email protected]

ऑगस्ट 27, 2015 · 1 min · 12 words · शंतनू

Strengths And Weakness

जुलै 2, 2015 · 0 min · 0 words · शंतनू

Why the English Language Is Hard to Learn...

The bandage was wound around the wound. The farm was used to produce produce. The dump was so full that it had to refuse more refuse. We must polish the Polish furniture. He could lead if he would get the lead out. The soldier decided to desert his dessert in the desert. Since there is no time like the present, he thought it was time to present the present. A bass was painted on the head of the bass drum. When shot at, the dove dove into the bushes. I did not object to the object. The insurance was invalid for the invalid. There was a row among the oarsmen about how to row. They were too close to the door to close it. The buck does strange things when the does are present. A seamstress and a sewer fell down into a sewer line. To help with planting, the farmer taught his sow to sow. The wind was too strong for us to wind the sail. After a number of injections my jaw got number. Upon seeing the tear in the painting I shed a tear. I had to subject the subject to a series of tests. How can I intimate this to my most intimate friend? Let’s face it - English is a crazy language. ...

जून 15, 2015 · 3 min · 565 words · शंतनू

Code Quality

एप्रिल 18, 2015 · 0 min · 0 words · शंतनू