
Search In
Many a times we come across to situations where we need to find out whether a given pixel in an image is a solid pixel or a Transparent Pixel.
Here is how we can check that.
We have an image property called alpha value which tells us about the transp
Sometime we need to send a invoice pdf in a invoice mail in magento, so here I am explaining how to add invoice pdf in invoice mail.
1) Override the app/code/core/Mage/Core/Model/Email/Template/Mailer.php file in your module
2) Add one protected va
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_remove_produ
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_one_longi
Hi Readers,
In any iPhone app if it is needed to iterate or remove NSUserDefault keys (as in logout feature), following code can be used:
To iterate key objects:
NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
NSDicti
If you need to print the complete current url you can do following steps.
1. In the view file code will go like this:
<?php echo $this->here; ?>
This syntax'll give you the absolute url starting from hostname i.e. /controller/action/para
Hello Nerds!
If you are going to develop a new project in cakephp then you might need Debugkit for that, and its really a lifesaving tool for rapid developments.
You can install DebugKit using doing the following steps as:-
Step 1:- You need to dow
Hello Guys,
Here, I am writing code for get session attribute in velocity. First of all set session attribute in view.jsp or class of the portlet then get session attribute in velocity template.
Follow below steps to implement.
step : 1 put below
Function Templates:-Templates are used to achieve the generic programming. By using function template the code will be independent to any data type.
A template is used to create generic class or a function. By using function templates we have used t
If the create method is successful, the value associated to the request key will be a dictionary containing various information about the created request:
1-id: the request id
2-key: your private key for this request
For example code is like below.
