Add nixpkgs tooling for pnpm-lock.yaml

Issue description
We have buildNpmPackage for package-lock.json, and mkYarnPackage for yarn.lock.
However we currently have no tooling available in nixpkgs to build JS packages that make use of pnpm-lock.yaml.
Proposed solution
Add support to pnpm-lock.yaml through e.g: mkPnpmPackage.
Alternatives
I have packaged pnpm-lock-export for use in packaging the next version of Woodpecker's front-end in my personal configuration with the available tooling.
Unfortunately that tools does not support the latest version of the lock file, so it was quickly made useless for my usage once upstream updated their repo...

cc @NixOS/node

This would be useful for repackaging, reducing the size of nodePackages and for numerous unmet package requests (I'm guessing nobody is terribly keen on adding to nodePackages and I can't blame them). Just a few examples that I came across: #180968 #207708 #170254 #226535.

just as an idea, did someone bring up to upstream https://github.com/cvent/pnpm-lock-export directly into pnpm jet ?

they at least have an import ...

@6543: I believe this discussion is about a similar subject.

If you need this feature, you need to ask for it in the npm CLI repository. Why would we spend our time on a feature that helps people switch away from pnpm to another package manager? It doesn't make sense.

To be fair, I think their stance is quite rational.

pnpm-lock-export does not support the current pnpm lock file version.
─❯ nix run nixpkgs#pnpm-lock-export -- --schema yarn.lock@v1
Your lockfile version (6.0) is higher than the supported version of pnpm-lock-export (5.4).
Error: /<EMAIL_ADDRESS>is an invalid relative dependency path

I'm not proud of it, but I hacked pnpm-lock-export to support converting the newer lock file to a yarn lock: https://github.com/adamcstephens/pnpm-lock-export/commit/d1a0fcfd39099e66c6eecf3896dadf624b6d3da1
I'm a bit over my head here, but I am able to convert the woodpecker lock, which was my goal.

https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/pot/default.nix I added a pnpm package by fetching deps with pnpm. It's pretty simple. What can a mkPnpmPackage bring to us? I thought a fetchPnpmDeps is easier to use.

Having a fetchPnpmDeps function would be a necessary first step towards adding mkPnpmPackage, and would indeed be useful for more complicated purposes. For packages that don't need the complexity, having a mkPnpmPackage function makes the easy thing easy.
I think it's good to have mk*Package to keep the API similar to other package managers currently supported by nixpkgs (yarn and npm both have a mk<Name>Package function).

I think it's good to have mk*Package to keep the API similar to other package managers currently supported by nixpkgs (yarn and npm both have a mk<Name>Package function).

I think build*Package is the more common pattern.
Anyway, having builders for trivial packages makes for less boilerplate and communicates what is going on up front, which is a win. Builders also provide a very clear approach to packaging: They mainly work to smooth out idiosyncrasies e.g. workspaces, package managers. Part of that means developing and using functions like build*Deps.

master/pkgs/applications/misc/pot/default.nix I added a pnpm package by fetching deps with pnpm. It's pretty simple. What can a mkPnpmPackage bring to us? I thought a fetchPnpmDeps is easier to use.

This will break as soon as anything in pnpm's store format changes.

Yes, fetchers break when format changes.

Hi, I've discovered a working version of pnpm2nix, and it works really well:
Usage example: https://github.com/tlm-solutions/kindergarten/blob/c24b8b3700658dd56ec163941a7e604eae0575c9/derivation.nix
Maybe this would be something to integrate into nixpkgs.

@MarcelCoding this is using pnpm install --frozen-lockfile --offline which can (and most probably will) change when upgrading pnpm, leading to FOD failures as the hash will suddenly need to be updated (as @winterqt explained a few comments earlier).

So the solution need to be without any pnpm command execution? Basically rebuilding the node_modules folder in plain nix?

So the solution need to be without any pnpm command execution? Basically rebuilding the node_modules folder in plain nix?

If upstream pnpm guarantees that not only their cache format but also cache generation is reproducible long-term then we could potentially use it
But right now we'll otherwise likely do what we do with npm and use our own tooling to generate the pnpm cache and then let pnpm take care of the rest

What do you mean by cache? pnpm has a global store with all packages. pnpm2nix fetches all packages mentioned in pnpm-lock.yaml and creates a corresponding entry on /nix/store for every package. After that, another entry in /nix/store is created, which represents the store. The store is generated using pnpm store add. After that, pnpm install is used to generate a node_modules folder using the generated store.

What do you mean by cache? pnpm has a global store with all packages. pnpm2nix fetches all packages mentioned in pnpm-lock.yaml and creates a corresponding entry on /nix/store for every package. After that, another entry in /nix/store is created, which represents the store. The store is generated using pnpm store add. After that, pnpm install is used to generate a node_modules folder using the generated store.

The store is pnpm's equivalent to the cache iirc. I assumed by FOD failures @ambroisie meant that it uses pnpm tooling to generate FODs and I'm admittedly on mobile and didn't actually look at the pnpm2nix code and it seems this is an input-addressed output, not a FOD
Ideally pnpm store add is reproducible, but non-reprodudicibility is better in a standard input-addressed derivation than a FOD, so I guess this approach is a little more sound than current pnpm hacks that have been merged with questionably unreproducible FODs
This could be useful at minimum as a reference though, so I'll try to take a thorough look at the pnpm2nix code later and see if we can integrate some of it. Thank you!

@lilyinstarlight is right, this does not make use of FOD (don't comment before drinking your morning tea folks!). I think I misread this call and invented a outputHash out of nowhere...
I'm not sure what the stance is on using something like pnpm store add for nixpkgs' purposes then, I'll leave that to the experts. It is exciting to see movement on this issue at least :-).

pnpm store add allows pnpm to build the node_modules folder (and store) itself while leaving the downloading and hash checking up to nixpkgs. It also still duplicates packages with the same version globally (thanks to nix), like the store of Pnpm is originally intended. Basically pnpm store add just links (idk if it copies, I will research that) the downloaded version by nix to the local Pnpm store and then linkes from the store to node_modules.

I had a question about copying, especially where hard links won't work.

idk if it copies, I will research that

I can't speak to the pnpm store add command directly, but afaict pnpm copies when it can't hard link. I have my nix store and the build directory on different partitions (the latter usually a tmpdir — I'm speaking generally to cover both Darwin and Linux). It would be a little frustrating, though understandable, if the packages were stored twice in the nix store: once from nix adding the package, and another for the resulting pnpm store.

a corresponding entry on /nix/store for every package. After that, another entry in /nix/store is created, which represents the store. The store is generated using pnpm store add. After that, pnpm install is used to generate a node_modules folder using the generated store.

So here the store in /nix/store can symlink, or hard link, but the pnpm install will always copy into the node_modules on a separate partition?

It is exciting to see movement on this issue at least

:+1: yes, thank you, all

It would be a little frustrating, though understandable, if the packages were stored twice in the nix store: once from nix adding the package, and another for the resulting pnpm store

Presumably this can happen all over the place in nix. Which is why nix store optimize hardlinks duplicate files.
I do agree that it would be unfortunate, but should not be a roadblock IMO.

pnpm store add allows pnpm to build the node_modules folder (and store) itself while leaving the downloading and hash checking up to nixpkgs. It also still duplicates packages with the same version globally (thanks to nix), like the store of Pnpm is originally intended. Basically pnpm store add just links (idk if it copies, I will research that) the downloaded version by nix to the local Pnpm store and then linkes from the store to node_modules.

My Research:
If the store and the node_modules folder are on different partitions - e.g. /nix/store and the working directory of the pnpm install is on different drives (idk how that is with nix) - the required files from the store will be copied https://pnpm.io/faq#does-pnpm-work-across-multiple-drives-or-filesystems

If the store path is specified via the store config, then copying occurs between the store and any projects that are on a different disk.

So if a solution uses pnpm it will copy the packages from the store in the /nix/store into the node_modules in a build directory (often a tmpfs), and then the nix tooling will have to recognize that that these are copies and deduplicate afterwards, when putting the node_modules into the/nix/store?

Something like that, but nix optimize should replace the files with hard links and this copy would only occur during the build stage.

Ideally we would symlink until the final derivation. Hard links aren't supported in NARs and store optimization isn't universally enabled. But also it doesn't really matter that much and shouldn't be a blocker
I'll weigh in later more thoroughly, though. I'm on mobile and also at $dayjob right now

No need for a more thorough explanation for my benefit: I think you've answered my question. And having run through the code, I see a number of calls to cp (some of which can be configured to ln).
More broadly, having now been through the code, it seems using the hash directly from the pnpm.lock file is 👍 — seems like an elegant implementation. And so it means the dependency deduplicate should match the behaviour for pnpm?
It would be cool to be able to use a pnpm store in /nix/store for development with pnpm, too. That seems somewhat tricky, given nix would create a separate pnpm store for each package. But perhaps (again, not blocking!) one could implement [a pnpm store server] (https://pnpm.io/cli/server) that used /nix/store packages.
Thanks, all.

The pnpm store server thing sound interesting, I'll play around with it and keep you updated.

Great to see progress on that topic! one thing i've noticed when trying the pnpm2nix project linked above is that the don't seem to support configs in .npmrc like additional repos (fontawesome pro in our case) - might be sth to consider in the design of the custom solutions, though i'm sure that's doable :)

any updates on this end?

How about testing pnpm2nix in nixpkgs?

I have just created #290715 which moves the pnpm code from vesktop into a top-level function. It's far from perfect so far, but it should support some use-cases.

It case it's helpful for anyone, I made a fork of pnpm-export-lock with a bunch of updates to get it into shape for converting the latest pnpm-lock.yaml format to yarn.lock. (I haven't done much testing on updates for generating package-lock.json outputs.) https://github.com/hallettj/pnpm-lock-export

I'm not sure how relevant this is, but pnpm v9, released yesterday, included changes to the lockfile format:

Lockfile changes:

Lockfile v9 is adopted. This new format has changes for better readability, and better resistence to Git conflicts.
Support for lockfile v5 is dropped. Use pnpm v8 to convert lockfile v5 to lockfile v6 https://github.com/pnpm/pnpm/pull/7470.

This is still an issue. While #290715 does add pnpmFetchDeps, which is relevant to this issue, it does not add an analogue of buildNpmPackage for pnpm.

An install hook like buildNpmPackage has should be pretty easy to do in theory using pnpm deploy, but it seems to have some issues right now (see https://github.com/pnpm/pnpm/issues/5315)


[SPARK-50363][PYTHON][DOCS] Refine the docstring for datetime functions - part 1

What changes were proposed in this pull request?
Refine the docstring for datetime functions - part 1
Why are the changes needed?
improve docs and test coverage
Does this PR introduce any user-facing change?
doc-only change
How was this patch tested?
updated doctests
Was this patch authored or co-authored using generative AI tooling?
no

Merged to master.


Format with Prettier and Lint with ESLint

This PR adds a standard format and lint for the frontend files under core/new-gui.

As TSLint has been deprecated, now we migrate to ESLint, which supports TypeScript, JavaScript and HTML files.
Add Prettier for formatting HTML, JavaScript, TypeScript, CSS/SCSS/LESS, JSON files.
Combine Prettier and ESLint in the pre-commit hook, with prettier-eslint. So that for each git staged file, it will use Prettier to format and then ESLint to fix any errors. This is the more standard way to use them as ESLint is much more configurable and powerful while Prettier supports more file types. See more details https://github.com/prettier/prettier-eslint
Add a Lint-check on new-gui CI. It uses ESLint to validate only.
Add a command to reformat everything under new-gui directory, run yarn format. This is intended to be only used once to convert all formats, but it's convenient if we need to perform it again in the future. The yarn format is almost equal to prettier-eslint as it executes Prettier on all files (types listed above) for formatting, and then use ESLint to fix errors.

This PR has already converted all frontend files under core/new-gui to be the new format. Developers should adopt the configurations in IDE after merging this PR.

VSCode: https://enlear.academy/integrating-prettier-and-eslint-with-vs-code-1d2f6fb53bc9
IntelliJ/WebStorm: https://www.jetbrains.com/help/idea/eslint.html, https://www.jetbrains.com/help/idea/prettier.html

Looks good, can we move the eslint step in github actions before yarn install step? I believe you can install eslint first, then run lint, then run yarn install.  However, eslint does not come bundle with node, we have to install several dependencies to be able to run eslint.

Looks good, can we move the eslint step in github actions before yarn install step? I believe you can install eslint first, then run lint, then run yarn install.  However, eslint does not come bundle with node, we have to install several dependencies to be able to run eslint.

can you do something like yarn install -g eslint?

Looks good, can we move the eslint step in github actions before yarn install step? I believe you can install eslint first, then run lint, then run yarn install.  However, eslint does not come bundle with node, we have to install several dependencies to be able to run eslint.

can you do something like yarn install -g eslint?

ESLint is not the only dependency, in fact it needs 5-6 dependencies for all rules to check, and can be extended in the futre. I think it's not good idea to hard code those.
This will only affect the initial install, which is 5 minutes, for future runs, yarn install only takes 10 seconds from cache. so in general this is not a concern to run install before lint


Same prediction every time.

Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!

[ x] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

[ x] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

[ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

Hi,
I’m trying to do an image classifier that determines if something should be given a specific hashtag or not. My problem is that the accuracy of the classifier after each epoch remains constant, and is essentially assigning the same class to all images. This makes no sense as the image classes are fairly distinct (#gym and #foraging). I basically copied the smaller CNN you used:
model = Sequential()
model.add(Convolution2D(32, 3, 3, input_shape=(3, 100, 100), activation=’relu’))
model.add(Dropout(0.2))
model.add(Convolution2D(32, 3, 3, activation=’relu’))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.add(Flatten())
model.add(Dense(512, activation=’relu’))
model.add(Dropout(0.5))
model.add(Dense(1, activation=’softmax’))
epochs = 10
lrate = 0.001
decay = lrate/epochs
sgd = SGD(lr=lrate, momentum=0.9, decay=decay, nesterov=False)
print(‘compiling model’)
model.compile(loss=’binary_crossentropy’, optimizer=sgd, metrics=[‘accuracy’])
print(“fitting model”)
model.fit(X_training, Y_training, nb_epoch=epochs, batch_size=100)
But every time, I get these results:
fitting model
Train on 908 samples, validate on 908 samples
Epoch 1/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 2/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 3/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 4/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 5/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 6/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 7/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 8/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 9/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
Epoch 10/10
908/908 [==============================] – 104s – loss: 7.9712 – acc: 0.5000
What am I doing wrong?

A softmax layer with one neuron makes no sense, since of the softmax function will always be 1.0. If you want to do a binary classification you either have to use a one one neuron with sigmoid activation neuron or two neurons with softmax activation.

Unfortunately, that didn't really help. The accuracy is still the same on each iteration epoch for the validation data set, and is always around 0.45.

i had the same issue and this got fixed by changing "Sigmoid" for the 1 Neuron Dense Layer to "Softmax".


Create Largest three numbers.cpp

#include
using namespace std;
int main()
{
int arr[3],i;
int maximum = arr[0];
int third=arr[0],second=arr[0];
for (i=0; i<=3 ; i++)
{
cout<<"The elements in the array are:"<<endl;
cin>>arr[i];
}
for(i = 0; i <= 3; i++)
{
if(maximum < arr[i])
{
        third = second;
        second = maximum;
        maximum = arr[i];

    }
    else if (arr[i] > second)
    {
        third = second;
        second = arr[i];
    }
    else if (arr[i] > third)
    {
        third = arr[i];

    }

}
cout<<maximum<<second<<third<<endl;
return 0;

}

Hello. It appears this PR is for the wrong project, so I'm having to close it.


feat: 新增画圈能力

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.yuhuai seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.yuhuai seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


feature request (ng new): add option to generate hmr-ready app

Please consider enable ng new some-project --hmr to generate hmr-ready app. A sample blue print is here. After code is generated, we can do something like ng serve --hmr -e=dev-hmr to use the hmr feature. Thanks.

This is not something we wish to add to the base blueprint. In the future, when the custom blueprints functionality is added, you should be able to use custom blueprints.


Support char_length and numeric_precision options

@z3z1ma please, pay attention, that this PR is required to support DBT 1.8

@z3z1ma please notice this PR relies on changes introduced in #164


client/init.js did not work

Hello,
I tried
// file: client/init.js
Meteor.startup(function() {
  Uploader.finished = function(fileInfo, templateContext) {
    Uploads.insert(fileInfo);
  }
})

(from README.md)
but did not work.
I solved by moving the file to root (and checking if isClient, and using templateContext)
// file: init.js
if (Meteor.isClient) {
  Meteor.startup(function() {
    Uploader.finished = function(fileInfo, templateContext) {
      Uploads.insert(templateContext);
    }
  });
}

I tried this because of the File Load Order.
Thanks

Rafael, yes, this has to be executed only on the client, so your solution is correct. I do not understand yet, why would you insert template context to DB?

I guess this all changed when I added the correct version of server to Meteor repository.

Fixed in 1.1.1

Thanks. It is working fine :)
About the Template Context question, it is strange, but it is returning the fileInfo for me (i have no idea why).
I added:
console.log(fileInfo);
console.log(templateContext);

And it is returning
0
Object {name: "myfile.txt", size: 16, type: "text/plain", path: "/myfile.txt", url: "http://localhost:3000/upload/myfile.txt"}

Is this happening only with me? Should i create another issue on GitHub, or we talk here?

Rafael, please, check out the documentation. There were breaking changes in 1.1.1, when server is now returning fileInfo for better control. Making it work again is simple by using fileInfo.name.

I will close this issue, please reopen if necessary.

Thanks.
Just confirming, it is working fine.
Probably i made an mistake with finished callbacks.


bug: unable to upload files (http-framework)

Is there an existing issue for this?

[X] I have searched the existing issues

Description of the bug
Interaction fails when uploading files
Steps To Reproduce
Code to reproduce:
const file = await getImgBuffer(); // getting any image buffer
const embed = new EmbedBuilder().setImage('attachment://image.png').toJSON(); // embed builder from @discordjs/builders

return this.message({
	files: [{ name: 'image.png', data: file }],
	attachments: [{ id: '0', description: `image desc`, filename: 'image.png' }],
	embeds: [embed]
});

Expected behavior
Send an embed with an image that was attached
Screenshots
Interaction simply fails
Additional context
No response

I have the same issue.


fix 404 not found #34

fix 404 not found when 'enablePrettyUrl' set to true by default

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
comma-separated list of tickets #34

Merged. Thanks!


fix notebook 4_operationalization.ipynb

Under  Check environment settings, In the  az ml env set command replace --cluster-name by correct argument --name

--name is not present in ubuntu .
Closing this pull request and recreating new one


[Question] About pointers

Hi guys, I was checking the code and a question came up:
in product_service.go this function returns a pointer to the ProductService struct
func NewProductService(
	productRepository repositories.ProductRepository,
	sellerRepository repositories.SellerRepository,
) *ProductService {
	return &ProductService{productRepository: productRepository, sellerRepository: sellerRepository}
}

but in infrastructure layer product_repository.go this function returns a ProductRepository interface and the method returns a pointer to the concret implementation: GormProductRepository.
func NewGormProductRepository(db *gorm.DB) repositories.ProductRepository {
	return &GormProductRepository{db: db}
}

From my point of view the NewProductService function should return the interface type to ensure that the consumer has access only to the public methods defined by the interface.
I would like to know the difference between these cases, thank you very much.

Thanks @sklinkert!


Add support for other Xbox Controllers

Hello, I was wondering if it would be possible to add multiple controller support for the USB Host Shield? Below you can find the Vendor ID as well as Product IDs of the controllers I would like to add support.

Model
VendorID
ProductID

1914
VID_045E
PID_0B12

1797
VID_045E
PID_0B00

1698
VID_045E
PID_02E3

1708
VID_045E
PID_02EA

I believe the only controller missing is the original Xbox One controller, which I do not have a hold of. But according to the internet, it's the model # 1537. Which should be the following:

Device DetailsXbox One Controller

Type
Information

ID
02D1

Vendor DetailsMicrosoft Corp.

Type
Information

ID
045E

Oh, interesting. None of my controllers seem to work. Maybe my issue is with the USB HostShield. I know you mention to get the one RoHS, but even though the vendor claimed it was Android compatible, it doesn't have the labels you specified. I will try to get a different USB HostShield.

Closing this issue. I now know where to add missing controller PIDs. So I can open a PR, if needed, once I get the new USB Host Shield. Thanks!

Unfortunately those shields are finicky.
I gave that general guideline going off of what I could see in pictures.
The bad ones use 74HCT125 chips for both level translators, the good ones will follow the original design and use a 74HCT125 for the 5V side and a 74AHCT125 on the 3.3v side.
I can say that I've ordered two from that AliExpress vendor linked in the readme (maybe a year apart) and had no issues.
I'm considering just laying out my own board and selling that at cost just so that there isn't a need to deal with this.

Hello, I simply wanted to give an update that after getting the new USB Host Shield, my Xbox controllers are being detected. Thanks again for your amazing help and support!! :)


Can't get any javascript fucntions to work

I've been struggling to get this and Foundation 6 working in a rails 5 app for over a day now, I can't get it to display any menus properly. Any help is appreciated.

I seem to be having a similar issue. The javascript for dropdown menu will work on initial page load, but will break (not re-initialize, I guess), when moving to another view...

Cant get this gem to work with rails 5

@eliotc1986 It sounds like this is related to TurboLinks. Try adding gem 'jquery-turbolinks'
Then modify your Foundation initialisation to:
$(document).on('turbolinks:load', function() {
  $(function(){ $(document).foundation(); });
});

@Dannyguk Thanks for your response, it seems like our problem was related to turbolinks like you say. For our project, we ended up removing the turbolinks from our application.html.erb page

I made a new project without turbo links, still can't get java script to work

I just dropped the Javascript lib because it doesn't work at all. Using only CSS right now.

@kurko – there's no 'foundation' with type 'application/javascript' found in include paths. That's the problem (with Rails 5, at least).

Hi all - any progress on this?
I've used Bower in Rails to wire this up in the past, and may look to fall back to that for now.

In Rails 5.1 I get error "couldn't find file 'foundation' with type 'application/javascript' with turbolinks and without turbolinks.

With the help of @bdesmarez I've gotten this resolved. I  had to reorder and fine tune the order of loaded assets as below, and then change the $(document).on('turbolinks:load', function() as suggested by @Dannyguk
I've included my entire application.js  code below. You also have to add the jquery-turbolinks gem to your gemfile (and bundle install)
On a related note, I believe that the foundation gem README could use a little work...as I found it a bit confusing, and if this is an issue after install it's possible the readme address correcting it by hand so that the framework actually works?
(I'm a bit new to all of this, hopefully not overstepping.
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require turbolinks
//= require jquery.turbolinks
//= require jquery_ujs
//= require foundation
//= require_tree .

$(document).on('turbolinks:load', function() {
  $(function(){ $(document).foundation(); });
});

I've dropped 'foundation-rails' usage for 'bin/yarn add foundation-sites' instead (Rails 5.1).
It forced me to make a bunch of customisations though, but now my app has a full set of Foundation 6.3.1 features without any problem.

I've dropped 'foundation-rails' usage for 'bin/yarn add foundation-sites' instead (Rails 5.1).
It forced me to make a bunch of customisations though, but now my app has a full set of Foundation 6.3.1 features without any problem.

Can you explain a little how you went about this? I'm fairly new to NPM, and javascript packages and using it with rails has be even more confused.
I'd like to use the SASS version of foundation-sites so I can customize the _settings.scss file as needed. I'm also interested in trying to use style-sherpa that's included with foundation-sites to create a living style guide for our rails app.
We're running on an old rails app, but it's just been upgraded to 5.1.2.

I still cannot get Foundation 6 dropdown menus to work with Rails. The instructions of @jeremyawhitman don't seem to do the trick for me.

Hello,
I managed to make this work on a rails 5.1 application without removing anything.
I posted my solution on stackoverflow: https://stackoverflow.com/questions/45754280/foundation-rails-6-3-10-and-rails-5-1-3-javascript-is-not-working-tap-bar-is-onl/46103701#46103701

Railsa 6.0.3
Ruby 2.6.0
I had an issue with some of my javascript not working.  I'm working for someone right now (beginner) and I'm building the back-end of a website with someones front end template coded in html/css and javscript imports.  I'm using bootstrap along with general.js and jquery-3.4.1.
My problem was that some of my javascript would load but some wouldn't, in fact some of the modals(drop downs) for other features wouldn't load.  Also, the javascript in question(nav bar) would work on initial load, but when I rendered another view(redirect) the nav bar would not work.  It was frustrating because there weren't any errors.  Heres what I did and I hope it helps:
First take a good look at your application.js structure, some files may be dependent of one another.  For instance my jquery and boostrap files were dependent of general.
I also did:
yarn add jquery
I have my javascript set up through application.js as rails should have it and my application.js file looks like this:
require("@rails/ujs").start()
require("turbolinks")
require("@rails/activestorage").start()
require("channels")

require('packs/general')
require('packs/jquery-3.4.1.min')
require('packs/bootstrap.bundle.min')

//= require_tree i18n

require('packs/picker')
require('packs/picker.date')
require('packs/picker.time')

require('packs/dropzone-amd-module.min')
require('packs/dropzone.min')

require('packs/dropzone')

require('packs/select2')
require('packs/select2.min')

I first got my nav bar to start working when I removed the .start() from turbolinks require.  I don't know why it worked, but that seems to be the problem.
Also have this in my webpack.config (this helped me fix an issue with jquery not being loaded directly) I had an error in my inspect for this:
const { environment } = require('@rails/webpacker')

const webpack = require('webpack')
environment.plugins.prepend('Provide',
    new webpack.ProvidePlugin({
        $: 'jquery/src/jquery',
        jQuery: 'jquery/src/jquery'
    })
)
module.exports = environment


Make Ulimit use Long instead of Integer

We need to store values greater than Integer can represent.
Fixes #550.

Current coverage is 45.88% (diff: 100%)

Merging #563 into master will not change coverage

@@             master       #563   diff @@
==========================================
  Files           130        130
  Lines          4304       4304
  Methods           0          0
  Messages          0          0
  Branches        636        636
==========================================
  Hits           1975       1975
  Misses         2143       2143
  Partials        186        186

Powered by Codecov. Last update 9f9523a...2cfc220


performance improvement possible in child designation

To create a child designation, we are making three ctx:query calls to each child pico to piece together the designation.
We ought to make it the responsibility of the child to produce the designation, so reducing our need to a single ctx:query.

The three ctx:query calls are in these lines of the parent pico.


Missaplied names get lost in name search

Missaplied name usages returned from the search are missing the namePhrase and/or accordingTo sec reference:

Discovered in original backend API issue #841

The readonly Taxon.accordingTo property was not stored in elastic


🐛 [Photoprism] strange update version

sorry to bother you, is this version suppose to be like this?
I really care of photoprism and I wouldn't like to destroy everything updating :)

However honestly I really recommend you to always have regular backups in case anything goes wrong

thanks! I will update that.
ofc I have backups, but the least I use those the happier I am ;)

Ahah, fully agree with you! Btw have you tried immich? I don't understand the buzz about people saying they move from photoprism to it, currently it seems photoprism is more robust with its face algorithm, places, and ability to use an existing photo structure. Photoprism is super fast too :)


Obsolete code

Starting from step "Updated OnAuthorizationCodeReceived action in ./App_Start/Startup.cs" I get a lot of obsolete errors, like this:
Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0619	'ConfidentialClientApplication.ConfidentialClientApplication(string, string, ClientCredential, TokenCache, TokenCache)' is obsolete: 'Use ConfidentialClientApplicationBuilder instead. See https://aka.ms/msal-net-3-breaking-changes'	CPMAzurePlugin	C:\Users\user\source\repos\CPMAzurePlugin\CPMAzurePlugin\App_Start\Startup.cs	91	Active
Also looks like TokenCache is not required anymore.

Can you please update the code or suggest a workaround to so I can use it?

@jasonjoh Seems to be related to the donet tutorial.

Yes this tutorial is a bit outdated with the newer versions of MSAL. It may be a while before I can update this, but in the meantime, you can see the version of this tutorial over in the Graph documentation, which uses the latests SDKs: https://docs.microsoft.com/graph/tutorials/aspnet

Please Jason Joh try to update the code asap! please!

Tutorial has been retired per https://github.com/OfficeDev/outlook-dev-docs/pull/851.


[BUG] wrong result of any_change output

Is there an existing issue for this?

[X] I have searched the existing issues

Does this issue exist in the latest version?

[X] I'm using the latest release

Describe the bug?
any_changed output is false even though a file supplied in files input has been modified.
To Reproduce
These steps have to be defined:
- name: Check whether proto files have changed
  id: protos-changed
  uses: tj-actions/changed-files@v13
  with:
    files: |
      services.proto

- name: Run if proto file has changed
  if: steps.protos-changed.outputs.any_changed == 'true'
  run: echo proto files have changed

What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
Expected behaviour is to output any_changed as true if a file supplied in files input has been modified.
Relevant log output
Getting diff...
  Added files:
  Copied files:
  Deleted files:
  Modified files: .github/workflows/build.yaml protobuf/src/main/protobuf/services/v1/services.proto
  Renamed files:
  Type Changed files:
  Unmerged files:
  Unknown files:
  All changed and modified files: .github/workflows/build.yaml protobuf/src/main/protobuf/services/v1/services.proto
  All changed files: .github/workflows/build.yaml protobuf/src/main/protobuf/services/v1/services.proto
  All modified files: .github/workflows/deploy.yaml protobuf/src/main/protobuf/services/v1/services.proto

Anything else?
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@kaslav The log output above seems to be missing some vital information can you download the full log or copy all outputs generated by tj-actions/changed-files
Downloading the log archive

You might also need quotes around:
echo proto files have changed -> echo "proto files have changed"

Here is the output generated by tj-actions/changed-files
2022-01-09T12:37:21.3867008Z ##[group]Run tj-actions/changed-files@v13
2022-01-09T12:37:21.3867697Z with:
2022-01-09T12:37:21.3868278Z   files: services.proto

2022-01-09T12:37:21.3869350Z   token: ***
2022-01-09T12:37:21.3869873Z   separator:
2022-01-09T12:37:21.3871278Z   sha: 03ea2f34d4c05de1eb26fdb7029803599f653da5
2022-01-09T12:37:21.3872120Z   since_last_remote_commit: false
2022-01-09T12:37:21.3872705Z env:
2022-01-09T12:37:21.3873258Z   JAVA_DISTRIBUTION: adopt
2022-01-09T12:37:21.3873877Z   JAVA_VERSION: 16
2022-01-09T12:37:21.3874722Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-01-09T12:37:21.3878175Z   JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/16.0.2-7/x64
2022-01-09T12:37:21.3878976Z   COURSIER_BIN_DIR: /home/runner/cs/bin
2022-01-09T12:37:21.3880365Z   VERSION: prevent.running.protos.generation.job-03ea2f3-SNAPSHOT
2022-01-09T12:37:21.3881606Z ##[endgroup]
2022-01-09T12:37:21.3926672Z ##[group]Run bash $GITHUB_ACTION_PATH/sourcefiles.sh
2022-01-09T12:37:21.3927716Z bash $GITHUB_ACTION_PATH/sourcefiles.sh
2022-01-09T12:37:21.3967646Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail ***0***
2022-01-09T12:37:21.3968351Z env:
2022-01-09T12:37:21.3968936Z   JAVA_DISTRIBUTION: adopt
2022-01-09T12:37:21.3969543Z   JAVA_VERSION: 16
2022-01-09T12:37:21.3970401Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-01-09T12:37:21.3974159Z   JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/16.0.2-7/x64
2022-01-09T12:37:21.3974979Z   COURSIER_BIN_DIR: /home/runner/cs/bin
2022-01-09T12:37:21.3976500Z   VERSION: prevent.running.protos.generation.job-03ea2f3-SNAPSHOT
2022-01-09T12:37:21.3977828Z   INPUT_FILES: services.proto

2022-01-09T12:37:21.3978505Z   INPUT_FILES_FROM_SOURCE_FILE:
2022-01-09T12:37:21.3979126Z ##[endgroup]
2022-01-09T12:37:21.4071494Z ##[group]changed-files-from-source-file
2022-01-09T12:37:21.4216165Z Input files: services.proto
2022-01-09T12:37:21.4244933Z ##[endgroup]
2022-01-09T12:37:21.4328636Z ##[group]Run<EMAIL_ADDRESS>2022-01-09T12:37:21.4329250Z with:
2022-01-09T12:37:21.4329813Z   files: services.proto
2022-01-09T12:37:21.4330456Z   files-separator:
2022-01-09T12:37:21.4331483Z   token: ***
2022-01-09T12:37:21.4332121Z   follow-symbolic-links: true
2022-01-09T12:37:21.4332804Z   separator: |
2022-01-09T12:37:21.4333444Z   strip-top-level-dir: true
2022-01-09T12:37:21.4334068Z env:
2022-01-09T12:37:21.4334641Z   JAVA_DISTRIBUTION: adopt
2022-01-09T12:37:21.4335236Z   JAVA_VERSION: 16
2022-01-09T12:37:21.4336085Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-01-09T12:37:21.4339559Z   JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/16.0.2-7/x64
2022-01-09T12:37:21.4340333Z   COURSIER_BIN_DIR: /home/runner/cs/bin
2022-01-09T12:37:21.4341670Z   VERSION: prevent.running.protos.generation.job-03ea2f3-SNAPSHOT
2022-01-09T12:37:21.4342932Z ##[endgroup]
2022-01-09T12:37:21.4394341Z ##[group]Run actions/github-script@v5
2022-01-09T12:37:21.4394986Z with:
2022-01-09T12:37:21.4395971Z   github-token: ***
2022-01-09T12:37:21.4397229Z   script: const path = require("path");

const *** GITHUB_ACTION_PATH *** = process.env
const ACTION_PATH = path.join(GITHUB_ACTION_PATH, "main.js")

const main = require(ACTION_PATH)
await main(*** core, glob ***)

2022-01-09T12:37:21.4398384Z   debug: false
2022-01-09T12:37:21.4399039Z   user-agent: actions/github-script
2022-01-09T12:37:21.4399756Z   result-encoding: json
2022-01-09T12:37:21.4400497Z env:
2022-01-09T12:37:21.4401063Z   JAVA_DISTRIBUTION: adopt
2022-01-09T12:37:21.4401684Z   JAVA_VERSION: 16
2022-01-09T12:37:21.4402552Z   CLOUDSDK_METRICS_ENVIRONMENT: github-actions-setup-gcloud
2022-01-09T12:37:21.4405993Z   JAVA_HOME: /opt/hostedtoolcache/Java_Adopt_jdk/16.0.2-7/x64
2022-01-09T12:37:21.4406790Z   COURSIER_BIN_DIR: /home/runner/cs/bin
2022-01-09T12:37:21.4408113Z   VERSION: prevent.running.protos.generation.job-03ea2f3-SNAPSHOT
2022-01-09T12:37:21.4409598Z   GITHUB_ACTION_PATH: /home/runner/work/_actions/tj-actions/glob/v3.2
2022-01-09T12:37:21.4410422Z   INPUT_FILES: services.proto
2022-01-09T12:37:21.4411085Z   INPUT_FILES_SEPARATOR:
2022-01-09T12:37:21.4411764Z   INPUT_FOLLOW_SYMBOLIC_LINKS: true
2022-01-09T12:37:21.4412404Z   INPUT_SEPARATOR: |
2022-01-09T12:37:21.4413031Z   INPUT_STRIP_TOP_LEVEL_DIR: true
2022-01-09T12:37:21.4413683Z ##[endgroup]
2022-01-09T12:37:21.5296695Z
2022-01-09T12:37:21.5298787Z
2022-01-09T12:37:21.5432668Z ##[group]Run # "Set base sha..."
2022-01-09T12:37:21.5433337Z # "Set base sha..."
I’ll suggest taking a look at https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet to update the pattern.
Future work would be to warn when patterns don’t match any files

Thanks. Indeed it was a problem with the pattern.


refactor: avoid NPE with equals

Checks that any combination of String literals is on the left side of an equals() comparison
Use this link to re-run the recipe: https://public.moderne.io/recipes/org.openrewrite.recommendations.CodeHealth?organizationId=R3JhZGxl

@zieka Thanks for the contribution. Could you please sign off the commit? https://github.com/gradle/common-custom-user-data-maven-extension/pull/127/checks?check_run_id=13555819686

We will have to make the same change for the CCUD plugin for Gradle.


Failed to parse JSON on www.rtp.pt

Checklist

[X] I'm reporting a broken site support issue
[X] I've verified that I'm running youtube-dl version 2021.06.06
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar bug reports including closed ones
[X] I've read bugs section in FAQ

Verbose log
iMac:~ bruno$ youtube-dl --verbose https://www.rtp.pt/play/p9165/e562949/por-do-sol
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.rtp.pt/play/p9165/e562949/por-do-sol']
[debug] Encodings: locale US-ASCII, fs utf-8, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2021.06.06
[debug] Python version 2.7.16 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[RTP] e562949: Downloading webpage
ERROR: e562949: Failed to parse JSON  (caused by ValueError("Expecting ',' delimiter: line 2 column 36 (char 37)",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 906, in _parse_json
return json.loads(json_string)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting ',' delimiter: line 2 column 36 (char 37)
Traceback (most recent call last):
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
ie_result = self._real_extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/rtp.py", line 37, in _real_extract
'player config'), video_id, js_to_json)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 910, in _parse_json
raise ExtractorError(errmsg, cause=ve)
ExtractorError: e562949: Failed to parse JSON  (caused by ValueError("Expecting ',' delimiter: line 2 column 36 (char 37)",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Description
youtube-dl has always been working for rtp.pt videos but in the past few days it stopped working.

... in the past few days ...

Only now? See #29458.
I have some fixes prepared but not yet in a PR; in any case no PRs have been committed to the released version for some weeks.

Well, for some reason I was unable to search the open issue list for this behavior and thought it was new - I see it's duplicated, already reported, much more well documented than I could ever document it and incorrect as - and I've checked it - the last time I used youtube-dl on the site was on June 2020. Seemed like it was yesterday.
Should I close it as a duplicate, @dirkf ?

By all means. PR #29824, when it gets merged, will fix the problem.

Duplicate of #29458


temporal, citation, and provenance

This adds citation and provenance metadata to the Source class, and adds more detailed temporal metadata.  These changes are motivated by conversations I've had with FA.
Although the citation and provenance metadata is accessible by linking to the ore:Aggregation, we want to include it here so that if the ore:Aggregation disappears, as they sometimes do, we can retain the information here.
FA has decided that for the primary source sets time periods, she is going to use the US History Content Standards eras. Since we now have time periods with start and end dates, I took a stab at representing them using DC's PeriodOfTime class.
A particular concern is this: As far as I know, the US History Content Standards do not have an RDF expression (maybe worth double-checking).  So, the URL that I used for @id is not any sort of official RDF URI, it's just the web page where the info exists.  Is that a legit way of representing that this time period term comes from a standardized vocabulary?  Is there a better way?

I'd like to put this through a JSON-LD parser and spot check. Can probably get to that tomorrow morning.
Will try to close #2 in the process.

I added a JSON-LD linter to the specs on this branch. One of the
@AudreyAltman do you mind if I push to the branch so we can resolve this here? Or should I push a separate branch and add comments there?

@no-reply go ahead and push to the branch!

With 77ee335, this closes #2.

The fix for the JSON turned out to be very small. The linter should make it easy to catch this in the future.
I think we should merge this as is, and create a task in Redmine to double check the RDF output, and check that it matches up with the actual application data.

The linter looks great.  I made one small suggestion, but otherwise I think this is ready to :squash: and :merge:

I did the rebase, on this one, and have a code in two of the commits, perhaps @anarchivist or @markbreedlove should merge? :)

Sorry for the delay ...


Add names to names index during sector sync

When new names are created in the draft catalogue these also need to be added to the mapdb persisted NameIndex instance

not anymore: #361


rename "Executing" step to "Executable"

Description
I missed this in previous code reviews, but I think "Executable" is a better term for this step.  Executing sounds like an active process, whereas this is something to act on.
Like Queueable / Queued we should call this Executable / Executed
Notes
This should have no impact other than changing the badge to Executable.

@herbig -- the reason this was left as "Executing" is that this matches the name of this phase in the Usul ProposalState enum on their contracts.
Doesn't mean we have to keep it, just noting why it's named what it is.

@herbig -- the reason this was left as "Executing" is that this matches the name of this phase in the Usul ProposalState enum on their contracts.
Doesn't mean we have to keep it, just noting why it's named what it is.

ah right.. blugh.  Executing is really misleading here


Type in font size

Thank you!
Please the css id/class list is missing, and I would like to know how can I set the TYPE IN- font size, not the log list of chat.
Thank you!

@losbellos you can find an example CSS in C:\Users\<you>\.skylobby\custom.css, although it's very basic and I need to actually add classes for things. The reference JavaFX CSS is here, and you can add styles for these classes too https://gist.github.com/maxd/63691840fc372f22f470
As for the chat input box, not sure there's a way to customize the size for that right now, but I can add it.

Hej, there is no css class for the TYPE IN   in it at the moment. Please add if you can, There are loads of classes in that file that doesn't even relate.
IK

I added css classes for the chat input in latest version https://github.com/skynet-gh/skylobby/releases/tag/0.7.38
You can modify .skylobby/custom-css.edn and add "-input" {:-fx-font-size "20"} next to "-user-list" under .skylobby {"-chat" {...
So your final file might look like:
{".root"
 {:-fx-base "rgb(20, 20, 20)",
  :-fx-accent "rgb(50, 50, 50)",
  :-fx-background "rgb(0, 0, 0)",
  :-fx-control-inner-background "rgb(30, 30, 30)",
  :-fx-selection-bar-non-focused "rgb(40, 40, 40)"},
 ".styled-text-area" {:-fx-background-color "rgb(0, 0, 0)"},
 ".text-field" {:-fx-prompt-text-fill "rgb(180, 180, 180)"},
 ".skylobby"
 {"-normal" {"> .ikonli-font-icon" {:-fx-icon-color "white"}},
  "-chat" {"-user-list" {:-fx-text-fill "lightgrey"}
           "-input" {:-fx-font-size "20"}}}}

Let me know if you run into issues.

1000xTHX It works , and the chat input scales automatically. Perfect! 👍 👍 👍

1000xTHX It works , and the chat input scales automatically. Perfect! 👍 👍 👍


Shapes don't match

Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.
Thank you!

[X] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

[X] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

[ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

from keras import backend as K
tensor = K.one_hot(indices=3, num_classes=5)
The shape of this tensor is (1, 5). However Keras requires the shape to be (None, 1, 5) during the LSTM training process and throws this error
ValueError: Error when checking input: expected lstm_1_input to have 3 dimensions, but got array with shape (1, 5)
I traced down to the training.py, and I found the expected shape is (None, 1, 5).
I tried to use K.zeros(shape=(None, 1, 5)) to define the tensor, but I can't update the value at a specific index from 0 to 1.
Is there any way to make the one-hot array the correct shape? Thanks!

K.one_hot is intended to get indices array and return the same but encoded in one-hot format.
According to documentation:
Computes the one-hot representation of an integer tensor.
    # Arguments
        indices: nD integer tensor of shape
            `(batch_size, dim1, dim2, ... dim(n-1))`
        num_classes: Integer, number of classes to consider.
    # Returns
        (n + 1)D one hot representation of the input
        with shape `(batch_size, dim1, dim2, ... dim(n-1), num_classes)`

So, I guess you're doing something wrong by K.one_hot(indices=3, num_classes=5).
What exactly you want to convert to one_hot? Maybe you missed a tensor write somewhere here.


Strip UTF Byte Order Mark from TOML configs before parsing.

Some systems save UTF files with a pre-defined Byte Order Mark (BOM)
at the very beginning of the file's data which is not properly handled
by Go nor the TOML parser library, so the BOM must be explicitly stripped
before attempting to parse the config files' contents.
Signed-off-by: Nashwan Azhari<EMAIL_ADDRESS>

We could upgrade go-toml instead.
https://github.com/pelletier/go-toml/issues/250

That fix looks to have been merged long time ago; isn't it yet in the version we use? 🤔

Sadly the fix in in v2, which is finally released in this April.
https://github.com/pelletier/go-toml/releases/tag/v2.0.0

I was looking at the commit, which seems to be in older releases, so wondering if the fix is only a partial fix (and needs more?) https://github.com/pelletier/go-toml/commit/539dd095b346bc48c8d9348137b9535ac1efa133

You are right. The version we are using have the BOM-removal logic.
https://github.com/pelletier/go-toml/blob/v1.9.3/toml.go#L468-L488
@aznashwan What is the containerd version you are using? Can you reproduce the issue with the latest main build?

@kzys great catch, I was testing the other day against in an old Windows 2019 VM I had set up in April when I noticed the issue and blindly decided to fix it.
I can confirm this is not an issue with the latest containerd, so I'll be closing this now, sorry for the bother...


Support servant cannot be read

Preparation

[X] I tested the latest release
[X] I looked at other issues (even the closed ones)
[X] I read the Troubleshooting Guide

FGO server
NA
FGA build number
2087
Describe the bug
I started the FGA after the latest update.
Now usually it the support caster artoria would boost my Muramasa along with my own. But now support caster artoria keeps boosting herself instead of Muramasa. Also i cannot start the record option.
Please help.
Video
I am not able to
Device model
Xiaomi 11X Pro
Android version
13
Screen size
1080 x 2400
RAM
8GB

Skill confirmation is on by default after the last update if you didn't set it to off during the initial setup that was introduced during the latest update

Thanks it works now

Thanks it works now


Enable BorderOption by default

I was wondering if there is any reason why a BorderOption object is disabled by default?
https://github.com/amzn/sketch-constructor/blob/master/models/BorderOptions/BorderOptions.js#L65
I'd suggest we either make it enabled by default or add the isEnabled flag to the constructor. What do you think?

Hah, generally the answer to "is there any reason" for anything this repository right now is "probably not". How about lets do both? Enabled by default and add the flag to the constructor. If you want to post a PR I can merge it, or I can get to it as well. If possible, it would be nice to have unit tests as well for the classes moving forward. I know the unit tests are very sparse right now, but I want to have better tests moving forward.
Thanks for bringing this up, I'm sure there are tons of other issues like this...

@dbanksdesign Alright, I will take care of it today. I've been working quite a lot with the library in the past few days and saw a few other things, that I wouldn't mind discussing with you and potentially changing around. let's do thisssss 🤓

fixed in https://github.com/amzn/sketch-constructor/pull/14


Error on Package Manager : certificate has expired

on Bot Framework Composer getting below error message on click of ' Package Manager' after this search is working but unable to Install any package as getting same error again
**"Could not load component list:Error certificate has expired *** Could not merge components *"
Version details from 'About' is
Version:  2.0.0
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
tried BotFramework-Composer-2.1.2-windows AND BotFramework-Composer-2.0.0-windows
OS is Windows 11 (22H2 Build 22621.2361)
Bot Framework Composer  & Windows both are up to date
.NET SDKs installed:
3.1.426 [C:\Program Files\dotnet\sdk]
7.0.203 [C:\Program Files\dotnet\sdk]
7.0.401 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Duplicate https://github.com/microsoft/BotFramework-Composer/issues/9653


Imposed a barrier on infilling the same follower and leader

Pull request
Please confirm that this pull request has done the following:

[x] Tests added
[x] Documentation added (where applicable)
[x] Example added (either to an existing notebook or as a new notebook, where applicable)
[x] Description in CHANGELOG.rst added

Adding to CHANGELOG.rst
Please add a single line in the changelog notes similar to one of the following:
- (`#XX <https://github.com/znicholls/silicone/pull/XX>`_) Added feature which does something
- (`#XX <https://github.com/znicholls/silicone/pull/XX>`_) Fixed bug identified in (`#YY <https://github.com/znicholls/silicone/issues/YY>`_)

I've realised while away that there is in fact a use-case for leader = follower (using a whole-pathway method to infill times not present in the original data) so I guess we don't want to commit this after all

I've realised while away that there is in fact a use-case for leader = follower (using a whole-pathway method to infill times not present in the original data) so I guess we don't want to commit this after all

Ah true. It's not a bad strategy to add it now (perhaps raise a NotImplementedError) so that you can then unlock it in future once we've got it working. This will prevent people from receiving cryptic errors. So are you happy to re-open and merge and then we make a new PR to close #31 in future?

I believe this is already a usable use-case with the RMSClosest cruncher, which at least technically fulfills #31 (in a potentially rather discontinuous way). We can of course work on other, better infillers for this, and should check that this works now.

Ok cool I'll leave #31 open then until you're happy with whatever solution you derive.


sidecar: Unable to connect to Azure storage on 0.4.0

Thanos, Prometheus and Golang version used
Docker image: improbable/thanos:v0.4.0
What happened
Thanos sidecar container is having errors resolving Azure storage endpoint when updating image to 0.4.0 from 0.3.1.
What you expected to happen
No errors, as nothing else changed.
How to reproduce it (as minimally and precisely as possible):
Run prometheus with a sidecar container
- image: improbable/thanos:v0.4.0
  name: thanos-sidecar
  args:
  - sidecar
  - --prometheus.url=http://<IP_ADDRESS>:9090/
  - --tsdb.path=/prometheus
  - --cluster.disable
  - --grpc-address=[$(POD_IP)]:10901
  - --objstore.config=$(OBJSTORE_CONFIG)
  env:
  - name: POD_IP
    valueFrom:
      fieldRef:
        apiVersion: v1
        fieldPath: status.podIP
  - name: OBJSTORE_CONFIG
    valueFrom:
      secretKeyRef:
        key: thanos.yaml
        name: thanos-objstore-config
  ports:
  - containerPort: 10902
    name: http
    protocol: TCP
  - containerPort: 10901
    name: grpc
    protocol: TCP
  - containerPort: 10900
    name: cluster
    protocol: TCP

apiVersion: v1
kind: Secret
metadata:
  name: thanos-objstore-config
data:
  thanos.yaml:
# Data shown here is not literal value
type: AZURE
config:
  storage_account: "thanosaccount"
  storage_account_key: "key"
  container: "thanoscontainer"
  endpoint: "https://thanosaccount.blob.core.windows.net/"

Full logs to relevant components
Sidecar Logs

level=info ts=2019-05-17T06:21:53.355636937Z caller=flags.go:87 msg="gossip is disabled"
level=info ts=2019-05-17T06:21:53.355912237Z caller=main.go:257 component=sidecar msg="disabled TLS, key and cert must be set to enable"
level=info ts=2019-05-17T06:21:53.355950837Z caller=factory.go:39 msg="loading bucket configuration"
sidecar command failed: create AZURE client: Azure API return unexpected error: *pipeline.pcError
: -> github.com/Azure/azure-pipeline-go/pipeline.newDefaultHTTPClientFactory.func1.1, /go/pkg/mod/github.com/!azure/azure-pipeline-go@v0.1.8/pipeline/core.go:234
HTTP request failed

Put https://thanosaccount.https://thanosaccount.blob.core.windows.net/thanoscontainer?restype=container&timeout=61: dial tcp: lookup thanosaccount.https on <IP_ADDRESS>:53: no such host

Anything else we need to know
This looks like an issue in the way the configuration is parsed to get the storage endpoint to call.
@vglafirov

I think the issue might be here https://github.com/improbable-eng/thanos/blob/master/pkg/objstore/azure/helpers.go#L33. Sorry I've never used golang before

I updated from
config:
  storage_account: "thanosaccount"
  storage_account_key: "KEY"
  container: "thanoscontainer"
  endpoint: "https://thanosaccount.blob.core.windows.net/"

to
config:
  storage_account: "thanosaccount"
  storage_account_key: "KEY"
  container: "thanoscontainer"
  endpoint: ""

And things are working now. I'm honestly not sure why I was using endpoint: "https://thanosaccount.blob.core.windows.net/" in my old setup. Perhaps I'll update the docs to show what each field is for.

Hi, i had the same configuration and after deleting endpoint it worked. I think docs still miss information about each field.

:+1:


Bad request on dj-rest-auth/facebook/

Hi, i'm having a problem with facebook auth.
I'm getting a token from a test user in facebook dev dashboard and trying to create a new user from it (the token is from facebook api v5.0 and i tried with v7.0 too, both gives the same error). I'm sending the token in dj-rest-auth/facebook but it gives the following error:
HTTP 400 Bad Request
Allow: POST, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "non_field_errors": [
        "User is already registered with this e-mail address."
    ]
}

When i tried to use the allauth default "accounts/login/" it works normally. That probably means the facebook is configured correctly.
Here is my url.py:
from django.conf.urls import url, include
from .views import FacebookLogin
from allauth.account.views import ConfirmEmailView

urlpatterns = [
    path('accounts/', include('allauth.urls')),
    path('dj-rest-auth/', include('dj_rest_auth.urls')),
    path('dj-rest-auth/registration/', include('dj_rest_auth.registration.urls')),
    path('dj-rest-auth/facebook/', FacebookLogin.as_view(), name='fb_login'),
]

and my views.py:
from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter
from dj_rest_auth.registration.views import SocialLoginView

class FacebookLogin(SocialLoginView):
    adapter_class = FacebookOAuth2Adapter

I don't have registered users.

Solved, it was a permission issue from facebook. The user must allow to share his email (you can configure changing test user permission on facebook dev dashboard to include email).


Technical Advisory 104309

Technical Advisory 104309
Preview: src/current/advisories/a104309.md

Nick approved offline.


Drop the need for the little-proxy-maven-plugin and replace any tests that need with an alternative solution

Task Description

[ ] Drop the little-proxy-maven-plugin from the strongbox-security/strongbox-security-api/pom.xml and any references to it in Maven profiles.
[ ] Check what tests (if there are still any) need this plugin.
[ ] Remove the little-proxy-maven-plugin from the strongbox-parent.
[ ] Remove the little-proxy-maven-plugin from the strongbox-docs.

Note: This task is similar to #1080.
Help

Our chat
Points of contact:

@carlspring
@sbespalov
@fuss86

Won't drop.


fix(firebase_auth): Fix PlatformException to FirebaseAuthException error message parsing

Description
The message field of FirebaseAuthException contains broken JSON when receiving BLOCKING_FUNCTION_ERROR_RESPONSE
see (https://github.com/firebase/flutterfire/issues/11532)
Related Issues
Fixes: firebase/flutterfire#11532
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (melos run analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

FYI; I was able to reproduce this when I implemented a blocking function:

You need to run melos run format in the project to fix formatting CI. Install melos by running:
dart pub global activate melos

Formatted the file, thanks!

@russellwheatley Could you check again, please?

Hey @Isti01 - sorry about the delay. do you mind resolving the conflicts and we can look to get this approved/merged? Thanks.

Hey @russellwheatley, I resolved the conflicts

Hi! @russellwheatley! I addressed the changes you requested but the merging is still blocked due to an unadressed change request, which is weird. Is that an issue?


Missing event time in resulted events

Hi,
Thank you for your interesting findings and this repository.
I executed the main.py file using the sample data you provided and it generated some .txt files as the results. Each of these .txt files contains a list of text segments, newsworthiness value and some segments related to each extracted segment. I believe each .txt file describes a single event. But, there is no any detail about the event occurred time written in result files.
According to the results shown in Table 1 and Table 4 of the paper (SEDTWik: Segmentation-based event detection from tweets using Wikipedia), both event information and date (event occurred time) was identified using SEDTWik. Is there any missing section in this repository or do I have to change some configuration to get event times? Or does your solution only result the events in the inserted file without identifying the subwindows they occurred?

Hi @HHansi, the model was run one by one for all the days that's why we know what date it occurred. Our current model is not able to find when exactly an event occurred but you still get to know within which time window it occurred


Investigate option to extend .babelrc

Provide a mechanism to allow developer to extend our .babelrc? https://babeljs.io/docs/en/options#extends

Note: we removed .babelrc in favor of pulling it directly into the babel-loader section of webpack.base.conf.js.


New package: BellSoft.LibericaJRE.11.Full version 11.0.21+10

Pull request has been created with Komac v1.11.0 :rocket:

Resolve https://github.com/microsoft/winget-pkgs/issues/113719

Microsoft Reviewers: Open in CodeFlow

@wingetbot waivers Add Validation-Domain


chore(Algebra/GroupPower/Order): Fix "See also" comment

Reported by Alex here

LGTM
maintainer merge


Towards v2.0

This branch develops the new version of the website.

Everything looks good to me. Please move dist to web branch


Adding new KafkaListenerEndpointRegistry.getListenerContainersMatchingId(predicate: Predicate<String>)

Expected Behavior
Would be nice to have method...
kafkaListenerEndpointRegistry
            .getListenerContainersMatchingId( id -> id.startsWith(prefix))
           .forEach(MessageListenerContainer::start)

Current Behavior
kafkaListenerEndpointRegistry
            .getListenerContainerIds()
            .filter( id -> id.startsWith(prefix))
            .forEach(id -> kafkaListenerEndpointRegistry.getListenerContainer(id).start())

Context
I run application that starts/stops listeners at certain time(office hours)
We have listeners with ids such as...

listener_product_purchase
listener_product_purchase-retry-0
listener_product_purchase-retry-1
listener_product_purchase-dlt

... this, generated by @RetryableTopic configuration.
Just some syntactic sugar.

Sounds reasonable.
Any chances that you can contribute such a feature: https://github.com/spring-projects/spring-kafka/blob/main/CONTRIBUTING.adoc ?
Thanks

Sure 👍🏼


Generate summary slide with number of slides per section

For larger slide decks, having a way to generate a summary of the sections with underlying # of slides would be quite useful. Maybe ideally in a sort of SmartArt Hierarchy/List shape. Would be a way to create overview slides or provide info on volume to structure presentations.
Alternatives:
Slide Sorter view can show #slides per section if you collapse all sections.
(Note: I seem to be unable to add an "enhancement" label to the issue to mark it as a feature request.)

Hi @Vadigor, you mean that the taglines of the slides in the section are pasted into a shape? There is a function now that does it for the whole deck.
In any case, will look into this. Currently bit limited time to work on it, but hope to do some updates in dec/jan.


System.import w/ expression within a target=node bundle

I'm submitting a bug report
Background
I used Webpack 2 to bundle my SSR React app.  I bundle both the client and the server (i.e. target=web|node).
Within my configuration I am trying to use the dynamic module imports feature to do code splitting on my routes (i.e. System.import('../components/App/views/' + viewName + '/index.js')) .  This code will get run my the node bundle, which fails.
Webpack version:
2.1.0-beta.25
Please tell us about your environment:
Mac OS 10.11.6 || Windows 7
Node 6.6.0
Current behavior:
I get the following error when running my app:
TypeError: __webpack_require__.e is not a function
    at webpackAsyncContext (C:\Projects\ctrlplusb\react-universally\build\server\webpack:\src\shared\components\App\views async ^\.[\](\w|\s|-|_)*[\]index\.js$:14:1)
    at Object.getComponent (C:\Projects\ctrlplusb\react-universally\build\server\webpack:\src\shared\routes\index.js:35:5)
    at getComponentsForRoute (C:\Projects\ctrlplusb\react-universally\node_modules\react-router\lib\getComponents.js:29:16)
    at C:\Projects\ctrlplusb\react-universally\node_modules\react-router\lib\getComponents.js:41:5
    at C:\Projects\ctrlplusb\react-universally\node_modules\react-router\lib\AsyncUtils.js:84:5
    at Array.forEach (native)

Expected/desired behavior:
The System.import should resolve without an error.
Steps to reproduce:
I don't have a "minimal" example, however I have a fairly minimal example in my boilerplate app:
https://github.com/ctrlplusb/react-universally
Run the following commands:
git clone https://github.com/ctrlplusb/react-universally
cd react-universally
git checkout tags/v4.1.0
cp .env_example .env
npm install
npm run development

Then open your browser, the default location is http://localhost:1337.  You should see the error message I described above.
Here is the System.import expression:
      new webpack.ContextReplacementPlugin(
        /components[\/\\]App[\/\\]views$/,
        new RegExp(String.raw`^\.[\\\/](\w|\s|-|_)*[\\\/]index\.js$`)
      ),

Research I performed

It fails on a unix/windows machine.
I am running a ContextReplacementPlugin instance on the dynamic path to make the regex matching less greedy.  I removed this thinking it may be causing the error but it had no effect.
When I introduced System.import statements that contained full paths, rather than a dynamic one (e.g. System.import('../components/App/views/Home/index.js') the application ran without errors on a Window system.
I created a simple client side only (i.e. target=web) app and placed a System.import containing a dynamic expression within this app.  This also ran with no problem.

Language:
ES6/7

Apologies, did further investigation.  This is not a windows only issue.  It's happens on any server (i.e. target node) bundle.  I had a misconfiguration on my unix clone of my app which meant the code in question wasn't being hit.

Could you paste the regexp used with the ContextReplacementPlugin?

@sokra I have updated my original post to be more reflective of my latest findings. i.e. it's a cross platform issue.  Occurs when executing a target=node webpack bundle that includes System.imports with expressions within.
I have included the regex I use for the ContextPlugin in the post, but here it is again:
      new webpack.ContextReplacementPlugin(
        /components[\/\\]App[\/\\]views$/,
        new RegExp(String.raw`^\.[\\\/](\w|\s|-|_)*[\\\/]index\.js$`)
      ),

@sokra please hold off investigating this.  I don't want to waste your time.  I am trying to create a minimal repo that can represent the error.

I managed to create a minimal example where the system.import statement actually works!  I don't think this is an issue with with webpack anymore.  I did some digging and think the issue may be with react-router.
In my application I create a function and then provide it to a react-router configuration.
Here is a cut down brief example:
const resolveAsyncView = (viewName: string) => {
  return (nextState, cb) => {
    System.import('../components/App/views/' + viewName + '/index.js')
      .then(module => cb(null, module.default))
      .catch(err => console.log(err));
  };
};

const routes = (
  <Route path="/" component={App}>
    <IndexRoute getComponent={resolveAsyncView('Home')} />
    <Route path="about" getComponent={resolveAsyncView('Index')} />
  </Route>
);

export default routes

I checked the call stack for the error, and found the place where react-router makes the getComponent call to the function I provided.
It does the following:
getComponent.call(route, nextStateWithLocation, callback);

Ouch!  So it looks like it is switching out the scope, which is making the webpack dynamic require go out of scope and hence the error?
This is my current guess. Will report with final feedback.

When I get time I will try create another minimal example that illustrates the issue.

Egg on my face!!!
I am so sorry @sokra and @bebraw this is completely my fail.
Erroneous webpack configuration causing the issue:
new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }),

Doh!  Looks like this will override any attempt for a System.import to do dynamic chunking.


"Get Spotify Premium" Softlock Until Logout

🧐 Have you read the FAQ and viewed similar issues?

[X] I have read the FAQ
[X] I have checked older issues, open and closed
[X] I did a clean install of SpotX as described in the FAQ

What is your Spotify Plan?
Free
Do you have Spicetify installed?
No
ℹ Computer information
- Spotify: <IP_ADDRESS>4.g07f1e963
- Windows: Windows 10 21H2
- PowerShell: 5.1.19041.1682

📝 Description

Opened Spotify and got the message "Get Spotify Premium," softlocking my client until I logout. Clean install and all methods tried.

📸 Screenshots

which patch installer did you use ?

Tried 'usual installation' and 'automatic full'

Its an account that had premium but lost it. But, it was still working before that for a few weeks and suddenly giving me this issue

Okay, and now this dialog appears every time after starting the client and you can't close this one, right?

Correct just suddenly even with a fresh install

Need to test
You can download this xpui.zip, rename it to xpui.spa and replace your xpui.spa with it, located here %appdata%\Spotify\Apps

That seems to work for now, thank you

Screenshot or video ?

Found the issue:
Logging in with my USA account works but with South Korea, it doesn't work because there is no free tier. Will be an issue for those countries that don't have free tiers.

Do you know what other countries also do not have a free plan?

It looks like this is only possible in South Korea.

xpui.zip
Found another way, you can try to replace xpui.spa again and check on your South Korean account
If that doesn't help, then I probably don't have any more ideas.

Yep no luck, thank you for trying though

ok anyway it's not a problem with the mod as there is simply no free usage in this region.
I will add this information a little later to the FAQ
Thanks


Doesn't Open over Lock Screen

With the latest update 1.9, that brought loyalty cards back there's a new bug introduced. When on Locked Screen and trying to open the power menu CPM flashes and disappears, requiring unlock or fingerprint. Only works when the phone is unlocked.
Sidenote:
Another minor bug I noticed is when "Show loyalty cards" is disabled and enabled again, the switch for "allow loyalty cards on lockscreen" doesn't work. Only the toggle, somehow tapping the toggle's label makes a switch. The same it's true for all loyalty cards related switches when toggling "Show wallet" off and on.

#143


[Test] Fix some broken and unstable cypress selectors

Motivation and Context
 Due to some UI changes the DOM selectors we use in the cypress modeling exercise tests dont work any more. I update the selectors in this PR.
I also found some unstable selectors leading to flakiness in other tests which i adapt as well.

Description
 I update the relevant DOM selectors in the related page objects.
Steps for Testing

I have created a tutorial for how to test cypress PRs HERE
Please test all .spec files that were changed in this PR or ideally all of the existing ones.
Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

tests pass on this branch on Bamboo


Add handling for None values

Should fix https://github.com/dckiller51/bodymiscale/issues/30 and https://github.com/dckiller51/bodymiscale/issues/22 (did for me).

Hello, thank you for your contribution. I just tested and got another error.
My test is with a sensor.weight = unavailable
Logger: homeassistant.helpers.event
Source: custom_components/bodymiscale/body_metrics.py:16
Integration: Bodymiscale (documentation)
First occurred: 1:24:17 (2 occurrences)
Last logged: 1:24:17

Error while processing state change for sensor.weight_aurelien
Error while processing state change for sensor.weight_siham
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 272, in _async_state_change_dispatcher
    hass.async_run_hass_job(job, event)
  File "/usr/src/homeassistant/homeassistant/core.py", line 433, in async_run_hass_job
    hassjob.target(*args)
  File "/config/custom_components/bodymiscale/__init__.py", line 169, in _state_changed_event
    self.state_changed(event.data.get("entity_id"), event.data.get("new_state"))
  File "/config/custom_components/bodymiscale/__init__.py", line 192, in state_changed
    self._update_state()
  File "/config/custom_components/bodymiscale/__init__.py", line 219, in _update_state
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 464, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 500, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/config/custom_components/bodymiscale/__init__.py", line 297, in state_attributes
    lib = body_metrics.bodyMetrics(weight, height, age, gender, 0)
  File "/config/custom_components/bodymiscale/body_metrics.py", line 16, in __init__
    elif weight < 10 or weight > 200:
TypeError: '<' not supported between instances of 'str' and 'int'

Adding this seems to work. What do you think about it?
        if impedance is None and weight is None:
            pass
        elif problem_sensor == "weight unavailable":
            pass

Okay, apparently there is another case that triggers a similar error. I have added to your code.


open epub file from url

Hi. I copied your codes to the main branch manually as I'm deleting experiments branch, thus, I'm closing your PR, thanks!


BLE HID Device: mouse button not working on macOS (working properly on Windows) (IDFGH-10540)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.1-rc2
Operating System used.
macOS
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32S3-DevKit1c
Power Supply used.
USB
What is the expected behavior?
While sending the left button signal of mouse, the left click should be performed on computer. the x and y axis input should work the same.
What is the actual behavior?
Not respond to any button commands in the HID mouse first button region, including left click, right click and middle click. the axis x, y, all works fine.
This behavior only appears on macOS. It works perfectly on windows.
Steps to reproduce.

compile the ble hid device demo under bludroid, modify the demo function to:

void hid_demo_task(void *pvParameters)
{
    vTaskDelay(1000 / portTICK_PERIOD_MS);
    send_volum_up = true;
    while(1) {
        vTaskDelay(300 / portTICK_PERIOD_MS);
        if (sec_conn) {
              esp_hidd_send_mouse_value(hid_conn_id, 1, 0, 0, 0);
        }
    }
}

flash it to board and connect it from the macOS, wait for it to perform left click;

Debug Logs.
Nothing strange on log, I even checked with the x,y axis and they both work

More Information.
also checked with iPad and it seems not working on all Apple devices

I tried to capture the raw hid data received by Mac, and appears as following:
Handle Value Notification - Handle:0x0039 - Report - Value: 0001 0000

I also tried to reverse the bit order, and appears as
Handle Value Notification - Handle:0x0039 - Report - Value: 8000 0000

Both of them can not trigger a click on macOS

Solved, I tried disable the hid descriptor of the part I didn't use, seems to be the consumer device part is affecting the mouse button on macOS.

It seems that when the consumer device component is enabled, Apple devices classify the HID as a consumer device rather than a mouse.

We have fixed the issue with the BLE HID device. Please use the latest branch.
Alternatively, you can also use the following commits:
Commit https://github.com/espressif/esp-idf/commit/c73d7c0b600517221e11b5fe54fe9e3c160a0963 improves the compatibility of the HID device on the Windows platform.
Commit https://github.com/espressif/esp-idf/commit/5727802497b0504167216932af6d08a392845c6e enhances compatibility with iOS and macOS.
Commit https://github.com/espressif/esp-idf/commit/b90dc6a515f69d9b9a2a9401f873186167f5562f adds support for the HID device control point feature.
Commit https://github.com/espressif/esp-idf/commit/f7e174e9487cc218b92cffee9dc5953e962e0ff4 improves compatibility with Android versions after 10.


RecordHeads Function

In core.go file you have recordHeads func,there is a problem there that you may send null as parameter of "other parent" to addSelfEvent func. (see image)
This fact may fill the graph with events that have just self event even though they aren't first of their creator.

Hey,
This is done on purpose. There is no problem inserting Events
with no other-parent.
We create such Events when we want to submit new transactions
as part of a gossip push.


import machine drivers for machine pools from extensions

import machine drivers for machine pools from extensions

closed as work done by Nancy is so much better 🙏


route response include invalid JSON ,,

a common route instruction include strings like:
["Enter round-about and leave at second exit","Frederiksgade",6,10,,"10","NE",22.5]]
which contain two commas after each other. this fails to parse as valid JSON using the ruby JSON gem 1.6.1

Same problem if you request a route that has no result. In this case "route_geometry" should be ": null" but just doesn't have any value -> JSON parsing error
{"version": 0.3,"status":207,"status_message": "Cannot find route between points","route_summary": {"total_distance":0,"total_time":214748365,"start_point":"unknown street","end_point":"unknown street"},"route_geometry": ,"route_instructions": [],"via_points":[],"transactionId": "OSRM Routing Engine JSON Descriptor (v0.2)"
}

Acknowledged. Working on a fix right now.

The two-comma issue is fixed with latest push to master repo, The other issue may be unrelated because the output for queries that yield not route is:
{
"version": 0.3,
"status": 207,
"status_message": "Cannot find route between points",
"route_summary": {
"total_distance": 0,
"total_time": 214748365,
"start_point": "unknown street",
"end_point": "unknown street"
},
"route_geometry": "",
"route_instructions": [],
"via_points": [],
"transactionId": "OSRM Routing Engine JSON Descriptor (v0.3)"
}
So, route geometry gives an empty string.

thanks, parsing now works correctly


Added CreateDatabase and DropDatabase completions

Two new Completion were added to fix the following messages:
skunk.exception.SkunkException:
🔥
🔥  SkunkException
🔥
🔥    Problem: Just constructed an unknown completion 'DROP DATABASE'.  Note that
🔥             your program has not crashed. This message is here to annoy you.
🔥       Hint: Please open an issue, or open a PR adding a case in Completion.scala
🔥             and a parser in CommandComplete.scala
🔥

skunk.exception.SkunkException:
🔥
🔥  SkunkException
🔥
🔥    Problem: Just constructed an unknown completion 'CREATE DATABASE'.  Note that
🔥             your program has not crashed. This message is here to annoy you.
🔥       Hint: Please open an issue, or open a PR adding a case in Completion.scala
🔥             and a parser in CommandComplete.scala
🔥

Thanks!


Defines the effective period in months or years

[Enter feedback here]
The Doc says: The shelf life defines the effective period of a product as measured in days, months, or years.
My question is how to defines the effective period in months or years? I couldn't find any where to access it.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5e2303ed-fc7f-b601-bd1a-9c43a6949cec
Version Independent ID: 0185aef3-42c0-84ff-cb7c-449890e3e8cf
Content: Reset shelf life dates for an inventory batch
Content Source: dynamicsax2012-technet/reset-shelf-life-dates-for-an-inventory-batch.md
Product: dynamicsax-2012
GitHub Login: @Khairunj

This content is archived.


Page is Out  of date.

You have made changes and added a new interface for AAD. Please update this article with the new screen shots of where Secuirty and Properties can be found to get to the AAD properties.  4-19-23

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 965d1d2f-81dd-8057-5a13-4f75cfe0c1f7
Version Independent ID: 7bd2fc7a-93dd-9081-6d98-3e28fdebe342
Content: Turn on MFA with security defaults or Conditional Access - Microsoft 365 Business Premium
Content Source: microsoft-365/business-premium/m365bp-conditional-access.md
Service: microsoft-365-security
Sub-service: m365bp
GitHub Login: @denisebmsft
Microsoft Alias: deniseb

@Scarkal Thank you for your feedback. We will update the screenshots in the document shortly.
Thanks
Sri

@Scarkal Thank you for your feedback. I see the navigation and the properties page to be the same as mentioned in the document

Thanks
Sri


use onRequestPermissionResult to handle async permission request

Addresses issue #39
Uses cordova.requestPermission in order to have async call to onRequestPermissionResult
This is checked for success and calls either the callback or errorback.

thanks!


aas discovery refactoring

Adjustments after discussing the purpose of aas discovery in idta workstream "rest api".
In general - the assetIds provided in get-request must be AND connected - not OR.

Thanks a lot! We will handle the merge conflict and include it afterwards in the main branch.


amazing, but fails to install

Hi, this seems like an amazing plugin
yet when I try to install via the obsidian it says failed to install
best
Z

I messed with the version number should be fixed now, restart obsidian and try again

I was able to reproduce this and solve it, on my end. Closing now, if it's still a problem reopen the issues


How does Koel get album / artist covers?

So far it has managed to get no covers for any albums and/or artists I have, while they do show up in any other media player, so hence my question, how does Koel get the album covers, or how does it fetch them? from the song meta data or from a 3rd party (e.g last.fm or something)?

Ok so I see it does all of this in Album.php#L68, but doesn't seem to actually work tough. Any thoughts?

I also had some issues here: When importing Koel tries to put the images in /img/covers, a folder that does not exist at the time. When accessing the covers it looks at /public/img/covers. The problem is, that this Laravel project is setup to have the index.php and .htaccess in / instead of /public. Therefore Laravel thinks the public_path() is / and not /public.
Quick fix: Change link 72 in Album.php to
$coverPath = public_path().'/public/img/covers/'.$fileName;

Clear the DB and reimport your music.
Better solution:

Move index.php and .htaccess to /public
Adapt templates and remove "public" path segment since public is the new root
Adapt your web servers docroot to the public folder
Reimport your music

Yup. Went with the quick fix on this one and worked brilliantly. I do understand the use case for storing index and .htaccess in / instead of /public, for example shared hosts which do not allow anything up from public_html, but then public_path() should also be changed accordingly from the get-go. Either way, thank you @cgrossde .

Thanks. Let's discuss in the PR.


Bump vault-package to v2.0.1

https://github.com/obervinov/vault-package/releases/tag/v2.0.1

done
https://github.com/obervinov/users-package/pull/20/commits/9395e7af137da850af913b07d1c31111fe2fdde7


CONTENT COMPONENT

Feature: Content Component
Description
This PR introduces the Contact component for the site, and a suite of unit tests for the component.
Changes
Frontend:

Added Contact component
Added unit tests for the Contact component
Updated page.tsx for conditional rendering of the new component

Testing

Manual testing was conducted in the dev server/browser and in the terminal
Unit tests all pass (8 suites)

Notes

N/A

Checklist

[x] Code compiles correctly
[x] All tests passing
[x] No merge conflicts

Reviewers
Requesting review from @jonbrunt
Tags
#enhancement

Looks good. I am going to expand the current open Issue #21. We need to go back over the components for a final look at consistency in the components and the testing. We also need to reword some of the test descriptions, remove redundant tests (such as those repeating a length check in a forEach() ), and add comments in all applicable files as already noted. Let's look at unit testing for any remaining pertinent files, then move on to integration tests, e2e tests, snapshots, and integrating this all into the CI pipeline. We also need to deploy and establish a CD pipeline.
Will merge, and delete the feature branch.


canActivate() Guard with Meteor.user()

Not sure if this is angular2-meteor related but I am just trying my luck here...
What I am trying to do is to implement a CanActivate guard for a route which basically:
a. Activate a route if user is logged in or
b. Redirect user to login page if user is not logged in
The idea should be pretty simple - Here is my auth.guard.ts:
import { Injectable } from '@angular/core';
import { CanActivate, Router } from '@angular/router';

@Injectable()
export class AuthGuard implements CanActivate {
  constructor(private router: Router) {}

  canActivate(): boolean {
    let canActivate: boolean = (Meteor.user()) ? true : false;

    if (!canActivate) {
      this.router.navigate(['/login']);
    }
    return canActivate;
  }
}

And of course my app.routes.ts would be something like this:
import { provideRouter, RouterConfig } from '@angular/router';

import { LoginComponent } from '../auth/login.component';
import { FooComponent } from '../foo/foo.component';

export const routes: RouterConfig = [
  { path: '', redirectTo: '/foo', pathMatch: 'full' },
  { path: 'foo', component: FooComponent, canActivate: [AuthGuard] }
  { path: 'login', component: LoginComponent },
];

export const APP_ROUTER_PROVIDERS: any = [
  AuthGuard,
  provideRouter(routes)
];

However, whenever I try to access the url http://bar.com/foo it always redirects to the login page http://bar.com/login even I was logged in.
Did some troubleshooting and noticed Meteor.user() = undefined and therefore canActivate returns false and redirects to the login page, which I suspect the canActivate() function returns before Meteor.user() has a value assigned.
In angular 1 I used to handle this with promises but I am just not sure how to handle this in Angular 2?

Hi @derek-fong ,
Please try to use https://github.com/Urigo/angular2-meteor-accounts-ui package, it exposes AuthGuard which can provide you the same functionality.
Also, another possible solution, I think that you can return a Promise in your canActivate, and then you can wait for Meteor to load and then check if there is a user connected (using Autorun), and the to resolve the promise.
Please re-open if you still have issues.

I have the same problem
I checked meteor accounts ui example you are using routing like
{ path: 'guarded', component: GuardedComponent, canActivate: [AuthGuard],}
what if i need to redirect user to the login page?.
@dotansimha  if you can post a snippet it will be appreciated.
thank you

Try changing your AuthGuard in the following way. Using Meteor.user() is not the perfect solution here, because it takes to long to load. Instead you can use Meteor.userId(), which should be here right from the beginning. It is working for me, and I hope this is working for you too.
`
import { Injectable } from '@angular/core';
import { CanActivate, Router } from '@angular/router';
@Injectable()
export class AuthGuard implements CanActivate {
constructor(private router: Router) {}
canActivate(): boolean {
let canActivate: boolean = (Meteor.userId()) ? true : false;
if (!canActivate) {
  this.router.navigate(['/login']);
}
return canActivate;

}
}
`

thanks @styssi  for your post but the problem here is that i need to check user permissions if he allowed to access this route or not, with just Meteor.userId() you can't did it.

I also have same issue, don't know how to check Meteor.user() correctly in canActivate.
Any Guru, please help, many thanks. :)

@mragwa Did you find the solution for checking user permissions in canActivate()? i also need to access the user object instead of only Meteor.userId()

for sorry NO, and still on my list but i take a step forward on my application and i will back to it, or some one get a solution :D

Hi,
Meteor.user() sometime is undefined ... in our case we use next snippet code in component ngOnInit (attention! no in canActivate) method:
Tracker.autorun(() => {
      let user = Meteor.user();

      // vendors permission
      if (!PermissionUtil.doesUserHavePermission(user, 'vendors')) {
        this.zone.run(() => this.router.navigate(['/']));
      }

    });


The CSS-File of the last page is broken

The CSS-File of the last page is broken. This leads to a suboptimal page rendering.

Insofar as this relates to the "broken" summary page, this issue is not related to the plattform but to the coaches. Prolem was a wrong link in summary.jsp. The cysec-coach-template PR contains a fix.


⚠ Bofrost.lu has degraded performance

In af2ad0f, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1957 ms

Resolved: Bofrost.lu performance has improved in af62e03 after 6 minutes.


add rawBytes content support

Hi this is an awesome project!
In our flutter App we need to use bytes data in Qr like this: QR content for offline signature is not String.
So I did some modification and upgraded qr.dart  to ^1.3.0 to support rawBytes content.

Closing but incorporated your commits into #97 (with full credit)