php-fpm not starting pool

If for some reason adding a PHP-FPM pool doesn’t work, and you don’t know why, and you’ve spent 20 minutes bashing your head on it even though you’ve added the config file and everything.. make sure you’ve remembered to change the poolname at the top of the file from the [www] you copied from the www.conf file

I know most folk these days are using ansible and stuff to do this, but we add sites so rarely it’s just not worth setting up

Fix off screen windows in Windows 10

Do you have windows which are stuck off screen and there is no Move options in the right click menu on the taskbar, even if you hold the Shift key? Read on for a solution!

  1. Left click the app’s icon on the taskbar icon. If the app has more than one window open, click on the appropriate thumbnail.
  2. Press and hold the Alt key on your keyboard then press the spacebar and release. This will bring up a menu on one of your visible screens.
  3. Click ‘Move’ on the list, and use the cursor keys (the arrow keys) on your keyboard to move the program. The window will continue move while the key is held down. The window will usually be to the left or right of the screen where the menu popped up, but you may have to experiment to see where it is to move it back.

That it! Good luck!

April 2023 MECFS Update, minddump, family update

Apparently I’m moderate to severe. I’m 90%+ bedbound at the moment, triggered by migraines as we entered spring. Before that was just housebound.

Graph showing resting heart rate. Massive spike recently

Finally, managed to get GP appointment — ended up crying on phone to receptionist. They put me on 10-20 mg amitriptyline to try to prevent the migraines. The above is what that did. Considering 5bpm above my baseline generally indicates I’m suffering extreme exhaustion & severe cognitive symptoms, that spike concerned me. Stopped taking after 7 days, 3 days later it finally started falling. Not at norm yet, but did get my first migraine again, so that’s not so good, though that might have been partially due to the PEM from the GP visit;

GP called me in for an ECG due to that spike, telling me ‘come in or go to A&E’ — so went there. ECG was clear, though they want a 24-hour monitor to check the amitriptyline hasn’t done any damage. I have one coming up in 10 days, which will also be used to diagnose me for POTS — heart spikes when standing / sitting up.

Currently, it seems I have heart rate spikes when standing for any significant time, which makes cooking difficult to impossible :(.

I’m going to be going to hospital with the non-emergency transport service, hopefully they’re bringing a wheelchair for me, which will reduce the PEM (payback) from walking around the hospital.

I tried to dictate some of this post using my iPhone’s speech to text functions, but it seems that it doesn’t handle paragraphs in Gutenberg basically at all — the blocks written that way were ‘corrupted’ and pushing the ‘recover’ button just deleted all the text. Dictating is much easier than typing on my phone, but typing on my laptop keyboard is much easier than dictating.

I’m getting married! In the middle of July, in the registrars’ office in the library, with very close family only. Been thinking about hiring a wheelchair to help me get around, but they’re bloody expensive, and I’m in £3000 of debt. Hopefully be able to tackle that, but it is tough, I’ve not been able to do any side work, and I’m mostly just keeping on top of my day job with a lot of effort. New employer is awesome, and they’ve been so supportive it’s wonderful. Old employer let me keep my laptop, which is what I’m typing this on, and what I’ve been working on, which is wonderful, it’s helped keep me sane.

The ME clinic has discharged me because “there’s nothing more we can do for you”, but on my final session they did a ADHD assessment — it was positive for possible ADHD, so that may explain why I struggle to ‘rest’ effectively. Very hard to turn my brain off, so if you have suggestions for ways to relax when bed bound that don’t involve watching tv/films etc, I’d appreciate them!

That’s pretty much it for this mind dump/life update, hopefully I will have some useful information once the 24-hour heart monitor is complete. Might have POTS, might not.

Staying cool in a heatwave

I’ve been reading lots over the last little while, on how to stay cool in the current heatwave. This is all the recommendations I have. I’ll follow this up with explanations of each suggestion in another post later — writing this has taken a lot out of me! Links are for example, buy what’s available and fits your needs 🙂

The UK is not set up for heat waves of up to 40c, thousands of people will die, we may have power and water outages.

Things to do immediately

Things to do the day before the heatwave

  • Turn your fridge and freezer up — make them colder
  • Freeze bottles of water (Separately from the immediate water stock!). Old fizzy drink bottles are fine. Squeeze them a little before putting the lid on, to give the water space to expand into
    • For one of the bottles, fill it halfway up, and store in the freezer so you can get to it. When you want a cold drink, just fill it a bit, and shake. Instant cold water!
  • If you have south-facing windows, prepare to cover them. A sheet, tin foil, paper.
  • Prepare foods ready to eat cold. Tuna mayo, egg mayo for sandwiches, salads, cold meats, cook some beans ready. Consider cooking a pasta bake or similar and putting it entirely into the fridge
  • At night, open your windows:
    • If you have a multiple level house, open windows/doors on one side of your house on the bottom floor, and on the top open the windows on the other side — so air will flow in a diagonal
    • If you’re in a flat or bungalow, open the windows/doors on opposite side of the house
  • Try to stay at home, or indoors. If your office has air con, I’m jealous. Avoid heavy activity during the day
  • Cover any south facing window with tin foil / paper / baking paper / cardboard / sheets. Do this on the outside if at all possible. If you do it on the inside, you might overheat your windows, and break them. Expensive bills later!

During the heatwave

peeling warning sign

DO NOTs

Do not do any of these things. They will harm you!

  • Drink Alcohol
  • Drink too much coffee (A little to prevent withdrawal is a good idea, but give energy drinks a miss)
  • Use “Air Conditioners” that don’t have an extract hose, that you have to fill with water. They use up the indoor air ability to absorb water — and sweating is the main way you lose heat when it’s too hot, so they make you hotter and make fans work less effectively. It’s safe to use them with a window open
  • Use air conditioners with an extract hose out a window without sealing your window with these kits. Yes they’re ugly, but without them you’re literally pulling hot air in from outside!
  • Heavy exercise — including manual work — especially during the peak in the afternoon, 1200 – 2000 (12pm to 8pm)
  • Avoid cooking using the oven, or hobs whilst windows are closed. If you have to, use the microwave
  • Avoid travelling if possible. Trains will be very slow, aircon may fail. Roads may melt
Green node of traffic light

DOs

  • An hour after sunrise, or as close as possible, close your windows
    • During the heatwave, check the temperature sensor against the weather app, or your weather station. When the indoor temperature is close to the outdoor temperature, go outside a second to see if it feels cooler outside (in the shade!) than inside. If so, open the windows as recommended above — in a diagonal, or opposite side of your dwelling
  • Drink lots of water. One or two electrolyte drinks a day in the absolute peak temperature
  • If indoor temp is below outdoor temp, keep the windows closed. Make sure to open them when it’s warmer
  • Consider pointing a fan out the window once it’s time to open the windows. Use a tissue or light cloth to work out which way the natural wind is blowing air, and point the fan in the direction to work with the wind, not against it
  • Wear light, airy clothes. If you can, stick to 100% cotton, which will wick your sweat and help it evaporate, keeping you cooler
  • Wear a hat if you go outside, and remember your sunscreen — even if it’s cloudy
  • If you have cats, put out a few bowls of water, spread around the building for them to drink from
  • If you have plants, water them before the temperature peak
  • Shower with a lukewarm shower. You want the water just a little cool to the touch. Too cold, and you’ll confuse your body, too hot, and you’ll just make it worse
  • Freeze a hot water bottle. Wrap it in a towel to cool down
  • Wrap an ice pack in a towel, and hold it between your upper thighs. You have arteries there, so will cool your entire body rapidly
  • Damp a towel and put it around your neck
  • Put your feet in a bucket or large bowl of water
  • Don’t use your fans feature to have it change direction it blows air into — oscillation. You want to set up a breeze of air around your room, that’ll effectively multiply how much air is moving without needing too many fans
  • Put a bowl of ice in front of a fan
  • Damp a sheet, or wet duvet cover before sleeping
  • You can set up a fan to blow *into* a duvet cover, effectively inflating it with a constant supply of fresh air. You can use clothes pegs attach it to the fan’s grills

Comment your own tips below!

First Class Trouble: Crash and game logs

You can find Crash Logs from the game First Class Trouble here:
%LocalAppData%\FCT\Saved

You can get there quickly by opening a file browser (hit START + E at the same time), copy that line, and paste it into the address bar;

Crashes *should* pop up a window asking for permission to send to devs when the game crashes. If it doesn’t, you can always tweet them and see if they want the crash report 🙂

mosquitto connection refused

Hi all, if you’ve just upgraded mosquitto server on some flavour of linux and wondered why all your mosquitto subscribers and publishers on your network have just started failing, you may have fallen foul of this:

the new mosquitto 2.0 requires a ‘listener’ be configured to the ports required, or else it will only listen to the localhost:1883.

So if all your clients start failing after, edit the configuation and add the following line to the top:

“listener 1883”

See the post here for more information: https://mosquitto.org/documentation/migrating-to-2-0/

Anaconda/Spyder Python IDE Not launching [SOLVED]

If you’ve just installed Anaconda / Spyder IDE (available here for personal use) in Windows find it’s not launching, and neither is the Anaconda launcher, and you have a previous installation of Python e.g. Python 2+<3, remove Python 2.X from your Windows PATH variables and retry opening it.

To do this, right click on ‘My Computer’,
select Properties to bring up System Properties and
click ‘Advanced System Settings’.
Agree to the UAC prompt and click ‘Environment Variables’ then look for Python references anywhere, edit and delete as required.

Retry launching Anaconda/Spyder and it will now work.

If this doesn’t work, open a command prompt (Type cmd/enter from the start menu), navigate to the Anaconda installation (in Windows 10, ‘cd c:\programdata\anaconda3\” and try launching anaconda or spyder (.\scripts\spyder.exe) and noting any error messages that appear which can then be googled for the relevant fixes.

Hope this helps!

Garreth

Local Weather forecasting

Just a quick note to enquicken someone else’s google seaches in the future,

For local weather forecasting based on ambient air pressure, the algorithm you need is the Zambretti algorithm .

The original Hackaday article on this is here:
https://hackaday.com/tag/weather-forecast/

And some useful matlab code to get you started is here:
https://w4krl.com/zambretti-forecaster/

Finally, some tags to help google air pressure wheel forecast ambient air pressure bmp280 bmp180 air pressure forecast etc.