Rename Via FTP

public static void FtpRename(string source, string destination, string userName, string password) {
    FtpWebRequest request = (FtpWebRequest)WebRequest.Create(source);
    request.Method = WebRequestMethods.Ftp.Rename;
    request.Credentials = new NetworkCredential(userName, password);
    request.RenameTo = destination; // "folder2/file.txt";
    request.GetResponse().Close();
}

 

How to view index words and count of full text catalog

SELECT * FROM sys.dm_fts_index_keywords(db_id(‘databasename’), object_id(‘tablename’))

SELECT * FROM sys.dm_fts_index_keywords_by_document(db_id(‘AdventureWorks2012’), object_id(‘Production.Product’))

SELECT * FROM sys.dm_fts_index_keywords_by_property(db_id(‘AdventureWorks2012’), object_id(‘Production.Product’))

SELECT * FROM sys.dm_fts_parser((db_id(‘AdventureWorks2012’), object_id(‘Production.Product’))

The Simplest way to Parse JSON Data in C# using JSON.Net

SimpleJSONNetExample

using System;
using Newtonsoft.Json.Linq;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string json = "{\"employees\": [{ \"firstName\":\"John\" , \"lastName\":\"Doe\" },{ \"firstName\":\"Anna\" , \"lastName\":\"Smith\" }]}";

            JObject o = JObject.Parse(json);
            Console.WriteLine(o["employees"][0]);
            Console.WriteLine(o["employees"][1]["firstName"]);
            Console.WriteLine(o["employees"][1]["lastName"]);
            Console.ReadLine();
        }
    }
}

I was looking for a simple way to parse JSON data using C#, and was led to this example from MSDN: http://msdn.microsoft.com/en-us/library/bb412179(v=vs.110).aspx on how to Serialize and Deserialize JSON Data.  DataContracts, DataMembers, on and on, seemed a bit much for just trying to extract some data from a string.

JSON.net is a library from James Newton-King.  By far the easiest .NET JSON Parser available and according to James, it’s also the fastest.

Resources:
JSON.NET on CodePlex
http://json.codeplex.com/

An Introduction to JavaScript Object Notation (JSON) in JavaScript and .NET
http://msdn.microsoft.com/en-us/library/bb299886.aspx

 

 

Visual Studio 2013 Web Site Project Template File Definition

Script Manager: http://blogs.msdn.com/b/webdev/archive/2012/09/21/asp-net-4-5-scriptmanager-improvements-in-webforms.aspx

Controlers & Routing: http://www.asp.net/mvc/overview/controllers-and-routing

Owin & Katana: http://www.asp.net/aspnet/overview/owin-and-katana

File -> New -> Website

Templates -> Visual Basic/C# -> ASP.NET Web Forms Site

Size:

vs.

File -> New -> Project

Templates -> Visual Basic/C# -> ASP.NET Web Forms Site

vs.

File -> New -> Project -> MVC 4 Web Application
In IE9: File -> Save as: 883 KB, 900 KB on Disk, 9 Files,
Request: 20 Get and Post Request
In IE9: File -> Save as: 1.00 MB, 1.01 MB on Disk, 9 Files,
Request: 18 Get and Post Request

 

The VisualStudioWebsiteTemplate Account

File new ->

Skills?

Have an intense passion for quality software engineering.
Be comfortable developing software in a variety of languages.
See themselves as a facilitator in rapid software development and continuous deployment.
Be able to see through foggy situations and layout comprehensive engineering plans.
Drive and influence a culture of test driven development
See themselves as part of a team that delivers products and ensures business success.
Is comfortable blurring the boundaries between jobs to ensure success.
Prefer to communicate actively rather than passively.
Be able to document ideas and concepts to facilitate communication (both written and graphically).
Use creative thinking and problem solving skill to tackle challenges problems.
Resist pressure to over commit and spread development thin / compromise quality.
Be comfortable managing conflicting priorities and broad business demands.
Be engaged in the software development community (blogs, conferences, etc.).