Don't allow users to remove their account or user.

Description
Cloudstack users can delete their account accidentally and lock themselves from accessing the CloudStack panel. A link to an account placed next to ISO, template, VM and other entities in CloudStack's UI. If customers doesn't paying attention, they would click on the account link instead of the link to the entity they want (vm, template, ISO etc.) Then, if they had wanted to delete that entity, they would press delete button without realising they were on the account page, and press Confirm.
Mailing list [thread]
This PR don't allow users to remove their account or their user.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Screenshots (if appropriate):
https://user-images.githubusercontent.com/9499410/219402523-e878deb1-23f9-400b-98ef-113c447dec88.mp4
How Has This Been Tested?

Create two account, Acc1 and Acc2.
Login as the Acc1
Go to the Acc1 page, delete button is not there.
Go to the Acc2 page, delete button is there.
Logout and login as the Acc2
Again, you can see the delete button for the Acc1 but not for yourself.

@soreana
is there a way to disable it in backend ?

@weizhouapache I guess we can disable that in the backend as well, but I think anyone who uses the API, or the CloudMonkey knows what he does. So, I didn't disable that.
Another reason was that in the UI we are not able to delete other admin but we can do that using the CloudMonkey.

@soreana I tested these changes manually, I do not know if my environment is too slow, but if I am fast enough, I can click the delete button before it becomes disabled.
I'm not sure how to fix this though...

@soreana I tested these changes manually, I do not know if my environment is too slow, but if I am fast enough, I can click the delete button before it becomes disabled.
I'm not sure how to fix this though...

@JoaoJandre I guess the issue is related to the way UI is loaded. I'm not sure if I can control that, that is beyond my knowledge 😃

@blueorangutan ui

@kiranchavala a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/7242 (QA-JID-58)

@soreana  Tested the ui  LGTM
The delete account icon is graded out

@harikrishna-patnala Can you please check this pr when you have time? Thanks.


[RFC][DNM] Multiple image support

Design proposal for supporting multiple image update in MCUBoot.
Signed-off-by: Tamas Ban<EMAIL_ADDRESS>

FYI @pizi-nordic @ioannisg

I went through the Information Model for IETF SUIT (https://datatracker.ietf.org/wg/suit/documents/), and quickly identified some security requirements that seem relevant, but that are not addressed:

3.3.2.  Security Requirement MFSR2: Vendor, Device-type Identifiers
3.3.6.  Security Requirement MFSR4b: Authenticated Storage Location
3.3.9.  Security Requirement MFSR4e: Authenticated precursor images
3.3.10.  Security Requirement MFSR4f: Authenticated Vendor and Class IDs

@tamasban I think you can close this one!


Question about Open Space Algorithm

Hello team! Help me please

OS Platform and Distribution - Linux Ubuntu 18.04:
Apollo installed from source:
Apollo version - pre6:

Why doesn't the Open Space Algorithm work for me?
I am using a LGSVL simulator and Autonomus Staff map.
In Route Editing menu, I select a slot, as shown in the picture below. And click Send Routing Request.

But the car drives up to the parking space and does not perform the parking maneuver.

Can you please tell me what I'm doing wrong?

Seems the open space planner is combined to public road planner, and the park scenario is in "modules/planning/conf/scenario/valet_parking_config.pb.txt"

Sorry I am not familiar with either of the simulator or the map. We do have quite a few of open space planner application and its simulation cases for different environment available at Apollo's simulation environment: http://bce.apollo.auto, you may want to start with comparison the differences between these cases and your test environment.

As in your case, you may want to check if the  routing request you sent has the parking_id https://github.com/ApolloAuto/apollo/blob/45134948422cc8cab64d55bd83f3968fe0041d7c/modules/routing/proto/routing.proto#L23 information, if not, you may want to manually create one.

Sorry I am not familiar with either of the simulator or the map. We do have quite a few of open space planner application and its simulation cases for different environment available at Apollo's simulation environment: http://bce.apollo.auto, you may want to start with comparison the differences between these cases and your test environment.

Sorry I was wrong about that we have some simulation cases already available in public. --- We will have a few available in the upcoming release.

As in your case, you may want to check if the routing request you sent has the parking_id
https://github.com/ApolloAuto/apollo/blob/45134948422cc8cab64d55bd83f3968fe0041d7c/modules/routing/proto/routing.proto#L23
information, if not, you may want to manually create one.

Yes. Indeed - I am not sending the Parking_id routing request

Could you please tell me how can I create a request manually?
Or maybe there is an instruction for this question? I could not find.

Hi @Capri2014
Help me if you can!
I want to create BOS accaunt accoding this
But I have some questions. Can I create an account from outside China? Is there an instruction in English
I see this picture


chore: decodeURIComponent for WalletConnect deep links

Description
As a safe guard, decode URL encoded WalletConnect deep links.
Other changes
N/A
Tested
By opening these deep links.
How others should test
https://use-contractkit.vercel.app or with the scripts/run-in-memory-client.ts script in the monorepo.
Related issues
N/A
Backwards compatibility
URI decoding is backwards compatible 👍

https://valora.testquality.com requirement R69.

Hi @MuckT We have verified this issue on Latest Android internal build V1.17.0 & Test flight build V1.17.0 and updated the status in test quality tool.
Test quality tool link:

Android:

https://valora.testquality.com/project/12128/plan/21240/run/149557/result/2450281

iOS:

https://valora.testquality.com/project/12128/plan/21240/run/149557/result/2450268

New Bug:

We have observed that user is able to see "-<0,001CELO" on Recent feed screen when user perform "Test sendTransaction"
FYI: We have raised bug ticket 922 for above observation
Verified On Devices: iPhone SE (14.2), Samsung Galaxy S4 (4.4.2)

CC: @AlexBHarley

@Celoqa after speaking with @AlexBHarley there is not corresponding transition for 'Test signTypedData'. Also 'Test signPersonal' has not been implemented in Valora.

Thank you @MuckT for comment. We will update respective status for related TC's in TQ tool


Stormwind Conjuror summon

named Water Elemental in game should be Scorpion

@Technopig1992 If it's OK with you I'll take this one. Better to automate this because we have many, many instances of getting this wrong.

@Technopig1992 If it's OK with you I'll take this one. Better to automate this because we have many, many instances of getting this wrong.

Scratch this, sorry. I'm having some issues with Ability automation at the moment so in the mean-time we can fix this as a one-off via object editor.


Question about whether Github plugin supports random numbers or calling random files in the text to insert section

Dear developer,
I am a Github user and I have recently encountered a problem while using your plugin. I would like to implement random numbers or call random files from a certain directory in the text to insert section of the plugin's YAML area. For example, I would like to use a random number parameter in the banner parameter. I would like to know if your plugin supports this feature, and if so, I would appreciate it if you could tell me the simplest way to implement it.
Thank you very much for your patience in reading this message. I look forward to your reply.
Thank you!

Hey @nevertoday . I am pretty sure the Linter does not support either of those actions directly, though I am not certain based on the description provided.
Could you give an example or 2 of what you were wondering whether the Linter does in terms of markdown before and after examples along with an explanation of how those changes may have come about (i.e. x value was present in the title thus this happened or x was in the YAML so that happened)?

I use shell script already ,thks

I use shell script already ,thks

I take it this means we are good to close this. I plan to close this tomorrow if I don't hear otherwise.

Looks like we are good to close this so I am doing so now.


🔧 merge custom mounts tests

What this PR does / why we need it:
Since the feature is now merged, we no longer need a single label for this. This saves a few CI cycles. To acheive this, we add the correct sections to the normal install sections and assert that these paths exist.
The previous assertions are kept, but in order to make code a bit more readable, I extracted the anonymous function that collects the data from the installed VM.
Instead of repeating the installation 4 times, we now only repeat the installation 2 times.

Looking good, nice !

I am still hesitant to merge this. It's seems the test still fail

Codecov Report

Merging #814 (de3e527) into master (9b34a0b) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##           master     #814   +/-   ##
=======================================
  Coverage   19.39%   19.39%
=======================================
  Files          18       18
  Lines        1459     1459
=======================================
  Hits          283      283
  Misses       1127     1127
  Partials       49       49

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Removing L from ProofVerify input

Closes #227
Taking a stab at the approach proposed by @rolfhaenni in #227. This PR:

Removes L from the inputs of ProofVerify and calculates it as L=R+U
Adds a Deserialization group of steps in the core operations (also used for de-structuring).

Also removed the Precomputation steps in favor of the Deserialization ones (IMO what was a Precomputation step was a bit loosely defined).
Since I removed the text saying that the Precomputation steps can be cached, I added some text detailing how the output of create_generaotrs can be cached + some requirements (although we may want to extent upon them in the future).
We could potentially also remove theDefinitions from each operation, since those values are explicitly defined in the procedures.
Thanks again @rolfhaenni 🙌

Multiple approvals, open 3 weeks, discussed on WG calls, merging


Misplaced admonition block

Comment example should come right after the bullet point
https://github.com/AdaCore/learn/blob/master/courses/intro-to-ada/chapters/imperative_language.rst

Done, thanks!


Field labels are meaningless

In add token screen the two topmost fields are missing proper labels. In fact they entirely miss labels and the placeholder text does not help much. To the best of my judgement the first field is the account name but "18c5d…" doesn't mean anything to me.
Please relabel those fields to improve UX with this form.

Totally agree. Will need to fix it.


Update README.md

added https://github.com/Trsmoothie/YOURLS-Amazon-Affiliate - Has notice before redirect.

Same as #26 ?

I put the wrong link by mistake in this one and changed it in #26.


analytics: Send zeros for data.user.bot in Messages Sent Over Time.

It will simplify the logic needed to process the "Sent by Me" view in
Messages Sent Over Time in stats.js.
Also, we gzip the data sent from our server, so there is little additional
network usage by doing this.

Automated message from Dropbox CLA bot
@rishig, it looks like you've already signed the Dropbox CLA. Thanks!

Merged, thanks @rishig!


Slowdown in Bayeslite or Crosscat

I’m seeing 0.1.4 being notably slower on my laptop than 0.1.3.rc2. Specifically running the following queries:
%time q('''simulate Period_Minutes from satellites_cc GIVEN "Users" = 'Military' limit 1000''');

takes 539ms on 0.1.3rc2 and 21s on 0.1.4 in unscientific testing. The underlying crosscat versions are 0.1.38 and 0.1.49 respectively.

bayeslite-0.1.4-profile.txt
bayeslite-0.1.3rc2-profile.txt

All the time seems to be spend inside cursor.execute(), in sqlite3/apsw.
A few wild hypotheses to investigate:

apsw's statement cache is problematic -- to large or too small.  We could try passing statementcachesize=0 or statementcachesize=1000 to apsw.Connection(...).
apsw is being compiled with -O0 instead of -O2 for some reason.
apsw is acquiring locks or doing other interprocessor synchronization that the Python sqlite3 module doesn't.


modified for jason

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

File
Status
Preview URL
Details

rd/jason-himmelstein.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Implement Python runtime download and extraction

That's the purpose of the pup.python-runtime pluggable step.
Should put a "Python Runtime" in the directory indicated by the context python_runtime_dir value.

Closing after minimal implementation merged from PR #25.


Kotewar/update actions cache version

remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), 794 bytes | 1024 bytes/s, done.
From https://github.com/w3schools-test/hello-world
a7cdd4b..ab6b4ed  master       -> origin/master
Updating a7cdd4b..ab6b4ed
Fast-forward
README.md | 2 ++
1 file changed, 2 insertions(+)

Closing this PR as actions/cache has been bumped to version 3.2.4.


MUIDataTableToolbar-root @media print setting might have negative impact on printing of table?

Expected Behavior
This area should render in print outs, if I'm not mistaken the toolbar has a left and right side and the left is reserved for the table's title?
Current Behavior
The display none is applied to the MUIDataTableToolbar so the @media print change is making the table render without a title section. I can understand not wanting to see the actions menu, if that is the case I would suggest applying the css to those sections and do visibility hidden rather than display none since visibility will persist the empty space.

Tech
Version

Material-UI
4.9.1

MUI-datatables
3.0.1

This is one of those issues where there seems to be a lot of disagreement. Several people wanted it removed for printing, so it was removed for printing in v3. However, it can be added back in with some theme overrides:
https://codesandbox.io/s/muidatatables-custom-toolbar-rygee?file=/index.js
let defaultTheme = createMuiTheme();

let getMuiTheme = () =>
  createMuiTheme({
    overrides: {
      MUIDataTableToolbar: {
        root: {
          "@media print": {
            display: "block !important"
          }
        },
        [defaultTheme.breakpoints.down("xs")]: {
          root: {
            "@media print": {
              display: "block !important"
            }
          }
        }
      }
    }
  });

Thanks for the info! I can see that desire since it's probably a pretty common scenario, but I always think removal of something should require people to make the customization themselves rather than making it a default. I was confused since I have a print preview mode which allows the user to view what the table would look like if they were to convert it into a pdf. I expect to see what I have rendered in print mode unless I tell it to do otherwise.


fetchBrokerMetadata API with all_topics parameter exposed

Currently, the fetchBrokerMetadata API in KafkaClient can be used to retrieve broker metadata. In my case, I know up front some topic is changed and would like to retrieve the latest topic information and trigger a rebalance by calling this API. Internally, it calls librdkafka's rd_kafka_metadata API, but so far the all_topics parameter of rd_kafka_metadata API is not exposed yet and is hard coded to be false in fetchBrokerMetadata.
rd_kafka_resp_err_t err = rd_kafka_metadata(getClientHandle(), false, rkt.get(), &rk_metadata, convertMsDurationToInt(timeout));
                                                                 |__ `all_topics` is hard coded here

Here's librdkafka's description about this parameter:
all_topics  if non-zero: request info about all topics in cluster,
                  if zero: only request info about locally known topics.

@remark Consumer: If \p all_topics is non-zero the Metadata response
information may trigger a re-join if any subscribed topics
have changed partition count or existence state.

I wonder if there is any chance we could expose this parameter as an optional parameter for the fetchBrokerMetadata API so that client can control some behavior here using this parameter.

Yes, the all_topics is set as false, to avoid the result being too HUGE! (who knows how many topics could be deployed in the cluster?😅)
An alternative approach would be: AdminClient::listTopics() + KafkaClient::fetchBrokerMetadata(...), -- just not sure whether that is convenient for your case?

Sorry for the late reply, I think for this API, the key difference is if all_topics is set to false (zero value), librdkafka won't trigger re-join according to the doc above:
If all_topics is non-zero the Metadata response
information may trigger a re-join if any subscribed topics
have changed partition count or existence state

Even if client can use AdminClient::listTopics() + KafkaClient::fetchBrokerMetadata(...) combination to retrieve metadata, this won't trigger re-join due to subscription change.

Before trying with all_topics=true, we should consider how we test it, -- or being more specific, how to write our testcases.
I don't quite understand I know up front some topic is changed and would like to retrieve the latest topic information and trigger a rebalance by calling this API -- did you mean the following?

Start a consumer, subscribe to some topic, and get the brokerMetadata
Use an AdminClient to delete the Kafka topic, and re-create the topic, but with different properties (e.g, partition number, replication factor, etc)
Use the consumer to fetch the brokerMetadata again, the new brokerMetadata should be different from the old one

Hi @kenneth-jia, thanks for the response.
In my case, the situation is like this:

consumer subscribes to some topic pattern
end users create some topic via UI, we would like to notify consumers immediately a topic is created and rebalance for newly created topic. And it seems the only API for doing this is using the all_topics parameter in librdkafka to trigger rebalance.

It doesn't have to be a re-created topic like you said, in my case, the situation looks like:

Start a consumer, subscribe to some topic pattern, and get the brokerMetadata
Use an AdminClient to create a new topic (which matches the pattern above)
Use the consumer to fetch the brokerMetadata again, the new brokerMetadata should include the new topic, at the same time, since the subscription changes, the consumer will re-join the group

The issue I would like to address is by default kafka refreshes its metadata and triggers rebalance every 300 seconds (5 minutes), before the rebalance happens, the data for the new topic won't be fetched by consumer, and this latency is too high in my case, and I would like to reduce it as much as possible.

Thanks for the details description, @niyue
I'll work our a PR (together with some testcase) these days. Cheers! 😊


add [openjdk11] to Travis build matrix

@sullis Committed as bbaf8af59e58518509dfb34db50a1067bbe8dea3. Please review and close.


'React/RCTEventDispatcher.h' file not found

Environment

Description

Reproducible Demo

I have the same error, how did you fix it?

Same error getting


core dump with small example file

While running GaKCo with a small example file I get a core dump:
$ ./GaKCo -g 10 -k 4 temp.fasta dict.txt labels.txt kernel.txt
Input file : temp.fasta
Dictionary size = 5 (+1 for uknown character)
Reading temp.fasta
Read 2 strings of length = 12
Weights (hm):210 126 70 35 15 5 1
numF=6, sumLen=24
(10,4): 6 features
*** Error in `./GaKCo': free(): invalid size: 0x00007fcbb4000c70 ***
*** Error in `./GaKCo': free(): invalid size: 0x00007fcbac000c70 ***
======= Backtrace: =========

temp.fasta:
>1
ACGACGTGACGA
>0
AGTCCCAAATCC

dict.txt:
A
C
G
T

I am assuming, you were able to figure this one out (based on Issue 3)

Afraid not - I changed the parameters and it stopped core dumping, but it still core dumps with the case I used here

I pushed a fix for this. The problem was occurring when the number of g-mers extracted from the dataset was less than g (a few arrays would overflow when this happened, causing the memory corruption you observed). Apologies for taking quite a while to fix this (been very busy the last 2 weeks).


Better formatting of health check script's last output

Is your feature request related to a problem? Please describe.
When a docker container's health check script outputs a lot, the container detail page will look funky.

Describe the solution you'd like
I suggest using <pre> tags and overflow scrolling to make this field clear and readable.
Describe alternatives you've considered
Silence the health check script? But usually changing a container itself is not an option and you sometimes do need the output.
Additional context

OS: Windows 10 1903
Browser:  Chrome 64-bit 80.0.3987.116
Portainer: 1.23.1

Will close this as a duplicate of #3430
Note: there was a PR opened for the issue I linked but it required changes. If you wanted to open your own PR with the changes you suggest feel free


Intellisense not working offline for C++ and other languages.

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:1.63.0 and other versions too
OS Version: POPOS 21.04, Windows 11 Home

Intellisense is not working for C++ and other languages which I use(python and js). I have downloaded Microsoft intellisense extensions for all languages but they don't work when I am offline and most of the times wrong errors are reported in code. Many times vscode downloads models for different languages but still they don't work offline.

/extC++


[incubator/couchdb] Promote CouchDB chart to stable

What this PR does / why we need it:

Updates one container image default tag to clear out a few CVEs
Adds some keywords
Moves the chart to stable

Special notes for your reviewer:
I've run through the technical requirements and documentation requirements checklists and believe that the chart meets the large majority of the requirements. Some of the labeling guidelines seem inconsistent with current practice for most stable charts and so I've stuck with what seems to be the de facto standard.
The CouchDB chart has been baking in the incubator for a little over a year now and has seen a healthy progression of fixes and enhancements. There's always more we can do, but I'm wondering if we can work out of stable now.
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name

Ooh thanks - I failed to find that documentation.

Thanks for the tip @cpanato, I think this updated version of the PR follows the documented promotion process now.

/assign @sameersbn

Hi @sameersbn, just following the bot's guidance to assign you here, hopefully that's correct.

Just wondering if there's anything else I needed to do to advance this PR, thanks. It looks XL but is largely just a promotion to stable.

Would really love to use this in production but need it to be in stable first :(

@kocolosk all files should continue in the incubator, you just set the deprecate flag and the documentation

@cpanato I'm pretty sure that's what I did in 504e6ecb. Did I screw something up elsewhere?

@kocolosk all good my bad

/ok-to-test


[R] textobject not working ...

Hello,
I am trying to get textobject working for R (in helix editor); but copying the textobjects.scm doesn't seem to work: though the editor reports the supporting of textobject, but it's not functional.
... any suggestions/help are much appreciated!

I know it's a bit late, but what do you mean you copied the scm file? You should rather use a plugin manager to install this plugin.


graph/{multi,simple}: harmonise code organisation

This helps prevent the kind of errors that I found while doing this; the incomplete fix-up when removing the Has method.
Review requires no specific graph experience as it's almost entirely just text reordering.
Please take a look.
Updates #616.

Thanks you.


Chromium always falls back to flash

Example:
<div id="player">
  <audio id='audio-player' class="mejs-ted">
     <source id='audio-source-a' src='audio.ogg' type='audio/ogg; codecs=vorbis'>
     <source id='audio-source-b' src='audio.mp3' type='audio/mpeg'>
  </audio>
</div>

<script src="mediaelement.js/mediaelement-and-player.min.js"></script>

<script>
    var player = new MediaElementPlayer('#audio-player',
      {
        features: ['progress','current','duration','volume','playpause'],
        alwaysShowControls: true,
        audioWidth: '50%',
        audioHeight: 50,
        audioVolume: 'vertical'
      }
    );
</script>

Instead of playing ogg file it plays mp3 via flash plugin. Also canPlayType() function of audio element wrapped by mediaelement always returns empty string:
var a1 = document.getElementById('audio-player');
  a1.canPlayType('audio/ogg; codecs=vorbis'); // returns ""
  a1.canPlayType('audio/mpeg');  // returns ""
var a2 = document.createElement('audio');
  a2.canPlayType('audio/ogg; codecs=vorbis'); // returns "probably"
  a2.canPlayType('audio/mpeg');  // returns "probably"

Tested only in Linux versions of Chromium 43 and 47. Firefox plays ogg.
If only ogg file provided, Chromium displays download link with no player. Without mediaelement ogg playback works well.

@rekcuFniarB Do you have a URL where we can see this, please?

Here are demos:
ogg and mp3 supplied. Chromium plays mp3 instead of expected ogg playback. In the network view You can see that mp3 file is used.
ogg only supplied. No playback, player crashes. Screenshot
Example without mediaelement.js. Everything works as expected, Chromium uses ogg file.

@rekcuFniarB Thanks for your patience. I created a PR that solves this issue (#1843). Please test it and let me know.

Closing this issue since PR was merged and per comments on #1843


Added Scala 2.12.1 for crossbuilding. Fixed dependencies as necessary.

Addresses issue: https://github.com/ua-parser/uap-scala/issues/13

@humanzz @aoiroaoino @orendain Is this library still maintained?

@vitorsvieira I'm successfully using uap-scala, though don't have enough bandwidth to track down and patch the failed test.  I'm not sure if the project as a whole is still actively maintained (or if it even needs it) - the day I submitted the PR was the first day I stumbled upon this repo.

@orendain @vitorsvieira I've taken a slightly different approach in #18.

Merged https://github.com/ua-parser/uap-scala/pull/18


[Bug] pip install spleeter -> broken (on Archlinux)

[x] I didn't find a similar issue already open.
[x] I read the documentation (README AND Wiki)
[x] I have installed FFMpeg
[x] My problem is related to Spleeter only, not a derivative product (such as Webapplication, or GUI provided by others)

Description
Pip install of spleeter 2.1.0 broken on archlinux.
Searching for tensorflow 2.3.0 -> not available.
Step to reproduce

Installed using pip install spleeter
Run as user and/or 'root'
Got ERROR: Could not find a version that satisfies the requirement tensorflow==2.3.0 (from spleeter) (from versions: none) ERROR: No matching distribution found for tensorflow==2.3.0 (from spleeter) error

Output
~ $ pip install spleeter
Defaulting to user installation because normal site-packages is not writeable
Collecting spleeter
Downloading spleeter-2.1.0-py3-none-any.whl (50 kB)
|████████████████████████████████| 50 kB 3.4 MB/s
Collecting typer<0.4.0,>=0.3.2
Downloading typer-0.3.2-py3-none-any.whl (21 kB)
Collecting ffmpeg-python==0.2.0
Downloading ffmpeg_python-0.2.0-py3-none-any.whl (25 kB)
Collecting librosa==0.8.0
Downloading librosa-0.8.0.tar.gz (183 kB)
|████████████████████████████████| 183 kB 5.8 MB/s
Collecting pandas==1.1.2
Downloading pandas-1.1.2.tar.gz (5.2 MB)
|████████████████████████████████| 5.2 MB 6.3 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting httpx[http2]<0.17.0,>=0.16.1
Downloading httpx-0.16.1-py3-none-any.whl (65 kB)
|████████████████████████████████| 65 kB 1.5 MB/s
Collecting norbert==0.2.1
Downloading norbert-0.2.1-py2.py3-none-any.whl (11 kB)
ERROR: Could not find a version that satisfies the requirement tensorflow==2.3.0 (from spleeter) (from versions: none)
ERROR: No matching distribution found for tensorflow==2.3.0 (from spleeter)
Environment
| ----------------- | ------------------------------- |
| OS                | Linux Archlinux |
| Installation type | pip             |
| RAM available     | 8 Go                             |
| Hardware spec     | Intel celeron integrated GPU            |
Additional context

Could you try installing Tensorflow separately as an arch package using pacman ? I am not familiar with Archlinux, but a quick search sound like you can not rely properly on pip for some specific dependencies (using binary distribution I guess ?) such as TF.

Could you try installing Tensorflow separately as an arch package using pacman ? I am not familiar with Archlinux, but a quick search sound like you can not rely properly on pip for some specific dependencies (using binary distribution I guess ?) such as TF.

tensorflow is at version 2.4.0 on archlinux, and trying to lunch :
spleeter separate -p spleeter:2stems -o output audio_example.mp3
Fail with :
pkg_resources.DistributionNotFound: The 'tensorflow==2.3.0' distribution was not found and is required by spleeter
even if tensorflow is installed.

tensorflow is at version 2.4.0 on archlinux, and trying to lunch :
spleeter separate -p spleeter:2stems -o output audio_example.mp3
Fail with :
pkg_resources.DistributionNotFound: The 'tensorflow==2.3.0' distribution was not found and is required by spleeter
even if tensorflow is installed.

Modifying required version in setup.py let my go a little further.
Blocked now with :
pkg_resources.DistributionNotFound: The 'pooch>=1.0' distribution was not found and is required by librosa

Modifying required version in setup.py let my go a little further.
Blocked now with :
pkg_resources.DistributionNotFound: The 'pooch>=1.0' distribution was not found and is required by librosa

The pooch problem is being with the resolution of a bug on the archlinux package.
Now, h2 is required in version 3.* and is present on archlinux at 4.0.0 ...

The pooch problem is being with the resolution of a bug on the archlinux package.
Now, h2 is required in version 3.* and is present on archlinux at 4.0.0 ...

Closing the issue. impossible here to use Spleeter with a non AVX CPU and no CUDA GPU. :-(

Closing the issue. impossible here to use Spleeter with a non AVX CPU and no CUDA GPU. :-(

It's working well with a virtualenv python 3.7.
Only have to buy a new AVX compatible CPU :-)

It's working well with a virtualenv python 3.7.
Only have to buy a new AVX compatible CPU :-)

Ok, Now I can use an I7 CPU wih AVX and it's working virtualenv python 3.8 with poetry :
1 -pip install poetry
2 -poetry install (into spleeter source directory)
Just fine ! :-)
Thanks a lot for that stuff.
Now, trying to update Archlinux Package at latest spleeter version.


Any process on how to add dcat:theme to each ontology?

I just added Added http://livercancer.imbi.uni-heidelberg.de/ccont  and wondered if we have a process to add the theme to each ontology?

themes attached to graphs as per https://docs.google.com/spreadsheets/d/17-MXAugIzrxBICMkh1VYvqkPfiwgLrOP8WXHnRaAV8s/edit#gid=162325452


UIButton Selected Problem

How can I distinguish the Button Normal text with Selected text?
they use the same localize key in the storyboard, but actually the button title is different.

I am adding the additional localization parameters on buttons

so, how I can use different text for different button state?


Uncaught Error: Element type is invalid: expected a string (for built-in components) ...

Getting the error:
Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined

With the following includes in index.html
<script type="application/javascript"<EMAIL_ADDRESS><script type="application/javascript"<EMAIL_ADDRESS>
<script type="application/javascript"<EMAIL_ADDRESS>
<link rel="stylesheet"<EMAIL_ADDRESS>></link>

<script type="application/javascript"<EMAIL_ADDRESS><script type="text/babel" src="js/app.jsx"></script>

Then in app.jsx
import BootstrapTable from 'react-bootstrap-table-next';

const products = [ ];
const columns = [{
  dataField: 'id',
  text: 'Product ID'
}, {
  dataField: 'name',
  text: 'Product Name'
}, {
  dataField: 'price',
  text: 'Product Price'
}];

And later in render:
<BootstrapTable keyField='id' data={ products } columns={ columns } />

@brett--anderson
would you please show me the error stack and help me print the BootstrapTable to see what it is, thanks

Sorry, I'm new to React and had not actually built my application (yarn build / npm build). This hasn't been an issue for anything else I've developed yet. After setting up package.json etc and actually building the application I was able to serve the built assets and things seems to be working.


[Feature request] Provide a OAuth2PasswordBearer flow that uses client_id/client_secret and simply calls the appropriate token endpoint

Describe the feature you'd like

I'd like to use this package for retrieving and validating JWT tokens from Microsoft's /token endpoint without the need to configure a redirect.
I'm currently able to accomplish this with the following convoluted code.
import pathlib
from contextlib import asynccontextmanager
from functools import lru_cache
from typing import Annotated, AsyncGenerator

from fastapi import APIRouter, Depends, FastAPI, HTTPException, status
from fastapi.security import HTTPBasic, HTTPBasicCredentials, HTTPBearer
from fastapi_azure_auth import SingleTenantAzureAuthorizationCodeBearer
from fastapi_azure_auth.user import User
from httpx import AsyncClient
from pydantic import computed_field
from pydantic_settings import BaseSettings, SettingsConfigDict

# Ignore "Function name `...` should be lowercase
# ruff: noqa: N802

class Settings(BaseSettings):
    """Configuration settings used throughout the application."""

    model_config = SettingsConfigDict(
        # navigate up to root project directory for .env file
        env_file=pathlib.Path(__file__).parent.parent.parent / ".env",
        env_file_encoding="utf-8",
        extra="ignore",
    )

    # settings for the API's app registration
    TENANT_ID: str
    APP_CLIENT_ID: str
    SCOPE_DESCRIPTION: str = "user_impersonation"

    @computed_field
    @property
    def SCOPE_NAME(self) -> str:
        """The formatted name of the app scope as shown in the Azure UI."""
        return f"api://{self.APP_CLIENT_ID}/{self.SCOPE_DESCRIPTION}"

    @computed_field
    @property
    def SCOPES(self) -> dict:
        """The scopes and their description that will be shown in the Swagger UI."""
        return {self.SCOPE_NAME: self.SCOPE_DESCRIPTION}

    @computed_field
    @property
    def OAUTH2_TOKEN_URL(self) -> str:
        """The url used to retrieve access tokens at the end of the OAuth2 flow."""
        return f"https://login.microsoftonline.com/{self.TENANT_ID}/oauth2/v2.0/token"

@lru_cache
def get_settings() -> Settings:
    """Cache settings from .env file to avoid multiple file reads."""
    return Settings()

settings = get_settings()
azure_oauth = SingleTenantAzureAuthorizationCodeBearer(
    app_client_id=settings.APP_CLIENT_ID,
    tenant_id=settings.TENANT_ID,
    scopes=settings.SCOPES,
)
basic_auth = HTTPBasic(
    description="Use your `client_id` as username and `client_secret` as password"
)
bearer_auth = HTTPBearer()

async def get_current_partner(user: "AzureADAuthDep"):
    """Validate the access_token and, if valid, return the partner's name."""
    print(user.model_dump())
    return "partner_x"

SettingsDep = Annotated[Settings, Depends(get_settings)]
BasicAuthDep = Annotated[HTTPBasicCredentials, Depends(basic_auth)]
AzureADAuthDep = Annotated[User, Depends(azure_oauth)]
CurrentPartnerDep = Annotated[str, Depends(get_current_partner)]

auth_router = APIRouter(prefix="/auth", tags=["auth"])

@auth_router.post("/token", summary="Obtain an access token for authenticated API actions")
async def create_token(credentials: BasicAuthDep, settings: SettingsDep):
    """Obtain an access token that allows a partner to make authenticated requests.

    Per OAuth2 specification, it's recommended that `client_id` and `client_secret`
    should be submitted using HTTP Basic auth with `client_id` as username
    and `client_secret` as password.
    """
    async with AsyncClient() as client:
        azure_response = await client.post(
            url=settings.OAUTH2_TOKEN_URL,
            data={
                "grant_type": "client_credentials",
                "client_id": credentials.username,
                "client_secret": credentials.password,
                # .default grants all scopes
                "scope": f"api://{settings.APP_CLIENT_ID}/.default",
            },
        )

    if azure_response.status_code != status.HTTP_200_OK:
        print(azure_response.json())
        raise HTTPException(
            status_code=status.HTTP_403_FORBIDDEN, detail="Unauthorized access"
        )
    return azure_response.json()

storage_router = APIRouter(prefix="/files", tags=["storage"])

@storage_router.get("", summary="List files available for download")
async def list_files(current_partner: CurrentPartnerDep):
    """List all files in the authenticated partner's blob storage folder."""
    fake_dir = lambda root: [f"{root}/file1.png", f"{root}/file2.png", f"{root}/file3.png"]
    return {"files": fake_dir(current_partner)}

@asynccontextmanager
async def lifespan(_: FastAPI) -> AsyncGenerator[None, None]:
    """Load OpenID config on startup."""
    await azure_oauth.openid_config.load_config()
    yield

app = FastAPI(title="MVP", lifespan=lifespan)
app.include_router(auth_router)
app.include_router(storage_router, dependencies=[Depends(bearer_auth)])

original_openapi = app.openapi

def custom_openapi():
    """Remove AzureAD flow from the api spec and ui."""
    azure_scheme: str = "AzureAD_PKCE_single_tenant"
    if not app.openapi_schema:
        # Call the original openapi function
        openapi_schema = original_openapi()

        # Remove a specific security scheme (e.g., "BearerAuth")
        security_schemes = openapi_schema.get("components", {}).get("securitySchemes", {})
        if azure_scheme in security_schemes:
            del security_schemes[azure_scheme]

        # Optionally, remove references to the removed security scheme
        for path in openapi_schema.get("paths", {}).values():
            for operation in path.values():
                security = operation.get("security", [])
                operation["security"] = [sec for sec in security if azure_scheme not in sec]

        app.openapi_schema = openapi_schema
    return app.openapi_schema

# Assign the custom schema function to the app
app.openapi = custom_openapi

if __name__ == "__main__":
    import uvicorn

    uvicorn.run(app, host="localhost")

Additional context

In the provided example you can see I use Bearer Auth applied to the storage router that takes the JWT retrieved from /auth/token endpoint of the app where I just call the microsoft online token endpoint. Then, I utilize the azure_oauth dependency as a subdependency on get_current_partner to ensure the token is valid. This is where I lean on this package to verify the token based on the openid_config. You'll see I also have to manually remove the security schema from the openapi schema, which isn't pretty.
I'd love to be able to use this package directly for a Bearer-like flow. I guess technically this would be an OAuth2PasswordBearer flow.
Any input is welcome.

Hi!
Accepting usernames and passwords from your users is a security concern in itself, I strongly advise you to not do that. A proper with flow with Azure only gives a token that can be used for a specific app reg, not for all app regs.
A proper implementation here would be to implement the Authorization Code Flow.
I will not support that flow in this library, but the essence of it is to:

have a url that redirects the user to azure with code URL
set up azure to redirect back to another endpoint (e.g. /auth-code), which reads the code from the URL
post the code + client secret to azure
retrieve a token back


Clarify README language

As the project matures, let's update the README language to make clear the current status

Done in #8 I believe.


Multiple LineViews in Vstack/ScrollView

First of all - thanks for creating this library, it's awesome!💥
I'd like to out have a few LineViews inside a Vstack or ScrollView. Unfortunately, I'm not sure what is the best way to accomplish that without some layout issues. (please take note I'm fairly new to SwiftUI :))
When I put them in Vstack, they got squeezed like so:
 var body: some View {

    VStack(alignment: .leading, spacing: 20) {

      LineView(data: [8,23,54,32,12,37,7,23,43], title: "Line chart", legend: "Full screen")
      LineView(data: [8,23,54,32,12,37,7,23,43], title: "Line chart", legend: "Full screen")
      LineView(data: [8,23,54,32,12,37,7,23,43], title: "Line chart", legend: "Full screen")

When I wrap the above in a ScrollView, I get the following layout and touch event is no longer being detected on the chart:
var body: some View {

 ScrollView(.vertical, showsIndicators: false) {

   VStack(alignment: .leading, spacing: 20) {
      LineView(data: [8,23,54,32,12,37,7,23,43], title: "Line chart", legend: "Full screen")
       LineView(data: [8,23,54,32,12,37,7,23,43], title: "Line chart", legend: "Full screen")

I haven't found any related issue here (maybe I overlooked something), so maybe that's not a bug but just me doing something wrong :)
Let me know if you have an idea what the best approach is ;)

Hi, you probably need to add a frame to them to display properly like
LineView(data: [8,23,54,32,12,37,7,23,43], title: "Line chart", legend: "Full screen").frame(width:200, height:300)

Yup, that helped, thank you!


Meeting Notes Helper

Hello, my name is Saulo and today i help mentorship program
So, i have more spare time and will to help.
if there is any group that need someone to take meeting notes
i'm available.
thanks for your time.
@ladyleet if u could help me thx ^^

If you're still willing, there's an upcoming regular meeting :-)
https://github.com/nodejs/community-committee/issues/517

thx @keywordnew i will attend the meeting.

Thanks for the support 👍 :)

Thanks for your help today @SauloNunes. Just to be explicit, you're very welcome to keep attending and contributing.

thanks, you can count on me. i'll finish the notes tomorrow and make the pr.


Enhancing the UI of book exchange hub

Feature request:
The UI of book exchange hub can be made better and visually appealing
Solution:
We can add padding and also border to it to improve its appearance

I am a contributor at GSSoC'24. I have a good experience in development. I can resolve this issue. Please assign this to me.

Assigned !
Make it responsive too.

Thank you for assigning this to me @anuragverma108. I will make those changes and will raise a PR soon.

@anuragverma108 can you please send me your discord id for project discussion

My discord id  - anuragverma_108

@anuragverma108 Can you please add a label to this issue so that it will be counted in leaderboard.

@anuragverma108 I have made some changes and it is responsive too. Do let me know if there are any changes so that I can raise a PR.


Send Sensor Values from Arduino Board

Adapt the code
https://opla.arduino.cc/opla/module/iot-starter-kit-maker/lesson/06-smart-garden
To:
instead of sending the values to Arduino cloud. Send a post request to our server

Will create follow up issues to add tests and add further sensor data


Column with name "column" is not defined on the local table "table"

I am having a real issue with an error. It is partially killing me.
I am getting an error saying System.InvalidOperationExceptionColumn with name 'WOType' is not defined on the local table 'WorkOrder' when user is trying to insert data to sqlite DB. However, when I try to create this error by debuggin, It is working smoothly. Normally, we deploy a package through VSTS. The package comes from the VSTS gives this issue. A detailed error has been caught using xamarin insights and i have copied the whole error below. Please, take a look at let me know.
Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceLocalStoreExceptionFailed to perform operation on local store.
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceSyncContext+<>c__DisplayClass67+<b__66>d__69.MoveNext () [0x00198] in :0
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceSyncContext.d__6f.MoveNext()
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceSyncContext.d__e.MoveNext()
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceSyncTable.d__0.MoveNext()
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceSyncTable.d__7.MoveNext()
at Retread.CR.Mobile.Data.Repository.WorkOrderRepository.d__0.MoveNext()
at Retread.CollectorReceiver.Mobile.Services.WorkOrderService.d__9.MoveNext()
at Retread.CR.Mobile.Mvvm.ViewModels.WorkOrderViewModel.d__154.MoveNext()
at Android.App.SyncContext.c__AnonStorey0.<>m__0()
at Java.Lang.Thread.RunnableImplementor.Run()
at Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this)
at (wrapper dynamic-method) System.Object:60a89bb9-8f70-420d-b291-b2ed8c9e4724 (intptr,intptr)
System.InvalidOperationExceptionColumn with name 'WOType' is not defined on the local table 'WorkOrder'.
at Microsoft.WindowsAzure.MobileServices.SQLiteStore.MobileServiceSQLiteStore.UpsertAsyncInternal(string tableName, IEnumerable<_> items, bool ignoreMissingColumns)
at Microsoft.WindowsAzure.MobileServices.SQLiteStore.MobileServiceSQLiteStore.UpsertAsync(string tableName, IEnumerable<_> items, bool ignoreMissingColumns)
at Microsoft.WindowsAzure.MobileServices.Sync.LocalStoreProxy.UpsertAsync(string tableName, IEnumerable<_> items, bool ignoreMissingColumns)
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceLocalStoreExtensions.UpsertAsync(IMobileServiceLocalStore store, string tableName, JObject item, bool fromServer)
at Microsoft.WindowsAzure.MobileServices.Sync.InsertOperation.d__0.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceSyncContext+<>c__DisplayClass67+<b__66>d__69.MoveNext () [0x00171] in :0

This does not seem to relate to Entity Framework Core !?


Unable to specify '>' wildcard semantics in a channel object

Describe the bug
The format of the channel is based on URI templates for which the '>' character is a forbidden character. The '>' character is used by some brokers as a wildcard character to match one or more topic levels. There is no suitable variable replacement in the channel that matches the semantics of the > character. For instance, a subscription of mychannel/* character could be represented by the channel mychannel/{all} where {all} specifies all potential values. The semantics of the > character would require a potentially infinite number of channels. For instance, a subscription of mychannel/> would match channels mychannel/{all} and mychannel/{all}/{all} and so on.
To Reproduce
Use a > character in the channel
Expected behavior
Either provide the ability to use the > character in the channel (this would be very useful for documentation and code-generation) or provide an alternative mechanism to represent the semantics of matching one or more levels in a channel.
Sample document
Screenshots
Additional context
Based on this slack conversation: https://asyncapi.slack.com/archives/C0230UAM6R3/p1626958304195900

I had the same use case as you, and I am just gonna leave the approach I adopted (by using parameters):
asyncapi: 2.1.0
info:
  title: test
  version: 0.0.1
channels:
  mytopic/{all}:
    parameters:
      all:
        description: All wildcard
        schema:
          const: ">"
    subscribe:
      message:
        $ref: '#/components/messages/MessageIn'
components:
  messages:
    MessageIn:
      payload:
        type: string

My personal opinion at the moment is that trying to support this outside of parameters is too complex and unnecessary. However, I completely agree we need better documentation and examples in the spec to show the user how to handle these scenarios.
My primary reasons for saying it is too complex:

You would need to define something beyond https://datatracker.ietf.org/doc/html/rfc6570.
This behavior is NOT a standard.

In slack @gregmeldrum you wrote the following example:

mytopic/{all} works for the * case, but the semantics of > are a little more problematic. The > equivalent would be mytopic/{all} and mytopic/{all}/{all} and mytopic/{all}/{all}/{all}  and so on. Unless there is a way to say {all} spans all remaining levels of the path.

To me when using AsyncAPI and you define mytopic/{all} and the protocol you are using is NATS (only protocol I know for sure supports it 😄) it is implied that when > is used, that it refers to this level and spans all remaining levels of the path.
The reason it is implied is that we must remember, that it is entirely possible for protocols to define different behavior for what > and * means, there is no standard for it. So it all comes down to the context it is used.
Why do I think that using parameters is enough?
Because of the way channels and parameters work in conjunction. The use-case for > and * for that matter (using NATS again), is because you want to use that special meaning "value" instead of a concrete value, and only specific systems support such special "values".
For example, you have two channels mytopic/users/test and mytopic/operations/test and you want one application to consume from both these channels.
There are multiple ways to do this, or at least in NATS:

You want to represent this by either mytopic/{any}/test, where any is the constant * value.
Make use of the all value mytopic/{all}, where all is the constant > value.
Describe it as mytopic/{area}/test where area can be either or users or operations. Much more fine-grained control.

The only downside I foresee is that tooling has no way to know this behavior. For example, Cupid cannot automatically correlate mytopic/{all} with mytopic/users/test and mytopic/operations/test, at least not without intervention.

@gregmeldrum do you want to champion this? 🙂 Or can we consider this issue as needs champion? 🤔

@gregmeldrum @jonaslagoni is it something that would be part of address from the proposal of new 3.0 spec?


v2.1.1

Codecov Report

Merging #275 (1c80876) into master (4929db1) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #275   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           40        40
  Lines          475       475
  Branches        68        68
=========================================
  Hits           475       475

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 4929db1...1c80876. Read the comment docs.


add support for current LTS version (8.9.0)

see https://medium.com/the-node-js-collection/news-node-js-8-moves-into-long-term-support-and-node-js-9-becomes-the-new-current-release-line-74cf754a10a0 for details

I have forked and updated all versions if you want to give that a go:
https://github.com/aaronovz1/meta-nodejs/tree/pyro

@imyller Can you pull this, please.

Where is this issue at these days?  And, will it be moved along to 8.10.0 now?  I'm going to possibly embark on a move from v4.4.5 to v8.x.x shortly.  So, this is an important one for me.  BTW, is there someplace I can find things like memory and disk footprints of node versions in general?  Just looking to see how big node proper has gotten over the years ...

I updated my fork to have 8.10.0 and 9.8. I'll probably update it to 8.11 and 9.10 in the coming weeks. As @jmfNodejsUser pointed out, my fork may not work for ARM builds (I don't develop for ARM) but I did incorporate the no-registry patches and can fix up further issues if someone wants to test on ARM.

We're on a Cortex-A7.  Is there a node.js compliance test that can be run to help "verify" a build?

I'm not sure. I believe initially my fork will probably just throw compile-time errors if I've missed something for cross compiling for ARM.

Hi, Is the project orphaned ? maybe it could be transferred to @abandonware org:
https://rzr.github.io/rzr-presentations/docs/abandonware
Then existing forks can be merged into a community maintained upstream project, until someone is aiming to adopt it for proper maintenance ?


#245 Notification type supports telegram

Thanks! Great! 👍👍👍 How to get the Telegram token, id. Is there a link to the telegram document? Please fix the maven test pmd error, thanks! https://github.com/dromara/hertzbeat/actions/runs/3927497585/jobs/6714165944#step:4:3512
Error:  Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.8:check (validate) on project manager: You have 3 PMD violations. For more details see: /home/runner/work/hertzbeat/hertzbeat/manager/target/pmd.xml -> [Help 1]

maybe https://core.telegram.org/bots/tutorial

👍👍

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿

👍👍


[Script]: Recaptcha Verification

Aim
Recaptcha verification using python
Details
Performs verificaition of captcha.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

@avinashkranjan please assign me the issue.

@alwenpy Wanting to work on this issue, please assign it to me


Create github actions for creation of mpackage file

on:
push:
tags: "v*"
// zip up, rename to mpackage
// create release
// add zip to release assets

solved as per v0.0.4


Code syntax highlighting not working in version 1.7.0

Syntax highlighting of code blocks does not seem to be working in version 1.7.0.  For example:
== This is a test

Here is some text.

[source,cpp]
----
//
// Comments
//
void MyFunc ( int Param1, char* Param2 )
{
  // Do stuff...
}
----

Syntax highlighting works in version 1.6.9.
Environment: Windows 10, 64-bit.

Hey, try https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.1

I can confirm that this has been resolved.  Thanks!


openOnFocus

I saw the "openOnFocus" and expected the full suggestion list to be used, unfiltered, when openOnFocus is set to true. That's not the case.
In the Dropdown#open() function:
  open: function open() {
    if (!this.isOpen) {
      this.isOpen = true;

      if (!this.isEmpty) {
        this._show();
      }

      this.trigger('opened');
    }
  },

When the property this.isEmpty is true (empty query string) the _show() doesn't get called and the popup is in fact not opened but still closed. However, 'opened' is fired anyway and the property this.isOpen is set to true. Seems like this is not what you want because now this.isOpen is backwards and listeners have been notified that the popup is in fact open. Doh!
Be that as it may, we have a scenario where we show the customer some data, for example a list of recent searches, when the input is empty but focused. In other words, we show a default dataset to render when the query string is empty. How would you go about that scenario without hacking the library :)

Hey @markkra,
I think we're on the same page regarding what it should do, but you got confused because you didn't configure the minLength option:
  _onFocused: function onFocused() {
    this.isActivated = true;

    if (this.openOnFocus) {
      var query = this.input.getQuery();
      if (query.length >= this.minLength) {
        this.dropdown.update(query);
      } else {
        this.dropdown.empty();
      }

      this.dropdown.open();
    }
  },

Basically, if you don't set it to 0 it will not trigger any search setting that underlying isEmpty attribute.
Could you try to put minLength: 0? Maybe that's something we should automatically do if openOnFocus is set.

Yup, was just trying that this morning and got the full list with minLength = 0.
Still sort of a gotcha in the open() function. Wouldn't this be better?
open: function open() {
if (!this.isOpen) {
if (!this.isEmpty) {
// only toggle the isOpen flag and fire "opened" when actually showing the popup.
this.isOpen = true;
this._show();
this.trigger('opened');
}
}
}

Cool :)
And yes, I think your snippet would be better; that code has been ported by the original typeahead.js library so I don't have the whole history of it; but I think it would make it much more clearer.
Do you mind sending a pull-request? We may have some tests to update as well.

Doh! Yup, 9 tests not happy. I'll take a look at those as well.

I'm not having much luck debugging the unit tests on a Mac. I'm a long time Windows Visual Studio user (at MSFT for 18yrs before moving on) and just started on the Mac a few months ago. Missing my toolchain...
Any hints on stepping through the tests on the Mac? On the PC I used a test runner called Chutzpah that was a big help.

sorry for the necromancy, but minLength: 0 does not work for me and I just can't get the thing to openOnFocus

This seems to be working for me @ayghor: https://codesandbox.io/s/n5061zp06m

Autocomplete v0 has been in low maintenance mode for a few years and we just released Autocomplete v1 so I'm closing this.
Resources

Getting Started
openOnFocus


Update setup.md

You should use --new-moniker string if you want to modify it.

Closes: #XXX
Description

For contributor use:

[ ] Targeted PR against correct branch (see CONTRIBUTING.md)
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration tests
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added  relevant godoc comments.
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer

For admin use:

[ ] Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
[ ] Reviewers assigned
[ ] Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

haqqd tx staking edit-validator --help
edit an existing validator account
Usage:
haqqd tx staking edit-validator [flags]
Flags:
-a, --account-number uint          The account number of the signing account (offline mode only)
--commission-rate string       The new commission rate percentage
--details string               The validator's (optional) details (default "[do-not-modify]")
--dry-run                      ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it
--fee-account string           Fee account pays fees for the transaction instead of deducting from the signer
--gas string                   gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically (default 200000)
--generate-only                Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase is not accessible)
-h, --help                         help for edit-validator
--identity string              The (optional) identity signature (ex. UPort or Keybase) (default "[do-not-modify]")
--keyring-dir string           The client Keyring directory; if omitted, the default 'home' directory will be used
--ledger                       Use a connected Ledger device
--min-self-delegation string   The minimum self delegation required on the validator
--new-moniker string           The validator's name (default "[do-not-modify]")
--note string                  Note to add a description to the transaction (previously --memo)
--offline                      Offline mode (does not allow any online functionality
-o, --output string                Output format (text|json) (default "json")
--security-contact string      The validator's (optional) security contact email (default "[do-not-modify]")
-s, --sequence uint                The sequence number of the signing account (offline mode only)
--sign-mode string             Choose sign mode (direct|amino-json), this is an advanced feature
--timeout-height uint          Set a block timeout height to prevent the tx from being committed past a certain height
--website string               The validator's (optional) website (default "[do-not-modify]")
-y, --yes                          Skip tx broadcasting prompt confirmation


Specify that Vary: Origin is not supported and the single origin scenario doesn't work if the first request to the CDN is sent without the Origin header

When CORS is configured with the Wildcard, Access-Control-Allow-Origin is sent back for every requests and the CDN stores that for future requets.
However, when CORS is configured with a single origin, if the first request is sent without the Origin header, Access-Control-Allow-Origin is not sent back and the CDN stores the item without Access-Control-Allow-Origin header.
As the Vary: Origin is not supported by Azure CDN (see https://feedback.azure.com/forums/169397-cdn/suggestions/6275266-cdn-support-vary-origin-header), the next responses are all sent back without the Access-Control-Allow-Origin header even if the requests contain an Origin header.
If this is correct, it should be good to update the documentation to reflect that, for example by:

Creating two separate paragraphs for the Wildcard scenario and the Single Origin scenario to specify in the Single Origin scenario that things are a little more complicated (as we can't control if the first request will come with a Origin header)
Specify that the Vary: Origin header is not supported by Azure CDN

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

ID: 728c8dff-6ea7-54f7-cdbe-a212b74e09cf
Version Independent ID: 52149ed5-562d-751f-b2eb-c4ee52d107a9
Content: Using Azure CDN with CORS
Content Source: articles/cdn/cdn-cors.md
Service: cdn
GitHub Login: @zhangmanling
Microsoft Alias: mazha

@Benjiiim Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

Assigning to PM for review
#reassign:@sohamnchatterjee

Assigning to PM for review
#reassign:@amitsriva

#reassign: jessie-jyy

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We will create an internal tracking work item to address this issue. For now, we are closing this issue. If you have any additional information you would like to provide, please respond to this issue with any additional details.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


Have user click direct message will show error message.

Search before asking

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

Operating System

[ ] macOS
[X] Windows
[ ] Linux

Operating System Version
Windows 11
It happens on the web browser too?
No, it just happens on the Desktop app
Rocket.Chat Desktop App Version
3.9.6
Rocket.Chat Server Version
6.3.1
Describe the bug
When user click some direct message.It's will show
Oops! Something went wrong. Please reload the page or contact an administrator.
Not every message.
How to Reproduce

Open rocket.chat app.
Click direct message.
It's show Oops! Something went wrong. Please reload the page or contact an administrator.

Describe your Expected behavior
No response
Anything else
No response
Are you willing to submit a code contribution?

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

Hey @akong77, thanks for sharing your experience and pointing out the bug.
I have tried to reproduce this without any success. It would be really helpful for us if you could provide us any visual aid such as any screenshot, video (preferred), short GIF will work too.
Thanks,
Prisha Gupta

Hey @akong77, after furhter investigation it's found that this error is raised by the Rocket.Chat web view itself. Generally, this error is caused when you have an unstable internet connection. Kindly make sure that.
If it still doesn't solves your issue, try to update your Rocket.Chat server to the newest version (as of now 6.6.0) as there have been changes to handle network issues as well.
Thanks


Updated to enforce quoted ZIP codes for Pollen

Description:
Alters the pollen schema to require quotes around the ZIP code.
Breaking change: zip_code for the Pollen integration is now required to have quotes around it to prevent accidental errors: zip_code: "00544"
Related issue (if applicable): N/A
Pull request in home-assistant.github.io with documentation (if applicable): N/A
Example entry for configuration.yaml (if applicable):
sensor:
- platform: pollen
  zip_code: "00544"
  monitored_conditions:
    - allergy_average_forecasted
    - allergy_average_historical
    - allergy_index_today
    - allergy_index_tomorrow
    - allergy_index_yesterday
    - disease_average_forecasted

Checklist:

[x] The code change is tested and works locally.

If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass

Thanks for the verbiage, @balloob!

I had a question on this.
Currently, I have included the zip code into my secret file, and it is in that file with single quotes (ticks).
secrets.yaml:
zip_code: '#####'
then my configuration.yaml has:
- platform: pollen
  zip_code: !secret zip_code
  monitored_conditions:
    - allergy_average_forecasted
    - allergy_average_historical
    - allergy_index_today
    - allergy_index_tomorrow
    - allergy_index_yesterday
    - disease_average_forecasted

When I upgrade, is this ok, or does it have to be in the main pollen record with the quotes around it?
Are single quotes good or does it have to be double quotes?
I haven't upgraded to 0.65, just wanted to check on this before I do.
Thanks!

Single quotes in secrets works fine.

Thanks for confirming 👍


Expected input range [0,1] or [-1,1] for TensorFlow Hub's image modules

I have a question regarding image classification and using tranfer learning with MobileNetV2 and others (e.g. Inception).
Here in the official tutorial by Google TensorFlow it says:
"All of TensorFlow Hub's image modules expect float inputs in the [0, 1] range."
In the MobileNet documentation it says:
"The input images are expected to have color values in the range [0,1], following the common image input conventions."
Here in the official tutorial by Google TensorFlow it says:
"Resize the images to a fixed input size, and rescale the input channels to a range of [-1,1]"
and indeed it is scaled to a range of [-1,1] and not [0,1]:
image = (image/127.5) - 1
Later on MobileNetv2 is used:
Create the base model from the pre-trained model MobileNet V2
base_model = tf.keras.applications.MobileNetV2(input_shape=IMG_SHAPE,
                                               include_top=False,
                                               weights='imagenet')

but I thought it needs [0,1] and not [-1,1]?
Now this is a contradiction in my eyes or I do not understand it.
What is right and what is wrong here? When do I have to rescale to [0,1] and when use [-1,1]? I thought as it said in the other sources all pretrained models from the tf hub use a common standard, [0,1], however, now I see in this official Google tutorial that rescaling is done to [-1,1]. I don't get this.

This seems to be conflacting information.
When using tf.keras.applications.MobileNetV2(weights="imagenet") then documentation of that keras application applies and the weights are expected to be [-1,1].
When using hub.KerasLayer("https://tfhub.dev/google/tf2-preview/mobilenet_v2/feature_vector/4") then the documentation of that model applies and it expects inputs in the range [0, 1].


Unable to access IMU data on terminal using MAVSDK

I am not able to access IMU data of pixhawk over USB. I am able to access the data using MAVROS but not using the telemetry class provided in mavsdk.

Can you elaborate a bit? What did you try exactly? How did you setup mavsdk, and what functions did you call?

I tried one of the sample codes (offboard_control) and in that i tried to display angular velocity data but i was getting zero. I also tried the IMU data but it again showed zero.
Telemetry::AngularVelocityBody v;
Telemetry::IMUReadingNED acc;
When i use mavros  and run the px4.launch file, then i can subscribe to the /imu/data topic and see the orientation and stuff but not without it.

So you managed to create a connection to the drone? Does something else work, like arming and taking off, for instance?

I connected the pixhawk to my PC over USB. I was not able to arm it. But I only wanted to access the IMU data.

But I only wanted to access the IMU data.

Ok, but that's interesting information. If nothing works, then it is maybe not an issue specific to the IMU data :sweat_smile:.
Can you show me the output of MAVSDK when you connect it to the pixhawk? Also, does MAVSDK work with SITL for you?

This is the output after I run the px4.launch command in mavros. I have not tried MAVSDK with SITL yet.

This is the output of mavros stuff (px4.launch). I have not tried MAVSDK with the SITL yet.

This is the output of mavros(px4.launch). I have not tried mavsdk on the sitl yet.

I trust you when you say that it works with MAVROS. I want to see the output of MAVSDK in order to help you understand what is going wrong :+1:

@deepak-1530 by the way, you can copy console output using Ctrl+Shift+C. It makes it much more readable (and searchable).

This is the MAVSDK example code output. I just displayed the acceleration data

@deepak-1530:
What code are you using to print the accel values?

Telemetry::IMUReadingNED IMU;
std::cout<health()<<std::endl;
int i = 1;
while(i>0)
{
std::cout<<" acceleration is (down) "<<IMU.acceleration.down_m_s2<<std::endl;
sleep_for(milliseconds(100));
}
This is the piece of code that I added in the takeoff_and_land.cpp example code to see the IMU readings.

Hmm so you create an IMU object, and then print its value. That object was initialized with zeros as default values, so that's what you're printing.

@deepak-1530 you are printing an uninitialised struct.
You should do something like this:
while (true)
{
    Telemetry::IMUReadingNED imu = telemetry->imu_reading_ned();
    std::cout<<" acceleration is (down) "<<imu.acceleration.down_m_s2<<std::endl;
    sleep_for(milliseconds(100));
}

For more examples, see:
https://github.com/mavlink/MAVSDK/blob/develop/src/integration_tests/telemetry_sync.cpp


fix: 修复Description组件渲染function xxxx() { [native code] }的问题

General

✏ Mark the necessary items without changing the structure of the PR template.

[x] Pull request template structure not broken

Type

ℹ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

[x] 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)
[ ] This change requires a documentation update

Checklist

ℹ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉 Put an x in the boxes that apply.

[x] My code follows the style guidelines of this project
[x] Is the code format correct
[x] Is the git submission information standard?
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

bug复现步骤：

field为toString
data中不包含toString属性
Description会自动渲染成function toString() {[native code]}

field为Object.prototype上任意方法名且接口返回的数据不包含此属性时可复现。

渲染问题：


Create pipeline for AdoptOpenJDK builds of openjdk10 + Eclipse OpenJ9

Code was made availablr in https://github.com/ibmruntimes/openj9-openjdk-jdk10 yesterday so we should have a pipeline to build it.

autoconf on RHEL69 is too old according to my first attempt. Will see if the non-x64 platforms with RHEL74 are happier later. Forcing x64 to Ubuntu machines for now
Warning: The generated configure file contains changes not present in the custom generated file.
Running autogen.sh to correct the situation
Using autoconf at /usr/bin/autoconf [autoconf (GNU Autoconf) 2.63]
Generating generated-configure.sh
stdin:33: error: Autoconf version 2.69 or higher is required
stdin:33: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
Generating custom generated-configure.sh
stdin:33: error: Autoconf version 2.69 or higher is required
stdin:33: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
Running custom generated-configure.sh
Configured the JDK

x64 now working: https://ci.adoptopenjdk.net/job/openjdk10_openj9_build_x86-64_linux/
s390x fails on Ubuntu 16.04 as there isn't a suitable java 9 boot JDK installed https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/324 and the RHEL74 box is offline https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/323 - tactical fix implemented to download adoptopenjdk 9 release to the workspace in the jenkins job and use that
ppc64le not working yet

Steps at https://github.com/AdoptOpenJDK/TSC/wiki/Adding-a-new-build-variant need to be followed

Steps all followed - pipeline now runnign successfully (all jenkins jobs have been modified to cope with the new release. Two PRs are in and awaiting approval:
https://github.com/AdoptOpenJDK/openjdk-website-backend/pull/9
https://github.com/AdoptOpenJDK/openjdk-website/pull/232
Initial support for JCK10 has also been added into the appropriate places and I'm trialling it on Linux/x86-64
The build pipeline is therefore in place, which should be enough to close this off when the pull requests have been merged to allow them to be published - JCK and other test execution can be covered in separate issues.

AIX currently has a failure on one of the two build machines due to the lack of autoconf - PR is in to fix ther playbook - see https://github.com/AdoptOpenJDK/openjdk-build/issues/280

@sxa555
Once PR https://github.com/ibmruntimes/openj9-openjdk-jdk10/pull/9
is merged, Adopt will need to specify the following "configure" parameters for "RELEASE" type builds:
JDK10:
--with-version-string="10+<build>" --with-version-date="<date>"

eg:
--with-version-string="10+46" --with-version-date="2018-03-29"


interpolation_search code in c , c++ , java , python

🛠 Issue (Number)
#1366 close
✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers
Given a sorted array of n uniformly distributed values arr[], write a function to search for a particular element x in the array.
Linear Search finds the element in O(n) time, Jump Search takes O(√n) time and Binary Search takes O(log n) time.
The Interpolation Search is an improvement over Binary Search for instances, where the values in a sorted array are uniformly distributed. Interpolation constructs new data points within the range of a discrete set of known data points. Binary Search always goes to the middle element to check. On the other hand, interpolation search may go to different locations according to the value of the key being searched. For example, if the value of the key is closer to the last element, interpolation search is likely to start search toward the end side

Step1: In a loop, calculate the value of “pos” using the probe position formula.
Step2: If it is a match, return the index of the item, and exit.
Step3: If the item is less than arr[pos], calculate the probe position of the left sub-array. Otherwise, calculate the same in the right sub-array.
Step4: Repeat until a match is found or the sub-array reduces to zero.

screenshots -
python

java

c

c++

Add screenshots of input and output as well

done

@Kumar-laxmi please merge


Suggestion

Can we watch enemies in radar-hack all the time not only when they're near ..like simulating we're spectators

not rly


Fixes download URL for RedHat systems

There is no "redhat" directory in https://rvm.io/binaries, so this sets the OS to CentOS if you're using a RedHat system.  Could be a more intelligent way to do it but this works just fine.
One flaw is that if a version cannot be found to download it will say say current system is CentOS and not RedHat, i.e. it will show Cannot find a built version of  '2.1.0' compiled for your current system: CentOS x86_64 (6) and not Cannot find a built version of  '2.1.0' compiled for your current system: RedHat x86_64 (6) on RedHat systems.

If you do a SYSTEM_NAME=CentOS rbenv download --list does it work?
I would prefer not to modify the function imported from the RVM code.


Editor is not working properly

This is because you are putting a very long string without line break. You need to modify the script for the canvas for giving automatic line  breaks

okay


add debugging mode to run

Added the ability to run a web application in debugging mode. This mode includes:

Eruda.
Disabling Splash Screen when downloading the app.

For launch application in debug mode use ?startapp=debug in end of the application link.

Issue: gh-6

Accepted. Merge with the main branch.


resolveId hook is not reading all imported files

Describe the bug
I want to be able to replace imported files by using a configuration file. I can read the configuration file and I am trying to change the id, that is passed to the load hook through filtering in the resolveId hook.
The resolveId hook seems to not be called for my own files like App.tsx.
I expect this hook to "see" this file. Through Discord (Rollup) I tried to resolve this issue, unsucessfully. It seemed like it might be a ViteJS issue.
Reproduction
Repository: https://github.com/Myrmod/vitejs-theming
run
npm install

npm run build

I expect to see a file called App.tsx, but I don't see one.

System Info
Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:
  System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
    Memory: 6.67 GB / 12.37 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 16.2.0 - ~/.nvm/versions/node/v16.2.0/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v16.2.0/bin/yarn
    npm: 7.13.0 - ~/.nvm/versions/node/v16.2.0/bin/npm
  npmPackages:
    vite: ^2.3.5 => 2.3.6

Used package manager: yarn & npm

I found the issue. ViteJS is somehow removing/filtering/resolving these ids before my plugin is called. So I had to enforce the execution:
export default function replaceFiles(replacements) {
   if (!replacements?.length) {
      return null;
   }

   return {
      name: 'rollup-plugin-replace-files',
      enforce: 'pre',
      async resolveId(source, importer) {
         const resolved = await this.resolve(source, importer, { skipSelf: true })

         const foundReplace = replacements.find((replacement) => replacement.find === resolved.id);

         if (foundReplace) {
            console.info(`replace "${foundReplace.find}" with "${foundReplace.replacement}"`);

            try {
               // return new file content
               return {
                  id: foundReplace.replacement,
               };
            } catch (err) {
               console.error(err);

               return null;
            }
         }

         return null;
      },
   }
}

I didn't catch this in the documentation. Maybe this should be mentioned?

I encountered the same issue, hook resolveId would not be called on each incoming module request.

I found the issue. ViteJS is somehow removing/filtering/resolving these ids before my plugin is called. So I had to enforce the execution:
export default function replaceFiles(replacements) {
   if (!replacements?.length) {
      return null;
   }

   return {
      name: 'rollup-plugin-replace-files',
      enforce: 'pre',
      async resolveId(source, importer) {
         const resolved = await this.resolve(source, importer, { skipSelf: true })

         const foundReplace = replacements.find((replacement) => replacement.find === resolved.id);

         if (foundReplace) {
            console.info(`replace "${foundReplace.find}" with "${foundReplace.replacement}"`);

            try {
               // return new file content
               return {
                  id: foundReplace.replacement,
               };
            } catch (err) {
               console.error(err);

               return null;
            }
         }

         return null;
      },
   }
}

I didn't catch this in the documentation. Maybe this should be mentioned?

But resolve is very slow ?

I didn't catch this in the documentation. Maybe this should be mentioned?

I'm not sure how we can document this, the react plugin handles tsx extensions, so if you have another plugin that wants to intercept that, it sounds fair to me to look into the react plugin and see how you can place your plugin before it. But usually plugins are run in normal mode, so placing your plugin before it should work in the plugins list.

traverse plugins by for of cause the bug presence, use forEach instead of for of that would solve this problem.

resolveId is a "first" hook to follow Rollup's spec, so this is expected.


Sometimes nicks get changed to emoji on mention

if a message is received with a mention, like PRIVMSG #chan :car: blablabla, then the car: will get changed into :car:

Fixed by 8498c01b18793788061a145000ec7438c7ccd6c4


syncthing: 1.10.0 -> 1.11.1

Motivation for this change

https://github.com/syncthing/syncthing/releases/tag/v1.11.0
https://github.com/syncthing/syncthing/releases/tag/v1.11.1

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 102698 1

6 packages built:

qsyncthingtray
syncthing
syncthing-cli
syncthing-discovery
syncthing-gtk
syncthing-relay

Result of nixpkgs-review pr 102698 run on x86_64-darwin 1

1 package marked as broken and skipped:

syncthing-gtk

1 package failed to build:

qsyncthingtray

4 packages built:

syncthing
syncthing-cli
syncthing-discovery
syncthing-relay


In Firefox file chooser dialog does not appear

If I select “save object as” in the context menu, the file chooser dialog window does not appear, but if I switch to another workspace and then back, the window appears.
https://github.com/natemaia/dk/assets/52626363/ff7dff93-82c3-4bda-9a90-61b9443c810f

This is a recently introduced issue, see my response in #2. I'm on it

I noticed that this problem also exists in Telegram: if you click on a photo or video, the Telegram viewer window does not appear.

Sorry about, I'll get it fixed.

Latest commit should have it fixed

yes, everything is fixed


Code completion for optional properties in sub classes

Is there a way to have code completion for optional properties in sub classes? This would be really helpful when using ReactJS.

Duplicate of https://github.com/Microsoft/TypeScript/issues/7158


How many specific MyDates can I enter

Hi
How many specific YYYY-MM-DD dates can be entered into MyDates field in miq-assistance.js
Since flights from the States only arrive on certain days then there's no point in searching for other days but I think I read somewhere there there is a limit to how many days you can enter but I can't find the reference again.
If there are two good days per week and you want to check the next 3 months that's around 24 dates....

Operating System:
Version:

Operating System: Windows 10
Version: MIQ assistant 10.3

I don't see anything in the .js that limits the number of dates. I suppose a large number of dates may cause the program to slow down, but should be a minimal effect compared to other factors such as website latency.

Thanks Mark
I have loaded 24 dates and (once I got the syntax correct without any missing commas) it certainly didn’t crash.  I just hope that it will only alert me when those dates come up.  I also set the findAnyDate to false which I assume is needed for specific dates.

I have about 20 specific dates (and findAnyDate=false) and I've successfully gotten a few alerts (but was too slow to lock them in).  The only other thing I learned was to be sure to include the leading zeros in the months and days, e.g. 2021-08-01  Good luck!

Thanks Martin.  Did it select the date for you or did you have to click on it then the captcha and next?

Thanks Martin. Did it select the date for you or did you have to click on it then the captcha and next?

It was selected.  I then did captcha, clicked next, only to discover that I was too slow.  Those dates seem to only last for 2-3 seconds at most.  One of these days I'll be lucky.

How about a combination of days and months? For eg: '2021-10-14', '2021-11'
Would that work or it has be in YYYY-MM-DD format only? Thanks

The sample miq-assistance.js has both formats in it so I assume that it's possible.
It's important to include the leading zero on single digits.
'2021-09', '2021-10-04'  etc.


[FEATURE] Ability to upload text,csv or pdf by endusers

Currently with simple text file uploads (applicable to pdf and csv files as well) The text needs to be converted to embeddings, stored to a vector DB then the chatbot can be used/published. If we can make this first step executed automatically if a user uploaded a text file within the embed-chat itself it would really be a huge improvement (of course file size limits should apply).

same as - https://github.com/FlowiseAI/Flowise/issues/2444

Same as https://github.com/FlowiseAI/Flowise/issues/2084 as well :-)
@HenryHengZJ - would it work by calling the Flowise API ? (i.e instead of passing base64 encoded image will pass PDF url or whatever Claude needs to support this) - any work around you could think of?
btw, with the multi modality ramping up quickly this should be an higher priority item.

@HenryHengZJ - I took a look at Anthropic Claude API doc and it looks like the Create message API accepts either text or based64 encoded image which means that in order to support PDF/None image format they had to do some pre-processing extraction activity of text/images before calling the API so is this the way to plan to support this or maybe you plan on using some kind of embedding technique etc.. - I have a use case of PDF files that have only images in it (scanned documents) so I need to figure out the base way to support this - I can extract images from the PDF (one image for each PDF page) and then call the  API with the extracted images but I am not sure this is the most effective way dealing with this request.

Closing as https://github.com/FlowiseAI/Flowise/pull/3059 merged!

Wow - finally !! this is really amazing


Certification fixes

Most of the changes to fix issues found in certification are in. Left to do:

Review for consistency (were changes applied consistently to samples across all platforms?)
Update screenshots - several samples had UI or data changes
Review comments - are comments consistent with actual sample in updated
Re-certify samples on all platforms
Make sure nothing unwanted slipped in (e.g. changes to project files, leftover changes from testing, etc.)

@dkemlage Do you have some time to take a look at this? I've made several changes to resolve feedback from certification. It's not quite done (you'll notice missing screenshots) but given the compressed timeline I'd like to get started early if you have the availability. Thanks :)


Fix #946: Comparator must allow for objects to be equal

See #946: If cache1 and cache2 are archived then coords will be null. This means that distance between them is "equal". Current code doesn't allow for equal which is why it violates the contract. The sorting algorithm gets confused because it is getting arbitrary answers.

I'll check if I can create a (failing) unit test case before merging. I believe it might be easier to create unit tests (for this and the other comparators) if we only use the cache interface in the comparators, while we currently use the concrete class. And that refactoring from class to interface might be easier for a committer than for a new contributor.


Entity drop-down list not working in HA android app.

I don't really have any way to document this, but the entity drop-down just won't do anything in the app. If I log in via my browser it works fine. Both app and explorer card are up to date. Thanks

Same issue here.

Could you elaborate a little more what you mean by 'won't do anything' ? Maybe just briefly list the actions you performed in order, what you expected to happen and what did actually happen (or didn't).
Please also post the YAML you used to configure the card (if any).

It's a problem with Android Webview, the same issue also happens in other apps that use it (like Fully Kiosk). This is a known issue (Chromium bug #949555), Webview's support of datalists broke around 3 years ago and still hasn't been fixed as of Android 10.
To fix this, I'll have to replace the entire list and search feature in the entity button by something custom, because the official way of doing this works pretty much everywhere, except for Android... I'll see what I can do. As a workaround, typing the exact sensor name and adding it works. But you don't get the search and the list.

Should be fixed in V1.0.17.
I created a custom dropdown for the HA companion app. It's also used on other mobile browsers, as it gives a better user experience on small screens than the default selector dropdown list did.
Please test and let me know if you still have issues with the selector list on the app.

Wow this is a little late. It does work very well now. Thanks!

Great, thanks for confirming.

Strange, still no drop down list on Android app with 1.0.50


Allow passing additional parameters to the docker container

In order to support changing network layouts, I need to be able to pass the "add_host" parameter to a docker depending on certain job types. I have checked in a possible solution to my fork. Commit

Make a pull request with this commit and we'll review it.

The Docker parameters should not be in the job type interface since that should be Docker and environment agnostic and just focus on the algorithm itself. We should do a Docker parameters JSON field that gets populated in job_type and passed to job. The field in job can be used in the execution tasks to add parameters when creating a Docker Mesos task.
Adam, if you can wait until next week, I can add the Docker param fields next week when dealing with other model changes to job_type and job for the supersede functionality. It'll be easier without database migration conflicts.

The Docker parameter functionality is going to be removed due to security concerns. Every current known use case for using Docker parameters has been implemented into Scale.


fix broken links

@nwneisen if you think there is better way to fix it in Hugo or elsewhere, please close this PR and fix whatever is the correct way 😊


Update MatchCommandTest

Codecov Report
Base: 51.45% // Head: 52.44% // Increases project coverage by +0.99% :tada:

Coverage data is based on head (39bf0f4) compared to base (f6d670d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #280      +/-   ##
============================================
+ Coverage     51.45%   52.44%   +0.99%
- Complexity      994     1011      +17
============================================
  Files           191      191
  Lines          4332     4332
  Branches        506      506
============================================
+ Hits           2229     2272      +43
+ Misses         1901     1870      -31
+ Partials        202      190      -12

Impacted Files
Coverage Δ

...ser/addcommandparser/AddSupplierCommandParser.java
0.00% <0.00%> (-81.25%)
:arrow_down:

...main/java/seedu/address/model/person/Supplier.java
39.28% <0.00%> (-14.29%)
:arrow_down:

.../seedu/address/logic/parser/AddressBookParser.java
72.22% <0.00%> (-2.78%)
:arrow_down:

...in/java/seedu/address/logic/parser/ParserUtil.java
19.19% <0.00%> (-1.52%)
:arrow_down:

src/main/java/seedu/address/model/pet/Pet.java
77.77% <0.00%> (+3.33%)
:arrow_up:

...ava/seedu/address/storage/JsonAdaptedSupplier.java
49.18% <0.00%> (+4.91%)
:arrow_up:

...ava/seedu/address/logic/commands/MatchCommand.java
100.00% <0.00%> (+11.11%)
:arrow_up:

...n/java/seedu/address/storage/JsonAdaptedBuyer.java
91.80% <0.00%> (+47.54%)
:arrow_up:

...ain/java/seedu/address/storage/JsonAdaptedTag.java
90.00% <0.00%> (+50.00%)
:arrow_up:

...c/parser/addcommandparser/AddPetCommandParser.java
50.00% <0.00%> (+50.00%)
:arrow_up:

... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Jenkins fails to build Kore

I guess some changes are needed to get it building again
http://jenkins.kodi.tv/view/Android/job/Kore/1285/console

The actual error is:
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 26, Android SDK Build-Tools 26.0.2].
  Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
  Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

... no comments...
 Normally it only should happen if something changed related to the SDK? Well long story short - I am out of town over Christmas and don't have my keys with me for the build slave.

Hi @Memphiz,
I think you've fixed this already, right? Thanks

Yep.
Already gave him a cookie


Fix memory leaks

Description
I believe the application is currently implemented in a way where smaller memory leaks occur.
Proposed change
I want to analyse the app with an appropriate debugging tool that can show the consumed memory.

I wonder what makes you think there is memory leaks in the current version of the program.
I tested the program on windows 10 with the task manager open and repeating different calculations with different parameters always lead to the same memory usage at the end of a calculation with a set of parameters.
For example, running the program with isobutane.pdb as input structure and tree depth 4:
grid step 0.1 => 18.4 Mb of RAM
grid step 0.2 => 17.9 Mb of RAM
grid step 0.02 => 38.9 Mb of RAM
back to grid step 0.1 =>18.8 Mb of RAM
back to grid step 0.02 => 38.5 Mb of RAM
Similarly when I use an input file with crystal cell analysis, toggling on/off the unit cell analysis and changing the parameters give consistent RAM usage for each set of parameters.
Do you have a different experience on your computer? Is it caused by a different OS or a different build of wxwidgets and the program (dynamic/static library)?

Some of the higher level components and the atoms are saved as pointers. This memory is never formally cleared up, so I think this could be a memory leak. You might observe an increase in memory consumption if you use a large input files or if you run a calculation many times. But I haven't tested this.

Indeed, after testing with a protein of 1300 atoms, the RAM usage increases by 0.1 Mb every 5 runs (approximately).
Unless I am mistaken, these potential memory leaks are related to your parts of the code. You use the new keywords without using the delete keyword to deallocate the memory used for your pointers.
I'll let you deal with this in due time but it doesn't seem too serious at the moment so I don't think this is a critical issue. Of course, if there is indeed a memory leak, it should be fixed eventually.
Do you know about RAII to avoid memory leaks?