Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 37 results for
xcc
- Page 1
Runtime debug file for xcc screens
Programming
Software Development
8 Years Ago
by JohnMcPherson
… know what error is occuring. How do I do the
xcc
compile so that a runtime debug file is created, and… issue. Alternatively, is the a debugger available that understands the
xcc
screens? I have the dbx debugger for my regular C… this script by entering the following at the command line:
xcc
solvsurchg As you can see in the script, the .c…
Read binary file, and write to another
Programming
Software Development
13 Years Ago
by liran
…\xef\xc9:\xfa\xc0\x12\xa5\xc4\x93\x87eTo\x9121c\
xcc
,s4\xe6\x0c\x861\xccF\x85\x08\x12\x05\xa8…\\xef\\xc9:\\xfa\\xc0\\x12\\xa5\\xc4\\x93\\x87eTo\\x9121c\\
xcc
,s4\\xe6\\x0c\\x861\\xccF\\x85\\x08\\x12\\x05\\xa8…
Decoding binary file
Programming
Software Development
15 Years Ago
by mmeclimate
…\x00\x00\x00\x14\x01\x00\x00p\x01\x00\x00\
xcc
\x01\x00\x00(\x02\x00\x00\x86\x02\x00\x00…
MD5 hashing
Programming
Software Development
14 Years Ago
by abhi_elementx
…;> md5.new("abhi").digest() "\xd7o=\x05\
xcc
\x9a\xc9\x8f\x1f\x91`'J9\xfe3" [/CODE] Isnt…
character encoding in python
Programming
Software Development
14 Years Ago
by MacUsers
…; os.listdir('/home/santanu/Scripts/test') ['Beyonc\xc3\xa9', 'Beyonce\
xcc
\x81'] >>> unicode('BeyoncĂ©') Traceback (most recent call…
bindshell error
Programming
Software Development
11 Years Ago
by tony75
…\x56\x4e" "\x56\x56\x53\x56\x68\x79\
xcc
\x3f\x86\xff\xd5\x89\xe0\x4e\x56" "…
Re: using or, and byte.find
Programming
Software Development
9 Years Ago
by lewashby
…\x9c\xc33$\x9d33'33\xe7\xa5$\
xcc
\
xcc
\xcf\xd3)\x99\x92J~d\xcad\x92\x86L\xa4\
xcc
$\
xcc
\
xcc
\x99\x84\x92\x93)\x99…\x93=33\xf3\x0c\xf2\x7f\xff\xe9\xcar\x9c\
xcc
\
xcc
\xc3\xf4\x99\x86\x7f\x94\xc9\x98|\xc39\x932S…&\x94\x99\x86I9\x98fd\x93\xff\xf4\x9ezfJg\
xcc
\xb93'L\
xcc
\
xcc
\xcc2L\
xcc
\xc9\x9f\xf333\xe8a\x93)\x939\x9c\xc2IL…
Re: read a file
Programming
Software Development
17 Years Ago
by b.janahi
…\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\
xCC
\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6…\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\
xCC
\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6…
Re: [Question] Making a code better
Programming
Software Development
13 Years Ago
by darkbreaker
…','\xc2','\xc3','\xc4','\xc5','a','A','\xc8','\xc9','\xca','\xcb','\
xcc
','\xcd','\xce','\xcf','\xd0','\xd1','E','E','E','\xd5','I…
Re: Read binary file, and write to another
Programming
Software Development
13 Years Ago
by woooee
It appears the the backslash is being escaped by Python. Try repr(the_string) as output and see if it helps.
Re: Read binary file, and write to another
Programming
Software Development
13 Years Ago
by Gribouillis
Here is a working version [code=python] #!/usr/bin/python3 import sys BUFSIZE = 4096 def make_streams_binary(): sys.stdin = sys.stdin.detach() sys.stdout = sys.stdout.detach() def main(): make_streams_binary() while True: data = sys.stdin.read(BUFSIZE) if not data: break sys.stdout.write(data)…
Re: Read binary file, and write to another
Programming
Software Development
13 Years Ago
by liran
Gribouillis : Thanks ! That's exactly what I need ( I think ). When I do it with "streams.py < dsc01390.jpg > tmp.jpg", I mean from a file to a file, it copy it exactly, as I need. Although when I just want to see the file printed to the screen, when after I write the previous line, I write "streams.py < tmp.jpg", I see…
Re: Read binary file, and write to another
Programming
Software Development
13 Years Ago
by Gribouillis
[QUOTE=liran;1410009]Gribouillis : Thanks ! That's exactly what I need ( I think ). When I do it with "streams.py < dsc01390.jpg > tmp.jpg", I mean from a file to a file, it copy it exactly, as I need. Although when I just want to see the file printed to the screen, when after I write the previous line, I write "streams.py <…
Re: Read binary file, and write to another
Programming
Software Development
13 Years Ago
by liran
Thanks again, I see your point with "cat" command. ( The reason I need to things as I said is because a specific demand from this program to act like I described... )
Re: Read binary file, and write to another
Programming
Software Development
13 Years Ago
by Gribouillis
[QUOTE=liran;1410059]Thanks again, I see your point with "cat" command. ( The reason I need to things as I said is because a specific demand from this program to act like I described... )[/QUOTE] Using optparse, you can easily add an option -x to your script to output the content in hexadecimal code [code=python] #!/usr/bin/python3 …
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by Salem
The output of [ICODE]od -Ax -t x1z /home/mmeclimate/test/test.dat[/ICODE] is my preferred way of dumping binary data in an unambiguous textual representation.
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by mmeclimate
Hi, Thank you so much for the help! Is there a 'pythonic' way of doing the same thing, for example, as in the output of: [code] od -t cx1 test.dat [/code] Thanks! Michael
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by Gribouillis
There are some conversion functions in the module [icode]binascii[/icode]. For example you can convert to readable hex format with [icode]binascii.hexlify[/icode]. I don't know if it's what you're looking for.
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by Salem
I'm assuming you want to do more with it than just print it.
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by mmeclimate
[QUOTE=Salem;751577]I'm assuming you want to do more with it than just print it.[/QUOTE] I just want to be able to read the data from the file to use it in a new database.
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by mmeclimate
[QUOTE=Gribouillis;751557]There are some conversion functions in the module [icode]binascii[/icode]. For example you can convert to readable hex format with [icode]binascii.hexlify[/icode]. I don't know if it's what you're looking for.[/QUOTE] But how would I use the binascii module to 'decode' my data, for example, if I wanted to decode the output…
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by Salem
I thought you said the format was unknown to you? Reading it in isn't the problem. Working out what all the bytes mean is. Without a nice clean dump of some of the data, figuring that bit out will be next to impossible. Do you have any idea what the data is? Or do we take a guess based on your chosen username and first post? [url]http://clusty.…
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by vegaseat
I might be fishing here, but is this a Macintosh binhex4 format file?
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by mmeclimate
[QUOTE=Salem;752183]I thought you said the format was unknown to you? Reading it in isn't the problem. Working out what all the bytes mean is. Without a nice clean dump of some of the data, figuring that bit out will be next to impossible. Do you have any idea what the data is? Or do we take a guess based on your chosen username and …
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by Salem
Well the output of od would enable you to confirm such things as - whether 2 or 4 byte integers were used - whether 4 or 8 byte floats were used - whether the data is stored in big-endian or little-endian format - whether there is a header, say perhaps containing the number of records. and so on. If you know (or at least have some idea) what the …
Re: Decoding binary file
Programming
Software Development
15 Years Ago
by mmeclimate
[QUOTE=Salem;752945]Well the output of od would enable you to confirm such things as - whether 2 or 4 byte integers were used - whether 4 or 8 byte floats were used - whether the data is stored in big-endian or little-endian format - whether there is a header, say perhaps containing the number of records. and so on. If you know (or at least have …
Re: MD5 hashing
Programming
Software Development
14 Years Ago
by ~s.o.s~
> Why should I do this(in bold)? : Because we require the hex equivalent a generated byte and not the integer this byte gets up-casted to. When converting to hex string, we would want our toHexString() method work on an integer which represents the sequence of bytes generated by md5 and not the integer which the byte value gets automatically…
Re: MD5 hashing
Programming
Software Development
14 Years Ago
by abhi_elementx
Thank you so much ~s.o.s~. I used the hexdigest() in python and it gave me the correct string. Cheers.
Re: character encoding in python
Programming
Software Development
14 Years Ago
by woooee
You have to declare the encoding somewhere. The following works for me on python 3.x. Note that printing to screen is a different matter as some characters will not print depending on the encoding and font for the system. [CODE]#!/usr/bin/python3 # -*- coding: latin-1 -*- y = 'abcdef' + chr(128) print(y) [/CODE]
Re: character encoding in python
Programming
Software Development
14 Years Ago
by MacUsers
[QUOTE=woooee;1122080]You have to declare the encoding somewhere.[/quote] Isn't that [icode]urllib.unquote()[/icode] doing the encoding? As I said, it's works just file for anything else but string like [icode]%CC%81[/icode] [QUOTE]The following works for me on python 3.x. Note that printing to screen is a different matter as some characters will …
1
2
Next
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC