Sunday, December 3, 2017

Node, Java Script, React & React native

Interview questions:
https://www.onlineinterviewquestions.com/react-js-interview-questions/
https://www.edureka.co/blog/interview-questions/react-interview-questions/
http://www.punch.cool/community/questions-answers/engineering/react-native/
https://www.fullstack.cafe/JavaScript   *****
https://medium.freecodecamp.org/5-top-sites-for-javascript-interview-preparation-71b48e9a6c8a

https://flaviocopes.com/

JavaScript handbook:
https://medium.freecodecamp.org/the-definitive-javascript-handbook-for-a-developer-interview-44ffc6aeb54e

Node js API:
https://medium.freecodecamp.org/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2

Expo/XDE:
https://github.com/expo/xde#converting-an-existing-project-to-work-with-expo

Animated navigation bar in react native:
https://medium.com/companydev/animated-header-titles-in-react-native-5be9db00bee2
https://medium.com/appandflow/react-native-scrollview-animated-header-10a18cb9469e
https://medium.com/appandflow/react-native-collapsible-navbar-e51a049b560a

React native Animation book:
http://browniefed.com/react-native-animation-book/

Chrome extension:
https://medium.com/@jonnyk20/anatomy-of-a-chrome-extension-54b9dd019825
https://developer.chrome.com/extensions

Chrome extension app with React:
https://engineering.musefind.com/how-to-build-a-chrome-extension-with-react-js-e2bae31747fc

Redux api & docs:
https://redux.js.org/docs/api/

Stateless component:
https://jaketrent.com/post/react-stateless-components-missing/

Express js:
http://www.tutorialsteacher.com/nodejs/expressjs
https://expressjs.com/en/4x/api.html

Auth0 for mobile:
https://auth0.com/docs/quickstart/native

Google Tag Manager & Google Analytics:
https://www.webascender.com/blog/google-tag-manager-setting-google-analytics-custom-tracking-gtm/
https://www.analyticsmania.com/post/google-tag-manager-vs-google-analytics/
https://developers.google.com/analytics/devguides/collection/protocol/v1/email

Thursday, June 27, 2013

iPhone

Objective C:


Courses & Resources for iPhone:
--------------------------------------------------------
For downloading Xcode:

Top Forums:

Blogs:

Samples:

Apple sample examples: 
Beginning iPad Application Development:

Tutorials from Stanford University:

Tutorials,samples, & information about iPhone:                                                                                                            http://www.everycoder.com/iPhone/
http://rypress.com/tutorials/objective-c/index.html

Video tutorial for iPhone development: 

iPhone SDK programming :a beginner's guide:



Page navigation between simple views with animation: http://www.devx.com/wireless/Article/42476/0/

Adding images+label+navigation in Table view:

Parsing XML + TableView:

Passing arguments to web service + Parsing:

Implementing map in iPhone:                             
Route map in iPhone apps: 

Game implements in iPhone:

Video training for IPhone:




Application for navigate to URLs: 

XMLParser: 

Accelerometer:

iPhone development with Flash CS5: 

Calendar view in iPhone SDK:

Steps for putting our own app. in iTunes with .app :

Step 1: Run the application with iPhone using Xcode.
Step 2: Open your application build folder,see Debug-iphonos folder, in this folder u can see .app file
Step 3: Drag this file into iTunes.

Steps for install the app on iPhone device without Xcode:
1. First get UDID of iPhone device
2. Create the provisioning profile by using that UDID
3. Build your application in release mode

Send the provisioning profile and your application to client.
Now client need to follow following steps.

1. He first needs to connect his iPhone device with Mac machine
2. Drag the provisioning profile on iTunes
3. Drag the application on iTunes
4. Finally synch the application on device

Source code for Unlock iPhone/iPod:

App Store Pre-Submission Test (check list):

Steps for submitting iPhone( iOS ) application to Apple(app, iTunes) store:

iPhone with Facebook:


iPhone with Twitter:

Check for an Internet Connection on iPhone SDK:

Implementing Apple push Notification on iPhone SDK:

Google Docs API integration in iPhone SDK:

iPhone Database Implementation using SQLite:
Integrate iAd into iPhone application:

Cover flow effect:            

iPhone-apps-real-devices:

Playing youtube videos in iPhone apps:


Manual memory management:                                                      http://tomdalling.com/blog/cocoa/an-in-depth-look-at-manual-memory-management-in-objective-c/
                                                                                                                                                            How to find memory leaks in iPhone: 
                                                                                                                                                        iPhone Memory Management Tips:
http://akosma.com/2009/01/28/10-iPhone-memory-management-tips/              


Get crash reports from user device:
http://www.clintharris.net/2009/plcrashreporter-a-handy-api-for-reporting-iphone-app-crashes/                    
PopoverView in iPad:
Barcode,QR reader:

Post user review to itunes store from app:   http://arashpayan.com/blog/2009/09/07/presenting-appirater/

Configuring Xcode to use Subversion (or) Configuring Xcode SCM Repositories:

Paypal payment gateway integration:

Get local number of device iPhone:

Custom (Image) Navigation bar: 

@interface UINavigationBar (CustomBackground)  - (void)drawRectCustomBackground:(CGRect)rect;@end@implementation UINavigationBar (CustomBackground)- (void)drawRectCustomBackground:(CGRect)rect {if (self.barStyle == UIBarStyleDefault) {[[UIColor greenColor] set];CGRect fillRect = CGRectMake(0.0, 0.0, self.frame.size.width, self.frame.size.height);CGContextFillRect(UIGraphicsGetCurrentContext(), fillRect);return;}// Call default implementation[self drawRectCustomBackground:rect];}@end  main.m to look like this:#import #import "UINavigationBar+CustomBackground.h"int main(int argc, char *argv[]) {NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];// Swizzle the nav barMethod drawRectCustomBackground = class_getInstanceMethod([UINavigationBar class], @selector(drawRectCustomBackground:));Method drawRect = class_getInstanceMethod([UINavigationBar class], @selector(drawRect:));method_exchangeImplementations(drawRect, drawRectCustomBackground);int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");[pool release];return retVal;}  

Understanding and Analyzing iPhone OS Application Crash Reports(logs):
Steps to analyze crash report from apple: 
1.Copy the release .app file which was pushed to the appstore,  and the .dSYM file that was created at the time of release and  the crash report received from APPLE into a one FOLDER. 
2.OPEN terminal application and go to the folder created above (using CD command) 
3.atos -arch armv7 -o ''/'<.dSYM filename here>' . 
The memory location should be the one at which the app crashed as per the report.   
Ex: atos -arch armv7 -o 'app name.app'/'app name' 0x0003b508This would show you the exact line, method name which resulted in crash.  Ex: [classname functionName:]; -510    http://stackoverflow.com/questions/4604843/crash-log-in-device  http://furbo.org/2008/08/08/symbolicatifination/  http://davidbits.blogspot.com/2011/08/understanding-and-analyzing-ios.html  http://stackoverflow.com/questions/1460892/symbolicating-iPhone-app-crash-reports

About dealloc:

NSLog format specifiers:

%@ Object
%d, %i signed int
%u unsigned int
%f float/double
%x, %X hexadecimal int
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
%g float/double (as %f or %e, depending on value)
%s C string (bytes)
%S C string (unichar)
%.*s Pascal string (requires two arguments, pass pstr[0] as the first, pstr+1 as the second)
%c character
%C unichar
%lld long long
%llu unsigned long long
%Lf long double
NSLog(@"frame = %@\n", NSStringFromCGRect(self.view.frame));
NSLog(@"center = %g, %g", self.view.center.x, self.view.center.y);
NSLog(@" self.view is: %@", self.view); 

iOS 5 SDK Tutorial and Guide Page:              

Beginning ARC(Automatic Reference Counting) in iOS5 Tutorial:

Pinch:

Techniques-to-encrypt

Web services + iPhone

ASIHTTPRequest

https+SSL:

iPhone sdk sample codes from google code:

How to create universal static libraries on Xcode 4:

Install .app on iPhone simulator:
If you open up Finder, and go to /Users/user/Library/Application Support/iPhone Simulator/iOS version/Applications, you will find directories for all the apps installed on the simulator.

Just zip up that top level folder for the app, and have the other user drop it in the same directory. Works like a charm.

NOTE: I think you may have to compile it for that specific version of iOS before sending it over to them.

DigitalColor Meter + [UIColor colorWithRed:0.663 green:0.855 blue:0.341 alpha:1]
We have an application in our MAC called "DigitalColor Meter". We can use this application into our application to get the color code for RGB.

Steps:
1) Open DigitalColor Meter application in MAC, can use spot light for easy search.
2) Keep the required mode to "RGB as Percentage"
3) Using the mouse pointer go to the required color on the screen.
4) Note down the RGB values in percentage.
5) In our code you can use the method
[UIColor colorWithRed:0.663 green:0.855 blue:0.341 alpha:1]
convert percentage values into fractions. like 53.5% will become 0.535. Use the respective RGB values in the code, and alpha value must be 1.
Run the application, you will get the exact color required.

Gdata in iPhone:

Delegation Pattern in Objective-c and writing Custom Delegates:


Core data:

For Hide/UnHide Files in mac:
UnHide:  In terminal
defaults write com.apple.Finder AppleShowAllFiles NO
killall Finder
Hide: In terminal
defaults write com.apple.Finder AppleShowAllFiles YES
killall Finder

Useful SVN Commends: http://wiki.greenstone.org/wiki/index.php/Useful_SVN_Commands


Migrate to ARC:                                         
http://www.mikeash.com/pyblog/friday-qa-2011-09-30-automatic-reference-counting.html                                  http://blog.mugunthkumar.com/articles/migrating-your-code-to-objective-c-arc/
http://developer.apple.com/library/ios/#releasenotes/ObjectiveC/RN-TransitioningToARC/RevisionHistory.html

How to Password Protect a Folder on the Mac:
* Open up the "Disk Utility" application
* File -> New -> Disk Image from Folder...
* choose a folder to protect
* choose "AES-128" encryption and press Save
* Enter your desired new password twice (Do not forget it.)

This process creates an ordinary Macintosh disk image (.dmg) file. The disk image contains the entire contents of the folder, but cannot be opened unless the correct password is supplied. To open it, just double-click the .dmg file in Finder. A password dialog box will appear. Once you supply your correct password, Finder will automatically unencrypt your data and mount the image as a disk.

How to install Apache and PHP on a Mac with OSX 10.8 : 

Lazy loading:
http://iosmadesimple.blogspot.in/2013/04/lazy-image-loading.html
http://lazyloadinginuiscrollviewiniphone.blogspot.in/2011/12/lazy-loading-in-uitableview-in-iphone.html
https://developer.apple.com/library/ios/samplecode/LazyTableImages/Introduction/Intro.html

Communicating two apps (URL schemes):
http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-working-with-url-schemes/

Creating Static Library:
http://www.raywenderlich.com/41377/creating-a-status-library-in-ios-tutorial

Custom features (codes) in iOS:  http://code4app.net
Side menu in IOS: http://bitly.com/bundles/o_27ukkruo5l/1
JSON Validator: http://jsonlint.org/
Convert .xps to pdf: https://xps2pdf.co.uk/default.aspx
Online tests: http://www.indiabix.com/

Background location Updates:
http://mobileoop.com/background-location-update-programming-for-ios-7

Equal spacing and equal width for buttons in IOS auto layout: 
http://stackoverflow.com/questions/32862142/how-to-add-equal-spacing-and-equal-width-for-button-in-ios-auto-layout


Call a Web Service as your iOS App Enters the Background: 
https://yorkstreetlabs.com/blog/call-web-service-as-ios-app-enters-the-background

Force an iPhone user to upgrade an application: 
- (void)applicationDidBecomeActive:(UIApplication *)application {
#pragma mark New version of app is available alert in iOS
  NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary];
  NSString* appID = "your appid";
  NSURL* url = [NSURL URLWithString:[NSString stringWithFormat:@"http://itunes.apple.com/lookup?id=%@", appID]];
  NSData* data = [NSData dataWithContentsOfURL:url];
  NSDictionary* lookup = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
  
  if ([lookup[@"resultCount"] integerValue] == 1){
    float appStoreVersion = [lookup[@"results"][0][@"version"] floatValue];
    float currentVersion = [infoDictionary[@"CFBundleShortVersionString"] floatValue];
    if (appStoreVersion < currentVersion) {
      UIAlertView *createUserResponseAlert = [[UIAlertView alloc] initWithTitle:@"New Version!!" message: @"A new version of app is available to download" delegate:self cancelButtonTitle:nil otherButtonTitles: @"Update", nil];
      [createUserResponseAlert show];
    }
  } 
}

-(void)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
  NSString *iTunesLink = @"itms://itunes.apple.com/us/app/apple-store/your appid?mt=8";
  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];