Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Applying a Function Against Each Array Element

Hello reader's under this blog we are going to apply a function against each array element. We are using a function to check an array value and if it matches a given value then it will replaced.   To attach a callback function to each arra

Superglobals in PHP

Super Global variables are an assosciative array, that are predefined in PHP. Superglobal means they are always accessible and can be used in function, class or file. They are available in all scopes on script. We can use these variables directly w

How to play music in the background using AVAudioplayer

Hi Readers, Many times we need to play music even app is in background. It is normal behavior of AVAudioPlayer to play sound when app is in foreground or active state. But to play sound, music or song even in background state can be achieved by foll

Stub nodemailer send method using sinon in mocha node.js

Stub transport is useful for testing the email before actually sending email. It does not actually send an email, it convert mail object to a single buffer and return it with a send mail callback. In the below code, I have stubbed send method of nod

How to Set & Get Magento Registry?

Hello Readers, This tutorial will guide you about "How to Set & Retrieve Variable in magento registry ". Registry means creating a new global variable which is to be used later in any magento template file (.phtml). Magento registry fun

Javascript void operator

The Javascript void operator set the given expression and then returns the output as undefined.   The void operator is employed to amass the undefinable denoting price, typically we tend to use "void(0)" (which is suggests that "

What are different ways to apply CSS styles to a Web page:

1. Inline css:   In inline css we can insert a ‘style’ attribute inside an HTML element. This allows CSS properties on a "per tag" basis. Below is code for inline css in our webpage.      &nbs

Hide portlet from guest users

Hello programmers, This blog gonna help you to hide a portlet from the guest users. It's very easy. To hide a portlet for any role, a very simple method is to remove the view permission from the portlet configuration. Now if you check th

Liferay theme generator

We can create themes using Theme Generator. Liferay Theme Generator is an easy to use command line tool to generate the themes. Liferay plugin SDK isn't required to create the liferay theme and it works well with liferay 6.2 and 7 and probably up

Anonymous Method in C#

Anonymous method is a method without any name and return type but have a body content and the optional arguments. This type of  method is created by using the delegate keyword. Return type of the anonymous method is dependence on the return stat

1 32 76
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: