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

Search In

Define hooks in Drupal?

hooks:- hooks are api code in drupal which allows interaction between module and Drupal core. Basically A hook is a PHP function look like - general_test() “general” is the name of the module (file name for whom is general.module). “test” is

How can we find the number of days between given two dates on php 5.3 and above

Hi if you are using php version 5.3 or greater then some functions are really very quick to write and use. In this blog I am calculating the days between your given two dates. This is by far the most accurate way of calculating the difference: This

Fetch profile pic from Facebook

For some reasons Facebook doesn’t provide profile picture with user info dictionary/data. We need to fetch profile pic using graph api. Once user is done with successful authentication he can use following snippet to get profile picture URL. [[FBReq

How to get date of past days in java?

To get the date of the past day you can use the below code. You can pass any number of day for which you want to get date instead of 7, I'm getting date of past 7 days in the below example: /** * Get date before past 7 days * * @return string

How to generate the barcode for product in openerp (Odoo)?

You will need the following kind of python code declaration in your .py file: class product_category(orm.Model): _inherit = 'product.category' _columns = { 'ean_sequence_id': fields.many2one('ir.sequence', 'Ean Sequence'), }

How Cake PHP redirect with parameters in url

Hello readers, If you are using cakephp and want to redirect user to any other page/controller with some passing values in url, Well cakephp provides you its own syntax written in php, check bellow example: $this->redirect( array(

Zoom in an UIImageView using 3D transform in objc

If you are looking for a function to Zoom in an UIImageView in a 3D tranform scale then you should use CATransform3DScale. First of all declare a BOOL variable to check scale points. Here I am taking CGFloat _scalePoints and CATransform3D transfor

How to manage amount interest provision in accounting in OpenERP(Odoo)?

In below example, I have written Python script to amount interest provision in accounting. Use below python code in your .py file : if demand.amount_interest: cfpline_obj.create(cr, uid, { 'origin': demand._nam

Redirect to app settings in iPhone

If you want to redirect to app settings from your app then use below code to do it. Apple provides a list of URLs to redirect the app to its setting section. Here is the code :- In a Swift Program:- UIApplication.sharedApplication().openURL(NSU

Cake was unable to write to File cache in cakePhp

Hello All, In this blog we will discuss about the File cache write problem in CakePhp application. Everytime when you install new version of the cakePhp or port your code on to the server you come across this error depicting that the cake is unable

1 280 720
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: