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

Search In

How to change the label of a button on click event

Sometimes we need to change the label of a button on click event. Suppose you have button label as "Start" and you want to change that to "Stop" upon clicking start button. Example: In the below example I've created a functio

How to create Triangular imageview in objective C

Here is the code for creating the triangular uiimageview - UIBezierPath *bzrPath = [UIBezierPath new]; [bzrPath moveToPoint:(CGPoint){0, self.imgView.frame.size.height}]; [bzrPath addLineToPoint:(CGPoint){80, 0}]; [bzrPath addLineTo

How to convert from NSSTRING TO NSDATE ?

// date from string NSString *dateString = [NSString stringWithFormat:@"%@",_model.time]; // model.time is the field in which we are fetching the string. NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter se

How can the gameobjects in unity be moved back and forth linearly

If you want to move gameobjects back and forth in unity than you can do this by using a function  Mathf.PingPong. This function takes two float values we can say 'q' and 'length'. It will ping-pong the value 'q' so that i

How to add Gradient effect to UIButton ?

Hello all ! For adding Gradient effect to the UIButton we can implement the following code :- CAGradientLayer *gradientLayer = [CAGradientLayer layer]; gradientLayer.frame = _customButton.layer.bounds; // _customButton is the outlet of UIButton

How to show a menu badge in OpenERP/Odoo?

If you want to show a menu badge in OpenERP/Odoo then you should follow the below code:   class Shiva(models.Model): _name = 'Shiva' _inherit = ['ir.needaction_mixin'] STATES = [ ('healthy', "Healthy Shiva"),

How to disable the text select in browser with demo?

If the user doesn't want his content to be copied or only want the other user to read it. He can use the following code of lines to disable the selection of text in the browser. <div style="-moz-user-select: none; -webkit-user-select: none;

How to find number of days between two dates

Below code is used to find number of days between two dates NSDateFormatter *startDateformatter = [[NSDateFormatter alloc]init]; [startDateformatter setDateFormat:@"dd-MM-yyyy HH:mm:ss"];//setting date formate NSDate *startdate = [st

How to share posts in Facebook by using SLComposeViewController in iOS

We can share post in Facebook by using following steps: Add one button on ViewController and give action to it. Import #import <Social/Social.h> Now in button action write following code. - (IBAction)facebookButtonAction:(id)sender {

How to call and create parent class in account module in OpenERP(Odoo)?

In OpenERP first, we create custom module and then create function in your existing module and pass parameter in function name is MaterialsRecursive. In below example I have written Python script to Include only parent level class. Like given below

1 141 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: