
Search In
Sort the values of an an Object array alphabetically in php and arrange them in to sections of alphabets according to the first letter of their name .
/* Code to sort the data elements in alphabetic order .
The following snippet will sort the arra
Converting image in base64 data url reduces the count of HTTP request and will increase the performance of the website because the load time to transfer data over the internet is too long and it will save the server request time.
There are many adva
Matcher object can be created after invoking the matcher methods which interprets the given pattern and perform the match operation. Matcher class implements MatchResult interface. Matcher class do not have public constructor.
Below are the methods
Basic CRUD command in mongo are listed below:
1) To list all the databases
show dbs
2) To create a new database
use dbName
3) Check in the list of database that db created or not. Use cmd:
show dbs
But your recently created db will not app
We often stuck, how to manipulate Date in our rails Application.
We have two Date objects in Ruby
Time.now() // This will give Today's date
#=> 2016-05-17 17:02:28 +0530
Date.new() // This will need some arguments to pass.
#=> Mo
There are many times when more than one result matches with the actual result. So, we get the ambiguous match. Capybara provides some options to handle this situation.
Suppose we have to perform some assertion on date field then in that case
Default posts option is not sufficient for customized themes in WordPress. Sometimes users need to create and use their own post type with desired names apart from traditional blog posts.
The following PHP code will registe
Lets supposed we have requirement to add a subscriber to mailchimp while user registering on our website. For this, we can use 'mailchimp-api' gem & we can integrate mailchimp-api gem as following in our application
add gem in Gemfile( m
Hello Readers! Here is a small blog on traits. What is trait? What are its uses? Why it is implemented?.. In this blog all these questions will be covered.
A trait, in simple language, is a group of methods that we would include within anoth
Hello Readers, this is a small blog on how to pop out an image on mouse hover using css3. This is possible by animating the position of the image and the box shadow property of css3.
In this example, I have taken images of facebook, linkedin, google
