[-] SeaOfTranquility@beehaw.org 4 points 8 months ago* (last edited 8 months ago)

Picture this: It's one of those perfect days in the shire. You are sitting in your armchair and smoking a pipe of haflings leaf. In front of you is the book with all your best memories. You open it and the first chapter is called Concerning Hobbits.

So... if I had to choose a goto song for my best memories, it would probably be this one.

[-] SeaOfTranquility@beehaw.org 3 points 9 months ago

Those suggestions are on point! I added them both.

[-] SeaOfTranquility@beehaw.org 4 points 1 year ago

Very exciting to see! I wonder why the throttling is so imprecise in this test-hop. I would've assumed that having small nozzles and a compact design like this would make it easier to control. This is all just speculation, ofc. but maybe the engines are made to perform better with heavier loads than this proof of concept design. Hopefully, Everyday astronaut will visit them again one day to ask more questions about all the progress they've made.

[-] SeaOfTranquility@beehaw.org 3 points 1 year ago* (last edited 1 year ago)

Building something in-game and extending the world with coding is an interesting perspective. I haven't thought about it this way before. Instead, I always thought about solving programming tasks and, therefore, solving some issue in-game. I'd have to think about this more and see if I could incorporate that idea. Thanks for the suggestion!

[-] SeaOfTranquility@beehaw.org 4 points 1 year ago* (last edited 1 year ago)

I have probably seen too much NotJustBikes lately to say anything positive or constructive about car sharing and how it affects society. But when it comes to the technical side of implementing such a service, there are some interesting problems to solve (depending on the scope of your project ofc...). You mentioned the traveling salesman problem, which considers one agent who is trying to find the distance-optimal route. When it comes to multiple cars and multiple ride requests and time constraints, the kind of algorithms you want to look for are more generally called assignment problems. If you want to dive into code, you can look up "google hashcode 2018 rideshare" which was a coding competition with a closely related problem.

[-] SeaOfTranquility@beehaw.org 3 points 1 year ago

He used an interesting way to describe the interstage I think. For hot-staging I've only seen the completely open structure with rods, arraged in triangular patterns, connecting the stages. I wouldn't have used the word "vent" to describe something like that, so I wonder if spacex is implementing it differently.

[-] SeaOfTranquility@beehaw.org 3 points 1 year ago

Can you add a customization option for the hexagonal buttons? I really liked them!

[-] SeaOfTranquility@beehaw.org 4 points 1 year ago* (last edited 1 year ago)

I'm going to sound cynical here so if you don't want to be confronted with negative content, please skip this one...

spoilerDid I just read an ad for "Mike's Hard Lemonade co." and Brand Studio Inc.? The "experiment" they made is not scientific and it doesn't have to exist to begin with. The point about happiness and media consumption was already researched seriously (which is also mentioned in this article).

So why does this article have to have a bright yellow background and spinning lemonades on the side and mentions a specific brand multiple times? Is it relevant to the "Good News Effect" or media consumption patterns? No... it's an ad that uses scientific work and the topic of happiness to boost a brand's public perception. Again... maybe it's just me... but having a discussion about happiness and media consumption should not be based on a Mike's Hard ad campaign imo.

[-] SeaOfTranquility@beehaw.org 4 points 1 year ago

For me the important part is the choreography, you mentioned in the end. Well-choreographed and directed fights are rare in movies these days. For me, Hongkong cinema, Jackie Chan and Bruce Lee were the peak of that trend and very few movies came even close after that. This is why I like John Wick 4 so much, because of the awesome choreographed and directed fight scenes that actually bring something new to the table.

The idea of "gun fu/gun kata" is not new but the way John Wick 4 implemented it, just brings it to the next level.

[-] SeaOfTranquility@beehaw.org 3 points 1 year ago* (last edited 1 year ago)

I've heard that a lot of people have trouble with updating and maintaining nextcloud but I personally never had those issues and my instance is running for over 5 years now. I would agree with other people here, that something like docker makes everything easier if you want to selfhost. I personally followed this guide with a custom dockerfile that looks something like this. Once you have a functional docker image and a docker-compose file, updating your instance is as easy as typing:

docker compose stop
docker compose rm -f
docker compose build --pull
docker compose up -d

If you chose to go down that route as well, you might want to change the config files in your docker image since some of the values might not suit your instance. I, for example, have added the following to the PHP config:

RUN sed -i "s/\(opcache\.interned_strings_buffer*=*\).*/\148/" /usr/local/etc/php/conf.d/opcache-recommended.ini
RUN sed -i "s/\(opcache\.memory_consumption*=*\).*/\1256/" /usr/local/etc/php/conf.d/opcache-recommended.ini
[-] SeaOfTranquility@beehaw.org 4 points 1 year ago* (last edited 1 year ago)

There are a many approaches to implementing OOP in C. Since C doesn’t give you any language constructs to implement this out of the box, it’s up to you to do it in a consistent and understandable manner. Since there is no definite way to do it, let me just give you an example of how I would translate a Python file, and you can decide how you implement it from there:

--------------
class Parent:
    def __init__(self, param1: str, param2: int):
        self.__param1 = param1
        self.__param2 = param2
    def __private_method(self):
        print("private method")
    def public_method(self):
        print("public method")
    @staticmethod
    def static_method():
        print("static method")
    @property
    def param1(self):
        return self.__param1

class Child(Parent):
    def __init__(self):
        super().__init__("param1", 2)
--------------

I would split the C code for this into header and source files:

(header.h)

--------------
#pragma once

/// Parent Class ///
typedef struct Parent_obj {
    char* param1
    unsigned int param1_len
    int param2
} Parent_obj_t;
void Parent_init(Parent_obj_t* self, char* param1, unsigned int param1_len, int param2);
void Parent_public_method(Parent_obj_t* self);
void Parent_static_method();
void Parent_param1(Parent_obj_t* self, char* out, unsigned int max_len); // property method with upper bound string length
void Parent_del(Parent_obj_t* self); // destruct object (similar to __del__() in python)

/// Child Class ///
typedef struct Child_obj {
    Parent_hidden_state_t* super
    char* param
    unsigned int param_len
} Child_obj_t
void Child_init(Child_obj_t* self, Parent_obj_t* super);
void Child_del(Child_obj_t* self);
--------------

(source.c)

--------------
#include "header.h"

/// Parent Class ///
// private methods
void Parent_private_method(Parent_obj){...} // not visible in the header file
// public methods
void Parent_init(Parent_obj_t* self, char* param1, unsigned int param1_len, int param2){...}
void Parent_public_method(Parent_obj_t* self){...}
void Parent_static_method(){...}
void Parent_param1(Parent_obj_t* self, char* out, unsigned int max_len){...}
void Parent_del(Parent_obj_t* self){...}

/// Child Class ///
// public methods
void Child_init(Child_obj_t* self, Parent_obj_t* super){...}
void Child_del(Child_obj_t* self){...}
--------------

Modules and namespaces can be modeled using folders and prefixing your structs and functions.

[-] SeaOfTranquility@beehaw.org 5 points 1 year ago

If the drone could fly around the city autonomously, I would use it to digitize my city and get a personal Google Street View on steroids. I already use drone shots for structure-from-motion projects, but it would've to be autonomous for such a large-scale operation

view more: ‹ prev next ›

SeaOfTranquility

joined 1 year ago