
Search In
In python simple server is Internet servers, we use the socket function available in socket module to create a socket object. After then a socket object is used to call other functions to setup a socket server. after this call bind(hostname, port) fu
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
Using Android Intent system we can share on whats app from our application. Whats App application have listeners that listen to intents to share media and texts.
Simply create an intent to share text, for example, and WhatsApp will be displayed by
Hello Friends,
If you are new in WP and you would like to use short code, get the knowledge of this as below.
Short code is a simple piece of code use in POST or PAGE to invoke set of functionality. For example Contact Form 7 provide
[contact-for
In one of my project I had a requirement of calling a function written in angular controller from the jQuery function.
Let us understand with the help of an example:
As every controller has $scope, therefore we can access the scope of a
Follow the below steps to parse JASON in PhoneGap.
Step 1. Call Js function From html page or from where we want, like this
function onBodyLoad()
{
document.addEventListener(“deviceready”, callJson, false);
}
Step 2.
Create a function of name cal
To check mod_rewrite enabled or not you need to follow the following steps:
Create a php file on to your server and call phpinfo() function to that file.
Now access the file using your Browser.
Inside apache2handler you will find a field Loaded Mod
If you want to make a functionality that can be used anywhere in the code. For example, you want some method that can be called on the jquery selection and it can perform number of operations on the selection. For this, you can write a plugin.
For e
Api unity of returned value will return a RecordSet of specified model based on original
returned value:
In below code i have explain api_returns
@api.returns('res.partner')
def afun(self):
...
return x # a RecordSet
Note- And if an old API functi
Let's say you have an array of countries and you need comma separated values of 'countries'.
Countries Array :
$countries = array("India","USA","UK");
To convert array elements into comma separated string, use this php inbuilt function called join
