Thursday, January 26, 2012
MVC 3 and jQuery Dialog Form
Justin Schwartzenberger of IWantMyMVC.com posted a tutorial on how to do display Dialog Form in MVC3 using jQuery at
http://iwantmymvc.com/dialog-form-with-jqueryui-and-mvc-3. The following screenshots are taken from his article.
Wednesday, January 18, 2012
Tuesday, January 10, 2012
Topics Related to Entity Framework
Good reads.
- Fluent API Samples. How to customize mapping using fluent API method calls.
- Connections and Models. How to connect to different types of databases.
- Pluggable Conventions. How to change conventions.
- Finding Entities. How to use the Find method with composite keys.
- Loading Related Entities. Additional options for eager, lazy, and explicit loading.
- Load and AsNoTracking. More on explicit loading.
Entity Framework Resources
Good resources for learning about Entity Framework.
- Introduction to the Entity Framework 4.1 (Code First)
- The Entity Framework Code First Class Library API Reference
- Entity Framework FAQ
- The Entity Framework Team Blog
- Entity Framework in the MSDN Library
- Entity Framework in the MSDN Data Developer Center
- Entity Framework Forums on MSDN
- Julie Lerman's blog
- Code First DataAnnotations Attributes
- Maximizing Performance with the Entity Framework in an ASP.NET Web Application
- Profiling Database Activity in the Entity Framework
- Entity Framework Power Tools
Monday, January 9, 2012
MSDN Webcast: BenkoTips Live and on Demand: Cloud + Mobile Game – Build Rock Paper Azure on Windows Phone (Level 100)
Link
Bookmarked to watch later.
This end-to-end scenario talk demonstrates how Windows Azure enables and extends the reach of mobile applications with the example of the classic Rock-Paper-Scissors game played on the phone against a service hosted in the cloud. Starting from a blank slate, this talk showcases the use of Access Control Services to use identity from Google, Yahoo and Live ID to authenticate the user, then implements a SQL Azure database to store game history. Finally it implements the game interface using Silverlight on Windows Phone 7.1 pulling information from a WCF Data Service that exposes an OData endpoint from an Entity Framework data model.
Bookmarked to watch later.
Thursday, January 5, 2012
Learning MVC and EF in 10 Tutorials
These are well-written tutorials. I'm glad I went through them all. Really helped reinforce what I have been learning about MVC and EF.
- Creating an Entity Framework Data Model for an ASP.NET MVC Application (1 of 10)
- Implementing Basic CRUD Functionality with the Entity Framework in ASP.NET MVC Application (2 of 10)
- Sorting, Filtering, and Paging with the Entity Framework in an ASP.NET MVC Application (3 of 10)
- Creating a More Complex Data Model for an ASP.NET MVC Application (4 of 10)
- Reading Related Data with the Entity Framework in an ASP.NET MVC Application (5 of 10)
- Updating Related Data with the Entity Framework in an ASP.NET MVC Application (6 of 10)
- Handling Concurrency with the Entity Framework in an ASP.NET MVC Application (7 of 10)
- Implementing Inheritance with the Entity Framework in an ASP.NET MVC Application (8 of 10)
- Implementing the Repository and Unit of Work Patterns in an ASP.NET MVC Application (9 of 10)
- Advanced Entity Framework Scenarios for an MVC Web Application (10 of 10)
Tuesday, December 20, 2011
LowProfileImageLoader and Windows Phone
Nice trick to help the Windows Phone 7 UI thread stay responsive by loading images in the background.
Link: http://blogs.msdn.com/b/delay/archive/2010/09/02/keep-a-low-profile-lowprofileimageloader-helps-the-windows-phone-7-ui-thread-stay-responsive-by-loading-images-in-the-background.aspx
DeferredLoadListBox and Windows Phone
Nice trick to help Windows Phone 7 lists scroll smoothly and consistently.
Link: http://blogs.msdn.com/b/delay/archive/2010/09/08/never-do-today-what-you-can-put-off-till-tomorrow-deferredloadlistbox-and-stackpanel-help-windows-phone-7-lists-scroll-smoothly-and-consistently.aspx
SimpleMembership and MVC3
A tutorial on how to use SimpleMembership in MVC3. Link: http://anderly.com/2011/08/11/using-simplemembership-in-mvc3/
Free eBook: OWASP Top 10 for .NET developers
OWASP stands for Open Web Application Security Project. A must-read for the new year. Link: http://www.troyhunt.com/2011/12/free-ebook-owasp-top-10-for-net.html
Monday, December 19, 2011
Thursday, December 8, 2011
Tuesday, November 15, 2011
Friday, November 11, 2011
Friday, October 28, 2011
My first iPhone/iPad app 'Nghe Si' is in the App Store
Nghe Si is an iOS/iPhone/iPad app enabling users to follow their favorite Vietnamese celebrities' latest updates including posts, photos, and videos.
Check it out: http://itunes.apple.com/us/app/nghe-si/id473961965?mt=8
Check it out: http://itunes.apple.com/us/app/nghe-si/id473961965?mt=8
Android MainHelloButton App
LinearLayout
Orientation horizontal
LinearLayout
layout_height wrap_content
layout_width fill_parent
orientation vertical
layout_gravity center
id blank
id @+id/myTextView
text @string/message_start
textColor @color/text_color
layout_margin 20dp
layout_height wrap_content
layout_width wrap_parent
layout_gravity center
src\MainHelloButton.java
import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import android.util.Log;
import android.view.View;
public class MainHelloButton extends Activity{
private int mPressCount;
private static final String TAG = "MainHelloButton";
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final Button myButton = (Button) findViewById(R.id.my_button);
final TextView myTextView = (TextView) findViewById(R.id.my_text_view);
myButton.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
mPressCount++;
Resources res = getResources();
string msg = res.getString(R.string.message_format, mPressCount);
myTextView.setText(msg);
Log.d(TAG, "Log a button click press = " + mPressCount);
}
});
}
}
Change app icon in AndroidManifest.xml file
Log.d ~ debug
Log.wtf ~ what a terrible failure
Log.f ~ failure
Window -> Show View -> Other -> Android -> LogCat
Orientation horizontal
LinearLayout
layout_height wrap_content
layout_width fill_parent
orientation vertical
layout_gravity center
id blank
id @+id/myTextView
text @string/message_start
textColor @color/text_color
layout_margin 20dp
layout_height wrap_content
layout_width wrap_parent
layout_gravity center
src\MainHelloButton.java
import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import android.util.Log;
import android.view.View;
public class MainHelloButton extends Activity{
private int mPressCount;
private static final String TAG = "MainHelloButton";
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final Button myButton = (Button) findViewById(R.id.my_button);
final TextView myTextView = (TextView) findViewById(R.id.my_text_view);
myButton.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
mPressCount++;
Resources res = getResources();
string msg = res.getString(R.string.message_format, mPressCount);
myTextView.setText(msg);
Log.d(TAG, "Log a button click press = " + mPressCount);
}
});
}
}
Change app icon in AndroidManifest.xml file
Log.d ~ debug
Log.wtf ~ what a terrible failure
Log.f ~ failure
Window -> Show View -> Other -> Android -> LogCat
Tuesday, October 25, 2011
Free Javascript and CSS E-books
Just for answering a few questions from SitePoint. Good stuff.
http://www.sitepoint.com/launch/2e46ac
http://www.sitepoint.com/launch/2e46ac
Monday, October 24, 2011
Thursday, October 20, 2011
ios AdMob
// Create a view of the standard size at the bottom of the screen.
GADRequest *request = [GADRequest request];
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
bannerView_ = [[GADBannerView alloc]
initWithFrame:CGRectMake(20.0,
self.view.frame.size.height -
GAD_SIZE_728x90.height,
GAD_SIZE_728x90.width,
GAD_SIZE_728x90.height)];
}
else{
bannerView_ = [[GADBannerView alloc]
initWithFrame:CGRectMake(0.0,
self.view.frame.size.height -
GAD_SIZE_320x50.height,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
}
// Specify the ad's "unit identifier." This is your AdMob Publisher ID.
bannerView_.adUnitID = @"ADMOBID";
// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
bannerView_.rootViewController = self;
[self.view addSubview:bannerView_];
[self.view bringSubviewToFront:bannerView_];
// Initiate a generic request to load it with an ad.
[bannerView_ loadRequest:request];
GADRequest *request = [GADRequest request];
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
bannerView_ = [[GADBannerView alloc]
initWithFrame:CGRectMake(20.0,
self.view.frame.size.height -
GAD_SIZE_728x90.height,
GAD_SIZE_728x90.width,
GAD_SIZE_728x90.height)];
}
else{
bannerView_ = [[GADBannerView alloc]
initWithFrame:CGRectMake(0.0,
self.view.frame.size.height -
GAD_SIZE_320x50.height,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];
}
// Specify the ad's "unit identifier." This is your AdMob Publisher ID.
bannerView_.adUnitID = @"ADMOBID";
// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
bannerView_.rootViewController = self;
[self.view addSubview:bannerView_];
[self.view bringSubviewToFront:bannerView_];
// Initiate a generic request to load it with an ad.
[bannerView_ loadRequest:request];
Subscribe to:
Posts (Atom)



