Jump to content

Kas Ob.

Members
  • Content Count

    461
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Kas Ob.

  1. Kas Ob.

    ANN: sgcWebSockets Rad Studio 12

    @esegece Question I received an offer few hours ago for special Discord bot, that will handle delivering trial/limited software to users, from what i see esegece WebSocket provide API for discord, but i have no idea where to start with Discord, though tried your Telegram demo, and it worked way better than my expectation, in fact in less 3 minutes i had a Telegram bot sending and receiving messages and files, this gave me goosebumps, but discord demo i can't find how or where or where to start, so i want to ask your opinion about a comparison Discord bot developing vs Telegram Bot, is there road bumps in making similar functionality with such ease for Discord like Telegram ? is there a pointer(s) on how to make Discord demo work ? My question is that i need to put a time frame for that offer, if it doable then sure the project will provide me with financial justification to buy a license.
  2. Kas Ob.

    Delphi 12 - Action Bar Menu painting issues with RDS

    This has nothing to do with Delphi, in fact this behavior is observed with every software do animation when used with RDP (RDS) the problem is simple, RDP screen core process will detect screen changes at some intervals, then send these parts, so it goes from full screen update to small part, these animation happens at high frame rate, so either RDP didn't capture the changes because it fall in between its frame capturing time and it did look like was minimum change and not worth updating, or due the high change rate the RDP throttled the update and skipped updating these parts. Recommendation : if possible detect RDP session (RDS as you called it) and disable all animation, this will enhance the fps and prevent what seems like wrong rendering, also if you have shadows, blurring and gradient colors then disabling them will enhance the speed a lot and require less traffic due the smaller images with higher compression without losing quality.
  3. Kas Ob.

    AcceptSecurityContext (Negotiate) not working

    I don't think it is needed now to separate this thread, and yes we are off the original topic. Still getting to know this gem, now debugging is working, it is somehow big library to get the ins/outs, it is just different and i might think of few additions and adjustments, but all in its time. My question about throttling was due some strange behavior, didn't find yet, but demo09 was throttled and it was visible, demo04 yesterday did something similar but after running many test drives and breaks many things, today i can't repeat it even with the same files, there was some slowness in uploading, demo proto still fail with big files (more than 2.3mb) but not fail with exception just the connection timeout at 30s with my PC and Chrome, also don't think it is huge deal, most important thing is that demos are there and working to tweak, love whole idea of this approach with xxm. Mostly i love the file handling and websocket and the lightness and conciseness of everything around this xxm, it gives more power and control than scripting.
  4. Kas Ob.

    AcceptSecurityContext (Negotiate) not working

    And yes compiling on demand is running flawlessly, it is beautiful, short and fast. Congratulations on this piece of gem and thank you ! ps it is astonishing, the difference between your files which Delphi 7 and the one generated on mine, ten times the size ! (94kb vs 960kb)
  5. Kas Ob.

    AcceptSecurityContext (Negotiate) not working

    Thank you, now things running ! One thing though, the xxmProject.exe still refusing to run, it does crash, even when i tried the one from the binaries package it does allowed to select the web file then crash. From the xxmProject.exe in the Demo package Not really a problem but if the path to the demo (web project) has a space then the compilation fail Tried playing around and i am liking this, one thing though will have time for it later to dig in, the uploading file is slow like it is being throttled, is it ?
  6. Kas Ob.

    AcceptSecurityContext (Negotiate) not working

    I get the jest of that, but i can still serve static files with/without my own scripting , right ? That why i need to see some action, some clients love to feel like hackers by providing them with some sort of tweaking and adjusting stuff, like building their own SQL query and have the ability to add button for that then adjust the colors of the columns ...etc That literally what i want to hear and read, not to be forced to use others implementation of exception handling and have full control over it.
  7. Kas Ob.

    Delphi 12 is available

    That will not work, your finally is missing a try before hand and an end afterward.
  8. Kas Ob.

    SonarDelphi v1.0.0 released!

    Don't know about Peganza Expert, i have an old expired Peganza Analyzer, but if the Expert have 1/5 of the Analyzer features, then it is x10 time than anything else, i mean anything and all, it should be part of the IDE decades ago.
  9. Kas Ob.

    AcceptSecurityContext (Negotiate) not working

    I suggest/request to add a new download package at http://yoy.be/xxm/download.html , just one binary xxmHttpDev (or xxmHttp) but with full working demos, working out of the box, no interaction needed, something to show the functionality without any setup or tweak. User or potential users need to see the power of running web server effect in one single click (with xxm features), and the portability of paths and the whole setup, it is important.
  10. Kas Ob.

    The future of Delphi

    Please Lars, help me put this sentence in stage https://en.wikipedia.org/wiki/Five_stages_of_grief
  11. Kas Ob.

    AcceptSecurityContext (Negotiate) not working

    I can find words to explain how much i hate ORM, for me it is a pile of hot stuff.. , ORM for me doesn't bring anything useful except unneeded complexity, more code to maintain and break with changes forcing to rebuild the everything and huge dependency on the unknown, uncontrolled and movable parts being data to find them selves as objects in running code. When it comes to HTTP, mostly i use RTC, don't know if you are familiar with it or with its powerful scripting engine, it is just brilliant, the the script it provide bring the PHP syntax ("<? $max(a:10, b:20) ?>") to Pascal, as simple as PHP can generate pages, the RTC scripting generate web pages but with Pascal and Delphi code, here an example But i am always open to know more and find better tooling, and somehow xxm is catching my intrigue, because we can do the same to generate web pages. So even till now can't run the demos, i see it is close enough syntax to copy and paste, and judging by the design and it might be comparable in speed to RTC and might be lighter on memory than RTC, still missing many features in RTC though, like the right way to handle exceptions, and can't find how xxm handle exception and where are they being raised, although RTC scripting is limited and lacking many important features. 1) Web.xxmp is ASCII file and on newer Delphi the xxmproject tries to open it as Unicode so it fail. 2) Still can't manage to run the demos , the paths are not clear for what goes where ? 3) CompilerVersion is in few places, the value is definitely not 30 or should be way more, i suggest to leave but put a comment line in these places to be changed, may be someone here can help in this case THeapStream=class(TMemoryStream) private FHeap:THandle; protected {$IF CompilerVersion<30} function Realloc(var NewCapacity: LongInt): Pointer; override; {$ELSE} function Realloc(var NewCapacity: NativeInt): Pointer; override; {$IFEND} for me stand alone and IIS module are the same importance. Thank you for your work.
  12. Do the same for A (IPv4) or AAAA (IPv6) https://en.wikipedia.org/wiki/List_of_DNS_record_types
  13. Kas Ob.

    Windows 10 x64 & HOOK Global with DDetours

    @Pafcouti I don't understand the question too. Delphi Detours is powerful tool, but can't perform system wide hook, if that what are you asking form, to hook all applications running on the system. To have global hook aka system wide, then either the OS with an API SetWindowsHookEx will do it, or you need an OS driver, yes there is many of these and even User Mode driver might work to some point, such driver is used and its behavior is allowed by Windows DDK to build many things like Antivirus softwares, or SysInternals ProcMon .... Anyway DDetours will not help in system wide hook if that is the question, and i don't recall, any library will do that, and if there is one which was in the past but with many red flags as it is was shady and closed source, and highly not recommended. SetWindowsHookEx is OS API and provide many hooks, there is many demos/examples on the internet with Delphi. If that is not answering your question, then please refine the question and help us understand, if your code is raising exception then post here the smallest demo you can do with the exception, so someone here might help with it.
  14. Kas Ob.

    Delphi 12 is available

    I didn't know about such Chinese Horoscope. Thank you ! So is FireMonkey from there too ? Edit: adding this It might be helpful for marketing to choose Chinese city name, like the famous Wuhan .
  15. Kas Ob.

    Delphi 12 is available

    Are we talking about Chinese zodiac years ? Monkey, Ox, Rooster, Dragon, Pig.... That will open +1.5 billion client market.
  16. Kas Ob.

    get gdi render output of invisible form

    Are you sure BitBlt doesn't work, because if you did not create compatible DC you will not be able to get correct pixels. from https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-bitblt BitBlt returns an error if the source and destination device contexts represent different devices. To transfer data between DCs for different devices, convert the memory bitmap to a DIB by calling GetDIBits. To display the DIB to the second device, call SetDIBits or StretchDIBits. though it does not always will fail it might be white or just black. But have you tried this https://learn.microsoft.com/en-us/windows/win32/gdi/capturing-an-image CreateCompatibleBitmap should solve most of your problem, i guess !
  17. Kas Ob.

    Delphi 12 is available

    Or 13.7 for naturalized effect !
  18. Kas Ob.

    Design of client/server application

    Mostly irrelevant to your case, either an approaches, library, protocol, component ... has such functionality out of the box or not, but you are developer and can add such mechanism. Like above, wither the ..... (above mentioned) have such mechanism or you have to implement it, it is way easier to choose the one with already have these functionality, but yet implementing these are not rocket science, because even when the library provide authorization and locking you still as developer have to put that part and almost every single one will have an event like to adjust or override. In my opinion yes WebDav is the best out of the box, i have my own WebDav, i built it with SecureBlackBox it is using RTC as TCP socket server, working brilliantly, on my Android i use different software (From FDroid and Google Play like https://play.google.com/store/apps/details?id=com.lonelycatgames.Xplore this explorer i am using since Nokia 80 8GB and many other apps that support WebDav) to perform browsing and backup my files etc, because WebDav is a standard. One more important thing, stay away from FTP and FTPS, they are pain in the back and not faster, just slower. On other hand SFTP is also viable option for you, SFTP is SSH based, does support locking, but there is a and extension for WbDav https://datatracker.ietf.org/doc/html/rfc3253 this one in particular is adding full file versioning, which is just what you need, i don't have in my expired SSB, also don't know where to find one for you, also my server is checking for User Agent if it is not specific one then it is WebDav and if it is specific one it will be forwarded to RTC Server (socketless) here i added RTC full blown HTTP server with support to Portal for remote controlling the whole PC while i have HTTP server for different.... well these things and modules in RTC are hard to explain but in short you can have many services and functionality without adding a single line of code just add the unit and you will have chat messenger or all RTC demos. Also here is few SFTP libraries for Delphi that can help you start, do you know of this https://www.nsoftware.com/sftpdrive/ and its price, it is simply what doctors recommend too, mount an remote SFTP directory as a drive on Windows ! Another solution is just convert your single user application to multi user using RTC, which is also brilliant, and will take you few hours or may be days to get know the library, but once you did, you will be able to implement anything with few lines, its remote procedures are most powerful you ever imagine, while threading is talking care of and you don't need to waste a second on it, so i suggest to get know it, also there is RTC Portal which does have remove file sharing, and will really serve you well as how to do things in very fast manner. As Anders explained, and i repeated, many of these fine tuned functionality is up to you and you have to put these, like custom locking or ... all the locks can be timeout, all connection can be limited to speed or time, Kas is taking hell of time writing post then disconnect him for now, let others write to the thread, when he is done, he will post, if the server see a conflict then rename the file/thread in way like being forked then notify the users or someone to solve the conflict, Lars will come and start yelling, deleting ,threatening to ban, oh boy .. Lars will do Lars. Anyway, hope that helps.
  19. Kas Ob.

    AcceptSecurityContext (Negotiate) not working

    I asked a friend to confirm if Hyper-V hosted Windows Server can create a domain and fully control an AD, he indeed confirmed it, also it is possible with not activated server that will serve and run for 6 months, sound great. My problem is in the middle of joining my Windows 10 Pro to that AD, my Windows also the freaking portable Chrome went crazy, and started to ask me to confirm the user password, anyway this is for heads up. Away from that, tried to play with xmm by build it, there is few things to point 1) Doesn't compile on XE8, CompilerVersion in THeapStream is wrong changing it to <30, did the job for XE8. 2) The projectgroup missing few projects. 3) xxmProjects is missing xxmConvertXML and xxmConvert2, not to be found in the repo. 4) What on earth the json file that is needed everywhere and where to get working one, there is no mention to how and what it should contain, i guess xxmProject should built one, so i downloaded the binary package, but can't figure what to put in it as minimum as possible.
  20. Kas Ob.

    AcceptSecurityContext (Negotiate) not working

    Question : Have you tried with ASC_REQ_ALLOW_MISSING_BINDINGS ? And with a combination with SECURITY_NATIVE_DREP or SECURITY_NETWORK_DREP and most perplexing for me this ASC_REQ_DELEGATE
  21. This might means your trusted root store is outdated, or there is missing trusted CA from Microsoft. But i just downloaded the latest SysMon and CA is still valid till 2026, while it is 2011 issue. I think your have more troubles than what you think, the security policy on your Windows 11 is in dire need to reset to default.
  22. Kas Ob.

    Code formatting in Delphi 12

    How about the Debugger and Compiler Helper dcc64xxxN.dll being build by MinGW GCC, doesn't that deserve an award too.
  23. Kas Ob.

    Try-Finally-end; & Exit??

    https://english.stackexchange.com/questions/107785/is-there-a-clean-version-of-no-sht-sherlock I am really sorry, i just couldn't resist Hope it make you smile
  24. Kas Ob.

    Try-Finally-end; & Exit??

    Sure, but i don't think they can fix this for one single situation like addition without fixing or rethinking the register allocator, at least that what i hope for, after all nothing stopping them from doing anything.
  25. Kas Ob.

    Try-Finally-end; & Exit??

    The thing is.. it is the same line so this window if optimized or just checked for one thing and one only, switching the register and see if the an instruction can be omitted, it will have some impactable performance everywhere, also in x64 which it does nice lea code because three registers involved, but fail in many different places when like that simple integer addition if one register is already used, like when the addition is in the middle of code.
×