Posts
1149
Comments
891
Trackbacks
1
Tuesday, July 10, 2018
Running Visual Studio 2017 and OneDrive off of an (micro)SD card

So, I got one of those Surface Pro Type Cover bundles, because it has 8 GB (which is my minimum, btw off topic, but when is Microsoft going to release a Surface with 32 GB of memory?) and while only 128 GB storage, I have a 300+ GB microSD card to put in it, and it’s over $300 off list.

The idea is to run most programs (including SQL Server 2017 and Visual Studio 2017) off the microSD, as well as have OneDrive there, so that the local storage doesn’t get filled out.  Good plan.

Except SQL and VS will recognize that you are trying to use a microSD card and say no way.  So will OneDrive, but differently.

So, you have to trick it.  In 2 ways.

First thing to do is recognize that you can mount an SD card in a folder, so you mount it in your local storage, and then VS and SQL will install fine, as it will think it is local storage.

However, OneDrive will still view it as a place it can’t live off of and block you.

Here, you create a virtual drive in Disk Management, mount that on a drive letter (and you can create a task in task scheduler to mount it on startup), and then point OneDrive to that, and it will then accept it.

“But won’t performance suffer?”  Sure, it won’t be as good as local disk, but i’ve found it to be passable. 

Links here and here for helpful tech details on both steps.

posted @ Tuesday, July 10, 2018 7:09 PM | Feedback (0)
Tuesday, December 19, 2017
An example of how science can be misapplied

Can be found here.  All this shows is that people didn’t (I would say couldn’t) copy the Beatles.

Except for “2000 Light Years from Home” etc. but that’s another story.

posted @ Tuesday, December 19, 2017 11:25 AM | Feedback (0)
Friday, July 07, 2017
RavenDB fixes unbounded results sets behavior, aka I Told You So

Ayende has finally seen the error of his ways, and changed RavenDB’s behavior to return all of the results from a query, and not put in a stupid limit (which was stupid even if you could turn it off).

Why?  Because his clients told him to.

Of course, I said this 7 years or so ago.  Breaking ‘Select’ is stupid.

Perhaps it is worth taking a look at the product again.

Perhaps.

posted @ Friday, July 07, 2017 11:57 AM | Feedback (0)
Thursday, June 15, 2017
Back to back

19143821_10156143777103765_5648641741762297590_o

Nice threads, Mario.

posted @ Thursday, June 15, 2017 9:55 AM | Feedback (0)
Thursday, March 09, 2017
Public Service Reminder: Don’t Compress your SQL Server Folders

I have a couple of smaller machines that get ‘repaved’ from time to time and fairly consistently I need to compress some of the hard drives because of low disk space, and fairly consistently, I forget that SQL Server doesn’t like this, and so am fairly consistently momentarily confused when random SQL Server patches through Windows Update fail.

And then I fairly consistently uncompress them and everything is fine.

Fairly consistently.

HTH.

posted @ Thursday, March 09, 2017 2:41 PM | Feedback (0)
Sunday, February 12, 2017
2017 is the year of Linux on the desktop

Or maybe not.

posted @ Sunday, February 12, 2017 2:06 PM | Feedback (0)
Friday, February 03, 2017
Visual Studio 2017 RC.3 26127.3 finally works ASP.Net Core correctly

At least in my experience.

Even until this minor point release came out a few days after the more ‘major’ release, things did not work right.  Since there needed to be a more solid upgrade path from the project.json system to the ‘new’ MSBuild system, I was concerned about how much work it would take.

In the end, not very much.  Bin and Obj folders needed to be deleted, and for some obscure reason, the EF 6.1.3 NuGet package needed to be added to the Asp.NET Core project (this wasn’t required previously, so I’m assuming this is just some odd bug that will be resolved later), but otherwise, the upgrade worked smoothly.

It will be nice to now be able to work in the new VS exclusively.  Or at least, that is the hope.

posted @ Friday, February 03, 2017 1:57 AM | Feedback (0)
Monday, January 23, 2017
Registry Key to Fix Visual Studio Failing to Start with Negative Number

Computer\HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0

posted @ Monday, January 23, 2017 8:33 PM | Feedback (0)
Wednesday, December 28, 2016
Greg Young coins ‘CQRS’, immediately calls it an anti-pattern

This is completely a joke, of course, but was my immediate thought when reading this somewhat old ‘news’ story.

posted @ Wednesday, December 28, 2016 11:40 PM | Feedback (0)
Thursday, December 22, 2016
Coding standards are bad aka learning the wrong lession

So, Rocky reflected on coding standards, and ended up here:

This was the point where I had my first professional developer epiphany. Yes, it is truly painful to adapt to the idea of living within strict coding and style guidelines. But the alternative is so much worse!

Ever since that experience I insist on consistency of coding standards and styles within each project (or enterprise) where I work. And even if I think some choices (like 2 spaces after each tab) are really, really, really stupid, I'll use and vehemently support that choice.

Um, no.

There will always be exceptions, since such is life, but otherwise, on any codebase of any significance, with any number of contributors over any number of years, the need to enforce coding standards or styles is wasted effort, and counter productive.

I would actually extend this point even more radically.  In various projects I’ve worked on, there have been (to use what should be a recognizable example) many different data access ‘methods’: stored procedures, inline SQL, ADO.NET, LINQ to SQL, Entity Framework, etc. 

On one level, this is insane, of course.  However, it is also perfectly manageable.  If you know anything about .NET and have been programming for even more than a few years, you can program using all of these, and can move back and forth between them with little effort.

That is to say, on any code base that has existed over any period of time, different ways of programming have been used by different developers over time.  To the extent that you do actually follow a pattern, that’s great (so, for instance, even though I prefer something like Entity Framework, if the module I’m working on uses stored procedures, I’ll default to that), but thinking that enforcing a style (like 2 spaces after each tab) is a good idea is just stupid. 

You might as well enforce the types of socks your development team wears.

posted @ Thursday, December 22, 2016 2:36 PM | Feedback (0)