This issue started to appear after windows creator's update. For some reason, when I wake up my laptop from sleep/hibernate, the DOWNLOAD speed on wifi connection is slow (seems limited to about 1.7 Mbit). I tried all the various hack with power settings and policies noted on internet, but none had any effect.
In the end, the only solution I found that's consistently working is to disable and then enable the wifi adapter at hardware level:
Monday, October 08, 2018
Wednesday, December 20, 2017
Entity Framework Core 2 - not recognizing context for Core library
I'm used to having my EF entities in separate class library and having one solution just for this library and a unit-test project. It makes development much faster (quick compilation). After switching to EF Core (2), I ran into issue that migrations won't pick up DbContext and nothing would happen. So I tried running "Get-DbContext", which resulted in nothing - not even a message in the PMC console.
Interestingly enough, exactly the same code was working fine when the project type of the library was "Class Library (.NET Standard)" instead of "Class Library (.NET Core)".
After many experiments I figured out a way to make it work. It seems that it needs an "application" to be present in the solution for the migrations to work - could be web or console.
So, to fix this issue:
Interestingly enough, exactly the same code was working fine when the project type of the library was "Class Library (.NET Standard)" instead of "Class Library (.NET Core)".
After many experiments I figured out a way to make it work. It seems that it needs an "application" to be present in the solution for the migrations to work - could be web or console.
So, to fix this issue:
- Add "Console App (.NET Core)" to your solution
- Add EF Core nuget packages to the console app
- Reference your class library from the console app
- COMPILE!!
- Done - now you can generate migrations (don't forget to set your console app as a "StartupProject" either through parameter or in the PMC combo at the top)
Android - Gmail and Calendar not receiving new data
This has been very frustrating - on my new phone, as I was going through the installation (Android 7.1) I picked the option to use the automatic restore from Google using my google account. All seemed ok, but then I noticed weird thing. My phone never notified me on new email messages or calendar events. I had to manually open the application and refresh (in fact run the refresh twice) for the new messages/events to show up.
I tried everything I found online - all settings, preferences, etc. After almost giving up and reinstalling the phone from factory reset, I found a cure.
Go to the: Settings -> Accounts, click on the "..." at the top-right corner, un-check and re-check the "Auto-sync data" option. This is it - ever since that all my push messages are getting in :)
I tried everything I found online - all settings, preferences, etc. After almost giving up and reinstalling the phone from factory reset, I found a cure.
Go to the: Settings -> Accounts, click on the "..." at the top-right corner, un-check and re-check the "Auto-sync data" option. This is it - ever since that all my push messages are getting in :)
Wednesday, December 06, 2017
Skype on windows 10 keeps 30% CPU utilization
I had this issue on my laptop - skype kept my CPU utilization at about 30% all the time. At last I found solution in this video - just change associated program for the ".htm" extension from chrome to internet explorer, restart skype and problem solved.
Thursday, May 26, 2016
Webpack watch not working on windows
I learned to love the webpack's "-w" option, which auto-recompiles the bundle(s) whenever source file is changed. Plus, it's really fast comparing to the full compile.
However, I ran into issue - when I moved my project from one computer to another, I found out that even though I can run webpack fine (it compiles all), it did NOT trigger the auto-recompile when I was modifying the source files.
After lots of experimentation, I found out that it was related to the folder name.
There's a bug reported already on that subject.
In short, you cannot have "(" or ")" anywhere in the path to your project.
So while this works fine:
c:\my projects\sample1\root
This stops watch from working:
c:\(my projects)\sample1\root
However, I ran into issue - when I moved my project from one computer to another, I found out that even though I can run webpack fine (it compiles all), it did NOT trigger the auto-recompile when I was modifying the source files.
After lots of experimentation, I found out that it was related to the folder name.
There's a bug reported already on that subject.
In short, you cannot have "(" or ")" anywhere in the path to your project.
So while this works fine:
c:\my projects\sample1\root
This stops watch from working:
c:\(my projects)\sample1\root
Monday, January 04, 2016
Computer wakes up during night on its own
I've had the issue with my desktop for ages and now, after upgrading to Windows 10, my Asus laptop started to do the same - wake up during night w/o reason.
I followed this post to check:
powercfg –lastwake
powercfg -devicequery wake_armedand disabled wake-up settings for my mouse and network adapter. This didn't help.
Next I followed this post and disabled the wake-up settings of the task:
Problem solved at last :)
I followed this post to check:
powercfg –lastwake
powercfg -devicequery wake_armedand disabled wake-up settings for my mouse and network adapter. This didn't help.
Next I followed this post and disabled the wake-up settings of the task:
Problem solved at last :)
Monday, December 28, 2015
Asus G73JW and Windows 10 freezing
I've just updated my relatively old Asus G73JW to windows 10 (fresh install - I don't like upgrades). All seem well until the 1st restart, when I'd end up with black screen after reboot. Couple hard-resets later and trying to disable various start-up programs (I was suspecting display drivers from NVidia) and situation wasn't improving - sometimes I was able to log-in, but system would freeze randomly after couple seconds/minutes. Sometimes I'd end up with BOD with MACHINE_CHECK_EXCEPTION.
Next step was to boot into safe mode - interestingly, I couldn't get into "Safe mode with networking" (option 5) - that ended up with the BOD. Luckily, just "Safe mode" (option 4) worked fine and system wasn't freezing. This got me thinking that maybe it was the network card causing the problems. So I went to Device Manager and disabled the following:
This resolved my issues with both, BOD as well as freezing. I'm running on WiFi, so having the physical LAN disabled is not an issue for me, but there might be updated driver somewhere that might fix the issue as well.
Next step was to boot into safe mode - interestingly, I couldn't get into "Safe mode with networking" (option 5) - that ended up with the BOD. Luckily, just "Safe mode" (option 4) worked fine and system wasn't freezing. This got me thinking that maybe it was the network card causing the problems. So I went to Device Manager and disabled the following:
This resolved my issues with both, BOD as well as freezing. I'm running on WiFi, so having the physical LAN disabled is not an issue for me, but there might be updated driver somewhere that might fix the issue as well.
Subscribe to:
Posts (Atom)