3,615 karma · joined Apr 23, 2015 (11y ago) · 679 submissions
Mastodon: @sheephorse@mastodon.online
comment 3w ago · link · parent
I added dark mode to my blog a while ago and it was a little trying to do properly.
You can implement a half-assed dark mode yourself by adding the following css.
@media(prefers-color-scheme: dark) {
body {
filter: invert();
}
}
All your images will be inverted as well, which doesn’t work well for photos.comment 3w ago · link · parent
Why did I write a blog post on basic C++ when other pages exist? I strongly believe that there is a shortage of basic C++ blog posts as the old sites that we learnt from decay and disappear. There is no harm in repeating information.
Plus, I sometimes see the mistakes mentioned in the post in actual production code. We can all do with a refresher sometimes.
comment 3w ago · link · parent
Manifestly true, for lots of reasons.
The analogy only goes so far because currency is traded for goods, services, and debt all the time whereas shares are usually just traded for currency.
comment 3w ago · link · parent
I am simplifying terribly but just as shares represent a fraction of a company, cash represents a share of a nation’s economy.
comment 4w ago · link · parent
Minus several decades in rare cases but it’s going to be increasingly common.
Gambling always brings corruption. With on-premise casino games this is limited to inside of a single building owned by people who have a vested interest in keeping things looking honest.
With sports betting, there are huge incentives to collude or even act alone which are very hard to distinguish from legitimate play.
Internationally, horse racing, cricket, rugby, and (oh boy) soccer continue to have huge problems.
comment 4mo ago · link · parent
Third party allocators improved on this as well as usually avoiding the heap fragmentation problems that system heaps often suffered from back then.
These days the system heaps have improved to a point where you really only need to think about a third party heap for very specialized circumstances. They do usually come with nifty debugging tools though.
comment 5mo ago · link · parent
There is a place for complex blog posts on arcane subjects but posts on "common knowledge" are even more important. There is a 15 year old out there somewhere that needs to know how to use the different smart pointers in C++ or how to properly care for a cast iron pan.
comment 5mo ago · link · parent
comment 5mo ago · link · parent
In particular, you probably don’t want the GPS coordinates of your house publicly available on your blog for everyone to see.
comment 5mo ago · link · parent
You have to be selective though, some of the EXIF data specifies things like color spaces and orientation that is used by browsers for displaying the image properly.
comment 6mo ago · link · parent
But my favourite[0] was Write Your Own Adventure Programs, which taught data driven programming and text parsing.
comment 6mo ago · link · parent
Months later, just before the end of the internship, they received a reply. Their manager had forwarded their request up the chain of command and the email had the full quoted history. Their request had been bumped up 4 successive layers in the London office, then across to the US headquarters where it continued its upwards trajectory, finally alighting on the desk of a VP who, after thanking them for bring the issue to his attention, rendered an carefully considered opinion.
The whole process had taken weeks, presumably as each person in the hierarchy debated whether they had the authority to tackle such a weighty issue.
The email had then been inexplicably bounced back DOWN the chain one link at a time, back across the Atlantic Ocean, and through the local office, down to the suit-bound interns, again weeks later, who by this stage only had days left at the internship.
The answer was no.
comment 6mo ago · link · parent
I have been hearing about one more technical hurdle to solve before quantum algorithms become feasible since before I graduated. That was in 1996.
comment 7mo ago · link · parent
Let me introduce you to the last resort of the struggling artist - extreme stylization. Really good pixel art is a very difficult discipline but terrible pixel art can be just as appealing if you push a style you can call your own.
Be bold.
comment 7mo ago · link · parent
I’ve seen blogs that do not host comments themselves but instead automatically surface social media (usually mastodon) comments which I think is a useful technique.