fix: improvements in the instruction

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #50663

Please note that your issue is still in triage. This means it still has to be discussed.


Upgrade xorm to v1.0.5

As title.

Codecov Report

Merging #12765 into master will decrease coverage by 0.05%.
The diff coverage is 25.94%.

@@            Coverage Diff             @@
##           master   #12765      +/-   ##
==========================================
- Coverage   43.30%   43.24%   -0.06%
==========================================
  Files         647      648       +1
  Lines       71800    71922     +122
==========================================
+ Hits        31090    31102      +12
- Misses      35675    35780     +105
- Partials     5035     5040       +5

Impacted Files
Coverage Δ

cmd/migrate_storage.go
0.00% <0.00%> (ø)

modules/repofiles/update.go
40.30% <0.00%> (-0.31%)
:arrow_down:

modules/repofiles/upload.go
0.00% <0.00%> (ø)

routers/repo/lfs.go
0.00% <0.00%> (ø)

modules/storage/minio.go
48.43% <5.00%> (-20.46%)
:arrow_down:

models/lfs.go
22.64% <11.76%> (-2.08%)
:arrow_down:

modules/lfs/server.go
43.85% <23.07%> (-1.69%)
:arrow_down:

modules/storage/storage.go
44.44% <30.76%> (-12.70%)
:arrow_down:

modules/setting/lfs.go
41.86% <41.86%> (ø)

modules/lfs/content_store.go
50.00% <57.14%> (+1.66%)
:arrow_up:

... and 22 more

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 0ed8d26...1b784f0. Read the comment docs.

🚀


panel setup

Hi, I'm a complete noob and i couldnt understand how to host - panel setup thank you. Ive done till android and web app setup step

Please watch the video linked on GitHub ReadMe section
https://t.me/AiravatRat/3


Can't cd up a directory

Testing #223130
Repro:

Type cd .. (suggest widget shows ..)
Hit enter

:bug: => replaces cd .. with ..

Btw this is not 100% repro, not sure what the condition is but once I'm stuck, I have to dismiss the suggest widget to get out of it

I haven't seen this, could you check the prompt status bar item?

Sometimes the shell integration decoration is on the wrong line if you have a multi-line prompt as well which makes everything fall apart.


feat: force bitmap cache invalidation

Mechanism required to force bitmap cache to regenerate. Without it, some scenarios exist where brush data in render loop updates for first instance of an imageId, but fails for all subsequent.

:tada: This PR is included in version 3.17.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Test-FileCatalog changes to use File.OpenRead to better handle when the file is executing or open Fix #20703

Test-FileCatalog changes to use File.OpenRead Fix #20703
Added test cases to test Test-FileCatalog with an exe that is executing
Added test cases to test Test-FileCatalog with files with FileShare.Read and ReadWrite

PR Summary

PR Context

PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[x] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and opened an issue in the relevant tool repository. This may include:

[ ] Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode
(which runs in a different PS Host).

[ ] Issue filed:

[ ] Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.

[ ] Issue filed:

[ ] Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).

[ ] Issue filed:

[ ] Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

[ ] Issue filed:

@dxk3355 Thanks for your contribution!


List All Storefront Page State Search

When on the List All Storefronts Page the Show Only Located in States dropdown will list the States but gets no active stores when you choose a State.

The state filter works correctly where storefront subscriptions (price plans) are enabled for user' stores, however filtering default free stores renders a few empty fields in the query; an sql tweak might enhance things.  On a side not there's a handful of associated cart and admin errors in the addon that need ironing out for it to function with PHP Version 8.0.23.

State filter works correctly when storefront subscriptions (price plans) are enabled for users stores, however filtering default free stores renders a few empty fields in the query; an sql tweak might enhance things.

Thanks! that worked. I had storefront sub for free with selected price plan, which is how I would like it ultimately but for now this is ok. Another problem is with storefront logo. I can get it to display in listings in categories and search results but not on full listing display page...... unless you are coming from the sellers store listings and then it does display. TY , Bob

Set storefront listing price to 0 for a subscription, they'll be free and searchable.  You may experience admin/cart errors trying that - Geo's still buggy. As far as the storefront logo in listing templates, that's not a current feature of Geo, though possible with a custom addon.


DROP queries are hanged if powa is enabled

Hi !
We are facing next issue during using POWA and PostgreSQL 15:

Deploy PostgreSQL + POWA related extensions in shared_preload_libraries
Create some test data
Issue drop database query
It will hang, with next PostgreSQL logs:

[2023-01-30 15:01:16.758 UTC][source=postgresql]STATEMENT:  drop database testdb_kmlbp_0;
[2023-01-30 15:01:21.760 UTC][source=postgresql]LOG:  still waiting for backend with PID 3173 to accept ProcSignalBarrier

process with 3173 is POWA:
postgres   3173  0.0  0.2<PHONE_NUMBER>8 ?        Ss   14:30   0:01 postgres: patroni: powa idle

I am using local mode of powa with the bgworker
I've found similar issue for timescaledb, may be it related somehow https://github.com/timescale/timescaledb/issues/4838

@rjuju , i will try to prepare local test case during the day if it's still needed

Thanks, but it shouldn't be necessary as the error message you mentioned clarified the problem.
I just pushed 085d379d33eb724c541eca4e6895d4f7172125b0 which should solve the problem.  If you can test a local build, could you confirm that it also solves the problem for you?

ok, will try during the day and share results

@rjuju , yes, it's working with your latest changes !

Great news, thanks for the feedback!


Default to current directory

To save typing, if a directory is not specified then default to the current dir.

Thanks!


Assign docs article ownership to Team Rocket

Towards https://github.com/giantswarm/giantswarm/issues/13382

Hi @giantswarm/team-rocket , this is really a short one. Only two docs articles being assigned to you. Can this get your approval?


Update razer-synapse to 1.79

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if updating only the sha256:

[ ] I verified this change is legitimate How do I do that? and am providing confirmation below:

Travis times out during uninstall


doc.getStringUnitWidth is not a function

Line 352 calls for doc.getStringUnitWidth but this does not appear to be a method of the doc object?
var strWidth = doc.getStringUnitWidth(txt) * doc.internal.getFontSize();

If I console.log the doc object here's what I get:

I'm using jsPDF 0.9.0rc2 downloaded from the jsPDF site, but there is no getStringUnitWidth method in their source either. Am I missing some other plugin dependency? I've included this in my html head but I doubt this affects my problem:
<script src="/vendor/jspdf.js"></script>
<script src="/vendor/jspdf.plugin.autotable.js"></script>

I could add in a single module to the jspdf object, but I'm not sure where to find the getStringUnitWidth method. Any advice?

Ok I found it, you have to include jspdf.plugin.split_text_to_size.js in your dependencies as well

I should probably mention that in the README. However, I would recommend using one of the dist files from github since they bundle some Möre useful plugins and are at the latest version 1.1


Vite wont start on chromebook.

Describe the bug
I'm not completely sure if my chromebook is just not powerful enough, but when I run vite, it runs the vite command, and it doesn't do anything. On my larger desktop, it runs fine.
Link to the blitz that caused the error
https://stackblitz.com/edit/node-zqkwn9
Steps to reproduce

Setup a Vite project
Run Vite

Expected behavior
I expected for vite to start a server, and for it to show up on the right as a webpage.
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots

Platform
Browser name  = **Chrome**
Full version  = 97.0.4692.102
Major version = 97
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (X11; CrOS aarch64 14324.80.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.102 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 126253424,
  "usedJSHeapSize": 117907572,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Hash = d64d45524a435df425e7813603b52872ecfbe08e

Additional context
I am using a chromebook, so this may be a problem only on chromebooks.

This also happens with build and preview shown here:

@Quinn135 Thanks for the report. Are there any suspicious messages on the devtools console?

Sadly, I can't replicate it on any other device, and my chromebook has dev tools disabled...

It is pretty easy to replicate with a new react ts vite project (On my chromebook). Chance it could be just because of react ts...

I suspect you're having issues with a domain policy restricting your use of the browser. Stackblitz is demanding less than two gigs of ram to run your sandbox. I can fire npm run dev without issues.

Closing this issue as it didn't see any updates in almost a year. Thanks @FossPrime for asking these questions and chiming in 🙏 !
@Quinn135 If you stil run into issues these days, feel free to create a new issue and we can take it from there.


[Themes] A - Prevent rendering remote file deletion error when file has already been removed

WHY are these changes introduced?
https://github.com/Shopify/develop-advanced-edits/issues/375
WHAT is this pull request doing?

Prevents unnecessary warning messages when a file is already absent from the remote theme. This can happen when deleting a file on the remote theme and the --theme-editor-sync flag is provided

How to test your changes?

Run shopify-dev theme dev --theme-editor-sync
Delete a file on the remote theme via the code editor
Observe that we don't report the failed deletion

https://github.com/user-attachments/assets/f8016a13-f562-4756-84c4-f19d9e69dfdb
Measuring impact
How do we know this change was effective? Please choose one:

[x] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix

Checklist

[x] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[x] I've considered possible documentation changes

@Shopify/app-inner-loop Could you please review this PR?(this is important to the next minor release). Thank you!


Working Glitch example using AFrame

Hi, just gave the documentation a test at https://glitch.com/edit/#!/iwer-on-aframe?path=index.html relying on the CDN import example https://meta-quest.github.io/immersive-web-emulation-runtime/getting-started.html#import-iwer-from-a-cdn
Unfortunately it leads to
Uncaught TypeError: The specifier “gl-matrix” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”. XRDevice.js:16:28

while using
<script type="importmap">
	{
		"imports": {
			"iwer"<EMAIL_ADDRESS>		}
	}
</script>
<script type="module">
import { XRDevice, metaQuest3 } from 'iwer';

const xrDevice = new XRDevice(metaQuest3);
xrDevice.installRuntime();

console.log(xrDevice)
</script>

so wondering what should be done.

Try adding gl-matrix to the importmap as well, I remixed your glitch and that seems to have fixed the error
https://glitch.com/edit/#!/wiry-marble-tilapia

Thanks @msub2 it does indeed remove the error, yet if I run xrDevice.position.y++ I don't see a visual change, so I'm wondering if that's the expected behavior or if this makes 2 different instances and thus don't reflect back what should be a camera change.

@msub2 thanks for jumping in!
@Utopiah thanks for raising this issue! What's happening here is that IWER wasn't injected before aframe is able to run - when aframe first runs on the page, it will try to detect whether there is native WebXR implementation by looking at the navigator.xr object. In your code, IWER was injected after aframe script is run, causing aframe to not find native WebXR implementation at start up, and aframe injected its only WebVR polyfill as a result.

I remixed your project and hooked up some keyboard shortcuts that controls the camera movement (you need to click on the vr button first to use those): https://glitch.com/~bird-curvy-quartz

It's kinda tricky, and I have this point documented here: https://meta-quest.github.io/immersive-web-emulation-runtime/getting-started.html#creating-an-xrdevice-and-installing-the-runtime
But probably not noticeable enough and I've a feeling more folks are gonna run into this issue. Sorry for the confusion!

Try adding gl-matrix to the importmap as well, I remixed your glitch and that seems to have fixed the error
https://glitch.com/edit/#!/wiry-marble-tilapia

Alternatively, instead of importing the /lib/index.js and having to include gl-matrix as well, just import the /build/iwer.module.js:
<script type="importmap">
	{
		"imports": {
			"iwer"<EMAIL_ADDRESS>		}
	}
</script>

Check out my threejs integration example: https://glitch.com/edit/#!/iwer-three-example

Added a few framework-specific integration examples on Glitch:

Three.js: https://glitch.com/edit/#!/iwer-three-example
Babylon.js: https://glitch.com/edit/#!/iwer-babylon-example
A-Frame: https://glitch.com/edit/#!/iwer-aframe-example

Marking issue as closed


Normalize 1 -> t

Cleanup from old code? Annoyed me as I was scrolling through stuff.

These were intentional. :defer 1 instructs the package to autoload after 1 second of idle time, but perhaps the new :defer-incrementally would be better, especially for helm.

ah, will org get that done to it as well?

It already has! Same with magit.


T016: Nitrogen is recognized differently on Windows vs. Unix

CI error message
[gw0] win32 -- Python 3.6.13 C:\Miniconda\envs\teachopencadd\python.exe
Notebook cell execution failed
Cell 15: Cell outputs differ

Input:
create_df_from_binding_site(interactions_by_site[selected_site], interaction_type="hbond")
# NBVAL_CHECK_OUTPUT

Traceback:
 mismatch 'text/html'

 assert reference_output == test_output failed:

  '
\n<styl...able>\n
' == '
\n<styl...able>\n
'
  Skipping 1084 identical leading characters in diff, use -v to show
  -      N2
  ?           ^
  +      Nar
  ?           ^^
          (13.371, 34.064, 15.005)
          (10.667, 33.654, 16.145)

Why?

T016: it fails due to a diff issue. A nitrogen is recognized differently on Windows than Unix (?). Might have to do with different versions installed.

From https://github.com/volkamerlab/teachopencadd/pull/74#issuecomment-842287171

OpenBabel is used to identify hydrogen bond donor and acceptor atoms. Halogen atoms are excluded from this group and treated separately (see below).

From https://plip-tool.biotec.tu-dresden.de/plip-web/plip/help
Atom types in OpenBabel:
EXTTYP  [n]         Nar
EXTTYP  [$(N=*)]        N2

From https://github.com/openbabel/openbabel/blob/master/data/atomtyp.txt

OpenBabel seems to recognize the nitrogen 2373 in PDB 3poz differently under Windows and Unix; we will remove our nbval check from this cell for now and contact the maintainers.
Add the nbval check back if the issue gets solved.

Issue raised on OpenBabel #2409


Submitter save return

Add ability to create a save and return submission
We will use a similar mechanism to the create_submission.
The create_save_and_return_submission will take a payload:
{id: '1234567', email<EMAIL_ADDRESS>Where id is the id of the SavedForm record in the UserDatastore.
This will call the Runner create_save_and_return_submission method and utilise the existing submission mechanism.

Branch has been pulled into https://github.com/ministryofjustice/fb-metadata-presenter/pull/304 if you want to close this PR @njseeto :)


Add cooldown tracker API

SpongeAPI | SpongeCommon
Adds an API for the CooldownTracker, allowing you to set a cooldown on the use of items. In vanilla this is used for ender pearls, chorus fruit, and shields. An example you could add with this is putting a cooldown on water buckets so people don't spam water everywhere.
Fixes https://github.com/SpongePowered/SpongeAPI/issues/1307

Should be good for a final review.

Works well for me and have fixed brought up issues. Will test one more time tonight then merge if there are no objections or other issues brought up.


[New term] Containers

1. Please describe why this term needs to be added
What this term is about? (briefly)

Containers, part of a more general software approach called cloud-native, are small software packages that, ideally, perform a small, well-defined task. Container images include all the software, including settings, libraries, and other dependencies, needed for them to run.

Why this term needs to be added? (briefly)

In the book, Cloud Native Patterns, author Cornelia Davis observes, "Containers are a great enabler of cloud-native software." The Cloud Native Computing Foundation places microservice containerization as the first step in their Cloud-Native Trail Map - guidance for enterprises beginning their cloud-native journey.

2. Checklist

[X] The suggested term fits the cloud native definition or is essential to understanding cloud native terms. (We hope to avoid adding general or broad terminologies)
[X] There is no existing issue yet. (shift+click to check existing issues)
[X] I understand that maintainers will assess if the term should be part of the Glossary. (Please be patient)
[X] I want to work on this term. (If not checked, maintainers will assign another volunteer)

(Note)
Maintainers will assign a label after assessment procedure.
(from triage/awaiting to triage/accepted or triage/not accepted)
A contributor can be assigned to this issue after the issue get the triage/accepted label.
The assignee needs to check Style Guide.

Thanks, @HenokB, but the term Containers already exists in the glossary :) See: https://glossary.cncf.io/container/


Add Ethr did Owner and Controllers/Delegates

Adds support for Ethr-Did and components for better UX.
Added Ethr-did and Resolver packages

Added config.json files to handle env variables including local.

New Features/Components

See Owner and set New owner if address is owner
View delegates, and add a delegate

New Components:

Modal component, simplified less complex than rLogin version
Tooltip, pure CSS, easy and in the future will be expanded for "position"

When cancelling transaction. Let's go for getting the message of the error

When cancelling transaction. Let's go for getting the message of the error

Unfortunately, the error returned from canceling a transaction is a string not a JSON object.
[ethjs-query] while formatting outputs from RPC '{"value":{"code":4001,"message":"MetaMask Tx Signature: User denied transaction signature."}}'

@ilanolkies It looks like all of the comments are resolved with the exception of createDidFormat issue where you created a ticket for. I had one more commit I forgot to push before I left last night renaming helpers to formatters. If this looks good, let's merge it.


Aspire integration test hangs on WaitForCompletion, but works when running dashboard normally

Is there an existing issue for this?

[x] I have searched the existing issues

Describe the bug
Having the following solution:

Aspire
Aspire.Tests
Host1 (exists after 5 sec)
Host2

var db = builder.AddPostgres("postgres");

var host1 = builder
    .AddProject<Projects.WebApplication1>("Host1")
    .WithReference(db)
    .WaitFor(db);

var host2 = builder
    .AddProject<Projects.WebApplication2>("Host2")
    .WithReference(db)
    .WaitFor(db)
    .WaitForCompletion(host1);

Running the Aspire app and looking at dashboard - everything is as expected - first postgres starting, then host1, host2 waits for host1 completion.

However the following integration test is stuck and never completes (try several times):

var builder = await DistributedApplicationTestingBuilder.CreateAsync<Projects.Aspire>();
var app = await builder.BuildAsync();
await app.StartAsync();

The cause is this .WaitForCompletion(host1) - removing this will allow integration test to complete. Looking into logs, despite host1 was actually terminated - aspire never receives Finished notification.
What might be the reason?
Thanks
Expected Behavior
Integration test completes
Steps To Reproduce
Repository with a solution to reproduce the issue:
https://github.com/ealeykin/aspire_health_issue
Exceptions (if any)
No response
.NET Version info
.NET SDK:
Version:           9.0.100
Commit:            59db016f11
Workload version:  9.0.100-manifests.c6f19616
MSBuild version:   17.12.7+5b8665660
Runtime Environment:
OS Name:     Mac OS X
OS Version:  14.5
OS Platform: Darwin
RID:         osx-arm64
Base Path:   /usr/local/share/dotnet/sdk/9.0.100/
.NET workloads installed:
[aspire]
Installation Source: SDK 9.0.100
Manifest Version:    8.2.2/8.0.100
Manifest Path:       /usr/local/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.json
Install Type:        FileBased
Configured to use loose manifests when installing new manifests.
Host:
Version:      9.0.0
Architecture: arm64
Commit:       9d5a6a9aa4
.NET SDKs installed:
8.0.300 [/usr/local/share/dotnet/sdk]
8.0.404 [/usr/local/share/dotnet/sdk]
9.0.100 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Anything else?
No response

Seems to work:

Same issue happens if running the AppHost using DotNet Watch. Since the service never really terminates (because of DotNet Watch), the items blocked by WaitforCompletion never activate.


Integration tests

Integration Tests

[x] Run cilium + kubearmor + policy-discovery in k3s
[ ] Run GH action periodically as cronjob (period is 2hours)
[ ] Validate auto-discovered policies
[ ] Validate policy enforcement
[ ] Checking telemetry + alerts log using karmor
[ ] diagnostics automation (mem, mutex)

Perform Some Operations like sleep,ls,cat,curl....
Generated Policy by Auto Policy?

Allow only policies for prev operations

Validate New gen policies
apply these gen policies
perform operations like wget, head,tail....
connect the test suite with kubearmor gRPC to WatchLogs/Alerts


I think I fixed it...fingers crossed

Closes #
What new changes did you make? Tick all applicable boxes

[ x] Added new abbreviation
[ ] Fixed something in the source code
[ ] Added a new feature
[ ] Fixed the docs (README.md, CONTRIBTUING.md, etc)

Describe the new changes you added.
Was working on getting the merge conflicts from the changelog

Share a screenshot of new changes

Also, I'm curious to know how you got out of the situation. Loving the pull request title ahah

I did what you suggested. I declined the 5 commits and then on my end, I had to approve the merge head conflict in the file. I am so happy that it worked =)

Hello @danitacodes do you need any help updating this PR?

Hi, my apologies. I am going in to use the alternative and then submitting the pr again, correct?

Hi!
Thank you. I am learning so much.
I did it =)
On Thu, Jan 19, 2023 at 5:24 AM Njong Emy @.***> wrote:

You don't need to resubmit the PR. You can directly edit your fork on
github.  Don't forget to sync
changes), make the suggested change, and at the bottom you'll be prompted
to commit the change. This PR should be updated with your new changes.
If you need any help, feel free to ask. Always happy to try and help.
—
Reply to this email directly, view it on GitHub
https://github.com/Njong392/Abbreve/pull/212#issuecomment-1396971871,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQIZ2YAUP3RN5VXKNMOJS7DWTE6BNANCNFSM6AAAAAAT356MGU
.
You are receiving this because you were mentioned.Message ID:
@.***>


remove necessity of linux target from fuzz.sh

Currently the fuzz.sh script requires a linux kernel target for fuzzing but we dont need this for TDVF
-> modify the script such that we can pass TDVF as target instead of a linux kernel

It's not possible to entirely remove the linux-target from fuzz.sh because it is passed to the qemu --kernel option, which is required for the qemu --append option. The latter contains parameters that are required for kafl to run without error.


example page sending won't work

as soon i click "send", nothing happens. just error message all the time. handshake is working tho
console  log
transfer
main.js?v=a:46 main js response - transfer
main.js?v=a:47 {success: false, error: "incomplete", result: null, message: "Incomplete data or
wrong format", data: {…}, …}

 steem_keychain.requestTransfer("test", "testy", 1, "memo", "STEEM", function(response) {
        console.log('main js response - transfer');
        console.log(response);
    })

Please input 3 decimals for the amount


Multiple hot-loader recompilation events

On a newly cloned copy, with npm 6.3.0 running npm i && npm run start-dev I get the following behavior:

After a bit the events stop and hot reloading works as normal.
After npm i there are several modifications done to package-lock.json:

Btw, if it doesn't do it the first time, close the app and restart it. I should also mention that this is on Ubuntu 18.04.

It is not an issue with the updated packages. I have tried npm ci and I get the same behavior.

Not sure what about awesome-typescript-loader caused the issue but switching to ts-loader won't cause the same issue.

i'm seeing the same behavior on win10. ill try ts-loader.

I'm pretty sure this is an issue with awesome-typescript-loader. Maybe related to https://github.com/s-panferov/awesome-typescript-loader/issues/502 ?
Does it keep happening for every change? If the ts-loader works better I'll consider swithcing the project over to that.

Should be fixed now!


Update column width on SupportedProductPlatform

Fixing a column width that wasn't aligned with the rest of the page.

@strican,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Ready to merge.


Modify ActivationBalancer for speed

This PR applies the ActivationBalancer module with a probability (e.g., 0.25) in the reworked model, to save training time. See https://github.com/k2-fsa/icefall/issues/610 for details.

The results training on train-clean-100 with 2 jobs shows that applying the ActivationBalancer module with a probability of 0.25 gets similar results but saves about 1.5 minutes per epoch.
Decode with greedy search at epoch-20-avg-5:

baseline, 6.97 & 18.64, 25~26 minutes / epoch
probability=0.25, 7.08 & 18.5, 24 minutes / epoch

OK cool, I suppose this can be merged.


No Function with Genesys WDE Client <IP_ADDRESS>

After Updating to the latest Genesys WDE Client <IP_ADDRESS> the Jabra Plug-In doesn't work anymore.
Working Version: Genesys WDE Client <IP_ADDRESS>
Non Working Version: Genesys WDE Client <IP_ADDRESS>
Problem:
No Error Message. The Buttons of the Jabra Headset have no function anymore = Calls can't be taken or finished with the headset buttons. We have to use the mouse in WDE Client.

Possible fixed by: https://github.com/gnaudio/jabra-call-control-extension-for-genesys-workspace-desktop-edition/issues/3


[CSB]: adding full execution id for pack calls to query item version

Pack function requires full execution id info to query item version.
PTAL @coda/snowcoda-platform

Close this PR for now, we plan to store this value in fetcher, pack makers do not need to explicitly use this value, but naming discussion is still here https://coda.io/d/go-brainwriteups_dQYLHXsHZWS/11-19-SDK-vocab-for-ingestions_suWTuz2V?utm_source=slack#SDK-ingestion-vocab_tu72mC65/r36


Textview reviewed

Fixes #318 out of range exception and #317 text redraw when navigate backward

Thank you for your contribution!


darwin: perl: libwww build tests fail on darwin (sandbox)

Build passes when sandbox is disabled.
Test Summary Report
-------------------
t/local/get.t         (Wstat: 0 Tests: 1 Failed: 1)
  Failed test:  1
  Parse errors: Bad plan.  You planned 0 tests but ran 1.
Files=16, Tests=130, 17 wallclock secs ( 0.11 usr  0.05 sys +  2.31 cusr  0.90 csys =  3.37 CPU)
Result: FAIL
Failed 1/16 test programs. 1/130 subtests failed.
Makefile:1067: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
builder for ‘/nix/store/av7q9k2lx8z5w82q5dsyrjk57rlmbmy9-perl-libwww-perl-6.13.drv’ failed with exit code 2
``

Master now has LWP 6.15 which includes some fixes to the test suite. Perhaps this issue got resolved?

Possibly. Cannot test now, but I re-open, if I still see this.


WIP: Netpoller for noos

Makes the wakerq global and consumed by a minimal netpoller implementation. The netpoller uses the same sync mechanics as the common netpoller.go implementation. It has one additional state that protects against false wakeup, if a note is enqueued during a Clear.
This is a performance optimization. The current rtos.Note implementation goes into a blocking syscall on every Sleep call, causing an expensive handoff (~800us CPU time on N64). Using the netpoller instead allow to use an ordinary goroutine sleep instead.
The need for this arised while implementing a driver for an DMA controller. Interrupts might trigger every few milliseceonds, which is too long to wait but also too short to sleep on a Note if it eats almost a whole millisecond of CPU time.
TODO

[ ]  Move to netpoller_noos.go
[ ]  Maybe avoid need for mutex?
[ ]  Don't reuse the time.Sleep timer?
[ ]  Testing

Since rtos.Note can be woken up multiple times, I also wan't to propose to make rtos/Note.Clear() return the current state of the Note, see 1706d44. I think this is considered an API breaking change, maybe add something like TryClear() instead.
This will be helpful for interrupts that can trigger independently. Otherwise there is no way to do this race-free.


DS-767 Remove usage of image component from card

Jira
https://pegadigitalit.atlassian.net/browse/DS-767
Summary
Support for image element was added.
Details

Support for the Image Element is added,
Backwards compatibility with the Image Component
Card schema was updated to point to the Image Element  instead of the Image Component,
Image Component props were replaced with Image Element props in the pattern lab

How to test
Pull the branch. Check if by passing image element  in the Card component to the media: { image: image
 {% set image %}
  {% include<EMAIL_ADDRESS>with {
    attributes: {
      alt: 'Image alt text',
      src: '/images/placeholders/landscape-16x9-mountains.jpg',
    },
  } only %}
{% endset %}

{% include<EMAIL_ADDRESS>with {
  media: {
    image: image,
  },
  ...
  } only %}

renders the image element instead of the <bolt-image/> component
Release notes
When adding an image to the media inside Bolt Card component, please use a renderable image element for media.image instead of structured data.

@MarcinMr I am seeing something unexpected in the band collection example (this might be visible on other examples as well). It looks like the bolt-image component is still being rendered in the card but with an image element inside. Refer to the following screenshot, is this intended?

If you look at packages/components/bolt-card-replacement/src/card-replacement-media/_card-replacement-media.twig on line 21, it looks like the bolt-image is still rendered even when passing in a image element. I think the goal of tihs work is to remove the image component from this file.

@MarcinMr disregard the previous comment, for some reason when i pulled the branch it was out of date. Everything is looking correct now.

@remydenton
Thanks for explaining, this was my misunderstood. I updated the template and PL files.
I have one more question regarding _card-replacement-media.twig
On line 16 we check if the Card component has horizontal prop and then we update the props with the ratio and cover (this is for the deprecated).
On line 24 I tried to do the same for the image-element, Whenever the horizontal prop is true I wanted to update the image element with the prop background: true (needed for cropping Image Element when horizontal card is used)
But the terminal throws an error:

Seems like I can't use the merge filter on that object?
So whenever we want horizontal cards with image elements we need to add background: true to the image element include:
{% include<EMAIL_ADDRESS>with {
  background: true,
  attributes: {
    ...
  },
} only %}

Is there a way to do it in the template? Or adding the background prop directly to the image-element include is ok?

@remydenton thanks for explaining. I updated the docs and the pattern lab, so right now there shouldn't be more examples like this:
media: {
  image: {
    src: '/path/to/image,

Looking really good, just one final comment/question on the wording in the docs.


Improve determining resize size when set wrap enabled

Hi - first off thanks for this plugin, I use it all the time!
Previously, when using the set wrap option, the area calculated to resize the window to was the number of actual lines in the visual selection, however the number of visibly selected lines can potentially be more than this if some lines are wrapped.
This commit makes this behaviour more intuitive by calculating the number of visible lines selected when this option is enabled and resizing the window to that size instead, so the resized window should always be the same as the visual selection rather than potentially smaller.
I'm not sure how idiomatic this is as I'm not very familiar with Vimscript, but it seems to do what I wanted. Thanks :)

@BobWhitelock: Thanks for doing this! I always wanted to implement that behavior. I was hoping there would be a Vimscript function to do this, but I'm afraid there isn't. So using gj to count the screen lines seems like the best approach for now. And it seems to work quite well :+1:
I do see two issues however:

Try to visually select the last line in buffer and split it off with :VSSplit or similar. It doesn't work because you try to walk past the last line with gj, but it's impossible. I think you could handle that case by checking if gj moves the cursor at all. If it doesn't you might be on the last visual line.

Select a few visual lines and split them off in any way. Notice how in the original buffer your cursor is now below the previously selected area. That's because you moved the cursor down with gj. Compare that behavior with the current master. There after the split, the cursor sits on the first line of the selected text. That's also how yip behaves. I think we should put the cursor back no line1 after we reached below line2 (or the last buffer line) with gj.

@BobWhitelock: Do you want to improve on those two points?

Thanks for pointing out those two issues. I'd be happy to take another look, I'll have a go at fixing them in the next few days.

Cool I'll check your commits next week. Did you implement jumping the cursor back to line1?

No I haven't managed to do that yet. I would have thought it would just require a simple call cursor(a:line1, 0) at the end of s:split, however that doesn't seem to move the cursor back to a:line1 - although also adding echom line('.') after this does give a:line1, which would seem to suggest that it had worked. Any ideas why this appears to work but the cursor doesn't actually move?

@BobWhitelock: Thank you!
I did try adding cursor(a:line1, 0) at the end of s:split (after wincmd p) and it does move the cursor. It's only visible if you try it on multiple (physical, not screen) lines though, because the 0 doesn't move to the first column. So if you do cursor(a:line1, 1) it works as expected.
But this should only be needed when wrap is turned on. So I think the better place to call it would be at the end of s:visual_lines_between just before the return. Can you do that?

Hi @wellle - I've added another commit, is this doing what you meant now? Happy to make any other changes needed.
Thanks

Yes exactly, thanks again :+1:

Great, thanks for your help with working on this!


Support setting the apiversion (like the Go cli)

I would like to add this support in a PR.
These options will be passed into the client.js constructor: https://github.com/apache/incubator-openwhisk-client-js/blob/c2de73b69db3c95fa874c009c5b9b92302eecbd8/lib/client.js#L84
... and this option will be passed to this function:
https://github.com/apache/incubator-openwhisk-client-js/blob/313fcec68f7393f245fd3bacf4fa512c56028bef/lib/client.js#L107
Any concerns?

sounds fine - open the PR?

Thanks! see #151


#244 - use lock in update

For #244 I've added lock usage in update.

Codecov Report

Merging #246 into master will decrease coverage by 0.13%.
The diff coverage is 66.66%.

@@             Coverage Diff              @@
##             master     #246      +/-   ##
============================================
- Coverage     80.16%   80.03%   -0.14%
- Complexity      224      226       +2
============================================
  Files            38       38
  Lines          1200     1212      +12
  Branches         52       52
============================================
+ Hits            962      970       +8
- Misses          228      232       +4
  Partials         10       10

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/com/artipie/rpm/Rpm.java
44.37% <53.84%> (+0.70%)
25.00 <2.00> (+1.00)

...rc/main/java/com/artipie/rpm/misc/StorageLock.java
82.14% <87.50%> (+2.14%)
11.00 <4.00> (+1.00)

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 c5b426b...a83730b. Read the comment docs.

This pull request #246 is assigned to @carlosmiranda/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @g4s8/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be a monetary reward for this job

@carlosmiranda/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

Job #246 is already in scope

GitHub issue is still open, won't close

@olenagerasimova need to merge with master

@olenagerasimova it seems this PR can be merged, WDYT?

@g4s8 yes, it can be merged

@olenagerasimova this branch needs merge with master

@carlosmiranda I'm closing this PR as it's not valid any more

The project doesn't have enough funds, can't make a payment

Code review was too long (76 days), architects (@g4s8, @olenagerasimova/z) were penalized, see §55

Pull request #246 was not merged, no payment for ARC, see §28


Update the SOP for Updating Release Notes

Problem statement
The release notes SOP need to be updated to reflect the current process requirements. This will avoid issues with engineering deployments in the future.
What you need to know

release notes SOP

Acceptance criteria

[ ] Chris, Andrey, and Etan meet and update the Release Notes SOP

Meeting is scheduled - Tuesday 5/30

Met and updated the procedure updated 5/30


number of parameters

how many parameters this model uses? i know that NeRF model use MLP to store the RGB information about 3D points. does MLP parameter affects the quality of novel view synthesis?

Our model has 8 layers MLP with 256 hidden units for the decoder. We found that these hyperparameters achieve the best performance and efficiency through empirical experiments.


Feature/ras-2d

This PR will:

Add functionality to extract 2d Connections hydraulic data
Add functionality to extract 2d geospatial features (Connections, Break Lines, and Boundary Condition Lines)
Add code comments to /tools/structures.go

[ ] Merge both getDescription functions
[ ] Change nlines++ to bool in getDescription function
[ ] Remove log statements
[ ] Add invalid line check to RiverLine


Sage/how to build a basic crud app in solidity

All the issues with the former PR has been addressed

I have finished reviewing this article, just waiting for you to approve it @joenyzio @viral-sangani

Alterations that ought to be executed upon your pull request :

Relocate the folder 01-21-2023-how-to-build-a-basic-crud-app-in-solidity
into the blog/ folder."

Incorporate the following code on the first line of the tutorial file and populate the required data.

---
title:
description:
authors:
  - name:
tags:
hide_table_of_contents: true
slug: "/tutorials/how-to-build-a-basic-crud-app-in-solidity"
---

For the header image, you may retrieve it from your Trello card and save it within the src/data-tutorials/showcase/beginner folder. I recommend naming the file according to the title of the tutorial you created.

To have your tutorial added to the list, you will need to edit the file src/data-tutorials/users.tsx and edit the code below. You can follow the example that already exists in the users.tsx
file.

{
   title: '',
   description: '',
   preview: require(''),
   website: '',
   tags: ['beginner', celosage],
}

finally, ensure you run prettier for your markdown file.

Should you still struggle to grasp what has already been explained, you may pursue two videos provided by the Celo team

How to create your first tutorial
How to create a PR for your tutorial

All issue has been addressed. Kindly merge.


Viro AR example broken and/or out-of-date

Your examples that show how "eject" a ViroAR project and build native iOS and Android apps are out-of-date in that they don't refer to current versions of the Apple, Android and React Native tools.  I was in fact unable to get ViroARSampleApp to work.
I've created an up-to-date example that details all the sometimes painful steps that you must go through to get a React Native ejected and working with Viro.  Most of the issues are to do with React Native continuously breaking support for CocoPods and use_frameworks!.
You can find the example at TestViroAR.  Please feel free to share and/or submit enhancements.  I'd like to get that boring white cube shaded...

Thanks @jlyonsmith for sharing your steps and code with us. Will share with others who run into similar issues. We are upgrading to a newer version of RN in our next release, so hopefully some of these issues go away. Will also take a look at our implementation to see if there are mitigation we can do on our end.

We upgraded to RN 0.55.1 with our latest release -> ViroReact 2.6.0. Release notes and upgrade instructions here -> https://virocore.viromedia.com/docs/3d-objects#section-loading-3d-objects
This resolved most of the issues. Closing this issue but please reopen if you are still having issues. Thanks for your help.


Synthesis failed for Google.Cloud.Redis.V1Beta1

Hello! Autosynth couldn't regenerate Google.Cloud.Redis.V1Beta1. :broken_heart:
Here's the output from running synth.py:
Cloning into 'working_repo'...
Switched to a new branch 'autosynth-Google.Cloud.Redis.V1Beta1'
Cloning into '/tmpfs/tmp/tmpgjun0eue/googleapis'...
Note: checking out '88316b63a486002727e14032d104690541179fc9'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 88316b63a Generated synth.py files with multiple commits enabled
Note: checking out '7be2811ad17013a5ea24cd75dfd9e399dd6e18fe'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 7be2811a fix: Update gapic-generator version to pickup discogapic fixes
Switched to a new branch 'autosynth-Google.Cloud.Redis.V1Beta1-2'
Running synthtool
['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-03-30 07:27:04,166 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/apis/Google.Cloud.Redis.V1Beta1/synth.py.
Contents of preconfig file:
{"preclonedRepos": {"https://github.com/googleapis/google-cloud-dotnet.git": "/tmpfs/src/git/autosynth/working_repo", "https://github.com/googleapis/googleapis.git": "/tmpfs/tmp/tmpgjun0eue/googleapis"}}Extracted repo location: /tmpfs/tmp/tmpgjun0eue/googleapis
generateapis.sh: line 40: declare: GOOGLEAPIS: readonly variable
2020-03-30 07:27:04,214 synthtool > Failed executing /bin/bash generateapis.sh --check_compatibility Google.Cloud.Redis.V1Beta1:

None
2020-03-30 07:27:04,216 synthtool > Wrote metadata to synth.metadata.
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/tmpfs/src/git/autosynth/working_repo/apis/Google.Cloud.Redis.V1Beta1/synth.py", line 22, in <module>
    hide_output = False)
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/git/autosynth/env/lib/python3.6/site-packages/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('/bin/bash', 'generateapis.sh', '--check_compatibility', 'Google.Cloud.Redis.V1Beta1')' returned non-zero exit status 1.
Synthesis failed
Traceback (most recent call last):
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 482, in <module>
    main()
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 334, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 429, in _inner_main
    branch,
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 135, in synthesize_loop
    metadata_path, extra_args, deprecated_execution, environ, synthesize_py_path,
  File "/tmpfs/src/git/autosynth/autosynth/synth.py", line 278, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/home/kbuilder/.pyenv/versions/3.6.9/lib/python3.6/subprocess.py", line 389, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['/tmpfs/src/git/autosynth/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:


Add try_clone() for TlsStream (same as the TcpStream

TcpStream has this try_cone() method, so you can read/write the stream in different threads:
https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.try_clone
Please add it to TlsStream so we can do the same.

The internal TLS implementations do not support that operation.


Lower Link Layer code use upper link layer function have " undefined reference to"

I tried to do Bluetooth test on nrf52840
Under zephyr/subsys/bluetooth/controller/ll_sw, I have modified some programs and added modules "neat.c" and "neat.h" by myself
I use "lll_conn.c" in zephyr/subsys/bluetooth/controller/ll_sw/nordic/lll to reference the function(the function name is upd_conn_stat ) in "neat.c"
I have include "neat.h" in "lll_conn.c"
And after west build -p auto -b nrf52840_pca10056
the terminal show
zephyr/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c:376: undefined reference to upd_conn_stat'`
I think the reason is I use upper link layer(ull) function ("neat.h") in lower link Layer(lll)
How can i fix this problem?

@mfinmuch Have you added your files to CMakeLists.txt file?

@mfinmuch Have you added your files to CMakeLists.txt file?
Thanks!!!! I am a bit unfamiliar with cmakefile.txt
I add
zephyr_library_sources(         ll_sw/neat.c       )       zephyr_library_sources_ifdef(         CONFIG_BT_LLL_VENDOR_NORDIC         ll_sw/nordic/lll/lll_master.c       )
in 'if(CONFIG_BT_CENTRAL)'
and it finally build completed!!!!!!
There are lots of CMakeLists.txt in every folder but I  added is under /zephyr/subsys/bluetooth/controller

From what I can tell this has been resolved.  Please re-open if that's not true.


Readiness Report Crashing

Every time I open the Readiness report and enable content in the Add-in summary tab, Excel crashes.  Anyone see this?  Running O365 ProPlus x64

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

ID: 2843afe2-a11d-7d88-8b56-24f131782d01
Version Independent ID: f8bc6a27-b9f5-a729-b5e3-fdd9ac6642ed
Content: Use the Readiness Toolkit to assess application compatibility for Office 365 ProPlus
Content Source: DeployOffice/use-the-readiness-toolkit-to-assess-application-compatibility-for-office-365-pro.md
Service: o365-proplus-itpro
GitHub Login: @DHB-MSFT
Microsoft Alias: danbrown

@smokeyr -- if you continue to have this problem, contact<EMAIL_ADDRESS>They should be able to help you diagnose the problem.


'>>>' should be deleted?

https://github.com/lana-k/sqliteviz/blob/cc483f4720f8f6b04e94e33765c42bc9a1b4e831/src/views/Main/Editor/Tabs/Tab/Chart/index.vue#L95

@swuecho No, it's a deep selector:

If you want a selector in scoped styles to be "deep", i.e. affecting child components, you can use the >>> combinator

I use it to change the styles of a third-party child component.


[FEATURE] Look for config file in $XDG_CONFIG_HOME

Is your feature request related to a problem? Please describe.
There is a standard place for config files. Store the config file there.
Describe the solution you'd like
Use https://pkg.go.dev/os#UserConfigDir or https://github.com/adrg/xdg

Closing this issue because the code addressing this got merged and it's available as of v0.23.0.


NGC Documentation [WIP - DO NOT MERGE]

@cxs504 the swagger updates are complete and ready for a dev to review. The easiest way to view is to copy the raw yaml from here:
https://raw.githubusercontent.com/AdobeDocs/adobeio-console/19f920f62381cf9d1886b8f7eb173c6b844a3051/swagger.yaml
and paste it into editor.swagger.io.


InvocationContext should be second parameter to HTTP trigger function

In the v4 programming model, we write HTTP trigger functions have a type signature of:
export type HttpHandler = (context: InvocationContext, request: HttpRequest) => FunctionResult<HttpResponse>;

But the InvocationContext is not something that you necessarily need, meaning that it's quite common to have it as an ignored argument, resulting in a TypeScript warning, ts(6133).
Propose solution
Reorder the type signature (and underlying code) so that the HttpRequest is the first argument, allowing the InvocationContext argument to dropped if it's not needed.

I think I agree with you - my gut is saying it's more likely people will ignore context than the input argument (aka request in the case of http). We just have to decide if it's worth breaking the existing Functions pattern - I will need to get some more opinions before implementing this change. Whatever we decide, though, my preference is to maintain consistency for all triggers.

Yes, it does beg the question of whether they should all move to the (trigger, context) parameter ordering for consistency.
Personal opinion - it makes more sense, as the thing that triggered the Function is probably the most important bit of information, and context is less relevant.

Talked with a few people during our team's sync meeting. They generally seemed to prefer context first, but everyone said they did not feel strongly either way.
A big reason they like context first is because every trigger gets it passed in and the type is always the same. By contrast, the trigger input type changes a bunch and it's not necessarily important for every trigger (they brought up durable which doesn't use an input at all and timer triggers which have a pretty useless input).
We were also curious to compare to other languages. Somewhat surprisingly to me, we're the only one currently passing context first. Here is what I found as the arguments to an http trigger:

Python: req (context seems to be an optional second argument, but they don't include it in the default template)
.NET: request, logger
PowerShell: $Request, $TriggerMetadata
Java: request, context

Talked with a few people during our team's sync meeting. They generally seemed to prefer context first, but everyone said they did not feel strongly either way.
A big reason they like context first is because every trigger gets it passed in and the type is always the same. By contrast, the trigger input type changes a bunch and it's not necessarily important for every trigger (they brought up durable which doesn't use an input at all and timer triggers which have a pretty useless input).

But is the type really that important? JavaScript is inherently untyped, so it's not like there's much in the way of boxing/unboxing the type, it's always been order that's been important to JS Functions, and it's just the TypeScript definition that makes an assumption on what the type would be for the input.
I'd foresee you would have type definitions like (roughly, this was just scaffolded in markdown 😅):
export type FunctionHandler<TTrigger = unknown, TReturn = void> = (trigger: TTrigger, context: InvocationContext) => Promise<TReturn> | TReturn;

export type HttpFunctionHandler = FunctionHandler<HttpRequest, HttpResponse>;
export type TimerFunctionHandler = FunctionHandler<string, void>;

export namespace app {
    export function http(name: string, handler: HttpFunctionHandler): void;
    export function timer(name: string, handler: TimerFunctionHandler): void;
}

On the flip side, we were curious to compare to other languages and surprisingly (at least to me) we're the only one currently passing context first. Here is what I found as the arguments to an http trigger:

Python: req (context seems to be an optional second argument, but they don't include it in the default template)
.NET: request, logger (similar to python, there's an optional context argument this time as a third arg)
PowerShell: $Request, $TriggerMetadata
Java: request, context

I feel like that for dotnet (probably Java and PowerShell too) the order is less relevant as it's strongly typed and reflection can be used to determine the parameters and their order, but it is interesting to note that the are all trigger-first designed.

I don't disagree with you - was just passing along feedback.
For the information about other languages, I didn't realize that until after I had talked with my team. Once I told them, I think it swayed most folks in favor of this change. I'll let the decision bake for a little bit, but seems like we'll do it


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: ee3a74d01d0ac49ef4e229db3ba5cbd7d9b14f48
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: e0c25743a90a3da26b83ebe3c994be74bf481e0e
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: df37771b5ce72e4a64040addcd95885ad800818d
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: DDKIntegrationTestsD8472609-5SCHWjldmWcf
Commit ID: a618505406454893a39b7d9298474ce76f786364
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


 A common design paradigm in REST APIs is CRUD (Create, Retrieve, Update and Delete). As such, it is important to test these sequences (or ones specified by the developer) to ensure the core use case is operational.
This is not limited to CRUD, but will be configurable by providing a sequence object at test generation.
Below is an example of the proposed option, for the CRUD sequence, identified by the name 'seq1':
testGen(swagger, {
      testModule: 'supertest',
      assertionFormat: 'should',
      pathName: [],
      sequences: {
        'seq1': [
          { path: '/user',
            op: 'POST' },
          { path: '/user/{id}',
            op: 'GET' },
          { path: '/user/{id}',
            op: 'PUT' },
          { path: '/user/{id}',
            op: 'DELETE' }
        ]
    }
});

@noahdietz Does this include the ability to "build" on data obtained in a previous test? E.g., I want to

Get /foo/users?name=0x1mason <== returns userId
Get /foo/{userId}/info <== cherry pick firstName from response body
etc

@0x1mason yes! If you look at the PR right above your comment, I implemented integration test generation in my own fork. The implementation is slightly different than defined in my original issue here. This feature is slightly limited in the support of the robust OpenAPI (fka Swagger), I wanted it as a PoC.
The README of my forked repo has the updated usage.
In reference to your mention of "cherry picking" the dependencies, I implemented it as a shared (global) object. So each request in the sequence will store their response body in the shared object (whether they are a dependency or not), keyed by their step label. These will be accessible to all following requests in the defined sequence.

Sweet, thanks!


VisionPro?

Any possibility for VisionPro support?

Hi @tactevo , we can look into this, but we'd be very curious to know what you are hoping to do with RNBO, Unity, and the Apple Vision Pro -- can you give us a little more information?

I'd like to build interactive and immersive 3d musical 'experiences' that uses RNBO for real time synthesis of generative music and soundscape tracks.


Added support for passing a user argument to custom memory allocation functions

I have added support for passing a user argument to custom memory allocation functions as discussed in https://github.com/akheron/jansson/issues/225
In particular:

Two additional types have been created: json_malloc_arg_t and json_free_arg_t, which are similar to their json_malloc_t and json_free_t counterparts but the former ones get an extra argument (the user argument).
A new function has been defined: json_set_alloc_funcs_arg. It does the same as its counterpart json_set_alloc_funcs but also accepts the user argument that will be passed to custom memory allocation functions.

Passing NULL as the user argument of json_set_alloc_funcs_arg treats the specified functions as user argument-less.

LGTM.  It would be better to add some example about usage.


Update spring-reference and sync changelog

Description

Update sdk/spring/spring-reference.yml
Sync spring changelog from 5.5.0

All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


Toggles for events

Allow events such as memberJoin or messageDelete to be toggled per server or globally

V2.4


How to get production from v7/v8 FW

Hey there,
Thanks a ton for this work, I am learning a lot!
I am looking for a fine-grained measurement to monitor power flows from my installation, and this looks really close to my needs.
One thing that is not obvious to me, though, and I hope you could help. With V5 firmware it looks like there is a dedicated section for production and consumption and net power.
For V7/V8 firmware, I don't understand how production is represented.
Could someone help me with that?
Best,
Fabien

Hi,
Thanks for using the addon.
There's a writeup here about what the V7 values mean:
https://community.home-assistant.io/t/enphase-envoy-d7-firmware-with-jwt-a-different-approach/594082
@helderfmf  wrote the v7 section of this addon code - he may be able to assist with the specifics of templates that may be needed for Home Assistant?
Thanks

Just in case others come looking for a solution to the same problem:
mqtt:
  sensor:
    - name: "mqtt_net"
      state_topic: "/envoy/json"
      unit_of_measurement: "W"
      qos: 0
      state_class: measurement
      device_class: power
      value_template: '{{ value_json[1]["activePower"] | round(0) | int(0) }}'

    - name: "mqtt_production"
      state_topic: "/envoy/json"
      qos: 0
      unit_of_measurement: "W"
      value_template: '{{ value_json[0]["activePower"] | round(0) | int(0)}}'
      state_class: measurement
      device_class: power

    - name: "mqtt_consumption"
      state_topic: "/envoy/json"
      unit_of_measurement: "W"
      qos: 0
      state_class: measurement
      device_class: power
      value_template: '{{ value_json[1]["activePower"] | round(0) | int(0) + value_json[0]["activePower"] | round(0) | int(0) }}' # Net + production


feat: Port Topology.MetricSpace.Infsep

Sorry for leaving comments before the PR is awaiting-review. I should've not intervened at this stage.


run_worker.sh updates

Exit on failed commands or undefined variables (kudos to Hunor for repeatedly bringing this to my attention)
Simplify setting of default values

can't reproduce the pre-commit error, merging manually


Search icon on the sidebar not showing shortcut inside tooltip

Does this issue occur when all extensions are disabled?: Yes (Insiders is checked as well)

VS Code Version: 1.56.0
OS Version: Windows 10 Home 20H2 19042.964

Steps to Reproduce:

Open VS Code
Hover mouse cursor on search icon, on sidebar

I am missing it from the View menu too. Didn't we just fix that somehow?

Yeah..

Looks like this regressed way back in https://github.com/microsoft/vscode/commit/e94d5c783983fd144ce5fe74409e060169745e36. The keybinding service "forgets" any binding that is overwritten at a higher priority level... so if we have two actions, A & B, both with the same keybinding, but A is higher priority than B, then asking the keybinding registry for B's keybinding will give null. This feels wrong, but it's been around for a while now so I don't think it should change.
The workaround from before (setting them both to the same priority level, but giving one a regex-based context key expression that never matches) works, but it's a bit weird to look at. cc @alexdima and @sandy081 if you have any suggestions here.
To summarize the problem...
We have two actions: workbench.action.findInFiles, and workbench.views.search, both with Cmd+Shift+F as a keybinding. Ideally, we'd only give workbench.action.findInFiles the binding, as that handles the case of a user configuring search.mode to use a search editor by default, but the general views machinery labels the view container's title with the keybinding from workbench.views.search, and that's also the binding that goes in the view=>search menu. So we need to give them both the binding, but it should always dispatch to workbench.action.findInFiles. If we give workbench.action.findInFiles higher priority, then the keybinding service will forget that workbench.views.search also has the same keybinding.
I went ahead and changed workbench.views.search's when back to the weird regex thing, as this does not prevent it from appearing in the menus/tooltips, but does stop it from being dispatched to. If anyone has any better ideas I'd love to hear, this seems to be the only approach that does not break one of #116188, #115556, #115511, and now #124146, and the only downside is that the entry in the settings editor is a bit odd to look at.

To make sure I understood it: you have two actions, action1 and action2 and action1 sometimes calls action2 in its implementation. So you would like that looking up the keybindings for action2 would contain the keybindings for action1.
I don't think I've seen quite such a use-case before and we don't model this in any way in the CommandService...


How to view the loss curve in the tensorboard?

How to change the code to view the loss curve in the tensorboard.
I see that other versions of Faster-rcnn have logs in the directory “experiments/logs/xxx”  ， but this versions does not have it.
i would appreciate it if you answer my question.

This project does not log on Tensorboard by default, so you'll not find that folder; you can easily add it as done here

thank you！

You're welcome


Mobile navbar error

Navbar does not open on mobile.

Sorry that it has taken us so long to respond, but the dashboard branch is supplied as-is and will not be updated going forward as we have plans for something better.


ARTEMIS-1532 Enable tests which are unintentionally skipped by Surefire

This is not ready to be merged, because HAAutomaticBackupSharedStoreTest and testSystemPropertyOverride are failing after these changes.

Are you sure it was unintentional ?
I’m not on a computer now. But I remember a few tests that were commented out instead of removed to be checked later and we never got back to them.

Well, I might've guessed the intent wrong in one or two cases, I guess.
If I thought it is unintentional, I've either renamed the class (so that Surefire would pick it) or added the @Test annotation.
If I thought it is intentional, I've added @Ignored annotation instead of whichever other method was used to disable that test.

@mtaylor @clebertsuconic could we fix this up, seems this got merged with PR build broken, and since PR is constantly failing with this test testSystemPropertyOverride

Have sent in https://github.com/apache/activemq-artemis/pull/1737 to fix this


#8585 Add submitter information to provenance metadata

References

Fixes #8585

Description
Added provenance with user information to submits without workflows
Instructions for Reviewers
Make a submit to a collection without workflow and Provenance witt "Submitted by ..." information is present.
Checklist

[X] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & integration tests). Exceptions may be made if previously agreed upon.
[X] My PR passes Checkstyle validation based on the Code Style Guide.
[X] My PR includes Javadoc for all new (or modified) public methods and classes. It also includes Javadoc for large or complex private methods.
[X] My PR passes all tests and includes new/updated Unit or Integration Tests based on the Code Testing Guide.
[X] If my PR includes new libraries/dependencies (in any pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[X] If my PR modifies REST API endpoints, I've opened a separate REST Contract PR related to this change.
[X] If my PR includes new configurations, I've provided basic technical documentation in the PR itself.
[X] If my PR fixes an issue ticket, I've linked them together.

Thanks @aroman-arvo. Does this also cover the scenario where metadata is imported via dspace metadata-import from the command line? I notice in the past that items imported in bulk like this do not have provenance information.

@alanorth  Well seen. It does not take it into account. Nor the import of zips either.
It can be done easily but if you already have provenance in the data to be imported, an additional provenance should be created?

It can be done easily but you already have provenance in the data to be imported, an additional provenance should be created?

@aroman-arvo we import thousands of records via CSV import and we never include provenance information. It always seemed strange to me that the email address of the eperson is mandatory when doing a dspace metadata-import, but it is not recorded anywhere in the resulting records.

If you export from one DSpace and import into another, the data brings the original provenance data. Maybe we can simply add the new provenances, and traceability is preserved.
The email is necessary if the items are new, so they are assigned to that user as their owner.

If you export from one DSpace and import into another, the data brings the original provenance data. Maybe we can simply add the new provenances, and traceability is preserved.

Not all imports come from other DSpaces. ;) For example, at our site we often digitize a bunch of archive records and create a CSV for import.

_
The email is necessary if the items are new, so they are assigned to that user as their owner.

I thought the general principle was that DSpace should record provenance when it takes possession of an item. By default dspace metadata-import skips the workflow and then there is no provenance either.

Thanks, @aroman-arvo! This works great for the command line import case. I tested on DSpace 7.6 by importing a simple item via dspace metadata-import before and after applying the patch.
Before, I only have one provenance field saying when the item was made available:

dc.description.provenance | Made available in DSpace on 2023-10-17T07:25:07Z (GMT). No. of bitstreams: 0

After, I have two:

dc.description.provenance | Submitted by Alan Orth<EMAIL_ADDRESS>on 2023-10-17T07:29:05Z No. of bitstreams: 0
dc.description.provenance | Made available in DSpace on 2023-10-17T07:29:05Z (GMT). No. of bitstreams: 0 | en

I am +1 by testing.


[WIP] Syncservice rebased onto HDFS-12090

@virajith @ashvina
This is a rebase of the sync service for HDFS-12090 rebased onto the current branch.

Hi @ehiggs @virajith,  any news on the state of sync service and HDFS-12090?

Hi, @qboileau, based on this patch, we had developed provided storage sync write feature further. Now, the patch is almost in good shape. And we will post the patch to JIRA, expected in this month.

Based on this patch from @ehiggs, we developed the feature to support provided storage write. Please review our patch in https://issues.apache.org/jira/browse/HDFS-15714.


Loading the state dict of a model without InPlaceABN

Hi.
First of all, this package is amazing, and provided an incredible speed boost to training all of my models, so thanks.
Now, I am trying to convert a standard pretrained model (like resnet50) to InPlaceABN model. Basically, I would like to be able to take any model, and apply on it a function that would convert all the BatchNorm2d with a InPlaceABN and copy all of the parameters.
I have written a the following script. It is working if I use ABN but it is not working when I use InPlaceABN.
Basically, I load a pretrain ResNet50 model, and apply the function to_abn on it. If I replace every nn.BatchNorm2d with ABN, I can infer on my test set and get the test accuracy I am supposed to.
If I use InPlaceABN in the below code, I get 0% accuracy, as if InPlaceABN was not able to load a state_dict from a regular nn.BatchNorm2d. Any idea where it comes from?
from inplace_abn import InPlaceABN, ABN
import torch.nn as nn
from utils import set_layer

def to_abn(module):
    if hasattr(module, 'module'):
        module = module.module
    for n, m in module.named_modules():
        if isinstance(m, nn.BatchNorm2d):
            num_features = m.num_features
            momentum = m.momentum
            eps = m.eps
            # The below line does not seems to work when I try to load the state_dict
            new_bn = InPlaceABN(num_features=num_features, eps=eps, momentum=momentum, activation='identity')
            # But the below line would work and provide same results as original network.
            # new_bn = ABN(num_features=num_features, eps=eps, momentum=momentum, activation='identity')
            new_bn.load_state_dict(m.state_dict())
            set_layer(module, n, new_bn)
    return module

the function set_layer simply replaces a module of the model with another module.
Thanks for your help

I just found that the problem occurs in resnet when I try to convert the bn3, before the skip connection with identity or downsample. I do not understand this behavior.
The following piece of code would work:
import torchvision.models as models
from inplace_abn import InPlaceABN

def to_abn(module):
    if hasattr(module, 'module'):
        module = module.module
    for n, m in module.named_modules():
        if isinstance(m, nn.BatchNorm2d) and not 'bn3' in n:
            print(n)
            num_features = m.num_features
            momentum = m.momentum
            eps = m.eps
            new_bn = InPlaceABN(num_features=num_features, eps=eps, momentum=momentum, activation='identity')
            new_bn.load_state_dict(m.state_dict())
            set_layer(module, n, new_bn)
    return module

module = models.resnet50(pretrained=True)
module_abn = to_abn(module)
...

Then, the question is what happens with the third batch norm that prevent it to work? Maybe the fact that the operation is inplace can not handle the skip connection operation that is also inplace?

@yoniaflalo when you say that it doesn't work, are you talking about a crash, or is it just bad performance?

In any case, there are two issues with blindly replacing standard BN with InPlaceABN in the default ResNet50 model from Pytorch (or at least, this was the case last time I worked with it 2 years ago):

The default residual block implementation overwrites the output of the main branch with the sum between it and the skip connection. This conflicts with InPlaceABN and generally results in a crash during back-propagation.
InPlaceABN uses a different implementation of the scaling operation compared to standard BN and ABN, i.e. y = (|w| + eps) * x + b instead of y = w * x + b. This is because we need to ensure that the scaling is always invertible. Because of this, in general it is not possible to load pre-trained wegiths from a standard BN network in an InPlaceABN network.

I hope this helps.

I mean that the output is not equivalent to the regular batch norm. But I just understood why. Because in the module InplaceABN, you replace gamma with abs(gamma)+ epsilon. So the nn.BatchNorm2d is not mathematically equivalent to your InplaceABN. So I cannot load in InplaceABN a batchnorm state_dict that have been trained with  nn.BatchNorm2d .

Thanks a lot for your feedback. Now everything is clear. I believe I can close this issue since it is solved

@yoniaflalo there is actually a work around for this issue, even if a bit laborious. Assuming that every InPlaceABN/BN of the network is preceded by a standard Convolution with no bias and nothing else, you can adapt the weights of the pre-trained model to work correctly with InPlaceABN as follows:
For each Conv-BN pair (conv, bn) in the network do:

Find the negative bn weights: mask = bn.weight < 0
Invert the corresponding convolutional weights: conv.weight[mask, :, :, :] *= -1
Invert the bn weights: bn.weight[mask] *= -1

This should result in an (approximately because of eps) compatible model. Note that the procedure only works if the network exactly satisfies the condition I mentioned above.

Thanks a lot it's exactly what I was looking for

Hello, @yoniaflalo and @ducksoup , I now meet a seemly similar problem, I want to load a state_dict from InPlaceABN to BN because I want to deploy a model to C++  with libtorch.jit, while InPalceABN is not supported by JIT yet.
Looking through your discussion, it seems impossible to finish this work,  because all the InPlaceABN.weight >= 0,  I cannot decide which should be invert, am I right? Or is there a method to solve this problem?

Hello, @yoniaflalo and @ducksoup , I now meet a seemly similar problem, I want to load a state_dict from InPlaceABN to BN because I want to deploy a model to C++ with libtorch.jit, while InPalceABN is not supported by JIT yet.
Looking through your discussion, it seems impossible to finish this work, because all the InPlaceABN.weight >= 0, I cannot decide which should be invert, am I right? Or is there a method to solve this problem?

Hi @Julymycin . You have two options. The first one is the solution given before by @ducksoup , that works pretty good.
The second one is to perform Batch Norm Fusion. After having used ABN to train your network, you can remove all the batch norm by fusing it with the convolutional weights for deployment purpose. Here is a piece of code that can do this.
def fuse_bn_to_conv(bn_layer, conv_layer):
    # print('bn fuse')
    bn_st_dict = bn_layer.state_dict()
    conv_st_dict = conv_layer.state_dict()

    # BatchNorm params
    eps = bn_layer.eps
    mu = bn_st_dict['running_mean']
    var = bn_st_dict['running_var']
    gamma = bn_st_dict['weight']

    if 'bias' in bn_st_dict:
        beta = bn_st_dict['bias']
    else:
        beta = torch.zeros(gamma.size(0)).float().to(gamma.device)

    # Conv params
    W = conv_st_dict['weight']
    if 'bias' in conv_st_dict:
        bias = conv_st_dict['bias']
    else:
        bias = torch.zeros(W.size(0)).float().to(gamma.device)

    denom = torch.sqrt(var + eps)
    b = beta - gamma.mul(mu).div(denom)
    A = gamma.div(denom)
    bias *= A
    A = A.expand_as(W.transpose(0, -1)).transpose(0, -1)

    W.mul_(A)
    bias.add_(b)

    conv_layer.weight.data.copy_(W)
    if conv_layer.bias is None:
        conv_layer.bias = torch.nn.Parameter(bias)
    else:
        conv_layer.bias.data.copy_(bias)

def extract_layers(model):
    list_layers = []
    for n, p in model.named_modules():
        list_layers.append(n)
    return list_layers

def compute_next_bn(layer_name, resnet):
    list_layer = extract_layers(resnet)
    assert layer_name in list_layer
    if layer_name == list_layer[-1]:
        return None
    next_bn = list_layer[list_layer.index(layer_name) + 1]
    if extract_layer(resnet, next_bn).__class__.__name__ == 'BatchNorm2d':
        return next_bn
    return None

def fuse_bn(model):
    for n, m in model.named_modules():
        if isinstance(m, nn.Conv2d):
            next_bn = compute_next_bn(n, model)
            if next_bn is not None:
                next_bn_ = extract_layer(model, next_bn)
                fuse_bn_to_conv(next_bn_, m)
                set_layer(model, next_bn, nn.Identity())
    return model

You take your model and compute fuse_bn(model). It will fuse every batch norm with the convolution and replace the batch norm with identity. (This piece of code was written for regular batch norm nn.BatchNorm2d but you can easily adapt it to InplaceAbn

Hi, @yoniaflalo , thanks for your help and sry for my late reply... I now understand the two methods, but how about the definition of set_layer and exract_layer in pytorch?  thx

Sure, I forgot, sorry.
def extract_layer(model, layer):
    layer = layer.split('.')
    module = model
    if hasattr(model, 'module') and layer[0] != 'module':
        module = model.module
    if not hasattr(model, 'module') and layer[0] == 'module':
        layer = layer[1:]
    for l in layer:
        if hasattr(module, l):
            if not l.isdigit():
                module = getattr(module, l)
            else:
                module = module[int(l)]
        else:
            return module
    return module

def set_layer(model, layer, val):
    layer = layer.split('.')
    module = model
    if hasattr(model, 'module') and layer[0] != 'module':
        module = model.module
    lst_index = 0
    module2 = module
    for l in layer:
        if hasattr(module2, l):
            if not l.isdigit():
                module2 = getattr(module2, l)
            else:
                module2 = module2[int(l)]
            lst_index += 1
    lst_index -= 1
    for l in layer[:lst_index]:
        if not l.isdigit():
            module = getattr(module, l)
        else:
            module = module[int(l)]
    l = layer[lst_index]
    setattr(module, l, val)

Thank you @yoniaflalo ! I deploy successfully by using your methods. Looking through some issues in this repo, I also try to replace InplaceABNSync with ABN by change the *.bn*.weight to abs(*.bn*.weight)+eps, because in the network, the activation parameter of some InPlaceABNSync are set to none, while some are set to default. Even though it seems to cost 80% more GPU memory, the precision is great. Thanks!

@Julymycin Could you please let me know where exactly should we change this ?

ABN by change the *.bn*.weight to abs(*.bn*.weight)+eps

Is it when I load the model and then look into each layer and try to do this?Or is it in the definition of the model?

@poornimajd here is a sample
`model = networks.init_model('resnet101', num_classes=num_classes, pretrained=None)
state_dict = torch.load(**inplaceABN_model_path**)['state_dict']
from collections import OrderedDict
new_state_dict = OrderedDict()
for k, v in state_dict.items():
    k = k[7:]
    ss = k.split('.')
    if ss[-2].startswith('bn') and ss[-1].endswith('weight'):
        v1 = torch.abs(v) + eps
    else:
        v1 = v
    new_state_dict[k] = v1
model.load_state_dict(new_state_dict)
model.cuda()
model.eval()
torch.save(model.state_dict(), **ABN_model_path**)`

@Julymycin  I want to ask you that is there any way to change Inplace-abn to BN for training? The method above is  for deployment.

model = networks.init_model('resnet101', num_classes=num_classes, pretrained=None)

Hi, in 'model = networks.init_model('resnet101', num_classes=num_classes, pretrained=None)', it use standard BN or Inplace_ABN?


Implement cupy.repeat

It would make the implementation of Contrastive Loss simpler.
Related to #553.

#603 ?

Sorry, it is duplicated.


App crashed on getting applist

Error on getting applist. App crashed.
```[DEBUG] 2017-09-11 18:41:29 :: idb ::  Backtrace: /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/lib/app.rb:284:in cache_file' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/lib/app.rb:311:in parse_info_plist'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/lib/app.rb:21:in initialize' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:74:in new'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:74:in block in refresh_app_list' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:73:in each'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:73:in refresh_app_list' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:31:in initialize'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/global_app_details_group_box.rb:43:in new' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/global_app_details_group_box.rb:43:in block in initialize'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:2470:in call' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:2470:in invoke'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:479:in qt_metacall' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:479:in method_missing'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:479:in exec' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/idb.rb:278:in run'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/bin/idb:4:in <top (required)>' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/bin/idb:23:in load'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/bin/idb:23:in <main>' /Users/d34dr00t/.rvm/gems/ruby-2.2.6/bin/ruby_executable_hooks:15:in eval'
/Users/d34dr00t/.rvm/gems/ruby-2.2.6/bin/ruby_executable_hooks:15:in <main>'. /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/lib/app.rb:37:in initialize': undefined method bundle_identifier' for nil:NilClass (NoMethodError) 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:74:in new'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:74:in block in refresh_app_list' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:73:in each'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:73:in refresh_app_list' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/app_list_dialog.rb:31:in initialize'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/global_app_details_group_box.rb:43:in new' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/gui/global_app_details_group_box.rb:43:in block in initialize'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:2470:in call' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:2470:in invoke'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:479:in qt_metacall' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:479:in method_missing'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/qtbindings-<IP_ADDRESS>/lib/Qt/qtruby4.rb:479:in exec' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/idb.rb:278:in run'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/bin/idb:4:in <top (required)>' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/bin/idb:23:in load'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/bin/idb:23:in <main>' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/bin/ruby_executable_hooks:15:in eval'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/bin/ruby_executable_hooks:15:in <main>' recv failed: Resource temporarily unavailable ➜  ~ /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.2.0/lib/net/ssh/prompt.rb:44:in noecho': Input/output error (Errno::EIO)
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.2.0/lib/net/ssh/prompt.rb:44:in ask' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.2.0/lib/net/ssh/authentication/methods/password.rb:68:in ask_password'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.2.0/lib/net/ssh/authentication/methods/password.rb:21:in authenticate' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.2.0/lib/net/ssh/authentication/session.rb:80:in block in authenticate'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.2.0/lib/net/ssh/authentication/session.rb:66:in each' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.2.0/lib/net/ssh/authentication/session.rb:66:in authenticate'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/net-ssh-4.2.0/lib/net/ssh.rb:241:in start' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/lib/ssh_port_forwarder.rb:15:in initialize'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/helper/ssh_port_forwarder.rb:36:in new' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/helper/ssh_port_forwarder.rb:36:in run'
from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/helper/ssh_port_forwarder.rb:63:in <module:Idb>' 	from /Users/d34dr00t/.rvm/gems/ruby-2.2.6/gems/idb-2.10.0/lib/helper/ssh_port_forwarder.rb:7:in '
➜  ~```
P.S. Darwin zion 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

I have the same issue. But my guess is issue #91 is still not fixed and be related.

Which iOS version is this on?

Sierra 10.12.6 (16G29)

sorry I mean the version on the iPhon/iPad not on the Mac. Is it iOS 10 or iOS 9?

9.0.2 (13A452) Jailbreaked :)


how often are images built?

After updating the alpine linux version in https://github.com/kubernetes/examples/blob/master/staging/storage/redis/image/Dockerfile I realized it might take a while to the correct Docker image to appear in the docker hub registry.
So the question is, who is responsible for building images and pushing them to
https://hub.docker.com/u/kubernetes/ ?
Does it make sense to add some CI here?

ping, so the bot does not close this issue.


cbindgen fails to build

I'm updating my machine, and I get this
-> cbindgen Starting build
 Downloading crates ...
  Downloaded rand v0.7.2
  Downloaded getrandom v0.1.13
  Downloaded libc v0.2.66
  Downloaded proc-macro2 v1.0.6
  Downloaded toml v0.5.5
  Downloaded rand_hc v0.2.0
  Downloaded redox_syscall v0.1.56
  Downloaded wasi v0.7.0
  Downloaded atty v0.2.13
  Downloaded winapi v0.3.8
  Downloaded syn v1.0.11
  Downloaded winapi-x86_64-pc-windows-gnu v0.4.0
  Downloaded winapi-i686-pc-windows-gnu v0.4.0
error: cannot produce proc-macro for `serde_derive v1.0.104` as the target `x86_64-unknown-linux-musl` does not support these crate types
-> cbindgen Build failed

This crate builds on a glibc void chroot

It builds fine here. Output of kiss l?

https://termbin.com/l1ko

ah, I was on the rustup toolchain


Prefer attributes over host classes documentation

Pull Request
🤨 Rationale
The discussion of whether to prefer attributes over host classes, i.e. :host(.my-class)), has come up several times. This PR makes a firm recommendation of preferring attribute-based APIs for nimble components and strongly discourages host classes.
👩💻 Implementation
The changes in this PR are for documentation updates to prefer classes. The discussion in the PR comments propose the changes to our component APIs to prefer attributes and link to an example branch for discussion.
🧪 Testing
Just doc updates.
✅ Checklist

[x] I have updated the project documentation to reflect my changes or determined no changes are needed.

@jattasNI reset you as a sanity check now that there is an implementation associated with the docs change.


Support markdown for readme and setup.py

Warehouse now supports markdown per this PR.
An explanation of how to use the feature can be found here.
It would be nice to be able to tell pyscaffold to use markdown instead of .rst.

Thanks @patrick-motard for this suggestion. I also prefer markdown over rst but it still seems that rst is more prevalent in the Python world. Since the goal of PyScaffold is to drive a standard for package creation I don't think it is a good idea to support markdown and rst with the help of a command-line flag. First of all it makes things much more complicated and defies the idea of a standard. So maybe in a new major version update we should completely switch to markdown not only in the Readme but also in Sphinx to keep it consistent. Do you have any idea how many Python projects are moving to markdown? I am definitely interested in a discussion about this.
As a short term solution for you, you could easily write a PyScaffold extension for this.

I started working on an extension https://github.com/pyscaffold/pyscaffoldext-markdown

A first release of the markdown extension was just published on PyPI.
@patrick-motard please check it out and let us know what you think.
I'll close this ticket for now. Please report further issues in the issue tracker of the extension.