PHP Functions - array_merge() and array_combine()

September 10, 2016
PHP has lots of built-in functions. So that you may not remember all the the functions. Among those functions, array_merge and array_combine are 2 very useful php functions that are very useful for core php programmer.

array_merge() function:

array_merge() is a built-in php function that is used to merge two or more arrays in one place. Unlike array_combine, it does not need equal number of elements in the each array. Here is a simple example of array_merge();

Example
<?php
$data1 = array("id"=>"21","name"=>"RKA","contact"=>"9843XXXXXX");
$data2 = array("address"=>"Kathmandu, Nepal");
$arrayMerge = array_merge($data1,$data2);
print_r($arrayMerge);

?>

Output
Array ( [id] => 21 [name] => RKA [contact] => 9843XXXXXX [address] => Kathmandu, Nepal )


array_combine() function: 


array_combine() is also a built-in php function which is used for combine only 2 arrays. And both the array of parameters must have equal number of elements. In fact, array_combine function combines 2 array together and generates index array.

Example: 
<?php
$data3 = array("1","3","5","7");
$data4 = array("a","c","e","g");
$arrayCombine1 = array_combine($data3,$data4);
print_r($arrayCombine1);
?>

Output:
Array ( [1] => a [3] => c [5] => e [7] => g )

How I removed Snap.do Browser Hijacker Virus Completely From My Computer

September 07, 2016
How many of you guys are familiar with snap.do browser hijacker virus? I think many of you who mostly searches software crackers and patchers in internet have been troubled by this virus. Snap.do hijacks your computer browser and redirects you to the random url. In fact, I was also got this opportunity to be familiar with this hijacker virus as one of my friends' laptop infected by this virus. I tried constantly 3 days, then I got its solution. I did everything as possible as I can. I also searched solution of this hijacker in internet but did not get the actual working solution. Some websites say buy hijackers removal software and some's solution did not work. However, I did not give up, I tried until it was fixed, then I got success to remove it completely from the system. Lets follow the step by step solution to know how I removed this virus.
Snap.do browser hijacker virus supposed figure

Step 01: Often, you can not get snap.do virus in control panel installed software lists. However, you can not leave this. So you should visit control panel and uninstall software whether there is snap.do virus software. If it is there, then just uninstall it.

Step 02: In order to remove snap.do from registry, you should enter into registry. You can type regedit in the search bar of your computer and enter into registry where you will see different files. Do not touch any other files, just type snap.do or snap and search it and delete if you find these files. Often these are located in the HKEY_CURRENT_USER>>microsoft windows.

Step 03: Use any of the virus cleaner software. Mostly I recommended to use premium software because premium are more reliable. Do not use those software whose development corporation have not been specified. You can use Hitman Pro; though it is a premium software, you can use it in trial period. It helps to clean unnecessary files and doubted viruses.

Step 04: Go to your browser's extension and delete the snap.do extension if you see it there.

Step 05: At last, you have to find ronzap file in your computer. To do so, you have to go to run application of your computer and search for ronzap file. Then remove it. This is most important step since if you follow all above step but forget to delete ronzap file from your computer, even though you can not get rid of from this snap.do hijacker virus.

Hope, you find it useful.

Note: I have shared all above steps from my own experience. We do not become responsible if you get any harm using these steps. 

Basic Concept of Cellular System

September 03, 2016

  • Cellular system offers very high capacity in a limited spectrum allocation without any major technologies changes. 
  • It replaces a single high power transmitter(large cell) with many low power transmitters(small cells).
  • It only provides coverage to small portion of area.
  • Each BS is allocated a portion of the total numbers of channels available to the entire system and nearby BSs are assigned different groups of channels so that all available channels are assigned to a relatively small number of neighboring BSs
  • Neighboring BSs are assigned different groups of channels so that the interference between BSs is minimized.

Concept of Frequency Reuse

  • Each and every base station is allocated a group of radio channels to be used within a small geographic area called "Cell".
  • The base station antennas are designed to achieve the desired coverage within the particular cell.
  • By limiting the coverage area to within the boundaries of a cell, the same group of channels may be used to cover different cells.
  • The design process of selecting and allocating channel groups for all the cellular base stations within a system is called frequency reuse.
  • Basically, hexagonal cell shape is used for conceptual and symbolic model of the radio coverage since fewer number of hexagonal shapes can cover a geographic region.

Google Duo challenges Facebook Messenger !

August 28, 2016
Google Duo - Chatting Application
Google Duo
Google has recently launched its new video chatting app. i.e Google Duo. Its not much different than Facebook Messanger and Viber. In fact, its main aim seems to decrease the users of Facebook Messanger and Viber increasing the number of Google Duo users.

The main feature of this app is to pre-informed the receiver about the caller information i.e it informs receiver previously about the users who is calling him/her. So that, receiver can decide whether to pick the call or not.

Google claims that it is fast responsive and user friendly.

Save your codes hosted on Google Drive - It is deprecating soon

August 18, 2016
Hey everybody, did you know that Google is shutting down web hosting via google drive. By the way, we had got to host our static sites and some codes in google drive hosting. But recently, it has informed its users that they are deprecating it. So I just tell you to save all your codes which are only in google drive hosting in your own back up. Otherwise, it will be lost by August 18. By the way, Google is going to shutting down google drive web hosting from 31 august.