Easily share code snippets quickly

An Integrated Development Environment (IDE) is quite a powerful instrument as an online application for quickly composing and sharing code snippets through a natural, intuitive and handy interface. The latter offers live previews and separate windows for CSS, HTML and JS, as well as includes numerous helpful instruments such as pre-installed JavaScript libraries, support for pre-processors languages, code generator, tools for collaborative work and others.

We have compiled a list of outstanding places to share code snippets quickly. So if you are dying to get started, just select the best medium for you.

Codepad : [https://codepad.co/]

Screen Shot 2016-08-13 at 2.23.14 PM

Codepad is a new platform that is well-suited to developers of various spheres. Whether you are specializing in ActionScript or C-Sharp, the service will suit you up with a handy environment for writing, testing, saving and sharing your code snippets online.

Depending on the task, you can create public, private and part-private snippets as well as gather all the projects under one roof thereby compiling a collection.

With an active community, you can also follow fellow developers, find out new solutions and get inspired by other creations.

GitHub Gist

Screen Shot 2016-08-13 at 2.22.42 PM

Much like the previous example, GitHub Gist is one of the preferred choices among developers when it comes to building open-source projects. You can create public or secret gits, accompany each code snippet with the documentation or helpful instructions, and update it whenever you need to. What’s more, anyone can comment or fav it.

Codeshare

Screen Shot 2016-08-13 at 2.27.32 PM

Codeshare is another “no-sign-up-required” frontend editor that offers developers a handy playground with an intuitive interface and a small set of valuable tools. Simply write or paste code, share a link with colleagues and discuss and solve a problem together. Moreover, there is a video chat powered by WebRTC to collaborate in real-time. The only drawback is that your project will disappear from the server in 14 days.

jsFiddle

Screen Shot 2016-08-13 at 2.32.23 PM.png

jsFiddle gets straight to the point. Being one of the first in this area, it carved a niche for itself a long time ago. There is no welcoming landing page that highlights features of the playground or shows the work of others; however it does what it should do – provide coders with the smart board to mix and match various techniques to achieve the desired result.

The homepage is broken into four sections where you can write in HTML, CSS, and JavaScript and see the effect in real time. It has several particular qualities such as:

  • Typescript support
  • Auto-saving for local drafts
  • JavaScript libraries
  • Collaboration tools for teams
  • Intuitive and efficient way to generate embed code and more

CSSDeck

Screen Shot 2016-08-13 at 2.34.11 PM.png

With more than 50,000 registered members, CSSDeck is a leading platform for writing and sharing source code. Although the nameplate suggests that it is concentrated with CSS, you can build concepts that are centered around HTML and JavaScript.

You do not have to own an account to get down to business. Nevertheless, if you want to enjoy all the perks, you’d better create one, and it is entirely free.

Original Post : Please click here

Thanks Friends

Keep Coding 🙂

SolutionsPoint

 

iDev: Apple ResearchKit Turns iPhones Into Medical Diagnostic Devices

iDev: Apple ResearchKit Turns iPhones Into Medical Diagnostic Devices by

Medical research is plagued by small sample sizes and inconsistent data collection. So Apple is stepping up to help health innovation with Research Kit, a new iOS software framework that lets people volunteer to join medical research studies. ResearchKit lets people take tests like saying “ahhh” to detect vocal variations, walking in a line, or tapping in rhythm to test for Parkinson’s Disease.

Users will decide how to share their data and Apple won’t see it. And to advance its evolution, ResearchKit will be open source. ResearchKit will be available next month, and the first five tests built with it will become available today. They help people participate in tests for Parkinson’s, diabetes, cardiovascular disease, asthma, and breast cancer.

Tap Test

Apple’s Jeff Williams came out on stage today at the Apple Watch event to show off ResearchKit. He explained how Apple worked with 12 research institutions to build out the app, including University Of Oxford and Stanford.

Apple learned about some of the biggest obstacles to scientific research in medicine. Finding and recruiting subjects can be tough. Paper flyers on college campuses are one of the few ways labs sign up human guinea pigs. This obstacle can lead to small sample sizes more vulnerable to inaccuracy, and less diverse samples that might not be generalizable to the world population.

Screen Shot 2015-03-09 at 10.39.04 AM

5 ResearchKit Apps

With ResearchKit, researchers can build out a medical testing app for iOS that’s accessible to people far from their physical lab. Users can signup with a digital signature, and instantly start recording data.

Screen Shot 2015-03-09 at 10.56.38 AM

Tests designed with ResearchKit use the iPhone’s sensors to record data. The touch screen can feel people tapping in rhythm to detect inconsistencies that may signal a disease. The accelerometer can compare the gait and balance of someone’s walk against a healthy person’s speed and posture. And the microphone can notice minute fluctuations in someone’s voice that may indicate Parkinson’s or another health problem.

Gait Test
Ahh

Williams stressed the immediate benefit to users because they’re learn about their health even before a researcher’s study concludes and they publish the results. If a user notices they are having trouble balancing while walking a line, they can talk to their doctor about it.

Since medical data is obviously sensitive, Apple won’t see anything you put into ResearchKit apps and you can give permissions for how data is used by researchers.

The question will be how many developers jump aboard the ResearchKit. While it obviously holds potential improvements, it also takes time to develop traditional lab studies into an app. ResearchKit is a valiant effort by Apple, and if its a hit with scientists, it could make mass medical research easier than ever.

Original Blog Source : Click Here

iDiscussion: Developer survey- Mobile still slow to grow

Developer survey: Mobile still slow to grow

Hi Friends,
Here the interesting post by Rob Marvin… must read
Telerik survey art

Mobile development is on the rise, but for developers, it’s still got a long way to go.

Developer tool provider Telerik’s 2014 “App Development State of the Union” survey of 2,200 developers and IT executives showed that while mobile development is a priority, widespread adoption is stagnant and developers are slow to integrate technologies to facilitate the transition. The survey, conducted to determine application development priorities and pain points, showed that 51% of developers are not yet building mobile applications, with 93% saying desktop is still their primary focus.

Telerik platform chart

The survey also showed that the majority of app developers are not collecting user feedback or leveraging cross-platform development tools. Of those developing for mobile, 72% are focused on Web/HTML5 app development. Preferred programming languages also shed light on which platforms developers are gravitating toward. Developers could choose more than one, so the top language was C# with 81%, followed by JavaScript at 47%, .NET/Visual Studio at 26% and Java at 18%.

Here are some of the key findings from Telerik’s survey:
• “While mobile app development is routinely described as a priority, in both current app development and deployment, adoption is slowly growing. Desktop remains a key priority for the next 12-18 months.
• More than half of respondents are not yet developing for mobile, due to current workload restraints.
• Of those developing for mobile, the majority are focused on Web/HTML5, leaving native and hybrid app development neck-and-neck in terms of adoption.
• Open-source technology continues to be
an important aspect of the development process, leveraged in more than 80% of development projects.
• Respondents seldom collect end-user feedback about app development priorities, though users are involved in app creation more than ever before.
• When asked about Backend-as-a-Service (BaaS), 36% were unfamiliar with the technology and 42% weren’t using it. Yet, 68% of apps created today require real-time data.”

Of the total respondents, 59% were development managers and team leads, 12% were architects and analysts, and were 10% executives, with 29% coming from startups, 29% from enterprises and 42% from small to mid-sized businesses.

Telerik’s “App Development State of the Union” survey can be found here.

Source : Press Here

Thanks
Keep Coding 🙂

iDev : Create, Rename, Delete, Read and Write File on iOS Functions

Hi Friends,

On iOS Programming, one of the most frequent tasks is Manipulation with Files. Using Local Files is one of the most efficient way to store your local data, other ways may include NSUserDefault, Core Data, but local files is very easy to be implemented and organized. So in this tutorial, we will focus on 5 main manipulation related to Local File on iOS.

Before we get started, we first should know what files have been stored in your app’s sandbox. As you might know, every app on iPhone is like an island, usually we name it SandBox. It contains AppName.app, Library folder, tmp folder and Document folder. User usually have their data stored in Document folder if they choose to use local file to store their data because other folders are not designed to store user’s data. So here we use Document Folder to give our test.

So, let’s list all the files exists in Document Folder in our Sandbox.

 1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

– (void)listAllLocalFiles

{

// Fetch directory path of document for local application.

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

// NSFileManager is the manager organize all the files on device.

NSFileManager *manager = [NSFileManager defaultManager];

// This function will return all of the files’ Name as an array of NSString.

NSArray *files = [manager contentsOfDirectoryAtPath:documentsDirectory error:nil];

// Log the Path of document directory.

NSLog(@”Directory: %@”, documentsDirectory);

// For each file, log the name of it.

for (NSString *file in files) {

NSLog(@”File at: %@”, file);

}

}

1, Create a File in the Document Folder.

 1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

– (void)createFileWithName:(NSString *)fileName

{

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

NSString *filePath = [documentsDirectory stringByAppendingPathComponent:fileName];

NSFileManager *manager = [NSFileManager defaultManager];

// 1st, This funcion could allow you to create a file with initial contents.

// 2nd, You could specify the attributes of values for the owner, group, and permissions.

// Here we use nil, which means we use default values for these attibutes.

// 3rd, it will return YES if NSFileManager create it successfully or it exists already.

if ([manager createFileAtPath:filePath contents:nil attributes:nil]) {

NSLog(@”Created the File Successfully.”);

} else {

NSLog(@”Failed to Create the File”);

}

}

2, Delete a File in the Document Folder.

 1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

– (void)deleteFileWithName:(NSString *)fileName

{

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

// Have the absolute path of file named fileName by joining the document path with fileName, separated by path separator.

NSString *filePath = [documentsDirectory stringByAppendingPathComponent:fileName];

NSFileManager *manager = [NSFileManager defaultManager];

// Need to check if the to be deleted file exists.

if ([manager fileExistsAtPath:filePath]) {

NSError *error = nil;

// This function also returnsYES if the item was removed successfully or if path was nil.

// Returns NO if an error occurred.

[manager removeItemAtPath:filePath error:&error];

if (error) {

NSLog(@”There is an Error: %@”, error);

}

} else {

NSLog(@”File %@ doesn’t exists”, fileName);

}

}

3, Rename a File in the Document Folder.

 1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

– (void)renameFileWithName:(NSString *)srcName toName:(NSString *)dstName

{

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

NSString *filePathSrc = [documentsDirectory stringByAppendingPathComponent:srcName];

NSString *filePathDst = [documentsDirectory stringByAppendingPathComponent:dstName];

NSFileManager *manager = [NSFileManager defaultManager];

if ([manager fileExistsAtPath:filePathSrc]) {

NSError *error = nil;

[manager moveItemAtPath:filePathSrc toPath:filePathDst error:&error];

if (error) {

NSLog(@”There is an Error: %@”, error);

}

} else {

NSLog(@”File %@ doesn’t exists”, srcName);

}

}

4, Read a File in the Document Folder.

 1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

/* This function read content from the file named fileName.

*/

– (void)readFileWithName:(NSString *)fileName

{

// Fetch directory path of document for local application.

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

// Have the absolute path of file named fileName by joining the document path with fileName, separated by path separator.

NSString *filePath = [documentsDirectory stringByAppendingPathComponent:fileName];

// NSFileManager is the manager organize all the files on device.

NSFileManager *manager = [NSFileManager defaultManager];

if ([manager fileExistsAtPath:filePath]) {

// Start to Read.

NSError *error = nil;

NSString *content = [NSString stringWithContentsOfFile:filePath encoding:NSStringEncodingConversionAllowLossy error:&error];

NSLog(@”File Content: %@”, content);

if (error) {

NSLog(@”There is an Error: %@”, error);

}

} else {

NSLog(@”File %@ doesn’t exists”, fileName);

}

}

5, Write a File in the Document Folder.

 1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

/* This function Write “content” to the file named fileName.

*/

– (void)writeString:(NSString *)content toFile:(NSString *)fileName

{

// Fetch directory path of document for local application.

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

// Have the absolute path of file named fileName by joining the document path with fileName, separated by path separator.

NSString *filePath = [documentsDirectory stringByAppendingPathComponent:fileName];

// NSFileManager is the manager organize all the files on device.

NSFileManager *manager = [NSFileManager defaultManager];

// Check if the file named fileName exists.

if ([manager fileExistsAtPath:filePath]) {

NSError *error = nil;

// Since [writeToFile: atomically: encoding: error:] will overwrite all the existing contents in the file, you could keep the content temperatorily, then append content to it, and assign it back to content.

// To use it, simply uncomment it.

//        NSString *tmp = [[NSString alloc] initWithContentsOfFile:fileName usedEncoding:NSStringEncodingConversionAllowLossy error:nil];

//        if (tmp) {

//            content = [tmp stringByAppendingString:content];

//        }

// Write NSString content to the file.

[content writeToFile:filePath atomically:YES encoding:NSStringEncodingConversionAllowLossy error:&error];

// If error happens, log it.

if (error) {

NSLog(@”There is an Error: %@”, error);

}

} else {

// If the file doesn’t exists, log it.

NSLog(@”File %@ doesn’t exists”, fileName);

}

// This function could also be written without NSFileManager checking on the existence of file,

// since the system will atomatically create it for you if it doesn’t exist.

}

Appending the file and add another text continously used this on Write menthod

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);

NSString *documentsDirectory = [paths objectAtIndex:0];

NSString *docPath = [documentsDirectory stringByAppendingPathComponent:@”File.txt”];

NSString *appendString = //Your appending string ;

NSFileHandle *myHandle = [NSFileHandle fileHandleForWritingAtPath:docPath];

[myHandle seekToEndOfFile];

[myHandle writeData:[savedString dataUsingEncoding:NSUTF8StringEncoding]];

Also, similar API applies to URL and Directory. Check Apple’s Doc for more details.

iDiscussion: REST vs SOAP Web Services

Hi Friends,

download (2) download (1)

I am seeing a lot of new web services are implemented using a REST style architecture these days rather than a SOAP one. Lets step back a second and explain what REST is.

What is a REST Web Service

download

The acronym REST stands for Representational State Transfer, this basically means that each unique URL is a representation of some object. You can get the contents of that object using an HTTP GET, to delete it, you then might use a POST, PUT, or DELETE to modify the object (in practice most of the services use a POST for this).

Who’s using REST?

All of Yahoo’s web services use REST, including Flickr, del.icio.us API uses it, pubsub, bloglines, technorati, and both eBay, and Amazon have web services for both REST and SOAP.

Who’s using SOAP?

Google seams to be consistent in implementing their web services to use SOAP, with the exception of Blogger, which uses XML-RPC. You will find SOAP web services in lots of enterprise software as well.

REST vs SOAP

images (1)

As you may have noticed the companies I mentioned that are using REST api’s haven’t been around for very long, and their apis came out this year mostly. So REST is definitely the trendy way to create a web service, if creating web services could ever be trendy (lets face it you use soap to wash, and you rest when your tired). The main advantages of REST web services are:

  • Lightweight – not a lot of extra xml markup
  • Human Readable Results
  • Easy to build – no toolkits required

SOAP also has some advantages:

  • Easy to consume – sometimes
  • Rigid – type checking, adheres to a contract
  • Development tools

REST and SOAP are not equivalent concepts and Point are :

REST:

  • Depends on one transport protocol (HTTP).
  • Makes full use of the specific features of that protocol (verbs GET, POST, PUT, DELETE, caching, headers, and predefined error codes).
  • Says nothing about the format of the messages passed back and forth. However, since the HTTP verb and URL already define the action to take, the message body must therefore contain only the data.
  • Message security is provided by the transport protocol (HTTPS), and is point-to-point only. If you want to secure the message end-to-end, you have to do it yourself.
  • Originally intended for simple CRUD operations on objects.

SOAP:

  • Independent of the transport protocol (could be HTTP, FTP, TCP, UDP, named pipes, shared memory or even email).
  • Requires only that the transport protocol be able to send and receive text (e.g. on HTTP, only the POST verb is used).
  • Strictly defines the format of the messages passed back and forth. A SOAP message contains the data, the action to perform on it, the headers, and the error details in case of failure.
  • Message security is provided by the WS-* standards, and is end-to-end.
  • Originally intended for arbitrary RPC calls.

Items 2 and 3 in the above lists are the main points of incompatibility.

For consuming web services, its sometimes a toss up between which is easier. For instance Google’s AdWords web service is really hard to consume (in CF anyways), it uses SOAP headers, and a number of other things that make it kind of difficult. On the converse, Amazon’s REST web service can sometimes be tricky to parse because it can be highly nested, and the result schema can vary quite a bit based on what you search for.

Which ever architecture you choose make sure its easy for developers to access it, and well documented.

images

Reference : Click Here

Thanks, Keep Coding 🙂

iDiscussion: Does Your Enterprise Have a Central Strategic Mobile Resource?

Does Your Enterprise Have a Central Strategic Mobile Resource?

Mobile technologies are much more than a trend, and are no longer something that organizations and enterprises can overlook or pretend to ignore.

Mobile is already a significant market platform that generates substantial revenues, driven by the ever-growing use of smartphones and mobile applications. However, alongside these exciting business opportunities, mobile technologies and applications also introduce new types of risks that were not an issue in the desktop application world.

As mobile grows, the accompanying pains and risks require (even dictate) the adoption of a robust mobile strategy built upon a centralized organizational solution. Such a strategic solution should be based on an appropriate set of tools that can be used by management, development and testing teams wherever they may be located around the globe.

Mobile applications require enterprises to take into account several mobile-specific components that are not relevant to the desktop space:

  • Governance and availability of devices (smartphones and tablets). The extremely dynamic and fragmented mobile market requires continuous testing of mobile products. To ensure timely delivery to market, you must have access to an up-to-date set of mobile devices at all times.
  • Global solution which enables offshoring, testing and collaboration among diverse and distributed teams
  • Robust manual testing solution to handle user interface and other “look & feel” issues
  • Cross-device test automation solution in order to accelerate TTM and to enable QA to efficiently perform continuous regression testing while moving from one version of the product to the next
  • The ability to plug a dedicated, mobile-specific testing platform into your existing ALM tools, processes and organizational skill sets (i.e., seamlessly integrate with existing ALM quality suites)
  • Mobile Application Performance & Monitoring (APM) must be taken into account. Availability and response time for your mobile application are critical for business success. Studies show that mobile users are less tolerant than desktop users to performance and availability shortcomings.
Figure 1: World Quality Report 2012-2013, CapGemini

When formulating your mobile strategy, do not take the risk of overlooking these important aspects of mobile testing. In addition, the latest World Quality Report (as illustrated above) stresses the importance of using a cloud-based, centralized organisational resource to enhance agility, competitiveness and cost-effectiveness.

Using this blueprint, Perfecto Mobile has deployed mobile testing solutions for leading enterprises and mobile carriers worldwide.  Our experience shows that addressing these key pillars assures ongoing mobile quality while cost-effectively streamlining the entire mobile lifecycle for the various mobility groups (Development, Testing, Performance and Operations).

So here’s the takeaway:

Mobile is a serious business platform which is getting more complex and fragmented every day. New devices will continue to pop up and new mobile OS versions will be released with increasing frequency, making mobile testing that much more difficult.

To thrive in such an environment, enterprises ought to focus their time, energy and resources on developing high quality mobile products that serve their customers’ needs. Integrating the right mobile solution with your existing tools and processes will allow your team to focus on developing real mobile testing scenarios, automation, etc., rather than dealing with organisational issues. By supporting the pillars listed above, your mobile testing solution can serve as a central strategic resource across the enterprise IT environment.

Link : Read Here

Thanks 🙂

Keep Coding 🙂

WWDC 2013: iOS 7 and Mavericks’ missing features


By  for The Apple Core | June 12, 2013

Summary: While the developer previews of iOS 7 and OS X Mavericks showed some evolutionary new features, there are several new features that are still lacking in Apple’s new operating systems.

WWDC 2013: Features missing in iOS 7 and Mavericks - Jason O'Grady

The developer previews of Apple’s iOS 7 and OS X Mavericks that were announced yesterday at WWDC are packed with new features — and an entirely new user experience in the case of iOS 7 — but I was disappointed that several needed features didn’t appear to make the cut.

There are a number of features that are noticeably absent from the first developer build of iOS 7 (11A4372q). These should be taken with a grain of salt however, as a lot can change (and hopefully will!) before iOS 7 is released in the fall.

Default apps – There’s no way to change default apps, so we’re stuck with Safari, Email and Calendar, for the time being.

Lower case keyboard – Although there are some nice UI tweaks to the new keyboard, lower-case keys are still represented by capital letters. Something I’ll never understand.

Alternative keyboards – I’m not holding my breath for this one. Apple’s previously said that third party keyboards are a security risk because they can contain key loggers.

Landscape springboard – I still find it amazing that the iPad home screen can be displayed in landscape mode, but the iPhone’s can’t. Curiously the new iOS 7 Multitasking Switcher and Control Center both work in landscape (as do most apps, including Mail, Messages and Safari) yet the springboard doesn’t.

Upside-down springboard – When Jony Ive finally realizes that landscape mode is useful on an iPhone, I hope he allows the Springboard (and apps) to be used fully upside-down too (like the iPad does). Since the iPhone 5’s ports on the bottom of device, it’s almost impossible to use when plugged into power and sitting upside-down in the cup holder of a car.

Public transit directions – The updated Apple Maps app while improved, still refers you to other apps and the App Store when you touch the link for “transit directions”

Widgets – Although we got similar functionality in Control Center and Notification Center, there’s no substitution for real, live widgets. But Jony Ivy continues to tease us with his animated iOS icons! First it was the updating date on the Calendar app, now the Clock icon is live, right down to the sweeping second hand.

Lock screen widgets – While the new Today screen in Notification Center is an improvement over iOS 6, I’d still prefer to have real widget that I can customize.

Menubarlets – Apple tweaked the menu bar in iOS 7 with carrier dots and a new charging icon, but there’s still no way to add icons for things like the current temperature, like you can in Android.

Multiple user accounts – While Apple hasn’t released a version of iOS 7 for the iPad yet, there’s no signs of multiple user support in the current developer build of iO7, so it’s looking unlikely this go around.

Better/more printing options – While the new Share Sheet and AirDrop functionality are welcome additions, they don’t change the fact that there are only a small amount of printers that support AirPrint.

OS X Mavericks is missing one major feature that was rumored to be coming: full Siri integration. The first developer build of Mavericks ships with the same Dictation and Speech Control Panel that debuted in Mountain Lion (OS X 10.8), but no Siri. Which is a shame. Hopefully Siri will arrive in a subsequent build of Mavericks.

I’m sure more missing features will come to mind, and I’ll update this post when then do. In the mean time, what’s missing in iOS 7 and Mavericks for you?

Source : Click Here