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.






Monday, January 9, 2012

MSDN Webcast: BenkoTips Live and on Demand: Cloud + Mobile Game – Build Rock Paper Azure on Windows Phone (Level 100)

Link
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.

Windows Azure Toolkit for Social Games

Open Source Project hosted on CodePlex. Good resource for writing games hosted in the cloud.


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

6289656502_9e7ac8cfe6.jpg

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

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

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];