

Why do you need websites to make money?


Why do you need websites to make money?


Everytime something asks for my ID, I just abandon it and never use it again. I haven’t missed them


I know people who like being able to see their camera remotely. For example ,if someone is trespassing on their farmland, or business. I don’t use this feature personally, but I can see why people might want it


Yepp… memories of using the light level curve tool and white point and black point and the perspective tool. Then going in with the white brush and deleting any specks of dust that remained, and comparing to the original to make sure no lines got deleted


Having done a lot of scanning in the past, no matter how gentle you are, the book will be damaged; at least a little bit. Even if you do it manually, by hand, really slowly.
It’s the unfortunate reality, because books are not designed to be held open and pressed flat onto an unyielding surface. If you don’t press flat, you’ll get curved pages and bad quality (dark) images, which is sometimes ok and fixable by software, but often not. You can get really fancy expensive machines, but they still don’t fully solve the problem.
I did scanlation editing stuff for a while, and half my job was making the raw page scans look presentable, because the scanners didn’t want to destroy their manga (understandable).


It’s a lot cheaper, at least where I live. It’s also way more convenient to just put on the robot vacuum mop thing every few weeks. But you do you man


That still needs wifi access though. Internet access is a different story, I can’t think of almost anything that needs internet access. Maybe security camera.
Is it easy to isolate a device to LAN only via router? I never figured out how to do it.


Does it let you paint a square in your map layout to not mop there? Or split an incorrectly merged room into two? Or select specific rooms to do more often? I’m sure the remote is great for basic use though, but there’s a lot you can’t do with it


When I was a senior software engineer, I was offered a management position… I said no, because I knew I would hate it and do a terrible job. I actually like programming, and I absolutely hate asking an A.I. to do it for me.
Actually funny story. Or maybe unfunny. I was doing a web project a while ago, and the host site I was trying out asked me to describe my project. I naïvely did so, thinking it was like a description or something. When I hit next, the site A.I. automatically did my entire project for me. All the code, folder structures, API calls, everything.
I just sat there feeling bad feelings for a while. I think it actually made me a bit depressed. Took all the joy out of the project and I never touched it again.


So you can turn it on and access complex settings like map layouts and scheduling from your phone. Not sure how else you would do it. You can implement wifi securely, in this case they didn’t


These corporate jerks see themselves as Aragorn but in reality they’re Wormtongue


I agree with you that the current thing seems innocuous enough… but I think we’ve all been traumatised by recent events. Things have had a way of escalating extremely quickly, like: “oh yeah, we just approved 10,000 more satellites without even giving the general public a chance to react, so what?” Also, someone should coin that anime name.


People also said A.I. wouldn’t happen. I don’t trust them to not find some way to implement it in the worst possible way that impacts all of humanity. Like permanent daylight or something so there’s never time to sleep but now there’s 12 more hours in the day


Sure, I’m typing it out on my phone though so excuse any mistakes:
# build.sh
php build.php
// build.php
<?php
// Just contains all the directory definitions and utilities in one place
require once __DIR__ . './bootstrap.php';
require once __DIR__ . './utils.php';
// Static assets
ensureDir(DIST_DIR);
copy_all_files(ASSETS_DIR, DIST_DIR);
$files = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator(PAGES_DIR)
);
// Build each page
foreach ($files as $file) {
if ($file->isDir()) continue;
$path = $file->getPathname();
// only build .php pages (skip partials)
if (!str_ends_with($path, '.php')) continue;
$relative = str_replace('pages/', '', str_replace(SRC_DIR . '/', '', $path));
$output = str_replace('.php', '/index.html', $relative);
echo $relative . "\n";
if ($relative == 'index.php') {
$outputPath = DIST_DIR . '/index.html';
}
else if (str_ends_with($output, 'index/index.html')) {
$output = str_replace('index/index.html', 'index.html', $output);
$outputPath = DIST_DIR . '/' . $output;
}
else {
$outputPath = DIST_DIR . '/' . $output;
}
ensureDir(dirname($outputPath));
ob_start();
include $path;
$html = ob_get_clean();
echo $outputPath . "\n";
file_put_contents($outputPath, $html);
}
echo "Build complete\n";
// utils.php
function ensureDir($path) {
if (!is_dir($path)) {
mkdir($path, 0777, true);
}
}
function copy_all_files($source_dir, $target_dir) {
$dir_obj = opendir($source_dir);
@mkdir($target_dir);
while ($file = readdir($dir_obj)) {
if ($file != "." && $file != "..") {
if (is_dir($source_dir . "/" . $file)) {
copy_all_files($source_dir . "/" . $file, $target_dir . "/" . $file);
} else {
copy($source_dir . "/" . $file, $target_dir . "/" . $file);
}
}
}
closedir($dir_obj);
}
<?php
define('ROOT_DIR', __DIR__);
define('DIST_DIR', ROOT_DIR . '/dist');
define('SRC_DIR', ROOT_DIR . '/src');
define('PAGES_DIR', SRC_DIR . '/pages');
// etc
I stripped out all the database stuff because as my site grew I kept expanding on it and I needed a database.
Mine will also probably be longer than average because I wanted fancy stuff like my source pages being just “about.php” instead of “about/index.php”, but I wanted the output to be “about/index.html” so it got way more complicated than it needed to be. But again most of those lines in the for loop are just me being obsessive compulsive about my own directory structure 😂. I also didn’t count the utilities functions in my original line count because to me that’s equivalent of importing a module; I didn’t write that file, I just copy pasted it from online. You could probably find a simpler build script online.
<?php
$pageTitle = 'Example';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include PARTIALS_DIR . '/head.php'; ?>
<link rel="stylesheet" href="/styles/example.css" />
</head>
<body>
<?php include PARTIALS_DIR . '/header.php'; ?>
<?php include PARTIALS_DIR . '/noscript.php'; ?>
<main>
<h1>example</h1>
</main>
<?php include PARTIALS_DIR . '/footer.php'; ?>
<?php include PARTIALS_DIR . '/global-scripts.php'; ?>
</body>
</html>


I’ve heard in North America, they basically take the baby from the mother as soon as it’s born and put it in a “baby room” with all the other babies. If that’s true, no wonder there’s so many mix-ups. Where I live, the baby stays with the mum when possible


the province was aware its use of the software could disproportionately target Black prisoners, but went ahead with it anyway
Yep, sounds about right


I guess I just really like HTML. Any excuse to write actual HTML makes me happy


That nginx thing looks pretty cool! Very neat (if using nginx).
In the second half you’re talking about dynamic imports right? Like fetching the html with JS and then loading that? I try and avoid doing that for various reasons


How is PHP a vulnerability if it never leaves your machine and you only use it to build the HTML?
I’ve noticed this. Phones take really distinctly “strange” photos. They’re mostly good for everyday use, but struggle to make something look really nice