Useful blog for those that want to recover some more space on their Lenovo Yoga Pro 2’s.
Explains what all the partitions are and which ones you can delete and why.
I just found this very useful tool, especially if you are dealing with Azure VMs.
This is the tool used by the Azure Developer Support Team. You can install it while on a VM using Powershell by running the following in a Powershell command window:
md c:\tools; Import-Module bitstransfer; Start-BitsTransfer http://dsazure.blob.core.windows.net/azuretools/AzureTools.exe c:\tools\AzureTools.exe; c:\tools\AzureTools.exe
Great overview on NuGet hosting options.
In just about every Visual Studio project we create today, we will eventually find a need for a 3rd party library of some kind.
Managing these libraries has traditionally been a cumbersome process. It can be difficult to find available libraries, although Google does a good job, but it’s hard to find the latest version of libraries you’ve used and keep them updated.
That’s when NuGet comes to the rescue. NuGet is a Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects that use the .NET Framework.
What’s great about NuGet is that we can use it to package our own applications for publishing, which means it becomes a good tool for deployment.
View original post 1,348 more words
Got a new high resolution latop with scaling and struggling to use SSMS. Here’s the fix
I spent the last few weeks travelling a lot compared to my usual routine and I got quickly fed up with bringing my mobile workstation with me. My Dell precision M4600 is a powerhouse, but it’s definitely too big and too heavy for travelling, so I decided it was time to buy a small laptop just for travelling and presenting at SQL Saturdays and events around Europe.
After lots of research, I pulled the trigger on a new XPS13. It’s a very nice, tiny and light machine, beefy enough to run my virtual machines and slim enough to fit in a small bag.
So, everything fine? Not quite. The XPS13 2015 sports a stunning QHD touch display, with almost no bezel: a small wonder. The only complaint with it is windows and its (in)ability to scale applications when running at High DPI.
Windows got better at scaling applications on HiDPI…
View original post 590 more words
There are a bewildering number of screen sizes when publishing a cross platform app (See also Icons, Tiles, Splash screens and other images when publishing phone apps with Xamarin). Creating Splash or Launch screens for all these resolutions can be a real pain. This is what they look like to scale.
Rather than trying to create all these by hand I have created a Photoshop script to generate all the variations from a portrait source and a landscape source. You can download this from All Mobile Splash Screens.js The source images must be 1536 x 2008 for Portrait and conversely 2008 x 1536 for landscape. Due to variation in aspect ratios, If your splash screen has a logo or text of some sort it’s best to make sure this lies with a of 204px left and right padding area for portrait or top and bottom for landscape.
If you are really clever then you can start with a single image for both keeping the logo or text within a central box of 1004×1004 as shown here.
Use Photoshop Script
- Copy it to your Photoshop Presets/Scripts folder. Mine was at c:\Program Files\Adobe\Adobe Photoshop CC 2014\Presets\Scripts and I create a subfolder to hold my scripts. On a mac or if you have the 32-bit version your local path will vary.
- Launch Photoshop and you should now see the script available under File->Scripts called ‘HMS Create All Mobile Splash Screens’
- Open either your Portrait (must be 1536 x 2008) or Landscape (must be 2008 x 1536) source image.
- Then run the script by selecting it from the menu.
- If you have a landscape just repeat the process for that.
This will generate a series of cropped and new resolution versions of your original image in the same folder. If the source image is not exactly the right size the script will tell you and exit. You should end up with something like the set below, where all the test is still in frame.
For information on all image sizes, including Icons, Tiles and the rest, when deploying cross-platform apps, have a look at my other blog article Icons, Tiles, Splash and other images when publishing phone apps with Xamarin
Here is the full code listing of the Photoshop script. If anyone does any improvements (and there’s lots of potential ;-)), I would love to hear about it.
In entity framework, you can often include foreign key or relationship collections in your LINQ request by using the ‘Include’ statement.
For example you may want to get a collection of Customers and their related Invoices. This would look something like:
However there may be times where this is not possible or you want to ensure that you have the latest related collection or you only want to fetch that collection when you need it.
To do this you need when the related records are a collection and re-query the navigation property for your parent entity (here ‘customer’) we use the Collection() method as follows:
Where ‘Invoices’ is the name of your navigation property. Now you can access the latest related objects.
To do this you need for a one-to-one related single entity then use the Reference() method instead as follows (Say we wanted the Country dial code of our customers Country):
Here the navigation property is called ‘CountryOfResidence”.
We can now navigate to the Country entity and get the dial code.