Noutați

Developer Stories: Alexandr Anicimov Discusses “Laser Flash Method”

Alexandr Anicimov launched his first Delphi application in 2005. His application (Laser Flash Method) was a showcase entry at the Delphi 26th Showcase Challenge and we interviewed him for an insight of his programming adventure. Go over at the Laser Flash Method website to download the application. When did you start using RAD Studio Delphi and have long have you been using it? My first Delphi app was created in 2005. It was a local database. The text file (warehouse request) received by e-mail was processed using a local database and a warehouse invoice was created using the Rave 5 report generator. What was it like building software before you had RAD Studio Delphi? It was more time consuming. How did RAD Studio Delphi help you create your showcase application? My curiosity and desire to get acquainted with the possibilities of Delphi What made RAD Studio Delphi stand out from other options? It is ease of code creation and project structure. What made you happiest about working with RAD Studio Delphi? It is the ease of code creation and project structure. Creating an attractive application for the operator. What have you been able to achieve through using RAD Studio Delphi to create your showcase application? Controlling the operation of external devices What are some future plans for your showcase application? Show Delphi’s capabilities in physics experiment management and data processing. Thank you, Alexandr! Head on over to the link below to view his showcase entry. Showcase

Read More

Can This Powerful Secret Boost Your Business Bottom Line?

As a software development company owner, you always look for ways to increase revenue. With a healthy bottom line, you can create an emergency fund to help your business survive during tough situations. Also, it can help you to expand your business. However, there is a secret for boosting the bottom line that you must know about. In this post, you will find all the details. What is the secret of boosting your business bottom line? You might have spent 15 long years establishing your product. And the source code is your intellectual capital. You need a platform that has been constantly evolving without requiring you to get used to the major changes in the development environment. You don’t want to face a situation where you are forced to rewrite all the code of the past 15 years. It will cost you a lot of money and time. The secret of boosting your software business bottom line is using a platform that offers a safe future for your product. You need a platform that will continue to offer updates for years to come without making major changes to the version that you are using. So, your 15-years old source code will continue to compile and run flawlessly even after 20 years from now. But which platform offers the best safety for the future of your product? You can consider Delphi, which has been evolving since 1995. It has received numerous updates over the years. However, great care is taken to ensure backward compatibility of the language as it evolves and adds new functionality, efficiencies and features. The Delphi code you might have written in 1995 still runs today in the latest version with little – or in most cases – no changes. So, you don’t have to worry about the issues related to software modernization. How can Delphi help you with boosting your business bottom line? Enables You to Achieve High Productivity and the Greatest ROI: If you have advanced programmers in your team, Delphi is the right choice for you. It has been specifically built to boost the productivity of the top coders. By boosting their productivity, Delphi helps you to achieve the greatest Return on Investment (ROI). Streamline Maintenance by Involving Programmers of All Levels: Delphi code is extremely easy to read. Even those who haven’t used Delphi can easily comprehend the the meaning and intent of the program. This readability can help developers of all levels can maintain the source code created by more advanced coders. So, you will not have to worry about depending on a single advanced programmer. It’s fair to say anyone can write difficult to maintain and unreadable code in any language; even in Delphi! But, overall, the syntax and ethos behind the language does help promote a style which lends itself more readily to good comprehension and structure. Streamline the Development Process of Large Projects: Delphi is very easy to learn. Programmers who have experience with other programming languages can learn it easily. Also, they can create working prototypes quickly. That’s why some companies have a dedicated programming team for producing prototypes in Delphi. Also, Delphi makes it very easy to shift from a prototype to a market-specified language. The coders of other areas find it very easy to follow and translate […]

Read More

RAD Server CRUD Procedures – Part 1

In this RAD Server CRUD Procedures – Part 1 post, we will discuss the the default generated CRUD procedure implementations from the RAD Server Package Wizard. In the RAD Server CRUD Procedures – Part 2 post, we will discuss modifying the default generated CRUD procedure implementations from the RAD Server Package Wizard using both Delphi and C++ Builder, to show possible ways to implement Get, GetItem, Post, Put and Delete, including Delphi and C++ Builder clients to call the CRUD procedures. Create, retrieve, update and delete (CRUD) refers to the four major functions implemented in database applications. The CRUD functions are the user interfaces to databases, as they permit users to create, view, modify and alter data. CRUD works on entities in databases and manipulates these entities. These four methods create, retrieve, update and delete are re-used across all types of objects. So, for example, you can create new Employees, read Employees, update Employees, and delete Employees. These four CRUD methods are also reflected in the way HTTP functions with these four methods; GET, POST, PUT, and DELETE. The HTTP methods POST, GET, PUT and Delete are typically translated as CREATE, READ, UPDATE, and DELETE, respectfully. This offers us the uniform interface that’s required as part of a REST application, as the well understood CRUD pattern. In order to transfer data to and from a REST Service, JSON – JavaScript Object Notation, is typically used as the transfer encoding. The Embarcadero RAD Server (also known as EMS – Enterprise Mobility Server) uses the industry standards of REST, and you can build any client front-end that you want for your RAD Server application. And any tool that can consume JSON via HTTP can be used to build a RAD Server client, such as Delphi and/or C++ Builder VCL or FMX application, PHP, Javascript, Angular, C#, whatever – it doesn’t matter. As the graphic below shows, you can leverage almost anything to consume a RAD Server (EMS) service: Let’s now take a look at implementing CRUD procedures using RAD Studio, Delphi and/or C++ Builder in a RAD Server EMS Resource Module. Specifically, we’ll look at how to create and implement the RAD Server Endpoints for GET, POST, PUT and DELETE. For this implementation, I’m using the Delphi 10.4.2 IDE. For the Employee Table, I’m using the InterBase Employee database, located at:localhost:C:UsersPublicDocumentsEmbarcaderoStudio21.0Samplesdataemployee.gdb Steps:1. File | New | Other | Delphi Projects | RAD Server (EMS) | RAD Server Package 2. This gives us the RAD Server Package Wizard, allowing me to (1) Create empty package, or (2) Create package with resource. The option (1) Create empty package, creates an empty package allowing you to add resources later. Or option (2) Create package with resource, creates for me a package with an existing resource. This option (2) lets the IDE do some of the work for me, by creating a template resource for me. So we will select this Option (2) ) Create package with resource. 3. Click Next. Here, we see an entry for Resource name. In RAD Server the terminology of a Resource is a Collection. So, for example, we can have a RAD Server resource defined as http://localhost:8080/employees For this example, http://localhost:8080/employees we will get a Collection of Employee records from the Employees database. The table employee in the Employees database […]

Read More

5 Ways To Use Computer Vision In Your Windows Apps

What is Computer Vision? According to Ballard and Brown in 1982, Computer Vision is an interdisciplinary scientific field that deals with how computers can gain high-level understanding from digital images or videos. From the perspective of engineering, it seeks to understand and automate tasks that the human visual system can do. At 19th CERN School of Computing, T. S. Huang states that Computer Vision has a dual goal. From the biological science point of view, Computer Vision aims to come up with computational models of the human visual system. From the engineering point of view, computer vision aims to build autonomous systems which could perform some of the tasks which the human visual system can perform (and even surpass it in many cases). These two goals are intimately related. The properties and characteristics of the human visual system often give inspiration to engineers who are designing Computer Vision systems. Conversely, Computer Vision algorithms can offer insights into how the human visual system works. Sub-domains of Computer Vision include scene reconstruction, object detection, event detection, video tracking, object recognition, 3D pose estimation, learning, indexing, motion estimation, visual servoing, 3D scene modeling, and image restoration (Morris, 2004). Why use Python for Computer Vision? Easy to use Open source Python has become the language of scientific computing Easy for visualization and debugging It can be directly integrated with web frameworks (as well as GUIs) Delphi adds Powerful GUI Features and Functionalities to Python In this tutorial, we’ll build Windows Apps with extensive Computer Vision capabilities by integrating Python’s Computer Vision libraries with Embarcadero’s Delphi, using Python4Delphi (P4D). A small disclaimer: we have used some publicly-available images for the fair-use purposes of education so we can teach you how face recognition works. The copyright of the images remains with the owner and we acknowledge the source and their ownership. P4D empowers Python users with Delphi’s award-winning VCL functionalities for Windows which enables us to build native Windows apps 5x faster. This integration enables us to create a modern GUI with Windows 10 looks and responsive controls for our Python Computer Vision applications. Python4Delphi also comes with an extensive range of demos, use cases, and tutorials. We’re going to cover the following… How to use OpenCV, Mahotas, Face Recognition, EasyOCR, and Keras Python libraries to perform Computer Vision tasks All of them would be integrated with Python4Delphi to create Windows Apps with Computer Vision capabilities. Prerequisites Before we begin to work, download and install the latest Python for your platform. Follow the Python4Delphi installation instructions mentioned here. Alternatively, you can check out the easy instructions found in the Getting Started With Python4Delphi video by Jim McKeeth. Time to get Started! First, open and run our Python GUI using project Demo1 from Python4Delphi with RAD Studio. Then insert the script into the lower Memo, click the Execute button, and get the result in the upper Memo. You can find the Demo1 source on GitHub. The behind the scene details of how Delphi manages to run your Python code in this amazing Python GUI can be found at this link. Open Demo01.dproj. How do I perform Computer Vision with OpenCV on Windows? OpenCV (Open Source Computer Vision Library) is an open-source Computer Vision and Machine Learning software library. OpenCV was built to provide a common infrastructure for […]

Read More

Developer Stories: Frits F.M. de Mul On ALGOL, Neutron Physics & His Montcarl App Suite

Frits F.M. de Mul started programming with ALGOL in 1965. He submitted his showcase entry (Montcarl Application Suite) for the Delphi 26th Showcase Challenge and we had a talk with him about his many years of programming experience. Take a look at his website for more information about the applications and software. When did you start using RAD Studio Delphi and have long have you been using it? I started with ALGOL, DELPHI’s predecessor, during my M.Sc.-project in 1965/66 on neutron physics, where I got a lot of measurement data. The University’s first computer was a Telefunken TR4 mainframe, to be fed with paper tape an (later) punch cards.  This was one of the very first computers in the country, and I had account nr. 10. For my Ph.D.-work in early 70’s I shifted to FORTRAN, which was more convenient (faster) at that time, although functions and procedures were hard to handle, and the output was cumbersome. No plotters were present in those days. In late 70’s I switched to Pascal, later Turbo Pascal, on writing a lot of (stand-alone) programs; part of those are mentioned on my site (see above). And now, with DELPHI, since I am retired, I also use TMS Web Core for web applications. What was it like building software before you had RAD Studio Delphi? ALGOL and FORTRAN were limited in possibilities and cumbersome to handle. First, I had to use punched taper tape and later punch cards. When you had to made corrections, it was possible to manually make extra holes, and even repair holes, but you had to learn and use the 8-bit codes for all characters. Then the tapes or cards had to be delivered manually to the computer building, and a few days later you got your results (provided you did not make punch-typing or syntactic errors). But frequently the computer got stalled…. Nevertheless, all that punchwork made excellent confetti! How did RAD Studio Delphi help you create your showcase application? Viewing the history, DELPHI – as successor to TURBO PASCAL – offered lots of improvements; most important of course was it built-in logic and Object Programming. Since I always make Computational-Physics programs, DELPHI offers many possibilities. I tried to use PYTHON, but I found Delphi much more attractive, due to its simple but adequate logical structure and lack of superfluidal options. For instance, the PYTHON world has gone much too far in incorporating a lot of options for arrays. These look nice at first sight, but normally programmers will use a limited set of convenient options only, and the rest is discarded. With DELPHI you can easily make all those options offered by other platforms yourself, in case you need those. What made RAD Studio Delphi stand out from other options? As mentioned above, DELPHI remains THE most logical language, with great backward compatibility. There are many built-in options, but no superfluidal ones. Its syntax has a complete WYSIWYG structure. This is a great advantage compared with C++ or PYTHON, which at first sight look handy, but you have to learn what is behind a lot of statements. Therefore my wish to developers: keep it simple and staightforward! What made you happiest about working with RAD Studio Delphi? The most happy – I think – is working with Forms, and […]

Read More

Managing Delphi Expressions via a Bindings List component

After looking to binding expressions and how they can link to components, let’s move to the component aimed for managing binding expressions. In recent blog posts I covered Delphi’s RTL core expression engine and components binding. Now we can make an additional step and look into a key component for the entire bindings architecture, called BindingsList. A binding list is a collection of different types of bindings expressions, managed in the designers. In other words, the expressions and component bindings I defined in source code in the last blog post, can be fully defined in the designers (and wizards) of the BindingsList component. Just drop a component of this type to a form plus a few visual components (in my example two edits, a spin edit and a progress bar — see image below). The BindingsList component has a designer which allows to define a collection of bindings. Each binding can be picked using one of the many available options (way too many to explore in this article and primarily focused on data source and data field bindings). The two basic options I’m going to use here are TBindExpression and TBindExprItems. After you select one of those bindings, let’s say a TBindExpression, you need to interact with two different design surfaces to work on the expression: on one side you can configure the expression properties in the Object Inspector, like the SourceComponent and the ControlComponent (the term use to refer to the target control) and the related expressions; on the other by double clicking on the expression in the BindingList editor you can open us a special expression designer, which in turn has additional items editors and viewers: In the image above, you can see that I connected the expression to a source and target control, but I still haven’t defined an expression. This can be as simple as a single property name or a more complex combination of values and expressions and can be configured in the Object Inspector expressions properties for the binding or on the special designer displayed above. The designer also offers the option to evaluate and inspect different expressions. Going back to the expressions, we can simply use Value and Position for the Spin Edit and the Progress Bar, respectively. Notice the binding expression has a direction (by default, source to control) that can be reversed or can also be bi-directional. I’ve used a bidirectional expression for the two edit boxes, so that typing in any of them copies the content to the other. In this second example, I’ve used a TBindExprItems binding (but a regular expression would have been enough). This is a more complex binding, in which you specify source and control (as above) but define a collection of clear and format expressions, which can involve multiple properties of the controls. In this example, the mapping is Text to Text (bidirectional) as you can see below: With all of this, the only Delphi code that’s needed in the application is a call to re-evaluate the bindings when the value of the source changes. This is easily done by handling the OnChange events of the various controls and triggering a general update of the bindings for the current control (the Sender): TBindings.Notify(Sender, ”); TBindings.Notify(Sender, ”); This is the very simple application in action: Now you might be wondering where all of this configuration settings end up… but […]

Read More

Websockets WebRTC In Real-Time – Do You Know How To Do It?

Web is basically operational using HTTP requests and responses. In this mechanism, the client always initiates the connection. There is a timeout period after which the server discards the connection. Once discarded, the client must initiate a new connection. This is OK with normal web applications but for real time communication this is not enough. A system called HTTP long polling was developed to try and overcome this problem. With this implementation, the server keeps the connection open until new data arrives. This is used in GMail chat. But in this case, server resources are blocked through the connection. What are WebSockets? Websockets solve the above problem by allowing the server and client to send messages at any time. With Websockets the communication begins a HTTP request and then upgrades to connection to Websockets using the TCP protocol connection for communication. What is WebRTC? Unlike Websockets, WebRTC doesn’t relay data through a server. It sends data between browsers or devices. It supports sending and receiving video, audio and generic data. It’s a real-time communication method. It’s a part of the HTML5 specification which is supported by most modern web-browsers. How do I find easy to use WebRTC components for Delphi? ESEGECE offers an easy to use component set for Websockets and all of its other protocols including WebRTC. You can get these components from this link: https://www.esegece.com/websockets/download How do I setup a WebRTC server using SGC components? You can easily setup a WebRTC server using these components. Step 1: Add a new “TsgcWebSocketServer” component and open bindings. Add new binding and set the server IP and the port (For Eg: IP: 127.0.0.1 / Port: 80). Step 2: Add a new “TsgcWSPServer_WebRTC” and set the server as the “TsgcWebSocketServer” component we added earlier. Step 3: Activate the “TsgcWebSocketServer” server component and you have a WebRTC server. Now you can open your web-browser, then open the server IP, and there you should find your WebRTC client. Where can I find Delphi Websockets demos? The ESEGECE Delphi WebSockets Components come with many demo applications for different protocols including the WebRTC. Inside the demo folder you can find the “WebRTC_Protocol” the which is a WebRTC implemented video chat demo application. Also you can access their web demos from this link: https://www.esegece.com:2053/webrtc The fun isn’t all reserved for Delphi developers – ESEGECE Websocket components are also available for RAD Studio C++ Builder. Why not download a copy of RAD Studio and try the websocket demos for yourself?

Read More

Identify Objects And Faces With Machine Learning AI And Javascript

Here we go with one more post about the power of Artificial Intelligence (AI) and Machine Learning (ML) using object and facial recognition! Today we are going to implement a really awesome application that can Identify objects and faces through your webcam. The application will teach the machine to save aspects of an object or face to and then tell you what or who it sees on camera. That’s incredible! We will be working based on this Google lab post using TensorFlow.js. and, of course, applying  Ext JS best practice as usual. How can I get Getting Started with Sencha CMD? If you still don’t have Sencha CMD, you can download it for free here. Once you have it installed you can make sure you have it properly installed and configured by running this command on terminal/shell: If it returns the sencha cmd version, you are good to go. Here are more details on how to install, configure and use Sencha CMD, but this article will show all the important details. How can I create the Sencha application? The first thing you want to do is create your project structure. Sencha CMD can do this for you easily–all you need to do is run this command. If you have any questions, take a look at the bullet points below. They explain what everything in the command does and what you will need to change to personalize your application. sencha -sdk /Users/fabio/sencha-sdks/ext-7.4.0/ generate app modern TeachableMachine ./teachable-machine-extjs /Users/fabio/sencha-sdks/ext-7.4.0/ is where your Ext JS folder is. TeachableMachine is the name of our application and the namespace for our classes. ./teachable-machine-extjs is the path for our project structure and the necessary files. modern is the toolkit for our application. Make sure when you run this command there is no error on the output. If there is no error, and everything runs correctly, you have successfully created your project structure. To be sure, however, let’s run our application with the initial structure. To do this, first navigate to your project folder: $ cd teachable-machine-extjs/ Then, run the command to open the server on a specific port: The output of this command will return the URL where your app is available. In this case, it is running on  http://localhost:1841/. When you open it on your browser you will see a screen like this: How can I clean up the Sencha project? Once you have your basic project running, you can clean it up by removing the files and components that you don’t need. Use the command shown below to delete your unwanted files. While deleting, keep another terminal open and have the Sencha app running because it will update the application automatically: $ rm app/model/* app/store/* app/view/main/List.* With that done, let’s clean up our classes in app/view/main. Make sure your three classes look like this: Main.js: /** * This class is the main view for the application. It is specified in app.js as the * “mainView” property. That setting causes an instance of this class to be created and * added to the Viewport container. */ Ext.define(‘TeachableMachine.view.main.Main’, { extend: ‘Ext.Panel’, xtype: ‘app-main’, controller: ‘main’, viewModel: ‘main’ }); MainController.js: /** * This class is the controller for the main view for the application. It is specified as * the “controller” of the Main view class. */ Ext.define(‘TeachableMachine.view.main.MainController’, { extend: […]

Read More

Pandemic Legacy: Remote Work and Digital Transformation

Published June 3, 2021 WRITTEN BY MICHAEL SOLOMON Michael G. Solomon, PhD, CISSP, PMP, CISM, PenTest+, is a security, privacy, blockchain, and data science author, consultant, educator and speaker who specializes in leading organizations toward achieving and maintaining compliant and secure IT environments. The COVID-19 pandemic drove many companies to rapidly expand their support for remote work. This change was not simply to appease a changing workforce; it was simply to survive. When most of the workforce was suddenly told to stay home, many organizations had to either adapt or cease to exist. The increased reliance on transforming previously manual or hybrid procedures to purely digital ones required updated (or completely new) applications, supporting software and infrastructure. Digital transformation was no longer an aspirational goal — it became a survival necessity.  Let’s look at some fundamental changes the pandemic forced on companies and consumers, and how those changes affect all aspects of doing business today, including software development organizations developing secure application security in a decentralized world. Digital transformation plans were accelerated Prior to 2020, face-to-face interactions were not only the norm, but also the preferred way to communicate and carry out business. While a growing number of younger workers and consumers who preferred digital interaction were encouraging digital communication to gain popularity, total adoption was a long way off.  Digital transformation (DT) is the common term used to represent the process of replacing manual business processes or services with digital processes. The push for DT was underway in 2020, but only as it aligned with long-term strategy. A few existing companies and many startups relied on digital processes, but most companies approached DT conservatively. After all, the requirement to produce revenue today trumped the desire to innovate for the future. Once the pandemic hit, companies of all types suddenly had to carry on unhindered without face-to-face interactions. Some companies were built on the concept of offices full of workers. Others depended on the ability to serve a steady flow of physical customers. Regardless of the business model, the disruption of face-to-face interaction required solutions where technology could provide the connection. One of the first shifts was to simulate the business meeting, customer interactions or even the classroom. Zoom went from a video conferencing tool to a generic term for an online meeting. The term can even be used as a verb, as in “I’ll Zoom you.” COVID-19 shifted DT from a long-term strategic goal to a survival requirement. Although all companies could not simply “go digital,” many could. Restaurants, airlines, hotels and a long list of other service-oriented companies had to undergo radical transformations. Other types of companies, such as insurance companies, software development organizations and banks, could continue operations, but had to find a different way. Reliance on face-to-face interactions had to defer to digital transactions. Customer service was required to rise to the occasion and provide an acceptable level of service using remote workers and digital connections. Some companies, like Amazon, were up to the challenge. After all, they were already relying on a decentralized model for much of their business process. They encountered challenges at their warehouses that relied on many human workers, but the rest of their organization had already embraced digitization and automation. Other organizations were not as fortunate and had to accelerate their digital […]

Read More

Impressive Basketball Chalk Visualization: Powered By Delphi

Embarcadero’s users understand the scalability and stability of C++ and Delphi programming, and depend on the decades of innovation those languages bring to development. Ninety of the Fortune 100 and an active community of more than three million users worldwide have relied on Embarcadero’s award-winning products over the past 30 years. Icons by Icons8.com. © 2020 EMBARCADERO INC. ALL RIGHTS RESERVED

Read More