?php the_time('F, Y');?>
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));
Posted in C# | No Comments »
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 ...
Posted in Computers, Hardware | No Comments »
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 ...
Posted in Databases, Ms Sql Server | No Comments »
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 ...
Posted in Uncategorized | No Comments »
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 ...
Posted in ipod | No Comments »
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 ...
Posted in Asp.Net, C#, Databases | 2 Comments »
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 ...
Posted in Asp.Net, C#, html | No Comments »
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;
}
Posted in Asp.Net, C# | 1 Comment »