Search found 404 matches

by Mohawk70
Tue Apr 01, 2025 5:19 am
Forum: Coding Questions
Topic: Patching
Replies: 24
Views: 5223

Re: Patching

I know this is an extremely old post but the method goes like this ...
1: old file is smaller
A: compare the exes up to the size of the old file and save the byte offset, old byte value, and new byte value off bytes thst are different ( hex encoded
$PPPPPPPPOONN --> P = offset O=Old N=New )
B: for ...
by Mohawk70
Mon Mar 31, 2025 12:58 am
Forum: Coding Questions
Topic: Trying to figure out how to extract an image from a pack file
Replies: 12
Views: 835

Re: Trying to figure out how to extract an image from a pack file


Hi
You can get only any pack file by knowing the file name


See this topic for an easy solution for getting file names for a pack file.
The method there even includes a way to check the integrity of the files extracted ( file size and filehash ). PB has built-in hashing functions.

https://www ...
by Mohawk70
Wed Jul 24, 2024 5:17 pm
Forum: General Discussion
Topic: [Solved] My app slows down other apps?
Replies: 46
Views: 12118

Re: [Ignore] My app slows down other apps?

Have you tried both OpenLibrary() , then make your function call(s) , then CloseLibrary() each time you make use of Kernel32.dll ?
by Mohawk70
Sat May 25, 2024 10:52 pm
Forum: Off Topic
Topic: Chat GPT 4o Code
Replies: 34
Views: 14812

Re: Chat GPT 4o Code

Prompt:
Purebasic code for a program with a full working gui that appends two files a jpg image and a rar archive. The rar archive file is appended to the jpg image file and saved as a file named output.jpg


Response:
Certainly! Below is a PureBasic code example to create a simple GUI application ...
by Mohawk70
Sat Dec 23, 2023 1:36 am
Forum: Feature Requests and Wishlists
Topic: Add Missing Advanced Encryption Standard Methods
Replies: 0
Views: 761

Add Missing Advanced Encryption Standard Methods

Can we have the missing AES Encryption modes added ? The 5 modes are ...

ECB mode: Electronic Code Book mode
CBC mode: Cipher Block Chaining mode
CFB mode: Cipher FeedBack mode
OFB mode: Output FeedBack mode
CTR mode: Counter mode
by Mohawk70
Sat Jul 01, 2023 5:40 pm
Forum: Coding Questions
Topic: StringVar.s contra StringVar$
Replies: 17
Views: 2336

Re: StringVar.s contra StringVar$

I use $ for protected/local scope & .s for global scope.
by Mohawk70
Sat Feb 11, 2023 2:13 am
Forum: Off Topic
Topic: Mozilla Servo has been resurrected ...
Replies: 1
Views: 1065

Re: Mozilla Servo has been resurrected ...

Nice ! Thanks for the info
by Mohawk70
Sun Mar 14, 2021 5:35 pm
Forum: Coding Questions
Topic: Linear Cut Optimization Code Example Needed
Replies: 1
Views: 1244

Linear Cut Optimization Code Example Needed

Does anyone know where I can find the source code or formula / algorithm to determine the optimal linear cuts, ie the least amount of material wasted ?

For example I have in stock
20 boards at 144"
20 boards at 132"
20 boards at 120"
20 boards at 108"
20 boards at 96"
20 boards at 84"
20 boards at ...
by Mohawk70
Mon Nov 02, 2020 2:02 am
Forum: Coding Questions
Topic: Calculation of a modulo 10 control key
Replies: 6
Views: 2000

Re: Calculation of a modulo 10 control key

Nic, I suspect that he means a so called "check digit calculation" (in german "Prüfziffernberechnung").

@loulou2522:

This is a modulo 10 checksum calculation with weighting 2.
Procedure.s CalcChecksum(sNumber.s)
Protected.i i, iDigit, iSum, iLen

iLen = Len(sNumber)

iSum = 0
For i = 1 ...
by Mohawk70
Mon Jan 06, 2020 4:26 am
Forum: General Discussion
Topic: Intel Performance Libraries FREE
Replies: 1
Views: 1713

Intel Performance Libraries FREE

Download Intel® Performance Libraries Now

This collection of powerful performance libraries helps you create limitless applications that deliver impressive performance on Intel® architecture. Free to use for personal and commercial applications.

https://software.seek.intel.com/performance ...
by Mohawk70
Mon Dec 09, 2019 6:23 pm
Forum: General Discussion
Topic: Secure my source code over the internet
Replies: 10
Views: 3333

Re: Secure my source code over the internet

I restarted my PB developments ...
But this time with a co-programmer.

So, I need to send parts of program over the internet,
and I like to secure my source codes. :?
I gather you don't want anyone but your co-programmer to see the source when you're sending it to him? Is that right? And when you ...
by Mohawk70
Mon Nov 25, 2019 3:00 am
Forum: Off Topic
Topic: Apple ][ Series emulator running on Android 9 (Pie)
Replies: 2
Views: 1951

Apple ][ Series emulator running on Android 9 (Pie)

Not PureBasic related at all, but some pf you may be interested.

I have it up & running on my Samsung Note & a tablet.


Emulator
https://play.google.com/store/apps/details?id=org.deadc0de.apple2ix.basic



ROMs / Software ( Disk Images )
https://archive.org/details/softwarelibrary_apple

https ...