RSSAmplifier

Blog

Shortround's Space

Technology and Culture

blog.shortround.spaceRSS feed ↗7 posts

Latest posts

Early exits in javascript generators

I was debugging a generator exiting early, seemingly without passing any of my final logging statements: async function * getNextSponsoredCarouselProduct( logger : ILogger | undefined , requestBids : RequestBidsFn , generateProductCardResponse : GenerateSponsoredProductCardResponseFn , request : IBidRequest ) : AsyncGenerator < IBuiltProductCardBidResponse > { const log = Ctx(logger) ? . with (…

client_loop: send disconnect: Broken pipe

tl;dr: bad ssh config - check to see if you set ChrootDirectory in your global configuration settings and remove it I spent a good 45mins on this problem and had to figure it out myself, so I figured I'd share with the world. I was trying to ssh in to my home server and kept getting: client_loop: send disconnect: Broken pipe Looking this up online yielded no useful results - the most common reason…

Quotes From The Ruined Map by Kobo Abe

Some were returning, going back to the place they had left . . . leaving in order to return. They go out to obtain walling material to make the thick walls of their houses thicker, stronger than ever to return to The dark street . . . Too dark . . . The street, which until a short while ago had been too white, linked as it had been with the milky sky, was now a street in the depths of a gorge,…

Broken Intellisense in Visual Studio C++ Project

Sometimes my Visual Studio C++ projects fail to show proper syntax highlighting, or I get this annoying message that my headers cannot be found in the project when I try to ctrl-click on them from my source files. I've found the most effective solution to be these steps: Clean all projects in your solution: Build > Clean Solution Close Visual Studio Open up a terminal and navigate to your solution…

IIS Module Permissions

I'm writing this down for posterity, as I've run into and had to solve this problem personally like 3 times, so I figured it'd be best to document the solution. When developing a native IIS module on Windows, it is important that IIS can access that module. If IIS's user group does not have access to the module's DLL file, Windows' Event Viewer will show an unhelpful message: The Module DLL…

Modern SDL2

A lot of people begin game programming via SDL2, and a lot of them use the venerable LazyFoo tutorials to learn that. Lazyfoo is good still, but SDL2 has added several features since Lazyfoo wrote their tutorials. I see a lot of people writing old SDL code that could be made more succinct with some modern functions, or can otherwise be made faster: Initialization Old way :…

Dependency Injection with Web Components

Web components are probably our best bet to end our dependency on overly large Javascript frameworks, but they have a few weaknesses that I've run into. Constructors, on their own, are a bit useless. When working on a Typescript web component, I wanted to initialize some private readonly fields based on its child elements or HTML attributes only to find that they are not guaranteed to exist when…