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

Search In

Converting a value to Integer

When the user types a value in an edit box or selects a value from a text-based control, the value is considered a simple group of words and the browser may not be able to identify or categorize what exists in a text-based control. The parsetInt() fu

How to assign role to user in liferay

Hello guys Here, I assign custom created roles to user from custom portlet in liferay 6.2. I create three regular roles i.e vendor, client and standard user from liferay portal. Now, I assign the role to particular user from liferay portlet using

PNG Image masking with rotation and alignment using Imagemagick

We can mask a png image over any other image with rotation and proper alignment. Let say for example, if we need to replace the human face of an image with another face, then we need this type of masking. There are various ways and command within im

PHP array to JavaScript array conversion

Sometimes, I feel a need to get a PHP array in my JavaScript code. Earlier I make use of implode function of php but recently found new way using json_encode that works very effectively. Here is my php array: <?php $cool_epl_clubs_php = array('M

Parsing CSV file using php SplFileObject class.

The SplFileObject class provides an object oriented interface for a file. $file="upload_file.csv"; //file to parse Steps: 1) Create SplFileObject class object to the csv file. $srcFile = new SplFileObject($file); 2)Now loop till end of file f

DNN7 Common Error

DNN7 Common Error After installation of your DNN site sometime show given blow error on Default.aspx. HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. *Module: II

How to check if a device has camera in Android

At times, we make apps which use camera feature but that app can also be used on non camera devices for other features. There we have to apply a check on using the camera feature, that is as follows: PackageManager packageManager = activity.getPacka

WP_Query for post

Here is the code to get your custom post type posts. you can put something which you want to print like your post content, your post title, featured image and etc under the while loop. 'news', // Change news as your post type 'post_sta

Access restriction: not accessible due to restriction on required library

When i was working on a class i have got the following error.. Access restriction: The type BASE64Encoder is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar I resolved it by looking up on google, where I

Understand Drupal patches and apply them using git

Hi All, I was confused about how to implement patches into our Drupal modules or in other files. There is a way to apply these patches automatically. We have to install git bash and then we can apply available patches and as well as create new stand

1 33 115
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: