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

Search In

Bounds and Frames in iOS

Hi Readers, This Post is to tell about the BOUND and FRAME in ios. BOUND: The bounds property of a view defines the size of the view and its position in the view's own coordinate system. This means that in most cases the origin of the bounds

How to use widget parents and Children in OpenERP/Odoo ?

If you want to widget parents and Children in OpenERP(Odoo) follow the below mentioned code and paste it in your wizard .js file: local.HomePage = instance.Widget.extend({ start: function() { var greeting = new local.GreetingsWidget(thi

Deserialize object

This is required to deserialize an object or data while recieving data over the network. you can use following code to deserialize your object and return its encoded bytes like this : public static Object deserialize(String str) throws IOExceptio

How to open OpenPanel in mac os

static NSArray *openFiles() { bookmarkMode = 0; NSOpenPanel *panel; NSMutableArray *extension=[[NSMutableArray alloc]init ]; [extension addObject:[[NSUserDefaults standardUserDefaults]objectForKey:@"ImageExtension" ] ]; panel = [

How to redirect console logs to a file

To redirect the log statements to a file instead of console call the following function at the start of function applicationDidFinishLaunching. - (void)redirectConsoleLogToDocumentFolder { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSD

Hide format text from body in drupal

If anyone wants to hide the format text from the body field in drupal then try it:- // override hook_form_alter function CUSTOM_MODULENAME_form_alter(&$form, &$form_state, $form_id) { if($form_id == 'restaurants_node_form') {/

How to copy image in NSPasteBoard

To copy the image on NSPasteBoard following code can be used: - (IBAction)paste:sender { NSPasteboard *pasteboard = [NSPasteboard generalPasteboard]; NSArray *classArray = [NSArray arrayWithObject:[NSImage class]]; NSDiction

Magento restrict user registration to specific email domains

In Magento we can restrict user registration to specific email domains, therefore for restricting specific email domains on registration page we have to add a validation for example we can add like this- function validateEmailDomain($email) { if

How to find available user in live chat in OpenERP(Odoo)?

In below example, I have written Python script to find available user in live chat . If you are stuck in such case then directly copy below python code in your .py file: users = self.get_available_users(cr, uid, channel_id, context=context)

OAuth 2.0 Authentication on Wordpress site

We are here to discuss OAuth 2.0 Authentication in wordpress. Do you know about OAuth?. What is OAuth?. OAuth is nothing but a open protocol which is useful to allow authorization by easy and secure methods from web/mobile/software applications. In w

1 515 596
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: