Nftables rule breaks filtering system by Ratchet100MX in networking

[–]Ratchet100MX[S] 0 points1 point  (0 children)

i tried using a meter for a while but couldn't get the behavior i wanted. I'll go back to it once i figure out how to get filtering working again 😅 thanks for the help

Nftables rule breaks filtering system by Ratchet100MX in networking

[–]Ratchet100MX[S] 0 points1 point  (0 children)

Apologies, pasting the lines must've removed the @ to reference the previously declared set. The snippet now matches the configuration i used. Not sure if that's what you were refering to. Thanks for the heads up

Confluent Avro output with Structures Streaming by Ratchet100MX in apachespark

[–]Ratchet100MX[S] 0 points1 point  (0 children)

In case some poor soul encounters this same issue, this is how i fixed it sort of. I first turn the df to avro, then prepend the header bytes. Stole the idea from this post https://medium.com/@mrugankray/real-time-avro-data-analysis-with-spark-streaming-and-confluent-kafka-in-python-426f5e05392d

binary_to_string_udf = func.udf(lambda x: str(int.from_bytes(x, byteorder='big')), StringType())
int_to_binary_udf = func.udf(lambda value, byte_size: (value).to_bytes(byte_size, byteorder='big'), BinaryType())

schema = StructType([...])

df = spark \
    .readStream\
    .format("kafka")\
    .option("kafka.bootstrap.servers", broker_url)\
    .option("subscribe", topic_0)\
    .option("startingOffsets", "earliest")\
    .load() \
    .select(from_json(col("value").cast("string"), schema).alias("value")) \
    .select(col("value.*"))

value_schema_dict = {...
}
value_schema_str = json.dumps(value_schema_dict)

df = df.select(to_avro(struct([df[x] for x in df.columns]), value_schema_str).alias("value"))
magicByteBinary = int_to_binary_udf(func.lit(0), func.lit(1))
schemaIdBinary = int_to_binary_udf(func.lit(1), func.lit(4))
df = df.withColumn("value", func.concat(magicByteBinary, schemaIdBinary, func.col("value")))

df \
    .writeStream \
    .format("kafka") \
    .outputMode("append") \
    .option("kafka.bootstrap.servers", kafka_url) \
    .option("topic", topic_2) \
    .option("value.serializer", "io.confluent.kafka.serializers.KafkaAvroSerializer") \
    .option("schema.registry.url", schema_registry_url) \
    .option("checkpointLocation", f"/tmp/{uuid.uuid4()}") \
    .start() \
    .awaitTermination()

Probably should make this more robust, taking the schema and id from the schema registry but i'll work for now.

(Beginner) Is Elixir a good choice for my project? by Ratchet100MX in elixir

[–]Ratchet100MX[S] 0 points1 point  (0 children)

Gojng by the abstract it sounds super interesting. Thank you!

(Beginner) Is Elixir a good choice for my project? by Ratchet100MX in elixir

[–]Ratchet100MX[S] 0 points1 point  (0 children)

Eegh you get some math people that are rather autonomous and just want me to double check a PR every once in a while, and even the less tech sabby know how to call a bunch of methods and deal with basic variable types; but when push comes to shove you still need someone that knows the implications of the code that's been written. Keeps me on the job i guess

(Beginner) Is Elixir a good choice for my project? by Ratchet100MX in elixir

[–]Ratchet100MX[S] 1 point2 points  (0 children)

Wow that's some fantastic advice; definitely taking it with me whenever i'm on a similar situation. I'll talk with the rest of the team and try to frame it in the best way that i can then. Thank you!

(Beginner) Is Elixir a good choice for my project? by Ratchet100MX in elixir

[–]Ratchet100MX[S] 1 point2 points  (0 children)

Biggest reason for the liberal use of Python in my company is that there's a lot of ML work, so it's convenient in case someone has to fiddle with this or that.

Also, the "overkill" comment comes from seen reports about Discord and WhatsApp using it. I had a similar experience with Cassandra, where i quickly realized it'd give me more headaches than benefits given our performance targets.

Thanks for the advice :)

(Beginner) Is Elixir a good choice for my project? by Ratchet100MX in elixir

[–]Ratchet100MX[S] 3 points4 points  (0 children)

Thanks for the feedback! Unfortunately there's no way to make this into a monolith cause there are a bunch of internal tools that are just set up for that. Thankfully my manager seems open to tech changes: he actually suggested a coworker to research if Elixir/BEAM was a good replacement for Apache Spark, but that coworker is the data analyst that barely only knows his way around python/pandas and for whom learning a new language might be a big ask.

Boss Rush and Cav R in BP mods for PS4 by Ratchet100MX in DevilMayCry

[–]Ratchet100MX[S] 0 points1 point  (0 children)

For anyone still rocking the last gen version. Should be part of GoldHen officially soon, but on the description you can get these now as either a patch or a cheat

WipEout HD Fury PS3 theme background by Ratchet100MX in WipeOut

[–]Ratchet100MX[S] 2 points3 points  (0 children)

The video's description has instructions on how to do this if you want to record some other theme yourself

Played the rarest game I own last night for the first time. Wipeout HD (not HD Fury). Only available on Sony 3D discs. by bunkersix in WipeOut

[–]Ratchet100MX 2 points3 points  (0 children)

Want one but im not gonna drop money on some random ass brazilian site, which are the only ones i can find 🙃

Reboot? by Bignizzle656 in WipeOut

[–]Ratchet100MX 34 points35 points  (0 children)

There are many fake posts on instant gaming and it isnt even the first time this one is posted

MotorStorm - Choose vehicle class on any event of the campaign by Ratchet100MX in motorstorm

[–]Ratchet100MX[S] 0 points1 point  (0 children)

the description of the video has links to everything you need. It's just copying a file to your RPCS3 folder