Search found 2175 matches

by AZJIO
Thu Dec 04, 2025 11:34 am
Forum: General Discussion
Topic: PhoneBookEditor (vcf)
Replies: 0
Views: 211

PhoneBookEditor (vcf)

I made a program for viewing, deleting, adding, and changing contacts in a vcf file that is exported from the phone. Changing the contact leads to the loss of fields that were not included in the program. It's better to try with a copy of the file first to understand how it works. It is possible ...
by AZJIO
Sun Nov 30, 2025 8:49 am
Forum: Coding Questions
Topic: What is the difference between a binary file on different OS?
Replies: 6
Views: 458

Re: What is the difference between a binary file on different OS?

The GTK function call is compiled, but GTK itself is not added to the compiled file.
If you compile a function call, it's not the same as compiling different versions of GTK
by AZJIO
Sun Nov 30, 2025 7:42 am
Forum: Coding Questions
Topic: What is the difference between a binary file on different OS?
Replies: 6
Views: 458

What is the difference between a binary file on different OS?

If I compiled a program on PureBasic v6.21 on different Linuxes (Arch, Mint, Fedora), how will they differ? The source code is the same and is converted to the same machine code. The files are different, sometimes they don't even run on another OS. Does the compiler import data from the current OS ...
by AZJIO
Sat Nov 22, 2025 11:13 pm
Forum: Coding Questions
Topic: PureBasic IDE different from what is in the HTML Help file
Replies: 8
Views: 477

Re: PureBasic IDE different from what is in the HTML Help file

You need to upload screenshots to the Internet (imgur, imgbb, fastpic)
by AZJIO
Mon Nov 17, 2025 1:41 pm
Forum: Coding Questions
Topic: MD5 for text [Resolved]
Replies: 32
Views: 2382

Re: MD5 for text [Resolved]

A letter consists of 16 bits. 6 letters consist of 96 bits. Now we need to shift and change each bit inside the 32-bit long type. 96/32 = 3, which means that we will overwrite each bit in "Long" 3 times.
by AZJIO
Mon Nov 17, 2025 1:24 pm
Forum: Coding Questions
Topic: MD5 for text [Resolved]
Replies: 32
Views: 2382

Re: MD5 for text [Resolved]

infratec wrote: Mon Nov 17, 2025 8:06 am so called 'parity bit'
I wanted to suggest a parity bit, but that's a 50% chance. I thought about suggesting "Long" - 32 bits, dividing the text into 32 sections and assigning a bit to each section. But wouldn't that be too simplistic, and what would be the number of collisions?
by AZJIO
Fri Nov 14, 2025 7:34 am
Forum: Tricks 'n' Tips
Topic: Generate a VCard
Replies: 5
Views: 3433

Re: Generate a VCard

It only works with Latin characters, but what about other languages?
BEGIN:VCARD
VERSION:2.1
N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:;=D0=9D=D0=B0=D1=82=D0=B0=D1=88=D0=B0;;;
FN;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=D0=9D=D0=B0=D1=82=D0=B0=D1=88=D0=B0
TEL;CELL:+71111111111
END:VCARD

Reading a ...
by AZJIO
Wed Nov 12, 2025 2:31 pm
Forum: Game Programming
Topic: 2048 (AZJIO)
Replies: 12
Views: 3025

Re: 2048 (AZJIO)

Updated
Added check for move availability when all tiles are occupied.
Added game save to continue an unfinished game.

I couldn't replace the code in the first post, even after I removed all the comments, so take it from yandex
by AZJIO
Sun Nov 09, 2025 10:48 am
Forum: Coding Questions
Topic: Hex Color values reverse the Red and Blue
Replies: 6
Views: 449

Re: Hex Color values reverse the Red and Blue

Inside your program, no one will see how you wrote the color code. You already know about this problem and always set the color correctly. If you read the color from an ini file, simply flip it when reading:

ColorValidate()
Procedure RGBtoBGR(c)
; ProcedureReturn RGB(Blue(c), Green(c), Red(c ...
by AZJIO
Fri Nov 07, 2025 4:21 pm
Forum: Tricks 'n' Tips
Topic: Reboot to the desired OS
Replies: 0
Views: 911

Reboot to the desired OS

The code writes the Grub2 menu item number to a file, which is used to set the default item number. When selected in the GUI, the computer reboots into the OS that was selected. You don't have to wait for the Grub2 menu to make a choice.

https://i126.fastpic.org/big/2025/1108/57 ...
by AZJIO
Fri Nov 07, 2025 12:34 am
Forum: Off Topic
Topic: Recommend Linux Distribution?
Replies: 9
Views: 1133

Re: Recommend Linux Distribution?

You can leave "MX Linux", as it also uses XFCE like Xubuntu.
by AZJIO
Mon Nov 03, 2025 1:26 pm
Forum: Coding Questions
Topic: Getting name of a variable as a string$ during runtime?
Replies: 11
Views: 926

Re: Getting name of a variable as a string$ during runtime?


How does the dialog library connect the variable name in a string to the actual variable?

AutoIt3 has the Assing() and Eval() functions, one creates a variable from a string, the other reads a variable from a string. I once needed access to a list of variables, and I created it using these ...
by AZJIO
Mon Nov 03, 2025 11:46 am
Forum: Coding Questions
Topic: Getting name of a variable as a string$ during runtime?
Replies: 11
Views: 926

Re: Getting name of a variable as a string$ during runtime?

Map?
In compiled languages, the name is not stored. But you can make a connection through "Map".