Smit Shah

We have all come across projects where we have to display the date, but not just the date, also the ordinal that goes with the date.

Example:July 31st 2012, 10:27 AM

The standard .Net library only offers a July 31 2012, 10:27 AM without the "st"

To achive this, simply create a function and use it in your code
 IMMEDIATE HIRE - FTE (Start in JULY)
 Senior Software Engineer -
 MICROSOFT (VB.NET & C#)
 Location:  Miami, Florida
 
Will be involved in the Full Life Cycle Development including interfacing with users during the analysis, design, development, testing and implementation of critical business applications supporting multiple areas of the company.
.NET UI Developer - Contract to Perm - Charlotte
 
Develop and maintain UI templates for multiple web apps, provide resolution to usability issues, and design and modify application interfaces as a front-end UI Developer in Charlotte, NC. You will be controlling a complete GUI reconstruction for internal .NET web applications and working with a progressive team in this 6-month contract to hire opportunity in the insurance industry. This is a flexible, team oriented environment. You will get to talk to cool people.
 
To be most competitive for this role you will need heavy experience with Front end technologies, ASP.NET, and Telerik Controls. 
 
Contact Alex Chernikow at (704) 719-2792 for more information.
We have all seen the new features on websites like tweeter and facebook that loads more content automatically as soon as you reach the end of the page.

If you want to add that functionality to your website, simply follow the steps in this article.

Thank you
After all that Microsoft has done to provide us with awesome software, there are still things that they miss

Like the
'__o' is not declared. It may be inaccessible due to its protection level.
Error

I've run into it enough that I just remember how to fix it by now.
Working for a large retailer in their IT department, one of the things I noticed was the quanitity of emails that were sent everday.

On average , I was sending about 50 emails a day. And they all had an average of 10 people on each emails.

If you do the math, it is about 500 emails that I was sending out on a daily basis.

Of the 10 people on the email, there were on average 2 who the email was directed to. This not only affected the performance, but also affected the company's bottom line.


I started to notice that my server was having performance issues.
Based on the traffic and the server size that I have this should not be the case.

I updated my robots.txt to avoid wasting capacity on crawlers serving markets I do not care for.
I have a table where I cache data to improve performance.
Over the years, it has ballooned to 10M+ rows.

Below is the structure
 
CREATE TABLE [dbo].[SystemCache]
  (
     [CacheId]     [UNIQUEIDENTIFIER] NOT NULL,
     [CacheKey]    [VARCHAR](900) NULL,
     [CacheText]   [TEXT] NULL,
     [TotalCount]  [INT] NULL,
     [CacheDate]   [SMALLDATETIME] NULL,
     [Url2Use]     [VARCHAR](1000) NULL,
     [CacheNumber] [BIGINT] NULL,
     [PageSize]    [TINYINT] NULL,
     CONSTRAINT [PK_SystemCache] PRIMARY KEY NONCLUSTERED ( [CacheId] ASC )WITH
     (pad_index = OFF, statistics_norecompute = OFF, ignore_dup_key = OFF,
     allow_row_locks = on, allow_page_locks = on, FILLFACTOR = 90) ON [PRIMARY]
  )
ON [PRIMARY]
TEXTIMAGE_ON [PRIMARY]

GO

ALTER TABLE [dbo].[SystemCache] ADD CONSTRAINT [PK_SystemCache] PRIMARY KEY
NONCLUSTERED ( [CacheId] ASC )WITH (pad_index = OFF, statistics_norecompute =
OFF, sort_in_tempdb = OFF, ignore_dup_key = OFF, online = OFF, allow_row_locks =
on, allow_page_locks = on, FILLFACTOR = 90) ON [PRIMARY]

GO

CREATE CLUSTERED INDEX [IX_SystemCache_CacheNumber]
  ON [dbo].[SystemCache] ( [CacheNumber] ASC )
  WITH (pad_index = OFF, statistics_norecompute = OFF, sort_in_tempdb = OFF,
ignore_dup_key = OFF, drop_existing = OFF, online = OFF, allow_row_locks = ON,
allow_page_locks = ON) ON [PRIMARY]

GO

CREATE NONCLUSTERED INDEX [IX_SystemCache_CacheKey]
  ON [dbo].[SystemCache] ( [CacheKey] ASC )
  WITH (pad_index = OFF, statistics_norecompute = OFF, sort_in_tempdb = OFF,
ignore_dup_key = OFF, drop_existing = OFF, online = OFF, allow_row_locks = ON,
allow_page_locks = ON, FILLFACTOR = 90) ON [PRIMARY]

GO

CREATE NONCLUSTERED INDEX [IX_SystemCache_CacheDate]
  ON [dbo].[SystemCache] ( [CacheDate] ASC )
  INCLUDE ( [PageSize]) WITH (pad_index = OFF, statistics_norecompute = OFF,
sort_in_tempdb = OFF, ignore_dup_key = OFF, drop_existing = OFF, online = OFF,
allow_row_locks = ON, allow_page_locks = ON, FILLFACTOR = 90) ON [PRIMARY]

GO 

An attempt to delete older data is significantly slow

DELETE FROM systemcache 
WHERE  cachedate < '7/15/2011' 
 
Any ideas suggestions?
I have been a Windows guy for years.So when the tablet trend came arround, I got myself a Acer W500 windows tablet based on a Windows7 Home Premium install by default.
As expected, when Microsoft announced that they will be offering Windows8 download for free,
I decide to upgrade my win7 tablet wth the new Win8 version.

Having used Window Phone 7 (WP7) for over 15 months (since it came out) I am very familiar with the interface and the experience.
I had recently purchased the Samsung Galaxy S II and found the software to be overly complex and needing too many tweaks to make it work. So I switched back to my WP7.

The Win8 Consumer preview has fallen short on various expectations.
Below are a few that I can think of just tinkering with it for a day.
1) It only shows one tile for email, I like the functionality in WP7 where I can have one tile per email account, so I know which account got that email.
2) When adding an email account, there is no way to change the name for the account, it sets the name as "Google" which is absolutely ridiculous.
3) Lack of apps in the appstore. If I was MSFT, I would have done what Apple did with the iPad, automatically make apps in the iPhone marketplace work in the iPad marketplace.
From: Senator John Boozman <donotreply@boozman.senate.gov>
Date: Wed, Jan 18, 2012 at 5:54 PM
Subject: Reply from Senator John Boozman
To: xxxxxxxx@gmail.com

Dear Smit,

Thank you for contacting me to express your opposition to S.968, the "Preventing Real Online Threats to Economic Creativity and Theft of Intellectual Property (PROTECT IP) Act." It is good to hear from you.

As you know, S.968 was introduced by Senator Patrick Leahy (D-VT) on May 12, 2011. This legislation seeks to change the way the Department of Justice handles perceived violations of intellectual property laws by foreign based websites dedicated to copyright infringement. Over the past few weeks, the concerns with the PROTECT IP Act in its current form have increased, and I certainly understand and share your concerns with the unintended consequences of this legislation. While the epidemic of online piracy needs to be addressed, I do not believe we should rush to pass this bill, rather we should be working to find another solution to this problem that ensures that innovation and free speech are protected. I have confidence that we can do this, but not with the PROTECT IP Act in its current form. 

Please be assured that I have removed my name as a cosponsor of S.968 and should it be brought to the floor of the U.S. Senate for a vote in its current form, I will oppose it.  

I appreciate your involvement in the legislative process and want to thank you for raising your concerns with this bill. As long as I am your U.S. Senator, I will continue to work to ensure that American jobs, ingenuity and ideas are protected.

Again, thank you for contacting me on this very important issue. Please be sure to visit our website at www.boozman.senate.govI look forward to your continued correspondence.

Sincerely,

John Boozman
U.S. Senator

1  2  3  4  
                                                                                         
This is a personal weblog. The opinions expressed here represent my own and not those of my employer. For accuracy and official reference refer to MSDN/ TechNet/ BOL /Other sites that are authorities in their field. Me or employer do not endorse any tools, applications, books, or concepts mentioned on the site. I have documented my personal experience on this site. The information on this site may not be up to date or accurate at times, if you are not sure or have a question, please contact me to verify information.