Search

Recent Posts

You're Still Here? 352 Media Group's Blog Moved! »

Attention Craiglist Spammers and Scammers: Stealing takes Creativity! »

Webinar - Web site Usability: Turning Visitors Into Customers with Design »

Web Design Directory Lets Users Rank Companies By Location »

Webinars, Panels, & Speeches, Oh My! »

Interactive Media News - July 13, 2009 »

Tips for Great TITLE Tags to Maximize SEO results »

Facebook Age Demographics »

What's New @ 352 for July, 2009 »

Marketing Tip of the Day - If You See the Google Streetview Car, Pass It! »

In Depth Twitter Analysis »

The Best Time and Day to Send your E-Newsletter »

Interactive Media News - July 6, 2009 »

352 Media Group - Life on the Farm »

Tips for the Comment Spam Crowd - At Least Be Creative! »

Using Your Blog To Drive Traffic To Your Corporate Site »

Interactive Media News - June 29, 2009 »

CruiseNow.com leading the charge in online cruise travel companies. »

Using Facebook to Market a Business »

Interactive Media News - June 22, 2009 »

Interactive Media Happenings - June 15, 2009 »

Video From Field Day 2009 At 352 Media Group! »

Archived Webinar: Making Your Site Appeal To Both Customers & Search Engines »

Hulu Desktop »

Webinar: Making Your Web Site Appeal To Both Customers & Search Engines »

352 Media Group - Great Web Design, Even Better Breakdancing! »

Online Petition Site - LobbyingForum Launched by 352 Media Group »

Top 5 Reasons Entrepreneurs Will Succeed In This Recession »

Social Media's Growth Continues to Explode »

Southeastern Mills New Website is Cookin! »

352 Media launches a high profile Virtual World for Kids - CampPete.com! »

The Truth About: Project Managers - Web Dev Myths Debunked »

The Truth About: Designers - Web Dev Myths Debunked »

Archived Webinar Now Available - Why Web 2.0 Is Important To You! »

10 Tips For Effective Blogging »

What's New @ 352 for April, 2009 »

Webinar - Why Web 2.0 is Important, and Why It's Like a Big Bowl of Ice Cream! »

The Truth About: Programmers - Web Dev Myths Debunked »

Twitter grows 1,382% year over year »

Social Media & Blogs ranks above personal e-mail »

Web Designer Magazine Features 352 Media in "Hot 100" List »

Lunch A2 Marketing Google Tools Presentation Apr 1st 09 - Slides and Transcript »

Microsoft's MIX09 Web Design Conference »

352 Media Group Launches Gremed Inc. Site »

BRAGfolio.com Launches - The Right Idea at Just The Right Time »

Five Inexpensive Ways to Promote Your Web Site »

GRE and SAT Vocabulary Training Site Demonstrates the Power of MVC and LINQ »

What is the Critical Mass of Twitter Followers and Tweet Frequency? »

The Truth About: Salespeople - Web Development Myths Debunked »

Web Site Designs Incorporating Identicons »

Featured Web Programming Contributors

ccook
.NET Prog
PeterB
.NET Prog.
PeterV
VP, Marketing
DanV
Tech Dir.

Tips & Tricks
PeterB

VS 2008 - Apply Cut or Copy Commands to blank lines when there is no selection

Posted 10/21/2008 by PeterB, .NET Prog.

 

Have you ever copied some code in order to place it on a new line, and then when you tried to paste it you hit CTRL-C instead of CTRL-V?  If you have, then you probably have dealt with the frustration of losing what was in your clipboard.  For most people this meant finding that code to once again copy it and then meticulously stare at the keyboard making sure that they hit the right key.

Well, there is one way to deal with this and that is using CTRL-SHIFT-V.  This shortcut key will allow you to cycle through your clipboard and get back that code you just lost.  If you hold CTRL-SHIFT while hitting 'V' you will begin to cycle through each element in your clipboard, probably starting with the new empty line you copied and then followed by the code you had intended to paste.  This is actually a very handy shortcut key that I also find useful outside of this scenario.

For those of you who would rather not deal with ever losing your clipboard to a blank line, well there is an option for you too.  If you go to Tools > Options > Text Editor > All Language > General you can uncheck "Apply Cut or Copy Commands to blank lines when there is no selection".  From here, you will no longer have to deal with the unfortunate mistype of copying a blank line.

I recently came across this and many other great tips at Sara Ford's Blog.  Within it you can find Visual Studio 2008 tips, which she publishes daily.  I would recommend to anyone using Visual Studio to definitely add this to their list of RSS Feeds if they have not done so already.

Share:


ccook

RockScroll - A Programmers Best Friend

Posted 8/22/2008 by ccook, .NET Prog

 

RockScroll has been introduced on Scott Hanselfman’s blog.  If you work with Visual Studio, this is a must.  I have found it to be one of my most used features of Visual Studio.  It keeps the ‘visual’ interpretation of even the largest of code files intact.  Check it out:

http://www.hanselman.com/blog/IntroducingRockScroll.aspx

Share:


ccook

Alt + Visual Studio

Posted 3/22/2008 by ccook, .NET Prog

 

You learn something new every day, but it’s not every day you learn something really useful. Alt in Visual Studio has to be one of the most useful text editing shortcuts I have come across since copy and paste (kudos to Mr. Evol). Alt allows you to select vertical regions of text, the usefulness of which I demonstrate below.
Say you would like to add the namespace using statements to a string builder within a new class, say Class1.

There are three namespaces so you can quickly create the three append lines.

Now one could copy each namespace individually, or, just select them all with Alt.


Copy that block and paste it into the first append to get

This demo’s code is of course useless, but the technique is invaluable.

Share:


DanV

Disabling Browser Caching In C# and ASP.NET

Posted 3/12/2008 by DanV, Tech Dir.

 

The majority of advice on how to disable browser caching seems to revolve around how to make it work in IE.  However, in Firefox the fixes don't always seem to work.  Below are some notes and sample code on how to make it work for both browsers:

The SetNoStore() seems to be a necessity for FireFox
The HttpCacheability.NoCache has an issue in IE (not sure about FireFox) when you are on a secure (https) page and are trying to send a file by setting the headers. It causes the file download to not work properly.
SetValidUntilExpires(), SetRevalidation() – unsure if this is a requirement at this time. Was added because it was still giving problems in FireFox before SetNoStore() was found.
SetExpires() I tried to set this to 5 days in the past and I still got the 2 second window.


public static void DisablePageCaching()
{

//Used for disabling page caching
HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
HttpContext.Current.Response.Cache.SetValidUntilExpires(false);
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoStore();

}

Share:


ccook

Trivial, but obscure windows tips

Posted 2/22/2008 by ccook, .NET Prog

 

You can take a screenshot of the current window with alt+print screen, instead of the whole desktop as is done with print screen.



You can close the current window by double clicking the application icon in the top left corner of the window.



You can bring a window to the mouse by select move from the applications context menu on the start toolbar and pressing an arrow key.  The window will now follow the mouse.  This is particularly handing with remote desktop.

Windows key + r brings up the run as window, the application name can be typed and with enter run.  This removes the need for a mouse when starting applications. For example internet explorer can be start with windows key + r then ‘iexplore’.

The computer can be locked with windows key + ‘L’, handy for leaving the computer quickly.

Windows explorer can be opened with windows key  + ‘e’

System information can be opened with windows key + pause break

Share:


PeterV

Best Webisode of "This Week On Channel9" Ever!

Posted 2/18/2008 by PeterV, VP, Marketing

 

OK, so there have only been 3 episodes, but this is still the best one ever.  Could be because we get a shout out right off the bat.  Could be because the band I was once in is the music on the outro (yes, I was cool once).  Or, it could be the hilarious impressions at the end by Scott Hanselman of http://www.hanselman.com/blog/ during the closing credits.  

So without further adieu, here it is:

 

Share:


PeterV

This Week on Channel 9 Video

Posted 2/15/2008 by PeterV, VP, Marketing

 

Did they take my idea for the name of the show?  No.  Am I still going to post the show?  sure.  Is it because we designed the logo for the show?  Most likely. 

But seriously, this is a pretty cool show if you're in to stuff related to the developer community.  It puts a lighthearted spin on some of the latest news, blogs, mash-ups, etc.  They never explain why that guy in the middle is so happy though...

Share:


PeterV

Entertaining and Informative Video on Microsoft's Channel9

Posted 2/3/2008 by PeterV, VP, Marketing

 

My friend Brian, who is a technical evangelist at Microsoft (was Tammy Faye a nontechnical evangelist?), passed along this great video he and his cohort, Dan Fernandez, created for MSDN's Channel 9. 

They're looking for a name for the show.  My suggestion?  "The Bran Fernkeller Program."  Just flows well.  And it pays tribute to the Bennifers and Brangelinas of the world.  They obviously appreciate entertainment news, judging from their suggestion for a "Britney Spears Sanity Watch Widget" during the show.  I'd add that to my blog.  More name ideas here.

Couple of notes before you watch: don't expect great superbowl predictions.  The guys' predictions would've been better if they knew who was playing.  Also, don't poke Dan's wife.  On facebook that is.  Dan, don't feel bad...I joined facebook in the first place to keep and eye on who was poking my wife.  And now she's pregnant.

Anyhow, here is the latest on  Channel9 videos, samples, bloggers, news, and much more.  Though how they missed our Silverlight Candidate Filter is a wonder to me.

Share:


ccook

Notepad2

Posted 12/10/2007 by ccook, .NET Prog

 

While watching a tech demo by Microsoft I caught the developer using Notepad2.  This caught my interest so I looked into it and came upon Notepad2 by flo’s freeware, http://www.flos-freeware.ch/notepad2.html .  A significant feature to Notepad2 is how it will detect the schema of a file and add syntax based markup automatically.  Well that’s neat and all, but if only it replaced Notepad…  Replacing Notepad with Notepad2 turns out to be rather simple, http://blogs.msdn.com/omars/archive/2004/04/30/124093.aspx.  Now Notepad2 will open wherever Notepad would have opened before.  One other handy trick is to set the default schema type to HTML.  This way when you view source on pages in Internet Explorer you will have markup that will make reading the source easy to on the eye.


http://www.flos-freeware.ch/notepad2.html

Share:


ccook

Running ASP.NET v1.1 in IIS 7

Posted 9/25/2007 by ccook, .NET Prog

 

Perhaps the most compelling reason to run Vista as a web developer is to use IIS 7.  IIS 7 ships with Vista Business and Ultimate with only one limitation, ten simultaneous processes.  With IIS 7 one can now run multiple websites with multiple bindings to multiple sub domains (FINALLY!).  

One nuance is the setup of ASP.NET v1.1, as out of the box it favors v2.0.  By default the ASP.NET 1.1 ISAPI extension is ‘Not Allowed’, simply change it to “allowed” and “HTTP Error 404.2 – Not Found” will be a distant memory.

As a reminder, to enable the filter

  1. Windows key + r
  2. Inetsrv/iis.msc
  3. Open ISAPI and CGI Restrictions
  4. Change the value

Also, don’t forget the Application Pool specifies the version of the framework to run.

Enjoy!

Share:


Web Design Copyright ©2007 352 Media Group®.
The opinions expressed here do not necessarily reflect those of 352 Media Group.
All Rights Reserved.