Blog

What is the difference between Git and Mercurial

Major Differences are: Git and Mercurial are the two most popular Distributed Version Control Systems (DVCS). Mercurial is generally believed to be simpler and easier to learn than Git. In turn, there is often the perception that Git is more flexible and powerful. Git is faster than Mercurial for network operations. Git is based on the Unix philosophy of...

What is forking a repository in GitHub

Fork a Repo. A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project. Most commonly, forks are used to either propose changes to someone else's project or to use someone else's project as a starting point for your own idea.   Source: https://help.github.com/articles/fork-a-repo/

What is the difference between mysql utf8 and utf8mb4

The character set named utf8 uses a maximum of three bytes per character and contains only BMP characters. As of MySQL 5.5.3, the utf8mb4 character set uses a maximum of four bytes per character supports supplemental characters: For a BMP character, utf8 and utf8mb4 have identical storage characteristics: same code values, same encoding, same length. For...

Unable to negotiate with 140.211.10.43: no matching key exchange method found

Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 fatal: Could not read from remote repository. The problem came into existince while configuring my newly created drupal module using GIT on my local windows machine. everthing goes well till we run the following command: git push origin 7.x.1.x  OR git push origin...

Using image as link in CAKEPHP and html code escape problem

Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller', 'action' => 'display') )); Will output: <a href="/some_controller/display"> <img src="/img/your_img.png" /> </a>   Remember: When you want to give image height width as well inside link do it as: <?php echo $this->Html->link(                       $this->Html->image("go.png", array( 'alt' => "Go","height"=>30,"width"=>30) ),          ...

What is a Class in PHP?

In simple words, class is a user defined datatype. Which have its own constants, variables and functions. The variables of a Class are called properties of the Class and Functions of the Class are called  methods of the Class. Naming Convention Name of the class can be anything provided that it must be a combination of letters, underscores...