Skip to main content
Filter by
Sorted by
Tagged with
3 votes
3 answers
214 views

Currently I have a dataframe of bear detections that I want to convert into a binary detection history (14 columns of day1, day2, day3, etc. where: actual_date_out = the date the camera was deployed, ...
Jessie Elliott's user avatar
0 votes
1 answer
86 views

We have DB2 LUW v11.5 and it supports both BINARY and CHAR FOR BIT DATA column data types. I've read the documentation, and I've Googled it, but I don't really see an effective difference between ...
Dave Clark's user avatar
2 votes
1 answer
104 views

I'd like to convert a pipe of video stream between streamlink and ffmpeg from cmd to Powershell. But from what I searched powershell only supports piping objects. Is there any way to reproduce this in ...
krawieck's user avatar
  • 135
2 votes
0 answers
82 views

I want to replace a string in my ODT file with an image, but this image is from binary data, not a file. I don't want to write to temp file and load it, I want to purely do so in memory. I have this ...
user30635614's user avatar
0 votes
1 answer
89 views

I'm working on Nested Set Hierarchies. I'm using a recursive CTE to build the nested equivalent of adjacency list table. MySQL 8.4 is my platform. -- adjacency list table CREATE TABLE dct_node_adjc ( ...
Felipe Lorenzo's user avatar
0 votes
0 answers
12 views

I have a task in which participants engage in a pairwise comparison task of 12 stimuli. All participants see all comparisons and the order is fully randomised. For subsequent analyses, I need to ...
bojana_v's user avatar
1 vote
1 answer
527 views

I am debugging some code that involves transferring files over a network. I have received the binary data and want to confirm that the file is correct by downloading it an opening it in a viewer ...
Anomaly's user avatar
  • 1,142
1 vote
0 answers
49 views

I am finding it surprisingly difficult to post an image that I have manipulated using GD image to an API without first saving it to disk. It seems like there must be some way to post the GD image ...
user6631314's user avatar
  • 2,050
1 vote
0 answers
31 views

I have a task for image similarity comparisons between two binary images of tactile maps (maps for the visually impaired to map out an area). The goal is to have an output score of how similar the two ...
Michael Liang's user avatar
0 votes
0 answers
25 views

I'm getting an error pulling out binary data from a database using GORM. Here's my situation: Database field (Aurora MySQL, if it's relevant): tag_to_change binary(4) null, Structure: type ...
cajund's user avatar
  • 141
0 votes
0 answers
44 views

I read binary data from an instrument but the output is quite weird. I have a python program that relies on pyvisa that I describe below. The weird thing is that everytime 128, or a multiple of 128, ...
Aldehyde's user avatar
  • 113
0 votes
0 answers
169 views

Intro I would like to retrieve binary data from an instrument (SR620) using RS-232. The data is an histogram made of 250 bins. The python program I did works well when no data is acquired (I get 250 ...
Aldehyde's user avatar
  • 113
0 votes
0 answers
125 views

I am writing a script to automatically calculate totals for each category from a report that is exported to an excel spreadsheet. The system that generates the report uses images (for some reason) in ...
Nastacio Tafoya's user avatar
1 vote
2 answers
45 views

I have a log/text file which is full of highlighted ^B lines when opened with less. Usually I see ^A and I have the following sed command to replace ^A with |. I found it a while ago and do not know ...
MichaelE's user avatar
  • 847
0 votes
0 answers
98 views

I have a simple model, something like class Notenbild(models.Model): bild_data = models.BinaryField(max_length=500000, editable=True) In admin.py class BinaryFieldWithUpload(forms.FileField): ...
Alexander Pacha's user avatar
0 votes
1 answer
245 views

I have generated some large meshes using Gmsh via the Python API. The ASCII files can be Gigabytes. Since binary files are smaller and faster to read, I set Gmsh to save the mesh files in binary ...
jared's user avatar
  • 9,583
3 votes
2 answers
138 views

Function frexp(3) returns the normalized mantissa xm of a double x, with a value in [0.5,1.0), unless x=0. So I can convert it to a long long as follows: int ie; // will be set in next line ...
Joachim W's user avatar
  • 8,457
0 votes
1 answer
245 views

I have a clustered real time system that produces a very large amount of binary logs. I get a bunch of binary logs from each node in the system and I want to view the logs in a convinent way. Mostly, ...
shaharhoch's user avatar
0 votes
0 answers
230 views

Given a program such as Ghidra, Binary Ninja, etc., is there a way to auto-identify a set of data and assign values a symbol based on the pattern of the data? For example, from this screenshot in ...
Blazing Ardor's user avatar
0 votes
1 answer
56 views

I have a larger data conversion utility this is a small piece of. It converts from an old format to memory, then writes memory to an HDF5 based output format. Below is a function, WriteFloatDataset, ...
JulieC's user avatar
  • 191
0 votes
1 answer
264 views

My workflow requires 2 steps Call an external HTTP API which returns a binary file / pdf. Convert that to a base64 string and send it to another API. Unfortunately I'm not able interpret the binary ...
Christian's user avatar
1 vote
1 answer
378 views

I am expierencing an issue with a powershell script which doesn't work whereas dotnet application with the same commands works. I believe the problem is related to encoding, I think in powershell the ...
Lawrence Kok's user avatar
  • 1,618
0 votes
1 answer
333 views

I have 20 binary files with .grd extension for rainfall (0.25 X 0.25 degree) that I downloaded from Indian Meteorological Department website from 2000 to 2020. The data are arranged in 135x129 grid ...
user68411's user avatar
3 votes
1 answer
151 views

I have a program that reads files from an older system. One section of data in each file (not the whole file) is compressed using an unknown compression scheme, which I need to know how to decompress....
Lan Tanben's user avatar
0 votes
1 answer
31 views

I have binary data with following specification 1 Byte SF-Major 1 Byte SF-Minor 1 Byte SF-Patch 1 Byte SF-Build 2 Byte build (little endian) I wrote following code to read this data format_string = ( ...
Em Ae's user avatar
  • 8,834
1 vote
0 answers
88 views

I am searching for the specific timestamp of 7:12:53am Monday April 22, 2024 within a binary file (Sunday, April 21, 2024 9:12:53 in UTC). I am using a hex editor and have been searching for the epoch ...
Gary A's user avatar
  • 11
0 votes
1 answer
120 views

I am running a linear regression with 3 independent variables of which 2 are continuous and one is binary representing a holiday. In 7th grade language it would look like log(Unit_Sales) ~ Intercept + ...
Roman Shuster's user avatar
0 votes
1 answer
81 views

I have a file that looks live a .XML (it even has a <?xml version="1.0" encoding="utf-8"?> header). But before the header, when I open the file in Notepad++, there is random ...
Júlio César E. Jr's user avatar
1 vote
1 answer
105 views

I am trying to make a program that stores the name, employee number and salary of employees in a database, where I have to then store the amount of employees along with all the information of each ...
DeePyson's user avatar
1 vote
1 answer
188 views

I'm writing a tool to decode data I retrieve via mini-USB cable from the Beurer BF-105 scale. The part I'm really struggling with are the 4 bytes that I think should encode the timestamp of the ...
xogoxec344's user avatar
0 votes
1 answer
120 views

If you read a file smaller than 8KB in size NodeJS allocates 8 KB for it. This isn't intuitive or expected, we are getting "more" bytes than we put. But it isn't a bug either at least in the ...
user avatar
0 votes
1 answer
102 views

I'm working on a C++ program that deals with Pokémon data stored in a binary file. The program reads Pokémon records from a binary file, sorts them based on their power, and then writes the sorted ...
SAQ's user avatar
  • 131
-1 votes
1 answer
89 views

encoded_floats_hex = [ "35F1AC3D", "610BB63D", "8C25BF3D", "B73FC83D", "E259D13D", "0E74DA3D", "B5AB5C00", "...
alezmad's user avatar
1 vote
3 answers
101 views

I am using R to write a report for a class, and I have a pretty big binary database (1 and NA) to indicate presence or absence. `# A tibble: 149 × 31 Vide Copé. Ca…¹ Copé.…² Copé.…³ Copé.…⁴ Polyc…⁵...
Mag's user avatar
  • 33
2 votes
1 answer
69 views

I've read a question elsewhere about "Why there isn't a need for the Byte Order Mark in UTF-8", especially regarding systems with different Endianness. To me the TLDR; is that UTF-8 enforces ...
user avatar
1 vote
1 answer
320 views

I've a ancient database with EBCDIC characterset. I setupping a CDC (Oracle Golden Gate with Kafka Connect Handler) to expose to other services. In some table was used varchar field as binary field (...
Domenico Lorusso's user avatar
0 votes
1 answer
81 views

I have an Oracle Database that stores binary files like PDF, XLS, JPG etc in a field named FILE_FILE_DATA which is of type LONG RAW I am required to fetch this data from Oracle and display in my ...
AnR's user avatar
  • 2,225
0 votes
0 answers
38 views

I'm trying to read a binary data file containing time-series data in Matlab. Sample data: [23,-10,47,19,-417,-434,-1,29,11,22,23,6,18,13,-383] Command: fopen(filename,'r','ieee-le'); When I read the ...
Haoer Shi's user avatar
0 votes
1 answer
370 views

I am working with Apache NiFi and I need to parse and transform incoming binary data that follows a specific structure defined by the format string '<BBHBBHHHHHHh'(20bytes) per message (similar to ...
LuC kY's user avatar
  • 33
2 votes
2 answers
632 views

This is a variant of: How to print float value from binary file in shell? in that question, we wanted to print IEEE 754 single-precision (i.e. 32-bit) floating-point values from a binary file. Now ...
einpoklum's user avatar
  • 137k
1 vote
3 answers
198 views

I have a struct typedef struct { uint8_t type; // 1B -> 1B uint16_t hash; // 2B -> 3B uint16_t id; // 2B -> 5B uint32_t ip; // 4B -> 9B uint16_t port; // 2B -> ...
pqzpkaot's user avatar
  • 431
1 vote
1 answer
187 views

I know that BPE is used on sentences that can generate some sort of tokenization and pairings, with spare bytes being used to create such mappings. Why doesn't it work on BPE? What would be the best ...
nuubae's user avatar
  • 11
1 vote
1 answer
184 views

First post, long time lurker, couldn't get the format the way I wanted it to be. -sorry I'm trying to convert part of a binary file to a date/time (in Python). But whatever I try I'm unable to find ...
Gijs's user avatar
  • 13
-1 votes
1 answer
148 views

I need to access binary resources wrapped by ld -sectcreate. Some newer materials (such as comments in this answer) told that I should use getsectiondata instead of getsectbyname to correctly work ...
jiandingzhe's user avatar
  • 2,185
1 vote
2 answers
71 views

I am using mini-batches to train my model which is as follows SimpleModel( (embed): Embedding(vocab_size, embedding_size, max_norm=2) (model): Sequential( (0): Flatten(start_dim=1, end_dim=-1) ...
tanmay singhal's user avatar
1 vote
2 answers
145 views

I was writing a Hamming weight function in C. I wanted to know if I did it correctly, so my plan was to test on the number 5. I didn't want to google the binary for 5 and wrote some code to do it ...
synnøve's user avatar
  • 129
3 votes
1 answer
443 views

I have the following problem: A certain producer sends Protobuf messages as binary data (byte array). These binary data enter a misconfigured Kafka cluster which deserializes the byte array as ...
PravlesRedneckoff's user avatar
0 votes
0 answers
96 views

I am using this code to POST binary data to a REST interface: var file = $("#file-to-upload")[0].files[0]; var filename = file.name; var url = "/upload"; const reader = new ...
Bart Friederichs's user avatar
1 vote
0 answers
201 views

How to decompile blob fields in a SAP ERP using gzip basXml as format with python? In my case I want to read the field "xdata" from the ODQDATA tables. I tried to unpack the object with gzip ...
Kneipenwalker's user avatar
0 votes
1 answer
160 views

I have R code files that are made using readbin to make the map of drainage bin. But they are in the binary form and zipped. When I extracted manually there are numerous files. How can I access the R ...
Anju's user avatar
  • 1

1
2 3 4 5
33