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

How to show stars instead of theme ratings in Woocommerce

If you want to show stars instead of theme ratings in Woocommerce, you can do this by changing the Woocommerce star ratings. The Stars rating is the default rating system in WooCommerce, so to match the rating system with themes we have to dis...

Setup for Windows Application using Visual Studio 2013

"Creating Setup for Windows Application using Visual Studio 2013"     To create setup using visual studio 2013 you should have Visual Studio Installer, else you can download this extension from: Visual Studio Extension Ga...

How to enable Macros in OpenOffice

You can enable the Macros in OpenOffice by following steps: Click on Tools Click on Options Click on Security Press on "Macros Security" Select "Medium" and add "Trusted Sources". You can add the folder to the Trus...

How to adjust height of row to fit text in cell

If you want to adjust height of all rows to fit text in cell, you can do following. This will save your one by one height adjustment for each row. Select the rows for which you want to adjust height. In Microsoft Office Excel 2003 & ear...

Implement Queue Using Dynamic LinkList

Queue using Dynamic LinkList:-The Below code can shown you how to implement Queue using dynamic linklist in data structure using C. We can insert the node dynamically and the Linklist works on principal First-In-First-Out(FIFO). The Element can s...

How to make use of undo mail functonality of Gmail

Most of the times after we have dropped a mail we think of making a change in the mail which has already been sent making task impossible. But thanks to Gmail for providing their user with the option of enabling undo mail functionality which ca...

DBMS_OUTPUT.PUT_LINE not printing or anonymous block completed

If your DBMS_OUTPUT.PUT_LINE code is not printing any of your logs or if you are just viewing "anonymous block completed". Following will fix the issue. You need to configure a buffer for dbms_output. You can run following command in SQL Promp...

Save file to Document directory in liferay 6.1 using API

File Upload in Document Library of Liferay:- First we need to create the folder in the Document Library of Liferay. In my case the folder is created with dentalnoteDocuments name. In below code AddInfo.jsp we can take simple AUI FORM to inser...

How to Disable tab (space) on HTML Editor

Hello all, Working with Rich Text Editor, some times we need to disable Tab Key, which creates space between two text or HTML Elements inside the Editor. To do that we have following block of code: In HTML Page : <div id="editor" o...

Send JSON Objects with an ajax request

Hi, To send an ajax request, we have number of functions in jQuery. But to send JSON object along with the request, I chose jQuer.ajax(). It takes various parameters url, type, data, dataType, beforeSend etc. See below steps jQuery.aja...

Get the current user Liferay using a simple Java code

Get Current User in Liferay:- We can find the current logged in user in liferay using the below code Script. There are two methods to get the current User of liferay as following: 1. we can directly use the PortalUtil class in Liferay. Por...

ASP.Net MVC-What's inside-Part2

This is the continuation of Part 1 of article-ASP.Net MIC-What's inside Now we come to 3 folders which are building blocks of any MVC application. So let us start with controller. Controller:-      Here we can create ...

Drupal 7 authentication with javascript using Phone gap or Sencha

How to implement Drupal 7 authentication with javascript using Phone gap or Sencha Using Drupal 7 authentication with javascript using phone gap or sencha?

Using Ajax request in a Liferay portlet

Ajax Request in Liferay Portlet:- In below code we will show you how you will call the ajax request in the Liferay. We can pass the aui form values to the PatientSearch portlet then get the result from database and display records in HTML table. ...

How to make readonly field in OpenERP(Odoo) ?

In readonly field first we have to go in .py file (python file) After that we have to decide where we want readonly field and then give attribute readonly to that field. See below python code in py file for reference : - class spartner(...

How to save image from url into device photo gallery

If you want to save image from url, you have to merge the following code to you js file First of all, we have to add the following plug-in to read, write and navigate file system. Write this in your code: cordova plugin add org.apache.cord...

How to refresh all modules and database at a time in OpenERP (Odoo)?

Step-1 Go to terminal -> Start the OpenERP Server-> and enter the below commands Step-2 ~/workspace/OE7_Test$ ./openerp-server Step-3 ~/workspace/OE7_Test$ ./openerp-server u all Database name So this will Refresh all the modul...

How to send SMS via Asp.Net Application

"Send SMS via Asp.Net Application"     In this article I will explain how to send Free single/bulk SMS through Asp.Net Application.    There are many websites that allow sending free messages such as Way2...

How to hide the field in OpenERP (Odoo) ?

To hide the field first we have to go in .XML file (OpenERP) After that we have to decide where we want to hide the field and then give attribute invisible to that field. As in example below, .XMLcode in XML file : - <record id="view_or...

Read and Write JSON data in MySQL

Store JSON in MYSQL:- Here below snippet will show you how we can store json data in mysql and read the json data from mysql and convert into a java object. Remember that the field where you can store the JSON data in mysql to set data type of t...

Using Enum.TryParse for parsing value to enum

This is a demo of using Enum.TryParse method for converting string values to enum type. We have function Enum.TryParse under System namespace in Enum class. This method is used for parsing string values to enum type. Signature of the method is...

ASP.Net MVC-What's inside-Part1

The previous article shows a conceptual flow in ASP.Net MVC framework. There we saw that the controller is the central point of execution in MVC.And as you have gone through two theoretical articles on MVC flow, I think you've understood why con...

Send email using gmail SMTP C#

This is a simple C# program that send email to recipient. It uses gmail smtp. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Mail; using System.Net; namespace SendEmail { cl...

How to change the theme or highlighted color of EditText

In order to change the theme or highlighted color of EditText do the following steps:- 1) Create colors.xml file inside the values folder (if you don't have) and then declare colors <color name="ColorPrimary">#4484F6</color> <...

How to connect to Sql Server in C#.Net

To Create the DataBase Connectin locally with the sql server using c#.net some steps need to be follow . But Before establish the connection with the database the sql server need to be configured . Steps to connect with sql server is given be...

What is the purpose of using IBOutlet & IBAction?

As you all know that at compile time 1. All IBOutlet keywords are removed entirely. 2. All IBAction keywords are replaced by void because actions invoked by user interface controls are not expected to have a return value. The question then a...

How to show alert view in Swift (iOS8) with OK and Cancel button?

To show an alert view in swift while using iOS8. Here is an example of how to use it: var MyAlert = UIAlertController(title: "Logout", message: "Are you sure?", preferredStyle: UIAlertControllerStyle.Alert) var MyOkayAction = UIAlertAction...

Add new element to an array in javascript

Javascript provide us a push() method by using this method we can add new element in to the array. Ex:- var name = ["Amit", "Rohit", "Manoj"]; // existing array with names name.push("Kapil"); // adding new element Output:- name arra...

Difference between 'var' and 'let' in swift programming language

In Swift, both defines a variable. The let keyword define a constant like let api_key = 42979 The api_key cannot be changed afterwards; Its value is set once and only once The var define an ordinary variable that hold the data like ...

How to show an alert view in Swift Programming Language?

To show an alert in Swift programming language, you need to first import the UIKit framework then use UIAlertController object. A UIAlertController object displays an alert message to the user. Important: UIAlertView is deprecated in iOS 8....

ORDER BY keyword in SQL

We use ORDER BY to make our record list in a ordered manner in the sense of descending /ascending sort. Syntax:- SELECT column_name, column_name FROM table_name ORDER BY column_name ASC|DESC Note:- User can ORDER BY more then o...

Simulating click event in Javascript or Faking Javascript click event..

<script> function fakeClick(event, objId) { var obj=document.getElementById(objId); if (obj.click) { obj.click() } else if(document.createEvent) { if(event.target !== obj) { var evt = document.createEvent("MouseEven...

Mail function PHP

PHP provides us a predefined function named as mail() for sending mails. Syntax: mail(to,subject,message,headers,parameters); Ex:- $mail_msg = "This is my test mail"; mail("abc@gmail.com","My subject",$mail_msg); // Sent mail ...

Reverse a string php

We have predefined function name as strrev() to reverse a string in php. Syntax is:- strrev(string); Ex:- $data = "Good Book"; $reverse = strrev($data); echo $reverse; Output is:- kooB dooG

Count No. of words in a string php

User can count the number of words in a string using php predefined function name as str_word_count() Syntax is: str_word_count(string name); Ex:- $string = "This is new text"; $count = str_word_count($string); echo $count; ...

Handling Child Javascript Window Close events

More often than not you want to create a child window and want to capture its events. This example simply captures its close event. var childWindow = window.open("new.html"); function doStuffOnUnload() { alert("Child Windows Cl...

Implement Stack Using Dynamic LinkList

Stack:- The Below code can shown you how to implement stack using dynamic linklist in data structure using C. We can insert the node dynamically and the Linklist works on principal Last-In-First-Out(LIFO). #include<stdio.h> #include<...

Liferay: Enable custom password on Registration form

You can enable custom password on Registration form. Use the below steps to enable custom password on Registration form: If portal-ext.properties is not available then you can manually create portal-ext.properties file into the /tomcat-7.0.4...

Select Image from Device

Hi, If you want to select image from device in Xcode, you can use the below code for this. #import <uikit.h> @interface ViewController : UIViewController&lt;UIImagePickerControllerDelegate,UINavigationControllerDelegate&gt; { ...

Liferay: Make screen name auto-generated on Registration

There is Screen name field on Liferay registration form, you can hide that field and make screen name auto-generated. Use the below steps to make screen name auto-generated on Registration: If portal-ext.properties is not available then ...

Read and Write the Structure in File using C ( File Handling )

File Handling in C:- The File handling is used in c to store the information in file. we can read the data from file and write the data into file for securing your data. Here the below example can show you how to write and read the data of struct...

Liferay: Hide Birthday and Gender fields from Registration form

You can hide Birthday and Gender fields from Registration form. Use the below steps to hide Birthday and Gender fields from Registration form: If portal-ext.properties is not available then you can manually create portal-ext.properties file ...

Horizontal slide toggle

Hi all, If you would like to have the horizontal toggle options, according to example when you click on the button to slide, it will play the animation reversed and hide the element. See the below example to toggle slide a div. Script:- ...

How to use DIV tags as TABLE layout ?

Hi Folks, This article is about, how to use DIV tags as table layout using CSS. Sometime we all face some problem with table layout in creating responsive design. Here I am using the class name same as table layout and I hope it will be more c...

Error:A potentially dangerous Request.Form value was detected from the client

"A potentially dangerous Request.Form value was detected from the client "    If the "ValidateRequest" is set to true and someone tries to submit HTML content (Example:<a> Hello </a>) to the server, this error occurs...

Phonegap apps plugins installation issue

When we use cordova plugin in phonegap apps, sometimes we get plugin installation error. We can get rid of from this error by first installing plugman. The code to install plugman is given below. hit it in terminal and then we can install cam...

Java.lang.OutOfMemoryError: Java heap space

If you are facing following exception while running your code: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space Default size of most of JVM Java Heap Space is around 64MB, it can easily ran out of memory if your appl...

Deleting information from database in android

Deleting record from database using Sqlite Helper class. We have taken Name, Age and City as input from user and saving them on click of Save button and deleting on click of Delete button from database. MainActivity.java public class Ma...

Loops(Control statement ) in Swift

For loop: In swift there are two types of for loop: 1: for-in loop for-in loop with Array: let myIntArray = [ 10,20,30,40,50,60,70]; var index = 0; for value in myIntArray { println(" MyIntArray[\(index)]=\(value)); ...

Perspective mockup using CSS

Hello all, Below is an example, how to create 3D mockup to create this you should know about css Transfrom and about pseudo class. CSS:- div{height:240px;width: 160px;background: #ccc; position: relative; top:40px;padding:5px;bo...
1 248 292
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: