How To Reset iPod Touch or iPhone

Tri Nguyen | August 30, 2013 | ADD COMMENT

Requirements

  • iPod/iPhone
  • Data cable
  • PC/MAC with iTunes installed

Procedures

  1. Turn-off your device
  2. Start iTunes
  3. Connect data cable to your PC/MAC and your device
  4. Push the "Home" button on your iPod/iPhone (which is round button at the bottom center), hold it while pressing the power button to turn off the device
  5. That will turn on the recovery mode, follow the step and you're done

Auto Process File Upload Control

Tri Nguyen | November 01, 2011 | ADD COMMENT

Generally, all ASP.NET pages have a default FORM tag with POST method and default ACTION pointing to itself. It wraps around the content inside the BODY tag. Therefore, whenever a Postback occur, it's basically post to itself. Postback happens when user click on a button on the page or when they click on the browser "Refresh" button. In order to process file upload after user selecting a file, we'll need to create a postback after user selecting a file. This can be done by adding the " onchange='form.submit();' " to the file control. Basically, this will cause the form to submit, similar to a button click. The only difference is that we'll be process file selected file upload control during Page_Load(...) rather than inside a button click event.

View Our Demo

Common DateTime Formats

Tri Nguyen | August 03, 2011 | ADD COMMENT

The following are some common Formats for DateTime object. Assuming, we have a DateTime object declared "m_date" and today is January 14, 2011.

DateTime m_date = DateTime.Today;
Response.Write(m_date.ToString("MMMM d, yyyy"));
//January 14, 2011

Response.Write(m_date.ToString("MMM. d, yyyy");
//Jan. 14, 2011

Response.Write(m_date.ToString("MM/dd/yyyy");
//01/14/2011

Response.Write(m_date.ToString("M/d/yyyy");
//1/14/2011

Response.Write(m_date.ToString("MM-dd-yyyy");
//01-14-2011

Response.Write(m_date.ToString("MM-dd-yy");
//01-14-11
Notice: when using "MM" or "dd" in the format string, it'll always output two digits month or day. Leading zero will be added if the day or month has only a single digit such as January or any day less than 10.

References

ALTER TABLE Statement

Tri Nguyen | August 01, 2011 | ADD COMMENT
ADD A COLUMN IN A TABLE
ALTER TABLE table_name
ADD column_name datatype default value
Example:
ALTER TABLE users
ADD email nvarchar(50) default N''
This example add an email column to the users table and also set its default value empty string. Setting default value is relatively important; otherwise, it'll result in error if the users table currently has existing records.
DELETE A COLUMN IN A TABLE
ALTER TABLE table_name
DROP COLUMN column_name

CHANGE THE DATATYPE OF A COLUMN IN A TABLE
ALTER TABLE table_name
ALTER COLUMN column_name datatype

Resourceful Links For Developers

Tri Nguyen | July 28, 2011 | ADD COMMENT

Developer Forums

Popular tech forums where developers come to exchange knowledge, requesting help, seeking solutions, and much more.

Social Media

Resources for development and integration of social media networks such as Facebook, Twitter, and Google.

Tutorials

These are some great sites for learning your materials. I've using these sites for the past decade and personal recommended them. They provide many interactive examples and demos, which make it much easier to new starters.