Posts

Blockchain workflow and challenges

Image
Moving on in the blockchain, let's take a deeper dive in the blockchain domain and understand how does blockchain work and what are some of the challenges while working with blockchains. First, let's see a basic blockchain So as discussed in the previous blog, this is how the linked list gets connected, the next element in the blockchain consists of the Hash value of the previous element in the blockchain and so on. Blockchain lexicon update Decentralized Ledger - The ledger for cryptocurrencies is maintained in a decentralized manner, wherein the same ledger is given to all the compute nodes thus there is no centralized node that manages everything thus the risk - wherein one node goes down, leading to the closure of the entire bank - is dislodged. Now let's see something that's there in the blockchain and is very much important but is not talked about i.e. Double Spend Attack As the name is self-explanatory, a Double Spend Attack (SDA) is so...

Cryptocurrency & Blockchain

Image
Today we have a look at what is a cryptocurrency, what blockchain is, how does it link to a cryptocurrency! So let's dive straight into cryptocurrency and see what it is! Very well defined at Wikipedia " A  cryptocurrency  is a digital asset designed to work as a medium of exchange that uses strong cryptography to secure financial transactions, control the creation of additional units, and verify the transfer of assets.", but is it actually is in even simpler language "A cryptocurrency is a digital currency that is created and managed through the use of advanced encryption techniques." A few keywords that you might need to know when talking about cryptocurrency are as follows:  Wallet - a place to store your cryptocurrency credentials: namely your private key  Private key - a 256-bit number, expressed as a hexadecimal  Eg: 9873D79C6D87DC0FB6A5778633389F4453213303DA61F20BD67FC233AA3326  When people say that they have lost their cryptocurrency(s...

A Brief about RDMA, RoCE v1 vs RoCE v2 vs iWARP

Image
Hello folks, Today we'll see what RDMA is and how different kind of network solutions work over Ethernet. For those who are wondering what these words are, this is a post about Networking and an overview can be, how to increase your network speed without adding new servers or IB over your network, wherein IB stands for InfiniBand which is basically a networking communication standard majorly used in HPC  that features very high  throughput  and very low  latency , for what HPC is, refer to my previous blog. This is how a Mellanox IB cable looks like In order, not to use IB, increasing the speed for Ethernet-based solutions is a better and cost-effective solution in many cases which is implemented using RDMA, thus saving cost and technology shift overhead for every admin out there. So let's see what RDMA is, RDMA stands for Remote Direct Memory Access  is a  direct memory access  from the  memory  of one computer int...

What is H.P.C. and how it works?

Hello Fellas, It's been a long break for me and the page, first of all, sorry for all this but now the page is back and active as it was. Today we'll be taking a deep dive into what HPC is, how it works and why so many people are talking about it. Starting with a basic introduction of what HPC stands for and what is basically means. HPC stands for High-Performance Computing and what it means is aggregating a big amount of computing power in order to solve large problems in almost all fields, there are problems which requires huge computing power which is thus provided by HPC solutions. Now let's talk about where you might have heard of HPC and related stuff. You might have heard of supercomputers used by many such companies like Google for AI and many other purposes which indeed consists of thousands of processors to tackle problems of huge sizes which requires a whole lot of calculations and data processing to achieve one goal or the other. Many scientists are using t...

Swift vs Objective-C (What to choose and where to choose)

Good Morning Fellas, Today we’ll be talking about iOS development! Don’t get too excited guys because this is not a hands-on for an iOS application development but you can consider it kind of prerequisite for development in iOS. As we all know that what we require to start developing a new application is some sorts of technologies and some languages. So what you’ll be needing for an iOS application development is as follows: -> MacOS (VM will also do, just make sure you have enough R.A.M.) -> xCode 7.0 ( preferred ) -> A language to code on (Swift or Objective-C ) So now let's have a look at what swift is and what Objective-C is, and what should you choose to start with the development of iOS application. Here I’ll try to cover all the pros and cons of both the languages and which one you have to choose is wholly your decision based on the demands of your project. So let's begin with a brief definition of these. Here are the wiki definitions, ** Swift ...

Repairing your Ubuntu or Linux Dist. manually

If you are a regular user of any Linux based operating System then it is for sure that you have faced the error of "Broken Packages". When you are installing something new to your OS, it says Package cannot be installed because Package A depends on Package B, but Package B cannot be installed because of broken packages and this issue might occur while updating your system using Software Updater. If you have faced this error then trust me, you have a really good hand in that Linux Based OS because you have worked enough to corrupt it once. Now making this post a little brief lets jump directly to the solution!! There are more then one solution for it and different in OS using different packaging system, if your system is using dpkg , thus implying you'll be using apt to keep everything in tandem. So here is a list of solutions you can try for Ubuntu and few Others: This is the most easy solution if you hate CLI, but is not recommended at all. Use Synaptic Package ...

Working with MVC using Laravel 101

Laravel starting with MVC and Laravel from Scratch If you are afraid of coding or maybe MVC or maybe frameworks like Laravel, nette or *, don't worry, everyone is here to learn, someday you have to do it and trust me today is the day for you to learn MVC and Laravel ( checked your horoscope, your stars are shining bright ) Prerequisite: A working system ( OS X/ windows / linux(preferred -> you'll get to know why) ) basic knowledge of php, html, css, javascript, firebase, angular js, mysql, node js, Java An I.D.E. (hope you know, what we are dealing with) : PhpStorm (An advise not a suggestion) Working internet connection In a mood to do hands on Ooh, you got lucky, you just need php and html ( told you your stars are bright)  Let's begin now, Step 1: Installing Laravel Install Composer first, it'll help you to download all the dependencies which laravel or any other project require. You just need to command composer to do so. Go to this link to see ...

Model View Controller (The basics of </>)

M V C the basics of web development Today we'll have a look at Model, View and Controller. We'll all know that web technologies are the ones trending these days, everyone want to shift to web rather then going mobile. So let's see what is there in this fragment of web which keeps all the assiduous motivated to learn this and to make new developments in it. Let us first have a look at what MVC is in laymen language. Model: Model acts exactly as human brain, what it does is it keeps the business logic with in it and helps the application to implement what is required to make advancement in the service from business point of view. View: View is similar to our skin, all the users i.e other humans see it, our view (lets say eyes) obtain data from external world and sends it to our brain i.e. the Model, but here lies the issue, Views are not meant to directly communicate with the Models, that brings the 'C' i.e Controllers into the picture. Controllers: As per our...

Terms you often see in Ubuntu

Today's blog will be on Terms which we  often see while using Ubuntu but we usually ignore them as they are not of our use and doesn't bother us with anything. Terms which will be discussed today will be: purge saucy yannubuntu IGN HIT GET PPA launchpad i386 amd64 x86_64 Backports Purge , purge is a package that is used to remove applications completely and removing all the instances of it. We can do that by using one of the following commmands: > sudo apt-get purge > sudo apt-get --purge remove Whether they should or shouldn't both exist is perhaps a debating point. However - they are absolutely identical. You can also check that by going through the man page of apt-get. Saucy is basically Saucy Salamander who provides two images for ubuntu where one is the desktop version, the desktop image allows you to try Ubuntu without changing your computer at all, and at your option to install it permanently later. Second is the server image, t...

Directory Sturucture of Linux

Hello Readers, This blog was supposed to be on Web Development but is on Directory Structure of Linux because of a user request. Today we'll be looking deep down in the hierarchy of Linux Directories. First let's list all the directories which are present in a Linux based Operating System. Few of the directories varies from system to system which we'll not discuss like lost+found and few more. So lets look at the basic and required directories. This Hierarchy is formed under FileSystem Hierarchy Standards (F.H.S.). In total we'll discuss a total of 16 Directories which are as follows: /bin /boot /dev /etc /home /lib /media /mnt /opt /sbin /srv /tmp /usr /var /root /proc These are the 16 directories which are present in the most important directory .i.e ' / ' which is the root directory not the one mentioned above this ' / ' directory contains all the directories mentioned above. Now talking the directories mentioned above:-:  ...

Installing and Uninstalling packages from source

Hello Readers, Today I'll tell you about installing packages in Ubuntu using the config file and the .tar of the package. Firstly we'll extract that .tar file which consists of the files required to install the package.            ***************run the commands via sudoers**************** There are 2 main files in the archive where first is the config file and second is the make.in file. The config file is the file which consists of all the configuration required for the package, it checks for the preliminary packages which are required and the version whether they are updated to the latest or not and other prerequisites required for installation. To run the configure file you first need to move to that directory. Let's say you are installing a GLIB package which is placed in the download directory  > cd Downloads/glib-2.43.4  > ./configure with the ./configure command, the config file of glib wi...

Hacking Password in Ubuntu

Image
Today the blog is on how to hack the password or let's say resetting the password of any user you want. In Ubuntu resetting user password is so easy but if that is the case then you'll be thinking that if it's so easy then how come Ubuntu is more secure then Windows. The thing is in Windows I'll definitely say it's little complicated but in windows, you can reset the password of admin along with other users but in case of Ubuntu you can reset the password of users only but cannot do that with the root user and without root, you cannot perform most of the functions like installing new packages and most other things. So now putting theory aside let's begin with the practical. First of all, let me tell you that there are total of 3 methods to reset the password but this blog will tell you only 1 of them, which has a 100% success rate so why bother with the other 2. Let's Begin:: Hold shift during boot to start the GRUB menu. Press the 'e...

Compiling latest kernel in Ubuntu from Source

First of all let's see what kernel is and what it is for. Kernel is basically a computer program which takes instructions or I/O (Input/Output) Signal from software and processes them into data processing instruction for CPU and other electronic devices. Kernel code contains all set of instructions and is programmed mostly in C language. It contains all the instruction from copy & paste to reading system architecture. The Kernel code must contain all the C code and the Object files in order to be compiled successfully. You can download kernel code from here . '>' this states that you have to type the adjust command in terminal. Ex: >whoami This command will display your username. >uname -r This command will display current version of your kernel, to see all system details along with arch. use -a option instead of -r. Q.Why you should update your kernel? Ans. Kernel update is not mandatory but recommended as what all you get from the update is ...

Installing Ubuntu

Image
Installing Ubuntu to your system can be harmful if you do not get through the basics first so recommended is that you first install Ubuntu in Virtual Machine to get passed through the basic errors first and install it on Dual Boot or as your single control Operating System. Requirement: A System passing the minimum requirements Requirements vary from Environment to Environment. Ubuntu Server CLI  300 MHz x86 processor 192 MiB of system memory (RAM) 1 GB of disk space Graphics card and monitor capable of 640x480 CD Drive Ubuntu Desktop Environment 700 MHz processor 512 MiB RAM 5 GB of hard-drive space VGA capable of 1024x768 screen resolution Ubuntu Installation version ISO file you can get the iso from this link http://www.ubuntu.com/download Any Installation Media USB stick CD/DVD Floppy Drive  Ubuntu installation in Virtual Machine can be done by you, here I'll tell you about the basic terminologies which you must know an...

Getting Through Ubuntu & Windows Boot Loader

Ubuntu is a Debian based Operating System and is Open Source whereas on the other hand Windows being Closed Source. Bootloader contains the set of instructions which loads an Operating System or some other System Software. Windows bootloader named NTLDR shorted for NT LoaDeR where NT is the series of Operating Systems by Windows. Windows NT is a family of OS by Microsoft where it's first version being Windows NT 3.1 and the latest version is Windows 10 Technical Preview and Windows 10 release is on 29th of July 2015. Ubuntu bootloader is Grub2 since 9.10 (karmic koala), all the earlier versions of Ubuntu uses Grub. What actually happens when you install Ubuntu and Windows in dual boot is:   Suppose you have Windows Installed on your system and then you try to Install Ubuntu in it in Dual Boot mode. So what actually happens in the NTLDR is pre-written and when you are installing Ubuntu the Grub2 or Grub bootloader depending upon which version you are using writes over N...