Recent content by SlurrerOfSpeech
-
S
C/C++ Could someone translate this Donald Knuth algorithm to C/C++?
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...- SlurrerOfSpeech
- Post #3
- Forum: Programming and Computer Science
-
S
C/C++ Could someone translate this Donald Knuth algorithm to C/C++?
[Can't embed image. Keep getting 500 Internal Server Error ...] https://i.stack.imgur.com/rmDuR.jpg Image added by mentor- SlurrerOfSpeech
- Thread
- Algorithm
- Replies: 10
- Forum: Programming and Computer Science
-
S
Text color detection algorithm giving pixels of text
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...- SlurrerOfSpeech
- Post #3
- Forum: Programming and Computer Science
-
S
Text color detection algorithm giving pixels of text
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...- SlurrerOfSpeech
- Thread
- Algorithm Color Detection Text
- Replies: 6
- Forum: Programming and Computer Science
-
S
I'm becoming a much better programmer, but maybe not a faster one
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...- SlurrerOfSpeech
- Post #39
- Forum: Programming and Computer Science
-
S
"Fake autonomy" and the delusion of autonomous services
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...- SlurrerOfSpeech
- Thread
- Replies: 3
- Forum: Programming and Computer Science
-
S
I'm becoming a much better programmer, but maybe not a faster one
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.- SlurrerOfSpeech
- Post #9
- Forum: Programming and Computer Science
-
S
I'm becoming a much better programmer, but maybe not a faster one
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...- SlurrerOfSpeech
- Thread
- Replies: 43
- Forum: Programming and Computer Science
-
S
Why can't there be a Database tool that has the best of everything?
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...- SlurrerOfSpeech
- Thread
- Database
- Replies: 5
- Forum: Programming and Computer Science
-
S
Time it takes to transfer a file to a client
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...- SlurrerOfSpeech
- Post #6
- Forum: Programming and Computer Science
-
S
Time it takes to transfer a file to a client
Is there a theorem for this?- SlurrerOfSpeech
- Post #4
- Forum: Programming and Computer Science
-
S
Time it takes to transfer a file to a client
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...- SlurrerOfSpeech
- Thread
- File Time
- Replies: 10
- Forum: Programming and Computer Science
-
S
Is the use of null an anti-pattern?
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...- SlurrerOfSpeech
- Thread
- Design Oop Programming
- Replies: 4
- Forum: Programming and Computer Science
-
S
Event-driven system and subscribers missing events
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...- SlurrerOfSpeech
- Thread
- Architecture Design Events Programming System
- Replies: 4
- Forum: Programming and Computer Science
-
S
Microservices architecture disaster
Huh? You can have N running instances of a monolithic service.- SlurrerOfSpeech
- Post #5
- Forum: Programming and Computer Science