My public coding projects live on GitHub (https://github.com/davehax). You can find me on VSCO (https://vsco.co/davef) where I post my Photography. Sometimes I'll post a picture or two here as well.
Fixed – Win10 Xamarin iOS Simulator Please Select a Valid Device Before Running the Application
Yep, making sure that the platform for the iOS project was set to 'iPhoneSimulator' was what did the trick!
[FIX] ADB0030: Mono.AndroidTools.RequiresUninstallException: The installed package is incompatible. Please manually uninstall and try again.
Disconnect your Android device, reboot it, then connect your device and try again.
JSON.parse revive Date object
JSON.parse got you down? Date objects not being revived? Here's a little something to help you out! https://gist.github.com/davehax/2f32e7b09c3da3531601e6543fcff82e
Updating an old Create-React-Native-App to Expo-CLI + latest Expo SDK!
Well, my hand has been forced. It's time to update the project from Create-React-Native-App to Expo-CLI, update the Expo SDK to version 32, and add missing Gen 4 Pokemon too!
Fixing “Could not load assembly Xamarin.Android.Support.Fragment” after upgrading to Xamarin.Forms 3.0 in Visual Studio 2017
While working on upgrading an existing project from Xamarin.Forms 2.3 to Xamarin.Forms 3.0 the following, incredibly baffling, error was thrown during the build phase: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.Fragment, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? File name: 'Xamarin.Android.Support.Fragment.dll' at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters) … Continue reading Fixing “Could not load assembly Xamarin.Android.Support.Fragment” after upgrading to Xamarin.Forms 3.0 in Visual Studio 2017
Bushfire Nearby
It's scary to see this just over the hill. Definitely not how we expected the day to go. For my visitors from overseas, Australia is always on fire. Usually the fires rage out in the bush rather than at our doorstep, but every now and then you need to be prepared to act quickly and … Continue reading Bushfire Nearby
.net core 2.0 MVC reference
Personal reference post https://github.com/davehax/NetCore2_MultiStageForm All "dotnet xxx" commands need to be run from the command line in the Project Directory Database-First approach - packages required to scaffold the database into Model classes and then generate Controllers & Views. <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" /> <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.3" /> <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Utils" Version="2.0.3" /> </ItemGroup> <ItemGroup> <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.3" … Continue reading .net core 2.0 MVC reference
Solution to error – Package ‘Microsoft.VisualStudio.Web.CodeGeneration.Tools’ has a package type ‘DotnetCliTool’ that is not supported by project
To restore the package successfully you must open up Terminal/Command Prompt/Bash and cd into your Project directory (not the Solution directory). Here you can run the command "dotnet restore".
Once this command completes running, you can now execute the following command to verify that the Entity Framework CLI tool has been installed.
"dotnet ef -h"
Now you can go ahead and run your scaffold command!
asp.NET Web API 1 POST endpoint accept JSON parameter always null fix
[SOLUTION] I have a Complex Type that I wish to receive as a parameter on a POST request made to my server. At this point the reason is unknown, but when debugging the parameter is always null.
Fix React Native issue Remote Debugger Unavailable
React is awesome. React Native sounds just as awesome as I can take my React skills to the Mobile landscape! While creating a project using create-react-native-app I couldn't figure out how to enable Remote Debugging. If you're like me then search no further. In your project, under the .expo folder, open settings.json and set the dev prop to true. If this … Continue reading Fix React Native issue Remote Debugger Unavailable