-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
DUnitX: How can I load HTML files within unit test?
Fr0sT.Brutal replied to JamieR's topic in General Help
+1 to Anders. No need in running a car for the whole day just to check windshield wipers. But if you want to check the overall cycle, you can run any simple local web server and test against it -
I guess now all that's left is to emit traditional curses to Bill Gates
-
{$IF CompilerVersion >= 14}Variants,{$ENDIF}
-
What would use use a TMS WebCore app for that's hosted on an IoT device?
Fr0sT.Brutal replied to David Schwartz's topic in Network, Cloud and Web
To me this seem useless. If devices are linked into a network they're usually controlled by UI of a head unit or by an app (hi Xiaomi). If they're individual, they rarely require rich UI - raising Delphi server+uniGUI on a "smart" bulb just to change its color... rather silly. With all these messy JS frameworks classic nginx+PHP+user-side static pages are unfairly forgotten but they're still the best choice for simple admin consoles -
Project reached somewhat usable state. Check it here. SChannel is Windows built-in implementation of TLS protocols. This allows supporting secure connections without any external library. Repo contains: unit with transport-agnostic helper functions for easy implementation of TLS communication by means of Windows SChannel. sample of transport-agnostic synchronous TLS handshake using callback functions for real communication API declarations borrowed from JEDI project ICS TWSocket descendant that performs TLS communication demo project for performing any textual (mainly HTTPS) requests via secure connection Note. I first started learning what TLS is a couple of weeks ago :) So units contain only a necessary minimum to interact with TLS server. Certs and other advanced stuff are in TODO. Thanks to author of TLS-Sample from http://www.coastrd.com/c-schannel-smtp and JEDI for WinAPI headers.
-
SChannel TLS - perform TLS communication with WinAPI
Fr0sT.Brutal replied to Fr0sT.Brutal's topic in I made this
Several updates released including - Sharing of session data (shorter handshake in next connections to the same host) - More customization and debug abilities - Support TLS to IP - More control over server cert validation: flags to allow ignoring some cert aspects and list of trusted certs that are considered valid without any check. -
What would use use a TMS WebCore app for that's hosted on an IoT device?
Fr0sT.Brutal replied to David Schwartz's topic in Network, Cloud and Web
Complex UI for the web-server differs from non-complex UI only in size; though absolute numbers aren't that much. I doubt RPi would experience any issues transferring 10 Mb page especially considering that likely will happen only once - further user actions will fetch cached scripts. Of course I mean modern UIs that are almost fully driven by clientside JS. Heavy old-school client-static (that is, generated on a server by templates) surely are a burden. -
You also can run custom message loop that will process WV's messages and stash/drop/whatever all others. Or, just switch the main window off with EnableWindow (that's how modality works in fact).
-
How to Prevent Multiple Instance Application Running.
Fr0sT.Brutal replied to amit's topic in Cross-platform
How do you handle the default blocking nature of pipes? Or use it async-ly? -
Can I change the entry point for a VCL application?
Fr0sT.Brutal replied to JamieR's topic in Algorithms, Data Structures and Class Design
F7 -
SudokuHelper - Example for uncoupled design via interfaces
Fr0sT.Brutal replied to PeterBelow's topic in I made this
Using TMonitor over the instance itself could spare excess CS. Btw, there are lots of such lazy inited singletones in RTL:- 38 replies
-
- interfaces
- uncoupled design
-
(and 2 more)
Tagged with:
-
How to Prevent Multiple Instance Application Running.
Fr0sT.Brutal replied to amit's topic in Cross-platform
I also use mutex (event in my case)+findwindow approach as the simplest solution but named pipes seem more advanced (didn't implemented them yet though) - Same system- or user-wide unique named object - Communication included for activating 1st instance with any data - More reliable than Findwindow - Suits for console apps, services - Likely x-platform (at least for Linux) -
What it's like to be a Delphi Developer
Fr0sT.Brutal replied to Joe C. Hecht's topic in Tips / Blogs / Tutorials / Videos
Yep to change things in PF you need elevation. I almost never place my soft in PF. You can change AkelUpdater.exe settings to always run as admin -
How to Prevent Multiple Instance Application Running.
Fr0sT.Brutal replied to amit's topic in Cross-platform
Yes they are but not named so useless for the purpose probably for *nix named pipes or file sockets should be used -
How to Prevent Multiple Instance Application Running.
Fr0sT.Brutal replied to amit's topic in Cross-platform
*shrug* Original Q didn't mention any platform req's -
What it's like to be a Delphi Developer
Fr0sT.Brutal replied to Joe C. Hecht's topic in Tips / Blogs / Tutorials / Videos
Me: WinMerge, AkelPad, xplorer2... I'd put any VCS right after Delphi in this list -
How to Prevent Multiple Instance Application Running.
Fr0sT.Brutal replied to amit's topic in Cross-platform
Mutex has nothing to do with VCL so you can use it for FMX as well -
How to deploy a large Android app (150+ MB) using "Play Feature Delivery"?
Fr0sT.Brutal replied to Hans♫'s topic in Cross-platform
This sounds like a good question for GP support -
There's Freepascal that you can estimate. Just extract Win-only part and count LOCs
-
I guess it's used here as an estimation sample
-
Calendar convertion, from UT or JD to Hebrew
Fr0sT.Brutal replied to Guba's topic in Algorithms, Data Structures and Class Design
This lib in fact became industry standard and is used by numerous apps - Node, Chrome, Firebird... It's even included in W10: https://docs.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu- I guess when you do encrypted network connections you don't implement your own TLS engine but use OpenSSL for this or something alike? The same with ICU. Anyway it's all up to you 😉 -
Calendar convertion, from UT or JD to Hebrew
Fr0sT.Brutal replied to Guba's topic in Algorithms, Data Structures and Class Design
https://unicode-org.github.io/icu/userguide/datetime/calendar/ -
Calendar convertion, from UT or JD to Hebrew
Fr0sT.Brutal replied to Guba's topic in Algorithms, Data Structures and Class Design
Won't ICU help you then? I think they have literally everything for internationalization -
Calendar convertion, from UT or JD to Hebrew
Fr0sT.Brutal replied to Guba's topic in Algorithms, Data Structures and Class Design
Damn, I thought old British money system is the most crazy mess I saw. -
AFAIU all it does is create RDP shortcut. This shouldn't be too hard to rewrite; moreover, this hardly needs to be rewritten - just use as is. BTW, had anyone tried it? I'm interested but all our Windows are Pro's that haven't got this feature 😞