Jump to content


Popular Content

Showing content with the highest reputation on 04/26/19 in all areas

  1. Lars Fosdal

    New VCL Style from DelphiStyles.com

    We sure do, because this makes me cringe. Too much clutter. That said - I also hate the currently popular naked "flat UI" design philosophy which takes away most UI guidance and makes you guess if something is a link, a button, or just text - and you have to hover and/or click in the right places to find out.
  2. chkaufmann

    Tree view?

    Maybe I'm getting old but I still prefer nntp, pure text. It's much easier to follow interesting threads and ignore others. No web interface beats something like XanaNews. Christian
  3. Primož Gabrijelčič

    Ttask loop each 1 second

    FWorker := TWorker.Create(SpinEdit1.Value); FTimedTask := Parallel.TimedTask .Every(1000) .Execute( procedure (const task: IOmniTask) var value: integer; begin FWorker.Tick; value := FWorker.Value; task.Invoke( procedure begin ListBox1.Items.Add(value.ToString); end); end); FTimedTask.Start; type TWorker = class strict private FValue: integer; public constructor Create(startAt: integer); procedure Tick; property Value: integer read FValue; end; constructor TWorker.Create(startAt: integer); begin inherited Create; FValue := startAt; end; procedure TWorker.Tick; begin Inc(FValue); end; Source: https://gist.github.com/gabr42/15a514a2960be43a0a5b1a6db69274f7
  4. Sherlock

    On-demand ARC feature discussed

    There is one simple and effective way to follow through on that, which is to just stop responding.
  5. Remy Lebeau

    On-demand ARC feature discussed

    Many C++ compilers do offer that as an extension. C++Builder has 'try/__finally'. VC++ and CLang have '__try/__finally', etc. But proper use of RAII trumps the need for try/finally at all. But if you want, try/finally can be emulated in pure C++ using lambdas and pre-compiler macros (see this, for example).
  6. Remy Lebeau


    Why are you freeing the TBlobField at all? You don't own it, the Query component does, so you should not be freeing it at all. Also, you are leaking the TMemoryStream that you create (which you should not be creating in the first place). The only thing you should be freeing manually is the TStream that CreateBlobStream() returns, eg: var aBlob : TField; aStream : TStream; begin aBlob := aQuery.FieldByName('Memo'); aStream := aQuery.CreateBlobStream(aBlob, bmRead); try aMemo.Lines.LoadFromStream(aStream); finally aStream.Free; end; end;
  7. Angus Robertson

    ICS V8.61 announced

    ICS V8.61 has been released at: http://wiki.overbyte.eu/wiki/index.php/ICS_Download ICS is a free internet component library for Delphi 7, 2006 to 2010, XE to XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo and 10.3 Rio, and C++Builder 2006 to XE3, 10.2 Tokyo and 10.3 Rio. ICS supports VCL and FMX, Win32, Win64 and MacOS targets. The distribution zip includes the latest OpenSSL 1.1.1 win32, with other versions of OpenSSL being available from the download page. Changes in ICS V8.61 include: 1 - Added two new components using the new HTTPS REST component, which are both useful and illustrate how simply they can created, TIcsSms and TDnsQueryHttps, both in the OverbyteIcsSslHttpRest.pas unit with demos in OverbyteIcsHttpRestTst. 2 - The new TIcsSms component sends SMS text messages via an HTTP bureau, you will need an account. Initially supporting https://www.kapow.co.uk/ from where you set-up an account for £6.50 (about $9) which gives 100 message credits. Other similar bureaus can be added, provided there is an account for testing. The component has three methods, SendSMS sends an SMS to a mobile number and returns an ID, CheckSMS checks if the SMS with a specific ID has been delivered, pending or failed and CheckCredit returns remaining credit for the account. Messages longer than 140 characters should be sent as multiple messages, if supported by the network. 3 - The new TDnsQueryHttps component makes DNS queries over HTTPS (DOH), to ensure integrity and privacy from interception by ISPs or proxies. It includes a list of public DOH servers from Cloudfare, Google, Quad9 and others, and will make all common DNS queries, including all which does the seven most common queries together. The original TDnsQuery component has also been updated to support all the common queries and return them in using a single AnswerRecord array, rather than an array per query type, but remains backward compatible for existing queries. It now also returns alternate responses. Supports IPv6. The OverbyteIcsNsLookup sample uses TDnsQuery while the OverbyteIcsHttpRestTst sample uses TDnsQueryHttps. The latter sample also illustrates DNS over HTTPS using Json as a REST demo. 4 - Improved HTTP client and server NTLM authentication by adding Single Sign On with NTLM Session on Windows Domain to get credentials without needing them specified in code. 5 - Improvements in the HTTPS REST component to prevent TSslHttpCli events being overwritten by TSslHttpRest events. ResponseXX properties are now available in both OnRequestDone and OnRestRequestDone event handler. IcsHtmlToStr returns javascript content as well as XML and Json and does not ignore very short content. 6 - Improvements in the HTTP client, added more header response properties: RespDateDT, RespLastModDT, RespExpires and RespCacheControl. NoCache now sends Cache-Control: no-cache for HTTP/1.1. 7 - Fixed SSL certificate ValidateCertChain to check certificate start and expiry dates in UTC time instead of local time. Previously certificates issued in North America with UTC/GMT time stamps may have been seen as not yet valid. 8 - The FTP client now accepts badly formatted FEAT PROT responses. 9 - The Browser Demo sample using HtmlViewer now correctly supports authentication methods where a site requires a login, and has an improved log window that no longer slows down display of complex pages. Angus
  8. Markus Kinzler

    On-demand ARC feature discussed

    @AlekXL@Rudy Velthuis Please Stop!! We told you to do this already several times now! Our patience isn't unlimited!
  9. Alek, I really don’t understand your intentions. You obviously have your opinion and that’s okay - but you are not allowing other points of view without insulting other members of this community. Stop this now. As long as you act this way, we cannot discuss with each other (read: with you). Rudy - sometimes a discussion must stop when we realize that it will lead to nowhere. Especially in a web-forum with a linear discussion-thread. The tree-based layout of a usenet-group allowed yo to discuss side-aspects for ever. But here this style just captures a whole thread.
  10. Rudy Velthuis

    On-demand ARC feature discussed

    I see you're trying to find more friends. <g>
  11. You can search for references and jump to any places where the interface type is used included the implementing class
  12. Sherlock

    Please vote - SonarCube support

    Regarding FixInsight, it would appear that after acquisition only marginal work has been invested. https://www.tmssoftware.com/site/fixinsight.asp?s=history However, this might mean the product is stable and needs no more improvements. I am quite happy with it, and the flexible ways to make it fit my requirements.