background preloader

Developer

Facebook Twitter

Dr.Bob Examines... #134: Delphi and the iPhone. DataSnap connectivity for iOS using Delphi XE2 and FireMonkey. Let's start with a disclaimer. There is currently no data connectivity in FireMonkey for iOS in the currently shipping version of RAD Studio XE2. Data connectivity for iOS is of course very important, and it is being planned, prioritized and road mapped. Please see edn.embarcadero.com and blogs.embarcadero.com for more information about roadmaps. This article discusses how you can use the ObjectiveC mobile DataSnap Connector that does ship with RAD Studio XE2. First, a shout-out. Phil Hess was of great assistance in helping me getting a grasp on ObjectiveC versus Pascal. Dsproxybase (directory of 56 files) sbjson (directory of 13 files) DSProxyBase.pas AnonClassDefinitionsDsproxybase.pas AnonClassDefinitionsSbjson.pas Phil took the existing ObjectiveC to FreePascal parser from here: He had to patch it to fix a few things in order to parse SBJson and DSProxyBase properly.

We then select a port and test it: unit Unit1; cmd.execute; Server configuration and management. Run Firebird as non-system user On Unix-like systems, Firebird already runs as user firebird by default, not as root. On Windows server platforms, you can also run the Firebird service under a designated user account (e.g. Firebird). The default practice – running the service as the LocalSystem user – poses a security risk if your system is connected to the Internet. Change SYSDBA's password As discussed before, if your Firebird server is reachable from the network and the system password is masterkey, change it. Don't create user databases as SYSDBA SYSDBA is a very powerful account, with full (destructive) access rights to all your Firebird databases. Protect databases on the filesystem level Anybody who has filesystem-level read access to a database file can copy it, install it on a system under his or her own control, and extract all data from it – including possibly sensitive information.

As a rule, only the Firebird server process should have access to the database files. Manual:Configuration settings. Run-Time Type Information (RTTI) In Delphi - Can It Do Anything For You? Brian Long (www.blong.com) If you find this article useful then please consider making a donation. It will be appreciated however big or small it might be and will encourage Brian to continue researching and writing about interesting subjects in the future.

Introduction All versions of Delphi have supported the generation of run-time type information, or RTTI. What Is RTTI? RTTI is implemented as data structures generated by the compiler whilst compiling a program. Why Do We Have RTTI? To run the risk of stating the obvious, the Delphi design-time environment allows you to visually design forms that are used in your programs at run-time. In order to get from a string, signifying a class name, to a created object of the required type requires RTTI (or a humungous case statement, which would be a nightmare to maintain). How Do We Get RTTI? When designing forms, references to all the objects placed on the form are inserted at the top of the form class definition.

How Do We Talk To RTTI? Delphi Programming. Lazarus y Free Pascal. The Java™ Tutorials. The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into "trails". The Java Tutorials primarily describe features in Java SE 8. For best results, download JDK 8. What's New The Java Tutorials are continuously updated to keep up with changes to the Java Platform and to incorporate feedback from our readers. Lambda expressions enable you to treat functionality as a method argument, or code as data. Apart from fixing typos and errors, this update includes also includes the following: The Security trail has been restructured; find security information about applets and Java Web Start applications in the Java Applets lesson.

Trails Covering the Basics These trails are available in book form as The Java Tutorial, Fifth Edition. Creating Graphical User Interfaces Specialized Trails and Lessons. Computer Programming. Lazarus - Free Delphi-like Free Pascal RAD IDE.