I do own the book, but I've mostly been able to get through it without learning MIXAL by just reading his paragraph descriptions or his pseudo-code. In this case I'm not quite getting it and I'm wondering if someone could either translate it to C code or direct me to a link online where it is...
No, I'm saying that I have the coordinates of the pixels, e.g. a 2-d array of booleans where true is a text pixel and false is a background of the text, and choosing the 1st most common color among the true coordinates within a region containing text.
Below is a better example of the pixels of...
I'm creating a type of image processing software and I have a need to get the color that best represents text once I have identified the pixels in a region of text. I've tried using simple strategies like "averaging" the pixels or taking the most common pixel, but these produces bad results
An...
Let me give an example of what I mean.
Suppose there's a very simple requirement: Write a program to recursively search a directory and count the number of "*.dll" files.
Could easily whip up a working solution using C# DirectoryInfo class in about 1 minute.
However, you can think of this...
Let's say I run an ecommerce business and I have one service for handling shipping and another service for handling customer profiles such as name, address, age, etc. Call them Customer Management Service and Shipping Service.
SS has an interest in knowing the customer address of which CMS is...
I'm not so sure about that. When layers upon layers are programmed to abstractions, it can be very difficult to figure out from reading the code what it actually does at runtime in the context of the application that I'm trying to debug.
After ~5 years of real-world experience I've become so much better than I used to be at software design. Interfaces, dependency injection, small classes, composability, factory methods, generics, micro-optimial algorithms, etc. However I'm not sure I have become faster at delivering work items...
Having worked with both SQL Server and Cosmos DB (more the former), the following are the biggest pain points I've experienced with each.
SQL Server:
Complicated to make it work. There are 100+ different ways to authenticate, for example. All this complicated User-Role mapping, Managed...
But let's say that the rates are
A -> B: 1 pebble/second
B -> C: 1 zillion pebbles/second
C -> D: 1 pebble/second
That's a different rate than if we change C -> D to be 1 zillion/second.
The formula for K piles with rates r0, ..., rk is complicated but it would involve summing the rates, for...
Let's say I have a client that asks for a file from a remote server that then asks for the file from some other remote server (Let's say Azure Blob Storage, for example). Let's say that the file can be transferred from blob storage to the web server at 60mb/s and from the web server to the...
I remember a while back someone told me that there exist programmers who don't believe in null. I thought that was a crazy idea. Until recently, as I've gotten better at OOP and have figure out that if my object has a property that is allowed to be set to null, it usually means that I am not...
Let's say I have a service that publishes events, like
eo ("Bought 100 shares of AAPL")
e1 ("Bought 100 shares of T")
e2 ("Sold 500 shares of TSLA")
and there exist stateful services subscribing to the events and whose state depends on the events being processed successfully and in the correct...