Profile cover photo
Profile photo
Antonello Carlomagno
61 followers -
In code we trust
In code we trust

61 followers
About
Posts

Post has attachment
Hello guys,

I would have a table of firebird db with field that contains multi values

example of data:

first_name varchar(20) = "Antony"
colors varchar(30) = "[ red, green, blue] "

How can I do it ?

and How to select the data from array?

I tried with TArrayfield of Firebird ... but I have problem to retrieve the data with "where" condition

I tried this demo embarcadero
http://docwiki.embarcadero.com/CodeExamples/Tokyo/en/FireDAC.InterBase_Arrays_Sample

Do you have suggestions?

regards
Antonello

It possible to listen the ARP protocol ?

AC

I am trying to listen a UDP broadcast packet from port 67.

In windows works fine, I used TidUDPServer, binding IP and PORT and I see the traffic.

but

I ported the console project to Tokyo 10.2 ... for Linux, but I cannot start the server.

I receive the error: "cannot bind to socket, address and port already in use"

I tried also TIdUDPServer.ReuseSocket properties ... but nothing

I tried aldo in Firemonkey OSX ... same error.

naturally, If I change the port .. works fine!

I read in internet that port 67 on linux ... is private

anyone has suggestions ?

Post has attachment
Hello,

I upgraded my Xcode to the latest version 8.2.1 and ios SDK 10.2

Now in my Delphi IDE ( Berlin upd 2) I do not see all ios simulators ...

Anyone have resolved this problem ?

in Xcode there are all.

now I see only these 3 simulators:
Photo

Hi,
someone tried to sign and publish a app on Apple ios store with customer account apple id ( certificate )?

is there a another way or I use the same method that I use with my apps?

Antonello

Hello!

Someone can help me, some suggestion about to create a scroll feed/posts like Facebook mobile app?

Tlistview? ... or also third party components ...

thanks in advance
Antonello

Hello,

All know that when "compile & build" a project It goes to waste a lot of disk space.

Each folder ( ios32/64, win32/64, Android etc ) has many unnecessary files

Someone has a script to delete the compiled file in order to save the hdd space ?

thanks
Antonello

Post has attachment
Hello,
I am going crazy!

I am using DCPcrypt library with Delphi Firemonkey app, works fine with win32/64 Android and ios32 ...

but when I use with ios64 I raising a access violation.

The error is the line: cipher.Init(key[0], 256, @iv[0]);

Is there a ios64 version compatibility ?

or can I use another library ?

thanks Antonello

this is my code

function EncryptData3(Data: string; AKey: string; AIv: string): string;
var
cipher: TDCP_rijndael;
key, iv, src, dest, B64: TBytes;
index, slen, bsize, pad: integer;
hexe: string;
begin

key := TEncoding.ANSI.GetBytes(AKey);
iv := TEncoding.ANSI.GetBytes(AIv);

src := TEncoding.ANSI.GetBytes(Data);

cipher := TDCP_rijndael.Create(nil);
try
cipher.CipherMode := cmCBC;
slen := Length(src);
bsize := (cipher.BlockSize div 8);
pad := bsize - (slen mod bsize);
Inc(slen, pad);
SetLength(src, slen);

for index := pad downto 1 do
begin
src[slen - index] := pad;
end;

SetLength(dest, slen);
cipher.Init(key[0], 256, @iv[0]);
cipher.Encrypt(src[0], dest[0], slen);

result := TNetEncoding.base64.EncodeBytesToString(dest);

finally
cipher.Free;
end;
end;

function DecryptData3(Data: string; AKey: string; AIv: string): string;
var
key, iv, src, dest: TBytes;
cipher: TDCP_rijndael;
slen, pad: integer;
begin

key := TUnicodeEncoding.ANSI.GetBytes(AKey);
iv := TUnicodeEncoding.ANSI.GetBytes(AIv);

src := TNetEncoding.base64.DecodeStringToBytes(Data);

cipher := TDCP_rijndael.Create(nil);
try
cipher.CipherMode := cmCBC;
slen := Length(src);
SetLength(dest, slen);
cipher.Init(key[0], 256, @iv[0]);
cipher.Decrypt(src[0], dest[0], slen);

pad := dest[slen - 1];

if pad < slen then
SetLength(dest, slen - pad);

result := TEncoding.Default.GetString(dest);

finally
cipher.Free;
end;
end;

Hello,
Now it is available the new version Delphi Berlin.

It can be installed on the same PC with Delphi Seattle?

Someone has already done this test?

regards
Antonello

Hi all,
I'm still going crazy with background

Someone tried to run an iOS app in the background?

I tried all modes (localtion, bluetooth etc etc) but the application when it goes in background, stops.

I think seriously che iOS background not works.

I would listen to the beacon in the background ... but nothing!

Suggestions ?

thanks
Antonello
Wait while more posts are being loaded