Posts

Showing posts from February, 2013

IOS Basics

IOS Definitions id :  The  id  type means that object variable can refer to any kind of object.The objects and classes it implements are not known when you compile the app     #import  derivative guards against including a single file multiple times property  is an objective C directive that allows to generate accessors.here we can specify the name and type of the property @synthesize  directive automatically generates setters and getters for us interface :  the interface of class is usually stored in .h file and defines instance variables and public methods implementation :  The implementation of a class is in .m file and usually contains the actual code of the methods -  sign ->instance methods  +  sign -> class methods                  We need to create an instance to use instance methods whereas class methods are functions which class offers without creating object from that class         MyClass *object;    [object instanceMethod];        

REST vs SOAP

Image
This article is to compare REST vs SOAP. There is huge difference between REST and SOAP. Comparing SOAP and REST is not just right as they are different things. It is like comparing orangutan and octopus, I have high regard for both of them. But still, as it is a popular topic lets have a discussion on SOAP vs REST. Roy Fielding was a member of the team that wrote the specification for HTTP and co-founder of Apache HTTP server project. He introduced the word REST and the concept in his  doctoral thesis  in 2000. REST disruptively took over as an architectural style for web services implementation. SOAP stands for Simple Object Access Protocol. REST stands for REpresentational State Transfer. SOAP is a XML based messaging protocol and REST is not a protocol but an architectural style. SOAP  has a standard specification but there is none for REST. Whole of the web works based on REST style architecture. Consider a shared resource repository and consumers access the resources.

Links for image detection

http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/CoreImaging/ci_filer_recipes/ci_filter_recipes.html#//apple_ref/doc/uid/TP30001185-CH4-SW1 http://developer.apple.com/library/ios/#documentation/Performance/Conceptual/vImage/BestPractices/BestPractices.html#//apple_ref/doc/uid/TP30001001-CH211-SW1 http://http.developer.nvidia.com/GPUGems3/gpugems3_ch26.html http://en.wikipedia.org/wiki/OpenFrameworks http://jamie.shotton.org/work/publications/cvpr08.pdf http://stackoverflow.com/questions/8593652/opencv-c-obj-c-proper-object-detection http://www.computer-vision-software.com/blog/category/opencv/ http://cvlab.epfl.ch/files/content/sites/cvlab2/files/publications/publications/2006/LepetitF06.pdf http://cvlab.epfl.ch/files/content/sites/cvlab2/files/publications/publications/2010/OzuysalCLF10.pdf http://phash.org/ http://sourceforge.net/projects/opencvlibrary/ http://pdiff.sourceforge.net/ http://www.gamedev.net/topic/400896-what-is

What is the difference between malloc and calloc?

There are two differences.  First, is in the number of arguments. Malloc() takes a single argument (memory required in bytes), while calloc() needs two arguments.  Secondly, malloc() does not initialize the memory allocated, while calloc() initializes the allocated memory to ZERO.  calloc() allocates a memory area, the length will be the product of its parameters. calloc fills the memory with ZERO's and returns a pointer to first byte. If it fails to locate enough space it returns a NULL pointer. Syntax: ptr_var=(cast_type *)calloc(no_of_blocks , size_of_each_block);  i.e. ptr_var=(type *)calloc(n,s); malloc() allocates a single block of memory of REQUSTED SIZE and returns a pointer to first byte. If it fails to locate requsted amount of memory it returns a null pointer. Syntax: ptr_var=(cast_type *)malloc(Size_in_bytes); The malloc() function take one argument, which is the number of bytes to allocate, while the calloc() function takes two arguments, one being the numbe