Trait Trait Replyis not implemented forPrometheusResponse [E0277] is not implemented for PrometheusResponse [E0277]

autometrics = { version = "2.0.0", features = ["prometheus-exporter"] }
warp = "0.3"
Rust = 1.80
When configuring autometrics with warp, the compiler thows an error stating the Trait Reply is not implemented for PrometheusResponse.
Repro:
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    prometheus_exporter::init();

    let routes = warp::get()
        .and(warp::path("metrics"))
        .and(warp::path::end())
        .map(|| prometheus_exporter::encode_http_response());

    let signal = shutdown_utils::signal_handler("http server");
    let (_, http_server) = warp::serve(routes).bind_with_graceful_shutdown(([0, 0, 0, 0], 8083), signal);

    let http_handle = tokio::spawn(http_server);

    match tokio::try_join!(http_handle) {
        Ok(_) => {}
        Err(e) => {
            println!("Failed to start server: {:?}", e);
        }
    }

  Ok(())

When I wrap the Prometheus exporter in a Warp Reply, only the string encodind works, but then the code compiles without exporting metrics.
async fn metrics_handler() -> Result<impl warp::Reply, warp::Rejection> {
    match autometrics::prometheus_exporter::encode_to_string() {
        Ok(metrics) => Ok(warp::reply::json(&metrics)),
        Err(_) => Err(warp::reject::not_found()),
    }
}

    let get_metrics = warp::get()
        .and(warp::path(metrics_uri.clone()))
        .and(warp::path::end())
        .and_then(metrics_handler);

    let routes = get_metrics;

    let signal = shutdown_utils::signal_handler("http server");
    let (_, http_server) = warp::serve(routes).bind_with_graceful_shutdown(http_addr, signal);

    // https://github.com/hyperium/tonic/discussions/740
    let http_handle = tokio::spawn(http_server);

    match tokio::try_join!(http_handle) {
        Ok(_) => {}
        Err(e) => {
            println!("Failed to start server: {:?}", e);
        }
    }

  Ok(())

I am a bit puzzled here. Is warp not supported?

Hey! We upgraded autometrics in version 1.0.1 to use http 1.0. warp however still uses http 0.2. As far as I can see they're planning a upgrade to hyper 1.0 which also ships with http 1.0 but that still seems not fully ready yet: https://github.com/seanmonstar/warp/issues/1088
You've got multiple ways to work around this:

Instead of directly replying the PrometheusResponse, encode the metrics to a String and return that. You were very close to already doing that but you replied with warp::reply::json. The exported metrics are not in JSON format, you can instead just reply the String directly:

#[autometrics]
async fn metrics_handler() -> Result<impl warp::Reply, warp::Rejection> {
    match autometrics::prometheus_exporter::encode_to_string() {
        Ok(metrics) => Ok(metrics),
        Err(_) => Err(warp::reject::not_found()),
    }
}

You can downgrade to autometrics 1.0.0 which still uses http 0.2. Then you can directly respond the PrometheusResponse:

# note the `=` at the beginning of the version pinning it to 1.0.0, as 1.0.1 upgraded the `http` version
autometrics = { version = "=1.0.0", features = ["prometheus-exporter"] }

let routes = warp::get()
    .and(warp::path("metrics"))
    .and(warp::path::end())
    .map(|| prometheus_exporter::encode_http_response());

We personally recommend the first variant so that you can take advantage of all the latest features and don't have to consult outdated documentation. Once warp has upgraded to hyper 1.0 (and thus also http 1.0) this workaround won't be needed anymore and you can directly return the PrometheusResponse again.

@mellowagain
Thank you;
I understand that it comes down to warp lagging in adopting http 0.2.
When I do the recommended workaround, with the updated hander,
I only see the metric exporter in the dashboard and nothing else.
I've instrumented an rGPC service according to the code example in the repo,
and I was supposed to see all the endpoints of the implemented tonic trait, but somehow that doesn't happen.
Also, the assigned API SLO don't show up.
Maybe a good idea to update the gRPC example to version 2, as it still hangs on V1.0.0
Has the configuration changed or is there something else I have to know to make autometrics work with tonic gRPC?

@mellowagain
Thank you; I understand that it comes down to warp lagging in adopting http 0.2.
When I do the recommended workaround, with the updated hander, I only see the metric exporter in the dashboard and nothing else.
I've instrumented an rGPC service according to the code example in the repo, and I was supposed to see all the endpoints of the implemented tonic trait, but somehow that doesn't happen. Also, the assigned API SLO don't show up.
Maybe a good idea to update the gRPC example to version 2, as it still hangs on V1.0.0
Has the configuration changed or is there something else I have to know to make autometrics work with tonic gRPC?

do you have a repo or reproduceable example i could take a look at? ill update the grpc-http example to use autometrics 2.0

@mellowagain Thank you so much for your help.
However, I had to remove autometrics from my project due to multiple issues during a complex
multi-cross compilation setup with Bazel; In all fairness, autometrics did get along surprisingly well,
but when the number of compile targets doubled and multiple c compiler were used for underlying dependences,
things were falling apart for no obvious reasons, but all issues were gone once autometrics was removed.
I don't think it has anything to do with the Rust code in autometrics, but rather with some legacy C network code deep down in some sub-sub dependencies.
I am not filling an issue for that because the setup is so far above and beyond the normal range that it is totally not worth fixing.
Closing this for good.


Why is Download.contentLength significantly larger than the storage consumed?

I've implemented the DownloadService to allow our Widevine protected DASH content to be watched offline.
To give the user an indication of how much storage space the download is taking, we use the contentLength taken from the Download (which is provided by the DownloadManager).
What we've noticed is that the value returned via the API is significantly (> 10%) larger than the actual storage space consumed.
As an example, I've downloaded a box set containing 23 episodes.  Media3 reported the sum total of these assets as<PHONE_NUMBER> bytes (4.28GB).  When querying the filesystem, it reports only<PHONE_NUMBER> bytes used (3.71GB).
If anything, I would have expected the filesystem to report higher, due to incomplete storage blocks.
So what is contentLength, if not the size of the storage consumed?  Is there a more accurate way to get the download size?

I'm not able to reproduce this with the demo app on a Pixel 5. I downloaded the lowest-res track of the Clear DASH HD (MP4, H264) sample. I observed:

download.contentLength = 82652322

 # du -h /sdcard/Android/data/androidx.media3.demo.main/files/downloads
 79M	/sdcard/Android/data/androidx.media3.demo.main/files/downloads

Assuming -h is using binary prefixes, 79 * 1024 * 1024 = 82837504
Difference is 82837504 - 82652322 = 185182, i.e. 185kB of overhead for various bits of download metadata etc (and perhaps incomplete storage blocks as you said).
Is it possible the file system on your device is doing some magic on the fly compression?
If you want to know how large files are on the file system (to report to a user how much space the files are taking), it's probably best to directly query that (i.e. use filesystem APIs to inspect the downloads directory) - rather than assuming that Download.contentLength is a good proxy.

This has been on every device we've tested so far - ranging from Android 5 to 14. The numbers are always significantly different.
Media3 doesn't appear to store downloads in a hierarchical structure, so there's no way for me to say download x is folder x, and download y is in folder y. Thus I'm only able to measure the entire download folder size - not individual downloads.
Trying to read through the code, it looks like it tries to sum up the size of the individual segments as read from a database, but I've yet to find the line of code where it actually calculates each segment size in the first place.  Is it recording the HTTP response size maybe, and incorrectly including headers?

Are you able to reproduce the same behaviour in the demo app like I tried? (i.e. is this related to the specific content being downloaded)

When I download test content in my app, the contentLength reported is very close to the size on disk.
When I download my content in the test app, the contentLength is reported as -1 (I can't see anywhere in the UI that shows contentLength, so I added debug).
So it does appear to be something about the content itself that causes problems.  Are you able to point me to where in the code it's calculating the value?  I can try to debug further.

My understanding is that ProgressiveDownloader and SegmentDownloader both register a ProgressListener and then call onProgress. This is passing down the content length calculated in CacheWriter.cache. It uses properties from the data spec or from content metadata to calculate the value.

When I download my content in the test app, the contentLength is reported as -1

If you put a break point around here, you should be able to figure out how this is calculated for your content.


Need help on using MicrosoftGraphClient (Get 401 Error)

Discussed in https://github.com/backstage/backstage/discussions/9523

Originally posted by simon-ouyang-rb February 14, 2022
Hi, team,
happy Monday! Could someone helping me with using MicrosoftGraphClient?
** It seems that the code keep getting 401 error but API works in Postman with the same clientId, tenantId and clientCredential**
Detail info is below.
Step 1: Azure App Registration

Create the Azure App Registration and get the clientId, clientSecret and tenentId
Add MS Graph API permissions
Test in Postman to verify the API is working with the given clientId, clientSecret and tenentId along with the generated token.

Step 2: Add the following in app-config.yaml
auth:
  environment: development
  providers:
    microsoft:
      development:
        clientId: ${AUTH_MICROSOFT_CLIENT_ID}
        clientSecret: ${AUTH_MICROSOFT_CLIENT_SECRET}
        tenantId: ${AUTH_MICROSOFT_TENANT_ID}

Step 3: Add EntityProvider in backend/src/plugins/catalog.ts
const msGraphOrgEntityProvider = MicrosoftGraphOrgEntityProvider.fromConfig(
  env.config,
  {
    id: 'https://graph.microsoft.com/v1.0',
    target: 'https://graph.microsoft.com/v1.0',
    logger: env.logger,
  },
);
builder.addEntityProvider(msGraphOrgEntityProvider);

// Trigger a read every 5 minutes
useHotCleanup(
  module,
  runPeriodically(() => msGraphOrgEntityProvider.read(), 5 * 60 * 1000),
);

Step 4: Add code in backeend/plugin/auth.t
            const target = "https://graph.microsoft.com/v1.0"
            const c = config.getOptionalConfig('catalog.processors.microsoftGraphOrg');
            const providers = c ? readMicrosoftGraphConfig(c) : [];
            const provider = providers.find(p => p.target === target);
              const client = MicrosoftGraphClient.create(provider)
              const response = await client.requestApi('users');
              const resp = await response.json()
              **console.log('resp', resp) // Keep getting 401 UnAuthorized Error

The issue works now.  The root cause is that I need to grant api permission to Application permission rather than Delegated permission since backstage is created through the app registration. I got it right after contacting the Azure Support Team.


distortion correction fails for VE data

This is related to the difficulty in obtaining a PWI prior to vessel decoding. The PWI is required for EPI_REG.
However since the encoding cycles typically include a 'control all' and 'label all' image, it should be possible to implement this for VE data.

One issue here is that we do not automatically know which of the VE volumes is the control and which the tag-all. We could assume the default (with a warning) first volume is control, second is tag-all.


RemoteCounterManager memory leak

Describe the bug
My application creates 100s of short lived counters per min. RemoteCounterManager does not have a logic nor API to remove unused/expired counters from Map<String, Object> counters;
Expected behavior
counter gets removed from RemoteCounterManager.counters  after counter's expiration or configured time which is >= expiration
Actual behavior
RemoteCounterManager.counters growing unrestricted
How to Reproduce?
No response
Output of uname -a or ver
No response
Output of java -version
No response
Infinispan version or git rev
15.0.11.Final
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response

@danfaer Please note that expiration does not remove the counter and will take the server's memory. The server will run out of memory in no time.
What's your use case?

@pruivo my application used counters for rate limiting certain actions user can do per request and therefore it needs to constantly create many short lived counters.


Namada pre-genesis setup

https://x.com/namada/status/1826280618747101634

https://forum.namada.net/t/pre-genesis-stage-2-begins/962?u=gavin


refactor json schema

Moved to platform repository so that this can be considered along with other JSON related items.


❓Templating capabilities

Hi @appleboy 👋🏻
Thanks for the tool,I 😍 it!
I am wondering what the templating capabilities are.
Would it be possible to parse stuff or to have "parameters" that would be processed by the template?
My use case is that in my company, we need to pass the Jira issue ID as part of the commit subject for later automation.
Thanks a lot for your time and considering my question 🙏🏻

@xakraz Thanks for your feedback. Could you describe the detailed use case and how to achieve the purpose?
maybe add a new flag --template_env
codegpt commit --preview --template_file your_file_path --template_env your_env_path

@appleboy Yes that would be super useful! 🙏🏻
I don't know the complexity it might add to your code base but if it could also support cli-provided values like --template-vars VAR1=value,VAR2=value,VAR3=value that would be awesome! 😃
(--template_vars and --template_vars_file)
As I said earlier, we need to pass the Jira issue ID as part of the commit subject for later automation.
So by example
codegpt commit --preview --template_file your_file_path --template_vars "TICKET_ID=ABC-1234"

Many thanks again for your time spent on this request 🙏🏻

@xakraz I will implement this feature this week or next week. I'm sorry for the delay in response.

Add custom variable to git commit message template:
{{ .summarize_prefix }}: {{ .summarize_title }}

{{ .summarize_message }}

{{ if .JIRA_URL }}{{ .JIRA_URL }}{{ end }}

Add custom variable to git commit message template using --template_vars paratemter:
codegpt commit --preview --template_file your_file_path --template_vars JIRA_URL=https://jira.example.com/ABC-123

Load custom variable from file using --template_vars_file paratemter:
codegpt commit --preview --template_file your_file_path --template_vars_file your_file_path

See the template_vars_file format as following:
JIRA_URL=https://jira.example.com/ABC-123

bump new version v0.2.1

https://github.com/appleboy/CodeGPT/releases/tag/v0.2.1

So many thanks 🙏🏻


Convert method arguments to rvalue references

This is far from finished, so this PR is juts me claiming this rewrite and trying to see if it works and is more efficient.

End results for fib(25) in callgrind:
Master: 4,908,779,692
This branch: 4,156,365,607
That's another 15% gain.
The class ArrayObject has been prepared to completely use rvalue references. The other classes still have to be updated, and will get slightly more efficient once they are converted, but I'm going to leave that as a future work since that are still about 80 files and it's so boring.

Very cool!


Explain env vs envFrom for page Define Environment Variables for a Container

I resolved Issue #39873 “Define Environment Variables for a Container” does not explain env vs envFrom #39873

/retitleExplain env vs envFrom for page Define Environment Variables for a Container

Thanks for the feedback I'll surely look into it.

How about this? can I go forward with this?

How about this? Can I go forward with this?

Can I go forward with this?

I recommend incorporating all the feedback. You're welcome to ask questions if you're not sure why reviewers have made a suggestion.

I did, I changed the way definition were written as per you suggestion and I also used Markdown instead HTML for the hyperlinks. Do let me know if I am still missing out something.

/lgtm
Preview looks good.

@sftim One rookie question, I shouldn't update any branch once "lgtm" is added right?

You can, but you'll need a new LGTM (we don't charge extra :wink:)
If you know how to squash down to 1 commit, please do that. No worries if you don't.

Hey @sftim what should be my next steps to get this PR merged?

Hey @sftim what should be my next steps to get this PR merged?

Hi @KhushPatibandha, thanks for this contribution! (I see it's your first, welcome!) Sometimes PR are slow to get approval, it's not that they aren't good, or that there is something else that needs to be done, sometimes it's just that no-one has gotten to it.
But this looks good to me, so lets get it  merged in.
/approve


Can you support WeChat?

WeChat is one of the most popular h5 game platforms in China, but pixi.js v5 does not support WeChat games, new Function cannot be successfully executed.

Yes, we use the version before pixi. js v5, WeChat small game platform can still be compatible with Pixi after adaptation.

Maybe you don't know micro letter little game, but developers in China it seems this is an important platform, Facebook, the same look and abroad integrated chat, information, payment (and function is the same as the PayPal, and QR code), applications and games, yes it is amazing, so can pixijs compatible with micro letter little game developers are particularly important for China, because pixijs really quickly.

Thank you for the report!
So, basically, we have to make a fallback to generateUniformsSync so it returns a static function. It will slow things down but it'll work.

Thank you for the report!
So, basically, we have to make a fallback to generateUniformsSync so it returns a static function. It will slow things down but it'll work.

Can you help me? If it is a WeChat version, we will use the function mode.
If it is another version, it is new Function(...).
I tried to modify it, but it is a bit problematic.

Test this build: https://pixijs.download/dev-new-function-fallback/pixi.js


Remove endo from SRS

the SRS struct has two endo fields endo_r and endo_q:
pub struct SRS<G: CommitmentCurve> {
    /// The vector of group elements for committing to polynomials in coefficient form
    #[serde_as(as = "Vec<o1_utils::serialization::SerdeAs>")]
    pub g: Vec<G>,
    /// A group element used for blinding commitments
    #[serde_as(as = "o1_utils::serialization::SerdeAs")]
    pub h: G,

    // TODO: the following field should be separated, as they are optimization values
    /// Commitments to Lagrange bases, per domain size
    #[serde(skip)]
    pub lagrange_bases: HashMap<usize, Vec<G>>,
    /// Coefficient for the curve endomorphism
    #[serde(skip)]
    pub endo_r: G::ScalarField,
    /// Coefficient for the curve endomorphism
    #[serde(skip)]
    pub endo_q: G::BaseField,
}

We should be able to remove these fields, as they are part of the KimchiCurve trait now: https://github.com/o1-labs/proof-systems/blob/master/kimchi/src/curve.rs#L25

the "SRS.endo_r" and "SRS.endo_q" are used in https://github.com/o1-labs/proof-systems/blob/master/poly-commitment/src/evaluation_proof.rs#L244 and https://github.com/o1-labs/proof-systems/blob/master/poly-commitment/src/evaluation_proof.rs#L274.
does the whole system design allows the kimchi trait to be imported into the files mentioned above to provide the "endo_r" and "endo_q" variables?

No because poly-commitment is a dependency of kimchi, and so you'd get a dependency cycle if you would do that.
I guess there's two solutions:

Moving the KimchiCurve trait to a crate that can be imported by both would fix that (for example mina-curves).
Pass these endo values as argument in the functions that need them

I liked solution 2 initially, as I was thinking that a poly-commitment library should only be aware of one curve, and not two, but I guess our poly-commitment might be aware of that. So maybe solution 1 is better here. cc @mrmr1993 who might have a better opinion

@mimoo
I have one question about the issue.
In fact, the endo_q and endo_r are initialized with endos::() in here.
Also, this endos::<G>() is also used for KimchiCurve.
Is there any need to explicitly remove the endo_q and endo_r from the SRS struct?
My point is that endos::<G>() is already used everywhere.

I thought I had answered this but apparently not, the point is that it doesn't really seem related to the SRS which should be a "commitment"-focused data structure (https://o1-labs.github.io/proof-systems/specs/urs.html). Semantically it doesn't seem to make sense to keep it there.


It's possible to generate all views of AdminLTE 3?

It's possible to generate all views of AdminLTE 3 admin template or just home.blade.php?

@REJack over a demo install command?

If he mean the demo home blade file, this can be installed with the only switch.

I had same question here because I remember the version 2 when you ran adminlte:install the default views were overwritten and now they don't, and the other thing I've noticed is that in the login view for example we have this
@section('adminlte_css_pre')     <link rel="stylesheet" href="{{ asset('vendor/icheck-bootstrap/icheck-bootstrap.min.css') }}"> @stop
and this file doesn't exist actually, so do we have to install this plugin manually???

Yep the plugin need to be installed seperatly with adminlte:plugins, you can check the readme to get more details about the command.


[Card component]: Add tags to the bottom of card components

The problem
We are trying to add tags to the bottom portion of card components. This should also be allowed to use in other components that use the Card component, such as Card in card and Card with images
The solution

Final Designs Box folder link:  https://ibm.ent.box.com/folder/95514001950?s=hgvu48r1fv2ga2h0yn3qshrtxjc71vch

Application/website
AEM Events & Learn landing page
Business priority
High Priority = pressing release
What time frame would this ideally be needed by (if applicable)
No response
Examples
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[ ] I checked the current issues for duplicate issues

Convert to epic, design specs update, dev (WC & React Wrapper), QA, website

All linked issues are closed.   Closing


Support for a 2 point min max tolerance

This would be used to report a diameter characteristic as a 2 point min max evaluation. Currently a custom attribute is used within a DiameterCharacteristicDefinition element.

Is this for an ISO GPS part? I thought that this was possible for ISO GPS -- I don't remember the details, but I thought that the necessary modifiers were added to QIF to handle this.
But it brings up another point: Y14.5 asks for 2 types of size to be evaluated for a size tolerance - mating envelope and actual local size. It should be possible to specify both results in QIF for a size tolerance, but I'm not sure how this works. This is a topic for investigation.

You are correct, QIF does provide support but it appears to be specifically tailored towards the ISO standard. It would be useful if a solution that is closer harmonised to the ASME standard would be helpful.

Actual local size has been a topic of debate for a long time.  I think there may be clarification in the future.
For now, I recommend referencing ASME Y14.5.1-2019 (supports Y14.5-2009) para. numbers and titles listed below:
2.3.2 Variation of Size
<IP_ADDRESS> MMC Limit, Where Rule #1 of Y14.5 Applies
<IP_ADDRESS> MMC Limit, Where Rule #1 of Y14.5 Does Not Apply
2.3.3 Actual Local Size Limits
<IP_ADDRESS> Establishing the Local Size Spine
<IP_ADDRESS> Evaluation of Actual Local Size (Opposed Points)
<IP_ADDRESS> Evaluation of Actual Local Size (Circular Elements)


Error in SDL application on Windows

Error occurs when attempting to log anything in SDL application

: hPutChar: invalid argument (Bad file descriptor)

I made test application in EPashkin/hslogger_SDL_test bad branch
Problem can be fixed on application side if call removeAllHandlers before any log action (ex. in start setupLogger).
Source of problem is very strange value of stderr. Don't found way detect it, stderr still opened and writable. Simply hPutChar stderr 'g' will also fail.
P.S. Failing handler IMHO created in System.Log.Logger.logTree.
P.P.S. When application started from console (cabal run) it works fine even on WARNING,
but hPutChar stderr 'g' still failing. (Sorry, was wrong. Error still showing.)

This is not specific to hslogger and seems to happen in any application linked with SDL2 when run using stack run on windows

@expipiplus1 Did you find a solution for it?

@BuBuMan Can't remember, sorry!
Perhaps it's this: https://github.com/haskell-game/sdl2/issues/86#issuecomment-523928830
(so adding -optl-mconsole might fix it)

@BuBuMan Can't remember, sorry!
Perhaps it's this: https://github.com/haskell-game/sdl2/issues/86#issuecomment-523928830
(so adding -optl-mconsole might fix it)


Add aggregate function for vertica

Add the aggregate function 'APPROXIMATE_PERCENTILE' from vertica.

Coverage increased (+0.004%) to 97.743% when pulling 9589d5bb1a054843f9877fa21d3a4f6e52c037ef on RobinPapke:master into d1cc9c9c2796957ff86d71834f9085dd7a780da7 on kayak:master.


Add healthcare=nutrition_counseling

I know that this tag is not used very often, but there is no other way to map a dietitian...
Maybe after having its preset in iD, there will be more correctly tagged dietitians?
https://wiki.openstreetmap.org/wiki/Tag:healthcare%3Dnutrition_counselling

The page https://wiki.openstreetmap.org/wiki/Key:healthcare is not very clear, but seems to suggest using the combination of healthcare=counselling + healthcare:counselling=nutrition, which has been used 59 times (http://overpass-turbo.eu/s/Tn1), or healthcare=counselling + healthcare:counselling=dietitian, used 116 times. (http://overpass-turbo.eu/s/Tn2), compared to 34 uses of healthcare=nutrition_counselling

Oh, it's a pity that there isn't one tag for this but three!
I was influenced by the icon on Wiki for OSM Carto, but looks like it's not true, it's not rendered.
You can close the issue.


Open API Spec Generation in Build Process

The pages provided are very helpful.  The last bit of information that I need is a simple way to get the API spec from my new build during the build process.  I want to use it to provision cloud based resources defined by the spec.  I just don't see the documentation where I expected to find it.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 653e14ef-227e-a165-0360-2f59259e16c6
Version Independent ID: e4685d05-e874-76a3-9780-66b864eca6c1
Content: .NET OpenAPI tool command reference and installation
Content Source: aspnetcore/web-api/Microsoft.dotnet-openapi.md
Product: aspnet-core
Technology: aspnetcore-webapi
GitHub Login: @ryanbrandenburg
Microsoft Alias: rybrande

Hello! Thanks for contacting us. This sounds like a general question about using ASP.NET Core. While we try to look at and respond to all issues, for questions like this we recommend posting to a community support group like Stack Overflow with the asp.net-core tag.

Stack Overflow
ASP.NET Core Slack
ASP.NET Gitter

Potential bugs in the ASP.NET Core framework and product feedback can be reported at dotnet/aspnetcore issues (include full repro steps and cross-link to a repro project in GH when appropriate). For Visual Studio, use the Report a Problem gesture or Suggest a Feature gesture within VS, which open internal issues for the VS team. For Visual Studio Code, you can open an issue at microsoft/vscode issues.


fix incomplete read when using WithHeaders: false

This PR fixes #70 by making sure that we completely exhaust req.Body. 😃

tested ok

Thanks @mhils
If you are nearby Düsseldorf / the trivago office, drop us a note. Happy to share a 🍺 or a ☕ with you as a thanks for the PRs :)

Will do. 😉
Thanks for the quick merge!


 What's wrong with it?

I am not seeing any comments on this PR? What's wrong with it?


Interaction with rerunfailures-7.0 causing problems

rerunfailures-7.0 also has the same marker. I'm using @pytest.mark.flaky(reruns=3, reruns_delay=60 . The test failure is ignored without without any reruns. Can the plugin be modified to allow reruns or change the marker to pytest.mark.ignore_flaky?

I guess it would make more sense for "rerunfailures" to use a marker name related to their name...
Also not clear to me the problem is caused is caused by this project.


i Create a virtual assistant for Appwrite Hackathon

Hackathon Submission:JarvisAi
Name of Team Lead
Enter your full name
Suraj Singh Mehta
GitHub handles of Team Members
Enter the GitHub handles of all your team members (including yourself) as separate bullet points
-@Git-Suraj-hub
Are all of your team members registered on our Hackathon Signup page?
This is a mandatory step for all participants to be considered eligible for judging

[x] Yes
[ ] No

Rules and Code of Conduct
By submitting this PR, you agree to follow our Rules and Code of Conduct.

[x] Yes

Anything Else?
Any other feedback, queries or information you would like to share with us?

@Git-Suraj-hub I reviewed the project's GitHub repo and it doesn't contain any usage of Appwrite. Since this is mandatory to participate in this hackathon, the project is ineligible and I will be closing this PR. You can create another PR if you build a project valid to submit as per the rules.


Correction for raw affiliation Faculty of Economics, Université de Rennes 1 & CREM, France

Correction needed for raw affiliation Faculty of Economics, Université de Rennes 1 & CREM, France
raw_affiliation_name: Faculty of Economics, Université de Rennes 1 & CREM, France
new_rors: 015m7wh34;0047rmf80
previous_rors: 015m7wh34
works_examples: W4319081666
contact: 6a2ba1d80d756aa2050ef591fc0fcd22:f910e5598e4637b34cb5ddf4aa0e8321 @ univ-rennes.fr

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


v4: Conditional predefined grid classes

This wraps our predefined grid classes in a boolean conditional—defaulted to true—so folks can easily disable the grid classes should they opt for a mixin-only approach.
/cc i dunno who maybe that guy from reddit

:+1:

LGTM


你好，请问SelectiveScanMamba, SelectiveScanCore, SelectiveScanOflex和mamba提出的selective_scan_fn有什么区别吗？

貌似SelectiveScanOflex效率要高些？

SelectiveScanMamba is a wrapper of selective_scan_fn.
SelectiveScanCore delete some codes in mamba so that the code runs faster.
SelectiveScanOflex support input with dtype float16 and output with float32, so that you don't have to convert the input into float32 in advance, which also raises the speed.


Microsoft storage cache api 2023 01 01

ARM API Information (Control Plane)
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo.  If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.
Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month. End of January 2023
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month. End of January 2023
By default, Azure SDKs of all languages (.NET/Python/Java/JavaScript for both management-plane SDK and data-plane SDK, Go for management-plane SDK only ) MUST be refreshed with/after swagger of new version is published. If you prefer NOT to refresh any specific SDK language upon swagger updates in the current PR, please leave details with justification here.

Contribution checklist (MS Employees Only):

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[x] Check this box if any of the following apply to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review.  Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki.

[x] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.
NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)
Please follow the link to find more details on PR review process.

          "$ref": "#/definitions/CloudError"

Non-blocking, but recommended that teams move to ErrorResponse from v4 common types for new APIs.

Refers to: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/storagecache.json:1838 in 30d4c64. [](commit_id = 30d4c64c2167a84401850e8f6f180f0aa0092b10, deletion_comment = False)

@rebecca337 - I've signed off for ARM with comments.

@mentat9 Thanks for the note on v4, we are working on this and plan to have it in our next API version.

@tadelesh The CI-MissingBaseCommit tag is incorrect. If you look at our list of commits, we have the base commits in place done by OpenAPI.

@tadelesh The CI-MissingBaseCommit tag is incorrect. If you look at our list of commits, we have the base commits in place done by OpenAPI.

I don't see the error you mentioned. But you need to fix the model validation error.

@tadelesh I pushed the fixes for this. The model validation is now failing incorrectly due to the following:
The required property primingManifestUrl is not present in GET or PUT responses. This is an issue with the validation checker since primingManifestUrl is labeled as both required and x-ms-secret. According to
the x-ms-secret autorest specs, "When a property is modeled as both "required" and "x-ms-secret": true, which means that this property must not exist in the response but has to be present in request." which is what we do in the examples.
"primingManifestUrl": {
 "description": "The URL for the priming manifest file to download. This file must be readable from the HPC Cache. When the file is in Azure blob storage the URL should include a Shared Access Signature (SAS) granting read permissions on the blob.",
 "$ref": "#/definitions/URLString",
 "x-ms-mutability": [
  "create"
 ],
 "x-ms-secret": true
},
"required": [
 "primingJobName",
 "primingManifestUrl"
],

@tadelesh I pushed the fixes for this. The model validation is now failing incorrectly due to the following:
The required property primingManifestUrl is not present in GET or PUT responses. This is an issue with the validation checker since primingManifestUrl is labeled as both required and x-ms-secret. According to the x-ms-secret autorest specs, "When a property is modeled as both "required" and "x-ms-secret": true, which means that this property must not exist in the response but has to be present in request." which is what we do in the examples.
"primingManifestUrl": {  "description": "The URL for the priming manifest file to download. This file must be readable from the HPC Cache. When the file is in Azure blob storage the URL should include a Shared Access Signature (SAS) granting read permissions on the blob.",  "$ref": "#/definitions/URLString",  "x-ms-mutability": [   "create"  ],  "x-ms-secret": true }, "required": [  "primingJobName",  "primingManifestUrl" ],

Got it. I've let tooling team know the issue.

@tadelesh thanks. Are we approved to merge when we are ready? The other errors here are because of breaking change, and we already have the exception tag for that.

@tadelesh Could this PR be merged now? We are ready to merge.

/azp run

@MaryGao @msyyc Please help to check the SDK breaking changes.

@tadelesh Are we missing anything on my team's end to get this merged? Our rollout is complete so we need to merge this Swagger change as soon as we can.


[$15] Process payment button is not enabled for select all records if all the resources checkbox is disabled in current page.

Description:
Process payment button is not enabled for select all records if all the resources checkbox is disabled in current page. Even though the resources checkbox in other pages are enabled.

https://user-images.githubusercontent.com/55895538/130201374-0e93d538-0d51-4b9a-af2f-fc0e516dfcc4.mp4

Sum up:

when se select all records on all the pages as shown on the video above, the Process Payments button should get enabled. Because even if the current page doesn't have good Resource Bookings to pay for, other pages might have some.

@MadOPcode feel free to pick this up.

Challenge https://www.topcoder.com/challenges/aaeb9579-2cdf-41f5-9381-555ac143528c has been created for this ticket.This is an automated message for maxceem via Topcoder X

Challenge https://www.topcoder.com/challenges/aaeb9579-2cdf-41f5-9381-555ac143528c has been assigned to madopcode.This is an automated message for maxceem via Topcoder X

@sandhiyakavi fixed and ready for QA on DEV.

Verified in Dev Env. Process payment is getting enabled now.

Payment task has been updated: https://www.topcoder.com/challenges/aaeb9579-2cdf-41f5-9381-555ac143528c
Payments Complete
Winner: madopcode
Copilot: maxceem
Challenge aaeb9579-2cdf-41f5-9381-555ac143528c has been paid and closed.This is an automated message for maxceem via Topcoder X


Generalize conflation

Currently we have gene/protein conflation.
The ability to handle other types of conflation is partially implemented.  Specifically, the backend parts are probably reasonably close, but we don't have a very good parameter scheme for specifying different types of conflation independently.

At the moment, we have:

Two Redis databases for conflation: gene_protein_db and chemical_drug_db. Each of these consists of identifiers mapped to a list of identifiers (e.g. in chemical_drug_db, RXCUI:1486320 is mapped to "[\"PUBCHEM.COMPOUND:16666\", \"RXCUI:393549\", \"RXCUI:1046245\", \"RXCUI:1046531\", \"RXCUI:1235314\", \"RXCUI:1245396\", \"RXCUI:1486320\", \"RXCUI:1795938\", \"RXCUI:1863585\", \"RXCUI:1994323\", \"RXCUI:1999886\", \"RXCUI:1999887\", \"RXCUI:1999888\", \"RXCUI:1999889\", \"RXCUI:2102940\", \"RXCUI:2105551\", \"RXCUI:2566881\", \"RXCUI:2568111\", \"UMLS:C2698944\"]\n")
Two different flags for activating these conflations: conflate (for gene/protein conflation) and drug_chemical_conflate (for drug/chemical conflation)

We probably want to roll these up into:

A single conflation database that is divided up between different conflations. The dumb way of doing this in Redis would be with a prefix (e.g. chemical_drug_db|RXCUI:1486320), and since we only have ~9k DrugChemical conflations and 8.9 million GeneProtein conflations, I don't think it would be unreasonable to put them all into a single place, although of course lookups might be slower.
A single flag (e.g. conflations) to which a list of conflations to apply could be provided.


Add touchbar support

Considering adding touchbar support to the mac app but I am not sure if it would be beneficial to anyone.
Give this issue a thumbs up 👍  if you would like that feature.
Also, what functionality do you think should be added to the touchbar? Drop a comment below about it.

Actions:

Send request
Reload docs
Show docs


Test

pull_request: https://github.com/kenji-miyake/test-github-actions/runs/4439655250?check_suite_focus=true
push: https://github.com/kenji-miyake/test-github-actions/runs/4439725203?check_suite_focus=true


Bot not connecting Cannot assign requested address

As the title says my bot cannot connect to the mumble-server (which is hosted on the same device).
After starting the bot it tells me:
Killing running ruby scripts of user root
Killing running mpd instances of user root
Failed to bind to '<IP_ADDRESS>:7701': Cannot assign requested address
Using /usr/local/rvm/gems/ruby-2.1.1 with gemset bots

Your bot(s) should now be connected to the configured Mumble server.

_LOGGING/DEBUGGING_
  If something doesn't work, start this script with the additional parameter debug:
  ~/src/mumble-ruby-pluginbot/scripts/start.sh debug

  Then take a look into the logfile within /root/logs/.

_START AS APPROPRIATE USER_
  Make sure to run this script as user botmaster if you used the official
  installation documentation and DO NOT RUN THIS SCRIPT AS root.
  The official documentation can be found at https://wiki.natenom.com/w/Mumble-Ruby-Pluginbot

_UPDATE THE BOT (AND ITS DEPENDENCIES)_
  If you want to update the Mumble-Ruby-Pluginbot (and its dependencies) please
  run ~/src/mumble-ruby-pluginbot/scripts/updater.sh

_OFFICIAL DOCUMENTATION_
  Also please reread the official documentation at https://wiki.natenom.com/w/Mumble-Ruby-Pluginbot
  if you have further problems :)

_BUGS/WISHES/IDEAS_
  If you think you found a bug, have a wish for the bot or some ideas please don't
  hesitate to create an issue at https://github.com/dafoxia/mumble-ruby-pluginbot/issues

Have fun with the Mumble-Ruby-Pluginbot :)

Additional information:
-The server is password-protected, but the bot should have the right password.
-I'm using an raspberry pi type B with ~16 GB.
-The Pi is running a LAN > Wifi bridge.
Thank you in advance!

First a word to your additional information:
Maybe your PI will lack of power for all this things.
To your problem:
It seems that no mpd-instance is running and listening on localhost at port 7701.
Please post your logfile.

LOGGING/DEBUGGING
If something doesn't work, start this script with the additional parameter debug:
~/src/mumble-ruby-pluginbot/scripts/start.sh debug

And DO NOT run the script as root!

Somehow it can't find the file, when I'am logged in as botmaster:
bash: /home/botmaster/src/mumble-ruby/scripts/start.sh: No such file or directory
I have used root (via sudo su) while installing the bot, does that change anything?
the debug command outputs this line:
       from /root/src/mumble-ruby-pluginbot/pluginbot.rb:6:in'`

Yes, install it as user new. Please follow Natenoms guide, it is well tested and works. ;)

Ok I've reinstalled everything and now it connects to the server, but immediatly disconnects.
The debug command outputs the following lines:
[killduckthread] can't kill because wrong argument type nil (expected VM/thread)
Plugin ./plugins/version.rb loaded.
Plugin ./plugins/youtube.rb loaded.
Plugin ./plugins/null.rb loaded.
Plugin ./plugins/mpd.rb loaded.
Plugin ./plugins/control.rb loaded.
Plugin ./plugins/radiostream.rb loaded.
Plugin ./plugins/ektoplazm.rb loaded.
Plugin ./plugins/soundcloud.rb loaded.
Plugin ./plugins/bandcamp.rb loaded.
Plugin ./plugins/messages.rb loaded.
Config loaded!
parse extra config
Own Config loading and overwriting default settings!
pluginbot is starting...
start
/home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/audio_player.rb:53:in `initialize': No such file or directory @ rb_sysopen - /home/botmaster/mpd1/mpd.fifo (Errno::ENOENT)
        from /home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/audio_player.rb:53:in `open'
        from /home/botmaster/.rvm/gems/ruby-2.2.1@bots/gems/mumble-ruby-1.1.2/lib/mumble-ruby/audio_player.rb:53:in `stream_named_pipe'
        from /home/botmaster/src/mumble-ruby-pluginbot/pluginbot.rb:217:in `mumble_start'
        from /home/botmaster/src/mumble-ruby-pluginbot/pluginbot.rb:565:in `block in <main>'
        from /home/botmaster/src/mumble-ruby-pluginbot/pluginbot.rb:560:in `loop'
        from /home/botmaster/src/mumble-ruby-pluginbot/pluginbot.rb:560:in `<main>'
Connecting to the server is still ongoing.
connected
[killduckthread] can't kill because wrong argument type nil (expected VM/thread)

Don't miss step 9...
9 Set up MPD (Music Player Daemon)
[https://wiki.natenom.com/w/Installation_of_mumble-ruby-pluginbot]

I've now redone step 9 (and even reinstalled mpd), but nothing changed.
The debug log still outputs the same error.
Could it be a problem that mpd has been installed as root and the user botmaster has no root access (=not being included in the sudoers file)?

If you follow the installation instructions you install a "local" mpd for user botmaster and you do NOT use the systems mpd.

So far I've only skipped the 'On Arch Linux only' steps in the tutorial.
As for the mpd: I noticed that when I'm executing rvm use @bots in ~/src/mumble-ruby/ it says that ruby-2.1.1 isn't installed. But as far as I know ruby should be installed (I've executed rvm install ruby --latest).
Also there is a mpd installed by botmaster (ruby-mpd) and one installed by apt-get (mpd) on my raspberry PI.

please post the output of
mpd ~/mpd1/mpd.conf
(if there is one)
the output of
ps aux | grep mpd
and the content of
~/mpd1.mpd.conf
All commands as user botmaster.

Output of mpd ~/mpd1/mpd.conf:
Failed to bind to '<IP_ADDRESS>:7701': Cannot assign requested address
Output of ps aux | grep mpd:
1008     23569  0.0  0.2   2020  1208 pts/1    S+   19:06   0:00 grep --color=auto mpd
Output of ~/mpd1.mpd.conf:
bash: /home/botmaster/mpd1.mpd.conf: No such file or directory

location of mpd.conf should be in:
/home/botmaster/mpd1/mpd.conf

location of mpd.conf should be in:
/home/botmaster/mpd1/mpd.conf

It is. the ~ equals /home/botmaster/.

I've read your first post more careful.
Do you use the https://www.raspberrypi.org/products/model-b/
or
https://www.raspberrypi.org/products/raspberry-pi-2-model-b/ ?
The first one has not enough power to drive a bot without maximum overclocking an optimized kernel for the bot and NO OTHER things running on it. In this setting it is still not able to play a song without stuttering. In short: This device has not enough power.
For the second there is a image for download aviable. I recommend to update the bot after first start as well you should update the distro itself.
The image is basing on a minimal raspian only extended for the bot functionality, there is no other ballast on it.
To your issue: mpd did not start for a unknown reason to me. Maybe the mpd documentation or google could help.
Search for mpd, Cannot assign requested address

I'm using the model B with a bit of overclocking (800MHz).
So, does that mean, that the bot has no chance of running on my Raspberry PI?
(In that case it isn't that bad, since I'm already planning on upgrading to a V2 Type B.)
Thank you very much for all your support and time!


[SPARK-45603][INFRA] merge_spark_pr shall notify us about GITHUB_OAUTH_KEY expiry

What changes were proposed in this pull request?

This PR handles unauthorized errors when calling github rest API to notify us about the
GITHUB_OAUTH_KEY expiry as the current hint does not help
git rev-parse --abbrev-ref HEAD
Unable to fetch URL, exiting: https://api.github.com/repos/apache/spark/branches
Restoring head pointer to master

Why are the changes needed?

improve infra scripts
Does this PR introduce any user-facing change?

no
How was this patch tested?

./dev/merge_spark_pr.py
git rev-parse --abbrev-ref HEAD
GITHUB_OAUTH_KEY is invalid or expired. Please regenerate a new one with at least the 'public_repo' scope on https://github.com/settings/tokens and update your local settings before you try again.
Restoring head pointer to master

Was this patch authored or co-authored using generative AI tooling?

no

thanks, merged to master


Kubernetes hostPort is not working

Rancher Version:
1.2.0-pre2
Docker Version:
1.12
OS and where are the hosts located? (cloud, bare metal, etc):
Ubuntu 14.04 AWS
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Single node rancher with 3 agents in the Kubernetes environment
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Kubernetes (1.3.0-rancher3)
Steps to Reproduce:
Create a pod with a hostPort defined:
apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
    - name: nginx
      image: nginx
      ports:
        - containerPort: 80
          hostPort: 8888

Results:
You can't access the pod from outside the cluster on the hostPort
Expected:
The opposite.

@bonifaido Kuberentes abstracts the hostport - this is a feature, not a bug. If you need to access the port, then you need to create a nodeport service.
refer: https://github.com/kubernetes/kubernetes/issues/3267

@bonifaido This seems to be a legit bug. I'm looking into it.

@bonifaido This is because we use CNI. CNI does not support hostport configuration, and since we use CNI, we cannot use hostport in rancher kubernetes. Once this bug - https://github.com/kubernetes/kubernetes/issues/31307 is resolved, we'll be able to make our CNI plugin configure hostport.

Thank you for the clarification!

I assume that this will still not work if one uses VXLAN instead of IPSec. Is this right?

I am trying to use the Node Exporter with Prometheus, it requires the hostPort, if it cannot work, will there be a workaround?

With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.

Hi, I'm seeing this issue on Kubernetes Rancher v2.0. Is there a different bug for it?

I'm seeing this issue on Kubernetes Rancher v2.4.5

Hello, I'm seeing this issue on Rancher 2.5 running with docker as a single node

I am also seeing this issue on Rancher v2.3.3 as a single node using v1.18.8+k3s1.

I'm seeing same issue Rancher v2.5.3, does anyone have a workaround?

Rancher v2.5.5 also is presenting this issue.

Rancher v2.5.5 also is presenting this issue.


Some values don't appear to be signed

Sorry I know you have the same inverter as I do and I'd like to confirm with you that the battery current 33134 and the battery power 33149-33150 don't actually go negative when discharging as you would expect based off the closest doc I found or the graphs when looking at soliscloud
Eg
Battery power
SENT: a5 17 00 10 45 00 00 71 19 8e f3 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 04 81 7d 00 02 c9 ef 36 15
RECD: a5 17 00 10 15 00 20 71 19 8e f3 02 01 21 16 1e 00 a7 19 00 00 d4 39 96 62 01 04 04 00 00 00 0a 7b 83 95 15
b'\xa5\x17\x00\x10\x15\x00 q\x19\x8e\xf3\x02\x01!\x16\x1e\x00\xa7\x19\x00\x00\xd49\x96b\x01\x04\x04\x00\x00\x00\n{\x83\x95\x15'
10

Battery current
SENT: a5 17 00 10 45 00 00 71 19 8e f3 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 04 81 6e 00 01 78 2b 11 15
RECD: a5 15 00 10 15 00 21 71 19 8e f3 02 01 21 16 1e 00 a7 19 00 00 d4 39 96 62 01 04 02 00 02 38 f1 b5 15
b'\xa5\x15\x00\x10\x15\x00!q\x19\x8e\xf3\x02\x01!\x16\x1e\x00\xa7\x19\x00\x00\xd49\x96b\x01\x04\x02\x00\x028\xf1\xb5\x15'
0.2

Battery Current Direction
SENT: a5 17 00 10 45 00 00 71 19 8e f3 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 04 81 6f 00 01 29 eb 83 15
RECD: a5 15 00 10 15 00 22 71 19 8e f3 02 01 21 16 1e 00 a7 19 00 00 d4 39 96 62 01 04 02 00 01 78 f0 f4 15
b'\xa5\x15\x00\x10\x15\x00"q\x19\x8e\xf3\x02\x01!\x16\x1e\x00\xa7\x19\x00\x00\xd49\x96b\x01\x04\x02\x00\x01x\xf0\xf4\x15'
1

Current Direction is 1 so discharging ... both Battery Power and Battery Current show negative in SolisCloud, but positive here.

Yeah, 33134 and 33149-33150 are unsigned. If you need a signed version, you'll need to combined with the current direction in 33135.
From memory, I think the battery BMS current (33142) is signed, but I found the BMS registers to be a little slow to update (presumably because the battery is polled relatively infrequently).


[WIP] Update to Fable 1.3

#6
@ncave I am trying to update the repo to latest version of Fable.
I updated the makeProjOptions function to something similar to what I saw on Fable repo. And I deactivated the completion feature because I don't really what I should at it yet :)
But even, with Ionide being happy I am getting an error when building Build.FCS target.

fable: Compiled ../Fable/src/dotnet/Fable.Core/AST/AST.Babel.fs
[!] Error: 'defaultArg' is not exported by ../Fable/build/fable-core/Util.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
src/Fable.REPL/fcs.fs (7:9)
5: import { FSharpParseFileResults } from "../../../FSharp.Compiler.Service_fable/src/fsharp/vs/ServiceUntypedParse.fs";
6: import { FSharpProjectOptions, FSharpCheckProjectResults, FSharpCheckFileResults } from "../../../FSharp.Compiler.Service_fable/src/fsharp/vs/service.fs";
7: import { defaultArg, comparePrimitives, equalsRecords } from "../../../Fable/build/fable-core/Util";
^
8: import { map } from "../../../Fable/build/fable-core/Array";
9: import { SymbolLookupKind, getSymbol } from "./lexer.fs";

Can you please help me either by pointing me the direction or contributing back in this PR ?

Weird, defaultArg has moved to Option.ts. Not sure why it's being called from Util.ts, are you using latest dotnet-fable?

Ah... I didn't update the deps via paket. Perhaps this is the problem here. Let me see.

The signature of GetDeclarationListInfo have changed so I get a compilation error. And I don't know how to fix it.

@MangelMaxime @alfonsogarciacaro
Thanks guys, sorry I was stuck on paket dependencies that break the build on my windows machine.
I can't build successfully unless I comment the <Import Project="..\..\.paket\Paket.Restore.targets" /> in Fable.REPL.fsproj.
@MangelMaxime Two minor adjustments if I can suggest:

Please change the .net version in build.fsx to 2.0.2 (I really wish Fake supported SemVer).
I would keep the old metadata binaries around a bit longer, until the performance on the new ones catches up.

@ncave I update the PR with your two suggestions :)
And.. what have you done to my computer, me too I get a problem with the build system now. Was working fine 1 hour ago. 😞
For info, I am under linux so probably not OS related.
Using your fix:

 in Fable.REPL.fsproj.

Works...
So we now have two thing to figure out:

Fix the paket thing
Fix the auto completion implementation

@MangelMaxime And two other minor things:

can you update the package.json dependencies to latest, I'm getting some uglify errors in rollup on some packages.
by the time I wrote that, I realized .net 2.0.3 has been out for 2 days, please update that too ;)

@ncave I updated it to 2.0.3 but now, the different FAKE build goes crazy.
One install 2.0.3, then another install 2.0.2, then 2.0.3, etc.
This is compiling at the end but we should update the dotnet version in every FAKE script ^^.
Node dependencies has been updated to latest version but I am still having issues with UglifyJS.
Also, if you need feel free to push change into this PR.

@MangelMaxime Unfortunately I'm getting a runtime error (missing resource) with 2.0.3 on FCS_export, so it may have to stay with 2.0.2 for now.

@MangelMaxime But I have updated the FCS_fable to 2.0.3 so that should help with the build issue (2.0.3->2.0.2->2.0.3).

Ok no problem @ncave
I installed globally the 2.0.3, so should avoid Fake helpers to download each SDK each time.

Ok no problem @ncave
I installed globally the 2.0.3, so should avoid Fake helpers to download each SDK each time.

Found another thing, seems like when doing the new architecture of the repo I forget to copy/paste the fable-core folder generated using Fable repo.
So for a quick test, I copy/paste it manually and now I see this error:

SyntaxError: export declarations may only appear at top level of a module
CurriedLambda.js:1
SyntaxError: import declarations may only appear at top level of a module
String.js:1

Code for reproduction:
let helloWorld = sprintf "Hello, %s"

Fable.Import.Browser.console.log(helloWorld "Maxime")

@alfonsogarciacaro Are we missing a babel plugin or a transformation  ?

Ah ok I think I know what's wrong. I didn't build the fable-core modules for AMD. Will test it today and see if it's better :)

So the problem was indeed due to a non AMD version fable-core. I fixed the build.fsx to generate a custom AMD version of fable-core and copy the files in the right place.

@MangelMaxime

The signature of GetDeclarationListInfo have changed so I get a compilation error. And I don't know how to fix it.

https://github.com/ncave/FSharp.Compiler.Service/blob/fable/fcs/fcs-fable/test/app.fs#L204-L206
(note the column # should really be 24 in this case, but that's specific to this test script, I'll fix it later).

@ncave Thanks you, I will take a look at it this evening. And good to know there is a test folder can be helpful in the future too :)

Last commit, re-activate the completion service.
Can one of you explain me what this function is doing?
I believe it's use to make the result more accurate and less numerous but not sure :)

@ncave Should we open an issue on paket repo about ? Just to test I try to use netstandard2.0 but result is the same.

C:\Projects\fable-repl\src\Fable.REPL\Fable.REPL.fsproj : error NU1100: Unable to resolve 'System.ValueTuple (>= 4.0.0)' for '.NETStandard,Version=v2.0'. [C:\Projects\fable-repl\Fable.REPL.sln]
C:\Projects\fable-repl\src\Fable.REPL\Fable.REPL.fsproj : error NU1100: Unable to resolve 'FSharp.Core (>= 4.2.0)' for '.NETStandard,Version=v2.0'. [C:\Projects\fable-repl\Fable.REPL.sln]

@MangelMaxime Opening a separate issue is probably a good idea.

@MangelMaxime

Can one of you explain me what this function is doing?

It was copied from here:
https://github.com/fsharp/FsAutoComplete/blob/master/src/FsAutoComplete.Core/Parser.fs#L197-L224

Thank you @ncave

For reference: https://github.com/fsprojects/Paket/issues/2908


Back to CSS prefix

Even after three years that #1235 was locked, it still makes sense to add a prefix variable that prefixes all classes OR scopes all classes within the prefix class.
According to contribution guidelines, this is a feature request. It is also a duplicate, but I could never explain my use case in a locked issue like #1235.
I've been using Bootstrap since its beggining. I updated from v2 to v3 with a very nice smile on my face. Last year we started to use it from Less sources compiled with Webpack. We changed some variables, but not the styles.
By the end of this year, we made a corporate rebranding. All the styles were standardized and we started a separate project to customize Bootstrap Less files in order to apply our new brand guidelines.
However, we are in a crisis here. Some parts of the website can be updated with the new styles, but other can't because it doesn't makes sense to invest any effort to adapt old features to new styles.
So we had the brilliant idea to wrap all the old BS styles inside a contextual class ".oldbs"  and apply it only to webpages that need to be compatible with the old interface.
It would be nice if BS had an option to build this prefix or contextual way of framework application. Searching across the web, we found some people considering this feature for BS3 to BS4 transition. And now, well... we also are considering this for future migration.
In the end, we've ended up with this tutorial for Less: https://formden.com/blog/isolate-bootstrap. It consists of compiling all bootstrap.less file and then prefix all the CSS compiled file with another Less.
Backwards compatibility or even an easier way to make softer transitions is a must have for a mature and globally used framework like Bootstrap.
Best regards to all.

This can be solved outside our framework with whatever build tooling you need. I’m unsure if we’d try to bake this in ourselves given the various nuances of everyone’s setup.
If you use PostCSS, these options are available:

https://github.com/thompsongl/postcss-class-prefix
https://github.com/marceloucker/postcss-prefixer

I’m sure there are more, too.

Closing as a won't fix for now.

it's a tough work to change css prefix in js files.


the problem is not solved ((

See issue #12

can you show the jquery.filer configuration object?

I use demo version.
I checked on the two browsers (chrome latest and firefox)

here

ups. For this example, you will need either an ajax request in onRemove function or a form submit  action.


tf.keras.models.load_model can't handle UNC paths

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
binary
TensorFlow version
tf 2.14.0
Custom code
Yes
OS platform and distribution
Windows 10
Mobile device
No response
Python version
3.11.6
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I recently issued a bug when saving tf.keras.Models in the SavedModel format using a UNC path like
model.save("\\\\ComputerName\\path\\to\\folder"),
see #62319. A workaround for the time being is to use the .keras save_format instead, so the following works:
model.save("\\\\ComputerName\\path\\to\\folder\\model.keras", save_format='keras').
However, loading that model, again using the same UNC path, still is broken: running
tf.keras.models.load_model("\\\\ComputerName\\path\\to\\folder\\model.keras")
raises the error shown below.
The problem once again seems to be with the UNC path, because replacing it with a path using the drive's name letter resolves the problem: if J: is set as an alias for \\ComputerName, then
tf.keras.models.load_model("J:\\path\\to\\folder\\model.keras")
works as expected. But doing this is not really a solution for me, because then I would have to rely on others to use the same letter J for the network drive in order to run my code.
Standalone code to reproduce the issue
# The issue can be reproduced using, for instance, the path to the root of the D: drive, expressed as UNC path
path = "\\\\localhost\\d$"
path = pathlib.WindowsPath(path)
path = path/'test'

# If we uncomment the following line and replace the path string with one that includes the drive's letter, no error occurs.
#path = pathlib.WindowsPath("D:\\test")

path.mkdir(exist_ok=True, parents=True)

# Set up and save a dummy model
model = tf.keras.Sequential()
model.add(tf.keras.Input(shape=(16,)))
model.add(tf.keras.layers.Dense(8))
model.save(path/'model.keras', save_format='keras')

# Loading the model using the same UNC path raises a UnicodeDecodeError
model = tf.keras.models.load_model(path/'model.keras')

Relevant log output
Traceback (most recent call last):
  File "D:\keras_load_error.py", line 26, in <module>
    main()
  File "D:\keras_load_error.py", line 23, in main
    model = tf.keras.models.load_model(path/'model.keras')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\.venv\Lib\site-packages\keras\src\saving\saving_api.py", line 254, in load_model
    return saving_lib.load_model(
           ^^^^^^^^^^^^^^^^^^^^^^
  File "D:\.venv\Lib\site-packages\keras\src\saving\saving_lib.py", line 281, in load_model
    raise e
  File "D:\.venv\Lib\site-packages\keras\src\saving\saving_lib.py", line 234, in load_model
    ) as gfile_handle, zipfile.ZipFile(gfile_handle, "r") as zf:
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\zipfile.py", line 1302, in __init__
    self._RealGetContents()
  File "C:\Program Files\Python311\Lib\zipfile.py", line 1365, in _RealGetContents
    endrec = _EndRecData(fp)
             ^^^^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\zipfile.py", line 292, in _EndRecData
    fpin.seek(0, 2)
  File "D:\.venv\Lib\site-packages\tensorflow\python\util\deprecation.py", line 588, in new_func
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "D:\.venv\Lib\site-packages\tensorflow\python\lib\io\file_io.py", line 139, in seek
    self._preread_check()
  File "D:\.venv\Lib\site-packages\tensorflow\python\lib\io\file_io.py", line 77, in _preread_check
    self._read_buf = _pywrap_file_io.BufferedInputStream(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 89: invalid start byte

Hi, @early-stopper!
This issue generally arises because UNC paths are not supported by the underlying TensorFlow library. TensorFlow uses a local file system to store and load models, and UNC paths are not considered to be local files.
As you said you can use different saving formats as a workaround for now.
We are already tracking this issue #62319  here, so please move this issue to closed status?
Thank you!

Just to be clear: using a different saving format is a workaround for #62319 only. This issue here still occurs, despite me switching to the .keras format. The only workaround left is to replace the UNC path with a drive letter path to the same file with the drawback that every machine has to adapt this naming convention. However, this would still be the same path and still not be a local file, but works nevertheless, so I really see no reason why the original UNC path shouldn't work as well.
Handling UNC paths already worked in an earlier TensorFlow version. If you regard this not a supported feature, hence not a bug, feel free to close the issue. In that case, please consider this a feature request.

You may also close this issue, if you consider it a duplicate to #62319. My reasoning here was that the 2 issues, though related, result in different errors and therefore are worth separate tickets.

@early-stopper Thanks for the clarification here.
@SuryanarayanaY Could you please have a look at this?
Thank you!

Hi @early-stopper ,
As per documentation the argument filepath should be str or pathlib.Path object.
I have changed the path from pathlib.WindowsPath(path) to pathlib.Path(path) and its working fine. Attached gist for same.
Could you please just try with pathlib.Path(path) and let us know if it works on WIndows too or not. Thanks!

Hi @SuryanarayanaY,
first off, since path.WindowsPath is a subclass of pathlib.Path, you would expect it to work as well in the sence of duck-typing. In fact, by the documentation, executing path.Path(...) will always create either a path.WindowsPath (Windows) or a path.PosixPath (Unix), depending on the underlying OS: on Windows, I get
>> import pathlib
>> path.Path('C:')
WindowsPath('C:')

In other words, replacing path.WindowsPath with path.Path really should not make a difference on a Windows system.  And in fact it doesn't, the resulting error will still be the same.
The reason why you can't reproduce the error, I suspect, is that Google Colab is running with an underlying Unix system, where pathlib.Path will produce an instance of path.PosixPath. Try running print(type(path)) in the notebook to confirm this. It seems that the problem only affects Windows systems.

The reason why you can't reproduce the error, I suspect, is that Google Colab is running with an underlying Unix system, where pathlib.Path will produce an instance of pathlib.PosixPath. Try running print(type(path)) in the notebook to confirm this. It seems that the problem only affects Windows systems.

Yeah,Because of environment limitations I requested to cross check with Windows OS. Thanks for confirmation. Could you confirm whether older TF versions works fine with this path earlier.Just to check whether it is a regression problem and when it was introduced if so.
Thanks!

Also just want to know whether it works with keras-nightly (i.e keras3.0.dev). Could you able to check it if have bandwidth.
Thanks!

I know that both this issue and #62319 did not occur when running the same code in TensorFlow 3.11 and I first noted these problems with TensorFlow 3.12.

Also just want to know whether it works with keras-nightly (i.e keras3.0.dev). Could you able to check it if have bandwidth.
I am a bit confused here, do you mean I should install this package in addition to tensorflow? I thought you now were supposed to use tf.keras as part of the TensorFlow package rather than keras as a standalone package. Or do you mean the tf-nightly build?

Please also refer to #62332

I tested both variants and can confirm that the issue does not occur when using keras-nightly, but still occurs with tf-nightly + tf_keras_nightly .

Hi @early-stopper ,
To ensure tensorflow uses Keras2 you need to set the environment variable using os.environ["TF_USE_LEGACY_KERAS"]="1".  Please setup and try again.
Thanks!

Since some months have passed, it may be worth double checking that we still are on the same page. I set up a new project and used pip install tensorflow. This installed tensorflow==2.15.0 and keras==2.15.0. The following code
import pathlib

import tensorflow as tf

def main():
    path = "\\\\localhost\\c$"
    path = pathlib.Path(path)

    path = path/'test'
    path.mkdir(exist_ok=True, parents=True)

    model = tf.keras.Sequential()
    model.add(tf.keras.Input(shape=(16,)))
    model.add(tf.keras.layers.Dense(8))

    model.save(path/'model', save_format='tf')

then raises the following error:
tensorflow.python.framework.errors_impl.FailedPreconditionError: \\localhost\c$\test is not a directory

When modyfying the snippet as suggested by adding os.environ["TF_USE_LEGACY_KERAS"]="1", I arrive at
import os
import pathlib

import tensorflow as tf

os.environ["TF_USE_LEGACY_KERAS"]="1"

def main():
    path = "\\\\localhost\\c$"
    path = pathlib.Path(path)

    path = path/'test'
    path.mkdir(exist_ok=True, parents=True)

    model = tf.keras.Sequential()
    model.add(tf.keras.Input(shape=(16,)))
    model.add(tf.keras.layers.Dense(8))

    model.save(path/'model', save_format='tf')

and now get the error
ImportError: Keras cannot be imported. Check that it is installed.

I am not able to reproduce the error with tensorflow==2.17.0, it appears the problem is fixed and the issue can be closed now. Thank you!

@early-stopper,
I tried to execute in tensorflow v2.17 and observed the issue got fixed in the tf 2.17 which contains the Keras3.0 version. Kindly find the gist of it here.
Please feel free to move this issue to closed status. Thank you!


Disabling sorting on Drag & Drop list doesn't work

What is the expected behavior?
Drag & Drop list items can't be sorted when cdkDropListSortingDisabled set.
What is the current behavior?
Drag & Drop list items can be sorted when cdkDropListSortingDisabled set.
What are the steps to reproduce?
https://material.angular.io/cdk/drag-drop/overview#disabled-sorting
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 7.3.6
Is there anything else we should know?

These changes haven't been released yet. It looks like our docs were generated against the latest code from master rather than the latest stable version. See https://github.com/angular/material2/issues/15632.

Also, would the documentation be updated also?
In  https://material.angular.io/cdk/drag-drop/api, the description for cdkDragDisabled and cdkDropListSortingDisabled are the same, which makes it very confusing.

Thanks for the heads-up @wc2582, I've submitted a PR to correct it.

@crisbeto this still does not work.

bump...!

bump...!

should be included in the last release of Angular Material v8.
(haven't tried it yet)


Replace disabelWebPagePreview with linkPreviewOptions

Just to record, this PR will add a parameter to the SendMessage, for this every a package update will cause a compile issue to add a boolean to the sendMessage()


ConvTasNet model can not handle long duration wav files

Hello,
ConvTasNet model can not handle long duration wav files as input,
if the wav has a duration greater than 2 minutes then a crash will occur during the evaluation step :

cuda error (if GPU is used)
segmentation fault (if CPU mode is used)

Yeah, that's a memory problem on GPU and a nn.Conv1d problem on CPU.
We should foward in chunks and combine them.
Would you like to give it a try?

I don't know pytorch, I can try but not sure to succeed.

It's not really pytorch related, it's signal processing. It would be kind of an chunk, enhance, overlap add strategy but with very long frames.
You can have a look at torch.fold and torch.unfold, I guess they would help !

Refs #193

We added an overlap add wrapper which makes it possible to do inference on long files without going OOM.
See: https://github.com/mpariente/asteroid/pull/193. Once merged this issue will close.


Video plugins

Did you check the docs?

[X] I have read all the docs

Is your feature request related to a problem? Please describe.
Please tell what plugins you use for the slide cursor and indent highlighting.
It looks great!
Describe the solution you'd like
Maybe even add to readme.md?
Describe alternatives you've considered
Asking Reddit?
Additional context
No response

Smooth Cursor is powered by neovide/neovide
For indent part, I use two indent highlighting plugins at the same time.

indent-blankline.nvim
To draw the dimmed indent indicator of every indent. For example:

echasnovski/mini.indentscope
To draw the animated indent of current scoped which is the golden line of my indent indicator.

Thanks heaps!!


Fix create_fake_user ID generation

I want to merge this change because User ID collisions in create_fake_user are causing test_create_fake_users to fail intermittently in our project. This change reduces the likelihood of collisions occurring.
Faker's numerify is currently used to set the User's id value, returning an integer between 0 and 999 (inclusive) when no text argument is provided. If this generates an existing user ID then Django updates the existing database record instead of inserting a new one, causing the test assertion to fail.
This isn't a problem when running Saleor's tests directly due to Faker being seeded with constant 0 but in our project we have opted to seed Faker with a different value for each test run, resulting in around 1% of test runs failing.
=================================== FAILURES ===================================
____________________________ test_create_fake_users ____________________________
[gw0] linux -- Python 3.9.9 /usr/local/bin/python

db = None

    def test_create_fake_users(db):
        how_many = 5
        for _ in random_data.create_users("password", how_many):
            pass
>       assert User.objects.all().count() == 5
E       assert 4 == 5
E        +  where 4 = <bound method QuerySet.count of <QuerySet [<User<EMAIL_ADDRESS><User<EMAIL_ADDRESS><User<EMAIL_ADDRESS><User: stephanie.keith@example.com>]>>()
E        +    where <bound method QuerySet.count of <QuerySet [<User<EMAIL_ADDRESS><User<EMAIL_ADDRESS><User<EMAIL_ADDRESS><User<EMAIL_ADDRESS>= <QuerySet [<User<EMAIL_ADDRESS><User<EMAIL_ADDRESS><User<EMAIL_ADDRESS><User<EMAIL_ADDRESS>E        +      where <QuerySet [<User<EMAIL_ADDRESS><User<EMAIL_ADDRESS><User<EMAIL_ADDRESS><User<EMAIL_ADDRESS>= <bound method BaseManager.all of <jr_api.models.UserManager object at 0x7fcada398f40>>()
E        +        where <bound method BaseManager.all of <jr_api.models.UserManager object at 0x7fcada398f40>> = <jr_api.models.UserManager object at 0x7fcada398f40>.all
E        +          where <jr_api.models.UserManager object at 0x7fcada398f40> = User.objects

saleor/core/tests/test_core.py:124: AssertionError

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for contributing to Saleor @andybearman 🎉


automate proxy hosts and certs via env vars??

Checklist

Please read the setup instructions
Please read the FAQ

What is troubling you?
Docker compose env vars for all proxy hosts
VIRTUAL_HOST = domain.example.com
VIRTUAL_PORT = 1880
LETSENCRYPT_HOST = domain.example.com
LETSENCRYPT_EMAIL =<EMAIL_ADDRESS>why do I still have to manually enter an IP and a PORT when they change all the time????
What is the method to automate or what am I missing for an API that I can use environment vars to handle for each session?
This project is really great and the front end is awesome.. Id love to not have to spend as much time looking at it.
Clear and Concise Description : I would like to use environment vars in docker run or docker compose to automate the nginx-proxy, and the nginx-proxy-le, rather than using the GUI to enter the information such as the IP addresses or the external ports that change every time I restart a container.

This project, being able to create multiple hosts and have multiple users, doesn't lend itself well to a env-var-only configuration.
Since the UI is just a pretty API client, you can use the API to update any host yourself too. I don't have any documentation for it though, but if you inspect the browser's network traffic when using the UI you'll be able to see the API requests to use.
My last thought though - why are your ip addresses / (external?) ports changing? Wouldn't your other services be binding to defined ports?

I have a bunch if industrial automation, SCADA, and PLC runtimes and data gateways that all want to use the same ports, hostnames and serial data addresses, I quit trying to manage them, and just let docker do that, and use domains for everything.
I guess NPM would normally be pointing at the application port and not the exposed port so not changing often.. I have been testing with NPM running on a clustered lxc.. and thats had me playing with ports, however the IP's are constantly shifting for sure, I havent been able to get a network alias or hostname to work in place of an IP.. but I guess that could be a solution??
Ah.. the access lists.. certainly does make the automation a bit more complex. I will dig a bit into the the API and see what I can cook up.
quick question.. You dont have any examples of, or have time to poke at proxying MQTT data using streams? there is some way to loadbalance with Nginx.. and there are public brokers at test.mosquitto.org, and broker.hive.com so there is some way to get the traffic directed using a domain name. but I dont have enough experience with the web stuff to make sense of how that should work for non HTTP traffic.
Thanks for the quick response!!   again awesome project.

The streams support is pretty basic, it's just a port forward and doesn't handle load balancing or SNI for hostnames etc (requested by others). I don't plan to put any attention into this area anytime soon either.
If your docker/lxc services are running on the same host, could you use a virtual network with internal name resolution for those services?

Thats what I am looking at now.. I cant get the docker assigned network aliases or the container "hostnames" to actually proxy with NPM.. the only way it actually resolves is the IP address.. Maybe that is a function of the certificate?? I am going to figure out some internal dns stuff that will work.
What?? streams is not on the top of your list this moment??!   what sort of a business is this?? I demand a refund !
Not serious.. I appreciate your suggestions.. and Ill close this request. Thanks again for the super fast responses!
If you DO happen to come across a thread, or you get an issue resolved, or slack chat, read a medium post, whatever about someone who's got mqtt messages proxying.. a link or a snippet in the readme would be total blessing. If I get it worked out (which is seeming a battle Im not skilled properly to even comment on) I will write it up and pass a link your way.

I cannot believe there aren't more people asking for this feature. 😲
I found this project, which adds this feature as a separate container.
Unfortunately it hasn't been updated in a long time.
It looks like there some hard coded parameters you might need to change to your environment.
And even ater that I could not get it to work.
When I start nginx-proxy-manager-assistant my nginx-proxy-manager stops working and I need to restart the container.
Maybe someone has more luck or could even pick up that project and update it.

@CWempe , the login in npm-assistant is pretty simple, you can try to automate to fork it and adapt to your env. Or make a bash script. I have a very-very draft version of bash script for automatic proxy-host addition. In a week or two will implement it as part of Gitlab-ci\cd. Will post as snippets to my github repo.


fairseq-preprocess: error: unrecognized arguments:

你好：
我已经完成了
python preprocess_data.py -dataset USPTO_50K -augmentation 20 -processes 64 -spe
但是运行到
sh binarize.sh ../datasets/USPTO_50K/aug20 dict.txt
时发生报错
fairseq-preprocess: error: unrecognized arguments:
binarize.sh: 8: --trainpref: not found
binarize.sh: 9: --destdir: not found
binarize.sh: 10: --workers: not found
binarize.sh: 11: --tgtdict: not found
binarize.sh: 12: --srcdict: not found

你好，错误的原因可能是因为 fairseq 没有正确安装，或者系统默认 shell 脚本不是 bash, 可以尝试一下 bash binarize.sh ../datasets/USPTO_50K/aug20 dict.txt

The problem is that the author uses the windows newline character, and if you are running the command in unix/linux, it could cause the error.
You can solve this easily by converting it to unix/linux style using dos2unix ./xxx.sh.
Hope this helps.


Expansion list

[ ] Check expansion list is included into list ui component issue

Moved to https://github.com/epicmaxco/vuestic-ui/issues/21


⚠ Bofrost.lu has degraded performance

In ff58e95, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 2680 ms

Resolved: Bofrost.lu performance has improved in 34a5bf7 after 20 minutes.


Issue installing appCenter via cocoa pods. Install fails with error.

What App Center service does this affect?
AppCenter CocoaPod install on Mac for iOS (Formerly Hockey App)
Podfile contents below
Describe the bug
Unable to install or update via Cocoapods. Doing so gives the following error in git
Installing AppCenter (2.1.0)
[!] Error installing AppCenter
[!] /usr/bin/curl -f -L -o /var/folders/m2/vxzmsqqx5nx05f3qw6hk_nwr0000gn/T/d20190706-62574-1hdvm6d/file.zip https://github.com/microsoft/appcenter-sdk-apple/releases/download/2.1.0/AppCenter-SDK-Apple-2.1.0.zip --create-dirs --netrc-optional --retry 2
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   619    0   619    0     0    179      0 --:--:--  0:00:03 --:--:--   179
64 43.1M   64 27.6M    0     0  27256      0  0:27:40  0:17:44  0:09:56     0
curl: (56) LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
To Reproduce
Steps to reproduce the behavior:
Unsure if this is reproducible, but this is what I was working on

Break off test branch from develop
Run pod update. App Center 2.1.0 updates as expected
App builds.
After one commit, checkout develop
Reset --hard HEAD
Delete test branch
Run pod update (fails to install 2.1.0)

Repair attempt

Remove AppCenter from Podfile
Run pod update to remove. Successful and app builds.
Attempt to install AppCenter 2.1.0 again (fails)
Attempt to install AppCenter 2.0.1 again (fails)

Expected behavior
Expect to be able to update pod after removal via cocoapods
Screenshots

Desktop (please complete the following information):

Mac OS 10.14.5 Mojave
Terminal Version 2.9.5
Xcode 10.2.1

Additional context

Pod environment:

Stack
   CocoaPods : 1.7.3
        Ruby : ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
    RubyGems : 2.7.6
        Host : Mac OS X 10.14.5 (18F132)
       Xcode : 10.2.1 (10E1001)
         Git : git version 2.20.1 (Apple Git-117)
Ruby lib dir : /Users/Mike/.rbenv/versions/2.5.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ c008fdc6225c77805f2d3f8981769a0a056d65f1

Installation Source
Executable Path: /Users/Mike/.rbenv/versions/2.5.1/bin/pod

Plugins
cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.3.1
cocoapods-try         : 1.1.0

Podfile
source "https://github.com/CocoaPods/Specs.git"

platform :ios, "11.2"
inhibit_all_warnings!

target 'SICController' do
    use_frameworks!
    pod 'AppCenter'
    pod 'MPC_Notification', '~> 1.1.3'
    pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '4.1.0'
end

Hey, @fareast555, sorry for late response and thanks for getting in touch!
As far as I can see, it looks more like a problem either in curl \ LibreSSL util or proxy\firewall behind your connecition - curl either can't reach repo or verify secure connection.
Also, I've tried to reproduce your problem - just to be sure - and could not reproduce with given versions of applications\IDEs (OS matches, too).
Can you, by any chance, verify points I mentioned above?

Hi @Jamminroot  Thanks for the reply. Yeah, I guess it was some mystery issue, because I just tried to install it now, and there were no issues.
It may be due to before I was using pod update...this time I did a pod update, committed everything in the staging area, then added AppCenter to the pod file and did a pod install. It worked.
Not sure why it suddenly is working though. I tried it over the course of a few days and finally gave up. Did you jiggle a wire? lol Anyway, thanks. I'll close this off here.
Much appreciated!
Feel free to contact us if you need asisstance with SDK

I got it to work by removing appcenter with yarn remove appcenter then doing pod install and again installing appcenter yarn add appcenter and then again doing pod install

Same problem, I tried everything, uninstall, reinstall, change network ... I have no proxy.


Add message on signing options

i think (the signing option dropdown) should open but display a message that says you need to sign in to use them.
Originally posted by @jbibla in https://github.com/cosmos/voyager/pull/1814

So the thinking here is that the modal is opening but stating that the user needs to sign in first?

I honestly don't think this issue is necessary, we already give the user the option to log in with the desired method to sign, which makes things pretty clear

Yes we do. This is why I was asking if the issue means showing a "First Sign In" on ActionModals if the user is not signed in. Is that correct or does it mean sth. else?

lol @fedekunze you quoted me and got it wrong #fakenews

action modals should always open for users (whether they are signed in or not)
if the user is not signed in, the action modal should prompt the user to sign in

#fakenews

2. if the user is not signed in, the action modal should prompt the user to sign in

you mean change the action modal's body for a message to sign in ? @jbibla

yes

yep! like "Hey! CooL! You want to DeLeGaTe? Sign up here!"


Problem with .NET Framework

Hey, I created a normal form application and wanted to test your library.
However, I always get the following error with .NET Framework (tested were 4.6.1 and 4.7.1):

System.IO.FileNotFoundException: "Die Datei oder Assembly "Unosquare.Labs.EmbedIO, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden."

How did you install the lib?

I installed these:

Mh, I just created a new 4.6.1 projected, added Spotify.Web and Spotify.Web.Auth (it will auto install the dependencies) and it compiled successfully

Also, in your image, EmbedIO is listed, so I'm not sure what's happening there

That's really weird. I deleted all references again and then reinstalled all packages in the Nuget Manager. Now it works. Thanks for your quick reaction! 👍

👍
Sometimes, cleaning the solution also helps.

Got the same exception but only with 4.7.1 after switching to 4.6.1 it worked. Annoyance.


Problem with reupload image

Hi. Thanks for your gem! I have one problem with reupload image.
I select image with aspect 16:9 from my pc, cropbox works correct. After i would exchange this image(16:9) with image 4:5 and this look so stretched. Can you help me solve my problem?
PS Sorry for my bad English :(

I'll see what I can do on this weekend

I try to do this, and cropbox works correct after change image with another aspect.
May you show me your code?
PS Sorry for my bad English too :)
PPS Do you speak Russian?

Говорю по-русски, уже разобрался) Видимо нужно ночью чаще спать :smile: Спасибо за гем! Очень помог!

Да не за что. Пользуйся на здоровье :)


createBucket request fails with 409 (conflict), but doesn't throw

When making a create bucket request for an already existing bucket the future succeeds but the operation in fact failed.
Stepping through the framework code in a debugger the first (or second) HTTP request is a 409, but the future is not rejected.

let createBucketRequest = S3.CreateBucketRequest(bucket: bucket)
return try s3.createBucket(createBucketRequest)

@mxcl Code in here was so old, surprised it worked at all. I've just updated it with latest from aws-sdk-swift if you want to give it another go.

fixed


Why should we map loop to defferent memory level?

I have read your paper and thought it was wonderful, but I still have a few questions. What is the operation of mapping a loop to a memory level? How to execute it? What kind of benefits can this bring?

Mapping different loops to different storage units allow us to model how much data is stored in each storage for reuse. Please check out the timeloop-accelergy tutorial: https://accelergy.mit.edu/tutorial.html for more details.