April 2013
3 posts
2 tags
ListenListen
Apr 19th
2 tags
Online Resources for AngularJs
Angular Seed – Good starting point for an angular project https://github.com/angular/angular-seed Egghead.io – Tons of videos about AngularJs http://egghead.io AngularJs – the source http://angularjs.org Angular UI – components for UI items in Angular http://angular-ui.github.com ngModules – popular modules for AngularJs http://ngmodules.org
Apr 3rd
5 tags
Add class to element when scrolling in AngularJs
Revised scroll directive that supports IE8  Calculate Offset Scroll directive     https://gist.github.com/markcoleman/5300596
Apr 3rd
March 2013
10 posts
2 tags
Why all your text is black when printing when you...
In bootstrap.css https://gist.github.com/markcoleman/5271369
Mar 29th
4 tags
Beware of DateTimeOffset precision and Javascript
We decided to use DateTimeOffset or DateTime2 as the datatype for our date fields in Sql using Entity Framework Code First.  Sounds simple enough should not cause any problems right? WRONG! The default of DateTimeOffset and DateTime2 has a precision of 7 digits for milliseconds, but ECMAScript only supports 3 (webkit does 5) digits for milliseconds. See this example with...
Mar 19th
6 tags
SxSW Day 5 - Interfaces Accessibility &...
SXSW Day 5 Interfaces, Accessibility & Superheroes One out of seven of the world’s populate has some form of disability In the US 15 and over 21.3% have a disability, People over 65 49.8% Regulations and Guidelines 1990 ADA 1998 Section 508 1999 WCAG 1.0 2008 - WCAG 2.0 2010 - All video needs captions Superhero Checklist Overcome adversity fight for good adhere to...
Mar 14th
4 tags
SXSW Day 4 Intentionally Dealing with Responsive Design   A designer/developer is a unicorn a mystical person that does everything. As an organization grows the specialization in each field grows. They optimized the css per page not actually globally.  This allows to optimize for the smallest possible css required for the page. Performance of a responsive design is very important when...
Mar 12th
7 tags
SXSW Day 3, (Mobile Web Apps Suck - Workshop)
SXSW Day 3 https://github.com/fisherwebdev/seeds Versioning your app is not agile or lean With using apple you only have 100 test tickets, this limits your alpha group. If you use web you have unlimited alpha Future Friendly The age of ubiquitous computing progressive enhancement is not graceful degradation mobile first responsive design Write once -> run anywhere (debug...
Mar 11th
2 notes
6 tags
Random SXSW Day 2 Notes (Prototype or Die!)
SXSW Day 2 Prototype or Die (Workshop) Five questions of  Do they get it?  Do they understand what is going on in the application Can they find it? Does the user know that something is on the screen. Can they do it?  can they preform the function Do they like it? is it enjoyable experience Is it useful?  Does the user find that the application is useful Use wizard of oz type...
Mar 11th
1 note
Random Notes from SXSW 2013 Day 1
SxSw 2013 - Day 1 Lean Forward, Lean Back: Tablet News Experiences Storytelling in the age of the tablet Lean forward platforms are phone and tablet, short quick headlines easy to see and read Lean back, long form and lots of detail, paper or computer If you put any emphasis on something treat the phone as almost the most important Tablet is also almost as important keep...
Mar 9th
Correct setup for iCloud in Windows 8 Mail →
From the link youremail@me.com imap.mail.me.com port 993 With SSL smtp.mail.com port 587 No SSL Outgoing requires authentication Use same username for incoming and outgoing mail.
Mar 6th
4 tags
AngularJs currency filter with no $ sign
https://gist.github.com/markcoleman/5093740
Mar 5th
4 tags
AngularJs, Json.Net, and the $type property
We use the Json.Net serializer in our project and while performing a post that deserializes into a derved class we would also serilization exceptions. We enabled Json.net to emit the $type property so this should be working without problems. Opening up Firebug we quickly realized that the $type property was missing from the request, what gives? Digging in a bit further it appears that for some...
Mar 4th
February 2013
2 posts
AngularJS directive for currency that adds +/-... →
https://gist.github.com/markcoleman/5042147
Feb 26th
6 tags
Unknown (to me) .net framework gem - TextInfo →
A source Description of “REGULAR SAVINGS”             TextInfo textInfo = new CultureInfo(“en-US”, false).TextInfo;             depositProduct.Description = textInfo.ToTitleCase(share.Description.ToLower()); Using TextInfo Turns it into “Regular Savings” .net framework and msdn once again to the rescue.
Feb 6th
January 2013
3 posts
4 tags
Jan 25th
4 tags
Microsoft Lync wants to use the... →
I ran into this issue yesterday and after a quick google the answer was found, archived here for my own knowledge. From the answer: gnomehole replied on  March 28, 2012 Fixed my own problem… in case anyone else runs into this. I removed the keychains from my keychain access app, but even though they did not show there were still physical key files in the folder...
Jan 8th
3 tags
Why does VS2012 always check out the sln when... →
This explains why whenever anyone opens up a solution they automatically check out the file with no changes.
Jan 4th
December 2012
3 posts
4 tags
Bug Hunt: Always use radix in parseInt()
Is the bug valid? Yesterday we received a bug report that one of our text fields were defaulting to 00 when the user enters in 08 or 09.  Confused as to what could be causing this I fired up my various browsers and iOS simulator and was not able to duplicate the problem. The Code Looking at the code it was something like this: 1: var num = $(this).val(), //val() would be "08" or...
Dec 19th
1 tag
Building TypeScript in Web Applications
The one thing I failed to mention with the AngularBanking demo application is how do we get the TypeScript files to build during a build of the application. Well the first part is simply installing the plugin from the TypeScript site. Unload and edit your web application project and add the following snippet to the BeforeBuild <target/> 1: <?xml version="1.0"...
Dec 7th
8 tags
AngularJs, NancyFx, TypeScript, and BootStrap Oh...
An increasingly popular trend lately is to have the client handle rendering of your content.  So long server side rendering you have been replaced with some fancy JavaScript libraries.  So what are we building? Well as you might know I work at a credit union so my natural demo is something financial related.  So we are building AngularBanking.  A rudimentary online banking application that allows...
Dec 5th
November 2012
5 posts
//build/ day 4 notes
Windows Store 8 and jQuery Html and dom api changes Cannot place script in inner html in winjs You cannot use jQuery with external scripts in local context they have to be referenced locally https://github.com/appendto/jquery-win8 Preview available of jQuery on git hub, because of the added restrictions had to fork the code to allow the use of jQuery this is hopefully only temporary they are...
Nov 11th
1 note
//build/ day 3 notes
Type Script Application scale JavaScript is hard Typescript is a typed superset of JavaScript that compiles to plain JavaScript.  Any browser and host and OS All JavaScript code is typescript code.  Optional static typing classes and modules All of these optional components that simply disappear Final result is plain JavaScript  Allows for easy use of module pattern If you use...
Nov 11th
//build/ day 2 notes
JavaScript engine for high performance Always load scripts last How to create a good test on jsperf Know your preparation setup and tear down stages Dont test Async things syncly Use special options to enable this type of test Don’t introduce randomness  Reset shared variables Be aware that browser might have caching and pollute your results. Make sure to reset everything.  ...
Nov 11th
//build/ day 1 notes
Wiring Windows 8 for the Store User expectations Live tiles Search Capabilities Plm Windows helps make app predictable for users If you do not set permissions correctly exception will be thrown.  App Container, sand box so you are only allowed access to.  You want to test suspend and terminate you can trigger that via the process menu in visual studio.  Microsoft Design...
Nov 11th
Nov 2nd
October 2012
2 posts
Oct 19th
4 tags
Why Exception Shielding is Important
This morning I was modifying one of my projects code to address a bug that was reported yesterday and since I am a good developer I needed to seed a test account into a 3rd party vendors system for an integration test.  I must have done something slightly wrong and was greeted with this error message. {“Server was unable to process request. —-> Cannot insert duplicate key row in...
Oct 4th
4 notes
September 2012
3 posts
Cheat sheet for TFS2010 -> TFS2012 upgrade
Prerequisites Have Team Foundation Server 2010 installed TFS is connected to SharePoint You have sysadmin rights to the sql server instance that contains the TFS databases You are a farm admin for SharePoint Stop IIS on Application Tier SharePoint Server- Uninstall TFS210 from the share point server Install TFS2012 on the share point server – Reboot might be required Run configure to...
Sep 19th
Sep 15th
Read the changelog
Recently I upgraded JSON.net from version 3.5 to version 4.5.8 via Nuget. Today we received an issue that dates are now appearing as m/d/1969.  I immediately fired up firebug and to my surprise the json being returned is no longer in the format of ”\/Date(1198908717056)\/” but now in “2009-02-15T00:00:00Z” which is causing my logic on my UI to display the date incorrectly. ...
Sep 14th
July 2012
1 post
1 tag
Jul 23rd
June 2012
1 post
5 tags
EntityFramework and a View with no Primary Key
So today I decieded to create a very simple console application that would help me dump some data to a file.  Since my data was in SQL and I wanted to alter the relationships a bit I figured EntityFramework and a bit of linq magic might do the trick.  I was wrong. What happened Well I quickly created my linq query since it was only going to be ran once I simply called .ToList() on my three views...
Jun 13th
May 2012
2 posts
May 21st
May 19th
April 2012
2 posts
Visual Studio DEV11 ALM Roadshow
 Feedback Tool Standalone feedback tool while the person reviews the application. Not part of visual studio but actually a small application that handles that feedback. Similar to the test manager and records video and audio of the person reviewing the feature. All launched from an email. Allows for informal feedback text area. These feedback items are artifacts of the project. Comments and...
Apr 18th
1 note
Apr 17th
February 2012
5 posts
Feb 18th
Feb 12th
1 note
Feb 11th
Feb 5th
Feb 4th
January 2012
21 posts
6 tags
Fundamental functional techniques
It has been awhile since I posted something on F#, but I have been busy reading part 2 of Real-World Functional Programming. This so far has been one of the harder chapters. Not because I couldn’t understand what is going on in the examples it was more of a mind shift I didn’t quite yet grasp fully. Most of the examples were very easy to follow however the sheer functional aspect...
Jan 31st
11 notes
Real-World Functional Programming, Chapter 7...
Here is the complete example in chapter 7 in Real-World Functional Programming. open System.Drawing type TextContent = { Text : string Font : Font } type Rect = { Left: float32 Top: float32 Width: float32 Height:float32 } type ScreenElement = | TextElement of TextContent * Rect //like TextElement(textContent, Rect) ...
Jan 31st
Jan 31st
4 tags
Umbraco and a MVC3 Child Application
In the never ending quest to get child applications to work under umbraco do not forget to update the web.config under \Views \Views\web.config <system.web.webPages.razor> <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> <pages pageBaseType="System.Web.Mvc.WebViewPage"> ...
Jan 24th
6 notes
Jan 20th
6 tags
Real-World Functional Programming, Part 1 (Chapter...
Chapter 4 was actually quite fun! This chapter goes through a simple application that reads data from a csv file and produces a pie chart. The chapter starts off using the F# interactive console all the way to creating a F# application that creates a simple GUI. Some notes while building the application By the use of pattern matching you can create generic functions. In C# you need to specify...
Jan 20th
9 notes
6 tags
Real-World Functional Programming, Part 1
Well after a few days I finally was able to finish Part 1 of the book Real-World Functional Programming.  So far I am really enjoying this book. Like my other posts about F#, I am going to share a few snip its of things I learned while reading the first section. This will hopefully reinforce the knowledge I picked up. Chapter 1 - Thinking differently Functional programming is the Evaluation of...
Jan 20th
2 notes
4 tags
Forms Authentication, the Event Viewer and Event...
Recently we deployed our application using Forms Authentication and after a few days of use we discovered that our Event Viewer is littered with Informational messages relating to 4005. Event code: 4005  Event message: Forms authentication failed for the request. Reason: The ticket supplied has expired. Event time: 1/19/2012 7:16:33 AM Event time (UTC): 1/19/2012 12:16:33 PM...
Jan 19th
1 note