Monday, October 19, 2015

Single Sign ON (SSO) in iOS 7


SSO is a new native feature in iOS 7.

You can find next there:

Enterprise single sign on. Authenticating into corporate apps is now as simple as doing it once. Enterprise single sign on (SSO) means user credentials can be used across apps, including apps from the App Store. Each new app configured with SSO verifies user permissions for enterprise resources, and logs users in without requiring them to reenter passwords. It is something like single sign in for several apps.


To make SSO (Kerberos) working on iOS7 you need 3 things:
  1. On the server side: Kerberos environment + HTTP SPNego/Kerberos authentication configured. SSO in iOS works only for HTTP(S).
  2. Configuration profile containing:
    • [Obligatory] Your Kerberos realm.
    • [Obligatory] Your Kerberos principal (usually username), this can be left empty - in that case user will be asked to specify it during the profile installation.
    • [Obligatory] List of URL prefixes of the pages allowed to use SSO. Wildcards cannot be used here, if the prefix doesn't end with slash character, it will be automatically appended to it.
    • [Optional] List of bundle IDs allowed to use SSO, if empty all applications are allowed. Wildcards in bundle IDs can be used.
  3. Application that supports it, Safari and WebKit (UIWebView class) do. As described in WWDC 2013 Session Videos number 301, you have to use either NSURLConnection or NSURLSession class. This is a simplified example of the HTTP traffic when authenticating using the SPNego scheme:
Server: 401 Unathorized
+header WWW-Authentificate: Negotiate
+header Authorization: Negotiate [SPNegotInitToken]
Server: 200 OK
+header Authorization: Negotiate [SpnegoTargToken]
+header set-cookie [SESSIONID]
The dialog with prompt for the Kerberos password (if the Kerberos ticket has not yet been granted/expired) will appear after receiving "WWW-Authentificate". Obj-C classes will handle automatically all the redirects and authentication process, so the only thing you need is to make a request to the login URL and allow this URL in the profile.

Monday, October 12, 2015

It is now possible to check the version using available from Swift2.0.
if #Available (iOS 8.0 , *) {
     // IOS8.0 more if only the processing of
}
The syntax is as above, #Abailable (Platform version, ...) will be.
At the end * indicates that "otherwise specified with respect to other platforms." 
In other words, in the example above, iOS other than the platform (WatchOS,OSX will be that it is not specified in particular with respect to, etc.).
In addition, when the processing of post-conditions specified is large, it would be good to use the guard statement because the contents of the if statement would parentheses bad increases.
guard #Available (iOS 8.0 , *)  else {
     Return
}

Processing of // case of iOS8.0 or more only
Conversely, self-made method in order not to be used outside the platform version that you specify and classes available (platform version, ...)should be used.
// IOS7.0 and Yobe not only from later 
Attoavailable (iOS 7.0 , *)
funk doSomething () {
    
}
Thus available With this method when you call the #available will require conditional expression.
if #Available (iOS 7.0 , *) {
    doSomething ()
}
Reference article
www.hackingwithswift.com

Thursday, September 24, 2015

உலகிலேயே அதிக சம்பளம்

'ஹங்கர் கேம்ஸ்' நட்சத்திரமான நடிகை ஜெனிபர் லாரன்ஸ் உலகிலேயே அதிக சம்பளம் வாங்கும் நடிகைகளுக்கான போர்ப்ஸ் பட்டியலில் முதலிடம் பெற்றுள்ளார்.

இவர் கடந்த ஆண்டு 52 மில்லியன் டாலர்கள் தொகை வருவாய் ஈட்டியுள்ளார். ஆனாலும் அதிகம் சம்பாதிக்கும் நடிகர் ராபர்ட் டவுனி ஜூனியரைக் காட்டிலும் பின் தங்கியே உள்ளார் ஜெனிபர் லாரன்ஸ்.


'சில்வர் லைனிங்ஸ் பிளேபுக்' -ல் இவரது ரோலுக்காக 2013-ம் ஆண்டு ஆஸ்கர் விருது பெற்றார் ஜெனிபர் லாரன்ஸ். மேலும், இவரது ஒட்டுமொத்த வருவாய் கூட 'அயர்ன் மேன்' நட்சத்திர நடிகர் ராபர்ட் டவ்னி ஜூனியரின் 80 மில்லியன் டாலர்கள் வருவாய்க்கு அருகில் இல்லை என்பதும் கவனிக்கத் தக்கது. அதிக சம்பளம் வாங்கும் நடிகர்களுக்கான ஆகஸ்ட் மாத போர்ப்ஸ் பட்டியலில் ராபர்ட் டவ்னி ஜூனிய முதலிடம் பிடித்தார் என்பதும் குறிப்பிடத்தக்கது.

நடிகை ஸ்கார்லெட் ஜொஹான்சன் 35.5 மில்லியன் டாலர்கள் வருவாயுடன் 2-ம் இடத்திலும், 'மைக் அண்ட் மோலி' நட்சத்திரம் மெலிஸா மெகார்தி 23 மில்லியன் டாலர்கள் வருவாயுடன் 3-ம் இடத்தில் உள்ளார்.

நடிகர்களில் 80 மில்லியன் டாலர்கள் வருவாயுடன் அயர்ன் மேன் நட்சத்திர நடிகர் ராபர்ட் டவ்னி ஜூனியர் 80 மில்லியன் டாலர்கள் வருவாயுடன் முதலிடம் பிடிக்க 50 மில்லியன் டாலர்களுடன் ஜாக்கி சான் 2-ம் இடத்திலும் உள்ளனர்.

பாலிவுட் நட்சத்திர நடிகர்களான அமிதாப், சல்மான் கான் ஆகியோர் 33.5 மில்லியன் டாலர்களுடன் 7-ம் இடத்திலும், அக்‌ஷய் குமார் 32.5 மில்லியன் டாலர்களுடன் 8-ம் இடத்திலும் உள்ளனர்.

'ஆப்பிள்'

ஸ்டீவ் ஜாப்ஸ் என்றொரு மனிதர் உருவாக்கிய சாம்ராஜ்ஜியம் கேட்ஜெட்ஸ் விரும்பிகளை பித்து பிடிக்க வைத்துள்ளது என்றே சொல்லலாம். ஒவ்வொன்றும் ஒரு விதம். இளந் தலைமுறையினரின் நாடி பிடித்து, அவர்களின் ரசனை அறிந்து வடிவமைப்பதில் இந்நிறுவனத்துக்கு நிகர் யாரும் இல்லை. ஆம் ஆப்பிள் என்ற சொல் உருவாக்கியுள்ள பிம்பம் அழகானது, தனித்துவமானது, நம்பிக்கையானது எல்லாவற்றையும் தாண்டி யாராலும் நினைத்துப் பார்க்க முடியாத உயரத்தைத் தொடுவது.

ஆப்பிள் நிறுவனத்தின் தயாரிப்புகள் இளந்தலைமுறையினருக்கு மட்டுமல்ல, அனைத்து தரப்பினரையுமே கவர்ந்து இழுக்கிறது.

நேர்த்தியான வடிவமைப்பும், போட்டி நிறுவனங்களை ஓரங்கட்டும் தொழில்நுட்பமும் சேர்ந்து ஆப்பிளை உலகின் முதல்தரமான தொழில்நுட்ப நிறுவனமாக வளர்த்துள்ளது.
இத்தனைக்கும் ஆப்பிள் புதிதாக எதையும் உருவாக்குவதில்லை. ஏற்கெனவே புழக்கத்தில் உள்ளவற்றை தனது தொழில்நுட்பத்தால் மிக சிறப் புடையதாக்குகிறது.

இந்த நிறுவனத்திடம் அசைக்க முடியாத, எதிர்கால தொழில்நுட்பங்கள் குறித்த கணிப்பு உள்ளது. இதுதான் ஆப்பிள் நிறுவனத்தின் பலம் என்கின்றனர் தொழில்நுட்ப உலகினர். இதற்கு ஏற்ப ஒவ்வொரு ஆண்டும் புதிதாக ஒரு தயாரிப்பை அறிமுகப்படுத்தி பிரமிப்பில் ஆழ்த்தி வருகிறது ஆப்பிள் நிறுவனம்.

ஒவ்வொரு ஆண்டும் செப்டம்பர் மாதம் ஆப்பிள் நிறுவனம் தங்களது மேம்படுத்தப்பட்ட தயாரிப்புகள் மற்றும் புதிய தயாரிப்புகளையும் அறிமுகப்படுத்தி வருகிறது. இந்த ஆண்டு புதிதாக ஐந்து தயாரிப்புகளை அறிமுகப்படுத்துகிறது.

ஐ போன் 6 எஸ், ஐ போன் 6 எஸ் பிளஸ், ஐ-பாட் புரோ, ஆப்பிள் டிவி உள்ளிட்ட தயாரிப்புகளை வெளியிடுகிறது. இதற்கிடையே ஐ-பாட் புரோ-வுக்கு துணைக் கருவியாக ஆப்பிள் பென்சிலையும் நவம்பர் மாதம் முதல் விற்பனைக்கு கொண்டு வர உள்ளது. பொதுவாக ஆப்பிள் நிறுவனத்தின் கணினி வரிசைகள் மற்றும் ஐ பாட் வரிசைகளைத் தாண்டி, அந்த நிறுவனம் பிற துறைகளில் மேற்கொண்டு வரும் தயாரிப்புகளும் மிகப் பெரிய வெற்றியை பெற்று வருகின்றன.

ஆப்பிள் வாட்ச் போன்றவை அந்த வகையில் வெற்றி பெற்றதுதான். அதுபோல தற்போது வெளியிட உள்ள ஆப்பிள் பென்சிலும் ஐ- பாட் மற்றும் ஐ-ஓஎஸ் செயல்பாடுகளை அடுத்த கட்டத்துக்கு கொண்டு செல்லும் என்கிறது தொழில்நுட்ப உலகம்.

புதிதாக வெளியிட உள்ள ஐ-பாட் புரோவின் சைஸ் சற்றே பெரியது. இதன் துணைக் கருவியாகத்தான் ஆப்பிள் பென்சில் வருகிறது. இந்த வெளியீடு மூலம் மைக்ரோசாப்ட் சர்பேஸ் மற்றும் சாம்சங் கேலக்ஸி வரிசை விற்பனையில் ஆப்பிள் தாக்கத்தை ஏற்படுத்தும் என்கின்றனர்.
தொழில் முறையிலான கலைஞர்கள், ஓவியர்கள், வடிவமைப்பாளர்கள் மற்றும் கட்டிட பொறியாளர்களுக்கு ஆப்பிள் பென்சில் மிகப்பெரிய அளவில் உதவியாக இருக்கும். கிட்டத்தட்ட புதிய வாசலை இது திறந்துள்ளது. தவிர வேலை திட்டங்களை எளிமையாக ஐ-பாடில் எழுதி சேமித்துக் கொள்ளவும் செய்யலாம். அதாவது காகிதத்தில் பென்சிலைக் கொண்டு எழுதுவது, வரைவது போல ஆப்பிள் பென்சில் கொண்டு ஐ பாடிலேயே வடிவமைப்பு வேலைகளைச் செய்து கொள்ளலாம்.

பெருவாரியான கலைஞர்கள் இப்போதே இந்த பென்சிலை வரவேற்கத் தொடங்கி விட்டனர். ஆப்பிள் தயாரிப்புகள் நம்பகமானவை மற்றும் தரமானவை என்கிற பார்வை மக்களுக்கு எப்போதும் இருக்கச் செய்கிறது. அதன் இதர தயாரிப்புகளுக்கு இருக்கும் வரவேற்பை போல ஆப்பிள் பென்சிலும் மக்கள் மத்தியில் பெரும் வரவேற்பை பெறும் என்று கருதப்படுகிறது.

ஆப்பிள் பென்சில்
பாய்ண்டட் நிப் பென்சிலைப் போலவே வெள்ளை நிறத்தில் மிக நேர்த்தியாக இருக்கிறது ஆப்பிள் பென்சில். இதன் முனையிலுள்ள சென்சார்கள் மிகக் கூர்மையான வடிவில் உள்ளன. மெலிதான கோடுகள் அல்லது பட்டையான கோடுகளையும் இதன் மூலம் வரையலாம். ஆப்பிள் பென்சிலைப் பயன்படுத்துவது ஓவியர்களுக்கு பயனுள்ளதாக இருக்கும்.

இதுவரை விரல்களுக்குள் உலகத்தை அடக்கிய தொழில்நுட்பம், இனி அதற்கு எந்த வேலையுமில்லை என்பதை ஆப்பிள் பென்சில் மூலம் நிரூபிக்க தயாராகிறது.
ஒரு முறை சார்ஜர் ஏற்றினால் 12 மணி நேரம் பயன்படுத்தலாம். முக்கியமாக ஆப்பிள் பென்சில் 30 நிமிடங்கள் செயல்படுவதற்கான மின்சக்தியை 15 விநாடிகளில் எடுத்துக் கொள்கிறது. பென்சிலின் மேற்புறத்தில் சார்ஜர் கனெக்டர் உள்ளது. இது காந்த சக்தி மூடி மூலம் மூடப்பட்டுள்ளது. ஐபாட், மற்றும் ஐபாட் பிளஸ் மூலமாகவும் சார்ஜ் ஏற்றிக் கொள்ள முடியும்.

ஐபாட் பென்சிலை தற்போது ஐபாட் புரோவில் மட்டுமே பயன்படுத்த முடியும். ஒரு விநாடிக்கு 240 முறை சிக்னல் பெறுகிறது. இது இரண்டும் ப்ளூடூத் மூலம் இணைகிறது.

ஐபாட் புரோ
தற்போது கொண்டுவர உள்ள ஐ-பாட் புரோ குறித்து தொழில்நுட்ப வாடிக்கையாளர்கள் குறிப்பிடும்போது; ஆப்பிள் மேக் புக் வடிவில் ஒரு ஐ-பாட் என்கின்றனர்.
32.8 செமீ திரை, 2732*2048 ரெசலூஷன் கொண்டுள்ளது. ஆப்பிள் 13 அங்குல மேக் புக்கைவிட 1 செமீ அளவே சிறியதாக உள்ளது. தவிர ஐ-பாட் புரோவை பார்த்த மாத்திரத்திலேயே இதர ஐபாட் மாடல்களிலிருந்து பிரித்து பார்த்துவிட முடியும்.

ஏற்கெனவே உள்ள மாடல்களில் உள்ளது போலவே டச் ஐடி ஹோம், பவர் மற்றும் இதர பட்டன்கள் இருந்தாலும், புரோ வை தனித்துக் காட்டுகிறது அதன் ஸ்பீக்கர்கள். இதர டேப்ெலட் கணினி தயாரிப்பாளர்கள் இதுவரை தவற விட்ட இடம் இது. இரண்டு பக்கமும் ஸ்பீக்கர்கள் உள்ளன. ஸ்பீக்கர்களை ஸ்வைப் செய்து கொள்ளலாம். ஹெட்போன் இல்லாமல் பாடல்களை கேட்கும் வாய்ப்பும் இதன் மூலம் உருவாகியுள்ளது.

மைக்ரோசாப்ட் நிறுவனம் தனது சர்பேஸ் மாடலை வெளியிட்டபோது அதன் உப கருவியாக சர்பேஸ் பேனாவையும் கொண்டு வந்தது. ஆனால் அதன் பயன்பாட்டை தெளிவாக எடுத்துக் கூறவில்லை. விளம்பரம் மற்றும் வெளிப்படுத்தும் தன்மையில் மைக்ரோசாப்ட் கோட்டை விட்டது. மைக்ரோசாப்ட் செய்த தவறு சர்பேஸ் பேனா ஸ்கீரினில் பயன்படுத்த மட்டுமே என வெளிப்படுத்தியதுதான்.

இப்போது மீண்டும் நாம் அறிய வருவது இதுதான்: ஆப்பிள் புதிதாக எதையும் செய்யவில்லை என்பதை புரிந்து கொள்வது. ஆப்பிள் பென்சில் மற்றும் ஐபாட் புரோ இணையர்கள் ஸ்டோர்களில் நவம்பர் மாதம் முதல் விற்பனைக்கு வர உள்ளன. ஆப்பிளின் முயற்சிகள் எப்போதும் வெற்றிபெற்றே வந்திருக்கிறது. ஏனென்றால் அது இளைஞர்களை பிடித்தாட்டுகிறது.
ஆப்பிள் நிறுவனத்தின் தயாரிப்புகள் இளந்தலைமுறையினருக்கு மட்டுமல்ல, அனைத்து தரப்பினரையுமே கவர்ந்து இழுக்கிறது.

நேர்த்தியான வடிவமைப்பும், போட்டி நிறுவனங்களை ஓரங்கட்டும் தொழில்நுட்பமும் சேர்ந்து ஆப்பிளை உலகின் முதல்தரமான தொழில்நுட்ப நிறுவனமாக வளர்த்துள்ளது.

Wednesday, October 16, 2013

Features in iOS

Cocoa Touch

UIKit

For iOS, the Cocoa Touch frameworks focus on touch-based interfaces and optimization. The UIKit provides the basic tools and infrastructure you need to implement graphical, event-driven apps in iOS.

Foundation

The building blocks of any Cocoa app, including collection classes and all the base objects used throughout Cocoa.

Multi-Touch Gestures

The iOS frameworks include APIs to alert you to many standard gestures, or you can hand-code your own gesture awareness.

Network Services

Store Kit

Unlock features, sell new services, and provide added value to your app using the Store Kit framework to enable in-app purchases of new content.

Push Notifications

Send over-the-air alerts, such as news updates or social networking status changes, using Apple’s Push Notification service.

Game Kit

Easily add multi-player capabilities to your games with peer to peer network connectivity, using a Bluetooth connection - no pairing required.

iAd

Embed iAd rich media ads into your app that allow users to interact with advertising without having to leave their app.Learn more

Newsstand

Newsstand Kit provides everything you need to publish the latest issues of your magazines and newspapers directly to Newsstand. Learn more

Core Location

Using information from the present network connection, and GPS signals where available, your app can quickly determine the present location.
Core LocationMap

Map Kit

Add map features directly into your app, with full support for panning and zooming, custom annotations, showing current location, and even geocoding to highlight regions of the map and display additional information. Use projected map coordinates instead of regions, or use overlays (such as circles or rectangles) to display content over a wide portion of the map.

Networking

BSD sockets for standard network communication, and Bonjour for a simple way to discover other devices on the network.

Accelerate

Accelerate provides hundreds of mathematical functions optimized for iPhone and iPod touch, including signal-processing routines, fast Fourier transforms, basic vector and matrix operations, and industry-standard functions for factoring matrices and solving systems of linear equations. Optimized for the different hardware configurations present in iOS-based devices, Accelerate lets you write code once that you can be assured will run efficiently on all devices.

Media

Graphics

Frameworks range from Quartz 2D primitives, the easy-to-use Core Animation for awesome effects, to industry standard OpenGL ES for creating spectacular 3D games.

Audio

Everything for playing videos, music, and in-game media: Media Player framework for full-screen video, HTTP Live Streaming, access to the iPod library, and Core Audio and OpenAL for sound.

Built-in Cameras and Photo Library

Import images from the device’s photo library, or easily take a new photo to add to your app. Create augmented reality experiences with a live camera feed and overlays.

Media Library

Play music in the background of your app and access the full media library on the device.

Core Services

iOS Simulator

The Mac-based Simulator speeds the round trip process of developing with fast app startup, and accelerated stepping through the debugger.

Inter-app Messaging

Easily share data with the iOS system apps using a simple URL-based model, or register a custom URL type to enable sharing with your own app.

Messaging

Add support in your app for composing and queuing email messages in the user’s outbox, and for sending SMS messages from within your app.

In-App SMS

Compose SMS messages from within apps, similar to the Mail compose sheet added iniOS SDK 3.0.

Cut, Copy, and Paste

System-wide support for cut, copy, and paste makes it easy to share more than just plain words to and from your app, with support for rich text, HTML, and images using a shared clipboard.

Gyro + Accelerometer

The three-axis gyroscope paired with the accelerometer makes an iOS device capable of advanced motion sensing such as user acceleration, full 3D attitude, and rotation rate. Combined with Core Motion, these features allow your app to use both the accelerometer and gyro-based data for games or other apps that use motion as input or as a way to enhance the overall user experience.

Multitasking

iOS delivers multitasking services that allow your apps to perform tasks in the background while preserving battery life and performance.

Address Book

Read and write to the device’s shared contacts database so your app can tie into a central repository of friends, family, and coworkers.

Compass

Full access to the hardware compass, when available, to employ along with location and map services, also available as core services of iOS.

Electronic Accessories

Create a great experience for hardware devices using a custom app on an iOS device to control the accessory.

Quick Look

Apps can now present previews of documents, like attachments in Mail, using the new Quick Look APIs. Quick Look lets you preview the contents of files your app does not support. Intended primarily for apps that download files from the network, Quick Look lets you display the contents directly in your app.

Thursday, February 21, 2013

Take Off Your Google Glasses


Google Glasses will soon be available to the public, according to the company. Are we ready?
The wearable computer will let you search as you walk, navigate, record what you see and share it, translate andmore. We haven't yet figured out which pictures to share on Facebook or how to make sure we don't tweet while drunk. Now we are going to have to figure out a whole new set of social rules.
Do you take off your Google Glasses in the bathroom, lest folks think you are recording? Is it acceptable to Google someone while you are speaking to them? Do you ask, "Mind if I post the conversation we just had online? I think our friends would love to comment on it".
On one hand, new technologies have always taken some adjustment. Jeff Jarvis writes that"The first serious discussion of a legal right to privacy in the United States did not come until 1890. The reason: the invention of the Kodak camera, which led to a similar moral panic about privacy, with The New York Times decrying “fiendish kodakers,” President Teddy Roosevelt outlawing kodaking in Washington parks, and legislators ready to require opt-in permission from anyone photographed in public. We negotiated our norms and cameras don’t scare us anymore. But now a new technology does."
This adjustment, however, takes time. We haven't yet developed norms to catch up with the many ways that technology and data both enhance and disrupt our lives. I am a responsible father if I check my nanny's driving record before letting my kids get in a car with her. But if I run background checks on the parents in our car pool, well that just seems odd - or does it? What are the rules for who I can text? If I have your cell number and would be comfortable calling, should I be comfortable texting? That circle seems a bit smaller, but what are the new social rules?
Behavior that violates social technology rules seems to be "creepy", for want of a more nuanced term. It's easy to blame Google or Facebook or the companies bringing us these technologies for the challenges society needs to now grapple with. But these advances are inevitable as science progresses. The access to knowledge these companies bring to the world is empowering individuals to challenge governments and bringing education to the impoverished. I guess we can put up with a bit of tension until we frame a new set of norms.
In the meantime, just do your best to not be creepy.

Monday, December 24, 2012

Git “Command Not Found” Error In Mountain Lion [Quickfix]



I just upgraded my Mac from Lion to Mountain Lion this morning. I must say the Mac OS just keeps getting better :). After the upgrade I just noticed that git was broken and I was getting the Command not found error.
To fix this :
  • Download the latest git package from here.
  • If you try and install the package directly, it will fail to install and would complain saying Unidentified source. This is due to the new Gatekeeper feature in Mountain Lion. To fix this go to System Preferences -> Security & Privacy and select Anywhere under Allow Applications Downloaded from section.
  • Go ahead and install the package you just downloaded.
An alternative method to fix this can be found here.