Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 01 Aug 2014, 04:25
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
wxHexEditor: wx-based Hex Editor!
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [33 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
eua


Joined: 18 May 2011
Posts: 10
Location: Istabul, Turkey

PostPosted: Wed 25 May 2011, 16:51    Post subject:  

There are some cosmetics but I think it looks better.
Quote:
r218 | erdem_ua | 2011-05-25 04:04:38 +0300 (Wed, 25 May 2011) | 2 lines
Changed OffsetCtrl for use less digits if hex mode in use.
Added Auto-Offset resizing by file length


I can integrate xdiff like engine or just put my own diff code to patch BIN files.
But that patch file is compatible with all OSses. Why do you think that will be break compatibility between Win and Linux?

I think next big thing is Memory Reading for windows (at least on XP) and Linux (don't know how to do on OSX)..

I think it's prohibited on linux but some users doesn’t think same.
Do you know any way to read whole physical memory at Linux?
Back to top
View user's profile Send private message Visit poster's website 
ICQ Number 
Makoto


Joined: 03 Sep 2009
Posts: 1779
Location: Out wandering... maybe.

PostPosted: Wed 25 May 2011, 17:32    Post subject:  

I'd gone off on a tangent and was thinking about (standalone) executable patches when I'd made that comment. Embarassed (See, that's why I shouldn't try to make suggestions at 3AM, when I'm rather tired. Smile )

I can't say I know anything about memory reading/addressing, unfortunately. Sad Would that also require you to start considering having both a 32-bit and 64-bit version of wxHexEditor, due to the differences in the way they address memory? (Or can you do both within a 32-bit program? (I did say I knew very little about the subject... Embarassed ))

(...then again, my posts in the middle of the day when I'm fully awake aren't necessarily all that coherent... Mr. Green )

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 1779
Location: Out wandering... maybe.

PostPosted: Thu 26 May 2011, 00:56    Post subject:  

Okay, just remembered something I'd forgotten.

For copying text from the right-hand pane, a warning will pop up if the selection contains nulls, and the text will be truncated. Would an option (off by default) to automatically convert the nulls to copy-friendly characters (such as spaces, underscores?) be a good idea? That might also need a sub-option to warn (or keep the above warning) as a reminder if you were indeed going to paste the text in the same or another instance of the editor, though, to be safe.

Or, perhaps add the option to convert the nulls in the selection, in the existing warning. That way, you can keep the warning, and those who are going to paste the text into something other than a program don't have to end up taking a screenshot of the text they were trying to copy. Laughing

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Fri 27 May 2011, 06:31    Post subject:  

Makoto: FYI we also had a discussion going about that at http://sourceforge.net/tracker/index.php?func=detail&aid=3088958&group_id=185385&atid=913065

It might be good to have an option to specify which character to replace them with. But I think in theory it should actually be possible to copy the whole string without replacing the null characters. Because if I correctly understand what Google is telling me, you can have a null character in a text file, or in a C++ string.

Here's another idea that would be nice: using a different colour (red?) in that panel for non-printing characters.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Fri 27 May 2011, 20:31    Post subject:  

disciple wrote:
Here's another idea that would be nice: using a different colour (red?) in that panel for non-printing characters.

Nice, but probably not incredibly useful Wink
-----------------------------

Erdem, are you developing primarily on Windows?
With current svn I get this error on Puppy:
Code:
src/HexDialogs.cpp: In member function 'uint64_t FindDialog::FindText(wxString, uint64_t, unsigned int)':
src/HexDialogs.cpp:207: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/usr/include/wx-2.8/wx/buffer.h:127: note: candidate 1: char wxCharBuffer::operator[](size_t) const
src/HexDialogs.cpp:207: note: candidate 2: operator[](const char*, int) <built-in>
make: *** [src/HexDialogs.o] Error 1

Google takes me to places like this http://xania.org/200711/ambiguous-overloading, but I think I am still too ignorant to fix it.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 1779
Location: Out wandering... maybe.

PostPosted: Fri 27 May 2011, 23:35    Post subject:  

Re: colored text - I'd have it off by default, anyway, I'm sure. Very Happy I'm probably too old-fashioned to stare at code or binary/hex file contents in anything but black and white. Laughing
_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
eua


Joined: 18 May 2011
Posts: 10
Location: Istabul, Turkey

PostPosted: Sat 04 Jun 2011, 18:06    Post subject:  

I don't know if changing null character is good thing.
I don't know actually but don't think if it's normal to have null at copied text. Better to keep current structure. At least for now... C++ might allow null on strings but I have doubts if gnome-clipboard supports it at text target...

@Disciple, I am developing on OpenSUSE 11.4.
That error might be about different gcc version.
I don't have such problems on gcc 4.5.1...
Are you using 4.6 ?

In this time I make some improvements to revision 226:
Quote:
| erdem_ua
Added file owner change for non-windows OSes if permissions are not enough.
Added missing block indication to file comparison function.
Fixed Compare Dialog error on Win by using bigger stack.
Improved Dissassembly. Now decompiles selected block up to 100 bytes.
Fixed broken menus on OpenRecent menu repair.
Fixed Invisible SearchPanel and ComparePanel contents on File changes.
Fixed OpenRecent not working bug.


So you don't needed to change/adjust your disk permissions by hand...
I am gonna add a file checksum before giving a new release...
Back to top
View user's profile Send private message Visit poster's website 
ICQ Number 
Makoto


Joined: 03 Sep 2009
Posts: 1779
Location: Out wandering... maybe.

PostPosted: Sun 05 Jun 2011, 00:15    Post subject:  

Well, I meant more along the lines of letting the user choose from the warning dialog whether or not they'd want to go ahead and have it converted to a form that other programs (or the system clipboards) might not have a problem with. Smile

If they read the warning, they'll know (hopefully) that attempting to copy either way into another hex-editing session isn't a good thing, so... hopefully, they'd be aware they should only do it if they're going to do something like copy-paste it to notes in a text file. (You don't want to see my handwritten notes... honest. Embarassed Very Happy)

_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Sun 05 Jun 2011, 18:44    Post subject:  

eua wrote:
@Disciple, I am developing on OpenSUSE 11.4.
That error might be about different gcc version.
I don't have such problems on gcc 4.5.1...
Are you using 4.6 ?

I have this error in my old version of Puppy, which uses gcc 4.2.2, and also in Arch Linux with gcc 4.6.
I'm only using the makefile. Maybe there's an option you're using in codeblocks which affects it.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Sun 05 Jun 2011, 19:49    Post subject:  

Hmmm. I tried building it in codeblocks and it failed the same way.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
eua


Joined: 18 May 2011
Posts: 10
Location: Istabul, Turkey

PostPosted: Tue 07 Jun 2011, 21:10    Post subject:  

That error looks weird because cannot see an error over there.
It probably related with Unicode build... But I use unicode build also.
Weird.
Since I don't have same error. I couldn't help about it.

Quote:
on svn trunk, File checksum calculation implemented via adding hashlib++


Now need a give release after bug fixing season... Smile
Back to top
View user's profile Send private message Visit poster's website 
ICQ Number 
eua


Joined: 18 May 2011
Posts: 10
Location: Istabul, Turkey

PostPosted: Wed 08 Jun 2011, 21:51    Post subject:  

I found why you got error.
Code:
wxCharBuffer a = target.ToUTF8(); //Convert to UTF8 Binary
int i=0;
while(a[i++] not_eq 0);               //Find stream size


this while tigers error.. But I don't know how can I count UTF8 length without it.
This function founds "real" length in bytes instead of character count...
Since that length is not equal with target.Len(), we needed to do that.
Will look what I can to remove that error.

Edit: Fixed on latest svn trunk. Please check...
Back to top
View user's profile Send private message Visit poster's website 
ICQ Number 
eua


Joined: 18 May 2011
Posts: 10
Location: Istabul, Turkey

PostPosted: Fri 17 Jun 2011, 17:20    Post subject:  Released wxHexEditor v0.11 Beta  

You can grab new version v0.11 Beta from http://wxhexeditor.sf.net
Cool
Back to top
View user's profile Send private message Visit poster's website 
ICQ Number 
muggins

Joined: 20 Jan 2006
Posts: 6674
Location: lisbon

PostPosted: Fri 17 Jun 2011, 18:38    Post subject:  

Thankyou eua,

I've uploaded wxHexEditor-v11b.pet in the first page of this thread.
Back to top
View user's profile Send private message 
Makoto


Joined: 03 Sep 2009
Posts: 1779
Location: Out wandering... maybe.

PostPosted: Sat 02 Jul 2011, 05:09    Post subject:  

Oops - I keep forgetting to say thanks for the new .pet (and the new version). Smile I installed it right away (in June), but haven't actually gotten around to testing it. Embarassed
_________________
[ Puppy 4.3.1 JP, Frugal install | 1GB RAM | 1.3GB swap ] * My Pidgin Builds for Puppy 4.3.1+
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [33 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0830s ][ Queries: 12 (0.0048s) ][ GZIP on ]