How to use the command 'AOF pos'?

I have started a Leader and a Follower,then send command 'aof 0' to the Leader,it does not work……

Hi @icewukong
The "AOF pos" command will download the append-only file starting at the byte position specified. The connection is kept open and downloading will continue until you close the connection.
This command should not be called directly.
If you are wanting to setup a leader/follower please look at the topic on Replication. The only command you need to make a server a follower is FOLLOW.

I has already  setup a leader/follower. I want to send the data from the pos of append-only file to follower,what should I do?

If the master / slave relationship is established,then the connection is broken again, and it is necessary to send a 'AOF pos' command to the follower to implement the synchronization again?

When the leader/follower connection is broken, the follower will automatically reestablish a new connection. Once connected, the follower will send an AOFMD5 an then AOF to catch up to the follower.
This is all automated in the background. You shouldn't need to send any commands.

Oh,understand!
Thanks for answering!!!


Add sentiment score to comment and display as emoji face

A sentiment score is requested for the comment when it is created sent by the post request to the server. The score is saved inside the comment class and returned in the json to script.js where an if else statement uses a range of values to determine which emoji to show based on the score.

Question: Is there a specific error to handle for the language api similar to how there is TranslateException for the translation api?


JobConsumer stuck in Started state when HttpClient inside throw TaskCancelledException on request timeout

Contact Details
<EMAIL_ADDRESS>Version
8.x
On which operating system(s) are you experiencing the issue?
MacOS
Using which broker(s) did you encounter the issue?
Amazon SQS
What are the steps required to reproduce the issue?
Hi!
An issue regarding job consumers.

I guess the root cause of this problem is here: https://github.com/MassTransit/MassTransit/blob/b8e20552b84e8b1b50974a5779219c90aa6fe38c/src/MassTransit/Middleware/JobConsumerMessageFilter.cs#L55

When u have HttpClient in the job consumer and there is a timeout on that client, TaskCancelledException will be thrown, and regarding the code, it will be ignored because of context.CancellationToken != ex.CancellationTokent in this case so an exception will be caught, but no action will be performed, so the job will stuck in the Started state.

I think, in this case, it should be treated as a Fault, and Job should be faulted. Does it make sense for u?

Thanks!

What is the expected behavior?
In the case when jobContext.CancellationToken != ex.CancellationTokent TaskCanceledException or OperationCanceledException should be treated as a Fault.
What actually happened?
This exception was ignored, and the job was stuck in the running state.
Related log output, including any exceptions
No response
Link to repository that demonstrates/reproduces the issue
No response

@phatboyg thanks!


remove duplicated docs on JuiceFS CSI Driver

CSI Driver docs has been refurbished, lets maintain csi docs in one place.
the "Mount JuiceFS in the container" part will be re-introduced in CSI docs later.

I suggest to keep CSI usage and hostPath usage in this doc and keep a link to CSI docs. About Mount JuiceFS in the container, I don't know if it's a common usage in Kubernetes. What do you think? @timfeirg

I wish all Kubernetes related usage should reside in CSI documentation, including practices like "Mount JuiceFS in the container" or hostPath, although they aren't really under the CSI realm, they are close related to Kubernetes. I want to keep all Kubernetes topics under CSI docs to reduce maintenance.
After that, we can leave references in CE/EE docs so that users don't get lost.

K8S is just one way of using containers, let's replace the CSI part as a link and keep others here.

"Mount JuiceFS in the container" is preserved, this pr only deletes CSI tutorials.


Update Get-Recipient.md

https://github.com/MicrosoftDocs/office-docs-powershell/issues/4861

Docs Build status updates of commit d42e970:
:clock10: Full build: the average full build time is 12 min(s) 9 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit d42e970:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/users-and-groups/Get-Recipient.md
:white_check_mark:Succeeded
View (exchange-ps)

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


FUNCTIONALITY ADDITIONS

Additions

added fetch and asynch functions
fetched all the scores
able to refresh the scores
added the add score function

you have linters errors, please fix them before i proceed


Fix "multi_processing" typo to match direct_running_mode expected by Beam

Fixes pangeo-forge/pangeo-forge-runner#41

Wheeee, thank you very much, @derekocallaghan!!!!

The dodecov failure is definitely a bug on their part, so gonna merge this one.

 Thank you so much for the PR :) Hope to see more! I'll prioritize reviewing them...
Would you like to make a release? I can give you merge rights to the repo as well as PyPI rights, if you want :)

Correct button hit, yay! Thank you so much for the PR :) Hope to see more! I'll prioritize reviewing them...
Would you like to make a release? I can give you merge rights to the repo as well as PyPI rights, if you want :)

It's only a small change and I think the Beam usage will work without it, it'll just choose a different runtime environment, so maybe there's no need for a release for now until there are some other commits to include?
BTW, I had some suggestions today for one of the user-stories issues that would involve some pangeo-forge-runner changes, I can create a new issue in this repo for this but was planning to leave discussion for now in the user-stories repo depending on feedback.


fix: improve create client performance

Description
Currently we are deleting and re-inserting the record, and it turns out the delete operation is quite expensive compared to the insert. Refactoring the queries to only do the operations necessary: insert or update while still locking the record for update.
Slack conversation
How Has This Been Tested?
Not tested
Due Diligence

[ ] Breaking change
[ ] Requires a documentation update
[ ] Requires a e2e/integration test update

Interesting decision. Was there a particular reason this way implemented that way?

It was the culmination of multiple iterations of new queries not susceptible to concurrency errors. I think we went with DELETE because it was easier than handling all of the insert or update cases (of which this PR now implements directly).


Allow specification of start time via start_at

A suggestion for how to implement start_at similar to the already existing stop_at. @jmaupetit
Note that there are 11 tests failing for me on the master branch, which is unchanged with the additions suggested here.
Close  #75 #224 #352

@jmaupetit  Just added a couple of minor updates. This is ready for review when you get a chance. Really enjoying watson so far and looking forward to contributing more if there is interest! Thanks again for making this great tool!

@k4nar @jmaupetit I restructured my previous changes to fix the failed tests in my latest commit. The only failing test now is related to flake8 and also fails for me on master. Could you review this PR and let me know if you think the changes are sound before I try to add a test specifically for start_at?

I added some suggested tests now also, ready for full review. I am not quite sure the test in test_cli.py is necessary, let me know what you think.

@jmaupetit @k4nar Just a reminder to review this PR when you get a chance. FWIW I have been using it locally without issues.

We'll merge this after #369 :tada:

Also: please update the CHANGELOG to add this new feature, yay!

Thanks @jmaupetit ! I added a note in the changelog and rebased on #369 so should be good to go after that PR is merged.

I think you are good to go for a new rebase :trollface: :pray:

@jmaupetit Ready!


🐛Fix multiple CRDs/workspaces/versions

Summary

[x] Fix the actual bug
[x] Add an e2e test that verifies that we can support multiple CRDs for the same group+resource in different workspaces, with different API versions.

Related issue(s)
Fixes #2738

Got a green test run! Doing 1 more with a slight update to the kube PR

/approve

/retest

/retest

Updated to pull in the latest kube

@p0lyn0mial let's merge this and then follow up with a watch cache test?

Ugh I really need to nail down what's going on with quota & gc

Same test failure as what this PR is trying to fix, but a different root cause now:

14:53:16.384656: Org workspace created for test assigned a logical cluster
14:53:45.262625: permissionclaimlabel_reconcile.go tried to patch in-vw-before to apply claim labels, but got a 404
14:53:46.725584: e2e starts its 30s Eventually loop

Need to figure out why it's getting a 404

/lgtm
/approve

/lgtm


The error page does not show {{ file }} and {{ line }} anymore

The error page does not show {{file}} and {{line}} anymore, everything is stored in {{message}}

PS: that works perfectly with less, but not with js
PPS - (as an idea): if we use this syntax for file: {{file}}:{{line}}, after pasting it to the file finder in all common editors, they will put you on the exact line in that file. That'll be very useful.
Example:

fixed in version 0.21.0


But just like in the Y axis there's a value formatter to customize how it's displayed, it'd be really useful to have the same on the X axis.
Thanks in advance, keep working! This is awesome 🚀

@ArnyminerZ 0.1.1 is released. And X value formatter is supported.


publish<EMAIL_ADDRESS>

Requested by: @marandaneto
Merge target: v7.0.0
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Leave the #retract comment under this issue to retract the release (original issuer only).
Targets

[ ] pub-dev
[ ] github
[ ] registry

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

@kahest let's test if https://github.com/getsentry/craft/pull/453 fixed the issue.

Error:  fatal: detected dubious ownership in repository at '/github/workspace/repo'
To add an exception for this directory, call:
git config --global --add safe.directory /github/workspace/repo
To add an exception for this directory, call:
git config --global --add safe.directory /github/workspace/repo
at Object.action (/usr/local/bin/craft:127:6006)
at LW.exec (/usr/local/bin/craft:127:6426)
at /usr/local/bin/craft:127:11842
at new Promise ()
at dA.handleTaskData (/usr/local/bin/craft:127:11731)
at dA. (/usr/local/bin/craft:127:11357)
at Generator.next ()
at a (/usr/local/bin/craft:124:136313)
at processTicksAndRejections (internal/process/task_queues.js:95:5)

This error does seem to be related to my changes.

Blocked by https://github.com/getsentry/publish/pull/1827

Retrying ...

Hrm, latest failure is different ...
Error:  Error creating target instance for pub-dev!
Error:  Executable "dart" not found. Is it installed?

Oof. Not out of the woods, eh? 😞
STDERR:dart: fatal: detected dubious ownership in repository at '/opt/flutter'
dart: To add an exception for this directory, call:
dart:
dart: 	git config --global --add safe.directory /opt/flutter
dart: Warning: pubspec.yaml has overrides from pubspec_overrides.yaml
dart: The current Flutter SDK version is 0.0.0-unknown.
dart:
dart: Because sentry_flutter requires Flutter SDK version >=3.0.0, version solving failed.
dart:

Looks like this is the dart executable using git under the hood.

#retract

Version 7.0.0-beta.3 of package sentry already exists.

Trying https://github.com/getsentry/publish/issues/1851


Add guide register delegate, Add guide vote unvote, #41, #42

@xpgeng please review this PR also after I merged it, I will fix issues later
Thanks 👍


Full reflection-less encoding and schema generation

Currently, in v2, we set a class using AvroSchema and AvroLogicalType annotations to be able to customize the final schemas and add logical types, but this requires kotlin reflection to allow creating the instance of the given class. In v1, we unwrap the nullable SerialDescriptors to get back the AvroDescriptor to access the custom methods for generating the schemas.
A PR has been done to be able of unwrapping a nullable descriptor, that now allows us to retrieve the original descriptor, so we can get rid of reflection for logical types and custom schemas, and it allows us to create brand new methods and interfaces on a standard SerialDescriptor.
This has been done here: https://github.com/Kotlin/kotlinx.serialization/commit/c7bcaf1cb92685ffb6c2d46c9e22d0b7e6e20811
When kotlin-serialization is released, avro4k v2 will be allowed to be released

Released in v2.0.0


Code is unreachable error

Environment data

Language Server version: v2024.7.1
OS and version: macOS 14.5
Python version (& distribution if applicable, e.g. Anaconda): 3.12.4

Code Snippet

from datetime import datetime

def my_function(my_datetime: datetime = None):

    if my_datetime is None:

        # according to Pylance, the below code is unreachable
        return 'my_datetime is none'

    return 'my_datetime is not none'

# a simple invocation demonstrates the code is actually reachable
my_function()
"""
> my_datetime is none
"""

Repro Steps
Copy the above code snippet into VSCode and hover your cursor above the first return statement to see the Pylance message that the return message is unreachable.
Expected behavior
There should be no message from Pylance that the return statement is unreachable.
Actual behavior
There is a message from Pylance stating incorrectly that the return statement is unreachable.
Logs
Too lazy to get logs :D

Pylance is behaving correctly here. my_datetime is annotated as type datetime and therefore the type checker's understanding is that it can never be None. From a type checking perspective the code within the if my_datetime is None block is unreachable.
If you enable type checking by setting "python.analysis.typeCheckingMode" to something other than "off" (ex. "basic"), you'll see a diagnostic error on your attempt to set the default value of my_datetime to None, because None is not compatible with the annotated type of the parameter (datetime).

If you change the type annotation of my_datetime to datetime | None, Pylance will behave as you expected:

Ah I see! Thanks, I feel like I learned something 👌


Fix most pending test, except one that require more information for d…

…ebug

Coverage increased (+0.3%) to 35.363% when pulling ce2f2071bc3b94e953b16d010b41135f1e2666b9 on qingweibinary:qingwei/add_test into e84dcb458978097fb5a12aeb96c9f57485c5c039 on binary-com:master.


[WIP] Add pr-log and log functions

Not ready, need tests.

Is manually merged with some additional changes! Thanks!


Unable to test: broken link to chrome webstore

Hey bro, you have a broken link to the Chrome webstore

@renatoargh Yes. The extension is in the approval phase. Once that is done, the link will be live. Hopefully in a few days.
I'll update it here. ;)

It's live 🌮

It works 🦖 🦕


Fix for Point Tutorial

Fix for Issue #9439:

user now cannot place a point on an edge
a warning is shown if done so

@mattiapezzotti I can confirm from using the recent v2.29.0 release of the iD editor that this fixes the problem encountered in #9439.  Thank you very much / grazie!


How can I access the link of an attachment file in Zotero and update it?

First of all, thank you for this great package.
I have recently switched from Mendeley to Zotero, so I am relatively new to using it.
I have attached link to the copy of a file, which is in dropbox, as can be seen in the image  below:

I am going to buy a professional version of Zotero soon. So I am going to migrate these attachment files from dropbox to the Zotero cloud. This means that the links to these files won't work any more, and they need to be updated.
I am able to access all_items from my Zotero library of group library_type using the following code:
zot = zotero.Zotero(library_id, library_type, api_key)

#To acccess only 1000 items
#items = zot.top(limit = 10000)

#To access all items at once
all_items = zot.everything(zot.top())
all_items

I am able to access the specific attributes of the specific item as follows:
for item in all_items:
    if item["meta"]["createdByUser"]["username"] == username:

        if ("title" in item["data"].keys()) and item["data"]["title"] == "100% variable renewable energy grid: Survey of possibilities":

            print (item["links"],"\n")
            print (item["meta"], "\n")
            print (item["data"])

This returns me the item attributes as shown below:

However, I don't find the link to the attached file in dropbox in these attributes returned. How can I access the link or the attributes of the attached file? I have thousands of files, and not all have attachments. For the files which have attachments, I want to change the link from dropbox to one in Zotero cloud when I purchase the Zotero professional.
Is it possible to automate this process? Thank you!

Top-level items e.g. articles with attachments have a numChildren key which will tell you how many child items they have. You can retrieve children using zot.children(itemKey). The returned items contain extensive metadata in their links key, including MIME type and href. That would be the first place I would look for information pertaining to Dropbox. However, I've never used Zotero with a third-party storage service so I don't know if this is the correct key.
Regarding changing the link, I don't know whether that's possible or whether you'll have to add a new child item, pointing to the new attachment you've stored in Zotero, to the parent, then delete the "stale" child. In general however, the process can certainly be automated. The forums are the best place to ask about how best to do this: https://forums.zotero.org

As per the docs, children is called with a string argument, which is the key attribute of a retrieved item: https://pyzotero.readthedocs.io/en/latest/index.html?highlight=children#zotero.Zotero.children

Thank you!
I could access the child item using

zot.children(item["key")

and I could access the url link to dropbox using

zot.children(item["key"])[0]["data"]["url"]


Cannot remap CapsLock to R-Ctrl + R-Shift and vice versa.

ℹ Computer information

PowerToys version: 0.29.3
PowerToy Utility: Keyboard Manager
Running PowerToys as Admin: yes
Windows build number: 19041.746

📝 Provide detailed reproduction steps (if any)
Use either Remap a key or Remap a shortcut feature.
✔ Expected result
The mapping should occur.
❌ Actual result

When trying to map key to shortcut: "Some of the keys could not be remapped. Do you want to continue anyway?"
When trying to map shortcut to key: "Some of the shortcuts could not be remapped. Do you want to continue anyway?"
As a result no mapping is saved.

Duplicate of https://github.com/microsoft/PowerToys/issues/3326

Duplicate of https://github.com/microsoft/PowerToys/issues/3326


mini.cursorword - highlight group is cleared after hi clear

Contributing guidelines

[X] I have read CONTRIBUTING.md
[X] I have read CODE_OF_CONDUCT.md

Module(s)
mini.cursorword
Description
Currently mini.cursorword seems to define its highlighting in the setup function: https://github.com/echasnovski/mini.nvim/blob/main/lua/mini/cursorword.lua#L123-L127
This means that the highlighting will be cleared if a colorscheme is loaded afterwards:

My suggestion would be to go with the common plugin pattern of setting those highlight in a ColorScheme autocmd to prevent this problem.

Thank you for the issue!
Hmm... This seems to affect all highlight groups which are defined with hi default ... and not hi default link.
However, using only ColorScheme event seems to be not enough: what if color scheme without MiniCursorword highlight group definition is loaded before 'mini.cursorword'? Then no 'MiniCursorword' highlight group will be created at all.
I'll think about the best solution.
In the meantime, please consider using one of these approaches:

Load color scheme first. It seems like a good idea anyway: load color scheme before everything else.
Define manually MiniCursorword highlight group in ColorScheme event.
Add 'mini.nvim' integration in the color scheme you are using. The best option, if you'd ask me :)

Sorry I should have been clearer, I believe usually the pattern is to define your highlight in a function that you can call initially as usual. However, in addition to that, you have the ColorScheme autocmd that ensure that they do not get cleared.
At least that seems to be the way that I have seen it done in most popular plugins.
Don't have time to look at a lot of examples, but of the top of my head:
https://github.com/folke/noice.nvim/blob/d8a1f3056ad713b5d471048f8d029264828e22c0/lua/noice/config/init.lua#L253-L258
https://github.com/lewis6991/gitsigns.nvim/blob/f388995990aba04cfdc7c3ab870c33e280601109/lua/gitsigns.lua#L462

Sorry I should have been clearer, I believe usually the pattern is to define your highlight in a function that you can call initially as usual. However, in addition to that, you have the ColorScheme autocmd that ensure that they do not get cleared.
At least that seems to be the way that I have seen it done in most popular plugins. Don't have time to look at a lot of examples, but of the top of my head: https://github.com/folke/noice.nvim/blob/d8a1f3056ad713b5d471048f8d029264828e22c0/lua/noice/config/init.lua#L253-L258 https://github.com/lewis6991/gitsigns.nvim/blob/f388995990aba04cfdc7c3ab870c33e280601109/lua/gitsigns.lua#L462

Sure, sure. It is just not that big of an issue with most modules, because highlight groups are usually defined with hi default link which doesn't get cleared. I've just missed the ones which are defined explicitly without linking.


fix: deprecated Node.js usage in checkout@v3

fixes #239.

Thank you! :)

I see there a few other uses of checkout@v3 and even v2:
.github/workflows/extension_upgrade.yml:      - uses: actions/checkout@v2
.github/workflows/cargo_publish.yml:        uses: actions/checkout@v3
.github/workflows/cargo_publish.yml:        uses: actions/checkout@v3
.github/workflows/core.yml:      - uses: actions/checkout@v3
.github/workflows/core.yml:      - uses: actions/checkout@v2
.github/workflows/crate_ci.yml:      - uses: actions/checkout@v3
.github/workflows/crate_ci.yml:      - uses: actions/checkout@v2
.github/workflows/pgmq_python.yml:    - uses: actions/checkout@v2
.github/workflows/pgmq_python.yml:    - uses: actions/checkout@v2
.github/workflows/pgmq_python.yml:    - uses: actions/checkout@v2
.github/workflows/extension_ci.yml:      - uses: actions/checkout@v3
.github/workflows/extension_ci.yml:      - uses: actions/checkout@v2
.github/workflows/extension_ci.yml:      - uses: actions/checkout@v2
.github/workflows/extension_ci.yml:        uses: actions/checkout@v3
.github/workflows/pgxn-release.yml:      uses: actions/checkout@v4

Would gladly accept another PR updating those to v4 too, otherwise I can bump them later

You're welcome!

I might be able to take a look at those tomorrow.


ResolveAll from unnamed registrations

Description
From what I've been able to tell in the current Unity API there is no way ResolveAll from unnamed registrations. However there are some legitimate times where such behavior is highly desirable. For instance as was first reported in https://github.com/dansiegel/Prism.Container.Extensions/pull/115, working with integrations that rely on Microsoft.Extensions.DependencyInjection where there is no concept of named registrations, we may need to be able to simply register multiple implementations as:
container.RegisterType<IFoo, FooA>();
container.RegisterType<IFoo, FooB>();

When resolving IEnumerable<IFoo> we would then expect a collection that contains 2 elements with an instance of FooA and another of FooB.
The only workaround I've seen between the docs & StackOverflow would seem to indicate that you must instead load the registrations like:
container.RegisterType<IFoo, FooA>();
container.RegisterType<IFoo, FooA>("FooA");
container.RegisterType<IFoo, FooB>();
container.RegisterType<IFoo, FooB>("FooB");

This of course duplicates the number of registrations and increases the memory footprint. Any help on the issue would be greatly appreciated.

As I said earlier, I am working on the next major release and could potentially add special handling, if required.
Please keep me in the loop so I could help...

just wanted to ping you on this and see how things are going for your 6.0 release. Do you anticipate a release where you might be able to include this feature in the net8 release timeframe? Just need to know how to plan for Prism. Feel free to email me direct dan @ prismlibrary.com


regress_1a

Description: creating a regression from data and adding a confidence interval to plot
NCL Script: https://www.ncl.ucar.edu/Applications/Scripts/regress_1a.ncl
NCL Plots: https://www.ncl.ucar.edu/Applications/Images/regress_1a_1_lg.png and
https://www.ncl.ucar.edu/Applications/Images/regress_1a_2_lg.png
Category: Regression

This is no longer a priority. I'm going to close this issue for now.


How is juno-uber installed? Is access to atom.io needed with the thin installer.

First of all, this package is great and very useful!
My collaborator is behind a firewall, and I will recommend him to use juliawin.
I wanted to ask which URL's the thin installer accesses? Only GitHub files or also external URLs?
(Depending on that I would recommend my collaborator the full or thin installer).
PS: This is not really an issue. But I didn't know where to ask.

This is a good place ta ask questions :)
The main approach is to first bootstrap as little as possible (basically just download Julia from the official website) and then within Julia run the rest of the installer. This includes downloading binaries directly from sources and then bootstrap them further by calling their own package managers etc.
Here is a list of some of the source that potentially get accesses by the thin wrapper:

github.com (to download this repo, Atom and MinGW)
julialang.org
curl.haxx.se (for a windows curl implementation)
code.visualstudio.com

Also whatever links to the Julia package manager.
And this is the routine to get all the atom packages:
apm install language-julia
apm install julia-client
apm install ink
apm install uber-juno
apm install latex-completions
apm install indent-detective
apm install hyperclick
apm install tool-bar
apm install file-watcher

What I would recommend is to run the thin-installer on another computer and then just copy the result over, since I don't quite know what all the updates were between the last release and now.

I want to make a new release, but am kind of waiting to do it after v1.6 is released.

Thanks you for the fast reply!
If I understand correctly, than apm install * will probably access atom.io, since that's where the node.js packages are.
Is everything that gets installed portable? (Also git/mingw/atom)?

I would also guess that would come from atom.io.
TL;DR It is as portable as possible
The thin installer works as follows

Thin installer

downloads this repo as a zip file to %TEMP%
starts the locally downloaded installation .bat file: https://github.com/heetbeet/juliawin/blob/main/bin/Juliawin Setup.bat

Juliawin Setup.bat installer

picks up from where the thin installer/initiator left
asks user to choose: installation location, programs to include with the installation, etc.
downloads Julia and extracts to final destination
start the locally downloaded Julia part of the installer: https://github.com/heetbeet/juliawin/blob/main/internals/juliawin_cli.jl

juliawin_cli.jl installer

picks up from where Juliawin Setup.bat left
downloads all portable versions of sources required and extracts them to the correct locations
installs and setup vscode extentions, atom extensions, OhMyREPL.jl and Revise.jl

Everything is wrapped with a thin layer of path/environment variable redirection to make things as portable as possible, and to allow user-data to end up in Juliawin's userdata directory.
Some minor issues still exists that will put off portable purists, but doesn't cause any administrative right to be violated and wouldn't clash with non-portable counterparts living on the same system: some portable programs still ends up writing log files and junk to some user locations. I can stop this by adding pseudo-user credentials and path redirections to Juliawin, but that will cause quite some unexpected behavior:
https://github.com/heetbeet/juliawin/issues/28 . Eg. your %Downloads% folder would be somewhere else from Juliawin's perspective.

Hi,
sorry for the late reply. The overview is great, maybe it could be copied to the projects wiki or something 👍
I played a bit around with it.
On my machine, I ran into this Julia 1.5.3 bug: https://github.com/JuliaLang/julia/issues/38411
(But I guess the best fix is to wait for 1.6)
Is it correct that I either need to rename julia.exe or I need to setup the Julia path in Atom myself?
(I saw in the .bat files the comment that Atom doesn't like julia.exe next to it...)
By the way, feel free to close this ticket anytime!

Hi, there is a way to manually upgrade to Julia 1.6 (I think): try downloading the 1.6 zip, and replace "packages/julia" with the extracted zip content (keep the same file structure "packages/julia"). You might have to reinstall some of the Julia libraries.
The comment in the bat file is placed at the point where the problem is fixed. The bat file check whether that exe is in the current working directory, then it changes working directories if that is the case. So it should be no worry to the user.


Integrate Edison V3 Plugin

Integrate robot Edison V3 in the OpenRoberta Lab.
Edison V3 is very similar to Edison V2 (already integrated). So we need to check for differences:

[x] Add test
[x] Check simulation
[x] Add configuration image / front view in simulation
[x] add compiler workflow: use the service offered for Open Roberta by Microbric
[x] Add program transfer possibilities, different to the older version, Edison V3 can only transfer programms via WebUSB!
[x] Correct simulation behaviour related to only integer arithmetic (division only)
[x] Activate NN only with "linear" activation function

works as expected


How how do you turn off auto closing quotes parenthesis etc?

There seems to be an undocumented functionality that is unconventional which is auto-closing brackets and quotes. How do you turn it off?

I believe it's mini.pairs. You should disable that if you don't want the functionality.

Do any serious coders actually use this auto-smart-keys stuff?
@robby-robby edit lua/plugins/disabled.lua and add this:
return { "echasnovski/mini.pairs", enabled = false }

Do any serious coders actually use this auto-smart-keys stuff?
@robby-robby edit lua/plugins/disabled.lua and add this:
return { "echasnovski/mini.pairs", enabled = false }

Yes, obviously


Add Bluesky as profile link option to team page + footer

A little proposal since people started posting there more actively. (Also the app is built with React, is open source, etc.)
Added just myself, not sure who wants to emphasize it so up to y'all. There's a bit of irony in that if you set up your domain, your Bluesky handle and your external link will be the same. (I might add, as it should be.)
Also linked React account from the footer.

Added Rick, dropping personal link as discussed "offline"


Adding support for Swift Package Manager

There's still an issue importing the AFNetworking.h

Initial support will be added in #4523.


Pull request body validation error

DEBU[0010] Successfully pushed local branch to remote origin  Repo=terraform-aws-architecture-catalog
DEBU[0011] Error opening Pull request                    Base=master Body="_**This PR was created by git-xargs. See https://github.com/gruntwork-io/prototypes/pull/152 for context.**_ We recently renamed all of our repos to follow the Terraform registry format of  (e.g., ). This PR does a search & replace to update all references to these repos to the new names. GitHub can handle redirects, so in theory, everything should work fine with the old names, but there were so many renames, that to reduce confusion, this will update most of our references to the proper values." Error="POST https://api.github.com/repos/gruntwork-io/terraform-aws-architecture-catalog/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Head=refs/heads/rename-repos
DEBU[0011] Error encountered while processing repo       Error="POST https://api.github.com/repos/gruntwork-io/terraform-aws-architecture-catalog/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Repo name=terraform-aws-architecture-catalog

Hello,
your tool was exactly what I was looking for, sadly I got the same error:
[git-xargs] DEBU[2021-04-22T14:10:51+02:00] Local repository worktree no longer clean, will stage and add new files and commit changes  Repo=room-management-example Found untracked file new-file.md. Adding to stage
[git-xargs] DEBU[2021-04-22T14:10:53+02:00] Successfully pushed local branch to remote origin  Repo=room-management-example
[git-xargs] DEBU[2021-04-22T14:10:54+02:00] Error opening Pull request                    Base=master Body="Testing git-xargs" Error="POST https://api.github.com/repos/<org>/room-management-example/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Head=refs/heads/testing-git-xargs
[git-xargs] DEBU[2021-04-22T14:10:54+02:00] Error encountered while processing repo       Error="POST https://api.github.com/repos/<org>/room-management-example/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Repo name=room-management-example

Looked into your source and found master as base branch. We already use main as default branch. Maybe thats the problem?
Can you make the default branch configurable?
Proposal:
Add the branch to the repo string in the repo file like:
gruntwork-io/infrastructure-as-code-training/tree/main
gruntwork-io/infrastructure-live-acme/tree/some-other-branch

This way you could use different base-branches for every repository.

Hello,
your tool was exactly what I was looking for, sadly I got the same error:
[git-xargs] DEBU[2021-04-22T14:10:51+02:00] Local repository worktree no longer clean, will stage and add new files and commit changes  Repo=room-management-example Found untracked file new-file.md. Adding to stage
[git-xargs] DEBU[2021-04-22T14:10:53+02:00] Successfully pushed local branch to remote origin  Repo=room-management-example
[git-xargs] DEBU[2021-04-22T14:10:54+02:00] Error opening Pull request                    Base=master Body="Testing git-xargs" Error="POST https://api.github.com/repos/<org>/room-management-example/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Head=refs/heads/testing-git-xargs
[git-xargs] DEBU[2021-04-22T14:10:54+02:00] Error encountered while processing repo       Error="POST https://api.github.com/repos/<org>/room-management-example/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]" Repo name=room-management-example

Looked into your source and found master as base branch. We already use main as default branch. Maybe thats the problem?
Can you make the default branch configurable?
Proposal:
Add the branch to the repo string in the repo file like:
gruntwork-io/infrastructure-as-code-training/tree/main
gruntwork-io/infrastructure-live-acme/tree/some-other-branch

This way you could use different base-branches for every repository and the user can copy the url from his browser.
Maybe you could ignore https://github.com in the beginning, then the user could just navigate to the branch and copy an paste the url.

Thanks for the detailed report! Yes, making the base branch configurable is a pretty quick change. I'll look at it as soon as I can.

Just realised that a few people has reported that. I had a stab at it to support the default branch https://github.com/gruntwork-io/git-xargs/pull/23
Not fully configurable but should help with most cases I believe. What do you think @zackproser?

Just realised that a few people have reported that. I had a stab at it to support the default branch #23
Not fully configurable but should help with most cases I believe. What do you think @zackproser?
This would help in my case

This should have been fixed in https://github.com/gruntwork-io/git-xargs/pull/23 thanks to @jphuynh !

Thank you, that was fast.
My test was successful

Thank you, that was fast.
My test was successful

Awesome - so happy to hear it!


adding asapp as an adopter

Signed-off-by: Santi Friquet<EMAIL_ADDRESS>
What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

If contributing rules or changes to rules, please make sure to also uncomment one of the following line:

/kind rule-update

/kind rule-create

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area rules

/area tests

/area proposals

What this PR does / why we need it:
ASAPP is using Falco for Container Monitoring. This edit adds ASAPP into the ADOPTERS.md file.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
NONE

@Stuxend: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign mstemm after the PR has been reviewed.
You can assign the PR to them by writing /assign @mstemm in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

now has all, I need to RTFM before make a PR... sorry bad habits.

/lgtm
thank you @Stuxend !

LGTM label has been added.  Git tree hash: eff2b265a0d3c40da63d05ed9ca6042f3f4e55da

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: danpopSD
To complete the pull request process, please assign mstemm after the PR has been reviewed.
You can assign the PR to them by writing /assign @mstemm in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: danpopSD, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: danpopSD, leodido, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [leodido,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: danpopSD, Kaizhe, leodido, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [leodido,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


⚠ Roblox Devforum has degraded performance

In 3ab7071, Roblox Devforum (https://devforum.roblox.com) experienced degraded performance:

HTTP code: 200
Response time: 7281 ms

Resolved: Roblox Devforum performance has improved in f7dbfe7.


PersonaImage doesn't show correctly on mozilla

Screenshot of the artifact:

Screenshot of the artifact:

Thank you, Mr.Aceti.

Apparently it was a singular case.


Added unit test for boolean option values.

It fails now. In XmlDriver::_parseOptions we need somehow to maintain a list of options, that are supposed to be boolean, and then call $this->evaluateBoolean() on them.

Ref: #6129

@kalimatas thanks for converting it into an actual failing scenario!

@Ocramius fixed

@kalimatas thanks! This looks good, merging!
👍


gem: bump required ruby version to 3

Codecov Report

Merging #165 (42b0bfd) into main (03f7792) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #165      +/-   ##
==========================================
- Coverage   99.74%   99.72%   -0.03%
==========================================
  Files          68       68
  Lines        3985     3985
==========================================
- Hits         3975     3974       -1
- Misses         10       11       +1

Impacted Files
Coverage Δ

lib/eth/client/ipc.rb
93.33% <0.00%> (-6.67%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


What is the variable name when setting custom installation path in CmakeList?

I tried
set(OpenImageIO_DIR ${custom_path}/cmake/OpenImageIO)
find_package(OpenImageIO 2.0.9 REQUIRED)

OpenImageIO_DIR right?

That depends, potentially, on a lot of things:

What version of OIIO? Are you really using 2.0.9, or is that just a minimum?
What version of CMake?

If you are using a currently supported OIIO (2.2 or higher, and which requires CMake >= 3.12), the answer would be OpenImageIO_ROOT.

@lgritz  Thank you for your reply.  Solved.


AQAvit Meeting: August 11, 2021

Join via https://bluejeans.com/724807178/2833?src=calendarLink
Add the recurring bi-weekly AQAvit meeting to your calendar.
Proposed Agenda:

TRSS updates, swagger - @llxia
July release AQA triage - @sophia-guo @smlambert
Outreachy wrap-up
CanOSP fall participation
Review AQAvit Zenhub board - all

current sprint
PR backlog

AOB

Meeting recording link


Update package_config.json

This change does not make any sense.

@mraleph this is an account with 1 commit this year (this one). You might be targeted, I was checking the PRs and was wondering why many of them were closed


Add a raw input cache to reduce pattern decoding time

getPattern is expensive, this will skip those calls if the itemstacks are the same

fixes https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10719 right?


[🐛] picker is returning opposite width and height values on IOS for .MOV (Quicktime) video from gallery

When selecting a video with type "video/quicktime" (which is an MOV file) from the gallery the width and height are flipped.

Everything else seems to be fine (images are okay, screen recordings are good, other videos, etc...
I believe this may be related to video type "video/quicktime" which is an MOV file, because MP4 videos are displaying fine.
Version: 4.10.0
RN Version: 0.66.0

My fix here was to get the orientation with react-native-video, then adjust accordingly from there. Perhaps an IOS issue?

For other people facing this issue I fixed it with adjusting getVideoDimensionsFromUrl function as following and then patching it.
// ImagePickerUtils.m

+ (CGSize)getVideoDimensionsFromUrl:(NSURL *)url {
    AVURLAsset *asset = [AVURLAsset URLAssetWithURL:url options:nil];
    NSArray *tracks = [asset tracksWithMediaType:AVMediaTypeVideo];

    if ([tracks count] > 0) {
        AVAssetTrack *track = [tracks objectAtIndex:0];
        CGSize naturalSize = track.naturalSize;
        CGAffineTransform preferredTransform = track.preferredTransform;

        if (preferredTransform.a == 0 && preferredTransform.b == 1.0 && preferredTransform.c == -1.0 && preferredTransform.d == 0) {
            // Video is in portrait mode
            return CGSizeMake(naturalSize.height, naturalSize.width);
        } else {
            // Video is in landscape mode
            return naturalSize;
        }
    }

    return CGSizeMake(0, 0);
}

@Futy99 thnx for your solution! Just opened PR with it.

For other people facing this issue I fixed it with adjusting getVideoDimensionsFromUrl function as following and then patching it.
// ImagePickerUtils.m

+ (CGSize)getVideoDimensionsFromUrl:(NSURL *)url {
    AVURLAsset *asset = [AVURLAsset URLAssetWithURL:url options:nil];
    NSArray *tracks = [asset tracksWithMediaType:AVMediaTypeVideo];

    if ([tracks count] > 0) {
        AVAssetTrack *track = [tracks objectAtIndex:0];
        CGSize naturalSize = track.naturalSize;
        CGAffineTransform preferredTransform = track.preferredTransform;

        if (preferredTransform.a == 0 && preferredTransform.b == 1.0 && preferredTransform.c == -1.0 && preferredTransform.d == 0) {
            // Video is in portrait mode
            return CGSizeMake(naturalSize.height, naturalSize.width);
        } else {
            // Video is in landscape mode
            return naturalSize;
        }
    }

    return CGSizeMake(0, 0);
}

you are a super hero! this should have been fixed after all this time...


[ReleasePrep][2018.08.01]RI of dev into master

I won't merge this until https://github.com/NuGet/NuGetGallery/pull/6240 has been merged

I verified that @ryuyu's changes were merged properly.


Edge warns about azcopy's ZIP file: azcopy_windows_amd64_10.19.0.zip isn't commonly downloaded

Which version of the AzCopy was used?
Any version.
Which platform are you using? (ex: Windows, Mac, Linux)
Windows
What problem was encountered?
When downloading azcopy with Edge, Edge warns

azcopy_windows_amd64_10.19.0.zip isn't commonly downloaded. Make sure you trust azcopy_windows_amd64_10.19.0.zip before you open it.

How can we reproduce the problem in the simplest way?
Download https://aka.ms/downloadazcopy-v10-windows with Edge.
Have you found a mitigation/solution?
I have to click my mouse 5 times for Edge to keep it, which is truly tedious.

Google Chrome on the other hand doesn't warn anything and downloads it successfully:

I understand this may not be azcopy's duty to fix it, but I just want to create this issue for tracking purpose.

@jiasli We've flagged this with the Defender Smartscreen team and it appears to be resolved. Can you confirm that you're no longer seeing the warning?

Hi! This should be resolved now, but if the issue persists please let us know!


docker machine 0.3.0(0a251fe)  amazonec2   driver cannot run in AWS China(cn-north-1)

Hi Forks,
I notice when use docker-machine to launch machine in AWS China the endpoint is not right, the error message is:
'''client encountered error while doing the request: Get https://ec2.cn-north-1.amazonaws.com/?Action=DescribeKeyPairs&Version=2014-06-15: dial tcp: lookup ec2.cn-north-1.amazonaws.com: no such hostError creating machine: Problem with AWS API call: client encountered error while doing the request: Get https://ec2.cn-north-1.amazonaws.com/?Action=DescribeKeyPairs&Version=2014-06-15: dial tcp: lookup ec2.cn-north-1.amazonaws.com: no such host
You will want to check the provider to make sure the machine and associated resources were properly removed.
'''
The docker-machine version I used:
docker-machine version 0.3.0 (0a251fe)
From our experience on AWS China, the AWS China is an a Isolated region and the endpoint is:
ec2.cn-north-1.amazonaws.com.cn
not the same pattern with other AWS region https://ec2.%s.amazonaws.com
You can reproduce this issue by using docker-machine to launch instances inside AWS China, if needed, I can provide a temp AWS China credential,
The same issue report by @xiaoluffy  with #1224 before on version 0.2.0 , also ping @ehazlett
I am guessing need someone help on the NewEC2 function on this file:
https://github.com/docker/machine/blob/ff4650b9ed7ed145e70de4378cf729e8df6e3a5a/drivers/amazonec2/amz/ec2.go
Thanks!

Same with docker-machine version 0.4.1 (e2c88d6)
Any news on this ?

I tried to fix this, but I got below outputs ( I've added some debug messages in the codes).
I can make sure the accesskey/secretkey should be right, but I don't know how I still got a 401 response error.
Running pre-create checks...
(aws-docker02) Calling RPCServerDriver.PreCreateCheck
(aws-docker02) DBG | Making AWS API call with values:
(aws-docker02) DBG | {
(aws-docker02) DBG |     "Action": [
(aws-docker02) DBG |         "DescribeKeyPairs"
(aws-docker02) DBG |     ],
(aws-docker02) DBG |     "Version": [
(aws-docker02) DBG |         "2014-06-15"
(aws-docker02) DBG |     ]
(aws-docker02) DBG | }
(aws-docker02) DBG | awsApiCall, https://ec2.cn-north-1.amazonaws.com.cn?Action=DescribeKeyPairs&Version=2014-06-15
(aws-docker02) DBG | GetKeyPairs, Problem with AWS API call: Non-200 API response: code=401 message=AWS was not able to validate the provided access credentials
(aws-docker02) DBG |
(aws-docker02) DBG | checkPrereqs, Problem with AWS API call: Non-200 API response: code=401 message=AWS was not able to validate the provided access credentials
Error creating machine: Error with pre-create check: Problem with AWS API call: Non-200 API response: code=401 message=AWS was not able to validate the provided access credentials

BTW, I've tried to fix the error in 0.5.0

FYI, I tried the latest docker-machine, and it worked with cn-north-1:
$ docker-machine create --driver amazonec2 --amazonec2-region cn-north-1 --amazonec2-subnet-id subnet-xxxxx --amazonec2-vpc-id vpc-xxxxxx docker-02
Running pre-create checks...
Creating machine...
(docker-02) Launching instance...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env docker-02

I have tried but failed, command hung when "Installing Docker..."
then I try to run command: "docker-machine ls", output error is:
docker-sandbox2   -        amazonec2    Running   tcp://<IP_ADDRESS>:2376            Unknown   Unable to query docker version: Cannot connect to the docker engine endpoint
my environment is Mac 10.11.6

docker-sandbox2 - amazonec2 Running tcp://<IP_ADDRESS>:2376 Unknown Unable to query docker version: Cannot connect to the docker engine endpoint

You need to figure out why that address isn't reachable from your workstation... does ping on that ip work?


Add support to Application Insights for Central Diagnostics Log Analytics Workspace

Is there an existing issue for this?

[X] I have searched the existing issues

Community Note

Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description
The "azurerm_application_insights" module allows you to specify a Log Analytics workspace but not to use a central LAW defined as a diagnostics destination in the launchpad, for example the central_logs that sit within the management subscription in CAF.
This feature request is to add that support.
New or Affected Resource(s
azurerm_application_insights
Potential Configuration file
azurerm_application_insights = {
  webapp = {
    name                                = "example-appinsights-web"
    resource_group_key                  = "rg1"
    application_type                    = "web"
    log_analytics_workspace_destination = "central_logs"
  }
}

References
No response

I will submit a PR for this


multi: upgrade macaroons to v2, replace per-method auth with interceptors

This PR reworks the macaroon authentication framework to use the v2 macaroon format and bakery API. It also replaces the code in each RPC method which calls the macaroon verifier with interceptors which call the macaroon verifier instead. In addition, the operation permissions are reworked to fit the new format of "allow" commands (specifically, entity/operation permissions instead of method permissions).

One relevant follow up to this PR would be expanding the docs on macaroons to show how one would pass them over REST (the proper header, encoding, etc).

Yup ! I was trying to work on #284 but didn't manage to understand how to do that.


Database File corrupted

I am using Lokijs for one of our production REST servers.  The REST server uses the Express framework.  The database table that's being discussed here is the users table.  There are more than 2000 user records in the database table (the file is about 1 MB in size).  The database size is about   I use autosave (with autosave interval of 20 sec) to persist the database to a local json file.  As I understand, every time when the file is saved, the old file will get complete rewritten.  So, when the file is big, the save would take longer than a small database file.
Additional Information:  I use iisnode to run this server on IIS.
Earlier today, we suddenly discovered the database file become 0 size.  We are still looking for the backup file to restore the database.  Now, I am suspecting that this could be caused by one of the following:

Because the file is quite large, it could take a bit of time to save the file.   The node.js is really busy during the 20 sec cycle, could 2 consecutive file updates overlap each other and cause the file to become corrupted?

Some code could have crashed the node.js server during the writing to the file system.  I suspect that this is the most probably cause.  But, I don't have any evidence to support this.

I know that IIS reboots itself from time to time.  There is a chance that when IIS restarts itself, it would kill our server just at the right moment (i.e. in the middle of a database file update).

Do you have any other thoughts on how this could happen?
Another thing I am thinking now is the proper way to do backups for these files?  Because the file could change any second, there is a chance that the backup software may not catch the database right at the right moment.  I am thinking that Lokijs should have a feature to make proper local backup copies of the database.  There should be multiple copies of the database saved based on hourly, daily and  weekly schedules like a proper backup solution.   The backup software would at least be able to the backup the backup files.

After reviewing the server log file, I now think that the problem is caused by #2.  I saw that the node server crashed quite often (like once every other minute) at the same line of code during a user table sync process that lasted maybe 20 minutes.

@joehui this is really a broad conversation, beyond the issue you are experiencing. The reality is that when LokiJS is used on the server the persistence adapter should persist collections separately and - imho - even documents separately, because when Loki is used on the server the size of the db is expected to be larger. The aim is to avoid overwriting the entire database and limiting the damage in case of a crash. As for your question: as the nodejs model is non-blocking, it is entirely possible that two saves operations may access the same file.  The size file you are talking about though should only take milliseconds to save, so for now you shouldn't have overlapping saves.
So you have two solutions: 1. wait for me to write the nodejs incremental persistence adapter which would save all documents separately, with each document file being append-only, so the entire history of the document is available, or 2. write your own :)
It is very difficult to guess why the save failed. Definitely without seeing the code it's impossible, and also i have literally zero experience of IIS / iisnode, which makes it harder. Maybe @obeliskos (who is more of a windows man than i am) has some experience in this environment.
As for backup tools, you are most definitely correct. I should be getting more time to get back to Loki and i want to start expanding tools (tcp/http wrappers, persistence adapters, and backup tools). One very important feature i'd like to develop is life beyond JSON, maybe utilizing msgpack or bson. But i don't have a precise idea of the work involved so no estimates on that backup tool just yet. Feel free to request features and I'll try to give it a stab as soon as i have time for it.

A 1meg file? Assuming normal hard drive that should take a split second to flush to disk.   A 20 second interval should be no problem... just to restate the obvious first make sure interval is passed as 20000 (ms).
So there's 'odds of collisions' among processes and then there are safeguards we can implement to address error prone edge cases.
We currently not detect if previous save is not yet completed.  We could keep flag of whether save is 'in progress' and skip a cycle in those cases to avoid potential filesystem conflicts.
In the future you may need to detect node's process.on("exit") and call db.close() to flush any pending changes.  During reboot it probably sends kill signal to node process which that event could detect to flush change and disable services in preparation for shutdown.
So backup would need to be orchestrated by yourself until someone develops server tooling, but we might provide a method to temporarily disable adapter 'saves' while still tracking whether they are 'dirty'.  So you might tell loki to disable saves, issue file copy from node or spawn copy process, and when done tell loki to resume saves.
Also due to nature of single threaded main thread, the timer is more of a suggested schedule that can get thrown off by non yielding main thread activity.  Might we worth researching whether higher resolution timers in various environments are more 'reliable' as well as accurate.

Thanks for your replies.
Luckily, our IT department kept good backups of the server.  We were able to restore the file to 1 day ago.  Looks like we didn't lose anything.
Yes, the interval time is 20000 ms.
Yes, to make LokiJs a more robust solution for production use, I think it would be a good idea to have some code to protect the subsequent cycles from conflicting with each other.
Add process.on("exit") to flush the database sounds like a good idea.  I will definitely look into that.
In terms of doing my own backups, sounds like I will have to wait until you have such a method for temporarily disable the "saves".

@joehui i'm closing this as there is - strictly speaking - no issue. I have included in my personal roadmap backup tools to prevent your situation happening again..

@joehui what I do in my own adapter is write the DB to a temporary file with a unique filename, and then move it into place (overwriting the older version). This should minimize the risk of corruption, as a halfway-written file interrupted by something will simply not be moved into place.
Incremental/partial save would be most welcome aside from that.


Speedup Copy-DbaDatabase

Type of Change

[ ] Bug fix (non-breaking change, fixes #)
[X] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose
On instances with large numbers of databases, the call to $destServer.databases.refresh() can take a long time but only the new database needs to be refreshed (for comparison against properties of the source DB)
Approach
Replaced refreshing all databases on the instance with getting a reference to just the new database that was restored.
On my test instance with 300+ databases, this was approx. a 10% speed improvement.
Commands to test
Copy-DbaDatabase

excellent, thank you so much, Andy!

Just noting that the test did not actually run on your commit @alevyinroc . Appveyor seems to have 🐩 out.
I'm curious to know if you tested this against your larger instance and what the time difference really is?
Get-DbaDatabase does good bit more than just doing $destServer.Databases[$currentDB].Refresh()

@wsmelton I didn't have an opportunity to test it against the big one on Friday but I will give it a shot in the next couple days.

@wsmelton on my big instance, I got 4 minutes with the new version and 7:50 with the original. Th database I copied is about 230MB.


Model cannot update correctly when reuse a form  (Repeat Section)

[x] bug report

Current behavior

When i use formly-js to build a dynamic form,it's correct when i open the modal first time,

and i when i open it the second time,it shows

i checked all the code and finally find the problem is at formly.form.ts,the function called setOptions
    if (!(<any> this.options).resetTrackModelChanges) {
        (<any> this.options).resetTrackModelChanges = () => {
            this.clearModelSubscriptions();
            this.trackModelChanges(this.fields);
        };
    }

When i build the form the second time, resetTrackModelChanges has been defined,and i called add function in field-array.type.ts, then "this.fields" is the fields defined when it first time init, and can not track model change correctly.
So i have to clear this form options every time when i close the modal or change the code to redefined the resetTrackModelChanges, which is better?
Please tell us about your environment:

Angular version: 5.2.X

Browser: [all]

Language: [all]

Node (for AoT issues): node --version = 9.3.0

Hi, can you provide a reproduction example,  here is a starter example https://stackblitz.com/edit/angular-3fmi3c

https://stackblitz.com/edit/angular-3fmi3c-rcvrjk, and i found that i renew the form and the model,but not the options,my bad!
Thank you for your help!


set_friction_ratio throw error when one link has multiple geometries

I want to call set_friction_ratio function to set friction ratios for RigidEntities, but get error below:

I try to debug what happened, and found that if merge_fixed_links = True when you add a URDF entity with multiple links merged to one link, the list in the torch.tensor() call(which is in the source of set_friction_ratio()) will have different length in dim1(just as the second figure below), and that will cause the above error.

Strictly speaking, this is not a issue if you set merge_fixed_links=False when adding a URDF entity, but it should be noted.

Thank you for bringing this up! You can use set_geoms_friction_ratio in RigidSolver for now before we fix it.
https://github.com/ziyanx02/Genesis-backflip/blob/main/locomotion_env.py#L806


Fix deck.gl examples.json file

Fix examples.json file with the changes introduced here: https://github.com/CartoDB/viz-doc/pull/29.
This PR will Developers Center deploy.

Ok with the path change, but why the styled-related removal ?

Those files were removed, or moved to basic-examples


Implement replace-by-fee

Right now, a transaction that is pending in the mempool cannot be replaced by fee, even though the Stacks network protocols support it.  This means that if the network is congested, and your fee is too low, your transaction will not be mined.  The wallet should allow the user to re-submit a transaction with a higher fee.

See also https://github.com/blockstack/stacks-wallet-web/issues/1532

At the same time, the user ought to be able to set the fee they want to pay from the get-go.

This means that if the network is congested, and your fee is too low, your transaction will not be mined.

We have arrived 👏


ould not load file or assembly 'Microsoft.Framework.Logging.ILoggerFactory' or one of its dependencies. The system cannot find the file specified.

Not sure if this issue belongs here.
I am trying to run this sample
https://github.com/AzureADSamples/WebApp-OpenIdConnect-AspNet5
However I got this error:
Could not load file or assembly 'Microsoft.Framework.Logging.ILoggerFactory' or one of its dependencies. The system cannot find the file specified.

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.Framework.Runtime.Loader.LoadContext.Load(String name)
at Microsoft.Framework.Runtime.Loader.LoadContext.ResolveAssembly(Object sender, ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)

my dependencies is this:
 "dependencies": {
       "EntityFramework.SqlServer": "7.0.0-beta4",
        "EntityFramework.Commands": "7.0.0-beta4",
        "Microsoft.AspNet.Mvc": "6.0.0-beta4",
        "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta4",
        "Microsoft.AspNet.Authentication.Cookies": "1.0.0-beta4",
        "Microsoft.AspNet.Authentication.Facebook": "1.0.0-beta4",
        "Microsoft.AspNet.Authentication.Google": "1.0.0-beta4",
        "Microsoft.AspNet.Authentication.MicrosoftAccount": "1.0.0-beta4",
        "Microsoft.AspNet.Authentication.Twitter": "1.0.0-beta4",
        "Microsoft.AspNet.Diagnostics": "1.0.0-beta4",
        "Microsoft.AspNet.Diagnostics.Entity": "7.0.0-beta4",
        "Microsoft.AspNet.Identity.EntityFramework": "3.0.0-beta4",
        "Microsoft.AspNet.Server.IIS": "1.0.0-beta4",
        "Microsoft.AspNet.Server.WebListener": "1.0.0-beta4",
        "Microsoft.AspNet.StaticFiles": "1.0.0-beta4",
        "Microsoft.AspNet.Tooling.Razor": "1.0.0-beta4",
        "Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta4",
        "Microsoft.Framework.ConfigurationModel.UserSecrets": "1.0.0-beta4",
        "Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta4",
        "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-beta4",
        "Microsoft.AspNet.Security.OpenIdConnect": "1.0.0-beta3",
        "Microsoft.Owin.Security.Cookies": "3.0.1",
        "Microsoft.Framework.Logging": "1.0.0-beta4",
        "Microsoft.Framework.Logging.Console": "1.0.0-beta4"
  },

Build Works fine, but F5 just throws this error.

This is likely the problem:
"Microsoft.AspNet.Security.OpenIdConnect": "1.0.0-beta3", Try changing it to         "Microsoft.AspNet.Authentication.OpenIdConnect": "1.0.0-beta4",

FWIW: A few others seems to have the same issue and there's a discussion here: http://stackoverflow.com/questions/30375231/could-not-load-file-or-assembly-microsoft-framework-logging-iloggerfactory-or

Closing this out assuming the suggested fix works.