?php the_time('F, Y');?>

Formatting Strings In C# - Numbers With Commas

Friday, September 7th, 2007

To display number with commas, so it would look like: 1,200,000 instead of 1200000 you can use String.Format() method. For Example: int number = 1200000; Response.Write(String.Format("{0:#,0}",number));

HP Blackbird Will Be Available On September 15!

Thursday, September 6th, 2007

Rethinking PC Design The HP Blackbird 002 PC was designed with two goals in mind: to bring innovation back to the gaming PC by delivering extreme customer-centric innovations, and to completely reinvent the look and feel of the performance PC. Blackbird’s design draws inspiration from the bleeding-edge gaming hardware pioneered by ...

How To Connect From SQL Server Database To Another SQL Server Database

Thursday, September 6th, 2007

In order to do this, you will have to link the second server to your current server. You can do this by using linked servers option in enterprise manager or by using the stored procedure called sp_addlinkedserver. Then in your query you can use tables of the remote server by qualifying ...

iPhone Unlocked

Wednesday, September 5th, 2007

Just a very short note about unlocking iPhone. There was a lot of rumors that iPhone is unlocked.... but please be very, very careful, because a lot of people may state that they are selling unlocked iPhones, but in in fact they are just trying to get your money.. BE ...

iPhone Price Drop! 8GB is now $399

Wednesday, September 5th, 2007

The 8GB iPhone is now down to $399. Apple says, that's the model everyone wants, so they stop selliong 4GB model and the 8GB drops to this lower price. Apologies to anyone who just bought their iPhone. If you were at the event now, you'd get to listen to KT Tunstall ...

Hot To Convert String Encoding For Database Use?

Tuesday, September 4th, 2007

Sometimes when you try to input text into database from your C# applications, some of the characters don't show up or show up differently. For Example: apostrophe(') is very often replaced by question mark(?). The same thing happens when you try inserting chinese or japanese characters into database. The reason of ...

How To Remove “Bad” Html Tags From Text Using C#

Tuesday, September 4th, 2007

The following method removes unwanted html tags from text. It is very useful for removing malicious code from form inputs. // RemoveHTMLTags method removes *most* malicious code leaving allowed // HTML in placet public static string removeHTMLTags(string input) { string output = ""; // break the comments ...

How To Get IP Address From The Host Name

Monday, September 3rd, 2007

Use the following method to get IP address of the hostname: using System.Net; public string GetIPAddress(string sHostName) { IPHostEntry ipEntry = Dns.GetHostByName(sHostName); IPAddress [] addr = ipEntry.AddressList; string sIPAddress = addr[0].ToString(); return sIPAddress; }