Write operations seem to be hanging

I am seeing odd behavior and was wondering if anyone else was as well,
When testing my CloudFS plugin, that was based heavily on the FILE plugin write operations are hanging and never completing.
anytime the content.CopyTo(stream) is being called the program hangs.
It appears that for some reason the Dokan stream is never actually getting copied to the GatherStream because assigned blocks is always empty and so GetAvailableBytes is coming back as 0.
As a sanity check I also attached the original untouched FILE plugin and had similar results.
has anything changed that could be affecting this ?

You're right - the latest changes that were introduced to support filesystems with "immutable" files (read: MEGA) seem to have broken something.
Please revert to v 1.0.4-alpha for the time being - I'll get to the root of this.

The crux of the problem seems to be that in Dokan Operations set allocation Size
            var context = (StreamContext)info.Context;
            context.Stream = scatterStream;

and the content is never copied from the Dokan context stream to the scatterStream so everything is blank :)

Could you please check if my latest checkin to the develop branch does any good for your problem?
I haven't quite gotten around to reproducing your observation with the call to SetAllocationSize(), however, there definitely was a bug in determining file sizes for encrypted files - which may account for your hangs in Stream.CopyTo().
With the fix applied I was able to write a ~12Mb binary file to a FILE based volume, verify its CRC while on the mounted volume and copy it back to a normal HD intact.

I will check however I should have clarified before I am using the library with the encryption key set to "" which, I understood, would bypass the encryption all together, I am wondering if this could also account for the problems I am seeing

You are correct in assuming that encryptionKey = string.Empty bypasses encryption.
I will doublecheck tonight that everything works as it should with encryption turned off.
BTW, do you access your mounted cloud volume through Windows Explorer or directly from .NET code?
My primary design goal for DokanCloudFS has been to enable cloud access for Windows Explorer, so there is a chance that not all code paths are covered for "raw" .NET - although this will definitely work for the CloudFS gateways.

I access the mounted cloud volume via windows Explorer,
I am still seeing issues with writes after the changes.
I wonder if the proxy file creation could be interfering as that seems to be a fairly recent change.
the reason I mentioned the SetAllocation is that I am seeing scenarios where Write is called before set allocation and as far as I can tell that written content would not end up in the scatterstream.

the reason I mentioned the SetAllocation is that I am seeing scenarios where Write is called before set allocation and as far as I can tell that written content would not end up in the scatterstream.

That's interesting. I've not seen this behavior so far. IIRC the only case where SetAllocationSize() is not called first is for small files (< 4kb) where the entire content is written in a single Write().
Do you have a specific scenario that I could try to reproduce?

I was testing with small files.. but in those cases the file save hangs.

Ok, bad habit. I just saw that your reply came between my original comment and my edits.
If you'd be so kind as to give me a couple more specifics of your scenario I'd be happy to look into this tonight.

Sorry about that.
My setup is windows 8.1 and windows 10
I am testing with large txt files and small txt files from notepad as that uses simple file io and and office documents such as doc and docx files which has a tendency to use overlapped io
file system I am writing to is NTFS
all files are affected.
I am using BTSYNC that is selectively syncing files from a remote share but as far as access goes all my reads and writes are local and I am not seeing file access issues.

Please verify if #9c11912 improves anything.

These are tests with small files.
1: So new file saving no longer hangs but the files are written to the disk and then immediately are removed
2: If you attempt to open an existing txt file and then attempt to save it an error is thrown as the driver attempts to use the original stream that only has read permissions
when using the file sample cloud disk saving a file now returns a permissions error
Attached are the two log files from my notepad test with my virtual drive "CloudShare" and the "File"
virtual drive
for this test I literally started the drive,
opened up notepad
typed "this is a test"
and then hit the close button at which point it asked if I wanted to save and I selected each of the drives named the file something like test.txt and attempted to save.
CloudShare Simple Text Save.txt
File Simple Text Save.txt

Thanks very much for this detailed report - I understand now understand the reason behind your observed failures much better.
To be frank, I haven't viewed the online editing use case as very important so far and rather focused on a backup/sync scenario.

Ok, most of your simple test scenario should work now:

I was able to create a new text file by saving a short text from Notepad exe.
After restarting Notepad.exe and opening the text file I could save a modified text to the opened file.
All this was tested on a FILE gateway, but it should work just as well on any of the other gateways - with the exception of hubiC (currently not fully operational).

Thanks again for your cooperation. Please feel free to report any additional shortcomings or to close this issue if there are none.

So I just tested this, the problem of initial writing seems to have been resolved.
but if I open a file in notepad, and type some changes and hit save or close it immediately comes back with "Invalid Parameter".....
at first glance it looks like what is really happening is the write cant access the file because the read already has the file open and has not released the file yet. this error then cascades down and ultimately the driver attempts to remove the file for some reason :) which luckily it can't for the same reason, "The File is locked"
I have included a screen shot of my system during this error, which gives a surprising amount of detail.
I have the call stack visible as well as the locals where you can see the error message,

Nice shot. But why do you think the amount of detail to be surprising?

The reason for the driver trying to remove a file when errors occur (except UnauthorizedAccessException) is again related to my bias towards a backup/sync scenario.
In the presence of unrecoverable write errors in the cloud (use of a fully transactional file system is ruled out for the time being) I'd rather have a file missing entirely in my backup than keeping a corrupt copy. Especially when considering that there is no such thing as a partially corrupt file with AES encryption.
But I'd be interested in your view on this matter. Maybe there are other cases than authorization failure that can be compensated without purging the target file.

On the file deleting
I understand the concept on a new file creation, the problem, at least from my perspective is that the error that is occurring is nothing more than a conflict when attempting to gain access to write back to the file, so in that case nothing about the file has changed but yet the original file is potentially getting removed from the system.
Now from the perspective of a remote file system view for backups this makes tons of sense. In an interactive view of a file system this is incredibly dangerous.
On the open then save issue
The file is opened and kept open with read only locking so it then is failing when the attempt is made to open the file for writing but what is essentially another process,the assumption by the file system and the application is that the same "process" will be the ones actually making the writes to the file system.
In the case of this driver being a proxy in the middle that is no longer the case and that is where a majority of the file issues are coming from in the dokan projects that are actually proxing file system access.

On the file deleting
I understand the concept on a new file creation, the problem, at least from my perspective is that the error that is occurring is nothing more than a conflict when attempting to gain access to write back to the file, so in that case nothing about the file has changed but yet the original file is potentially getting removed from the system.

I totally agree with your view. What I'd like to do is identify better those situations when "nothing about the file has changed" so there is no danger of the file having gotten corrupted by a partial write. I started checking for UnauthorizedAccessException because in this case I can be fairly certain that the target file remains unchanged. The problem arises with the unspecific IOException that is thrown in the file locking case. The same Exception could also signal an aborted network file transfer. At least this is what I think will happen - please correct my if I'm wrong.

On the open then save issue
...

You sound like you have run into some painful issues with Dokan in the past :-(.
I'm basically aware of the implications behind read/write file access contention. However, I have so far failed in tracking down the actual reason for this contention to occur in DokanCloudFS. Whenever I break into the debugger in CloudOperations.WriteFile() the read-Stream has already been disposed and the write succeeds. It is only when letting the driver run free that the Exception is thrown.
Annoying case of Heisenbug - maybe related to a threading issue.

Also, I have so far only observed the contention for the local FILE gateway in the unusual case of turned-off encryption.
This is hardly a primary use case for DokanCloudFS.

I thought about writing a file manager that was responsible for all of the actual io that gave out handles to to the processes as they were accessing the files, the theory is that the same process doesn't have to abide by the locking even if it's in conflict so it never really comes up for these apps when they are working with the disk directly.
So no file close until there are zero handles and everything else would be virtual.
-Adam
Sent from my iPhone

On May 13, 2016, at 4:04 PM, viciousviper<EMAIL_ADDRESS>wrote:
On the file deleting
I understand the concept on a new file creation, the problem, at least from my perspective is that the error that is occurring is nothing more than a conflict when attempting to gain access to write back to the file, so in that case nothing about the file has changed but yet the original file is potentially getting removed from the system.
I totally agree with your view. What I'd like to do is identify better those situations when "nothing about the file has changed" so there is no danger of the file having gotten corrupted by a partial write. I started checking for UnauthorizedAccessException because in this case I can be fairly certain that the target file remains unchanged. The problem arises with the unspecific IOException that is thrown in the file locking case. The same Exception could also signal an aborted network file transfer. At least this is what I think will happen - please correct my if I'm wrong.
On the open then save issue
...
You sound like you have run into some painful issues with Dokan in the past :-(.
I'm basically aware of the implications behind read/write file access contention. However, I have so far failed in tracking down the actual reason for this contention to occur in DokanCloudFS. Whenever I break into the debugger in CloudOperations.WriteFile() the read-Stream has already been disposed and the write succeeds. It is only when letting the driver run free that the Exception is thrown.
Annoying case of Heisenbug - maybe related to a threading issue.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Understood, it's a fairly unique use case.
Sent from my iPhone

On May 13, 2016, at 4:12 PM, viciousviper<EMAIL_ADDRESS>wrote:
Also, I have so far only observed the contention for the local FILE gateway in the unusual case of turned-off encryption.
This is hardly a primary use case for DokanCloudFS.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Nevertheless I may have found an ugly workaround - at least it worked for me in about 10 consecutive manual tests.
Please try the above two commits (FileGateway must be updated, too).

Hi @adamrogas,
have you had a chance to check if the latest changes to CloudFS - or version 1.0.6-alpha for that matter - fixed your situation?

It seems that the problem is still present while saving the MS Office files (.docx file opened - trying to save changes, two temporary files created by MS Word) - tested with Box.
There is no problem with classic Text files.
Exception occurs in Read method of ScatterStream class.

Hi @drunkenbeaver,
made some headway with the MS Office file handling issue.
I now have an internal version working that is able to open, edit and save (under a different name) a .docx file in MS Word 2016.
What I couldn't work out is in-place saving of a modified .docx file from within MS Word. The DokanCloudFS console trace looks to be without errors but still Word complains about some missing file system rights or other on the original file. I don't see any unsupported calls (like setting a readonly file attribute) nor are any Exceptions raised or any non-success DokanResults returned.
I'm inclined to leave it at that for the time being and rather bundle up the current state of affairs into a new beta release.
Maybe someone with deeper knowledge of the inner workings of MS Office file operations can help out: What is it that MS Word expects the file system to do after it saves (and apparently verifies by re-reading) a temporary ~WRD0000.tmp file?

Hi there! First of all, I'm really happy that you still actively maintain this code base and I look forward to switch to develop branch to check out the latest progress on this and relevant issues.
This is what I've found MS is doing while Opening, Saving or Closing it's documents (.docx eg.) where Word.docx is a sample file I'm working with:
Open Word.docx

Create ~$Word.docx

Save Word.docx

Create ~WRD0000.tmp
Rename Word.docx > ~WRL00001.tmp
Rename ~WRD00000.tmp > Word.docx
Delete ~WRL00001.tmp

Close Word.docx

Delete ~$Word.docx

You're probably familiar with this or similar scenario.
It's quite difficult to track what's happening here, especially if at the endpoint you're trying to version these documents (ofc, original Word.docx is actually the only file that's really of interest to the users).

Hi @drunkenbeaver,
your helicopter view of MS Word's file operations is certainly correct. At this level of detail I have been able to perform the steps until

Open Word.docx

Create ~$Word.docx

Save Word.docx
Create ~WRD0000.tmp

At this point, MS Word initiates a series of Read operations on both the original and the temporary file (mostly just for the leading 512 bytes) and looks to be in some obscure way dissatisfied with the results. Next, MS Word pops up an error window citing "Word cannot complete the save due to a file permission error." and terminates the write operation.
This might be a general problem of Word not being able to update .docx files in place on a network shared volume - in which case there isn't much I can do about it.
Apart from that I have tracked down the error you reported back in December, so you'll at least be able to save a .docx file under a different name with the next DokanCloudFS release.


refactor paths with node paths (prevent issues on different os)

No issues detected on other os (tested on Ubuntu 14.04 LTS).


⚠ TorrentLeech has degraded performance

In 68812fe, TorrentLeech ($TL) experienced degraded performance:

HTTP code: 200
Response time: 7256 ms

Resolved: TorrentLeech performance has improved in 6ce57bc after 8 minutes.


Add zstd compression content to performance tuning doc

Description
This change adds a brief overview of the zstd compression introduced in opensearch v2.9 to the docs page.
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
Checklist

[X] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Thanks, @akashsha1!


fix: update language-python for stable

Description
This updates language-python to 0.53.6
It includes various fixes. The most important one is the support argument list which allows merging https://github.com/kiteco/atom-plugin/pull/704
Verification

The changes are already verified in https://github.com/atom/language-python
The CI passes here.

@aminya This has been included on the 1.56-releases. Atom version 1.55 already out, adding commits to the branch has no effect on the upcoming Atom versions.


Some bugs

There are several bugs at the start level when we start the server it does not give us the title in any case I do not understand the autostart does what then should do when we try to connect like /server pvp it turns on the server

Did you granted autostart permissions?
You need to add permission to player to use autostart feature.
In Bungeecord config.yml file.
permissions:
  default:
  // player can start all server
  - ptero.autostart.*
  // player can start specific server
  - ptero.autostart.<server_name>


revert yoink to unordered interpreting

Bad:
define(['jquery.js', 'myJQueryPlugin.js'], function($, _) {
    var div = document.createElement('div');
    return $(div).myWidget();
});

Better:
define(['myWidget.js'], function(W) {
   return W.myWidget();
});

jquery plugins will need to be wrapped, but will get much better performance for everyone that doesn't utilize jquery's awkward plugin model.   The former only works because:

jQuery first writes to global variables, which the plugin uses to thrust itself into the jQuery object
yoink jumps through hoops to download modules in parallel but then interpret them in sequence.

instead, yoink will go back to interpreting modules as soon as it receives them, which will allow it to start downloading its own dependencies as quickly as possible instead of waiting for the slowest download to complete.

done


tensorflow runs much slower/ installation issue?

I installed tensorflow version 0.11.0rc0 using the .whl provided and the following code runs terribly slower (on macosx cpu) compared to its numpy counterpart.
Is  tf version  0.11.0rc0 a stable release?  Is tensorflow expected to run extremely slow inside a python for loop?
from math import *
import numpy as np
import sys
from multiprocessing import Pool
import tensorflow as tf

def Trajectory_Fun(tspan, a, b, session=None, server=None):
    if session==None:
        if server==None:
            sess = tf.Session()
        else:
            sess = tf.Session(server.target)
    else:
        sess = session
    B = np.zeros(np.size(tspan), dtype=np.float64)
    B[0] = b
    for i, t in enumerate(tspan):
        r = np.random.rand(1)
        if r>a:
            c = sess.run(tf.trace(tf.random_normal((4, 4), r, 1.0)))
        else:
            c = 0.0 # sess.run(tf.trace(tf.random_normal((4, 4), 0.0, 1.0)))
        B[i] = c
    if session==None:
        sess.close()
    return B

def main(argv):
   tspan = np.arange(0.0, 1000.0)
   a = 0.1
   b = 0.0
   B = Trajectory_Fun(tspan, a, b, None, None)
   print 'Done!'

if __name__ == "main":
    main(sys.argv[1:]) `

Could you cross-post on stackoverflow with tag "tensorflow"?
@aselle about numpy comparison.

@drpngx, I already posted on stackoverflow as well. Technically, this is not quite a numpy comparison. It is more about running tensorflow inside a python for loop. I must be missing something here.

Of a total elapsed time of 54s.

ncalls
tottime
percall
cumtime
percall
filename:lineno(function)

904
35.775
0.040
35.775
0.040
{_pywrap_tensorflow.TF_ExtendGraph}

904
6.605
0.007
6.605
0.007
{_pywrap_tensorflow.TF_Run}

378938/246954
1.420
0.000
3.013
0.000
python_message.py:481(init)

904
0.585
0.001
2.634
0.003
ops.py:2191(_as_graph_def)

239560/128368
0.507
0.000
1.808
0.000
python_message.py:1229(MergeFrom)

profile.txt

Thanks.  Now, if you replace
c = sess.run(tf.trace(tf.random_normal((4, 4), r, 1.0)))
with
c = np.sum(np.diag(np.random.normal(0.0, 1.0, (4, 4))))
in for loop of Trajectory_Fun
The entire program runs in about  1 second.

@annarev @mrry for potential additional insights.

As far as TensorFlow programs go, this is a pessimal case. The underlying assumption in TensorFlow is (approximately) that you'll build a graph once and then call sess.run() on (various parts of) it multiple times. The tax of calling TF_ExtendGraph is paid once on the first use, and subsequent uses are much cheaper. If you must use a loop within your TensorFlow graph, there are constructs like tf.while_loop() (and, similarly, tf.cond() for if-statements) that you can use.
You can make this program much faster by constructing the graph once and using (e.g.) a placeholder to feed in the value that changes in each iteration. For example, the following should do the trick:
def Trajectory_Fun(tspan, a, b, session=None, server=None):
    if session==None:
        if server==None:
            sess = tf.Session()
        else:
            sess = tf.Session(server.target)
    else:
        sess = session
    B = np.zeros(np.size(tspan), dtype=np.float64)
    B[0] = b

    # Define the TensorFlow graph once and reuse it in each iteration of the for loop.
    r_placeholder = tf.placeholder(tf.float32, shape=[])
    out_t = tf.trace(tf.random_normal((4, 4), r_placeholder, 1.0))

    for i, t in enumerate(tspan):
        r = np.random.rand(1)
        if r>a:
            c = sess.run(out_t, feed_dict={r_placeholder: r})
        else:
            c = 0.0
        B[i] = c
    if session==None:
        sess.close()
    return B

You could potentially make this even more efficient by using a TF loop and making fewer calls to sess.run(), but the principle is the same.

Many thanks for clarifying. It certainly cleared up some of my confusions.


Write a TRPL chapter on inline assembly

 Issue by kmcallister
Monday Jan 12, 2015 at 20:28 GMT
For earlier discussion, see https://github.com/rust-lang/rust/issues/21039
This issue was labelled with: A-docs, A-inline-assembly in the Rust repository

Take what little we have on asm!() from "Unsafe Code", and greatly expand it.

Now part of the unstable book: https://doc.rust-lang.org/nightly/unstable-book/language-features/asm.html


Move cursor shape loading after module loading

The engine crashes at startup, because the Texture needs the image to load a lossy image. That method depends on webp module, which is loaded later. I just moved the cursor loading down, after register module types.
fixes #46685

Thanks!

Cherry-picked for 3.2.4.


Updating repo for transfer to the .NET Foundation

This updates the repo so it can finish transfer to the .NET Foundation: https://github.com/dotnet-foundation/projects/issues/184
In particular, now that the project agreement has been signed, this:

Updates the copyright to be .NET Foundation and Contributors rather than Microsoft and Contributors
Updates the license from NCSA to MIT

All prior contributions to LLVMSharp were made under the Microsoft CLA
NCSA was originally chosen to align with LLVM
LLVM have themselves since changed to Apache 2.0 License with LLVM exceptions
The libLLVM nuget package is remaining Apache 2.0 License with LLVM exceptions since that is a binary produced by LLVM themselves

Updates the code of conduct to be the .NET Foundation Code of Conduct rather than the Microsoft Open Source Code of Conduct

URLs and CI are still microsoft/ClangSharp and will need to be updated after the repo moves out of the microsoft GitHub organization.

CC. @ChrisSfanos


farming with NFT Plot -found block and only get .25 , where does the 1.75 goes? [BUG]

Same issue, I have won many blocks, but all of them are .25 coins.

The NFT is created on the Chia blockchain, therefore all other forks do not have the NFT address to send 1.75 coins to.

Hello, same problem for when will we have the solution

Use Flora's fd_cli to retrieve your missing 1.75, I gained back about 20 tSit using it.

Upgrade to 0.2.1 and you can claim your missing tSIT

Upgrade to 0.2.1 and you can claim your missing tSIT

how? I tried using the curl command from install-from-source but it only installed v0.2.0, and now my timelord wont run.


add io::prelude

I was working on some async io code earlier, and ended up writing:
    use async_std::io::{BufReader, BufRead, Read};

It took a bit of trial and error to get the right traits in scope, and I kind of wished I had io::prelude available so it would just work. Which is why this patch adds io::prelude. I guess I'm kind of circling back on the idea of only having a single prelude; but overall I think this feels more intuitive. Thanks!
Screenshots

bors r+


Error when trying upgradeable contracts

Is there any plan to create upgradeable versions of Axelar contracts?
I'm creating an upgradeable token contract and want it to be Axelar-enabled, so e.g. would inherit IAxelarExecutable. All inherited contracts that have a constructor need to be modified to an upgradeable version (e.g. change constructor to initializer).
It would then allow us to upgrade the token contract in future in case we ever need or want to (e.g. if vulnerabilities are found), whilst maintaining the publicly known address of the token, so upgrades would be seamless to token holders.
See: https://docs.openzeppelin.com/learn/upgrading-smart-contracts

@tab00 you can find them here https://github.com/axelarnetwork/axelar-utils-solidity

@tab00 both OpenZeppelin UUPS and our implementation are following the same EIP-1967 standard. The key difference is we are using the deterministic storage slots to avoid the problem of storage slots collision described here
https://docs.openzeppelin.com/upgrades-plugins/1.x/writing-upgradeable#modifying-your-contracts
In UUPS case you can just do
import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>
contract YourContract is Initializable, AxelarExecutable {
    // UUPS things

    // Token logic

    function gateway() public view override returns (IAxelarGateway gateway_) {
        gateway_ = gateway_from_storage;
    };

    function _execute(
        string memory sourceChain,
        string memory sourceAddress,
        bytes calldata payload
    ) internal override {
      // burn
    }

    function _executeWithToken(
        string memory sourceChain,
        string memory sourceAddress,
        bytes calldata payload,
        string memory tokenSymbol,
        uint256 amount
    ) internal override {}
}

Thanks @re1ro for the sample code.
Should the contract inherit UUPSUpgradeable as is done in OpenZeppelin's examples, in order for it to be compliant with UUPS (eip-1822)?
Also, I notice that your code imports from axelar-utils-solidity whereas ERC20CrossChain.sol, which I've been trying to follow, imports from axelar-cgp-solidity:
import { IAxelarGateway } from<EMAIL_ADDRESS>import { IAxelarExecutable } from<EMAIL_ADDRESS>
Which example should we follow?

@tab00  You are right, use UUPSUpgradeable.
We are moving the Executables into axelar-utils-solidity and that version is friendlier with Upgradable contracts.
I guess it would be more correct to import IAxelarGateway from axelar-cgp-solidity 😄

I've made a fork of axelar-local-gmp-examples containing a branch with my attempt to use UUPS upgradeable contracts:
https://github.com/tab00/axelar-local-gmp-examples/tree/experiment-upgradeable
Changes are minimal, with the main ones being:
Setting a constant private key instead of random
Adding scripts/deployUpgradeable.js that uses OpenZeppelin's deployProxy.
Added an additional argument to node scripts/test examples/cross-chain-token local for address of upgradeable token contract that was deployed
To run the non-upgradeable version:
node scripts/createLocal

node scripts/deploy examples/cross-chain-token local
node scripts/test examples/cross-chain-token local "Ethereum" "Fantom" 1

To run the upgardeable contracts test:
delete .openzeppelin directory if it exists

node scripts/createLocal

npx hardhat run --network moonbeam scripts/deployUpgradeable.js
npx hardhat run --network avalanche scripts/deployUpgradeable.js
npx hardhat run --network fantom scripts/deployUpgradeable.js
npx hardhat run --network ethereum scripts/deployUpgradeable.js
npx hardhat run --network polygon scripts/deployUpgradeable.js

node scripts/test examples/cross-chain-token local "Ethereum" "Fantom" 1 [token contract address]

The non-upgradeable version works successfully as before with output:
--- Initially ---
Balance at Ethereum is 0
Balance at Fantom is 0
--- After getting some token on the source chain ---
Balance at Ethereum is 1
Balance at Fantom is 0
--- After ---
Balance at Ethereum is 0
Balance at Fantom is 1

My upgradeable contracts version fails before the transfer is made:
--- Initially ---
Balance at Ethereum is 0
Balance at Fantom is 0
--- After getting some token on the source chain ---
Balance at Ethereum is 1
Balance at Fantom is 0
C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\logger\lib\index.js:233
        var error = new Error(message);
                    ^

<ref *1> Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"id\":66,\"jsonrpc\":\"2.0\",\"error\":{\"message\":\"VM Exception while processing transaction: revert\",\"stack\":\"RuntimeError: VM Exception while processing transaction: revert\\n    at exactimate (C:\\\\Users\\\\-\\\\Documents\\\\Projects\\\\axelar-local-gmp-examples\\\\node_modules\\\\ganache\\\\dist\\\\node\\\\1.js:2:113332)\",\"code\":-32000,\"name\":\"RuntimeError\",\"data\":{\"hash\":null,\"programCounter\":186,\"result\":\"0x\",\"reason\":null,\"message\":\"revert\"}}}","error":{"code":-32000,"data":{"hash":null,"programCounter":186,"result":"0x","reason":null,"message":"revert"}},"requestBody":"{\"method\":\"eth_estimateGas\",\"params\":[{\"type\":\"0x2\",\"maxFeePerGas\":\"0x6ba6c57e\",\"maxPriorityFeePerGas\":\"0x59682f00\",\"value\":\"0x493e0\",\"from\":\"0x3e0c282ad53ceddcebf4baa1064b8fa6d1620886\",\"to\":\"0x60b5810bf62c08a20785221fff1df721b6d28dd0\",\"data\":\"0x55d55dc100000000000000000000000000000000000000000000000000000000000000600000000000000000000000003e0c282ad53ceddcebf4baa1064b8fa6d16208860000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000646616e746f6d0000000000000000000000000000000000000000000000000000\"}],\"id\":66,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"http://localhost:8500/3"}, tx={"data":"0x55d55dc100000000000000000000000000000000000000000000000000000000000000600000000000000000000000003e0c282ad53ceddcebf4baa1064b8fa6d16208860000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000646616e746f6d0000000000000000000000000000000000000000000000000000","to":{},"from":"0x3E0C282ad53ceddCEbF4BAa1064b8FA6D1620886","value":{"type":"BigNumber","hex":"0x0493e0"},"type":2,"maxFeePerGas":{"type":"BigNumber","hex":"0x6ba6c57e"},"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x59682f00"},"nonce":{},"gasLimit":{},"chainId":{}}, code=UNPREDICTABLE_GAS_LIMIT, version=abstract-signer/5.6.2)
    at Logger.makeError (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\logger\lib\index.js:233:21)
    at Logger.throwError (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\logger\lib\index.js:242:20)
    at C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\abstract-signer\lib\index.js:365:47
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 8) {
  reason: 'cannot estimate gas; transaction may fail or may require manual gas limit',
  code: 'UNPREDICTABLE_GAS_LIMIT',
  error: Error: processing response error (body="{\"id\":66,\"jsonrpc\":\"2.0\",\"error\":{\"message\":\"VM Exception while processing transaction: revert\",\"stack\":\"RuntimeError: VM Exception while processing transaction: revert\\n    at exactimate (C:\\\\Users\\\\-\\\\Documents\\\\Projects\\\\axelar-local-gmp-examples\\\\node_modules\\\\ganache\\\\dist\\\\node\\\\1.js:2:113332)\",\"code\":-32000,\"name\":\"RuntimeError\",\"data\":{\"hash\":null,\"programCounter\":186,\"result\":\"0x\",\"reason\":null,\"message\":\"revert\"}}}", error={"code":-32000,"data":{"hash":null,"programCounter":186,"result":"0x","reason":null,"message":"revert"}}, requestBody="{\"method\":\"eth_estimateGas\",\"params\":[{\"type\":\"0x2\",\"maxFeePerGas\":\"0x6ba6c57e\",\"maxPriorityFeePerGas\":\"0x59682f00\",\"value\":\"0x493e0\",\"from\":\"0x3e0c282ad53ceddcebf4baa1064b8fa6d1620886\",\"to\":\"0x60b5810bf62c08a20785221fff1df721b6d28dd0\",\"data\":\"0x55d55dc100000000000000000000000000000000000000000000000000000000000000600000000000000000000000003e0c282ad53ceddcebf4baa1064b8fa6d16208860000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000646616e746f6d0000000000000000000000000000000000000000000000000000\"}],\"id\":66,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="http://localhost:8500/3", code=SERVER_ERROR, version=web/5.6.1)
      at Logger.makeError (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\logger\lib\index.js:233:21)
      at Logger.throwError (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\logger\lib\index.js:242:20)
      at C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:305:32
      at step (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:33:23)
      at Object.next (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:14:53)
      at fulfilled (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:5:58)
      at processTicksAndRejections (node:internal/process/task_queues:96:5) {
    reason: 'processing response error',
    code: 'SERVER_ERROR',
    body: '{"id":66,"jsonrpc":"2.0","error":{"message":"VM Exception while processing transaction: revert","stack":"RuntimeError: VM Exception while processing transaction: revert\\n    at exactimate (C:\\\\Users\\\\-\\\\Documents\\\\Projects\\\\axelar-local-gmp-examples\\\\node_modules\\\\ganache\\\\dist\\\\node\\\\1.js:2:113332)","code":-32000,"name":"RuntimeError","data":{"hash":null,"programCounter":186,"result":"0x","reason":null,"message":"revert"}}}',
    error: Error: VM Exception while processing transaction: revert
        at getResult (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\providers\lib\json-rpc-provider.js:191:21)
        at processJsonFunc (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:348:22)
        at C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:280:46
        at step (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:33:23)
        at Object.next (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:14:53)
        at fulfilled (C:\Users\-\Documents\Projects\axelar-local-gmp-examples\node_modules\@ethersproject\web\lib\index.js:5:58)
        at processTicksAndRejections (node:internal/process/task_queues:96:5) {
      code: -32000,
      data: {
        hash: null,
        programCounter: 186,
        result: '0x',
        reason: null,
        message: 'revert'
      }
    },
    requestBody: '{"method":"eth_estimateGas","params":[{"type":"0x2","maxFeePerGas":"0x6ba6c57e","maxPriorityFeePerGas":"0x59682f00","value":"0x493e0","from":"0x3e0c282ad53ceddcebf4baa1064b8fa6d1620886","to":"0x60b5810bf62c08a20785221fff1df721b6d28dd0","data":"0x55d55dc100000000000000000000000000000000000000000000000000000000000000600000000000000000000000003e0c282ad53ceddcebf4baa1064b8fa6d16208860000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000646616e746f6d0000000000000000000000000000000000000000000000000000"}],"id":66,"jsonrpc":"2.0"}',
    requestMethod: 'POST',
    url: 'http://localhost:8500/3'
  },
  tx: {
    data: '0x55d55dc100000000000000000000000000000000000000000000000000000000000000600000000000000000000000003e0c282ad53ceddcebf4baa1064b8fa6d16208860000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000646616e746f6d0000000000000000000000000000000000000000000000000000',
    to: Promise { '0x60B5810bf62c08A20785221FfF1DF721b6D28dd0' },
    from: '0x3E0C282ad53ceddCEbF4BAa1064b8FA6D1620886',
    value: BigNumber { _hex: '0x0493e0', _isBigNumber: true },
    type: 2,
    maxFeePerGas: BigNumber { _hex: '0x6ba6c57e', _isBigNumber: true },
    maxPriorityFeePerGas: BigNumber { _hex: '0x59682f00', _isBigNumber: true },
    nonce: Promise { 3 },
    gasLimit: Promise { <rejected> [Circular *1] },
    chainId: Promise { 2503 }
  }
}

What could be the problem?

@Foivos could you please take a look and see where is the issue?

How's progress, guys? What does result: '0x' mean?

@Foivos could you please take a look and see where is the issue?

Is @Foivos looking into the problem?


strange notation for MVN covariance matrix

In Section 3.2.1 formula (3.16) you have the following notation:

Only $\sigma_1^2$ and $\sigma_2^2$ are always positive $\sigma_{12}^2$ can be negative.
It is strange because it implies that $\sigma_{12}^2$ is positive while in reality if the correlation $\rho$ is negative then $\sigma_{12}^2$ is also negative implying an imaginary value for $\sigma_{12}$.
So the notation seems unhelpful.

yes, good point, fixed


XGboost and sanity check

Include XGBoost class
Notebook with the XGBoost regressor
Sanity check to parallelize the tunning process

I am reading 10000 lines of the data because I have a memory error. When I am trying to tune the XGboostPredictor my kernel crashes. I reduced the parameter grid . I even left it empty but still my kernel crashes. Can someone else please check it in his/hers machine?


config: add kata-qemu-sev runtimeclass

Adding runtimeclass for sev.
Depends on sev kata PRs:

Packaging for initrd: https://github.com/kata-containers/kata-containers/pull/5120
Packaging for OVMF: https://github.com/kata-containers/kata-containers/pull/5026
Packaging for SEV-capable kernel + kernel module https://github.com/kata-containers/kata-containers/pull/5038
Add agent config to rootfs: https://github.com/kata-containers/kata-containers/pull/5024
Use depmod in rootfs builder on kernel module(s): https://github.com/kata-containers/kata-containers/pull/5127
Kata-deploy add kata-qemu-sev shim/runtimeclas https://github.com/kata-containers/kata-containers/pull/5130

Integration testing of all of the SEV components has been successful. Made a cc bundle with all of the PRs added to base CCv0, converted to a docker container via the kata-deploy-cc docker script, and deployed to quay. Was able to run a pod after being deployed with the operator.
@fidencio @fitzthum @wainersm
Signed-off-by: Alex Carter<EMAIL_ADDRESS>

@Alex-Carter01, I'd hold this one and when updating the payload to a payload that does have support for the SEV work, then we add this one together with that.
WDYT?

@Alex-Carter01, I'd hold this one and when updating the payload to a payload that does have support for the SEV work, then we add this one together with that.
WDYT?

Sound as a good plan to me.

@Alex-Carter01, I'd hold this one and when updating the payload to a payload that does have support for the SEV work, then we add this one together with that.
WDYT?

Sure, makes sense, will wait until kata changes are merged and bundle updated.

@Alex-Carter01 looks like all the related PRs are merged. Can you please update this PR with the new payload image in addition to the SEV runtimeclasses ?

Alright, I updated the image commit to Steve's from yesterday that includes all of the sev PRs.

/test-kata-qemu-tdx

/test

Just published on Jenkins a job to test on SEV: http://jenkins.katacontainers.io/job/confidential-containers-operator-main-ubuntu-20.04_sev-x86_64-containerd_kata-qemu-sev-PR/
Let me run for the first time... fingers crossed:
/test-kata-qemu-sev

oopppsss I missed one change on jenkins side...

ok, second tentative...
/test-kata-qemu-sev

/test-kata-qemu-sev

/test-kata-qemu-sev

Let me try now ;)
/test-kata-qemu-sev

/test-kata-qemu-sev

/test-kata-qemu-sev

ok, almost there... the first executions failed because I realize we got two SEV machines on the pool, which is good, but the one being used by this job was a old one that we install a long time ago and it has kube-api-server running on it. I am not sure if that machine is actually assigned to another work. I am in touch with AMD team to figure that out.
Now I managed to run on the right machine, the new problem is that go is not found on PATH; I am looking on how to solve it.

/test-kata-qemu-sev

Finally passing! \o/

@Alex-Carter01 can you please rebase your PR.

Rebased to now just add the kata-qemu-sev runtimeclass name with the now current linebreak. No longer needs to update the runtime payload since that is already steve's 77176cd7

/test-kata-qemu-sev

/test-kata-qemu

oh my, go not being found on PATH again... that's why the sev job failed

/test-kata-qemu-sev

Hopefully the sev job is fixed by explicitly using /bin/bash: https://github.com/kata-containers/ci/pull/496
/test-kata-qemu-sev


How to programmatically update the "value"?

Is there a way to update the "value" programmable?
For example
class _HomeElementState extends State<HomeElement> {
  double years = 20;

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        SpinBox(
          decoration: InputDecoration(labelText: "Years"),
          value: years,
          onChanged: (v) => setState(() => years = v),
        ),
        SpinBox(
          decoration: InputDecoration(labelText: "Born in"),
          max: DateTime.now().year.toDouble(),
          value: DateTime.now().year - years,
          onChanged: (v) => setState(() => years = DateTime.now().year - v),
        ),
        Text("Years: " + years.toString()),
        Text("Born in: " + (DateTime.now().year - years).toString())
      ],
    );
  }
}

Does it help to define keys for the SpinBoxes to help Flutter to keep track of the state correctly?
https://api.flutter.dev/flutter/foundation/Key-class.html

Does it help to define keys for the SpinBoxes to help Flutter to keep track of the state correctly?
https://api.flutter.dev/flutter/foundation/Key-class.html

Yes, it works, thank you

Yes, it works, thank you


the content of these buttons is not aligned in the middle

looks really distracting that they don't have equal left and right padding.

There is an existing tix for formating the Transaction section. https://github.com/AugurProject/augur/issues/1347
closing this one


issues mapping libpurple xmpp to matrix

Let's assume that I have added purple xmpp account with JID<EMAIL_ADDRESS>.
I have used
accounts map-existing xmpp<EMAIL_ADDRESS>
Thus it should be correctly mapped to my matrix account for future bridging.
When I receive a new XMPP message on said account, the bridge prints this into the log:
(18:51:37) jabber: Recv (ssl)(228): <message xml:lang='en'<EMAIL_ADDRESS><EMAIL_ADDRESS>type='chat' id='purpledb6c9628'><composing xmlns='http://jabber.org/protocol/chatstates'/></message>
(18:51:39) jabber: Recv (ssl)(245): <message xml:lang='en'<EMAIL_ADDRESS><EMAIL_ADDRESS>type='chat' id='purpledb6c9629'><active xmlns='http://jabber.org/protocol/chatstates'/><body>error 1</body></message>
(18:51:39) prefs: purple_prefs_get_bool: Unknown pref /purple/logging/log_ims
(18:51:39) jabber: Recv (ssl)(225): <message xml:lang='en'<EMAIL_ADDRESS><EMAIL_ADDRESS>type='chat' id='purpledb6c962a'><active xmlns='http://jabber.org/protocol/chatstates'/></message>
Jan-2 18:51:39.575 ERROR Store Could not find an account for<EMAIL_ADDRESS>Either the accountis not assigned to a matrix user, or we have hit a bug.

I can partially workaround this by adding slash to the end of my JID inside the file user-store.db manually however I'm afraid it might break something else.

This needs working around so that the names are consistent


Create a reference architecture to show how to decode Amazon Ion data and optionally store it in the thing shadow

"Amazon Ion is a richly-typed, self-describing, hierarchical data serialization format offering interchangeable binary and text representations". This lends itself to sending data to downstream services without having to find a secondary location to store schemas (as sometimes is done with protobufs).
A reference architecture that shows how to decode Amazon Ion data, translate it to JSON, republish it to another topic, and optionally extract data and store it in a thing shadow would be useful for multiple customers.
References:
Amazon Ion - http://amzn.github.io/ion-docs/

Thing shadow was not incorporated yet but the Amazon Ion example is complete


Geo Scanner chunkAnalyze() function does not include negative y in range

Descripe
Looking at the code for the Geo Scanner peripheral here: https://github.com/Seniorendi/AdvancedPeripherals/blob/a920c50f6b4a1f210ab27b951298168d70325fd0/src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/GeoScannerPeripheral.java
The chunkAnalyze() function checks between y values of 0 and 256. In Minecraft 1.18.1, y values go below 0. I think it would be best to include these negative values in this function as many important ores are located there.
Steps to reproduce
Look at line 111 of code here: https://github.com/Seniorendi/AdvancedPeripherals/blob/a920c50f6b4a1f210ab27b951298168d70325fd0/src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/GeoScannerPeripheral.java
Multiplayer?
Yes
Version
1.18.1-0.7.9r (Latest 1.18)
Minecraft, Forge and maybe other related mods versions
Forge 39.0.59 Minecraft 1.18.1
Screenshots or Videos
No response
Crashlog/log
No response

I see, thank you for the hint!
Here is a hint for you
You can mark and share lines when you click on them


Add MagicLink support through Passwordless module

Add Passwordless support for MagicLink. Adds two methods

create_session - generate a passwordless session for a user from their email
send_session - send an email to a user with a Magic Link confirmation URL

@marktran any idea why this is too complex and how to fix it? https://workos.semaphoreci.com/jobs/0fa8dea1-6231-4767-b19e-f1af61f801ae (https://github.com/workos-inc/workos-ruby/pull/55/files#diff-263cb07c6a852fd6a6a5e9053a0ce8ecR111)


feat: connection manager

Manage create new connections or update, remove or add.

implemented with pull request #717


Adding accident count by road segment name to infographic api

@DavidShemian note that there are conflicts. Please pull changes from dev and solve locally, and then push.

@ItamarLevin eslint test didn't pass - is it because @DavidShemian updated the code before your fix?

@DavidShemian please resolve the conflict


[Fix](inverted index) fix add nulls bug for inverted fulltext index

Proposed changes
fix a bug for inverted index writer add_nulls function
Problem summary
We found a problem with inverted index when parser=english, if there were nulls in columns when flushing inverted index for them, it can cause CLucene throwing an exception.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 36.04 seconds
load time: 496 seconds
storage size:<PHONE_NUMBER>1 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230118194501_clickbench_pr_83570.html


Homework 3

Drift Video: https://video.drift.com/v/abbiZNWMc5c0mRHEEuSkCEGmsx30xKj5WvNsZC7m9x0VM/
Description:
I've created 4 parts of packages which goes like ques1, ques2 ... . Each package contains a file which needs to modify compared to previous question. Otherwise I've used classes from the previous parts.


Automated whitelists

About the PR

This PR adds automatic whitelists based on conditions defined in a prototype.
Why / Balance

Resolves #19606.
Technical details

This PR adds a blacklist table to the DB and the coresponding commands for managing the blacklist.
I also added a new prototype PlayerConnectionWhitelist which is used to define whitelists. That prototype contains an Array of WhitelistCondition conditions. Every WhitelistCondition contains 2 DataFields and a Function to check if the player is allowed to connect. The 2 DataFields are the following:
BreakIfConditionSuccess: If the condition passes, the next conditions will not be checked and the player will be able to connect.
BreakIfConditionFail: If the condition fails, the player will be denied and the next conditions will not be checked.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

This removes some CVars related for whitelists, the legacy whitelists are used by default when whitelist.enabled is set to true. Use whitelist.prototypeList to define which whitelists should be used. Currently implemented whitelists are: mrpWhitelist and basicWhitelist.

@Simyon264 you working on this famalams.

Yes. I am still working on it.

FYI, I am still working on it.

A long term goal would be to allow arbitrary lists to be made so that servers can create as many manual lists as they want for whatever purpose they have, potentially even using those lists for other things unrelated to connections. Having conditions work as being list membership now will prevent having to make changes in the future that either break YAML configs or require workarounds.

Something like this? @Chief-Engineer
  - !type:ConditionMembership
    list: whitelist # Which list the player needs to be a part of
    requiredMembershipTime: 120 # Must be a member for 2 hours
    action: Allow
  - !type:ConditionAlwaysMatch
    action: Deny # Not a member, deny connection


Unexpected behavior when *.in exists but *.out does not

I just started using this library for testing a cli that is used for manipulating files. I absolutely love how painless it's going to make testing, but I did notice a few surprising behaviors that I thought I'd report.

If a *.in directory exists and a *.out directory does not exist, then the tests will write output to *.in.
When dump is used under the same conditions as point 1, the output is not written to the dump directory and is still written to *.in.

I'm not sure if these behaviors are intentional or not, but behavior 1 is problematic because it destroys the test fixture files that are in the input directory, making the test non-repeatable. Behavior 2 also contaminates the test, but is additionally surprising because I ran the command with the intention of copying the output into *.out but it was never generated. The only way to get the content to generate is to have an existing, empty *.out directory, run dump, and then copy the dump output.
Finally, tangentially related, I understand that overwrite only deals with writing stdout and stderr, but it would nice if there was a similar command for syncing the contents of *.out without having to do a dump-copy.
Thanks for making this great tool!

There is a .toml setting
fs.snapshot = <bool>

This controls whether we create a temp directory or whether things can run in the *.in directory.  This setting defaults to true only when there is an *.out/.  You can manually set it yourself.
The idea behind this choice is if you are just doing read-only filesystem operations, you don't pay for the cost of a temp directory while if you are modifying the file system, you are most likely going to be wanting to verify the results of it.

Finally, tangentially related, I understand that overwrite only deals with writing stdout and stderr, but it would nice if there was a similar command for syncing the contents of *.out without having to do a dump-copy.

overwrite will overwrite existing files in *.out/.  trycmd makes the assumptions that

You are unlikely to be verifying every changed file (e.g. in my static-site generator when testing RSS, let's not test all of the other files)
TRYCMD=overwrite writing out files that the user isn't testing will lead to them accidentally being tested locally just by doing subsequent runs or tested by everyone by the user running git add ..  I've found users frequently will add untracked files to a repo, assuming that they are meant to be tracked.

Yes, it does mean that we are hurting the "initialize *.out/ case.  I either

Dump and copy it over
touch files I want
copy an existing test (I also have a rename.sh).

Thanks for the response!
Small correction to a typo in your original answer in case anyone reads this in the future, it's fs.sandbox rather than fs.snapshot.
Setting it does indeed work as described. Personally, I think I would want it to default to sandboxed and require an override to not run it in a sandbox, as I find that behavior less surprising and less destructive, but maybe the majority of test cases are read-only operations.


add successful status code to status.yml

This is for some of the applications that don't return a response body but the client still expecting a JSON body. You can use these status codes to generate a status body in response.

 Add successful status into status.yml


Add header

Description
Create the "Header" component.
Include in it the community logo & Dark mode icon, just like the figma design (copy from there).
Relevant files:

components/Header/Header.tsx

Screenshots
No response
Additional information

Make sure to render the nav bar invisible (we are planing to use the home page as a landing page for the time being, so an invisible nav bar is fine for now).
Please be accurate to the figma design.

May I work on that?

I'd love to be paired with whomever will work on it

I somehow missed these comments, apologies.
replied to you @rotembarsela on your recent PR.


Refactor e2e test setup

We recently made a change to ensure we clean up resources properly after
we perform e2e tests. Specifically to avoid race conditions that leaves
the compliance operator resources in a bricked state, even when the
tests pass.
This commit uses a similar pattern for test setup by leveraging the
setUp method before calling m.Run() to make sure the cluster is
ready before we run the actual tests.
One advantage is that we're simplifying the logic to a single layer
before the tests run.
Further changes will make it easier to decouple the framework, context,
and e2eutils into a single set of utilities we can share across
repositories if needed.

Thanks for making this patch for our e2e tests, this looks much better!

/test e2e-aws-parallel

Adding additional labels since this is an internal change to make our tests simpler.

Rebased to pick up a fix for the https://github.com/ComplianceAsCode/compliance-operator/pull/277 - which also caused the merge conflict.

/lgtm

/lgtm


ListenerProxy

Setup something smart. So one can easily create listeners without to much plumber code of maintaining a reference to all components.

Questions

Recursive
ErrorHandling
InParallel

Should be able to integrate with .Events at some point.
For example, saying that any listener should be delivered one at time
Maybe we need an actor annotation
@Actor / @mailbox
which indicates that we have a single thread working here.
And then maybe some annotation where you can indicate.
A method as not being single threaded
so @Actor = All subscribtions + Listener methods is single threaded

Idea is to add ContainerListener for 0.9 using a manual process.
And then make something generic for 0.10 that everyone can use.


Add windows support for OpenMAMA-zmq

Build system will still be scons. Dependencies will be:

Libevent
OpenMAMA
ZeroMQ

First impressions is that this will be fairly awkward to do right. I did get it compiled already but I'm not happy with the build paths and flags required.

After a little fighting I have this working on windows now on the issue_6_windows_support branch. Only exception is that it doesn't quite name the dlls in the way which OpenMAMA expects them so they currently need to be renamed to work.

commit 690a59588110060e1fc72008cc3e72527ce18b20
Author: Frank Quinn<EMAIL_ADDRESS>Date:   Sat Sep 19 19:55:19 2015 +0100
Added build support for windows and travis

Added support for travis-ci and windows build support for the
scons infrastructure for both dynamic and dynamic debug builds.

commit 005683f76ea7d25d0e3058c43a556e40e61d9cf4
Author: Frank Quinn<EMAIL_ADDRESS>Date:   Fri Sep 18 21:04:21 2015 +0100
Initial extension of scons script to include windows

There is a good chance that this will now be broken on linux -
hence the branch.


Connect ueberzug's stdout to ctpv's stdout

Hello, I've recently started working in a replacement for Ueberzug after its demise. ueberzugpp
It works OOB with ctpv and other software that previously used og ueberzug. But one feature that I added that wasn't in OG Ueberzug doesn't work, that being sixel output.
In ranger, sixel output works with some changes, particularly, connecting ueberzug's stdout to python's.
        self.process = Popen(['ueberzug', 'layer', '--silent'],
                             stderr=PIPE, stdout=sys.stdout.buffer,
                             cwd=self.working_dir,  universal_newlines=True)

(sample of sixel output working on wezterm/sixel)

sadly, the same can't be said for lf, as no output is being generated.

it works on alacritty/x11

One way to fix this is to connect ctpv's (or is this an lf issue?) stdout to ueberzugpp's. I tried to do it on my own but you understand this codebase more than I do.
I'd be grateful if you could make this changes as they would keep compatibility with OG ueberzug and also add support for ueberzugpp.

Thanks for opening the issue!
Ueberzug worked by running a background process that draws stuff on top of windows. And your program is a drop-in replacement (meaning it apparantly has the same binary name). So I'm not sure how it's possible determine that ctpv is about to run your version of ueberzug that has sixel support, which means that now it must run your program directly instead of sending a message to a background ueberzug instance.
Maybe a solution would be to install ueberzugpp symlink that points to the binary? In this case ctpv would just check if the ueberzugpp symlink exists and determine that the user has your version of the program.
By the way, we already can view files with sixel via chafa. But adding support for your program as well could be useful too.

ueberzugpp works the same way as ueberzug, you spawn it and send json commands. I see no need no differentiate them unless you plan to replace ueberzug with ueberzugpp. Linking stdout to regular ueberzug and ueberzugpp would work the same, you'd just have to spawn the binary with the --silent flag.

By the way, we already can view files with sixel via chafa.

yeah, chafa's great. Too bad it doesn't implement X11 displaying.

At the moment, ctpv runs a "server" program in backgroud to handle ueberzug. So, when lf requests a new preview, it calls ctpv, which sends a command to a FIFO file. The ctpv server that is running in background receives it and redirects it to Ueberzug.
I'm not sure how to redirect Ueberzug output back to ctpv in this situation. Use a socket instead of a FIFO file? Seems complicated to do right.

how are you handling chafa? Chafa also needs it's stdout redirected for it to correctly display the image.

 But ueberzug is a little different because it needs to be kept running in the background for the preview to show up. It complicates things a lot. As I explained in the previous reply, I need to run a seperate "server" ctpv background process that handles ueberzug and sends data to it. By the way, this is why you need this line in your lf config when you setup ctpv:
&ctpv -s $id

It starts this server process.
Here I'm not talking about the old ueberzug and how I made it work with ctpv. Maybe yours is somehow different?

I see, that is required for the OG ueberzug setup in which you have to send commands through stdin. Ueberzugpp has another way to receive commands though, that being through a unix socket. That maybe could simplify how you handle ueberzug (?. Just spawn it, send commands through the socket when required and send SIGTERM at the end.
The socket is located in /tmp and is named /tmp/ueberzugpp-${PID}.socket PID being ueberzugpp's socket.
That'd mean supporting my version altogether though. I'd say it is worth it as chafa's sixel implementation has lower quality compared to libsixel's. I also plan to add chafa support in cases in which nothing can be used, like a wayland terminal with no sixel or kitty, or the tty.


Contributing

Hey,
What about having a contributing guide. So that before sending PR they have everything tested and ready.
I can submit a PR if you want it.

No need of adding any contributing guide.
Most of the people are already familiar with the contributing process, moreover if someone sends any pull request, it' will be automatically tested via .travis.yml which will inform the developer whether code has any further issues or not :)

I believe that there may be people who are starting and often do not know how to contribute to an open-source project. I myself am beginning and always try some documentation repositories before contributing.
It may be good :)

@cauealves :+1:

#10


Refactor the contributing guide

Cut some of the fluff.
Get branching strategy up near the top.
Make plea for more public adopters.  I know you're out there.

Codecov Report

Merging #945 into master will decrease coverage by -3.96%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #945      +/-   ##
==========================================
- Coverage    68.9%   64.95%   -3.96%
==========================================
  Files         243      243
  Lines        5461     5806     +345
  Branches      596      624      +28
==========================================
+ Hits         3763     3771       +8
- Misses       1698     2035     +337

Impacted Files
Coverage Δ

...la/org/http4s/client/blaze/BlazeClientConfig.scala
95.45% <ø> (+2.12%)
:white_check_mark:

core/src/main/scala/org/http4s/HttpVersion.scala
100% <ø> (+6.25%)
:white_check_mark:

Continue to review full report at Codecov.

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

I agree with @reactormonk.  We had some good content here that shouldn't be lost.  Maybe we could slim this down and move a fuller developers' guide to the site.


How to start jackd from the python module?

Creating an instance of jack.Client will spawn an instance of jackd server, if it is not already running.
Is there a way to specify the options to the spawned jackd server from within this python package?

No, the only option is whether to start it automatically or not. This can be controlled with no_start_server.
But JACK itself has some configuration files which you can use to control those options.
I don't know exactly what files those are, but if you for example use qjackctl to specify the JACK settings, those will also be used if you start jackd from this Python module.


fix: updated time should only change if note content changes

Tired of merge conflicts with syncing? Me too :)

Your right. Will remove it
On Tue, Jun 22, 2021 at 9:30 PM jonathanyeung @.***>
wrote:

@.**** approved this pull request.
In packages/common-server/src/filesv2.ts
https://github.com/dendronhq/dendron/pull/854#discussion_r656748716:

   return { note, matchHash, noteHash: sig };

 }

}
note = string2Note({ content, fname, vault });

note.contentHash = sig;
return { note, matchHash, noteHash: sig };

since note.contentHash now contains the hash, should we remove the
redundant noteHash return value?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dendronhq/dendron/pull/854#pullrequestreview-690199472,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADD52KBAQB5Y2K655CNHS3TUFPOTANCNFSM47EHB4MA
.


remove the now-dead infra-networking from setup.sh

to fix makefile-style deployments

I had a branch for this, but thought I'd keep it out and do one git rm at the end. But if it's breaking new things then fine.


Allow freesasa_structure_free to release CIF doc via function pointer.

Hi, so now I've landed something I believe in. I realized you can pass a release function as a function pointer to the freesasa_structure which can be called when freeing the structure. This means the CIF doc will only be kept around as long as the structure is (unless you send a null function pointer, which allows you to opt out of that behavior). Unless you have any objections I think this is a keeper.

Hi again. If you don't have any further comments I am tempted to merge this soon. And potentially leave idempotency as a separate issue.


Pv2 3136 send ilr reprocessing message

Merging without review as https://github.com/SkillsFundingAgency/das-payments-v2-testtools/pull/7 was accidentally merged into the PV2-3136 feature branch instead of main


utoronto Provide consistent resources for exams

See: #2316

Merging as resorce bump. Per docs

@pnasrat, I think this one contains files to be removed, can you handle that in your next PR, maybe? Thanks!

@damianavila looks like @yuvipanda did
@consideRatio pointed out the patch remnants on slack and was planning to revert after the exam but guess @yuvipanda got to first
https://github.com/2i2c-org/infrastructure/commit/4a909644d26d41c2ad8dde079f7b42e548aaedcb


Update R vignettes to reflect product name Census

Update the following vignettes in cell-census/api/r/CellCensus/vignettes/
Any references to "Cell Census" should be modified accordingly to the new feature name "Census":

modify imports

Non-code redaction

CZ CELLxGENE Discover Cell Census --> CZ CELLxGENE Discover Census
Cell Census --> Census

All other code related if and when it appears:

CellCensus --> cellxgene.census (R package)
cell_census --> cellxgene_census (Python package)
cell-census --> cellxgene-census (Python package)

Audit done, it is completed.


TrAnimeIzle

Source name
TrAnimeIzle
Source link
https://www.tranimeizle.co/
Language
Turkish
Other details
https://www.tranimeizle.co/
Very good
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a title with source name.
[X] I have checked that the extension does not already exist on the website extensions list or the app.
[X] I have checked that the extension does not already exist by searching the GitHub repository and verified it does not appear in the code base.
[X] I will fill out all of the requested information in this form.

sağolasın knk bnde istekde bulundum ama hala eklenmedi 10 günden fazla olmuştur


Support environments without TTY

When running on GitHub Actions, I get:
$ kraft pkg update
open /dev/tty: no such device or address

This also makes it impossible to run in Docker, be it in a Dockerfile or interactively, without simulating TTY.

This kinda works now, but not completely.
For example, docker build still fails with kraft commands, but wrapping like this works:
true | (setsid kraft pkg update) 2>&1 | cat

The problem probably stems from bad auto-detection of the environment.

I have a fix for KraftKit for this, which relies on:
https://github.com/charmbracelet/bubbletea/pull/643

They merged and we bumped it, time to close it


Request: Choosing different output formats

wttr.in provides lots of different output formats like weather condition textual name, precipitation and pressure. It would be amazing if we could chose what information to display.
Example: curl -s 'wttr.in/{London}?format=%l+%c+%C+%t+%w+%p+%P\n'
This would print: ☁   Overcast +2°C ↙0km/h 0.0mm 1034hPa

How about outputting American metrics: Fahrenheit and mph?
I have:
not found: ☀   🌡+12°C 🌬↙4km/h
I'd love 24F and 2.7mph or 2.7 m/h
Thanks!

I'd love to see an update with these options as well.


Consider that pugx/sentry-sdk is abandoned

What actually happened. Maybe a screenshot/recording? Maybe some logs?
pugx/sentry-sdk is abandonned https://packagist.org/packages/pugx/sentry-sdk.
Repository is archived https://github.com/PUGX/sentry-sdk.
README is not updated https://github.com/getsentry/sentry-symfony/blob/master/README.md#optional-use-custom-http-factorytransport
What is the package that I have to use ?
Tks.

I'm closing this because I think the question has been given an answer.


Downloading only blank pages in the pdf

When I'm trying to generate pdf in my react and nextjs project, it only downloads empty pages. What should I do to make it work?
Below is my code
import React from "react";

const PdfPage = () => {

	const onCreatePDF = async () => {
		if (process.browser || window !== undefined) {
			const html2pdf = (await import("html2pdf.js")).default;
			var pdfFileName = 'file.pdf';
			var element = document.getElementById('element-to-print');
			const options = {
				filename: pdfFileName,
				margin: 1,
				image: {
					type: 'jpeg',
					quality: 0.98
				},
				html2canvas: {
					scale: 2
				},
				jsPDF: {
					unit: 'in',
					format: 'letter',
					orientation: 'portrait'
				}
			}
			console.log(element)
			html2pdf().set(options).from(element).save();
		}
	}

	return (

This is text

			<button onClick={() => onCreatePDF()} >button </button>

	)
}

export default PdfPage;

"html2pdf.js": "^0.9.2" is the html2pdf version

I was getting the same thing. I had to set useCORS: true in the html2canvas options.


python3Packages.pysiaalarm: 3.0.0 -> 3.0.1

Motivation for this change
Update to latest upstream release 3.0.1
Change log: https://github.com/eavanvalkenburg/pysiaalarm/releases/tag/v3.0.1

Related Home Assistant change: https://github.com/home-assistant/core/pull/56615
Target Home Assistant release: current (only dependency update, no code changes)

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 139352 at bb083e62 run on x86_64-linux 1

2 packages failed to build:

home-assistant
python39Packages.pysiaalarm

1 package built successfully:

python38Packages.pysiaalarm

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

Result of nixpkgs-review pr 139352 run on x86_64-linux 1

3 packages built:

home-assistant
python38Packages.pysiaalarm
python39Packages.pysiaalarm


Not working at all with 15.0.2

This is not working at all on the above version. It shows empty pane on the right side

Just an FYI for the record, I have no issues running it in 2016.2.4.

PhpStorm 2016.2.1, ubuntu 16.04: not working at all, just disappeared on one moment. Reinstall does not help.

Lol! I closed map minimized it, until it is completely disappeared, and I could not find the way, how to make it visible again. Sorry for comment above.

Is this issue fixed ?

It should be. Did you check the width isnt set to zero in Settings -> other -> Codeglance?


Alias config for @components @views

It would be easier for creating components as the next step

Is it possible to configure only @ for src instead of specific aliases for each dir?


Cash generation on player

cash generates on the player, making it impossible to gain any for that level.

Will be fixed with new tile generation check using flattened_data instead of used_slots.


Pagination: Is enabled, but I couldn't find any pagination page

After I run npm install and bundle install then bundle exec jekyll serve. I have not change any config file yet but I got this message:

Pagination: Is enabled, but I couldn't find any pagination page. Skipping pagination. Pages m
ust have 'pagination: enabled: true' in their front-matter for pagination to work.

I think this is just a warning from jekyll-paginate-v2. You likely don't have pagination enabled on any pages like I do. You can just disable all the pagination stuff in _config.yml if you're not using it.


Intuitive explanation of metrics

It would be good if you can provide a description of each metrics , what's is use and how it's calculated in an intuitive along with the README.

Hi, we have released our paper, you can refer to it: https://arxiv.org/pdf/2408.08067


AWS Step Functions Integration

Integrates Metaflow with AWS Step Functions.
Introduces a new command step-functions:

python my_flow.py step-functions create will compile and export the user-defined Metaflow flow into an AWS Step Functions state machine. This will allow users of Metaflow to move their flows into production seamlessly with AWS.

An additional flow level decorator, @schedule, allows users to optionally schedule the execution of their flows by integrating with AWS Event Bridge.
All current functionality of Metaflow - containerized job execution on top of AWS Batch through @batch, dependency management via @conda, retrying mechanisms through @retry, @catch and @timeout, parameters, branches, and for-eaches are now available within AWS Step Functions through this integration.
Additionally, introduces a notion of production token to ensure flow deployments to AWS Step Functions have proper safeguards against unintended production deployments

python my_flow.py step-functions trigger will trigger a deployed workflow on AWS Step Functions

Requirements:

METAFLOW_SFN_IAM_ROLE : IAM role that allows AWS Step Functions to interact with AWS Batch and AWS Dynamo DB
METAFLOW_EVENTS_SFN_ACCESS_IAM_ROLE : IAM role that allows AWS Event Bridge to send notifications to AWS Step Functions
METAFLOW_SFN_DYNAMO_DB_TABLE : AWS Dynamo DB Table which allows AWS Step Functions to keep track of the necessary state for foreaches

Links:

User facing documentation

Is there any release timeline associated to this? It sounds like a great addition

@moodgorning We are ready to merge now. Just polishing the docs.

Amazing, we will go and give it a try. Thanks for the great work


[REQUEST] WordList Auto-Grabber From Selected Directory

Describe the solution you'd like
An option to select a folder that will automatically grab wordlists from there would be nice,
Instead of adding it by yourself every time you add a txt file.

You mean such as the one we got for configs right. I think I can make something using the same logic, basically making it auto grab them when the checker starts and also uh adding a rescan button as the config in case if someone added items to the folder while OB is running.

You mean such as the one we got for configs right. I think I can make something using the same logic, basically making it auto grab them when the checker starts and also uh adding a rescan button as the config in case if someone added items to the folder while OB is running.

yes, something like the configs manager.

@ForlaxPy Configs take a very small disk space, while wordlists can be huge, it's better to keep them in separate folders and just store their location in the database. Sorry but I won't do this.

Also, in case you were thinking to keep both the DB selection and the folder selection, I don't think it's a good idea to have 2 separate locations for things it will only create more confusion in the code in the long run ^_^

Plus, if people want to import wordlists all at once, they can simply drag and drop them, it takes 2 seconds and it automatically detects the wordlist type, I don't see what's the problem here really!


Documentation: CHANGELOG.md

We need a changelog. Last year, I did a manual changelog to document what features are added over time. Recently discovered that there are ways to auto-generate changelogs based on your issues and commits.
This is the example I found: https://github.com/github-changelog-generator/github-changelog-generator
Is someone is interested in giving this a try, post here and let's chat

we use commitizen at work, see if it matches your specs if you want i could take care of implementation


[WFRP4e System] Some actors and items throw errors when migrating to v11 exclusive

Yellow Fang Spy and Wuder Lechart actors throw errors saying "Error replacing links: Type error: html.replaceAll is not a function", the same happens for some skills, and other various items. there is a whole total of 105 of themFrom: Perkuns#9523foundry: 11.308wfrp4e: 7.0.1wfrp4e-altdorf: 4.0.0wfrp4e-archives1: 4.0.0wfrp4e-archives2: 4.0.0wfrp4e-core: 4.0.0wfrp4e-dotr: 4.0.0wfrp4e-eis: 4.0.0wfrp4e-empire-ruins: 4.0.0wfrp4e-horned-rat: 4.0.0wfrp4e-middenheim: 4.0.0wfrp4e-owb1: 4.0.0wfrp4e-pbtt: 4.0.0wfrp4e-rnhd: 4.0.0wfrp4e-starter-set: 4.0.0wfrp4e-ua1: 4.0.0wfrp4e-ua2: 4.0.0wfrp4e-up-in-arms: 4.0.0wfrp4e-wom: 4.0.0Active Modules: about-time, acelib, ATL, breaktime, colorsettings, custom-css, dice-calculator, dice-so-nice, drag-ruler, easy-target, find-the-culprit, forien-armoury, forien-copy-environment, forien-quest-log, foundryvtt-simple-calendar, fuzzy-foundry, gm-token-drag-visibility-v2, image-hover, item-piles, lib-captions, lib-changelogs, lib-find-the-path, lib-wrapper, module-credits, monks-scene-navigation, party-overview, permission_viewer, popout, quick-insert, remote-highlight-ui, routinglib, silence-compatibility-warnings, socketlib, sweetnothings, times-up, token-action-hud, token-auras, vtta-tokenizer, wall-height, wfrp4e-dotr-maps, wfrp4e-eis-maps, wfrp4e-ubersreik-maps, _CodeMirror

those (most) of what I could find and which objects, I suspect the ones following actors could be due to failure with actor itself, but some seem to be just for skills or equipment just on their own

I remember using your test world and many of your skill descriptions were blank, this is probably the cause.


Add tile and banner icons

Fixes #16 and #17

These images look good, but do we need to add them to the manifest?

No..  they are updated separately in the store.. I have a draft there.. we have nothing to lose to have a link to the compiled version.


State role will be cleared after adapter restart

If user set a state role manually. After adapter restart, the state role will be reset to default one.

Fixed in https://github.com/smarthomefans/ioBroker.miio/commit/62234ce1601d7cc004b7737c8a74590e5c2247f2


Make Return an image

Something like http://labspace.open.ac.uk/file.php/7032/!via/oucontent/course/1846/y180_ch6_act12_enter.jpg I think would be good

are you working on this?

No i'm not :)


no-op PR to rebuild img

https://github.com/open-cluster-management/backlog/issues/14431
Signed-off-by: Song Song Li<EMAIL_ADDRESS>

/lgtm

/hold

the issue was closed after re-scan.


Simple security for TCP and UDP line receivers.

Addition of support for a simple plaintext 'key' in the line and UDP receiver services, the presence of this key acts as a simple means to prevent unauthorised or unwanted metric sources from using these services. For better security, please consider using AMQP.
I'm currently using this in a production environment. I opted not to mangle the metric path.

Closing in favor of #441. Please move all discussion over there.


Support decimal place rounding for value/uncertainty pairs.

Currently if users are interested in well-controlling the position of the decimal separator within a string they can do so using round_mode="dec_place" and left_pad_dec_place. E.g.
from sciform import Formatter

formatter = Formatter(
    round_mode="dec_place",
    ndigits=5,
    left_pad_char=0,
    left_pad_dec_place=4,
)

for number in (123, 3453.39485345, 39.532, 9, 42, 8923.9823423):
    print(formatter(number))

# 00123.00000
# 03453.39485
# 00039.53200
# 00009.00000
# 00042.00000
# 08923.98234

Because dec_place rounding is not supported for value/uncertainty formatting this same strategy is not possible.

I've leaned away from including this feature because I think dec_place rounding is a bad practice for value/uncertainty formatting. The official recommendations indicate that value/uncertainty pairs should be formatted according to significant digits of the uncertainty. However, it seems there is anyways demand to "line up" decimal symbols by controlling the digits to the right of the decimal symbol with dec_place and ndigits and the decimal to the left of the decimal symbol with left_pad_dec_place.
I will include this feature along with a recipe for how to line up decimal symbols in the examples. But I'll include in the documentation caution against using round_mode="dec_place" and explanation for the caution. The main issues are (1) if too few digits of uncertainty are shown then the uncertainty may be rendered as something like 0.0000 and (2) too many digits of uncertainty may be shown such as 1.23456789 when really only the first one or two are typically known or needed.


Find rate limits

The API has a rate limit endpoint for determining how many calls have been made against the api with the current api credential. More information here:
https://developers.onelogin.com/api-docs/1/oauth20-tokens/get-rate-limit
The module should have a function that returns this data to the console.

resolved in 92c2c7a59a8fec18f7edc0feb8a0c60be4faac0d


Set up Sass stylesheets

We'll use Sass for our stylesheets.
Based on this reference for community plugins, we probably want to include the sbt-puresass and sbt-web plugins.
Done when we can serve a page styled with Sass.

Looks like the puresass plugin won't work on the more recent version of sbt we're on. Trying the plugin mentioned in https://www.playframework.com/documentation/2.8.x/AssetsSass instead.

Looks like the puresass plugin won't work on the more recent version of sbt we're on. Trying the plugin mentioned in https://www.playframework.com/documentation/2.8.x/AssetsSass instead.

Thanks Natalie! Just wanted to add a note that we'll need to be careful naming files - if there are two files with the same name/path below stylesheets/ in public/stylesheets and our assets/stylesheets, they will conflict

Thanks Natalie! Just wanted to add a note that we'll need to be careful naming files - if there are two files with the same name/path below stylesheets/ in public/stylesheets and our assets/stylesheets, they will conflict


Adding support for entity tags

Use Case
Entity tagging is new in Cedar 4.2.x, but CedarJava 4.2.x is not able to leverage it with the current Entity object and serializer.
Details

Adding tags field to Entity.java to support entities with tags
Updated EntitySerializer.java to make sure the tags field makes it across the JNI layer and into the AuthorizationRequest string we pass.
Quality of life improvement: returning the error message in the case of Validation errors in the corpus/json tests in executeJsonValidationTest

Testing

Added testEntityWithUnknownTag to  EntityValidationTests.java
Created a temporary extra json test among JSON_TEST_FILES that tested e2e allowing an action contingent on a tag being present in the resource.

Can we make sure to make the same change on main as well?

Can we make sure to make the same change on main as well?

Created here: https://github.com/cedar-policy/cedar-java/pull/239


what's the  meaning of gt?

In the csv file generated by running the code, what specifically is the gt in indicator test_no_act_gt_map_w？

Hi, no_act_gt indicates results obtained without using the action class ground truth during inference. These results are reported in Table 3 in the paper. Hope this helps!

Hi, no_act_gt indicates results obtained without using the action class ground truth during inference. These results are reported in Table 3 in the paper. Hope this helps!

Thank you!


distance between 2 polygon?

I search function to count distance 2 polygons.
Simple outline as distance

There is a function Polygon#bounding_box which is the most helpful to implement a function of such distance. Please let me know if it helps.

I thing about offset outside polygon. Minimal distance between alle edges to all edges other polygon.
Gow I can count distance between 2 edges?

You don't need a distance between edges, only distance between vertices (bounding boxes' edges are always parallel to axes).

Sorry, I didn't get your question, could you please change its formulation somehow? Thanks in advance

@DanielVartanov Please look at image. I have B shape, How get shape around B shape. Bigest , lighter shapes.

@letarg0, well, just to re-iterate, Polygon#bounding_box seems to be a solution to your problem: since you apply this method to both polygons, you'll have just two rectangles each edge of which is parallel to one of axes, which makes the problem trivial since then

this is not a rectangle

canYou show me a code or draw a image?
I dont know what I canthing about Yours sugestions.


"unknown formatter" error when clients are attached to the buffer

Description
hey 👋🏻
a couple of days ago, I noticed that when I try to format a ruby file, I get this error:

which is weird to me because I haven't changed anything in my config for at least a month now and it was working fine until Monday for example.
Here is my plugin configuration:
plugins.lua
{
    "neovim/nvim-lspconfig",
    dependencies = {
      "jose-elias-alvarez/null-ls.nvim",
      config = function()
        require("custom.configs.null-ls")
      end,
    },
    config = function()
      require("plugins.configs.lspconfig")
      require("custom.configs.lspconfig")
    end,
  },

lspconfig.lua
local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities

local lspconfig = require("lspconfig")
local mason_lspconfig = require("mason-lspconfig")

mason_lspconfig.setup()

lspconfig.ruby_ls.setup({
  cmd = { "ruby-lsp" },
  enabledfeatures = { "codeactions", "diagnostics", "documenthighlights", "documentsymbols", "formatting", "inlayhint" },
  -- on_attach = on_attach,
  capabilities = capabilities,
})

lspconfig.sorbet.setup({
  cmd = { "bundle", "exec", "srb", "tc", "--lsp" },
})

lspconfig.tailwindcss.setup({
  cmd = { "./node_modules/.bin/tailwindcss-language-server", "--stdio" },
  on_attach = on_attach,
  capabilities = capabilities,
})

null-ls.lua just in case
local null_ls = require("null-ls")

local formatting = null_ls.builtins.formatting
local diagnostics = null_ls.builtins.diagnostics
local hover = null_ls.builtins.hover

local sources = {
  formatting.htmlbeautifier,
  formatting.jq,
  formatting.prettier,
  formatting.shellharden,
  formatting.stylua,
  diagnostics.eslint,
  diagnostics.hadolint,
  diagnostics.shellcheck,
  -- diagnostics.rubocop.with ( { command = "bundle", args = { "exec", "rubocop", "-f", "json", "--force-exclusion", "--stdin", "$FILENAME" } } ),
  diagnostics.yamllint,
  hover.dictionary,
  hover.printenv,
}

null_ls.setup({
  -- debug = true,
  sources = sources,
})

The LSP log file is not much of a help:
[ERROR][2023-05-06 12:06:19] .../vim/lsp/rpc.lua:734	"rpc"	"bundle"	"stderr"	"Pausing\n"
[ERROR][2023-05-06 12:06:20] .../vim/lsp/rpc.lua:734	"rpc"	"bundle"	"stderr"	"Resuming\n"
[ERROR][2023-05-06 12:06:20] .../vim/lsp/rpc.lua:734	"rpc"	"ruby-lsp"	"stderr"	"Starting Ruby LSP...\n"
[ERROR][2023-05-06 12:06:20] .../vim/lsp/rpc.lua:734	"rpc"	"ruby-lsp"	"stderr"	"Ruby LSP is ready\n"
[ERROR][2023-05-06 12:09:04] .../vim/lsp/rpc.lua:734	"rpc"	"ruby-lsp"	"stderr"	"Shutting down Ruby LSP...\n"
[START][2023-05-06 12:09:11] LSP logging initiated
[ERROR][2023-05-06 12:09:11] .../vim/lsp/rpc.lua:734	"rpc"	"bundle"	"stderr"	"Pausing\n"
[ERROR][2023-05-06 12:09:11] .../vim/lsp/rpc.lua:734	"rpc"	"bundle"	"stderr"	"Resuming\n"
[ERROR][2023-05-06 12:09:11] .../vim/lsp/rpc.lua:734	"rpc"	"ruby-lsp"	"stderr"	"Starting Ruby LSP...\n"
[ERROR][2023-05-06 12:09:11] .../vim/lsp/rpc.lua:734	"rpc"	"ruby-lsp"	"stderr"	"Ruby LSP is ready\n"

that's all that I see.
I already tried different things, like using the ruby-lsp from the bundle (cmd = { "bundle", "exec", "ruby-lsp" },), or removing all the extra options, removing mason_lspconfig setup. Nothing changes.
the command I'm using to format the file is this:
M.custom = {
  n = {
    ["<C-k>"] = {
      function()
        vim.lsp.buf.format({ async = true })
      end,
    },

:LspInfo also reports the clients attached correctly:

maybe something has changed and I've missed it?
Thanks!
Neovim version
NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.0/share/nvim"
Nvim-lspconfig version
f3d80d5
Operating system and version
macOS 13.3.1
Affected language servers
ruby
Steps to reproduce

Add ruby-lsp gem to a project
setup ruby_ls LSP
try to format a file

Actual behavior
"unknown formatter" error
Expected behavior
File formatted correctly, according to Rubocop rules
Minimal config
I might try to add something later but I believe that the description is fine

LSP log
https://gist.github.com/luizkowalski/fc81bca7f1c95e5744d5ab2b0c861b23

nevermind looks like it has something to do with the latest release because it works when I downgrade the ruby-lsp version!

@pjg I enabled debug log level and I'm seeing this:
[DEBUG][2023-05-09 11:35:50] .../lua/vim/lsp.lua:1392	"LSP[ruby_ls]"	"client.request"	2	"textDocument/formatting"	{  options = {    insertSpaces = true,    tabSize = 2  },  textDocument = {    uri = "file:///Users/luiz/Projects/sumiu/app/controllers/messages_controller.rb"  }}	<function 1>	14
[DEBUG][2023-05-09 11:35:50] .../vim/lsp/rpc.lua:284	"rpc.send"	{  id = 2,  jsonrpc = "2.0",  method = "textDocument/formatting",  params = {    options = {      insertSpaces = true,      tabSize = 2    },    textDocument = {      uri = "file:///Users/luiz/Projects/sumiu/app/controllers/messages_controller.rb"    }  }}
[DEBUG][2023-05-09 11:35:50] .../vim/lsp/rpc.lua:387	"rpc.receive"	{  id = 2,  jsonrpc = "2.0"}
[DEBUG][2023-05-09 11:35:50] .../vim/lsp/rpc.lua:387	"rpc.receive"	{  jsonrpc = "2.0",  method = "telemetry/event",  params = {    lspVersion = "0.5.1",    request = "textDocument/formatting",    requestTime = 0.015633000000889,    uri = "~/Projects/sumiu/app/controllers/messages_controller.rb"  }}
[DEBUG][2023-05-09 11:35:50] .../vim/lsp/rpc.lua:387	"rpc.receive"	{  jsonrpc = "2.0",  method = "window/showMessage",  params = {    message = "Configuration error: Unknown formatter: ",    type = 1  }}
[DEBUG][2023-05-09 11:35:50] .../lua/vim/lsp.lua:1392	"LSP[ruby_ls]"	"client.request"	2	"textDocument/formatting"	{  options = {    insertSpaces = true,    tabSize = 2  },  textDocument = {    uri = "file:///Users/luiz/Projects/sumiu/app/controllers/messages_controller.rb"  }}	<function 1>	14
[DEBUG][2023-05-09 11:35:50] .../vim/lsp/rpc.lua:284	"rpc.send"	{  id = 3,  jsonrpc = "2.0",  method = "textDocument/formatting",  params = {    options = {      insertSpaces = true,      tabSize = 2    },    textDocument = {      uri = "file:///Users/luiz/Projects/sumiu/app/controllers/messages_controller.rb"    }  }}
[DEBUG][2023-05-09 11:35:50] .../vim/lsp/rpc.lua:387	"rpc.receive"	{  id = 3,  jsonrpc = "2.0"}
[DEBUG][2023-05-09 11:35:50] .../vim/lsp/rpc.lua:387	"rpc.receive"	{  jsonrpc = "2.0",  method = "telemetry/event",  params = {    lspVersion = "0.5.1",    request = "textDocument/formatting",    requestTime = 0.00048900000001595,    uri = "~/Projects/sumiu/app/controllers/messages_controller.rb"  }}
[DEBUG][2023-05-09 11:35:50] .../vim/lsp/rpc.lua:387	"rpc.receive"	{  jsonrpc = "2.0",  method = "window/showMessage",  params = {    message = "Configuration error: Unknown formatter: ",    type = 1  }}

I think some people are already aware of this problem here: https://github.com/Shopify/ruby-lsp/issues/188

did you try add formatter = 'auto' on rubyls?

well, that did it!
Thanks a lot @glepnir

maybe need add this in default .


Allow :deps to be interleaved with line comments

Quite commonly I have something like this at the top of my cells:
:dep nalgebra = "0.31.0"
:dep nalgebra_latex = { version = "0.1.16", features = ["lin_sys", "evcxr"] }
//:dep nalgebra_latex = { path = "C:\\Users\\demen\\Documents\\GitHub\\nalgebra_latex", features = ["lin_sys", "evcxr"] }

Unfortunately, I'm forced to swap lines wherever I comment out one of them.
I use shift + end or shift + home to select whole lines but it's still tedious.

Thanks, that sounds like a good suggestion.
If you (or anyone else) would like to have a try of implementing it, the code that looks for :dep lines is here. It looks like an extra if-statement could be added there to check for comments.

@davidlattimore #234

Closed due to successful implementation and merging


[BE] Add update API for the message

As we discussed

Give @davidmjiang access to current backend boxes


feat(feed): remove valued feed for anonymous

@robertu7 would you mind to create a linked issue for this PR?

@robertu7 would you mind to create a linked issue for this PR?

linked


error building

Following Readme for Ubuntu:
CPP pci/pci.cpp -> ../lib/.//pci/pci.o
pci/pci.cpp: In function ‘void pci::register_pci_driver(uint8_t, uint8_t, uint8_t, void ()(pci::pci_header_0_t, uint16_t, uint16_t, uint16_t))’:
pci/pci.cpp:173:2: sorry, unimplemented: non-trivial designated initializers not supported
};
^

It's your Makefile:
FOX_GCC_PATH=/usr/local/foxos-x86_64_elf_gcc

It uses the system compiler of the toolchain isn't installed. Did you run toolchain.sh to install the toolchain?

Must be system compiler because no gcc in /usr/local/

Then try building the toolchain since the system compiler might be too old or something like that

That was. Build perfect now. Thanks.


auth anon may soon require recaptcha

$ snail auth anon
Error: Glitch users anon response 500 not ok

and trying it in the browser shows it posting a new recaptcha field in the body :scream:

You know what's weird, I tried this again just now, and it worked >_>
$ snail auth anon
$ snail whoami -n
43357466
$ curl -vX POST https://api.glitch.com/v1/users/anon
*   Trying <IP_ADDRESS>...
* Connected to api.glitch.com (<IP_ADDRESS>) port 443 (#0)
* found 129 certificates in /etc/ssl/certs/ca-certificates.crt
* found 518 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
*        server certificate verification OK
*        server certificate status verification SKIPPED
*        common name: glitch.com (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #3
*        subject: CN=glitch.com
*        start date: Tue, 01 Feb 2022 00:00:00 GMT
*        expire date: Thu, 02 Mar 2023 23:59:59 GMT
*        issuer: C=US,O=Amazon,OU=Server CA 1B,CN=Amazon
*        compression: NULL
* ALPN, server accepted to use http/1.1
> POST /v1/users/anon HTTP/1.1
> Host: api.glitch.com
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 28 Mar 2022 00:10:03 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 704
< Connection: keep-alive
< x-powered-by: Express
< set-cookie: GlitchAuth=(redacting this lol); Max-Age=31536000; Path=/; Expires=Tue, 28 Mar 2023 00:10:03 GMT; HttpOnly; Secure; SameSite=None
< etag: W/"2c0-kyQAq2nMcf35t3QIq6bJSCeD1gk"
< vary: Accept-Encoding
<
* Connection #0 to host api.glitch.com left intact
{"isSupport":false,"isInfrastructureUser":false,"createdAt":"2022-03-28T00:10:03.185Z","updatedAt":"2022-03-28T00:10:03.185Z","persistentToken":"(redacting this lol)","color":"#b6ed78","hasCoverImage":false,"twoFactorEnabled":false,"accountLocked":false,"loginAttempts":0,"passwordEnabled":false,"suspendedReason":"","id":43357542,"githubId":null,"githubToken":null,"avatarUrl":null,"login":null,"name":null,"location":null,"facebookId":null,"facebookToken":null,"description":"","coverColor":null,"thanksCount":0,"utcOffset":null,"avatarThumbnailUrl":null,"featuredProjectId":null,"googleId":null,"googleToken":null,"slackId":null,"slackToken":null,"slackTeamId":null,"suspendedAt":null}

weird

gonna rename and remove label


How to enable Ingress?

Hi! I'm trying to enable Ingress in my release.
I'm trying with:
helm upgrade home-assistant pajikos/home-assistant --set ingress.enabled=true,ingress.hosts={"<IP_ADDRESS>"},persistence.enabled=true,persistence.storageClass=seaweedfs-storage

But I get this error:
Error: UPGRADE FAILED: template: home-assistant/templates/ingress.yaml:41:15: executing "home-assistant/templates/ingress.yaml" at <.host>: can't evaluate field host in type interface {}

Note: <IP_ADDRESS> is the IP of the cluster node where the Home Assistant pod is running.
Thanks a lot!

 This is different from setting the first item in the list to "<IP_ADDRESS>".
Usually, there is no need to set IP addresses in an ingress but may depend on the selected ingress controller.
Regards

Hi, have you solved this issue?