From the blog

Easily Create Python Delphi Variables In Delphi Using Python4Delphi Sample App

As we know, a Variable stores a value so that you can reuse it later in your program. This reduces redundancy, improves performance, and makes your code more readable. What is Python Delphi Variable? This post will guide you to understand. You can also use Python4Delphi with C++Builder. Python4Delphi Demo3 Sample App shows how to create a Python Delphi Variable in Delphi using the TPythonDelphiVar component(convert the python variable to the Delphi variable and vice versa), shows the variable type and the value assigned to it, reassign different type value to the same variable, show the variable content in a message. You can find the Demo3 source on GitHub. Prerequisites: Download and install the latest Python for your platform. Follow the Python4Delphi installation instructions mentioned here. Alternatively, you can check out this video Getting started with Python4Delphi. Check Demo1 and Demo2 which covers how to run a python script and evaluate an expression in Delphi. Components used in Python4Delphi Demo3 Sample App: TPythonEngine: A collection of relatively low-level routines for communicating with Python, creating Python types in Delphi, etc. It’s a Singleton Class. TPythonGUIInputOutput: Inherited from TPythonInputOutput (which works as a console for python outputs) Using this component Output property you can associate the Memo component to show the Output. TPythonDelphiVar: Inherited from TEngineClient, used to convert the python variable to the Delphi variable and vice versa. It has methods to set and get value as variant or PyObject. It contains property like Module(TPythonModule internally created by default) where the python variable(TPyVar) is created and later converted to and from the Delphi variant. TMemo: A multiline text editing control, providing text scrolling. The text in the memo control can be edited as a whole or line by line. You can find the Python4Delphi Demo3 sample project from the extracted GitHub repository ..Python4DelphiDemosDemo03.dproj. Open this project in RAD Studio 10.4.1 and run the application. Implementation Details: PythonEngine1 provides the connection to Python or rather the Python API. This project uses Python3.9 which can be seen in TPythonEngine DllName property. It Is assigned with InitScript which import sys module and prints the Python.Dll version, copyright information to Memo2 using this InitScript. import sys print(“Python Dll: “, sys.version) print(sys.copyright) print() PythonGUIInputOutput1 component provides a conduit for routing input and output between the Graphical User Interface (GUI) and the currentlyexecuting Python script. In Python, variables need not be declared or defined in advance, as is the case in Delphi. To create a variable, you just assign it a value and then start using it. A variable may be assigned a value of one type and then later re-assigned a value of a different type. PythonDelphiVar1 created with the name ‘test’. This variable is used in the Memo1 default python script, which is assigned with the value 10, and print the value to the Memo2. Later the same variable is reassigned with value [1,2,3] and print the value. The script used is as follows, test.Value = 10 print(test, test.Value) test.Value = [1,2,3] print(test)Here the variable is created for Module ‘__main__’. Memo1 used for providing the Python Script and Memo2 for showing the output. Buttons to perform the execution, load script from, save the script to a file, show variable content to a message. On Clicking Execute Button the python script is executed using the below code. PythonEngine1.ExecStrings( Memo1.Lines ); PythonEngine1.ExecStrings( Memo1.Lines ); Load the custom script to the Memo1 from a […]

Read More

Easy-to-use Orbit Simulator Built In Delphi FireMonkey For Learning Gravitational Physics

Developer Tore Ottinsen had this to say about his app Orbit Xplorer “I am a retired high school physics teacher and a hobby Delphi programmer. This is my latest physics app, written in FMX for Windows. Hoping to do a Mac version soon.” It’s a good example of how accessible Delphi is as an IDE and Object Pascal as a programming language. According to the website “Orbit Xplorer is an easy-to-use orbit simulator suitable for high school, college and university students and teachers, or anyone with an interest in physics and astronomy. For the first time you can do “lab exercises” in gravitational physics! If you are solving problems involving orbits of satellites, planets or stars it will be exciting to simulate the problem in Orbit Xplorer and compare its numerical output with your own solutions.” Orbit Xplorer makes use of FireMonkey and a good number of FireMonkey styles. Website https://www.ottisoft.com/orbit_x.html Screenshot Gallery Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder. Design. Code. Compile. Deploy.Start Free Trial   Upgrade Today    Free Delphi Community Edition   Free C++Builder Community Edition

Read More

Quickly Build iOS And Android Apps From A Single Codebase With Delphi

Building mobile phone applications is swift and enjoyable with RAD Studio. Because when you start your FireMonkey project with Delphi or C++ Builder, you do not need to create several codebases for every platform. What you can do is just define platform based code with the IfDef Conditionals. Learn more about them in the DocWiki. In this one hour session, you can learn how to create iOS and Android applications with Delphi FireMonkey. Overview Cross-Platform Native Apps FireMonkey 3D Graphics Architecture Multi-Device Form Designer Several Demo Application in Action Development Speed – Prototyping Effects and Animations 3D Forms with FireMonkey Be sure to check out the whole session and learn about Delphi FireMonkey Multi-Device Mobile Development.

Read More

Easily Download And Install A Robust Syntax Highlighter For Delphi And C++ Builder From GetIt

SynEdit for Delphi and C++ Builder. This is a highly mature syntax highlighting edit control, not based on the Windows common controls and supported on Windows. Orwell Dev-C++, Embarcadero Dev-C++, and PyScripter IDEs all use TSynEdit. Once you install this SynEdit component package to your RAD Studio you start having lots of ideas to build amazing applications. Because with SynEdit you can solve many problems in your application by just dragging and dropping the component.  What you get from SynEdit VCL: Editor with syntax highlighters AutoCorrect and AutoComplete Non-Visual Components and many more non-visual components to utilize with SynEdit How can I get this SynEdit VCL? Run the RAD Studio Open the GetIt Package Manager from the Tools menu Search “synedit” and install the package Application Ideas to build with SynEdit components Code Editor – it can be a lightweight and simple editor with tens of different syntax highlighters Programming Educational Apps – since everyone learning from home using their computers, you can create a simple and effective coding platform for kids to code and learn. You can also check out the full source code over on GitHub: TurboPack SynEdit – GitHub Get an overview of the SynEdit VCL control in GetIt and then download it from GetIt in the IDE.

Read More

Understanding OWASP ASVS

Published November 4, 2020 WRITTEN BY ED TITTEL. Ed Tittel is a long-time IT industry writer and consultant who specializes in matters of networking, security, and Web technologies. For a copy of his resume, a list of publications, his personal blog, and more, please visit www.edtittel.com or follow @EdTittel It’s always fun to start throwing out acronyms to get one’s technical juices flowing. To make sense of this blog post title, readers show know that OWASP is the Open Web Application Security Project, and that the ASVS is the Application Security Verification Standard. Of course, making sense of what this all means calls for additional explanation and more information. Let’s start with a brief backgrounder on the OWASP and follow up with a closer look at the ASVS with special emphasis on what it does and why it’s important. Introduction to the Open Web Application Security Project (OWASP) Founded in 2001, and incorporated as a US non-profit charity in 2004, the OWASP is an open community that’s focused on helping organizations design, develop, acquire, operate and maintain applications – especially web-based applications – that are secure and trustworthy. The OWASP’s reach covers a lot, including: Dozens to hundreds of community-led open-source software projects 275-plus local OWASP chapters around the globe Tens of thousands of registered OWASP members (individuals and organizations) Popular, widely-followed and -attended education/training conferences All OWASP projects, tools, documents, forums and chapters are free and open to those interested in improving application security. Overview of the Application Security Verification Standard (ASVS) The ASVS defines a basis for testing web application technical security controls (these are features or elements of an application designed to provide authentication and manage identity data, control access, provide data privacy and protection, and so forth). ASVS also equips developers with a checklist of requirements to ensure secure development practices and procedures, and to ascertain they produce secure code. As standard, the ASVS seeks to provide guidance, metrics and evaluation criteria for secure applications. In the area of guidance, the ASVS offers instructions and information to those who develop security controls on what must be built into such controls to meet application security requirements. In the area of metrics, the ASVS provides a yardstick of sorts against which to assess the degree of trust that applies to their web applications and development efforts. In the area of evaluation criteria, the ASVS works when procuring web applications from third parties to provide a basis for specifying (and enforcing) application security verification requirements in purchase agreements and contracts. As of November 4, 2020, the latest version of the ASVS is 4.0.2. It is available for download from GitHub. The release comes in .ZIP and tar.gz formats, and is approximately 60 MB in size (compressed; ~100 MB uncompressed). The Standard document itself is included in that archive, along with a test runtime. Who uses ASVS? The ASVS page includes an ASVS Users tab that names a variety of companies and agencies that have incorporated this standard into their software assurance toolsets. These include the following: What makes ASVS important for application security? Simply put, ASVS creates a common set of terms and metrics, along with a shared platform so that software developers and engineers can create secure working environments for web applications. The ASVS checks their efforts to […]

Read More

Quickly Learn Mocking In Delphi With Spring4D

In this CodeRage session, Bernd Ua shows you the power and benefits of unit testing and mocking with Spring4D open-source framework. Overview of the Spring4D Spring4D is a great open-source framework to leverage the power of Delphi. In this session, you will learn about the mocking framework contained in Spring4D. We will see how easy it is to get started with mocking and mock out interfaces your classes under tests are using. What is mocking? If you are mocking out something you replace a productive implementation with a special implementation for testing, the so-called mock You can write Mocks manually or use ones that have been automatically created by frameworks The difference between mocks and stubs or dummies is some extra code to log and heck calls made to the mock What a Unit test should not do A Unit test should better not use Databases Network access File Systems External Resouces A Configured Environment So, if your unit test uses one of the above it is more likely an integration test. Be sure to watch the CodeRage session to learn more about mocking and mocking practices in action!

Read More

Powerful Cross Platform Multitrack Music Recording Software Built In Delphi FireMonkey

MultitrackStudio from Bremmers Audio Design is a multitrack music recording software which supports recording, editing and mixing audio and MIDI tracks. With the growth of Mac worldwide, MultitrackStudio developers felt the urgency of making their application available on macOS. They had previously used Delphi with VCL (Visual Component Library) a visual component based object oriented framework for developing Microsoft Windows applications. When Embarcadero Technologies released Delphi with FireMonkey, MultitrackStudio developers reworked their custom controls to work with both VCL and FireMonkey. The Delphi RTL (run time library functions and procedures) provided them with cross platform versions of most common functions and they could program against any C or Cocoa framework. After writing some Mac specific code including Core Audio and Audio Units, they had a running version on macOS. Website https://www.multitrackstudio.com/ Case Study https://www.embarcadero.com/case-study/bremmers-audio-design-case-study Screenshot Gallery

Read More

Start Developing Fast Native Windows Applications With Delphi VCL

In this tutorial, you will learn how to create a Delphi VCL application from the ground. What can you learn from this tutorial: Three common components Explanation of Object Pascal source code Debugger How to change Target Platform (32 or 64 bit) Adding a watchlist Where to learn more about the Visual Component Library? VCL is one of the best known visual component library available in the universe. If your business relies on the Microsoft Windows OS, you should go with VCL! And here are the best sessions available to you to grasp a big body of information. Be sure to check out the external resources and happy learning!

Read More

Free C++ Bootcamp To Quickstart Your C++ Development

Check out the 5-days C++ boot camp! Within this Bootcamp, you get over 10 hours of free training on C++ Builder. What topics this do Bootcamp cover? Building your first application with C++ Builder Creating fast, responsive user interfaces with animations and effects C++11 chat with C++ Experts C++11 Language Deep Dive C++ Game Development Stepping up to Mobile with Q&A for the Bootcamp In this first session, you learn how to create C++ applications, debugging the project, and exploring the features of C++ Builder. For instance, disabling the classic Borland compiler or changing compilation options. Furthermore, there is a short workshop on C++ language itself which covers C++ 11 features and new functions in C++11. Also multithreaded programming in the C++ workshop. When it comes to C++ Builder, you get amazing libraries for instance Parallel Programming library which helps you to process a big amount of calculations efficiently. Be sure to check out the whole Bootcamp sessions!

Read More