Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Search for multiple unknown 3 (2) Byte combinations in a file.
Post: RE: Search for multiple unknown 3 (2) Byte combina...
(Aug-12-2023, 08:15 PM)deanhystad Wrote: Can the 8b/8c/8d appear anywhere, or only at multiple of 3 byte offsets?
Can appear anywhere and also Multiple Times, or not even once. |
|
lastyle |
General Coding Help |
7 |
1,362 |
Aug-12-2023, 08:20 PM |
|
|
Thread: Search for multiple unknown 3 (2) Byte combinations in a file.
Post: RE: Search for multiple unknown 3 (2) Byte combina...
(Aug-12-2023, 06:06 PM)lastyle Wrote: (Aug-12-2023, 06:00 PM)deanhystad Wrote: Are they hex strings? If so, what is the delimiter?
no delimiter, raw Binary files , max 1MB in size
Probably using ... |
|
lastyle |
General Coding Help |
7 |
1,362 |
Aug-12-2023, 07:47 PM |
|
|
Thread: Search for multiple unknown 3 (2) Byte combinations in a file.
Post: RE: Search for multiple unknown 3 (2) Byte combina...
(Aug-12-2023, 06:00 PM)deanhystad Wrote: Are they hex strings? If so, what is the delimiter?
no delimiter, raw Binary files , max 1MB in size |
|
lastyle |
General Coding Help |
7 |
1,362 |
Aug-12-2023, 06:06 PM |
|
|
Thread: Search for multiple unknown 3 (2) Byte combinations in a file.
Post: Search for multiple unknown 3 (2) Byte combination...
Hi all
I` d like to search a file for multiple unknown hex combinations in a file and have absolutely no idea how to start.
The hex combinations are always 3 byte long and the second and third byte ... |
|
lastyle |
General Coding Help |
7 |
1,362 |
Aug-12-2023, 05:56 PM |
|
|
Thread: How to split a String from Text Input into 40 char chunks?
Post: RE: How to split a String from Text Input into 40 ...
(Jul-31-2023, 07:19 PM)Gribouillis Wrote: (Jul-31-2023, 06:58 PM)lastyle Wrote: max 40 char packets which will be padded by spaces to have a readable resulting text.It seems that you want the buil... |
|
lastyle |
General Coding Help |
7 |
1,135 |
Jul-31-2023, 07:23 PM |
|
|
Thread: How to split a String from Text Input into 40 char chunks?
Post: RE: How to split a String from Text Input into 40 ...
Sure, lets say the String is
"Someone entered a fancy String Here, whooo it is way to Long. Therefor it has to be splitted"
Result should be a String Array Like :
"Someone entered a fancy String Her... |
|
lastyle |
General Coding Help |
7 |
1,135 |
Jul-31-2023, 07:20 PM |
|
|
Thread: How to split a String from Text Input into 40 char chunks?
Post: How to split a String from Text Input into 40 char...
Hi all.
I Need a Solution split String a String into 40 char chunks.
The String is from a User Input and can be longer (between 1 and 290 Chars), but i Need to Split the String into max 40 char pac... |
|
lastyle |
General Coding Help |
7 |
1,135 |
Jul-31-2023, 06:58 PM |
|
|
Thread: How to search for a byte hex pattern with Joker in FIile
Post: How to search for a byte hex pattern with Joker in...
Hello all
i am searching for a solution to parse a file for a byte pattern with jokers inside a file, and if found to print the position ,or if multiple times inside the starting position of that pa... |
|
lastyle |
Data Science |
1 |
641 |
Jun-03-2023, 05:01 AM |
|
|
Thread: Monitoring a Directory for new mkv and mp4 Files
Post: RE: Monitoring a Directory for new mkv and mp4 Fil...
I do use them
at Line 32,33 i fill the list with content in Series initially
at Line 46 i scan the Folder again and fill "resseries" with content,
then after return i compare old_series with resser... |
|
lastyle |
General Coding Help |
3 |
1,648 |
May-07-2023, 08:26 AM |
|
|
Thread: Monitoring a Directory for new mkv and mp4 Files
Post: Monitoring a Directory for new mkv and mp4 Files
Hi all,
i wanted to code a Monitor that observes a Folder and it`s subfolders for new mkv and mp4 Files. But when i add a File to the Folder the Routine always shows me all files it has found and not... |
|
lastyle |
General Coding Help |
3 |
1,648 |
May-06-2023, 11:42 PM |
|
|
Thread: Split Bytearray into separate Files by Hex delimter
Post: RE: Split Bytearray into separate Files by Hex del...
What i still dont understand is how do i save the split contents to files with ascending filenames. Somehow i always save the whole array instad of the split chunks |
|
lastyle |
General Coding Help |
5 |
2,662 |
Mar-09-2023, 12:30 AM |
|
|
Thread: Split Bytearray into separate Files by Hex delimter
Post: RE: Split Bytearray into separate Files by Hex del...
(Mar-08-2023, 09:15 PM)deanhystad Wrote: Splitting the array into parts is easy (use split()). But how do you save the chunks? if you write the chunks to a binary file how do you delimit the chunk... |
|
lastyle |
General Coding Help |
5 |
2,662 |
Mar-08-2023, 09:20 PM |
|
|
Thread: Split Bytearray into separate Files by Hex delimter
Post: Split Bytearray into separate Files by Hex delimte...
Hi all
i am loading a file into a byte aray with
f = open("myfile.seq", 'rb')
while True:
binarycontent = f.read(-1)
if not binarycontent:
break
print(binarycontent)
after that has bee... |
|
lastyle |
General Coding Help |
5 |
2,662 |
Mar-08-2023, 06:55 PM |
|
|
Thread: Save multiple Parts of Bytearray to File ?
Post: Save multiple Parts of Bytearray to File ?
Hi all.
i`ve got an fixed Bytearray which consist of a $40 Bytes FileHeader and $10 Bytes Packet Header followed by $2000 Bytes Raw data
From that Array i need to Extract the first Packa... |
|
lastyle |
General Coding Help |
1 |
956 |
Dec-10-2022, 12:07 AM |
|
|
Thread: Sorting list from FTP by Date
Post: Sorting list from FTP by Date
Hi all,
i am parsing a ftp f.retrlines('MLSD', ls.append) which creates me a list that contains Fileinfo like the following
#type=file;size=8889;modify=20200719015840; zzapped +2#-lxt.prg
i iso... |
|
lastyle |
Data Science |
2 |
2,600 |
Oct-28-2021, 10:10 PM |
|
|
Thread: Parse String between 2 Delimiters and add as single list items
Post: RE: Parse String between 2 Delimiters and add as s...
(Apr-11-2021, 11:00 PM)bowlofred Wrote: (Apr-11-2021, 09:52 PM)lastyle Wrote: ouch my Bad, i posted to the wring Subcategory. My python version is 2.7.18
2.7 won't have f-strings. Just change the... |
|
lastyle |
General Coding Help |
5 |
3,368 |
Apr-11-2021, 11:03 PM |
|
|
Thread: Parse String between 2 Delimiters and add as single list items
Post: RE: Parse String between 2 Delimiters and add as s...
(Apr-11-2021, 09:41 PM)bowlofred Wrote: Except for not having brackets around it, this appears to be valid JSON. I'd add the brackets and parse as JSON. That will give you a list of dicts that you... |
|
lastyle |
General Coding Help |
5 |
3,368 |
Apr-11-2021, 09:52 PM |
|
|
Thread: Parse String between 2 Delimiters and add as single list items
Post: Parse String between 2 Delimiters and add as singl...
Hi all.
I`ve got a big string that contains multiple different data. The dataitems are seperated by {data}
I want to grab the data between theese 2 delimiters { and } and add them as a single item ... |
|
lastyle |
General Coding Help |
5 |
3,368 |
Apr-11-2021, 09:24 PM |
|
|
Thread: for x to y step from basic in Python
Post: RE: for x to y step from basic in Python
Thanks a lot, thats EXACTLY doing what i was looking for. I didnt understand the Range Startement and building.
Now with that Solution i finally got the Idea how it`s working.
CHEEERS!!! |
|
lastyle |
Data Science |
3 |
2,242 |
Aug-25-2020, 09:10 PM |
|
|
Thread: for x to y step from basic in Python
Post: for x to y step from basic in Python
Hi all,
i previously asked for a Solution for a routine which compares two values and also does a step. It probably was explained to complicated to understand, so i coded the working Solution in Basi... |
|
lastyle |
Data Science |
3 |
2,242 |
Aug-25-2020, 06:05 PM |