15,886,100 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Eddie Winch (Top 75 by date)
Eddie Winch
6-Jul-23 14:43pm
View
Many thanks OriginalGriff,
For your very interesting, and useful answer, it is very much appreciated.
Eddie Winch
19-Feb-23 18:43pm
View
Hi l o o l, Many thanks for this solution, I will have a good look at it tomorrow. Your
information is very much appreciated.
Eddie Winch
19-Feb-23 16:31pm
View
Many thanks for that link Rick, I will take a look at it.
Eddie Winch
11-Feb-23 11:53am
View
Many thanks for all your help with this Richard, it's very much appreciated.
Eddie Winch
11-Feb-23 10:55am
View
I also tried copying the PAC-MISC.exe File and the Batch File, to the pacbob1940 Folder, and that worked aswell, with outputted bitmaps to the Test_Files Folder created inside the pacbob1940 Folder.
Eddie Winch
11-Feb-23 10:45am
View
Hi Richard, I tried something, and it worked, I copied all the .PAC files I wanted processing to the PAC-MISC Folder, and changed the Batch File Code to :-
for %%a in (*.PAC) do PAC-MISC.exe -d Test_Files %%a
And I got all the bitmaps I could, outputted to the Test_Files Folder. Not ideal, but it worked this time finally.
Eddie Winch
11-Feb-23 10:42am
View
Deleted
Hi Richard, I tried something, and it worked, I copied all the .PAC files I wanted processing to the PAC-MISC Folder, and changed the Batch File Code to :-
for %%a in (*.PAC) do PAC-MISC.exe -d Test_Files %%a
And I got all the bitmaps I could, outputted to the Test_Files Folder. Not ideal, but it worked this time finally.
Eddie Winch
11-Feb-23 8:47am
View
Hi Richard, That runs and processes the Files this time, but still no output .bmp Files in the Test_Files Folder. I really feel this should work, I could search for more threads, and alter a few things, if I find anything useful. Also I removed the "" around the last %%a, and it processes the Files, like with "%%a".
Eddie Winch
11-Feb-23 7:26am
View
Hi Richard,
All the Paths and Folder names appear to be correct. I derived the batch File I made, from the following Forum thread :-
https://stackoverflow.com/questions/38957871/how-to-run-an-executable-on-all-files-in-a-directory-matching-a-file-extension-w
Eddie Winch
11-Feb-23 6:33am
View
Hi Richard,
Many thanks for your reply, unfortunately what you suggested I do, didn't work, doesn't even process the Files, I also tried changing the set line of Code, after changing the Folder to PAC_PNL instead of PAC_PNL Misc to :-
set "SourceFolder=C:\Users\eddyw\Desktop\PAC_PNL\PAC-MISC\pacbob1940" instead but still no output files to the Test_Files Folder.
Eddie Winch
10-Feb-23 20:49pm
View
That didn't work either, I am going to bed now as it is nearly 2am here in the UK, so will try and look at the paths tomorrow. The app was written by someone on the Cboard Forum for me.
Many thanks Dave for all your help so far.
Regards
Eddie
Eddie Winch
10-Feb-23 20:32pm
View
No that didn't work either.
Eddie Winch
10-Feb-23 20:25pm
View
The chosen Folder is created, if it doesn't allready exist, but it shouldn't mean the Files don't get outputted to the folder, unless that overwrites the Files ? I will try running the batch File from the Command Prompt.
Eddie Winch
10-Feb-23 20:20pm
View
And when I remove the "" around the %%a and run the batch file again, it doesn't process the .PAC Files.
Eddie Winch
10-Feb-23 20:16pm
View
I have noticed, it says a Subdirectory or File Test_Files allready exists, when the Batch File processes each File.
Eddie Winch
10-Feb-23 19:50pm
View
Hi Dave,
I see what you mean, the full path to the Folder that contains the batch File is :-
C:\Users\eddyw\Desktop\PAC_PNL Misc\PAC-MISC\PAC-MISC.EXE
And to the Test_Files Folder is :-
C:\Users\eddyw\Desktop\PAC_PNL Misc\PAC-MISC\Test_Files
Eddie Winch
10-Feb-23 18:06pm
View
Hi Dave,
Many thanks for your reply, Yes the PAC-MISC.EXE File is in the same Folder as the batch File, but not in the Source Folder, are you saying it needs to be there aswell ? Also do you mean the full path, to the Output Folder needs to be typed ?
Eddie Winch
10-Nov-22 17:09pm
View
Hi Richard, I typed all 256 possible input_bytes for the 256 Hex Values in my Code. and then used Notepad++ to help me copy and replace and Edit for the other sections of Code.
However the Code, is not doing what I want it to. I.e. trying all combinations of individual input_bytes. The Code, is rather large now to post in this thread.
Eddie Winch
8-Nov-22 5:16am
View
Hi Richard, I will type the code, for all 256 Hex Values today, and will let you know, how I get on. Many thanks, for your very helpful responses.
Eddie Winch
7-Nov-22 17:01pm
View
Excellent, so with either way, all combinations of input_bytes, i.e. 256 Hex Values will be tested ?
Eddie Winch
7-Nov-22 16:31pm
View
Many apologies Richard, I should have used the improve question method to obtain help. That is very frustrating, that there is no quicker way. If I do or i.e. || say input_byte == 0x01 || input_byte == 0x02 etc for all 256 Hex Values in my code, would that give me the same result, as doing all the switch statements, I would need to do ?
Eddie Winch
7-Nov-22 16:30pm
View
Deleted
Many apologies Richard, I should have used the improve question method to obtain help. That is very frustrating, that there is no quicker way. If I do or i.e. || say input_byte == 0x01 || input_byte == 0x02 etc for all 256 hex Values in my code, would that give me the same result, if I did all those switch statements ?
Eddie Winch
7-Nov-22 16:29pm
View
Deleted
Many apologies Richard, I should have used the improve question method to obtain help. That is very frustrating, that there is no quicker way. If I do or i.e. || say input_byte == 0x01 || input_byte == 0x01 etc for all 256 hex Values in my code, would that give me the same result, if I did all those switch statements ?
Eddie Winch
7-Nov-22 16:27pm
View
Deleted
Many apologies Richard, I should have used the improve question method to obtain help. That is very frustrating, that there is no quicker way. If I do or i.e. || say input_byte == 0x01 || input_byte == 0x01 etc for all 256 hex Values in my code, would that give me the same result, if I did all those switch statements ?
Eddie Winch
7-Nov-22 15:10pm
View
Deleted
Hi there
I understand the logic of switch Statements, but with 256 Hex Values all the combinations, of
individual input_byte == would take along time to write. Can anyone help me with a quicker way to do this ? Any help would be much appreciated.
Eddie Winch
5-Nov-22 8:37am
View
Many thanks for your help Richard, it's much appreciated.
Eddie Winch
5-Nov-22 8:09am
View
So with the example given for switch block, I am not sure how to adapt, what has been posted to do that.
Eddie Winch
5-Nov-22 8:08am
View
So one combination would be 01for fin de chunk with the individual byte in the next line of Code 6A i.e. input_byte == 6A next line of Code FA, etc so all Individual byte combinations tried.
Eddie Winch
5-Nov-22 8:05am
View
The issue I have, is that I want to try, all combinations of the 255 Hex Values so where it says Code for FE Code for FF etc
Eddie Winch
5-Nov-22 7:52am
View
I think I need, to look at some C# tutorials, sorry about this Richard.
Eddie Winch
5-Nov-22 6:56am
View
Okay I will look into that again, I need to find a relevant example on the internet, to help me sort this issue out.
Eddie Winch
5-Nov-22 6:18am
View
Hi Richard, using the 3rd Solution, I wasn't sure, how to incorporate, the Code into my Code, but I will try again, I need to have a good think about it.
Eddie Winch
3-Nov-22 13:17pm
View
Can anyone help me ?
Eddie Winch
2-Nov-22 14:17pm
View
Could someone, tell me what to put, and or change in the the Code I posted, to try all combinations of Hex values, i.e. for each individual input_byte == for 0x00 to 0xFF ? Each input_byte 0x00 to 0xFF, is only on it's own in input_byte == not multiples. I would really appreciate it, if someone could tell me. Eddie Winch ))
Eddie Winch
2-Nov-22 11:51am
View
Hi Richard Deeming, god how embarrasing, I can't believe I didn't work that out, both sides of that code mean the same. I would have been better, using input_byte >= 0x00 although that wouldn't work either. Many thanks for your comment, it's much appreciated.
Eddie Winch
2-Nov-22 8:58am
View
Deleted
Hi Richard Deeming, god how embarrasing, I can't believe I didn't work that out, both sides of that code mean the same. I would have been better, using input_byte >= 0x00. Many thanks for your comment, it's much appreciated.
Eddie Winch
1-Nov-22 18:30pm
View
Deleted
Would this work for these parts of code for example ? :-
switch(input_byte)
{
case when (input_byte >= 0x00 && input_byte <= 0xFF):
//==============
// Fin de chunk
//==============
Save();
current_output_index++;
RLE_sumador = 0;
line_min_length = int.MaxValue;
line_max_length = 0;
width_current = 0;
image_height = 0;
break;
case when (input_byte >= 0x00 && input_byte <= 0xFF):
//=================
// Siguiente linea
//=================
if(width_current < line_min_length) line_min_length = width_current;
if(width_current > line_max_length) line_max_length = width_current;
if(forced_image_width!=null) {
count = forced_image_width.Value - width_current;
if(count > 0) {
for(n=0; n
Eddie Winch
1-Nov-22 18:22pm
View
What do I need to change in my Code, to try all combinations, of possible Hex Values in each of input_bytes code, for my Code ? i.e. all combinations for each individual input byte, there are 255 or 256 valid hex Values 0x00 to 0xFF ?
Eddie Winch
31-Oct-22 16:23pm
View
Hi FreedMalloc, Unfortunately, using your line of Code, it didn't work, but many thanks for your useful reply.
Eddie Winch
31-Oct-22 15:05pm
View
Hi FreedMalloc, Could you post your comment again ? It is missing now, for some reason ?
Eddie Winch
31-Oct-22 14:52pm
View
The reason I wanted, to try all possible Hex Values, is this is one of two Codes extracting Images from a DOS Games Graphics, and saving it as a bitmap, it is to do with RLE, I have had some images saved but they are not a full image, this code worked for another game but not for this one. This game is the previous game by the same company, so I was hoping the RLE was the same. But want to try all the combinations of Hex Values, in case I get a proper .bmp image saved you see.
Eddie Winch
31-Oct-22 14:44pm
View
Hi OriginalGriff, I would like to Test all possible hex values for the Fin de chunk, part of the code instead of 0xFF, I could look into a For loop, this Code was written for me, I am okay at adapting Code.
Eddie Winch
31-Oct-22 14:11pm
View
Hi Guys, Many thanks for your very helpful reply's, it is very much appreciated.
So are you saying, it is not possible to do a range line of Code, i.e instead of typing each hex value out, specify trying each one in a range ?
Eddie Winch
24-Feb-22 9:47am
View
Because, I wasn't sure I had replied, to the relevant message, many thanks for taking the time to comment sir. I think I will need, to work this out for myself, i.e. how the encoding works etc.
Eddie Winch
24-Feb-22 9:03am
View
Hi Richard,
The Unpac program uses both sets of Code, i.e. Program.cs and Bitmap.cs, and was compiled in Visual Studio, the Codes won't work on there own, could I provide a Google Drive Link for you, to the required Folder of mine, so you can run the Program ? As The Extraction from the .pnl File should output a Grey Scale .bmp image File, it does when I run the Program, the other File doesn't extract properly. Eddie )
Eddie Winch
24-Feb-22 8:57am
View
Deleted
Hi Richard,
The Unpac program uses both sets of Code, i.e. Program.cs and Bitmap.cs, and was compiled in Visual Studio, the Codes won't work on there own, could I provide a Google Drive Link for you, to the required Folder of mine, to run the Program ? As The Extraction from the .pnl File should output a Grey Scale .bmp image File, it does when I run the Program, the other File doesn't extract properly. Eddie )
Eddie Winch
23-Feb-22 16:31pm
View
Hi Richard, I got a response from the Man, he said he could explain how the algorithm works, but it would take a very long time, and he is busy, with his regular Job 5 days a week. Sorry I can't be of any help, I am hoping someone who understands, this particular RLE Encoding can help me. I.e. can follow the logic, in the Codes I have posted, and work out how the algorithm works maybe ?
Eddie Winch
23-Feb-22 16:26pm
View
Deleted
Hi Richard, I got a response from the Man, he said he could explain how the algorithm works, but it would take a very long time, and he is busy, with his regular Job 5 days a week. Sorry I can't be of any help, I am hoping someone who understands, this particular RLE Encoding can help me. I.e. can follow the logic in the Codes, I have posted and work out how the algorithm works maybe ?
Eddie Winch
23-Feb-22 11:20am
View
Hi Richard, Many thanks for taking the time, to check over the RLE decompression Code, it's much appreciated. I will contact the Man, who wrote the Codes, and get back to you when he has responded. Regards Eddie Winch
Eddie Winch
23-Feb-22 11:18am
View
Deleted
Hi Richard, Many thanks for taking the time, to check over the RLE decompression Code, it's much appreciated. I will contact the Man, who wrote the Codes, and get back to you when he has responded. Regards Eddie Winch
Eddie Winch
22-Feb-22 17:35pm
View
Hi Dave, Many thanks for your reply, based on what I see in the Program.cs Code, I think, it's the length and Width, being focused on. As how the colour palette is stored, hasn't been established, all successfully extracted images are in a Grey Scale Colour.
Eddie Winch
22-Feb-22 16:10pm
View
I was wondering if someone, may understand based on knowledge of RLE DOS Games Graphics encoding and C# Language, what the Lines of Code mean, i.e. is the Byte found anywhere in a certain row in a Hex Editor, or at a certain position in a row. If it's at a certain position, then that would make things easier. Or any other logic, based on the Lines of Code.
Eddie Winch
22-Feb-22 14:32pm
View
current input position, someone may understand, what to look for in a Hex Editor, based on what is written in the Program.cs Code.
Eddie Winch
22-Feb-22 14:30pm
View
What I do know, is that the Bytes are relevant, 0XFF i.e. what is seen in a Hex Editor, as FF, I thought maybe someone with knowledge of Hex Editors might be able to understand about, the position of the bytes, I see +1 in parts of the Program.cs Code, I think that may mean, how far along the byte is in a certain row. i.e. fin de chunk I think is the last line, and he mentions second line.
Eddie Winch
22-Feb-22 14:13pm
View
Hi Richard, Yes we tried that, with an internet online Google Session, however the mans first language, is not English, and he couldn't understand me too well, and the signal cut out so we ended the session.
Eddie Winch
29-Aug-20 6:35am
View
Deleted
Can anyone help me ?
Eddie
Eddie Winch
21-Aug-20 13:12pm
View
Hi OriginalGriff,
I have added the following lines to my Code :-
display['DATE'] = pd.to_datetime(display['DATE'])
display = display.sort_values(by='DATE', key=lambda col: 100 * col.dt.day + col.dt.month)
display['DATE']= pd.to_datetime(display['DATE']).dt.strftime('%d-%b-%Y')
display
And after upgrading to the latest Version of Pandas, which accepts sort_values with a Key argument, when I run my full Code, I get the DataFrame Output I want.
Many thanks for all your help ))
Best Regards
Eddie Winch
Eddie Winch
20-Aug-20 13:13pm
View
Deleted
Hi OriginalGriff,
Could you look at the following Thread ? :-
https://www. dreamincode.net/forums/topic/419933-filtering-rows-in-pandas-dataframe-considering-month-and-year/
And tell me where I have gone wrong ?
Eddie
Eddie Winch
20-Aug-20 11:32am
View
I am not sure what parsing each line means, I should be able to convert the date information to datetime though.
Eddie Winch
20-Aug-20 10:56am
View
I think I just need to modify the Line of Code :- display.sort_values(by=['DATE'])
and or the Line of Code :- (df3['DATE'].str.contains('-10$|15$')) to get the answer I want, could you suggest what I should add or change in those lines of Code, to get the DataFrame Output I want ?
Best Regards
Eddie
Eddie Winch
20-Aug-20 9:59am
View
Hi OriginalGriff,
Sorry could you explain how to do that ? I am not sure where to modify the Code exactly, many thanks for your help.
Regards
Eddie Winch
Eddie Winch
20-Aug-20 9:57am
View
Deleted
Hi OriginalGriff,
Sorry could you explain how to do that, I am not sure where to modify the Code exactly, many thanks for your help.
Regards
Eddie Winch
Eddie Winch
27-Jan-20 12:07pm
View
Hi Richard,
The issue is with the Python Code, which needs modifying, the Jupyter Notebook package, works fine. The Python Code is being run in Jupyter Notebook. I don't think, that there is a Jupyter Notebook Help Forum, but I will check to see if there is.
Regards
Eddie
Eddie Winch
27-Jan-20 11:04am
View
I see, unless you have Jupyter Notebook installed, you won't be able to help me, I don't think, unless I post the Output I get, when I run the Code. Maybe that would make things clearer ? I am not sure how to post the Output properly. Eddie
Eddie Winch
27-Jan-20 10:27am
View
Sorry, Yes this is a Python Issue, Jupyter Notebook is the Program used to manipulate Data, from .csv Files .xls Excel Files etc, using Pandas. Have you heard of Pandas ? which is part of Python, used to manipulate Data from those types of Files. Using Python Code, as part of that manipulation.
Eddie Winch
27-Jan-20 10:18am
View
Deleted
Sorry, Yes this is a Python Issue, Jupyter Notebook is the Program used to manipulate Data, from .csv Files .xls Excel Files etc, using Pandas. Have you heard of Pandas ? which is part of Python, used to manipulate Data from those types of Files. Using Python Code, as part of that manipulation.
Eddie Winch
27-Jan-20 9:50am
View
If you run the full Code, in Jupyter Notebook, it will make more sense.
Eddie Winch
27-Jan-20 9:49am
View
That Code, says what Columns to display, in the DataFrame, i.e. from the Excel File Document. If you look at the Full Code, you will see what I mean.
Eddie Winch
27-Jan-20 9:40am
View
df = pd.DataFrame(data, columns= ['Venue','A/C','DISPLAY/','Date','BID','Durn'])
Eddie Winch
27-Jan-20 9:39am
View
Deleted
df = pd.DataFrame(data, columns= ['Venue','A/C','DISPLAY/','Date','BID','Durn'])
Eddie Winch
27-Jan-20 9:29am
View
Hi ZurdoDev, Many thanks for pointing that out to me, I should have worked
that out myself.
Regards
Eddie
Eddie Winch
27-Jan-20 9:27am
View
Deleted
Hi ZurdoDev, Many thanks for pointing that out to me, I should have worked
that out myself.
Regards
Eddie
Eddie Winch
27-Jan-20 9:16am
View
Hi Richard, The Date comes up, simply by showing the Date Column in the Output. Can you see the issue with Dates, if you run the Code in Jupyter Notebook, and look at the Excel Document ?
I would like to post the Output I get, when I run the Code, but don't know how to ? Also I have updated, the 'What I have tried' Section, in my Post.
Eddie
Eddie Winch
27-Jan-20 9:15am
View
Deleted
Hi Richard, The Date comes up, simply by showing the Date Column in the Output. Can you see the issue with Dates, if you run the Code in Jupyter Notebook, and look at the Excel Document ?
I would like to post the Output I get, when I run the Code, but don't know how to ?
Eddie
Eddie Winch
26-Jan-20 12:56pm
View
Deleted
Hi Richard, The Date comes up, simply by showing the Date Column in the Output. Can you see the issue with Dates, if you run the Code in Jupyter Notebook, and look at the Excel Document ?
I would like to post the Output I get, when I run the Code, but don't know how to ?
Eddie
Show More