Trying to get the total count of objects to display on the homepage. Here's my code def dashboard(request): total_issues = Issue.objects.all().count()
I want to set an image on QPushButton, and the size of QPushButton should depend on the size of the image. I am able to do this when using QLabel, but not with
I am new to googletest/googlemock and I have following questions: First question: I have this DatabaseClient class which has a method query_items which I want t
How can I modify the equation in this Google Spreadsheet which I found as an answer to another question so that it can allow a user to customize the order of re
I'm using Golang, I'm trying to make this program thread-safe. It takes a number as a parameter (which is the number of consumer tasks to start), reads lines fr
I'm trying to format (Pass) pointers to a string. std::string buf; std::format_to(std::back_inserter(buf), "Press {:s} {:s} [{:d}m] {:p} {:p}", string, string,
I created an indicator of crossing over moving averages, when ema1 crosses above ema2 it is an uptrend so the background color changes to green and when the ema