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

Search In

How to get the current Cordinate in OpenERP/Odoo ?

For current cordinate we have to add a button resetting the product's coordinates to the location of the user, you can get these coordinates using the javascript geolocation API. Now we would like to display an additional button to automatically set

How to search and read records in OpenERP/Odoo ?

Odoo provides a search_read() shortcut which as its name notes is equivalent to a search() followed by a read(), but avoids having to perform two requests and keep ids around.for example code is like below. models.execute_kw(db, uid, password, '

CakePHP built-in sessions

CakePHP have several In-built sessions configurations. We can use these sessions as the basis or can create a fully custom solution for that. To use defaults inbuilt sessions, we can simply set the ‘defaults’ key to the name and can override any sett

How to autoload 'libraries' in laravel 4

We can easily auto-load libraries in Laravel 4.x by using namespaces in our application. Then put all libraries you code under that namespace. Suppose our directory structure would then be: libraries Myapp Search (note directory is capi

Android Iphone push notifications php API

Push notifications are messages that allow an app to notify of a message similar to how a text message pops up on your screen with a sound.Code for Android ,Iphone API push notification is given below by using urban airship Android Push Notificatio

How to change the Image orientation in Android

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 ist the fi

How To Change Input Type File Title In HTML

We are change the input type file title with the help of this script Like Browse Title Change in to Choice File use this script for change Title function browseclick(){ var fileinput = document.getElementById("browse"); // use input file id

Set predefault current date in datebox

How to set pre default current date in datebox before choose any other new date: We have to follow following steps. Step 1:- Download below 2 files. jquery.datepick.js jquery.datepick.css Call both file in HTML head <link type="text/css" hr

Sending email using drupal_mail()

Sending email using function drupal_mail(). All you need to do is install and configure SMTP module and then add the given code in your custom module. function sendemail(){ $to = ' xyz@gmail.com '; $from = ' abc@gmail.com ';

Can I use an enum type in Java switch statement?

The Answer to this question is yes, we can use enum in java with switch statement. the following examle shows how: enum Car{THAR,XUV,SCORPIO} class Cars { Car car; Cars(Car car) { this.car= car; } public void tell

1 278 408
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: