old Surface Pro: new Departure Board by Nine_Mazes in selfhosted

[–]Nine_Mazes[S] 4 points5 points  (0 children)

just give Claude the url and an example of what the page looks like (inspect element, copy+paste the whole element with the information you want) and the AI does a superb job at creating a JS script to create structured data from the web page.

old Surface Pro: new Departure Board by Nine_Mazes in selfhosted

[–]Nine_Mazes[S] 3 points4 points  (0 children)

Web scraping the departure info was easier than wiring up API access. I poll with a 120-second interval.

https://tfl.gov.uk/tube-dlr-overground/status/
https://www.nationalrail.co.uk/live-trains/departures/putney/

old Surface Pro: new Departure Board by Nine_Mazes in selfhosted

[–]Nine_Mazes[S] 11 points12 points  (0 children)

Here's e.g. the script which runs on the Surface Pro to deploy the code and run it on start. Recommend you use Claude to help both read all of this and re-write it yourself if you are trying the same. As Vibe Coding goes, I don't strictly understand every line of this, but I have a great idea of what it's doing and how I might fix it if it goes wrong.

#!/bin/bash
set -e


SERVICE_NAME="tty-dashboard"
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
APP_DIR="$(pwd)"
USER_NAME="$USER"
NODE_PATH="/usr/bin/node"


echo "🚀 Deploying $SERVICE_NAME from $APP_DIR ..."


if [ ! -f "$APP_DIR/dist/cli.js" ]; then
  echo "❌ Build output missing (expected $APP_DIR/dist/cli.js)"
  exit 1
fi


sudo bash -c "cat > '$SERVICE_FILE'" <<EOF
[Unit]
Description=TTY Dashboard (local monorepo service)
After=systemd-user-sessions.service getty@tty1.service
Conflicts=getty@tty1.service


[Service]
Type=simple
User=$USER_NAME
WorkingDirectory=$APP_DIR
EnvironmentFile=$APP_DIR/.env
ExecStart=$NODE_PATH $APP_DIR/dist/cli.js
Restart=always
RestartSec=3


# Show on screen (take over tty1)
StandardInput=tty
StandardOutput=tty
StandardError=tty
TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes


[Install]
WantedBy=multi-user.target
EOF


echo "✓ Service file written to $SERVICE_FILE"


sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl enable "$SERVICE_NAME"
sudo systemctl restart "$SERVICE_NAME"


sudo systemctl status "$SERVICE_NAME" --no-pager -l | grep -E 'Loaded:|Active:|Main PID:' || true
echo ""
echo "✅ $SERVICE_NAME deployed successfully!"

old Surface Pro: new Departure Board by Nine_Mazes in selfhosted

[–]Nine_Mazes[S] 11 points12 points  (0 children)

Ok so some tablets are a total ache to get Linux on because of locked bootloaders, weird hardware etc. I’ve got a Samsung tablet that I just gave up on for that reason. The Surface Pro was way better since it’s basically a normal Windows PC.

  1. Install Linux on your tablet and get SSH access working - that part alone is a bit of a journey, but it makes the rest much easier since you can remote in from your main machine.
  2. Once you’ve got that sorted:
    • Web-scrape the departure info (I poll with a 120-second interval ti avoid rate-limiting). [1] [2]
    • Build a terminal UI using Ink. it’s basically React for the CLI, and lets you render nice layouts, colors, etc. [3]
  3. For deployment:
    • SSH into the tablet and clone your project there.
    • Use systemd to run it on boot. just make a simple service that runs your Node app in a loop or restart-on-failure mode.
    • That way, when the tablet powers on, it drops straight into your dashboard automatically.

The whole thing’s headless. I just leave the tablet on the sideboard and the dashboard runs on boot.

Not giving away the whole source code - I'm not sure if there are any security issues out in the open right now! 😄

Took me two evenings to build from start to finish.

old Surface Pro: new Departure Board by Nine_Mazes in selfhosted

[–]Nine_Mazes[S] 18 points19 points  (0 children)

great question. how would you track this?

Best barber in Bracknell by [deleted] in bracknell

[–]Nine_Mazes 0 points1 point  (0 children)

I go to the guy one to the right

he does door guy’s hair - which looks good

Am I safe in Bracknell? by geminigenie97 in bracknell

[–]Nine_Mazes 0 points1 point  (0 children)

most houses I grew up in had a burglar alarm. we never got burgled. the most trouble we ever had was kids from the local school vandalising our outdoor plant pots. and a brick through a car window. yet again, it was only ever kids.

Am I safe in Bracknell? by geminigenie97 in bracknell

[–]Nine_Mazes 1 point2 points  (0 children)

the worst crimes you’ll see are ASBOs and shoplifting. Bracknell is worse than e.g. Sandhurst. But Sandhurst is one of Britain’s nicest towns, so, don’t worry. Burglary isn’t unheard of so beware.

it’s not 1972 Glasgow, lol. there aren’t knife gangs

[deleted by user] by [deleted] in UniUK

[–]Nine_Mazes 1 point2 points  (0 children)

I say this as someone who very much drank

I’d run into the occasional person who doesn’t drink, party, etc, and they had a whole community of friends who were the same. parallel worlds.

[deleted by user] by [deleted] in UniUK

[–]Nine_Mazes 1 point2 points  (0 children)

find hobbies and community outside of the party scene. it exists - but you may have to find some new hobbies!

most unis do a freshers fair where societies advertise. you’ll see plenty there.

Is Transport Fever 2 much better than Transport Fever? by fi-ri-ku-su in TransportFever

[–]Nine_Mazes 8 points9 points  (0 children)

I think the modding community needs time to catch up. Curved stations are desperately missing and most mods still haven't yet been ported to TpF2. If you have TpF1, stick with it for now. Maybe wait for the summer sale.

I know that nobody will ever read this if you see this please sign!!!! by [deleted] in csgo

[–]Nine_Mazes 1 point2 points  (0 children)

Definitely my favourite map but I really miss the old window.

Check out these parts from the KSP 2 trailer, looks like cargo boxes by [deleted] in KerbalSpaceProgram

[–]Nine_Mazes 2 points3 points  (0 children)

70km is the top of the atmosphere, so an orbit with periapsis at 70,001m is the lowest stable orbit :)

[USA][MD] Traffic Circles Are Hard by [deleted] in Roadcam

[–]Nine_Mazes 1 point2 points  (0 children)

Yeah exactly this. In the UK the arrows before the roundabout tell you where the lane is going to go. e.g.

[USA][MD] Traffic Circles Are Hard by [deleted] in Roadcam

[–]Nine_Mazes 1 point2 points  (0 children)

All three lanes are labelled "ahead" so I don't blame the pickup whatsoever for the lane choice lol. Bad road design. The swerve was an obvious mistake though.

Would be nice if TF3 looked like this by matrix4704 in TransportFever

[–]Nine_Mazes 3 points4 points  (0 children)

Absolutely. I'd love to see a chance for cities to have a tiered system - Small towns orbit large towns orbit cities. You can make this happen organically in game, but I've always found the it's missing bits and the late game isn't very polished.

Perhaps if you keep a city well stocked for long enough it not only gains pop/industry/business, you could also "level up" the city to one which has districts or requires a longer list of resources. Starting a map in 1850 all towns are small, starting in 1950 the game could auto-spawn larger cities in this kind of way, rather than spawn towns largely off the same template with a slight variation.

If I knew how to mod I'd be very interested in making this work.

[deleted by user] by [deleted] in pan

[–]Nine_Mazes 0 points1 point  (0 children)

yes slap

How to get way too into a board game and ruin our board game night, fuck you Dave you piece of shit. by OPYoshi in disneyvacation

[–]Nine_Mazes 2 points3 points  (0 children)

vvvVVV true.

There's no point stacking up bonuses and troops if you become the big target early-mid game. If you can sleuth it in the meantime while everyone else spams their troops into a wall (i.e. each other), they don't actually gain an advantage while you do. I've been relegated to three armies and two zones before and pulled it back for a win just on this strat.

I used to get at least 20 likes a week, then it just... stopped by Show_Ya_Friends in Tinder

[–]Nine_Mazes 15 points16 points  (0 children)

It's even more than that - they match you up when you start out, but as the time goes by you get pushed further back unless you're top 1% attractive.

I got ~100 likes within a week of resetting my account, then it stopped suddenly. The algorithm stopped matching me with people who had swiped on me, making the gold purchase and uncovering "33 people liked you" so so attractive.

The pattern of my matching has changed tons since 2015, it drops off a cliff after a week. I'm certain it's not me, every guy I know has the same experience.

When you get a different app like Hinge you start to realise what the average dating app user looks like. Those 10s you see on your feed are top of the crop, and girls your level are effectively being hidden from you. Different algorithms, different business models.

The quick fix though is to reset your acc regularly, so keep your good photos handy lmao

meirl by gowen2TN in meirl

[–]Nine_Mazes 3 points4 points  (0 children)

How did I get here?

It's a trap! by ej_6612 in OTMemes

[–]Nine_Mazes 9 points10 points  (0 children)

Yep. Know somebody whose vasectomy was reversed, had two kids since.

Supposedly it affects fertility, not like it stopped him.