Jump to content

Tommi Prami

Members
  • Content Count

    531
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Tommi Prami

  1. 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-
  2. Tommi Prami

    Is there a way to check is the "user Idle" (no interaction)

    Little bit more polished version: https://github.com/TommiPrami/OLEDBlackScreen/releases/tag/Alpha_1.2.3
  3. Tommi Prami

    Is there a way to check is the "user Idle" (no interaction)

    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-
  4. Tommi Prami

    Is there a way to check is the "user Idle" (no interaction)

    That is Good point, most likely that does not work currently, maybe... Thanks for the bug, that needs to be fixed, somehow... -Tee-
  5. Tommi Prami

    Is there a way to check is the "user Idle" (no interaction)

    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-
  6. Tommi Prami

    Is there a way to check is the "user Idle" (no interaction)

    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-
  7. Tommi Prami

    Parallel.ForEach is really slow

    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-
  8. Apparently LAEL ("address calculator") can do multiply by 2, 4 and 8 very fast. Don't know anything about details, difference to other op codes etc... Subject starts from here, at C to llvm IR -> to asm : -Tee-
  9. 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-
  10. Tommi Prami

    Any chance of getting a signed installer?

    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-
  11. Tommi Prami

    Delphi on Surface Pro with Qualcomm CPU?

    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-
  12. 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-
  13. 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...
  14. Tommi Prami

    XX3_64Bits -hash really flies

    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 ;(
  15. Nicely summed up...
  16. 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-
  17. 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-
  18. 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-
  19. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    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.
  20. Do you have patch installed? K12.1 patch 1?
  21. https://www.jsonfeed.org/version/1.1/ Looks much cleaner and sane than RSS/Atom. Hope this catches on, RSS is/was very nice concept, but was kind of sidelined, can't remember why it is not that popular anymore, there was some major reason popularity dropped. -Tee-
  22. Tommi Prami

    JSON feed, replacement form RSS/Atom

    I was not thinking this as a traditional website feed, mainly. Buit standard to use in our apps to pass messages/info. Like your homepage to your app, to pass known bugs, new features etc... As far as I know Wordpress has rss-feed polugin, maybe some other CMS also has. And then you could start to publish something on your website and get the feed to your app. -Tee-
  23. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    Interesting... I'll get back to it when Coworkers has tested that also. Some got the same error on production app, but I'll wait for them to check out the trivial test app also. -Tee-
  24. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    Did not help.
  25. Tommi Prami

    Possible Delphi 12.1 inheritance bug, could someone test also

    Removed all IDE experts, and tried again and it behaves exactly the same... It seems that I just need to open the inherited form and StyledElements appear right away. -tee-
×