Blaise Pascal Café – Zaterdag 29 maart

Blaise Pascal Café Cup

 

Welkom in het Blaise Pascal Café!

Op Zaterdag 29 maart maken we er weer een gezellige en leerzame dag van in het Kruispunt in IJsselstein.

 

Arnoud Bouchez is er en als je vragen hebt over mORMot is dit je kans om hem persoonlijk te spreken.Hij spreekt samen met Alfred Glaenzer van FPC Up De Luxe over de komende mORMot cursus begin mei.

Verder Mattias Gaertner en Michael van Canneyt, met een FPC presentatie over de Cocoa Backend voor de Mac en GTK3 voor Linux, maar leuker nog, over CSS Styles in de Object Inspector.

Daarna Michalis Kamburelis over de bekende Castle Game Engine en hoe je die kunt runnen op het web met FPC WebAssembly, Pas2JS en WebGL.

Michael Phillippenko is er ook met leuke weetjes over Fast Report, hoe je omgaat met deferred expressions, nested printing van reports, text compression mode en de nieuwe mode voor het splitten van objects met height correction.

Als afsluiter spreek ik samen met Detlef Overbeek over AI en Large Language Models. We lichten enkele van de basis technieken toe die je moet kennen, zoals Tokens, Vectors en Embedding. Maar we maken ook een custom LLM via RAG middels OpenWebUI van een basis CodeLlama LLM en gebruiken die vanuit Delphi en FPC. Teveel afkortingen? Kom naar het Blaise Pascal Café en je weet wat het allemaal inhoudt!

Inschrijven kan hier, kom ook gezellig langs;
https://www.blaisepascalmagazine.eu/product/registration-pascalcafe-march-2025/

Delphi Web Applicaties – 3 februari 2025

Begin het nieuwe jaar goed en voeg web tech toe aan je kennis en aan je Delphi applicaties!

In deze ééndaagse training maak je een front-end web app via de Delphi IDE met TMS WEB Core en een in Delphi geschreven REST server back-end.

Klinkt cryptisch? Geen zorgen, we behandelen de onderliggende technieken zodat je precies weet hoe het in elkaar steekt.

De Pas2JS transpiler die Pascal omzet naar JavaScript, zodat je gewoon kunt programmeren in Pascal. Tip; ook handig als je een keer een los stukje JavaScript moet schrijven, gewoon in Pascal intikken en door Pas2JS halen.

En ook de koppeling van HTML Element met Delphi IDE visual components, zodat je gewoon zoals je gewend bent kunt werken met events en ook nog eens, door Pas2JS je bestaande code kunt blijven gebruiken.

In combinatie met een Delphi WebBroker back-end met REST endpoints ben je helemaal klaar voor het web. De WebBroker back-end is overigens ook ideaal om functionaliteit van  je Delphi applicatie te ontsluiten voor derden. Maak je eigen REST API en presto.

Deze training is compleet met oefenmateriaal en uitgewerkte broncode.

Interesse? Inschrijven kan hier:
https://www.barnsten.com/nl/product/delphi-tms-web-core-training-1-daags-3-februari-2025/
De training op 3 februari is helaas al vol, maar we geven dezelfde training om die reden de week erop nog een keer:
https://www.barnsten.com/nl/product/delphi-tms-web-core-training-1-daags-10-februari-2025/
Delphi TMS WEB Core training

 

Delphi Developer Day – 8 juni 2023 in Amsterdam

Volgende week donderdag op 8 juni organiseert Barnsten de Delphi Developer Day 2023.

Op deze dag komt ook Antonio Zapater van Embarcadero om wat nieuwtjes te vertellen over de laatste nieuwe release van RAD Studio 11.3 Alexandria. Maar hij heeft ook een sessie over mobile development.

Verder nog een sessie over Test Driven Development van Delphi MVP Marco Geuze en Kees de Kraker en een sessie over geavanceerd code logging met CodeSite van Delphi MVP Bob Swart.

Zelf laat ik zien hoe je de twee nieuwste ToolsAPI interfaces van Delphi 11.1 en 11.3 kunt gebruiken voor een VCL WelcomePage plugin met een XKCD comic en een Code Editor Word Marker. De eerste is gewoon leuk, de tweede vooral ook erg nuttig. De Code Editor Word Marker kan je namelijk helpen bij continu en geleidelijk verbeteren van broncode, zonder dat je dit in één keer hoeft te doen in één saai langdurig blok van code refactoring.

Het programma kun je ook downloaden als PDF.

Happy Birthday Delphi!

Happy Birthday Delphi!

Today Delphi turns 28, and that’s the second perfect number. To celebrate we baked not one, not two, but three mini dutch apple pies.

Delphi 28th birthday applepie

one Mini Dutch Apple Pie, two Mini Dutch Apple Pies, three Mini Dutch Apple Pies!

Did you know that Python turns 31 in just 6 days? Oh, and 6 is the first perfect number. And 31 minus 28 is 3. Is this all just a coincidence? 😉

Android SDK for Delphi 11.2 Alexandria

The Android SDK is an optional feature in the Delphi installation. Now if you did not select it in the install, you can add it later using the Tools – Manage Platforms menu in the Delphi IDE. If you do that, then you should also check the Eclipse Temurin OpenJDK 11 (Hotspot) JVM, for the Java bits the Android SDK needs.

If you forgot that, no worries, the Delphi IDE has an automatic feature to detect missing Android SDK files. So if you start an Android project and then hit compile you will get a question from the Delphi IDE “Would you like to update the platforms SDK now?” Just click yes and it will then download the Android SDK for you and you can just continue.

Would you like to update the platforms SDK now?But occasionally the install process of Delphi fails to download some of the required Android SDK files from Google. There are many reasons for this, sometimes the Google servers are down or there is a conflict with an existing Android SDK. You can easily confirm issues using the Delphi SDK Manager, that you can open through the Tools – Options menu. Under the Deployment branch you’ll find the SDK Manager.

Android SDK manager fro Delphi 11.2The missing folders are indicated with yellow danger signs next to them. In this case we are missing

  • build-tools 32.0.0
  • platform-tools
  • platforms android-32

The solution here is to open an administrative command prompt and navigate to the Android SDK advmanager.bat folder as you can see in the SDK manager screen:


CD "C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidSDK-2525-22.0.46141.0937\cmdline-tools\latest\bin"

In that folder we need to use the sdkmanager.bat file to download and install the missing items.


sdkmanager "build-tools;32.0.0"
sdkmanager "platform-tools"
sdkmanager "platforms;android-32"

You can also list all the available items that you can download and install in from Google.


sdkmanager --list

More information on the sdkmanager can be found on the android developer website: https://developer.android.com/studio/command-line/sdkmanager

That should fix it all up!

As a sidenote; with the newer Windows 10 and 11 versions the Android ADB driver comes pre-installed, and you just have to enable developer mode and connect your Android device with an USB cable to get Windows to install the Android Debug Bridge driver.

Online Delphi 11 update training – 12 augustus 2022

Het doel van deze 1 daagse training is om met de getoonde nieuwe technieken in een handomdraai uw Delphi applicaties veiliger, sneller en toegankelijker te maken met Delphi 11 Alexandria.

Een handgreep uit de onderwerpen:

Verbeter je GDPR/AVG compliance met password hashing, verminder fouten met inline variables in een for loop en neem afscheid van unit initialization en finalization met class constructors.

Voeg High-DPI en multi-monitor support toe aan je applicatie, noodzakelijk voor de moderne (thuis)werkplek, maar zorg er gelijk ook voor dat deze goed draait in virtualisatie omgevingen.

Maak tevens een eenvoudige web service bij je applicatie en zo maak je je applicatie open voor de wereld.

Deze één daagse online training kan gevolgd worden met Delphi 11.1 Professional of Enterprise, op je eigen laptop. Het grootste deel van de training gebruikt het VCL desktop framework met een kleine uitstap naar het FireMonkey framework.

De training zelf doen we online in Microsoft Teams. Je kunt deelnemen vanuit een web browser (Edge of Chrome), maar als je vooraf de Microsoft Teams desktop software installeert heb je net wat meer mogelijkheden. Tijdens de training is ook 1 op 1 overleg met de trainer mogelijk. Delen van video is gezellig, maar uiteraard niet verplicht. Verder ontvangt je trainingsmateriaal en hebben we uitgewerkte broncode en oefeningen.

Inschrijven kan hier, daar vindt je ook de agenda:
https://www.barnsten.com/nl/product/delphi-11-1-alexandria-update-training/

Happy Birthday Delphi !

Delphi 27th birthday

Happy Birthday Delphi !

On Monday the 14th of February Delphi turns 27, #Delphi27th. The current version of Delphi is Delphi 11 Alexandria, named after the famous Alexandria library. As I’ve been developing Delphi code for some years now, I’ve also collected a library of code snippets and I would like to share the idea of creating your own library of code snippets with you.

What are code snippets?

Wikipedia defines a code snippet as a small region of re-useable source code. In Delphi these re-usable snippets can be found under Live Templates, and under several other aspects of Code Completion. My own code snippets however have a  broader scope and they range from one-liners to complete design patterns and even (partial) frameworks. Sometimes a code snippet illustrates a corner case that I’m bound to forget otherwise, sometimes it’s a complete base version for creating a REST based web service or a design pattern for graceful termination of Task based multithreading.

Code snippets are really very personal and usually just useful for you and they do not need to hold up to public scrutiny. They are mostly placeholders for your knowledge, your personal library which only you know and use. For me they are also a toolbox with ready made algorithms or solutions to common coding challenges.

Maybe the idea of collecting code snippets and building your own personal Alexandria library of knowledge appeals to you as well. If so, take a look at the short video on the subject and start collecting!

Delphi Code Snippets video

Click to start the YouTube video on Code Snippets

Slides of this video and the source of DoubleTrouble and EZeroDivide can be downloaded here. The WinRAR archive has Delphi27 as password protection.

Don’t forget to join the Delphi27th Anniversary webinar on Monday at 17:00 CET with Jim McKeeth, Marco Cantu, David Millington and Ian Barker.

Egyptian Basbousa

for Alexandria we made Egyptian Basbousa

Delphi 11 VCL Essentials training – 16-18 maart 2022

Volgende maand staat een driedaagse Delphi 11 Alexandria VCL Essentials training in de planning, op woensdag 16 maart tot en met vriidag 18 maart in de historische locatie van kasteel Montfoort.

Deze nederlandstalige training is bedoeld voor coders en developers met enige ervaring in programmeren in Delphi of een andere programmeeromgeving die graag snel en goed Delphi willen leren of beter leren kennen. We beginnen met een overview van alles wat je met Delphi en de VCL kunt, maar gaan ook in op details als de event-loop en de interne werking van de VCL (visual component library) en RTL (run-time library). In de driedaagse training leer je direct al om Windows applicaties te maken met Delphi, maar ook leer je gebruik maken van een database via FireDAC. Verder in-memory en local data, debugging, Windows-11 styling en zelfs wat generics en andere moderne code constructs van Delphi 11.

Inschrijven en details van de agenda van de trainingen vindt je hier:
https://www.barnsten.com/nl/product-categorie/embarcadero-tools-nl/trainingen-nl/