Repositorio BCS
jorgeluisrezende/30days30things 1
A 30 days coding challenger From the course JavaScript30.
An RSS, Atom and JSON feed aggregator available on Windows and Linux.
jorgeluisrezende/amplitudejs 0
Amplitude.js is the HTML5 Audio Player for the modern era. No dependencies required.
jorgeluisrezende/API-Security-Checklist 0
Checklist of the most important security countermeasures when designing, testing, and releasing your API
:atom: The hackable text editor
jorgeluisrezende/awesome-audio-visualization 0
A curated list about Audio Visualization.
jorgeluisrezende/awesome-cpp 0
A curated list of awesome C/C++ frameworks, libraries, resources, and shiny things. Inspired by awesome-... stuff.
issue commentamark/gun
SEA.work on safari generated different results for same input
@i001962 I still needed you to confirm (A) did the code change fix Safari (see my above comment about me not being able to test myself)? (B) is there a SEA.err
after the broken calls?
comment created time in an hour
issue commentoliver-moran/jimp
Uncaught Error: Cant access the filesystem
UP ?
comment created time in 5 hours
issue commentoliver-moran/jimp
I am facing the same issue
comment created time in 5 hours
issue openedoliver-moran/jimp
Jimp browser convert my 16 bit grayscale into 8bit RGBA
Jimp browser convert my 16 bit grayscale into 8 bit RGBA image (8x4=32 bits) because R=G=B= my original gray, quality is lost as my gray was in 16 bits but R or G or B are in 8 bits. The convertion made by jimp is >> 8
The tested image is PNG: 640x480 16 bit grayscale ImageMagick:
$ identify 1305031468.188327.png
1305031468.188327.png PNG 640x480 640x480+0+0 16-bit Grayscale Gray 131604B 0.000u 0:00.000
Expected Behavior
jimpSrc.bitmap.data=Uint8Array(614400) [0, 0, 0, 0, 32, 21, 32, 21, 34, 137,...]
or
jimpSrc.bitmap.data=Uint16Array(307200) [0, 0, 8213, 8213, 8841, ...]
(32*256+21=8213 for the 3rd pixel)
Current Behavior
jimpSrc.bitmap.data=Uint8Array(1228800) [0, 0, 0, 255, 0, 0, 0, 255, 32, 32, 32, 255, 32, 32, 32, 255, ...]
with thus R=G=B=my_gray>>8 and A=255
And thus for the 3rd pixel 32<<8=8192 != 8213
Steps to Reproduce
https://jsfiddle.net/remmel/yvmketx0/
<script src="https://unpkg.com/jimp@0.16.1/browser/lib/jimp.js"></script>
var jimpSrc = await Jimp.read("https://uc89daeff68107502f68265ef5a0.previews.dropboxusercontent.com/p/thumb/ABEy1DSpxsZQI8_1ZJrnTQ0Sxz6K4GVfKpeeAT3VgwsYdF3iM1I16J3k1dEBHcM4mW8_JjshtmTZVP05bZbtm3anqKB2bUK9TYMOk7DvW2bWO-SfZbaGhDfkJlmtbfuQvnp4WetRA2ptiCkOjtYuIfJHDrtKnjnHtGnSmgWQs_fH8z-An4dT94J6wt-RVK9wc9hSXcl-yEP1_GbY-2oMd0OfibSnbn1TKW27uAMQ8wPj-AMH7meBjznSr3jUPrn_WZW5GeFAkVi3UUUERAxmucOwloPHICKxBDg6v098GwxgvOE92cJGweOKMizxxUOdQBm1Wx8ehHMpb8Ps59DcuysqBlwDtJvdYktsxmzJ9XhPo7Bmu5RDkoIcWkpY8-HalYT29jBoIV2MhMNk8B86jVKy/p.png?fv_content=true&size_mode=5");
console.log(jimpSrc.bitmap.data)
Debugging
Debugging the js code:
- unfilteredData is correct (returned by
FilterSync.process(inflatedData, metaData);
) becauseunfilteredData=Uint8Array(614400) [0, 0, 0, 0, 32, 21, 32, 21, 34, 137,...]
- So it seems that method dataToBitMap
var bitmapData = bitmapper.dataToBitMap(unfilteredData, metaData);
is incorrect
** Version **
- Jimp Version: 16.1
- Operating System: Ubuntu 20.04 LTS
- Node version: Chromium Version 88.0.4324.182
FYI, this bug is related with Stackoverflow question and the PNG 16bit grayscale comes from TUM and represents depth maps
created time in 7 hours
startedllvm/circt
started time in 21 hours
startedtajmone/awesome-interactive-fiction
started time in a day
startedEtchedPixels/FUZIX
started time in a day
startedEtchedPixels/FUZIX
started time in a day
pull request commentamark/gun
@amark Carlos seems to be not online for a while. I wonder what happened to him. I don't know how to commit directly to this PR. Could you please add the skip()
to the test and merge it?
comment created time in 2 days
issue commentamark/gun
SEA.work on safari generated different results for same input
Sea.hash seems like a reasonable function to create. Verify is like a higher order function (if you will) when comparing it to .hash Same with .work/proof. .hash could evolve later to support multihash https://github.com/multiformats/multihash
comment created time in 2 days
startedwiz-lang/wiz
started time in 2 days
issue commentamark/gun
gun client sends unexpected get for full node
👍 you're amazing, perfect, thank you. That's terrible it is doing that >.< this is high priority for me.
comment created time in 2 days
pull request commentamark/gun
fix: salt should not be random #1052
@mmalmi @sirpy I'm fine with the community deciding how these API default. Please review my first comment in https://github.com/amark/gun/issues/1052 about how could lead to accidental rainbow issues, then vote to overrule my reasoning, or I'm happy to answer any other comments about it.
Thank you for the fast responses & PR here 🤩 🤩 🤩 you guys are heroes!!!!
comment created time in 2 days
issue commentamark/gun
SEA.work on safari generated different results for same input
@mmalmi correct, by default it extends (with random salt if not provided) else could lead to a security vulnerability in proof of work if a developer is not checking inputs carefully (they'll be vulnerable to an instant rainbow attack).
If you specify SHA
tho then see @sirpy 's highlight, it goes into the IF and the salt is ignored (not used) and is not random because it never reaches the shim.random(
call. This is safe by default because hashes are used for checksums.
That said, it does look like @i001962 's issue is that Safari is producing proofs of work, given the length (they're long), not hashes (they're short) despite passing SHA
in. By chance can you console.log(SEA.err)
after calling it? So maybe there is an issue with the options deconstructing that doesn't work in Safari? My Safari crashes entirely =>
ES6+ not supported, so I can't test/replicate (need someone to PR a refactor to ES5).
(An aside: dangit, I renamed it to
SEA.work
fromSEA.proof
but now I'm realizing I probably should have kept it as.proof(
because an extension is a proof of work, and a hash is a proof of validity - hmm, unless hashes should actually be part of.verify(
not.proof(
? Tho signature verification uses asymmetry while both PBKDF2 or Argon2 are symmetric hashes that extend just like SHA/md5/etc. are symmetric hashes that shrink to a checksum, so they seem more like the same "category" or "family" of work. GAH! I just said "work", not "proof"... whatever we can discuss this later. Naming is just very important to me.)
comment created time in 2 days
issue openedamark/gun
gun client sends unexpected get for full node
when subscribing to a nested node, a request for the full parent node is made see reproducible example here: https://codepen.io/sirpush/pen/MWbEREG
you can see that on the second .on to the same node, suddenly a third get request appears for full node '#' without '.'
created time in 2 days
issue commentoliver-moran/jimp
@Eriickson yes sure. I passed on this library instead: https://www.npmjs.com/package/sharp
comment created time in 2 days
pull request commentamark/gun
Improvements to automatic redirect on loading SEA module
It is weird that tests in Travis CI passed but tests in GitHub Actions failed... but they seems to run the same npm test
.
I have also passed the tests on my local machine, so may the failed job be fixed with a re-run?
comment created time in 4 days
issue commentamark/gun
Enhancement Request: Give a message when visitors are redirected to HTTPS by SEA module
@amark I have just proposed a PR #1055 to resolve this issue. Please review it when you have time. Thanks!
comment created time in 4 days
PR opened amark/gun
This PR addresses and closes #1041.
Summary of changes:
- Prints a warning message in console when users of SEA module is being automatically redirected to HTTPS;
- Checks if current location falls in the range of loopback IP (
127.0.0.0/8
) and stays HTTP (since it is usually used by developers for testing, same aslocalhost
).
Please let me know if there are anything that is unappropriate and needs improvement.
cc @amark
PS: Personally I think redirecting to HTTPS is not supposed to be performed by GUN as a library (as pointed out in #992), and current automatic redirect should be a workaround only; but other radical changes may lead to many more broken sites so I did not made any further changes.
pr created time in 4 days
issue commentoliver-moran/jimp
Jimp allocates 200 MB memory on reading a 3.3 MB jpg
Hi,
we are running into the same issue. I was not able to reproduce it on a local environment in OSX, however, I can confirm very high memory usage on Heroku.
No further image processing is done after Jimp.read()
Node: v12.3.1 Jimp: v0.6.4
Cheers
Great !!! I used Jimp with version v0.6.4.
then, I can make thumbnail image with 20Mbyte image. Thanks so much
comment created time in 5 days
push eventamark/gun
commit sha e13ce8e4e3d8dafcc5a90b5a7348cc94d9cb9bba
self check not needed?
push time in 5 days
startedjameshaydon/lawvere
started time in 5 days
issue commentamark/gun
@boufni95 sounds like a good test idea! Be cool if we could add it to PANIC tests to automate it.
I'm usually able to squeeze out a few ten thousand writes before JSON parsing / single-threaded nature of JS starts wheezing on me, yeah peer number affects this wildly :/ tho starting last year I've created a new experimental branch in GUN where I implemented a CPU scheduler inside of GUN 🤣 to fix this sort of stuff. So I want to finish that then run your tests. Thanks for reporting!
comment created time in 5 days
issue closedamark/gun
Is there any way to integrate Gun with Koa
I want to start koa js app and gun on same port.
closed time in 5 days
krishnakairiissue commentamark/gun
Is there any way to integrate Gun with Koa
👏 👏 👏 👏 👏 Seems like this got answered. You all ROCK! Gonna close. :)
comment created time in 5 days
issue commentamark/gun
Enhancement Request: Give a message when visitors are redirected to HTTPS by SEA module
@YangHanlin 👍 . Will pull, just let me know when you can! :) Thanks again.
comment created time in 5 days