Plex chromecast error

Plex chromecast error

Plex chromecast error

Advertisements

VS.NET 2013 crash on building a WIX project

I was having an issue where building my WIX projects caused Visual Studio to crash. I opened up the Visual Studio activity log located at %APPDATA%\Microsoft\VisualStudio\11.0\ActivityLog.xml

Saw the following error –

System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Debugger.Parallel.UI.ThreadMarkerGenerator.LocationMatchesTagger(DocumentContext location, MarkerTagger tagger) at Microsoft.VisualStudio.Debugger.Parallel.UI.ThreadMarkerGenerator.<>c__DisplayClass1.<GetMarkersForTagger>b__0(ThreadMarker marker) at System.Linq.Enumerable.WhereListIterator`1.MoveNext() at Microsoft.VisualStudio.Debugger.Parallel.Extension.MarkerTagger.<GenerateTagList>d__a.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) at Microsoft.VisualStudio.Debugger.Parallel.Extension.MarkerTagger..ctor(ITextBuffer buffer, ITextDocument document) at Microsoft.VisualStudio.Debugger.Parallel.Extension.MarkerTaggerProvider.CreateTagger[T](ITextBuffer buffer) at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)

It helpfully also said that the source of the error was ‘Editor or Editor Extension’. That was good, because the stack trace wasn’t very revealing.

Luckily, I don’t have a ton of extensions and the culprit turned out to be the Code Digger extension.

Googling/ binging didn’t help very much, although apparently there is a known cause that causes the same crash, more details at http://channel9.msdn.com/Forums/Feedback/Having-both-Wix-and-Visual-Studio-Achievement-causes-crash

Stoker (2012) – review

stoker_ver5

About two thirds into the movie, 18 year old India stabs a boy through his hand. The boy routinely picked up on her and was being particularly rude about her mom and uncle that day. Another boy from the school stands up for her. Later that night she goes to the bar where the nice one hung out, flirts with him, eggs him on, but instead of romance the night turns out quite horribly wrong. Instead of finding the episode disturbing she finds herself deeply aroused.

Stoker is that kind of movie, India is that kind of girl.

However, nothing happens out of the blue, you can’t complain that you could not see anything coming, but when it does arrive it jolts you all the same.

Stoker starts at the funeral of India’s dad, to whom she was very close, and we catch the first glimpse of the charming uncle, Charlie, who no one seems to have heard of or seen before. In the same way that we, the audience,  know that there is something evil about the ancient book in the cellar, we immediately see that there is something unhinged about Charlie. He smiles a lot, the smile not spreading beyond the lips. Both the mother, Evelyn (played with ‘The Others’ like instability and deliriousness by Nicole Kidman)  and daughter are drawn towards him,  the mother quite willingly and the daughter helplessly.

The word ‘atmospheric’ has been used rather generously in the past but if there was any movie that justifies the use of that word, this is it. It brooding, full of clever cinematography, unhurried yet gripping. There are images and scenes that stay beyond the movie, the crimson tinted white flowers, Charlie and India playing the piano in tandem, the locks of hair turn into blades of grass.

It is a delicious movie, unencumbered by any convention and directed by Park Chan-wook, the Korean directed of the revenge trilogy, the most famous of which was ‘OldBoy’
The movie is also about the nature of evil, and that age old cinematic question of whether it is ingrained and hence inexplicable or whether circumstances play a part.

Posted using Tinydesk blog app

Reset toolbox visual studio

You can reset all the items in visual studio toolbox, by right clicking and ‘Reset Toolbox’.

Sometimes that doesn’t quite work, especially if the toolbox keeps crashing or is corrupted and shows extraneous items. When a more brute force approach is called for, delete all *.tbd files from

%AppData%\Local\Microsoft\VisualStudio\<version>\

CPU not compatible – Windows 8. Enabling the non-executable (NX/XD) flag.

So you have decided to try out a release preview of Windows 8! But on install it throws up an error stating –
“Your PC’s CPU isn’t compatible with Windows 8”
This usually means that the NX (Non-eXecutable) bit is not set.

Here is how you can go about fixing it.

Step I. Check if your CPU supports the Non-eXecutable flag.

Download and run coreinfo.exe

Running coreinfo will show you information on your PC’s cpu. Check here for an entry NX or XD flag. If present, your cpu does support NX flag. Yippie!!!.

Step II. Try enabling the NX/ XD flag using BIOS

  1. Restart your computer and go to the BIOS settings.
  2. Open the Security tab.
  3. Check for the NX or RX flag and enable it.

Step III. To enable the NX/ XD flag (using Windows settings – Win 7/ Vista)
If there is no option to enable the offending flag using your BIOS settings, you can try and from your existing Win 7 or Vista (provided that’s present on the computer you are trying to install Win 8 on). Here’s how –

Open up the ‘Performance Options’ window by

  1. Right Click ‘My Computer’
  2. Go to Properties, this brings up the Control Panel\System and Security\System window.
  3. Select ‘Advanced System Settings’, this brings up the ‘System Properties’ window
  4. Go  to the ‘Advanced’ tab. Click the ‘Settings’ button on the Performance panel, this brings up the ‘Performance Options’ window.
  5. Go to the ‘Data Execution Prevention’ tab.
  6. Select the option to ‘Turn on DEP for all programs’

Setting the NX bit in Win 7/ Vista

Restart your PC for the settings to take effect.

 

 

 

Drop a sql server database by killing all associated processes

 

To drop a sql server database using a script, it is required that there be no open sql processes referencing the database else you get the error

Drop failed for Database  northwind.  (Microsoft.SqlServer.Smo)

Cannot drop database “northwind” because it is currently in use. (Microsoft SQL Server, Error: 3702)

In order to avoid this error you can use the following script that detects and kills all processes associated with the database

 

go back to where we came from – pushd popd

For those few who still write dos batch file, a couple of invaluable commands are pushd and popd. Many a time, we need to change the folder within a script and then go back to the previous folder. Pushd and Popd enable you to do just that. For. e.g. say you started your command shell using the ‘cmd’ command line, it opens up in the default location.  Now instead of changing directories using the ‘cd’ command, you change them using ‘pushd’. This causes the folder to be pushed on to the folder history stack. You can then quickly go to top folder in the stack using ‘popd’. The following screenshot illustrates this

1

Another slick feature of ‘pushd’ is the ability to temporarily map a network folder to a local drive. A temporary drive letter is allocated to the network folder. This drive letter is then deleted when the corresponding ‘pop’ is done.

2