RSSAmplifier

Blog

Compdigitec Labs

The place for interesting things

compdigitec.comRSS feed ↗10 posts

Latest posts

VCD dumping in Chisel 6.5 / svsim

Since Chisel 5, chiseltest (formerly known as chisel-testers2) is no longer supported and has been replaced with svsim in the default chisel-template. Unfortunately, the new system doesn t provide an easy way to dump VCDs from tests. On vanilla Chisel 6.5 this ended up requiring two separate hacks against EphemeralSimulator: Third bonus hack: use the local [ ]

Dying SSD with “Media and Data Integrity Errors”

Dying SSD which caused system freezes, fsck issues, etc.

us-east-1e doesn’t have t3 instances

us-east-1e (although AWS may randomize zone mappings) doesn t have t3 instances! This may cause the following error messages. The requested configuration is currently not supported. Please check the documentation for supported configurations Your requested instance type (t3.large) is not supported in your requested Availability Zone (us-east-1e). Please retry your request by not specifying an…

ERRINFO_CLOSE_STACK_ON_DRIVER_FAILURE error in FreeRDP

Connecting to a Windows 10 machine yielded the following error. https://github.com/FreeRDP/FreeRDP/issues/6604 hints in https://github.com/FreeRDP/FreeRDP/issues/6604#issuecomment-746104066 that it might be an issue of hardware acceleration. The solution is to disable RemoteFX for remote desktop.

Scala.js – Referring to non-existent class

Related issue: https://github.com/scala-js/scala-js/issues/629 If the issue is coming from a shared module being used in both a Scala.js and JVM setting, the issue may be that the shared module is not being compiled for Scala.js. We can fix that as follows by compiling it for both. Mill example below:

Serving VNC via HTML5 using noVNC and x11vnc

# May need to set up x11vnc password beforehand! # -forever and -loop are important to makes sure it keeps working nohup x11vnc -create -forever -loop -usepw & # noVNC git clone https://github.com/novnc/noVNC.git --depth 2 cd noVNC # Set up SSL openssl req -x509 -nodes -newkey rsa:2048 -keyout novnc.pem -out novnc.pem -days 180 nohup ./utils/novnc_proxy --vnc localhost:5900 --cert novnc.pem…

Accessing SQL databases from Scala

You can run the database with Docker (example) as follows: Reference instructions for connecting to the docker instance:

Local build in npm

npm install # Install dependencies npm run build # Needs a like like "build": "tsc" in package.json. For TypeScript, just run tsc directly if missing npm install -g # Installed compiled result to global packages

Python classes, metaclasses, and instances at a glance

For more details: http://www.thedigitalcatonline.com/blog/2014/09/01/python-3-oop-part-5-metaclasses/

git-strip-above

git format-patch $1..HEAD -o wip & git reset --hard $1