Wednesday, November 14, 2012

Notepad++ Editor - (Regular Expressions tips)

Notepad++ Editor -  (Regular Expressions tips)

If you want to prefix some characters on START of every line opened by Notepad++.

Start of the line

If you want to suffix some characters on END of every line opened by Notepad++.

\r\n End of the Line (CRLF)

Refer to images below for more details

Note: on Replace text window - Ensure you have Regular expression radio option is selected











Saturday, November 10, 2012

Team Foundation Service is Released!

Cloud-powered source code management through Team Foundation Service.

The new url for the service is http://tfs.visualstudio.com and you can signup for free and add max 5 users to access your TFS service. Pricing will decided by Microsoft during early 2013.

- Get started quickly, with no infrastructure to manage.
- Go from “Sign up” to first project in minutes, and set up a Continuous Integration (CI) build in a few easy steps.
- Your source code and work items are stored in the cloud, making server configuration a thing of the past.
- Plan projects, collaborate with your team, and manage your code online from anywhere.
- Check-In your code directly into the cloud using Visual Studio or Eclipse. Manage work items and bugs in Internet Explorer, Chrome, or Safari.

TFS cloud Features –> http://tfs.visualstudio.com/en-us/home/features/feature-tour/

OK now lets try signup for free to the Team Foundation Service on cloud…

http://tfs.visualstudio.com/en-us/#

clip_image001[6]

Sign up process steps

https://tfs.app.visualstudio.com/_account/Signup

clip_image002[6]

Creating TFS account

clip_image003[7]

TFS Account created and link –> https://bptech.visualstudio.com/

Default view of TFS

clip_image004[7]

TFS Admin screen

clip_image005[6]

Creating new Team Project

clip_image006[6]

Creating new team project in progress

clip_image007[6]

Creating new team project in progress

clip_image008[6]

New Team project created successfully

clip_image009[6]

Team project default view

clip_image010[6]

Let us now try to connect to the TFS Project on cloud

Connecting to Team project created through web interface using Visual Studio 2012

Team –> Connect to Team Foundation Server

image

Provide the TFS account link for connect to the TFS cloud

clip_image001[8]

Connecting to Team project created through web interface using Visual Studio 2012

clip_image002[8]

Team Explorer connected the team project in TFS cloud

clip_image003[9]

Monday, October 8, 2012

Preview Apache™ Hadoop™-based Services for Windows Azure


In this blog post i will document the preview I did on "Apache™ Hadoop™-based Services for Windows Azure"

After my first look - I feel the following are some of best things for Admins/Developers Microsoft had made for this Hadoop offerings on Windows Azure.
1. Metro Style user experience to Create a Hadoop cluster on Windows Azure.
2. Very easy to configure and manager Hadoop cluster and nodes.
3. Job history management and Viewing the job execution history is so seamless.
4. Deploying Map/Reduce job is so simple(might be for basic job routines?)
5. Development of Map/Reduce code in your favorite JAVASCRIPT language
6. Webconsole to execute and manage the Map/Reduce jobs.
7. View Map/Reduce Job results in web console, view in GRAPH output, etc...

So much to document and explore in this new BigData approach from Microsoft....

Ok Let's get started...

You can start from https://www.hadooponazure.com/

Once you logged in using Windows Live credentials, you see the "Request a new Hadoop Cluster" screen in Home page.

Provide all required information and finally click on "Request Cluster" button link at right navigation.




Hadoop Cluster allocation in progress...



Hadoop Cluster - Allocation in progress




Hadoop Cluster - Allocation in progress

Hadoop Cluster - Allocation in progress



Hadoop Cluster - Allocation in progress



Hadoop Cluster Nodes - Allocation in progress....


Hadoop - Manage Cluster screen

Login using MSTSC Remote access to view the created Node in Hadoop cluster....



Hadoop Cluster - Map/Reduce job administration



Summary screen of particular Hadoop Cluster created just now...

Hadoop Cluster - Configure Ports 
- FTP
- ODBC Server

Default these ports are in Closed status



Hadoop Cluster - Job execution History

You can download Client Utilities for Microsoft Apache Hadoop based services that will help in querying data in Hive using ODBC driver or Excel.


Hadoop Cluster - Summary Screen (Metro-Style web interface)



Hadoop - Release Cluster




Hadoop Cluster - Release in progress...




Test Hadoop cluster created is now released...

Thanks to Microsoft again for enabling developer communities to preview the Hadoop on Windows Azure.

If you are also interested in this and need more information refer to this link 
How-To and FAQ Guide for ApacheTM HadoopTM-based Services for Windows Azure

Monday, September 17, 2012

PowerShell - Get List of files in a Folder path recursively and export to CSV file the output



In this blog post i will discuss document some PowerShell scripts that will help you
  1. Get List of files in a Folder path recursively and export to a CSV file the output with the files meta data information like ( Directory, Name, Length, CreationTime, LastWriteTime, LastAccessTime, FullName, Extension )
  2. Get Distinct COUNT of File extensions inside a folder path recursively.

Get List of files recursively and export to a CSV file with the files meta data information

Open PowerShell
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe

Get-Childitem "C:\Bharath\Files" -Recurse | where { -not $_.PSIsContainer } | Select Directory, Name, Length, CreationTime, LastWriteTime, LastAccessTime, FullName, Extension | Export-Csv "C:\Users\E317351\Desktop\FileswithSize.txt"


Get Distinct COUNT of File extensions inside a folder path recursively.

Open PowerShell
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe

Get-Childitem "C:\Bharath\Desktop\Some Folders" -Recurse | where { -not $_.PSIsContainer } | group Extension -NoElement | sort count -desc

Exclude some folder (use -exclude) parameter as below

Get-Childitem "C:\Bharath\Desktop\Some Folders" -exclude TestFolderName -Recurse | where { -not $_.PSIsContainer } | group Extension -NoElement | sort count -desc

Thursday, August 9, 2012

Creating a new Team Project using Visual Studio 2012 on TFS 2012


In this blog post i will discuss about following things.

  1. Creating a new Team Project using Visual Studio 2012 on TFS 2012 (Team Foundation Server 2012)
  2. Once installed - Explore the New Look of 
    • Team Project in TFS 2012
    • Web Access view of  Team Project in  TFS 2012
Launch Visual Studio 2012 RC and View Team Explorer


Team Explorer closer look

Click on Create a New Team Project



Enter the name of Team Project


Select the Process template that should be used to create the team project

In my case i selected Microsoft Visual Studio Scrum 2.0 template. Click Next



Type of process template that you can pick to be used for creating Team Project.
1. MS Visual Studio Scrum 2.0
2. MSF Agile Software Development 6.0
3. MSF for CMMI Process Improvement 6.0



I faced some issue with SharePoint site creation, so i picked Do not configure SharePoint site for the team project. Click Next
 


First time team project creation defaults you to Create an empty source control folder. Click Next.



Review the Team Project Settings that you have done during Team Project creation process steps. 
Click Finish.



Team Project creation process starts...



Continues....



Continues....


Team Project Created.... Successfully.... Click Close



In Team Explorer window, now you can see we are connected to the Team Foundation Server 2012 and the newly created Team Project "TFS-PROJECT-1"

Let' s see the Source Control Explorer... this is where finally Developers go for :)




Preview of Source Control Explorer 
[ Empty right now... will add more of my R&D projects as i explore more of microsoft technologies ... :) ]



Preview of Team Project Settings screen in Team Explorer window



Let's see preview of Web Access view of the newly created Team Project.




Preview of Web Access view of the newly created Team Project.




Preview of Web Access view of the newly created Team Project.



Long way to go... 
- Add new projects, CheckIn Checkout, Alerts, Automated Build, Continuous Integration setup, etc...

Thanks to Microsoft for sharing the Preview version of TFS 2012 RC freely to Developer/IT community to peek and explore... :)