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

Search In

Create a extension class in swift of singleton

Hi, To Create a extension class in swift Please follow the steps below. 1- Add a new Swift file in your project and add the following code import Foundation //MySingltonClassSwift is a singletonClass or you can use any class for which you want to

Create a Singleton class in swift

Hi, To Create a Singleton class in swift follow steps below: 1- Add a Cocoa Class file subclass of NSObject named it as MySingleton and now write down the code as .   import UIKit class MySingleton: NSObject { static let sharedInstance

main.c:18:8: error: called object ‘sum’ is not a function or function pointer

Please help me to solve the error main.c:18:8: error: called object ‘sum’ is not a function or function pointer, below is the code: #include<stdio.h> int sum(int*a,int*b) {     int s=0;     s=*a=*b;     return s ; } int mai

cakephp 3 not able to save data

any cakephp 3 developer here? i am getting this error. my code is given in pic. i m inserting data into status table from users controller. how my controller will know abt status table in cakephp 3. help pls. Error: Call to a member function newEnti

The valueOf() Method

In Javascript ,valueOf() method is used to wrapped the primitive value of a String object .And this method is automatically call by javascript (from backend ). Syntax : stringobj.valuOf( ) // There is no parameter . In Javascript , this method is

toString() Method in javascript

Basically toString ( ) method is used to convert a number into a String .In this there is no argument . Syntax Obj.toString ( ) Simple Example - var number = 15 ; var no = num.toString ( ) ; // Output -> 15 Every Object has a toString ( ) m

How to use api.model in OpenERP(Odoo)?

Api.model will convert old API calls to decorated function to new API signature. It allows to be polite when migrating code. The below code you can use in your .py file . @api.model def afun(self): pass Note- Model.api will automatically convert it

Abort the current XMLHttpRequest in AJAX?

For this operation we have a function abort(). Here is the process code. var xhr; xhr = $.ajax({ url: 'ajax/userDetails/user_id/3', success: function(data) { console.log(data); } }) fn(); //Abort the Ajax call if(xhr &

What Is Agile Testing

AGILE is a methodology that promotes continuous iteration of development and testing throughout the software development life cycle of the project. Both development and testing activities are concurrent unlike the Waterfall method. Agile Testing can

Function calling on button click in OpenERP

Adding a button on an OpenERP view is very easy and calling a function on it too. For example I created a function to add cartage amount on the sales order, I created a field to add cartage amount on it and then on button click it will be added to th

1 … 168 … 331
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: