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

Search In

JSON data insert into MySQL using PHP

We can insert the json data in to mySQL using php .please see the below example for processing json data to mySQL. Example : - Suppose we have a file having json data like below - {"FirstName":"ravi", "LastName":"srivastva"} For processing

How to use fstat() function in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to use fstat() function in php ? The fstat() function is used for returning information about an open file. syntax of fstat() function fstat(file) file is a required parameter

How to upload large files from Android device to server

Android developers do face the exception when sending large file from Android device to a server. To send large file to a server you have to make the file into small size chunks and then send it to the server. setChunkedStreamingMode(1024), this met

Getting the Code of any site using php script

Open the code view of any site : <?php $lines = file('http://www.whoznext.com/'); //Site url foreach ($lines as $line&#95;num => $line) { // iterate through each line echo "Line #{$line&#95;num} : " . htmlspecialchars($line) . "<

How to make unique field and not allow duplicates records in openerp

To make a unique field and do not allow duplicates records in openerp, below is the solution In .py file use this code:- class course(osv.osv): _name="course" _columns={ "name":fields.char("Name"), } _sql_constr

Store File in Azure Blob

As i have already defined what all things we need as prerequisite to access a blob in Azure in my previous blog Retrieve File from a private container in Azure, Here is the code for Storing byte array in an Azure blob public string UploadByteArrayTo

How to import customize module in openERP?

If you want to import customize module in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: → import decimal_precision as dp from osv import fields, osv, orm from tools.translate import _ import one2many_sorted cl

How to use method decorators in openERP/Odoo ?

If you want to use method decorators in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: → model = self.pool.get(MODEL) ids = model.search(cr, uid, DOMAIN, context=context) for rec in model.browse(cr, uid, ids, co

How to use Computed fields in openERP/Odoo ?

If you want to Computed fields in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: → upper = fields.Char(compute='_compute_upper', inverse='_inverse_upper', search='_search_

How to use name_get method in OpenERP(Odoo)?

If you want to use name_get method in OpenERP(Odoo) follow the below mentioned code and paste it in your model.py file: def name_get(self, cr, user, ids, context={}): if not len(ids): return [] res = [] for r in self.read(cr, user, ids, [’name’,’zip

1 … 21 … 130
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: