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

Search In

NSTimer in IPhone SDK

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

How to authenticate MD5 password encyption in spring security 4

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

How to convert given seconds into day format using PHP

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) {

How to generate random number using Javascript

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

How to scale and strech the image in a fix size?

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

How to convert Unix timestamp to time using Javascript

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

Convert local time to UTC format

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

How to Authenticate user in PHP using PDO

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

How to get the max value from given multidimensional array using PHP?

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

How to create Odoo Search views?

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

1 178 408
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: