To create a new mod project with BepInEx see https://docs.bepinex.dev/articles/dev_guide/plugin_tutorial/index.html
Error: Route.post() requires a callback function but got a [object Undefined]
If you use the NodeJS Express server, you have just created a new route with the code like this
router.post('/my_new_action', authenticationMiddleware, myController.myNewFunction);
and created a new function to handle the request, like
async function myNewFunction(req, res) {
...
}
and get the error message:
…/node_modules/express/lib/router/route.js:211
throw new Error(msg);
^Error: Route.post() requires a callback function but got a [object Undefined]
make sure you export the new function in the controller.
module.exports = {
myFirstFunction,
myNewFunction
};
Rover Construction in Kerbal Space Program
To construct a rover we need a base to attach the wheels, seats, and the power source.
Structural plates
We can start with structural plates, but we need to apply some tricks to attach them to each other.
- Place one plate in the horizontal position

- If you cannot attach the second plate directly to the edge
- Attach the second plate first in a 90° angle

- Turn on Snap

- First, rotate

- then move it into position

- Attach the second plate first in a 90° angle
Stability assistance
Even if the rover performs fine on Kerbin, the low gravity on the Mun will cause the rover to roll in a quick direction change, a steep curve or during braking.
- Move the wheels as high as possible on the body, so the center of mass is as low as possible.
- Add Small Inline Reaction Wheels close to the center of mass, and set the Reaction Wheels to SAS only. In the default Normal setting as you control the rover the reaction wheels would flip it in the same direction.

Installing ngrok
“ngrok is a simplified API-first ingress-as-a-service that adds connectivity,
security, and observability to your apps with no code changes”
Create a free ngrok account
- Sign up for a free ngrok account at https://ngrok.com/
Install ngrok
- Download the ngrok application from https://dashboard.ngrok.com/get-started/setup to the Downloads directory
On macOS
- Create the ngrok folder in your user’s opt directory
mkdir ~/opt/ngrok - Step into the new directory
cd ~/opt/ngrok - Move the downloaded installer into the new directory. Replace THEVERSION with the version of the downloaded file
mv ~/Downloads/ngrok-vTHEVERSION-stable-darwin-amd64.zip . - Unzip the ZIP file
unzip ngrok-vTHEVERSION-stable-darwin-amd64.zip - To be able to start ngrok from any directory, add the binary to the PATH. Add this to your ~/.bashrc file where the rest of the PATH statements are
PATH=~/opt/ngrok:$PATH - IMPORTANT: Restart all your terminals for the PATH change to take effect
Verify the installation
When the terminals have been restarted for the PATH change to take effect
- Test the installation with
ngrok --version
Connect to your ngrok account
- Execute this in the terminal to connect to your ngrok account. Get your authentication token from your setup page at 2. Connect your account
ngrok config add-authtokenYOUR-AUTHENTICATION-TOKEN
Enable Surround, PhysX for multiple displays on ASUS ROG Strix laptop
If you have multiple monitors, you can connect them to your laptop and set up an immersive gaming environment.
Connect the monitors
- Connect one of the monitors with an HDMI cable to the large HDMI port of the laptop
- Connect the other monitor with a USB-C to DisplayPort cable to the USB 3.2 Gen 2 Type-C/Displayport/Power Delivery combo port next to the HDMI port (connectors 3 and 4 on the picture below) at the rear of the computer.

Configure the monitors
- Start the NVIDIA Control Panel application

- On the Configure Surround PhysX page select Span displays with Surround, and click the Configure button

- To view the keyboard shortcuts click the Keyboard Shortcuts button

- Enable the first two shortcuts and click OK

- Set the bezel correction to set up the displays for a continuous image
- Click the bezel correction button and adjust the offset of the two displays

- Click the bezel correction button and adjust the offset of the two displays
- To enable the Surround configuration click the Enable Surround button

- OPTIONAL: If you want seamless experience, but don’t mind to cover a stripe in the middle of the screen, on the Change resolution page set the resolution to the bezel corrected value. This may not work for certain games where the center line contains important information.

Enable all displays
When you set up Surround, PhysX, the laptop built-in display gets disabled. To be able to use all displays
- Open Windows Settings
- On the Display page click the down arrow next to Show only on 2

- Select Extend these displays

- Using Alt-Tab quickly find the confirmation popup and click Keep changes

- Select the large, combined display and make it the default display, so games start to run on it

Working with the surround display
In some programs the middle of the screen contains important information, and it can be distracting to be divided by the bezel. There are some tricks we can apply to circumvent it
Kerbal Space Program
Hold the the middle mouse button and pan the screen to move the important object out of the center of the view.
ASUS ROG Strix laptop configuration
Optimizations for windowed games in Windows 11
To enable Optimizations for windowed games in Windows 11
- Select the Start button, then select Settings .
- In Settings , select System > Display > Graphics > Change default graphics settings.
- Select the setting under Optimizations for windowed games to turn it On.
- Restart your game.

Apollo missons in Kerbal Space Program
In Kerbal Space Program you can recreate the Apollo missions using the stock parts.
Apollo 11
An awesome Apollo 11 tutorial is located at Apollo 11 tutorial. Follow the instructions, but I have made some changes for easier operation.
Notes
Construction
- I have added the Heat Shield (2.5m) to the bottom of the top command module just in case the command module does not have heat shield.
- Added the Kelus-LV Bay Mobility Enhancer (retractable ladder) under the hatch of the lander for easier return after Munwalk.
- Added solar panels to the lander and the service module.
- Disabled the yaw, pitch, and roll functions of the RCS thrusters on the command module and all thruster blocks to Save on monopropellant
- Take EV Fuel Cylinders from Cargo with you in the command pod, the lander, and on the Kerbals instead of parachutes to extend the length of EV operations.
Flight
Towards to Mun
While the Command Module and the Lander are approaching the Mun we want to use the Command Module’s engine. When we dock the Command Module to the Lander, the staging changes, and activates the Lander’s engines. The fuel gages indicate the active engines. In this configuration during the Mun orbit insertion burn the Lander’s engines will work against the Command module’s and make it very difficult to achieve a good Munar orbit.
- Right-click the Lande’s engine in the staging block and click the Shutdown Engine button. If you have multiple Lander engines, do it for all engines.


In Mun orbit
- After circularizing the Mun orbit, before the lander separation, stage one more time to activate the LEM main engine.
Landing on the Mun
- As you descend, set the SAS to retrograde to keep the lander upright and be able to always reduce the speed with the main engine without the need for orientation adjustment.
On the Mun
- In case you run out of monopropellant in your EVA Jetpack, plant a flag under the hatch, so you can climb on it and get back to the lander.

Take off from the Mun
- To get the heading of the command module, turn it to prograde. This is the direction you need to get into orbit with the lander for the rendezvous.
How to move the Desktop, Documents, and Pictures folders out of OneDrive on Windows 11
Some people, like me, don’t want to pay Microsoft as OneDrive fills up quickly with documents and pictures.
To move your Desktop, Documents and Pictures folders out of OneDrive and disable OneDrive
- Make a backup copy the contents of the Desktop, Documents and Pictures folders into another directories on your computer incase anything goes wrong during the configuration change.

- Open OneDrive

- Click the gear icon

- Select Settings

- To stop OneDrive auto start with Windows turn off Start OneDrive when I sign in to Windows

- Click the Manage Backup button

- Click the Stop Backup link

- Click the Stop Backup button

- Click the Close button

- Disable the backup of all folders and click the X in the upper right corner

- On the Account tab click Unlink this PC

- Click the Unlink account button

- Close OneDrive with the X in the upper right corner

- Click the OneDrive icon in the tool bar

- Click the gear icon and select Quit OneDrive

- Click the Close OneDrive button

If you need to change the default Desktop, Documents and Pictures path
When you disable and quit OneDrive, the default location for Desktop, Documents and Pictures should change to C:\Users\YOUR_USER_NAME\…
If new files are still saved into the OneDrive folders
- Open Regedit
- Hold the Windows key and press R
- Type regedit into the field and click OK

- Click the Yes button to allow Windows to start the application
- Make sure the Address bar is visible in Regedit
- In the View menu you should see a checkmark next to the Address Bar item
- In the View menu you should see a checkmark next to the Address Bar item
- Paste
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
into the address bar under the menu and press Enter
- Check the value of the items with absolute paths to make sure those point to your user folder, not the OneDrive subfolder.

Where are my files
Disabling the OndeDrive backup of the folders OneDrive re-created the original Windows folders in your user directory: Desktop, Documents, Pictures. 
- Move the files and folders from your OneDrive folder to the newly created Desktop, Documents, Pictures folders. Leave the Where are my files shortcut in the OneDrive folder.

How to set the drive where files are saved
To set the drive where Windows saves files open Settings
- In System select Storage

- Click Advanced storage settings

- Scroll down and select Where new content is saved

- Select the destination drive. If you have only one drive, C: is the only option.
How to access the BIOS of your computer
To access the BIOS features to configure your computer, while the computer is booting, press the key stated in the table.
| Model | Key to press |
| ASUS ROG Strix | F2 |
Turn off the boot up sound of the ASUS ROG Strix laptop
To turn off the boot up sound of the ASUS ROG Strix laptop
- Start the ARMOURY CRATE application
- On the Home page select the second tab at the bottom of the screen, and unselect the Boot Up Sound

After a BIOS update you may need to set this again.