Sunday, April 26, 2026

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

 I tried a couple things, downgrading, reinstalling, followed some github links talking about /usr/local/lib/python3.10/dist-packages/basicsr/data/degradations.py. While this sounded cool, my dist-packages was empty in that location.

the correct path is in your home user, in the .local folder:

home/(youruser)/.local/lib/python3.10/site-packages/basicsr/data/degradations.py

Hope this helps future me. 

Thursday, August 22, 2024

Pulling local admin accounts on a windows system WITH POWERSHELL

 There’s a couple ways to get them, I’m sure you’ve been around the internet looking.

The Powershell scripts I use:

Get-LocalGroupMember -Group ‘Administrators’ | Where-Object ObjectClass -ne ‘Group’ | Select-Object Name -ExpandProperty Name

This will give you all the locally/directly provisioned admin accounts. Note this is only user accounts, not groups. I didn’t care about groups in this instance.

Sometimes you can get a Powershell error “Get-LocalGroupMember” something about a cmdlet not being there, or something about array comparison.

Well, there’s a script for that too, using CIMinstance

Get-CimInstance Win32_GroupUser | Where {$_.GroupComponent -like ‘*admini*’} | Where {$_.PartComponent -like ‘Win32_UserAccount*’} | Select-Object -ExpandProperty PartComponent | Select-Object -ExpandProperty Name


And there you go, pulling directly provisioned user accounts from the local admin group. This should work for any other group too. And you can if than else the results to look for specific accounts. I like to throw the script into a variable and then run the if than else against the variable.

I wrote this all on my phone, so I’m sure this is riddled with typos, but it should at least get you (me) going.

Wednesday, May 1, 2024

Samsung refrigerator not making ice

How I got my stupid fridge to work again.

Normally, I press/hold the blue button till it chimes.






Well that didn’t work this time. Darn. I read that the filter might be the issue. I'm using some cheap amazon ones, but I just swapped it not long ago. Either way, I swapped that and did the blue button reset.



Still nothing. I had an old fridge that the lines would freeze and I would have to hit them with a hair dryer for an hour, thawing out everything in the freezer. But as far as I could tell, this fridge had a better design. Another dead end.

Being a fan of the IT Crowd, I listened to Roy Trenneman and turned it off and back on again. Just the Ice Maker. I had to hold the Door Alarm button to unlock the Ice maker toggle.

That didn’t work.

At this point, I basically accepted defeat and I turned off the Ice Maker. After probably a day, maybe two, I had enough courage to try fixing it again and turned it back on. A day later it was full of ice!

So, as per usual, I have no idea what step actually fixed it.

Could have been the long turn off, could have been a combination of the filter and resets. For all I know, the fridge fairy came and fixed it!

Either way, its working again, so I'm not going to question it.

Thursday, June 29, 2023

Getting RTL8812au passed to Virtualbox VM (Ubuntu)

There are no guarantees, I just write these notes so I can come back to them.

First, get the dongle working on the host OS.
After going through a couple different drivers, the one that finally worked was this method:
  1. sudo apt install git build-essential libelf-dev linux-headers-`uname -r` debhelper dpkg-dev dkms bc
  2. git clone https://github.com/aircrack-ng/rtl8812au
  3. cd rtl8812au
  4. sudo make dkms_install
unplug usb wifi and plug it back in, it should be blinking now.

Click Wireless in the upper right, WiFi-Settings, click on the RealTek controller at the top of the screen, I'm doing this in ubuntu 20, it looks like internet tabs at the top, and connect it to your network. Additionally, disconnect the primary network adapter from the network so there's not confusion later. (Disabling it will disable both, at least it did on my system.)

On the VirtualBox Network settings, add a new network adapter. Bridged and allow promiscuous mode (Allow All)

Start the VM and it should be connected.

Thursday, September 15, 2022

Installing VMWare Workstation Pro on Ubuntu

 Environment: Ubuntu 20

Software File: VMware-Workstation-Full-16.2.4-20089737.x86_64.bundle


Bundle files obviously don't do anything. To make the file executable, go to the terminal and type:

chmod u+x (filename)

then

sudo ./(filename)


In this case:

(Change to directory where the file is located)

chmod u+x VMware-Workstation-Full-16.2.4-20089737.x86_64.bundle

sudo ./VMware-Workstation-Full-16.2.4-20089737.x86_64.bundle


for VMWare,

sudo apt install gcc

sudo apt install make

sudo apt update

Monday, December 13, 2021

Updating DNS servers via command line

Problem: Updating DNS to a static address on a subset of users.
No VLANs
No network segmentation
Basically, can't be done via DHCP due to hardware and previous configuration limitations.

Using CMD, the DNS servers can be changed from DHCP to Static, if you have a remote tool (LogMeIn, Splashtop, etc) that can connect to the computers and run CMD line instructions, this could help. WMIC node: or powershell may allow you to run the same if your environment is compatible.

Find the name of the interface:

netsh interface ipv4 show config

Also, ipconfig/all will work

Update DNS to static:

netsh interface ipv4 set dns name="(InterfaceName)" static 1.1.1.1

Add second DNS server:

netsh interface ipv4 add dnsserver "(InterfaceName)" address=8.8.8.8

Sunday, August 16, 2020

Mac Tip: Full screen browser

 I accidentally found out that Control+Command+F makes the browser full screen. The same as F11 in Windows.


The more you know.

Tuesday, June 16, 2020

You no longer have access to Planner

I had a fun one recently, I was looking through the different things I could do to a Planner (Microsoft Tasks) and accidentally Left the plan. This resulted in me being kicked from the Team (one where I was the owner) and with me, came the files... All the files started to be deleted one by one, they went to the recycle bin so they were easy enough to be restored, but weird anyway.

So, you accidentally left a Plan and now that you're part of the Team again, you get the following message


Going through planner online gives you the option to request to join the Plan, but those requests go no where.
No one that is currently part of the plan can add you, and once leaving and rejoining the plan, it says you're part of the plan, even though you can access.

How I fixed it:

Go to the Sharepoint of the Team.
Go to Conversations, this will open the Outlook Web App for the Team.
Click the 3 dots and go to Planner


For me, this opened up Planner web and restored my access.
I was also able to access the Planner tab in the Team.

Thursday, May 21, 2020

You can't add planner to a private channel in teams! Or can you?

Spoiler alert: you can.

Once the planner/tasks group is created, get a link to the planner/tasks and make a website link in the private channel.

Elegant? no
Effective? yes?

Control Private Channel Creation in Microsoft Teams

Well, private channels can get out of hand.
I had some employees make private channels, leave them, and it resulted in orphaned channels that no one could access. Microsoft will probably come out with powershells to take ownership, but as of now, I can't find anything.
So...
Like all admin solutions, I want to take it away.
The hammer approach is to remove employees from team ownership.
But what if you (IT) don't want to manage every teams members? Which is a PITA.
Teams Policies!
In the MS Teams admin center
Teams>Teams Policies
There it is! Create Private channels. I'll just turn that off. I'm an admin, so I should still be able to make private channels.
Turned it off, tested making a private channel, good to go.

BUT WAIT... there's more.

Any O365 change takes 24hours to do anything. In 24 hours I couldn't make private channels either. DOH!

So I can create a new one, but then I'd have to add EVERY PERSON TO THE POLICY...
Or...

What worked for me:
I left the Global policy as follows
Custom policy:no
Discover private teams:Off
Create private channels:Off

Then I created a new policy
Custom:yes
Discover private teams:Off
Create private channels:On

Then I added myself and the other admins to the new policy, 24 long hours later everything is working well.
I can create private channels, and no one else can, unless I say they can. Because I am the admin, and that's how it works.

If you're reading this, I assume you have already completed this step, but if not, here is the document to restrict group creation:
https://docs.microsoft.com/en-us/microsoft-365/admin/create-groups/manage-creation-of-groups?view=o365-worldwide

Monday, March 16, 2020

Slow NAS with Ubuntu and mapping a sabma share to fix it

Installed TerraMaster F4-210 with Refurb Hitachi 7k4000 drives in Raid 0, so it should have been pretty fast.
When connecting to the drive and moving files, I was sitting at about 50MB/sec, a few spikes to 60, and some drops to 40. While disappointed, I saw people getting more like 30MB/sec, so I figured that's all I'd get.
Moving on, I knew that I needed to have the NAS mount on boot for my Plex server, so I looked into that. I used a Samba share, using this website's directions:
https://www.ghacks.net/2009/04/19/auto-mounting-a-samba-share-in-linux/
sudo mkdir /[name]
 

My fstab entry:

(remember, sudo gedit to get to the graphical text editor to edit this file)
//[SAMBA IP/FOLDER] /{DIRECTORY] cifs credentials=/[PATH TO CREDENTIAL FILE],uid=1000,gid=1000 0

for the credential file, create a doc with:
username=[USERNAME]
password=[PASSWORD]

Note:
Install cifs with sudo apt install cifs-utils

Cool, this works.

BUT...

When I went to transfer files to my NAS, I jumped to 75MB/sec steady. Some spikes to 88MB/sec as well.

Friday, January 24, 2020

Windows update on Windows Terminal server (Powershell)

This is done on a core server 2016
in powershell

Install print services:

install-windowsfeature print-services

enable the print spooler:

set-service spooler -startuptype automatic

start the print spooler:
net start spooler

if you can't pint the print server, you may have to tweak the domain firewall. Or turn it off with:

set-netfirewallprofile -profile domain -enabled false

Then manage the printers through another server that runs a GUI because you're not a complete masochist.

Monday, November 4, 2019

Microsoft Teams opening up a blank login page

Hello,
I have no screen shots of this, but this is what is happening:
Windows 10, 1903
User opens Teams, it asks them to login then directs to a blank white screen. If you close the screen it brings you to a teams error -4c7
To fix this:
Step 1
(This step is possibly unneeded)
Apps and Features, remove teams. This won't remove it and you will be able to uninstall it over and over without it removing.
Repair Office, a quick repair is all that's needed. Then Teams will be ghosted.
This will allow you to delete the teams folders in App Data

Step 2
App Data > Local > Microsoft > Teams/TeamsMeetingAddin/TeamsPresenceAddin

App Data > Roaming > Microsoft Teams

App Data > Roaming > Microsoft > Teams

After deleting those folders, log into portal.office365.com and download Teams again.

User will be presented with the same white screen.
Close it and they will get a web login page, after putting in the email address Teams will pop up with a User/Password screen. Then finally a password on the previous web login page.


Update:
This may be tied to SSO

Update:
You may be able to just delete the Teams folders from App Data

Wednesday, October 2, 2019

Google Bing and Duckduck go redirecting

Note: This was a very specific issue I ran across in my environment. It came down to my Meraki MX84. It was running firmware 14.39 at the time, but I don't think that had anything to do with the issue.

The issue:

Search engines www.google.com www.bing.com and www.duckduckgo.com are being redirected. Yahoo comes up, but the search doesn't work. On some computers there is a TLS error, implying I am not running the right TLS settings (I had all checked). Others are being redirected to com.com.
I am able to get to www.google.com using a proxy server (good old spys.ru, or spys.one as of 2019).  But it thinks I'm a bot and the search itself isn't working.

Running a traceroute, some went to google's IP 172.217.2.4, others went to a forcesafesearch.google.com...
I initially ignored that and kept troubleshooting, but that was key information.

On the MX84, there is content filtering. Under Search Filtering, I had Web search filtering as well as Restrict YouTube content enabled. These were forcing the safe search option in the three browsers, and breaking the connection to the websites. Disabling the search filtering fixed my problem. If you're experiencing the same, might want to check content filtering on the firewall.

Monday, May 27, 2019

Wacom Intuos CTH 480 not working in photoshop

Windows 10 build 1809, fully up to date as of 5/27/2019
Photoshop CS6

Situation:
The Wacom pen would work as a mouse, I could draw in paint, but I could not draw in Photoshop. As soon as PS was the focused window, the pen would not move the cursor at all. The strange part was, I was able to use my finger on the Wacom tablet and the cursor would move in PS, I could even draw if I clicked the mouse button on my laptop and scribbled on the tablet. Obviously no pen pressure. I was able to draw in Illustrator also, weird.

I tried the normal fixes, disabling Windows Ink in the Wacom settings, even disabling Windows Ink totally with registry edits, but non of this helped.

What ended up fixing this is uninstalling all Wacom and reinstalling. Now, I did this uninstall/reinstall dance multiple times. The time it ended up working I did this:
Went to Device Manager (right click This PC and go to manage) and uninstalled the Wacom Tablet, including drivers (located under Human Interface Devices).
Then I uninstalled all versions of Wacom in Apps & Settings.
I downloaded and installed 6.3.34-3
Link to driver homepage: https://www.wacom.com/en-es/support/product-support/drivers
Direct link to driver: http://cdn.wacom.com/u/productsupport/drivers/win/professional/WacomTablet_6.3.34-3.exe

If these don't work, find the most recent driver on the wacom website. And who knows, maybe microsoft will auto recognize these down the road, like they do with wireless mice and keyboards. Making this whole post irrelevant.)

Once that version is installed, and Adobe is all up to date, go into Photoshop and move the mouse, if it works and its still not writing, make sure to click the buttons at the top of Photoshop for Always Use Pressure for Size.

Tuesday, April 23, 2019

Kali not updating

Environment: Fresh Kali download running on VirtualBox 6.0 (current)
Problem: after clean install, it will not update.

I originally found this trying to install OpenVAS.

sudo apt-get install openvas 
returned 
Unable to locate packages. 
sudo apt-get update did not do anything either. 
sudo leafpad /etc/apt/sources.list 
  
In that file, I copied the correct source file repository from here: 
 I used the Kali-Rolling 
deb http://http.kali.org/kali kali-rolling main non-free contrib 
Then I was able to run: 
Sudo apt-get update 
Sudo apt-get dist-upgrade (this took a VERY long time) 
Sudo apt-get install openvas 

Tuesday, March 26, 2019

netgear r7000 reboot loop with tomato

Situation:
Reboot loop when connected to WAN.
Disconnected WAN allows boot.

Fix:
I had this when I turned on "Check connections" under multi-wan.
Disabled that setting and didn't have a problem anymore.

Monday, March 25, 2019

Jabra 65t connected but no sound


Problem:
no sound to bluetooth headset. Headset is connected.

Hardware:
Jabra 65t bluetooth headphones
Apple iPhone 7 plus

Fix:
Remove Jabra App in my situation. There are some other fixes that might work for you that I went through below.


I recently had an issue where no sound would go to the headset. It was connected to bluetooth, and pressing the button on the right headset would control what I was listening to. I was able to open the last App I was listening too (which is a super useful feature of these, the Airpods do not do this.) and I was also able to stop it from playing using that button. I was able to bring up Siri with the button and the assistant would show what I said, however, I never heard what she had to say.

Using google searches, I tried restarting my phone, resetting my network settings, nothing seemed to work.

I was able to unpair and pair the device, and I would hear sound for about 15 seconds before sound would turn off again. It would click and sounded like white noise. This should have been my clue to the issue, but I didn't put 2 and 2 together for quite a while.

After some more fruitless googling, I starting thinking about that sound in my ear, that white noise. When I would launch a podcast the headset would click like it was getting ready to do produce audio, but then returned to white noise. And when I would stop audio it would again, make sounds like it was changing audio settings. But only white noise. The headset was connected fine, evidenced by Siri responding, the headset turning on in my ear, the phone seeing the connection etc. Then it finally clicked, HearThrough. It was the sound I would hear when HearThrough was turned on in the Jabra App. I played around with the hear through settings and it would turn it on and off in my ear, but as soon as I left that screen, the 'hear through' sound would come back.

The root problem: the Jabra App. As soon an I uninstalled that app, I could hear regular sound again. I might reinstall the App because I really liked the built in white noise tracks it had, particularly the Rain and Ocean tracks. But if the hear through issues are going to be a regular issue, I'll just have to find other white noise tracks.

If you have any good looping white noise tracks, let me know!

Friday, February 22, 2019

Virtualbox 6.x Ubuntu 18 and Auto Resize Guest Display

Hello,
I use Ubuntu in a VirtualBox machine as my primary web browser. My host OS is Windows 10. (I should probably swap this around, but whatever) After my 1803 update, virtual box crashed pretty frequently. At the time I was on one of the 5.x versions because it was stable. After the update and even 5.x being unstable, I went to 6.x
And by unstable, I mean the VMs refusing to load, getting error messages to reinstall virtual box, and even then then wouldn't load. Even new VMs would fail to load after installing Ubuntu.

So, I got 6.x working semi ok. I would get memory crashes of the VM, but I was able to restart. (Instruction at 0x... reference memory at 0x...) However, the video driver was being a pain. It wouldn't auto resize, and installing software would crash the display, reverting to 800x600.

To fix this, I tried more and less cpu cores, increased and decreased video memory, enabled and disabled 3d acceleration. None of this worked by the way.

I changed the graphics controller to VboxVGA and auto resizing was fixed.
And so far, it hasn't has a memory crash for the past hour, I will update if that comes back.

Tuesday, February 12, 2019

Group policy is not applying even though it says it is applying

I map my drives via a group policy. That group policy maps different drives to different user groups via item level targeting. The drives are mapped via Update (vs Create/Replace/etc)
I had one user that was not mapping drives.
Checking on the DC, it listed the group policies that applied, including the one I needed.
gpresult /r also showed the policy was applying, even though the shared drives were not there.

I logged in as another user, and the new user mapped their drives.

Original user did not.

What I did to fix this:

netsh winsock reset

(this was done logged in as the user)

Dumb, right?
Well, it worked in my situation.

Domain level 2012
Computer Windows 10 1803
Group policy with item level targeting.

ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor'

 I tried a couple things, downgrading, reinstalling, followed some github links talking about /usr/local/lib/python3.10/dist-packages/basics...