Archive

Author Archive

If Dell doesn’t recognize second monitor at startup power off then on the monitor

May 19th, 2013 No comments

This happened to me twice now. For some reason my Dell 30 inch monitor doesn’t fire up and recognize that I’ve powered up my laptop… Cycling it’s power seems to do the trick! Putting this here so I don’t forget…

Tags:

Kendo Mobile Gotchas, Tips, Tricks | Coding With Spike!

April 12th, 2013 No comments

Remember the Back Button.It is easy to forget this until you start testing on a physical Android device. iOS devices and the simulator in Icenium do not have a back button, but Android devices do. In a PhoneGap / Kendo Mobile app it will function basically the same as the “back” button in your browser, just going back through the history of pages. You can get the current navigation history from the main pane of the app:1234var app = new kendo.mobile.Applicationdocument.body;// …do some navigating around between view, then… console.log app.pane.history ;This will print an array of the nav history of the app, with the last element being the current view.This also means that you can manipulate this array however you want. You can add or remove views that you do or dont want the back button to stop at as it is tapped.The data-role=”backbutton” widget is the same thing as the physical android back button.Also, if you want to simulate the back button when developing in the simulator but dont have a backbutton widget on the screen to click, you can run this line of code from the dev tools console:1$”body”.data.kendoMobilePane.navigate”#:back”;

via Kendo Mobile Gotchas, Tips, Tricks | Coding With Spike!.

Tags:

Diagnostic Checklist for SQL Cache Dependencies from PluralSight Video

February 25th, 2013 No comments

Taken from this pluralsight video:  http://pluralsight.com/training/courses/TableOfContents?courseName=aspdotnet-data&highlight=fritz-onion_aspdotnet-caching*22#aspdotnet-caching

  •  Verify SqlDependency.Start() called for each connection string
  •  Verify service broker enabled
    (ALTER DATABASE <db> SET ENABLE BROKER)
  •  Verify SQL identity has permission to register for notifications
    (GRANT SUBSCRIBE QUERY NOTIFICATIONS TO <username>)
  •  Query constraints:
    •  Column names explicit (no “*”)
    •  Full 2-part names of tables (schema.object) like dbo.authors
    •  No aggregate functions (SUM, AVG, COUNT, …)
    •  No windowing or ranking functions (like ROW_NUMBER)
    •  No references to temporary tables or views
    •  No subqueries, outer joins, or self joins
    •  No text, ntext, or image column types
    •  No DISTINCT, HAVING, CONTAINS, or FREETEXT
    •  SProcs may not use SET NOCOUNT ON
Tags:

Jefferson County Schools receiving bad reviews – The Courier-Journal

February 16th, 2013 No comments

The Courier-Journal.

 

including 16 in Jefferson County — Shawnee, Valley, Western, Doss, Iroquois, Seneca, Southern and Waggener high schools and Frost, Western, Knight, Olmsted Academy North, Myers, Stuart, Thomas Jefferson and Westport middle schools. Only two of Jefferson County’s persistently lowachieving schools were on the right track — Fern Creek and Fairdale high schools.

Tags:

Handle Enter Key Press on Form

January 24th, 2013 No comments

$(newsLetterDivSelector).on(“keypress”, “#news-letter-signup-dialog-form”, function (event) {

var ButtonKeys = { “EnterKey”: 13 };

if (event.which === ButtonKeys.EnterKey) {

$(“#subscribe-button”).submit();

return false;
}
});

Tags:

c# – Validation failed for one or more entities while saving changes to SQL Server Database – Stack Overflow

December 10th, 2012 No comments

Had to do this today.  Don’t forget it!

 

// save this information to the log…

using( var db = new MSTEntities() ) {

 

db.PayPal_IPN_Logs.Add( log );

try {

db.SaveChanges();

}

catch( DbEntityValidationException dbEx ) {

foreach( var validationErrors in dbEx.EntityValidationErrors ) {

foreach( var validationError in validationErrors.ValidationErrors ) {

Debug.WriteLine( “Class: {0}, Property: {1}, Error: {2}”, validationErrors.Entry.Entity.GetType().FullName,

validationError.PropertyName, validationError.ErrorMessage );

}

}

}

}

 

catch DbEntityValidationException dbEx { foreach var validationErrors in dbEx.EntityValidationErrors { foreach var validationError in validationErrors.ValidationErrors { Trace.TraceInformation”Class: {0}, Property: {1}, Error: {2}”, validationErrors.Entry.Entity.GetType.FullName, validationError.PropertyName, validationError.ErrorMessage; } } }

via c# – Validation failed for one or more entities while saving changes to SQL Server Database – Stack Overflow.

Tags:

Standard Numeric Format Strings

December 6th, 2012 No comments

Standard Numeric Format Strings.

Best resource ever for formatting strings.

Tags:

I must be the change I wish to see in the world.

November 4th, 2012 No comments

This helps me when I get too caught up in Politics.  It reminds me to keep my side of the street clean…

 

You must be the change you want to see in the world.Mahatma Gandhi
Indian political and spiritual leader (1869 – 1948)

Tags:

Twitter BootstrapToolTip loses to jQuery UI ToolTip when called via .tooltip()

November 1st, 2012 No comments

I spent a good hour or so trying to figure this out last night because I wanted to use the Bootstrap tooltip and not the one built into jQuery UI. I didn’t want to completly dump jQuery UI because I’m using it’s datepicker() so the solution I came up with was basically to build a custom download of the jquery UI javascript file that doesn’t include the Tooltip functionality. It can be done here and simply uncheck the tooltip option:

http://jqueryui.com/download/

Tags: ,

Seek Balance Instead of Purity

October 25th, 2012 No comments

Purity is an illusion wrought of a mind embattled by constant changing reality.

Just saw this and want to remember it when programming!

Tags: