Musing on the stats endpoint

This is a dupe of https://github.com/jupyter/tmpnb/issues/95, but likely belongs in both since they're using the same "spec".
I'm kind of wishing we had a beautiful front-end stats page (which could just be at stats.example.org), or we could make two endpoints on a given tmpnb server /stats for a beautiful mockup of the data and /api/stats for the raw JSON.
In addition, some things I've wanted during a deploy:

List version of the containers that are running
Some aggregated activity data (e.g. number of docker logs of individual containers)

Can this be closed thanks to jupyter/tmpnb#162?

Most definitely!

Ah, wait. No. This hasn't been implemented in the redirector.

OK. Let me change the issue title to clarify that.
I shall submit a PR soon.


Development newsletter

To promote the work being done on the gem and the app there should be a way to communicate how progress is being made and to rally the community around efforts being done.
Maybe "here's what's going on" and "here's how you could help" sections?

Step 1: Get a community :smile:

Pfft. So easy, right?!
:sob:
On Mon, Aug 24, 2015 at 4:53 PM, Gleb Mazovetskiy<EMAIL_ADDRESS>wrote:

Step 1: Get a community [image: :smile:]
—
Reply to this email directly or view it on GitHub
https://github.com/jayroh/thredded/issues/114#issuecomment-134376848.


Bindings are broken when two controls have the same name

Ex.
<select name="test"></select>
<select name="test"></select>

Angular does not keep the two select boxes synchronized with the value of "test" in the current scope. Only one of them gets updated.

Is this for an older code base and can now be closed?  Angular doesn't appear to work this way any more (and/or it's fixed?)
http://jsfiddle.net/jNH8L/2/


Expose an AddOrigin service

Its common in more lower level service configurations that we need to add an origin to each request. We should provide this utility since we already have all the types imported.

Sure, this could be hyper::service::AddOrigin (WithOrigin?).

Hi! I'd love to take up this issue. This is the first time I'm contributing to a Rust project, so I'd really appreciate any form of help. Thanks :)

Hey @seanmonstar @LucioFranco
I looked into the code, but I just have a quick (or rather noob) question - where and how exactly is this utility to be implemented? Do we have to implement this one as another trait, or a helper function to set the origin header on Request?
Thanks :)

First version of what a potential solution for this could look like: https://github.com/hyperium/hyper/pull/2242

@seanmonstar I have updated the solution for this.. #2256 .. Keen to get your feedback.

In the back of my mind, I was thinking that we want to start pruning things from hyper to prepare for 1.0, and this addition doesn't seem essential enough to add. That's different from what we were thinking last year when the issue was written. I believe something like this could easily exist, but probably part of the tower set of crates, instead of hyper.


Competing a key binding with the Julia extention

Thank you for releasing this very convenient extension.
But the key binding Alt + j for javascript code block competes with Julia's extension,
julialang.language-julia. The extension has some Alt + j with the second key without 'when' conditions.
Do you have any idea to use Alt + j with the julia extension?

Hi, I'm glad to hear that code block markdown extension is convenient. I've checked Julia extension and how about changing your keyboard binding for js code block to something else (maybe Shift+J)?
Because when a key(ex. Alt + J) is pressed, the rules are evaluated from bottom to top and the first rule that matches, both the key and in terms of when, is accepted. If you open keyboard shortcuts editor, commands are listed in alphabetical order. Julia extension is above Code Block extension so if there's duplicate, vscode will match with shortcuts of Julia extension.
To change keyboard binding, open keyboard shortcuts editor (File > Preferences > Keyboard Shortcuts in Windows, Code > Preferences > Keyboard Shortcuts on macOS). After opening editor, search commands you want to change, click it and press desired keyboard binding. In my vscode environment, Julia, Markdown all in one, Markdown code block extension are installed, Shift + J worked well for js code block.


Updated the file.

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@rajatadiraj Thank you for submitting a pull request (PR). I have closed the PR because I believe that the changes you have made do not improve the article.

Note for collaborators: this PR was not reviewed in order because it was not labelled by the bot.


About loss ratio computation

Hi
I have just setup mlvpn to aggregate 2 ADSL links and, as the performance is not the expected one (I have half the bandwidth of one link when I use mlvpn), I had a closer look at configuration and at verbose messages...
I have not fixed my bandwidth issue but a first remark is : As soon as I begin to download, the loss ratio of each tunnel reaches 50%
When looking at the code this is inherent to the way loss is computed : it counts (using seq number) how many packets are received among the 64 last ones per tunnel. As the sequence number is global, in a configuration with 2 tunnels, if we use evenly each tunnel then one packet out of 2 is sent in each tunnel and loss ratio is quickly computed as 50% while there is not a single "real" packet loss
I guess if we have 3 similar tunnels then it would stabilize around 66% and so on...
Is it the expected behavior ?
Regards
Stéphan

No, this is not the expected behavior at all. You are absolutely right. As we use a global sequence, it's not possible to get this loss detection system working.
Regarding the performance issue, if you are using the current "master", it's expected to have poor performance when the underlying link is dropping packets (slow connections). The only way to get around that is to maintain a sequence per connection, and doing the reordering on a connection basis instead of a global one. (I mean, connections INSIDE the tunnel)

Thanks a lot for your feedback regarding loss computation, then if it is not too much for the protocol overhead, using an additional  seq number at tunnel scope would fix this ratio...
Regarding performance, I have to say that so far I have been unable to finely understand what really goes wrong... I have not very lossy links : 2 similar ADSL lines, everything is wired between ISP gateways and my host running mlvpn. Also when I analyze the logs I cannot see missing sequence numbers : I should write a script to parse them and be 100% sure but if it happens it would be very sparse... When I capture the exchanges on the TUN device, I can see that at some stage the tcp connection experience abnormal behavior (ack are resent) but it rather seems that for a short period the server simply stops to send new packets. Not so sure, deeper investigations are required...
You are right that I currently use a master build, would you have a specific tag to advise for testings that could/should behave better than the work in progress master ?

I use in production with aggregation but reordering disabled using latest release version

I've experienced the corruptions / send pauses you are talking about, I've not found out why still

Thanks a lot,
I tried with V2.3.1, no reorder (anyway in this version no reorder was automatic because of a3f78e6525450181158c27f9a64444fef23832e0)
Upload works almost as expected but download behaves the same
I have setup a very simple test using netperf benchmark to better understand the data flow but there is nothing obvious (what I analyze is just fine, I suspect the tcp flow control is somehow fooled but have no proof)
For my immediate operational needs I think I will try to deploy MultiPath TCP but I will come back and investigate further mlvpn if I can as it has less low level prerequisites and is not limited to tcp protocol.  I will tell you if I find something that deserves sharing...

see https://github.com/zehome/MLVPN/pull/69


Exporter: Component type exported as a float

Hey,
Noticed the .gltf generated by today's master results in componentTypes with a .0 at the end. While practically an integer, smells of a possible future bug. ;)

Fixed in latest master.
See this pull request for details.


stacked bar graphs for different data attributes?

Hi all,
Loving this framework so far.
I'm wondering if it can be leverages to have a partcualr kind of visualization; I am looking to create stacked bar graphs of various attributes similar to this:
http://globe.cid.harvard.edu/?mode=productspace3D&id=CO
One of the key features here is that each segment of the bar graph can be a different color (or I can conceive of these as bars stacked consecutively on top of each other).
I see ways to do bar data driven bar graphs with color ramps, but the color ramps only appear to be applied across the entire dataset.
Am I overlooking a way to implement a similar type of visualization in this framework?

Hi @easherma are you talking about stacked 3d hexagon / grid in the map view like this?

@heshan0131 I am!

That's a major feature, it will need us to update how the hexagon layer is implemented in deck.gl. I am convinced this is a useful feature, but I don't have a timeline for this yet.
The hexbin and grid layer does offer a way to color by mode, it could be a back up solution for now

@heshan0131 understood! perhaps I might be able to help with an implementation as well, though I'm on a bit of a time crunch with my project at hand.
Could you elaborate what you mean by color by mode? Are you reffering just to the color ramps that can be applied to the grid layer? As far as I saw, there wasn't a way to have distinct color ramps as part of the grid on a given point. Let me know if that makes sense.

if you select hexbin layer and color by a categorical field, it will aggregate by mode by default, which is the value that appears most often in a set of values.

@heshan0131 FYI I managed to find the repo for the project I referenced and this seems to be the most relevant code:
https://github.com/cid-harvard/globe/blob/master/scripts/THREE.GeoJSON.js
The stack it is built with is a little antiquated, but it appears to mainly follow the method I had envisioned as well (loop through sets of data and 'stack' each point on top of each other). I could see doing this by spatial intersection or potentially by other matching attributes.
Further justification here:
https://carto.com/blog/stacking-chips-a-map-hack/
( this implementation is of course far from ideal and not even 3D, but does give a good sense of what I'd picture and that it could be useful )
Happy to help with this is if I can in the near future!


feat: Some improvements on Architecture and Core functions

Improvements

Improve Logger service to handle logging target as a file or on the output
Fix all warnings coming from Unit Tests

:tada: This PR is included in version 1.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix: Remove jangregor/phpstan-prophecy

This PR

[x] removes jangregor/phpstan-prophecy

Codecov Report

Merging #4 (2a79aa5) into main (6fdd18d) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##                main        #4   +/-   ##
===========================================
  Coverage     100.00%   100.00%
  Complexity        18        18
===========================================
  Files              5         5
  Lines             51        51
===========================================
  Hits              51        51

Continue to review full report at Codecov.

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


Ajax does not fully escape data in body object

Bug Report
Current Behaviour
Given I pass in a JS object to the body parameter in the rxjs ajax body containing the following string: "vudFamJHuC%oXe&jFA0AM1IzVpt2daZv".This string would be sent as "vudFamJHuC%25oXe&jFA0AM1IzVpt2daZv". In this case the percent sign has been URL encoded, but the ampersand has not. In the case of form data, this would split that item and result in the request not being as expected.
Reproduction
import { ajax } from 'rxjs/observable/dom/ajax';
import { first } from 'rxjs/operators';

// Just send a test request
ajax({
    url: 'https://example.com',
    method: 'post',
    body: {
        test: 'vudFamJHuC%oXe&jFA0AM1IzVpt2daZv'
    },
    crossDomain: true,
    headers: {
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
        },
}).pipe(first()).subscribe(() => { return; });

Expected behavior
The 'test' value should be encoded like: 'vudFamJHuC%25oXe%26jFA0AM1IzVpt2daZv'
Environment

Runtime: Chrome 67.0.3396.79 (Official Build) (64-bit)
RxJS version: 5.5.10

This is fixed in v6. I'd recommend updating. If you're worried that's going to be difficult, please see the migration guide here . Generally, it's just installing rxjs@6, then rxjs-compat

This is fixed in v6. I'd recommend updating. If you're worried that's going to be difficult, please see the migration guide here . Generally, it's just installing rxjs@6, then rxjs-compat

for now, I'm marking this as wont fix... but I wouldn't turn away a PR to update stable.

Thanks for the quick response! I'll look into submitting a PR later this week.
Should I close this issue?


Return BSC

 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.

all good except the readme where there is some issue with the rebase


Fix image loading to vagrant via k8s-load-images

Signed-off-by: Denis Tingajkin<EMAIL_ADDRESS>
Description

Motivation and Context
Steps to reproduce:

make vagnrat-start
scripts/vagrant/env.sh
make k8s-load-images

Actual:
Delegated to kind-admission-webhook-load-images
Loading image crossconnect-monitor.tar to kind
Delegated to kind-crossconnect-monitor-load-images
Loading image kernel-forwarder.tar to kind
...

Expected: images loading to vagrant.
How Has This Been Tested?

[ ] Covered by existing integration testing
[ ] Added integration testing to cover
[X] Tested locally
[ ] Have not tested

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

here only one test failed by reason Failed create pod sandbox. It is known the issue and it will be fixed in another PR.


Simplify azure-identity  error messaging

issue#8629
This update simplifies error messages of azure-identity. Below are some examples of how error messages are changed.
DefaultAzureCredential when no credentials are available
Without this update
// error message
Exception in thread "main" java.lang.RuntimeException: Tried EnvironmentCredential,
ManagedIdentityCredential, SharedTokenCacheCredential but failed to acquire a token for any of
them. Please verify the environment for either of them and see more details in the
causes below.
......
......
Caused by: java.lang.RuntimeException: No accounts were discovered in the shared token cache.
To fix, authenticate through tooling
supporting azure developer sign on.
......
......
Caused by: java.net.SocketTimeoutException: connect timed out
......
......
Caused by: com.azure.core.exception.ClientAuthenticationException: Cannot create any
credentials with the current environment variables
......
......

With this update
// error message
Exception in thread "main" java.lang.RuntimeException: DefaultAzureCredential failed to retrieve a
token from the included credentials.( EnvironmentCredential authentication unavailable.
Environment variables are not fully configured. ManagedIdentityCredential authentication
unavailable. No managed identity endpoint found. SharedTokenCacheCredential authentication
unavailable. No accounts were discovered in the shared token cache. )
......
......

DefaultAzureCredential when authentication failed
Without this update
// error message
Exception in thread "main" java.lang.RuntimeException: Tried EnvironmentCredential,
ManagedIdentityCredential, SharedTokenCacheCredential but failed to acquire a token for any of
them. Please verify the environment for either of them and see more details in the
causes below.
......
......
Caused by: java.lang.RuntimeException: No accounts were discovered in the shared token cache.
To fix, authenticate through tooling
supporting azure developer sign on.
......
......
Caused by: com.microsoft.aad.msal4j.MsalServiceException: AADSTS90002: Tenant '72f988bf-86f1-
41af-91ab-2d7cd011db4a' not found. This may happen if there are no active subscriptions for the
tenant. Check to make sure you have the correct tenant ID. Check with your subscription
administrator.
Trace ID: 9fff688c-5fa0-457e-b73b-e06b8146d700
Correlation ID: 10dada0d-2385-4096-9fcf-34db99709c54
Timestamp: 2020-03-12 08:57:25Z
......
......
Caused by: java.net.SocketTimeoutException: connect timed out
......
......

With this update
// error message
Exception in thread "main" java.lang.RuntimeException: DefaultAzureCredential authentication failed. ---> EnvironmentCredential authentication failed.
......
......
Caused by: com.microsoft.aad.msal4j.MsalServiceException: AADSTS90002: Tenant '72f988bf-
86f1-41af-91ab-2d7cd011db4a' not found. This may happen if there are no active subscriptions
for the tenant. Check to make sure you have the correct tenant ID. Check with your subscription
administrator.
Trace ID: 9fff688c-5fa0-457e-b73b-e06b8146d700
Correlation ID: 10dada0d-2385-4096-9fcf-34db99709c54
Timestamp: 2020-03-12 08:57:25Z

We are aware that this has conflicts and are working resolving.


What args should be input when Starting scaleph in IDEA

Already searched before asking?

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

Scaleph Version or Branch
scaleph version: dev
What happened
When I start Scaleph in IDEA, some error occurs like below, and it started failed.
Error Exception
2023-07-18 09:08:56.273  WARN 29972 [main] o.a.hadoop.metrics2.impl.MetricsConfig   136  行: Cannot locate configuration: tried hadoop-metrics2-s3a-file-system.properties,hadoop-metrics2.properties
2023-07-18 09:08:56.289  INFO 29972 [main] o.a.h.metrics2.impl.MetricsSystemImpl    378  行: Scheduled Metric snapshot period at 10 second(s).
2023-07-18 09:08:56.289  INFO 29972 [main] o.a.h.metrics2.impl.MetricsSystemImpl    191  行: s3a-file-system metrics system started
log4j:WARN No appenders could be found for logger (com.amazonaws.AmazonWebServiceClient).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2023-07-18 09:08:57.511  INFO 29972 [main] cn.sliew.scaleph.Application             61   行: Started Application in 3.665 seconds (JVM running for 4.595)
2023-07-18 09:08:57.526  INFO 29972 [main] c.s.s.f.f.executor.FetcherExecutor       46   行: 命令行参数: []
2023-07-18 09:08:57.542 ERROR 29972 [main] c.s.s.f.f.executor.FetcherExecutor       52   行: 下载文件异常! 参数: []

cn.sliew.scaleph.file.fetcher.cli.CliArgsException: Missing required options: uri, path
	at cn.sliew.scaleph.file.fetcher.cli.OptionsParser.parse(OptionsParser.java:104)
	at cn.sliew.scaleph.file.fetcher.executor.FetcherExecutor.run(FetcherExecutor.java:47)
	at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:762)
	at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:752)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295)
	at cn.sliew.scaleph.Application.main(Application.java:28)

Screenshots
No response
Are you willing to submit PR?

[X] Yes, I am willing to submit a PR!

Code of Conduct

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

https://flowerfine.github.io/scaleph-website/zh/docs/contribute/develop

I have followed the instructions ,but still failed with the same errors. I found there are two same class "cn.sliew.scaleph.Application",  one in scaleph-api, another in scaleph-file-fetcher

https://flowerfine.github.io/scaleph-website/zh/docs/contribute/develop

https://flowerfine.github.io/scaleph-website/zh/docs/contribute/develop

https://flowerfine.github.io/scaleph-website/zh/docs/contribute/develop

I have followed the instructions ,but still failed with the same errors. I found there are two same class "cn.sliew.scaleph.Application", one in scaleph-api, another in scaleph-file-fetcher

https://flowerfine.github.io/scaleph-website/zh/docs/contribute/develop

I have followed the instructions ,but still failed with the same errors. I found there are two same class "cn.sliew.scaleph.Application", one in scaleph-api, another in scaleph-file-fetcher

bootstrap cn.sliew.scaleph.Application on scaleph-api module


ENH: value function iteration in dtmscc and dtcscc [updated]

Adding true value function iteration algorithm, in both dtmscc and dtcscc modes. This replaces the previous pull request (#102), as have worked out the problem I was facing previously. First, the updates are:

The dtmscc version works from @albop's vfi branch, tidying and fixing small issues.
The dtcscc version works from the dtmscc version.
Ordering inside the algorithm is: VFI 10 steps --> Howard improvement 20 steps (user able to change this) --> VFI until convergence.
It would be nice to make the VFI and Howard code chunks into stand alone functions that could easily be called repeatedly, rather than hard-coded in as "1-2-1"

Remaining (smaller) problem
In PR #102 I noted there were convergence issues. After playing around, it seems that the convergence issue is coming from the non-linear solver step. Specifically, the solver seems to generate problems when the bounds on some controls are infinite or lead to division-by-zero problems. For example, in the standard RBC example, if you use the bounds on labour supply, 0<= n <= n_large, the solver seems to want to use the lower bound, and this generates the divergence discussed in #102.
This may mean that we need to:

move to a solver that handles boundary conditions better. @albop notes that we may be able to use numba to pass the function to be solved to a C library...
Leave a note in the documentation pointing out that you need to be careful with boundary conditions.

@jagman88 : there were two (minor) issues remaining which prevented the tests from passing successfully. I fixed them and merged it.


Incorrect specification for $search

The docs here give an example of using the $search parameter which enquotes each side of the OR connective. This does not seem to work for the messages endpoint, and the query responds with no search applied. Rather, the requester needs to enquote the entire search parameter when requesting.
I suggest changing the example here (and many other places in the docs!) to use the correct quoting syntax.
-../groups?$search="description:One" AND ("displayName:Video" OR "displayName:Drive"
+../groups?$search="description:One AND (displayName:Video OR displayName:Drive)"

Another point, though not directly related to this incorrect specification, the example was missing a closing parenthesis which I added ;)

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

ID: 2b7415c6-cfbb-27a1-109c-78aa85e69cef
Version Independent ID: dfd0a8f0-b01d-baab-67aa-a64eb39d3224
Content: Use the $search query parameter in Microsoft Graph - Microsoft Graph
Content Source: concepts/search-query-parameter.md
Product: applications
Technology: microsoft-graph
GitHub Login: @FaithOmbongi
Microsoft Alias: ombongifaith

Thank you @ranok for raising this issue. Please note that the sample you're referencing relates only to directory (Microsoft Entra ID) objects. For messages, this is the correct part to reference Using $search on message collections and it matches your feedback. Hope this answer clarifies the article.

@FaithOmbongi I'm guessing your mention of me was a mistake and you meant to mention @RosyGraph ?


Add region to profile

Right now region is just passed in as a command line argument, should be added to the momento profile

done as of https://github.com/momentohq/momento-cli/pull/59


Removing additional third copy operation for OccupiedEntry::insert

Removing unnecessary additional third copy operation for OccupiedEntry::insert and OccupiedEntryRef::insert because with swap  we have three operation:

Read from x to the third value z,
Copy from y to x,
Copy from z to the y value.

But when we use replace funtion we actually do only first two operation and immediatly return z value and skip third copy operation

@bors r+

:pushpin: Commit 0f1bc9924a3d50282fb335d0ed535fef03199877 has been approved by Amanieu

:hourglass: Testing commit 0f1bc9924a3d50282fb335d0ed535fef03199877 with merge 8d6e14d4e521f23f701df8ffbc5da5393809dba5...

:sunny: Test successful - checks-actions
Approved by: Amanieu
Pushing 8d6e14d4e521f23f701df8ffbc5da5393809dba5 to master...


publish<EMAIL_ADDRESS>

Requested by: @MeredithAnya
Merge target: (default)
Quick links:

View changes
View check runs

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

[ ] github
[ ] pypi

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

I don't want to r e t r a c t yet, but hold off on accepting this plz


add common app routes to the protocol renderer router

Add most of the links to the docs so that users can use them.

Signed-off-by: Sebastian Malton<EMAIL_ADDRESS>fixes #2236

I still don't see any app preferences for extensions, external nor internal, showing up on the Preferences page, like telemetry (Telemetry & Usage Tracking). Works in master.

I still don't see anything under Extensions on the Preferences page. I know you can't reproduce...
Does highlight do anything?
It looks like the preferences page gets opened twice for two links to different highlights:
https://user-images.githubusercontent.com/40840436/111204112-2e1d5a00-859c-11eb-8fb9-ec733568a4a2.mov

I still don't see anything under Extensions on the Preferences page. I know you can't reproduce...

Did a make clean and now Telemetry is there.

Does highlight do anything?

Currently no, that is already done in https://github.com/lensapp/lens/pull/2173/files#diff-e16a68bd7aaebebc826825c0989e76ce22c5ea6927dce3fdd1be53d705238fc3R53-R55 so I don't want to duplicate work.
Though I just added the scrolling into view for the user preferences' page (the cluster settings' page is added in #2173).

Does highlight do anything?

Currently no, that is already done in https://github.com/lensapp/lens/pull/2173/files#diff-e16a68bd7aaebebc826825c0989e76ce22c5ea6927dce3fdd1be53d705238fc3R53-R55 so I don't want to duplicate work.
Though I just added the scrolling into view for the user preferences' page (the cluster settings' page is added in #2173).

Right, you told me that already a week ago :)

Though I just added the scrolling into view for the user preferences' page (the cluster settings' page is added in #2173).

It works when the preferences page is opened by the protocol handler but doesn't seem to work if the preferences page is already open (e.g. doesn't jump from appearance to telemetry)

Though I just added the scrolling into view for the user preferences' page (the cluster settings' page is added in #2173).

It works when the preferences page is opened by the protocol handler but doesn't seem to work if the preferences page is already open (e.g. doesn't jump from appearance to telemetry)

This is still an issue...

@jim-docker I have fixed that preferences bug (and tested it). And thanks for the suggestions with the routes.


__all__ returns string?

This seems wrong, shouldn’t this be a list of strings?
https://github.com/PyO3/pyo3/blob/882b9c7aa7b30be110f9488261d043f32cf5a675/src/types/module.rs#L402

Ah, should have read its use


Fix link in the repo description

This repository's description has an invalid link:  online at http://codeall.praqma.com
The link in the README is right though.

Fixed - GH suggested the right one due to gh-pages configuration.


fine tune llama-7b-hf    after finished  the adapter_modle.bin file only 4kb

Please help,
I used 2*V100 32GB finetune llama-7b-hf model,  I have tryed  more than 3times, when fineshed ,the adapter_model.bin file only 4k
the first time，used the default parameter

the second time，used the default parameter

the third time，used the  parameter in the model Card decription  of tloen/alpaca-lora-7b  of Huggingface site

I'm new in this filed , I'm  not sure if  this result is ok or not  , but the official bin file is 67M,

I encountered the same issue and fixed it with the following solution:
https://github.com/tloen/alpaca-lora/issues/326#issuecomment-1507946790

due to the peft version change, the model.save_pretrained in finetune.py failed to save adapter_model.bin . the simplest way is to use the adapter in checkpoint, which can do
mv checkpoint-xxx/pytorch_model.bin adapter_model.bin

due to the peft version change, the model.save_pretrained in finetune.py failed to save adapter_model.bin . the simplest way is to use the adapter in checkpoint, which can do
mv checkpoint-xxx/pytorch_model.bin adapter_model.bin

thanks，it works

@elven2016 i have saved the adapter_model.bin , its size is very small, when i use checkpoint ....py file in repo [ meant to combine base model with adapeter, i was hoping to get  a new file which should be close to 3.92 GB+, but here again i see a very small file. Am i right in thinking this, or i am doing it wrong? please confirm.

@elven2016 i have saved the adapter_model.bin , its size is very small, when i use checkpoint ....py file in repo [ meant to combine base model with adapeter, i was hoping to get a new file which should be close to 3.92 GB+, but here again i see a very small file. Am i right in thinking this, or i am doing it wrong? please confirm.

it's not right，your issue is the same as  #293  you can try it， it's the problemof peft，just：pip uninstall peft -y
pip install git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08
after reinstall this version peft，then start train it again

although you closed this issue but for the new comer, instead of train from beginning
I had same issue, none of people mentioned this, you can actually resume from the checkpoint by
run the same command and do
python finetune.py --base_model 'decapoda-research/llama-7b-hf' --data_path 'yahma/alpaca-cleaned' --output_dir './lora-alpaca_1' --resume_from_checkpoint 'lora-alpaca/checkpoint-1000'

Hello
after a succesful finetuning,the file containing adapter.bin becomes the new weights that i need to use?
how to convert them o consolidated.00.bin and then quantize it ?


[QUESTION] Privacy of Qwant and Startpage

Your Question
I had never really looked into Qwant or Startpage before and was curious to see if their claims of privacy actually held up (spoiler alert: it doesn't look like it).
For Qwant, I went to the homepage, searched for "test", and then saved uBlock Origin's blocked requests, which appear in the table below. Note that as you stay on the page and interact with random elements, further requests will be sent and blocked. I don't know what some of these requests are for, and I can assume some of them are extraneous without being necessarily malicious, but rum stands for Real User Monitoring, and is a tracker capable of collecting a whole host of information on the user. What exactly is Qwant collecting with RUM? What does it do with this data? There's no way to be sure, because Qwant isn't open source and the payloads sent to the apm/intake/v2/rum/events endpoint are garbled binary data.
Logger output

/rum/events
www.qwant.com
xhr
https://www.qwant.com/apm/intake/v2/rum/events

/rum/events
www.qwant.com
xhr
https://www.qwant.com/apm/intake/v2/rum/events

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

##.result--ext
www.qwant.com
dom
https://www.qwant.com/?q=test&t=web

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/ui

/rum/events
www.qwant.com
xhr
https://www.qwant.com/apm/intake/v2/rum/events

/rum/events
www.qwant.com
xhr
https://www.qwant.com/apm/intake/v2/rum/events

/rum/events
www.qwant.com
xhr
https://www.qwant.com/apm/intake/v2/rum/events

/rum/events
www.qwant.com
xhr
https://www.qwant.com/apm/intake/v2/rum/events

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/ui

/rum/events
www.qwant.com
xhr
https://www.qwant.com/apm/intake/v2/rum/events

/rum/events
www.qwant.com
xhr
https://www.qwant.com/apm/intake/v2/rum/events

||qwant.com/v2/api/ux/surveys?
www.qwant.com
xhr
https://api.qwant.com/v2/api/ux/surveys?website=qwant&tab=home&tgp=90&locale=en_US&device=desktop

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/webapp_loaded

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display

||qwant.com/action/
www.qwant.com
ping
https://www.qwant.com/action/display_page

As for Startpage, it doesn't send near as many shady-looking requests, but I also wouldn't call it private. I won't bog you down with another uBlock Origin log, as this GitHub issue does a good job of summing it up.
Should these still be included? They're certainly better than $BIG_TECH_SEARCH, but I'm also not sure if they're the best places to direct people.
Please tick the boxes

[X] You have filled out this form accurately, and to the best of your knowledge
[X] A similar question has not already been asked for this software/ service
[X] You agree to the code of conduct

Looking at the web request you mentioned. It is indeed analytics...
It is going to their self-hosted instance of Elastic (see docs).

For reference, here's the full request
Target:
POST  https://www.qwant.com/apm/intake/v2/rum/events

Body:
{"metadata":{"service":{"name":"phoenix","version":"cb73d8fab484b85a110fd3129702240dcc3ede59","agent":{"name":"rum-js","version":"5.12.0"},"language":{"name":"javascript"}}}}
{"transaction":{"id":"b2501a075c81f532","trace_id":"d2d526bfc5fe54d7ef1e2f8f3bf37caf","name":"Click - div","type":"user-interaction","duration":3108,"context":{"custom":{"classes":"Flex-module__flex___35zId"},"page":{"referer":"","url":"https://www.qwant.com/?q=test&t=web"}},"span_count":{"started":0},"sampled":false,"sample_rate":0}}

Request Headers:
Host: www.qwant.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0
Accept: */*
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://www.qwant.com/
Content-Type: application/x-ndjson
Content-Length: 512
Origin: https://www.qwant.com
Connection: keep-alive
Cookie: hide_addon_dialog=1; theme=1; s=2; cookieAlertSettings=1
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
DNT: 1
Sec-GPC: 1

Server Headers:
content-security-policy | script-src  'self' 'unsafe-inline' 'unsafe-eval' data: *.qwant.com qwant.com;  style-src 'unsafe-inline' data: *.qwant.com *.qwantjunior.com qwant.com;  base-uri 'self'; block-all-mixed-content; frame-ancestors *.qwant.com  *.qwantjunior.com lmqt.fyi; worker-src blob: 'self'  www.youtube-nocookie.com www.youtube.com; object-src 'self'; img-src  blob: 'self' s1.qwant.com s2.qwant.com s.qwant.com f.qwant.com data:  s-lite.qwant.com www.qwant.com; form-action 'self'; script-src-elem  'self' 'unsafe-inline' 'unsafe-eval' data: *.qwant.com qwant.com;  default-src 'self' data: blob:; connect-src *.qobuz.com *.apple.com  *.qwant.com qwant.com extras.qwantjunior.com; font-src 'self'; media-src  blob: *.qwant.com *.apple.com *.qobuz.com *.vid.web.acsta.net;  frame-src viewer.dood3d.com *.vid.web.acsta.net player.twitch.tv  player.vimeo.com www.dailymotion.com players-cdn.vidmizer.com  players-cdn-v2.vidmizer.com *.qwant.com *.qwantjunior.com  www.youtube-nocookie.com *.tvlocale.fr *.smartrezo.com  *.femmesetcitoyennete.fr *.jeunesreporterssansfrontieres.fr  *.medias-francophones.com *.trendy-community.fr *.tvcitoyenne.com  *.veitech.com *.localetv.eu player.myvideoplace.tv;
content-type | application/json
date | Tue, 26 Jul 2022 14:22:30 GMT
permissions-policy | speaker=(self),  vibrate=(), oversized-images=(), gyroscope=(), magnetometer=(),  document-domain=(), interest-cohort=(), microphone=(),  display-capture=(), encrypted-media=(), midi=(), geolocation=(self),  accelerometer=(), autoplay=(self), payment=(), vr=(), fullscreen=(),  camera=(), ambient-light-sensor=(), sync-xhr=(self  "https://api.qwant.com"), usb=()
referrer-policy | origin
server | Qwant
strict-transport-security | max-age=31536000 ; includeSubdomains ; preload
x-content-type-options | nosniff
x-frame-options | SAMEORIGIN
x-xss-protection | 1; mode=block

Response:
None

^^ There's other requests too, but they all seem to follow this format.

I started looking into Qwant a bit further....
Privacy Policy
Started with their Privacy Policy. It's really hard to read as info is scattered around, which IMO is not a good sign. Some things that jumped out at me:

They collect analytics

including user agent, referer (where u came from), the meta info about the links you clicked (unclear if this includes the actual URL), and IP address

They could be sharing data with third-parties

_"We pseudonymize what we need to keep for statistics and for transfer to our technology and business partners."  _

They use third-party services, but are not transparent about what for and when

But looking at the sources, Deepl for language translations, Bing for ads,

I couldn't find it written, but search queries have to be somehow sent to Bing in order to serve up ads. This is happening server-side, so there's no reason any other user info would be forwarded, but again, not clear.
Tracking
Qwant is using a self-hosted instance of, I think Elastic APM for both user analytics and "performance monitoring" (actually just more user analytics)
I tried using it as a user would, and analysing the client-side requests that were being sent. And I could not see anything other than what was shown above, which was particularly alarming.
They've previously used New Relic, TraderDoubler and Google Analytics (wtf?!), for analytics and user and performance tracking. That's based on historical BuiltWith scans, so I cannot properly verify that it's correct myself. I did check old snapshots on archive.org, and it seems to add up.
Cookies
There use of local storage, session storage, and cookies looks all fine. Each setting is stored locally, as opposed to giving you a user ID and storing settings remotely. There's no 3rd-party cookies. I played around with it for a while, and this was all that was stored - so just my user settings. They have a 6-month expiry.
JS
If you disable JavaScript, you're redirected to https://lite.qwant.com/ - which functions entirely on the server-side, and IMO is actually a much better experience. There's also no client-side analytics.
Ads
The ads are provided by Bing/ Microsoft. That does mean the search term is sent to Mircosoft, although it happens server-side, so there shouldn't be any user data attached. They're contextual so based only on the current search, and not user data.
One thing I will say, is that the search result ads are labelled as ads, whereas the suggested products, and shopping results have affiliate links attached, yet are not labelled as adverts. Clicking ads is pretty bad for privacy, so it should be important that they're properly labelled.
I think the 2 issues here are 1) Microsoft and 2) not being clear when your clicking an ad.
But just having ads alone I don't think is an issue, as it would be more of a red flag is they didn't have a clear revenue model.
Security
I couldn't find any published security audit.
Their privacy policy barley mentions security, or the practical things they've put in place to maintain integrity and protect user data.
But in terms of the very basic easy to check stuff, like headers, certificates, ports everything looks normal.
You're not trusting them with a lot personal info, so I guess the biggest motivation of an adversary would be to manipulate results.
Criticism
Overall, I couldn't find a lot of complaints, no historical big privacy mishaps, data leaks or security concerns. The Criticism Section of their Wikipedia doesn't list anything of great concern. There's not many compleints on ?q=Qwant on r/privacy
Search
Not sure if it's relevant, but unlike a lot of other "search engines" Qwant does do their own crawling and indexing, as explained in this article.
They also appear to own their own infrastructure, and are self-hosting most of the services they use.
Worth noting that they are popular in France and French-speaking countries, but less so in other regions.

TLDR; user analytics, association with Microsoft, the use of redirect URLs, Bing ads, somewhat unclear privacy policy.
I'm pretty neutral on this. There's definitely some issues, but weather the severity is enough to warrant removal, I'm not sure.
But I will look into it further, and definitely update the listing to mention them.  And if anyone else has anything to add, please do :)
If anyone else has any thoughts on this, or if I've missed anything, or got something wrong, do let me know. And if there is stuff I've missed then I'm happy to consider removing Qwant, but it's a slippery slope, as when you look into anything hard enough, there's always going to be issues. I think the main thing is just to present the facts, and let users decide what's right for them.

I'll take a look at StartPage also, when I get a moment. StartPage has had a lot more controversy over the years, so there should be more info to go on.
DuckDuckGo also has some issues, so I should re-check that too.
Side note: I think a common issue that people have when trying to switch to a more privacy-respecting search engine, is just that the results either aren't as tailored as what most people have gotten used to. Which in turn means they end up going back to big 'G. So quality of search results is probably also a factor that should be taken into account.

Wow, that's a lot of good research!

I'm happy to consider removing Qwant, but it's a slippery slope, as when you look into anything hard enough, there's always going to be issues. I think the main thing is just to present the facts, and let users decide what's right for them.

Yeah, I agree. You can dig and find unsavory behavior with a lot of things on this list, and staying fully informed to make educated decisions is the real goal with this sort of thing. I think it would do a lot of good to put all of your findings into another document somewhere and link to it so that it doesn't just get buried somewhere in an issue tracker.
I was tempted to mention DuckDuckGo as they've always weirded me out, but I figured that horse had been resurrected and beaten to death many times throughout its existence and I probably wouldn't present any new information. I'm curious to see what you find, though.

yeah i know, and older topic, but i wanted to splice in a few comments...
@Lissy93 said...

If you disable JavaScript, you're redirected to https://lite.qwant.com/

testing this now in 2023 and the forwarding doesn't occur
also i thought JS was necessary to get Qwant to display anything, but either i was wrong or they changed something

I'll take a look at StartPage also, when I get a moment. StartPage has had a lot more controversy over the years, so there should be more info to go on.
DuckDuckGo also has some issues, so I should re-check that too.

i've been lookin' more closely at search engines since 2017 and the conclusions i've come to are simple: if they don't crawl the web themselves, ignore it - Qwant (Bing), DDG (Bing), Startpage (Google), etc. are all crap from a privacy POV and from a results POV all the rest of the proxies are garbage
the remainder that do indexing, and have decent privacy policies, and that don't require JS, is a very small number with Mojeek probably being the best of them at the moment (around 6.5 billion pages indexed as of this writing)


Error when building

hey there, any chance you guys know how to resolve this:
ERROR: Task (/repo/recipes-app/npm/npm-buildchroot_6.10.3+ds.bb:do_install_builddeps) failed with exit code '1'
getting it when running:
./kas-container build kas-iot2050-example.yml
Thanks, Ash.

Could you share the log file: build/tmp/work/isar-arm64/npm-buildchroot/6.10.3+ds-r0/temp/log.do_install_builddeps?

Could you share the log file: build/tmp/work/isar-arm64/npm-buildchroot/6.10.3+ds-r0/temp/log.do_install_builddeps?

Absolutely, thank you for such a quick response:
log.txt

Absolutely, thank you for such a quick response:
log.txt

Looks like some node-package in backports repo breaks the nodes dependency.
For a quick workaround, try to add node-tar to conf/distro/preferences.npm-backport
see this commit on my branch. At least the npm build is passed, still watching other builds.

Looks like some node-package in backports repo breaks the nodes dependency.
For a quick workaround, try to add node-tar to conf/distro/preferences.npm-backport
see this commit on my branch. At least the npm build is passed, still watching other builds.

Oh, forget to mention, you might need perform a clean build.

Oh, forget to mention, you might need perform a clean build.

all clean, just building now..

all clean, just building now..

Seems we need fix more, build failed at image rootfs install stage. Would take more time than I thought to debug this.
May I ask if you can use the package lock build? The latest tested snapshot build is 2 weeks ago, see this commit for reference. Then use ./kas-container build kas-iot2050-example.yml:kas/opt/package-lock.yml to build the package lock version. It uses debian packages from 2 weeks ago for building, if that suits your requirement.

Seems we need fix more, build failed at image rootfs install stage. Would take more time than I thought to debug this.
May I ask if you can use the package lock build? The latest tested snapshot build is 2 weeks ago, see this commit for reference. Then use ./kas-container build kas-iot2050-example.yml:kas/opt/package-lock.yml to build the package lock version. It uses debian packages from 2 weeks ago for building, if that suits your requirement.

just hit exactly the same error, thank you so much for trying though.
no worries at all, ill kick off a package lock build now - can i still get the kernal-headers included with this build appending: linux-headers-${KERNEL_NAME} \ to IMAGE_INSTALL in the recipes-core/images/iot2050-image-example.bb file?

just hit exactly the same error, thank you so much for trying though.
no worries at all, ill kick off a package lock build now - can i still get the kernal-headers included with this build appending: linux-headers-${KERNEL_NAME} \ to IMAGE_INSTALL in the recipes-core/images/iot2050-image-example.bb file?

@jan-kiszka The npm package in buster-backports has been upgraded to 7.4.0, see [1] & [2]. So maybe we can move forward for a4c9ca8fda7c6cb4aa743cbfa5962f8e978ac1dc ?
[1] https://metadata.ftp-master.debian.org/changelogs//main/n/npm/npm_7.4.0+ds-1~bpo10+2_changelog
[2] https://packages.debian.org/buster-backports/npm

@jan-kiszka The npm package in buster-backports has been upgraded to 7.4.0, see [1] & [2]. So maybe we can move forward for a4c9ca8fda7c6cb4aa743cbfa5962f8e978ac1dc ?
[1] https://metadata.ftp-master.debian.org/changelogs//main/n/npm/npm_7.4.0+ds-1~bpo10+2_changelog
[2] https://packages.debian.org/buster-backports/npm

Would be worth a try, yes.
This npm parenting is continuous "fun". Waiting for the day it gets better.

Would be worth a try, yes.
This npm parenting is continuous "fun". Waiting for the day it gets better.

just got so close to a successful build then: ERROR: Task (/repo/recipes-core/images/iot2050-image-example.bb:do_rootfs_install) failed with exit code '1'
any ideas?

just got so close to a successful build then: ERROR: Task (/repo/recipes-core/images/iot2050-image-example.bb:do_rootfs_install) failed with exit code '1'
any ideas?

the repos that cant be found can be found if they have a slash on the end, not sure if that helps?

the repos that cant be found can be found if they have a slash on the end, not sure if that helps?

"Could not connect to snapshot.debian.org:80 (<IP_ADDRESS>), connection timed out Could not connect to snapshot.debian.org:80 (<IP_ADDRESS>), connection timed out [IP: <IP_ADDRESS> 80]" - that's the problem with building agains snapshot.debian.org, it's rather unreliable (or does throttling). Retry the build, specifically as we are caching already fetched packages under build/downloads. It should succeed. Eventually...

"Could not connect to snapshot.debian.org:80 (<IP_ADDRESS>), connection timed out Could not connect to snapshot.debian.org:80 (<IP_ADDRESS>), connection timed out [IP: <IP_ADDRESS> 80]" - that's the problem with building agains snapshot.debian.org, it's rather unreliable (or does throttling). Retry the build, specifically as we are caching already fetched packages under build/downloads. It should succeed. Eventually...

I switched up my connection and seems to have gotten further, any thoughts on this one?
Get:236 http://snapshot.debian.org/archive/debian-security/20200117T184524Z buster/updates/main arm64 openjdk-11-jdk-headless arm64 11.0.5+10-1~deb10u1 [205 MB] Err:236 http://snapshot.debian.org/archive/debian-security/20200117T184524Z buster/updates/main arm64 openjdk-11-jdk-headless arm64 11.0.5+10-1~deb10u1   Undetermined Error [IP: <IP_ADDRESS> 80] Fetched 151 MB in 21min 48s (115 kB/s) E: Failed to fetch http://snapshot.debian.org/archive/debian-security/20200117T184524Z/pool/updates/main/o/openjdk-11/openjdk-11-jdk-headless_11.0.5+10-1~deb10u1_arm64.deb  Undetermined Error [IP: <IP_ADDRESS> 80] E: Some files failed to download WARNING: exit code 100 from a shell command.

I switched up my connection and seems to have gotten further, any thoughts on this one?
Get:236 http://snapshot.debian.org/archive/debian-security/20200117T184524Z buster/updates/main arm64 openjdk-11-jdk-headless arm64 11.0.5+10-1~deb10u1 [205 MB] Err:236 http://snapshot.debian.org/archive/debian-security/20200117T184524Z buster/updates/main arm64 openjdk-11-jdk-headless arm64 11.0.5+10-1~deb10u1   Undetermined Error [IP: <IP_ADDRESS> 80] Fetched 151 MB in 21min 48s (115 kB/s) E: Failed to fetch http://snapshot.debian.org/archive/debian-security/20200117T184524Z/pool/updates/main/o/openjdk-11/openjdk-11-jdk-headless_11.0.5+10-1~deb10u1_arm64.deb  Undetermined Error [IP: <IP_ADDRESS> 80] E: Some files failed to download WARNING: exit code 100 from a shell command.

openjdk is rather large package. So the risk is higher to hit a failure of snapshot.debian.org while fetching it. Retry.

openjdk is rather large package. So the risk is higher to hit a failure of snapshot.debian.org while fetching it. Retry.

okay will keep at it, thank you guys again for all the help - its really appreciated.

okay will keep at it, thank you guys again for all the help - its really appreciated.

quick update, after many tries is build all good - for any one else, tl;dr
To build your image until this issue is closed, use:
./kas-container build kas-iot2050-example.yml:kas/opt/package-lock.yml
Be persistent, any snapshot.debian errors are temporary, but linux is forever.

quick update, after many tries is build all good - for any one else, tl;dr
To build your image until this issue is closed, use:
./kas-container build kas-iot2050-example.yml:kas/opt/package-lock.yml
Be persistent, any snapshot.debian errors are temporary, but linux is forever.

Good to know.
I made no progress yet to gett latest build again. At least I filed https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980928.

Good to know.
I made no progress yet to gett latest build again. At least I filed https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980928.

Besides our cached packages inside build/downloads, you can also use the apt-cacher-ng or similar tools to setup a cache proxy so that you won't have to fetch the snapshot.debian.org every time, even if you delete the build/downloads.
Details plz refer to here.
You may need to change the url from http://snapshot.debian.org to http://<your-cacher-server-ip>:<port>/snapshot.debian.org in conf/distro/debian-snapshot.list.

Besides our cached packages inside build/downloads, you can also use the apt-cacher-ng or similar tools to setup a cache proxy so that you won't have to fetch the snapshot.debian.org every time, even if you delete the build/downloads.
Details plz refer to here.
You may need to change the url from http://snapshot.debian.org to http://<your-cacher-server-ip>:<port>/snapshot.debian.org in conf/distro/debian-snapshot.list.

Forgot to annotate: Fixed by https://github.com/siemens/meta-iot2050/pull/92 - hopefully for a while.

Forgot to annotate: Fixed by https://github.com/siemens/meta-iot2050/pull/92 - hopefully for a while.


[Task] Improve errors

Description
Improve the errors in this library by (incrementally) implementing @cycraig's suggestion copied here:

Reduce the number of top-level errors by grouping related variants. This may also be achieved by defining sub-error enums for specific cases (or modules) like with DIDError. (Edit: for future reference, the decision of when to define sub-error enums or inline the error message is likely based on how often that message is repeated and how many distinct variants there are. One instance => inline the message, multiple tends towards sub-error enums).

E.g.
  #[error("Invalid Document - Missing Message Id")]
  InvalidDocumentMessageId,
  #[error("Invalid Document - Signing Verification Method Type Not Supported")]
  InvalidDocumentSigningMethodType,

can become:
  #[error("invalid DID Document - {0}")]
  InvalidDocument(&'static str), // or String if dynamic values are required.

return Err(Error::InvalidDocument("missing message ID"));
return Err(Error::InvalidDocument("signing verification method type not supported"));

Improve error messages to include more information where appropriate, rather than generic, obscure messages.

See: https://www.morling.dev/blog/whats-in-a-good-error-message/

E.g.
  #[error("Invalid Root Document")]
  InvalidRootDocument,

needs more context:
  #[error("invalid root document - {0}")]
  InvalidRootDocument(&'static str),

    // The previous message id must be null.
    if !document.metadata.previous_message_id.is_null() {
      return Err(Error::InvalidRootDocument("not first in chain due to non-null previous_message_id"));
    }

    // Validate the hash of the public key matches the DID tag.
    let signature: &Signature = document.try_signature()?;
    let method: &IotaVerificationMethod = document.try_resolve_method(signature)?;
    let public: PublicKey = method.key_data().try_decode()?.into();
	if document.id().tag() != IotaDID::encode_key(public.as_ref()) {
      return Err(Error::InvalidRootDocument("signature verification method does not match DID tag"));
    }

Change errors to include a source where appropriate, to enable error chaining/context for application error handlers.  This is supported by the discussions in the following Rust Error Handling Project issues:

https://togithub.com/rust-lang/project-error-handling/issues/44
https://togithub.com/rust-lang/project-error-handling/issues/27

Specifically this comment which defines the project's official guidance as:

Return source errors via Error::source unless the source error's message is included in your own error message in Display.

Replace blanket #[from] implementations of external errors with errors for specific cases as mentioned in Strategy 4. NOTE: this may actually increase the number of variants, so it does not have to be a hard rule.

Mark exposed error enums as #[non_exhaustive] to prevent technical breaking changes from introducing new variants, similar to DIDError.

Consider using anyhow/eyre to construct a report including context for error messages in the Wasm bindings. (Edit: to be clear this is because while Rust can report the context by using anyhow/eyre, Wasm needs an alternative.)

Suggestions 1-5 can be done incrementally and do not require a major all-at-once refactor, so we can easily explore whether or not they work in a single crate/module independently or combined. Suggestion 6 is confined to the Wasm bindings where we have more leeway.
Motivation
In this discussion we highlighted that our current error approach exposes many details which both leads to problems in terms of stability as well as a high cognitive burden on the user.  After discussing ways in which we can improve our approach to error handling in the previously mentioned discussion and in #636 we decided on applying this approach incrementally and re-evaluating whether something more needs to be done to improve the errors in the JS bindings once we are done.
How to contribute
Submit a PR that improves an error in this library following one or more of points 1- 6 from this issue's description. The PR does not need to be substantial, it can be as simple as grouping two related variants in a crate's error (see the example following point 1.).

Here is an interesting question related to implementing the guidelines in the project:
Question: The guidelines state the following:

Return source errors via Error::source unless the source error's message is included in your own error message in Display.

But are there any particular situations where one way is preferred over the other?
Answer: As a rule of thumb one should prefer to return the source error via Error::source. The reason for this is that otherwise one can end up with a situation like the following:
Error_1 (root cause) -> Error_2 -> Error_3 (top error)
if Error_3 includes the error message of Error_2 in Display then it follows from the guidelines that we must have Error_3::source() = None, but if Error_2::source() = Error_1 then Error_2's Display cannot contain the error message of Error_1 so the error message of Error_1 (the root cause) will at best be rather inconvenient to obtain or at worst there will be no way to obtain it depending on the representation of the errors involved.
Note that the problem described above can only exist when the two approaches are interleaved so one could also recommend never returning a source and always including the error message of the cause in an error's Display, but that is arguably less convenient for user's who want to format error chains themselves (using for instance Error::chain when it stabilises).


Allow control over who reviewers can communicate with

This refers the the visibility settings in the communication tab on submissions. Right now reviews can select "Reviewers" and "All".

Does this need design from a UX pov?

@frjo Currently, we are using the same visibility options/permissions for a user for all activities(comments and actions) irrespective of its types from here.  Do we need to separate the visibility permissions for comments and activity in this case?

@sandeepsajan0 Hold on this one, we need to discuss what is really needed by the users first.

Looks like this needs some brief user survey/interviews across the program management of an application to see who need to see communications tab at what points in a workflow process.
Example hypothesis: Program Manager lead might want finance team members to see communications related to budget/invoices/finance information but not 'all' staff to see the communication tab in budget/invoice/finance information.

ARDC asked us to remove ability for applicants to see comments in large part because they didn't want applicants to see comments from reviewers left open by mistake. What we've done is to remove the comments tab for applicants and changed the permissions so applicants aren't included in "All" then renamed that to "everyone but applicants." I also renamed most other visibility categories to add "and staff," because my understanding is the way it's set up staff can see most categories regardless.

In looking at the options in sandbox today, I was wondering if we might want to have checkboxes for each role, or a dropdown menu that populates a separate "addressee" box rather than the radio buttons.  That allows more control over which specific user types see communications relevant to them. The second option (dropdown menu populating an "addressee" box makes it more email-like (which I HOPE folks are used to).
Downside:
Both of these options still leave open the possibility that Applicants are accidentally selected to receive communications not meant for them.
Possible solution: we could also try building in a warning popup that activates any time "Applicants" is selected to ask "DID YOU MEAN TO SEND THIS MESSAGE TO THE APPLICANT/FUNDEE?

This is the result:

@chriszs what does "Partners" mean to ARDC?  In the Hypha Roles doc page, I have defined it as a kind of co-applicant (based on communication with dev and other users), but from your comment it doesn't sound like this is how ARDC is using the term/role. Can you clarify who "Partners" refers to for ARDC and what kinds of permissions that role has in their implementation?

@emlini It's a good question, and one they'd have to answer. If so, I might have to go remove it from that role as well.

@emlini Partners might mean (in my knowledge) either:

The fund applicant has 'partners' that they work with on the fund they have and so partners are included in some invoices. e.g. ARDC funds 'Project Megacool'. 'Project Megacool' hires Fredrik to do some development work and Simply Secure to do some design work. Fredrik and Simply Secure then become 'partner contractors' on that fund.
Partners can sometimes mean 'The board' or 'The community review panel' etc. so not people 'employed' by a funder org but who support an application.
both

I think the most common one is number 2.
Re. the UI improvements - I agree that checkboxes of each role type would be good but could also become tricky if you have many 'groups':

It could be nested parent/child checkboxes so:
-[ ] Staff

[ ] Finance
[ ] Compliance
[ ] Approver
[ ] etc.
[ ] Applicant

[ ] Applicant primary
[ ] Applicant secondary
[ ] Applicant

[ ] Partners

[ ] Community reviews
[ ] The board

I'm also very pro a 'did you want communications to be visible to applicants?' warning message before 'saving'

Hi @sandeepsajan0 these changes make sense:
but we're keeping 'Applicant(s)' because OTF's applicants need to access the comments

Partners might mean (in my knowledge) either:

The fund applicant has 'partners' that they work with on the fund they have and so partners are included in some invoices. e.g. ARDC funds 'Project Megacool'. 'Project Megacool' hires Fredrik to do some development work and Simply Secure to do some design work. Fredrik and Simply Secure then become 'partner contractors' on that fund.
Partners can sometimes mean 'The board' or 'The community review panel' etc. so not people 'employed' by a funder org but who support an application.
both

'Partner' could edit an application, but cannot submit reviews so they are rarely board members, external reviewers, etc.

On June 6 FJ + DL discussed creating a new setting for staff to manage and control comments that are visible to reviewers and applicants. This is a more complex issue in scope.

User stories

As a user I need better instructions or guidance on the comment's section visibility settings.
The default setting for 'Partner' is 'Partner' -- users often submit a comment to themselves and can't be view by anyone else

Current

Proposed Solution
OTF is keeping 'Applicant(s)' and ALL because OTF's applicants need to access the comments


[JN-378] Add designer tab and table of contents to form editor

This adds a "Designer" tab to the form editor. For now, this tab contains a table of contents for all elements in the form. The intent is that when a user selects one of the elements in the table of contents, the right panel will show a form for editing that element.

I didn't try any library. I copied and adapted this from Terra's file browser. Now that I think about it, I believe our motivation for writing our own tree view there was because of how data was fetched whenever a tree item was expanded.
Of the two mentioned though, https://github.com/lukasbach/react-complex-tree looks like it doesn't apply the tree-related ARIA roles, so VoiceOver doesn't read anything when navigating around the tree. Drag and drop in the table of contents is appealing, but I think we'd have to add another more easily accessible option for organizing questions anyway (like buttons to move a question up/down), since that library's drag and drop doesn't seem to work on a phone and I'm guessing not for keyboard users either. I'm thinking of having it so that when a page or panel is selected in the table of contents, the right panel shows its list of elements and allows reordering them.
https://www.npmjs.com/package/react-accessible-treeview seems ok with VoiceOver, but since it's already done, I lean towards the greater control we have with our own components vs a library.


az sql server firewall-rule create fails with misleading Not Found message if name is duplicated but different case

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Additional context
Add any other context about the problem here.

Sorry - submitted wrong window! See #11215 instead.


so many warnings when compiling mxnet0.7.0 in TX1 with cuda 8.0

In file included from include/mxnet/base.h:12:0,
                 from src/io/image_aug_default.cc:6:
/home/ubuntu/mingzhang/mxnet_work/dmlc-core/include/dmlc/parameter.h:254:43: warning: ‘mxnet::io::__make__DefaultImageAugmentParamParamManager__’ defined but not used [-Wunused-variable]
   static ::dmlc::parameter::ParamManager &__make__ ## PType ## ParamManager__ = \
                                           ^
src/io/image_aug_default.cc:112:1: note: in expansion of macro ‘DMLC_REGISTER_PARAMETER’
 DMLC_REGISTER_PARAMETER(DefaultImageAugmentParam);

This should have already been fixed by the most recent version of dmlc-core

@tqchen only need to replace the dmlc-core ?

@starimpact just try.


[MySQL] Emoji Decoding Bug

I am using vertx-mysql-postgresql-client 3.2.1 , which warps mysql-async_2.11 (v0.2.18).
When reading from Mysql database with encoidng utf8mb4, some emojis can't be correctly decoded.
They were simply shown as "????" rather than "😁😘👫💕". Emojis were store in varchar field.
I tested with JDBC driver, the result was good. So the database configuration should be correct.
Anything I can do to fix this?

Found the solution. In my.cnf, original I had initial connect command like "SET NAMES utf8mb4". Do not rely on configurations inside my.cnf of MySQL. Instead, use the driver to execute an query "SET NAMES utf8mb4". Then the following decodings would be correct.
So I think it  shouldn't be the bug of the driver. Issue closed.

@chouclee you shouldn't have to do this, the driver allows you to define an encoding in the Configuration object, did you try that?

@mauricio Yes, I tried. The configuration could only accept charset defined in java.nio, isn't it? So
I put the {'charset':'UTF-8'} to json object of configuration, but there is no effect at all.
Also, use the driver to execute an query "SET NAMES utf8mb4" didn't work under some circumstances, i.e high volumn of requests. Only the first connection could be set properly since we are using a connection pool.

Hum, that should probably be an acceptable value for the charset config. Gonna see if I can reproduce it.

@mauricio Here are the my.cnf and sql to create table,  for your reference.
port		= 3306
socket		= /var/run/mysqld/mysqld.sock
default-character-set=utf8mb4

[mysql]
local-infile
default-character-set=utf8mb4

[mysqld_safe]
pid-file	= /var/run/mysqld/mysqld.pid
socket		= /var/run/mysqld/mysqld.sock
nice		= 0

[mysqld]
user		= mysql
pid-file	= /var/run/mysqld/mysqld.pid
socket		= /var/run/mysqld/mysqld.sock
port		= 3306
basedir		= /usr
datadir		= /var/lib/mysql
tmpdir		= /tmp
lc-messages-dir	= /usr/share/mysql
explicit_defaults_for_timestamp
local-infile
collation-server = utf8mb4_unicode_ci
init-connect='SET NAMES utf8mb4'
character-set-server = utf8mb4
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address	= <IP_ADDRESS>

Sql to create table:
creta table xxx (
...
...
) CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;


complex filter nullsrc

In merging videos, I have been using pad to extend the width of the first video and overlaying the second video on the padding space.
Is a way to create a blank space/area as a background and overlay both videos in there?
In an example about overlaying at https://ffmpeg.org/ffmpeg-filters.html#overlay-1 , I found this line of code
nullsrc=size=200x100 [background];
How can I do convert that so I can add it in my complexfilter? Thanks
Here is my current code:
.complexFilter([
    "[0:v]scale=300:300[vid1]",
    "[1:v]scale=300:300[vid2]",
    {
        filter:"pad",options:{w:"600",h:"300"},
        inputs:"vid1",outputs:"padded"
    },
    {
        filter:"overlay", options:{x:"300",y:"0"},
        inputs:["padded","vid2"],outputs:"output"
    },

{ filter:"nullsrc", options:{size:"200x100"}, outputs: "background" }

or just add "nullsrc=size=200x100"to the list

Thanks,
Now, the problem is that it doesn't stop processing when I run it.
I tried removing all my other codes and just left the "nullsrc=size=200x100[output]",
It would not stop.

@njoyard
Thanks!


Any way to add uri dimension to envoy_cluster_upstream_rq_time metric?

Describe the feature request
envoy_cluster_upstream_rq_time is useful to find out slow services. it would be more useful to add uri property.
Describe alternatives you've considered
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[X] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Additional context

I don't think that is possible, as uri can be unbounded and cannot be used as metric label directly. Envoy itself does not support sophisticated stats classification or customization either. You will have to use other mechanism such as trace to identity slow request path. Please reopen if you have more question. Thanks!


Make Proto.Persistence.RavenDB Target netstandard2.0

The Proto.Persistence.RavenDB library already has if defs for netstandard2.0 but it is not multi-targeting netstandard2.0. Can this be fixed please?

I have commited a update to fix this now.

Thank you!
On Mon, Aug 6, 2018, 1:15 PM Daniel Söderberg<EMAIL_ADDRESS>wrote:

I have commited a update to fix this now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AsynkronIT/protoactor-dotnet/issues/418#issuecomment-410801912,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AgTlrU3tyTZr4NMl187DoYQJGMLLTJIHks5uOIfGgaJpZM4UyaDw
.


getDuration() unpredictably returns either Infinity and NaN when used in the "ready" event listener

In this code:
wavesurfer.current.once('ready', () => {
  setReady(true)
  handleSetDuration()
})

I am wanting to know how long an audio file is after it been processed and is ready to play. However, there seems to be a race condition where the duration will initially be either NaN or Infinity until a brief period has passed. The workaround I am using for this is to poll the method every 50ms until it gives a real number:
  const handleSetDuration = async () => {
    const checkDuration = (duration: number | undefined | null) => {
      if (!duration) return
      if (duration === Infinity) return
      if (isNaN(duration)) return
      return duration
    }

    // Waits one second then gives up
    for (let i = 0; i < 40; i++) {
      const newDuration = checkDuration(wavesurfer?.current?.getDuration())
      if (!newDuration) {
        await new Promise((resolve) => setTimeout(resolve, 50))
        continue
      }

      setDuration(newDuration)
      break
    }
  }

How do you load the audio? With peaks or without? What type of file is it?

i was facing the same problem just yesterday. i do not fully understand your code but it seems to me that you can do it much more simpler like this(this is the way i used):
`
// Load audio from a remote url.
waveformRef.current.load(url);
waveformRef.current.on('ready', () => {
// @ts-ignore
const duration = waveformRef.current.getDuration();
setAudioDuration(duration);
});
`
in summary, just save the Duration in a variable and then set it as your state. i think problem is kinda about the closures and the fact that state updates in React are asynchronous(not sure though!)

Might be fixed by #3106.

I'll go ahead and close this issue, please feel free to reopen it if it's still not fixed.


AuthForward-Circumvention based on URL

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you expect to see?
This request is for people who use some kind of authentication through the authforward-middleware like keycloak or authelia.
Usually apps or desktop-programs don't support this kind of authentication, therefore having a way to circumvent the middleware would be very useful.
e.g. matrix.domain/ -> middleware1 (with auth)
matrix.domain/customtoken/ -> middleware2 (without auth) -> strip customtoken/

Hello @tamaskan
I am not sure if I correctly got your question but seems that the easiest way is to create a new router that matches the matrix.domain/customtoken/ using Host and PathPrefix Rule without authentication middleware.
As it is the question I recommend moving the conversation to our community forum.


Add image bug fix

Bug Fixes

[ ] No Images crashes Create Linode from Image
[ ] Create Linode from Image select data now formatted properly
[ ] Create Image and Create Image Helper behave the same

Changes Unknown when pulling 8a5c7c0cc97aaea0ce1c525767e23b63f430acf0 on na3d:add-image-bug-fix into ** on linode:develop**.

Changes Unknown when pulling e1da80f6404db913cebb28ceec71545f64370b37 on na3d:add-image-bug-fix into ** on linode:develop**.

Changes Unknown when pulling a275475fa43a9f69b7b505ca0fcaf76ecae044ef on na3d:add-image-bug-fix into ** on linode:develop**.


Enhance README.md

Motivation

This PR aims to enhance the README.md.

@not522 Could you review this PR?

Sorry for my late response. How about setting all <details> to open so that we can see at a glance what the examples are? This will also allow searching in a web browser.

@not522 Thank you for the comment, I addressed your suggestion!

@not522 @y0z
I resolved the conflict!
Please take another look at README:)
https://github.com/nabenabe0928/optuna-examples/tree/enhance/improve-readme


User with readOnly connection does not receive updates

Description
User with readOnly connection does not receive updates, I expected the user to receive updates from the websocket
Steps to reproduce the bug
Steps to reproduce the behavior:

Create a provider, set readOnly to true on onAuthenticate
Connect another provider, make changes
Notice that the readOnly provider will not receive updates from the other user

Expected behavior
Users with readOnly should get updates

It was a bug in my code, all my providers were readOnly because I was passing a boolean value to the websocket parameters, which gets encoded as "false"


Onboarding Twilio

Value Statement
As VANotify platform
I want to be able to use Twilio as a text provider
So that we can utilize multiple provider options
Acceptance Criteria
successful sending
GIVEN a SMS request
WHEN this request is routed (pinned etc) to be sent via Twilio
THEN a message is successfully sent
ability to accept incoming text messages from Twilio via webhooks
GIVEN incoming SMS from Twilio
WHEN Twilio makes an API call
THEN VANotify forwards the incoming message to upstream service
process delivery statuses from Twilio via webhooks
GIVEN a sms sent via Twilio
WHEN Twilio makes an API call with a delivery status update
THEN notification status is updated in VANotify
VANotify webhooks to upstream services on notification status updates from Twilio
GIVEN a sms sent via Twilio
WHEN Twilio makes an API call with a delivery status update
THEN VANotify makes a webhook call to upstream service with VANotify status update
statsd and datadog graphs
GIVEN a notification sms request
WHEN it is sent via Twilio
THEN statistics for api calls to Twilio are recorded
AND these statistics are represented in a graph on a Data Dog dashboard
GIVEN a sms sent via Twilio
WHEN Twilio makes an API call with a delivery status update
THEN Twilio callback statistics are recorded
AND these statistics are represented in a graph on a Data Dog dashboard
GIVEN incoming SMS from Twilio
WHEN Twilio makes an API call
THEN Twilio incoming SMS statistics are recorded
AND these statistics are represented in a graph on a Data Dog dashboard
Checklist

[ ] Regression test provider pinning
[ ] Regression test provider sending strategies
[ ] VANotify webhooks to upstream services on notification status updates from Twilio

Assumptions

We won't use Twilio until we get the go ahead
Twilio credentials are available

Additional Info/Resources

phone numbers are associated / tied to one provider
Twilio queues SMS requests internally and ensures to deliver them with appropriate rate limits to telephony carriers (this is different then how AWS works) hence we don't need to worry about rate limiting our requests when utilizing Twilio as a provider

Out of Scope

Open Questions

How will provider / number association work?

Open Question on business / paperwork side that needs to be sorted before ready for dev.


我想看一下agent和server的交互函数，可以指导一下嘛

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Screenshots or Terminal Copy&Paste
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. Ubuntu 22.04]
Python: [e.g. 3.9]

Additional context
Add any other context about the problem here.

Hi, @hushuang909 ，如果指的是task server的话，相应的代码在src/client/task.py里。如果指的是agent server的话，相应的代码在src/client/agents里。

If you have any further questions, you are welcome to reopen the issue!


Potential Layout images

Missing images/visuals for

[x] Townhouse
[x] Mixed-use
[x] Cohousing
[x] Single Family Home Conversion

Will need to pull from second InDesign file

Extracted and Added


Develop to preprod

Fixes

OIDC logout

Chore

bump EIMIS keycloak image
use EIMIS Synapse image
parametrize docker image version

Need it merged to be sure everything works for demo time!


Flowbite docs don't have correct theme toggle behavior

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to flowbite docs
Open same page on another tab (it can be any page on flowbite docs)
Toggle the theme on the first page
Go to the second page and toggle the theme there
On the second page the icon to toggle the theme changes but the theme remains the same

Expected behavior
The theme should be changed with the icon
Screenshots

Desktop (please complete the following information):

OS: Windows 11
Browser chrome
Version 117.0.5938.132

Additional context
I encountered this issue when I had multiple tabs opened with light theme and I wanted to go to dark theme.

If this is something that's considered valid and is decided to work upon, I'd like to contribute.

Hey @ArunBohra12,
Thanks for writing and providing feedback.
I've just checked this out and the theming behaviour seems to be okay.
The icon changes as I refresh the page and navigate the website.
Here's a video on my end:
https://github.com/themesberg/flowbite/assets/8052108/8d57a58f-aec6-4ea5-8c1e-3a120f039ef6
Cheers,
Zoltan

Hmm.. if I'm not wrong, you're always in the same tab. If that's the case, you might want to check it by opening a new tab, changing the theme there, coming back to the first tab, and trying to change the theme on this first tab. I'll leave a video of my own.
https://github.com/themesberg/flowbite/assets/94133102/e7d99cb5-cbe4-4e55-9329-3a17e4eeb7fc
If the behavior is okay, then it's all good.


New blueprint for React & Python single page app

New blueprint for React & Python single page apps, both with global and regional load balancer. Includes automation for extracting Content-Security-Policy headers.
I applicable, I acknowledge that I have:

[x] Read the contributing guide
[x] Ran terraform fmt on all modified files
[x] Regenerated the relevant README.md files using tools/tfdoc.py
[x] Made sure all relevant tests pass

Hey Taneli, I don't think this is a good example to have here: not only because we're trying to move awayrationalize blueprints, but more importantly because we focus on Terraform. Anything else should at best have a supporting role, or not even be there.
@juliocc WDYT?

I have no particular opinion whether it is a good example or not, but 1) I've had multiple customers ask about this, 2) There is no documented pattern out there right now. Make of it what you will.


[Request publisher change] Table 210 "Job Journal Line", procedure UpdateTotalCost; OnAfterUpdateTotalCost

Hello,
we need additional parameters in your publisher OnAfterUpdateTotalCost in table 210 "Job Journal Line".
Thank you in advance!
procedure UpdateTotalCost()
    begin
        "Total Cost" := Round("Unit Cost" * Quantity, AmountRoundingPrecisionFCY);
        "Total Cost (LCY)" := ConvertAmountToLCY("Total Cost", AmountRoundingPrecision);
// - changed
        // OnAfterUpdateTotalCost(Rec);
        OnAfterUpdateTotalCost(Rec, AmountRoundingPrecision, AmountRoundingPrecisionFCY);
// + changed
    end;

    [IntegrationEvent(false, false)]
    local procedure OnAfterUpdateTotalCost(var JobJournalLine: Record "Job Journal Line"; AmountRoundingPrecision: Decimal; AmountRoundingPrecisionFCY: Decimal)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Plugin for Stream.me (already have stream url grabber)

Is there someone who can help me create a working plugin for this platform?
I made this script to get the hls stream link from the link given by the user: http://pastebin.com/cT5issHN
I'm not good enough with this stuff to create an actual plugin out of this, but I hope it helps somebody to make one.

this is now available in streamlink: https://github.com/streamlink/streamlink/pull/23/commits/aadfc7ab7122c2e74e9097d58bcaab55f3baf2a0

you can try #1488


In dark mode, the CupertinoTextField cannot display text colors

Steps to reproduce
In dark mode, the CupertinoTextField cannot display text colors
Expected results
In dark mode, the CupertinoTextField can display text colors
Actual results
In dark mode, the CupertinoTextField cannot display text colors
Code sample
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: const ColorScheme.dark(),
      ),
      themeMode: ThemeMode.dark,
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            CupertinoTextField(),
          ],
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output

Thanks for the report. Reproduced the issue on the latest Flutter stable and master channels.
Some additional info:

Issue doesn't happen with TextField
If I use CupertinoApp with CupertinoThemeData(brightness: Brightness.dark) to theme, issue will not happen as well but we will not achieve application theme by there is no themeMode on CupertinoApp.
Related issue: https://github.com/flutter/flutter/issues/80860

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.19.5 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (8 days ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 123.0.6312.106

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.22.0-12.0.pre.32, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.22.0-12.0.pre.32 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 69c7fcb8aa (43 minutes ago), 2024-04-16 23:44:51 -0400
    • Engine revision 31b67985de
    • Dart version 3.5.0 (build 3.5.0-68.0.dev)
    • DevTools version 2.35.0-dev.8
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode15.3.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.88.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.86.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 123.0.6312.124

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

(I updated your description as your Expected results and Actual results are similar)

Yeah, so that means if I don't use CupertinoApp, I can't use Cupertino's components, CupertinoApp and material APP can't exist together

https://github.com/flutter/flutter/issues/146864   This problem has been around for a few years, but unfortunately it hasn't been solved yet

@laterdayi Could you use a CupertinoTheme widget to set the Cupertino styles for your Material app?
FYI @MitchellGoodwin
Also FYI @Renzo-Olivares this is related to the adaptive widget idea for text fields.

The Material App does wrap itself with a Cupertino theme by default, but it doesn't look at themeMode. It does look at brightness in the ThemeData though. So there are three work arounds that I believe will work.

Add a brightness set to Brightness.dark to your Material theme data.
Set the brightness in cupertinoOverrideTheme in your Material theme data.
Within your Material App, wrap your code with a Cupertino theme. If you do this above your Material app, it will be overwritten by the default one that Material makes.


Added Machine learning python model of gender detection using voice based commands

Added Machine learning model of gender detection using voice

I've added the whole model, including the training dataset csv file. The training can be initiated using the main.py execution.
Close #3160

Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md

@MohitGupta121 @TusharKesarwani @pranjay-poddar pleaase reiew this!


Add an example looking at interactive visualization

Use pyvista xarray to visualize radar data or holoviews

Closing since we have an interactive example


[WIP] Ensure measurement dropped when no more series

Required for all non-trivial PRs

[ ] Rebased/mergable
[ ] Tests pass
[ ] CHANGELOG.md updated
[ ] Sign CLA (if not already signed)

Fixes #6498

We need this same fix for DeleteSeriesRange too.

@jwilder hmmm. I think the issue is that when DELETE SERIES is issued, the TSDB is instructed to delete series data but not to touch any meta data, which means neither the series or the measurement will be removed from the index (if I'm following correctly).
Seems like there is already a pre-existing issue here. The determining factor for when DatabaseIndex.DropSeries is called should be when there is no more points in the series, not whether DROP SERIES or DELETE SERIES was issued.
My thinking would be to remove the dropMeta bool parameter from Store.DeleteSeries, and instead determine inside that method whether or not DatabaseIndex.DropSeries needs to be called.
Thoughts?

@e-dard Yeah, that sounds right.
I was referring to this issue related to delete series.  If you delete the whole series, it currently leaves the series in the index.  After you restart, it disappears which is confusing.  In this case, it should remove the series from the index too so that the behavior is the same before and after a restart.
Related to this PR, if you fully delete the series and it was the last series for the measurement, we should also remove the measurement from the index too because it would also disappear after a restart.

LGTM 👍  :shipit:


pdfjs-dist upgrade and highlight annotation support added

Upgrade pdfjs-dist to latest
Create css script for combining pdfjs-dist/web/pdf_viewer.css with custom css.  Also inline svgs in final output.
Remove image copies since they get inlined in final pdf_viewer.css.
Ensure build works cross platform by using copyfiles.
Add HighlightMenu to toolbar in solidweb.
Add highlightDefaultColor to state and updateHighlightDefaultColor method to PdfSlick.
Add overflow auto to fix overflow issues.

I have tested basic PDF functionality in solid, react, and svelte.  There may be some things that are broken that I am not aware of and more thorough testing may be necessary.

Wow @jgreene! This is great, ty for this amazing effort!
Haven't really had the time but will give this a proper code review, though it looks good at first glance. The only things I was having issues with was with the worker when running npm run dev +npm run build, but just adding import "pdfjs-dist/build/pdf.worker.mjs" and  removing the GlobalWorkerOptions.workerSrc = ... seems to have solved it.
--- a/packages/core/PDFSlick.ts
+++ b/packages/core/PDFSlick.ts
@@ -57,6 +57,8 @@ import {
     isValidRotation,
 } from "./lib/ui_utils";

+import "pdfjs-dist/build/pdf.worker.mjs"
+
 export type PDFException =
     | AbortException
     | MissingPDFException
@@ -64,11 +66,6 @@ export type PDFException =
     | RenderingCancelledException
     | UnexpectedResponseException;

-GlobalWorkerOptions.workerSrc = new URL(
-    'pdfjs-dist/build/pdf.worker.min.mjs',
-    import.meta.url
-).toString();
-
const US_PAGE_NAMES = {
  "8.5x11": "Letter",
  "8.5x14": "Legal",
};

I suspect the worker is one of the biggest stumbling blocks in a project like this.  Different build systems fail with it using different configurations and the best bet may just be instructing users to reference it directly themselves.  I will say it's odd that it didn't work for you since it was working for me just fine inside the apps projects.  There must be some kind of environment difference between us.


urlencode title

Otherwise we might occur problems when using things like whitespaces.

Hi Yannik,
the parameter is already urlencoded. Could you please explain why your extra call is needed?
Thanks
Michael

For some reason it was not working when I scanned the QR code with Google Authenticator (iOS). Urlencoding the string fixed that problem.

The encoding should be '&issuer='.urlencode($title);.  Otherwise the & and = get encoded too.

Yeah, makes sense. Shall I change my PR?

JN-Jones: The & and = definitly HAVE to be encoded, and I think Yannik is right, the title even has to be encoded twice.
Please check the resulting URL... It is a "https://" URL to google charts, and that URL has a parameter "chl=".. This parameter is an "otpauth://" URL.
So the & before the "issuer" definitly has to be encoded, because otherwise it would be a parameter to the google charts URL, and not the "otpauth" URL.
And that's also why the "title" parameter has to be encoded twice...
So I would say
$urlencoded .= urlencode('&issuer='. urlencode($title));
is correct.
What do you think?

Ah, yes, missed that it's a parameter itself. Yeah, title needs to be encoded twice in that case.

Yes, this is at least logical.

Also see: https://github.com/PHPGangsta/GoogleAuthenticator/issues/11


Create role for terraform

Directly installed within homebrew role via https://github.com/tboerger/workstation/commit/46feb017860d1614a01322c0e9d19524d53e85c0