Skip to main content

Posts

Showing posts from July, 2011

How To Import and Export App Data Via Email in your iOS App

A lot of developers want to be able to share their app's data via email. It's a convenient way for users to send data to each other or between devices – and it may even net you some new customers! Luckily, this is pretty easy to do on the iPhone – you just have to set a few keys in your Info.plist and handle a few callbacks so the OS can open your app with the URL to import. So we'll cover how to do exactly that in this tutorial!Read More....

How To Integrate iTunes File Sharing With Your iOS App

The iPad and iOS 4 have a great new feature called File Sharing that provides a convenient way for users to transfer files between their computer and your app. But figuring out exactly what you need to do to get this working in real-world scenarios can be tricky. So I thought it would be useful to write a tutorial that covers how to do that with a real app, step by step!Read More.........

How To Save Your App Data With NSCoding and NSFileManager

There are many different ways to save your data to disk in iOS – raw file APIs, Property List Serialization, SQLite, Core Data, and of course NSCoding. For apps with heavy data requirements, Core Data is often the best way to go. However, for apps with light data requirements, NSCoding with NSFileManager can be a nice way to go because it's such a simple alternative.Read More....

Core Data Tutorial: How To Use NSFetchedResultsController

So far, we're at exactly the same point we were using the SQLite3 method. However, we didn't have to write nearly as much code (notice the absence of a FailedBankDatabase class constructing raw SQL statements), and adding other functionality such as insert/delete operations would be much simpler. However, there's one notable thing that we could add pretty easily with Core Data that could give us huge benefits to performance: use NSFetchedResultsController. Right now we're loading all of the FailedBankInfo objects from the database into memory at once. That might be fine for this app, but the more data we have the slower this will be, and could have a detrimental impact to the user. Ideally we'd like to load only a subset of the rows, based on what the user is currently looking at in the table view. Luckily, Apple has made this easy for us by providing a great utility class called NSFetchedResultsController. So, start by opening up FailedBanksListViewController.h, remov…

Core Data Tutorial: How To Preload/Import Existing Data

In this part of the series, we're going to discuss how to import or preload existing data into Core Data so that we have some good default data when our app starts up. In the final part of the series, we're going to discuss how we can optimize our app by using NSFetchedResultsController, to reduce memory overhead and improve response time.Read More....

Core Data Tutorial: Getting Started

Of all of the ways to persist data on the iPhone, Core Data is the best one to use for non-trivial data storage. It can reduce the memory overhead of your app, increase responsiveness, and save you from writing a lot of boilerplate code. However, the learning curve for Core Data can be quite large. That's where this tutorial series comes in – the goal is to get you up to speed with the basics of Core Data quickly. In this part of the series, we're going to create a visual data model for our objects, run a quick and dirty test to make sure it works, and then hook it up to a table view so we can see a list of our objects. In the second part of the series, we're going to discuss how to import or preload existing data into Core Data so that we have some good default data when our app starts up. In the final part of the series, we're going to discuss how we can optimize our app by using NSFetchedResultsController, to reduce memory overhead and improve response time.Re…

SQLite 101 for iPhone Developers: Making Our App

We're going to have two screens for our app. The first will show a list of banks in a table view. Tapping on a bank in the table view should bring up another view with details on that bank. Rather than retrieving all of the data from the database, we're just going to pull out the specific subset we need to display the first table view to save memory. So let's create a class to store this: Click on Classes and click "File\New File…", choose "Cocoa Touch Class" on the side, pick "Objective-C class", select "Subclass of NSObject", and click "Next". Name the class "FailedBankInfo." Replace FailedBankInfo.h with the following:Read More....

SQLite 101 for iPhone Developers: Creating and Scripting

In this series, we're going to show how to make an app that displays a list of failed US banks from a SQLite database. In this first part of the series, we will cover what SQLite is and why we'd want to use it, how to use the sqlite3 command-line utility, and how to import data programatically via Python. In the second part of the series, we will cover how to make an iPhone app that reads data from the SQLite database we created, and display data in a table view and a drill down detail view. This tutorial does not assume any prior knowledge with Python or SQLite, however it assumes a basic knowledge of SQL.Original Source...

How To Read and Write XML Documents with GDataXML

This tutorial will show you how to do exactly that! We'll create a project that reads a simple XML document that contains a list of RPG party members, and construct our own objects based on the XML. We'll then add a new player to the party, and save it back out to disk again. This tutorial uses GDataXML, Google's XML processing library. I chose GDataXML since it performs well for DOM parsers, supports both reading and writing, and is so easy to integrate. However, if you are using a different DOM parser, it should be almost exactly the same as this but just slightly different API calls. Special thanks to Saliom for suggesting writing this tutorial!Read More....

How To Choose The Best XML Parser for Your iPhone Project

There are a lot of options when it comes to parsing XML on the iPhone. The iPhone SDK comes with two different libraries to choose from, and there are several popular third party libraries available such as TBXML, TouchXML, KissXML, TinyXML, and GDataXML. How is a developer to choose? I have been recently taking a look at the various options out there, and ended up extending the XMLPerformance sample from Apple to try out each of the above libraries to learn how they worked and compare their performance. I thought I'd share what I've learned thus far to others who might be searching for the best XML library for their iPhone project. In this article we'll give a detailed comparison of the features and performance of the most popular iPhone libraries, explain how to choose between them, and give a sample project showing how to read XML data using each of the above libraries.Read More at Original Source...

C# Fundamentals

IntroductionIn the way of development of programs using FORTAN and COBAL like erlier languages the complexity was increasing for larger programs. So, the developers found out structured programing language like C. Later on these structured programing  languages also became complex in developing large projects , so developers come up with the Object Oriented programing (OOPs) language.Structure programing works only for what is happening inside the code but does not explains which data is affecting (not works around data).Object Oriented Programing works on both; around the code (what is happening) and around the data (which data is affecting).To achieve the Object Oriented Programing concept we have to fallow three principles of OOPS conecpt and those are  Encapsulation PolyMorphism and Inheritance.Let us learn about each conceptEncapsulation:It means binding the Code and Data together; encapsulation provides security to data.

C# basic unit of encapsulation is Class, C# uses a class …

ASP.NET Dynamic Data - a boon for developers

With the rate of changes/ additions of features in the .Net framework, many of very good features don't get the deserved attention.  Especially on the ASP.NET front, there have been many such features haven't caught the eye of developer. Dynamic data which was introduced with ASP.Net 3.5 (SP 1) is one of such cool new addition in the archery of ASP.Net. 
Precisely ASP.NET dynamic data provides a framework which enables quick building of functional data driven application that are based on Microsoft ORM i.e. LINQ TOSQL or Entity framework data model. It has added smart validation and ability to change the display with templates to DetailsView, FormView, GridView, and ListView controls. As per Microsoft, the dynamic data framework enables major usability and RAD development changes to work with data model. The LINQTOSQL or EF can be registered with dynamic data to result into a fully functional web site. It supports all CRUD operations. We will explore dynamic data website with .…

How can we take all the SQL SERVER Database Backup at once

Hello Friends,
Here I am going to share how can we take the database backup of all the SQL Server databases at once instead of taking it individually.
First we need to create a folder in any drive to store the backup of database which we are going to take.
Here I have created a folder named "dbBackup" in my drive "C:\"

Copy the below code & paste it in your SQL Server Query Executer page:
DECLARE @DBName varchar(255) DECLARE @DATABASES_Fetch int DECLARE DATABASES_CURSOR CURSOR FOR select DATABASE_NAME = db_name(s_mf.database_id) from sys.master_files s_mf where -- ONLINE s_mf.state = 0 -- Only look at databases to which we have access and has_dbaccess(db_name(s_mf.database_id)) = 1 -- Not master, tempdb or model and db_name(s_mf.database_id) not in ('Master','tempdb','model') group by s_mf.database_id order by 1 OPEN DATABASES_CURSOR FETCH NEXT FROM DATABASES_…