Coding Brewery

  • Blog
  • Software development
    • Clean Code
    • C++
    • Python
    • Java
    • Devops
      • Docker
      • Linux
  • Machine learning
    • Maths
      • Median absolute deviation (MAD) of Errors
      • R-Squared/Coefficient of determination
      • Distribution of error functions
      • Logarithmic loss (or cross-entropy)
      • Receiver operating characteristic (ROC ) curve
      • Confusion Matrix
      • Maths 101: Part 8: Hypothesis testing
      • Distribution of error functions
      • Maths 101 : Part 7: Estimating Confidence Intervals
    • Data Science Libraries
    • Dimensionality Reduction
  • Career Advice
  • Home
    • Contact Us
    • About

admin

Miscellaneous

Writing your own Web server that can handle multiple connections

If you are familiar with socket programming, you would be aware that send and recv are usually blocking calls. This means that the code execution will be blocked until they are successfully resolved. This prevents us from writing TCP servers that can respond to multiple clients. However, there are different Read more…

Like this:

Like Loading...
By admin, 2 yearsJanuary 2, 2023 ago
Career Advice

ADHD Management The hard way as a software Engineer

I was recently diagnosed with ADHD (Attention Deficit Hyperactivity Disorder) as an adult, and suddenly, an epiphany ran through my eyes. My life span through my eyes in a short video clip when I learned more about it. It made sense now why I couldn’t sit at a place for Read more…

Like this:

Like Loading...
By admin, 2 yearsDecember 27, 2022 ago
Miscellaneous

LRU Caches in Python

The Least Recently Used (LRU) cache is a cache eviction algorithm that organizes elements in order of use. In LRU, as the name suggests, the element that hasn’t been used for the longest time will be evicted from the cache.

Like this:

Like Loading...
By admin, 2 yearsDecember 24, 2022 ago
Miscellaneous

Emacs (spacemacs) Keybindings I use

I recently started using Emacs for text editing purposes and was pleasantly surprised. My main goal to learn it was to work efficiently in teams that don’t have a nice local dev environment and you need to have a dev machine running to run, build, and debug your code.I started Read more…

Like this:

Like Loading...
By admin, 3 yearsJune 24, 2022 ago
Miscellaneous

My favorite Chrome browser extensions for productivity

AdBlock for blocking ads. also adblock plus Go Fucking Work is what I use to block sites like Reddit or Facebook so that I don’t get distracted. Grammarly is a grammar-checking extension for you to improve any writing. (It’s also available for Firefox and Safari if you use those.) Lastpass is the password Read more…

Like this:

Like Loading...
By admin, 3 yearsJune 18, 2022 ago
C++

Implementing 2d Arrays in CPP

C++ hasn’t yet caught up with implementing 2D arrays like other languages yet. So there is no inbuilt 2D array in C++.But lose no hope, with some template programming to the rescue we can create our own multidimensional data structure. Here is a basic design of how a 2d Array Read more…

Like this:

Like Loading...
By admin, 3 yearsDecember 24, 2021 ago
C++

Thread-safe queue implementation in C++

Below is an implementation of thread-safe queue using synchronization primitives.

Like this:

Like Loading...
By admin, 4 yearsSeptember 6, 2021 ago
C++

Compile-time vs run time size computation for array in C++

There are 2 ways in C++ to get the size of an array. The first is using run-time computation with sizeof, but there is a better compile-time way to compute the size. The way to do it as follows: Note: char* is not the same as char[]. When you do Read more…

Like this:

Like Loading...
By admin, 4 yearsAugust 8, 2021 ago
Miscellaneous

Topological Sort: All possible Orders

Topological Sort is used to find a linear ordering of elements that have dependencies on each other. For example, if event ‘B’ is dependent on event ‘A’, ‘A’ comes before ‘B’ in topological ordering. Lets say we are asked to find all possible variations of topological sort. There are ‘N’ tasks, Read more…

Like this:

Like Loading...
By admin, 5 yearsJune 13, 2020 ago
Miscellaneous

Measuring Performance of Machine learning models

To measure how well our models are performing we may need to define some metrics. One of the metrics which is quite straight forward is accuracy. Accuracy is defined as the number of correctly classified points divided by the total number of points in Dtest.  But there are several places Read more…

Like this:

Like Loading...
By admin, 5 yearsNovember 24, 2019 ago

Posts pagination

Previous 1 2 3 4 Next
  • About
  • Blog
  • Checkout
  • Contact Us
  • Home
  • Privacy Policy
Hestia | Developed by ThemeIsle
%d