-
Content Count
585 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tommi Prami
-
https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-1265 Thought it was default dialog from IDE, but as it behaved differently than IDE default, uninstalled MMX to confirm. Couple of related things. 1. Can I deactivate MMX to override Ctrl+F12 2. Or could the MMX version work the way in IDE default work, I can write multiple words to narrow search down. I rarely remember exact name, so I write something like "custom invoice edit" to get MyForm.Beautiful.Custom.Invoice.Magic.Edit.pas -Tee-
-
Thanks... -Tee-
-
Would be nice to know where this misconception of mine comes from, as it seems that I am not alone. I have no recollection where I got that from., -Tee-
-
Tested this and I stand corrected. I bet this was the case way back at least, that exception in constructor was leading to memory leaks. Might be still wrong tpugh. -Tee-
-
At least exception raising in constructor might not be best practise. -Tee-
-
Is there a way to check is the "user Idle" (no interaction)
Tommi Prami posted a topic in Windows API
Hello, Similarly as Screen Saver starts after some time no input and so, I would like to detect/get notification for that. Or as the Teams will change status to the Away.,.. Tried to google around but nothing good came up... -Tee- -
Is there a way to check is the "user Idle" (no interaction)
Tommi Prami replied to Tommi Prami's topic in Windows API
Little bit more polished version: https://github.com/TommiPrami/OLEDBlackScreen/releases/tag/Alpha_1.2.3 -
Is there a way to check is the "user Idle" (no interaction)
Tommi Prami replied to Tommi Prami's topic in Windows API
Made first test "Release" Little of usage info in the readme.md Note that it's start as minimized, sould block the sleep and screensaver (which is my point, might be optional later), and just show black screen. Why Im made this, is that I have LG OLED TV as monitor, and don't want to go to screensaver at home office, and would like to go to the back screen. https://github.com/TommiPrami/OLEDBlackScreen Prebuild exe if you dare to use: https://github.com/TommiPrami/OLEDBlackScreen/releases/tag/Alpha_0.1 -Tee- -
Is there a way to check is the "user Idle" (no interaction)
Tommi Prami replied to Tommi Prami's topic in Windows API
That is Good point, most likely that does not work currently, maybe... Thanks for the bug, that needs to be fixed, somehow... -Tee- -
Is there a way to check is the "user Idle" (no interaction)
Tommi Prami replied to Tommi Prami's topic in Windows API
Donät know what you mean by local/global. Mainly I need to know is the user being using mouse or keyboard etc. At least for now that seems to be enough. GetLastInputInfo() is working well for now. I'll try to get this thingy more than less ready this week, so I can show it to you,... Not much to do but... -Tee- -
Is there a way to check is the "user Idle" (no interaction)
Tommi Prami replied to Tommi Prami's topic in Windows API
No need to track especially, but to know how long user has been idle... I GetLastInputInfo() API for now, and seems OK for now. Added todo-items for those links, seemed to have many good things to research later. Thanks. -Tee- -
Please let us know how it goes. For me it was just changing two lines... Removed one two pieces of code "const" and "<Integer>" It did not make things faster, but I'll split the workload into the Chunks before processing them in parallel. -Tee-
-
FYI: Stumbled upon interesting ASM optimization trick LLVm can do (most likely others also)
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
If I remember from the video, the LLVM will use shl/shr (never remember which) tric on the intermediate version (Like it'äs bytecode), but it'll use the LEA at the binary if it just can. I always thought shl/shr would be the fastest way.. -Tee- -
Don't know what is the current situation, and it most likely varies greatly by certificate vendor and so on. But... CoWorker wanted to sign free apps, and it was huge mess. What I can remember he could not get the certificate, because he is individual and not the company, and would have needed lawyer and so forth to validate to certificate vendor that he is who he says he is. Or something like that. And this clearly is large problem, IMHO, Open Source or free apps people or teams are releasing for free and not for business, should have reasonable priced certificate, with reasonable byreogracy. Most likely ones that can solve this might not be here reading this. But this seems like solvable problem. But is anyone have some ideas how to get certificate for OpenSource/free project, at reasonable price (all of our mileage might vary) and so on, leave comments. -Tee-
-
Delphi on Surface Pro with Qualcomm CPU?
Tommi Prami replied to PeterPanettone's topic in Windows API
I went to the roadshow and was left into understanding that those come out after summer. So most likely no one has tested that, if has, most likely is not allowed to talk much about it. -Tee- -
What do you think of "Local Global variables"
Tommi Prami posted a topic in RTL and Delphi Object Pascal
Yellow, Could not think what else to call then as "Local Global variables" So let me show. function Foo(...) var LListOfVariables: TSomeType; procedure Bar1; begin // Complex proc that might or might not use variables defined above, and/or change them end; procedure Bar2; begin // Complex proc that might or might not use variables defined above, and/or change them end; ... begin // Func main body that might or might not call local procs end; For me this is very hard to wrap my brains around. For me this pattern requires lot of thinking and overloads my limited memory, to keep in mind that call to local procedure might touch the local variable, even it is not directly passed into them. I don't have anything against local methods, they wrap nicely some local need, that is specific for that parent method, and only for that. But fight are they good idea at first place, is another matter. -Tee- -
What do you think of "Local Global variables"
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
I don't. Why would I complain about it if it would be my own fault 😄 But there are people that has this habit, in component vendors, open source library writes, possibly in coworkers etc... -
https://xxhash.com/doc/v0.8.2/index.html There are some Delphi implementations of some version of xxHash, bot not low level optimized version. -Tee- PS. posted this in wrong group ;(
-
What do you think of "Local Global variables"
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Nicely summed up... -
What do you think of "Local Global variables"
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
I think this way too. My main reason is not that much of the how "clean/good" the code is in this case, but is mentally frustrating. Very difficult to keep track what happens and when... If code is cleaner and better, that is definitely a big bonus. -Tee- -
What do you think of "Local Global variables"
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
I think that is not the point of nested methods. To me that that Nested methods see those variables is not the point of the nested methods, that is just as how they work. Like hammer is nice tool but don't hit random people in the head with it... 🙂 -tee- -
https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-779 IDE adds StyledElements default value to inherited form even though not needed One coworker can't reproduce. So need more info why that might be, I have few free plugins installed, like GExpers. Have to uninstall those and try if problem is not in the plugins. -Tee-
-
Possible Delphi 12.1 inheritance bug, could someone test also
Tommi Prami replied to Tommi Prami's topic in VCL
This appears to be problem with the : Options > User interface > Form Designer > Enable VCL Styles -setting. Disabling the Mimic* and Enable VCL Styles settings, inheritance works as expected. -
Fatal issue on Delphi 12.1 with Split Editors on multiple monitors
Tommi Prami replied to PeterPanettone's topic in Delphi IDE and APIs
Do you have patch installed? K12.1 patch 1?