Recent submissions

Comment · 2 years ago
Comment · 2 years ago
There is pain, and there is real pain. This is real pain. When life hits you like this, it's important to just endure, rather than escape. Trying to escape the pain can lead to addictions and behaviors that bring more problems. Some people are hit with pain like this and live a whole life trying to escape it, but never do. Best thing is accept, grieve, and continue on. Regardless, you will not be the same person, this will change you. Sometimes life just sucks, and there is no way of saying it doesn't, only time and love can help. However, the sun comes up every morning, and there is a sunset every night.

This is for anyone out there suffering some acute trauma like losing a loved one, or a chronic trauma like abuse over many years. I have experienced both, and it took me over 15 years to realize what had happened and to recover. I originally chose escapism. I didn't realize it at the time, but that's what it was. I was always into something, eventually even substance abuse. Ironically, escapism is how I ended learning to code, which was an escape for me. However, I also ended up being around even worse things and witnessing more death, while living broke and stressed out. This dragged me into even more suffering to the point of wanting suicide every day, but I just couldn't do it. This was a combination of escapism, and being around people with the same negativity as me.

Fortunately in time, I found myself, and realized everything that had happened, and how life can just be like that. But also how beautiful and exciting life can be as well. This would not have happened had I not met certain people that showed me what it means to love, and to be mentally strong. Also, by reading and learning you can find inspiration and love from someone that you will never meet in real life. Regardless, we need support of strong and positive people around us. We are a social species after all. When dealing with death/loss, remember the good times, be thankful for the time we had, and leave it at that - easier said than done.

The sun will rise tomorrow, and you will too. Take care, friend.

Comment · 2 years ago
Comment · 2 years ago
You should try to petition your state governor office to get the felony removed. It is a long time consuming process and will likely need help from a lawyer, but I have friends that have successfully gotten their felony removed after several years of diligently trying again, and of course good behavior in the mean time. It may never happen, but might as well give it a shot, it can’t hurt.
Comment · 2 years ago
Comment · 2 years ago
This is cool. I also like the site in general, has a nice feel to it.
Comment · 3 years ago
I am also glad the FDA protects us from chemicals and ingredients that would cause processed food to be unhealthy and harmful, if they didn’t do that we would probably end up with an overweight population and tons of food related health problems.
Comment · 3 years ago
I was considering this, working on a new javafx app for a side project. Using java 17, and generating binaries with fxlauncher/jpackage/wix is not working great imo. Any good recommendations on tooling for using the graal route? I develop on linux but most users will be on windows. It would be great to not have to use windows vm for building the binaries (but i can if needed ofcourse).
Comment · 3 years ago
Well, Casey’s is not actually smallish, it’s a fortune 500 company publicly traded on NASDAQ (CASY) and has a market cap of over 9 billion.
Comment · 3 years ago
It it’s so easy to be a healthcare CEO, then go ahead and fill in, you can get some millions.
Comment · 3 years ago
You’re life is [np]complete :)
Comment · 3 years ago
You will make it. Screw the gate keepers and build something for you and your own people. Sounds hard because it is, but that’s life, either way it’s challenging, so keep your head up and move forward.
Comment · 3 years ago
Comment · 3 years ago
Not bad (chat gpt can do this too) but it seems to be on par for this “simple” task:

> Write me a python function that accepts a list of filenames and uses threads and queues to load them in parallel with the pickle library

…

> Also, please output the results to a queue as well

Final result

  import pickle
  import threading
  import queue
  
  def load_files_in_parallel(filenames, results_queue):
    """Loads a list of files in parallel with the pickle library and outputs the results to a queue.
  
    Args:
      filenames: A list of filenames to load.
      results_queue: A queue to hold the results of the file loads.
  
    Returns:
      None.
    """
  
    # Create a queue to hold the file handles.
    file_handles = queue.Queue()
  
    # Create a thread pool to load the files.
    threads = []
    for _ in range(len(filenames)):
      thread = threading.Thread(target=load_file, args=(file_handles, filenames.pop(), results_queue))
      threads.append(thread)
      thread.start()
  
    # Wait for all threads to finish.
    for thread in threads:
      thread.join()
  
    # Return the list of objects loaded from the files.
    # No need to return anything since the results are already in the queue.
  
  def load_file(file_handles, filename, results_queue):
    """Loads a file and adds it to the results queue.
  
    Args:
      file_handles: A queue to hold the file handles.
      filename: The name of the file to load.
      results_queue: A queue to hold the results of the file loads.
  
    Returns:
      None.
    """
  
    # Open the file.
    with open(filename, 'rb') as f:
      obj = pickle.load(f)
  
    # Add the object to the results queue.
    results_queue.put(obj)

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton