text:
improve documentation with usage examples

I understand that this library is a work in progress, and a substantial amount of effort and work has and continues to go into bringing awesome functionality to life. So this isn't at all a criticism, but the documentation for public-facing apis, particularly in the modular math department, feels lacking. This has made it difficult to get started with the library.
Rust has one of the best documentation systems I've had the pleasure of using so far. If the code for some of the functions in the API is considered stable, and would benefit from documentation, Id like to propose that we begin to add usage examples. This will enhance the library by:

Improving readability of the public facing apis
speeding up onboarding to those who may be switching from other arbitrary-precision libraries by reducing the work of searching the code base
improve safety by documenting best practices in the usage examples
increase efficiency for the same reason as above. someone who needs a strong, constant-time library but might not have as much experience with advanced algorithms such as montgomery reduction, would benefit from having the documentation point them directly to the best tool for the job.

I fully acknowledge that this only makes sense if the functions we want to document are stable. If things are still developing and will dramatically change soon, we should we wait for stability.  If it makes sense to do all of this, I volunteer as tribute for this task if no one else feels strongly compelled. Here is a sample of some of my work from my own cryptosystem Ive built as an academic exercise in cryptographic algorithm design:
/// # Schnorr Signatures
/// Signs a [`Message`] under passphrase pw.
///
/// ## Algorithm:
/// * `s` ← kmac_xof(pw, “”, 512, “K”); s ← 4s
/// * `k` ← kmac_xof(s, m, 512, “N”); k ← 4k
/// * `𝑈` ← k*𝑮;
/// * `ℎ` ← kmac_xof(𝑈ₓ , m, 512, “T”); 𝑍 ← (𝑘 – ℎ𝑠) mod r
///
/// ## Arguments:
/// * key: &[`KeyPair`], : reference to KeyPair.
/// * d: u64: encryption security strength in bits. Can only be 224, 256, 384, or 512.
///
/// ## Assumes:
/// * Some(key.priv_key)
///
/// ## Usage
/// ```
/// use capycrypt::{
///     Signable,
///     KeyPair,
///     Message,
///     sha3::aux_functions::byte_utils::get_random_bytes,
///     curves::EdCurves::E448};
/// // Get random 5mb
/// let mut msg = Message::new(get_random_bytes(5242880));
/// // Get a random password
/// let pw = get_random_bytes(64);
/// // Generate a signing keypair
/// let key_pair = KeyPair::new(&pw, "test key".to_string(), E448, 512);
/// // Sign with 512 bits of security
/// msg.sign(&key_pair, 512);
/// ```
fn sign(&mut self, key: &KeyPair, d: u64) {
    self.d = Some(d);
    let s: Integer = bytes_to_big(kmac_xof(&key.priv_key, &[], 512, "K", d)) * 4;
    let s_bytes = big_to_bytes(s.clone());

    let k: Integer = bytes_to_big(kmac_xof(&s_bytes, &self.msg, 512, "N", d)) * 4;

    let u = EdCurvePoint::generator(SELECTED_CURVE, false) * k.clone();
    let ux_bytes = big_to_bytes(u.x);
    let h = kmac_xof(&ux_bytes, &self.msg, 512, "T", d);
    let h_big = bytes_to_big(h.clone());
    //(a % b + b) % b
    let z = ((k - (h_big * s)) % u.r.clone() + u.r.clone()) % u.r;
    self.sig = Some(Signature { h, z })
}

If there's a good reason not to do this right now, we can close this issue and move on. But I didnt see this in the current issues list and feel it would greatly benefit current and new users of the library. Thanks for your consideration, sorry for the long message.

What methods do you think would benefit from usage examples? Just a few examples (sorry for the repetition). Or, alternatively, for what usage scenarios it is unclear how to perform them, so that an example is needed?
Also if I may criticize your example a little:

There is no need to specify the types in the docstring when they are already available in the function signature.
If d can only take a few possible values, an enum may be a better choice.
"Assumes: Some(key.priv_key)" is not great from the usability perspective, this should be enforced by the types.

We've had several requests to improve documentation on this library and I agree it's a general problem. But I'm left feeling like @fjarri that I'm not sure what specific kinds of documentation would be helpful, and I've generally had trouble getting straight answers out of people as to what specific improvements they'd like to see.
There are already several toplevel usage examples. Some inline ones would probably make sense, but identifying where would be a first step.

Also if I may criticize your example a little:

There is no need to specify the types in the docstring when they are already available in the function signature.
If d can only take a few possible values, an enum may be a better choice.
"Assumes: Some(key.priv_key)" is not great from the usability perspective, this should be enforced by the types.

Thank you so much for this, this is very helpful to me as I learn best practices. Im building out a cryptosystem as an academic project and if you felt inclined I would invite you to give feedback on the rest of the repo :D

What methods do you think would benefit from usage examples? Just a few examples (sorry for the repetition). Or, alternatively, for what usage scenarios it is unclear how to perform them, so that an example is needed?

I dont know if this is helpful to you both but maybe the perspective I can share is someone who is coming from num-bigint /rug and is unfamiliar with crypto-bigint, specifically for modular multiplication and reduction.
Eventually I was able to come up with this:
let product_mod_p = montgomery_reduction(&a.mul_wide(&b), &Modulus::MODULUS, Modulus::MOD_NEG_INV);

The documentation for this function reads:
"Algorithm 14.32 in Handbook of Applied Cryptography https://cacr.uwaterloo.ca/hac/about/chap14.pdf"
And thats it, so here are the questions I had to answer on my own, that robust  documentation  may be able to address:

Is this function constant or variable time?
Is the result still in montgomery space or is another transformation required?
How to instantiate the modulus?
Why use this over const_rem?
How is R being determined and is it the best choice with respect to the modulus in this case?
Is this function even the best choice for modular reduction? Is there something else in the library that might work better for a different situation?

Ultimately Im looking at a repo like dalek  and seeing more text than code almost. I absolutely respect the value of intent revealing code but Im questioning if its safe to assume that someone who wants to take advantage of the benefits of crypto-bigint should be expected to answer the above questions on their own.
This is only one example, the rest of the standard operations (+, - etc) were simple enough to figure out. As I work with this library more I can pinpoint additional functions that may present similar questions regarding their usage.

What methods do you think would benefit from usage examples? Just a few examples (sorry for the repetition). Or, alternatively, for what usage scenarios it is unclear how to perform them, so that an example is needed?

Sorry for the essay, but my answer to this on my own work is usually "anything directly facing the caller should probably have an example of how we expect someone to use our library". Hope this helps and thanks again for taking the time to engage.

To answer this question:

Is this function constant or variable time?

https://github.com/RustCrypto/crypto-bigint#goals

Constant-time by default. Variable-time functions are explicitly marked as such.

I'm not sure if that's not clear enough or what. We can explicitly document that every function which doesn't end with *_vartime is constant time, but I think that gets overly redundant at some point.

I'm not sure if that's not clear enough or what. We can explicitly document that every function which doesn't end with *_vartime is constant time, but I think that gets overly redundant at some point.

I only bring it up because some functions do actually explicitly label themselves as constant time in the documentation, such as add_mod for example:
"Computes self + rhs mod p in constant time."
To a newcomer, this may suggest that a function could be variable time if it is not labelled as such in the documentation. But, I do agree with you that the readme is very clear and should be fine.

Honestly I wasn't even aware that montgomery_reduction() is public. I thought the public API is DynResidue/Residue. Which, to be honest, I always considered to be a confusing name for numbers in Montgomery space :) (and it doesn't help that it's put two level deep in crypto_bigint::modular::runtime_mod). So I guess that's one scenario - "How do I make my modulo operations faster?". montgomery_reduction() is more of a hazmat-type API, you really need to know what you're doing if you're touching it (and maybe we should hide it after all - since as you noticed there's no clear way of obtaining the necessary constants).

anything directly facing the caller should probably have an example of how we expect someone to use our library

I would disagree with that, most methods in crypto-bigint at least either mimic the methods of built-in integers or correspond to well-known mathematical operations. What we need is some tutorial answering to questions "how do I do <...>" (like the Montgomery example above).

I only bring it up because some functions do actually explicitly label themselves as constant time in the documentation, such as add_mod for example:
"Computes self + rhs mod p in constant time."

This should be fixed.

Honestly I wasn't even aware that montgomery_reduction() is public. I thought the public API is DynResidue/Residue. Which I always considered to be a confusing name for numbers in Montgomery space :) (and it doesn't help that it's put two level deep in crypto_bigint::modular::runtime_mod).

As a newcomer looking for a simple mul mod I dont know how I would ever have found this to be honest, and this is probably due to my own relative inexperience, but it doesnt seem terribly unrealistic to anticipate a 1:1 API with num-bigint for example when other operations in crypto-bigintseem to have such a mapping. (fully acknowledge the open mul mod issue)

I only bring it up because some functions do actually explicitly label themselves as constant time in the documentation, such as add_mod for example:
"Computes self + rhs mod p in constant time."

This should be fixed.

If you'd like someone to help with this I can open a PR and track down all the places where this is happening. Thanks for the attention to this.

So I guess that's one scenario - "How do I make my modulo operations faster?".

Agreed. Also, if DynResidue/Residue should be the correct way to achieve a modular reduction, showing it in action would be greatly beneficial. The documentation here appears to be substantially more concrete but an example demonstrating how DynResidue/Residue can be used to carry out a modular reduction would be fantastic.

Which I always considered to be a confusing name for numbers in Montgomery space :)

Open to better names... that one came from quite a bit of bikeshedding.

and it doesn't help that it's put two level deep in crypto_bigint::modular::runtime_mod

We can probably re-export the contents of both modules under crypto_bigint::modular which would be a purely additive change.
Perhaps we could remove pub from each of the modules in the next breaking release as well, which would fully flatten out those modules.

I only bring it up because some functions do actually explicitly label themselves as constant time in the documentation, such as add_mod for example:
"Computes self + rhs mod p in constant time."

This should be fixed.

Here is a simple PR that should address the documentation inconsistency.

Would something like this format be beneficial?
    /// Computes self / rhs, returns the quotient, remainder.
    /// ### Usage:
    /// ```
    /// use crypto_bigint::{U448, NonZero};
    ///
    /// let a = U448::from(8_u64);
    /// let b = NonZero::new(U448::from(4_u64)).unwrap();
    /// let res = a.div_rem(&b);
    ///
    /// assert!(res.0 == U448::from(2_u64));
    /// assert!(res.1 == U448::ZERO);
    /// ```
    pub fn div_rem(&self, rhs: &NonZero<Self>) -> (Self, Self) {
        // Since `rhs` is nonzero, this should always hold.
        let (q, r, _c) = self.ct_div_rem(rhs);
        (q, r)
    }

This example is helpful in this case because it is relatively easy to get started with a Uint, but it is unclear how to get a Nonzero. I needed to search the entire repo for an example in a unit test to find this:
let b = NonZero::new(U448::from(4_u64)).unwrap();

If we like this format, I can move through the rest of the repo where this might help, specifically in cases where the operation is happening on a type outside that of Self. An example of this sort might be redundant if you've already obtained the type needed in the operation.

I would argue that this is one of those methods where a usage example is not necessary. The information on how to create a NonZero is trivially obtained by clicking on NonZero in the argument list, proceeding to https://docs.rs/crypto-bigint/latest/crypto_bigint/struct.NonZero.html , and then looking at the first three methods. That is the beauty of doing things through types.

I would argue that this is one of those methods where a usage example is not necessary. The information on how to create a NonZero is trivially obtained by clicking on NonZero in the argument list, proceeding to https://docs.rs/crypto-bigint/latest/crypto_bigint/struct.NonZero.html , and then looking at the first three methods. That is the beauty of doing things through types.

I wont disagree, but its hard for me to get onboard with the idea that following that sequence of steps you just mentioned is easier than simply hovering over the function in an ide and having the correct, safe usage presented to you immediately.
Specifically, I struggled here because there is a new() and also a from() on the NonZero type. How do I know which one to use? Why is new() the correct usage to instantiate a NonZero while from() is used to instantiate other types like U448 for example? (I have the answer to this question now, but only after quite a bit of searching and work)
Im sympathetic to the argument though that if we're sacrificing ease of use to ensure that the user is absolutely sure about what theyre doing by guiding them through the docs in this way youve mentioned and forcing them to find the correct answers to those questions on their own, then maybe that does make more sense over what Im suggesting. I could see it increasing understanding of the library as a whole in some way I guess.

authors: drcapybara fjarri tarcieri

repo: RustCrypto/crypto-bigint


text:
can't install on termux android

target 'aarch64-linux-android' not found in channel.

On my termux install (proot arch) I successefully compiled from source and run it.

I can compile fine in vanilla termux, can you post the full error?

source: gharchive/issue

repo: RustPython/RustPython

license: MIT

license_type: permissive

license_source: github-api


text:
Add serverless functions talk

Add serverless functions talk from Rust meetup 2023-04

Thanks!

source: gharchive/pull-request

repo: RustVienna/meetup-history


text:
PyHDB doesn't work with Jython 2.7.0

Here is exception, which I get
>>> connection = pyhdb.connect(host="hana", port=30215, user="user", password="password")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/fedor/jenv/Lib/site-packages/pyhdb/__init__.py", line 30, in connect
    conn.connect()
  File "/Users/fedor/jenv/Lib/site-packages/pyhdb/connection.py", line 141, in connect
    agreed_auth_part = self._auth_manager.perform_handshake()
  File "/Users/fedor/jenv/Lib/site-packages/pyhdb/auth.py", line 50, in perform_handshake
    response = self.connection.send_request(request)
  File "/Users/fedor/jenv/Lib/site-packages/pyhdb/connection.py", line 84, in send_request
    return self.__send_message_recv_reply(payload.getvalue())
  File "/Users/fedor/jenv/Lib/site-packages/pyhdb/connection.py", line 98, in _Connection__send_message_recv_reply
    header = ReplyMessage.header_from_raw_header_data(raw_header)
  File "/Users/fedor/jenv/Lib/site-packages/pyhdb/connection.py", line 98, in _Connection__send_message_recv_reply
    header = ReplyMessage.header_from_raw_header_data(raw_header)
  File "/Users/fedor/jenv/Lib/site-packages/pyhdb/protocol/message.py", line 107, in header_from_raw_header_data
    raise Exception("Invalid message header received")
Exception: Invalid message header received

Same call works with normal Python

I'm sorry, I didn't test PyHDB with Jython. If you provide a pull request to fix this problem then I'm happy to review it.
Best regards
Christoph

On 24.05.2016, at 20:09, Fedor Tyurin notifications@github.com wrote:
Here is exception, which I get

connection = pyhdb.connect(host="hana", port=30215, user="user", password="password")
Traceback (most recent call last):
File "", line 1, in
File "/Users/fedor/jenv/Lib/site-packages/pyhdb/init.py", line 30, in connect
conn.connect()
File "/Users/fedor/jenv/Lib/site-packages/pyhdb/connection.py", line 141, in connect
agreed_auth_part = self._auth_manager.perform_handshake()
File "/Users/fedor/jenv/Lib/site-packages/pyhdb/auth.py", line 50, in perform_handshake
response = self.connection.send_request(request)
File "/Users/fedor/jenv/Lib/site-packages/pyhdb/connection.py", line 84, in send_request
return self.__send_message_recv_reply(payload.getvalue())
File "/Users/fedor/jenv/Lib/site-packages/pyhdb/connection.py", line 98, in _Connection__send_message_recv_reply
header = ReplyMessage.header_from_raw_header_data(raw_header)
File "/Users/fedor/jenv/Lib/site-packages/pyhdb/connection.py", line 98, in _Connection__send_message_recv_reply
header = ReplyMessage.header_from_raw_header_data(raw_header)
File "/Users/fedor/jenv/Lib/site-packages/pyhdb/protocol/message.py", line 107, in header_from_raw_header_data
raise Exception("Invalid message header received")
Exception: Invalid message header received
Same call works with normal Python

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

repo: SAP/PyHDB

license_source: bigquery


text:
Message missing when updating Payment Details Page

Environment Details
Spartacus: latest develop
Browser: Chrome 73.0.3683.86
OS: Mac Os
Happens on: http://dev-com-17.accdemo.b2c.ydev.hybris.com:4200/electronics-spa/en/USD/
Steps to Reproduce
Have at least 2 payment info saved
Go to MyAccount -> Payment Details
Set a card as "default" payment.
Delete a card.
Actual Result
No message is displayed.
Expected Result
Should have a message informing the user whether the actual was successful or not.

actually i like it this way, no message is better.

Yes we need consistency across all the MyAccount Pages.

authors: KateChuen Xymmer

repo: SAP/cloud-commerce-spartacus-storefront


text:
chore: Add Deprecation for Old Options

Relates SAP/cloud-sdk-backlog#669.
Add a deprecation to the options being removed in version 3.0.

Do we have the changes in the migration guide for v3 already somewhere? I think with 'x is removed and deprecated' should always mention how to do the replacement and the comments saying 'we now use middleware for that' seems not enough for me in that regard.
sure should be done on main so not as part of this PR, just wanting to make sure we don't forget.

Do we have the changes in the migration guide for v3 already somewhere? I think with 'x is removed and deprecated' should always mention how to do the replacement and the comments saying 'we now use middleware for that' seems not enough for me in that regard.
sure should be done on main so not as part of this PR, just wanting to make sure we don't forget.

I added a TODO to the parent ticket:https://github.com/SAP/cloud-sdk-backlog/issues/669

authors: FrankEssenberger fwilhe

repo: SAP/cloud-sdk-js


text:
Spring Boot 3 Migration: Parsing issue for public key used from java-security-test while decoding JWT token

Hi Colleagues,
In our WebSecuirtyConfig file, we have OAuth2 secuirty filter chain with custom Jwt decoder as shown below:
    public JwtDecoder getJwtDecoder() {
        XsuaaCredentials brokerXsuaaCredentials = brokerCredentials();
        XsuaaAudienceValidator customAudienceValidator = new XsuaaAudienceValidator(customXsuaaConfig());
        customAudienceValidator.configureAnotherXsuaaInstance(brokerXsuaaCredentials.getXsAppName(), brokerXsuaaCredentials.getClientId());
        return new XsuaaJwtDecoderBuilder(customXsuaaConfig()).withTokenValidators(customAudienceValidator).build();
    }

Now for the JWT token when the XsuaaJwtDecoder is invoked from spring-xsuaa-3.2.0 library, it attempts to verify the JWT token which is generated by JwtGenerator from java-security-test-3.2.0 library. The stack-trace shows that eventually the NimbusJwtDecoder is invoked which then attempts to parse the public key for verifying the token and this fails with the error "The modulus value must not be null".
at com.nimbusds.jose.jwk.JWKSet.parse(JWKSet.java:427)
Error Msg: Failed to retrieve JWK set. Invalid JWK at position 0: The modulus value must not be null
Please find attached image of stack trace.

Could you please guide us that how to proceed further from here?
Thank you very much!
Best regards,
Kamran

Hi Kamran,
Unfortunately we do not have the resources for consultation at the moment.
For this reason, we will update our guidelines for consultation support in the next days to move to a different place than GH issues.
Can you please try to pose your question on https://sap.stackenterprise.co/ as you seem to be an employee of SAP with access to this? Maybe someone else can you help you sooner. We will try to get to your question as soon as possible. I'm afraid I do not have an idea right off the bat what could be the issue here.

I have fixed the issue.
First fix: Our oauth/token_keys endpoint was returning the public key without additional attributes which are required by RSAKey.parse(final Map<String, Object> jsonObject) used from nimbus-jose-jwt-9.31 library which is dependency for XsuaaJwtDecoder from spring-xsuaa-3.2.0 library.
Original Response from end point oauth/token_keys which led to parsing issue with the usage of spring-xsuaa with migration however had no issue in previously used spring-security-oauth2 library
{
    "keys": [
        {
            "kty": "RSA",
            "value": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzI7Ysxdqxc9cQU58JYxW\nBeNVMbscuzp3wFrE8BmOt+i7FbijAskHYVo6fPxOcOH5usXc3hyhJvlB69T/+LF9\nkoqdLaTg05H2riYqtslek670MyC0TsCyUdgOAX/Qoj24KaU4JgRPxoApXWg7bVZ7\nPyRq8Nz3nVUGWrtv8+jxWUYEMf7q4N2tpsGKMyMVDUOgwi0vYAPg8PiyrB4gRJSQ\nl6skvE9twbflow9ut1MjywvQEkMLIBXA7TwmUR3IVqYvRvO46WaOTEqGaEgjTrMC\nwHp5sJNsrmH88WaAjMkxh4OLGX9QdZh6rJjFQGlw+COCEEZXB0TCIKL2KyTQNtl4\nEQIDAQAB\n-----END PUBLIC KEY-----"
        }
    ]
}

Partially fixed Response from end point oauth/token_keys - No public key parsing issue but still signature verification failed
..
    {
      "kty": "RSA",
      "e": "10001",
      "use": "sig",
      "kid": "default-kid",
      "alg": "RS256",
      "value": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm1QaZzMjtEfHdimrHP3/2Yr+1z685eiOUlwybRVG9i8wsgOUh+PUGuQL8hgulLZWXU5MbwBLTECAEMQbcRTNVTolkq4i67EP6JesHJIFADbK1Ni0KuMcPuiyOLvDKiDEMnYG1XP3X3WCNfsCVT9YoU+lWIrZr/ZsIvQri8jczr4RkynbTBsPaAOygPUlipqDrpadMO1momNCbea/o6GPn38LxEw609ItfgDGhL6f/yVid5pFzZQWb+9l6mCuJww0hnhO6gt6Rv98OWDty9G0frWAPyEfuIW9B+mR/2vGhyU9IbbWpvFXiy9RVbbsM538TCjd5JF2dJvxy24addC4oQIDAQAB",
      "n": "9b541a673323b447c77629ab1cfdffd98afed73ebce5e88e525c326d1546f62f30b2039487e3d41ae40bf2182e94b6565d4e4c6f004b4c408010c41b7114cd553a2592ae22ebb10fe897ac1c92050036cad4d8b42ae31c3ee8b238bbc32a20c4327606d573f75f758235fb02553f58a14fa5588ad9aff66c22f42b8bc8dccebe119329db4c1b0f6803b280f5258a9a83ae969d30ed66a263426de6bfa3a18f9f7f0bc44c3ad3d22d7e00c684be9fff2562779a45cd94166fef65ea60ae270c3486784eea0b7a46ff7c3960edcbd1b47eb5803f211fb885bd07e991ff6bc687253d21b6d6a6f1578b2f5155b6ec339dfc4c28dde49176749bf1cb6e1a75d0b8a1"
    }
..

Second fix: The RSASignature.engineVerify() from java base library (sun.security.rsa) validates the length of signature which uses modulus from the public key that had different length i.e. 384 instead of expected 256. In order to fix this, I had to also encode the modulus using Base64 encoding like public key.
Final Fixed response from oauth/token_keys endpoint
..
    {
      "kty": "RSA",
      "e": "AQAB",
      "use": "sig",
      "kid": "default-kid",
      "alg": "RS256",
      "value": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm1QaZzMjtEfHdimrHP3/2Yr+1z685eiOUlwybRVG9i8wsgOUh+PUGuQL8hgulLZWXU5MbwBLTECAEMQbcRTNVTolkq4i67EP6JesHJIFADbK1Ni0KuMcPuiyOLvDKiDEMnYG1XP3X3WCNfsCVT9YoU+lWIrZr/ZsIvQri8jczr4RkynbTBsPaAOygPUlipqDrpadMO1momNCbea/o6GPn38LxEw609ItfgDGhL6f/yVid5pFzZQWb+9l6mCuJww0hnhO6gt6Rv98OWDty9G0frWAPyEfuIW9B+mR/2vGhyU9IbbWpvFXiy9RVbbsM538TCjd5JF2dJvxy24addC4oQIDAQAB",
      "n": "AJtUGmczI7RHx3Ypqxz9_9mK_tc-vOXojlJcMm0VRvYvMLIDlIfj1BrkC_IYLpS2Vl1OTG8AS0xAgBDEG3EUzVU6JZKuIuuxD-iXrBySBQA2ytTYtCrjHD7osji7wyogxDJ2BtVz9191gjX7AlU_WKFPpViK2a_2bCL0K4vI3M6-EZMp20wbD2gDsoD1JYqag66WnTDtZqJjQm3mv6Ohj59_C8RMOtPSLX4AxoS-n_8lYneaRc2UFm_vZepgricMNIZ4TuoLekb_fDlg7cvRtH61gD8hH7iFvQfpkf9rxoclPSG21qbxV4svUVW27DOd_Ewo3eSRdnSb8ctuGnXQuKE="
    }
..

Happy to hear that, thanks for sharing your solution!

authors: finkmanAtSap kamranidrees


text:
Growing Feature for sap.m.ViewSettingsDialog

OpenUI5 version:
1.42.8
Browser/version (+device/version):
Any
Steps to reproduce the problem:

Create a Settings Dialog with ViewSettingsFilterItem
Bind a Gateway EntitySet to the items aggregator of ViewSettingsFilterItem
If EntitySet have more than 100 results only first 100 will be shown. There's no growing feature like in Facet Filters

What is the expected result?
Need to show more than 100 results (like in Facet Filters)

Hi @didierbueno ,
I believe that the problem is in the model itself - you can set the size by the "setSizeLimit" property (you can check it here: https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.Model.html#setSizeLimit
The default limit is set to 100 as described here:
https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.model.html
Best Regards,
Hristo

Hello @hristop
Is not a model problem, my EntitySet is huge and I can't set model sizeLimit property to 10000 (is the same model for all my entities). We just need to add the paging feature to the ViewSettingsDialog items lists (growing and growingThreshold).
We are using SAPUI5 and Netweaver Gateway for oData.
Best regards,
Didier

Hi @didierbueno ,
In this case we have opened internal incident: 1780068253.
Best Regards,
Hristo

@didierbueno We're facing the same issue. As a workaround for now we simply bind the items with length=<bigger_than_actual>, i.e. items="{path: '/EntitySet', length: 1000}. Not perfect but at least we get all entities.

Yes, but unfortunatly this lenght parameter is nowhere docuemented, cf. https://github.com/SAP/openui5/issues/1607

IMO it is at ManagedObject (https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ui.base.ManagedObject.html#bindAggregation).

Only sort of, since it is not clear if you can use all these parameter with all models and all aggregations IN BINDINGS eg in XML Views.
It's neither mentioned in https://sapui5.hana.ondemand.com/#docs/guide/91f057786f4d1014b6dd926db0e91070.html nor in https://sapui5.hana.ondemand.com/#docs/guide/6c47b2b39db9404582994070ec3d57a2.html

You're right. I'm kinda used to the trial & error approach when working with UI5. An improvement of the docs would be good.

@jonaszuberbuehler Thanks. As you said, is a workaround, but is not a final solution for our problem. We have more than 10000 rows and I don't want to sacrifice performance.

Hi, the incident have been solved. See SAP Note here:
https://launchpad.support.sap.com/#/notes/2514509

Hi @didierbueno ,
with which OpenUI5 version is this solved in which way? The note you linked only lists changes in some apps...
Thanks,
DerGuteWolf

I haven't found the solution on OpenUI5 Change Log, as you said it seems to be solved on specific apps, so I'm reopening the incident.

ALso facing the same issue

Has anyone managed to solve this problem?

Any proper solution to this? We are also facing the same problem: Having a list of 5.000 filter items which is freezing the UI on slower machines for 10 seconds at least.

Any solution for this issue? I have more than 10000 items in the filter. Open and closing the dialog freezes the UI and even the browser gets stuck.

authors: DerGuteWolf HatriGt RubensCesarPereira didierbueno hristop jonaszuberbuehler mrtwinkler suha-kajouk


text:
T9 scheduled update

closes #10

Merging. Closes SF Issue 10

repo: SAP/service-fabrik-boshrelease


text:
Map binary resultset to ArrayBuffer and test date mappings

Implements https://github.com/SAP/xsk/issues/1736 and https://github.com/SAP/xsk/issues/1735

This issue is closed as the project is no longer maintained

authors: dpanayotov tdermendjiev

repo: SAP/xsk


text:
Software programming error

Before working on a bundle, the worker punched the bundle card and the device (535) shows it’s working, after finishing the work, the worker passed the bundle with the card next station (557) and punched the card but the device showed “Go Back device 535” then again punching once in the previous device (535) and again punching on (557) device after that its shows working.

Solved by Software team


text:
Overwrites inventory

I have my EFF 20 pick that cost me $100 USD and I did /mcpainter imagemap link.png and it overwrote my pick and now it's gone. /mcpainter imagemap even works on blank inventory slots without a map allowing for eco exploits selling maps...
/mcpainter imagemap also overwrites my friends maps with my new images...

Regarding the first part: its by design.
Regarding the 2'nd part: you did not provide enough information. If you had a map in hand then its by design, if not this could mean you had run out of maps.

repo: SBPrime/MCPainter

license: mit


text:
pagecontent2tei.xsl: using xsl:initial-template causes problems with downstream packages

When trying to accept xsl:initial-template in a downstream package, there is an error:
Error at xsl:accept on line 24 column 88 of pagexml2tei.xsl:
  XTSE0080  Namespace prefix xsl refers to a reserved namespace
Error at xsl:accept on line 24 column 88 of pagexml2tei.xsl:
  XTSE3030  No template error-name exists in the used package

[x] Provide the logic of the current xsl:initial-template in a named template from the p2t namespace for downstream packages.
[x] Provide xsl:initial-template for backward compatibility and handy usage and pass over to the new named template.

marked the checklist item Provide the logic of the current xsl:initial-template in a named template from the p2t namespace for downstream packages. as completed

The logic is now in the named template pt2:collection-uri.

added 30m of time spent

mentioned in commit 61cd55d7e0f83e97bd9e841355147eb57319de1f

marked the checklist item Provide xsl:initial-template for backward compatibility and handy usage and pass over to the new named template. as completed


text:
Missing column from branch and price

Hello everybody, i am a little bit confused because i am trying to implement a branch and price but my variable are not present into the problem.
You can switch from adding by hand variable and the other form with the pricing model by setting to true or false the variable branchAndPriceMode in the main.
The problem is a minimalistic toy example where we just need to add var to a sum...
Maybe i am forgetting something in order to do branch and price ?
Any advice can be useful . Thanks in advance
from SDN_model import *

from pyscipopt import Model, exp, quicksum, quickprod, SCIP_PARAMSETTING, Conshdlr, SCIP_RESULT, Pricer
from pyscipopt import Constraint, Variable, Branchrule

from pyscipopt import SCIP_EVENTTYPE, SCIP_RESULT

class simpleGencolumn(Pricer):

    def __init__(self,m:Model,branchAndPriceMode_=False):
        self.model :Model= m
        self.branchAndPriceMode:bool=branchAndPriceMode_
        self.vars = []
        self.vars.append(self.model.addVar(vtype="I", lb=0, ub=1, name="v0"))
        # self.model.chgLzVarUB(vars[0],1)
        self.obj: Variable = self.model.addVar(vtype="C", lb=0, ub=100, name="obj")
        self.cons: Constraint = self.model.addCons(self.vars[0] - 3 <= 0,modifiable=True,propagate=False)
        self.model.addCons(self.vars [0]<=1)
        self.obj_cstr: Constraint = self.model.addCons(self.obj - self.vars[0] <= 0,modifiable=True,propagate=False)
        self.model.setObjective(-self.obj)

    def pricerredcost(self, *args, **kwargs):  # real signature unknown
        if len(self.vars)<4:

            v= self.model.addVar(vtype="I", lb=0, ub=1, name="v" + str(len(self.vars)),pricedVar=self.branchAndPriceMode)
            self.vars.append(v)
            #self.model.chgLzVarUB(v, 1)
            self.model.addConsCoeff(cons=self.cons,var= v,coeff=1)
            self.model.addConsCoeff(cons=self.obj_cstr,var=v,coeff=-1)
        return {'result': SCIP_RESULT.SUCCESS}

    def pricerfarkas(self, *args, **kwargs):
        print("farkass")
        return {'result': SCIP_RESULT.SUCCESS}
if __name__ == '__main__':
    m: Model = Model("test")

    branchAndPriceMode=False
    m.setPresolve(SCIP_PARAMSETTING.OFF)
    m.disablePropagation()
    m.setHeuristics(SCIP_PARAMSETTING.OFF)
    model = simpleGencolumn(m,branchAndPriceMode)
    if branchAndPriceMode:
        m.includePricer(model, "namepricer", "descr")
    m.optimize()
    if not branchAndPriceMode:
        m.freeTransform()
        model.pricerredcost()
        m.optimize()
        m.freeTransform()
        model.pricerredcost()
        m.optimize()
    print("var in model")
    for v in m.getVars():
        print(v.name, "=", m.getVal(v))

    print("var we should be in model")
    for v in model.vars:
        print(v.name, "=", m.getVal(v))

apparently this was overlooked by everybody. I don't think the question makes sense, but did you resolve the issue? I will close it while I wait for your reply

repo: SCIP-Interfaces/PySCIPOpt


text:
Inkonsistens i Base URL for DAWA Service

Hej,
Jeg har bemærket en inkonsistens i base URL for DAWA servicen. Dokumentationen peger på https://api.dataforsyningen.dk/ som base URL for servicen, men når dawa-autocomplete2 anvendes, bruges https://dawa.aws.dk/ som base URL.
Dette skaber udfordringer, når vi anvender autocomplete-komponenten på blandt andet kommunernes hjemmesider, da vi er nødt til at whiteliste domæner, der må kaldes fra siden. I øjeblikket er vi derfor nødt til at whiteliste både https://dawa.aws.dk/ (som ikke er dokumenteret) og https://api.dataforsyningen.dk/.
Har I planer om at skifte https://dawa.aws.dk/ til https://api.dataforsyningen.dk/, så det følger dokumentationen? Dette vil også løse forklaringsproblemet ved whitelisting af API endpoints.
På forhånd tak for jeres hjælp!

Hej
Dataforsyningen understøtter en række legacy endpoints
Det skyldes ændringer i organisation og andre forandringer der er foregået gennem de 25 år Dataforsyningen har eksisteret.
Nogle af disse ændringer har givet anledning til at et nyt endpoint er tilføjet de eksisterende endpoints.
dawa.aws.dk er den nyeste tilføjelse. dawa.aws.dk blev tilføjet i forbindelse med insourcing af DAWA. Autocomplete er en del af DAWA og dermed blev denne komponent insourcet i Dataforsyningen og kunne derefter også tilgås med api.dataforsyningen.dk.
Der er i praksis ingen forskel på om du benytte dawa.aws.dk eller api.dataforsyningen.dk
dawa.aws.dk og api.dataforsyningen.dk peger på den samme API gateway og understøtter identiske features.
De bedste hilsner
Jørgen Larsen de Martino

@DocDemar ja, det er forståeligt, men så går jeg ud fra at det vil forsat kræve whitelisting af to domæner, som vi vil melde tilbage til kommunerne.

authors: DocDemar kropsi


text:
User backend setup

Describe the task that needs to be done.
Setup User entity, DTO, repository, service and controller.
Describe how a solution to your proposed task might look like (and any alternatives considered).
User entity fields:

ID: uuid
Name: string
Email: string
pair: Pair
authCookie: String/Cookie

Endpoints:
Retrieving users
GET /users/{id}
Response:
200 OK w/ User Entity
Notes

What is the pair field representing?

What is the pair field representing?

The pair field will be a Pair entity which has 2 User instances.
We were thinking of having a User have a buddy field which would also be a User instance, but decided to avoid a self-referencing relationship.
Let me know if there's another way you'd prefer to store paired users :)

Okay that makes sense, I believe earlier on in the original project idea description, there was the concept of if users wanted to opt in for pairing, or if they would prefer to not.
Is this still a concept that is being considered for users?

Okay that makes sense, I believe earlier on in the original project idea description, there was the concept of if users wanted to opt in for pairing, or if they would prefer to not.
Is this still a concept that is being considered for users?

We discussed having a pairingActivated boolean field in the User Entity, but decided against adding that for the initial setup issue as we haven't discussed with pairing team yet, and thought we could add it in later issues (same with the timetable).
If your team is happy with a pairingActivated field, I'm happy to add it to this issue though!

I understand that reasoning completely, when you have time if you can create an issue, I think someone from my team would definitely be willing to take on the task of adding it, after the initial setup is all done if that is fine with you (otherwise happy to leave it with your team still as well!)


text:
Module 4 exercises_Stephen Nana Essuman

Please "drag & drop" exercise 1 excel file below.
Module 3_Ex 1.xlsx

Please "drag & drop" exercise 2 excel file below.
Module 3_Ex 2.xlsx

Please "drag & drop" exercise 3 pdf file below.
Module 4_Rank_Sum.pdf
Module 4_Rank_Reciprocal.pdf

Please UPDATE THE TITLE of this "Issue" in the title bar above with your name.

If you haven't done so, please go back to Module 4 and make sure to take
the post-training survey. Participating in surveys is required for receiving
the "GALUP Certificate" by the University of Florida.

Well done, Stephen. You clearly grasped the material outlined in Module 4 and successfully applied it to these exercises. Thank you for your participation! Please be sure to fill out the post-Module survey before you begin the next Module.

authors: JuliePeeling StephenNanaEssuman

repo: SERVIR-WA/GALUP


text:
refactor(idt): weak exception/interrupt symbols

Changed all our standard entry points for exceptions and interrupts
into weak symbols so that application/library code can overide
them.  These are the symbols that can now be over ridden can
be found in idt.h

@BetsyRT r+

@BetsyRT r+

:pushpin: Commit fa1dbc0 has been approved by handong32

:hourglass: Testing commit fa1dbc0 with merge 25b97cc...

:sunny: Test successful - runtests
Approved by: handong32
Pushing 25b97cc52a46cdd0c895cac854c3795100c4c5ac to master...

authors: BetsyRT handong32 jappavoo

repo: SESA/EbbRT


text:
Order selections product types by category and display order

PdsFile should return a category name and a display order priority for each product type. OPUS can use this to collate and sort the product type list on the selections page.

This requires a change to PdsFile.
Regarding the 99's, I have no basis for deciding whether Cassini CIRS should come before or after Voyager ISS. At that level the sort should be alphabetical. So I suggest we omit the first integer. Then we have four elements in our tuple. The first values could be...
"standard"
"browse"
"Voyager ISS"
"Cassini CIRS"
Then it's up to you to put "standard" first, "browse" second, sort the rest alphabetically, and insert "Products Specific to" or whatever other header text you want in front of the others.
That puts us here:
('standard', 0, 'raw', 'Raw Data'))
('standard', 10, 'raw', 'Raw Data (calibrated unavailable)')
('standard', 100, 'calibrated', 'Calibrated Data')
('standard', 110, 'calibrated', 'Calibrated Data (raw unavailable)')
('browse', 10, 'browse-humbnail', 'Browse Image (thumbnail)')
('browse', 20, 'browse-small', 'Browse Image (small)')
('browse', 30, 'browse-medium', 'Browse Image (medium)')
('browse', 40, 'browsse-full', 'Browse Image (full-size)')
('Voyager ISS', 10, 'vgiss-cleaned', 'Cleaned Data')
('Voyager ISS', 20, 'vgiss-geomed', 'Geometrically Corrected Data')
('Voyager ISS', 30, 'vgiss-reseau', 'Reseau Table')
('Voyager ISS', 40, 'vgiss-tiepoint', 'Geometric Tiepoint Table')
('Cassini CIRS', 10, 'cocirs-ispm', 'Observation Metadata')
('Cassini CIRS', 20, 'cocirs-poi', 'Footprint Geometry on Bodies')
('Cassini CIRS', 21, 'cocirs-rin', 'Footprint Geometry on Rings')
('Cassini CIRS', 30, 'cocirs-tar', 'Target Body Identifications')
('Cassini CIRS', 40, 'cocirs-geo', 'Planetary System Geometry'),

repo: SETI/pds-opus


text:
Design an automation solution for Membership naming along the lines of NPSP Opportunity naming

ACs:

Ability to specify any field from the Membership object, or any static value, or combination thereof to specify a Name field.
Use merge syntax that is as close to NPSP's Opportunity naming syntax as possible.
Build parsing and merging code (possibly copied from NPSP) to support this functionality in an Apex trigger.

Current version appears to use Lastname and Type of Individual even when a different type is selected (e.g. Household).

Merge with #58

authors: DebbieN-SF davidmreed tobiasaw34002


text:
Lucid Chart Review

Review of the Lucid Chart documentation. Extra eyes are needed so that nothing is missed. If you know this process, please review the documentation at this link and respond to this issue with updates that you believe need to be made.
CumulusCI - Lucid Chart

Got busy this week with a few other tasks so I'll look next week.

@brennanbutlerRAD overall this all looks great!  A few suggestions:
One Time Setup-Partner

Add a hyperlink to the create connected app in DevHub: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_connected_app.htm
I think I understand the repeating arrow on connected_app to cci service connect.  I don't quite understand the Alt text.  Consider changing to repeat for additional apps.

One Time Setup-Customer

Within the Github Desktop setup, I am not fully following the NPSP and enter URL for the Repository you need Flavors/Toppings.  Seems like it could be one step.  With a note of the common GitHub URLS - NPSP, EDA, EASY, Interactions, and Outbound Funds.

The rest of this section looks good.  Well done!
Develop in Org

Should the flow dev_org be used in place of qa_org?  I know both will get there.  Wanted to double check which one is best.
I always like to use the cci org default "org" to reduce commands.  Could add as a step after the flow.
With this, remove dev from cci org browser.

@brennanbutlerRAD - Re: One Time Setup - Customer: Are you referring to cloning a local copy of the project repository?

authors: Nickers3 brennanbutlerRAD jacebryan


text:
Why does SFML provide FindSFML.cmake instead of SFMLConfig.cmake?

The CMake way to make libraries available to other CMake projects is to install a configure file. This would be named either SFMLConfig.cmake or sfml-config.cmake and be installed to <install-prefix>/lib/cmake/sfml-2.3.1/.
This file is similar to a find script, but can be much simpler since its created at installation time and thus already knows where SFML is installed to. This script will be used automatically instead of the find script when another project looks for SFML via find_package().
It seems to me that installing a find script is an accidental misuse but there might be a reason I don't see. Is this intentional and if not, can be fix this? An example of how this can look like is the Assimp configure file.

Config files are indeed better. Don't hesitate to submit a PR :stuck_out_tongue:

Is it correct that such files would only be available if the user compiled and installed SFML himself? If so, that would be difficult for binary releases, especially when the install prefix can be anything.

No, look at the very first lines of the example he gave:
get_filename_component(_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_PREFIX "${_PREFIX}" PATH)
get_filename_component(_PREFIX "${_PREFIX}" PATH)
get_filename_component(ASSIMP_ROOT_DIR "${_PREFIX}" PATH)

The script extracts the current directory and then works only with relative paths.

I see, that's fair enough then.

It seems to me that installing a find script is an accidental misuse but there might be a reason I don't see.

I found out that they are only used if they are installed in /prefix/share/cmake/Modules/.
Normally cmake uses only FindXY delivered with it (path above) or delivered with the project which uses the XY-library.
So config files are really a good idea (but please install in /prefix/share/XYZ, cmake looks also there and /lib or /usr/lib should not contain config files. The FHS says: "/usr/lib includes object files, libraries, and internal binaries.")

Supporting binary releases requires some additional work indeed, since you have to find the third-party dependencies again on the new machine. But we already have the find scripts, so it's basically just calling those through find_package(). To locate the SFML binaries we could use find_library() which should handle the correct name prefixes and file extensions.

@LaurentGomila By the way, do you understand why Assimp use the line get_filename_component(_PREFIX "${_PREFIX}" PATH) twice? I'm playing around with config files a bit and maybe I can find the time to write one for SFML in the next days.

authors: LaurentGomila TankOs danijar susnux

repo: SFML/SFML

license: Zlib


text:
Build dependency libraries instead of bundling pre-built binaries.

Title.
In order to:

Improve toolchain compatibility (e.g. building with Emscripten)
Reduce maintenance effort of having to build and ship binaries
Reduce the size of the source archive
Allow more interesting dependencies (e.g. HarfBuzz) to be easily integrated in the future
Provide a better debugging experience by providing debug libraries and symbols of dependencies
Allow user compiler/linker flags to propagate down to the dependencies as well

This change gets rid of the packaged pre-built dependencies and builds them alongside the SFML modules.
It would be nice to get this into SFML 3 so that we have a clean environment to start adding some bigger features in SFML 4.
Currently the focus was on getting this to build successfully on CI, however more widespread testing will be necessary especially on more exotic platforms that we don't currently cover in our CI. The goal is to support as many platforms as is feasible as long as they are still considered somewhat up-to-date.

Another issue I am getting is that, when building imgui-sfml using
cmake .. -DIMGUI_SFML_FIND_SFML=1 -DSFML_ROOT="C:/OHWorkspace/SFML/build/install" -DIMGUI_DIR="C:/OHWorkspace/imgui" -DSFML_DIR="C:/OHWorkspace/SFML/build/install"

I get the following error
Call Stack (most recent call first):
  CMakeLists.txt:28 (find_package)

CMake Error at CMakeLists.txt:28 (find_package):
  Found package configuration file:

    C:/OHWorkspace/SFML/build/install/lib/cmake/SFML/SFMLConfig.cmake

  but it set SFML_FOUND to FALSE so package "SFML" is considered to be NOT
  FOUND.  Reason given by package:

  The following imported targets are referenced, but are missing:
  cpptrace::cpptrace Vorbis::vorbis Vorbis::vorbisfile Vorbis::vorbisenc
  FLAC::FLAC

Not sure what the right way of solving this one is.

I get the following error

Likewise. Not sure what the fix is either.

Oddly enough, I can fix that ImGui-SFML configuration error by adding the Audio component to the find_package(SFML call. Perhaps something about package component handling got broken.

Have you looked into CPM.cmake and whether it would offer a simpler implementation? For example, CPM.cmake will let you specify options for fetched projects that you do stuff like build a dependency as a static library while not affecting the value of BUILD_SHARED_LIBS in the consuming project. This removes the need to cache the value of that variable then careful restore it later.

The initial version of this change used CPM.cmake and as much as I would have liked to keep using it it very quickly falls apart when trying to add dependencies that can't be bothered to adhere to standard CMake practices. The fact that we have to patch many dependencies should already be a red flag that CPM.cmake isn't going to have a good time with them.

@binary1248 if have a bit of time, could you look at what's causing the error that is mentioned by Vittorio?
I really like to include this for the next RC, so that we have more than the SFML Team to try out this change.
In my opinion this is on the critical path. For one we've decided to move in this direction many years ago, but more importantly this will unlock a lot of new possibilities, things that have so far held back development for certain features like HarfBuzz or Opus support.
I don't think this should be held back for SFML 3.1 or similar, as it's quite a fundamental change in the dependency handling and will cause more issues, if users have to migrate between minor versions.

If someone could add the appropriate tests for this scenario to CI it would be easier to ensure this change or any future changes don't break this functionality. It would also make it easier for me to fix the outstanding issue/issues without having to make sure my local test environment matches what is expected.

If someone could add the appropriate tests for this scenario to CI it would be easier to ensure this change or any future changes don't break this functionality. It would also make it easier for me to fix the outstanding issue/issues without having to make sure my local test environment matches what is expected.

I added those tests two years ago.
https://github.com/SFML/SFML/pull/2206

Oddly enough, I can fix that ImGui-SFML configuration error by adding the Audio component to the find_package(SFML call. Perhaps something about package component handling got broken.

The problem is that this error only occurs if you omit the Audio component when calling find_package. Our install interface tests requests all components.
https://github.com/SFML/SFML/blob/e21ba4dc950bbe49a676d1dd5c8c1b3f604a438f/test/install/CMakeLists.txt#L16

I don't think this should be held back for SFML 3.1 or similar, as it's quite a fundamental change in the dependency handling and will cause more issues, if users have to migrate between minor versions.

Is it? Notice how all our CI build jobs still work without modification. What about users' workflows will change if we merge this?

I narrowed it down to the difference between using SFML_DIR and SFML_ROOT, the former we use in the install tests, thus it doesn't fail in CI.
Simple repo:

Build & install SFML to some directory:

cmake -S . -B build -DCMAKE_INSTALL_PREFIX=C:/Temp/SFML
cmake --build build --target install

Create the two files from below
Run CMake for the project: cmake -S . -B build -DSFML_DIR=C:/Temp/SFML/lib/cmake/SFML
Fail

It works if you run instead cmake -S . -B build -DSFML_ROOT=C:/Temp/SFML
CMakeLists.txt
cmake_minimum_required(VERSION 3.28)
project(CMakeSFMLProject LANGUAGES CXX)

set(SFML_STATIC_LIBRARIES ON)
find_package(SFML REQUIRED COMPONENTS Graphics Audio)

add_executable(main main.cpp)
target_link_libraries(main PRIVATE SFML::Graphics SFML::Audio)

main.cpp
#include <SFML/Graphics.hpp>

int main()
{
    auto window = sf::RenderWindow({1920u, 1080u}, "CMake SFML Project");
    window.setFramerateLimit(144);

    while (window.isOpen())
    {
        for (auto event = sf::Event(); window.pollEvent(event);)
        {
            if (event.type == sf::Event::Closed)
            {
                window.close();
            }
        }

        window.clear();
        window.display();
    }
}

I don't know if there is a solution to allow SFML_DIR.
Personally, I'm also fine to merge this as is and discourage usage of SFML_DIR in favor of SFML_ROOT.

Also, I asked on CMake's Discourse: https://discourse.cmake.org/t/problem-with-fetchcontent-dependencies-when-using-xyz-dir-xyz-root-works/12987

Tested it successfully locally. It's awesome to know that we no longer depend on pre-built binaries. The build time also doesn't seem to drastically increase for me.
We may want to consider updating some of the dependencies after this PR.

Remember when Bromeon opened an internal proposal for this in September 2015? 😄
Let's see what we broke with this change, but I'm excited to see all the possibilities ahead!

I want to mention a few observations as I update some projects to the latest state of master.

project(my_app CXX) no longer works. SFML requires a C compiler to build and for whatever reason that requirement isn't automatically inherited by projects that consume SFML via FetchContent. This generates a rather obtuse warning that I think many users will struggle to understand. Users must use project(my_app C CXX) or more simply project(my_app) to deal with this. I'm not aware of any action we can take to in the library itself fix this.
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_C_COMPILE_OBJECT
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_C_COMPILE_OBJECT
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_C_COMPILE_OBJECT
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_C_COMPILE_OBJECT
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_C_COMPILE_OBJECT
-- Generating done (0.1s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

Building SFML use to be very clean to nearly any warning you may apply. It's bad practice to build 3rd party code with warnings enabled but sometimes users do it accidentally. Now that we build lots of 3rd party code, enabling even basic warnings causes a lot of console output about SFML's dependencies. Again, no real action we can take but another thing users may notice in the transition.

I get a warning in 3rd party code and am not sure how to silence it. This is not a technical problem, but it looks a bit sloppy that building the library produces a warning. Maybe building our C deps with a newer C standard will fix this.
/Users/thrasher/Projects/mandelbrot/build/_deps/flac-src/microbench/util.c:79:11: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement]
   79 |         uint64_t duration = *end - *start;
      |                  ^
1 warning generated.


text:
Criar tela de gerenciar professores;

Descrição
https://www.figma.com/file/rbFwm0VzZ0VxUmGoFcEAeP/SIEHP?type=design&node-id=6-23&mode=design
Fazer baseado no Design do FIGMA, se atentar à resposividade e temas
utilizar a ChadcnUI se necessário
Não é necessário integrar no momento
Testes
Garantir compatibilidade com o design no FIGMA
GitFlow
Criar uma Branch a partir de: dev
É necessário abrir uma PR para as branchs a seguir:

[ ] main
[ ] dev

Utilizar Radix ao inves da chadcn

repo: SIEHP/siehp-webapp


text:
🛑 DNS1.electro is down

In be2f8bb, DNS1.electro (ns1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS1.electro is back up in 9074e14 after 8 minutes.

repo: SIRMaxis/uptime-robot


text:
🛑 DNS2.electro is down

In 7aef5b3, DNS2.electro (ns2.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS2.electro is back up in e06e74a after 7 minutes.


text:
🛑 DNS2.electro is down

In 1381b53, DNS2.electro (ns2.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS2.electro is back up in 5f2bdd0 after 10 minutes.


text:
🛑 DNS2.electro is down

In 9a9225f, DNS2.electro (ns2.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS2.electro is back up in bbc29f4 after 17 minutes.


text:
🛑 DNS1.electro is down

In f2bcec0, DNS1.electro (ns1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS1.electro is back up in 03c35c1.


text:
🛑 DNS1.electro is down

In 9fe6ae6, DNS1.electro (ns1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS1.electro is back up in 3f93194 after 48 minutes.


text:
🛑 DNS1.electro is down

In 1e5e7f3, DNS1.electro (ns1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS1.electro is back up in 7082bc8 after 49 minutes.


text:
🛑 DE Server is down

In 90f45fb, DE Server (de1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DE Server is back up in f9abb2d after 42 minutes.


text:
🛑 Website is down

In 213231d, Website (ELTeam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Website is back up in 3600a10 after 8 minutes.


text:
🛑 Website is down

In 6d038ef, Website (ELTeam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Website is back up in 7e20a86 after 43 minutes.


text:
🛑 DNS1.electro is down

In bdd9555, DNS1.electro (ns1.elteam.ir) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DNS1.electro is back up in a9742bd after 19 minutes.


text:
cannont import RBF

The error is "No module named smt.surrogate_models.rbfclib"
i find in the surrogate_models, cannot see rbfclib
please answer

I see the same issue,sorry

repo: SMTorg/smt


text:
Definition of Done

Create and approve Definition of Done

I might be able to find some material we used at my last workplace for this, if you need any inputs.
Good that u brought it up, definition of done is very important!!

definition_of_done.txt

authors: atamankina ericaivarsson

repo: SNDjango/server


text:
Auto-reload on code change

It seems to be possible to automatically reload the app, when the code changed (for example because the webhooks triggered git pull. That would make deployment way easier
http://flask.pocoo.org/docs/0.11/server/

closed via #20

repo: SOBotics/CopyPastor


text:
Travis-CI: try add Coverity tool

First try add Coverity Static analyzer to SOCI project.
Re-worked travis.yml to enable clang with allow_failures

:+1:

@mloskot At least now we can see warnings from clang :)

authors: mloskot snikulov

repo: SOCI/soci


text:
Missing 'key' for message with 'key' field sends by Producer

Bug Report
In producer.send(payload), if the payload is something like:
{
      topic: 'node-test4',
      messages: 'my test message',
      key: 'lowkey',
}

the key should be the message key, ref: https://github.com/SOHU-Co/kafka-node#sendpayloads-cb-1
However, the after checking the Kafka side, the key is missing.
Environment

Node version: v8.1.3
Kafka-node version: 1.6.2
Kafka version: v0.10.2.1

For specific cases also provide

Number of Brokers: 1
Number partitions for topic: 1

Include Sample Code to reproduce behavior
const kafka = require('kafka-node');

const { HighLevelProducer, KeyedMessage, Client } = kafka;

const client = new Client('localhost:2181', 'my-client-id');

client.on('error', error => console.error(error));

const producer = new HighLevelProducer(client, {
  requireAcks: 1,
  partitionerType: 3,
});

let count = 0;
producer.on('ready', () => {
  client.refreshMetadata(['node-test5'], (error) => {
    if (error) {
      console.error(error);
      return;
    }
    setInterval(() => {
      count += 1;
      // Create a new payload
      const payload = [
        {
          topic: 'node-test5',
          messages: `message ${count}`,
          key: 'lowkey',
        },
        {
          topic: 'node-test5',
          messages: new KeyedMessage('highkey', `message ${count}`),
        },
      ];
      producer.send(payload, (err, result) => {
        console.info('Sent payload to Kafka: ', payload);
        if (err) {
          console.error(err);
        } else {
          const formattedResult = result[0];
          console.log(`result: ${formattedResult}`);
        }
      });
    }, 2000);
  });
});

producer.on('error', error => console.error(error));

For the comparison, I also send a message which is KeyedMessage object.
Here is the output of the node index.js
  kafka-node:Client refresh metadata currentAttempt 1 +0ms
Sent payload to Kafka:  [ { topic: 'node-test5',
    messages: 'message 1',
    key: 'lowkey',
    partition: 0,
    attributes: 0 },
  { topic: 'node-test5',
    messages: KeyedMessage { magic: 0, attributes: 0, key: 'highkey', value: 'message 1' },
    partition: 0,
    attributes: 0 } ]
result: undefined
Sent payload to Kafka:  [ { topic: 'node-test5',
    messages: 'message 2',
    key: 'lowkey',
    partition: 0,
    attributes: 0 },
  { topic: 'node-test5',
    messages: KeyedMessage { magic: 0, attributes: 0, key: 'highkey', value: 'message 2' },
    partition: 0,
    attributes: 0 } ]
result: undefined
Sent payload to Kafka:  [ { topic: 'node-test5',
    messages: 'message 3',
    key: 'lowkey',
    partition: 0,
    attributes: 0 },
  { topic: 'node-test5',
    messages: KeyedMessage { magic: 0, attributes: 0, key: 'highkey', value: 'message 3' },
    partition: 0,
    attributes: 0 } ]
result: undefined

However, on the Kafka side, the result is different:
[
  {
    "topic": "node-test5",
    "key": "ée",
    "value": "message 1",
    "partition": 0,
    "offset": 0
  },
  {
    "topic": "node-test5",
    "key": "highkey",
    "value": "message 1",
    "partition": 0,
    "offset": 1
  },
  {
    "topic": "node-test5",
    "key": "ée",
    "value": "message 2",
    "partition": 0,
    "offset": 2
  },
  {
    "topic": "node-test5",
    "key": "highkey",
    "value": "message 2",
    "partition": 0,
    "offset": 3
  },
  {
    "topic": "node-test5",
    "key": "ée",
    "value": "message 3",
    "partition": 0,
    "offset": 4
  },
  {
    "topic": "node-test5",
    "key": "highkey",
    "value": "message 3",
    "partition": 0,
    "offset": 5
  },
  {
    "topic": "node-test5",
    "key": "ée",
    "value": "message 1",
    "partition": 0,
    "offset": 6
  },
  {
    "topic": "node-test5",
    "key": "highkey",
    "value": "message 1",
    "partition": 0,
    "offset": 7
  },
  {
    "topic": "node-test5",
    "key": "ée",
    "value": "message 2",
    "partition": 0,
    "offset": 8
  },
  {
    "topic": "node-test5",
    "key": "highkey",
    "value": "message 2",
    "partition": 0,
    "offset": 9
  }
]

As you can see, all the lowkey key are missing, only key in the KeyedMessage are there.
Thanks for your contribution!

Is it the bug here?
https://github.com/SOHU-Co/kafka-node/blob/master/lib/baseProducer.js#L133-L138
    messages = messages.map(function (message) {
      if (message instanceof KeyedMessage) {
        return message;
      }
-      return new Message(0, 0, '', message);
+      return new Message(0, 0, p.key || '', message);
    });

I think it might because the p.key is missing here.

After I changed it to p.key || '', the result seems right.
[
  {
    "topic": "node-test6",
    "key": "lowkey",
    "value": "message 1",
    "partition": 0,
    "offset": 0
  },
  {
    "topic": "node-test6",
    "key": "highkey",
    "value": "message 1",
    "partition": 0,
    "offset": 1
  },
  {
    "topic": "node-test6",
    "key": "lowkey",
    "value": "message 2",
    "partition": 0,
    "offset": 2
  },
  {
    "topic": "node-test6",
    "key": "highkey",
    "value": "message 2",
    "partition": 0,
    "offset": 3
  },
  {
    "topic": "node-test6",
    "key": "lowkey",
    "value": "message 3",
    "partition": 0,
    "offset": 4
  },
  {
    "topic": "node-test6",
    "key": "highkey",
    "value": "message 3",
    "partition": 0,
    "offset": 5
  }
]

I created a PR #700  for this issue.

Hi @twang2218 lets continue our discussion here instead of on the PR.
I believe we should allow any binary data for the key. In the past I thought perhaps a string key would be best (see #361) but since there's no restriction in the Kafka world we should treat it the same as messages are treated-- which is to let the user produce any binary data and the consumer define the output using the encoding option. What do you think?

If we allow the key can be anything, then KeyedPartitioner.hashCode() also has to be changed as well, as it assumed the key is string:
https://github.com/SOHU-Co/kafka-node/blob/8cba9d60d8ebdee32ae1d7668b05d4030fb19948/lib/partitioner.js#L41-L50
KeyedPartitioner.prototype.hashCode = function (string) {
  var hash = 0;
  var length = string.length;

  for (var i = 0; i < length; i++) {
    hash = ((hash * 31) + string.charCodeAt(i)) & 0x7fffffff;
  }

  return (hash === 0) ? 1 : hash;
};

But I do think the key should be able to be any type, the default type might still be string, however, it should be able to be changed by the user.
In Java client, when creating the KafkaProducer object, both key and value's serializer should be defined.
https://kafka.apache.org/0100/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html
 props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");
 props.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");

We can do the same, add 2 options in the BaseProducer for key and value serializers, and use string as default ones.
As well as Consumer, just like https://github.com/SOHU-Co/kafka-node/issues/702, it has to return the Buffer because there is no indication in the options for how to decode the key.

If a user is setting a Buffer as the key they must provide their own custom partitioner to handle that case.
I propose making the key consistent with how messages are treated.

If the key is null or undefined we set the length to -1. (will be consumed as null)
If the key is explicitly set as a Buffer we store it as is otherwise we store it as a binary string.

Decoding it on the consumer side will depending on the keyEncoding option and if it doesn't exist we could fallback to using encoding.

Fixed in #704 and published as 2.0.0. Thanks for your help.

repo: SOHU-Co/kafka-node


text:
Infra http frontend to backend

Summary
Frontend HTTP to backend, UI to be improved.
Tested with logs see Logs below.
Test Plan

😍

😍


text:
Infra/treaty memory

Closes #135.
This PR adds a map of activeTreaties to the base agent, and also updates the duration of each treaty at the end of a day, and removes treaties which have remaining duration of 0.
All message-related code in base agent has been moved to baseAgentMessage.go.
The HandleProposeTreaty() and HandleTreatyResponse() functions have now been added to base agent as well: these have been implemented with a sample implementation.
Note that HandleProposeTreaty() automatically accepts treaties - agent teams should override this with their desired behaviour.
This also fixes the interfaces for some messages - the Reply() function has been updated (see #190).
TESTING
Testing Config File
{
    "UseFoodPerAgentRatio": false,
    "FoodOnPlatform": 100,
    "FoodPerAgentRatio": 0,
    "Team1AgtOne": 2,
    "Team1AgtTwo": 2,
    "Team2Agents": 0,
    "Team3Agents": 0,
    "Team4Agents": 0,
    "Team5Agents": 0,
    "Team6Agents": 0,
    "Team7Agent1": 0,
    "RandomAgents": 0,
    "AgentHP": 100,
    "AgentsPerFloor": 1,
    "TicksPerFloor": 10,
    "SimDays": 8,
    "ReshuffleDays": 1,
    "maxHP": 100,
    "weakLevel": 10,
    "width": 48,
    "tau": 15,
    "hpReqCToW": 5,
    "hpCritical": 3,
    "maxDayCritical": 3,
    "HPLossBase": 5,
    "HPLossSlope": 0.2,
    "LogMain": true,
    "SimTimeoutSeconds": 60
}

With SimEnv in simulation.go
SimEnv{
	FoodOnPlatform: parameters.FoodOnPlatform,
	AgentCount:     parameters.NumOfAgents,
	AgentHP:        parameters.AgentHP,
	dayInfo:        parameters.DayInfo,
	healthInfo:     healthInfo,
	AgentsPerFloor: parameters.AgentsPerFloor,
	logger:         *stateLog.Logmanager.GetLogger("main").WithFields(log.Fields{"reporter": "simulation"}),
	stateLog:       stateLog,
	agentNewFuncs: map[agent.AgentType]AgentNewFunc{
		agent.Team1Agent1: agent1.New,
		agent.Team1Agent2: agent2.New,
	},
}

Which yielded
{"Current Simulation Tick":1,"level":"info","msg":"","reporter":"simulation","time":"2022-01-02T00:57:06Z"}
{"agent_id":"bea1e3a6-a8be-4a3f-aeb2-e16f89ad2dff","agent_type":"Team1Agent1","floor":1,"level":"info","message":"ProposeTreatyMessage","msg":"I sent a message","reporter":"agent","time":"2022-01-02T00:57:06Z"}
{"Current Simulation Tick":3,"level":"info","msg":"","reporter":"simulation","time":"2022-01-02T00:57:06Z"}
{"agent_id":"a7a84916-602f-41cf-a58a-13d74c09d1c2","agent_type":"Team1Agent2","level":"info","msg":"I have treaties","reporter":"agent","time":"2022-01-02T00:57:06Z"}
...
{"Current Simulation Tick":40,"level":"info","msg":"","reporter":"simulation","time":"2022-01-02T00:57:06Z"}
{"agent_id":"a7a84916-602f-41cf-a58a-13d74c09d1c2","agent_type":"Team1Agent2","level":"info","msg":"I have treaties","reporter":"agent","time":"2022-01-02T00:57:06Z"}
{"level":"info","msg":"-----------------END----OF----DAY-----------------","reporter":"tower","time":"2022-01-02T00:57:06Z"}
{"agent_id":"a7a84916-602f-41cf-a58a-13d74c09d1c2","agent_type":"Team1Agent2","level":"info","msg":"I no longer have treaties","reporter":"agent","time":"2022-01-02T00:57:06Z"}

Code / structure / arch LGTM, I'd prefer if you wait for Jason or Cyrus or Matt to review as well

I can't review it - I wrote some of the code

I think they can implement on their side things like custom count estimate and who the senders / receivers were
Thanks all!

authors: JaafarRammal jzzheng22 woonmoon


text:
Errors with text components.

e.g. tellraw @a ["",""]

Add contributor: https://www.mcbbs.net/home.php?mod=space&uid=702915

:tada: This issue has been resolved in version 1.11.0 :tada:
The release is available on:

npm package (@latest dist-tag)
Visual Studio Marketplace
GitHub release

Your semantic-release bot :package::rocket:

repo: SPGoding/datapack-language-server


text:
Blob length off by one

Running the blob tests has revealed that blobs report a length that is one too high.

This seems to have been addressed in c6a59b700c81c223936f2d38aef13d42cf1f91ca. But I think that rather than fixing the issue, this introduced a new bug, where the Blob is one byte too short
I've added some tests to try to find the bug, but instead, there seems to be a new bug created by this commit. See https://github.com/SQLDroid/SQLDroid/blob/faf011d7a3329ea1274fd79ef12ba7f48bdcbd4b/src/test/java/org/sqldroid/SQLDroidTest2.java#L214, which fails with the current implementation of https://github.com/SQLDroid/SQLDroid/blob/faf011d7a3329ea1274fd79ef12ba7f48bdcbd4b/src/main/java/org/sqldroid/SQLDroidResultSet.java#L258
These tests are run under Robolectric, i.e. not on the actual device. Either this fix was bad or the behavior of Cursor.getBlob varies from Robolectric to native device.

I think the fix was correct, at least for my use cases.  It is a while ago, so I cannot remember clearly, but I think we got an extra zero-byte compared to the string we actually stored.
Hopefully we can get the same test suite green in Robolectric and in an emulator to be sure.

You're right. I was able to reproduce your result: Under Android, String.getBytes() returns a final \0-byte, at least in this case.

authors: donv jhannes

repo: SQLDroid/SQLDroid


text:
Is iOS 7 supported?

My question is: Is this SideMenu compatible with iOS 7? I'm having issues when deploying on iOS 7 Devices, while iOS 8 and 9 are working like a charm.
Any suggestions?

No it is iOS 8+. The library uses some iOS 8+ dependent API's.


text:
scrollPerPage 'false' doesnt detect width well

Bug Report
Current Behavior
I have an slide like this:

Each slide have similar width (270px) I set scrollPerPage to false to slide by item not per page but this is the result:

It detects 205.5px in transform effect
This is my code
<carousel :scroll-per-page="false" :pagination-enabled="false" :per-page="2">
    <slide v-for="(item,index) in deals.results" :key="index">
        <deal-list-item-small :deal="item" :user="item.user" />
    </slide>
</carousel>

any updates?

repo: SSENSE/vue-carousel


text:
GUI building entirely moved to python

GUI building entirely moved to python (pyqt to be more precise).
This current setup is optimized to be able to run the first script (ColorMania); so, there are more works to do which follows.
"label", "floatedit", and "dropdown" elements from lua GUIs are converted to pyqt widgets (for "floatedit" element the conversion works for the ColorMania script but needs to be improved to better reflect its parent. Other elements of lua GUIs need to be converted to pyqt widgets.
Right now, the scripts will be applyed on all of the subtitle lines. This needs to be modified so that we can have the option to apply the scripts on the selected line(s) as well as filtering the lines based on some of their attributes (e.g. actor, style, etc.
5. The "settings.json" files need to have a "format" field so that we can identify in which environment the developers are presenting their GUIs' settings; for example in the ColorMania script, the setting.json file is structured based on lua GUIs format.

GUI building entirely moved to python (pyqt to be more precise).
This current setup is optimized to be able to run the first script (ColorMania); so, there are more works to do which follows.
"label", "floatedit", and "dropdown" elements from lua GUIs are converted to pyqt widgets (for "floatedit" element the conversion works for the ColorMania script but needs to be improved to better reflect its parent. Other elements of lua GUIs need to be converted to pyqt widgets.
Right now, the scripts will be applyed on all of the subtitle lines. This needs to be modified so that we can have the option to apply the scripts on the selected line(s) as well as filtering the lines based on some of their attributes (e.g. actor, style, etc.
The "settings.json" files need to have a "format" field so that we can identify in which environment the developers are presenting their GUIs' settings; for example in the ColorMania script, the setting.json file is structured based on lua GUIs format.

I think passage 5 has not been implemented yet. So maybe you should strikethrough this passage as it's not done yet or implement it for Phase 1.

Newer branches are available.

authors: DrunkSimurgh SSgumS

repo: SSgumS/Pyegi


text:
Missing documentation for hpx::util::annotated_function

hpx::util::annotated_function is completely absent from the documentation (http://stellar-group.github.io/hpx/docs/html/) and the examples.

We'd be happy to accept a patch adding this missing documentation.

@hkaiser Hello I am new to STELLAR-GROUP and I want to start working on this issue . Please guide me how to start ..

@victor-ludorum This is a documentation task. We'd very much appreciate it if you worked on this.
I think for you to start working on this issue you should first do two things: a) understand what is the functionality of hpx::util::annotated_function, and b) familiarize yourself with the documentation toolchain we use for HPX. The first can be done by looking at the source code (naturally there is no documentation for hpx::util::annotated_function). For the second you may want to start installing things as described here: https://stellar-group.github.io/hpx/docs/html/hpx/manual/build_system/building_hpx/doc_tools.html and make sure that you can build the existing docs. Then you might want to browse the quickbook documentation (http://www.boost.org/doc/libs/1_66_0/doc/html/quickbook.html), as this is the tool used to parse our .qbk files.
Once those tasks are accomplished it shouldn't be difficult to extend the existing docs by adding text describing what you've learnt.

@hkaiser Okay sir thanks for the reply . I will do as you have mentioned .

authors: hkaiser shoshijak victor-ludorum

repo: STEllAR-GROUP/hpx


text:
🛑 SPCast / Loadbalancer is down

In 89abccc, SPCast / Loadbalancer (https://loadbalancer.sp.radio.fm/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SPCast / Loadbalancer is back up in bce3ab8 after 19 minutes.


text:
🛑 SPCast / Loadbalancer is down

In 9c8a4f1, SPCast / Loadbalancer (https://loadbalancer.sp.radio.fm/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SPCast / Loadbalancer is back up in 5a7a5f4 after 18 minutes.


text:
Stop handling

There should be a callback on stopping a stage, for clean-up, such as deleting created files.  This would greatly simplify using a number of our existing build stages.
This should be fairly symmetrical to starting; group stages should wait for their child stages to stop before running this callback, which should then wait for a done() equivalent to confirm the stop.

No longer relevant as the build system is being drastically simplified.

repo: SUNRUSE/SprigganRS


text:
Enable SLE_12_SP4

In preparation for OpenStack Rocky upgrade, we need to first
enable it on Master and get it tested.
Jira: https://jira.prv.suse.net/browse/SCRD-4288

we dont really want merge commits in a PR - can you git rebase origin/master

authors: bmwiedemann guangyee

repo: SUSE-Cloud/automation


text:
octavia: use internally set up management network (SOC-10904)

The Octavia barclamp now configures a regular neutron tenant
network for the management traffic exchanged between control
services and amphorae. The previous approach of configuring a
custom neutron provider network is no longer needed.

Not a viable option anymore


text:
caasp4: Only touch port security on openstack deploy

Only disable Port security when DEPLOYMENT_MECHANISM=openstack. This
should fix libvirt based deployments.

Why is it problem with libvirt?

Why is it problem with libvirt? Shouldn't the search just return empty list of nodes?

It fails because deploy_on_openstack_internal_network is undefined in that case. But it would also fail e.g. if openstack is not installed.

I'm surprised it does not fail in more places then :-)

authors: jsuchome rhafer


text:
Can't configure the action mailer delivery method to smtp

I am running Portus inside a Docker container but not with compose.
I tried passing environment variables like this PORTUS_EMAIL_SMTP_ENABLED=true, and tried changing the config file inside the container but none of those seem to work.
Right now I am changing the config/environments/production.rb file in order to enable smtp. After been enabled the other configurations through envvars like PORTUS_EMAIL_SMTP_ADDRESS and PORTUS_EMAIL_SMTP_USER_NAME work fine.
I think is just the delivery method that is not been taken correctly from the config files or variables.

Mmmm, that's weird. I can't reproduce it. These are the steps that I'm doing. I've firstly modified the docker-compose.yml file from master to include (in the web service):
  environment:
    - PORTUS_EMAIL_SMTP_ENABLED=true

I've then added some debug statements to the application_controller, and I've read:
web_1      | SMTP ? : {"from"=>"portus@example.com", "name"=>"Portus", "reply_to"=>"no-reply@example.com", "smtp"=>{"enabled"=>true, "address"=>"smtp.example.com", "port"=>587, "user_name"=>"username@example.com", "password"=>"password", "domain"=>"example.com"}} -- smtp
web_1      | SMTP: {:address=>"smtp.example.com", :port=>587, :user_name=>"username@example.com", :password=>"password", :domain=>"example.com", :authentication=>:login, :enable_starttls_auto=>true}

In the first line, you can see the contents of the config of the email as read by Portus, and then after the -- characters, I print the delivery method as stored by Rails. The second line corresponds to what Rails has stored for the delivery method. Everything looks like what we expect.
Am I missing any steps to reproduce this ? Which version of Portus are you using ?

Hi @mssola, I am running the version from master, I built the image yesterday.
As I said, I am not running Portus with docker-compose, but I think that should not make any difference.
I will try to debug it more and will get back to you with the results.
Just to clarify, I am also running it with the RAILS_ENV=production envvars, you think that should cause any differences?

Nope, it shouldn't be a problem to add RAILS_ENV=production. Maybe it will be more difficult to debug, since it won't show debug message. Maybe you can use the staging environment. But, afaik, there's no useful message in this regard (that's why I added them myself :P).

Ah ok. The way I've been checking for this is the log from docker logs, which is puma's log, and whenever I click to send the email of forgotten password, it shows the message: /usr/sbin/sendmail: not found on the logs.

Ah gotcha! This only happens in production/staging :/ Thanks for reporting!

authors: mssola vitorarins

repo: SUSE/Portus


text:
Every time during training I get this error

Checks

[X] This template is only for usage issues encountered.
[X] I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
[X] I have searched for existing issues, including closed ones, and couldn't find a solution.
[X] I confirm that I am using English to submit this report in order to facilitate communication.

Environment Details
win 11, rtx 3060 12g
Steps to Reproduce
pip install torch==2.3.0+cu121 torchaudio==2.3.0+cu121 --extra-index-url https://download.pytorch.org/whl/cu121

Every time during training I get this error
✔ Expected Behavior
train
❌ Actual Behavior
Epoch 2/100:  95%|#########5| 1001/1049 [01:05<?, ?step/s]
Traceback (most recent call last):
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\train\finetune_cli.py", line 174, in <module>
    main()
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\train\finetune_cli.py", line 167, in main
    trainer.train(
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\model\trainer.py", line 295, in train
    for batch in progress_bar:
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\tqdm\std.py", line 1181, in __iter__
    for obj in iterable:
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\accelerate\data_loader.py", line 552, in __iter__
    current_batch = next(dataloader_iter)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\utils\data\dataloader.py", line 631, in __next__
    data = self._next_data()
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\utils\data\dataloader.py", line 1346, in _next_data
    return self._process_data(data)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\utils\data\dataloader.py", line 1372, in _process_data
    data.reraise()
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\_utils.py", line 705, in reraise
    raise exception
soundfile.LibsndfileError: <exception str() failed>

have you do pip install -e .?
maybe also check for libsndfile, e.g. conda install -c conda-forge libsndfile or pip install pysoundfile

have you do pip install -e .?

yes

maybe also check for libsndfile, e.g. conda install -c conda-forge libsndfile or pip install pysoundfile

I tried this pip install pysoundfile but now I get this error and the training stops
Epoch 3/500:   9%|8         | 86/982 [01:16<?, ?step/s]
Traceback (most recent call last):
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\train\finetune_cli.py", line 174, in <module>
    main()
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\train\finetune_cli.py", line 167, in main
    trainer.train(
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\model\trainer.py", line 314, in train
    self.optimizer.step()
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\optim\lr_scheduler.py", line 75, in wrapper
    return wrapped(*args, **kwargs)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\accelerate\optimizer.py", line 171, in step
    self.optimizer.step(closure)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\optim\optimizer.py", line 391, in wrapper
    out = func(*args, **kwargs)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\bitsandbytes\optim\optimizer.py", line 291, in step
    self.update_step(group, p, gindex, pindex)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\bitsandbytes\optim\optimizer.py", line 520, in update_step
    if state["state1"].dtype == torch.float:
KeyError: 'state1'

bnb_optimizer

This means "Use 8-bit Adam optimizer"?

yes
or if you need it, just take some time searching and to debug

I removed this flag and mixed_precision -> none, the process seems to have started
Epoch 3/1057:   9%|8         | 86/982 [00:00<?, ?step/s]C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\model\modules.py:436: UserWarning: 1Torch was not compiled with flash attention. (Triggered internally at ..\aten\src\ATen\native\transformers\cuda\sdp_utils.cpp:455.)
  x = F.scaled_dot_product_attention(query, key, value, attn_mask=attn_mask, dropout_p=0.0, is_causal=False)
C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\autograd\graph.py:744: UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED (Triggered internally at ..\aten\src\ATen\native\cudnn\Conv_v8.cpp:919.)
  return Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass

Epoch 3/1057:   9%|8         | 86/982 [01:19<?, ?step/s, loss=0.626, step=2051]
Epoch 3/1057:   9%|8         | 87/982 [01:19<19:44:41, 79.42s/step, loss=0.626, step=2051]
Epoch 3/1057:   9%|8         | 87/982 [01:28<19:44:41, 79.42s/step, loss=0.688, step=2052]
Epoch 3/1057:   9%|8         | 88/982 [01:28<9:22:30, 37.75s/step, loss=0.688, step=2052]
Epoch 3/1057:   9%|8         | 88/982 [01:40<9:22:30, 37.75s/step, loss=0.575, step=2053]
Epoch 3/1057:   9%|9         | 89/982 [01:40<6:27:30, 26.04s/step, loss=0.575, step=2053]
Epoch 3/1057:   9%|9         | 89/982 [01:50<6:27:30, 26.04s/step, loss=1.6, step=2054]
Epoch 3/1057:   9%|9         | 90/982 [01:50<4:53:27, 19.74s/step, loss=1.6, step=2054]
Epoch 3/1057:   9%|9         | 90/982 [02:00<4:53:27, 19.74s/step, loss=0.643, step=2055]
Epoch 3/1057:   9%|9         | 91/982 [02:00<4:03:18, 16.38s/step, loss=0.643, step=2055]
Epoch 3/1057:   9%|9         | 91/982 [02:09<4:03:18, 16.38s/step, loss=0.665, step=2056]

Unfortunately, training is still interrupted
Epoch 3/1057:   0%|          | 4/1049 [01:53<8:12:32, 28.28s/step, loss=0.611, step=2102]
Traceback (most recent call last):
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\train\finetune_cli.py", line 174, in <module>
    main()
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\train\finetune_cli.py", line 167, in main
    trainer.train(
  File "C:\Users\User\Documents\Work\F5-TTS\src\f5_tts\model\trainer.py", line 309, in train
    self.accelerator.backward(loss)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\accelerate\accelerator.py", line 2241, in backward
    loss.backward(**kwargs)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\_tensor.py", line 525, in backward
    torch.autograd.backward(
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\autograd\__init__.py", line 267, in backward
    _engine_run_backward(
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\autograd\graph.py", line 744, in _engine_run_backward
    return Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: CUDA error: misaligned address
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Keyboard interruption in main thread... closing server.
Exception ignored in atexit callback: <function _MultiProcessingDataLoaderIter._clean_up_worker at 0x000001ADE8EEF9A0>
Traceback (most recent call last):
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\torch\utils\data\dataloader.py", line 1473, in _clean_up_worker
    w.join(timeout=_utils.MP_STATUS_CHECK_INTERVAL)
  File "C:\Users\User\.conda\envs\f5-tts\lib\multiprocessing\process.py", line 149, in join
    res = self._popen.wait(timeout)
  File "C:\Users\User\.conda\envs\f5-tts\lib\multiprocessing\popen_spawn_win32.py", line 108, in wait
    res = _winapi.WaitForSingleObject(int(self._handle), msecs)
KeyboardInterrupt:
Traceback (most recent call last):
  File "C:\Users\User\.conda\envs\f5-tts\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\User\.conda\envs\f5-tts\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\User\.conda\envs\f5-tts\Scripts\accelerate.exe\__main__.py", line 7, in <module>
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\accelerate\commands\accelerate_cli.py", line 48, in main
    args.func(args)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\accelerate\commands\launch.py", line 1168, in launch_command
    simple_launcher(args)
  File "C:\Users\User\.conda\envs\f5-tts\lib\site-packages\accelerate\commands\launch.py", line 760, in simple_launcher
    process.wait()
  File "C:\Users\User\.conda\envs\f5-tts\lib\subprocess.py", line 1209, in wait
    return self._wait(timeout=timeout)
  File "C:\Users\User\.conda\envs\f5-tts\lib\subprocess.py", line 1506, in _wait
    result = _winapi.WaitForSingleObject(self._handle,
KeyboardInterrupt```

need detailed steps and thought better for yourself to debug since seems configuration problem and not with our repo

authors: SWivid destroyandromeda


text:
Stdout messes up termux terminal

The stdout of SabreTools messes up the termux terminal (what you type doesn't appear). Easy workaround is to run stty sane after running SabreTools, which fixes the terminal, or piping the stdout to somewhere else. Using the SabreTools --script param doesn't make a difference.

Please provide examples of how the output is "messed up"

If I recall correctly, it was just that what you typed into the prompt isn't actually visible after running the command.

authors: mariomadproductions mnadareski

repo: SabreTools/SabreTools


text:
fetch Response.ok has not been implemented

Nearly there! My tests can nearly run and pass with Denock, however I'm relying on fetch's Response.ok to quickly decide if the response is an error or not. However, this doesn't exist on the mocked fetch response and so, fails.
Thanks again!

Thanks for your feedback I'll take a look at that as soon as I can.

ping @ghostfuel, the new cut release supports it.

authors: SachaCR ghostfuel khrome83

repo: SachaCR/denock


text:
Dev v1.1.0

Adding visit level filters to the hep-explorer. Slider working well, but play button is totally broken. Debating whether just to (1) delete it, (2) fix/improve the current approach or (2) try something else. Any thoughts @samussiah?
Current approach is modeled loosely off of this example from Mike Bostock.

I vote to add it.  Researchers might see changes over time that they would miss in the static view.  This is a quick way to see the time course.  Plus it's really cool.  Mike Bostock rocks!

authors: jwildfire zskrivan

repo: SafetyGraphics/hep-explorer


text:
[IT-2124] Iterate on cost reporting lambda

Replace dependency on a static CSV file with run-time lookups of account tags.
Replace S3 and HTML output with a Synapse table and wiki.

Closing this in favor of using Cost Categories

repo: Sage-Bionetworks-IT/lambda-cost-reports


text:
PORTALS-2447: Integrate GenUI feature 1, 2, 3 into Challenge portal

Needed to track down an infinite rendering loop in ChallengeTeamWizard

repo: Sage-Bionetworks/synapse-web-monorepo


text:
Database storage concerns

Aeon-db2 is still very full, and we are thinking about other ways to save on space. Some options are listed below:

[x] Throwaway redundant frame info metadata in the camera csv files

Done in #437


text:
Blackened and ruffed

@coderabbitai: ignore

Summary by CodeRabbit

Refactor: Improved code readability and maintainability across multiple modules by reordering imports, renaming variables, and updating function signatures.
Bug Fix: Enhanced error handling in the frames function in aeon/io/video.py to include more detailed information in error messages.
Documentation: Updated and clarified docstrings for several functions across different modules.
Style: Standardized string literals and import statements across the codebase for consistency.
New Feature: Modified the chunk and load functions in aeon/io/api.py to handle both single values and series of timestamps.
Test: Updated test cases in tests/io/test_api.py to reflect changes in the main codebase.

Note: revert changes to all files within 'aeon/dj_pipeline' - these will be appropriately reformatted in a separate PR


text:
Dark mode toggle button should be added

I will create  a dark mode toggle button let me know what you think about it. And Kindly assign me this issue

Sorry @Siddhesh172004  but this is already done you can add CSS file as it  is deleted by mistake.

Hey sir, I can help you out with this dark mode issue. I would like to contribute please assign it to me.

Hello @jeet-09 , @Siddhesh172004  My website got whole new update and now there is a need of dark mode button. You can make your contributions which is required.

repo: Sajiyah-Salat/BlogWeb


text:
🛑 Nostr Relay - wss://nostr.oxtr.dev is down

In 17bdd1b, Nostr Relay - wss://nostr.oxtr.dev (https://nostr.oxtr.dev) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nostr Relay - wss://nostr.oxtr.dev is back up in 69c00c3.

repo: Sakhalinfox/orangepilldevuptime


text:
🛑 DEV Germany is down

In 5ce34ed, DEV Germany ($DEV_GERMANY) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DEV Germany is back up in bc772c1 after 10 minutes.


text:
Warning Refused to set unsafe header "user-agent" in Chrome

When using the SDK with the Chrome web browser, a error/warning is logged to console:
Refused to set unsafe header "user-agent"

This error is visible in the sample app.
I believe this comes from the XmlHttpRequest transport used by cross-fetch.
I don't believe you get a similar warning/error when using fetch natively.

Fixed in https://github.com/SalesforceCommerceCloud/commerce-sdk-isomorphic/pull/85.


text:
BDI - Advanced Mapping: Help text mapping using other symbols ( : , =, @, etc) will convert to Advanced Mapping without error

Special characters are currently being considered as valid by our migration utility when migrating into AM.
Pre-Conditions: Org should be prerelease with Winter20 and CMT should be off.
Steps to reproduce:
1- Create a Helptext mapping with a valid Object and field relationship, but instead of a dot between the object and field enter another symbol.
2- Turn CMT on.
Expected Result: Helptext should only work and be migrated using a dot between the Object and the field. And if helptexts are  created using these symbols, when CMT is enabled these should appear on Migration error table.
Actual Result: Helptexts using various symbols including :, =, @, etc are migrated when CMT is enabled without any error shown.

**lurch: attach W-035854

**lurch: attach W-035854

Tracking W-035854

Salesforce has determined that this issue will not be explored further.

authors: JavierFerreira LurchTheButler coriobriensfdo mbeaty-sf

repo: SalesforceFoundation/NPSP


text:
Fix issues with visibility change event listener

Fix for below issues

Window onblur and onfocus event listeners are removed from all opened case pages, if a new case page gets opened. So, the timer on previous case pages continue to run wehn they lose focus even if pauseOnLostFocus is set.
When the tab is switched the timer pauses, but after the window loses and gets focus, the timer continues to run even though the console tab is not in focus.
Visibility event listeners continue to execute even after the console tabs are closed.

Closing as I Need to get approval before I submit.

repo: SalesforceLabs/CaseTimer


text:
Error: 422 Unprocessable Entity

Hi, when running your codesandbox, console shows error 422 (unprocessable entity).

Hi @leizleho, I'm not seeing the error. Is this (https://codesandbox.io/s/l7p179qr6m) the sandbox that you're seeing the error in? If it is, what browser are you using?

Yeah, this one https://codesandbox.io/s/react-map-gl-geocoder-v2-example-74mcp and this one https://codesandbox.io/s/l7p179qr6m.
The  console error shows when you enter a place in the search box. I am using chrome developer tools.
This is the console error:
POST https://api.mapbox.com/events/v2?access_token=pk.eyJ1Ijoic21peWFrYXdhIiwiYSI6ImNqcGM0d3U4bTB6dWwzcW04ZHRsbHl0ZWoifQ.X9cvdajtPbs9JDMG-CMDsA 422 (Unprocessable Entity)

Ah, I see what you mean. I think you can just ignore that error. The Mapbox API seems to return a 422 occasionally while typing. If that error is causing you problems with the geocoder, let me know what search queries are causing you problems.

authors: SamSamskies leizleho

repo: SamSamskies/react-map-gl-geocoder