When it comes to input validation for rich websites and Single Page Applications, a lot of the patterns out there rely on markup in the HTML/View. This works OK for smaller applications, but is terrible for larger applications that expect to be maintained and extended over time. In the past couple years I have used Knockout on sites ranging from toy size (the SQL Azure post) up to a large modular SPA rewrite of a Silverlight application.
This is an archive of the posts published to LessThanDot from 2008 to 2018, over a decade of useful content. While we're no longer adding new content, we still receive a lot of visitors and wanted to make sure the content didn't disappear forever.
IT professionals (and amateurs), it’s time we had a chat. It’s time to stop dragging and dropping (or copying and pasting) files between servers and/or workstations. It’s clumsy. It’s childish. It uses memory on the server. Oh, and there’s a really easy tool to copy files built into Windows – Robocopy. Here’s the basic premise: you open a PowerShell window (or command prompt, but let’s join the 21st century), and enter
We’ve been using Angular for client-side apps for a couple years now, and it has mostly been great. The data binding works well, and the baked in dependency injection makes it very easy for our team of C# developers to write unit tests. There have been some painful moments, but they’ve mostly been growing pains on our part. One that has been particularly sticky was testing with mocked dependencies that return promises.
Tim and Amy Ford put a lot of hard work into making this event run. They do a great job. Everyone learns, shares, has fun, relaxes, and did I mention learns? Jason Hall from SQL Sentry taught his class Tempdb Parasites, and I learned about temp table caching. This is amazing! SQL Sentry also gave cruisers some amazing, to-be-jealous-of swag. If you were there, you would have gotten it!
Apparently Jetbrains has been working on a .Net IDE that is based on IntelliJ. The blogpost about it was several weeks ago. And there is even a video demoiing it. Of course we all know demos can’t be trusted. But now you subscribe to receive early builds as soon as they are ready (copy pasted that from the blogpost). So go ahead and do that and don’t forget to check VB.
Sometimes twitter can be useful. Yesterday I asked how people forward their linux logs to the logstash/elasticsearch server. And got this as one of the replies. Thanks Dan Barua and James Nugent. I’ve been setting up an ELK (Elastisearch, Logstash and Kibana) stack since last week and having heaps of fun doing so. You can go to this post for the configuration post but first go download the package you need for your server and install it.
Powershell is great (as am I) for automating boring little tasks. So the question came to put 18 thousand plus image files that were in one folder into folders per year of Date created. So to no longer keep you in suspense, here is the complete code$SourceDir = “” $DestinationDir = “” Write-Host “Source directory: “ + $SourceDir Write-Host “Destination directory:” + $DestinationDir $files = get-childitem $SourceDir *.* -File |Select-Object -last 10 Write-Host “Number of files to move:” $files.
You: curious about Azure, wondering if it’s right for your organization. You run some SQL Server databases, but don’t know if you would use a VM in Azure, or should jump into an Azure SQL Database. You know there are some differences and complexities, but aren’t sure how to work with them. Me: ready to spend a day teaching you how to get started! I’ll be presenting my full-day class Get Started With SQL Server in Azure at Globe University in Madison, WI on Friday, April 8, 2016.
Setting up a development environment for LessThanDot is kind of tricky, where “tricky” is defined somewhere between “I have PHP on my Windows box” and “at least I’m running it in a version of Apache”. Recently I realized I had misplaced my local development environment somewhere and needed a way to make some changes. Have a problem once? Solve it. Have a problem a second time? Automate it. So, using Vagrant, I created a series of configurations and scripts that can create a duplicate of our production environment, running a local VM that answers to http://lessthandot.
I’ll start by saying I’m not an expert on this topic. This has worked for us but is not guaranteed to be either the best answer or perfect for your environment. We have evolved our hiring process over the course of 3.5 years, starting when I first got into the role and was rebuilding a team from 1 remaining developer to a solid core of 4 developers, and continuing a few years later through a one year period where we quadrupled the team without killing the culture or lowering standards.