Syed Aslam

Author posts

Creating Python Virtual Environments

in Python · 2 min read

Python applications will often use packages and modules that don't come as part of the standard library. Applications will sometimes need a specific version of a library. It may not be possible for one Python installation to meet the requirements of every application. The solution for this problem is to create a virtual environment, a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages. You can setup as many Python programming environments as you would like.


How to use forked NPM dependencies

in Node · 3 min read

When using open-source NPM packages in your project, odds are you will run into a dependency that is missing a feature. This dependency doesn't do quite do what you want or has a bug that needs to be worked around for your use-case. What do you do in these situations, if your team doesn't have the time to create your custom solution to the problem?

Node JavaScript NPM Web-Development

Dynamic Full Page Background Images in Rails

in Rails · 2 min read

Easy way to set a background from a selected number of images in Rails. You can set a background image purely through CSS thanks to the 'background-size' property in CSS3. Using the `html` element is better than `body` as it's always at least the height of the browser window. You set a fixed and centered background on it, then adjust it's size using `background-size` set to the cover keyword.

rails css helpers

Understanding Linked Lists

in Data Structures · 5 min read

Linked List is a linear collection of data elements, whose order is not given by their physical placement in memory. Instead, each element points to the next. It is a data structure consisting of a collection of nodes which together represent a sequence.

data-structures python