
Search In
If you want to change the color of an image then you can use the following code :
public Bitmap changeColor(Bitmap srcBitmap, int color) {
Bitmap resBitmap = Bitmap.createBitmap(srcBitmap, 0, 0,
srcBitmap.getWidth() - 1, srcBitmap.getHe
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->set('varia
How to create function for split string in SQL
Function accepts two parameters first the concatenated string and second the delimiter character.
CREATE FUNCTION [dbo].[Split](@String nvarchar(4000),@Delimiter char(1))
RETURNS @Results TABLE (Items
Below code will return you the products of a category that have status 'Enable' , Visibility 'catalog,search' and
Stock Availability ' In stock'.
$productDetails = Mage::getModel('catalog/category')->load($cat_id)
-
Generalized code for Login/Register/Forgot password using ASIFormDataRequest. Customize UI as needed.
How to use :
1. Either rename the project and start with development OR add AddedViewControllers, Utils and ASIHTTPRequest folders to your project
Add 'in stock' filter in product collection in magento
To get product that is in stock apply the below filter to your product collection -
$productDetails = Mage::getModel('catalog/category')->load($cat_id)->getProductCollection()->add
Hey guys, Welcome back to "Part 4 - Types on Mask in Photoshop".
In this Blog i am gonna tell you about Quick Mask.
OK Let's get started.
Question 1: How to apply Quick Mask?
Quick Mask is simply a Mask, but slightly different from previous mentio
Say Hello to Slim World
Today I am going to reveal first part of building REST API in Joomla 3.4 with SLIM Framework. To get started with Slim, here is small introduction about slim framework that is written on SLIM official website.
"Slim is a PHP
There are two methods to get assembly path:
Method 1:
Assembly asm = Assembly.GetAssembly(this.GetType());
string path = asm.Location;
string folderPath = Path.GetDirectoryName(path);
Method 2:
Assembly asm = Assembly.GetAssembly(this.GetType
You can pause your game in Unity3D by changing the rate at which the time is passing. It is very helpful in making pause menu in the game and in various situations that require pausing of all the events and physics to stop at the moment.
To pause yo
