need more lesson

Challenge Name

Issue Description

Browser Information

Browser Name, Version:
Operating System:
Mobile, Desktop, or Tablet:

Your Code

Screenshot

Hi @dreamdone! Can you please add more info to your issue? I'm afraid we can't help if we don't know what's wrong 😀
If you're looking for coding help, please click the help button on the issue.

<EMAIL_ADDRESS>On Oct 29, 2016 10:00 PM, "dreamdone"<EMAIL_ADDRESS>wrote:

Challenge Name Issue Description Browser Information

Browser Name, Version:
Operating System:
Mobile, Desktop, or Tablet:

Your Code
Screenshot
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/11447, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AVwoZlkfukLbkEErjO0IO_V-awLn94nUks5q41F5gaJpZM4KkHnA
.


JavaBeans format for lists not compliant, causes failures with spring boot 3.0.2 when validation of list is added

Describe the bug
When generating a list, the tool adds the suffix 'List', but Java Beans validation in spring boot 3.0.2 relies on full compliance to specifications by using reflection, then the name of fields and the getters should be aligned.
Current behaviour:
field: aliases
generated as: aliasesList
getter: getAliases
compliant to JavaBeans specs: no
Safe behavious
field: aliases
generated as: aliases
getter: getAliases
compliant to JavaBeans specs: yes
How to Reproduce
In spring boot 3.*, try to generate a kafka topic model with validation of a List annotated with @NotNull.
When validation will run, an IllegalStateException will be raised
Expected behavior
The field should be generated without the 'List' suffix in compliance with JavaBeans specification.
( problem is at $$message$$ lines 42 and $$objectSchema$$ lines 24, 26,28,97,127,157,163,169 - I cannot contribute due to company policies )

Hi @jbiscella
Thanks for the report! I will think what could be done (there was a reason to put List in the end)


[Migration tooling] Images

Block Image
A block image is converted to MyST image block directive:
```{image} <image_uri>
:alt: <alt_text>
:class: <classes>
```

Inline Image
An inline image is converted to MyST inline image directive:
![<alt_text>]<image_uri>

We support inline images through:
![<alt_text>](<image_uri>)

Note the parentheses which are required in docs-builder as per common mark specs
@bmorelli25 @siamakp-elastic do we have a few examples of where these are uses in our existing documentation?


feat: allow to customize the Maven prefix for Bazel

Allow to customize the Maven prefix for Bazel (new env variable BAZEL_STRIP_MAVEN_PREFIX) as current default /maven2/ might not work for proxy repos like Nexus OSS

Yeah, that would be even better but there are a couple of solutions out there for Bazel (rules_jvm_external, java_import_external, bazel-deps, etc.). All are configured differently and a WORKSPACE parser would probably need to be quite versatile.

@sebastianvoss, could you share some documentation in a separate ticket? May be there might be some interest in the future.


ALLUSER=1

Hi, in "VDI Installation" point number 2 you have this command line:
msiexec /i <path_to_msi> /l*v <install_logfile_name> ALLUSERS=1
This should be ALLUSER instead of ALLUSERS
msiexec /i <path_to_msi> /l*v <install_logfile_name> ALLUSER=1
You also refer to this page, and that one mentions the right command:
https://docs.microsoft.com/en-us/MicrosoftTeams/teams-for-vdi

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

ID: b2f71d9c-6b35-72c9-dd94-7f62319c1656
Version Independent ID: 86172986-6cc8-eee5-1309-704d9de0dcd0
Content: Install Microsoft Teams using MSI via SCCM
Content Source: Teams/msi-deployment.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: v-lanac

@denniskn @ Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

@officedocsbot assign @scanum

@denniskn Thank you for reaching out and helping improve MS Docs.  I've just had a look at the article and it is currently reading ALLUSER=1. Please let me know if it's reading correctly on your side as well now.

Yes it's OK now. Thank you!


Climbing a table can fail to move the character

if your character sprite bumps a wall or window while trying to climb a table, it fails to move it and you still enter in a "tableclimbing" mode, being able to walk over them and unable to climb again
at the end of the gif I manually walked on the table

This is probably better by design IMO because if a physics object is blocking you you shouldn't necessarily move through it to get on the table.

Fix is to check if the player is on the table after the timer is done. We might be able to do something about moving onto the table once the player collider is not square.

I couldn't replicate this, and as mgs said it's better by design for pixel-movement. Maybe new physics will make it better.


Corruption Issue with ssv2 videos

Hi @bpiyush,
I wanted to evaluate a video-text alignment model on the ssv2-template and ssv2-events dataset. I downloaded the videos from qualcomm website and extracted all the videos from their zip files.
Following this, i was running my code on the extracted webm videos and found that 1989 videos out of 2088 videos are corrupted. The code to load video is here:
from decord import VideoReader
import numpy as np
from PIL import Image

def get_index(num_frames, num_segments):
    seg_size = float(num_frames - 1) / num_segments
    start = int(seg_size / 2)
    offsets = np.array([
        start + int(np.round(seg_size * idx)) for idx in range(num_segments)
    ])
    return offsets

def load_video(path, num_frames=4):
    vr = VideoReader(path, height=224, width=224)
    total_frames = len(vr)
    frame_indices = get_index(total_frames, num_frames)
    images_group = list()
    for frame_index in frame_indices:
        img = Image.fromarray(vr[frame_index].asnumpy()).convert('RGB')
        images_group.append(img)
    return images_group

Have you seen this corruption issue before? If possible, can you share your 2088 val small videos for SSv2 with me on my email?

Hi @Hritikbansal,
I did not face the corruption issue since videos were already downloaded on our servers. I have shared a workaround with you by email.
Closing the issue for now, feel free to reopen if there's anything else on this thread.


Replace divisive language master to main

gm frens 👋
Why
We should move away from divisive/offensive language as much as we can. As a diverse and inclusive commuity it's our job to make sure everyone feels safe and welcome.
You can read more on this statement.
How
Changing the default branch from master to main is very easy and can be done inside the repo settings and any admin should be able to do this.
If for some reason we can't do it from the settings, we could do it manually.
Happy to help if needed!

@Dhaiwat10 I think you should be an admin here. Could we make this change?

I assume it automatically updates all PRs with main as destination but let's double check when making the change

@maximebonhomme thanks for bringing this up. The template we were using unfortunately was quite old and was still using master. Renamed to main just now!


BrowseNodes

Hi Tino,
Are you planning to implement BrowseNodeLookup operation to retrieve various info like child nodes or best sellers for give Category/BrowseNodeID ?
Br, Sergey

Hello Sergey
Yes is planned in one of the next releases.
best regards
Tino

Hi
I have add the method for BrowseNodeLookup.
best regards
Tino


Cloning and some maybe useful functions

Hi.
This is not the first time I use this library for personal purposes, and I still wondered why ByteBuffer is not implemented Clone.
Because in complex scenarios, e.g. multithreading or sharing between multiple channels/consumers/etc, sometimes it's useful to pass the whole buffer by cloning and some implementations strictly depend on Clone, I decided to implement Clone.
I also added some simple tests and useful functions.

Hey, thanks for contributing!
I have not used this lib myself lately, so I'm not aware of what's missing from it, that's the only reason it's not implemented yet.

That's very fast! 😄
The lib is very cool for private small projects. You should use it too, maybe. 🐱
Thanks for accepting and such fast response :)

You were lucky as I was at the computer with a few minutes to spare :D
I published a new version with your changes, I also used this opportunity to cleanup the formatting and now consider the crate worthy of being named 1.0.0
You can now use bytebuffer-rs = "1.0.0" 🎉


The waves doesn't match the sound?

I'm getting bytes with this style;
`byte[] soundBytes = null;
            try {
                InputStream inputStream =
                        getContentResolver().openInputStream(Uri.fromFile(new File(suanki_playlist.get(id).path)));

                soundBytes = new byte[inputStream.available()];
                soundBytes = toByteArray(inputStream);
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }

            seekbar2.setRawData(soundBytes);`

Is it the problem?

Seems okay, but I have 2 questions so far:

What is the size of yout file?  (Like WRITE_EXTERNAL_STORAGE or something like that)

My test file is 7.5 MB and yeah my app got the permission for WRITE_EXTERNAL_STORAGE, does it need more permissions for process?

Couple of screenshots for better understanding,
http://i68.tinypic.com/2q857c6.jpg

I guess you're pointing towards the difference of the wave produced by this library and the proper one from SoundCloud, there's already an issue about it.
As a solution I offered there to use another library which supports different music formats and was written by someone smarter than me, so consider using it
P. S. Right now I don't have that much time to add the support of all the popular music formats (like mp3, which has headers and some another compression-related crap inside it), sorry for that

Oh okay, thanks for the your time by the way your library is grea

Thanks, I'll try to improve it some time


Create proper NoThunks instances

Description
This PR adds proper NoThunks instances for the write buffer and the levels/runs, and includes some fixes for failing NoThunks assertions.
Checklist

[ ] Read our contribution guidelines at CONTRIBUTING.md, and make sure that this PR complies with the guidelines.

The PR is currently kept on draft because there are a bunch of other open PRs that this one is going to conflict with. We should merge those first, since including these NoThunks checks is less critical


golangci-lint: build with go1.20

Description of changes
https://github.com/golangci/golangci-lint/issues/3538
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

What is the advantage of moving to Go 1.20?

see Description of changes.

A package being recently compatible with Go 1.20 doesn't seem to me a good reason to migrate to it. The package works fine on Go 1.19, right?

golangci-lint-1.51.0 built with go1.19 does not work on go1.20.

My bad. It turns out I tested with old version of golangci-lint accidentally. golangci-lint-1.51.0 built with go1.19 works fine.


pull request for e2e test at 12/12/2016 04:56:03

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[macos] Add sudo to SBOM generation

Description
SBOM report generation is failing when executing syft.
Add sudo to override
Related issue:
Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

gh pr checkout 7759###


"What's coming" section of Secure Score refers to December 2021 (4 months ago)

The "what's coming" section of MS Secure Score refers to December 2021 which is four months ago.

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

ID: 655194ea-3741-4039-ad60-cdf633fcec35
Version Independent ID: 6b1877de-1a16-162a-d672-a5d71fb50c42
Content: What's coming to Microsoft Secure Score
Content Source: microsoft-365/security/defender/microsoft-secure-score-whats-coming.md
Product: m365-security
Technology: m365d
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@mcteufelms Thank you for your feedback. The author recently updated the document with the March 2022 data -https://docs.microsoft.com/en-us/microsoft-365/security/defender/whats-new?view=o365-worldwide#march-2022
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @mcteufelms Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Add checksum to release notes

SPIRE needs a checksum specified in order to load the plugins. This change adds the checksums of released plugins to the release notes in github so users don't have to try and calculate them after download.

Thanks... I think it might be better to add them as release text file artifacts though - which is something I thought about adding and then got distracted.

That would work too. Just looking for an easy place to find them for the containers, so you don't have to extract the file from the containers which can be a bit tricky.

Something like this...
https://github.com/boxboat/spire-tpm-plugin/releases/tag/v1.8.7-rc1

Yeah, that looks perfect. We can close this in favor of that if you'd like.
Thanks! :)

Release checksum textiles added to 1.8+


fix: Rule with issuer is not applied when importing via require.context #9309 fix

Currently ContextModule.nameForCondition returns null. Because ContextModule just inherits the default behavior of Module.nameForCondition. This leads to the situation that rules with defined issuer would not apply to such type of Module.
To fix this problem I rewrite the behavior of nameForConditition for ContextModule and return a value of issuers.nameForCondition. But issuer is deprecated in Module so I would be glad if someone suggests a better way
#9309 fix

It's far more complex to fix that. A single ContextModule could be referenced by multiple Modules, so it's entries do not have a single issuer. One could create a context module per original module, but this would create more ContextModule than necessary.
So it's not an easy fix, or an easy fix with trade-offs for all users

Thanks for your contribution. I am closing PR because it is too stale..


[4.2] Guess everything again after fluent attribute change

WHY
Fixes https://github.com/Laravel-Backpack/CRUD/pull/4116
BEFORE - What was wrong? What was happening before this PR?
When using the fluent syntax to add fields, if you defined the entity later on, the model and all other relationship attributes would not get re-calculated.
// for example, if you have two relationships, tags() and categoryTags() on the model,
// pointing to different models, if you did:
$this->field('tags'); // => model is 'Tag'
$this->field('tags')->entity('tags'); // model is 'Tag'
$this->field('tags')->entity('categoryTags'); // model is still 'Tag'

AFTER - What is happening after this PR?
$this->field('tags')->entity('categoryTags'); // model is 'CategoryTag'

HOW
How did you achieve that, in technical terms?
Previously, when the CrudField saved its value differently:

on first save (eg. CRUD->field('tags')) it would use addField(), which guesses missing attributes;
on subsequent saves, (eg. ->entity('tags')) it would use modifyField(), which doesn't do that any more;

After this PR, it uses addField() in both cases. So upon EACH attribute change, using the fluent syntax... it will re-guess the attributes.
Is it a breaking change or non-breaking change?
Should be non-breaking.
How can we test the before & after?
The example above. OR you could test in https://github.com/Laravel-Backpack/CRUD/pull/4116 - with this change, subfields should have their attributes guessed, even if using the fluent syntax.

The only problem I though of, when doing this, was "will this not move the field further down, if called a second time"?
I mean:
CRUD::field('name');
CRUD::field('category');
CRUD::field('name')->label('Customer Name');

My fear was that in this case, the inputs would show up Category & Customer Name instead of Customer Name & Categor, but turns out... no, they show in the correct order. Apparently addField() will not change the order of a field, if called a second time on the same field, it will just update it. Who knew 🤷♂
This is a small change but with interesting implications. Am I missing something @pxpm ? Do you see any other potential problems from doing this?

Pedro has a VERY good point here. We have a scenario that will STOP working because of this. Setting the entity to false in the middle of the definition... that will result in a bloated field definition, that also has attributes it shouldn't have:
        // OwnerCrudController
        CRUD::field('pets');
        dump(CRUD::getFields()['pets']);
        CRUD::field('pets')->entity(false);
        dump(CRUD::getFields()['pets']);
        CRUD::field('pets')->model('App\Models\FriendlyPet');
        dump(CRUD::getFields()['pets']);
        CRUD::field('pets')->attribute('first_name');

Food for thought... in save() we probably need to do smth like overwriteField() instead of addField(). That would solve it.

The bug above? Yeah... it wasn't introduce by this PR. It was there BEFORE this PR 😅
Look, I'm on 4.2... same result:

And it makes sense if you think about it. The FIRST thing you do is define the name, which will do addField() and guess everything. Afterwards... you only use modifyField so you only override attributes, never delete attributes that were inferred.
So technically, this does NOT introduce a bug. It's a non-breaking change, it keeps the same behaviour as before. But it doesn't fix that bug either (if we consider it a bug).

Ok, I think we've analyzed this enough on its own. I'm going to close this because:

it's included in https://github.com/Laravel-Backpack/CRUD/pull/4121 (if that gets merged, so will this)
if we think this is NOT ok, we have an alternative in https://github.com/Laravel-Backpack/CRUD/pull/4122


Add extension.config.js support

The ability to extend config beyond of what Extension.js can provide is our current most wanted feature. I'm also looking for ways to reduce the program size and having optional modules installed via config rather than built-in an this seems the best way to get there.
To extend Extension.js, users would add a "extension.config.js" at the root of their project and install their dependencies.
The schema looks like the below. In the future we will also have the command line arguments defined:
/** @type {import('extension-develop').ConfigFile} */
module.exports = {
  config: (config) => {
    config.module.rules.push({
      test: /\.svg$/i,
      issuer: /\.[jt]sx?$/,
      // exclude react component if *.svg?url
      resourceQuery: {not: [/url/]},
      use: [require.resolve('@svgr/webpack')]
    })

    return config
  }
}

cc @OSpoon to review this one I added an example config-extension-config which uses SVGR. Please review when you get a chance.
cc @wjureczka the example is based on your suggestion in https://github.com/extension-js/extension.js/issues/126 and cc @0xBigBoss this should address your feedback in https://github.com/extension-js/extension.js/issues/142. Free to take a look at the code and suggest improvements/review this PR.

FYI this will be included in the next release (v2.0.0) once #146 is ready


Exception Ticking World

Was just walking around the world and froze then crashed.
heres the crash log - https://pastebin.com/5d5ksAAR
It's happened once before, not sure exactly what causes it.
It could be an interaction with the Extended Animals mod.
I reported this to the dev of Genetic Animals (aka Extended Animals on Github) as well.
Thank you.

Doesn't look like this has anything to do with apoth


Us32 manter trecho

Coverage decreased (-2.2%) to 97.826% when pulling 9de1fa82ff76b981d87faf858da59d2544a06e3a on US32_Manter_Trecho into 27407a500e4ef40513455cd64dfe9d267a87082e on master.

Coverage decreased (-2.2%) to 97.826% when pulling 80c4e3b558c2989346ea1384023ecfd52549d1ff on US32_Manter_Trecho into 27407a500e4ef40513455cd64dfe9d267a87082e on master.

Coverage remained the same at 100.0% when pulling 301da437c4225ada7f83ed5e8705e16f522e038e on US32_Manter_Trecho into 27407a500e4ef40513455cd64dfe9d267a87082e on master.

Coverage remained the same at 100.0% when pulling ae4a618c0d5a0ee3c30ee69e8dcc7f72f4725fa7 on US32_Manter_Trecho into 14f0cbf6c1c8846d2009df71bc3d3279b1f0b304 on master.


Fix parsing cmdline when keys have a dash

If a key has a dash we need to add quotes to it before parsing it with gojq, otherwise it will fail AND the full cmdline will not be parsed!
Fixes: https://github.com/kairos-io/kairos/issues/2343

good one!


Add Db Migration, preferably Automatic

The prior version of Amby had automatic database migration for Sqlite, implemented in ambry/database/sqlite.py:686. The code used the user pragma to store the schema version, and when the version changed, it would run SQL commands. It worked really well, but only for Sqlite.
Ambry 1.0 should have a similar system to detect when the schema version doesn't match the code version and automatically perform and upgrade, at at least notify the user that and upgrade needs to be performed.
In the past, all of the migrations have involved additions, primarily additional columns. Simple migrations should be managed automatically, although more complex migrations may be deferred to a manual process. If the process is manual, there should be an ambry cli command to execute it.

Done. See description here - https://github.com/CivicKnowledge/ambry/blob/ambry1.0/doc/DEVEL-README.md#to-change-models-fields-and-appropriate-database-table-aka-migration

On Aug 1, 2015, at 9:43 AM, Kazbek<EMAIL_ADDRESS>wrote:
Done. See description here - https://github.com/CivicKnowledge/ambry/blob/ambry1.0/doc/DEVEL-README.md#to-change-models-fields-and-appropriate-database-table-aka-migration

The use case of needing credentials for a postgres database is probably pretty general, so the configuration should support production databases too. Here’s a way to do that.
The account entry for this example could be something like:
postgres_<IP_ADDRESS>_ambry:
	user: ambry
	password: secret

( The account file is intended for holding only credentials you want to keep secret, even though it currently isn’t really good at keeping things secret. )
Then when constructing the database, look for an entry in the accounts file of the form: “postgres_{host}_{database}”. Get the username and password, and plug them back into the DSN.
Eventually, we’ll move the accounts file to another centralized key manager, or maybe, in production, into a configuration system like etcd for CoreOS deployments.  In anycase, we’ll have to have a way to store multiple credentials, for both test and production, in the same namespace.
eric.

Eric Busboom<PHONE_NUMBER>
<EMAIL_ADDRESS>http://www.busboom.org

Database credentials from the accounts in my example are production credentials. We do not need test db credentials because I create new empty database by adding _test postfix to the database name. So, accounts do not need to keep two postgres sections for success testing. But, if we'll need two or more postres accounts, we can extend it with some postfix:
postgres
    ...
postgres-dev
    ...
postgres-stage
    ...

and so on. Such values are easier to read and process. My suggestion for postgres credentials:
postgres:
    host: <IP_ADDRESS>
    database: ambry
    user: ambry
    password: secret

On Aug 1, 2015, at 10:31 PM, Kazbek<EMAIL_ADDRESS>wrote:
Database credentials from the accounts in my example are production credentials. We do not need test db credentials because I create new empty database by adding _test postfix to the database name. So, accounts do not need to keep two postgres sections for success testing. But, if we'll need two or more postres accounts, we can extend it with some postfix:

Turns out most of the code for implementing multiple databases, and getting the credentials from the accounts file, was still in the code, left over from the earlier version.
I updated the tests and test files to reflect this usage. See test/bundlefiles/ambry.yaml and test/bundlefiles/ambry-accounts.yaml for examples, and test.test_library.test_config.Test#test_database for usage.
The library.database and library.warehouse configs can be either a DSN, or a name of a database in the database section of the config. In the database section, entries can be either a DSN, or a dict with broken out parts, as in your proposal.
If a username and server is specified, but not a password, the RunConfig.database() method will use the accounts file to get the password.
How about adding a database section to the config, with entries for ‘test-pg’ and ‘test-sqlite’. Then, when running tests, change the config for the library.database entry to either of those names.
eric.

Eric Busboom<PHONE_NUMBER>
<EMAIL_ADDRESS>http://www.busboom.org

Done. I use postgres-test section form the ambry conf. Documentation is updated too.


Add 'azure-storage-explorer'

[X] Checked there aren’t open pull requests for the same cask.
[X] Checked there aren’t closed issues where that cask was already refused.
[X] When naming the cask, followed the token reference.
[X] Commit message includes cask’s name.
[X] brew cask audit --download {{cask_file}} is error-free.
[X] brew cask style --fix {{cask_file}} left no offenses.
[X] brew cask install {{cask_file}} worked successfully.
[X] brew cask uninstall {{cask_file}} worked successfully.

Thanks for the review of @vitorgalvao .

I'll try to follow Token reference, use microsoft-azure-storage-explorer instead.
use version :latest instead.
use license :gratis instead.

Please @mention me after you do, so I get an email to check back.

Closing and opening does not affect Travis. You still haven’t made the fixes.


[Question] Architecture and implementation details

Hi!
First, thank you for the huge amount of work you put in defining a neat and future-proof architecture, and for making it publicly available. I've been waiting for something like this for months.
I have several questions about it (some of it may be exclusively related to Compose/SwiftUI as I'm quite new to native development):

Navigation:

How would you implement a second layer of navigation? e.g. A layer for onboarding unauthenticated users and another for logged-in users.
How would you handle actions depending on a screen's lifecycle? e.g. Doing something when the screen is rendered. Should lifecycle hooks be part of the architecture or should Compose/SwiftUI hooks be used to achieve this kind of action? e.g. A LaunchedEffect hook calls a function defined in the shared module

State:

Do you think this architecture is compatible with any kind of local cache as a single source of truth for the state? e.g. Apollo HTTP/Normalized GraphQL cache
If so, would you implement the caching behaviour inside the runtimecache or the localdb directory?

General:

Don't you think some of the unchanged files included in the sample should be upstreamed and packaged in a multiplatform library or some kind of DSL?

If it helps, here's more information about what I'm trying to build: https://github.com/apollographql/apollo-android/issues/3106
Thanks in advance for your time!

Hi Adrien,
In terms of Navigation:
I haven't implemented a use case where login is involved, however thinking about it, this is probably how I would structure it:

I would define a Login screen, like any other, with its own state and its own events.
Inside the "callOnInit" function of any Screen requiring authentication, I would include the logic that if the user isn't authenticated (you could keep a flag about it, in the NavigationSettings.kt), it would redirect to the Login screen.
At the moment, in terms of screen's lifecycle, I have just defined "callOnInit", which is executed each time the app navigates to that screen. I haven't defined anything like "callOnDisappear", as I haven't found a use case for that yet.
Generally speaking, I would keep actions separated by the UI definition. E.g. I would tend to avoid stuff like LaunchedEffect, as it makes testing more difficult. Better to define actions/events (and any concurrency involved) in the shared code.

In terms of GraphQL:
I think the architecture perfectly fits. You just need to create a new property in the Repository.kt file, calling it for example graphQL. And then define any GraphQL related code inside the "sources/graphQL" directory, similarly to any other source.
In terms of packaging D-KMP files as a multiplatform library:
It might happen eventually, but at the moment the project is still at an early stage, so I prefer to keep the code "in the open", as it's easier to debug and spot any issue.
I hope I was able to give some clarifications.
If you have any other questions, feel free to ask.


[feature request]enhance ANP for yurt-tunnel in raven

At first, this issue is part of #31 , and is used for ANP enhancement. Include the following work:

rebase upstream ANP, including tunnel-agent and tunnel-server
remove interceptor in yurt-tunnel-server in order to reduce the complexity of yurt-tunnel.
based on ANP to implement http.Handler interface, and yurt-tunnel-server will call this handler to forward requests.
based on ANP to implement Agent interface, and yurt-tunnel-agent will call the instance to handle requests from tunnel-server.

I suggest to close this issue because raven l7 solution has already covered this feature.

agree


Implement step and continue buttons

In cooperation with pulse (probably through flags)

a very basic version is implemented


Tic Tac Toe Game

It's a multiplayer game and the players of this game have to position their marks(sign) so that they can construct a continuous line of three cells or box vertically, horizontally, or diagonally. An opponent can stop a win by blocking the end of the opponent's line.

Hi @urvashi-code1255 , I would like to work on this issue.

HI, I am a GSSoC'21 participant and would like to work on this issue. Can you assign this to me?

Hi @urvashi-code1255 , I would like to work on this issue.

Sure @pranabprohit go for it!

Hey @rohansharma4050 Welcome to the project! As @pranabprohit asked first so I assigned this issue to @pranabprohit . You can go for an issue which is not assigned to anyone yet.

Hey @urvashi-code1255, I am part of CWOC so can you please add the required labels. And is their any group for discussion or for asking doubt related to project.

@pranabprohit there is no group for now.
You can ask your doubts in this issue thread!

Hii @urvashi-code1255, I think index.html file got changed earlier it was having more than 500 line of code but now it shows only 150 line. Can you please check.

@pranabprohit Yes, we have moved all the projects card from index.html to script.js. Now you have to add your project detail in script.js.


Create a docker image for this.

To create working docker image of the application,
sbt docker:publishLocal

https://github.com/GSS-Cogs/databaker-docker/blob/master/.github/workflows/dev.yml
https://hub.docker.com/orgs/gsscogs


Add VS Code Development Container settings

Why
An automated way to have a dev environment inside a container that would not clutter your host OS.
It makes it also possible to test/build stuff on Windows as it was on Linux. Personally, I use Win10 with WSL2. The only stuff currently that I saw not working is IPv6. Here is why: https://docs.docker.com/config/daemon/ipv6/
This config may also be used in future to develop using GitHub Codespaces in the browser once it will hit the production.
I feel that it is cool for an open-source repo to have the "environment setup" as easy as possible to welcome contributions. Especially bugfixes 😉
What
Add VS Code development container setting including Docker in Docker and .NET 5.0 with additional .NET Core runtimes.
The development container does not contain the Native (C++) stuff, however, Docker and Docker Compose are available inside. I can work in improving the Dockerfile to make writing C++ more pleasant, but I do not know if it is worth the effort.
The stuff required to this are:

Docker
VS Code with Remote Development extensions

Little more info: https://github.com/microsoft/vscode-dev-containers

work in improving the Dockerfile to make writing C++ more pleasant, but I do not know if it is worth the effort.

Let's hold off on that for the time being.

Change itself LGTM, however, I would like to see the setup/steps in a new md file under docs/.

Agree. Done 😉


Testing a particular notebook not working when run via pytest

I want to test different functions but in a sequential way. so I created one function so that I can test notebooks following an order that I choose.
def test_example():
      nbdev_test_nbs(fname="02_train.ipynb")
      nbdev_test_nbs(fname="03_evaluate.ipynb")

the problem with this is that when I run pytest it is triggering all other notebooks as if the fname parameter is being ignored.

Please try forums.fast.ai for help with nbdev setup


Added missing semicolon to business.html

At the end of the parameterMap.oauth_signature assignment. Thanks for providing this example!

This JS example was removed in #17 ; we'll work on a better JS example in #51 (and make sure it has all the relevant semicolons)!


Vulkan SDK release feature cut-off Friday Dec 2

LunarG is planning the next Vulkan SDK release.
A MoltenVK SDK release for this Vulkan SDK will be made Monday Dec 5.
MoltenVK PRs approved by Friday Dec 2 will be included in this release.
@cdavis5e @spnda @richard-lunarg @KarenGhavam-lunarG

MoltenVK 1.2.1 is now released for Vulkan SDK 1.3.236.


2 mistakes in code

Hello,
Please fix these issues :

in the Controller Delete method,
the line that invoke service method need to use  the object "book" and not the id string.
like this :
_bookService.Remove(book.Id);

In the controller post method create, if you want the "CreatedAtRoute" to work , so the function name of Action "GetBook" must also be "GetBook"
like this :
[HttpGet("{id:length(24)}",Name ="GetBook")]
public ActionResult<Book> GetBook(string id)

if not - it will fail with error 500 "No route matches ....."
Thanks
Eyal

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

ID: 5240866d-d0a1-f0dd-7b2c-203e1d69bc4b
Version Independent ID: 83a5cb3b-23bc-4f0c-cd1c-1d1ffeb1131a
Content: Build web APIs with ASP.NET Core and MongoDB
Content Source: aspnetcore/tutorials/first-mongo-app.md
Product: aspnet-core
GitHub Login: @prkhandelwal
Microsoft Alias: scaddie

in the Controller Delete method,
the line that invoke service method need to use the object "book" and not the id string.
like this :
_bookService.Remove(book.Id);

What problem are you encountering? I tested again with Postman, and it's working for me.

In the controller post method create, if you want the "CreatedAtRoute" to work , so the function name of Action "GetBook" must also be "GetBook"
like this :
[HttpGet("{id:length(24)}",Name ="GetBook")]
public ActionResult GetBook(string id)
if not - it will fail with error 500 "No route matches ....."

I tested this with Postman, and it's working for me. The Location header and 201 response are received:

you are right, I didn't saw that the Remove function in the service have 2 versions. Sorry, my mistake.


Add missing links

Not sure why these two were missing. 🙂

Thanks for the quick merge.
That easy-access 'Edit' button is ruining my productivity! 😄


Fixing the babel, scrypt, and base58 issues

This should hopefully fix a few issues:
Static file loading issues: #388, #395, #393 (I also am not experiencing a #402 CharEnc issue with this build but I am not sure if it fixes it with this)
Scrypt using string for salt: #401
Base58 converting \x00 at begining and ending incorrectly: #380

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks very much for working this out @bwhitn. Apologies for the time it has taken to respond on our end, I've been preoccupied elsewhere. Hopefully we can sort out something to prevent this happening again.


Fix find_spec for old finders that don't implement it.

The code in https://github.com/NVIDIA/numba-cuda/blob/v0.0.17/site-packages/_numba_cuda_redirector.py#L70 is incompatible with legacy finders (pre-Python 3.4) that do not implement the find_spec method. This makes numba-cuda incompatible with Google Colab (see https://github.com/googlecolab/colabtools/issues/5000). For the purpose of RAPIDS 24.12, which is an early adopter of numba-cuda, we need this fix to go into a patch release of 0.0.17 because RAPIDS 24.12 is incompatible with numba-cuda>=0.0.18.

Marking as draft until we can figure out our merging/release strategy. Since numba-cuda has only released patch versions up until now, we will either need to add another release segment just for this case, or make a post release. RAPIDS 24.12 is pinned to <0.0.18 due to incompatibilities that introduces, see https://github.com/rapidsai/cudf/pull/17359.

we will either need to add another release segment just for this case, or make a post release.

Copying what I wrote offline... I think we should release this as <IP_ADDRESS> (adding another component to the version number just for this purpose). This type of change deserves to be a patch release, not a post release, and I can't think of any negative consequences of using a 4-part version for this... it doesn't mean we're committing to 4-part version numbers forever or even for the next release after this.

Ah, crumbs. I rebased this to a branch starting on v0.0.17 and Github's now pulling in all the history from the main branch.

Rebased accordingly.


use Ubuntu 20.04 for CI workflows

Overview
Ubuntu 18.04 -> 20.04 (LTS) for GitHub Actions CI workflows
Related Github Issue
resolves #678
Testing
The agent includes a suite of unit and functional tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here for our unit tests,
and here for our functional tests.
For most contributions it is strongly recommended to add additional tests which
exercise your changes.
Reviewer Checklist

[ ] Perform code review
[ ] Add performance label
[ ] Perform appropriate level of performance testing
[ ] Confirm all checks passed
[ ] Add version label prior to acceptance

Closing in favor of #937


How to test parameters supplied to call?

How to test which parameters was supplied by code under the test?
it('should use propper QS parameter', function(done) {
	mockClient.mockSimpleResponse('/test', {hello: 'world'}, 200);
	webDriver
		.url('http://localhost:4792/codeUnderTest.html')
		.pause(1000)
		.then(function() {
			// codeUnderTest.html call (like /test?foo=bar
			// I need to test:
			// 1. the cal was actually made (one times)
			expect(howManyTimesWasRequested('/test')).toBe(1);
			// 2. the call had specific query string parameter
			expect(actualQueryString['foo']).toBe('bar');
		})
		.call(done)
		.end();
});

Please don't offer to use query string matcher when i configure responst in mockSimpleResponse.
Because i need clear answer when test fail. Like expected 'undefined' to be 'bar'. Not like request blah-blah-blah expected called 1 times but was called 0 times. Thats not true.

There is a retrieve endpoint that can be used to retrieve a list of the requests that have been submitted.  It takes a request matcher so you can retrieve only the requests you are interested in then interrogate them in any way you like.  This is the only existing alternative to the verify endpoint.  However I am currently extending the javascript client to support the retrieve endpoint.  It should be done in the next couple of days.  Currently this endpoint only exists on the server side.
In addition longer term I will support function callbacks when a request is matched on the server side so you will be able to perform any complex logic you want for each request including verifying the request parameters.  This is however a bigger piece of work that involves using websockets and so will take a bit longer before it is available.  I've done some work on this but I want to re-write the ruby client first.

Which client are you using? The browser javascript client or the node javascript client?

It is "A node client for the MockServer" "1.0.6"

ok I have finished implementing this for the browser javascript client, and I'm halfway through doing this for the node client.  The node client takes a little longer as the unit tests are more painful with all the promise callbacks.

If you want to retrieve the exact requests that were sent so that you can make any assertion you can use the retrieveRequests function, for example in nodeunit the code might look as follows:
var client = mockServerClient("localhost", 1080);
client.retrieveRequests("/somePathOne").then(function (requests) {
    // then
    test.equals(requests.length, 4);
    // first request
    test.equals(requests[0].path, '/somePathOne');
    test.equals(requests[0].method, 'POST');
    test.equals(requests[0].body, 'someBody');
    // second request
    test.equals(requests[1].path, '/somePathOne');
    test.equals(requests[1].method, 'GET');
    test.done();
}, function () {
    test.ok(false, "should have sent correct request");
    test.done();
});

The retrieveRequests method takes a request matcher object, a string path matcher or no parameter to retrieve all.
As follows:
// object matcher
client.retrieveRequests({
    "httpRequest": {
        "path": "/.*"
    }
}).then(function (requests) {
    // do something with requests
});

// path matcher
client.retrieveRequests("/.*").then(function (requests) {
    // do something with requests
});

// no parameters
client.retrieveRequests().then(function (requests) {
    // do something with requests
});

This was fixed for the node client in in https://github.com/jamesdbloom/mockserver-client-node/commit/531a8e5608e7230baf5d01e222de5257367fc073

:+1: Thank you.


installer - add switch "upgrade without os upgrades"

allow FWORCH upgrade and do not run "apt upgrade"
this might be a necessary function for some production environments which might not be willing to install all the latest OS upgrades at the same time

done


New cli options to use lutris service_games

Related to https://github.com/PhilipK/BoilR/issues/290
I had the same desire to see all my games in Steam, mostly so I could use deckroulette on them. Lutris seemed like an easy linux based option, so I submitted a pull request to add a new CLI option to Lutris that would extract all of a users games, whether they're installed or not.
https://github.com/lutris/lutris/pull/4990
It uses a different table in Lutris so the fields returned are slightly different, but the same -o and -j arguments still work. I've prepared this pull request in case you're interested in adopting the new CLI option, though given the changes if you are interested it might be best to wait until they next put out a release.
List of changes:

Adds new option to toggle searching just installed Lutris games (defaults to existing behaviour)
Uses the new -a option on the Lutris CLI which returns items from the service_games table instead of games
Updated checks and tests to use fields from service_games table
Changed launch command to lutris:{game_name} as this installs the game via Lutris, or plays it if already installed.

Please let me know what you think, or if you'd like any changes made.
I was also considering a change to the Shortcut object in https://github.com/PhilipK/steam_shortcuts_util/blob/main/src/shortcut.rs to add a field for service like GOG or EGS to help distinguish if you have the same game across multiple services in Lutris/Playnite etc. It could be set to the name of the platform for single service platforms and be shown next to the game title in BoilR.

Very cool! Good job!
I don't see any problems with the code, and it looks like tests will parse as well.
I think this might as well get merged, and then when Lutris releases the feature BoilR will release a new features shortly after as well.
Will you ping me, if you see that they released it?


Sign can be broken by anyone

When sign broken, it displays the message "The shop can only be destroyed by the player owner!", but the event is (as I suppose) not cancelled, so the sign is broken instead of remaining existing.

It turns out, that I had some permissions left, sorry for the inconvience


Update KeyValidate operation

Fixes #109

Best to merge #95 ahead of this PR

@andrewwhitehead @BasileiosKal

As i https://github.com/decentralized-identity/bbs-signature/issues/109#issuecomment-1114727062 in issue https://github.com/decentralized-identity/bbs-signature/issues/109, I would just remove keyValidate from spkGen (which is also covered by PR https://github.com/decentralized-identity/bbs-signature/pull/112). That said, not really very strong opinionated about it, so I’m fine with what the WG decides.

Ok shall we also remove the sub-group check for A and then add it as a security consideration that signature verification should be performed prior to SpkGen?

Ok shall we also remove the sub-group check for A and then add it as a security consideration that signature verification should be performed prior to SpkGen?

Yeap that makes sense to me. For now, at least. Something like @andrewwhitehead's proposal in the WG call may change this approach so i think it would be fine to merge the PR as is also. Since the goal was to update KeyValidate, i think this covers it.


Support for Apple Shortcuts

Before opening the issue, have you...?

[X] Searched for existing issues

Is your feature request related to a problem? Please describe
I have some homekit accessories and would like to be able to automate and sync brightness between physical lightbulbs and my monitor screens.
Describe the solution you'd like
It would be awesome to have controls at least over brightness exposed to Apple Shortcuts so that I could create an automation.
Describe alternatives you've considered
Alternatively there could be a hook the other way around to trigger homekit action from within MonitorControl but I believe it would be way more tricky to achieve.
Anything else?
No response

There is some discussion about this https://github.com/MonitorControl/MonitorControl/discussions/682
Btw, there are command line tools for DDC control that can be integrated into Apple Shortcuts I think quite easily. for M1 there is m1ddc, for Intel you can use ddcctl.

I'd like to do something similar to pfilipp 👍

Upping this feature. As a user (and a great fan) of MonitorControl, I would love to add it to some sort automation like Shortcuts. The reason; living in the north with dark mornings in the winter, I prefer my external display to be quite dimmed when kicking off the day as I find it more comfortable. I now adjust my display manually to a low setting the night before.

This is planned in BetterDisplay - with the SwiftUI update, not planned in MonitorControl., not planned in MonitorControl.


RuntimeError: CUDA out of memory

Running on Windows 10, 3060 Ti, 8gb.
Any clue what's going on? I've tried allocating memory with:
os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb:1024"
But I'm unsure where in the script to place this. I was putting it in train_model() in train_video.py
Also unsure how to format this for readability on github but whatever
Thanks for the help.
Model has 402945 params   0%|                                                                                | 0/49 [00:00<?, ?it/s]C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at  ..\aten\src\ATen\native\TensorShape.cpp:2157.)   return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]   0%|                                                                                | 0/3000 [00:00<?, ?it/s]C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\functional.py:3631: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.   warnings.warn( C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\functional.py:3631: UserWarning: Default upsampling behavior when mode=bicubic is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.   warnings.warn( C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\functional.py:3679: UserWarning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and now uses scale_factor directly, instead of relying on the computed output size. If you wish to restore the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details.   warnings.warn(   0%|                                                                                | 0/3000 [00:03<?, ?it/s] Traceback (most recent call last):   File "C:\Users\olive\Desktop\text2live\train_video.py", line 109, in <module>     train_model(config)   File "C:\Users\olive\Desktop\text2live\train_video.py", line 45, in train_model     losses = criterion(outputs, inputs)   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl     return forward_call(*input, **kwargs)   File "C:\Users\olive\Desktop\text2live\util\atlas_loss.py", line 54, in forward     losses["foreground"] = self.loss(outputs["foreground"], inputs)   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl     return forward_call(*input, **kwargs)   File "C:\Users\olive\Desktop\text2live\util\losses.py", line 92, in forward     losses["loss_screen"] = self.calculate_clip_loss(all_outputs_greenscreen, self.target_greenscreen_e)   File "C:\Users\olive\Desktop\text2live\util\losses.py", line 122, in calculate_clip_loss     img_e = self.clip_extractor.get_image_embedding(img.unsqueeze(0))   File "C:\Users\olive\Desktop\text2live\models\clip_extractor.py", line 100, in get_image_embedding     image_embeds = self.encode_image(self.clip_normalize(views))   File "C:\Users\olive\Desktop\text2live\models\clip_extractor.py", line 104, in encode_image     return self.model.encode_image(x)   File "C:\Users\olive\Desktop\text2live\CLIP\clip\model.py", line 388, in encode_image     return self.visual(image.type(self.dtype))   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl     return forward_call(*input, **kwargs)   File "C:\Users\olive\Desktop\text2live\CLIP\clip\model.py", line 249, in forward     x = self.transformer_first_blocks_forward(x)   File "C:\Users\olive\Desktop\text2live\CLIP\clip\model.py", line 272, in transformer_first_blocks_forward     x = self.transformer.resblocks[:-1](x)   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl     return forward_call(*input, **kwargs)   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\container.py", line 141, in forward     input = module(input)   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl     return forward_call(*input, **kwargs)   File "C:\Users\olive\Desktop\text2live\CLIP\clip\model.py", line 188, in forward     x = x + self.mlp(self.ln_2(x))   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl     return forward_call(*input, **kwargs)   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\container.py", line 141, in forward     input = module(input)   File "C:\Users\olive\anaconda3\envs\text2live\lib\site-packages\torch\nn\modules\module.py", line 1102, in _call_impl     return forward_call(*input, **kwargs)   File "C:\Users\olive\Desktop\text2live\CLIP\clip\model.py", line 165, in forward     return x * torch.sigmoid(1.702 * x)   RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 8.00 GiB total capacity; 7.25 GiB already allocated; 0 bytes free; 7.30 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Please see #11 . It seems your GPU has not enough memory to run the method.


Fatal error: Uncaught exception 'InvalidArgumentException' with message 'file does not exist'

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'file does not exist' in
/var/www/mysite/googleapi2/vendor/google/apiclient/src/Google/Client.php:839 Stack trace:
#0 /var/www/mysite/googleapi2/quick.php(32): Google_Client->setAuthConfig('/var/www/mysite...')
#1 /var/www/mysite/googleapi2/quick.php(80): getClient()
#2 {main} thrown in /var/www/mysite/googleapi2/vendor/google/apiclient/src/Google/Client.php on line 839

Here is my code and also fyi
define('CREDENTIALS_PATH', '/<myjson>.json');
define('CLIENT_SECRET_PATH', **DIR** . '/<myclient>.googleusercontent.com.json');

i have put ./.json or ../.json on credentials_path is still not working
What i'm i going wrong? This is the latest version on the composer.I regenerate again but its still occuring please advise
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require_once **DIR** . '/vendor/autoload.php';

define('APPLICATION_NAME', 'Sample');
define('CREDENTIALS_PATH', '/<myjson>.json');
define('CLIENT_SECRET_PATH', **DIR** . '/<myclient>.googleusercontent.com.json');
// If modifying these scopes, delete your previously saved credentials
// at ~/.credentials/drive-php-quickstart.json
define('SCOPES', implode(' ', array(
  Google_Service_Drive::DRIVE_METADATA_READONLY)
));
echo php_sapi_name()."sdf";

/* if (php_sapi_name() != 'cli') {
  throw new Exception('This application must be run on the command line.');
}
/*
- Returns an authorized API client.
- @return Google_Client the authorized client object
  */
  function getClient() {
  $client = new Google_Client();
  $client->setApplicationName(APPLICATION_NAME);
  $client->setScopes(SCOPES);
  $client->setAuthConfig(CLIENT_SECRET_PATH);
  $client->setAccessType('offline');
    $client->useApplicationDefaultCredentials();
  // Load previously authorized credentials from a file.
  $credentialsPath = expandHomeDirectory(CREDENTIALS_PATH);
  if (file_exists($credentialsPath)) {
    $accessToken = json_decode(file_get_contents($credentialsPath), true);
  } else {
    // Request authorization from the user.
    $authUrl = $client->createAuthUrl();
    printf("Open the following link in your browser:\n%s\n", $authUrl);
    print 'Enter verification code: ';
    $authCode = trim(fgets(STDIN));

    // Exchange authorization code for an access token.
    $accessToken = $client->fetchAccessTokenWithAuthCode($authCode);

    // Store the credentials to disk.
    if(!file_exists(dirname($credentialsPath))) {
      mkdir(dirname($credentialsPath), 0700, true);
    }
    file_put_contents($credentialsPath, json_encode($accessToken));
    printf("Credentials saved to %s\n", $credentialsPath);
  }
  $client->setAccessToken($accessToken);

  // Refresh the token if it's expired.
  if ($client->isAccessTokenExpired()) {
    $client->fetchAccessTokenWithRefreshToken($client->getRefreshToken());
    file_put_contents($credentialsPath, json_encode($client->getAccessToken()));
  }
  return $client;
  }

/**
- Expands the home directory alias '~' to the full path.
- @param string $path the path to expand.
- @return string the expanded path.
  */
  function expandHomeDirectory($path) {
  $homeDirectory = getenv('HOME');
  if (empty($homeDirectory)) {
    $homeDirectory = getenv('HOMEDRIVE') . getenv('HOMEPATH');
  }
  return str_replace('~', realpath($homeDirectory), $path);
  }

// Get the API client and construct the service object.
$client = getClient();
$service = new Google_Service_Drive($client);

// Print the names and IDs for up to 10 files.
$optParams = array(
  'pageSize' => 10,
  'fields' => 'nextPageToken, files(id, name)'
);
$results = $service->files->listFiles($optParams);

if (count($results->getFiles()) == 0) {
  print "No files found.\n";
} else {
  print "Files:\n";
  foreach ($results->getFiles() as $file) {
    printf("%s (%s)\n", $file->getName(), $file->getId());
  }
}

Did you find a solution?

Hi @awoyele sorry but no one seems to care

I'm having the same issue :/ Any solutions yet?

Did you follow the Instructions in Step 1. on this site?
https://developers.google.com/google-apps/calendar/quickstart/php

yes i have followed all the steps but its not working

@developerside @globe194 This exception is being thrown because the path supplied to setAuthConfig does not exist. See the code here for reference.
Whatever path you've defined as CLIENT_SECRET_PATH is either not the correct path to your credentials file, or the file is unreadable (i.e. the web server does not have permissions to open the file).  Here's what you can do to fix this:

Verify the path to your file is what you think it is:
var_dump(CLIENT_SECRET_PATH);
// this will output your file path before the exception is thrown

Verify the file exists
$ cat /path/to/yourfile.json

Verify the file is readable
$ chmod a+r /path/to/yourfile.json

I had this error until reading this and figuring out that path to my auth file was wrong.

I am facing same issue.. i revised my first step. i forgot to add clinet_secret.json

client_secrets.json with an s, I missed the s

Awesome! @bshaffer two years later and your answer is still helping people  ;)

Step 1: Enable the Analytics API

To get started using Google Analytics API, you need to first use the setup tool, which guides you through creating a project in the Google API Console, enabling the API, and creating credentials.
Create a client ID
Open the Service accounts page. If prompted, select a project.
Click Create service account.
In the Create service account window, type a name for the service account, and select Furnish a new private key. If you want to grant G Suite domain-wide authority to the service account, also select Enable G Suite Domain-wide Delegation. Then click Save.

Your new public/private key pair is generated and downloaded to your machine; it serves as the only copy of this key. You are responsible for storing it securely.
When prompted for the Key type select JSON, and save the generated key as service-account-credentials.json; you will need it later in the tutorial.

I had the same issue, but I noted that it was due missing the very first step:
Step 1: Turn on the Gmail API
Click this button to create a new Cloud Platform project and automatically enable the Gmail API:
[Enable the Gmail API]
In resulting dialog click DOWNLOAD CLIENT CONFIGURATION and save the file credentials.json to your working directory.


like button on the video is too hidden (draw more attention to it)add a share button closer to the video, and it creates feed items with the wrong data

Added a who set of new buttons - http://c.kohsrv.net/ED6U


User Management with Auth0

I'd love to see a branch of this with user management via Auth0

@shellscape currently things are coupled pretty tightly to Supabase auth as that's used for row-level security for client-side data fetching: https://github.com/vercel/nextjs-subscription-payments/blob/main/schema.sql#L15-L17
It would require pretty significant refactoring as using Auth0 would require all data to be fetched within API routes. So I think potentially a fork would make more sense for that.

hi may i know if the schema.sql is automatically imported to the vercel supabase integration?
or do we need to run it on supabase SQL editor in the supabase admin panel?
if the schema.sql is run authomatically, i might deploy my sites from netlify to vercel.
since, netlify dont offer this stuff.
:)


[Quest/Malawi Core] BMI calculation showing the wrong interpretation message

Describe the bug
When calculating the BMI of a patient using calculated expressions, an item that is enabled depending on the BMI result is delayed when being rendered.
To Reproduce
Steps to reproduce the behavior:

Register a newly diagnosed female client above the age of 15
On their profile page, select vitals
On the vitals questionnaire, select that they are not pregnant
Enter the BMI
Observe the interpretation messages at the bottom of the screen

Expected behavior
I expect the item to be rendered at the right time. As you can see from the video below, the weight is first entered. Because no height has been entered, no calculation takes place. When the first digit of the height is entered, the BMI is calculated in the read only item. However, no message is shown on the screen. Only when the second digit is entered is when the message is shown.
Unfortunately, this message is in relation to the calculation with the first digit only. Furthermore, the more you type, the message is shown for BMI that is calculated before the latest digit was added. And the only way to fix this is to add '.0' as adding this doesn't change the number per say but allows for the message to be correctly shown.
Screenshots
https://user-images.githubusercontent.com/90775548/180235720-922c862b-5181-45da-8af0-2dde36b5b822.mp4
Smartphone (please complete the following information):

Device: Samsung A12
Android version: 11
Build number: RP1A.200720.012.A127FXXU4AUK1
Version: 30

Additional context
Here is the relevant section of the questionnaire:
{
    "linkId": "weight-bmi",
    "text": "* Enter Weight (kgs)",
    "type": "decimal",
    "required": true
},
{
    "linkId": "height",
    "text": "* Enter Height (cms)",
    "type": "decimal",
    "required": true
},
{
    "extension": [
        {
            "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
            "valueExpression": {
                "language": "text/fhirpath",
                "expression": "(%resource.repeat(item).where(linkId='weight-bmi' and answer.exists()).answer.value) / (((%resource.repeat(item).where(linkId='height' and answer.exists()).answer.value) / 100) * ((%resource.repeat(item).where(linkId='height' and answer.exists()).answer.value) / 100))"
            }
        }
    ],
    "linkId": "bmi",
    "text": "* BMI",
    "type": "decimal",
    "readOnly": true
},
{
    "linkId": "severely-underweight",
    "text": "
Interpretation:
Severely Underweight
Action:
Refer for nutrition counseling
",
    "type": "display",
    "enableWhen": [
        {
            "question": "bmi",
            "operator": ">=",
            "answerDecimal": 1.0
        },
        {
            "question": "bmi",
            "operator": "<=",
            "answerDecimal": 15.9
        }
    ],
    "enableBehavior": "all"
},
{
    "linkId": "underweight",
    "text": "
Interpretation:
Underweight
Action:
Refer for nutrition counseling
",
    "type": "display",
    "enableWhen": [
        {
            "question": "bmi",
            "operator": ">=",
            "answerDecimal": 16.0
        },
        {
            "question": "bmi",
            "operator": "<=",
            "answerDecimal": 18.5
        }
    ],
    "enableBehavior": "all"
},
{
    "linkId": "no-malnutrition",
    "text": "
Interpretation:
No Malnutrition
",
    "type": "display",
    "enableWhen": [
        {
            "question": "bmi",
            "operator": ">=",
            "answerDecimal": 18.6
        },
        {
            "question": "bmi",
            "operator": "<=",
            "answerDecimal": 24.9
        }
    ],
    "enableBehavior": "all"
},
{
    "linkId": "overweight",
    "text": "
Interpretation:
Overweight
Action:
Refer for nutrition counseling
",
    "type": "display",
    "enableWhen": [
        {
            "question": "bmi",
            "operator": ">=",
            "answerDecimal": 25.0
        },
        {
            "question": "bmi",
            "operator": "<=",
            "answerDecimal": 29.5
        }
    ],
    "enableBehavior": "all"
},
{
    "linkId": "obese",
    "text": "
Interpretation:
Obese
Action:
Refer for nutrition counseling
",
    "type": "display",
    "enableWhen": [
        {
            "question": "bmi",
            "operator": ">=",
            "answerDecimal": 29.6
        }
    ],
    "enableBehavior": "all"
}

Blocked by https://github.com/google/android-fhir/pull/1380

This has been resolved with https://github.com/opensrp/fhircore/pull/1742


[Bug] Use default arguments instead of short circuiting or conditionals

You broke your code.
https://github.com/jupeter/clean-code-php#use-default-arguments-instead-of-short-circuiting-or-conditionals
Original is good
function createMicrobrewery($name = null) {
    $breweryName = $name ?: 'Hipster Brew Co.';
    var_dump($breweryName);
}
createMicrobrewery();
createMicrobrewery('');
createMicrobrewery(null);
createMicrobrewery('foo');

Result
string(16) "Hipster Brew Co."
string(16) "Hipster Brew Co."
string(16) "Hipster Brew Co."
string(3) "foo"

Your "good"
function createMicrobrewery($breweryName = 'Hipster Brew Co.') {
    var_dump($breweryName);
}
createMicrobrewery();
createMicrobrewery('');
createMicrobrewery(null);
createMicrobrewery('foo');

Result
string(16) "Hipster Brew Co."
string(0) ""
NULL
string(3) "foo"

Result is different. You broke your code.

Good point.
Do you have propose of better example?

Problem is fixed in #26


b5d324e reports lock states without an underscore

Hi there,
Love this integration although it did make me go out and buy a $300 cat door!
Just letting you know that the b5d324e beta I'm running seems to be working well except the underscore has been remove from the lock states so most of my code in HA is not working correctly. If possible, could the locks states all be changed to lowercase with an underscore in between?

Was:
    condition:
      - condition: state
        entity_id: sensor.pet_flap_laundry_door
        state:
          - Locked_all
          - Locked_in
          - Locked_out
    action:
      - service: surepetcare.set_lock_state
        data_template:

Current Beta (b5d324e):
    condition:
      - condition: state
        entity_id: sensor.pet_flap_laundry_door
        state:
          - Locked All
          - Locked In
          - Locked Out
    action:
      - service: surepetcare.set_lock_state
        data_template:

Ideal:
    condition:
      - condition: state
        entity_id: sensor.pet_flap_laundry_door
        state:
          - locked_all
          - locked_in
          - locked_out
    action:
      - service: surepetcare.set_lock_state
        data_template:

Right, sorry for changing that without proper notice.
I will check with HA/ask someone from them whats the preferred way of representing such a state and we use that, okay? :)

Thanks. The lock states should all be lower case with a joining underscore to match HA.
locked_all

fixed now! sorry again 😔


Update github actions

actions/checkout@v2 -> actions/checkout@v3

v2 uses node12 which is deprecated, and soon to be unsupported by github actions

actions-rs/toolchain -> dtolnay/rust-toolchain

actions-rs is unmaintained: https://github.com/actions-rs/toolchain/issues/216

This is untested, it may need a fix or two after the workflows are approved and run :)

Huh, I think that clippy failure is just github actions having a bad day.  The http failure 429 is "too many requests", have not seen that one before.


Themes are not applied

Lok, it is a beautiful layout cards. I like it very match.  But the fact that themes are not applied there is a shame. If I build the whole dashboard with mushroom cards only that might work, although it is practically impossible, but even those you would be stack with single theme.
To me it misses so much goodness to be blended into HA seamlessly and adopt all themes like it was there from the start.
Is it possible to do that?

I can't understand what you're saying, but you might want to install mushroom theme (link) and apply it to your user settings and/or each Dashboard page/tab, for the rest of the cards to have a Mushroom style. You also have the Mushroom Square option.
If you want mushroom cards to have another theme... I don't really see the point in that - I  believe Mushroom cards are special partially because of their theme. Plus it's probably really complicated to accommodate to other themes.

Mushroom use text and background color from HA theme.
Do you have an example (screenshot) of theme not applied ?

Here are 2 examples, 2 light switches in a greed in a vertical stack. Dark is whatsapp theme, light is iOS theme.

Although it is not like this always. On the other tab I add a few controls and it looks good.

I tested with whats app theme too and I have no issue :

How do you apply the theme ?

from the profile ?
from the view ?

There can be issues if you use both settings.

I use only one profile setting for theme.

@Serhioromano are you still experiencing this? Have you tried reloading the page?

It sometimes there sometimes not. I have no control over it. SO I just used another theme.


Fix alignment of login/signup pages and connect to home page

#Description:

Adjusted the alignment of both login and signup forms to improve the visual presentation by centering them on the page.
Added navigation links on the login and signup pages to allow users to easily go back to the home page.
Included navigation links on the home page for quick access to both login and signup pages.

#Branch: fix-alignment-connect-pages
#Goal: Improve user navigation and page layout, making the site more user-friendly by ensuring seamless transitions between login, signup, and home pages.

@Abhishek-IITP Please see the conflicts . Resolve the conflicts . Ensure you pull all the latest changes before pushing your feature/bug fixes to the main branch. After resolving the conflicts, please open a new PR for review.
Thank you!


consider using semver for library versioning

Have you thought about using semver (http://semver.org/) for your versioning? The idea behind it is that the version ranges tell users something about the versions they can reliably depend on. So, I can depend on >=1.0.0 <2.0.0 (or >=0.9.0 < 0.10.0), and know that within that range the library will be API compatible with my application.
You're close currently (x.95.x), but went from 0.8.0 to 0.9.0 to 0.91 instead of 0.10.0, and I don't believe are using your minor version like semver would want (pre-1.0).

We realize we messed up the versioning for the early releases. Also I think it's adherent enough now. In alpha any minor version increment will mean that there are either significant additions to the framework or incompatible implementation changes.


Task group launcher

Description of the new feature / enhancement
Many users use the same apps for a specific task.  For example when working on one project I always have Visual Studio, SSMS, Outlook and Firefox open. Dragging apps into a task group, then allowing a one-click startup would open all of those tasks.  Additionally a shutdown feature would allow apps in that task group to be closed. This makes switching from "work" to "gaming" or "movie" task groups nice and easy.
Scenario when this would be used?
It reduces the amount of time needed to open apps used every time in a specific task.
Supporting information
It's a good idea.  Are you not entertained?

/dup #348


@regi.rovno.ua

our university url: http://www.regi.rovno.ua/en/university/contacts/

@forever-Agriculture for @regi.rovno.ua the file name shall be lib/domains/ua/rovno/regi.txt
Please rename the file in your request appropriately. Thank you!

the corrections were made, thanks 4 helping me @philipto

@forever-Agriculture Pull request merged. Thank you! I corrected a minor typo for you, there should not be trailing "." in "regi.txt."

thanks:)


How to hide the initial map before directions map ?

I am using the directions directive and its all working well, but since  precedes  the user sees a map appear just a moment before the directions route shows.
How can I hide the initial show of the  and only see the  result ?

Map can be initialized by event. e.g., init-event="init-map"
Please check out this example.
https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_lazy_init.html

thanks Allen.
Is there a msg from the directions directive that I could use as a trigger to then emit this map-init message to unhide the parent map directive ? What I need to do is only show the resulting directions map when its ready, I don't want any map to appear until then. So I would like to hide the map, and unhide once the directions have been rendered.

no, directives do not emit any messages. your controller need to send out these messages.
If you need more assistance, provide me a plunker, so that I can get into your code.

Sorry for my late response, I've been away for a few days.
Here's a plunker for what I'm trying to do. The user clicks a button to bring up a modal with a map of directions on it. I'd like to avoid seeing the initial map and only show the directions result.
http://embed.plnkr.co/Z8Ln6BpEE4bPX4kqITzJ/preview


support hostpath for mount pod

complete https://github.com/juicedata/juicefs-csi-driver/issues/592

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.44% :tada:

Comparison is base (bef5de7) 38.64% compared to head (8716de7) 39.09%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #703      +/-   ##
==========================================
+ Coverage   38.64%   39.09%   +0.44%
==========================================
  Files          33       33
  Lines        3959     3988      +29
==========================================
+ Hits         1530     1559      +29
  Misses       2283     2283
  Partials      146      146

Files Changed
Coverage Δ

pkg/config/config.go
0.00% <ø> (ø)

pkg/config/setting.go
75.00% <100.00%> (+0.67%)
:arrow_up:

pkg/juicefs/mount/builder/pod.go
52.94% <100.00%> (+6.59%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Get egress stats working with access point objects

With the newer access point sharing - there is no release identifier in the cloudtrail entry. However, there will be an access point bucket name that does map back to the particular release. Need to teach the egress routines to understand this.
Currently (understandably as access point sharing is new)

The Uom demo account has a cloudtrail lake with events of access point Get occurring between 2pm-3pm on October 10

I think currently all the mapping from Release to the access points created lives in the actual installed CloudFormation outputs. Which would limit egress tracking to whilst ever the access point is live.
So its possible we might need to add some extra database fields to track this info as part of the Release activation?

Yes, possibly put this in the audit records? I guess the copy-out is also out of track within the releaseEgressService?

Can we make a different ticket for copy-out - but yes that would be good if that was counted as well (it at least shouldn't cause problems with the egress code).
I think I'd prefer to keep the information out of the audit infrastrucutre (even though it is used by the audit stuff - those fields are more "sharer" or "activation" data)

I am thinking of the Data Sharing Control pane is locked when the release is activated (as if like the cases) and could keep track sharing method for each activation? Also when release is deactivated, it will run to disable all sharing method (in this uninstall access-point).


v2ray-geoip.generator: unstable-2023-03-27 -> unstable-2023-10-11

Description of changes
Fixes https://github.com/NixOS/nixpkgs/issues/262723

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@ofborg build v2ray-geoip


Bump action versions

This removes the warnings about Node.js 16 being used.
Also put a scheduled run of the code coverage reports to ensure the badge always work.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.588%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2217

Relevant Lines:
2933

💛  - Coveralls


Improve start-up time (client)

There appears to be an overhead to running things caused by pytest. This overhead seems to occur prior to running the plugin. If we can jump straight to running the plugin, running tests will be very quick.

Out of scope for this is improving the start-up time incurred by using jurigged. In tests, start-up could be 50% slower with jurigged. It would be better if it was about the same as normal.

#17 will cover the jurigged overhead

Profiling this, I'm actually seeing the time sink seems to be this:
   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1    1.602    1.602    1.602    1.602 {method 'recv_into' of '_socket.socket' objects}

When I profile the opposite end, the test is much faster, so perhaps there's a bit of dead time in the communication that could be reduced

This branch experiments with substituting the built in XMLRPC library with Robyn. The performance is nearly identical so its not worth making the switch
https://github.com/JamesHutchison/pytest-hot-reloading/tree/robyn-experiment
Without debugging, it looks like it's getting :

about 200 - 250 ms running a simple test (server side)
about 350 - 400 ms running the same test (client side)
1.5+ seconds real world time from clicking on the play button to it finishing in VS Code.

I know its possible to get tests to run in a split second (close to that server time), because that is how fast it ran on my hackathon implementation (which used files instead of a web server). That said, things are pretty fast so this might be splitting hairs.


Replace shell calls like cp -r with more jvm-y alternatives

I have shell calls to rm, cp and chmod in various places due to sheer laziness. I'm not sure if this will actually be a problem, but it wouldn't hurt to replace them with the JVM's filesystem capabilities. Maybe use babashka/fs.

I'd be willing to tackle this and some of the other first issue tags. A regular PR would be okay? Or do you prefer it some other way?

Regular PR would be great--thanks!

Let me know if you run into any issues/have any questions.

Closed by #75


[feature][doc] Add a note for restarting brokers with the load shedding strategy dynamically updated

Motivation
Add docs for #13074
Modifications

Add a note for restarting brokers with the load shedding strategy dynamically updated
Fix deprecated links for pulsar admin CLI and typos.

The preview looks good.
Documentation

[x] doc
(Your PR contains doc changes)

Hi @rdhabalia @Jason918 @eolivelli  @Demogorgon314 can you pls review this doc PR? Thanks.
//cc @Anonymitaet


Some questions

@PierfrancescoSoffritti :
Hi, first of all I wanted to congratulate you.
Let's start with the questions:

it would be possible to use your module also with normal videos, not just those of youtube.
if so how can I do?
You can add the thing of the division of the screen, that if you click on the video on the right / left you can go back / forward in the video.
I would like to do something like this: https://drive.google.com/file/d/1Vg-C_LYVvCW9gqXpfGPB5Fg6h_ekAx29/view
I tried apk, I do not know if a bug or not, in the basic example version.
As it is on full screen there is both the stop button and the player button.
I tried apk, the pictureInPicture, but I did not understand what it does.
it would be possible to give the possibility to change the color of the loading, of the time bar of the video and of the advancing ball.

I'll ask you all these questions, for point 1), because I would like to create a bridge for react-native.

Hi,

This is a YouTube player, it works only with YouTube videos. If you need to play something else through a web-based player, feel free to fork the library and apply the required changes.
Issue #132.
It's to showcase a feature of the player, you can add more actions other than play/pause.
Picture In Picture. Google is everybody's friend.
You can already do that. The color of those Views is the accent color of your app.

@PierfrancescoSoffritti:
I tried to take a quick look at the code, are you telling me that there is something under the web that makes everything work for youtube and I do not talk about the bees?

This library is built on top of the YouTube IFrame API.

@PierfrancescoSoffritti :
2)
How can I try it?
How did you implement it graphically?
I was thinking of using exoplayer, but I do not know how to graphically implement the part of the screen in two.
For the moment I did this: https://pastebin.com/riXk9GHN
Can you give me some advice?

You need two Views, each view has to cover one half of the screen. From there is just a matter of detecting a double tap on each view.
I'm going to implement it in the library, as soon as I'll have some free time.

@PierfrancescoSoffritti :  Can I contact you privately?

If you have questions about the library, open issues on GitHub, they may be helpful for other people as well.
If the questions are not related to the library, send me an email.


heatmap-layer don't get variable from controller

heatmap-layer don't get variable from controller
https://plnkr.co/edit/T6Jw1mtbKUqZscggjuoW?p=preview

+1


Nested view link doesn't trigger animation or back button when navigating the parent view

I have tabs inside one of my menu states. If I click a ui-sref to another menu state (menu.state) from a tab state (menu.tabs.state) it works but there's no transition or back button in the navbar. Is this a limitation or am I just doing something wrong?

Greetings @meetshawn!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Greetings @meetshawn!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.


Fix template path in controllers config

Q
A

Bug fix?
yes

New feature?
no

BC breaks?
no

Deprecations?
no

Related tickets

License
MIT

Some template path defined in route config is using legacy naming style. It prevents to override admin templates from a Symfony flex project.

Thanks a lot!


Fine-tuning the pre-trained ViT encoder

How did you conduct transfer experiments on UNETR? Did you replace all the encoders (encoder1-encoder4)? When fine-tuning the pre-trained ViT encoder in SAM-Med3D, is the size of the input image still 128128128?

Yes, SAM-Med3D only accept 128x128x128 due to the fixed position encoding (PE). You can interpolate the PEs yourself to support smaller input sizes.

-- encoding: utf-8 --
'''
@File    :   convert_sam2d_to_3d.py
@Time    :   2023/04/28 17:43:11
@Author  :   Haoyu Wang
@Contact<EMAIL_ADDRESS>@Brief   :   convert sam2d keys and weights into SAM3d
'''
import torch
import os.path as osp
import torch.nn.functional as F
param of ckpt
src_path = "./ckpt/sam_vit_b.pth"
out_path = osp.join(osp.dirname(src_path), "sam_vit_b_128.pth")
image_size = 256
image_size = 128
patch_size = 16
window_size = 14
encoder_depth=12
encoder_global_attn_indexes=[2, 5, 8, 11]
convert keys
token_len = image_size//patch_size
window_len = window_size*2-1
state_dict = torch.load(src_path)
withdraw bbox prompt weights
del state_dict["prompt_encoder.point_embeddings.2.weight"]
del state_dict["prompt_encoder.point_embeddings.3.weight"]
old_weight = state_dict["image_encoder.pos_embed"]
state_dict["image_encoder.pos_embed"] = F.interpolate(old_weight.permute(0,3,1,2), size=[token_len]*2, mode='bilinear').permute(0,2,3,1)
h,w -> h,w,d
for vit_layer_idx in range(encoder_depth):
key_h = "image_encoder.blocks.{}.attn.rel_pos_h".format(int(vit_layer_idx))
key_w = "image_encoder.blocks.{}.attn.rel_pos_w".format(int(vit_layer_idx))
target_size = 2*token_len-1 if(vit_layer_idx in encoder_global_attn_indexes) else window_len
key_map = {
key_h: key_h,
key_w: key_w,
# key_d: key_h,
} # target : src
for tgt_key, src_key in key_map.items():
old_weight = state_dict[src_key]
new_weight = F.interpolate(old_weight[None].permute(0,2,1), size=target_size, mode='linear').permute(0,2,1)[0]
print(src_key, "({})".format(old_weight.shape), "->", tgt_key, "({})".format(new_weight.shape))
state_dict[tgt_key] = new_weight
convert all 256 -> 384
def reshape_tensor_with_copy_padding(tensor, target_shape_dim=256, new_dim_size=384):
"""
Reshape a tensor's dimensions from target_shape_dim to new_dim_size,
padding by copying slices from the tensor if the new size is larger.
:param tensor: The input torch.Tensor to reshape.
:param target_shape_dim: The dimension size to look for and change.
:param new_dim_size: The new dimension size to reshape to.
:return: A new tensor with the specified dimension(s) resized and padded by copying existing data if necessary.
"""
shape = list(tensor.shape)

# Find the index of the dimension that matches the target_shape_dim
target_dim_idx = shape.index(target_shape_dim) if target_shape_dim in shape else -1

# If the target dimension is not found or no padding is needed, return the tensor as is
if target_dim_idx == -1 or shape[target_dim_idx] == new_dim_size:
    return tensor

# Calculate how many elements we need to add to reach the new size
padding_needed = new_dim_size - shape[target_dim_idx]
# Calculate how many full copies can be made from the padding needed
num_full_copies = padding_needed // shape[target_dim_idx]
# Calculate the size of the last partial copy if needed
partial_copy_size = padding_needed % shape[target_dim_idx]

# Create a list of tensors to concatenate (starting with the original tensor)
tensors_to_concat = [tensor]

# Add full copies to the list
for _ in range(num_full_copies):
    tensors_to_concat.append(tensor)

# Add the last partial copy if needed
if partial_copy_size > 0:
    partial_copy = tensor.narrow(target_dim_idx, 0, partial_copy_size)
    tensors_to_concat.append(partial_copy)

# Concatenate all tensors along the target dimension
reshaped_tensor = torch.cat(tensors_to_concat, dim=target_dim_idx)

return reshaped_tensor

key_list = list(state_dict.keys())
for key in key_list:
if(key.startswith("mask_decoder") or key.startswith("prompt")):
del state_dict[key]
torch.save({"model_state_dict":state_dict}, out_path)
print("end")

Thank you very much for your help~


read pcap file

Hello, i use your package but i need to read pcap trace file instead of real time capture. Is it possible?

Not currently.

Hi, Is this feature added??

@subramanya9112 Not currently.

Hi, Is this feature not added yet??


Exiting Off Canvas menu in Microsoft Edge page scrolls bottom

I have a page with an Off Canvas menu which works fine in Chrome and Firefox.  However in Microsoft Edge, when  I click away from the menu and it closes and then the current page scrolls to the bottom.
Are there any changes that need to be made on the page to make Off Canvas work in Edge?

DO you have an example link so we can replicate it?

You can see this at test.beembroidered.co.uk

I'm closing this issue because we don’t have a reproducible case to test against. If this is still an issue, please reopen with the info requested here:
https://github.com/zurb/foundation-sites/blob/develop/.github/ISSUE_TEMPLATE.md


Add some prepublish checks to ensure that Mafs was built correctly

Prevent issues like #123.

I think this is effectively closed with #171


add structs and types for recommendation related stuff

Description
These structs are used in both smart-proxy and aggregator.
Type of change

New feature (non-breaking change which adds functionality)

Testing steps
none

Codecov Report

Merging #194 (d6eff1d) into master (a54b424) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #194   +/-   ##
=======================================
  Coverage   90.54%   90.54%
=======================================
  Files          22       22
  Lines         825      825
=======================================
  Hits          747      747
  Misses         64       64
  Partials       14       14

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a54b424...d6eff1d. Read the comment docs.


Window.onerror isn't able to intercept errors correctly

When an error occurs in my transpiled app.js, devTools evaluates it as if it happened in another script, which causes a CORS issue and therefore, the error object is restricted and you get "Script error" instead of the full error object in the window.onerror listener. This is probably a Weback issue. Best hint I could find on this is here, but it lacks some context. MDN also describes the issue under "Notes".

If you init a Vue project with Wepback, I think it can be easily reproduced. You add the window.onerror listener and the fifth argument should be an error object that reflects the stack-trace as seen in the console.
For re-pro you setup the listener and throw an error right after it:
window.onerror = function (arg1, arg2, arg3, arg4, error) {
  console.log(error) // "Script error" instead of an error object
}

throw new Error('oh no')`

It should be intercepted by the listener, which it does, but you don't get the full error, because Chrome thinks the script that run the error is in another domain. I think this is related to source maps and how devTools manages them. It seems however, it can be fixed by some extra Webpack configuration. I'm just not down to what exactly.

I'm having the same issue. I tried
<script src="path/to/my/bundle.js" crossorigin="anonymous"></script>
as per https://blog.sentry.io/2016/05/17/what-is-script-error.
I've also tried
    new SourceMapDevToolPlugin(
        {
            module: true,
            columns: false,
            moduleFilenameTemplate: info => { return `${info.resourcePath}?${info.loaders}`; }
        }
    ),

as per #5681, and I've also tried them together, and none of it has worked.
An error thrown in the .html file is seen just fine by window.onerror, but not if it happens in a bundle.
All I get then is
message: "Script error.", url: "", lineno: 0, colno: 0, stack: "n/a"


[p50] no GUI of nautilus

Seems to be crashing?
$ nautilus &
[3] 14973
n130s@130s-p50:~/Desktop$ ps
  PID TTY          TIME CMD
14973 pts/27   00:00:00 nautilus
14978 pts/27   00:00:00 ps
31098 pts/27   00:00:03 bash
n130s@130s-p50:~/Desktop$
(nautilus:14973): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed

(nautilus:14973): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_unexport: assertion 'interface_->priv->connections != NULL' failed
Could not register the application: Timeout was reached

(nautilus:14973): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed

(nautilus:14973): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(nautilus:14973): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

[3]-  Exit 1                  nautilus
n130s@130s-p50:~/Desktop$

Stopped seeing this at some point.


(BAN-B607) Audit: Starting a process with a partial executable path

Description
Python possesses many mechanisms to invoke an external executable. If the desired executable path is not fully qualified relative to the filesystem root then this may present a potential security risk.
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → app.deepsource.com/gh/sqe/esddns/issue/BAN-B607/occurrences/

resolved by https://github.com/sqe/esddns/pull/66/


Issue#69

Check if there is the "parachain-id" param in service file
Check on "relayParentNumber" from "getBlock" rpc method every 30s

I don't know if checking the --collator flag is the right way to identify that a specific node runs a parachain.
For example, from astar docs --validator and --collator flags seems to behave in the same way

In mangata we have --collator and this check will fail, right? can't we check for both with an or?
You can use queries; since Chain is already instantiated when addTasks is called, we can pass chain to isPluggable.

I was thinking that parachain-id was mandatory, so we can check for both collator and validator or make a code refactor in order to add chain to isPluggable...

I was thinking that parachain-id was mandatory, so we can check for both collator and validator or make a code refactor in order to add chain to isPluggable...

I prefer the second solution