Posts

Import Large Databases into PHPMyAdmin using BigDump

Image
Hi all, Few days back I was working on a project having large database.Before applying new modifications in the project, backup of the current databse was necessary.when I was taking backup  it gave me error because it was too big, because it exceeded the timeout. For the solution of this error i googled and found one amazing solution the name of which is BigDump . What is BigDump? When you are about to replicate or move a database then importing large SQL dumps  can be difficult for those with only web access to the MySQL server. phpMyAdmin has certain shortcomings when importing files of more than a modest size. In such cases BigDump can be a helpful utility. How to use BigDump? 1.    Download the BigDump from here : BigDump 2.    Extract the bigdump.zip file and open the bigdump.php file in a text editor. 3.    Configure: Server, database name, username, password, and the file name. <?php // Database configuration  $db_se...

How to Add Google Maps to Drupal Content

Image
Hi Friends , In this post I am going to explain how to add Google Maps to Drupal Content. To accomplish this , following modules will be needed. Addressfield :  A Drupal 7 field module to hold postal addresses, implementing a subset of the fields defined in the xNAL standard. Addressfield_staticmap : This module can generate either of the 3 following as a block when placed on a content type that has an address field:                    1) Google static map                    2) Regular JS Google map that defaults to the static map if Javascript is disabled.                    3) Mapquest static map Download links are given below.         • http://drupal.org/project/addressfield ...

Use offical jdk/jre in Debian Wheezy and later version

After Wheezy, sun-jdk and sun-jre won't be available in non-free repository. But there are still lots of applications won't be work without it. Orz Well, we still have a solution to overcome this condition from Debian. Follow below steps and get it! Install java-package. Download the latest jdk/jre binary tar ball for linux. fakeroot make-jpkg ./the_tar_ball_you_downloaded. dpkg -i the_deb_package_you_just_build_it. sudo update-alternatives --auto java. And then you have oracle-jdk/oracle-jre now! :-)

10 Tips for Effective PHP Development

Today, PHP is of the most popular web development languages in the world with over twenty million domains in the web using PHP web development techniques. Also many open source web development frameworks such as WordPress and Drupal have also used PHP. There has been a tremendous growth in the web development field with most web development companies setting up their base. Many frameworks and tools have also been built to aid in the PHP development. However, most offshore PHP developers have still a long way to go when it comes to effective development. Here are a few tips that can help you in making the PHP development process effective: 1.Use PHP framework: Using PHP framework will provide for standardization of code and thus you will achieve faster development process. Though using the simple PHP is a little faster than using the framework, it leads to writing of bad code which ends up making the entire development process complicated. 2.Keep a collection of code snip...

How to Install Drupal on Windows localhost with WampServer

Image
1) Here,  I am assuming  that you have Installed WAMP already, if not, then proceed to wampserver.com and download the latest version. After the installation, launch it, type http://127.0.0.1 on your browser, and make sure you see the default screen. 2) Download Drupal - I'm using the v7.14 .zip version. Unzip into a dir at: C:\wamp\www, for example: C:\wamp\www\drupal - where drupal is the main directory containing all the drupal files. 3) Create a database in WAMP using PHPMyadmin. You should have the following info ready:database name, username and password. 4) To begin installation, type: http://127.0.0.1/drupal. You should see a page displayed similar to the below. By the time we finish, all the processes at the left hand side must have a green-check mark.      (a) Leave "standard" Radio button checked, click "save and continue".       (b) Choose Language: "English" (built-in) is selected. Leave as is, click "Save and Continue...

The Promise Monad in JavaScript

UPDATE: This post has been updated to a new post. All the code has been refactored and redone in the new post. http://functionaljavascript.blogspot.in/2013/07/monads.html If you find it difficult to understand whats going on below, read the following posts. Implementing Monads in JavaScript The monad laws and state monad in JavaScript. We will go through an example of the promise monad in this post. The promise monad is available now in the monadjs library. The best way is too look at an example. We will write a nodejs command line program that will copy an input file into an output file asynchronously. We can run the program like this. $ node copy.js infile outfile The program has to do the following. Check the command line for infile and verify it exists, if not print an error and halt computations. Check if outfile is given in the command line otherwise print error and halt. Read infile content into memory and halt if error. Write content to outfile or print error to console....

Drupal Introduction

Image
In this post you will learn basic introduction of the Drupal. Some of its Features and about the choice to select it. Drupal is a free software package that allows you to manage , organize  and publish your content, with variety of customization. Drupal is developed  and  maintained  by a community having 625,000+ users and developers. It's distributed under the terms of the GNU General Public License  , it means you are free to download it and share it with others. Why is Drupal "the better choice" ? All the Content Management Systems (CMS) have forum and blog capabilities. They often have different modules by using which you can extend the system capabilities. Drupal has vibrant community like no other CMS system. It's a point that makes Drupal very concurrent on the Content Management System’s market.It also has some unique features that make it very different and much more powerful then the most of other comparing software products.  Some of those featu...