Friday, December 17, 2010

How to get motherboard and processor details from windows

#. Type "dxdiag" command in Run (Start -> Run), we can see all System informations like Motherboard Model, DirectX, Display,  and Sound, information

Monday, December 13, 2010

iPhone Core Data Encryption - encrypt your sqlite databse




in IOS4 Apple introduced a new feature NSFileProtectionComplete to encrypt the filesystem.

I found very useful article. 

Remember that we can apply this only with Device not with simulator.

And on device you should enable the passcode security under Settings -> General

If you have iTunes login, see the apple video about security
session 209 securing application data in category : Core OS 
https://developer.apple.com/videos/wwdc/2010/

-------------

We need to prompt a message to the user if file system is not protected, So
How to know the device is password protected ? or How to know the filesystem(database) is encrypted.?


Thursday, November 25, 2010

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.2'

After update sdk4.2 , I am getting this error..

I found no way to solve.. so creating new project with existing files..

Edited: No Issues after creating new project with existing source.  :)

Edited on Feb 1, 2011

Got the same error today


This time I found the issue and fixed..

in xCode menu  Project -> Edit Active Target "App"

the profile was selected for "Code Signing Identity" instead of "Any iOS".
So deleted the value of "Code Signing Identity" and select profile for "Any iOS" . The following image is the correct one.








2013 , March 11
Got this issue again:

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 6.1'




Wednesday, November 17, 2010

MySql installation asking current Password !!

Today I met this issue..

Its happened because one guy installed the mysql and now he forgot the password. So we decide to uninstall the existing mysql. and install a fresh one.

But when we try to install its asked current password, and if we click next, its failed at "start service"

we tried to uninstall and remove the directory under program files . but didn't help.. After a little googling found that we have to also remove the MySql data folder inside c:\documents and settings\all users\application data\

Its better to do that, search "MySql" in C drive(or include other drives) and delete all folders.(because in some windows os it would be in another path) And do a fresh install. It will work. :)

Friday, October 8, 2010

iPhone Application for MS CRM





After Releasing MobileEdge 4.3.4 version
Mobile Edge for MicrosoftDynamics v 5.0.0 is Available now.

New features :
Push Notification- When A record is created or edited on CRM, you will get a push notification on iPhone and can immediatly sync with CRM
More details, 

Friday, September 24, 2010

Add UIToolBar on top of Keyboard

UIToolbar *boolbar = [UIToolbar new];
boolbar.barStyle = UIBarStyleDefault;
[boolbar sizeToFit];
  
  
UIBarButtonItem *cancelleftBarButton =[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(buttonClicked:)];
NSArray *array = [NSArray arrayWithObjects:cancelleftBarButton, nil];
[cancelleftBarButton release];
[boolbar setItems:array];
  
myTextFieldorTextView.inputAccessoryView = boolbar;

How to right or center align the UIToolBar items

create  buttons like this 
UIBarButtonItem *flexibleSpace = [[UIBarButtonItem alloc] 
              initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace 
              target:nil action:nil];


Add  UIBarButtonSystemItemFlexibleSpace items to your toolbar, to the left and right of your items OR left to get the center align OR right align

Wednesday, September 1, 2010

Thursday, August 12, 2010

static declaration of 'xxx' follows non-static declaration

If you declare a variable as static in your implementation file, then don't declare the same variable in header file.

expected specifier-qualifier-list before extern

There may be many reasons for this. one situation if you variable declaration inside the @interface block in the header file. It should be  outside.

Tuesday, July 27, 2010

What's the difference of UIView frame and bounds.

UIView and its subclasses all have the properties "frame" and "bounds". What's the difference?

The frame of an UIView is the rectangle, expressed as a location (x,y) and size (width,height) relative to the superview it is contained within.
The bounds of an UIView is the rectangle, expressed as a location (x,y) and size (width,height) relative to its own coordinate system (0,0).

Difference between delegate and data source?

Thursday, July 1, 2010

Can't run - was built for 'armv7', but device requires 'armv6' or compatable architecture.

This error may appear when connecting to device from iPhone Sdk 4, (Xcode 3.2.3)

to fix this
in Xcode Project->Edit Active Target
Set the Architectures:Standard(armv6 armv7) 


Tuesday, June 29, 2010

Connecting MS CRM 4.0 using Java webservices

Continue from connecting with MS CRM 3.0

The following is the sample code to connect MSCRM 4.0

String password = "password";

String username = "user";
String OrganizationName = "orgname";  //Whats Org Name

String endpointURL = "http://server:port/MSCrmServices/2007/CrmService.asmx"; 

CrmAuthenticationToken token = new CrmAuthenticationToken();
token.setCallerId("00000000-0000-0000-0000-000000000000");
token.setOrganizationName(OrganizationName);
//token.setAuthenticationType(0);

CrmServiceSoapStub bindingStub = (CrmServiceSoapStub) new CrmServiceLocator().getCrmServiceSoap(new URL(endpointURL));
bindingStub.setHeader("http://schemas.microsoft.com/crm/2007/WebServices",
"CrmAuthenticationToken", token);

bindingStub.setUsername(username);
bindingStub.setPassword(password);

WhoAmIRequest whoRequest = new WhoAmIRequest();
WhoAmIResponse whoResp = (WhoAmIResponse)bindingStub.execute(whoRequest);
String userid = whoResp.getUserId();
System.out.println("userid = "+userid );

I will provide the sample code for connecting MS CRM Services for all types of deployment

NSString constants in Objective C

Easiest way:
// constants.h
#define MY_CONSTANT @"my_constant"
 
Better way:
// constants.h
extern NSString * const MY_CONSTANT;
// constants.m
NSString * const MY_CONSTANT = @"const value";

There is also one thing to mention. If you need a non global constant, you should use static keyword.
Example

// in constants.m file
static NSString * const MY_CONSTANT = @"const value";

The following are some interesting article.

Java Developer’s Guide to String Constants in Objective-C

Correct way of defining constants in Objective-C

Saturday, April 17, 2010