Jump to content

Tntman

Members
  • Content Count

    76
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Tntman


  1. Maybe try to unplug your mouse to see it you are still going to trigger it ?

    Maybe your mouse is too sensitive and you cant notice that with your eyes 

     

    I cant give you other suggestion but this is what came on my mind


  2. 14 hours ago, Remy Lebeau said:

    The point was, if you use the plain vanilla TCP client/server components, then you have to design your own protocol on top of them, and implement both sides of that protocol.  If you use a standard protocol, like FTP or HTTP, then you don't need to implement both sides (unless you really need to customize both sides), you can use pre-existing implementations.  And HTTP has benefits over FTP.

    I got it now, problem is that i dont have idea how could i use http with this

     

    14 hours ago, Remy Lebeau said:

    "check buffer is empty" is not a good way to approach this task in the first place.

    In my little demo that I made i was using this as a reference -> https://stackoverflow.com/questions/22838159/indy-tidtcpclient-receive-text  -> first demo without thread and with timer...

     

    i just remodeled a little bit using IdThreadCommand instead of timer -> event OnRun -> 

     if IdTCPClient.IOHandler.InputBufferIsEmpty then
      begin
        IdTCPClient.IOHandler.CheckForDataOnSource(10);
        if IdTCPClient.IOHandler.InputBufferIsEmpty then exit;
      end;

     

     


  3. 13 hours ago, aehimself said:

    In this case I keep my mouth shut - this is how we all experiment and learn at the end.  I still do dislike custom notifications, though 🙂

    I really like them xd , maybe I add option for user to check if he wants custom or regular windows notifications or he wants to turn them off.. 

     

    13 hours ago, aehimself said:

    Custom, as in notifications at all; or custom-themed notifications?

    Im not sure what do u mean but it is something like this -> https://subiz.com/blog/wp-content/uploads/2014/09/subiz-desktop-notification.jpg 

    so it is custom look and feel with colors ,labels,images and all other stuff that I want to show..

     

    I dont want to give all info about my app, top seceret 😈 lol .. JK, it is some type of chatting app ..

     

    If u need vcl or fmx demo how i did it i can make it for u , but it is not that hard


  4. 1 hour ago, aehimself said:

    I am against custom notifications. I disliked MSN messenger, early Outlook (2003 era, maybe; can't recall) now Viber and all the others doing this as it completely breaks a computers look-and-feel. Especially since later OSes have their native notification system.

    I half-implemented this once, but soon I realized that it's not that easy. A notification only worth it if it's above everything else on your screen - except some situations: you'll have to check for full-screen apps (gaming, video); possibly add DnD intervals and maybe allow the user that if a specific application is running - don't show anything. What happens if your notification covers the native notification or vice versa...? Would be nice to have some syncing to make sure it never happens.

     

    That's a lot of extra work, and the OS already knows it all.

    Yes , in my app user can toggle on / off if he wants to get custom notifications.. Anyway I dont think that anybody will use my app its more for myself to learn more 😄 that is why i created design in PHotoshop and started making it


  5.  

    1 hour ago, Fr0sT.Brutal said:

    You intend to use custom TCP. So you have to implement both sides (client & server) of it,

    There is indy tcp client and indy tcp server , planed to use them

     

    1 hour ago, Fr0sT.Brutal said:

    develop message format

    for message format i planned to use simple json something like this :

    [
       command:"ListOfAllComputers"
    	{
    		professor: "ProfesorName",
    		classrom: "NumberOfClassrom",
                    socketID: "socketIDGoesHere"
    	},
    	{
    		professor: "ProfesorName", 
                    classrom: "NumberOfClassrom",
                    socketID: "socketIDGoesHere"
    	},
    ]

    So in my mobile app if command = ListOfallComputers i loop over json object and display it in listview for example.. i can receive that "command" and whole data in indy tcp server onExecute event or in indy tcp client by checking if buffer is empty..

     

    When I want to send file , I will choose file and select professor name from the list. Behind the scenes i will grab socketId from certain professor and send file to it.

     

    On professor PC i have built in events ( indy tcp server ) onExecute and on id tcp client side there is some function to check buffer is empty "IdTCPClient.IOHandler.InputBufferIsEmpty" <- im not sure if this is how it is actually called because I dont have rad studio opened now..

    So if buffer is not empty and command = downloadFileFromMobile my desktop program will accept that file and save it .. Thats some logic, basically i think that in theory i could use both ( indy tcp server and indy tcp client ) because there is no actual main SERVER ( any device can be server or client ).... maybe I am wrong but I already tried to make simple text exchange with indy tcp client and indy tcp server components and it worked

     

     

     

     

    1 hour ago, Fr0sT.Brutal said:

    likely including auth & encryption, different request types (get list, put file, ...) and so on.

    There will not be auth or encryption i will not use SSL , whole app is proof of concept ( in the end i could hard code some values in source code that will be used for auth <- i know what this is not the right way , just saying )

    1 hour ago, Fr0sT.Brutal said:

    Sure TCP won't go away I was talking on FTP only

    Sorry my bad

     

    1 hour ago, Fr0sT.Brutal said:

    maybe you'll need UDP multicasting

    Never planned to use UDP as it seems to be much harder and i actually never heard of UDP multicasting , i will try to read more about it

     

     


  6. 1 hour ago, Fr0sT.Brutal said:

    Why inventing custom solutions (in TCP you'll have to develop whole protocol and FTP is very old and likely will become obsolete in several years) and using 3rd party components when you have full-featured HTTP with system-native HTTP request component.

    I dont think i need to invent custom protocol , i think that there are available send recive/stream in indy tcp...

     

    Reason why i mentioned FTP is his name ( file transfer protocol ) so it was logical to me to use that in this indy combination.. I know that we could send streams over indy TCP so basically i could send file over indy tcp but i wanted FTP because it is more logical to me it is higher lvl than tcp so it works on top of it .. But still i am open for your suggestions..

     

    Im not sure in HTTP request components, i think that my concept is more suitable for indy tcp .. tcp is lower level than HTTP so how can it become obsolete in several years? Also im not sure why u say that FTP will be forgiven in few years , can you elaborate more on that?

     

    And can you elaborate more on http requests, what do u mean exactly ? 

     

    Maybe i was not clear in first post but when i say "PC" i am referring to school laptops that are used by staff that is working there. So there is no MAIN "PC" that will gather and collect all information, whole group ( array ) of "PCs" is dynamic, some professors/staff members are connecting some are disconnecting + other ones are connecting on their phones so everything is dynamic like a chat room basically..

     

     


  7. Hi, I need to make app for my final assignment . In this topic i would like to talk with you about concepts/techniques that i plan to use.. I would like to hear your suggestions and ideas ( will you change something in this design etc... )

     

    Here is description:

    We have 2 applications. Mobile and desktop.

     

    Mobile ( Android only ) 

    Have to be able to scan QR Code 

    i planed to use this LIB -> https://github.com/Spelt/ZXing.Delphi

    Have ability to display scanned data in memo for example. 

    Save scanned data in txt file on android device.

     

    On the left side of program is list of all  txt files that are saved in folder and on the right side is list of all other clients ( PC's with app on them ) 

    user is checking file on the left and client ( PC ) on the right and he is sending that text file to PC. Reason why i am sending file to PC is that PC's are connected to printers and it is easier to manipulate with the document on PC( change from txt to pdf,word,excel etc ) and print it.

     

    So is Indy component set good for this task? I was thinking to use Indy TCP client and indy tcp server for sending user list ( user list is list of all pcs that are running application ) and for sending txt file i would probably use Indy FTP.. 

    So, to explain little bit more. When user open android app he will receive list of all pcs that are currently running app. When user on android checks file and client ( PC ) from the list he is sending txt file to pc. I only need to send files one way from Android -> pc.

     

    Desktop app will serve as file receiver and as i said i will probably add some functionality to manipulate with txt files.

     

    Also, people should be able to communicate even if internet is off. What I mean by "internet is off" .. Well imagine that in school we have one router and we cut down internet but people would be still be able to connect on "router" and network, so when people connect on that "router"/network will they be able to communicate and exchange data over that network with indy ? <- i think that answer is YES, i performed little tests but i would like to hear your confirmation

     

    Also i was googling yesterday and i found this components called "app thethering" -> 

     

    I have not researched them yet but it looks like that they could also be used for similar purpose of exchanging data and files...

     

    Thank you for your suggestions and answers

     

     


  8. If i understand right 

     

    you have list of images,list of text ( quotes ) , list of ppt slides and list of audio files and you want to record every possible combination and save it in MP4 video file format ?

     

    i think that this could be best to do with javascript + if i remember there were some power point frameworks for Javascript but i never used them ..

     

    If i had same task ask you i would probably  go with html, css + js because there are probably biggest amount of info online for this task

     

    After that you could incorporate your html,css, js files inside delphi app.. -> https://medium.com/@Zawuza/build-your-first-hybrid-desktop-application-with-delphi-scriptgate-bootstrap-and-js-df530a73160

     

    I am planing to use similar approach to solve my user interface graph -> 

     

    because i dont know how to make same design using delphi components i will write my own html,css,js graph  


  9. Hello all, I would like to know what is best approach for making and displaying custom notifications in windows 10.

    Let me explain little  bit more.

     

    I dont want to use standard win 10 notifications because they does not look and feel like they are from my app ( i cannot customize look of them how i want )

     

    I want to show for example 200x100 notification on the right corner of the screen, notification should be 100% customizable to look like my design that i made in photoshop.. So I am not sure should I make some sort of borderless form and put some rectangles, images and labels that will represent look of my notification?

     

    Notifications should slide and auto-hide after lets say 5 seconds...

     

    So what would be best approach to this ? 

     

    Also I have to mention that in my app I want to throw a lot of different notifications like when user click to save settings it should show notification, when user receive message it should pop up notification, when someone mention user name it should pop up notification and so on.......

     

    So my notifications dont need to stack on each other, if new notification should be displayed i will first remove any other notification and display that newest one thats my plan

     

    I am using FMX for this and OS windows

     

    Thank you

     

     


  10. 1 hour ago, Sherlock said:

    @Tntman How does this perform in high security client networks, that usually block the internet?

    I actually dont know.. Lets use a "Bank" example.. Lets say that computers in bank does not have access to the internet ( world wide web ) but they will need to have some sort of inside network with their own servers ( to exchange data etc )  that are accessible only from inside bank  and their computers 

     

    So probably that server inside a "bank" will have similar software to monitor other computers , data exchange collecting logs etc.. Some sort of client-server app i guess .. 

    1 hour ago, Rollo62 said:

    EU GDPR

    Im actually a hobbyist and i actually never thought about this stuff, i will have to google it , i never heard about it .. I got awesome idea for app that i wanted to sell ( rent over licence keys - paying monthly ), i think i will have to research more about legal aspects ..

     

    1 hour ago, Rollo62 said:

    but will take a lot more efford around the pure PHP coding.

    Dont need to do with PURE - raw php.. U could do that with raw php if you have already existing projects and some template that you can work on and just modify/upgrade it .. But you could always use prebuilt stuff like active record,jwt even whole framework ( its slow but fast development - Laravel or for just API use Lumen ) .. Even those frameworks are slow they can handle a lot of users on 5$ without problem


  11. It is hard almost impossible to protect your desktop software against cracking/using without licence etc..

     

    That said I recommend to build your own licencing system for 2$/month ( only paying hosting for backend )

    2 hours ago, ŁukaszDe said:

    I mainly mean licensing system and time limiting applications.

    This can be done over your backend rest api and it is not really hard to do if you have little knowledge with php,nodejs,databases or similar...

     

    You could have easily 300+ users at same time performing DB requests on cheapest digital ocean droplet for 5$ a month .. Also you could have a lot more users if you do a websocket/redis validation instead of performing DB query every X seconds ( i will not recommend this second method since it is not commonly used and it is harder )   .. THere are also cheaper solutions ( cheaper droplets ) .. So if you have 3-4 days you can build your own backend licencing system fast,cheap and easy  

     

    I will be making my licencing system for my desktop app in around 20 days, i will host it on same digital ocean droplet that i already own , saving money .. 

     

    If you need some help with designing such a system just ask i will try to answer best I can.. 

     

     

    Quote

    Is it a kind of data encryption, which is absolutely needed to decode the data from the machine ?

    He could just send device name with motherboard id + procesor id + gpu id + hdd id and compare that value with value that is stored when user installed app or something like that 


  12. 20 minutes ago, Lars Fosdal said:

    Maybe i did not explained well. But i have my design that i made in photoshop. In that design i made unique looking buttons, scrollbars, tedits, listviews and other components. 

     

    I managed to make ( edit style of every component in delphi to look like my photoshop design ) but i have problem with this one. It should represent graph component but i am not sure how to make it. It is not about collecting data


  13. Hi, I am using FMX for my app that will be running only on windows. I made a design and I edited design of a lot of components but I have problem implementing this design :

     

     

    1907417457_Group118.png.eadcbdb9bebf9dfa86b57f47b1f2b97c.png

     

    I am not sure how to make or edit existing components for cpu, ram, disc usage .. I am reffering to this graphs that i marked red.. Can somebody give me any suggestion ? Ty


  14. 1 hour ago, Lars Fosdal said:

    That is never wrong. Please ignore me 🖖

    Its ok , any new term that I read and google afterwards is appreciated 

     

    1 hour ago, Markus Kinzler said:

     

    Ty i will probably try to make demo app just for fun 

    • Like 1

  15. I was wondering is there any way to display list of updates in your delphi application ? Or to even upgrade or downgrade OS from it ?


  16. I got the similar problem after reinstalling my windows and rad studio. I am using free version but still it is licenced and i renew licence every 1 year. 

     

    I had to ask for some type of .txt document ( slip ) to insert manually and after that I got it working

     

    Probably there are similar manual methods for users that are actually paying for rad studio


  17. Hello, I tried some of your components few months ago and I can say that they works nice, I have not tried a lot of features and components but what I tried works nice.. Also I was sending an e-mail to your support team and they answered in period of 24hours so thumbs up for that 👍

     

    I have to add that I am not actual customer and I used trial version.


  18. Here is what i figured out.

     

    apparently, there is no need to add it to a data module. U can just drop stylebook onto any form edit components and put unique names for them. After that you can go on other from drop component and use StyleLookup property where you have to put unique name that you have in your StyleBook for that component, ofc before that you have to save your style... 

     

    Conclusion is that stylebook is global if u save it, it just wont appear in stylelookup property dropdown, but if u put exact name it will glab a style.

×