
Search In
If you want to use a unique cron job for all subscriptions system then follow the following code in your subscription module in .py file.
def set_process(self, cr, uid, ids, context=None):
for row in self.read(cr, uid, ids, context=contex
In below example, I have written Python script for account cashflow operations. see below python code in .py file :
import time
from datetime import datetime, date, timedelta
import tools
from osv import osv, fields
import decimal_precision as dp
fr
In SQL while storing or retrieving passwords we need to ensure that it should be in encrypted format.
So for doing that we first need to store it in encrypted form
CREATE PROC [dbo].[uspRegisterUser]
@FirstName VARCHAR(50),
@LastNam
There are several properties available for MPMoviePlayerController in iOS. We just need to use them to play the movie according to our need.
You can access these properties like this:-
Create property in .h file
@property (strong, nonatomic)
If you are facing following issue while starting tomcat:
SEVERE: StandardServer.await: create[localhost:8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
at java.n
There are different ways to create a singleton/shared instance of a class in Objective-C.
Here I have explained two most preferred methods for it and both are thread safe.
1) Using "@synthesize"
#define SINGLETON_FOR_CLASS(yourclassname) \
Hello All,
Following lines of code will customize the delete button in UITableView editing style. This is an override method of UITableViewCell which is called when UITableView goes in editing mode. So to customize the delete button in UITableView e
If you want to store multiple values in a single variable javaScript arrays are used.
There are few ways to store values in array in javascript which are mentioned below.
First way:
HTML:
<div id="fruitList"></div>
Javascript:
var fr
The rand() function is used to generate a random integer number.
How to use rand() function?
Syntax of rand() function:rand(); or rand(min,max);
min:- min is use for Specifieing the lowest number that is retuned. Default min is 0.
max:-max is use
To add placeholder UITextView first take outlet of UITextField
ex- @property (weak, nonatomic) IBOutlet UITextView *yourTextView;
Then follow these steps
1. In viewDidLoad add these line of code
self.yourTextView.text = @“Please type here.”;
