Mongodb s3 Restore2

Restore script for mongodb s3 backups. It's still yet to be decided on how it will be invoked.

I really like the way this sorts out the entire cluster all at the same time, do you have any ideas how we would schedule this to ensure the primary has the new data before the rest of the cluster catches up? Would we just run it across all the nodes at the same time?
As a quibble please can commit messages have a title and a separate paragraph of text as it makes it harder to read otherwise.

I think this is basically there, although when we come to test it we just need to ensure that it runs on the primary, and then decide how we're going to schedule it. Merge it after https://github.com/alphagov/govuk-puppet/pull/4491

We still need to work out how we're going to schedule this, but let's address the outstanding comments and push it through to test in Integration only.

As discussed in mob review trim this down to simply do the restore function and we'll worry about the slaves and selection of primary elsewhere.

:+1: Looks good


Update the ActiveMQ pooling defaults

Resolves: https://jira.duraspace.org/browse/FCREPO-2357

Makes sense


Keep only most recent pre-computed queries

The pre-computed query docs that cache information for the school overview page are indexed using a unique key made by concatenating timestamp + student_ids.
The timestamp in the key increments once per day, so the job builds new queries every day and stores the results alongside all past days' queries.
If drop the timestamp from the query key, the PrecomputedQueryDocs will update instead of inserting if the student ID strings are identical.
This will stop this database table from growing so quickly, without losing any important information.

In SchoolsController the timestamp element of the key plays a useful role by making sure the precomputed doc is fresh (i.e. updated on the same day as the query):
    begin
      key = precomputed_student_hashes_key(time_now, authorized_student_ids)
      doc = PrecomputedQueryDoc.find_by_key(key)
      return JSON.parse(doc.json)['student_hashes'] unless doc.nil?
    rescue ActiveRecord::StatementInvalid => err
      logger.error "load_precomputed_student_hashes raised error #{err.inspect}"
    end

I wonder if we could use created_at / updated_at to achieve the same thing? Or a separate timestamp field that doesn't affect the key.

Sounds great!  In a similar spirit, we can purge any values here that are more than a week old.

👍

This is not a high-priority refactor right now compared to the other refactor issues we have open.


fix: Time::humanize() causes error with ar locale

Need to rebase after merging #6116
Description
Fixes #4708
Related #6116
Checklist:

[x] Securely signed commits
[] Component(s) with PHPDoc blocks, only if necessary or adds value
[x] Unit testing, with >80% coverage
[] User guide updated
[x] Conforms to style guide

@kenjis also had this problem for the Persian language(fa).
The problem is now solved (after 15cd4ca,)
The output is as expected.
$time = Time::parse('March 9, 2016 12:00:00', 'Asia/Tehran');
dd ($time->humanize());

$time->humanize() UTF-8 string (16) "۶ سال پیش"
Thanks


validate age

What kind of change does this PR introduce?

[x] bug-fix
[ ] new-feature
[x] enhancement

Ages between 1 and 150 is allowed.


WDM fails to install with no useable error message

Hello,
I am trying to install wdm so that I can get started with jekyll (jekyll requires wdm for watching files). However, the installation keeps failing with some (not very helpful) error messages.
Relevant version information:
Windows 10 Home 64-bit (version 1511)
> ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x64-mingw32] # (installed via chocolatey)
> gem -v
2.5.1

# Ruby Devkit installed via:
> choco.exe install ruby2.devkit
# NOTE: chocolatey failed to automatically install, so I had to go to C:\tools\DevKit2 and
#       complete installation myself.

Installation & logs
> gem install wdm -v '0.1.1'
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing wdm:
        ERROR: Failed to build gem native extension.

    current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/wdm-0.1.1/ext/wdm
C:/tools/ruby23/bin/ruby.exe -r ./siteconf20160621-18176-1cmz67l.rb extconf.rb
checking for main() in -lkernel32... yes
checking for windows.h... yes
checking for ruby.h... yes
checking for HAVE_RUBY_ENCODING_H... yes
checking for rb_thread_call_without_gvl()... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  C:/tools/ruby23/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/wdm-0.1.1/mkmf.log

current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/wdm-0.1.1/ext/wdm
make "DESTDIR=" clean

current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/wdm-0.1.1/ext/wdm
make "DESTDIR="

make failed, exit code 1

Gem files will remain installed in C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/wdm-0.1.1 for inspection.
Results logged to C:/tools/ruby23/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/wdm-0.1.1/gem_make.out

I've attached mkmf.log and gem_make.out to this gist so that it doesn't make this issue painful to read :grin:
To me, the error messages are not entirely helpful. If possible, could someone take a look at this for me?
Thanks!

Was there ever a resolution for this? I'm running into the same issue.

I wasn't able to find a resolution, and none of the contributors ever replied :disappointed:


Updating collector/internal/tools dependencies

b/324248087
Updating collector/internal/tools dependencies

closed in favor of https://github.com/GoogleCloudPlatform/run-gmp-sidecar/pull/6


data: prasunkundu.json

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] My change requires changes to the documentation.
[x] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

hey eddie i am waiting for your approval. :)


Svelte v5 RC: Theme Generator live previews are non-functional

Link to the Page
https://www.skeleton.dev/docs/generator
Describe the Issue (screenshots encouraged!)
While testing the Svelte v5 RC, I noticed the theme generator itself is loading. But live previews are not. I believe the issue may be related to how we're implementing the <style> tag in the <svelte:head>.
How to Test
We can temporarily migrate to the Svelte v5 RC package while working on the PR:
pnpm i -D svelte@next

We will need to take care to revert this change before merging into the dev branch.

We wont' be migrating the v2 docs to Svelte v5 so we'll dub this a non-issue.


averaged_gradients is None after a few hundred iterations

Using the most recent DeepSpeed (34c83a5a64da67ff186eec4fdd7ab3c1badf0486) and training a 774M GPT2 with the Megatron-LM example, I hit the following error after a few hundred iterations:
[2021-01-22 19:14:45,882] [INFO] [logging.py:60:log_dist] [Rank 0] step=415, skipped=16, lr=[1.1969999999999999e-05, 1.1969999999999999e-05], mom=[(0.9, 0.999), (0.9, 0.999)]
[2021-01-22 19:14:45,882] [INFO] [timer.py:163:stop] 0/415, SamplesPerSec=50.36530602579739
Traceback (most recent call last):
  File "/home/moyix/git/DeepSpeedExamples/Megatron-LM/pretrain_gpt2.py", line 713, in <module>
Traceback (most recent call last):
  File "/home/moyix/git/DeepSpeedExamples/Megatron-LM/pretrain_gpt2.py", line 713, in <module>
    main()
  File "/home/moyix/git/DeepSpeedExamples/Megatron-LM/pretrain_gpt2.py", line 686, in main
    main()
  File "/home/moyix/git/DeepSpeedExamples/Megatron-LM/pretrain_gpt2.py", line 686, in main
    iteration, skipped = train(model, optimizer,
  File "/home/moyix/git/DeepSpeedExamples/Megatron-LM/pretrain_gpt2.py", line 415, in train
    iteration, skipped = train(model, optimizer,
  File "/home/moyix/git/DeepSpeedExamples/Megatron-LM/pretrain_gpt2.py", line 415, in train
    lm_loss, skipped_iter = train_step(train_data_iterator,
  File "/home/moyix/git/DeepSpeedExamples/Megatron-LM/pretrain_gpt2.py", line 383, in train_step
    lm_loss, skipped_iter = train_step(train_data_iterator,
  File "/home/moyix/git/DeepSpeedExamples/Megatron-LM/pretrain_gpt2.py", line 383, in train_step
    model.step()
  File "/home/moyix/git/DeepSpeed/deepspeed/runtime/engine.py", line 1006, in step
    model.step()
  File "/home/moyix/git/DeepSpeed/deepspeed/runtime/engine.py", line 1006, in step
    self._take_model_step(lr_kwargs)
  File "/home/moyix/git/DeepSpeed/deepspeed/runtime/engine.py", line 961, in _take_model_step
    self._take_model_step(lr_kwargs)
  File "/home/moyix/git/DeepSpeed/deepspeed/runtime/engine.py", line 961, in _take_model_step
    self.optimizer.step()
  File "/home/moyix/git/DeepSpeed/deepspeed/runtime/zero/stage2.py", line 1383, in step
    self.optimizer.step()
  File "/home/moyix/git/DeepSpeed/deepspeed/runtime/zero/stage2.py", line 1383, in step
    self.get_grad_norm_direct(self.averaged_gradients[i],
  File "/home/moyix/git/DeepSpeed/deepspeed/runtime/zero/stage2.py", line 1246, in get_grad_norm_direct
    self.get_grad_norm_direct(self.averaged_gradients[i],
  File "/home/moyix/git/DeepSpeed/deepspeed/runtime/zero/stage2.py", line 1246, in get_grad_norm_direct
    for g, p in zip(gradients, params):
TypeError: 'NoneType' object is not iterable
    for g, p in zip(gradients, params):
TypeError: 'NoneType' object is not iterable

My config.json:
{
  "train_batch_size": 64,
  "gradient_accumulation_steps": 1,
  "steps_per_print": 1,
  "optimizer": {
    "type": "OneBitAdam",
    "params": {
      "lr": 0.001,
      "betas": [
        0.8,
        0.999
      ],
      "eps": 1e-8,
      "weight_decay": 3e-7,
      "freeze_step": 400,
      "cuda_aware": true
        }
  },
  "zero_optimization": {
    "stage": 2
  },
  "zero_allow_untested_optimizer": true,
  "gradient_clipping": 1.0,
  "fp16": {
    "enabled": true,
    "loss_scale": 0,
    "loss_scale_window": 1000,
    "hysteresis": 2,
    "min_loss_scale": 1
  },
  "activation_checkpointing": {
    "partition_activations": true,
    "contiguous_memory_optimization": false
  },
  "wall_clock_breakdown": false
}

I'm not sure what would cause them to be None at this stage, unfortunately. Any ideas?

Ah, I think I see – one-bit Adam has a bunch of other requirements that I didn't realize, like a CUDA-aware version of MPI. Sorry for the noise.

Ah, I think I see – one-bit Adam has a bunch of other requirements that I didn't realize, like a CUDA-aware version of MPI. Sorry for the noise.


Harvester appears to be offline yet the logs says otherwise ???

Describe the bug
A clear and concise description of what the bug is and how it can be reproduced.
Environment:

OS: Win10 x64
Python version: 3.7
PIP version:
Chia version: 1.1.6

Hy, I don't understand, I'm using now chia 1.1.6, and I get the 'your harvester appears to be offline all the time, yet in the logs it seems not to be offline look at the picture:

Any clue ? Is it a bug or is the harvester really not working ? What I'm an i do to check it for sure (chia command ?)
Thx in advance

Known bug on Windows, see: https://github.com/martomi/chiadog/issues/72
We have a fix in the pipeline: https://github.com/martomi/chiadog/pull/164
If you know your way around with git, you can already test it, otherwise a new release should be coming this Sunday.


preprocesses_split_lines4(): gensim Deprecation Warning + Error

Hi everyone,
I ran into a Deprecation Warning in the function preprocesses_split_lines4(): "DeprecationWarning: Deprecated. Use gensim.models.KeyedVectors.load_word2vec_format instead."
The gensim word2vec import seems to be out of date. I tried to fix it with KeyedVectors, however then the (seemingly pre-trained ?) model "fw2v.bin" cannot be found. I could also not find this model anywhere on the web...
Any suggestions?
Thanks a lot in advance!

Thanks in advance!!


Robin Hood Legend of Sherwood support?

Hello, I'm not quite sure if it is even compatible, but is it possible to make the wrapper work with the old Robin Hood game?
When I try to put the wrapper in game folder, the game is crashing with DirectDrawEnumerateExA error.

I'm mainly interested in xbrz shaders for the game. One of the earlier performance fixes for the game included use of aqrit's ddwrapper

I just wrapped it with direct3d to dx11 and then applied reshade.
Thank You for your work! It still works great with RA2 :)


Replace Iter.range() with Int.range() and Nat.range()

This PR removes the inclusive Iter.range() function in favor of an exclusive range function for each numeric type. In the future (or as part of this base library overhaul), we could also include range functions for fixed-size numeric types and perhaps also the Char module.
Resolves #31.

@crusso, is there a performance benefit to using classes in place of functions, or is this just for conciseness?


shaderObject: Fix 32 bit pointers

In x86 VkShaderEXT is defined as uint64_t, when casting to pointers we must index before the cast.

CI Vulkan-ExtensionLayer build queued with queue ID 4408.

CI Vulkan-ExtensionLayer build # 489 running.

CI Vulkan-ExtensionLayer build # 489 passed.


Modified sourcemap resolution for imported contracts

Description

[x] Modified sourcemap resolution for imported contracts
[x] Added ast to the API request as part of the contract analysis

Fixes: #40
Fixes: #41

Thanks @eswarasai!

This gives me a TypeError on my imports test project"
$ sabre files/imports.sol
✔ Compiled with solc v0.5.0 successfully
[    ] Analyzing Imports(node:76838) V8: :3 Invalid asm.js: Invalid member of stdlib
TypeError: Cannot read property 'messages' of undefined


Bad transaction status when trying to cancel a donation

https://beta.flathub.org/
Donate to Flathub
Make Donation
Tap Cancel Transaction on every attempt

{"status":"error","error":"bad transaction status"}

Cannot reproduce this error now so feel free to reject if it's deemed not relevant.

I was unable to reproduce this today. It may be that we've prevented the state from being reached or that this is some rare edge case.
Let's close for now and if we run into it again hopefully we can figure out what's going on (might just want to make the backend ignore the error and perform the cancellation regardless).


Deprecat

Since the last Atom update when I run beautify I get a deprecation error and the beautify do not happen:

Sorry for the screenshot: I cannot copy/past the text.

Related code for beautify.coffee at line 112: https://github.com/Glavin001/atom-beautify/blob/master/src/beautify.coffee#L112
I would recommend creating an issue for https://github.com/atom/atom as well since I think this is actually a problem with Atom's internal code calling getFileName which does not exist.

See here: https://github.com/atom/atom/issues/9629

Thanks for looking into it! Hope they can fix it up.
https://github.com/atom/atom/issues/9350


Demonic pact is wrong in old saved settings

Description
When i use my saved buf settings from The March Demonic pact gives 5000 spd instead 500spd in new metric system. So simulation is wrong. And its hard to find the bug.
To Reproduce
Steps to reproduce the behavior:

Go to 'Settings'
Click on 'Saved settings' from The March or some later date. It has to be set Demonic Pact in big value
Simulate and see +1...5k error dps.

Expected behavior
Old settings must follow the new metric system of Demonic Pact.
Sim Links and Screenshots
Here is screenshot of bug

Desktop

OS: [Win 10]
Browser [chrome]
Chrome Version [111.0.5563.147 (64 bit)]

Additional context
Here is the screen of true behaviour

Fixed in https://github.com/wowsims/wotlk/pull/2886


Brake mode service

Fixes the three comments left on the previous pull request for brake mode.

Rebased, made a few minor changes, need to test on robot before merging


fix resize priority in w2overlay when the search box is opened

when the "searches" contains elements of the type "enum" and "resize()" occurs before the "initSearches()", the "height" break down on div in w2ui-overlay-"name"-searchOverlay

https://github.com/vitmalina/w2ui/pull/1746/commits/76e59a023bc14d611b3a3f87ec3cec9031455bb7
When the content in search box changes, height of the container is also changing.
The parent div must change the height
bug:

fixed:


Typo

Link to the notebook
Add the link to the notebook.
What aspects of the notebook can be improved?
Typo in file
What are your suggestions?
"The CPU session is avaliable for continously 12 hours, and GPU session is avaliable for continously 4 hours." to "The CPU session is available for 12 continuous hours and the GPU session is available for 4 continuous hours."

As I read on for this page, I find that there are other grammar issues.

@mwfongAWS , thank you for the feedback! If you are kind to list up the other points, we are very welcome to receive your pull request.


Optimize the efficiency of repo_import

After changing the import from one-time initialization to one-by-one import, the efficiency became very slow and it took 24 hours for a few thousand crates, which was intolerable, so I needed to optimize its logic.

I looked at the logs and compared the times of the different logs and realized that the parsing was actually very fast and each crate was done almost instantly. The main bottleneck is kafka, which lags for a few minutes every time it consumes and then has to rebalance. i need to see why it's so slow!

This was mainly due to a problem with kafk's frequent rebalance, which has already been resolved


Added R torch to the enterprise template

This just adds r-torch to the enterprise template

Actually I'm going to handle this a little differently. I'm going to supercede this PR

Closed because it got merged into another PR


Test exhibition guides barcodes works as expected

What
We should be able to generate some barcodes from the content that is in there currently, it would be great if the team would be able to test out scanning these and it loading the pages appropriately and if there are any snags with the journey.
I think @dannybirchall can help with generating the barcodes.
Where
https://preview.wellcomecollection.org/guides/exhibitions/YyGb2xEAAHzJwTh0/captions-and-transcripts
You will need the exhibition guide toggle turned on to view it

@pollecuttn I can do this, but waiting for @melanierogan to refactor the URL structure for the anchors first.

fyi @dannybirchall and @pollecuttn Just to confirm, url structure all sorted as per our chat in slack and ticket here https://github.com/wellcomecollection/wellcomecollection.org/issues/8463


feat: enhance detail error for evm provider

Summary
Enhance detail error for evm provider
Related Links

Asana:
Checklist

[ ] Pasted Asana link.
[ ] Tagged labels.

Prerequisite/Related Pull Requests

Revert: helping convert eth_signTypedData domain chainId from hex to number.
This will cause trouble when dev try to verify signed data with it's original message, so reverted.


[HOTFIX] Fix CI failure due to sqlalchemy api change

What is this PR for?
Recently CI is failed due to sqlalchemy api change. This PR enforce the sqlalchemy version to make the CI pass.
What type of PR is it?
Hot Fix
Todos

[ ] - Task

What is the Jira issue?

Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/
Put link here, and add [ZEPPELIN-Jira number] in PR title, eg. [ZEPPELIN-533]

How should this be tested?

CI pass

Screenshots (if appropriate)
Questions:

Does the license files need to update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

CI is passed


Updated Whatshap to 2.3

Closes #296. Updated Whatshap to 2.3. Also updated conda directives because Whatshap v2.3 depends on htslib, so we don't need to include tabix, and container directives to point to biocontainers/whatshap, as that includes bgzip and tabix now.
PR checklist

[x] This comment contains a description of changes (with reason).
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added a new tool - have you followed the pipeline conventions in the contribution docs
[x] Make sure your code lints (nf-core lint).
[x] Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
[ ] Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
[ ] Usage Documentation in docs/usage.md is updated.
[ ] Output Documentation in docs/output.md is updated.
[x] CHANGELOG.md is updated.
[ ] README.md is updated (including new tool citations and authors/contributors).

Ok! I wasn't sure if that was part of the scope of the issue, too (or if that should be a default parameter). I updated the config accordingly

Ok! I wasn't sure if that was part of the scope of the issue, too (or if that should be a default parameter). I updated the config accordingly

No, the issue was not that clearly written. I don't think anyone has done a proper benchmark of phasers for our use case, so while I changed the default phaser from WhatsHap to LongPhase recently, I'd still like to retain Whatshap in the pipeline, partly because it supports trio-phasing and --use-supplementary.


More precise specific-vol. anomaly for ocean in P

This is a minor change in Geopotential-Anomaly calculation for Ocean in P-coord: Use a more robust/precise (regarding floating point arithmetics) expression for specific-volume anomaly.
What changes does this PR introduce?
single minor change, only relevant for Ocean in Pressure coordinate.
What is the current behaviour?
Specific volume anomaly $\alpha'$ is computed from density anomaly $\rho'$ by subtracting 2 numbers of similar magnitude: $\alpha' = 1/( \rho_c + \rho' ) - 1/\rho_c$
What is the new behaviour
Use more precise expression that does not involve this type of subtraction:
$\alpha' = - ( \rho'/\rho_c ) / ( 1 + \rho'/\rho_c ) / \rho_c $
Does this PR introduce a breaking change?
This affects results at  machine truncation level for all 3 Ocean in P-coord test experiments (updated here from reference machine & compiler).
Other information:
Suggested addition to tag-index
o model/src:

more precise specific-volume anomaly expression for Ocean in P-coord;
update reference output of all 3 Ocean in P test experiments.

@mjlosch Thanks for the review. Going to merge this PR soon (i.e., later today).


this.activeElement is null on dialog close (IE 11)

Opening and displaying a dialog using javascript works correctly.
Can't close the dialog due to this.activeElement being null.
This line fails, this.activeElement.focus() in the closeModel function, causing the dialog to remain open.

@MariusBarnard are you closing it using MicroModal.close('modal-id');?

Dialog is shown using MicroModal.show('modal-id').
To close the dialog, using the data-micromodal-close attribute on close button on the dialog.

          Message shown on load

        <button class="modal__close" aria-label="Close modal" data-micromodal-close="data-micromodal-close"></button>

        <button class="modal__btn" aria-label="Close this dialog window" data-micromodal-close="data-micromodal-close">Close</button>

By changing line 137, the dialog closes in IE 11 using the close button on the dialog
131:      key: 'closeModal',
132:      value: function closeModal() {

137:      this.activeElement.focus();

Add null check before calling
if (this.activeElement) this.activeElement.focus();

Any news on putting this in the repo? Seems like a valid solution.

I believe I'm having this same issue in Edge as well.

Any news?

Fixed in 2a78c4d095f9d5bee691054591682a02c48e1def

I'm using 0.4.0 (which is the newest version at the time of writing this comment), I can see code from 2a78c4d being there, but the issue persist.
IE11
If any form is added inside modal, there is no way of closing it.
Object doesn't support property or method on 'focus'

In my case, I get the same error as above only the activeElement is a SVGSVGElement... I am on 0.4.2.


Adjust the ratio of the in-peers/out-peers

Establish fewer outbound connections in an attempt to allow publicly available nodes to accept more full nodes.
Maintain the overall number of connections node should establish.

Do you think it nevertheless makes sense controlling the number of out connections dynamically depending on major syncing status?

Do you think it nevertheless makes sense controlling the number of out connections dynamically depending on the major syncing status?

I think it would require more research what is appropriate + way for people opt out. I also think it should be anyway be clamped at the lower bound to some sensible value (which is effectively what this PR does). It is sort of a hidden feature which could be improved of course and we can revisit this solution in the (near) future.

Hello, after the 0.9.40 update my in/out peer went from  40 to 500. Is this expected?

Not 100% sure but this PR https://github.com/paritytech/substrate/pull/13700 might fix the problem.


Restart pods when reloading images

make reload-images restart=gateway

restart variable can be all, gateway, routeagent, globalnet or none
and defaults to all

@sridhargaddam @skitt @vthapar can you eyeball this? :) I'm carrying it manually on top of my dev evironment all the time :-)


ISS-3/ISS-15: Value-reaching function (approach, approach_angle, lerp_angle)

Resolving issues #3 and #15.
Implemented the approach, approach_angle and lerp_angle functions, and created test cases for them.
Additionally, created demonstrations comparing lerp/lerp_angle and approach/approach_angle for reaching specific values. The user can also pick different lerp amounts and approach steps as well.
There is also a demonstration of using compounded lerp x approach for using lerp, and then approach to reach the value. This is useful when someone wants to cover both large and small differences in a short time (lerp excels at the former, approach at the latter), reaching a quick stabilisation point (when current value equals to the target). This is especially visible for the number-changing demo, but also can be handy for position changing (e.g. when you move camera to follow the player, and it needs to quickly stabilise to avoid the annoying jitter towards the end).
That said, the "lerp x approach" function doesn't involve any separate function, it just compounds lerp/approach or lerp_angle/approach_angle.

I like that we normalize all of the angles when we return values.


Implement international relocation payment (IRP) variables

Trello card
https://trello.com/c/RyNnbnnt/6274-implement-international-relocation-payment-irp-variables
Context
implement the international relocation payment variables on the following pages
/non-uk-teachers/get-an-international-relocation-payment
/non-uk-teachers/teach-in-england-if-you-trained-overseas
/non-uk-teachers/ukraine
Changes proposed in this pull request
Guidance to review

Ready for review please @martyn-w @gemmadallmandfe


TypeError: DatabaseVersionError-init() missing 1 required positional argument: 'from_block_index"

This was with Docker Compose on master.

I think @ouziel-slama fixed this last week.
https://github.com/CounterpartyXCP/counterparty-core/commit/8c394a0006443a8f402cdda5d9e6bf92e775c3db


zephyr: add rak5010 board support

[x] add board files to all samples
[x] add build/flash documentation to all README files

Sample testing:

[x] hello
[x] lightdb set
[x] lightdb get
[x] lightdb observe
[x] lightdb delete
[x] lightdb stream
[x] logging
[x] rpc
[x] settings
[x] ota
[x] certs
[x] golioth basics

resolves https://github.com/golioth/firmware-issue-tracker/issues/491

Can we add rak5010_nrf52840 to all of the twister tests, including the ones that run on pytest. Then we should add another commit that has CI build the tests, but mark it as run_tests: false in the workflow yaml, so we can get build test coverage on all of the samples even though we don't have the twister tests working yet. Same as we do for qemu_x86 and esp32_devkitc_wrover.


🐛 BUG: testOptions.file does not work as expected

Quick checklist

[X] I am using the latest version of Snowpack and all plugins.

What package manager are you using?
npm
What operating system are you using?
Linux
Describe the bug
I have both a src folder with .ts files and a test folder, with .ts and also .test.ts files.
// Snowpack Configuration File
// See all supported options: https://www.snowpack.dev/reference/configuration

/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
  mount: {
    src: "/",
  },
  packageOptions: {
    knownEntrypoints: ["src/extension.ts"],
    external: ["vscode", ...require("module").builtinModules],
  },
  buildOptions: {
    out: "dist",
  },
  testOptions: { files: ["src/test/**/*"] },
};

Not all the test files specified in testOptions.files gets excluded when mode is production for snowpack build. This is because snowpack by default includes everything with .ts, I guess.

Not all the test files specified in testOptions.files gets included when mode is test for snowpack build. This is because snowpack build always excludes what's in testOptions.files, even when mode is test.

Proposed solutions

The testOptions.files exclusion rule must be different. After all the files list gets parsed, then the exclusion glob for testOptions.files should be applied to make sure anything matching it will get excluded from the final build.

snowpack build to respect the common behavior when mode is test. The testOptions.files should not be excluded in such case.

Steps to reproduce

gh repo clone felipecrs/snowpacked-extension (which is basically yo code + npm i -D snowpack + changes to package.json:scripts + snowpack.config.js)

npm install

npx webpack build --mode production:
The src/test folder was not even supposed to be included in the build.

npx webpack build --mode test:
It's behaving like before, which is missing my *.test.ts files from the src/test folder.

Link to minimal reproducible example (optional)
https://github.com/felipecrs/snowpacked-extension

Ok, so I debugged point number 1 and found out that snowpack supplies the list of files to be matched to picomatch using absolute paths. The workaround is to do something like:
testOptions: { files: ["**/src/test/**/*"] },


Correcting mismatches between I2C.sv and I2C.hjson

Fixes hjson port names as indicated in #1822
Signed-off-by: Martin Lueker-Boden<EMAIL_ADDRESS>

FYI @igk8
Note to reviewers: This PR is just a quick implementation of @cr8601's recommendatons.  I've checked that regtool.py does not cause these changes to propagate to i2c_reg_pkg.sv and i2c_reg_top.sv.   However, I am also not an expert with toplevel integration, so I welcome further corrections.

LGTM. for now regtool.py doesn't affect the module interface. I really hope there's good verilog parser in python library so that we can use it to do some sanity check between the .hjson and the ip top sv


Move from StateMixin to contextTypes

context docs as of this commit.
fixes deprecation warnings:

CLA is valid!

LGTM :+1:

Thanks @ChristopherBiscardi!


{"error":"sequence item 0: expected str instance, Line found"}

Describe the issue
To reproduce:
git clone git@github.com:loghyr/flexfilesv2.git
cd flexfilesv2
make
Submit resulting file draft-haynes-nfsv4-flexfiles-v2-00.xml  to https://author-tools.ietf.org/idnits
Or submit the following: (might have to rename to .xml)
draft-haynes-nfsv4-flexfiles-v2-00.txt
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

@loghyr, This is a xml2rfc bug.
The way https://author-tools.ietf.org/idnits works is, it creates a text file from the XML you submit.
Because idints v2 only works with text files.
You can use experimental idnits v3 to test XML files without converting to text under the hood.
The error you get is from xml2rfc:
root@4d23dc73e717:~/xml2rfc# xml2rfc draft-haynes-nfsv4-flexfiles-v2-00.xml
Warning: /root/xml2rfc/rfc2629-xhtml.ent is no longer needed as the special processing of non-ASCII characters has been superseded by direct support for non-ASCII characters in RFCXML.
Warning: /root/xml2rfc/rfc2629-xhtml.ent is no longer needed as the special processing of non-ASCII characters has been superseded by direct support for non-ASCII characters in RFCXML.
Warning: /root/xml2rfc/rfc2629-xhtml.ent is no longer needed as the special processing of non-ASCII characters has been superseded by direct support for non-ASCII characters in RFCXML.
Warning: /root/xml2rfc/rfc2629-xhtml.ent is no longer needed as the special processing of non-ASCII characters has been superseded by direct support for non-ASCII characters in RFCXML.
/root/xml2rfc/draft-haynes-nfsv4-flexfiles-v2-00.xml(18): Warning: Setting consensus="true" for IETF STD document (this is not the schema default, but is the only value permitted for this type of document)
/root/xml2rfc/draft-haynes-nfsv4-flexfiles-v2-00.xml(2599): Warning: Unused reference: There seems to be no reference to [RFC8435] in the document
/root/xml2rfc/draft-haynes-nfsv4-flexfiles-v2-00.xml(336): Warning: Was asked to render a deprecated element: <list>
    c: '<Element list at 0xffff9876cfe0>'
Traceback (most recent call last):
  File "/usr/local/bin/xml2rfc", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/run.py", line 730, in main
    writer.write(filename)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 344, in write
    text = self.process()
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 302, in process
    lines = self.render(self.root, width=72, joiners=joiners)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 368, in render
    res = func(e, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 3064, in render_rfc
    lines = self.ljoin(lines, c, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 557, in ljoin
    res = mklines(self.render(e, width, **kwargs), e)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 368, in render
    res = func(e, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 2242, in render_middle
    lines = self.ljoin(lines, c, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 557, in ljoin
    res = mklines(self.render(e, width, **kwargs), e)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 368, in render
    res = func(e, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 3335, in render_section
    lines = self.ljoin(lines, c, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 557, in ljoin
    res = mklines(self.render(e, width, **kwargs), e)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 368, in render
    res = func(e, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 3767, in render_t
    text = self.inner_text_renderer(e)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 631, in inner_text_renderer
    text += self.render(c, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 368, in render
    res = func(e, width, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/xml2rfc/writers/text.py", line 613, in default_renderer
    ctext = "\n\n".join(ctext)
TypeError: sequence item 0: expected str instance, Line found

Since this is a xml2rfc bug I'll move it there.

Looks like the error is because of the <list> tag.
It's deprecated in xml2rfc v3 vocabulary.
You can use <ul> (unordered list) ^1 or <ol> (ordered list) ^2 instead.


Nock throws error when reply contains error

Here is the code:
        nock('https://api.cloudinary.com')
            .filteringRequestBody(/data:image\/png;base64,\w*/g, invalidData)
            .post('/v1_1/photo/image/upload')
            .reply(400, {
                error: {
                    message: 'Invalid input passed'
                }
            });

        request(app)
            .post('/upload')
            .set('Content-Type', 'application/json')
            .send(JSON.stringify({ file: invalidData }))
            .expect(500)
            .end(function (err, res) {
                t.equal(res.body.info, 'Upload failed', 'File upload failed');
                done();
            });

I'm using supertest to test my express end point and mocking just the API I'm connecting to. I'm handling errors correctly in the application. Whenever I upload and there is an error returned from the service, the app doesn't crash. But, when I mock and test, I see an npm error.
 1) test/routes/upload.js Invalid input passed:
     Error: Invalid input passed

npm ERR! Test failed.  See above for more details.

It doesn't even tell me which line failed?
The error object in the supertest callback is null. So I narrowed it down to nock because if there was an issue with my API caller, when testing from browser also I would see npm error.

I've been spending more time getting my testing in place. Any help will be highly appreciated.

This was an issue with node-tap


Adding support for gnome dark mode wallpapers

Credit goes to Vanadium for suggesting a fix on AskUbuntu.

I could use this PR, I'll be going blind living with light mode until it gets merged.

I'm surprised that this change has not been merged into the upstream repo more than a year later...?


[ja] Translate setup/best-practices/cluster-large/ into Japanese

resolves #30352
/assign

/unassign @nuka137

/lgtm

/assign @nasa9084

/approve

/lgtm


Update notebook to work with pytorch 1.0+

Fixed PositionalEncoding function:

RuntimeError: "exp" not implemented for 'torch.LongTensor'
replaced 0 with 0.

Fixed warning in xavier_uniform initialization:

Warning: nn.init.xavier_uniform is now deprecated
replaced with nn.init.xavier_uniform_

Fixed nn.KLDivLoss function:

Warning: size_average and reduce args will be deprecated, please use reduction='sum' instead.
replaced with nn.KLDivLoss(reduction='sum')

Fixed tensor casting to numpy:

IndexError: invalid index of a 0-dim tensor
cast Tensors to numpy arrays with .detach().numpy() or just .numpy()

Solve issue #26

Thanks this is great. I will to try to get this into the code base this week and give you credit!

Thanks for your help, it works on pytorch 1.0.1.post2.