How can I convert a NodeJS binary buffer into a JavaScript ArrayBuffer?...
I'm trying to send a HTTP POST to a device on my network.  I want to send four specific bytes of data to the device unfortunately I only seem to be able to send strings to the device.  Is there anyway to send raw binary using javascript?    Her...
With EMCAScript6, I see there's a way to represent binary literals using the 0b or 0B prefix. I was experimenting with it, and couldn't find a way to represent a negative number (since it's not using two's-complement). Am I missing so...
I have a simple PHP file which loads a file from my server, base64 encodes it and echoes it out.  Then I have a simple HTML page that uses jQuery to fetch this file, base64 decode it and do a checksum test. The checksum test is not working.  I md5...
I am trying to convert some Java code into JavaScript which is needed for the application I am working on. I am stuck on one class and its methods that convert a variable of type double to long, and then long to a byte array that consists of 8 bytes...
I've read this Stack Overflow thread, and this blog post, but am still unable to understand why some floating point numbers can be represented exactly in binary, and why some can't.  I understand that 0.1, 0.2, 0.3, 0.4, 0.6, 0.7, 0.8, 0.9 wi...
Introduction  Hey folks, i am currently working on a JavaScript-based 3d slicing tool (SLAcer.js - awesome work btw.), that can generate convenient print files for my cheap dlp-printer (SparkMaker). The printing files consist of some G-Code and simpl...
So I'm trying to create and save a binary file locally in javascript using this library: https://github.com/eligrey/FileSaver.js/  It is a bit tricky because I am using GameMaker studio, and the ways I can interact with the javascript is a bit li...
In javascript the following test of character to character binary operations prints 0 676 times:  var s = 'abcdefghijklmnopqrstuvwxyz'; var i, j; for(i=0; i<s.length;i++){ for(j=0; j<s.length;j++){ console.log(s[i] | s[j]) }};   If js w...
I am connecting to the Amazon Product Advertising API, and to sign my request I need to base64-encode the raw binary output of an HMAC-SHA256 hash.  In the PHP documentation for hash_hmac, the fourth parameter bool $raw_output controls whether the ou...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.