How to Remove Ads by Albireo from Google Chrome

How to remove any ads from your Google Chrome


I am using AdBlocker, still ads? What do I do?

Hello guys, In this post, I'm going to be explaining How to remove any ads from your Google Chrome browser. Recently I had a malware named "Albireo" in my PC, I tried many tricks to get rid of it but nothing helped. Finally I came to a moment like "Thank God", and it means I found a solution.



The picture you see above is the screenshot of webpage which is highly infected my this malware "Albiero", what it does is it covers entire webpage with a panel or container (we call div in HTML) and never let us click any links. We have to wait 5 seconds to skip the ad, still it will redirect the page to some other, then what do you expect from a malware?

The trick I'm going to show you will not completely erase the malware, but you will never get disturbed by the ads. This trick can be applied to any type of ads which messes the beautiful contents of your webpages.

Remove Ads By Albireo From Google Chrome


Install Stylish - Browser Extension 

Install an extension named "Stylish" from Chrome store. Wait! I have the link here, just click it.


Find the id name for the Ad


1. Go to the page which is filled with ads
2. Right click on the page and select "Inspect" or press "Shift + Ctrl + I".
3. Once the inspect window opened, click the "search" icon at the top left side.


4. Now move the mouse pointer and click right on the ads div.


5. Copy the id name from the HTML element in the inspect window.



Well done! You have found the id, it's that easy, you don't have to be a developer. If you are a developer you would love to do this.

Write codes in Stylish

Open stylish extension and click "Write new Style", you will be on new screen to be able to write CSS (Cascading Style Sheet) codes. Just copy and paste the following code with a single alteration.

#or_layer {
  display: none !important;
  height: 0px;
  width: 0px;
}

#media1534 {
  display: none !important;
  height: 0px;
  width: 0px;
}

Here "or_layer" and "media1534" are the id names, you have to replace it with the id names you got form HTML elements.

You can style for multiple HTML elements, just google for more CSS properties.


Save the style and enable it. You are done disabling ads which you don't want.

Thank you for reading.
Feel free to write a comment if it helped you.

Alternative to Blackberry Hub in Android

Read and reply all your messages from one app


Hello guys, you must be wondering if there is an unified messenger for android to be able to view and reply all messages in a single application.





Most of you might have tried searching like "Blackberry Hub for android" in YouTube and Google multiple times. Because I am one of them searching that. What was the result? I bet you couldn't have found none.

Recently I discovered one unified messenger that we can exploit it to use like a Blackberry Hub.

DISA - Unified Messenger app for Android


DISA is an unified messenger with is currently available for Android, and expected to be available in iPhones soon. This app is currently on testing, lately the developers are looking for the feedback from users. 

DISA allows us to coalesce 3 messaging service in a single app. They are,

  • TEXT Messages
  • WhatsApp
  • Facebook

Also DISA is PushBullet supported, so that you will be able to read and reply messages from your computer too.


Download DISA 


DISA is available in Google Play store for free, you can download it.

Advantage of using DISA


DISA works based on plugins, for example; if you want to use WhatsApp and Facebook you have to install the respective plugins, it means you do not have to install individual WhatsApp and Facebook Messenger apps on your cell phone. Just adding the plugins will be enough to use WhatsApp and Facebook. So your phone does not have to lose storage memory for both apps.

Setting up plugins in DISA


Adding plugins is the first and simple step to continue using the app. By tapping the "Add Service" option, you can download and install all plugins available plugins for DISA.




If you know any better app which seems to be an alternative for Blackberry Hub please write it in the comments below.

Thank you for reading.



How to start blogging with Google Blogger

Blogger gives you a great blogging experience with simple and essential interface.



Create a new google account if you don't have one


Since the owner of Blogger is Google, you must have a google account to start blogging using Blogger if you don't have one. Click here to create a new Google account. 

Open Blogger


Open Blogger homepage, click here to open blogger. Or click the Blogger widget from the google app drawer. 


Choose a blog topic


Before creating the blog, you have to choose a perfect topic what you are going to write about. Choose a niche topic which you are really interested with, or one you are so familiar with, or one you find it easy to write about. The most recommended topic is the one you are interested with, so that you won't be lazy or bored to write blogs in the future.

Create a new blog


Create a new blog by clicking the button on the top left of the Blogger page. You can create multiple blogs in a single Google account. 

Choose a blog title and address


When you create a new blog, Blogger pops up a window and ask blog details. First one is the Blog title. Blog title can be anything brief what you want; still it should be simple and more relevant to you blog. Blog title is going to be the webpage title of your blog, which one displays on the browser tabs. If you are a web designer, this title comes in the <title> tag of your HTML document.


After finishing the title field, choose an unique address that represents your blog. Choosing a blog name is a difficult part because the name you every time come up would have already been taken.

Use domain finder websites


If you cannot find a good blog name or every good name you come up are already taken, use some domain finder websites, LeanDomainSearch is the best domain finder for Blogger, it will suggest hundreds of possible domain names.


 Choose template for your blog


Blogger provides some free templates, you can choose anyone of those. You don't have to worry, you can change your template anytime. Also it is possible to use a new third party template, the steps are given below. 

Create the blog by clicking the "Create blog!" button.


Create and write a new post in Blogger


Create a new post by clicking the "New Post" button on the top left side of your blogger page. You are really able to create multiple posts a day. Your post will never be out online until you publish the post. Blogger provides the automatic saving option, like your every update will be saved automatically while editing a post. You can preview the post to check the layout and format before publishing the post.


Give a post name


Give a related and attractive post title for your post. You really have to give a post title, you have got it? Tell me is it going to be good looking if your post seems "Untitled"? I do not think so.


Insert an image inside your blog by clicking the image icon on the toolbar, or else utilize the Google's new drag and drop facility inside the post while editing. I recommend you to insert most attractive picture, like a cover picture. When you share your blog post your post cover picture will be

Publish your post


And that's the final step to publish your post. Click the Publish button to make your post online all over the world.

Share your post


Promote your blog by sharing it in Google Plus. Make sure you share with Public and Extended Circles in Google Plus, also it's better if you share in related communities in Google Plus. Some of the other social networks which are good to promote your blogs are Twitter, Facebook, LinkedIn etc.


Add custom template for your Blog


I am pretty sure you will be bored with Blogger's default templates. Chill! You can still add a custom template to your Blog. 



1. Download template from other websites (zip file).

2. Extract the zip file.

3. Open template option in Blogger.



4. Click Backup/Restore button on the top right



5. Click Download full template to take a back up of your previous work.

6. Select the XML file from the extracted folder.


7. Click upload.


Some of the websites you can download templates are Gooyaabitemplates, BTemplates, MyBloggerThemes etc. . .



Like and share if it was useful.
Comment down below if you have any queries.
Happy Blogging friends! Have a great time.

Search engine with drop down suggestion using PHP and AJAX



Hello developers, in this post we are going to create a search engine with drop down suggestion. The languages we are going to use are,

  • HTML
  • CSS
  • JavaScript
  • PHP 
  • SQL

The relational DBMS we are using is MySQL.

Files used:

  1. Search.html
  2. searchScript.js 
  3. search_DB.php
  4. config.php

Database details

  1. Username = "root"
  2. Password = ""
  3. Database name = "SearchData"
  4. Table Name = "Users"
  5. Table Columns = id, names, ages
In this example, we are searching the NAMES from database, when we search by typing the keyword in the search box, it automatically suggests the existing names form the table "USERS". The structure of the database looks like,

How does it work

When you type a keyword in your HTML file, it triggers a JavaScript function (using onkeyup event). JavaScript function now sends a request to PHP file by sending the keyword you have entered through URL. PHP file gets the keyword and executes a SELECT query and retrieve the requested data from MySQL database. The retrieved data will be sent to JavaScript file as a response, now well we got the data to be displayed. JavaScript does that job too, yes it displays result in the div below the search input box.

Create a table in database

Open up localhost/phpmyadmin and create a table with multiple number of rows in VARCHAR type. Our database table would look like

Let's start coding

HTML file (Search.html)

Create an input box, style the input box with your favorite design. Put a small <div> below the input box to show the suggestions. Since it is a simple CSS coding we are not creating a separate CSS file.

<html>  
 <head>  
  <script language="JavaScript" src="searchScript.js"></script>  
  <style>  
  <!--CSS CODES -->  
  a{  
   text-decoration: none;  
  }  
  input{  
   width: 400px;  
   height: 50px;  
   font-size: 30px;  
   padding-left: 20px;  
   border: none;  
   outline: none;  
   box-shadow: inset 0px 0px 4px rgba(18, 18, 18, 0.4);  
   font-family: roboto thin;  
   border-radius: 15px;  
  }  
  #filter{  
   width: 400px;  
   max-height: 200px;  
   border: 0px solid black;  
   display: none;  
   color: black;  
   padding-top: 0px;  
   overflow-y:scroll;  
   overflow-x: hidden;  
  }  
  li{  
   width: 100%;  
   height: 50px;  
   list-style: none;  
   margin: 0px;  
   font-size: 20px;  
   color: grey;  
   line-height: 50px;  
   font-family: roboto black;  
   text-align: left;  
   padding-left: 20px;  
  }  
  li:hover{  
   background: lightgrey;  
   color: white;  
  }  
  ul{  
    width: 100%;  
   margin: 0px;  
   position: relative;  
   left: -40px;  
  }  
  </style>  
 </head>  
 <body ><br><br><br><br><br>  
 <center>  
  <input type="text" id="userInput" placeholder ="Search" onkeyup="process()"><br>  
  <div id="filter"></div> <!--Div to display drop down suggestion -->  
 </center>   
 </body>  
 </html>  

Our Html page will look like,

JavaScript File (searchScript.js)

 /* While using AJAX, it is necessary to create a different object for Internet Explorer, otherwise IE browser won't support. It is shown in below coding.  
 */  
 var xmlHttp = createXmlHttpRequestObject();  
 // Create XML Http Request object  
 function createXmlHttpRequestObject(){  
  var xmlHttp;  
 // For Internet Explorer   
  if(window.ActiveXObject){  
  try{  
   xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");  
  }catch(e){  
   alert("can't create IE object");  
   xmlHttp = false;  
  }  
  }else{  
 //For Google Chrome and other  
  try{  
   xmlHttp = new XMLHttpRequest();   
  }catch(e){  
   xmlHttp = false;   
  }  
  }  
  if(!xmlHttp){  
  alert("can't create that object!");  
  }  
  else{  
  return xmlHttp;  
  }  
 }  
 //function which gets triggered on the event onkeyup in search box  
 function process(){  
 if(xmlHttp.readyState == 4 || xmlHttp.readyState == 0){  
  filter = document.getElementById('filter').style.display="block";  
  //Store the keyword form the search box in a variable  
  userInput = encodeURIComponent(document.getElementById("userInput").value);  
  /*Send the request, make sure you give 3 parameters  
 1-Method, 2- url, 3- true or false   
 */  
  xmlHttp.open("GET", "searchDB.php?userInput="+userInput, true);  
 //set the function which takes care of response  
  xmlHttp.onreadystatechange = handleResponse;  
  xmlHttp.send(null);  
  }else{  
  }  
 }  
 function handleResponse(){  
  if(xmlHttp.readyState == 4 || xmlHttp.readyState == 0){  
  if(xmlHttp.status == 200){  
   xmlResponse = xmlHttp.responseText;  
   document.getElementById("filter").innerHTML = xmlResponse;  
  }else{  
   alert("something went wrong");  
  }  
  }  
 } 

MySql Configuration file (Config.php)

<?php
 
 $host = "localhost";
 
 $user = "root";
 
 $password = "";
 
 $db = "searchData";
 
 $conn = mysqli_connect($host, $user, $password, $db);
 if(mysqli_connect_errno()){
  echo "Connection error : ". mysqli_connect_error();
 }
?>

PHP file (searchDB.php)

<?php
//include the database configuration file

include('config.php');
//Check whether userInput exists or not

  if(isset($_GET['userInput'])){
   $value = $_GET['userInput']; //assign the value
  }else{
   echo "no input";
  }
//Select query

  $sql = "SELECT names FROM users WHERE names LIKE '%".$value."%';";
  if($result = mysqli_query($conn, $sql)){
   if(mysqli_num_rows($result) > 0){ 
//Store the result in an array list[]

     while($row = mysqli_fetch_array($result)){
     $list[] = $row['names'];
    }
   }else{
//set a null value to list[] if no result to prevent error

    $list[] = "";
   }
  }
 
  if(!empty($value)){
   if($matched = preg_grep('~'.$value.'~', $list)){
   $count = 0;
   echo '<ul>';
    while($count < sizeOf($list)){
     if(isset($matched[$count])){
/*
link the real target search file which should be opened when we click the search button or select the one from the drop down suggestion.
*/
      echo '<a href=target_file.php?searchItem='.$matched[$count].'><li>'.$matched[$count].'</li></a>';
     }
     $count++;
    }
   echo '</ul>';
   }else{
    echo "No result";
   }
  }
?>

Whohoo! We have done creating the search engine with suggestion drop down. Now it's time to see the output.



 Thanks for reading my post, I hope you had learnt something. Thank you!
Please like and share.

Overview of PHP 7

1. What are the new features in PHP 7?

While migrating from PHP 5.6 to PHP 7, all PHP developers are so excited to know what are the new features in PHP 7. Well, PHP 7 does not disappoint anyone, here are some of the interesting new features applied in the new version.  


High performance & Consistent 64-bit support

This is the best feature that PHP 7 provides. While comparing to PHP 5.6 and HHVM 3.7, PHP7 is absolutely very fast in performance. It also provides high performance while using with frameworks and Content Management Systems(CMS).

Scalar type declaration

Scalar type declaration allows us to declare the function parameters and return the values with required data type. The return type can be any one from integer(int), string(string), floating point number(float) and boolean(bool) types.  

Return type declaration

Return type declaration specifies the data type of return value from a function, it is similar to argument type declaration.  

Null Coalesce operator

Null Coalesce operator ?? combines isset() and assignment of value, first it checks whether the variable exists or not, if it does then it takes the value, if not variable will be assigned with the second operand value. It is an interesting operator which decreases the time and long codes. 
$email =  $_GET['email' ??  'no email';



Spaceship operator

Spaceship operator <==> is used to compare two variables, it returns three values, 
-1 (less than)
 0 (equal to)
 1 (greater than)
It works with integer, floating point number and string also. 



<?php
echo <=> 1// 0
echo <=> 2// -1
echo <=> 1// 1
?>

Constant array

Constant array can be defined using define().

<?php
define
('Names', [
    
'Peter',
    
'Harry',
    
'Mary']);

echo 
Names[1]; // outputs "Harry"?>

Anonymous class

The concept of anonymous class is declaring a class within another class. For detailed information about anonymous class just visit here.

2. Why not PHP 6?

It's not like what we all think about, PHP 6 already existed and it was completely different from the new release. PHP 6 is kind of failure as it takes lot of CPU time and memory since it uses UTF-16 as default encoding.

Version 6 is failure, like PHP 6 is failure; Perl 6 is failure; MySQL 6 existed but have not been released, so this might have been a consideration.

PHP 6 project and it's features were widely known, and the current release is entirely different from that, so people would definitely be confused. This is one reason why they skipped version 6.






5 important string functions in PHP

1. ucfirst()

ucfirst() makes the first letter of the word in UPPERCASE. This function is going to be very useful to display names on your website. 

<?php

$str = "john";
echo ucfirst($str);
?>

The output will be like
John

2. strlen()

strlen() return the length of the string. 

This function return the number of characters in the string including white space, or returns 0 if the string is empty.

<?php
$name 
'John';
echo 
strlen($name); // 4$name ' Jo hn ';
echo 
strlen($name); // 7?>

3. strtolower()

strtolower() converts the entire characters in the string to lowercase. This function is going to be useful for you when you have to display email addresses or website links on your webpages. 

Example program:

We are going to see an example to convert an improper email id to proper form.

<?php
$str 
"MisterX@Gmail.Com";$str strtolower($str);
echo 
$str
?>

The output will be like :
 misterx@gmail.com

4. strtoupper()

strtolower() converts the entire characters in the string to uppercase. This function is going to be useful when you have to display headings on your webpage.

<?php
$str 
"artificial intelligence";$str strtoupper($str);
echo 
$str
?>
The output will be;
ARTIFICIAL INTELLIGENCE

5. substr()

substr() returns a part of the given string.

Syntax: substr( string, starting-position, length );

String: The string in which a selected part is going to get extracted.
Starting-Position: A positive or negative integer value determines the position of the starting character of the sub string.
Length: The length of the sub-string going to get extracted. 

The position of the characters can be mentioned as Positive values as well as Negative values. Positive values specifies the position from the starting of the string, and Negative values specifies the position of the characters from the end of the string.

Example: 

Positive values: 
Value
1
2
3
4
5
6
7
8
9
10
11
String
h
e
l
l
o

w
o
r
l
d
Negative values:
Value
-11
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
String
h
e
l
l
o

w
o
r
l
d

Example programs:
Here in this example we are going to extract a second lever domain and the top-level domain of a website.

www.lamewishes.com

Extracting the second lever domain:
<?php 
$str = "www.lamewishes.com";
echo substr($str, 4, 10);
// lamewishes

?>
Extracting the top-lever domain:
<?php 
$str = "www.lamewishes.com";
echo substr($str, -3);
// com

?>
Extracting the domain name
<?php 
$str = "www.lamewishes.com";
echo substr($str, 4);
// lamewishes.com

?>

If we do not mention the length of the sub-string the function returns the string form the starting point to the rest of the string.