Corona Crisis: Sars CoV-2 Research Exceeds 1 Exaflops

Thanks to corona virus, the Folding @ Home distributed computing project has almost as much computing capacity as upcoming supercomputers. With almost 800 petaflops of distributed computing power, Folding @ Home has set a new record for the time being – just a few days ago, the capacity was less than 500 teraflops. The distributed computing…

Read More

Install and Configure mod_rewrite for Apache on CentOS or Amazon EC2 Linux

Introduction Apache’s mod_rewrite can be used to manipulate URLs. It is compiled into the base Apache Web Server. This module provides the ability to manipulate URLs prior to determining the appropriate file or handing off to a script. It can help you, if you want to offer different URLs for…

Read More

Solved – Getting this SQL Error: GROUP BY incompatible with sql_mode=only_full_group_by

MySQL 5.7.5+ changed the way GROUP BY behaved in order to be SQL99 compliant (where in previous versions it was not). There is a good overview of the changes here. Unfortunately, this affects some core queries that Craft uses when fetching elements. The good news is that this has been…

Read More

Solved – How can I downgrade from PHP 7 to PHP 5.6 on Ubuntu ?

follow the below instructions you face this situation, you may need to disable the proxy_fcgi apache module: sudo a2dismod proxy_fcgi proxy; sudo service apache2 restart 1. Re-Install PHP 5.6 What worked for me was this guide: http://www.lornajane.net/posts/2016/php-7-0-and-5-6-on-ubuntu Actually is not required to remove php7.0, you can install php5.6 together (…

Read More

The Art of Node – A short introduction to node.js

This document is intended for readers who know at least a little bit of a couple of things: a scripting language like JavaScript, Ruby, Python, Perl, etc. If you aren’t a programmer yet then it is probably easier to start by reading Easy Javascript. git and github. These are the…

Read More

Easy JavaScript – An introduction for new programmers

JavaScript is a programming language or, in other words, a means by which a computer is instructed to do things. Just the same as one controls humans with hisses and meows, one controls computers with statements written in a programming language. All web browsers understand JavaScript and you can take…

Read More

Solved – Magento 2 Admin URL not found and Loaded Front-end is all messy

Sometimes after installing Magento 2 in Ubuntu, linux or wamp server. Admin url shows 404 error after installing  and frontend design is all messy and css is not linked to it. Error visuals are shown below : To solve this first of all, apply proper permissions, enable apache rewrite_module and…

Read More

The most useful and bestseller courses on Udemy you should consider

The Complete Web Developer Course 2.0 Learn By Doing – build 25 websites and real mobile apps using HTML, CSS, Javascript, PHP, Python, MySQL and a lot more. It’s most current, in-depth and exciting coding course—to date. Designed for you—no matter where you are in your coding journey—this next-generation web…

Read More

How to use Database Transactions in Codeigniter ?

In order to use transactions in your database queries. You need to use Codeigniter’s transaction methods provided by db library of Codeigniter. The basic snippet is as follows: $this->db->trans_start(); # Starting Transaction //Do your Stuff Here i.e. Queries you wants to run on database $this->db->trans_complete(); # Completing transaction if($this->db->trans_status() ===…

Read More

Website PageSpeed: Leverage browser caching

What is browser caching? Every time a browser loads a webpage it has to download all the web files to properly display the page. This includes all the HTML, CSS, javascript and images. Some pages might only consist of a few files and be small in size – maybe a…

Read More

Tips To Prevent WordPress Hack – A Guide to Secure WordPress Blog

Recently, some of my wordpress blogs were hacked.  I was so involved in other projects that I didn’t pay much attention to security, which is actually the most important thing here. I have removed some shitty plugins, transferred to another website hosting, tweaked codes and more…Today, I have decided to…

Read More

Reset the MySQL Root Password to fix Access denied for user ‘root’@’localhost’

Stop the current MySQL server instance: sudo service mysql stop. Use dpkg to re-run the configuration process that MySQL goes through on first installation. You will again be asked to set a root password. sudo dpkg-reconfigure mysql-server-5.5 or whatever your mysql-server version. Then start MySQL: sudo service mysql start.

Install and configure FFmpeg on Ubuntu, Debian, and Linux Mint and dependencies

This process will provide a install of the latest FFmpeg tools and libraries including several external encoding and decoding libraries (codecs) for supported releases of Ubuntu, Debian, and Linux Mint . Installation of the Dependencies sudo apt-get update sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \ libsdl1.2-dev libtheora-dev…

Read More

Ejabberd and Xmpp Chat Server on AMAZON EC2. Connection Timeout issue

We have been working on Ejabberd for our Mobile application for over 6 months and have installed and managed our servers (most of which run on the Amazon EC2 setup) for a while now, but my last installation left me stumped. The thing was my installation would go through perfectly…

Read More

End to End guide on getting a Job in Tech industry

Resume Writing Spending time on resumes is one of the most undervalued aspects of job hunts. The multiplier on gains you get on the time spent refining your resume down to the last word is huge. Writing a resume is one time effort and then it would be used in…

Read More

World’s Countries, States and Cities database

There are many Database providers which are charging us for providing the Databases of various types. One of them is very important and useful database is for world’s all countries,State and Cities. Every time when we plan to create a website then we stuck on one point that is how…

Read More

SolveIt – Detect the Domain Name

You will be provided with a fragment of HTML code. Your task is to identify unique potential domain names from the links or URLs which are present in that code fragment. For example, if the link http://kravi.online is present in the markup, you should detect the domain: phpdrill.com. If second-level…

Read More

SolveIt – K-subsequences ( Given a large list of n positive integers, count the number of k-subsequences.)

A k-subsequence is defined as follows: It is a subsequence of consecutive elements. The sum of its elements, s, is evenly divisible by k (i.e.: s % k = 0). Complete a function called kSub with two parameters: an integer, k, and an array of integers, nums, of size n.…

Read More

SolveIt – Find out Maximum Difference in an Array

The maximum difference for a pair of elements in some array a is defined as the largest difference between any a[i] and a[j] where i < j and a[i] < a[j]. Create a Function maxDifference to find the maximum difference from array a. Output Format Your maxDifference function should return…

Read More

PHP Tips and Tricks to make your code simple and faster

There are plenty of tips and tricks that you can use to make your code better, and a few of them are covered below. These tips may help you to make your PHP programming better in various ways. PHP Shorthand If/Else Using Ternary Operators (?:) An important part of programming is…

Read More

What is Node.js ? How it Works ? for Beginners

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world. Its an open source, cross platform runtime environment for developing server-side…

Read More

Simple and better ways to optimize MySQL query

MySQL  is very popular choice for database management systems. Which uses the SQL querying language to input and query data. Although SQL queries are simple commands that are very easy to learn and use, but not all queries and MySQL database functions operate with the same efficiency. This becomes very…

Read More

Translates a given mRNA string to a peptide-chain in PHP

We can make a simple tool to translate the mRNA (5′-3′) string to a peptide chain by using PHP. Following class is meant to translate a given mRNA string (from 5′ to 3′) to a peptide-chain (Chain of amino acids). <?php class BioTranscription { function BioTranscription() { $this->amino_acids = array(‘Asp’…

Read More

Array vs Object when returning data

Prefer Using Objects when returning large amount of data When returning large data, it can be obvious to use Arrays. But Arrays make poor object-to-object data transfer mechanisms in object-oriented programming. Objects are main focus of  Object-oriented programming and it should be. This means that each array should be converted…

Read More

SEO and the relevance determination of keywords / terms in the search engines

Lately I am working intensively with the topic search engine optimization and the algorithms of search engines. Clear there are perceived 1 million SEO blogs and SEO service provider, which would tell me all this for a lot of money. But several magazines and refinements enable me as a Web…

Read More

PHP external URL read with CURL and Proxy

The retrieve and read an external URL is easy with PHP. For this purpose, you need only the extension CURL, which is almost always enabled by default. Even if the server is behind a proxy that is not a problem. You can Agent strings and so transmit certain data even…

Read More

Angular 2 reached beta status – Angular 2 bends with the beta release slowly but surely an on the home straight

The team behind the JavaScript framework Angular 2 has reached a major milestone. With the release of the first beta of Angular 2 Google flexes now a on the home stretch and presented at the same time some large projects that have been already migrated internally to Angular 2. Nearly…

Read More

Clear Name Required: Facebook tool checks Fake profiles and pseudonyms

Who has good reasons, may keep his false name on Facebook. Thus especially the access for minorities and political persecution is to be saved. For this, however, intimate information must be provided. Fake profile to be easily exposed by the test method. The security measures grow so fair cooperation is…

Read More

Embed Photo Sphere in website

I have written in my blog ever thought about the possibility to include 360 ​​° images with JavaScript in a web site. At that time the whole thing was based on the Web viewer by Joe Simpson. Meanwhile, Google has published its own method. For this purpose, Google has published…

Read More

Force HTTPS connection on your website using .htaccess to get better rank on Google

After Google has the encrypted SSL / TLS connection via HTTPS declared ranking factor, make more and more website operators to access an encrypted connection. When HTTPS is enabled, all requests over the encrypted connection should be sent off then. For a simple entry ranges in the .htaccess configuration file:…

Read More

Codeigniter : Adding Header and Footer automatically

A developer don’t really enjoy writing same line of code again and again. In Codeigniter we normally load same view templates in every controllers. e.g. $this->load->view(‘templates/header’); $this->load->view(‘body’); $this->load->view(‘templates/footer’); But it is possible to add templates header and footer automatically whenever we load any view to controller. For this we needs…

Read More