Some PHP Tips

Some PHP Tips

Some PHP Tips There are lot of things which you should follow when working with PHP.In this article ,I am going to look into some useful tips and techniques that can be used to improve and optimize your PHP code. These PHP tips will help you to write a more structured PHP script in less […]

Continue Reading

Draw a circle with HTML5 Canvas

Draw Circle HTML5 Canvas

Draw a circle with HTML5 Canvas Description: To draw a circle with HTML5 Canvas, we can create a full arc using the arc() method by defining the starting angle as 0 and the ending angle as 2 * PI. Demo arc() The arc() method creates an arc/curve (used to create circles, or parts of circles). […]

Continue Reading

Role of Gradle in Android Project

Gradle is an open source build automation system that builds upon the concepts of Apache And and Apache Maven and introduces a Groovy-based domain-specific language (DSL) instead of the XML form used by Apache Maven for declaring the project configuration. Gradle uses a directed acyclic graph  (“DAG”) to determine the order in which tasks can be run. Gradle was designed […]

Continue Reading

Get the size of an image using a PHP function

Get the size of an image using a PHP function PHP provides a function to get the width and height of an image. getimagesize() Get the size of an image. Description The getimagesize() function will determine the size of any supported given image file and return the dimensions along with the file type and a […]

Continue Reading

Simple Load more content with jQuery

Load more content with jQuery

Simple Load more content with jQuery Have you come across any situation where you need to load more content clicking on a load more button. This feature comes in use at situation where you need to show more content in many news/content based websites and this feature helps loading content on clicking load more button. […]

Continue Reading

20 Useful jQuery Methods Part -4

20 Useful jQuery Methods Part -4 16 replaceAll() Description: Replace each target element with the set of matched elements If you’d like to replace DOM elements with other ones, here’s how to do it. We can call replaceAll() on elements we’ve collected or created, passing in a selector for the elements we’d like to replace. […]

Continue Reading

20 Useful jQuery Methods Part -3

20 Useful jQuery Methods Part -3 11. isArray() Description: Determine whether the argument is an array. $.isArray() returns a Boolean indicating whether the object is a JavaScript array (not an array-like object, such as a jQuery object). Finds out if the parameter is an array.

12 makeArray() Description: Convert an array-like object into a […]

Continue Reading

20 Useful jQuery Methods Part -2

20 Useful jQuery Methods Part -2 6. delay() Description: Set a timer to delay execution of subsequent items in the queue. .delay() method allows us to delay the execution of functions that follow it in the queue. It can be used with the standard effects queue or with a custom queue. Only subsequent events in […]

Continue Reading

20 Useful jQuery Methods Part -1

20 Useful jQuery Methods jQuery Event methods trigger or attach a function to an event handler for the selected elements. jQuery API jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a […]

Continue Reading

Enqueue a Script -WordPress

wp enqueue scripts

wp enqueue scripts WordPress has an enqueuing system for adding local/remote scripts along with styles to prevent conflicts with plug-ins. Since most users run WordPress with a theme and several plugins, developers are advised to use the correct method of loading scripts into WordPress. Descriptions wp_enqueue_scripts is the proper hook to use when enqueuing items […]

Continue Reading