1,603 questions
3
votes
3
answers
207
views
Mutating detection data into binary
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, ...
0
votes
1
answer
68
views
DB2 LUW What's up with BINARY vs. CHAR FOR BIT DATA column data types?
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 ...
2
votes
1
answer
97
views
How to convert cmd pipe to powershell in context of binary data (ffmpeg and streamlink)
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 ...
2
votes
0
answers
73
views
Insert image from in-memory binary to ODT file LibreOffice
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 ...
0
votes
1
answer
85
views
Hexadecimal concatenation in recursive CTE is truncated to 64 characters
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
(
...
0
votes
0
answers
12
views
Is it possible to calculate abilities per participant per stimulus in BradleyTerry2 R package?
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 ...
1
vote
1
answer
455
views
Is it possible to dump a Java byte array to a file from the IntelliJ debugger?
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 ...
1
vote
0
answers
47
views
Using cURL in PHP to post multi-part data held in variable rather than on disk [duplicate]
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 ...
0
votes
0
answers
43
views
Can't use BinaryFormat functions modified using BinaryFormat.ByteOrder to feed a field length to other BinaryFormat functions
Context
Writing a Power Query function to read binary data from a binary stream where some fields are preceded by their length as a 32-bit Little Endian Integer.
A systematic error occurs when using ...
1
vote
0
answers
29
views
Ideal method to do image similarity comparison between two binary images - Tactile Maps
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 ...
0
votes
0
answers
25
views
Converting binary data to unsigned ints
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 ...
0
votes
0
answers
43
views
4 byte binary integer resets above 128 (or its multiples)
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, ...
0
votes
0
answers
161
views
Reading binary data from serial port instrument
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 ...
0
votes
0
answers
115
views
How to Get image bytes directly out of clipboard
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 ...
1
vote
2
answers
44
views
How to replace ^B in log or text files with sed?
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 ...