- Install Ubuntu Server.
- Update Ubuntu with the commands:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Test.UpperCaseString.Design; | |
interface | |
procedure Register; | |
implementation | |
uses | |
System.Classes, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{============================================================================== | |
. | |
.--: : | |
---- :---: | |
.----- .-. | |
.------ . | |
-------. | |
.-------- : | |
.--------- .:. | |
----------: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program MyJsonDemo; | |
{$APPTYPE CONSOLE} | |
uses | |
System.SysUtils, | |
REST.Json, | |
MyJsonTypes in 'MyJsonTypes.pas'; | |
const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit ActionHelper; | |
interface | |
type | |
TActionHelper = class helper for TBasicAction | |
private | |
function GetOnChange: TNotifyEvent; | |
procedure SetOnChange(const Value: TNotifyEvent); | |
public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | |
TVariantArr = record | |
private | |
{ implementation may differ } | |
Data: Variant; | |
Arr: TArray<Variant>; | |
function GetItems(Index: Integer): Variant; | |
procedure SetItems(Index: Integer; const Value: Variant); | |
public | |
class operator Implicit(A: TVariantArr): Variant; overload; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit uDesignNote; | |
interface | |
uses | |
System.SysUtils, System.Classes, Vcl.Forms, Vcl.StdCtrls; | |
type | |
TDesignNote = class(TComponent) | |
private |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<codetemplate version="1.0.0" xmlns="http://schemas.borland.com/Delphi/2005/codetemplates"> | |
<template name="array[" invoke="auto"> | |
<description> | |
sized array declaration | |
</description> | |
<author> | |
Uwe Raabe | |
</author> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function NetUseAdd(const RemoteName: string): string; | |
var | |
NetResource: TNetResource; | |
dwResult, dwBufSize, dwFlags: DWORD; | |
hRes: DWORD; | |
localName: array[0..1024] of Char; | |
begin | |
dwFlags := CONNECT_REDIRECT; | |
ZeroMemory(@NetResource, sizeof(TNetResource)); | |
with NetResource do begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function IsPermanentConnection(const ALocalName: string): Boolean; | |
type | |
PNetResourceArray = ^TNetResourceArray; | |
TNetResourceArray = array [0 .. MaxInt div SizeOf(TNetResource) - 1] of TNetResource; | |
var | |
I, BufSize, NetResult: Integer; | |
Count, Size: LongWord; | |
NetHandle: THandle; | |
NetResources: PNetResourceArray; | |
begin |
NewerOlder