Hacker Newsnew | past | comments | ask | show | jobs | submit | hagendaasalpine's commentslogin

pandas and polars both have pipe methods available on dataframes. you can method chain to the same effect. it's considered best practise in pandas as you're hopefully not mutating the initial df


Tsoding wrote https://github.com/tsoding/nob.h, single header C library for cross platform builds, only requirement is cc. GDB profiling tools can then be used to look at your build step. It's a neat idea. I suspect this is not an option but Nix is great build tool if you are dealing with multiple languages.


Btw, he has a YouTube channel and streams. I recommend it if you’re seeking imposter syndrome.


historians have described the USSR as an 'affirmitive action empire', a contradictory one


This might be a good article for such a perspective: https://reason.com/2021/11/01/yes-it-was-an-evil-empire/


Solves a TSP on a list of cities to find a tour of cities so that you always spend local time between set hours.


I can recommend the RTS OpenHV, built on the OpenRA engine. https://www.openhv.net/


openHV is such a horrible game. your units default to doing nothing when attacked. You barely know what is being attacked. This game is from the 80s and should just stay there.


I checked the link but I can’t find anything on how it’s different from the base game. What do you like about it?


From what I've read HV originally aimed to add things like supply lines, terrain heights, deformable terrain, and "player created landscapes". Since the original was cancelled and many of its ideas implemented elsewhere, this newer fan effort may not appear as innovative as the OG could've been.


snippet to view all the letters at once

  <!DOCTYPE html>
  <html lang="en">
  <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Landsat Alphabet Viewer</title>
      <style>
          body { font-family: Arial, sans-serif; text-align: center; }
          #imageContainer { display: flex; flex-wrap: wrap; justify-content: center; }
          img { width: 100px; height: 100px; margin: 5px; object-fit: cover; }
      </style>
  </head>
  <body>
      <h1>Landsat Alphabet Viewer</h1>
      <div id="imageContainer"></div>
      <script>
          const letters = {
              'A': 3, 'B': 1, 'C': 2, 'D': 1, 'E': 3, 'F': 1, 'G': 0, 'H': 1,
              'I': 4, 'J': 2, 'K': 1, 'L': 3, 'M': 2, 'N': 2, 'O': 1, 'P': 1,
              'Q': 1, 'R': 3, 'S': 2, 'T': 1, 'U': 2, 'V': 3, 'W': 1, 'X': 2,
              'Y': 2, 'Z': 1
          };
          const container = document.getElementById('imageContainer');
          const baseUrl = 'https://landsat.gsfc.nasa.gov/apps/YourNameInLandsat-main/public/images/';
  
          for (const [letter, maxNum] of Object.entries(letters)) {
              for (let i = 0; i <= maxNum; i++) {
                  const img = document.createElement('img');
                  img.src = `${baseUrl}${letter.toLowerCase()}_${i}.jpg`;
                  img.alt = `${letter}_${i}`;
                  img.title = `${letter}_${i}`;
                  container.appendChild(img);
              }
          }
      </script>
  </body>
  </html>


Your comment activates Reader Mode on Safari mobile automatically.


It does? Mine seems to load this page just like any other comment section. I’m using iOS 16.7.10, so perhaps Reader Mode activates automatically on higher versions. I’m curious to test this a bit more but, sadly, my phone is out of warranty for non-security updates so I’ll have believe that what you say is true without testing anything.


a function call that creates a list of dynamic URLs that then immediately/eventually gets added to the DOM would be the first example i and i imagine most would think of when using behavioral heuristics to determine a documents accumulative total security heuristic. If it's too 'weird', enable Reader Mode.

Could try to split/reduce the strings to try to "de-colour" the entropy/ heuristic to avoid it


File a bug report?


They have more than one image for each letter - does this snippet show every variation?



you can still install .xpi files on desktop


My dad's job for a while was configuring telecoms in a DSL built atop of prolog. The worst thing - the development enviroment was MS Word.


> The worst thing - the development enviroment was MS Word.

I hope you are joking.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: