Open in app

Sign In

Write

Sign In

Afnan Mostafa
Afnan Mostafa

19 Followers

Home

About

Published in Level Up Coding

·Feb 18

Binary vs. ASCII

Computers only know 0's and 1's, or a combination of them. So any character (numeric or non-numeric) must be converted into a binary representation so that our little computer fella can understand what it is being fed into. …

Binary

9 min read

Binary vs. ASCII
Binary vs. ASCII
Binary

9 min read


Published in Level Up Coding

·Jun 17, 2022

How to use SED to manipulate text files (Part 2: pattern, regular expression)

This is part 2 (hopefully final) of my SED cheatsheet and here, I will explain pattern matching and regular expression in SED. So let’s jump straight into it. Let’s consider the same file we used in part 1. The link to part 1 is given here. Pattern: Case-sensitive: sed -n ‘/lammps/p’…

Unix Command

3 min read

How to use SED to manipulate text files (Part 2: pattern, regular expression)
How to use SED to manipulate text files (Part 2: pattern, regular expression)
Unix Command

3 min read


Published in Level Up Coding

·Jun 16, 2022

How to use SED to manipulate text files (Part 1: print, delete, append)

SED (stream editor) is a successor of ED and QED (quick editor) in Unix-like systems and is used for plain text editing. It’s not rare to find us in a situation where we have to extract some data from a humongous file or get one or two columns from a…

Unix

5 min read

How to use SED to manipulate text files (Part 1: print, delete, append)
How to use SED to manipulate text files (Part 1: print, delete, append)
Unix

5 min read


Jan 14, 2021

Writing A Long, Yet Attention-Retaining Statement of Purpose (SOP)

A Statement of Purpose (SOP) can be referred to as a document including all the blanket statements about an applicant’s life story. In other words, an SOP encompasses every relevant positives-and-negatives of the applicant’s academic life. An SOP, otherwise known as the Statement of Intent or Academic Statement, can be…

Statement Of Purpose

5 min read

Writing A Long, Yet Attention-Retaining Statement of Purpose (SOP)
Writing A Long, Yet Attention-Retaining Statement of Purpose (SOP)
Statement Of Purpose

5 min read


Published in Level Up Coding

·Dec 3, 2020

How to Create Tables in LaTeX (in Layman’s Terms)

Why do we need to create tables using commands and environments in LaTeX when someone already took the toll to generate the built-in functions that give out a beautiful user-interface (UI) to create tables to our satisfaction, like in Microsoft Word? Literally, we are just a few clicks away from…

Latex

10 min read

How to Create Tables in LaTeX (in Layman’s Terms)
How to Create Tables in LaTeX (in Layman’s Terms)
Latex

10 min read


Published in The Startup

·Nov 28, 2020

Mathematical Terms in LaTeX

So to initiate, we need to declare the type of document we want to have our project printed in; that is, whether we want an article or a book-type document. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb} Then, we need some packages to help the LaTeX compiler understand the lines we are…

Latex

5 min read

Mathematical Terms in LaTeX
Mathematical Terms in LaTeX
Latex

5 min read


Published in The Startup

·Nov 25, 2020

Nitty-Gritty of Quantum Mechanics from a Rubberneck’s POV (Detour Chapter: Space)

(Prologue: In order to understand how mathematical formalism in Quantum Mechanics works, we have to get a good grasp on the Hilbert Space, and for that, we need to know what Space is in terms of mathematics before jumping onto the Hilbert Space. …

Vector Space

8 min read

Nitty-Gritty of Quantum Mechanics From a Rubberneck’s POV (Detour Section 1: Space) (Chapter:2)
Nitty-Gritty of Quantum Mechanics From a Rubberneck’s POV (Detour Section 1: Space) (Chapter:2)
Vector Space

8 min read


Published in Curious

·Nov 20, 2020

Nitty-Gritty of Quantum Mechanics from a Rubberneck’s POV (Chapter 1)

Quantum Mechanics- a hard nut to crack? Let’s break it down to its root words- Quantum and Mechanics. Let’s start with Mechanics; this is related to the mathematical formalism of things- from a grain of sand to the moon and so on- with which the whole universe can be described…

Quantum Mechanics

7 min read

Nitty-Gritty of Quantum Mechanics from a Rubberneck’s POV (Chapter 1)
Nitty-Gritty of Quantum Mechanics from a Rubberneck’s POV (Chapter 1)
Quantum Mechanics

7 min read


Published in The Startup

·Aug 16, 2020

HAL/S, Language of NASA’s Space Shuttle Programs (Part 1)

HAL/S (High-order Assembly Language/Shuttle) is a programming language developed for NASA in the early 1970s by Intermetrics. HAL/S is regarded as one of the then real-time, high-level programming languages for onboard programs of Spaceflights. Almost 85% of the programs used in the Space Shuttle programs were written in HAL/S. At…

NASA

5 min read

NASA

5 min read


Aug 7, 2020

Constants in Big O Notation

Constants in big O notations are usually ignored because they don’t add much to the complexity when the input size is very large. But, they do have significant meaning when the input is small or when we want to make a comparison between different algorithms. …

Big O Notation

3 min read

Big O Notation

3 min read

Afnan Mostafa

Afnan Mostafa

19 Followers

Science-savvy

Following
  • Benjamin Obi Tayo Ph.D.

    Benjamin Obi Tayo Ph.D.

  • Trey Huffine

    Trey Huffine

  • Alessandro Butler

    Alessandro Butler

  • Amanda Iglesias Moreno

    Amanda Iglesias Moreno

  • Alex Aklson

    Alex Aklson

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech