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

How to Print Drop down value on Console

Hi, This Video tutorial will help to print Drop down value on Console. If you are stuck and looking solution for this, watch the full video.

How to override existing Struts Action by Struts Action Hook?

We can modify Liferay JSP, services, properties by using Hooks. One of the main use of Hook is we can override existing struts actionand also we can add custom struts action, these type of Hook is called as Liferay Struts Action Hook. I'm taki...

Control Flow Functions in MySQL

Mysql have several contral flow functions. Such as 1) IF 2) CASE 3) IFNULL 4) NULLIF Control Flow functions returns value based on processed each row by query executed. Contral Flow function can be used on **SELECT, WHERE, GROUP BY** a...

How to read ActionRequest parameters?

If you have defined an input field as below: <aui:input type="text" name="emailId" value="<%= emailId %>" /> then, you can read the value of emailId parameter in action method by the following ways: 1- HttpServletReques...

How to extract HttpServletRequest object from Portlet RenderRequest object?

Sometimes when we pass data from action method to a JSP and from JSP to a portlet's render phase then we need to extract HttpServletRequest object from Portlet RenderRequest object to get the parameter values. By writing the below lines you ca...

How to set Camera view aspect ratio in ios

Some times we face problem with Camera view aspect ratio in ios. Solution to this problem is here.. Set its aspect ratio property to AVLayerVideoGravityResizeAspectFill. It actually preserve aspect ratio; fill layer bounds. AVLayerVideoGr...

UIImage Cropping in Objc

Some times we click picture from ios camera but it does not return us the same image as appears inside the camera frame. Use below function to get an image of exact size which was visible through camera. Follow these Steps:- Step 1. First o...

Change color of an UIImage in ios

You can pass array of colors in this function in order to change any color of an UIImage. Just pass UIColor and UIImage to this function. +(UIImage *)changeColorTo:(NSMutableArray*) array Transparent: (UIImage *)image { CGImageRef rawIma...

Change UIIMage background color in iOS

Here is a function which returns an image with different background of you choice. - (UIImage* )setBackgroundImageByColor:(UIColor *)backgroundColor withFrame:(CGRect )rect{ // tcv - temporary colored view UIView *tcv = [[UIView alloc] ini...

Make UIImage White Background Transparent in iOS

If you came across to a requirement where you want to make UIImage Background Transparent then use below method to achieve it. +(UIImage *)changeWhiteColorTransparent: (UIImage *)image{ CGImageRef rawImageRef=image.CGImage; const CGFloat c...

Download mongoDB data as csv file

Want to export MongoDB collection data to a csv file use mongoexport utility that produces data in JSON or CSV format. Use the following command to export data: mongoexport --host <hostName> --db <databaseName> --collection <...

CSS4 selectors

HI all, As we all knows CSS33 describes the look and formatting of a document written in a markup language very well but now the time is coming for CSS4. Because it is still in WORKING DRAFT in W3C so all selector is not compatible with all...

int.Parse(), Convert.ToInt32() and int.TryParse()

I have seen three type of methods that are available in .NET to convert integer from string. Personally I feel, we can use int.TryParse(string s, out int). The main difference between int.Parse(), Convert.ToInt32() and int.TryParse() int.Pars...

How to append/add set of input field in a form with just once click?

I designed my form with writing this script below. In this script showing $(wrapper).append() will trigger the action of adding the input boxes or any thing that you put inside it. For ex I used name, email and phone input text boxes. All you ju...

PHP filters to Sanitize and Validate data

Hello Readers , Today we will going to understand the concept of PHP filters to Sanitize and Validate data. PHP filters are used to validate and sanitize external input. Validating data = Determine if the data is in proper form. Sanit...

Select multiple elements with same ID using JQuery

ID's in HTML are generally used as unique identifiers for the elements present in the DOM but it is not a compulsion to have only one element with a unique ID, which means you can have multiple elements with the same ID. JQuery selector $("#id...

How to reorder product tabs

If you want to reorder product tabs, you can do this according to you wish as you want, just add the below code to your function.php. <?php add_filter( 'woocommerce_product_tabs', 'FindNerd_woo_reorder_tabs', 90 ); function FindNerd_woo_r...

Mailchimp, third party newsletter in Drupal

MailChimp is basically a web-based email marketing service. It helps you design email newsletters, share them on social networks, integrate with services you already use, and track your results. Mailchimp module in Drupal, provides APIs to intera...

C++ Interview Questions and Answers Part 1

In this tutorial, We are providing you C++ questions and answers. The content here will help all the Freshers as well as experienced people to get through with their interviews for software industry on campus or off campus. For any person who wan...

How to apply style to a cakephp debug console

We have cakephp debug on or off option in core.php file, if debug is on then all errors and query will show at the bottom of the page. we can give it some different style or UI so that it will be more readable. we can apply css like below code ...

Layout for tablets in Android

To target your some designs to other devices like tablets, there are solution for typical screen width: For every case, your UI might not look perfect specially for the case of tablet, so you need to adjust your layouts/designs. Then you have ...

How to include .so files in Android Studio project

From here you can learn to include or integrate .so files into your code. Files that contain the .so file extension are most commonly used for shared library files. Programs written in the C and C++ language load a shared library when they are la...

Flipping of the content and image on hover using CSS3

If a user want to flip his content or image on mouse hover using css3. He can use the code below. In below example, we have two sided view. HTML : <div id="container"> <div id="card" class="shadow"> <di...

How to remove a HTML element using Jquery

Hello reader's, Below is the example to Remove the HTML element using Jquery If you having trouble with such issues, then use the below code. Here is the HTML <p>Write your text here.</p> <p>Write your text here.<...

How to calculate distance between two location by PHP Code

If you would like to calculate air distance between two location without any API or mysql query. You can use below code to get distance between two location. $distance_one_latitude = 30.364267; $distance_two_latitude = 30.324860; $distance_o...

How to Get height width or element using Jquery

Hello reader's, Below is the example for Getting height width or element using Jquery If you having trouble with such issues, then use the below code to resolve such issues. Here is the HTML <button id="dummy-height">Get div Heigh...

Using database session handling in Code PHP

PHP is one of the scripting language. In which session handling is one of the key thing mostly using in web application. Suppose you build a website and allow to login everyone in website, You need to track user every step until they log out o...

Add logo in theme customize option in wordpress

Hello reader's today we discuss about "Add logo in theme customize option" in wordpress. Open your function.php and paste the below code :- /** * Add logo in theme customize option */ add_action( 'customize_register', 'themename_customiz...

How to get distance by mysql query

If you would like to get distance between two places with mysql query. You can use below query to find air distance between two places. Example :: Suppose you want to get air distance between all employee's home and office location. To run th...

How to send bulk emails in Drupal

Drupal has hook_mail function to send emails. This function is capable of sending email to a single user. If we need to send an email to multiple user then we can write a function and call this function within foreach loop. This should be a simp...

Mono : open source framework for .net

Mono Mono is an open source development platform which is based on .net framework. It provides base to developers to build a cross platform application which results in improving developer's productivity. components of Mono C# compiler...

Inheritance in PHP

Hello Readers , Here's the explanation of concept of Inheritance in PHP. What is inheritance? Inheritance is nothing but a design principle in oop. By implementing inheritance we can inherit(or get) all properties and methods of one cla...

PaginatorHelper in CakePHP

Cake php provide inbuilt pagination we can use this by using Paginator Helper. To use pagination first we need to use Paginator Component public $components = array('Paginator','Auth'); now add the below code in your controller here i am us...

PHP Copy Files

How to open and read PHP files have been discussed in previous blog: http://findnerd.com/list/view/How-to-open-and-read-files-with-PHP/3157/ Now,we will discuss about copying a php file. In php,we can Copy files from source to destination...

Typography for Responsive Design or RWD Typography

Typography for Responsive Design or RWD Typography Hello Friends, As we all know that, Responsive Design is a very popular technique and most using concept in web design. A responsive design giving us a flexible layo...

How to Disable Comments Section on Wordpress Page

You need to follow below step to remove comment section in WP Page. 1) Make admin login on Wordpress. 2) You can view "Pages" menu on left panel. On mouse over you can view "All Pages" & "Add New" options. Please click at "All Pages". 3)...

How to Create Cross-Browser Custom Upload Button with Jquery

Hello Reader's In this article I will guide you to create Cross-Browser Custom Upload Button With JQuery If you facing any problem for upload button use this code. Here is the HTML <div class="Container"> <label>Upl...

Setup Facebook app invites of an iOS app

Hello reader's ! If you want to setup Facebook App Invites of an iOS app then follow these steps. Using Facebook graph API , make a request to get facebook app_access_token (app_access token is not login access_token) . I m using google ...

InterNationalization in CakePHP

Hello Readers , Today we will learn about the concept of " InterNationalization in CakePHP " . "InterNationalization" simply means if you are making an application and you wants to make that applications to reach a larger audience to cater...

How to touch UI from background or seperate thread ?

We know that Android UI or views can be touch from Main thread only , but if we want to update some UI from background or separate thread then we have to use one of the following way :- AsyncTask has 4 override methods that are onPreExecute(...

Caching in Apache

Caching is an important feature to improve the performance of Apache server. By creating the caching rules effectively, we can conserve a good amount of resources and the content access by the user is significantly fast. Apache offers several met...

How to hide/show Toolbar when list is scrolling?

This tutorial describes how to show effect when list is scrolling up and down. Hiding Toolbar and any other views when list is scrolling down and showing it again when its scrolling up. In this tutorial we are using RecyclerView and Tollbar to ...

Problem in selecting Radio Button inside Repeater Control

Problem in selecting Radio Button inside Repeater Control:     Incase we are using RadioButton inside a Repeater, one common problem which we face is that we are not able to select single RadioButton, i.e. If we select one ...

HTML Parsing

HTML Agility Pack Html Agility pack is a free and open source library that can be used to simply read and write HTML documents. Html Agility pack constructs a Document Object Model (DOM) view of the HTML document being parsed. Developers can...

How to submit aui:form with ajax in liferay 6.2?

Basically we work with Portlet Application development and need to submit form and display the data in JPS page or need to store into database. In this blog I only illustrate simply submit the form data using ajax to portlet action methods and...

How to remove product tabs

Hi, If you want to remove all tabs or any particular tab for example description and reviews, then use the below code in the functions.php: add_filter( 'woocommerce_product_tabs', 'FindNerd_remove_product_items', 58 ); function findnerd_remo...

Integrating Cloud Front with existing S3 Buckets

Few days ago I was facing an issue that the assets served from the S3 buckets are not as fast as I wanted them to be and then I heard about a solution from AWS that is Cloud Front. So I am writing this blog so that you get to know that how ea...

Configuring i18N Api in rails internationalization

Rails Internationalization : Configure the i18n Module As we all aware that whenever we use term web, it refers to globalization of application. For globalization, your application must support multi-language support. In ruby i18n provides t...

How to install yii2 via composer on linux

Before installing yii2 we need to install composer for install composer runthese commands curl -s http://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer now for install yii first locate to your web root filder ...

Android Lollipop Navigation Drawer Using AppCompat 21

This tutorial is very useful if you are using material design navigation drawer. In Android's Lollipop navigation drawer it provide smooth animation when we swipe across the screen from left edge. You may use to this same functionality in older v...
1 230 269
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: