Thursday, January 29, 2015

CodeProject: Android UI Layouts

Android

  (44 votes) by Peter Leow (updated 5 days ago)
Putting faces on Your Android App.
  (14 votes) by Peter Leow (updated 5 days ago)
Learning to draw and animate simple 2D and 3D graphics in Android.
  (11 votes) by Peter Leow (updated 5 days ago)
Kick start the learning journey to Android development with an introduction to Android, a comparison with other mobile platforms, followed by a high-level overview of Android architecture and the application components.

Dice: Stanford Will Teach You Apple’s Swift for Free

Stanford Will Teach You Apple’s Swift for Free

Apple Swift Example
Interested in building iOS apps with Apple’s new(ish) Swift programming language? Want to learn Swift for free? Stanford University’s School of Engineering now offers a set of lectures (available on iTunes) on Swift, covering everything from user-interface design and animation to networking and performance considerations.
But this isn’t a beginners’ series: Prerequisites include C language and object-oriented programming experience “exceeding Programming Abstractions level” as well as “completion of Programming Paradigms.” (Fortunately, Programming Abstractions and Programming Paradigms are likewise available from Stanford via iTunes.) Stanford also recommends that anyone pursuing its Swift course come with knowledge of UNIX, graphics, and databases. ...(more here)

Saturday, January 24, 2015

IPad iOs tips

IPad iOs tips

4-5 figure gestures
http://www.cultofmac.com/199875/switch-between-apps-directly-on-your-ipad-using-four-or-five-finger-gestures-ios-tips/

o tap the Settings app and then tap the General tab there in the left-hand column. Scroll down a bit to find the Multitasking Gestures toggle switch, and set it to ON with a tap. Just below that toggle, you’ll see the three things you can now do with four or five fingers at once.
To get back to the Home screen from any other app, simply pinch inward with five fingers. You’ll be taken out of the currently running app and end up on the Home Screen. Note that you’ll go back to the specific page you left Home on, just like when you tap the Home button.
To reveal the multitasking bar at the bottom of your iPad screen, swipe up with four (or five) fingers at once, from the bottom of the iPad screen to the top. This is the equivalent to double clicking the Home button.
Finally, to move between recently running apps, swipe left or right with your four or five fingers. This is like switching Desktop Spaces on the Mac, only it’s really switching from the current app to the latest save state of the previously running app. It’s like enabling the multitaasking bar and tapping on the next app in the list, without actually having to do the middle part.

Friday, January 16, 2015

JQuery Tutorials

JQuery Tutorials


http://jqfundamentals.com/

iOS IPhone IPad programming tutorials

iOS IPhone IPad programming tutorials

Scary Bugs

http://www.raywenderlich.com/1797/ios-tutorial-how-to-create-a-simple-iphone-app-part-1

iOS Tutorial: How To Create A Simple iPhone App: Part 1/3

 Ray Wenderlich 
If you're new here, you may want to subscribe to my RSS feed or follow me on Twitter. Thanks for visiting!
iPhone programming is like a ladybug - fun and only a little scary!
iPhone programming is like a ladybug - fun and only a little scary!
Update 6/02/14: Fully updated for iOS 7 by Jorge Jordán.
The iPhone is an amazing platform to develop on for indie software developers. It’s never been easier to come up with your own unique app idea, code something up, and have it be available to millions of potential customers!
Lately I’ve been getting a lot of questions from people new to iOS development asking how to get started. So I thought it would be helpful to write an iOS tutorial series tailored for beginners.
But rather than focusing in detail on just one topic, you’re going to dive in and create an entire functional app from scratch. By the end, you’ll have tried out many areas of iPhone development, and ready to dig in further.
So what’s the app you’re going to make? Well, there’s a story behind that…
Official Apple

https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/index.html#//apple_ref/doc/uid/TP40011343-CH2-SW1

Setup

Start Developing iOS Apps Today is the perfect starting point for creating apps that run on iPad, iPhone, and iPod touch. View this guide’s four short modules as a gentle introduction to building your first app—including the tools you need and the major concepts and best practices that will ease your path.
image: ../Art/application_design_2x.png
The first three modules end with a tutorial, where you’ll implement what you’ve learned. At the end of the last tutorial, you’ll have created a simple to-do list app.


Wednesday, January 14, 2015

ASP.NET Performance Test Much Faster Than Webforms

ASP.NET Performance Test Much Faster Than Webforms

from
http://www.codeproject.com/Articles/864950/ASP-NET-MVC-vs-ASP-NET-WebForm-performance-compari

ASP.NET MVC vs ASP.NET WebForm performance comparison

13 Jan 2015 CPOL
The intention of this article is to compare performance between ASP.NET WebForms and ASP.NET MVC. One the main reasons of moving from Webforms to MVC is performance, performance and performance.

Contents

Intention of this test
Code for the test
Out of scope
How was the test conducted?
Performance criteria
Conclusion of test
ASP.NET MVC as solution
Reading 1
Web Forms
MVC
Reading 2
Webform
MVC
Reading 3
WebForm
MVC
Reading 4
WebForm
MVC
Reading 5
Webform
MVC
Reading 6
Webform
MVC
Further reading

Intention of this test

The intention of this article is to compare performance between ASP.NET WebForms and ASP.NET MVC.One the main reasons of moving from Webforms to MVC is performance, performance and performance.
FYI :-In case you are new to MVC you can start from the video given at the end of the article.

Code for the test

For this test we created two projects one in ASP.NET MVC and the other in ASP.NET Webforms.We have kept the test absolutely simple.Both the projects display 20 textboxes and there is a grid loaded with 1000 records.
Below is the ASP.NET Webform code behind which binds with a grid server control.
        protected void Page_Load(object sender, EventArgs e)
        {
for(int i=0;i<1000;i++)
            {
obj.Add(DateTime.Now.ToString());
            }
            GridView1.DataSource = obj;
GridView1.DataBind();
        }
    }
On the ASPX UI we have 20 textboxes which uses the server controls of ASP.NET Webforms.
<asp:TextBox ID="TextBox1" runat="server" BackColor="#FF66FF"></asp:TextBox>

<asp:TextBox ID="TextBox2" runat="server" BackColor="#FF66FF"></asp:TextBox>

<asp:TextBox ID="TextBox3" runat="server" BackColor="#FF66FF"></asp:TextBox>

…….
<asp:TextBox ID="TextBox6" runat="server" BackColor="#FF66FF"></asp:TextBox>

In ASP.NET MVC project also we have similar kind of logic. We have 20 textboxes created using HTML control and simple loop which creates HTML table.
<input id="Text1" type="text" style="background-color:#FF66FF" />

<input id="Text1" type="text" style="background-color:#FF66FF" />

<input id="Text1" type="text" style="background-color:#FF66FF" />

@{
List<string> obj = new List<string>();
for (int i = 0; i < 1000; i++)
{
obj.Add(DateTime.Now.ToString());
}
}
<table>
<tr><td>Item</td></tr>
@{
foreach (string str in obj) 
      {
<tr><td>@str</td></tr>
      }
}
</table>

Out of scope

In this test we have not used JSON, Jquery , Ajax because we wanted to test performance of these platforms only and not when they get clubbed with other technical things like HTML 5 , Ajax etc.

How was the test conducted?

Test was conducted with the below specifications using VSTS and telerik load test software:-
  • User load 25 users.
  • Run duration of test was 10 minutes.
  • Machine config DELL 8 GB Ram, Core i3
  • Project was hosted in IIS 8.
  • Project was created using MVC 5.
  • Network LAN connection was assumed. So this test does not account for network lag for now.
  • Browser in the test selected Chrome and Internet explorer.
  • Multiple reading where taken during the test to average unknown events. 7 readings where taken and all readings are published in this article as reading 1 , 2 and so on.

Performance criteria

Performance was measured using two criteria’s Average page response time and Response content in bytes.
Average Page response time :- This value is the average time the 25 users get the page output when the load testing is executed.
Response content length :-Number of average total bytes transferred for every request. This criteria is taken because we suspect the server controls generate more amount of HTML as compared to when we write custom HTML.

Conclusion of test

Response time
Response time of MVC was much better as compared to Webform. We found ASP.NET MVC response time was two times better than Webforms.
The reason is but obvious when a request is sent to Webforms there is a complex ASP.NET page life cycle which gets executed in the code behind. This code behind is nothing but sort of conversion logic which converts the ASP.NET server controls to HTML.
In ASP.NET MVC there is no code behind and no such conversion is required as the controls are in HTML format themself.
Content length
For the same kind of logic the HTML content length generatedfrom Webform was twice than MVC.
When we viewed the view source we saw huge view state data generated by Webform which was not present in MVC. This means more bandwidth will be consumed when we surf ASP.NET Webform sites as compared to ASP.NET MVC sites.

ASP.NET MVC as solution

If you see the conclusion from the load test we need a solution which does not have code behind and server controls. So when you create ASP.NET MVC projects you will not find NOcode behind and server controls.
Below is a snapshot of MVC views and you can see there is .CSHTML but there is no CSHTML.CS.
If you go a MVC view and click on toolbox it only HTML tab and all the server controls have gone of completely.
You can also read this in depth article which talk about what we have missed in ASP.NET MVC from Webforms.
Below are all the seven readings pasted for both Webform and MVC. These readings would provide you more insight on the performance factor between these technologies.

Reading 1

Web Forms