text:
How to do multiple control transfers elegantly with callback?

Hi, this isn't an "issue" per se, I just wanted to understand what the proper way to port over c usage of the libusb library to js with callback is.
My c code basically does 20 controlTransfers in a loop while incrementing the wValue and wIndex parameters. I'm wondering how to elegantly reproduce this given that node-usb uses callbacks. What I thought of and really want to avoid is something like this:
handle.controlTransfer(bmRequestType, bRequest, wValue, wIndex, data, (err) => {
    if (err) {
        console.log("error occurred");
    } else {
        handle.controlTransfer(bmRequestType, bRequest, wValue+x, wIndex+y, data, (err) => {
            if (err) {
                console.log("error occurred");
            } else {
                // on and on and on....
            }
        });
    }
});

Please advise :^) thank you!

This is more of a general JavaScript question. There are many resources on async control flow patterns in JS progressing from callbacks to promises to async/await. https://zellwk.com/blog/nested-callbacks/ looks like a good place to start.
node-usb has an API that pre-dates promises and async/await, but it's easy to adapt to promises using util.promisify and that's the best way to deal with this in modern JS.

Thank you!

authors: Newbrict kevinmehall

repo: tessel/node-usb


text:
There is no LSTM-based traineddata for 'kur'

BTW, according to Wikipedia there is also a Latin-based Kurdish script.

Now there is kur_ara.traineddata.

source: gharchive/issue

repo: tesseract-ocr/tessdata

license_type: permissive

license_source: github-api


text:
Cannot build from source after PR #1116

Environment

Tesseract Version: 4.00 (cloned now from master)
Leptonica Version: 1.7.8
Commit Number: 7569c899f732829a56da1ed797dc3fc90093406f
Platform: Linux vagrant-ubuntu-trusty-64 3.13.0-125-generic #174-Ubuntu SMP Mon Jul 10 18:51:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Current Behavior:
Cannot build from source from branch master
Expected Behavior:
Should be able to build
Steps to reconstruct:
Run:
git clone --depth 1 https://github.com/tesseract-ocr/tesseract.git
cd /tesseract
./autogen.sh
./configure --enable-debug
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include"
make
make install
make training
Output:
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2 -std=c++11  -L/usr/local/lib -llept    -o unicharset_extractor unicharset_extractor.o libtesseract_tessopt.la  ../api/libtesseract.la  -lpthread
libtool: link: g++ -g -O2 -std=c++11 -o .libs/unicharset_extractor unicharset_extractor.o  -L/usr/local/lib /usr/local/lib/liblept.so ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -lpthread -fopenmp
unicharset_extractor.o: In function tesseract::Main(int, char**)': /tesseract/training/unicharset_extractor.cpp:66: undefined reference to tesseract::ReadFile(std::string const&, bool ()(STRING const&, GenericVector))'
unicharset_extractor.o: In function AddStringsToUnicharset': /tesseract/training/unicharset_extractor.cpp:48: undefined reference to tesseract::NormalizeCleanAndSegmentUTF8(tesseract::UnicodeNormMode, tesseract::OCRNorm, tesseract::GraphemeNormMode, bool, char const*, std::vector<std::string, std::allocatorstd::string >*)'
/tesseract/training/unicharset_extractor.cpp:53: undefined reference to tesseract::IsWhitespace(int)' unicharset_extractor.o: In function tesseract::Main(int, char**)':
/tesseract/training/unicharset_extractor.cpp:81: undefined reference to tesseract::SetupBasicProperties(bool, bool, UNICHARSET*)' unicharset_extractor.o: In function main':
/tesseract/training/unicharset_extractor.cpp:96: undefined reference to tesseract::ParseCommandLineFlags(char const*, int*, char***, bool)' collect2: error: ld returned 1 exit status make[1]: *** [unicharset_extractor] Error 1 make[1]: Leaving directory /tesseract/training'
make: *** [training] Error 2
Suggested Fix:
The rule to make unichar_extractor was changed in the last pull request closed (#1116)

I have made a PR to fix it. https://github.com/tesseract-ocr/tesseract/pull/1118

Fixed in PR #1118

authors: Shreeshrii nimroha

repo: tesseract-ocr/tesseract


text:
Modification of version number access wanted

Currently the build process takes the component version number out of a file named version.py. This file name is a requirement.
But in my opinion it would be better to be more flexible here. For example the Prometheus interface library is a one-file-tool that can also store the version number within itself. It is not nice to have the need to add an additional file only for providing the version number. It would also be a Python file, placed in the same folder and the version is defined in the same way.
This should not make a difference.
My proposal is to introduce a dictionary in the build scripts. Keys are the component names or the repository names. And the key values are the file names in which the version is stored.
This solution would allow us to be more flexible and would prevent us from having the need to add files that are not really required in my opinion.
Reference:
https://github.com/test-fullautomation/robotframework-prometheus/pull/14

Hi Holger,
your requirement is not clear to me.
Let us talk about this.
Thank you,
Thomas

integrated in 0.12.1

authors: HolQue test-fullautomation


text:
Error messages (22)

Previously this code
{
   "param" : {"key" : "${{}"}
}

caused
'Expression '${{}' cannot be evaluated. Reason: A pair of curly brackets is empty or contains not allowed characters.'
With latest changes of the JsonPreprocessor the error message changed to:
'The parameter '${{}' is not available!'
In my opinion we should not allow curly brackets to be part of parameter names (because curly brackets are already part of the syntax). The previous error message is the better one.

Hello Holger,
After implemented pre-check parameter names, the error message in this case is:
Exception: Invalid key name: '{' in ${{}. Key names must not contain these special characters "!#$%^&()=[]{}|;',?`~"
Thank you,
Son

Ready for sprint 0.13.0 [09.08.24](jsonpreprocessor / tsm)

authors: HolQue namsonx


text:
Не подтягиваются значения параметров методов в аннотации Title и Description

Добрый вечер,
Использую связку Junit5, JDK 17, и Selenide.
При указании параметров методов в аннотации, они не подтягиваются
    @Step
    @Title("Проверка появления ошибки {text}")
    @Description("Отобразилась ошибка \"Epic sadface: {text}\"")
    public void checkError(String text) {
        errorCard.shouldBe(visible);
        errorCard.shouldHave(textCaseSensitive("Epic sadface: " + text));
    }

Нашла способ решения данной проблемы

Также если указать аннотацию DisplayName, без Title - название карточки не подгружается из DisplayName.
    @Test
    @DisplayName("Test 3")
    @ExternalId("Test 3")
    public void errorAuth() {
        openBrowser();
        AuthPage authPage = new AuthPage();
        authPage.auth("standard_user", "secret_sauc");
        authPage.checkError("Username...");
    }

Также если указать аннотацию DisplayName, без Title - название карточки не подгружается из DisplayName.

Проверьте импорт для аннотации DisplayName, возможно у вас импортируется аннотация из JUnit - она так же называется.
У меня с этим проблем нет - DisplayName корректно прокидывает название в карточку теста.
А вот объединить аннотации Step и Title в одну, как это сделано в Allure, было бы не плохо.

Добрый день, аннотацию импортирую корректно.

А что насчет передачи параметров методов в аннотации?

authors: AlekseiSuzume MargVolk

repo: testit-tms/adapters-java


text:
Slow startup of script

Need to profile

compas_rrc takes a bit to import.
The solution will be to have a longer lived process, see #22

license: MIT


text:
text: changes string value of externtype "mem" to "memory"

This changes the string value of "mem" to "memory" so that the same
constants currently used for error context can also be used for field
parsing dispatch.

thanks for the look @mathetake !

source: gharchive/pull-request

repo: tetratelabs/wazero


text:
User token with the react-todo example

I am attempting to get the react-todo example running. I realized that it has a hardcoded token. What code do I need to add to get this example to work?
I have the CLI setup and have created account and user keys but I am not sure what to do next.

That example has not yet been updated. We are hoping to get that example back up to date very soon!

Which examples are updated and working? I really want to try out textile but it is a bit confusing getting started.

Yes, we’re a bit behind on the example updates and docs. Trying to get them all updated is taking time. See the readme for this repo for the list of updated examples.

authors: carsonfarmer tatecarson

repo: textileio/js-examples


text:
Fix Ecto repo config in README.md.eex

The info provided was not correct. That would only work after using mix release. With the config set in the config/config.exs it is working in all environments.

Hi @stefanluptak !
Can you provide a little more information about the error you ran into, or even better, provide a sample repo demonstrating the issue? Because I am very confident runtime config should be fine for this since it is only accessed at runtime, and I am and have been using runtime config for it since first writing it.

Hi @tfwright. Now I realized I put that config ... inside the if config_env() == :prod do ... end block and didn't notice that. 🤦🏻 Sorry. I am closing this PR as irrelevant.

No worries! Better wontfix bug reports than no bug reports

authors: stefanluptak tfwright


text:
Buggy syntax error reporting

Environment
Knex version: 0.15.2
Database + version: PostgreSQL 10
OS: macOS 10.14
Bug

I've made a little mistake while was creating database raw request:

database.raw(
    'SELECT DISTINCT ON(tiger_id) tiger_id, created_at, latitude, longitude, id' +
    'FROM images ' +                                     // missed space there ^
    'ORDER BY tiger_id, created_at DESC;'
)

But the error I get when I'm trying to run the query is misleading (while there is only syntax error, it says that column is not present):

error: column "tiger_id" does not exist
    at Connection.parseE (/node_modules/pg/lib/connection.js:553:11)
    at Connection.parseMessage (/node_modules/pg/lib/connection.js:378:19)
    at Socket.<anonymous> (/node_modules/pg/lib/connection.js:119:22)
    at Socket.emit (events.js:182:13)
    at Socket.EventEmitter.emit (domain.js:442:20)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

The images table was created with the following knex migration, so column tiger_id is present:

exports.up = function(knex, Promise) {
    return knex.schema.createTable('images', (table) => {
        table.increments();
        table.string('tiger_id').unsigned().index().references('tiger_id').inTable('tigers').onDelete('CASCADE');
        table.string('name').notNullable();
        table.string('type').notNullable();
        table.string('path').unique().notNullable();
        table.text('description');
        table.float('latitude').notNullable();
        table.float('longitude').notNullable();
        table.timestamp('created_at').defaultTo(knex.fn.now());
    });
};

What happens if you run the same incorrect query directly on the PostgreSQL server?

@ricardograca the same error. So I have to close this issue?
ERROR:  column "tiger_id" does not exist
LINE 1: SELECT DISTINCT ON("tiger_id") tiger_id, created_at, latitud...
                                       ^
SQL state: 42703
Character: 32

Yup, as it is not related to knex, we are just returning whatever driver does.

Yeah, Knex only passes along any errors from the database driver which itself only passes along errors from the database server.

Working as expected. Invalid query throws an error.

authors: elhigu kibertoad nikitalpopov ricardograca

repo: tgriesser/knex


text:
Configuration option to allow override/hook to identifier wrapping code

First part of https://github.com/tgriesser/knex/issues/2084 and https://github.com/tgriesser/knex/issues/929 feature, which allows to write custom identifier wrapper methods.
So effectively you can describe function how each identifier name are treated, like for example id replacement in knex.raw('??', ['MyTable.myCol']) will behave. This is pretty nice feature for ORMs which would like to allow for example different naming scheme for database tables/columns and on javascript side.
Documentation PR is here https://github.com/knex/documentation/pull/51

By "first part", are you referring to the transformation of identifiers with no concept of direction? The code appears to always convert to snake_case, instead of to that or camelCase.

@stevenvachon by the "first part" I mean converting identifiers and with "second part" I mean converting column names of the result rows read from database. Did you check the documentation pull request, which explains what the method does? If you have suggestions how to improve that all the comments are appreciated.

The documentation is in a script file which doesn't make for the clearest to comprehension. As for the snake_case -> camelCase, I was referring to the test file.

As for the snake_case -> camelCase, I was referring to the test file (which instead concatenates).

Yes. That is very much intentional. It just tries that modifying and calling callback actually works.

@wubzz @rhys-vdw @tgriesser @koistya any comments on this one?

I'll still check if I'm able to add info, which part of the identifier is being transformed. Somewhat the same way that @koistya mentioned in issue #2084.

Is there an estimated timeline for when a pull request will be made to the main knex repo for the last half of this feature? In other words, when will the full implementation be available for use?

@sdwrage do you mean when this one is released or if there is going to be also hook for modifying column names read from database? Anyway, both features will be released in next release knex 0.14.0 hopefully next month. There are some other PRs still which I would like to get merged before it.

@elhigu both and thank you for the answer :)

authors: elhigu sdwrage stevenvachon


text:
🛑 DDoS-Relay EU-C-fra1-03 is down

In 98dcbe4, DDoS-Relay EU-C-fra1-03 (http://164.92.194.66:42069/;csv) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DDoS-Relay EU-C-fra1-03 is back up in 5205178 after 12 minutes.

repo: tgstation-operations/status


text:
Some strings in the Spanish translation are wrong

It looks like you were using automatic translators, because some new strings (e.g. love track, copy track) are awful to read in the Spanish translation. I guess your original translator did his work only in older versions of the app and you had no choice as you released updates.
I understand that localization can be an ongoing issue in any app, so I'm willing to help if needed.

Ahem, just realized this is github, made a pull request

repo: tgwizard/sls

license_source: bigquery


text:
Allow isomorphic use

#8

Looks great. :+1:
Please squash those commit into one and I'll will merge asap

@corbifex could you squash those commits ?

Thanks. Published this as 3.0.0

license: mit


text:
Compact: Attempts to set retention result in "bucket with type  is not supported"

Hi all,
What happened:
We are trying to set retention limits on Thanos Compact with the following:
/opt/thanos/0.29.0/thanos compact --retention.resolution-1h=365d --retention.resolution-raw=365d --retention.resolution-5m=365d
What you expected to happen:
Expected retention to set to keep files for 1 year max. I could not find any requirements in documentation for retention, so I'm at a loss as to why this isn't working.
Full logs to relevant components:
However it does not seem to be working and we're receiving the following error:
level=info ts=2023-01-23T05:20:18.305969012Z caller=factory.go:52 msg="loading bucket configuration" level=error ts=2023-01-23T05:20:18.306412051Z caller=main.go:135 err="bucket with type  is not supported\ngithub.com/thanos-io/objstore/client.NewBucket\n\t/go/pkg/mod/github.com/thanos-io/objstore@v0.0.0-20221006135717-79dcec7fe604/client/factory.go:84\nmain.runCompact\n\t/app/cmd/thanos/compact.go:205\nmain.registerCompact.func1\n\t/app/cmd/thanos/compact.go:94\nmain.main\n\t/app/cmd/thanos/main.go:133\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594\npreparing compact command failed\nmain.main\n\t/app/cmd/thanos/main.go:135\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"
Object Storage Provider:
I have the following thanos-objstore.yaml config:
type: S3 config:   bucket: "test-thanos"   endpoint: "s3.us-west-2.amazonaws.com"   insecure: false   signature_version2: false   put_user_metadata:     "X-Amz-Acl": "bucket-owner-full-control"   http_config:     idle_conn_timeout: 0s
Environment:

Reproduced issue on Thanos version 0.23.1 and 0.29.0
Ubuntu 20.04 LTS
Linux ip-10-208-9-70 5.15.0-1023-aws #27~20.04.1-Ubuntu SMP Wed Oct 26 20:02:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

How did you specify the config file for compactor? I don't think it is a bug, seems like an issue in your configuration file or how you passed the config file

How did you specify the config file for compactor? I don't think it is a bug, seems like an issue in your configuration file or how you passed the config file

Compact configuration is supplied under Object Storage Provider. Apologies, formatting isn't great.

repo: thanos-io/thanos


text:
Cherry-pick from master: Fix parseStep bug introduced in PR #3740 (#3887)

Fix bug introduced in PR #3740

Signed-off-by: Hitanshu Mehta hitanshu99amehta@gmail.com

Minor change in test

Signed-off-by: Hitanshu Mehta hitanshu99amehta@gmail.com
Cherry picked: https://github.com/thanos-io/thanos/pull/3887

🚀

authors: bwplotka squat


text:
Req advanced tuts for Pivot table

Laravel Version: 5.3.*
Voyager Version: 0.11.1
PHP Version:
Database Driver & Version:

Description:
I want to request advanced tutorial how to make pivot table like this #616
I try to made, unfortunately always getting error.
Please advise.
Thank you.

Steps To Reproduce:

/ping @thedevdojo.

I am also trying to implement this and are getting the same errors. Since I was not able to pinpoint the problem, I am in need of a guide to accomplish this.  It would be greatly appreciated!

More tutorials are in the works.  Closing this.

Trying to do the same, has this tutorial been released?

@mfprogrammer that's a question better asked on slack. This has been closed for 5 months

repo: the-control-group/voyager


text:
Update VoyagerBaseController.php

Fixes #4406 see explanation in https://github.com/the-control-group/voyager/issues/4406#issuecomment-533507546

Closing in favor of https://github.com/the-control-group/voyager/pull/4442

authors: emptynick voxlunch


text:
Keras reports a warning in the "generative_adversarial_network" notebook and it fails to train.

When running "generative_adversarial_network" notebook on the "apple" dataset (downloaded from Google cloud and renamed apple.npy to match the path in the notebook), I see this warning:
/opt/conda/lib/python3.6/site-packages/keras/engine/training.py:478: UserWarning: Discrepancy between trainable weights and collected trainable weights, did you set `model.trainable` without calling `model.compile` after ?
  'Discrepancy between trainable weights and collected trainable'

and the network fails to train as these two images show:

So, trying to get rid of the warning I added the following code:
discriminator.compile(loss='binary_crossentropy',
                      optimizer=RMSprop(lr=0.0008,
                                        decay=6e-8,
                                        clipvalue=1.0),
                      metrics=['accuracy'])

right after
discriminator.trainable = False

(which was in cell 18) but that just made the network learn making very sharp noise:

So it seemed that generator was learning, but discriminator was not, which was not surprising because we had never turned the trainable parameter back on again!
I then tried to introduce the toggle inside the loop in the train function, so that it would set discriminator.trainable = true, recompile discriminator, train it, and then set discriminator.trainable = false and again recompile discriminator. But that process leads to unbounded memory growth, and the kernel crashes around the 150th iteration (I gave Docker 14 GB), so I was never able to see if there was any change between 99th and 199th steps.

Ok, so the idea with the "toggle" was apparently off the mark. I misunderstood the architecture and how it operates.
Trainability should only be turned off once and before compiling, but I think it needs to apply to the instance of discriminator within the "stacked" adversarial network, and not to the "main" discriminator:

This avoids the warning, and the network trains fine, but only sometimes! I found that run after run do not produce consistent results, even with exactly same hyper parameters. Obviously there's a random element in the "noise", but here's what I found:

if the images at the 100th epoch are mostly black, the network will train and produce some apple-like results

but if the images at the 100th epoch are mostly gray (looking like asteroid surface), the network will not train and produce similar images throughout all epochs.

Ah yeah. This is an annoying one. The Keras warning is trying to be helpful because in most cases you wouldn't want to use model weights that haven't been compiled. In a GAN, however, that's precisely what we'd like to do! Check out here or here for more detailed explanations. In older versions of Keras, this warning didn't exist, hence why you don't see any warnings output in my demo GAN notebook.
I'm surprised to hear that the model can train properly if you comment out discriminator.trainable = False and set pred.trainable = False instead: pred isn't a model object, it's a tensor of predicted values. Thus, setting pred.trainable = False should only add a new attribute (trainable) to the pred tensor and have no impact on the discriminator model's weights.
Now, it's time for me to surprise you: @grantbey and I have, over the years, determined empirically that training GANs on CPUs only or on CPUs with a TPU rarely (if ever) leads to the GAN producing the desired output (apples, in this case), instead producing noise (that you aptly described as an asteroid surface). Training GANs on CPUs with a _G_PU, however, reliably produces the desired output (e.g., apples) the majority of the time (in a minority of trials even GPUs produce asteroid surface-y noise). Someday, I'd like to write a detailed blog post about this bizarre phenomenon. It doesn't make any sense because matrix algebra and other computations should be mathematically identical regardless of the device they're computed on.
I'm going to close this issue, but I'm also going to ASAP add a couple of notes to the GAN Jupyter notebook:

That the warning can be safely ignored.
Instructions for running this code in the Google Colab environment, which provides free access to high-performance GPUs.

Hey @tromgy -- if you'd like to send me an email at jon@untapt.com with your name and shipping address, I'd like to see if I can get Pearson to ship you a physical copy of Deep Learning Illustrated as thanks for the tremendous help you've been on ironing out these code issues.

Actually... if you're able to do that today @tromgy , there might still be time for me to add your name to the Acknowledgements section at the start of the book 😃

Sure, I'll be flattered :)
Alex Lipatov
72 Eddy Rd
Eagle Bridge, NY 12057.

Thanks for the detailed explanation @jonkrohn
What I found reliably worked on my CPU-only setup are extremely small dataset and correspondingly small batch size:

makes it train quickly, too! I also tested on the "cars" dataset and it worked there as well.

Oh wow that is super interesting... what happens with the full dataset but still a very small batch size like 5? The potential issue with the small data set is that there isn't a rich set of examples that the generator can use to learn how to produce detailed, diverse images with.

Using full dataset even with a small batch still produces gray images all the way through. So I think it might be the opposite -- the more variation in the set, the harder it is for the network to learn. At least with these doodles this seems to be the case.

Yeah that makes sense... except I still don't understand why the results of any computation would be different on a CPU relative to a GPU... From everything that I know, the results should be identical on a CPU-only machine except that it should take longer to produce those results 😕

Ok, my friend @tromgy -- I've pushed an updated GAN notebook. If you get a chance, please check out the notes I added.

authors: jonkrohn tromgy


text:
Add ability to register and sign-in via email magic links

This PR adds a registration and sign-in mechanism via email and magic links.
Closes #469.
It uses JWT to generate magic links that expire after 1-use/24 hours that are sent to the requested email via an SMTP server (using Flask-Mail). If an account with that email does not exist, it creates the account, otherwise the magic link works for sign-in only.
There is still something slightly broken about getting the page to refresh after authenticating -- hopefully this can be resolved soon.
NB: magic links currently persist forever without being cleaned up, even if they have expired after 24 hours. We should either add a process that cleans them up, or have a way of checking whether it is a true user logging in or a link checking bot.
Related outstanding to-do: with link checkers in place, accounts are erroneously considered verified straight after the email is sent. We need a way to detect whether it is a real request. One option I have seen is to create a dummy JS form that the magic link responds to, and verification occurs only after that form has been automatically submitted by a browser.

Okay, going to merge this part of the PR (sans UI) now and debug the test failures elsewhere

repo: the-grey-group/datalab


text:
ReferenceError: Audio is not defined

I am getting this error in Next.js
⨯ node_modules\react-material-music-player\dist\redux\types.js (96:26) @ Audio
 ⨯ ReferenceError: Audio is not defined
    at __webpack_require__ (E:\Documents\music-player\.next\server\webpack-runtime.js:33:43)
    at __webpack_require__ (E:\Documents\music-player\.next\server\webpack-runtime.js:33:43)
    at __webpack_require__ (E:\Documents\music-player\.next\server\webpack-runtime.js:33:43)
    at __webpack_require__ (E:\Documents\music-player\.next\server\webpack-runtime.js:33:43)
    at __webpack_require__ (E:\Documents\music-player\.next\server\webpack-runtime.js:33:43)
    at eval (./app/_components/Player.tsx:12:85)
    at (ssr)/./app/_components/Player.tsx (E:\Documents\music-player\.next\server\app\page.js:172:1)
    at __webpack_require__ (E:\Documents\music-player\.next\server\webpack-runtime.js:33:43)
null

Next JS v14

It seems you are trying to render server side? Audio/HTMLAudioElement objects are not defined in node engine.

Yes. This solved the issue
if (typeof window !== "undefined") {
        const { PlayerInterface, Track } = await import(
          "react-material-music-player"
        );
}

authors: fathah the-maazu

repo: the-maazu/react-material-music-player


text:
Mobile version "Download Section"

Hello,
Congrats! Nice work!
Just fyi, the mobile version (safari), its a bit difficult to navigate after clicking download. Column headers sometimes not visible covered by sites top banner, column size sometimes hides the info and sometimes scrolling on the list scrolls the background site and not the list. (Sorry for my English)
Thank you!

ye that make sense

repo: the-rarbg/yaps


text:
Addition of a "friendly" display name for Monitors

Hi,
First PR for this from me, more than happy if you deem it unnecessary and reject it since it's all for an issue I personally have.
I've added the ability for a user to assigned "friendly names" to the monitors listed for them.
I have a problem where I have two identical monitors, that show up with the exact same name in the drop-down menu.

My modification includes an editable cell in the preferences view where a user can specify a more meaningful name ("Left Screen" and "Right Screen" for example")

These names are stored in preferences and then propagated through the UI.

A couple of things that are probably worth noting:

The added logic in the DispayPrefsViewController increased the cyclomatic complexity of the tableView function to > 12 which triggers a linting warning. I didn't want to go disassembling things in there too much in case you rejected the entire pull request.
I haven't provided any localized strings for German/French. Happy to roll them in either part of the acceptance of this PR, or in a future PR.

It's been quite a while since I've done Prod level macOS development, so please feel free to critique anything you feel I need to address.

LGTM 👍 , we just need to update the translations and we'll merge


text:
Input transparency

Is it possible to have input transparent backdrop with this?

Hi,
Setting IsModal to false will show a sheet with no backdrop on Android, the page behind the sheet can be interacted with. This follows the standard and modal behaviour of a Material3 BottomSheet
On iOS, we are bound to the rules of the uisheetpresentationcontroller, so I am unsure this is possible

I won't have rename IsModal to HasBackdrop. I just searched 10mn on how to make this dialog modal, as with the default value it is not, and trying to dismiss it using an android or ios integrated gesture (swipe left or swipe down) does not dismiss it. And also you can interact with the controls outside of the dialog, which is not expected by default.

authors: kissgyula paulvarache softlion


text:
Alpine hex colour is given as nonetype object

All other cars are fine and give the correct hex colour, however alpine always seems to be classified as a none type object which causes problems later on. Anybody know of a fix to this?
Thanks

If you're using the plotting.team_color function then you are likely providing an invalid team name or identifier.
For Alpine it should be "APN" or "Alpine F1 Team"

Interesting, thanks.
 plotting.team_color('Alpine F1 Team') works and gives the correct hex,  however when I do plotting.team_color('Alpine') I get a none type object.
This is a problem for me because I am using laps.pick_driver(driver).pick_fastest()['Team'] to give me the name of the team of each drivers fastest lap, then I am using fastf1.plotting.team_color(laps.pick_driver(driver).pick_fastest()['Team']) to give me the colour of that team. But for Alpine's drivers it returns the name Alpine instead of Alpine F1 Team which means that I get a none type object instead of a hex.
Any idea what I could change for this?

I need to look into this. There was issue #34 just some time ago which was about changing the team name from "Alpine" to "Alpine F1 Team". And now we need to change it back? Some is not right there.

Thanks for taking a look, it seems that there may be some inconsistencies somewhere

authors: theOehrly theOllieS


text:
Development : v1.2.0

Features

Transitive dependency support (#83)
Improve platform detection algorithm
Misc bug fixes

Closing due to technical limitation on implementing transitive dependency


text:
There is a problem with the text selection function

There is a problem with the text selection function：

Cannot drag to expand the selection
There is no mouse action, such as using the mouse to click somewhere and then swipe to select the text at the swipe
When the animation cursor is in the front position, hold down the shift key and click on the end of the line. This range cannot be selected

same problem

Consider switching to Runestone editor mode:

worked

Is it possible to drag a selection without switching editors? Switching editors to drag a selection is cumbersome

No fix for the Monaco editor?

I also still have the same problem, but it works perfectly in Runestone. I'm also unable to open the Edit Menu for the selected word.
Platform: iPhone 12
OS: iOS 18.1
In Monaco:

In Runestone:

authors: RonghuaHe TheFirstRandom Zhou-Shilin bummoblizard mr-manuel

repo: thebaselab/codeapp


text:
Implement TOC in javascript

If elements are added to the TOC using javascript, then we can loop over posts ONCE rather than loop over posts for every section.
This would also enable us to add "un-categorized" posts into a default "chapter".

Rewrote this so we still loop over categories and such but it does so using unique data-slug attributes with each post's URL. Should be more mutable if we need it to be...

repo: thedesignoffice/babybindery


text:
MQTT via WebSokect secure cannot works well

I tried with MQTTS and MQTT via ws, it works well with PsychicMqttClient. However, as secure issue, my live server only support MQTT vi wss. I tried different ways with PsychicMqttClient, but it always report SSL issue (with same SSL works well with MQTTS). please see below logs:
[  5377][I][main.cpp:121] setup(): Client Successfully connected to server!
[  6385][I][main.cpp:165] setup(): start MQTT Connect...
[  6392][I][[0t]m
ther event id:7
E (6626) esp-tls-mbedtls: No server verification option set in esp_tls_cfg_t structure. Check esp_tls API reference
E (6626) esp-tls-mbedtls: Failed to set client configurations, returned [0x8017] (ESP_ERR_MBEDTLS_SSL_SETUP_FAILED)
E (6636) esp-tls: create_ssl_handle failed
E (6639) esp-tls: Failed to open new connection
E (6643) TRANSPORT_BASE: Failed to open a new connection
E (6650) TRANSPORT_WS: Error connecting to host test.mosquitto.org:8091
E (6655) MQTT_CLIENT: Error transport connect
[  6841][I][PsychicMqttClient.cpp:528] _onError(): [PsychicMqttClient] MQTT_EVENT_ERROR
[  6861][E][PsychicMqttClient.cpp:9] log_error_if_nonzero(): [PsychicMqttClient] Last error reported from esp-tls: 0x8017
[  6872][I][PsychicMqttClient.cpp:534] _onError(): [PsychicMqttClient] Last errno string (Success)
[  6882][I][PsychicMqttClient.cpp:410] _onDisconnect(): [PsychicMqttClient] MQTT_EVENT_DISCONNECTED

Can you please share how you include the certificates? It seems to fail at the authentication step. Which version of the ESP-IDF you are using?
You can check the docs whether the mqtt_config struct has some settings that could help with your problem. With getMqttConfig() you can access and modify it.

Thank you very much @theelims, I tried again and use the crt bundle and follow the example SSL_CA_Bundle_WiFiClientSecure, it works well now. Now it works well with MQTT via wss!!! Thank you again!

authors: renkun theelims

repo: theelims/PsychicMqttClient


text:
Make channel ends splittable

Depends on #233
Motivation
We have often had a need for a channel where the sending and receiving ends are separate. Often an API will want to expose the sending end but keep the receiving end private, or vice versa.
Approach
A very minimal solution where we add a property called receive which only returns the subscribable. This allows us then to do this:
let { send, receive } = createChannel();

Giving us a very simple way of splitting the ends.
Alternate Designs
We could add a separate thing for this e.g. splitChannel. We could also always split the ends like this:
let [send, receive] = createChannel();

But this solution feels both more general and more flexible.
Possible Drawbacks or Risks
None

We can actually have both:
let channel = {
  send: new Object(),
  receive: new Object(),
  [Symbol.iterator]() { return [this.send,this.receive][Symbol.iterator]() }
}

let { send, receive } = channel;
let [send2, receive2] = channel;
send === send2 //=> true
receive === receive2 //=> true

This is a pretty common pattern that you see in the builtin  Map entries as both:
for (let { key, value } of map.entries()) {};

and
for (let [key,value] of map.entries()) {}

both work.
Also, I think that there are some advantages to using the array destructuring in the sense that you can name your channel different things without having to do cumbersome aliasing. Let's say that I want to call the broadcast portion of the channel clientMessages. We have to jump through some special hoops to re-alias if we have to do record destructuring:
let { send, receive: clientMessages } = createChannel();

vs
let [send, clientMessages] = createChannel();

The browser MessageChannel api uses this convention which is why you see:
let [input, output] = MessageChannel();

More often than
let {port1: input, port2: output} = MessageChannel();

I realized that there is a big problem with this. Unfortunately, all of the array methods follow along with the array, so we end up with a whole bunch of array methods on the channel itself.

This is especially confusing since some methods, like forEach and map actually exist on both.
Destructuring seems to only require Iterable rather than being an array, but as we saw today, the iterable protocol cannot be typed correctly.
Unfortunately this means that we cannot type this correctly in TypeScript, which leads me to think that we shouldn't provide an array split at all.

Well that sucks, but I concur. Were it not for the close() method, I think I would come down on the side of array splitting as the way to go, and let those apis that needed to "restructure" channels. But since we do have the concept of closing a channel, it means we need more interface than just Function and Subscribable
Other alternatives that occur to me are:
let [{send, close}, receiver] = createChannel<string>();

Or, we could put the close() function on send() function:
let [send, receiver] = createChannel<string>();

As an aside, it turns out that we are already using the "signal" case of no-arg channel publication for tracking file changes. Currently we just use Channel<void> https://github.com/thefrontside/bigtest/blob/v0/packages/server/src/manifest-generator.ts#L80
I think it's fine to be forced to explicitly mark this however with the void type param however.

What I like about destructuring as records is that it allows the flexibility to do all of:
let myChannel = createChannel();
let { send, receive } = createChannel();
let { send: mySend, receive: myReceive } = createChannel();
let { send, receive, close } = createChannel();

Whereas some of these are not as easy to express with the array form.

@cowboyd I updated this to use the new Stream naming and removed the array splitting so it becomes:
let { send, stream } = createChannel()

IMO this is much better than receiver and makes the record based API a little less awkward. It resolves the naming weakness of the record API while also preserving the following advantages:

Ability to keep the channel "together" when used internally.
A more natural API for close
Less awkward when used as a duplex channel/pipe since it doesn't require double array destructuring

The downside still remains that in many cases we want to encourage people to split the channel and to only hand out the stream ene.

authors: cowboyd jnicklas

repo: thefrontside/effection


text:
🛑 dynamiteevents.co.uk/ is down

In 3c9e823, dynamiteevents.co.uk/ (https://dynamiteevents.co.uk/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: dynamiteevents.co.uk/ is back up in 29bf9f2.

repo: thegreatgulper/checksitestatus


text:
Switch out cloud build in favour of travis

Travis is nice and easy to set up and much easier to make build status public.

Done.

authors: arendjantetteroo mrchrisadams


text:
[build] yarn examples:watch builds forever

I have no idea how to tackle this.

Cleaning the repo worked :-(

repo: theia-ide/sprotty


text:
YouTube video: how to open traces

Create a YouTube video for the Trace Compass channel about how to open traces in Theia Trace Extension.

Video uploaded to the Trace Compass YouTube channel.

repo: theia-ide/theia-trace-extension


text:
Supporting mountebank running on different base URLs

I know this is an backward incompatible proposal. Because Client does no longer have static methods.
However we need support for mountebank running on non-standard base urls.
I hope you will support non standard base urls one way or the other.

Did you have some time to look at this?

Hey, sorry for the delayed response. I have had a look at it, and I think your changes are totally reasonable. I only really had the client class be static because I tend to default my classes (and methods even) to static until I find a need for them to have state. The incompatibility could be problematic, but at this point I don't think there are enough users of this library that it's that big of a problem. I will probably at least bump the version up to 0.4 and do a new release to the central repository.
Speaking of which, are you using the library stored in the central repository? I haven't actually advertised it, so I'm curious if people have happened upon it.

authors: jarl-dk thejamesthomas

repo: thejamesthomas/javabank


text:
[Docs] Update more features to readme

Current State:
Desired State:

@thekavikumar  Please assign this issue to me

repo: thekavikumar/love-simple-ui


text:
License

[x] Enable license toggle in Article editor
[x] Make license setup as revision count
[x] Embedded in IPFS content
[x] Solution to published article
[x] ~JS blocker~

Solution confirmed. Break it into issues.

repo: thematters/matters-web


text:
[Feature Request] Add support for temp/test dbs with @neo4j-labs/temp-dbs

Testing with neo4j as we all know leaves much to be desired but it would be nice if we could spawn test dbs so that integration tests that include the database would be possible. For reference, this lib makes it possible already but the design choices made by the devs of the lib make it hard to integrate the lib with neogma without reaching into neogma source and tweaking some things.

Thanks for your contribution! Released at v1.13.0

authors: AndySakov themetalfleece

repo: themetalfleece/neogma


text:
Change post URL to be more industry-standard

Example Reddit post URL: https://www.reddit.com/r/cats/comments/m1tgc2/cat_bonks_owner_for_attention/
Example QCVault post URL: https://localhost:44324/Post?title=How to take the headache out of catnip
What I'd like is:
https://localhost:44324/post/how_to_take_the_headache_out_of_catnip
The second part of the post can be derived entirely from the title; it's basically just tolower, strip non-alphanumeric-and-spaces, replace spaces with _. I don't know how the routing works but I assume there's some way to make it work.

Will look into how net core handles routing and see what we can do. Else, I will have to route the value in the format you want it to be then make sure to deformat it when inside the GET Request but then we will have to make sure the title never contains _.

There's definitely some way to do this, it's a pretty standard feature.

(not quite done, tinker with some of the formatting)

authors: Akamitori zorbathut

repo: themotte/qcvault


text:
Timesheet - 21/04/2021 - TristanS

Task 1
Negotiated about creating gif for social media and submitted github request. Consulted with Chrisha on payment. Also sent messages to community member about ticker and hashtag and then created github issue a community competition. Sent messages to other community members about other social media campaigns and a hackathon.
Proof of Work
https://github.com/thenewboston-developers/Contributor-Payments/issues/247
https://github.com/thenewboston-developers/Contributor-Payments/issues/261
Time Spent
1 hour

Task 2
Edited hiring docs
Proof of Work
https://www.canva.com/design/DAEcWSAG_14/kZWOEz98sdRTwFqTG4JMQA/edit
Time Spent
0.5 hours

Task 3
Created 5th video for crypto series and edited 4th video. Putting these both in one task because video 5 was so easy it doesn't justify 0.5 hours
Proof of Work
https://docs.google.com/presentation/d/1UJJX7LjhywUJ9KHYdA-Z6hMLz4UXzaJhB5pNlxpT_HM/edit#slide=id.p
https://docs.google.com/presentation/d/14Hyma10lJzGJWLYtmUz1PfZADLD66y2xlRM3hDa7Rjo/edit#slide=id.gd31424a234_0_27
Time Spent
1 hours

Total Time Spent
2.5 hours
Account Number
6d4e7ec412472b5cfabb234555bc37f9a5a1a75a4926f9fee2a54d3e070f4b3f

Approved

Approved

authors: itsnikhil manishram tspearing


text:
kkc のテストがコケる

CircleCI#80

theoldmoon0602/shellgeibot:20190618

# kkc help
Usage:
  kkc help コマンド

コマンド:
  help         この情報を表示
  decoder      decoder を起動
  context      context を起動

  "kkc COMMAND --help" で各コマンドのヘルプが得られます。

latest

# kkc help
Usage:
  kkc help COMMAND

Commands:
  help         Shows this information
  decoder      Run decoder
  context      Run context

  Use "kkc COMMAND --help" to get help on each command.

help の出力が日本語から英語になってる

パッケージ差分

13c13
< ii  apt                                 1.8.0                          amd64        commandline package manager
---
> ii  apt                                 1.8.1                          amd64        commandline package manager
19c19
< ii  bash                                5.0-3ubuntu1                   amd64        GNU Bourne Again SHell
---
> ii  bash                                5.0-3ubuntu1.1                 amd64        GNU Bourne Again SHell
36,38c36,38
< ii  chromium-browser                    74.0.3729.169-0ubuntu0.19.04.1 amd64        Chromium web browser, open-source version of Chrome
< ii  chromium-chromedriver               74.0.3729.169-0ubuntu0.19.04.1 amd64        WebDriver driver for the Chromium Browser
< ii  chromium-codecs-ffmpeg-extra        74.0.3729.169-0ubuntu0.19.04.1 amd64        Extra ffmpeg codecs for the Chromium Browser
---
> ii  chromium-browser                    75.0.3770.90-0ubuntu0.19.04.1  amd64        Chromium web browser, open-source version of Chrome
> ii  chromium-chromedriver               75.0.3770.90-0ubuntu0.19.04.1  amd64        WebDriver driver for the Chromium Browser
> ii  chromium-codecs-ffmpeg-extra        75.0.3770.90-0ubuntu0.19.04.1  amd64        Extra ffmpeg codecs for the Chromium Browser
53c53
< ii  debconf                             1.5.71                         all          Debian configuration management system
---
> ii  debconf                             1.5.71ubuntu1                  all          Debian configuration management system
156c156
< ii  libapt-pkg5.0:amd64                 1.8.0                          amd64        package management runtime library
---
> ii  libapt-pkg5.0:amd64                 1.8.1                          amd64        package management runtime library
225c225
< ii  libdb5.3:amd64                      5.3.28+dfsg1-0.5               amd64        Berkeley v5.3 Database Libraries [runtime]
---
> ii  libdb5.3:amd64                      5.3.28+dfsg1-0.5ubuntu0.1      amd64        Berkeley v5.3 Database Libraries [runtime]
337c337
< ii  libgnutls30:amd64                   3.6.5-2ubuntu1                 amd64        GNU TLS library - main runtime library
---
> ii  libgnutls30:amd64                   3.6.5-2ubuntu1.1               amd64        GNU TLS library - main runtime library
541c541
< ii  libseccomp2:amd64                   2.3.3-3ubuntu2                 amd64        high level interface to Linux seccomp filter
---
> ii  libseccomp2:amd64                   2.4.1-0ubuntu0.19.04.3         amd64        high level interface to Linux seccomp filter
597c597
< ii  libudev1:amd64                      240-6ubuntu5                   amd64        libudev shared library
---
> ii  libudev1:amd64                      240-6ubuntu5.1                 amd64        libudev shared library

libkkc-utils や language-pack-ja は変わってなさそうだが...よくわからん

#21


text:
Tag the 0.13 release

Can we either tag a 0.13 release or/and utilize the milestones?

Yes a 0.13 will be done soon but please stop asking, this is a duplicate of multiple other requests.

authors: andreygrehov philsturgeon

repo: thephpleague/fractal


text:
Transform on only passed data

Hello,
I have an issue on transforming 2 different type of data.
I have a Transformer for a User array that contains user info.
when i fetch all of the users info and pass it to my transformer it will transform it correctly.
Now i want, when i fetch for example only id & username & pass it to the same transformer  i get an error on undefined array indexes. i dont want to change my transformer to check if that index is exist or create another transformer because its impossible.
Any solution or fix?

Can you provide some code examples please?

@Art4 sure why not.
i have a controller like this that its job to show a user details
public function show(Request $request, $id)
    {
        // Try to find requested user
        $user = User::nFind($id);

        // Throw an error if user not found
        if( ! $user)
            return $this->jsonMessage('User not found.', 404);

        // If user requested for specific user info only return them, nothing more
        if($request->has('only'))
            $user = array_only($user, convert_string_to_array($request->only));

        // Show full user info
        return \Fractal::create()->item($user, new UserTransformer)->toArray();
    }

and here is my transformer
public function transform($user)
    {
        return [
            // Basic info
            'id' => $user['id'],
            'name' => $user['name'],
            'email' => $user['email'],
            'username' => $user['username'],

            // Profile
            'birthday' => $user['birthday'],
            'birthplace' => $user['birthplace'],
            'gender' => $user['gender'],
            'description' => $user['description'],

            'created_at' => $user['created_at'],
            'updated_at' => $user['updated_at'],
        ];
    }

Fractal will let you scope the fields (which happens after the transform), this would probably be the recommended way to handle your situation although it'll have to be a little hacked in because the laravel-fractal library doesn't directly support it yet.
You could alternatively run your array_only on the return from fractal instead of trying to do it afterward. This is probably the most straight forward way to do this right now.
public function show(Request $request, $id)
    {
        // Try to find requested user
        $user = User::nFind($id);

        // Throw an error if user not found
        if( ! $user)
            return $this->jsonMessage('User not found.', 404);

        // Transform all the data
        $response = \Fractal::create()->item($user, new UserTransformer)->toArray();

        // If user requested for specific user info only return them, nothing more
        if($request->has('only'))
            $response = array_only($response, convert_string_to_array($request->only));

        // Show full user info
        return $response;
    }

What version of PHP are you using? If you're on PHP 7, I would suggest null coalesce operator. Otherwise there's really no way around that.

@Indemnity83 thanks for your reply. actually the problem occur inside of the fractal transformer. because it wants to transform some data that are not passed to it.
I think this should handle inside of the fractal on transforming level. for example something like this condition: if the variable that you want to transform is set then go for it.
You solution is outside of the fractal level.
Any other solution? Thanks

@greydnls I am using php 7.1. Can you describe what do you mean? thanks anyway

public function transform($user)
    {
        return [
            'id' => $user['id'],
            'name' => $user['name'] ?? '',
            'email' => $user['email'] ?? '',
            'username' => $user['username'],
            'birthday' => $user['birthday'] ?? '',
            'birthplace' => $user['birthplace'] ?? '',
            'gender' => $user['gender'] ?? '',
            'description' => $user['description'] ?? '',
            'created_at' => $user['created_at'] ?? '',
            'updated_at' => $user['updated_at'] ?? '',
        ];
    }


text:
'Macro_InvokeRules_MatchPattern - No arm matched' error in mrustc

Code
$ cat 2.rs
code:
macro_rules! cbor_map {
    ($key:expr) => {
        $key.signum();
    };
}

fn main() {
    cbor_map! {
        #[cfg(test)]
        8
    };
}

It seems that the macro expansion failed to match any arms in the cbor_map! macro definition.
Command
mrustc -L output-1.54.0 2.rs
Output
Setup: V V V
(0.00 s) Setup: DONE
Target Load: V V V
(0.00 s) Target Load: DONE
Parse: V V V
(0.00 s) Parse: DONE
LoadCrates: V V V
(0.39 s) LoadCrates: DONE
Expand: V V V
/home/interesting/mrustc/2.rs:11:7 BUG:src/macro_rules/eval.cpp:1920: TODO: Macro_InvokeRules_MatchPattern - No arm matched - (0, 21)
Aborted (core dumped)

Version
I build the mrustc by using build-1.54.0.sh
mrustc --version
rustc 1.29.100 (mrustc v0.10.0 master:4c7e8171)
release: 1.29.100
- Build time: Tue, 26 Sep 2023 07:36:21 +0000
- Commit: 4c7e81716493678df9fe9cac86ea9beedc57db44

If rustc accepts that code, then it's a mrustc bug and will be addressed next time I do a push to clean up tickets.

Invalid: Rustc does not accept that code
tpg@gaige$ rustc samples/test/issue-mrustc-321.rs
error: removing an expression is not supported in this position
 --> samples/test/issue-mrustc-321.rs:9:9
  |
9 |         #[cfg(test)]
  |         ^^^^^^^^^^^^

error: aborting due to 1 previous error

Current mrustc provides a slghtly better error:
MACRO<::""::cbor_map> error:0:#[cfg] not allowed in this position
samples/test/issue-mrustc-321.rs:11:7: note: From here

authors: iamanonymouscs thepowersgang

repo: thepowersgang/mrustc


text:
Propose to use CamelCase for SpiInterface structure

I'd like to propose that we name the SPI interface structure SpiInterface other than SPIInterface, for that:

in embedded-hal, Spi in SpiDevice and SpiBus are spelled in CamelCase, we can follow this convention to be consistent,
in rust-lang Rust API guideline, it suggest that types are named in UpperCamelCase, with following descriptions:

In UpperCamelCase, acronyms and contractions of compound words count as one word: use Uuid rather than UUID, Usize rather than USize or Stdin rather than StdIn. In snake_case, acronyms and contractions are lower-cased: is_xid_start.

... in this case, SPI can be treated as an acronym, it counts as one word, so only the first 'S' should be upper cased.
r? @bugadani

Thanks! Would you please update the other crates too, for consistency?

@bugadani : I've pushed one commit (squashed) to include SpiInterface, I2cInterface and PGpioXBitInterface structures. r?

Thanks!

repo: therealprof/display-interface


text:
[Snyk] Security upgrade eslint from 8.56.0 to 9.0.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json

⚠ Warning
Failed to update the package-lock.json, please update manually before merging.

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

631/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 6.2
Missing Release of Resource after Effective Lifetime SNYK-JS-INFLIGHT-6095116
Yes
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Commit messages

Package name: eslint
    The new version differs by 231 commits.

e0cbc50 9.0.0
75cb5f4 Build: changelog update for 9.0.0
19f9a89 chore: Update dependencies for v9.0.0 (#18275)
7c957f2 chore: package.json update for @ eslint/js release
d73a33c chore: ignore `/docs/v8.x` in link checker (#18274)
d54a412 feat: Add --inspect-config CLI flag (#18270)
e151050 docs: update get-started to the new `@ eslint/create-config` (#18217)
610c148 fix: Support `using` declarations in no-lone-blocks (#18269)
44a81c6 chore: upgrade knip (#18272)
94178ad docs: mention about `name` field in flat config (#18252)
1765c24 docs: add Troubleshooting page (#18181)
e80b60c chore: remove code for testing version selectors (#18266)
96607d0 docs: version selectors synchronization (#18260)
e508800 fix: rule tester ignore irrelevant test case properties (#18235)
a129acb fix: flat config name on ignores object (#18258)
97ce45b feat: Add `reportUsedIgnorePattern` option to `no-unused-vars` rule (#17662)
651ec91 docs: remove `/* eslint-env */` comments from rule examples (#18249)
950c4f1 docs: Update README
3e9fcea feat: Show config names in error messages (#18256)
b7cf3bd fix!: correct `camelcase` rule schema for `allow` option (#18232)
12f5746 docs: add info about dot files and dir in flat config (#18239)
b93f408 docs: update shared settings example (#18251)
26384d3 docs: fix `ecmaVersion` in one example, add checks (#18241)
7747097 docs: Update PR review process (#18233)

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

reactivate?

reactivate?

repo: therightstuff/aws-cdk-js-dev-guide


text:
AWS Bucket Error

S3CreateError at /api/v1/datasheet-attachments
S3CreateError: 409 Conflict
<?xml version="1.0" encoding="UTF-8"?>
<Error>BucketAlreadyExists<Message>The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.</Message><BucketName>ccdbtest</BucketName><RequestId>5F469BA07657FC17</RequestId><HostId>JKl4S8rFuKW3im9Q2FivWkbEWgDgeSyiu+N95KnowaHM/nSXyIioFnae9SnKZbmFhKfI+jlh93g=</HostId></Error>

Fixed by creating a new bucket.

repo: thermokarst/ccdb-api


text:
L-02 Asset Audit

LGTM

repo: thesandboxgame/sandbox-smart-contracts


text:
latest lnd image has the wrong tag

latest lnd image v0.11.1-beta is not yet present on your docker hub :)

Sorry about the delay. It's available now -> https://github.com/thesis/helm-charts/releases/tag/lnd-0.2.8.
I went ahead and bumped loop to 0.11.1 as well.

authors: kiwiidb tdickman

repo: thesis/helm-charts


text:
Integrate with other HSMs

notary implements the PKCS11 interface so it should be possible to integrate to other HSMs such as CloudHSM and Nitrokey

So in theory this works but hasn't been tested?  Will this work for targets / delegated targets keys, or only root keys?  It would be nice for a CI/CD pipeline in AWS to be able to store delegated targets keys in cloud HSM and use that to have the pipeline sign image metadata.

Currently, hardware support for root keys in Notary has not been tested across different HSMs but should work "in theory" due to the standard pkcs11 interface.
@endophage can definitely speak more to what changes might need to be made to our pkcs11 code since he's been looking into this more actively.
Storing and signing with targets / delegated keys in yubikes isn't currently supported in Notary but is on the 1.0 roadmap https://github.com/docker/notary/issues/306

Riyaz is spot on. I've been told by other sources that it has been reasonably easy to modify notary to work with other HSMs in PoC situations. We're just starting to get this kind of real world interest in actually making it work so while I don't consider this issue as a blocker on releasing a 1.0, we may want to prioritise it for other reasons.
CloudHSM is of particular interest as we would likely also use it for some (not incl. root) of our official image signing keys. We'd happily accept community help on tweaking and testing the existing PKCS11 implementation that does have a couple of very Yubikey specific instructions (i.e. to enable touch to sign).

There is even a PR that add support for other HSM's
#1369
But this PR seem to be blocked...

authors: endophage lewiada riyazdf stafwag

repo: theupdateframework/notary


text:
Fix Python 3 errors

Signing data should be byte strings
Don't log exception outside handler (#300)

Thanks for the pull request!
This pull request is ready to be merged once the test cases indicated in the in-line comments are updated.

OK I made those changes.
Regarding the logger.exception issue, you get it on Python 3 if you enable console messages, i.e.:
diff --git a/tests/test_updater.py b/tests/test_updater.py
index 40b005b..25e3198 100755
--- a/tests/test_updater.py
+++ b/tests/test_updater.py
@@ -76,7 +76,7 @@ import tuf.client.updater as updater
 import six

 logger = logging.getLogger('tuf.test_updater')
-repo_tool.disable_console_log_messages()
+#repo_tool.disable_console_log_messages()

Thanks for helping me reproduce the error.  I've now verified that line 1229 of updater.py does indeed raise an error if console logging is enabled.
I searched for all other instance of logger.exception, and line 1229 is the only place where it's not called from an exception handler.
All the unit tests are passing now (apart of an unrelated test case failure) so I'll go ahead and merge.

@davedoesdev We might need to fix a few other similar Python 3 issues with the PyCA Cryptography module (or it might be because I upgraded my local version)

Yes, this is what I get:
======================================================================
ERROR: test_generate_and_write_ed25519_keypair (test_repository_lib.TestRepositoryToolFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/david/tuf/tests/test_repository_lib.py", line 214, in test_generate_and_write_ed25519_keypair
    repo_lib.generate_and_write_ed25519_keypair(test_keypath, password='pw')
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/repository_lib.py", line 988, in generate_and_write_ed25519_keypair
    encrypted_key = tuf.keys.encrypt_key(ed25519_key, password)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/keys.py", line 1231, in encrypt_key
    tuf.pyca_crypto_keys.encrypt_key(key_object, password)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/pyca_crypto_keys.py", line 750, in encrypt_key
    encrypted_key = _encrypt(json.dumps(key_object), derived_key_information)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/pyca_crypto_keys.py", line 920, in _encrypt
    ciphertext = encryptor.update(key_data) + encryptor.finalize()
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 137, in update
    return self._ctx.update(data)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/cryptography/hazmat/backends/openssl/ciphers.py", line 117, in update
    len(data))
TypeError: initializer for ctype 'unsigned char *' must be a bytes or list or tuple, not str

======================================================================
ERROR: test_import_ed25519_privatekey_from_file (test_repository_lib.TestRepositoryToolFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/david/tuf/tests/test_repository_lib.py", line 290, in test_import_ed25519_privatekey_from_file
    repo_lib.generate_and_write_ed25519_keypair(ed25519_keypath, password='pw')
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/repository_lib.py", line 988, in generate_and_write_ed25519_keypair
    encrypted_key = tuf.keys.encrypt_key(ed25519_key, password)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/keys.py", line 1231, in encrypt_key
    tuf.pyca_crypto_keys.encrypt_key(key_object, password)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/pyca_crypto_keys.py", line 750, in encrypt_key
    encrypted_key = _encrypt(json.dumps(key_object), derived_key_information)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/pyca_crypto_keys.py", line 920, in _encrypt
    ciphertext = encryptor.update(key_data) + encryptor.finalize()
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 137, in update
    return self._ctx.update(data)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/cryptography/hazmat/backends/openssl/ciphers.py", line 117, in update
    len(data))
TypeError: initializer for ctype 'unsigned char *' must be a bytes or list or tuple, not str

======================================================================
ERROR: test_import_ed25519_publickey_from_file (test_repository_lib.TestRepositoryToolFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/david/tuf/tests/test_repository_lib.py", line 242, in test_import_ed25519_publickey_from_file
    repo_lib.generate_and_write_ed25519_keypair(ed25519_keypath, password='pw')
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/repository_lib.py", line 988, in generate_and_write_ed25519_keypair
    encrypted_key = tuf.keys.encrypt_key(ed25519_key, password)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/keys.py", line 1231, in encrypt_key
    tuf.pyca_crypto_keys.encrypt_key(key_object, password)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/pyca_crypto_keys.py", line 750, in encrypt_key
    encrypted_key = _encrypt(json.dumps(key_object), derived_key_information)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/pyca_crypto_keys.py", line 920, in _encrypt
    ciphertext = encryptor.update(key_data) + encryptor.finalize()
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 137, in update
    return self._ctx.update(data)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/cryptography/hazmat/backends/openssl/ciphers.py", line 117, in update
    len(data))
TypeError: initializer for ctype 'unsigned char *' must be a bytes or list or tuple, not str

======================================================================
ERROR: test_decrypt_key (test_keys.TestKeys)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/david/tuf/tests/test_keys.py", line 277, in test_decrypt_key
    encrypted_key = KEYS.encrypt_key(self.rsakey_dict, passphrase).encode('utf-8')
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/keys.py", line 1231, in encrypt_key
    tuf.pyca_crypto_keys.encrypt_key(key_object, password)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/pyca_crypto_keys.py", line 750, in encrypt_key
    encrypted_key = _encrypt(json.dumps(key_object), derived_key_information)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/pyca_crypto_keys.py", line 920, in _encrypt
    ciphertext = encryptor.update(key_data) + encryptor.finalize()
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/cryptography/hazmat/primitives/ciphers/base.py", line 137, in update
    return self._ctx.update(data)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/cryptography/hazmat/backends/openssl/ciphers.py", line 117, in update
    len(data))
TypeError: initializer for ctype 'unsigned char *' must be a bytes or list or tuple, not str

======================================================================
ERROR: test_https_connection (test_download.TestDownload)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.4/urllib/request.py", line 1183, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/lib/python3.4/http/client.py", line 1137, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.4/http/client.py", line 1182, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.4/http/client.py", line 1133, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.4/http/client.py", line 963, in _send_output
    self.send(msg)
  File "/usr/lib/python3.4/http/client.py", line 898, in send
    self.connect()
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/download.py", line 674, in connect
    ca_certs=cert_path)
  File "/usr/lib/python3.4/ssl.py", line 890, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib/python3.4/ssl.py", line 580, in __init__
    self.do_handshake()
  File "/usr/lib/python3.4/ssl.py", line 807, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/david/tuf/tests/test_download.py", line 236, in test_https_connection
    download.safe_download(https_url, target_data_length)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/download.py", line 115, in safe_download
    return _download_file(url, required_length, STRICT_REQUIRED_LENGTH=True)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/download.py", line 241, in _download_file
    connection = _open_connection(url)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/download.py", line 468, in _open_connection
    return opener.open(request, timeout = tuf.conf.SOCKET_TIMEOUT)
  File "/usr/lib/python3.4/urllib/request.py", line 464, in open
    response = self._open(req, data)
  File "/usr/lib/python3.4/urllib/request.py", line 482, in _open
    '_open', req)
  File "/usr/lib/python3.4/urllib/request.py", line 442, in _call_chain
    result = func(*args)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/download.py", line 694, in https_open
    return self.do_open(self.specialized_conn_class, req)
  File "/usr/lib/python3.4/urllib/request.py", line 1185, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>

======================================================================
ERROR: test_with_tuf (test_indefinite_freeze_attack.TestIndefiniteFreezeAttack)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/david/tuf/tests/test_indefinite_freeze_attack.py", line 236, in test_with_tuf
    'password')
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/repository_lib.py", line 870, in import_rsa_privatekey_from_file
    rsa_key = tuf.keys.import_rsakey_from_encrypted_pem(encrypted_pem, password)
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/keys.py", line 958, in import_rsakey_from_encrypted_pem
    check_crypto_libraries(['rsa', 'general'])
  File "/home/david/tuf/.tox/py34/lib/python3.4/site-packages/tuf/keys.py", line 602, in check_crypto_libraries
    raise tuf.UnsupportedLibraryError(message)
tuf.UnsupportedLibraryError: The 'pyca-cryptography' crypto library specified in "tuf.conf.GENERAL_CRYPTO_LIBRARY" could not be imported.

----------------------------------------------------------------------
Ran 242 tests in 174.946s

FAILED (errors=6)

The certificate verification happens on 2.7 as well but the other ones need fixing on 3.4

https://github.com/theupdateframework/tuf/pull/305

authors: davedoesdev vladimir-v-diaz

repo: theupdateframework/tuf


text:
feat: consumer kafka implementation, cleanup structure of messagestor…

…e and the way we access configs in ingestor
Closes #6 and #7

Should we have common prefix for custom environment variables?

That's valid. Possibly something like TWC_CONFIG_?

authors: shyam-king sidvenu

repo: thewebhookcompany/thewebhookcompany


text:
little error

/Applications/flutter/.pub-cache/hosted/pub.dartlang.org/fluro-1.5.1/lib/src/router.dart:41:47: Error: This expression has type 'void' and can't be used.
bool pop(BuildContext context) => Navigator.pop(context);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

Sorry, I need more info. Please provide the information in the bug issue template.

When building a project, flutter throws an error stating that the specified method in your package cannot return true.
Flutter 1.15.2 • channel dev • https://github.com/flutter/flutter.git
Framework • revision d94ff4bdbe (35 hours ago) • 2020-02-06 13:19:46 -0800
Engine • revision f34bc65bee
Tools • Dart 2.8.0 (build 2.8.0-dev.7.0 b3396cbdca)

Dupe of #146

the problem caused by using flutter dev channel, you can use beta channel or stable channel.
it's about Navigator 2.0

authors: goldenplan lukef taojoe

repo: theyakka/fluro


text:
[security] Update devDependencies

The github bot found some vulnerabilities in dev dependencies. So, the library must update it as soon as possible to avoid any lack of information.

fixed issue at pull request #10

repo: thiagoolsilva/husky-hook-creator


text:
Delay after solve on click and on crash

Hi, I really like your work, but I have a wish. When the captcha is solved simply by clicking, the script waits for about 3 more seconds after which it continues to work, and also when google issues that it has detected the script, it also stops executing subsequent commands with a long delay, is it possible to manage these delays somewhere, as I understand the standard ones are not suitable for this. I will be very grateful for the answer.

Hi,
Thank you for the kind words.
If you'd like to remove the delays entirely, you can omit the StandardDelay() like this:
solver = RecaptchaSolver(driver=test_driver)
If you want to decrease them, you can do something like this to make the minimum delay 1 second and the maximum delay 2 seconds:
solver = RecaptchaSolver(driver=test_driver, delay_config=StandardDelayConfig(min_delay=1, max_delay=2))
When it comes to Google ReCAPTCHA blocking automated solving, you have three things that help you get around it (The last two methods are the best fixes):

Wait before trying again.
Rotate your IP by using a proxy with your web driver.
Rotate your user-agent regularly.

I hope this answers your question for you. Let me know if you have any other questions!


text:
Force hash-bang doesn't work properly

The force hash-bang doesn't work correctly when running from the local filesystem or on a subdirectory.

Fixed with cf1cb98937f0446c200aa396cbc2ebff6a43202d

repo: thingdown/blogdown


text:
No OTAA join with RN2483 or RHF76-052 to loraserver.io

Could not OTAA join, neither RN2483 nor AI76-052. Use version 5.3.3 and loraserver.io. Loraserver receives JoinRequest and sends JoinAccept. Loraserver gateway processes ../rx than ../tx than ../ack.
Debug reads:
rxPkt:: t=xx:xx:xx, f=1, sf=7, a=6E674846, flags=50, addr=0, len=23
RXDONE in dT=836939188: I=RXDONE HEADER , F=1, SF=7, E=0, S=RX   , eT=14771212, dT=836941761
G addLog:: fileno=1, rec=34: 1 xx xx xx xx xx xx xx xx xx xx xx {"rxpk":[{"tmst":836942776,"chan":0,"rfch":0,"freq":868.299987,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":9,"rssi":-53,"size":23,"data":"xxxxxxxxxxxxxxxx"}]}
M readUdp:: PKT_PULL_RESP received
T LoraDown tmst=841942776
M PKT_TX_ACK:: micros=837423554
M PKT_PULL_RESP:: size 198 From xx.xx.xx.xx, port 1700, data: txpk...
T TX done:: I=  --  , F=1, SF=7, E=1, S=TX   , eT=5031321, dT=842003247
T TXDONE:: rcvd=842049560, diff=106844
T TXDONE:: done OK
Tried both #define _STRICT_1CH	1 and #define _STRICT_1CH	0.
ABP works fine with both modules in this setup.
Any hint? Thanks a lot.

Issue seems related to loraserver.io since OTAA works fine with TTN. Sorry for bothering.


text:
例子中的配置文件的含义

export default {
  on: true, //是否开启 WebSocket
  type: "socket.io",
  allow_origin: "",
  sub_protocal: "",
  adapter: undefined,
  path: "", //url path for websocket
  messages: {
    open: 'home/index/open',
    close: 'home/index/close',
    chat: 'home/index/chat',
    typing: 'home/index/typing',
    stoptyping: 'home/index/stoptyping',
    adduser: 'home/index/adduser'
  }
};

请问，这个里边的 path 是什么意思path: "", //url path for websocket
  allow_origin: "",
  sub_protocal: "",
  adapter: undefined,

虽然这三个还没用到，但是也不知道什么意思，官网的doc说的也不充分。
我想在 websocket 的 url 上加一个路径，然后能够这样连接 socket.io
io('http://127.0.0.1:8080/test');

遇到了同样的问题，加了官方群，发现都是一群吹逼的人，哎……

authors: Thinkingpey llqgit


text:
🛑 Microsoft Outlook is down

In b592c0d, Microsoft Outlook (https://outlook.office.com) was down:

HTTP code: 503
Response time: 5830 ms

Resolved: Microsoft Outlook is back up in 3411bd6 after 9 minutes.

repo: thomas-merz/upptime


text:
Proposal: Alternate Free implementation

This PR demonstrates how a change to the underlying implementation of Free produces some serious performance improvements for Halogen (and Hooks, which leans extra hard on Free). First I'll show some results from this repository's performance benchmarks, and then I'll show that the js-framework-benchmark tests don't show any regression (they only really exercise the vdom and not Free, anyway).
The new implementation is available here:
https://github.com/thomashoneyman/purescript-halogen/tree/freed
Specifically, this file:
https://github.com/thomashoneyman/purescript-halogen/blob/freed/src/Control/Monad/Freed.purs
Results: Hooks Benchmarks
First: the results from this repository's performance tests. The performance differences I'll describe below are from a local run of the benchmarks, because they're more reliable than the CI machines, but you can see similar results in these two workflow runs in CI:

Latest build of the main branch: https://github.com/thomashoneyman/purescript-halogen-hooks/runs/1078854500
Latest build of the freed branch: https://github.com/thomashoneyman/purescript-halogen-hooks/runs/1078875415

These workflows run two tests in Puppeteer and measure browser performance while the tests run. The first workflow run tests the main branch of Hooks, which uses the normal Free from purescript-free. The second workflow tests the freed branch of Hooks, which uses the modified Free added to my Halogen fork in the Control.Monad.Freed module (written by @natefaubion originally). The tables below describe the performance differences between the two workflow runs for the two tests exercised in CI.
The first test creates a few counters in State and increments them a bunch of times.
State Test         | Script Time | Avg. Heap | Avg. FPS |
-------------------+-------------+-----------+----------+
Hooks Baseline     | 134ms       | 686kb     | 14       |
Hooks Freed        | 101ms       | 558kb     | 16       |
Component Baseline | 65ms        | 506kb     | 26       |
Component Freed    | 58ms        | 382kb     | 31       |

State Test         | Script Time | Avg. Heap | Avg. FPS |
-------------------+-------------+-----------+----------+
Hooks Change       | - 24.62%    | - 18.65%  | + 14.28% |
Component Change   | - 10.76%    | - 24.50%  | + 19.23% |

The second test creates a small todo app with nested components and adds rows, removes rows, checks todos on and off, and edits their descriptions.
Todo Test          | Script Time | Avg. Heap | Avg. FPS |
-------------------+-------------+-----------+----------+
Hooks Baseline     | 489ms       | 6,746kb   | 14       |
Hooks Freed        | 403ms       | 6,334kb   | 19       |
Component Baseline | 273ms       | 3,527kb   | 23       |
Component Freed    | 242ms       | 3,359kb   | 25       |

Todo Test          | Script Time | Avg. Heap | Avg. FPS |
-------------------+-------------+-----------+----------+
Hooks Change       | - 17.58%    | - 6.10%   | + 35.71% |
Component Change   | - 11.35%    | - 4.76%   | + 8.69%  |

Results: JS Framework Benchmark
I also took some time to add this branch to the js-framework-benchmark tests for Halogen. I didn't think there would be much difference because it mostly exercises halogen-vdom, not Halogen itself. But there was a slight improvement.
These images are from this branch of the benchmark tests:
https://github.com/thomashoneyman/js-framework-benchmark/tree/freed

Next Steps
This PR is a proof of concept and a place to continue iterating on this new implementation for Free. Whether we're able to apply that implementation to purescript-free or not, I feel that these results are strong enough to warrant replacing the implementation in Halogen / Hooks.
@natefaubion @garyb I'm curious to hear what y'all think about this and what steps we should take going forward to:

Verify these results aren't matched by a regression elsewhere in the library
Decide whether we can use this implementation to update purescript-free or whether it should live elsewhere
Update Halogen 6 to rely on the new implementation (if we all agree that it should)

If you're curious about what these tests actually exercise, see the two test apps:

https://github.com/thomashoneyman/purescript-halogen-hooks/tree/main/test/Test/Performance/State
https://github.com/thomashoneyman/purescript-halogen-hooks/tree/main/test/Test/Performance/Todo

...as well as the code which automates Puppeteer for these two tests:
https://github.com/thomashoneyman/purescript-halogen-hooks/blob/c2c8bfd399908b49f57c49ddb03c91fdab5e71f9/test/Test/Setup/Performance/Measure.purs#L168

I don't think there's any reason why there would be a regression elsewhere.

@natefaubion added hoist fusion to the Free implementation in https://github.com/thomashoneyman/purescript-halogen/commit/3df20ad240003b8110cec7ad5f66eba0b245e5a3. Here's an updated set of results:
State Test         | Script Time | Avg. Heap | Avg. FPS |
-------------------+-------------+-----------+----------+
Hooks Baseline     | 134ms       | 686kb     | 14       |
Hooks Freed        | 101ms       | 558kb     | 16       |
Hooks Fusion       | 100ms       | 585kb     | 17       |
-------------------+-------------+-----------+----------+
Component Baseline | 65ms        | 506kb     | 26       |
Component Freed    | 58ms        | 382kb     | 31       |
Component Fusion   | 60ms        | 408kb     | 29       |

State Test         | Script Time | Avg. Heap | Avg. FPS |
-------------------+-------------+-----------+----------+
Hooks Freed        | - 25%       | - 18%     | + 14%    |
Hooks Fusion       | - 25%       | - 14%     | + 21%    |
-------------------+-------------+-----------+----------+
Component Freed    | - 11%       | - 24%     | + 19%    |
Component Fusion   | - 8%        | - 19%     | + 12%    |

Todo Test          | Script Time | Avg. Heap | Avg. FPS |
-------------------+-------------+-----------+----------+
Hooks Baseline     | 489ms       | 6,746kb   | 14       |
Hooks Freed        | 403ms       | 6,334kb   | 19       |
Hooks Fusion       | 400ms       | 6,353kb   | 19       |
-------------------+-------------+-----------+----------+
Component Baseline | 273ms       | 3,527kb   | 23       |
Component Freed    | 242ms       | 3,359kb   | 25       |
Component Fusion   | 248ms       | 3,227kb   | 25       |

Todo Test          | Script Time | Avg. Heap | Avg. FPS |
-------------------+-------------+-----------+----------+
Hooks Freed        | - 18%       | - 6%      | + 36%    |
Hooks Fusion       | - 18%       | - 6%      | + 36%    |
-------------------+-------------+-----------+----------+
Component Freed    | - 11%       | - 5%      | + 9%     |
Component Fusion   | - 9%        | - 9%      | + 9%     |

Note: these results come from 3 runs of each test, averaged, and there's some variability between runs (especially in the FPS measurements, where a change of 1 or 2 can cause a significant percentage swing).
The differences introduced by hoisting seem small; there's a slight improvement in the todo test, and a slight regression in the state test. I'm not sure how much these tests are really exercising the hoisting, though.

I think it's probably a wash because you already get some level of fusion when you interpret back into Free again with hoist, such that any embedded machinery is just replicating what you already get. Likely not worth it.

I thought Halogen used hoist internally, but if it doesn't it's not giving you anything for these tests and it never actually hits the hoist branches I put in.

Yea, on review it looks like it’s a wash because this is just test variability! But that’s also good to know. Let me know if you have any ideas for testing out the hoist machinery you added. Is there anything in -run that could test it?

Closing this now that #104 is open. I can make these changes if / when that PR is merged.

authors: natefaubion thomashoneyman

repo: thomashoneyman/purescript-halogen-hooks


text:
🛑 Pihole-KA is down

In e0b7100, Pihole-KA ($URL_PIHOLE_MERZ_NIMBUS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pihole-KA is back up in df543cc.

repo: thomasmerz/upptime


text:
🛑 Syncthing-NBG is down

In 30b2f28, Syncthing-NBG ($URL_SYNCTHING_HETZNER_CLOUDSERVER_DE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Syncthing-NBG is back up in ffbb916.


text:
🛑 Pihole-KA is down

In 2497e28, Pihole-KA ($URL_PIHOLE_MERZ_NIMBUS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pihole-KA is back up in bdcdcdf.


text:
Fix new SSO connection regressions

Fix new SSO connection regressions introduced in https://github.com/thomasmichaelwallace/serverless-better-credentials/pull/26

refactor: simplify forEach loop in addSsoDataToProfiles
fix: handle profiles from credentials file
fix: add sso region when using new sso method
refactor: simplify sso login code

Should close https://github.com/thomasmichaelwallace/serverless-better-credentials/issues/18, https://github.com/thomasmichaelwallace/serverless-better-credentials/issues/27 and https://github.com/thomasmichaelwallace/serverless-better-credentials/issues/28

@tonyvdv and @alaexeyshustov this PR should fix your issues, may you check it ?
@thomasmichaelwallace v1.2.1 may be released I suggest!

@thomasmichaelwallace sorry to push you a bit on this but could we go ahead and merge this? Thanks!!

Is there any way to use this branch in the meantime?

Is there any way to use this branch in the meantime?

You may clone the repo, install and build it (yarn && yarn build), and then link it to your own package.json instead of using the default npm version.
It can be done with a yarn link or a direct file link:
"serverless-better-credentials": "file:[path to serverless-better-credentials folder]"

OK- although last time I did this it broke everything 😉

Now released as 1.2.1.

OK- although last time I did this it broke everything 😉

hehe fair point, will see if we run into anything in the coming days/weeks.
Thanks for pushing the buttons anyway!

authors: MichaelLebrand guiyom-e thomasmichaelwallace tobim


text:
init cmd

初始化命令来创建项目
比如：
composer create-project laravel/laravel=5.4.* --prefer-dist ./
compose create-project
git clone 后还要删除.git/

.gitignore
.idea   // idea 文件   比如还有vscode .....
.DS_Store  // mac 文件
pkg/debug
pkg/releases/*
log/.
assets/upload

打包和发布
Makefile
COMPILE_TIME = $(shell date +"%Y%m%d-%H%M%S")
GIT_REVISION = $(shell git show -s --pretty=format:%h)
run: build
pkg/debug/debbug
build:
go build -o pkg/debug/debbug
release:
mkdir -p pkg/releases
rm -rf releases
GOOS=freebsd GOARCH=amd64 go build -ldflags "-s -w" -tags=jsoniter -o releases/videopro   //  releases 程序 最小 平台  优化
cp -r config releases/config  //配置文件
cp -r assets releases/assets  // css & js
cp -r templates releases/templates //  html tpl
mkdir releases/log
echo $(GIT_REVISION) > releases/VERSION   //git version
tar -cvzf pkg/releases/releases-$(COMPILE_TIME).tar.gz releases/
rm -rf releases
all: build run release

我的对你的项目不熟悉，所以不敢直接提交

Hi @cyanBone
Please open issues in English language.
Please note, the application is not installable through Composer, rather git clone of download the latest version.

authors: cyanBone thomasvvugt

repo: thomasvvugt/fiber-boilerplate


text:
The request has been black-holed

Getting this error with description:
Error: The requested address '/oauth/login?response_type=code&client_id=NTM4ZWRlODdkZTNmNmZh&redirect_url=http%3A%2F%2Fwww.xxxxxxxxx.com' was not found on this server.
This happens after entering the credentials into the login form. So entering the URL directly works, the redirect after login seems not to working. Any idea why?
Thx
Best
Stefan

the same problem I have got. I fixed refer to the following:
public function beforeFilter() {
parent::beforeFilter();
if (isset($this->Security)) { //&& isset($this->Auth)) {
$this->Security->validatePost = false;
$this->Security->enabled = false;
$this->Security->csrfCheck = false;
}
}

authors: grizzly yeweishuai

repo: thomseddon/cakephp-oauth-server


text:
Deprecate app public pages

Staging version live at https://test.thoth.pub/admin

Looks fine. One comment since this is touching the GitHub Actions files: we've started getting warning annotations on these workflow runs about upgrading from Node.js 16 to 20 (e.g. https://github.com/thoth-pub/thoth/actions/runs/7812991720). Might be worth updating the relevant Actions as part of this.

repo: thoth-pub/thoth


text:
unit-ilo-edit-modal Component Review

Ontrack Component Review
Team Member Name
Ivan Justin
Student ID: s223844277
Component Name
UnitILOEditComponent
Files in this Component:

unit-ilo-edit-modal.coffee
unit-ilo-edit-modal.tpl.html

Component Purpose
The primary purpose of the UnitILOEditModalComponent is to provide the user (a tutor or a convenor) the ability to insert and edit ILOs that match the units that they oversee. It includes the ability to add new ILOs, the ability to give them names, abbreviations, and descriptions, as well as data from pre-existing ILOs.
Screenshots:
Original (PDF):

Component Outcomes and Interactions
Expected Outcomes:

Users can name ILOs
Users can abbreviate the ILOs
Users can provide the description for ILOs
Users can edit ILOs, as the modal takes data from the page before it

Interactions:

Inputs:

ilo: Object containing the data of the ILO in question, including its name, its abbreviation, and its description.
prototypeIlo: Object to store user inputs.

Outputs:

The modal creates a new LearningOutcomeService object which will store and associate the new ILO with the certain unit ID.
If selected from a pre-existing ILO, the modal will display its data in the modal, which will then be available for modification.

Component Migration Plan
Migration Steps:
I will be following
doubtfire-web's Migration Guide

Analyze Existing Component:

Review the current implementation in AngularJS.
Identify key functionalities and dependencies.

Setup Angular Environment:

Ensure the Angular project is properly set up.
Install necessary dependencies (e.g., Angular Material).

Create Angular Component:

Generate a new Angular component.
Transfer the HTML template, styles, and logic from AngularJS to Angular.

Integrate Services:

Migrate and integrate the UnitILOEditModalService into the new Angular component.

Downgrade Component:

Use UpgradeModule to downgrade the Angular component for use in the AngularJS app.

Testing:

Test the new component to ensure it replicates the behavior of the old one.
Fix any issues that arise during testing.

Component Review Checklist

[x] Ability to collect details from the user

The modal allows users to enter and save learning outcomes.

[x] Succeeds when data is valid

The modal successfully closes and returns valid data.

[x] Handles errors

The component gracefully handles errors such as blank entries or data misinput.

[x] Created unit is shown on success

The new or edited ILO will be displayed in detail after the save button is prompted.

The component review gives the exact idea of the migration process. It looks good.

repo: thoth-tech/documentation


text:
Griddler, Sidekiq as Processor

Hi,
Is that possible to use Sidekiq to perform as Griddler Processor ? Currently Griddler return a Griddler Object that I can't send to Sidekiq, and I need it to upload attachments to S3 Bucket.
Do you have any way to use Griddler with Sidekiq ?
Thanks

I fixed it like that :
@email.attachments.each {|t| ObjectSpace.undefine_finalizer(t.tempfile)}

        # Griddler Email to hash for Sidekiq
        email = {
            attachments: @email.attachments.map {|att| {
                type: att.content_type,
                name: att.original_filename.include?('=?UTF-8?') ? "unknown#{Rack::Mime::MIME_TYPES.invert[att.content_type]}" : att.original_filename,
                path: att.tempfile.path
            }},
            raw_text: @email.raw_text,
            raw_html: @email.raw_html,
            from: @email.from,
            subject: @email.subject,
            to: @email.to,
            cc: @email.cc
        }

MessagesInboundWorker.perform_async email

Persisting my Tempfiles, then send it to my Worker

Did you have to redefine the finalizer in your worker to ensure the tempfiles eventually get GC'd?

authors: bourg-ismael scott

repo: thoughtbot/griddler


text:
Add Bitters as Requirement in README?

Hello!
I just started moving one of my Rails projects over to bourbon/neat/refills today! I'm all sorted out now, but I had one major pain point while making the switch. I had bourbon/neat all set up and working properly, but when I went to try out the "grid-items" pattern, I kept getting this error: Undefined variable: "$base-background-color".. While I now know this happened because Bitters wasn't set up, it took me a fair bit of time to figure that out.
Would it be reasonable to add Bitters under the "Requirements" heading in the README?
Thank You!

Oops! I see now that Bitters isn't actually required... those SASS variables just need to be defined! Also I saw that in the current master branch of Github the default variable definitions are included (like in the refills webpage). Sorry about that!

repo: thoughtbot/refills


text:
Help with Fermi GBM spectral analysis

HI,
How to use the synchrotron model to fit the Fermi GBM spectrum?

Hi @mingjiac which synchrotron model do you mean?

Hi @mingjiac which synchrotron model do you mean?

Thanks for your answer @grburgess ,I mean cool synchrotron.

Can you specify the package you would like to use?

Can you specify the package you would like to use?

I want to use cool synchrotron model in 3ML.

Which one? There is a synchrotron package included from naima, but these are not appropriate for GRBs. Do you have your own model you would like to include?

Which one? There is a synchrotron package included from naima, but these are not appropriate for GRBs. Do you have your own model you would like to include?

There is no synchrotron model suitable for GRB in astromodels?

There is no standard synchrotron model. There are external packages. OR one can write the model themselves.

external packages

Do you know any external packages? I saw in your paper that you used the synchrotron model.

https://pypi.org/project/pynchrotron/

https://pypi.org/project/pynchrotron/

Thanks for your help.I ran into a problem when I defined the prior, and an error occurred when performing Bayesian fitting. Below is the prior I defined:
syn= pynchrotron.SynchrotronNumerical()
syn.gamma_min=1e5
syn.K.prior=Log_uniform_prior(lower_bound=0.01, upper_bound=1e1)
syn.B.prior= Log_uniform_prior(lower_bound=1e-2, upper_bound=1e2)
syn.gamma_cool.prior=Log_uniform_prior(lower_bound=1e3, upper_bound=1e6)
syn.gamma_max.prior=Log_uniform_prior(lower_bound=1e5, upper_bound=1e8)
syn.index.prior=Truncated_gaussian(lower_bound=2, upper_bound=6, mu=-1, sigma=0.5)
spec1 = syn
ps1 = PointSource("grb", 0, 0, spectral_shape=spec1)
model1= Model(ps1)

You have set the mean of the gaussian outside the prior for the electron index.

You have set the mean of the gaussian outside the prior for the electron index.

I still got an error after modifying, the modified code:
syn= pynchrotron.SynchrotronNumerical()
syn.gamma_min=1e5
syn.K.prior=Log_uniform_prior(lower_bound=0.01, upper_bound=1e10)
syn.B.prior= Log_uniform_prior(lower_bound=1e-2, upper_bound=1e2)
syn.gamma_cool.prior=Log_uniform_prior(lower_bound=1e3, upper_bound=1e8)
syn.gamma_max.prior=Log_uniform_prior(lower_bound=1e5, upper_bound=1e9)
syn.index.prior=Log_normal(mu=2, sigma=1)
syn.index.bounds =  (2, 6)
spec1 = syn
ps1 = PointSource("grb", 0, 0, spectral_shape=spec1)
model1= Model(ps1)
Error:
SettingOutOfBounds: Trying to set parameter index = 9.811178255545535, which is more than the maximum allowed 6.0

You have not bounded the parameter properly.

Is this issue resolved @mingjiac ?

Is this issue resolved @mingjiac ?

Thanks for your help, the problem has been solved.

authors: grburgess mingjiac

repo: threeML/threeML


text:
Issues with time selector widget

I've noticed a couple of problems with the time selector widget for choosing solution expiration times in the marketplace. Tested in both Brave and Firefox browsers on Linux.

Switching a selected time from AM to PM is not possible. It's also not possible to change the hour without changing the minutes, unless also changing between AM/PM.

If I choose a valid time in the future, then switch to a time less than one hour in the future, the warning does not appear until I hit next. Or, if I then choose a valid time in the future, the warning appears even though the time is valid. With current date/time being 8/4 @ 20:55:

It would be nice to be able to enter date/time with the keyboard.

@scottyeager thank you for reporting

authors: scottyeager xmonader


text:
No.28 - Test case: TC667

Version v1.4.1-rc2
Deployed on Testnet
Select Capacity Package ( min , standard , recommended ) are created with same CPU , Memory , Disk data. For example deployed Owncloud

Do you mean this is the case for everything?

authors: dmitri-alleo xmonader


text:
QA: for data migration (3.12 to 3.13) testing execute the following

use an older version of the grid-client-ts e.g 2.0.0 or 2.1.0 to deploy all kinds of solutions (using scripts)
use the new.playground.dev.grid.tf to see if things are properly migrated or not

related to:
https://github.com/threefoldtech/tfgrid-sdk-ts/issues/8

data migrated with success
tried to deploy using version 2.0.0
solutions tried : "single vm , k8s"
single vm:

k8s :

still no progress
waiting for 3.13 to be deployed on qa net

Are the scenarios done for this one?

Are the scenarios done for this one?

Yes, the test cases have been added within the Grid Upgrade test suite to be run before the release.
And after the upgrid, beside verifying the deployments themselves, the migration data will also be verified in TC2074 - Verify Data Migration VMs and solutions and TC2083 - Verify Data Migration Kubernetes and Caprover.

authors: A-Harby khaledyoussef24 ramezsaeed xmonader

repo: threefoldtech/tfgrid-sdk-ts