Readit News logoReadit News
mudiadamz commented on One hundred and one rules of effective living   mitchhorowitz.substack.co... · Posted by u/mathgenius
mudiadamz · 4 months ago
More like how to be mediocre boring life advice

Deleted Comment

mudiadamz commented on [Show HN] Simple Kafka Web Client: A web based UI for Kafka messages monitoring   techgalery.com/2024/08/in... · Posted by u/mudiadamz
mudiadamz · a year ago
Features: - Connect to Kafka Brokers: You can manage connections to different Kafka brokers all in one place. - Send Messages: Sending messages to Kafka topics is just a few clicks away. - Listen to Topics: Listen to messages from Kafka topics in real time, right in your browser. - Filter Topics: Use regular expressions to filter and find exactly what you’re looking for in your topics. - Responsive Design: The interface is clean and looks great on any device, thanks to Tailwind CSS. - Persistent Connections: Your Kafka connections are saved in an SQLite database, so you don’t have to re-enter them every time.
mudiadamz commented on Show HN: If YouTube had actual channels   ytch.xyz... · Posted by u/hadisafa
mudiadamz · a year ago
I know it's no way possible to add any Hollywood Movies, but if it's possible it would just look like a real TV
mudiadamz commented on Computer scientists invent an efficient new way to count   quantamagazine.org/comput... · Posted by u/jasondavies
sestep · a year ago
Is this ChatGPT? Also, I feel like this would be more useful if it included import statements.
mudiadamz · a year ago

  import math
  import random

mudiadamz commented on Computer scientists invent an efficient new way to count   quantamagazine.org/comput... · Posted by u/jasondavies
martinsnow · a year ago
An easy way to identify who copies code without understanding it.
mudiadamz · a year ago
You can just replace it with something like: print ('Invalid thresh or something')

Deleted Comment

mudiadamz commented on Computer scientists invent an efficient new way to count   quantamagazine.org/comput... · Posted by u/jasondavies
mudiadamz · a year ago
Python implementation:

  def streaming_algorithm(A, epsilon, delta):
      # Initialize parameters
      p = 1
      X = set()
      thresh = math.ceil((12 / epsilon ** 2) * math.log(8 * len(A) / delta))

      # Process the stream
      for ai in A:
          if ai in X:
              X.remove(ai)
          if random.random() < p:
              X.add(ai)
          if len(X) == thresh:
              X = {x for x in X if random.random() >= 0.5}
              p /= 2
              if len(X) == thresh:
                  return '⊥'

      return len(X) / p


  # Example usage
  A = [1, 2, 3, 1, 2, 3]
  epsilon = 0.1
  delta = 0.01

  output = streaming_algorithm(A, epsilon, delta)
  print(output)

mudiadamz commented on Build your own Docker with Linux namespaces, cgroups, and chroot   akashrajpurohit.com/blog/... · Posted by u/ghostfoxgod
YetAnotherNick · 2 years ago
I don't think author even tried running the command himself.
mudiadamz · 2 years ago
Yes that's the problem, Chat GPT isn't always right

u/mudiadamz

KarmaCake day48November 24, 2018View Original