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

You can make it production grade if you combine it with https://github.com/ajalt/fuckitpy


The repo name made me think it's a tool that stops you from using a project if it detects python:

"fuck, it's python!" *throws it in the garbage*


we need one of those for golang


Are there any lists with known c&c servers for these services that can be added to Pihole/etc?


You can use one of the list from here: https://github.com/hagezi/dns-blocklists


And reaction videos?


Container Instances is bad though, and you'll regret using it. There is Azure Container Apps but it requires some more setup in advance.


This is the greatest addition since f-strings!


There are still some 3.1 dialogs in Windows 11 https://ntdotdev.wordpress.com/2023/01/01/state-of-the-windo...


My point exactly. Since it's the ODBC Data Source selection dialog, I think the actual users of it would be old enough to work with Win3.x/WinNT 3.x back when it was new, so maybe it counts both as penny-saving and a fan service for the greybeards?

On the other hand, how many kinds of first-party file copy dialogs and file open dialogs do you need? :-)


Check out ProcessPoolExecutor [0] (and ThreadPoolExecutor) too for an easy way to spin up a bunch of tasks and wait for them to complete.

[0] https://docs.python.org/3/library/concurrent.futures.html#pr...


Agreed ! Plus, the ability submit a bunch of tasks, and to block until _one_ task completed (akin to `epoll_wait` of tokio's `select`) makes it quite useful. I don't know of a use case or `mutiprocessing.Pool` which is not covered by `concurrent.futures.ProcessPoolExecutor`; so I wonder why both exist


In general, the Executor or even Queue abstractions are much better and safer ways of doing multithreading and multiprocessing. These days, I rarely ever directly create threads. It's fine for situations when you must but parallelizing work can usually be done better, safer, and easier with executors.


Coincidence: I literally read that doc-page and wrote some ThreadPoolExecutor code 5 minutes ago to workaround the lack of a specific async operation in asyncio.


>To make the transition seamless for you and your organization, there are no changes to any Azure AD capabilities, APIs, login URLs, PowerShell cmdlets, Microsoft authentication library (MSAL), developer experiences, or tooling.

So we will still be calling it Azure AD in most situations where someone interacts with it


On a fresh install I first setup WSL1, duplicated it and then converted the other one to WSL2. I don't really use the WSL1 one much, but it's nice whenever I need touch files "in Windows".


How does Giphy make money? Does companies like Slack etc. pay for the integration?


It doesn't.

The idea (pre-aquisition, afaik Meta deprioritized that) was letting companies pay to push their gifs. Since companies can't directly buy ads in your private conversations, giphy could offer them the exciting opportunity to push people to send ads in meme-format to their friends! (I wish I was joking, but that was their framing)


> Since companies can't directly buy ads in your private conversations

Dumb question, but why can’t they?


Because no messenger app (that I know of) offers that? For now, that's probably not quite palatable to users.


Turns out gifs and analytics tracking pixels have a LOT in common.


Analytics tracking pixels normally ARE GIFs, specifically a 43 byte transparent 1x1 GIF.

But most “GIFs” are not GIFs but rather Mp4, mov, or webm or some other compressed file format. Actual GIFs are extremely wasteful of bandwidth and not hardware optimized. The name lives on though.


> Analytics tracking pixels normally ARE GIFs, specifically a 43 byte transparent 1x1 GIF.

Is there a reason for this?

And no, a GIF is a GIF, nothing else is a GIF, an mp4 is not a gif, webm is not a gif.


Are you asking why a GIF is used, or why the 43 bytes are needed?

I think a GIF is likely the smallest wide-supported resources format (force the browser request a URL to load a specific resource). The 43 bytes is the minimum size for a valid GIF, so the browser won't log an error loading the image and go through all load events.

It looks like in modern browsers it's 35 bytes: https://stackoverflow.com/a/15960901/407650


you can say that, but the big gif hosting serve other formats with better compression by default.


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

Search: