iSparc Blog iSparc Blog

Monday, August 27, 2012

View users connected to a share in Windows 8

The easiest way to see what users are connected to share on a particular machine is to

  1. open a command prompt window
  2. type “fsmgmt.msc”
  3. hit Enter

You will then be presented with the Shared Folders window (below)

screenCaptures_2012-08-27_21-33-15

You can now toggle between the different views “Shares”, “Sessions” and “Open Files” to see who is doing what?

Cheers!

Saturday, August 25, 2012

Upgrading to Windows 8 RTM Evaluation

Windows Settings

image

Drivers

  1. Intel Chipset Update
  2. Check for any missing drivers
  3. AMD Catalyst Software

Applications

  1. Visual Studio 2010
  2. Sql Server 2012
  3. AVG Anti Virus
  4. Google Chromre
  5. Windows Live 2012
  6. MSI Supercharger (msi website)
  7. Acronis True Image 2012
  8. WinMerge
  9. Visual SVN
  10. Tortoise SVN
  11. Resharper
  12. SqlComplete
  13. Google Drive
  14. Revaluate Twitter Clients
  15. Try Fence and bins

Sunday, August 19, 2012

Connect to Ubuntu 12.04 (Precise Pangolin) via Windows Remote Desktop

Want to use windows remote desktop to connect to an Ubuntu/Linux machine.

All you need to do is install the xrdp package, then open Remote Desktop Connection from Windows.

Step 1:

Install xRDP from terminal in Ubuntu.

sudo apt-get install xrdp


Step 2:



Open Windows Remote Desktop Connection and enter IP address of Ubuntu machine.



Step 3:



Enter login details of Ubuntu hit enter and your done.

Wednesday, June 20, 2012

Sql Server Setup – Restart computer Failed

How many times have you tried installing Sql Server only to get a fail message stating that your machine needs to reboot.

Click to see full size

This is usually due to some file operation required and can be resolved easily by removing a key from the registry without the need for rebooting. (Note: Do this at your own risk)

1) Run “regedit” from from the run menu (Windows Key + R)

2) Navigate to the following path in regedit

Click to see full Size

3) Find the key named “PendingFileRenameOperations” and Delete

4) Hit Re-run and you should be onto the next step of installation.

Sunday, June 17, 2012

Simple Regular Expressions in Javascript

Need to remove everything except alphabetic/letters in javascript?

Here is a simple example of using javascript to replace/remove characters

Step 1: Create a sample string

var a = "This is a test of the JavaScript RegExp objectZ"

Step 2: Use a regular expression to remove characters that don’t match the characters you want

a.replace(/[^a-zA-Z]/g, '')
"ThisisatestoftheJavaScriptRegExpobjectZ"

For more hints and examples in using Regular Expressions

Visit JavaScript RegExp Example- Online Regular Expression Tester

Pretty powerful and awesome one you learn how.

Sunday, June 19, 2011

How to fix Database cannot be opened because it is version 661

I recently reinstalled Windows and went to load a project within Visual Studio and got the (YSOD as seen below) error that the database could not be opened  because it is version 661 And that the server supports version 655 and earlier.

Basically the issue is that the version of SqlServer Express I had on my new machine was less than that on my old in which I was developing an application in.

So what to do?

Simple !! Update the current version of SQL Server Express on my machine to a newer version.

 Click to see Full Size

Checklist to remedy:

1) Check the current version of SQL Server installed on your machine.

2) Download and install the latest version of SQL Server Express from http://www.microsoft.com/sqlserver

3) Install and voila! All is working.

Sunday, May 2, 2010

Integrating WinMerge With Visual Studio 2012 / TortoiseSVN / VisualSVN

WinMerge is a great open source utility that can be used for source control code merge and code comparison within Visual Studio 2012.

You can download WinMerge from http://winmerge.org/

Download the installer and install.

Now in order to use WinMerge as your default tool for code difference and code merge you simply need to adjust Tortoise SVN settings.

image

Firstly in Visual Studio 2010 go to “Tools –> Options”

Navigate to VisualSVN and select “Tortoise SVN Settings” as shown above.

image

Under “External Programs”, select “Diff Viewer” and set the Diff Viewer settings as above to External and select the path to your WinMergeU.exe file in your installation directory.

Repeat the process for the Merge Tool as shown below.

image

WinMerge is now your default comparsion and merge tool within Visual Studio for Source Control operations.

Wednesday, April 15, 2009

Using Windows Live Writer to Blog to the world one post at a time

What do you say when you are testing a blogging platform?
1) Try it out and stop complaining..
2) Keep looking around.
3) For the moment I am using Windows Live Writer and it seems to work well.
These are the features i’m looking to use.
a) SEO. Ability to add metatages and content tags so that
b) CHeck out the rest of the windows live writer plugins.
Ability to add some code..
namespace pluralsightCSharp
{
    class Program
    {
        static void Main(string[] args)
        {
            var gameToRate = new NrlGameRater();
            gameToRate.GamePerformanceRating();
            Console.WriteLine("{0} kicks were made during the game.", gameToRate.);
            Console.WriteLine(gameToRate.SetCompletionRate());
        }
    }
}

namespace pluralsightCSharp
{
    public interface IGameRater
    {
        // General Statistics we want to obtain before performing
        // all available on http://live.nrlstats.com/matches/nrl/match12960.html

        // Home Team

        string HT_Name { get; set; }                    // This can possibly change to Name
        int HT_PointsScored { get; set; }               // Score
        int HT_Tries { get; set; }                      // Tries
        int HT_Conversions { get; set; }                // Conversions
        int HT_PenaltyGoals { get; set; }               // Penalty Goals
        int HT_FieldGoals { get; set; }                 // Field Goals
        int HT_SinBins { get; set; }                    // Sin Bins
        int HT_SendOffs { get; set; }                   // Send Offs
        int HT_Penalties { get; set; }                  // Penalties
        int HT_Scrums { get; set; }                     // Scrums
        int HT_SetCompletions { get; set; }             // Completions
        int HT_Sets { get; set; }                       // Sets
        int HT_AllRuns { get; set; }                    // All Runs (m)
        int HT_AllRunsMetresGained { get; set; }        // All Runs Metres Gained (m)
        int HT_LineBreaks { get; set; }                 // Line Breaks
        int HT_Tackles { get; set; }                    // Tackles
        int HT_MissedTackles { get; set; }              // Missed Tackles
        int HT_Offloads { get; set; }                   // Offloads
        int HT_Errors { get; set; }                     // Errors
    }
}

Some CSS
html { background-color: #e2e2e2; margin: 0; padding: 0; }
body { background-color: #fff; border-top: solid 10px #000; color: #333; font-size: .85em; font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif; margin: 0; padding: 0; }
a { color: #333; outline: none; padding-left: 3px; padding-right: 3px; text-decoration: underline; }
a:link, a:visited,
a:active, a:hover { color: #333; }
a:hover { background-color: #c7d1d6; }
header, footer, hgroup,
nav, section { display: block; }
mark { background-color: #a6dbed; padding-left: 5px; padding-right: 5px; }
.float-left { float: left; }
.float-right { float: right; }
.clear-fix:after { content: "."; clear: both; display: block; height: 0; visibility: hidden; }
h1, h2, h3,h4, h5, h6 { color: #000; margin-bottom: 0; padding-bottom: 0; }
h1 { font-size: 2em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.2em; }
h4 { font-size: 1.1em; }
h5, h6 { font-size: 1em; }


/* main layout
----------------------------------------------------------*/
.content-wrapper { margin: 0 auto; max-width: 960px; }
#body { background-color: #efeeef; clear: both; padding-bottom: 35px; }
.main-content { background: url("../Images/accent.png") no-repeat; padding-left: 10px; padding-top: 30px; }
.featured + .main-content { background: url("../Images/heroAccent.png") no-repeat; }
footer { clear: both; background-color: #e2e2e2; font-size: .8em; height: 100px; }