Port #10353 to branch 2.1: Improve error message for Failed Block Reads

Confusing error message on failed reads are observed. This PR improves
or corrects the following items:

Throw the right exception on failed openBlock(context, response);,
rather than always complaining missing fallback blocks
Implement toString for BlockReadRequest, otherwise request alluxio.worker.grpc.BlockReadRequest@1becc9d9 is not very helpful.
Add Job Id in Job master logs so we can correlate Job master logs and
master logs much easier by the job Id

Before
On Worker:
2019-10-29 14:48:40,984 DEBUG AbstractReadHandler - Exception occurred
while reading data for read request
alluxio.worker.grpc.BlockReadRequest@1becc9d9.
java.io.FileNotFoundException:
/Users/binfan/Dropbox/Work/alluxio/alluxio/underFSStorage/.alluxio_ufs_blocks.alluxio.0x1D91AC0E01AB0165.tmp/1325400064
(No such file or directory)

On Master:
2019-10-29 14:48:42,718 WARN DefaultFileSystemMaster - The persist job
(id=1572385668302) for file /cache/part-00083 (id=1426063359) failed:
Task execution failed:
/Users/binfan/Dropbox/Work/alluxio/alluxio/underFSStorage/.alluxio_ufs_blocks.alluxio.0x1D91AC0E01AB0165.tmp/1409286144
(No such file or directory) (GrpcDataReader{request=block_id:<PHONE_NUMBER>

on Job Master
2019-10-29 17:11:49,804 INFO job.JobCoordinator
(JobCoordinator.java:start) - Starting job
PersistConfig{filePath=/cache/part-00053, mountId=1, overwrite=false,
ufsPath=/Users/binfan/Dropbox/Work/alluxio/alluxio/underFSStorage/cache/part-00053.alluxio.0x0000016E1A0118AA.tmp}

After
On Worker:
2019-10-29 17:11:50,517 WARN AbstractReadHandler - Exception occurred
while reading data for read request BlockReadRequest{chunkSize=1048576,
end=33554479, id=939524096, openUfsBlockOptions=offset_in_file: 0
block_size: 33554479
maxUfsReadConcurrency:<PHONE_NUMBER>
mountId: 1
no_cache: true
block_in_ufs_tier: true
, promote=false, sessionId=1117586808638664750, start=0}.: Failed to
open block id=939524096

On Master
2019-10-29 17:11:51,771 WARN DefaultFileSystemMaster - The persist job
(id=1572389450770) for file /cache/part-00056 (id=973078527) failed:
Task execution failed: Failed to open block id=956301312
(GrpcDataReader{request=block_id: 956301312

On Job Master
2019-10-29 17:11:49,804 INFO job.JobCoordinator
(JobCoordinator.java:start) - Starting job Id=1572389450769
Config=PersistConfig{filePath=/cache/part-00053, mountId=1,
overwrite=false,
ufsPath=/Users/binfan/Dropbox/Work/alluxio/alluxio/underFSStorage/cache/part-00053.alluxio.0x0000016E1A0118AA.tmp}

pr-link: Alluxio/alluxio#10353
change-id: cid-6426db0936fc5df0b6d2c416715b66ea12035daa

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/6841/
Test FAILed.

jenkins, test this please

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/6845/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/6851/
Test PASSed.

alluxio-bot, merge this please


two  similar adapters?

@deyazoubi  why is adapter 1 and adapter 2 exact copies ?

I honestly don't know where the adapter information is used for. I also don't know if these sequences actually match what the wet lab is using. You might want to ask Kati for her input on this. In my experience, the pipeline worked regardless of the content of the adapter information.

Hello Stefan! its good to hear from you and know that you still exist on this planet :D
I just checked, Trimmomatic takes the adapters information from one location inside the conda/pkgs/. Seems that the adapters are already downloaded with the trimmomatic package. In any case, I will double check with Kati/Daniel if the adapters used are the same as the ones in the adapters-files of trimmomatic. I will keep this branch open until I figure this out.


tests:Add DestroyPipelineRenderPass

Fixes #2074
Add test DestroyPipelineRenderPass. This is a positive test that
destroys the renderPass used to create a gfx pipeline and then uses
that pipeline to draw. This makes sure that validation doesn't depend
on the pipeline's renderPass to still be active at the time the
pipeline is used.

Updated to use VkPipelineObj based on review from @chrisforbes . Thanks!


Error in  Bootstrap.min.js dialog box not opening after upgrade to bootstrap 4.1. Screen Fades.

Dialog box is not opening and is showing following error as per the attachment in the browser console.
Typeof this._element is object

In Bootstrapdialog.js following is written in  comments:
* To make multiple opened dialogs look better.
*
* Will be removed in later version, after Bootstrap Modal >= 3.3.0, updating z-index is unnecessary.
*/
updateZIndex: function () {
if (this.isOpened()) {
var zIndexBackdrop = 1040;
var zIndexModal = 1050;
var dialogCount = 0;
$.each(BootstrapDialog.dialogs, function (dialogId, dialogInstance) {
if (dialogInstance.isRealized() && dialogInstance.isOpened()) {
dialogCount++;
}
});
var $modal = this.getModal();
var $backdrop = $modal.data('bs.modal').$backdrop;
$modal.css('z-index', zIndexModal + (dialogCount - 1) * 20);
$backdrop.css('z-index', zIndexBackdrop + (dialogCount - 1) * 20);
}
        return this;
    },
    open: function () {
        !this.isRealized() && this.realize();
        this.getModal().modal('show');
        this.updateZIndex();

        return this;
    }

Sorry but with that we cannot reproduce your bug, so please could you create a CodePen and follow our contributing guidelines

Please close this issue.


Fix expect clauses for aggregates in C++20

Can you give some insight on why this is necessary? Where did you encounter this bug in VAST? Is this already fixed for CAF 0.18, or will we have to port this once we upgrade?

Can you give some insight on why this is necessary? Where did you encounter this bug in VAST?

For example we modified the query to be a non-aggregate when switching to C++20. If we can turn it back to an aggregate we can use designated initializers which makes it easy to create instances and we could drop all these static factories.

Is this already fixed for CAF 0.18, or will we have to port this once we upgrade?

The API of caf::message changed a lot and I believe this won't be an issue in CAF 0.18, but I didn't test.

Sadly this cannot be done, as it would break compatibility with upstream CAF 0.17.6.


Warning: Accessing PropTypes via the main React package

@ryanlanciaux I'd be happy to tackle this however you like/recommend...the common approach for now seems to be swapping out for the prop-types package...like so...
https://github.com/gaearon/redux-devtools/pull/358
Griddle version
1.4.0
Expected Behavior
console is clean of warnings
Actual Behavior
warning.js:36 Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
Steps to reproduce
Load any of the Griddle Components that include PropTypes (which I believe it all of em)

That would be amazing if you wanted to take this on! I think that sounds like a good approach

will do @ryanlanciaux ...will try and get to it tonight 👍

Can this be closed now?

Of course. Thanks

Just a heads up on v1.6.0 this warning is thrown again due to the react-redux-custom-store package which seems to be a dependency of this package.

@skipjack +1
Was just about to post a new issue.  I too have that warning using 1.6.0.

@moraleslos yeah that's a good idea -- not sure if the issue should go here or on the dependency (react-redux-custom-store). Maybe both.


🐛 Remove junk from where resolver

Summary
This PR removes stuff accidentally left in during the adoption of the SyncTarget and Location resource definitions.
Related issue(s)
Fixes #929

/cc @waltforme
/cc @fileppb

\lgtm
\approve
BTW #787 did same thing in this PR. Maybe I should have separated #787 into two.

/lgtm
/approve
BTW #787 did same thing in this PR. Maybe I should have separated #787 into two.


generate xmodel but get error

WARNING: Logging before InitGoogleLogging() is written to STDERR
W20231023 02:02:13.699882   590 tool_function.cpp:171] [UNILOG][WARNING] The operator named Transweather__Transweather_Tenc_Tenc__OverlapPatchEmbed_patch_embed1__LayerNorm_norm__ret_9, type: nndct_layer_norm, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20231023 02:02:13.731287   590 tool_function.cpp:171] [UNILOG][WARNING] The operator named Transweather__Transweather_Tenc_Tenc__Block_block1__ModuleList_0__Attention_attn__ret_53, type: nndct_select, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
W20231023 02:02:14.587817   590 tool_function.cpp:171] [UNILOG][WARNING] The operator named Transweather__Transweather_Tdec_Tdec__Block_dec_block1__ModuleList_0__Attention_dec_attn__29225, type: nndct_repeat, is not defined in XIR. XIR creates the definition of this operator automatically. You should specify the shape and the data_type of the output tensor of this operation by set_attr("shape", std::vector) and set_attr("data_type", std::string)
F20231023 02:02:14.627684   590 shape_inference.cpp:1760] [UNILOG][FATAL][XIR_INVALID_ARG_OCCUR][Invalid arg occurence!] xir::Op{name = Transweather__Transweather_Tdec_Tdec__Block_dec_block1__ModuleList_0__Attention_dec_attn__ret_943, type = matmul}'s two inputs shape unmatch, the multiplier's shape is {1, 64, 64, 64}, but the multiplicand's shape is {1, 64, 8, 64}, according to the definetion of xir::matmul, their shape are unmatching.
*** Check failure stack trace: ***
[1]+  Killed                  python tw_quant.py -quant_mode test -subset_len 1 -batch_size=1 -deploy
Aborted

class Attention_dec(nn.Module):
    def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0., sr_ratio=1):
        super().__init__()
        assert dim % num_heads == 0, f"dim {dim} should be divided by num_heads {num_heads}."
        self.dim = dim
        self.num_heads = num_heads
        head_dim = dim // num_heads
        self.scale = qk_scale or head_dim ** -0.5
        self.q = nn.Linear(dim, dim, bias=qkv_bias)
        self.kv = nn.Linear(dim, dim * 2, bias=qkv_bias)
        self.attn_drop = nn.Dropout(attn_drop)
        self.proj = nn.Linear(dim, dim)
        self.proj_drop = nn.Dropout(proj_drop)
        self.task_query = nn.Parameter(torch.randn(1,48,dim))
        self.sr_ratio = sr_ratio
        if sr_ratio > 1:
            self.sr = nn.Conv2d(dim, dim, kernel_size=sr_ratio, stride=sr_ratio)
            self.norm = nn.LayerNorm(dim)

    def forward(self, x, H, W):

        B, N, C = x.shape
        task_q = self.task_query
        task_q = task_q.unsqueeze(0).repeat(B,1,1,1)
        task_q = task_q.squeeze(1)#

        q = self.q(task_q).reshape(B, task_q.shape[1], self.num_heads, C // self.num_heads).permute(0, 2, 1, 3)
        kv = self.kv(x).reshape(B, -1, 2, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
        k, v = kv[0], kv[1]
        q = torch.nn.functional.interpolate(q, size=(v.shape[2],v.shape[3]))
        attn = (q @ k.transpose(-2, -1)) * self.scale
        attn = attn.softmax(dim=-1)
        attn = self.attn_drop(attn)
        print("attn:{}".format(attn.shape))
        print("v:{}".format(v.shape))
        x = (attn @ v).transpose(1, 2)#1 64 8 64
        x = x.reshape(B, N, C)
        x = self.proj(x)
        x = self.proj_drop(x)

        return x

It shows that  two inputs shape does not match when matmul, but I have no problem running and quantizing when just testing without deploy. The above problem only occurs when generating xmodel. I'm confused about that.

this op is not supported for this special input format.
User need provide their own implementation for customer_op.
please refer to https://docs.xilinx.com/r/en-US/ug1354-xilinx-ai-sdk/Implementing-and-Registering-Custom-Operators


Move the mouse to draw

Hello, I am using Rich Canvas. I have one question.
Is there a function to draw lines or Rectangle by moving the mouse? Or do I have to implement it myself?

Hi!
There is a function that does that. You can find more details here: https://github.com/mircea21S/RichCanvas/wiki/ItemsControl-Overview#drawing
I hope that answers your question.
Thanks!

Thanks for the quick reply!

Hey, if this answered your question can you please close this issue?
Thank you.


[Removal]: I have followed the requirements of the real deployment please remove from the Denylist

Hotspot Name
Uneven-Chrome-Stork
Hotspot b58 Address
11DVoTWWw1eovS7hdjE9SnkDobmr6ZjbEXLUtPDbhyazY7Qzksn
Discord Handle
No response
Hotspot Manufacturer
panther
Removal Reason
Hello community, I used to be a gamer, now I have redeployed my hotspot as requested, located in my den, 40th floor, there is no way to affirm the height as the Panther X2 antenna cannot be selected in the app, below is my real location and proof of deployment, please check to remove the blacklist and hopefully give me a chance to correct my previous wrongdoing, thanks again very much!
Modifications
No
Extra forwarders
No
Extra antennas
No
Additional Information
This picture shows my hotspot placed in my study near the windowsill where the signal is good, using the original Panther X2 antenna according to the example, without any modification.

The following two pictures show the process of changing my original unreal location to the real location of my house, currently positioned in: a residential area at the junction of Huiquan North Road and Tonggui Street, Jinjiang District, Chengdu, Sichuan Province, China.

The image below shows my real location as shown by Apple Maps, and matches the hotspot affirmed location.

Come with another user name.  #483

give back hnt you cheated. then ask a request.

We have taken into account this removal request in the next iteration of the denylist. It may take some time before it's processed. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.


KeyProvider-style API for signature schemes (HMAC)

Checklist

[X] I have looked into the Readme and Examples, and have not found a suitable solution or answer.
[X] I have looked into the API documentation and have not found a suitable solution or answer.
[X] I have searched the issues and have not found a suitable solution or answer.
[X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
[X] I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved
I am working on a project just for fun to learn a little more about JWTs
There is a handy KeyProvider API for asymmetric encryption schemes that allow identifying keys by a KID and validating a claims from a set of potential keys. A similar API for HMAC (which has no public key) is not available.
KeyIDs are handy when setting up secret key rotation, so an equivalent API for HMAC would be handy.
Describe the ideal solution
A KeyProvider-style API specifically for HMAC which does away with the public key part aspect and solely focuses on keys with only a private portion (could also cover symmetric keys).
Alternatives and current workarounds
I considered extending HMACAlgorithm to do this, but all the relevant classes are locked down.
Additional context
None

👋 hi @arlyon, thanks for raising the request. Could you provide some additional info such as some pseudo-code of what the ideal solution would look like from a consumer's usage? Thanks!

I ended up writing my own implementation of Algorithm that reimplements HMACAlgorithm but with my custom key provider added
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.SignatureGenerationException;
import com.auth0.jwt.exceptions.SignatureVerificationException;
import com.auth0.jwt.interfaces.DecodedJWT;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Base64;

/**
 * Subclass representing an Hash-based MAC signing algorithm
 *
 * <p>This class is thread-safe.
 */
public class KeyProvidedHMACAlgorithm extends Algorithm {

  private final CryptoHelper crypto;
  private final HMACKeyProvider keyProvider;

  // Visible for testing
  KeyProvidedHMACAlgorithm(
      CryptoHelper crypto, String id, String algorithm, HMACKeyProvider provider)
      throws IllegalArgumentException {
    super(id, algorithm);
    this.crypto = crypto;
    this.keyProvider = provider;
  }

  KeyProvidedHMACAlgorithm(String id, String algorithm, HMACKeyProvider provider)
      throws IllegalArgumentException {
    this(new CryptoHelper(), id, algorithm, provider);
  }

  @Override
  public void verify(DecodedJWT jwt) throws SignatureVerificationException {
    try {
      byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
      var secret = keyProvider.getKeyById(jwt.getKeyId());
      boolean valid =
          crypto.verifySignatureFor(
              toString(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
      if (!valid) {
        throw new SignatureVerificationException(this);
      }
    } catch (IllegalStateException
        | InvalidKeyException
        | NoSuchAlgorithmException
        | IllegalArgumentException e) {
      throw new SignatureVerificationException(this, e);
    }
  }

  @Override
  public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
    try {
      var secret = keyProvider.getKeyById(keyProvider.getKeyId());
      return crypto.createSignatureFor(toString(), secret, headerBytes, payloadBytes);
    } catch (NoSuchAlgorithmException | InvalidKeyException e) {
      throw new SignatureGenerationException(this, e);
    }
  }

  @Override
  public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
    try {
      var secret = keyProvider.getKeyById(keyProvider.getKeyId());
      return crypto.createSignatureFor(toString(), secret, contentBytes);
    } catch (NoSuchAlgorithmException | InvalidKeyException e) {
      throw new SignatureGenerationException(this, e);
    }
  }
}

import java.util.HashMap;
import java.util.List;

class HMACKeyProvider {

  HashMap<Long, byte[]> keyMap = new HashMap<Long, byte[]>();

  HMACKeyProvider(List<Secret> secrets) {
    for (Secret secret : secrets) {
      keyMap.put(secret.getKid(), secret.getSecret().getBytes());
    }
  }

  byte[] getKeyById(Long keyId) {
    if (keyId == null) {
      keyId = 1L;
    }
    return keyMap.get(keyId);
  }

  byte[] getKeyById(String keyId) throws NumberFormatException {
    return getKeyById(keyId == null ? null : Long.parseLong(keyId));
  }

  Long getKeyId() {
    return keyMap.keySet().stream().max(Long::compare).get();
  }
}

The request is an api similar to ECDSA and RSA that supports a generic HMACKeyProvider interface rather than hardcoding the key.


acyl-CoA (CHEBI:17984) should not be is_a adenosine 3',5'-bisphosphate (CHEBI:37240)

acyl-CoA (CHEBI:17984)
should not be is_a adenosine 3',5'-bisphosphate (CHEBI:37240)
This causes true path violations (incorrect superclasses) in GO
but we are not sure what the correct parent should be.
see
https://github.com/geneontology/go-ontology/issues/27724#issuecomment-2136673120

Hi Val,
There are several articles that classify coenzyme A as modified ribonucleotides (see example: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6850382/). I have decided to move both coenzyme A and acyl-CoA from the adenosine 3’,5’-biphosphate class to adenyl nucleotide class (a less specific class). I hope this does not cause any violations. ChEBI's classification is now aligned with MeSH classification of coenzyme A.

Hi @amalik01
derived from pantothenic acid (vitamin B5), which includes a 3'-phosphoadenosine diphosphate (3'-phospho-ADP) moiety, a pantothenic acid unit, and a terminal thiol group (-SH) that binds to the acetyl group.
SO it seems more that AcetylCO-A is a modified pantothenic acid.
While acetyl-CoA contains an adenosine moiety, which is also found in ATP (a nucleotide), its primary function and overall structure differ significantly from that of nucleotides.
This situation seems similar to carbohydrate derivatives,  and amino acid derivatives, these are not classified as carbohydrates or amino acids in CHEBI.
Biologists wouldn’t class acetyl-CoA as a nucleotide.
Nucleotides, specifically  consist of three components:
•	A nitrogenous base (adenine, thymine, cytosine, guanine, or uracil)
•	A five-carbon sugar (ribose in RNA and deoxyribose in DNA)
•	One or more phosphate groups
The effect on GO is to place all 928,000 genes annotated to acyl-CoA metabolic process
as nucleotide metabolic processes which seems biologically incorrect?
CC @pgaudet

see
https://www.ebi.ac.uk/chebi/chebiOntology.do?chebiId=CHEBI:83821
"amino acid derivative" aka  "modified amino acid" is not a subclass of "amino acid"
Can you do the same for "nucleotide derivative"?

Hi Val,
Historically, coenzyme A has been classed as a nucleotide coenzyme since its structure contains a nucleotide moiety.
I have contacted IUPAC to get their opinion on this before I start making any changes to the ontology - Waiting to hear from them.

It is definitely a "nucleotide coenzymes", but the nucleotide coenzymes are "modified ribonucleotides" or "nucleotide derivative", it could be classed as a "nucleotide coenzymes", but a "nucleotide coenzymes" should be a "nucleotide derivative".

Note also that all of the other nucleotide ATP/NAD/NADH etc co-enzymes are nucleotides

That's. great, thanks!


[refactor] (vectorization)remove useless branch for semi-anti join

Proposed changes
when right_semi_anti_without_other is true, then right_col_idx = 0 ,so this is a useless branch.
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

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

Has unit tests been added:

[ ] Yes
[ ] No
[x] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[x] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] 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: 35.01 seconds
load time: 444 seconds
storage size:<PHONE_NUMBER>4 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221115105131_clickbench_pr_46358.html


GPS error

Describe the bug
Hello i enabled GPS in the config file, but i get a "No GPS found" error on a t-beam 1.1 board with flashing gps light

a GPS reset should do the trick: https://github.com/lora-aprs/TTGO-T-Beam_GPS-reset


divide_and_round_q_last_inplace math

I've been reading the pubkey encryption, which does modulus witching, which it claims it's done in divide_and_round_q_last_inplace. I couldn't find the math about this. Initially I though it was base conversion, because you're just switching form base Q to base Q', which has one less element. However, the BEHZ paper "Implementation and Performance Evaluation of
RNS Variants of the BFV Homomorphic Encryption
Scheme" (https://eprint.iacr.org/2018/589.pdf) does not seem to have the math implemented in this function.
Could you point me to the exact math on this?

From math, the modulus switching scale the ct from a larger modulus (say Q) to a smaller modulus Q' (Q' < Q).
To do so, we simply compute  round(ct*Q'/Q).
Since we are talking about RNS variant, the inverse Q/Q' is just the last small prime in the prime chain (say q)
Thus what divide_and_round_q_last_inplace do is round(ct/q)

@fionser do you mean that in order to convert from basis (a1,a2,a3) we can multiply the RNS number, coefficient-wise, by a1a2/(a1a2*a3) = 1/a3? How can this convert the basis?

@fionser The representation of 4 in (3,5,7) is (1,4,4). When we divide and round: (1/7, 4/7, 4/7) we get (0,1,1) which is not 4 in basis (3,5)

It's suppose to give you round(4 / 7) = 1. The algorithm is described in the comments of divide_and_round_q_last_inplace. It is way more complicated than what you have described -- (1/7, 4/7 , 4/7).

@WeiDaiWD oh right forgot and divide the left-side 4, I'm doing round(4/7) = (round(1/7),round(4/7), round(4/7)) but then I get 1 = (0,1,1). If I discard the latest element I get (0,1) which is not the representation of 1 in (3,5). I seem the algorithm and understood some of the stuff but it looks a little bit different from the one mentioned here. For instance, inverse of M/mi

round(4/7) = (round(1/7),round(4/7), round(4/7))

This is different from the code or what fionser described.

Indeed the fast basis convert algorithm computes floor(4/7)
we use the relationship round(4/7) = floor((4 + floor(7/2)) / 7)
4 in basis (3, 5, 7) is （1，4, 4)

floor(7/2) mod 3 = 0; floor(7/2) mod 5 = 3; floor(7/2) mod 7 = 3
Then 4 + floor(7/2) in basis is (1, 2, 0)

the divide_and_round_q_last computes
( 1 - 0 )7^{-1} mod 3 = 1
(2 - 0) 7^{-1} mod 5 = 1
That is in (1, 1) in the basis (3, 5) is 1 , i.e., round(4/7)

Got it @fionser. Now we have the 3rd basis element of all coefficients 0, so in essence we have the representation of floor(ct/q) in basis of size one less than before. But what guarantees that floor(ct/q) still decrypts to the same plaintext? Am I missing something more? What about repeated iterations of the same stuff until we reach a smaller basis?
Why aren't you using the BeHZ base conversion formula?
Thank you!

The fast basis convert might introduce some rounding errors which is fine for CKKS and (in the key switching steps)
For the BFV scheme, we need exact result, which we need more complicated BEHZ algorithm.
Basically floor(ct/q) will not decrypts to the "same" plaintext.
Whenever we use this divde-then-round function, the ct should decrypts to some multiple of q (or close to q, or
decrypts to zero). The divde-then-round function will gives you a plaintext of round(m/q).

@fionser now I get it. I saw it being used in https://github.com/microsoft/SEAL/blob/88bbc51dd684b82a781312ff04abd235c060163e/native/src/seal/encryptor.cpp#L138 but I forgot it was on the encryption of 0, not m. So yes, it still decrypt to 0. But why not just encrypt directly with a subset of the basis, instead of doing this modulus switching? By the way, is this the BeHZ algorithm?
I'm asking because I'm doing internal stuff on SEAL, so I did encrypt ct with a subset of size 2 from a basis of size 3, instead of doing modulus switching, then operated with conventional ciphertexts encrypted with the modulus switching technique and it worked.

If you encrypt 0 with two primes q0 and q1 and an freshly sampled error e, now the noise size is ||e|| after decryption.
If you encrypt 0 with three primes q0, q1, and q2 and an freshly sampled error e, now the noise is also ||e|| after decryption.
Then, if you perform divide (with flooring or rounding) the ciphertext by q2, you end up with an encryption of 0 with two primes q0 and q1. The new ciphertext has noise size close to (or actually a bit larger than) ||e||/q2 after decryption.
We inserted this extra scaling of fresh encryption of zero to reduce the noise in a freshly encrypted ciphertext. This matters a lot to CKKS.

This is not one of the algorithms in BEHZ. The BEHZ paper mainly deal with conversions between disjoint basis. In the case of divide_and_round_q_last_inplace, we are converting to a sub basis while inserting a division/rounding operation.


Masternode Count wrong

Open Issue in APP, closed in AIN. #### What happened: Tab Masternodes shows only 898 enabled Masternodes. Maybe the default value from listmasternodes of 1000 is used to display.
What you expected to happen: Show all enabled MN in the Network. Current Stats: http://mydeficha.in/masternodes.php
How to reproduce it (as minimally and precisely as possible):
Open Wallet, click Tab Masternodes
What are your environment parameters:
Windows, APP-Version 2.3.0
Anything else we need to know?:
It seems same behaviour in MAC APP, some Users reported in Telegram.

Originally posted by @Stonygan in https://github.com/DeFiCh/ain/issues/260

Yes you are correct, we are limiting to 1000, thanks for reporting this


[BUG] _distutils_hack sometimes breaks in virtualenvs

setuptools version
e5156411d97a683db3365e2b778c0936b5fb620a
Python version
cpython 3.9
OS
Ubuntu 21.10 Impish
Additional environment information
Package                   Version
------------------------- -------------------
asttokens                 2.1.0
build                     0.9.0
certifi                   2022.9.24
colorama                  0.4.7.dev1
editables                 0.3
executing                 0.1.dev1+g32c2388
flit_core                 3.8.0
hatch-fancy-pypi-readme   22.8.0
hatch-vcs                 0.2.0
hatchling                 1.11.1
httpcore                  0.16.1
httpx                     0.23.1
icecream                  2.1.3
installer                 0.6.0.dev0
ipi                       0.1.dev1+g58bf835
packaging                 21.4.dev0
pathspec                  0.10.2
peval                     0.1.dev1+g2f68c8c
pip                       23.0.dev0
pluggy                    0.1.dev1+gd0c0cac
plumbum                   0.1.dev1+g4ea4a2c
Pygments                  2.13.0
pyproject_hooks           1.0.0
requests                  2.28.1
requests-file             0.1.dev1+g675c7a6
rfc3986                   2.0.0
RichConsole               0.1.dev1+g954197c
securesystemslib          0.1.dev1+gfccaee8
securesystemslib-KOLANICH 0.1.dev1+g49c432c
setuptools                65.6.2.post20221123
setuptools-scm            0.1.dev1+ga70d44b
sh                        1.14.3
sniffio                   1.3.0+dev
tomli                     2.0.1
transformerz              0.1.dev1+g607eef8
tuf                       2.0.0
tuft                      0.1.dev1+g1a99478
typing_extensions         4.4.0
wheel                     0.38.4

Description
It seems that setuptools breaks when the check sees a path from a venv. It is strange. It started happening only after installation of the bunch of packages into the venv.
Expected behavior
No assertion
How to Reproduce
I have encountered it when debugging ipi (my new package manager, replacement for pip) self-bootstrapping within a venv. I'm not sure you should try
Output
File "~/ipi.py/ipi/utils/metadataExtractor.py", line 24, in <module>
  from setuptools.config import read_configuration as parseSetupCfg
File "~/ipi.py/test_venv/lib/python3.9/site-packages/setuptools/__init__.py", line 8, in <module>
  import _distutils_hack.override  # noqa: F401
File "~/ipi.py/test_venv/lib/python3.9/site-packages/_distutils_hack/override.py", line 1, in <module>
  __import__('_distutils_hack').do_override()
File "~/ipi.py/test_venv/lib/python3.9/site-packages/_distutils_hack/__init__.py", line 77, in do_override
  ensure_local_distutils()
File "~/ipi.py/test_venv/lib/python3.9/site-packages/_distutils_hack/__init__.py", line 64, in ensure_local_distutils
  assert '_distutils' in core.__file__, core.__file__
AssertionError: /usr/lib/python3.9/distutils/core.py

Condition when triggered distutils imported before setuptools. Workaround: import setuptools before importing any package that can import distutils internally, in my case it was pip.

(Sorry for the "me too!" comment).
I am also getting this with Poetry, when installing a package (future).
Here is the attached Github action log, incase it's helpful:

click to fold out, it's long (sorry)
#11 18.51   CalledProcessError
#11 18.51
#11 18.51   Command '['/opt/myapp/.venv/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/opt/myapp/.venv', '--no-deps', '/root/.cache/pypoetry/artifacts/fe/fb/57/2ea5240ca6b3bb2a9a622a4cbbc48bfbe0f64b53a125648925dda6919d/future-0.18.2.tar.gz']' returned non-zero exit status 2.
#11 18.51
#11 18.51   at /usr/local/lib/python3.10/subprocess.py:526 in run
#11 18.56        522│             # We don't call process.wait() as .__exit__ does that for us.
#11 18.56        523│             raise
#11 18.56        524│         retcode = process.poll()
#11 18.56        525│         if check and retcode:
#11 18.56     →  526│             raise CalledProcessError(retcode, process.args,
#11 18.56        527│                                      output=stdout, stderr=stderr)
#11 18.56        528│     return CompletedProcess(process.args, retcode, stdout, stderr)
#11 18.56        529│
#11 18.56        530│
#11 18.56
#11 18.56 The following error occurred when trying to handle this error:
#11 18.56
#11 18.56
#11 18.56   EnvCommandError
#11 18.56
#11 18.56   Command ['/opt/myapp/.venv/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/opt/myapp/.venv', '--no-deps', '/root/.cache/pypoetry/artifacts/fe/fb/57/2ea5240ca6b3bb2a9a622a4cbbc48bfbe0f64b53a125648925dda6919d/future-0.18.2.tar.gz'] errored with the following return code 2, and output:
#11 18.56   Processing /root/.cache/pypoetry/artifacts/fe/fb/57/2ea5240ca6b3bb2a9a622a4cbbc48bfbe0f64b53a125648925dda6919d/future-0.18.2.tar.gz
#11 18.56     Installing build dependencies: started
#11 18.56     Installing build dependencies: finished with status 'done'
#11 18.56     Getting requirements to build wheel: started
#11 18.56     Getting requirements to build wheel: finished with status 'done'
#11 18.56     Preparing metadata (pyproject.toml): started
#11 18.56     Preparing metadata (pyproject.toml): finished with status 'done'
#11 18.56   ERROR: Exception:
#11 18.56   Traceback (most recent call last):
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
#11 18.56       status = run_func(*args)
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
#11 18.56       return func(self, options, args)
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 400, in run
#11 18.56       requirement_set = resolver.resolve(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 73, in resolve
#11 18.56       collected = self.factory.collect_root_requirements(root_reqs)
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 491, in collect_root_requirements
#11 18.56       req = self._make_requirement_from_install_req(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 453, in _make_requirement_from_install_req
#11 18.56       cand = self._make_candidate_from_link(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
#11 18.56       self._link_candidate_cache[link] = LinkCandidate(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__
#11 18.56       super().__init__(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__
#11 18.56       self.dist = self._prepare()
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
#11 18.56       dist = self._prepare_distribution()
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution
#11 18.56       return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 491, in prepare_linked_requirement
#11 18.56       return self._prepare_linked_requirement(req, parallel_builds)
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 577, in _prepare_linked_requirement
#11 18.56       dist = _get_prepared_distribution(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution
#11 18.56       abstract_dist.prepare_distribution_metadata(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 61, in prepare_distribution_metadata
#11 18.56       self.req.prepare_metadata()
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 535, in prepare_metadata
#11 18.56       self.metadata_directory = generate_metadata(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/operations/build/metadata.py", line 35, in generate_metadata
#11 18.56       distinfo_dir = backend.prepare_metadata_for_build_wheel(metadata_dir)
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_internal/utils/misc.py", line 706, in prepare_metadata_for_build_wheel
#11 18.56       return super().prepare_metadata_for_build_wheel(
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 189, in prepare_metadata_for_build_wheel
#11 18.56       return self._call_hook('prepare_metadata_for_build_wheel', {
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 319, in _call_hook
#11 18.56       raise BackendUnavailable(data.get('traceback', ''))
#11 18.56   pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
#11 18.56     File "/opt/myapp/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 77, in _build_backend
#11 18.56       obj = import_module(mod_path)
#11 18.56     File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
#11 18.56       return _bootstrap._gcd_import(name[level:], package, level)
#11 18.56     File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
#11 18.56     File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
#11 18.56     File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
#11 18.56     File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
#11 18.56     File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
#11 18.56     File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
#11 18.56     File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
#11 18.56     File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
#11 18.56     File "<frozen importlib._bootstrap_external>", line 883, in exec_module
#11 18.56     File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
#11 18.56     File "/tmp/pip-build-env-ilufj6fg/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 8, in <module>
#11 18.56       import _distutils_hack.override  # noqa: F401
#11 18.56   ModuleNotFoundError: No module named '_distutils_hack.override'
#11 18.56
#11 18.56
#11 18.56
#11 18.56   at /opt/poetry/venv/lib/python3.10/site-packages/poetry/utils/env.py:1476 in _run
#11 18.61       1472│                 output = subprocess.check_output(
#11 18.61       1473│                     command, stderr=subprocess.STDOUT, env=env, **kwargs
#11 18.61       1474│                 )
#11 18.61       1475│         except CalledProcessError as e:
#11 18.61     → 1476│             raise EnvCommandError(e, input=input_)
#11 18.61       1477│
#11 18.61       1478│         return decode(output)
#11 18.61       1479│
#11 18.61       1480│     def execute(self, bin: str, *args: str, **kwargs: Any) -> int:
#11 18.61
#11 18.61 The following error occurred when trying to handle this error:
#11 18.61
#11 18.61
#11 18.61   PoetryException
#11 18.61
#11 18.61   Failed to install /root/.cache/pypoetry/artifacts/fe/fb/57/2ea5240ca6b3bb2a9a622a4cbbc48bfbe0f64b53a125648925dda6919d/future-0.18.2.tar.gz
#11 18.61
#11 18.61   at /opt/poetry/venv/lib/python3.10/site-packages/poetry/utils/pip.py:51 in pip_install
#11 18.61        47│
#11 18.61        48│     try:
#11 18.61        49│         return environment.run_pip(*args)
#11 18.61        50│     except EnvCommandError as e:
#11 18.61     →  51│         raise PoetryException(f"Failed to install {path.as_posix()}") from e
#11 18.61        52│
#11 18.61
#11 ERROR: executor failed running [/bin/sh -c poetry install --only main]: exit code: 1


github.com/golang/protobuf v1.5.3 is vulnerable

Vulnerability-
Protobuf contains an out-of-bounds read vulnerability due to a lack of user input validation. A remote attacker could exploit this by providing protobuf with a crafted message in order to cause the system to crash.
the fix is available in google.golang.org/protobuf.   any plan to replace it ?

That version will typically get updated in master and be included in the next release (currently 1.29).
For a client to be impacted, they would have to be talking to a malicious server, which seems unlikely given TLS verification.
On the server side, a panic decoding a particular request only impacts that one request (panics are caught/handled per request).
/transfer kubernetes


[ranges-v3] fails to install, conflicting files

Y:\vcpkg>vcpkg upgrade --no-dry-run
The following packages will be rebuilt:
    fftw3[core]:x64-windows-static
    range-v3[core]:x64-windows-static
Starting package 1/4: fftw3:x64-windows-static
Removing package fftw3:x64-windows-static...
Removing package fftw3:x64-windows-static... done
Purging package fftw3:x64-windows-static...
Purging package fftw3:x64-windows-static... done
Elapsed time for package fftw3:x64-windows-static: 55.7 ms
Starting package 2/4: range-v3:x64-windows-static
Removing package range-v3:x64-windows-static...
Removing package range-v3:x64-windows-static... done
Purging package range-v3:x64-windows-static...
Purging package range-v3:x64-windows-static... done
Elapsed time for package range-v3:x64-windows-static: 5.777 ms
Starting package 3/4: fftw3:x64-windows-static
Building package fftw3[core]:x64-windows-static...
-- Downloading http://www.fftw.org/fftw-3.3.8.tar.gz...
-- Extracting source Y:/vcpkg/downloads/fftw-3.3.8.tar.gz
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Performing post-build validation
-- Performing post-build validation done
Building package fftw3[core]:x64-windows-static... done
Installing package fftw3[core]:x64-windows-static...
Installing package fftw3[core]:x64-windows-static... done
Elapsed time for package fftw3:x64-windows-static: 8.132 min
Starting package 4/4: range-v3:x64-windows-static
Building package range-v3[core]:x64-windows-static...
-- Downloading https://github.com/ericniebler/range-v3/archive/01ccd0e552860efe00e4e3e55bf823be445aabb4.tar.gz...
-- Extracting source Y:/vcpkg/downloads/ericniebler-range-v3-01ccd0e552860efe00e4e3e55bf823be445aabb4.tar.gz
-- Using source at Y:/vcpkg/buildtrees/range-v3/src/be445aabb4-633c8ae91c
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Performing post-build validation
-- Performing post-build validation done
Building package range-v3[core]:x64-windows-static... done
Installing package range-v3[core]:x64-windows-static...

The following files are already installed in y:/vcpkg/installed/x64-windows-static and are in conflict with range-v3:x64-windows-static

    include/meta/meta.hpp
    include/meta/meta_fwd.hpp
    ...
    include/range/v3/view_facade.hpp
    include/range/v3/view_interface.hpp

Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: range-v3:x64-windows-static
  Vcpkg version: 2018.10.20-nohash

Additionally, attach any relevant sections from the log files above.

Y:\vcpkg>

@degski
Did you simply delete the vs2015 files? (this would not be sufficient)
Please try:
vcpkg remove range-v3-vs2015:x64-windows-static
vcpkg install range-v3:x64-windows-static
Full context:
The reason for this is that range-v3 previously delegated to range-v3-vs2015 on windows, but after a recent update the ports are independent. We still keep range-v3-vs2015 around for VS2015 users.
However, you cannot have both installed at the same time.

@alexkaratarakis
Apparently not. I did as you said, and now I get:
Y:\vcpkg>vcpkg remove range-v3-vs2015:x64-windows-static
The following packages will be removed:
    range-v3-vs2015:x64-windows-static
Removing package range-v3-vs2015:x64-windows-static...
Warning: y:\vcpkg\installed\x64-windows-static\include\range\v3\algorithm\merge_move.hpp: file not found
Warning: y:\vcpkg\installed\x64-windows-static\include\range\v3\algorithm\partition_move.hpp: file not found
Warning: y:\vcpkg\installed\x64-windows-static\include\range\v3\algorithm\random_shuffle.hpp: file not found
Warning: y:\vcpkg\installed\x64-windows-static\include\range\v3\range.hpp: file not found
Warning: y:\vcpkg\installed\x64-windows-static\include\range\v3\utility\compressed_tuple.hpp: file not found
Warning: y:\vcpkg\installed\x64-windows-static\include\range\v3\utility\integer_sequence.hpp: file not found
Warning: y:\vcpkg\installed\x64-windows-static\include\range\v3\utility\meta.hpp: file not found
Warning: y:\vcpkg\installed\x64-windows-static\include\range\v3\utility\safe_int.hpp: file not found
Removing package range-v3-vs2015:x64-windows-static... done
Purging package range-v3-vs2015:x64-windows-static...
Purging package range-v3-vs2015:x64-windows-static... done

Y:\vcpkg>vcpkg install range-v3:x64-windows-static
The following packages will be built and installed:
    range-v3[core]:x64-windows-static
Starting package 1/1: range-v3:x64-windows-static
Building package range-v3[core]:x64-windows-static...
-- Downloading https://github.com/ericniebler/range-v3/archive/01ccd0e552860efe00e4e3e55bf823be445aabb4.tar.gz...
-- Using source at Y:/vcpkg/buildtrees/range-v3/src/be445aabb4-633c8ae91c
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Performing post-build validation
-- Performing post-build validation done
Building package range-v3[core]:x64-windows-static... done
Installing package range-v3[core]:x64-windows-static...
File y:\vcpkg\installed\x64-windows-static\include\range\v3\action\reverse.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\algorithm\aux_\partition_point_n.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\algorithm\for_each_n.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\algorithm\sample.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\data.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\detail\adl_get.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\detail\satisfy_boost_range.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\detail\variant.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\experimental\utility\generator.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\experimental\view\shared.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\index.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\iterator_range.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\span.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\utility\invoke.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\utility\polymorphic_cast.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\utility\random.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\utility\scope_exit.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\version.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\adjacent_filter.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\cartesian_product.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\drop_exactly.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\exclusive_scan.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\indices.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\linear_distribute.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\sample.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\set_algorithm.hpp was already present and will be overwritten
File y:\vcpkg\installed\x64-windows-static\include\range\v3\view\sliding.hpp was already present and will be overwritten
Installing package range-v3[core]:x64-windows-static... done
Elapsed time for package range-v3:x64-windows-static: 27.59 s

Total elapsed time: 27.59 s

The package range-v3:x64-windows-static provides CMake targets:

    find_package(range-v3 CONFIG REQUIRED)
    target_link_libraries(main PRIVATE meta range-v3)

Y:\vcpkg>

So that looks ok [the output seems what one would expect, in view of how I hacked it].
Thank Alex.


[bug] -ot=xml not work.

Very simple feature do not work.
ud -ot=xml
It's result is not generic xml (keep source format).

Please try with the latest WIP. I believe that this issue has since been fixed.

Confirmed locally to have been fixed at some point since posting.


Replace SchemaPayload type for unstructured events and contexts with SelfDescribingJson

Similar to Android Tracker.
At the moment, contexts are added using a "SchemaPayload" which is doubly confusing.

/cc @fblundun


Consider reducing default profiling duration to 30 seconds than 2 minutes

Reason:

If a request is as slow as 2 minutes, there is probably no need of profiler to find out where the issue is;
Smaller package is lightweight, easier to analysis, also less noise;
Less network traffic, faster upload;

Let's give it a shoot and see.

The story becomes complex when there's local settings and then there's remote settings in the mix. A bit design is needed.


Unirest does not support multiple form fields with the same name

When we create multiple form fields with same name we got strange behavior on server - this fields contains same content as last added field.

@vdweller Available in latest version 1.4.1


Bug 3386 patch example update

Updated HFSS port creation so a FacePrimitive can be passed for "signal" (#3463, #3423).
Cloned conductors in Stackup3D will no longer be set to "solve inside." (#3386, #2977)

Add probe-fed patch example.

Use Layer3D class.
Resolve #3423
Resolve #3386
Resolve #2977
Update and improve unit tests.
Allow FacePrimitive type to be passed for wave port creation.
Update docstrings.


Casper Provider

Add support for casper provider
Exposes CasperServiceByProvider which extends CasperServiceByJsonRPC and takes in a SafeEventEmitterProvider.
It uses ProviderTransport to communicate with the provider using JsonRPC.
This way JRPC provider can intercept the methods it wants to respond to.
(say: for account_put_deploy , jrpc method can take an unsigned deploy, sign it and send to the blockchain)
For now, it intercepts the following methods and performs certain actions:

account_put_deploy
info_get_deploy

Great, thanks guys!

Merged in #109


MButton: Custom Button

See Pause.

Due to the implementation in OSX we cant do color buttons and so we get a white box. And where we thought the color would be white on dark red, it's actually white on white box with a dark red border. This stuff messes up the consistency and we're doing more work than we should want to do.
However, we did that whole ribbonbar so we should be able to do a tiny custom button.

We could more consistently show the icons, texts, restricted sizes and enforce interoperability with signals and other mkernal internals.
We can ensure a consistent look and feel between different OS platforms.
We can send out signals for when the buttons are pressed in a consistent manner.
We can make more robust buttons, for example, we can make an Outline button that lets you choose between the outline type, like a multi-button.
We can directly use VectorIcons with the known colors so we don't hard-code the force_darkmode information.

Table this can of worms. Current implementation removed the pulldown for multi-buttons which is wrong, so this likely would need more work than potentially just starting over or doing something else.


Update README.md to Describe Desired PR Titles

Update README.md to Describe Desired PR Titles

Looks good to me. Although for people who are ESL or are skim readers providing a specific example might help. Like:
"Add Cosmos Hub APIs for Acme Validator"


Use HotTable component when exporting

Question
Hi guys, can someone help me on how to export the table as csv using this React wrapper? I can do it using the Handsontable class but not using the HotTable component. I'm just wondering if its possible. Thanks!

It seems like I just overlooked the documentation.. closing this now..


Add test for eth_getBalance at a specific block_number

What was wrong?
There was a test missing for the bug fixed in #900
How was it fixed?

Made chain_without_block_validation fixture use MiningChain in order to send eth from one address to another. I've searched for the usage of this fixture in code and it seems like it was stale and not used anywhere, so was safe to modify it.
Added test for eth_getBalance at a specific block_number by sending eth to an account from funded_address and then by comparing the balance at block_no_before_transfer and at block_no_after_transfer .

To-Do

[ ] Clean up commit history

[ ] Add entry to the release notes

Cute Animal Picture

Test failures seem unrelated to this change. The same tests are failing for me locally on master.


fixed format for founders.address

Coverage decreased (-0.1%) to 91.322% when pulling 6de2775653c17975339caef9cc4378b674f7e469 on update_founders into 4db505715ec5c9dcf1018cd7853c889956f5c446 on founders_address.

а тесты?


Database getNumRows()

The number of rows returned by the query.  Make sure to call the method using your query result object:
$query = $db->query('SELECT * FROM my_table');
echo $query->getNumRows();

Is this a proposed enhancement to ResultInterface? If so, that would be appropriate as a description.
Also, if that is the case, it would need changes in ResultInterface, along with the related user guide and unit testing changes.
Also, it should follow the style of the other interface methods, namely be called getNumRows.

I have merged the other branch please close other PR please. can you explain me how unit testing works please??

I had left the numRows out on purpose. We can always discuss whether to provide it or not but we had been discouraging its use for the last couple of years and writing it out of the user guide examples due to performance and memory issues on several platforms.

and how to validate if row with certain id exists??

All getResult methods will return an empty array and all getRow methods return null if the record doesn't exist.
If (! Is null($query->getRow()) { }

make sense :+1:

Since I don't see any discussion about whether we need this or not I'm going to assume that we're good, and close it.

I suspect that the vast majority of CodeIgniter projects use one of the DBMS modules that have a num_rows function (MySQLi, Postgres, MSSQL). I strongly believe that CodeIgniter 4 should expose a Result->numRows method for a variety of reasons which I've enumerated on the CodeIgniter forum.
I would add to these points the fact that my existing CI3 project uses query->num_rows in no less than a hundred places and that this function was attached not to a query build or db class, but to the query result object. I hope that the CI4 devs will consider the difficulty of CI3 -> CI4 migration and add this very convenient and efficient function for the popular DBMSes that support it.
My post from the CI forums follows:

Unless I'm missing something, it's not always "a simple count()". In some cases, queries can be enormously complicated with many tables joined and distinct or group by or sum/avg/max specified. The db method countAllResults does seem to take a lot of this into account, but the extra query that must be run also appears to obliterate any prior query results which might exist in the Builder object. And I'm not sure, but mightn't be some (probably very small) risk of a name collision between the numrows used as an alias for the COUNT(*) in the other query.

Perhaps most critically, this countAllResults function clearly contains more PHP code than a single mysqli_num_rows, sqlsrv_num_rows, or pg_num_rows function call and it requires another query to be run on the db server. In my experience, a db server is quite likely to be your bottleneck on a busy server. If the PHP client has some simple built-in function to return the number of rows corresponding to a query, why not use it? The coding effort to expose this function for the most popular database engines is probably trivial, and you can just throw an exception ("use countAllResults instead!") if the DBMS does not support such a function. I could be dead wrong, but I expect the vast majority of CI developers are using MySQLi, MS SQL, or PostGres, and all of those support this function.

To bolster my point, consider the PHP source code for the mysqli_num_rows function. It goes through a few macros but I think they end up just returning the value from a struct.

We would happily accept a PR for this if you'd care to implement it.

@lonnieezell should I fork the develop branch? Or some other branch?


anthropic[patch]: Release 0.2.3

There's a little typo:
import { ChatAnthropicMessages } from "@langchain/anthropic";

const model = new ChatAnthropic({
  apiKey: process.env.ANTHROPIC_API_KEY,
  model: "claude-3-sonnet-20240229",
});
const response = await model.stream(new HumanMessage("Hello world!"));

Should be
import { ChatAnthropicMessages } from "@langchain/anthropic";

const model = new ChatAnthropic({
  apiKey: process.env.ANTHROPIC_API_KEY,
  model: "claude-3-sonnet-20240229",
});
const response = await model.stream([new HumanMessage("Hello world!")]);

just missing the array brackets


refactor: Proxy and cache avatar images

Description
This PR changes how Jellyseerr handles profile images. Now they are proxied from the source and cached in the disk.
The caching mechanism uses the already existing "ImageProxy" class which I tweaked.
Also, I added a new endpoint "/avatarproxy" that takes the URL from the images, caches them if needed, and then returns them.
Screenshot (if UI-related)
To-Dos

[x] Successful build pnpm build
[x] Translation keys pnpm i18n:extract
[ ] Database migration (if required)

Issues Fixed or Closed

Fixes #XXXX

No problem at all work's great !

Could the action run for a docker image be done please ?

Could the action run for a docker image be done please ?

Done with the preview-cache-avatar tag

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

v2.0.0
GitHub release

Your semantic-release bot :package::rocket:


Changed the name timeline to feed and added login and logout functionality

@akshgpt7 so I am unable to figure out forms and all for sign up but I made the view for it. I checked login and logout they are woking after adding posts and users

Looks good. There need to be some changes in the URL routing, but I'll do that.
Merging it now!


Limited FPS in full screen

Issue Type: Performance Issue
VS Code version: Code - Insiders 1.40.0-insider (f5d3ffa6a0d655c87e1eb0e1e90773df58f7ff25, 2019-10-23T05:25:50.857Z)
OS version: Windows_NT x64 10.0.19002
Note: also happens with latest stable as of now (1.39.2) on the same system.

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz (12 x 3300)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.91GB (5.03GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions: none

Steps to Reproduce:

Open Developer Tools -> Rendering and tick FPS meter.
Open a blank file.
Enter full screen.
Hold down a key on your keyboard so that a character gets inserted into the file repeatedly.
Exit full screen and try step 4 again.

Notes:

1 is optional, just used to verify this. There's the same perceived lag without Devtools open.
The issue happens in any scenario when there's a more intensive animations going on, holding down a letter is probably the simplest to reproduce assuming a fast enough repeat rate (another example is dragging the minimap slider to scroll through a large file).

Expected result: both scenarios should show the same performance.
Actual result: Judging by the FPS meter, full screen framerate tops out at about 36-37 FPS, windowed mode reaches 59-60 FPS (on a 60 Hz screen).
Does this issue occur when all extensions are disabled?: Yes
Does this issues occur with an empty settings.json file? Yes
Edit: the issue seems to be affected by resolution. Initial testing (when the issue occurred) was done on a WQHD (2560x1440) screen. The issue does not manifest on a smaller (1680x1050) screen.

VSCode is built on top of a large number of components that are not maintained by the VSCode team directly. This includes:

Electron as the cross platform UI framework
node.js for most integration into the OS
Chromium as runtime and rendering engine (HTML, CSS, JS)
and after all, the operating system VSCode is running on

Reading this issue, it seems to originate not from VSCode itself but rather one of these upstream components. As such, in order to resolve it, it would need to get fixed in the upstream component. I will go ahead and close this issue and kindly ask to report this issue to the upstream component if possible:

for UI, OS integration: https://github.com/electron/electron
for Rendering: https://bugs.chromium.org/p/chromium/issues/list
for file IO: https://github.com/nodejs/node

Thanks for understanding.

Thanks for the pointer.
I think I managed to narrow down the issue to some extent. It seems that this is indeed a Chromium bug - as it turns out it also exists in several Chromium-based browsers.
Running VSCode with a --use-angle=d3d9 as a command line argument (that's a Chromium flag) seems to be a workaround at the expense of slightly different rendering.

Turns out it might have been a Windows issue. Just updated from 19008 to 19013 and saw the changelog mentioning a fixed issue about full screen apps and frame skipping. Both browsers and VSCode are now running fine in full screen without any flags.


change to match by both op and name

Why do we need match by name?

it's safer. Some times you can use the same op for different ingrad

I assume it is not safer, since there is no requirements in the naming spec. Supporting this will enable ops that relies on this feature(which is not very reliable) we should not do this unless there is a concrete op that does so

reverted.
please have a look at the rest


Update scaling pipeline after PR# 1900

Update scaling pipeline after PR# 1900

[x] I have read and checked the items on the review checklist.

bors r+


[IMP] Add cookie support to Client

Why a jsonrpc library would need to deal with cookies? what is your use case?

Because your JsonRPC library handle the HTTP connection by itself. And cookie is a part of HTTP needed in some case. Like HTTP auth. (I have not used HTTP Basic authentication since about 20 years but I use cookie everyday)
I use your library (Client.php) to connect to an Odoo server (formerly know as OpenERP) it is an OpenSource ERP.
https://www.odoo.com
https://github.com/odoo/odoo
Odoo need session and session in Odoo are working with cookie. (Session ID is stored in a cookie, like almost every website on internet).
You need to login first, then all transactions are linked to your session without having to login again.
Without this it is impossible to interface with Odoo. I tested before, It wasn't working, I directly think about cookies. And with this version everything work perfectly, I have inserted more than 50000 records and about 2,5GB of data using your library + cookie.
Thank you for your work.


[Bug] Disjunctions with correlated predicates are not supported

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
doris 2.0.1
What's Wrong?
create table sql：

CREATE TABLE example_tbl (
user_id largeint(40) NOT NULL COMMENT '用户id',
username varchar(50) NOT NULL COMMENT '用户昵称',
city varchar(20) NULL COMMENT '用户所在城市',
age smallint(6) NULL COMMENT '用户年龄',
sex tinyint(4) NULL COMMENT '用户性别',
phone largeint(40) NULL COMMENT '用户电话',
address varchar(500) NULL COMMENT '用户地址',
register_time datetime NULL COMMENT '用户注册时间'
) ENGINE=OLAP
UNIQUE KEY(user_id, username)
COMMENT 'OLAP'
DISTRIBUTED BY HASH(user_id) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"storage_format" = "V2",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false"
);

select sql：

CREATE TABLE example_tbl (
user_id largeint(40) NOT NULL COMMENT '用户id',
username varchar(50) NOT NULL COMMENT '用户昵称',
city varchar(20) NULL COMMENT '用户所在城市',
age smallint(6) NULL COMMENT '用户年龄',
sex tinyint(4) NULL COMMENT '用户性别',
phone largeint(40) NULL COMMENT '用户电话',
address varchar(500) NULL COMMENT '用户地址',
register_time datetime NULL COMMENT '用户注册时间'
) ENGINE=OLAP
UNIQUE KEY(user_id, username)
COMMENT 'OLAP'
DISTRIBUTED BY HASH(user_id) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"storage_format" = "V2",
"disable_auto_compaction" = "false",
"enable_single_replica_compaction" = "false"
);

Error：

errCode = 2, detailMessage = Disjunctions with correlated predicates are not supported: b.user_id = a.user_id AND b.username = 'b' AND $a$1.$c$1 OR $a$2.$c$2

What You Expected?
I hope you can help investigate, thank you
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Did I forget to send the wrong select sql?

Maybe you're reading the version wrong. I ran your sql successfully in 2.0.1, but failed in 2.0.0
You can show backends \G
and upgrade.

my version is 2.0.1-rc04，It's the same as yours，What are the special configurations differences between your 2.0.1 and 2.0.0 verion

 @ixzc my version is 2.0.1-rc04，It's the same as yours，what are the special configurations differences between your 2.0.1 and 2.0.0 version. thank you

you can add my wechat:Faith_xzc

@ixzc

The first code block creates a table named example_tbl with columns such as user_id, username, city, age, sex, phone, address, and register_time. The second code block is a SQL query that selects all records from the table where the username is ‘a’ and there exists a record in the same table with the same user_id as the selected record and username ‘b’, and there exists a record in the same table with the same user_id as the ‘b’ record and username ‘c’, or there exists a record in the same table with the same user_id as the ‘b’ record and username ‘d’. However, this code will result in an error: “Disjunctions with correlated predicates are not supported: b.user_id = a.user_id AND b.username = ‘b’ AND $a$1.$c$1 OR $a$2.$c$2”.


Add test cases

Any body ??? ^^

I can help with this. Is there a testing framework you wanted to use, otherwise I was going to use jasmine

that would be awesome!
and jasmine is fine 👯

sounds good, Ill submit a PR soon

thanks. i try to check them on sunday + connection to travisci.


Need help to load 2 snippets for one language

Hi, I've been customizing my forked repo for writing equations in Markdown. I've been using the autofill function in VS Code, but it's slow. Additionally, I'm accustomed to Vim keybindings. I'd like to know how to add two paths in the package.json file for a single language. This would allow me to include GitHub-supported LaTeX functions from another file, which can be loaded alongside the Markdown snippets.

Doing the same from this section of the README should work https://github.com/rafamadriz/friendly-snippets#add-snippets-from-a-framework-to-a-filetype

Doing the same from this section of the README should work https://github.com/rafamadriz/friendly-snippets#add-snippets-from-a-framework-to-a-filetype

I might be too dumb but I couldn't manage to make it work. Could you provide a code snippet for this? thanks

Doing the same from this section of the README should work https://github.com/rafamadriz/friendly-snippets#add-snippets-from-a-framework-to-a-filetype

I might be too dumb but I couldn't manage to make it work. Could you provide a code snippet for this? thanks

Hey update here, I got a way around to do it but it doesn't quite fulfil my expectations.
The image on the right shows a screenshot from my forked repo. As you can see, it uses multiple instances to check if a file is markdown or not which is inefficient if you want to make adjustments to the filetype as a whole.
To go in brief, all the markdown snippets are stored in ./snippets/markdown/ directory (work on halt due to my exams) and later modifications are to be expected. Haven't been thinking of pushing these commits to the main directory because not everyone is like me who uses github to store the school notes.

Note that I haven't been checking the repo at all and I almost forgot how the framework works.


Missing MainActor warning when MainActor is implied through inheritance

Description
The included code is a reduction of an actual issue I had in a production app while migrating to Swift 6. I've made the example as small as possible.
If you compile the code as is (with Xcode 16 beta 2), it generates the following error on line 5:
Main actor-isolated property 'delegate' can not be mutated from a non-isolated context
This makes sense to me.
However, if I remove the explicit @MainActor annotation on line 5, the code then compiles successfully. But UIView (the parent class of ThumbnailView) is itself @MainActor, so ThumbnailView should automatically be @MainActor, and I should get this warning without having to annotate the class manually.
Reproduction
import UIKit

protocol ThumbnailViewDelegate: AnyObject {}

@MainActor
class ThumbnailView: UIView {
  var delegate: ThumbnailViewDelegate? = nil
}

class Grid: UIViewController {
  private var thumbnailView: ThumbnailView!

  init() {
    self.thumbnailView = ThumbnailView(frame: .zero)

    super.init(nibName: nil, bundle: nil)
  }

  required init?(coder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
  }

  deinit {
    self.thumbnailView?.delegate = nil
  }
}

Expected behavior
I should get the same warning whether or not I add the redundant @MainActor annotation to ThumbnailView (because it inherits from a MainActor
Environment
swift-driver version: 1.110 Apple Swift version 6.0 (swiftlang-<IP_ADDRESS>.52 clang-16<IP_ADDRESS>.3)
Target: arm64-apple-macosx14.0

Additional information
Also reported as FB14237108

@moreindirection are you compiling with -strict-concurrency=complete? This is expected behavior under minimal concurrency checking, because the @MainActor annotation on UIView is considered to be @preconcurrency.

I see the reported behavior only with minimal checking. When you turn on complete checking or Swift 6 mode, the diagnostic comes back. This is expected behavior because UIView is imported from ObjC, so it is considered @preconcurrency. Diagnostics from @preconcurrency @MainActor annotations are suppressed in minimal checking.

Thanks @hborla. I was using minimal checking only. I thought turning on Swift 6 mode and the "Upcoming Features" settings was basically turning on complete checking, but now I see that it doesn't.
I can confirm that the problem goes away under complete checking - thanks for responding!


[Sands of Salzaar] I'm a noob please help

I have used this plugin in other games and everything was great. And there was a problem with this. Only a very small part of the text is translated. Settings menu, developers.

What is really needed is not translated

All frameworks are included, XUnity.AutoTranslator-MelonMod-IL2CPP-5.2.0, melonloader latest version.
If someone more advanced can help, I'll be eternally grateful.

I've had a similar problem with translations only being generated for the first few minutes of the game loading.

I don't think it's all that simple. The translation works, during the game some pop-up messages "You entered the location Such and such", "Received such and such resources" are translated. How did you solve your problem?


Typings for functions returning setof

Feature request
Is your feature request related to a problem? Please describe.
Currently, functions returning setof <table> aren't properly typed, e.g. returns unknown.
Describe the solution you'd like
I noticed that /functions endpoint already resolves the return_type properly to <table-name> so I'm not sure if this is actually a bug or just not implemented yet. As the tables types will already be generated anyways I imagine it should be "easy" to copy them over?
I wonder if this might be intentional, but I can't think of any reason why it would be. However, I don't want to rule out the possibility that I'm missing something here, and I'm curious about your opinion.
Describe alternatives you've considered
Manually casting the type.

Awesome!
Does the cli actually use the postgres-meta endpoint so this will automatically land in cli type generation as well or does it need additional implementation?

For --local we need to bump the version here. For --project-id we need to update the version internally - I'll loop back here once we do (prob early next week).

Update: this should be out now on the platform and on the CLI :)

Amazing, thanks for the update!


[Feature Request] fibonacci series in DP

🚀 Feature Request
Want to add Fibonacci in DP

Would you like to work on this feature?

[x] Yes
[ ] No

/assign


show new card when adding one

In GitLab by @lakhoune on Apr 11, 2020, 15:51

In GitLab by @lakhoune on Apr 11, 2020, 15:54
assigned to @lakhoune

In GitLab by @lakhoune on May 9, 2020, 22:19
mentioned in commit 0e9d707427bb9b1c5d723b4ad92c1b83c675ed14

In GitLab by @lakhoune on May 9, 2020, 22:19
closed

In GitLab by @VerwaltungHilton on May 15, 2020, 22:57
Do not forget to mark the social service as verified                  here


[phpstan-rules] Removed missing config-files from README.md

Starting from version 10.2.6 the following config files were removed (I assume they have been included somewhere else?):
File 'vendor/symplify/phpstan-rules/config/services-rules.neon' is missing or is not readable.
File 'vendor/symplify/phpstan-rules/config/size-rules.neon' is missing or is not readable.
File 'vendor/symplify/phpstan-rules/config/string-to-constant-rules.neon' is missing or is not readable.
File 'vendor/symplify/phpstan-rules/config/symfony-rules.neon' is missing or is not readable.
But the above files were still in the readme.

Thank you 👍 I forgot to remove those

Related PR with removal of these configs:
https://github.com/symplify/symplify/pull/4055


[upstream contribution] Support ormb in Seldon Core and KFServing

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind bug
/kind feature

What happened:
ormb should be able to be used in KFServing and Seldon Core to pull/push models.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:

/priority p0

https://docs.seldon.io/projects/seldon-core/en/v1.1.0/developer/community.html

Seldon Core already supports multiple storage backend here github.com/SeldonIO/seldon-core/python/seldon_core/storage.py, thus it should not be hard to support ormb.
Doc is here https://docs.seldon.io/projects/seldon-core/en/v1.1.0/reference/release-0.4.0.html?highlight=s3#prepackaged-model-servers

Is there any upstream tracking issue?

No, going to request a demo show slot in seldon core community call. Now do not have the bandwidth for it currently. I think we should have a blog post in English for it first, then the community members can know more about our project.

ok, SGTM

We decide to implement it in our fork first to provide the end-to-end prototype.

Ref #34
KFServing and Seldon Core download the model using Python code. Now we will implement our own initializer using Golang.

We have to fork the seldon-core to support auth for ormb. Ref https://github.com/gaocegege/seldon-core/pull/2

Now we succeed to run Seldcon Core deployment with ormb in gaocegege/seldon-core#2 . But we have some modifications for it. Maybe we should try to:

Investigate if we can use the config here to replace aws with ormb https://github.com/gaocegege/seldon-core/blob/ormb/operator/config/manager/configmap.yaml#L14

We do not need to modify seldon core code. Things we need to do for the issue is to present it in Seldon Core community.

ref #44


Update version check logic to support new version output

Check List

[X] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #20236 into master will increase coverage by 0.09%.
The diff coverage is 75%.

@@            Coverage Diff             @@
##           master   #20236      +/-   ##
==========================================
+ Coverage    19.9%      20%   +0.09%
==========================================
  Files          55       55
  Lines        1437     1440       +3
  Branches      218      219       +1
==========================================
+ Hits          286      288       +2
  Misses       1138     1138
- Partials       13       14       +1

Impacted Files
Coverage Δ

tool-plugins/vscode/src/core/extension.ts
28.64% <75%> (+0.58%)
:arrow_up:

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 16930f5...b970c06. Read the comment docs.


Support DID initialState query parameter

Peer DID method defines the usage of the initialState query parameter

Special Handling of Peer DIDs eliminated
https://didcomm.org/book/v2/whatsnew

Currently, we communicate such initial state as part of the Out-of-Band Invitation i.e. DID Document attachment
We could move the information contained in the DidDoc to the initialState parameter. This might be slightly more "standard" but did:foo:xyz?initialState=xyz... would actually be just as proprietary to this project as the attached DidDoc was.
Perhaps we need to wait for the next iteration of did:peer or some other did method to define this properly


Update Get-EXOMailboxFolderPermission.md

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

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

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/powershell-v2-module/Get-EXOMailboxFolderPermission.md
:white_check_mark:Succeeded
View (exchange-ps)

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


Update scripts and README to support UI API information

Yes, this is just a temporary workaround.  I would imagine it will be a sprint or two before we see the change in the UI.  I have made the 'https://' conditional, if the user enters 'https://' then it's accepted, if the user hasn't entered it then it's appended to the URL.
I have also made a further change to the README, does it make it more clear?

Yes, this is just a temporary workaround.  I would imagine it will be a sprint or two before we see the change in the UI.  I have made the 'https://' conditional, if the user enters 'https://' then it's accepted, if the user hasn't entered it then it's appended to the URL.
I have also made a further change to the README, does it make it more clear?


Code Suggestion: Smarter filterNil operator

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior
The filterNil operator is great, but I just switched on strict mode for typescript and wow do I have a lot of things to fix! That's my own fault, but when correcting my code surrounding filterNil I realized it would be very easy to make a filterNil operator that removes the nullability of the input type.
Currently filterNil just passes through the original T, so you still have to check for nulls later.
Suggested behavior
FilterNil should remove undefined | null from the input type.
My implementation of this is below.
The only changes are:

The name (so it's easy to test)

You have to do pipe(filterNil()) and not pipe(filterNil)

No change to the predicate runtime logic

The 'fix' is all done by the added typescript type annotations.
export const filterNil2 = <T>(): OperatorFunction<T | null | undefined, T> => (source) => {

          // note usage of 'value is T' type guard
          return source.pipe(filter((value): value is T => {

                // same exact predicate from filterNil
                return value !== null && typeof value !== 'undefined';

          }));
      };

Then you run it like this:
export const filterNumbers = from([ 0, 42, 43, 44, undefined, 46 ]).pipe(

  tap(x => {

      x;  // typeof x here is number | undefined
  }),

  filterNil2(),

  tap(x =>
  {

      x;   // typeof x is now number!

      if (!x)
      {
         // x can only possibly be 0 here
         x;
      }

      if (typeof x === 'undefined' || x === null)
      {
          // this is unreachable (as it should be)
          const verifyUnreachable: never = x;
      }

  }));

I don't see any obvious downside of this, except for revealing bugs. With the subtleties of typescript there can always be something, but I think this could be very useful. Would need to test in both strict and non-strict mode.

I'm using Akita<EMAIL_ADDRESS>and found that the filterNil utility still doesn't indicate that it removes null and undefined from the possible returns.
I corrected it using module augmentation, but it seems like it should have been included in this issue.
declare module "@datorama/akita" {
    type Diff<T, U> = T extends U ? never : T; // Remove types from T that are assignable to U
    export const filterNil: <T>(source: Observable<T>) => Observable<Diff<T, null | undefined>>;
}

The current version works for me. Can you show a stackblitz example, please?

I couldn't use Stackblitz because you get no control over tsconfig, at least not that I was able to see. So I did it in codesandbox.io, same diff but can enable strict mode which is obviously a requirement to see null differentiated.
https://codesandbox.io/embed/keen-sun-2zork

Why it infers the type as any?

I think you have to say "Open in CodeSandbox" on the left to get it to actually run TS. I'm not sure, I'm not an expert at these tools.

Ok, you're right. Do you want to create a PR, or I will add it?

Is my solution good for you?

Yes, but it needs to be done in the source code without the declare module thing.

type Diff<T, U> = T extends U ? never : T; // Remove types from T that are assignable to U

/**
 * @example
 *
 * query.selectEntity(2).pipe(filterNil)
 */
export const filterNil = <T>(source: Observable<Diff<T, null | undefined>| undefined | null>) => source.pipe(filter((value): value is T => value !== null && typeof value !== 'undefined'));

Add the Diff type to the types file.

Requests updates applied.


Change nat-elim to take a Kan code as an argument

This is required for implementing nat-elim of fhcom.

resolved by #84


E3002 Invalid Property Resources/Bucket/Properties/LoggingConfiguration/TargetObjectKeyFormat

CloudFormation Lint Version
0.83.3
What operating system are you using?
Mac
Describe the bug
AWS::S3::Bucket LoggingConfiguration should allow TargetObjectKeyFormat

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-loggingconfiguration.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-targetobjectkeyformat.html

Expected behavior
TargetObjectKeyFormat should be allowed in AWS::S3::Bucket LoggingConfiguration
Reproduction template
AWSTemplateFormatVersion: 2010-09-09

Resources:
  Bucket:
    Type: AWS::S3::Bucket
    DeletionPolicy: Retain
    Properties:
      BucketName: my-bucket
      BucketEncryption:
        ServerSideEncryptionConfiguration:
        - ServerSideEncryptionByDefault:
            SSEAlgorithm: AES256
      LifecycleConfiguration:
        Rules:
        - Id: Expire in 1 year
          Status: Enabled
          ExpirationInDays: 365
      OwnershipControls:
        Rules:
        - ObjectOwnership: BucketOwnerEnforced
      PublicAccessBlockConfiguration:
        BlockPublicAcls: true
        BlockPublicPolicy: true
        IgnorePublicAcls: true
        RestrictPublicBuckets: true
      LoggingConfiguration:
        DestinationBucketName: my-destination-bucket
        LogFilePrefix: s3-logs/
        TargetObjectKeyFormat:
          PartitionedPrefix:
            PartitionDateSource: DeliveryTime

Not included in the specs for us-east-1 from https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json

Still not in the latest spec as of 2023/12/24


Favourite

Carly I have created the CRUD for favs and a basic UI
As well I added the basic icon and logic for the favorites icon for every Pokémon card,
Create with this a check for the favorite system.

Ok,Ive added a a so that the handler buttons checks whether a Pokémon is in favorites,add or remove it based on that,and turn the fav button red'


Fmt chng

Summary
Changed shell script format to better match Google Bash Style Guide. Mainly changed tabs to two spaces; also corrected two misspelled words within Markdown documents.
Ticket Link

This PR is not related to an issue/ticket

Hello @wf6DJd8a3xSSCZbn,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.


Write tests in metamask forked repo

Ledger and Trezor both have a series of associated tests to getting a hardware wallet connected. These tests are written across three files in the metamask-extension repo:

[ ] app.spec.js
[ ] metamas-controller-test.js
[ ] from-import-ui.spec.js

We need to write analogous tests to Ledger/Trezor in there and be able to run the test suite successfully

Not needed


Bug: text flickering when resizing screen.

Problem
Strange text flickering with minimal settings.

Happens with this:
text.Draw()
ebitenutil.DebugPrintAt()
text.DrawWithOptions()

And this:
ebiten.SetWindowResizingMode(ebiten.WindowResizingModeEnabled)
ebiten.SetFPSMode(/* any value, can be ignored */)
if err := ebiten.RunGame(/* your text rendering functions */); err != nil {
	log.Fatal(err)
}

Specs
require github.com/hajimehoshi/ebiten/v2 v2.3.3

inxi -Fxz

System:
  Kernel: 5.4.0-91-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
  Desktop: Cinnamon 5.0.7 Distro: Linux Mint 20.2 Uma
  base: Ubuntu 20.04 focal
Machine:
  Type: Desktop Mobo: ASRock model: B450 Pro4 serial: <filter>
  UEFI [Legacy]: American Megatrends v: P3.60 date: 07/31/2019
CPU:
  Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen
  L2 cache: 3072 KiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  bogomips: 86238
  Speed: 2196 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2196 2: 2196
  3: 2195 4: 2196 5: 2195 6: 2196 7: 2196 8: 2196 9: 2195 10: 2196 11: 2196
  12: 2196
Graphics:
  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
  driver: amdgpu v: kernel bus ID: 0c:00.0
  Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati
  unloaded: fbdev,modesetting,radeon,vesa resolution: 2560x1440~60Hz
  OpenGL: renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.35.0
  5.4.0-91-generic LLVM 12.0.0)
  v: 4.6 Mesa 21.0.3 direct render: Yes
Audio:
  Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel
  bus ID: 0c:00.1
  Device-2: AMD Starship/Matisse HD Audio vendor: ASRock
  driver: snd_hda_intel v: kernel bus ID: 0e:00.4
  Device-3: Realtek USB2.0 Microphone type: USB
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 3-1:2
  Sound Server: ALSA v: k5.4.0-91-generic
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: ASRock driver: r8169 v: kernel port: d000 bus ID: 09:00.0
  IF: enp9s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IF-ID-1: br-ed9eba69972d state: down mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
Drives:
  Local Storage: total: 2.41 TiB used: 976.98 GiB (39.7%)
  ID-1: /dev/nvme0n1 vendor: Silicon Power model: SPCC M.2 PCIe SSD
  size: 953.87 GiB
  ID-2: /dev/sda vendor: Seagate model: ST9500325AS size: 465.76 GiB
  temp: 37 C
  ID-3: /dev/sdb vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB
  temp: 41 C
  ID-4: /dev/sdc vendor: Western Digital model: WDS120G2G0B-00EPW0
  size: 111.80 GiB temp: 46 C
Partition:
  ID-1: / size: 937.40 GiB used: 369.97 GiB (39.5%) fs: ext4
  dev: /dev/nvme0n1p5
Sensors:
  System Temperatures: cpu: 57.1 C mobo: N/A gpu: amdgpu temp: 48 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1215
Info:
  Processes: 494 Uptime: 8h 05m Memory: 15.57 GiB used: 13.99 GiB (89.9%)
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17
  inxi: 3.0.38

echo $XDG_SESSION_TYPE
x11

This seems to occur with any rendering using screen.Bounds().
This problem does not occur on MacOS.
A better demonstration of what's going on.
Linux Mint 20.2 Uma

Windows 10 Pro 10.0.19044 build 19044

@sedyh Could you try ac08ebe0804ede2cc674dadccfb3dde4e9cfec9d? Thanks,

Hello, yes, sure. I saw the post above. I'm waiting for my friend with windows who had a problem.
On my Linux machine, the situation still persists.
I'll write here as soon as we run the minimal example on his machine.

I think I'll give up updating the screen when resizing the window. This is pretty hard to implement it correctly. Instead, the behavior will be the default like just scaling the rendering result.

Note to myself: try https://developer.apple.com/documentation/appkit/nsview/1483514-layercontentsredrawpolicy?language=objc later

Sorry for the very long delay, it behaves the same at ac08ebe and v2.5.0-alpha.4.0.20221029084932-ac08ebe0804e.

@sedyh That's odd. Are you using DirectX or OpenGL?

it behaves the same at ac08ebe and v2.5.0-alpha.4.0.20221029084932-ac08ebe0804e.

Wait, both seem old. Please try alpha.11 or later.

Are you using DirectX or OpenGL?
Isn't newest versions uses directx by default on windows? Please remind me, how to check current runtime.

Please try alpha.11 or later.
Can I see commit hash? Because it was pulled from via @latest tag.

Isn't newest versions uses directx by default on windows? Please remind me, how to check current runtime.

Yes and no: if you don't install DirectX or GPU doesn't support it, OpenGL is used.

Because the second version was pulled via @latest tag.

@latest doesn't take an alpha version but a stable version. Try
go get<EMAIL_ADDRESS>

Yes and no: if you don't install DirectX or GPU doesn't support it, OpenGL is used.

Does ebitengine have any variable that says what it is currently using?
Does EBITEN_GRAPHICS_LIBRARY is used only to force runtime? Is it shows the current one?

Does ebitengine has any variable that says what it is currently using?

You can check the current graphics library with ReadDebugInfo

Ok, thanks. I'll try that later.

Oh, I see. It now only changes at the end of the resize.
Looks like it working for Win 10. Testring on Linux Mint 20.2.
ebiten.ReadDebugInfo(...) outputs DirectX

OK so the issue was fixed. (Smooth rendering on resizing the window again will be another task).

Actually, the flickering still happens with Windows 11 / DirectX (Ebitengine v2.5.4). It's just that since it's not continuous, only for a frame at the end of the resizing, it's much less noticeable. And then with OpenGL the screen doesn't even stretch, it stays the same and gets black borders.

What about v2.6.0-alpha.3?


Fix accentuation problems related in #109

[x] Fix
[ ] Tests

Close #109

Closing until the tests are finished.