
Search In
Here is the code for:
calling a method after a time interval delay.
we use the NSTimer to implement this.
NSTimer *timer= [NSTimer scheduledTimerWithTimeInterval:3.0
target:self
Whenever we deal with password in an application, we go for some encryption. In spring the password it authenticated within the configuration.
Here is the sample code where we have already saved the password in encrypted form and now during login th
On converting the given time in seconds you have to follow the calculation in days and hours etc. Using PHP you can get the format by using the code below:-
Here I created the function ConvertToSec ($sec) as param:
function ConvertToSec($sec) {
In Javascript you have a number of functions to genrate random numbers between two given digits. Some of them are inbulit and some you can create for your own, But the simplest way to perform the operation is the code below:-
// Returns a random int
If you have a fixed div and you want the image to be put over it by stretch and scaling then you can use the following code for html and css:-
In the html page add class 'background' and 'stretch'
<div id="background">
<img src="img.jp
Hello Reader! If you having the timestamp generated by Unix and you want it to be in format of time then you can use the example code below:-
function MakeTime(TimeUnix) {
var d = new Date(TimeUnix);
var h = (d.getHours().toString().length
Hello Guys,
Today we will learn how to convert the local time period into UTC format :
We will create a function with offset and time as parameter.Below is the code:
function
convertToUTC($DateTimeZone,$offset){
$DateTimeZone='2015-10-28 03:1
Hi friends,
If you are using PDO in php , Now you can Authenticate user using simple code.
include 'conn.php';
try
{
$username = $_POST['user'];
$password = $_POST['pass'];
$smt=$conn->prepare("SELECT * FROM signup WHERE username
Hello Reader! If you having an multidiamensnal array and you want to get the max value from a single element key then you see the example below:-
[0] => stdClass Object
(
[id] => TRF1254
[cust] => CUST9897
[amoun
If you want to make Search views in OpenERP(Odoo) follow the below mentioned code and paste it in your .xml file: -
<="" field="">
<record model="ir.ui.view" id="course_search_view">
<field name="name">course.search
