Color is undoubtedly the essential means to touch the emotions of website visitors. It is a non-verbal communication and creates a physical and emotional reaction of the viewers. Colors are able to set the right tone and carry a necessary message...
We can get group information and also can check membership in that group from current logged in user, using following code:
$gidarray = array_keys($node->og_groups);
$gid = $gidarray[0];
global $user;
if(og_is_group_member($gid, true, $u...
After dealing with html2pdf library,I found that if we are trying to generate html to PDFs for more than one page never use nested table layout structure.in order to avoid this error "The content of a TD tag does not fit on only one page "..Inst...
**array_slice() Vs array_splice()**
What arrayslice() function do: As name suggest this function just return part/slice of array which we pass to arrayslice() function as parameter 1 depending u...
Tally ERP9
Tally is an accounting software which was start in 1988. In 1988 our Accounting works done by manually. All type of manual books like cash book, Ledger, Trail balance, Inventory Register, Sale Register, Purchase Register and Balan...
With the help of this Plugin user can login either with email or username . This plugin is compatible with Joomla 1.5, Joomla 2.5 and Joomla 3.1 .
How to install
Login to Joomla Administrator.
Install with Joomla installer
Proceed to y...
This is the demonstration of how to use a dispatch timer in WPF using C#.
private DispatcherTimer timer; // Declaring instance of DispatcherTimer class
public Window1()
{
InitializeComponent();
Loaded += new RoutedEventHandler(Window...
Creating Folder Structure Inside already existing folders..Through Bat file
Hey guys...!!
Today i am gonna show you "how to make folders or folder structure inside already existing folders
so what i have done is, I created a folder named as ...
Every person born on this earth have some talent, when this talent meets technology, a different kind of creativity is born. In 21st century, when we are surrounded by tech-freaks, it is time to explore something that has no boundary of caste, re...
As per maven project structure, there is a resource folder where all application related properties will be added. Implementation of log4j in MAVEN application,
Create log4j.properties file inside resource folder and paste below code lines:
...
Managing State by Using Cross-Page Posting
By default, a Button control on a Web page submits the page back to itself. However, sometimes, you may want to post one page to another. In such a case, you can set the PostBackUrl property of the Bu...
Whats new in Adobe Photoshop CS6
Type
Paragraph and character styles
In the Window > Paragraph styles panel, create, store, and reapply the characteristics of groups of highlighted sentences. within the Window > Character styles panel,...
How to enter values in html table dynamically
Filling Values in a html table dynamically
//Below is the program to create a table structure dynamically.
//Input is taken from the User in 'Radius' TextBox and Unit is selected from 'Sel...
What is Responsive Web Design ?
Website designs that fits on different screen size such as desktop, laptop and on all other mobile screens.
For designers responsive website is not just media queries. As a designer if you consider creating a...
At times we need to change the message that is displayed after a node is saved.Follwing code helps to customize using form_alter.
function mymodule_form_alter(&$form, &$form_state, $form_id)
{
if($form['form_id']['#value'] =='fo...
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 =...
Previously got a situation where I needed to get the list of all the tables where a particular column lets say partner_id exists, might be useful for you too.
Just run the following query in PostgreSQL:
SELECT * FROM information_schema.col...
The easiest and possibly the best idea of importing data from another database to a new database is the CSV export. OpenErp gives you this feature in the versions 6.1 and 7.0.
Following is the example on how you can export customers to a csv ...
In medieval period of programming, when I use to read what Yashavant Kanetkar wrote about C language, I wonder if this high-level programming language pattern can be bettered. It gives me so much freedom to write code and I really-really liked th...
"Renaming Multiple files through DOS commands"
Hey guys..!!
Today i am going to show you "How to rename Multiple files with the help of DOS and Ms Excel"
After reading this blog you will be aware about some cool formulas of MS Excel as well ...
It is an obvious situation for any company to prevent the creation of duplicate partners with same name, and same case. To stop this we can do the following steps:
First merge all the duplicate entries on one partner.
Delete the other partn...
<html>
<head><title>myForm</title><head>
<body>
<form action = "example.com" method="Post">
First Name:
<input type = "text" name = "firstname" />
Last Name:
<input type = "text" name = "...
set() is the way to set values in your controller and get those values in your view file.
Syntax of set is-> $this->set('variable','value')
In cake-php controller you can set the values as -
set('variable1','value1');
$this->...
/----------Get products collection --------------/
<p>$allproducts = Mage::getModel('catalog/product')->getCollection()->addAttributeToSort('name', 'ASC');;</p>
It will return you total products, sorted by name i...
To change the orientation of an image write the following code:
BitmapFactory.Options o2 = new BitmapFactory.Options();
o2.inSampleSize = 2;
// Get the original bitmap from the filepath to which you want to change orientation
// fileName i...
How to use Transaction and Try Catch in Stored Procedure
Suppose you are working on multiple table in a database eg updating, deleting and inserting on multiple table then it is always a good practice to maintain Transaction property as using ...
Hi all,
Sometimes we need to add placeholder in our form fields but it get little bit complex when it comes to form api under Drupal CMS.
There is no hard coded form fields in drupal (In case of content and comment forms), everything is com...
We all know Adobe Photoshop is full of smart and amazing tools, in terms of accuracy and user friendly steps, If you are tired of doing same steps over and over again while enhancing you image or bulk of images, try Actions in Photoshop .
Act...
What if you want to build the iPhone app with iOS sdk 6.0 and want to use some method of iOS sdk 7.0?
There is no such way in Xcode to build the app using two different versions of iOS sdk.
If you use any method which is available only in...
Yesterday i was searching about how to generate and download csv file in php script using array, i google it and found lots of code there but nothing was working according to my requirement then developed this code. Feel free to let me know if yo...
Game design:
Working with silhouettes:
While making the character concept art more often we ignores the very basic principles for character designing called silhouette. Silhouette is an single coloured image of an person painted in black o...
In android playing videos from web-view is such a mess but now just using a small trick you can play all web videos of the YouTube, Daily-motions, etc.
You just have to add this method in your web-view Activity.
Here is the trick-:
...
Features of NGUI :
Easy to implement
Written in optimized c#
It supports iOS, Android and Flash plateform
Intigrated with Unity Inspector.
Quick add template widget using Widget Tool
Every widget is an object as other in Unity.
Resize/...
Step 1- choose a model for baking Ambient Occlusion.
Step 2 - make sure you have a proper UV Layout for your model.
Step 3 - Set the project and save the file .
Step 4 - Make sure the Mentalray plugin is loaded in...
To drag and drop a movie clip we use two function:
1.startDrag()
2.stopDrag().
startDrag(): is used to drag a specified movieClip. MovieClip remain draggage until explicitly
stopped by making call to stopDrag().one movieclip is dragged at...
Cakephp provides a quick an easy way to paginate data.
In the controller we start by creating the pagination condition as given below :
public $paginate = array(
'limit' => 10,
'order' => array(
...
What is an e-Commerce?
e-Commerce is doing business online and electronically. e-Commerce is about buying and
selling products and services on the Internet. The sellers are individuals, small
businesses or large corporations. The buyers are...
As eCommerce market in India is about to grow over $24 Billion USD by the end of 2015.To grab the opportunity of this growing market there are many eCommerce stores are coming up and each facilitating new features to make the user experience gr...
HTML 5 is rocking everywhere on the web.The key behind the HTML5 success is the set of powerfull api it provides. These html5 api make a web app server independent in many ways.Such an api or a set of api is webrtc.
Web rtc is most powerfull thi...
In an IOS app development,user can have two methods to download file from server i.e Synchronous and Asynchronous . So before going ahead ,please take a look to the basic knowledge of these methods .
A Synchronous method is preferable in case ...
Let's say you have an array of countries and you need comma separated values of 'countries'.
Countries Array :
$countries = array("India","USA","UK");
To convert array elements into comma separated string, use this php inbuilt function c...
If you want to append HTML in pre-defined HTML :
$("#detail").append('<div class="demo"><p class="modify">He has all the ability and a perfect attitude.</p></div>')
Hello,
Convert a NSString to NSUrl
If you want to convert a NSString to click able Url then you have to use this code using escape dataString.
NSString *string= [NSString stringWithFormat:@"https://maps.google.com/"];
NSString...
In this blog i'll show how can you make responsive table. To make a table responsive first step is to know "nth-of-type" , that is a selector of css3 you can see that in css as i explain it ( In css - line 50 ), now we will make a table
-...
Red5 Media Server delivers a powerful video streaming and multi-user solution to the Adobe Flash Player and other exciting client technologies. Based on Java and some of the most powerful open source frameworks, Red5 stands as a solid solution fo...
Traditionally, big cities have been the first choice for entrepreneurs to setup and run offshore software development companies. Cities like Delhi NCR, Bombay, Bangalore and Hyderabad are first in that line.
But with time, the technological cha...
Baking IK Animation to the Joint in
Maya
Hi all , welcome to the exciting world of animation .
The purpose of this tutorial is to not to go into details of how to create animation, rather it is about a simple utility in Maya to conver...
Drag and Drop functionality provides user a facility to move a data (or object) from one view to another.
This tutorial will help you with the development of the Drag and Drop functionality in your android application. For this you require API l...
Test factors can be defined as the categories which can affect the components of the project.In others words we can say, for desighning the test cases the following factors are considered:
1.Correctness: Correctness is the minimum requirement...