Sunday, November 13, 2016

Programming the LiftMaster 374UT with the 8550 MyQ garage opener

The instructions are confusing in the 374UT manual, and I spent about 30 minutes trying to program the remote, before I figured out exactly what needs to be done.

Here are the steps:

  1. Start with your garage door closed.
  2. Put the 374UT remote into programming mode
    1. Press the bottom button until the blue LED lights up solid
      image
  3. Press the learning button in the garage door opener
    image
    1. The learn button on the garage door opener should glow solid.
  4. Press the button on the 374UT remote that you wish to program to control the garage door open.
    1. You will see the blue LED on the remote start to flash. (Dont press the button a second time just yet – this is what the manual tells you to do and messes everything up).
    2. Instead you should see the light on the garage door flash and hear 2 clicks
      image
    3. Next, the blue LED on the 374UT remote should stop flashing (may take a few seconds before this happens). When it finishes flashing, press the button you are programming a 2nd time. Again the blue LED will start flashing. Be patient, it takes about another 30 seconds. Once the programming is complete, and the programming setup was successful, the garage door will begin to open.
    4. Press any button on 374UT button quickly. This will complete the programming.

Friday, August 05, 2016

SSMS and storing templates in a different location

In Sql Server Management Studio (SSMS), there doesnt seem to be a way to store the templates in a location other than the default (which is: %appData%\Microsoft\SQL Server Management Studio\12.0\Templates\Sql). I use this feature heavily, but everytime I get a new computer, I end up loosing them templates that I have collected over time.

I found a simple solution around this and it uses the “mklink” command.

Steps:

1. Open a command prompt and CD to: “%appData%\Microsoft\SQL Server Management Studio\12.0\Templates\Sql”

2. Run the command:

mklink /D MyTemplates C:\OneDrive\SqlTemplates

The above command creates a link from within the folder that SSMS looks for templates to a folder on c drive (I am mapping it to folder thats backed up by one-drive).

3. Restart SSMS, and voila, you should see this folder in your templates explorer.

Saturday, July 16, 2016

Opening JSON directly in IE

You need to add the following entries into the registry after which IE will directly render the JSON data instead of prompting to save the file:

Windows Registry Editor Version 5.00
;
; Tell IE to open JSON documents in the browser. 
; 25336920-03F9-11cf-8FD0-00AA00686F13 is the CLSID for the "Browse in place" .

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00

[HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json]
"CLSID"="{25336920-03F9-11cf-8FD0-00AA00686F13}"
"Encoding"=hex:08,00,00,00

Tuesday, June 14, 2016

Fiddler and vshub requests

If you debug a web-site project using Visual Studio 2015 or higher, you may see a ton of requests to the URL /vshub/ in fiddler. These requests are used by Visual Studio and the VsHub process to communicate with each other and are not actually related to your website.

So what can you do?

1. You can setup a filter to filter out the /vshub/ uris.

2. I prefer custom rule that I can turn on or off and here is what it looks like:

Edit the customRules.js file (Rules > Customize Rules).

Add the following lines to class Handler

public static RulesOption("Display VSHUB Requests")
var m_bShowVshubRequests: boolean = false;

In “OnBeforeRequest” add the following code:

static function OnBeforeRequest(oSession: Session) {
      
        if (!m_bShowVshubRequests && oSession.uriContains("/vshub/"))
        {
            oSession.Ignore(); //oSession["ui-hide"] = "true";
        }

And now by default it will never show and if you want to look at it, you can do so by enabling it at:

image

Tuesday, May 24, 2016

How to feed your baby step by step

Its hard to know how much to feed your new-born. Here is a hand out that we received from our doctor (Partners in Pediatrics) that I found extremely helpful.

image

HOW TO FEED YOUR BABY STEP BY STEP 
Every baby is very special. This is a general guide for feeding your baby, so don't worry if your baby eats a little more or a little less than this guide suggests.

Tuesday, April 26, 2016

CRM XRM service including error information

Here is what you need to add to the web.config of the CRM website so that you can see why the XRM service maybe failing on a call:

<system.serviceModel>

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

     <behaviors>

      <serviceBehaviors>

        <behavior>

          <serviceDebug includeExceptionDetailInFaults="true" />

        </behavior>

      </serviceBehaviors>

    </behaviors>

  </system.serviceModel>

Friday, April 15, 2016

RegionManager.RequestNavigate is not working!

This is not so much a solution, but a debugging hint.

Recently I was banging my head for hours on a RequestNavigate not working. After a lot of googling and head banging, I found out that RequestNavigate has a callback and it has useful error information that can help in determining the issue.

The signature is: public static void RequestNavigate(this IRegionManager regionManager, string regionName, Uri source, Action navigationCallback)

And here is how you can use it:

_regionManager.RequestNavigate(RegionNames.MainRegion, uri, nr =>
{
if (nr.Result.HasValue && nr.Result == false)
{
//put a breakpoint in here to determine why. nr.Error will have the data
var error = nr.Error;
}
});

In my case, I found out that the caller was on a background thread and hence, the navigation was failing silently. By subscribing to my event on the UI thread, I was able to solve my issue!

Saturday, December 19, 2015

TMS Dining Nook Assembly Instructions

I had a hard time finding the instructions for this dining nook. NOw that I have it, thought I would post it for others that might have lost it and need it again: https://drive.google.com/file/d/0BzvtUeIvT94walYzbGl4R2o3VTA/view

Thursday, October 15, 2015

Windows 10 – BSOD on resuming from hibernate

After upgrading my machine to Windows 10, I found that after I hibernated by computer, it would always BSOD on resuming with the error: SYSTEM_SERVICE_EXCEPTION (cng.sys). After a whole bit of troubleshooting and nothing working, I found an old post regarding a similar failure on Windows 7. It suggested turning off Hyper-V (via Windows Features).

image

Turning it off on my Windows 10 machine, seemed to make the BSOD issue go away.

Monday, September 28, 2015

Importing Windows Event Log into SQL Server

LogParser is your friend: http://www.microsoft.com/en-us/download/details.aspx?id=24659

Here is a sample command to import the data into SQL Server:

LogParser -i:EVT "SELECT * into prodEvents FROM  c:\temp\prod.evtx" -o:SQL -server:sqlServerName -driver:"SQL Server" -database:testDb -createtable:ON  -cleartable:ON -transactionRowCount:-1  -maxstrfieldlen:8000

note: use -username:test -password:test to specify username and password if you need to.
note: I cant seem to find a way around the 8000 character limit in LogParser. So it always truncates at 8000 characters :(

The table definition is:

CREATE TABLE [dbo].[prodEvents](
    [EventLog] [varchar](8000) NULL,
    [RecordNumber] [int] NULL,
    [TimeGenerated] [datetime] NULL,
    [TimeWritten] [datetime] NULL,
    [EventID] [int] NULL,
    [EventType] [int] NULL,
    [EventTypeName] [varchar](8000) NULL,
    [EventCategory] [int] NULL,
    [EventCategoryName] [varchar](8000) NULL,
    [SourceName] [varchar](8000) NULL,
    [Strings] [varchar](8000) NULL,
    [ComputerName] [varchar](8000) NULL,
    [SID] [varchar](8000) NULL,
    [Message] [varchar](8000) NULL,
    [Data] [varchar](8000) NULL
) ON [PRIMARY]

Keep in mind that you can run many SQL like queries directly against the EVT file locally on your machine without importing the data into a table.

Other useful queries:

logparser.exe -i:evt "select * from c:\temp\prod.evtx where timegenerated > '2015-09-01 00:00:00'"

More info:

Useful commands and tips: (for ASP.net, but useful even for Event Logs) https://support.microsoft.com/en-us/kb/910447