Update: 03/06/2017

Posted on

Two of our papers have ben accepted at The 10th Malaysian Software Engineering Conference (MySEC2017) which will be held on August 7 – 9, 2017 at the Universiti Malaysia Terengganu, Malaysia.

More details will be shared soon.

Advertisements

Jupyter Notebook is not working even after Installing Anaconda Under Windows 10

Posted on

1. Add a new Environment Variable name = JUPYTER_HOME and value= C:\Users\UserName\Documents\Notebooks under System Propoerties -> Environment Variables.. -> User Variable.
2. Add the location of Jupyter script as the Path in the Environment Variable.

 

Mapping Between IP Address & Host Name: The Secret Mechanism behind “localhost”

Posted on Updated on

If you are a student of Computer Science, then certainly You’ve heard of  “localhost”. You might also know that, instead of writing “127.0.0.1” again and again for accessing some content from your computer, you can use “localhost”.

But did you ever ask yourself how that works??? If you haven’t asked yet, then this blog is exclusively for you!! I’m gonna explain it from the beginning to help you remember the basics.

 

Read the rest of this entry »

Script Automation in Linux using Crontab

Posted on Updated on

Hello,

Today I would like to discuss regarding script automation using Crontab. Let’s start first with what I meant by Script Automation?- Let’s say You want to run a script after every five minutes. How you can do that? Running the script after every five minutes manually? Well, that’s where script automation comes.

Now, it’s turn about Crontab. So for this, I would like to tell you to use Google!!!.

First, Write a script. A script that will measure the memory usage and if the memory usage is greater than a certain value then it’ll send an email.

So here is the script:

Read the rest of this entry »

How to Read from INI file through Batch File

Posted on Updated on

Let’s assume we have a config.ini file like below:

userName="hemel"
password="password"

What we want to do is to read these value through a batch file. So let’s create a batch file named “test.bat” with following commands:

@echo off
for /f "tokens=1,2 delims==" %%a in (config.ini) do (
if %%a==username set username=%%b
if %%a==password set password=%%b
)

echo %username%
echo %password%

keep in mind that, the path of the config.ini file should be updated according to your file structure. In this case both of the files are at the same level.

Enjoy 🙂

How to read JSONL file in Python

Posted on Updated on

JSONL or JSON Line is considered as newline-delimited JSON file where each line contains a single JSON encoded item.  As of today (17/4/2017), the version of the latest json_lines package that is available for python is 0.2.0. which indicates that it is a new and much younger format. Today, I will only discuss on how to read a JSONL file in python. So if you want to know more about JSONL, then you can check here.

Read the rest of this entry »