Skip to content

Perpetual Enigma

Notes from the Frontiers of Mathematics

  • Home
  • Archives
  • About

Category: Programming

Understanding Python “Property”

September 13, 2014September 13, 2014 ~ Prateek Joshi ~ 6 Comments

I was tinkering with Python the other day when I encountered the “property” keyword. I had seen it many times before and I sort of knew what it does, but I never really had a chance to dig deep into it. As it turns out, "property" in Python is very useful when you are designing large … Continue reading Understanding Python “Property”

Is There A Problem With ‘git pull’?

August 30, 2014August 31, 2014 ~ Prateek Joshi ~ 2 Comments

This post is specifically about a particular command in git. If you are new to git or don't know what git is, then this post may not make much sense to you. Now that the statutory warning is out of the way, let's carry on. This is actually a continuation of my previous blog post. The command we … Continue reading Is There A Problem With ‘git pull’?

git fetch vs git pull

August 30, 2014August 31, 2014 ~ Prateek Joshi ~ Leave a comment

Git is one of the most popular version control systems available out there. If you are a programmer, you must have used it one time or the other. This post deals with a couple of specific commands. So if you are new to git, this post may not make much sense to you. Git offers … Continue reading git fetch vs git pull

What Is Tail Recursion?

August 11, 2014 ~ Prateek Joshi ~ Leave a comment

Programmers deal with recursion all the time. It's actually quite a nice concept, but not a lot of people use it because of the mystery associated with it. To be honest, there's no mystery as such! Sometimes, a problem is too complex to solve because it is too big. If we can break the problem … Continue reading What Is Tail Recursion?

What Is Pointer Casting?

August 2, 2014 ~ Prateek Joshi ~ 2 Comments

We all know how important pointers are in C++. A pointer is basically an object that contains an address to a variable. We can use this address to access the value stored in that variable, and that variable is located somewhere in the memory. It's like how we use an address to locate someone in … Continue reading What Is Pointer Casting?

What’s The Use Of Function Pointers In C++?

July 6, 2014 ~ Prateek Joshi ~ 3 Comments

When we talk about C++ programming, functions and pointers are very important. A function is basically a series of steps packaged into a nice unit. A pointer is an object that refers to a value stored in memory. So why not just combine them and create something really useful! Function pointer is exactly what you think … Continue reading What’s The Use Of Function Pointers In C++?

Using Hash Function In C++ For User-Defined Classes

June 5, 2014November 21, 2014 ~ Prateek Joshi ~ 10 Comments

If you are a programmer, you must have heard the term "hash function". In its most general form, a hash function projects a value from a set with many members to a value from a set with a fixed number of members. We basically convert the input into a different form by applying a transformation function. … Continue reading Using Hash Function In C++ For User-Defined Classes

How To Deal With Buffer Overflow

May 10, 2014 ~ Prateek Joshi ~ 3 Comments

You must have encountered the word 'buffer' somewhere in your life. In everyday usage, buffer refers to something that acts as an intermediary between two things that don't get along. It's a shield which moderates the impact of one thing over the other. In the programming world, buffer refers to an area where we temporarily … Continue reading How To Deal With Buffer Overflow

How To Schedule Tasks On Linux

April 19, 2014April 20, 2014 ~ Prateek Joshi ~ Leave a comment

Let's say you have a website that does some heavy lifting. This means that you have designed a backend and hosted it on your web server. Now, you might want to run some processes periodically like generating thumbnails or enriching data in the background. The reason for this is that we don't want to interfere with the … Continue reading How To Schedule Tasks On Linux

How To Install PIL On Ubuntu

April 19, 2014April 19, 2014 ~ Prateek Joshi ~ 2 Comments

Let's say you want to play around with images in Python. To do that, we need a Python package that can handle all the image manipulation. Python Imaging Library (PIL) is one of most popular libraries that is used to process the image data. Actually, people use Pillow now, which is a modern repackaged version of … Continue reading How To Install PIL On Ubuntu

Posts navigation

Older posts
Newer posts

Number of views

  • 2,724,351 views

Number of countries

210 countries

Enter your email address to follow this blog and receive notifications of new posts by email.

Blog at WordPress.com.
Perpetual Enigma
Blog at WordPress.com.
  • Subscribe Subscribed
    • Perpetual Enigma
    • Join 601 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Perpetual Enigma
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Loading Comments...