JackGreenEarth

joined 1 year ago
[–] [email protected] 2 points 5 hours ago (3 children)

CN? Central... Namibia?

[–] [email protected] 20 points 1 day ago

When they said Android I assumed they meant degoogled or a custom ROM, but it's good to point that out I suppose.

[–] [email protected] 8 points 1 day ago (1 children)

You should get a Fairphone and use a degoogled custom ROM. If you really want to get away from Google at the expense of some functionality, you can try a Linux ROM, but I'd recommend one based on Android such as Lineage OS. The benefits are mostly freedom adjacent. You have the freedom to run any app you want, whether it's from the app store or not. You have the freedom to use any browser engine you like, and download extensions to Firefox. You have the freedom to root your device and make simple full backups of your device to any local storage that you own by accessing the root storage folder. You have the freedom to use apps like Rethink DNS to block ads device-wide, and there are generally a lot more FOSS apps written for Android than iOS as you don't have to jump through all the hoops of the app store to make your apps available for others.

[–] [email protected] 23 points 2 days ago (5 children)

Yes, those people are also victims of the society and government to which they belong. The harm they cause to themselves and others is saddening but caused by a larger problem.

[–] [email protected] 1 points 2 days ago

It's not running WearOS, it's just the most value I could find for £60. It has up to 2 week battery life, sleep and activity tracking, support for some third party apps if you get the GT 3 or up.

[–] [email protected] 2 points 3 days ago (2 children)

When I have £500 to spare, I'll get that. Until then, my £60 Hauwei watch will do.

[–] [email protected] 4 points 3 days ago

Anyone who knows what LLMs are knew this from the start. They are good at creating text, but if you need the text to be true, they're probably not the best tool for the job.

[–] [email protected] 2 points 3 days ago

I would select CC-BY-SA so that if they share it they have to use the same licence

[–] [email protected] 2 points 3 days ago

They probably know their comment would get removed by a mod anyway, so there would be no point.

[–] [email protected] 3 points 3 days ago (1 children)

'This child would have died if I didn't stop it, and there are many other children I was unable to save' seems like a perfectly good story to me.

 

I'm having trouble getting an IP address via DHCP on my HP ProLiant DL380 Gen9 server running Debian. I've tried various troubleshooting steps, but nothing seems to work.

Error messages:

  • "No DHCPOFFERS received"
  • "No working leases in persistent database - sleeping"
  • "Activation of network connection failed" (GNOME)
  • "IP configuration unavailable" (Plasma)

Hardware:

  • HP ProLiant DL380 Gen9 server

Software:

  • Debian operating system
  • GNOME and Plasma desktop environments

Troubleshooting steps:

  • Checked network cable and ensured it's properly connected
  • Restarted network service
  • Set /etc/NetworkManager/NetworkManager.conf managed=true

Additional information:

  • Internet worked during the Debian installation process, but not after booting into the installed system.
  • The problem occurs on both GNOME and Plasma desktop environments, but Plasma provides a slightly more helpful error message.

I'd appreciate any help or guidance on resolving this issue. Has anyone else experienced similar problems with DHCP on a HP ProLiant DL380 Gen9 server with Debian?

 
 

Edit: apparently this is a very common form of Japanese storytelling called an isekai. There are 8 billion people in this world, no idea can be original. And sometimes you miss out on things many other people know. I'm clearly one of today's lucky 10000.

 

They would lose any magical powers they may have had in the book, but anything they are, rather than can do, will stay. For example people from the His Dark Materials world would keep their daemons. You can take them out at any time in the story's plot, but for all other people consuming the media, it will be shown that the character suddenly disappears, with the rest of the plot being affected accordingly. People will notice this happening. The character is not under any sort of control by you once you have taken them out of the story, although they will appear next to you to start with.

 

cross-posted from: https://reddthat.com/post/18256270

Don’t upvote this

430
What does your desktop look like? (share.jackgreenearth.org)
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 

Here's mine. No inspiration at all taken from a certain California based company's OS ;p

I use:

  • Manjaro OS
  • GNOME desktop
  • WhiteSur icon theme (with a few icons changed in the desktop file)
  • WhiteSur GTK and shell theme
  • Bing wallpaper
  • net speed simplified
  • Logo Menu
  • Show Desktop
  • Top Bar Organiser (to move the time to the right)
  • Overview background

I apologise if I missed anything.

0
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]
 

Intended output: { children: { Display: { children: { ... value: 2 } } } }

Real output: { children: {}, Display: {}, ... value: 2 }


Code:

// Load default settings
let defaultSettings;

load("/assets/json/default-settings.json", 'json', function(defset) {
	defaultSettings = defset;

	// Create custom settings
	if(!Object.keys(localStorage).includes('settings')) {
		setLs('settings', JSON.stringify({}));
	};

	customiseSetting('Display/UI/Distance', 2)
});

function settingURL(url) {
	return('children/' + url.split('/').join('/children/') + '/value');
}

function customiseSetting(url, value) {
	url = settingURL(url);

	// Split the string by '/' and use reduce to access the nested properties
	const newSettings = url.split('/').reduce(function(accumulator, val, index, array) {
		// If the object does not have the current component as a property, create an empty object for it
	  	// If the current component is the last one, assign the value
	  	if (index == array.length - 1) {
			accumulator[val] = value;
	  	} else if (!accumulator.hasOwnProperty(val)) {
			accumulator[val] = {}; // update the accumulator object
		}

		log([accumulator, val, index, array])
		// Return the updated object
	  	return(accumulator);
	}, JSON.parse(ls('settings')));
	log(newSettings);
	setLs('settings', JSON.stringify(newSettings));
}

I've been trying unsuccessfully for several days to fix to what must be a simple error. I've looked over it myself, but I can't find the cause of the bug. I asked Bing, which usually helps, but it was unhelpful. So I'm sorry to be bothering you, but if you could help me solve this problem, I would really appreciate it.

EDIT: I fixed my code by using a recursive function as follows:

function customiseSetting(url, value) {
	url = settingURL(url).split('/');

	let newSettings;

	function recursiveSet(object, list, index, setTo) {
		// If the current component is the last one, assign the value
		if(index == list.length - 1) {
			object[list[index]] = setTo;
			return(object);
		} else {
			// Check if it already contains the value
			if(object.hasOwnProperty(list[index])) {
				object[list[index]] = recursiveSet(object[list[index]], list, index + 1, setTo);
			} else {
				object[list[index]] = recursiveSet({}, list, index + 1, setTo);
			}
			return(object);
		}
	};

	newSettings = recursiveSet(JSON.parse(ls('settings')), url, 0, value);

	log(newSettings);
	setLs('settings', JSON.stringify(newSettings));
}
view more: next ›