Category "binary"

Ho to convert base 10 floating point input to base 2 in MIPS?

I have been tasked with writing a program in MIPS that converts a user-inputted base 10 floating point number to base 2. I am a relatively inexperienced program

How to export large pandas Data Frame to excel format?

I have converted binary files to NumPy array and then pandas data frame. The final shape is 217 rows × 524289 columns. When I tried to save it as .xlsx fo

How do I convert a ZipFile object to an object supporting the buffer API?

I have a ZipFile object that I need to convert to an object that will work with the buffer api. Context is that I am trying to use an API that says it takes a f

How do text-editors recognize if the user wanted to type a number or the ascii value associated with it?

According to my current understanding:- All binary values are treated as equal by the system, and it is the task of the software (or the app) to interpret a bin

Binary file edit in Win CMD

How to split or edit binary file in Win CMD? I'm on Win 10 x64, and there's no DEBUG utility eg. to replace all 0a with 0d0a or change a byte value at some byt

Is there a way in Node.js to convert WCF-binary data to full text XML representation?

Is there a way in Node.js (some npm package, for example) to convert binary encoded WCF data (response from some SOAP server) to its full text XML representatio

How to generate random binary numbers 0 or 1 with length of N and with option to control the probability of having 0 or 1?

I want to generate random binary numbers (0 or 1) having N length size. The tricky part is that, It should be able to control the probability of having either m

Julia is not giving me a good return value in Binary Search

I have made this recursive binary search function in Julia that will return the index where the number I am looking for is. (example: array = [1,2,4,8,16], key

Fast method to retrieve contour mask from a binary mask in Python

I want to make a realtime application, which involves finding the edges of a binary mask. I need something fast, without GPU if possible, that runs hopefully be

Set output size in bc library

I'm using the bash bc library to perform inter-base conversions. Does anyone know if it is possible to set the output size (number of bits/bytes)? I need his ou

Need help in adding binary numbers in python

If I have 2 numbers in binary form as a string, and I want to add them I will do it digit by digit, from the right most end. So 001 + 010 = 011 But suppose I ha

Given sorted Array, Returns index i if array A contains an element A[i] such that A[i] = i (recursive and divide and conquer)

So i have homework to make a recursive method that uses a divide and conquer algorithm to search a sorted array and check if A[i] == i (if value matches current

Convert string into binary in Hive

I want to match user ids from two tables in Hive. Unfortunately they are stored in different formats. In one table they are binary whereas in the second table t