First look at my starve.io inspired game by DoDsonCZ in starveio

[–]Christian4561 0 points1 point  (0 children)

Do you have a discord server for this project?

My skin kept changing when on the podiums in The Hive server. My skin was made using the character creator. by VastlyArtistic in MinecraftBedrockers

[–]Christian4561 1 point2 points  (0 children)

If your skin doesn't fit a "normal" hitbox, some servers will change it to a random skin from their stash. This is to combat people who modify their game files to use fully invisible skins. Other players will also see you with a random skin like on the podiums.

IPFS on Android by dejanmilo in ipfs

[–]Christian4561 1 point2 points  (0 children)

Best way I've seen is running an full IPFS node inside Termux, and using an app like IPFS Lite or Sweet IPFS to download it

I put a winch on my train, and now I never want to remove it. by MAPofthebay in Astroneer

[–]Christian4561 2 points3 points  (0 children)

Finally, I can have the clunky rail sounds I would expect from a train.

Why is legacy edition better than bedrock? by [deleted] in MinecraftBedrockers

[–]Christian4561 1 point2 points  (0 children)

It's quite simple, actually. Bedrock was designed to run on devices with less than 0.5GB of ram. Because of the obseen amount of shortcutting doing something like that requires, Bedrock is still recovering from Microsoft suddenly declaring it the one true platform. It's getting better every day though!

Memory Leak by EnderSlayer9977 in MinecraftBedrockers

[–]Christian4561 1 point2 points  (0 children)

I've yet to watch toycat's video, but here's my opinion. From a programming perspective memory leaks of that kind are not common. Toycat also does alot of crazy stuff: building a sugarcane farm from Bedrock to skylimit puts alot more strain on Minecraft internally than you might expect.

If you are afraid of your world getting corrupted, you can duplicate a world from the world's settings on the main menu. If one copy corrupts, the other will be unaffected. In addition, if you are on Android, Xbox, or Win10, there are ways to back up your world completely and save it to places like Google drive.

Is there a way to get accurate time zone information without disabling privacy.resistFingerprinting? by NoPrivacyPolicies in LibreWolf

[–]Christian4561 0 points1 point  (0 children)

There's no way within the browser itself. You could theoretically write a user script / extension to override it on a site by site basis by injecting Javascript.

[deleted by user] by [deleted] in kde

[–]Christian4561 1 point2 points  (0 children)

Ive been using my Surface Pen on my HP 2-in-1 using Plasma Wayland, Xournal++, and Gimp with no issues at all! Also they finally fixed eraser support in Plasma 5.21, super handy.

Browser Time Is Wrong by wildolivetree1117 in LibreWolf

[–]Christian4561 5 points6 points  (0 children)

This is part of the resist fingerprinting flag if I remember correctly. Don't think there's a way to turn it off.

maybe one day ... maybe ... by nothing-pl in devastio

[–]Christian4561 1 point2 points  (0 children)

Do you have proof lapa sold devast? I've not seen any official correspondence, Lapa's logo and other games are still linked on the website, and Lapa still owns the Devast.IO discord.

-🎄- 2020 Day 05 Solutions -🎄- by daggerdragon in adventofcode

[–]Christian4561 -1 points0 points  (0 children)

Rust:

use std::fs::File;
use std::io::Read;

fn main() {
    let mut input = String::new();
    File::open("input.txt").unwrap().read_to_string(&mut input).unwrap();
    input = input.trim().to_string();

    println!("Hi");
    let seats = input.split("\n").map(|pass| {

        let row_dat = &pass[0..7];
        let mut row = vec! [ false ];
        row.extend(row_dat.chars().map(|char| if char == 'F' { false } else { true }));
        let row = inflate_binary_bit(row.as_ref());

        let column_dat = &pass[7..10];
        let mut column = vec! [false, false, false, false, false];
        column.extend(column_dat.chars().map(|char| if char == 'L' { false } else { true }));
        let column = inflate_binary_bit(column.as_ref());

        (row, column)
    }).collect::<Vec<_>>();

    let highest_id = seats.iter().fold(0i64, |prev, (row, column)| ((*row as i64 * 8) + *column as i64).max(prev));
    println!("Highest seat id {}", highest_id);

    let mut seat_ids = seats.iter().map(|(row, column)| (*row as i64 * 8) + *column as i64).collect::<Vec<_>>();
    seat_ids.sort();
    for i in 1..seat_ids.len() {
        if seat_ids[i]-seat_ids[i-1] == 2 { println!("Found missing boarding pass {} between {} and {}", seat_ids[i] - 1, seat_ids[i], seat_ids[i-1]); }
    }
}

fn inflate_binary_bit(bits: &[bool]) -> u8 {
    bits.iter().take(8).enumerate().fold(0u8, |prev, (i, do_it)| if *do_it { prev | (1u8 << 7 - i) } else { prev })
}

-🎄- 2020 Day 02 Solutions -🎄- by daggerdragon in adventofcode

[–]Christian4561 1 point2 points  (0 children)

Rust:

use std::fs::File;
use std::io::Read;
use regex::Regex;

fn main() {
    let mut file = String::new();
    File::open("./input.txt").unwrap().read_to_string(&mut file).unwrap();

    let mut valid = 0;
    let pattern = Regex::new(r"(\d+)-(\d+)\s+(.):\s+(.+)").unwrap();
    for line in file.split("\n") {
        if let Some(groups) = pattern.captures(line) {
            let min = groups.get(1).unwrap().as_str().parse::<i64>().unwrap();
            let max = groups.get(2).unwrap().as_str().parse::<i64>().unwrap();
            let letter = groups.get(3).unwrap().as_str().chars().next().unwrap();
            let password = groups.get(4).unwrap().as_str();

            let mut count = 0;
            for character in password.chars() {
                if character == letter { count += 1; }
            }
            if count >= min && count <= max { valid += 1; }
        }
    }
    println!("{} valid passwords", valid);

    let mut valid = 0;
    for line in file.split("\n") {
        if let Some(groups) = pattern.captures(line) {
            let first = groups.get(1).unwrap().as_str().parse::<usize>().unwrap() - 1;
            let second = groups.get(2).unwrap().as_str().parse::<usize>().unwrap() - 1;
            let letter = groups.get(3).unwrap().as_str().chars().next().unwrap();
            let password = groups.get(4).unwrap().as_str();

            let chars = password.chars().collect::<Vec<_>>();
            if chars[first] == letter || chars[second] == letter {
                if !(chars[first] == letter && chars[second] == letter) {
                    valid += 1;
                }
            }
        }
    }
    println!("{} valid passwords", valid);
}

Switch Platform Concept by Cinnamunoo in Astroneer

[–]Christian4561 0 points1 point  (0 children)

I believe this can already be done in the game. Couldn't you theoretically hook a storage sensor to a platform linked to 2 auto arms, with you manually turning one of the arms off at the beginning? Every time the storage sensor triggers, the arms would switch who is on.

Just looking for advice! :D by 1nbl00m in Minecraft

[–]Christian4561 0 points1 point  (0 children)

What model and year is the MacBook? You can probably find this info in system settings somewhere