Configuration – Automatic Pause stops the game when we open the track building panel. This prevents traffic jams, but stops the game and progress unnecessarily.– When the window loses focus the game and progress stops. – Edge scrolling is very fast and sensitive in Railroad Empire 2. To disable automatic edge scrolling. – It is …
Author Archives: Laszlo Pinter
Prevent scrolling in Lucid Charts embedded viewer
When a Lucid Chart image is embedded in a web page, the Lucid viewer allows the accidental scrolling and zooming of the image. Currently, there is no option to disable these features. There is a simple way to prevent accidental interaction with the Lucid Chart viewer. We can place a transparent layer on top of …
Continue reading “Prevent scrolling in Lucid Charts embedded viewer”
How to turn off the NSFW filter in Stable Diffusion
When the Stable Diffusion AI image generator creates pictures, it sometimes flags ordinary outputs as Not Safe For Work (NSFW). If you use the software at home on your personal computer you may disable the NSFW filter. When you clone the Stable Diffusion GitHub repository, the txt2img.py file should appear in the scripts directory. If …
Continue reading “How to turn off the NSFW filter in Stable Diffusion”
ImportError: cannot import name ‘CLIPTextModelWithProjection’ from ‘transformers’
When Stable Diffusion throws the following error ImportError: cannot import name ‘CLIPTextModelWithProjection’ from ‘transformers’
Installing Stable Diffusion AI image generator
Install the Git client Install Miniconda 3 Clone the Stable Diffusion GitHub repository Download the latest Stable Diffusion checkpoint Configure the Python environment with Miniconda Copy the checkpoint file into the models directory To use Stable Diffusion Activate the Python environment Generate the image We will call a Python script with the –prompt argument and …
Continue reading “Installing Stable Diffusion AI image generator”
Creating Remix (React.js) web applications
Remix has an HTML first, simple data access philosophy. Most Remix web applications work without JavScript code in the browser. It is possible to create a complete dynamic data driven Remix web application with only server side JavaScript code with pure HTML in the browser. About Remix This back to the roots approach makes Remix …
Continue reading “Creating Remix (React.js) web applications”
ERROR: relation “…_seq” does not exist
PostgreSQL has three auto increment column types: The pdAdmin 4 user interface unfortunately generates the wrong CREATE script for existing tables: If we execute it, we get the error message: ERROR: relation “test_id_seq” does not existLINE 3: id integer NOT NULL DEFAULT nextval(‘test_id_seq’::regcl… The correct syntax which auto generates the sequence too, is: For more …
Filter search results in Visual Studio Code
When we search in web application source directories, we usually find the same resource and variable names in the build outputs too. To filter out false positive search results, enter the comma separated list of build directory names into the files to exclude field:**/.next, **/build
How to center a DIV with CSS
To center a DIV horizontally React example To center a DIV only vertically React example: To center a DIV horizontally and vertically React example For more information There is a great article by Jamie Juviler at 11 Ways to Center Div or Text in Div in CSS
Update Google Sheet with typescript
To be able to programmatically update Google Sheets, we need to enable the APIs and Service in Google Cloud Platform. Create a new Google Cloud project Enable the Google Sheet API