Ikarus USB controller shows error installing Windows 10

I’ve bought a USB controller long time ago and I wanted to use this as a game controller in Windows. The controller is a flight simulator controller for scale model airplanes.

The controller came packed with the “Ikarus Easyfly 4 starter edition” flight simulator software. The model is #3015010.

When I plugged in the controller in my new Windows 10 machine, the device came up with an error something like “Unknown USB Device (Device Failed Enumeration)”. Same error like in this article: https://forum.xda-developers.com/android/general/fix-unknown-usb-device-device-t3375320

Lucky for me, the manufactor left a note in the package about adding a registry key.

Start regedit.exe. In the Windows register, add SkipBOSDescriptorQuery with value 1 under Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\040204022273. Add Key 040204022273 to usbflags if this does not exist (most cases).

I added the key as DWORD but still the controller was not working. I tried a few options and investigated some more. I removed the DWORD key and added a binary value with the same name. This finally got the controller working win Windows 10.

Azure click once publish for test and production CI/CD

Change config and sign a click once deployment for test in an Azure build application:

I have the following release pipeline in Azure:

Continuous Integration pipeline that will build for every check in on master branch. This build will trigger a Continuous Delivery pipeline that will deploy the release for the click once application to test. The same installation wil be deployed to production after approval in test on this pipeline.

I want the same build that I tested to go to production. The click once is compiled for release. The app.config I have in source is the production version. So once installed the app will default be configured to connect to production datasources.

For test however I want the app.config to be replaced with a app.config.debug version. This is a app.config that contains the test and debug datasources.

After putting this config file in the deployment the signature for the click once is no longer valid. I resigned the click once manifest for the changed config with a tool from Microsoft .NET SDK.

I used the mage.exe (from .NET framework Tools). Path for my installation: C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\mage.exe.

I added 3 files to the source directory:

mage.exe
app.config.debug
ACertificateFile.pfx. This pfx is the same I used in the project to sign the manifest file.

After adding these 3 files to the source folder I added a copy step in the build pipeline to add these files to the app.publish folder:

And a script to update the app.config and resign the manifest has to be executed before copying the files to the local deployment server.

@echo on
for /f “delims=” %%F in (‘dir “$(system.defaultworkingdirectory)_Bla.WPF.BLA-.NET Desktop-CI\$(System.TeamProject)-$(Build.BuildNumber)\Application Files” /B /AD’) do set deployDir=%%F
set “to=$(system.defaultworkingdirectory)_Bla.WPF.BLA-.NET Desktop-CI\$(System.TeamProject)-$(Build.BuildNumber)\Application Files\%DeployDir%”
set “from=$(system.defaultworkingdirectory)_Bla.WPF.BLA-.NET Desktop-CI\$(System.TeamProject)-$(Build.BuildNumber)”

copy /Y “%from%\App.config.debug” “%to%\BLA.exe.config.deploy”

ren “%to%*.deploy” *.
“%from%\mage” -sign “%to%\BLA.exe.manifest” -CertFile “%from%\ACertificateFile.pfx”
“%from%\mage” -update “%to%\BLA.exe.manifest” -CertFile “%from%\ACertificateFile.pfx”
“%from%\mage” -update “%from%\BLA.application” -appmanifest “%to%\BLA.exe.manifest” -CertFile “%from%\ACertificateFile.pfx”

ren “%to%*.*” *.*.deploy
ren “%to%*.manifest.deploy” *.
del “%from%\mage.exe”
del “%from%\App.config.debug”
del “%from%\ACertificateFile.pfx”

Important steps to publish a click once app using Azure

Publish in Azure pipeline:

step 1 Build solution with parameter /target:publish

YAML: #Your build pipeline references an undefined variable named ‘Parameters.solution’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

#Your build pipeline references the ‘BuildPlatform’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971

#Your build pipeline references the ‘BuildConfiguration’ variable, which you’ve selected to be settable at queue time. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971

steps:

– task: VSBuild@1

  displayName: ‘Build solution **\*.sln’

  inputs:

    solution: ‘$(Parameters.solution)’

    msbuildArgs: ‘/target:publish’

    platform: ‘$(BuildPlatform)’

    configuration: ‘$(BuildConfiguration)’

Step 2: Copy artifact files to publish folder

NuGet pack with include referenced projects

Yesterday I wanted to build a NuGet package with a dll that references a project in the same solution. The referenced project however was not added to the installation package when I packed a new Nuget package.

I searched the internet and found some remarks about adding a parameter includereferencedprojects.

Then I came to my pack command in Azure and saw that the parameter was not in the Nuget pack task.

The YAML i had:

At first I didn’t know how to add the includereferencedprojects parameter. I then changed the “automatic package versioning” in “pack options”. I set it to “Off” and an extra checkbox was presented:

I checked the box:

And set the versioning back to the previous value.

Now my YAML included the includereferencedprojects parameter.

After I started a new build with this pipeline, the referenced project dll’s were added to my package.

How to select duplicate values in a SQL table

First make a selection of duplicate values using count:
SELECT
col1, COUNT(col1) AS CountOf
FROM test
GROUP BY col1
HAVING COUNT(col1)>1

Then join this selection with the table on table keys:

select [key],a.col1 from
test a
inner join (SELECT
col1, COUNT(col1) AS CountOf
FROM test
GROUP BY col1
HAVING COUNT(col1)>1) b on a.col1 = b.col1

Samsung account problemen na wijzigen wachtwoord

Foutmelding ‘VERWERKEN MISLUKT’ op mijn Samsung telefoon:

Omdat ik meerdere malen contact met Samsung support moest zoeken en uiteindelijk naar een servicepunt voor herstel werd gestuurd TERWIJL DIT NIET NODIG IS, schrijf ik dit artikel zodat hiermee hopelijk andere mensen geholpen zijn.

ALLEEN UITSCHAKELEN WIFI was al voldoende.

Vanaf het begin: Het hele verhaal begon bij het wijzigen van het wachtwoord van mijn Samsung account welke ik gebruik op mijn telefoon.

Mijn Samsung telefoon gaf bij het invoeren van het gewijzigde wachtwoord alleen de melding ‘VERWERKEN MISLUKT’. Dit had ik gegoogeld en hier kwamen allerlei verontrustende resultaten naar voren dat de telefoon naar fabrieksinstellingen gereset zou moeten worden.

Ik vond dit nogal zot dus daarom heb ik maar de support lijn gebeld van Samsung. Eerst een 088 nummer gebeld, daar het probleem uitgelegd. De medewerkster zei meteen dat de telefoon naar fabrieksinstellingen teruggezet gaat moeten worden. Ik nogmaals gezegd dat mijn telefoon verder wel bruikbaar was maar dat alleen geen verbinding met Samsung services mogelijk was vanaf mijn telefoon. Via de browser lukte het mijn wel om in te loggen.

Na nogmaals protest gaf de vriendelijke mevrouw mij het nummer van account services van Samsung. Het nummer van account services gebeld en hier nogmaals uitgelegd wat er scheelde. Ze zouden mij een link via email sturen om mijn wachtwoord te resetten. Dit zou volgens de medewerker kunnen helpen, maar het kon enkele minuten duren voor de mail was aangekomen. In de mail zou ook staan hoe verder te handelen indien de reset van het wachtwoord niet zou helpen.

Na een kwartier wachten had ik nog geen mail ontvangen. Hierna nogmaals gebeld om te vragen om hulp. Terwijl ik nog aan de telefoon was werd de mail wel verstuurd maar mocht het resetten niet helpen. De mevrouw vertelde dat het enige dat nu overbleef als oplossing om bij een servicepunt van Samsung langs te gaan of om zelf een logbestand te laten bouwen door de telefoon en dit op te sturen. Ik vroeg waar een servicepunt was maar toen vertelde ze me dat ik voor deze informatie het 088 nummer weer moest bellen. Bedankt voor de service en zelf nog even aan het zoeken gegaan…

Conclusie: Het netwerk waarmee ik probeerde in te loggen zorgde voor de fout. Ik heb WIFI uitgeschakeld en alle problemen waren opgelost.

Where does Windows save Lock screen images

If you are using Windows 10 you might want to save the lock screen images as a background or just because you like them.

The images can be found in this folder:
C:\Users\%userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets

Select all and copy these files to a new folder where you want to keep / edit them.

The files in this new folder have to be renamed to .jpg to use them with a image viewer / editor. You can do this by starting a command line window and make the folder you created as the current directory. Then execute “ren *.* *.jpg” from this command line window.