« first day (5050 days earlier)      last day (115 days later) » 

00:34
 
7 hours later…
nwp
nwp
07:53
It has been a while since I ranted about Qt, but have an update now. I'm making some graphs with a ChartView in QML. The Y scale has numbers and vary in number of digits, thus making the scale change size which makes the whole graph jump around seemingly randomly, very irritating. But fear not, there is a feature for that! Just use the labelFormat which gets passed to something like sprintf.
It defaults to "%d", but you can set it to "%5d" to make it pad the number with spaces until it is 5 characters long, add in a monospace font and the problem is solved. Right? Wrong! Spaces are not displayed correctly (reported 2018, no solution).
Well, but ... surely we can do something, right? Just make the format be " %d" and vary the spaces depending on current data. No, spaces are still displayed incorrectly, regardless of who added the spaces. What if you use a fancy unicode space? Combined with a monospace font it'll work, right? No. EVERY unicode space is displayed as a question mark with EVERY font. I want to cry.
"%05d does what you'd expect, pads with 0s, keeps a consistent length, but looks too ugly in practice.
 
5 hours later…
12:57
Cryptocurrency transactions occur through electronic messages that are sent to the entire network with instructions about the transaction. The instructions include information such as the electronic addresses of the parties involved, the quantity of currency to be traded, and a time stamp.
If Cryptocurrency transaction instructions indeed carry out those informations, wouldn't authorities able to trace back and figure out money laundry and other criminal operations? Maybe not with 100% accuracy, but if they put enough resources into it, a reasonable amount of those?
nwp
nwp
If you converted dirty money to cryptocurrencies the laundering has already completed successfully.
The list is missing "reason for sending money" which makes tracking things tricky.
The normal reaction of freezing bank accounts or taking money away is also sort of impossible, you have to succeed at confiscating keys which gets foiled by a password and then you're left with putting people in prison until they pay. That's viable, though difficulty in proving that a given cryptocurrency account is owned or controlled by a specific person makes this difficult legally.
nwp
nwp
13:41
Behold the location of my error:
> QT WARNING | LOCATION: : : 0 : Ignored NaN, Inf, or -Inf value.
Can't even put a breakpoint in the warning printer to diagnose the issue because it gets send via event to an event queue and the code causing the issue is not in the call stack.
In hindsight I should not have used unicode whitespaces exclusively to name my files and functions.
13:56
@TelKitty you can be sure that governments are monitoring the publically accessible ledger, but then the hard part is correlating the wallets with the that might be doing illegal things
14:18
@Mgetz any books you could recommend me wrt software architectures/patterns of GUIs?
@JerryCoffin ^
14:37
I need to step up my game. MVC, MVP and MVVM are not enough any more I'd think
14:51
I prefer MV* where it's only the underlying data and some code to get it onscreen
@LandonZeKepitelOfGreytBritn almost all of these exist because there is an underlying assumption that your front end dev can't do back end code and vice versa
 
3 hours later…
18:03
@Mgetz are you saying that MVC is retarded and you should just do MV as ratchet suggests?
@LandonZeKepitelOfGreytBritn I'm saying they have their place, they make an assumption you may not want in your code
I am having a discussion for a new job. The company in question does a peculiar IDE using Qt so thought it could be interesting to dive deeper into GUI patterns
but like many things there is value in something insofar as you understand the tradeoffs
gotta secure the job
 
4 hours later…
22:00
@LandonZeKepitelOfGreytBritn Just in case you didn't already know it, the other obvious thing to learn about re: Qt would be signals and slots.
22:15
@JerryCoffin yhea, I m not totally retarded :p I am very well aware of that
 
2 hours later…
23:51
posted on August 13, 2024 by Blog Staff

Do we need a default constructor? What does it mean to have a default constructor? What happens if we don’t have one? Those are the questions we are going after in this article. What to do if you don't want a default constructor? by Sandor Dargo From the article: A default constructor is a constructor that takes no arguments and initializes - hopefully - all th


« first day (5050 days earlier)      last day (115 days later) »