Categories
Anaconda

Conda without Python in Windows 11

When using Anaconda conda in terminal Windows, we often found the Python and default packages is already installed. To create conda new environment empty packages in Windows cmd / powershell without any packages, follow this steps:

  1. Uninstall Anaconda (if you have its installed)
  2. In installation step, un-check both “Add Anaconda to my Path” and “Register Anaconda Python for VScode, etc.”
  3. Complete the installation
  4. Go to Edit the Environment Variables
  5. Create a new variable with “C:\Users\YOURUSERNAME\anaconda3\Scripts”

And we done. Next, you can open terminal:

conda init
conda create -n test
conda activate test
conda list

Voilla! Now you have empty environment with Conda 100%!

Categories
Deep Learning

Install Tensorflow GPU in Jupyter Notebook Windows

Note:

Please go to the latest update article here https://www.yodiw.com/fix-install-tensorflow-2-with-gpu-simple-version-2023/

Author

Jupyter Notebook from Anaconda is not coming with Tensorflow by default. If you are using Windows and want to leverage your GPU (mine is RTX 3060Ti), you can install Tensorflow GPU integrated with your Jupyter.

In this steps, no Python installation required, since we will using Python from Anaconda (~ version 3.9). This is also to reduce complexity of using different virtual environment in Conda.

Yes, in this step, the TensorFlow will automatically load into your default Jupyter root base environment and will not require installing a new one.

Categories
Windows

Enforce Dark mode to all website in Chrome

Dark mode is good or bad for your eyes? What happen when all website you are visit is in Dark mode? I’m running this experiments via Chrome. Yes, you can enable this easily. Follow the steps below

First, type this into your browser

chrome://flags

Search “auto dark mode” in the search box, then click Enable.

Then relaunch your browser. Now, everything you see will be in dark mode!


PS: Apparently dark mode is not good for my eyes focus after give a try for 15-20 minutes
Categories
Windows

Fix Customize resolution unable Nvidia Samsung 240hz

When I’m using 240hz with G-SYNC and Performing scaling on GPU, the resolution available is just 5120xs1440, 1920×1440, 1920×1200, and 1600×1200.

To add new resolution, here are the pre-requisities: Make sure enable 240hz and Scaling on GPU

Then go to regedit, choose “Find” with Key and value checked, enter keyword “nv_modes”.

Modify by adding this as end of the line

2560x1439x8,16,32,64=1F;3440x1440x8,16,32,64=1F;

Then reboot. Now you should see a new resolution in your Nvidia Panel

Categories
Windows

Fix GPU load 100% Desktop Window Manager Windows 11

When your PC feels laggy with Nvidia GPU drivers that keep hitting 100% under idle situations, there are several chances to cause that problem.

Either its virus, trojan on mining crypto, the NVIDIA drivers mismatch, misconfiguration on NVidia settings, Windows scaling issues and many more

After tweaking several stuff, I gave up and decided to solve this by revert back to Windows 10 with NVCleanStall. There result is amazing, now my GPU load RTX 3060 Ti is back to normal

Ideally, when your Windows is idle, your GPU load utilization should be like this

Fyi, this is running under 240hz of monitor refresh rate and using Windows 11 22H2

To solve the problem:

  1. Reduce performance by go to Windows start menu “Adjust the appearance and performance of windows”.
  2. Try to remove unnecessary animation and others stuff.

3. Install the latest Nvidia drivers and do not change the
4. Go to Task Manager, find Desktop Window Manager, right click and choose “Go to Details”. Find dwm.exe and right click. Set priority to Normal.

If the GPU load still high, Please check your Nvidia settings and change Power Management from “Prefer Maximum Performance” into “Normal” then reboot.

If this High GPU load still exists, the last resort is to “uninstall your GPU Nvidia Driver” and use the default driver from Windows (early version)

In my case, the 2021 drivers works like a charm for me!

Categories
Machine Learning

Install Tensorflow run with GPU RTX in Windows 11

Note:

Please go to the latest update article here https://www.yodiw.com/fix-install-tensorflow-2-with-gpu-simple-version-2023/

Author

This tutorial will help you to run Tensorflow in Windows 11 to use GPU for modelling, with the latest Visual Studio, CUDA and latest drivers. In this case, I’m using RTX 3060Ti Lite Hashes and Python 3.7 – 3.10 for Windows. (I use Python 3.10.9)

TLDR;

We need to install

  • Clean Windows Installation and GPU drivers card
  • the Microsoft Visual C++ (MSVC) compiler 2022
  • the CUDA Toolkit 11.8
  • the cuDNN libraries
  • Install tensorflow

Pre-requisites

1. Windows fresh installation to remove the complexity of issues or bugs is recommended here. I did re-install my Windows 11 in this step

2. Instead of using Nvidia Geforce Experience, I uninstall the GPU drivers (back to Microsoft Basic) and use NVCleanstall to download my RTX 3060 drivers without others bloatware https://www.techpowerup.com/download/techpowerup-nvcleanstall/

3. I use Python 3.9 from Anaconda https://www.anaconda.com/products/distribution

Categories
Uncategorized

Install Windows 11 22 H2 Without Internet

The quick fix, press Shift + F10 in wireless page and type

OOBE\BYPASSNRO

Categories
Windows

Fix is not digitally signed. You cannot run this script

If you got this by running the script in Terminal or Powershell, you can fix this Windows permission issue by running

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Categories
Uncategorized

Fix Chia Harvester did not respond. You might need to update harvester to the latest version

When your Chia not working, the plots not detected and you facing this issue as below:

2021-11-14T01:14:03.189 farmer chia.farmer.farmer         : ERROR    Harvester did not respond. You might need to update harvester to the latest version
2021-11-14T01:15:34.203 farmer chia.farmer.farmer         : ERROR    Harvester did not respond. You might need to update harvester to the latest version
2021-11-14T01:16:44.015 farmer chia.farmer.farmer         : WARNING  Respond plots came too late
2021-11-14T01:16:45.076 farmer chia.farmer.farmer         : WARNING  Respond plots came too late
2021-11-14T01:25:50.229 farmer chia.farmer.farmer         : ERROR    Harvester did not respond. You might need to update harvester to the latest version
2021-11-14T01:25:53.323 harvester chia.harvester.harvester: WARNING  Looking up qualities on C:\Chia\A2-1\plot-k32-2021-06-01-12-28-439ad908425b679f5b2461355304db7dfa9e2d5d43f15144f17f581de068bb9a.plot took: 166.60197138786316. This should be below 5 seconds to minimize risk of losing rewards.
2021-11-14T01:25:54.230 farmer chia.farmer.farmer         : WARNING  Respond plots came too late
2021-11-14T01:28:55.762 farmer chia.farmer.farmer         : ERROR    Harvester did not respond. You might need to update harvester to the latest version
2021-11-14T01:30:26.760 farmer chia.farmer.farmer         : ERROR    Harvester did not respond. You might need to update harvester to the latest version
2021-11-14T01:31:00.841 harvester chia.harvester.harvester: WARNING  Looking up qualities on C:\Chia\A1-4\plot-k32-2021-07-07-10-53-1551a1b70e7d90261a19047a186a4839bac323d6e2f581e74456d9b4e2ee7e91.plot took: 236.3222620487213. This should be below 5 seconds to minimize risk of losing rewards.
2021-11-14T01:31:02.674 farmer chia.farmer.farmer         : WARNING  Respond plots came too late
2021-11-14T01:31:04.106 farmer chia.farmer.farmer         : WARNING  Respond plots came too late
Categories
Devops

Adjust fan speed Dell R730 Poweredge

By default, it will going to 100% which consume more watt and noises. To adjust your Dell R730RD Poweredge fan speed, you can do this step.

Dell R730 Fan Speed

1. Get the IPMI ip address, username and password

2. Install the IPMI client https://www.dell.com/support/home/en-id/drivers/driversdetails?driverid=m63f3&driverid=m63f3

3. Open your powershell and execute these command

ipmitool.exe -I lanplus -U username -P password -H 192.168.18.7 raw 0x30 0x30 0x01 0x00

This command will enable the option to modify the fan speed. Next you can add this example to go 80% of speed

ipmitool.exe -I lanplus -U username -P password -H 192.168.18.7 raw 0x30 0x30 0x02 0xff 0x50

Or you can change the last two alphanumeric with the conversion from

https://www.rapidtables.com/convert/number/decimal-to-hex.html?x=75