Binary is a base-2 numbering system that represents values using two symbols: 0 and 1.

learn more… | top users | synonyms

3
votes
1answer
84 views

Head on very large files

I have 2 very big files (27G and 40G), which are output of dd command on a failing hard drive. I wanted to compare the first bytes to see if the 27G bytes is the begining/substring of the 40G. I ...
0
votes
0answers
33 views

Invert all bits in a file

I’m looking for a way to invert all bits in a file, preferably using Windows-integrated tools. How do I go about doing that? In essence, a file with contents 1100101 would become 0011010.
2
votes
3answers
184 views

A guest Linux system sees a text file as binary with ls

I am copying a simple text file to a guest Linux system on VirtualBox through shared folders, but after the copy, the VM seems to think that the file is a binary (it shows up green in ls): Is there a ...
2
votes
0answers
36 views

Jekyll installation successful but command not found

I am trying to install Jekyll following http://jekyllrb.com/docs/installation/ ○ → sudo gem install jekyll Password: Fetching: jekyll-2.5.3.gem (100%) Successfully installed jekyll-2.5.3 Parsing ...
2
votes
1answer
34 views

Can hexdump (hd) or octal dump (od) be used to display binary data as zeros and ones?

Does anyone know of a way to display the binary contents of a file as zeros and ones? So instead of something like this: DE AD BE EF We could get output like this: 11011110 10101101 10111110 ...
2
votes
1answer
57 views

Linux utility to convert a binary sequence stored in a text file into ASCII values [closed]

I have reversed a file, dumped its binary contents, wrote a tool to perform some operations on the binary, and the output is stored in a new binary file. I want to convert this binary back to ASCII. I ...
1
vote
1answer
53 views

How to dump raw binary 'bits' from a file?

Before this is marked as 'possible duplicate' of this or that, let me make it clear that I have looked at other similar questions. However, they do not suggest how to dump a "pure" and plain binary ...
2
votes
4answers
123 views

Prevent cat from opening a binary file

Is there a way to prevent or prompt you when trying to cat binary files? Oftentimes I need to work with log files or data files, some of which are text and others not. It's easy to get mixed up, and ...
1
vote
0answers
25 views

How to detect binary compatibility with the SSE4 instruction set?

I have bunch of binaries built for the SSE4 (Streaming SIMD Extensions 4) instruction set. I’d like to run them on a processor that has no support for the instruction set. It is natural that I get the ...
-1
votes
3answers
97 views

why 0(Zero) is treated as positive sign?

Can I know, In signed int or In Binary digit Zero is treated as positive sign and 1 is treated as negative sign. For example :- 1000 0000 0000 0110 = -6 0000 0000 0000 0110 = 6 But ...
-3
votes
1answer
59 views

How to open a file in binary format.(1's & 0's)

I want to open files in binary format. I want to see binary code.(Not hex) And want to edit in binary format and ability to save changes. What is the best application to do this or is there any easy ...
0
votes
0answers
18 views

Running a binary in 32bit on mavericks

I was just wondering if anyone knows how to run a Mach-O binary file on Mac OS X Mavericks as a 32 bit, or ppc. X11 is no longer supported.
0
votes
3answers
125 views

How did the first Microprocessors knew the meaning of binary codes?

I've been asking myself this question for more than one year and I just decided to ask the question on here. I don't know if it's the right place or not. As far as I know Microprocessors are a ...
0
votes
1answer
20 views

how can I view file as paint image?

this guy is writing code in ms paint http://www.themarysue.com/writing-code-ms-paint/ similarly I would like to display, just for fun, various files (text or binary) as image. is there any utility?
0
votes
1answer
45 views

How can I know whether a binary file is an executable or a library?

I have a binary file, but how can know the file type, lib or exe. By opening it with notepad++, it shows ELF and a lot of random symbols.
0
votes
1answer
70 views

Why doesn't the binary package get reinstalled by apt-get or building from source?

I'm trying to install Asterisk on my Debian wheezy server. For this I first did the simple sudo apt-get install asterisk This worked flawlessly. Afterwards asterisk was running and I could enter ...
1
vote
1answer
81 views

How to apply binary diff produced by fc to a file?

How can one apply diff file produced by fc /b command on Windows to update some file in a simplest way possible; i.e. without buying anything or downloading some large/questionable software? The diff ...
6
votes
2answers
2k views

Figuring out how many megabytes go into gigabytes? [duplicate]

I needed to figure out how many requests could be made with 1000 GB of traffic if each request took 1MB on average. I quickly did the math on paper, and then as a second thought plugged it into ...
1
vote
0answers
35 views

“Operation not permitted” on program start

I am trying to run the YGOPro game on my Mac. However, whenever I try to run it, I get: server:Ygopro Ingwie$ ./ygopro.app/Contents/MacOS/ygopro -bash: ./ygopro.app/Contents/MacOS/ygopro: Operation ...
1
vote
1answer
42 views

Recover files from corrupt archive

I have a tar file of 40Gb but when I open it with the archive manager on Ubuntu I get only 512MB. The major part of my files are messing. Even when I do : tar -tf myfile.tar.gz I don't get the list ...
-5
votes
2answers
199 views

Is it possible to run an x64 binary on an ARM processor? [duplicate]

Suppose you have an ARM embedded device and a x64 based laptop. Both systems are running GNU/Linux. If you decide to copy the "ls" binary from the laptop to the embedded device and run it on the ...
1
vote
1answer
376 views

Convert black and white jpeg to binary string [closed]

Given a jpeg image with all black and white pixels, I want to convert all black pixels to 1's and all white pixels to 0's, and have these 1's and 0's output to a text file. Is there any program that ...
1
vote
1answer
537 views

Why do I get HEX2BIN() error for long (but valid) strings?

In Excel 2010, the formula =hex2bin("111",10) gives the right answer of 0100010001. According to the function help, the arguments should be at most 40 bits (10 hex digits). However, the following ...
1
vote
1answer
108 views

What is the difference between IPv4 and IPv6 in terms of binary?

I know this question is for entry level users. That I am. New to this world and finding it very interesting. I have done some research on IPv4 and how to convert IP addresses to binary and vice versa. ...
0
votes
0answers
88 views

Three way binary comparison for savegame hacking

Basically, I'm trying to compare a bunch of savegames to find where some values are stored. First of all, it's a rogue-like interpreted in WinGlulxe. I'm dealing with almost 100% binary save files ...
3
votes
2answers
132 views

Do emulators parse binary code within files?

I have seen some emulators that claim they execute, and even though they do, their source code shows they don't directly parse every 1 and 0 to determine an instruction. My question is, if the ...
4
votes
1answer
4k views

How can I diff binary files in git?

I assume I need to set up a difftool. What difftools work? How do you put the parameters in?
2
votes
3answers
860 views

Windows backup with support for incremental binary backup

Currently, I'm using the Windows 8.1 file history backup, but it has a major weakness. Large files are copied in their entirety each time they change. For instance, I have some virtual machines files ...
0
votes
2answers
60 views

Can any compiled-language code be traced, line-by-line, to individual bits of each CPU-instruction in binary? [closed]

I realize we can dump equivalent assembly from C++ code using many debuggers and such. But what about binary code? The formatting of bits in each byte(s) that make up the actual machine instructions, ...
2
votes
1answer
113 views

Can you pull every bit of data & instruction out of an executable file via a hex editor?

Someone told me that viewing a binary file of a program, or similar, in a hex editor exposes the entire sum of data/instructions a program has. For example, like in game hackers/modders of old retro ...
0
votes
1answer
699 views

How can I display an MP3 file as binary?

I have an MP3 file and I would like to see the file's binary. How can I do this (preferably on a Mac)?
8
votes
5answers
2k views

Does recompiling a program produce a bit-for-bit identical binary?

If I were to compile a program into a single binary, make a checksum, and then recompile it on the same machine with the same compiler and compiler settings and checksum the recompiled program, would ...
-1
votes
2answers
382 views

Hex to base64 on *nix [duplicate]

Note: I have marked this question as a duplicate of another question. But I am keeping it nonetheless as it has an example and a clearly explained answer, so hopefully it should help others. ...
0
votes
3answers
3k views

How to convert hex to binary?

I would like to get some help with my assignment. I have to convert hex to binary by using hlookup or conditional formatting in Excel. How should I approach this?
3
votes
2answers
67 views

How can I find the other copy of an image file?

I have an image file, and I know there's another copy of it somewhere in a directory or one of its ancestors, but it has a different, unknown file name, and there are thousands of images in this ...
1
vote
3answers
364 views

How to compile a shell script in FreeBSD?

How can I compile binary shell script for FreeBSD? I tried the Linux binary emulator but it doesn't work.
0
votes
1answer
196 views

Are there any tools for doing a text search within binary data?

This question is somewhat related to this so post: Searching text in binary data I am not looking for a programming solution that involves having to make a program to this. I was wondering if there ...
1
vote
2answers
2k views

Route summarization: How to get the route summary patently. (VLSM, CIDR)

i'm looking for a smart and short way to calculate summary routes. (CIDR, route summarization) I'm common with the subject matter of summarization, supernets, VLSM, CIDR etc. but I don't always ...
0
votes
1answer
88 views

How does binary data get generated? [closed]

How does hardware generate binary codes? For instance, keyboard generates scancode "1E" when i press "A" But how? P.S.: I assume software only interpretes and processes binary data (not generates ...
2
votes
1answer
768 views

Viewing Binary Files

When I open up a binary file in Vim, it displays a bunch of gibberish. One would expect it to display a bunch of 1s and 0s. Why is this?
4
votes
4answers
10k views

Convert hex dump of file to binary(program) file on Windows?

I have a hex file that I am attempting to convert to binary. I have performed this on Linux before using the command: xxd -r -p mykey.hex > mykey.bin But I cannot figure out how to do this same ...
0
votes
1answer
224 views

When using PHP math and Binary Numbers [closed]

I am learning a little more about PHP instead of the basic formatting, etc. One of the questions I have is that with the math part of PHP I can do some rather interesting things with math. I am ...
9
votes
5answers
10k views

What is the binary representation of “256”? [closed]

I have just learned how to convert decimal to binary and binary to decimal. But now I'm confused. How would you represent the number "256"? 255 = 11111111 And 1 byte cannot have more than 8 ...
0
votes
1answer
93 views

How BroadcomVoice16 use 2-bits per sample to produce voice?

BroadVoice16 (BV16) is a speech codec that operates at an input sampling rate of 8 kHz and an encoding bit rate of 16 kb/s, or 2 bits per sample. That's an excerpt from BroadVoice 16 Speech Codec ...
0
votes
2answers
105 views

How could I represent 1.625 by 0 or a 1 (binary digit)?

This is an excerpt from wikipedia about 'full rate' speech coding standard. Full Rate or FR or GSM-FR or GSM 06.10 was the first digital speech coding standard used in the GSM digital mobile ...
0
votes
1answer
422 views

Install compiled binary in non-standard environment

I am attempting to install GraphicsMagick in a hosting account... I used this info to get it to work in most cases: How do you specify the location of libraries to a binary? (linux) However, it ...
4
votes
3answers
2k views

Is there a program which can count occurrence of a certain string in a binary file?

I have a binary file and I need to count occurrences of certain string in this file or even list then with offsets. In windows or Linux (for this task I use Fedora 12 and w2k).
5
votes
2answers
289 views

modify 128 bytes

I have to replace on a linux webserver, the first 128 bytes of some binary files. The files have a size of ~ 5Gb and I just have to rewrite the header bytes. What would be the best aproach to do this ...
10
votes
2answers
4k views

Why is base64 needed (aka why can't I just email a binary file)?

I was reading up on Base64 encoding, and found this on Wikipedia: Base64 encoding schemes are commonly used when there is a need to encode binary data that needs be stored and transferred over ...
9
votes
3answers
2k views

Why can't we understand the content of a binary file after compiled?

As far I know, every program consists of a pack of processor instructions with some specific data variables(float, int, char...) to work on the processor registers. So, the first thing that I ...