sparkingcircuit

joined 2 years ago
[–] sparkingcircuit@lemmygrad.ml 17 points 6 months ago

This was a fun read! Thank you for sharing.

[–] sparkingcircuit@lemmygrad.ml 17 points 6 months ago (2 children)

Maybe you could write a feature request on the Lemmy Repository for the ability to use other instance's emotes.

[–] sparkingcircuit@lemmygrad.ml 10 points 6 months ago (1 children)

Fantastic video! Do keep in mind however, that Thunderf00t is a very socially and economically conservative person of which you should watch with caution. I mostly keep to watching his Elon dunk videos and his pseudo-scientific-Kickstarter de-legitimizing videos.

[–] sparkingcircuit@lemmygrad.ml 4 points 7 months ago

100%, to go out and touch grass on occasion really helps keep the depressive states at bay.

[–] sparkingcircuit@lemmygrad.ml 5 points 7 months ago (2 children)

Welcome back! Glad to see how much better your doing.

[–] sparkingcircuit@lemmygrad.ml 3 points 9 months ago

Good to know! I'll be adding it to my watch later list.

[–] sparkingcircuit@lemmygrad.ml 4 points 9 months ago* (last edited 9 months ago)

Shattered pixel dungeon is a rogue-like dungeon crawler that is beginner friendly and still fun to long time players. It is offline, with no advertisements, and open source. You can get it from:

[–] sparkingcircuit@lemmygrad.ml 0 points 11 months ago* (last edited 11 months ago) (1 children)

Didn't capitalism start 300-400 years ago? If I remember correctly, capitalism was born of the imperial nations of Europe (primarily Great Britain, France, and Spain), as private capital, now unrestricted from the guilds as under feudalism, expanded for increased control of their respective markets.

The United States, started only slightly after the major imperial powers of its day. In addition, it's geography blessed it with weak neighbors to the north and south, and fish to the east and west, allowing it to develop almost entirely unhindered from the risk of war destroying it's means of production. Furthermore, property rights were enshrined in its very constitution from start due to its status as one of the world's first a bourgeois democracies (widely believed to be the ideal circumstances for the development of capitalism). As such, the United States had one of the most mature capitalist economies in the world by this point. Even at this point it's form of capitalism is probably more mature than many capitalist nations in the third world are currently.

In all likelihood, the course of capitalism in the United States was reversed somewhat by a combination of anti-monopolistic legislation, an end to its pre-worldwar isolationist policies, and the introduction of new markets in the world economy due to need for many nations to rebuild after World War Two. As such, I think it reasonable to call this a consequence of a 1940s late stage capitalist economy.

Please note: The United States did not start out spanning the entire continent, but rather got their though roughly a century of brutal westward expansion and genocide. I apologize for my omission of this information.

 

I've been working on re-implementing a board game in C. However, when running the players positions don't increment.
Current output:

 6,  9,  7,  6,  5,  5,  8,  7
 6,  9,  7,  6,  5,  5,  8,  7

Expected output:

 6,  9,  7,  6,  5,  5,  8,  7
14, 15, 19, 16, 13, 13, 14, 17

Code:

#include <stdlib.h>
#include <stdio.h>

// Define types here:
typedef enum {false, true} bool;

// Define constants here:
const unsigned char MAXPLAYERS = 7;	//Game has max of 8 players
const unsigned char SPACES = 40;	//Board has 40 spaces
const unsigned int SEED = 51732;	//Seed for random numbers
const unsigned int DIE = 6;		//Number of sides of die

// Define variables here:
unsigned char player = 0;
unsigned char player_position [] = {0, 0, 0, 0, 0, 0, 0, 0};
unsigned char die = 0;

// Define functions here:
// Moves player Input spaces.
void move_player (char moves) {

player_position [player] += moves;
if (player_position [player] > SPACES) {

	player_position [player] -= SPACES;

}

}

// Switches active player in order.
void increment_player () {

player ++;

if (player > MAXPLAYERS) {

player = 0;

}

}

// Returns random number between 1 - Input.
unsigned char rand_num (unsigned char max) {

unsigned char i;

i = rand () % max + 1;

return (i);

}

// Sets dice variable && returns 1 if double.
bool roll_dice () {

unsigned char a = rand_num (DIE);
unsigned char b = rand_num (DIE);

die = a + b;

return (0);

}

// Main logic
int main () {

char input = 0;

srand (SEED);
printf ("Game client started.\n",
	"Press enter to iterate turns.\n");

while (1) {

scanf ("%c", &input);

for (unsigned char i; i <= MAXPLAYERS; i++) {

	roll_dice ();
	move_player (die);

	increment_player ();

}

printf ("%2i, %2i, %2i, %2i, %2i, %2i, %2i, %2i\n",
	player_position [0], player_position [1], player_position [2],
	player_position [3], player_position [4], player_position [5],
	player_position [6], player_position [7]);

}

return (0);

}

I'd definitely watch a ML V-Tuber!

 

What side of the editor war do you lie? vi, Emacs, or maybe something newer like neovim, nano, or VS-Codium?

 

Just showing off my desktop. For those curious, I use the XFCE desktop, and ULauncher tied to the windows key. I'm also experimenting with animated wallpapers using hidimari.

 

Revisionist rats! I did nothing but good for your project, yet you banned me for my ideology in haste! I gave you many chances to unban me, I could have made thousands of edits, yet you rejected me. Now… you have forced me to go THERMONUCLEAR!

 

cross-posted from: https://lemmygrad.ml/post/487209

cross-posted from: https://lemmygrad.ml/post/487207

I remember watching a video from The Young Hegelian Youtube channel some time back regarding how the United States inspired Nazi Germany, but it seems to have been removed or privated sense then.

As such, I'm wondering if anyone kept a backup of the video, or knows of a mirror I can find it on?

 

Earlier today a comrade got a pretty good tankie instance for Mastodon on this post of theirs. So I was thinking, due such things exist for other federated platforms such as Pixelfed and Peertube? And if so, which are the best for our purposes?

2
submitted 2 years ago* (last edited 2 years ago) by sparkingcircuit@lemmygrad.ml to c/leftistunix@lemmygrad.ml
 

This is a video talking about Deepin OS, a Chinese made Linux distro based on Debian. Plus it isn't full of cringe like videos about anything related to China tend to be.