I didn’t “Hack” Your Site

If you are seeing my website instead of the one you’re supposed to see, this post is for you. I sharing a hosting server with several hundreds of people. That server had a hardware failure, and backups are being restored as I speak.

Why are you seeing my site?

My Domain starts with the letter A. Thus, it was copied to the server from a backup first. Even before the default file, as it starts with D. So, for a brief period, you saw my site. Till that default got copied over.

I didn’t hack you.

Please contact your hosting provider.

Visualizing and Understanding Grassroots Healthcare in Bangladesh

I made use of publicly available data from the Directorate General of Health Services to get a picture about healthcare in all across Bangladesh.

Data Source: http://facilityregistry.dghs.gov.bd

Continue reading Visualizing and Understanding Grassroots Healthcare in Bangladesh

Categorical and Numeric Data in Scikit-Learn Pipelines

I always tend to organize every aspect of my experiments with organizers as useful as Pipeline. However, one shouldn’t be passing continuous variables into a OneHotEncoder or vice versa for Scalers. The solution is, split your data, treat them in separate pipelines before merging them together again. Inspired by Scikit Learn Examples.

Continue reading Categorical and Numeric Data in Scikit-Learn Pipelines

Counting Weekends between Two Dates in PostgreSQL

I found myself the problem of counting the occurrence of specific “days of the week” between two dates; for, of course, generating features for a predictive analysis task. For example, the number of Fridays and Saturdays between 2019-01-01 and 2019-01-15. And thankfully, good old PostgreSQL came to the rescue!

Continue reading Counting Weekends between Two Dates in PostgreSQL

GP launched 013: Update your RegExp!

Grameenphone quietly rolled out its 013 series of numbers and it wrecked everything. No web service, including Google is working with this 013 series of numbers. Its time for developers to fix this mess and update every validation logic you may have for validating mobile numbers or MSISDNs.

I enlisted a few RegExps for de-terrorizing you, even if a bit.

01[35-9]\d{8}

Enough reading, update your RegExps now!

Flask-like “global” request context in Sanic (asyncio)

Although something like Flask’s globally accessible request object is considered a terrible way of writing code (explicit is better than implicit), sometimes it makes sense to use it. For example, while passing a Correlation-ID to track a request’s life cycle through your micro-services.

Continue reading Flask-like “global” request context in Sanic (asyncio)

Erlang and Elixir: Managing Multiple versions with asdf

Often keeping multiple versions of Erlang or Elixir on the same machine might become necessary; also it helps to have the latest versions on your machine as soon as they are released. An amazing tool asdf is capable of doing just that. It makes things as easy as,

asdf install erlang 20.3.2
asdf install elixir 1.6.4
asdf global elixir 20.3.2
asdf global elixir 1.6.4

Continue reading Erlang and Elixir: Managing Multiple versions with asdf

3 Tools To Help With Writing Scientific Papers

You are finally ready to start writing your first scientific paper, maybe for a journal or conference. But you don’t know where to start. You have heard of LaTeX, BibTex, Citations and nothing is really adding up. You just need easy and uncomplicated tools to work with. Learning about the new tools should not be more difficult than writing the paper itself! I am discussing a few tools and websites here, for beginners.

What is LaTeX and why does it matter?

Wikipedia prescribes LaTeX as a document preparation system; the official website states it as a typesetting system. I would describe LaTeX as a system for preparing documents where fine-grained pixel-by-pixel perfection is a reality. The leading conferences or journals provide their template in LaTeX, and often in word-processor formats. Personally, I have found word processor behavior to be quite unreliable and prefer LaTeX for it’s ease and simplicity. A quick search on your favorite search engine might (and probably will) more reasons to use LaTeX.

BibTex is a markup format for bibliography generation. It is used a lot in par with LaTeX for generating citations according to the required styling.

ShareLaTeX

ShareLaTeX is a website similar to Google Docs, for LaTeX. It allows collaborative editing, history tracking and free hosting online. It also helps out by providing a plethora of templates to choose from; including templates from well-reputed journals or conferences. You will not need to install anything other than a modern web browser on your computer for using ShareLaTex, everything is done online. As per expectation, it can preview and export as PDF.

CiteThisForMe

CiteThisForMe is a great website for managing your bibliography. You can generate citations for books, websites, journal articles and more. By the way, citations are the references you make to content your paper “borrows ideas from”. A variety of export styles are supported, including Harvard, MLA, Vancoover et cetera or the generic BibTex.

Google Scholar Extension for Chrome

This extension lets you search for any piece of text on Google Scholar. Also lets you discover papers, generate citations all without leaving your current tabs. I find it extremely handy for generating quick citations and searching for referenced papers while reading.

I am planning to write down a very basic tutorial on LaTeX syntax sometimes in the near future. Please let me know in the comments if you are interested.