Library release removal request

Library name
artemis-teensy
Version to remove

1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.0.10
1.0.11
1.0.12
1.0.13
1.0.14
1.0.15
1.0.16
1.0.17
1.0.18
1.0.19
1.0.20

Hi @lukeclements. I am confirming your request.
Unlike submissions, this type of request is still handled manually. The Library Manager index maintainer occasionally comes through to clear all the outstanding requests. They will close this issue when it is done. You will get a notification from GitHub at that time.
After that, you can monitor the indexing of the library via its dedicated logs web page.
Information about that here:
https://github.com/arduino/library-registry/blob/main/FAQ.md#can-i-check-on-library-releases-being-added-to-library-manager

Done:
2023/03/29 15:56:46 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 15:57:20 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 15:57:44 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 15:58:07 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 15:58:31 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 15:58:57 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 15:59:21 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 15:59:46 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:00:10 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:00:35 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:01:06 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:01:46 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:02:13 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:02:37 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:03:01 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:03:23 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:03:47 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:04:08 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:04:35 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!

2023/03/29 16:05:02 Loaded 5661 libraries from DB
Removing<EMAIL_ADDRESS>Success!


Warning on Button, Invalid prop variant of value link supplied to Button (version 0.2.0)

I checked this in the repository and "link" appears as new value, however, when I update lib via npm, in the dist/Button folder it doesn't appear

@diego-pascual Could it be that the version in the application is not updated correctly?

To upgrade from v0.1.x -> v0.2.x, you need to edit the package.json and run a npm install (no npm update.


Netflow and DNS: Performance improvement for Network View

Zoom/Drag behaviour added
New mixin to share common code
Reduced multiple loops into a single one
PolloNetworkViewMixin shares display logic while Concrete Charts deal with server data transformation

Fixed: Netflow's network view not showing internal ips as diamonds


Can't find any tweet

Hi guys!
Can't find any tweets from user @BPharmCatalyst
[!] No more data! Scraping will stop now. found 0 deleted tweets in this search.
Could you check please:
twint -u BPharmCatalyst
Maybe it's just my mistake ((

Same for me.
twint uses Twitter search for scrape user's Tweets.
But @BPharmCatalyst's Tweets are not shown.
The cause may be Twitter's search rules.
Alternatively, you can scrape user's Tweets and RTs via twint -u BPharmCatalyst --retweets.
Only recent Tweets can be displayed.
This option will cause JSONDecodeError.
About the error, see #1335.

Same for me.
twint uses Twitter search for scrape user's Tweets. But @BPharmCatalyst's Tweets are not shown. The cause may be Twitter's search rules.
Alternatively, you can scrape user's Tweets and RTs via twint -u BPharmCatalyst --retweets. Only recent Tweets can be displayed.
This option will cause JSONDecodeError. About the error, see #1335.

Many thanks!
I fixed the error JSONDecodeError as you said.
And now instead
twint.run.Search(c)
I use something like this to search for a tweets:
tweets = []

c = twint.Config()
c.Limit=100
c.Store_object_tweets_list = tweets

twint.run.Profile(c)

tweets = c.Store_object_tweets_list

p.s. Damn, twint needs a major update ((

@G-Pavel Hi,I failed to get tweets from user @BPharmCatalyst by your code ,Is there anything wrong with my use?
tweets = []

c = twint.Config()
c.Username = "BPharmCatalyst"
c.Limit=100
c.Store_object_tweets_list = tweets

twint.run.Profile(c)

tweets = c.Store_object_tweets_list```

@G-Pavel Hi,I failed to get tweets from user @BPharmCatalyst by your code ,Is there anything wrong with my use?
tweets = []

c = twint.Config()
c.Username = "BPharmCatalyst"
c.Limit=100
c.Store_object_tweets_list = tweets

twint.run.Profile(c)

tweets = c.Store_object_tweets_list```

Hi,
It twint -u BPharmCatalyst --retweets doesn't work anymore:
[!] Twitter does not return more data, scrape stops here.

# This patch is in the public domain.
  tweets = []

  c = twint.Config()
  c.Username = "BPharmCatalyst"
  c.Limit=100
  c.Store_object_tweets_list = tweets
+ c.Store_object = True

  twint.run.Profile(c)

  tweets = c.Store_object_tweets_list

@lyhtllw @G-Pavel
The cause is Twitter's changes.
I updated my code. minamotorin/twint
This code looks working. But I haven't tested the code seriously.
This means there may be omissions in the scraping results of Tweets (reports are welcome).

@lyhtllw You forgot c.Store_object = True.

# This patch is in the public domain.
  tweets = []

  c = twint.Config()
  c.Username = "BPharmCatalyst"
  c.Limit=100
  c.Store_object_tweets_list = tweets
+ c.Store_object = True

  twint.run.Profile(c)

  tweets = c.Store_object_tweets_list

@lyhtllw @G-Pavel The cause is Twitter's changes. I updated my code. minamotorin/twint
This code looks working. But I haven't tested the code seriously. This means there might be omissions in the scraping results of Tweets (reports are welcome).

Seems to work, thanks a lot!

This case is different, but it seems that the same problem may  occur due to the account id changes.
E.g., if the id is changed from @before  to @after, twint -u after return the tweets only after that point.
You can scrape the tweets until that point via twint -u before or twint -u after --retweets.

@lyhtllw You forgot c.Store_object = True.

# This patch is in the public domain.
  tweets = []

  c = twint.Config()
  c.Username = "BPharmCatalyst"
  c.Limit=100
  c.Store_object_tweets_list = tweets
+ c.Store_object = True

  twint.run.Profile(c)

  tweets = c.Store_object_tweets_list

@lyhtllw @G-Pavel The cause is Twitter's changes. I updated my code. minamotorin/twint
This code looks working. But I haven't tested the code seriously. This means there might be omissions in the scraping results of Tweets (reports are welcome).

I tested the code. There are omissions in the searching results with c.Since and c.Until option. The number reported from the code mismatches with the number of tweets stored in csv.
@minamotorin do you have any idea about this issue? Thanks.

@Tegrisco-ZSQ
Are there any example?
In my environment, the problem doesn't seems to be happening.
How can I see this number?

The number reported from the code

@Tegrisco-ZSQ Are there any example? In my environment, the problem doesn't seems to be happening.
How can I see this number?

The number reported from the code

@minamotorin
The code I used:
`def get_tweets(start_date, end_date, keyword, filename):
c = twint.Config()
#c.Search = keyword1, keyword2
c.Search = keyword
#c.Username = keyword
c.Since = start_date
c.Until = end_date
c.Hide_output = False
c.Lang = 'en'
c.Count = True
#c.Custom_csv = ["id", "user_id", "username", "tweet"]
c.Store_csv = True
c.Output = filename
twint.run.Search(c)
get_tweets('2022-01-01', '2022-01-05', '$V','V.csv')`
The keyword is a cashtag '$V'
The screenshot is the search result from code:

But I only got 317 tweets in the csv file.
V.csv
This issue happens when I use other keywords like '$GME', '$MSFT', etc.

@Tegrisco-ZSQ
This can happen with also original twint and this has nothing to do with my code.
Moreover, this is jut display bug and the mismatches doesn't mean there are omissions.
By the way, there is a another bug which causes omissions with since or until. #1136
Perhaps I fixed this in https://github.com/minamotorin/twint/commit/ef047337ad5daa60f98df55b14a68cb8045a928f, and the display bug may also be fixed as a result.


Unsoundness in cast_ptr_to_slice

Describe the bug
The cast_ptr_to_slice function in the AsmCoreMachine struct is unsound. It uses the unsafe std::slice::from_raw_parts function without validating its inputs. This allows safe code to pass invalid parameters, such as null pointers or out-of-bounds sizes, which leads to undefined behavior (UB). This can cause crashes, segmentation faults, or other unpredictable behavior.
To Reproduce
Steps to reproduce the behavior:

Create an instance of AsmCoreMachine.
Call the cast_ptr_to_slice method with an invalid pointer (e.g., a null pointer or an arbitrary invalid memory address).
Attempt to access the returned slice.
Observe a runtime crash or memory access violation.

Example code to reproduce:
fn main() {
    let machine = AsmCoreMachine {
        registers: [0; RISCV_GENERAL_REGISTER_NUMBER],
        pc: 0,
        next_pc: 0,
        running: 0,
        cycles: 0,
        max_cycles: 0,
        chaos_mode: 0,
        chaos_seed: 0,
        load_reservation_address: 0,
        reset_signal: 0,
        isa: 0,
        version: 0,
        error_arg0: 0,
        memory_size: 0,
        frames_size: 0,
        flags_size: 0,
        last_read_frame: 0,
        last_write_page: 0,
        memory_ptr: 0,
        flags_ptr: 0,
        frames_ptr: 0,
    };

    // Invalid pointer (null pointer)
    let invalid_ptr: u64 = 0xdeadbeef; // Invalid memory address
    let offset = 0;
    let size = 10;

    let slice = machine.cast_ptr_to_slice(invalid_ptr, offset, size); // Triggers UB
    println!("{:?}", slice); // Causes crash or unpredictable behavior
}

Expected behavior
The function should validate the provided pointer, offset, and size to ensure they are safe and within bounds. If the inputs are invalid, it should return an error instead of allowing unsafe memory access.
Environment
OS: Windows 10
Version: Commit main branch or latest version
Rust: rustc 1.72.0
Additional context
The crash manifests as a segmentation fault or access violation (STATUS_ACCESS_VIOLATION) when invalid parameters are passed to the cast_ptr_to_slice method. Below is the observed error message when running the example code:
error: process didn't exit successfully: target\debug\example.exe (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

Thank you for your report!
I understand your concerns regarding the cast_ptr_to_slice method using the unsafe std::slice::from_raw_parts function and its potential to cause undefined behavior. However, this is expected behavior and not a bug.
The cast_ptr_to_slice function is a low-level utility designed to work with raw pointers and create slices directly. By its nature, it relies on unsafe operations and assumes that the caller ensures the validity of the inputs. In Rust’s safety model, the use of unsafe signifies that the programmer, not the compiler, must uphold certain invariants. If invalid parameters (e.g., null pointers or out-of-bounds offsets) are provided, undefined behavior may occur, and this is an accepted trade-off in such scenarios.
For low-level, performance-sensitive functions like cast_ptr_to_slice, adding input validation would impose a runtime cost. To maximize performance, this function does not validate its parameters.

Thank you for your detailed response! I appreciate your clarification regarding the design intent of the cast_ptr_to_slice function as a low-level utility and the trade-off between safety and performance. However, I believe there is an important consideration regarding Rust’s safety guarantees that may need to be addressed.
If the primary goal is to prioritize performance by avoiding runtime input validation, the function should ideally be marked as unsafe. This would explicitly communicate to users that they are responsible for ensuring the validity of the inputs and maintaining the required invariants. Additionally, the function should include comments or documentation outlining the preconditions necessary for safe usage.
Currently, as it stands, the function is callable from safe Rust code without requiring an unsafe block. This creates a situation where undefined behavior can occur if the user inadvertently passes invalid parameters, such as null pointers or out-of-bounds sizes. This design potentially violates Rust’s core safety model, which seeks to prevent memory unsafety in safe code.
Marking the function as unsafe would not only align its design with Rust’s conventions but also provide clarity to developers regarding the risks and responsibilities associated with its usage. This adjustment would ensure that the expectations of Rust’s safety guarantees are upheld while still allowing the performance optimizations you mentioned.
Thank you again for your understanding and for considering this feedback!

I think at least cast_ptr_to_slice should be marked as 'unsafe' if performance is considered as an important issue.

Modification 1: Mark the function as unsafe
To align with Rust's safety model, the function can be marked as unsafe. This approach keeps the performance benefits and makes it explicit that the caller must ensure the safety of the inputs.
/// Casts a raw pointer with an offset and size to a byte slice.
///
/// # Safety
///
/// - The `ptr` must be a valid memory address for reading `size` bytes.
/// - The `ptr + offset` must not overflow.
/// - The memory region specified by `ptr + offset` and `size` must remain valid
///   for the lifetime of the returned slice.
///
/// Failing to satisfy these conditions results in undefined behavior.
pub unsafe fn cast_ptr_to_slice(&self, ptr: u64, offset: usize, size: usize) -> &[u8] {
    let ptr = ptr as *const u8;
    let ptr = ptr.add(offset);
    std::slice::from_raw_parts(ptr, size)
}

Modification 2: Add input validation (safer but with a slight performance cost)
If input validation is acceptable, the function can return an Option<&[u8]> to handle invalid inputs gracefully. This ensures memory safety without requiring unsafe blocks.
pub fn cast_ptr_to_slice(&self, ptr: u64, offset: usize, size: usize) -> Option<&[u8]> {
    // Check if the pointer is non-zero
    if ptr == 0 {
        return None;
    }

    // Check if the offset causes an overflow
    let ptr = ptr as *const u8;
    if ptr as usize > usize::MAX - offset {
        return None;
    }

    // Check if adding offset results in a null or invalid pointer
    let ptr = unsafe { ptr.add(offset) };
    if ptr.is_null() {
        return None;
    }

    // Return a safe slice if all checks pass
    Some(unsafe { std::slice::from_raw_parts(ptr, size) })
}

Here is the definition of soundness in Rust:
Soundness is a type system concept (actually originating from the study of logics) and means that the type system is "correct" in the sense that well-typed programs actually have the desired properties. For Rust, this means well-typed programs cannot cause Undefined Behavior. This promise only extends to safe code however; for unsafe code, it is up to the programmer to uphold this contract.
Accordingly, we say that a library (or an individual function) is sound if it is impossible for safe code to cause Undefined Behavior using its public API. Conversely, the library/function is unsound if safe code can cause Undefined Behavior.

Thank you for your suggestions.
Modification 1 (Marking the function as unsafe): Approved. This aligns with Rust's safety model while maintaining performance. Making the function unsafe explicitly communicates the responsibility of ensuring input safety to the caller.
Modification 2 (Adding input validation): Not approved. While it improves safety, the slight performance cost introduced by runtime checks is not acceptable for this use case. The performance of this function is critical, and the responsibility for ensuring valid inputs will remain with the caller. Furthermore, your modification provides only a limited improvement in security. Can ptr be equal to 1 or 2?
Let me know if you have further questions or would like to discuss alternatives.

I have no further questions. Thank you for taking my advice!

Sorry for closing this issue in error, maybe it should be closed after the author changes it.


Search for specs or scenarios by tag through API

API request to get all specs/scenarios by tag or tag expression

gauge list is now supported via cli. LSPimplementation also allows this.
Closing as stale. Please comment/reopen if this is still valid.


Make a dropdown menu for language selection

Currently the menu for language selection takes up too much space.
Proposed Changes

Make a dropdown menu for selecting language. Default should be English.

Hello, could you please assign it to me?

Assigned!


Review how the conventions map to the FAIR Principles

Many of us will be familiar with the principles for FAIR data and there's a checklist for criteria for data and metadata to be considered FAIR available on this official page. I was thinking it could be useful to explicitly review and record how the CF Conventions promote, and themselves abide by, the FAIR principles, according to those criteria? Perhaps as some text under a dedicated question on the FAQs page, or in some other location that seems appropriate on the website?
It would show we are striving to abide by the FAIR Principles and also would help us to identify areas where we perhaps aren't as FAIR as we could be (these might be some or all of items where I have put '???' in my notes below to indicate I am not sure what to put there).
To illustrate what I am thinking of in that respect, I have made some brief notes to record my interpretation on this (see below). Note that it is quite obvious how the conventions promote those principles in relation to the netCDF data, namely they primarily concern item R1.3, "data meet domain-relevant community standards", and indeed they are listed as an example resource under the dedicated page for that item, which is really great! So that is simple and easy to record.
But I am also thinking about how FAIR the metadata defined by the conventions are (in practice, this means going through the checklist linked above and reading 'metadata' rather than 'data' for '(meta)data', though there are a few items which aren't applicable in this case, namely F2 and A2, so don't need to be considered in his case).

My suggestions in the form of quick notes to illustrate
How CF metadata maps to the FAIR criteria (cross-reference with the items here and the further information provided on the pages each item links to) as far as I can tell or know of, with '???' marked on items I am unsure of that would be good to discuss if it is agreed that my proposal to include something like this somewhere on the website is good:
Findable

F1. URL https://cfconventions.org/index.html provides a canonical home covering all aspects of the CF Conventions.
F2. N/A, this item applies to non-meta data only.
F3. N/A, since with netCDF metadata is included in the same file as the data.
F4. Conventions document at https://cfconventions.org/conventions.html and standard names table at https://cfconventions.org/standard-names.html register the metadata, and the former is searchable via browser word searching or similar, and the latter has a dedicated search utility.

Accessible

A1. HTTPS is the main protocol for the website (others may work too).

A1.1 Yes, HTTPS is open, free, and universally implementable.
A1.2 Yes, HTTPS provides authentication.

A2. N/A, this item applies to non-meta data only.

Interoperable

I1. ??? We have a (now official) data model for the metadata as covered in detail in this paper and see item (I2) below regarding "commonly used controlled vocabularies, ontologies, thesauri".
I2. This question applies only to the standard names for this context and I think we are in the process of defining more concretely the controlled vocabulary and grammar that underlies the current standard names, where there is some notes to summarise in a loose way how the names are constructed and work related to investigating the grammar e.g. under the 'CF Standard Names' FAQs.
I3. '???' Maybe the fact that standard names are often referential to other standard names, e.g. 'air_temperature_anomaly' and 'difference_between_sea_surface_temperature_and_air_temperature' both refer to another variable that is itself a name, namely 'air_temperature', and that they are all tied to canonical units, would count under this?

Reusable

R1:

R1.1. '???' (It seems like we don't use any license?)
R1.2: '???'

The proposal and acceptance process is open and persistently accessible on GitHub (now, and Trac previously) and covers such details as the origin story via the opening comment from the user who submits it as a proposal, along with the subsequent discussion.
The update history of the conventions overall are covered by the versioning of the document and the standard names table, along with context provided on the official website.
Relation to other metadata are described in detail, such as COARDS
(covered in this dedicated section) and UDUNITS (covered within this section).

R1.3 '???' (What community standard do aspects of the CF Conventions abide by, if any, say in terms of formatting of aspects? Is this item even applicable in our context?)

I think that in relation to the Find and Accessible components CF is taking a big leap forward by having DOIs :+1:


Remove useless Layout/SpaceAfterColon Cop

Is your feature request related to a problem? Please describe.
The Layout/SpaceAfterColon, checks space needed between colon and value in ruby 1.9 hash syntax. It's already check with Layout/AlignHash.
Each style describe in this latter cop guarantee at least one space between separators and values.
Also since #6649 release in 0.70.0 (2019-05-21), user can choose multiple alignement style, reinforcing the feeling than the Layout/SpaceAfterColon cop is become useless.
Describe the solution you'd like
Remove this cop which has become useless.

What do you think ?

I think that roles of Layout/SpaceAfterColon cop and Layout/AlignHash cop are different.
Layout/AlignHash cop is a cop for Hash style. For example, Layout/SpaceAfterColon cop has detected a kwargs. This is not detected by Layout/AlignHash cop.
% cat example.rb
# frozen_string_literal: true

def m(foo:1, bar:2)
end

% rubocop
Inspecting 1 file
C

Offenses:

example.rb:3:1: C: Style/EmptyMethod: Put empty method definitions on a single line.
def m(foo:1, bar:2) ...
^^^^^^^^^^^^^^^^^^^
example.rb:3:10: C: Layout/SpaceAfterColon: Space missing after colon.
def m(foo:1, bar:2)
         ^
example.rb:3:17: C: Layout/SpaceAfterColon: Space missing after colon.
def m(foo:1, bar:2)
                ^

1 file inspected, 3 offenses detected

It can not be detected when Layout/SpaceAfterColon is disabled.
% cat .rubocop.yml
Layout/SpaceAfterColon:
  Enabled: false

% rubocop
Inspecting 1 file
C

Offenses:

example.rb:3:1: C: Style/EmptyMethod: Put empty method definitions on a single line.
def m(foo:1, bar:2) ...
^^^^^^^^^^^^^^^^^^^

1 file inspected, 1 offense detected

So Layout/SpaceAfterColon cop cannot be removed as it works.

@koic
You agree, I forgot to check the inline hash.


Running default setup instructions generates warnings

A clean install following the basic setup instructions with the test script at the end results in the following output:
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
  return f(*args, **kwds)
./usr/lib/python3.5/importlib/_bootstrap_external.py:423: ImportWarning: Not importing directory /usr/local/lib/python3.5/dist-packages/mpl_toolkits: missing __init__
  _warnings.warn(msg.format(portions[0]), ImportWarning)
.....
----------------------------------------------------------------------
Ran 6 tests in 0.219s

OK

System: Linux (Debian Stretch)

Commands where as followed:
sudo apt install git-all
sudo apt install python3-pip
sudo -H pip3 install -r requirements.txt
sudo apt-get update && sudo apt-get -y install    python3    python3-dev    python3-setuptools    python3-pip    build-essential    libssl-dev    libffi-dev    python3-numpy    python3-scipy    python3-matplotlib    python3-pandas
sudo -H pip3 install jupyter
export PYTHONPATH=$PYTHONPATH:$PWD/opengrid
python3 test_analyses.py

See https://stackoverflow.com/questions/40845304/runtimewarning-numpy-dtype-size-changed-may-indicate-binary-incompatibility

These warnings are visible whenever you import scipy (or another package) that was compiled against an older numpy than is installed.

The question on Stackoverflow lists a bunch of things you can try to resolve it, including recompiling scipy, but my takeaway is that the warning can safely be ignored ;-)

I'll retry this in a clean environment later on, since this is running it on my regular system. Just to figure out if this can be avoided. It's nice to know it can be ignored, but still a bit daunting when getting back into looking at the code. :)

Updating to numpy v1.15.1 should get rid of this error. Apparently it was thrown in the past as well, but discarded  but numpy itself before it was shown to the user. While innocent, this bugs me a lot more than it should.
Upgrading to numpy v1.15.1 throws code related errors though, so this might not be an ideal fix either:
======================================================================
ERROR: test_count_peaks (__main__.AnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "opengrid/tests/test_analyses.py", line 51, in test_count_peaks
    df = datasets.get('gas_dec2016_min')
  File "/home/sahnalys09/Documents/Github/opengrid/opengrid/datasets/datasets.py", line 73, in get
    return sets.unpack(name)
  File "/home/sahnalys09/Documents/Github/opengrid/opengrid/datasets/datasets.py", line 56, in unpack
    df = pd.read_pickle(path, compression='gzip')
TypeError: read_pickle() got an unexpected keyword argument 'compression'

======================================================================
ERROR: test_load_factor (__main__.AnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "opengrid/tests/test_analyses.py", line 57, in test_load_factor
    ts = og.datasets.get('electricity_2016_hour')
  File "/home/sahnalys09/Documents/Github/opengrid/opengrid/datasets/datasets.py", line 73, in get
    return sets.unpack(name)
  File "/home/sahnalys09/Documents/Github/opengrid/opengrid/datasets/datasets.py", line 56, in unpack
    df = pd.read_pickle(path, compression='gzip')
TypeError: read_pickle() got an unexpected keyword argument 'compression'

======================================================================
ERROR: test_standby (__main__.AnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "opengrid/tests/test_analyses.py", line 20, in test_standby
    df = datasets.get('elec_power_min_1sensor')
  File "/home/sahnalys09/Documents/Github/opengrid/opengrid/datasets/datasets.py", line 73, in get
    return sets.unpack(name)
  File "/home/sahnalys09/Documents/Github/opengrid/opengrid/datasets/datasets.py", line 56, in unpack
    df = pd.read_pickle(path, compression='gzip')
TypeError: read_pickle() got an unexpected keyword argument 'compression'

======================================================================
ERROR: test_standby_with_time_window (__main__.AnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "opengrid/tests/test_analyses.py", line 27, in test_standby_with_time_window
    df = datasets.get('elec_power_min_1sensor')
  File "/home/sahnalys09/Documents/Github/opengrid/opengrid/datasets/datasets.py", line 73, in get
    return sets.unpack(name)
  File "/home/sahnalys09/Documents/Github/opengrid/opengrid/datasets/datasets.py", line 56, in unpack
    df = pd.read_pickle(path, compression='gzip')
TypeError: read_pickle() got an unexpected keyword argument 'compression'

----------------------------------------------------------------------
Ran 6 tests in 0.007s

FAILED (errors=4)

What version of Pandas are you running? The compression keyword for read_pickle was introduced in version 0.20.0.

Upgrading numpy to v1.15.1 and pandas to v0.23.4 seems to fix everything.
Was running on v1.12.1 and v0.19.2 before

python3 opengrid/tests/test_analyses.py
......
----------------------------------------------------------------------
Ran 6 tests in 0.174s

OK


Update jsdoc to use {xs, ys} from tf.data.csv

This resolves https://github.com/tensorflow/tfjs/issues/1273
Note: this PR should not be merged until we are gonna release new tfjs-data and tfjs-layers. Otherwise the code in github readme is not gonna work.

This change is

Good point, renamed the variables to {xs_objects, ys_objects}

IIUC the {xs, ys} change is not released yet, so per the PR comment at the top our GitHub README is now out of sync.  However I think that is OK: the README should describe the code at head.  The only place where docs are pinned to released versions is https://js.tensorflow.org/api.

Ah right I forgot about the readme doc will be updated even without
release. I will double check when will the feature be released and see if I
need to revert the readme doc.
Thanks for the notice.
David Soergel<EMAIL_ADDRESS>于 2019年2月26日周二 下午10:35写道：

IIUC the {xs, ys} change is not released yet, so per the PR comment at the
top our GitHub README is now out of sync. However I think that is OK: the
README should describe the code at head. The only place where docs are
pinned to released versions is https://js.tensorflow.org/api.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tfjs-data/pull/146#issuecomment-467461693,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFoW6KLnNtN7pe2mkoTu6HU-BGKcNgn0ks5vRUY6gaJpZM4bOcIv
.

@kangyizhang @davidsoergel, just so I understand have the keynames changed in the underlying object passed to map? Since this is an object destructure the names have to match what keys in the object passed in. I haven't been keeping track of this feature so just wanted to check.

looking at https://github.com/tensorflow/tfjs-data/blob/master/src/datasets/csv_dataset.ts#L266 i suspect it may need to be xs and ys.

Yes, the names during object destructuring has to match the keys in the object passed in. Sent out https://github.com/tensorflow/tfjs-data/pull/152

My fault, sorry!


Qwen1.5-7B-Chat 使用API呼叫 completions 功能未能生成下文

提交前必须检查以下项目 | The following items must be checked before submission

[X] 请确保使用的是仓库最新代码（git pull），一些问题已被解决和修复。 | Make sure you are using the latest code from the repository (git pull), some issues have already been addressed and fixed.
[X] 我已阅读项目文档和FAQ章节并且已在Issue中对问题进行了搜索，没有找到相似问题和解决方案 | I have searched the existing issues / discussions

问题类型 | Type of problem
模型推理和部署 | Model inference and deployment
操作系统 | Operating system
Linux
详细描述问题 | Detailed description of the problem
Qwen1.5-7B-Chat模型，使用API 向 /completions 接口 post 以下信息
{
    "model": "qwen2",
    "prompt": "How are you?",
    "max_tokens": 1024,
    "temperature": 0
}

返回的结果中未生成下文内容，text为空：
{
	"id": "cmpl-3bb4aed3-fc65-4385-82b5-e559d03a7fa9",
	"choices": [
		{
			"finish_reason": "stop",
			"index": 0,
			"logprobs": null,
			"text": ""
		}
	],
	"created":<PHONE_NUMBER>,
	"model": "qwen2",
	"object": "text_completion",
	"system_fingerprint": null,
	"usage": {
		"completion_tokens": 0,
		"prompt_tokens": 4,
		"total_tokens": 4
	}
}

Dependencies
openai==1.12.0
pydantic==1.10.13
fastapi==0.104.1
python-dotenv==1.0.0
transformers==4.37.2
peft==0.8.2
accelerate==0.21.0
sentence-transformers==2.2.2
transformers_stream_generator==0.0.4
einops==0.6.1
sse-starlette==1.6.1
starlette-context==0.3.6
torch==2.0.1
运行日志或截图 | Runtime logs or screenshots
No response

温度为0的情况下，返回结果是固定的，而且续写为空也是很正常的，因为你的前文其实是一个完整的句子，你可以调整一下temperature参数，结果就具有随机性了

是的，上面这个例子，调整temperature 的情况下有概率会有回复。
还有一个是我测试Langchain的APIChain的例子，也存在这样的情况。
import os
from langchain.chains import APIChain
from langchain.chains.api import open_meteo_docs
from langchain_openai import OpenAI

os.environ['OPENAI_API_BASE'] = 'http://<IP_ADDRESS>:8000/v1'
os.environ['OPENAI_API_KEY'] = 'OPENAI_API_KEY'

llm = OpenAI(model='qwen2',temperature=0)
chain = APIChain.from_llm_and_api_docs(
    llm,
    open_meteo_docs.OPEN_METEO_DOCS,
    verbose=True,
    limit_to_domains=["https://api.open-meteo.com/"],
)
chain.run(
    "What is the weather like right now in Munich, Germany in degrees Fahrenheit?"
)

生成的API呼叫的示例是向/completions post以下的内容，这个的返回结果 text 也是没有内容的。
{
    "model": "qwen2",
    "prompt": "You are given the below API Documentation:\nBASE URL: https://api.open-meteo.com/\n\nAPI Documentation\nThe API endpoint /v1/forecast accepts a geographical coordinate, a list of weather variables and responds with a JSON hourly weather forecast for 7 days. Time always starts at 0:00 today and contains 168 hours. All URL parameters are listed below:\n\nParameter\tFormat\tRequired\tDefault\tDescription\nlatitude, longitude\tFloating point\tYes\t\tGeographical WGS84 coordinate of the location\nhourly\tString array\tNo\t\tA list of weather variables which should be returned. Values can be comma separated, or multiple &hourly= parameter in the URL can be used.\ndaily\tString array\tNo\t\tA list of daily weather variable aggregations which should be returned. Values can be comma separated, or multiple &daily= parameter in the URL can be used. If daily weather variables are specified, parameter timezone is required.\ncurrent_weather\tBool\tNo\tfalse\tInclude current weather conditions in the JSON output.\ntemperature_unit\tString\tNo\tcelsius\tIf fahrenheit is set, all temperature values are converted to Fahrenheit.\nwindspeed_unit\tString\tNo\tkmh\tOther wind speed speed units: ms, mph and kn\nprecipitation_unit\tString\tNo\tmm\tOther precipitation amount units: inch\ntimeformat\tString\tNo\tiso8601\tIf format unixtime is selected, all time values are returned in UNIX epoch time in seconds. Please note that all timestamp are in GMT+0! For daily values with unix timestamps, please apply utc_offset_seconds again to get the correct date.\ntimezone\tString\tNo\tGMT\tIf timezone is set, all timestamps are returned as local-time and data is returned starting at 00:00 local-time. Any time zone name from the time zone database is supported. If auto is set as a time zone, the coordinates will be automatically resolved to the local time zone.\npast_days\tInteger (0-2)\tNo\t0\tIf past_days is set, yesterday or the day before yesterday data are also returned.\nstart_date\nend_date\tString (yyyy-mm-dd)\tNo\t\tThe time interval to get weather data. A day must be specified as an ISO8601 date (e.g. 2022-06-30).\nmodels\tString array\tNo\tauto\tManually select one or more weather models. Per default, the best suitable weather models will be combined.\n\nHourly Parameter Definition\nThe parameter &hourly= accepts the following values. Most weather variables are given as an instantaneous value for the indicated hour. Some variables like precipitation are calculated from the preceding hour as an average or sum.\n\nVariable\tValid time\tUnit\tDescription\ntemperature_2m\tInstant\t°C (°F)\tAir temperature at 2 meters above ground\nsnowfall\tPreceding hour sum\tcm (inch)\tSnowfall amount of the preceding hour in centimeters. For the water equivalent in millimeter, divide by 7. E.g. 7 cm snow = 10 mm precipitation water equivalent\nrain\tPreceding hour sum\tmm (inch)\tRain from large scale weather systems of the preceding hour in millimeter\nshowers\tPreceding hour sum\tmm (inch)\tShowers from convective precipitation in millimeters from the preceding hour\nweathercode\tInstant\tWMO code\tWeather condition as a numeric code. Follow WMO weather interpretation codes. See table below for details.\nsnow_depth\tInstant\tmeters\tSnow depth on the ground\nfreezinglevel_height\tInstant\tmeters\tAltitude above sea level of the 0°C level\nvisibility\tInstant\tmeters\tViewing distance in meters. Influenced by low clouds, humidity and aerosols. Maximum visibility is approximately 24 km.\nUsing this documentation, generate the full API url to call for answering the user question.\nYou should build the API url in order to get a response that is as short as possible, while still getting the necessary information to answer the question. Pay attention to deliberately exclude any unnecessary pieces of data in the API call.\n\nQuestion:What is the weather like right now in Munich, Germany in degrees Fahrenheit?\nAPI url:",
    "max_tokens": 4096,
    "temperature": 0
}

返回结果中text为空。
{
	"id": "cmpl-18126258-f48c-4022-ab27-6b98fa940c35",
	"choices": [
		{
			"finish_reason": "stop",
			"index": 0,
			"logprobs": null,
			"text": ""
		}
	],
	"created":<PHONE_NUMBER>,
	"model": "qwen2",
	"object": "text_completion",
	"system_fingerprint": null,
	"usage": {
		"completion_tokens": 0,
		"prompt_tokens": 867,
		"total_tokens": 867
	}
}


Issue: Is it possible to add system message with the prompt?

Issue you'd like to raise.
I created an AgentExecutor with the ConversationalChatAgent and I could pass a system message as I initialize the agent executor. Is it possible to add system messages to individual prompts, not just one in the beginning? My code:
from langchain import PromptTemplate
from langchain.agents import ConversationalChatAgent, Tool, AgentExecutor
import pickle
import os
import datetime
import logging
# from controllers.user_controller import UserController
from langchain.llms import OpenAI
from langchain.document_loaders import DirectoryLoader
from langchain.text_splitter import CharacterTextSplitter
# from langchain.vectorstores import FAISS
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.chains import RetrievalQA

class ChatController(object):
    def __init__(self):
        self._create_chat_agent()

    def _create_chat_agent(self):

        self.llm = OpenAI(temperature=0, top_p=0.2, presence_penalty=0.4, frequency_penalty=0.2)
        embeddings = OpenAIEmbeddings()
        persist_directory = 'myvectordb'
        vectorstore = Chroma(persist_directory=persist_directory, embedding_function = embeddings)

        prompt_template = """If the context is not relevant,
        please answer the question by using your own knowledge about the topic

        {context}

        Question: {question}
        """

        PROMPT = PromptTemplate(
            template=prompt_template, input_variables=["context", "question"]
        )

        chain_type_kwargs = {"prompt": PROMPT}
        # Initialise Langchain - QA chain
        qa = RetrievalQA.from_chain_type(llm=self.llm,
                                         chain_type="stuff",
                                         retriever=vectorstore.as_retriever(),
                                         chain_type_kwargs=chain_type_kwargs)

        tools = [
            Tool(
                name="Document tool",
                func=qa.run,
                description="useful for when you need to answer questions."
            ),
        ]

        system_msg = "You are a helpful assistant."

        agent = ConversationalChatAgent.from_llm_and_tools(
            llm=self.llm,
            tools=tools,
            system_message=system_msg
        )

        self.chat_agent = AgentExecutor.from_agent_and_tools(
            agent=agent, tools=tools, verbose=True, memory=ConversationBufferMemory(memory_key="chat_history",
                                                                                return_messages=True)
        )

    def askAI(self, prompt: str):
        response = self.chat_agent.run(input=prompt)

        return {"answer": response}

Suggestion:
No response

I do not completely understand what are you trying to solve, so I can not give you an answer, but check out Steercode, which can answer you questions about LangChain repository.


Release 2.1.0

Added

rb-generic-form -buttons descendent

Changed

rb-check-control-group can use shared model and watches external model changes
rb-definition-list style and structure

Fixed

appearance property no longer requires manual prefixing. Run npm update after updating to prevent breakage.

Commits: https://github.com/rockabox/rbx_ui_components/compare/2.0.0...2.1.0

:+1:

:rocket: release: https://github.com/rockabox/rbx_ui_components/releases/tag/2.1.0


Shopware file checker

Please describe the feature you would like to see implemented.
Options to:

compare changed files
restore original file
add description in tab (the name doesn't explain anything of the content)

the files are already compared

the files are already compared

I mean something like https://codemirror.net/demo/merge.html


Not making a large customStyle prop, but a long list of optional CSS.Properties props

This problematic overflow outside the red feed is an example of using the customStyle prop. Basically the customStyles completely overrides the original styles because the {...obj, ...obj} will not do a deep-copy.
Additionally, listing out all the props in the interface basically solves the interface ArgsTable issue: https://github.com/chatengine-io/react-chat-engine-components/issues/28

Solid progress has been made here, gonna pick this up and finish


use SQLGlot to inject limit into users query instead of wrapping with an outer query

resolves #
docs dbt-labs/docs.getdbt.com/#

Problem

Solution

Checklist

[ ] I have read the contributing guide and understand what's expected of me
[ ] I have run this code in development and it appears to resolve the stated issue
[ ] This PR includes tests, or tests are not required/relevant for this PR
[ ] This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

after some offline discussion (thanks @jtcohen6 & @MichelleArk) taking a dependency on sqlglot to solve just this issue is probably not something we're ready to do. Closing with an eye towards possibly tackling in the future


Count leading zeroes

Where you omitted Math.clz32, you could replace that with Math.clzN(bigint, N), where the bigint is to be interpreted as an N-bit number.
In particular, Math.clzN(bigint, 64) could be accelerated on x64 and ARM, and if the bigint can't fit in a single 64-bit number, it can still be checked very efficiently by roughly this algorithm:
// For 32-bit - 64-bit will be similar
let m = Math.min(N, bigint.byteLength << 2)
let n = m & ~3
let i = 0

while (i < n) {
  let b = bigint.getUint32(i, true)
  if (b !== 0) {
    return (i << 3) + Math.clz32(b)
  }
  i += 4
}

if (i < m) {
  return Math.min(m, (i << 3) + Math.clz32(bigint.getUint32(i, true)))
}

return m

I think I’ll probably close this for now, in favor of a future proposal. The Committee reasonably wanted me to greatly reduce the functions covered by this proposal. We can deal with >32-bit leading zeroes in a future proposal. Thanks!


Unreadable tip parts in documentation

Hello guys,
I was reading the documentation of the project at https://httpyac.github.io/guide/request.html and I found, as you can see in the screen, that the "TIP" box are not really readable in dark theme version because of an insufficient contrast.
I was trying to see in the project the markdown part that seems to be here ::: tip The HTTP version is optional. But in this guide I have always added it because of syntax highlighting ::: and in my opinion there is a need for change in the value of the color variables --vp-c-brand-1: #777271 and --vp-c-brand-soft: #DDD7D3 in your custom.css file

Always the lovers of the dark theme. You have to take the light theme:-) I changed the vb-c-brand-soft color in the dark theme. Thanks for your hint.


How to use Splitwise(from microsoft) in vllm?

Microsoft have claimed that ”Splitwise“ is supported in vLLM, see
https://www.microsoft.com/en-us/research/blog/splitwise-improves-gpu-usage-by-splitting-llm-inference-phases/

So how to use it in vLLM? I could not find keyword about ”Splitwise“.

same here

@monuminu From your homepage, it appears that you work at Microsoft. Don’t you know where this part of the code can be obtained?😂

Let me get the info :)

@monuminu Ok, please keep me posted if there are any updates.

Code will be released in some days

Thank you, I am looking forward to the day when the code is available.

As per the blog, this seems implemented or part of vLLM

Our approach is now part of vLLM(opens in new tab) and can also be implemented with other frameworks.

@kd303 I have read this blog yet. But do you know how to use it in vllm? I can not find any keyword in vllm code.

Thanks for the interest in Splitwise code. We have opened https://github.com/vllm-project/vllm/issues/2472 to track the open sourcing of our internal prototype.

https://github.com/vllm-project/vllm/pull/2809


Git hook requires /bin/bash

Since it uses [[ comparisons.

It occurs to me this isn't necessary since you're not working with the stuff at the root repo level any more, closing.


Fix readme doc links to those with CSS styling

Hi, simply updated three URLs from the README.md as I noticed the current links (those with /en/latest in the URL) were readable, but had no styling whatsoever (the CSS 404'd). I updated the links based on what I saw on https://docs.rubixml.com/ directly, and they had all the proper styling.
It looks like github doesn't show the inline diff on the first change (the badge icon) but all I changed there was the /en/latest as well.
Testing
Simply click the links in question and confirm it goes to a page with CSS styling applied and the left sidebar is shown, etc.

Nice catch @michaelbutler and thanks for the fix!
Drop in on our Telegram channel if you'd like https://t.me/RubixML


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-28-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4566

Questions ?
Please refer to the Backport tool documentation


haskell-language-server: Fix build

Motivation for this change
Things done

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

[x] NixOS
[ ] 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.

I will merge this once @GrahamcOfBorg signals success.

@GrahamcOfBorg build haskell-language-server

I don‘t understand why the x86 build failed.
@GrahamcOfBorg build haskell-language-server

@GrahamcOfBorg build haskell-language-server

I think the pipeline breakage is not from this PR but from some earlier. Still it is not great that we cannot rely on ofborg to check if everything evals. It would be nice if someone could look into this.


When no GL version specified, try 4.5 and work backwards until you find one that works

https://gamedev.stackexchange.com/questions/28451/how-do-i-properly-check-if-a-particular-opengl-version-is-available
Sucks, but at least this can work

Done in CEPL.SDL2 & CEPL.Glop


CI: CNP Specs test failed (unable to connect to ratings)

Build link: https://jenkins.cilium.io/job/cilium-ginkgo/job/cilium/job/master/604
Failure output:
20:24:47 • Failure [289.889 seconds]
20:24:47 K8sValidatedServicesTest
20:24:47 /home/jenkins/workspace/cilium-ginkgo_cilium_master-QVKDPVJ2A6E272IRUX7X6DCB5FBLCQDKRTOMHPZS7ZECX3RM5C3A/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:280
20:24:47   CNP Specs Test [It]
20:24:47   /home/jenkins/workspace/cilium-ginkgo_cilium_master-QVKDPVJ2A6E272IRUX7X6DCB5FBLCQDKRTOMHPZS7ZECX3RM5C3A/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:312
20:24:47
20:24:47   Unable to connect from reviews-v1-2690276606-94zt1 to ratings:9080/health: --2018-04-11 20:24:00--  http://ratings:9080/health
20:24:47   Resolving ratings (ratings)... <IP_ADDRESS>
20:24:47   Connecting to ratings (ratings)|<IP_ADDRESS>|:9080... connected.
20:24:47   HTTP request sent, awaiting response... 404 Not Found
20:24:47   2018-04-11 20:24:00 ERROR 404: Not Found.
20:24:47
20:24:47   --2018-04-11 20:24:00--  http://ratings:9080/health
20:24:47   Resolving ratings (ratings)... <IP_ADDRESS>
20:24:47   Connecting to ratings (ratings)|<IP_ADDRESS>|:9080... connected.
20:24:47   HTTP request sent, awaiting response... 404 Not Found
20:24:47   2018-04-11 20:24:00 ERROR 404: Not Found.
20:24:47
20:24:47
20:24:47   Expected
20:24:47       <bool>: false
20:24:47   to be true
20:24:47
20:24:47   /home/jenkins/workspace/cilium-ginkgo_cilium_master-QVKDPVJ2A6E272IRUX7X6DCB5FBLCQDKRTOMHPZS7ZECX3RM5C3A/src/github.com/cilium/cilium/test/k8sT/Services.go:323

Logs from when test failed:
20:24:02 STEP: After policy import
20:24:02 STEP: Checking that reviews-v1-2690276606-94zt1 can connect to ratings:9080/health
20:24:02 time="2018-04-11T20:24:00Z" level=debug msg="running command: kubectl exec -t reviews-v1-2690276606-94zt1 wget -- --tries=2 --connect-timeout 10 ratings:9080/health"

Possibly related to: #3470
Logs:
test_results_master_604.tar.zip

A lot of the recent CI failures are due to issues accessing services by their host names instead of their service IPs.

Discussed offline with @eloycoto - we can access the service IP directly instead of the host name in the short term, and in the long term, add a wait function which waits until DNS can resolve the host names of the services.


IllegalArgumentException when updating device distance

I have this error message when updating device distance: IllegalArgumentException (DeviceManager:459 < DeviceResource:109 < ...)

Can I see what you are typing in the edit field?

I just select a device from the drop down list and enter any number in Total Distance field.

One more problem. I can input 'e' to Total Distance field and click "check mark" button even the text field is error with validation highlight.

Its happens when device is not connected to server

I've just tested and everything works for me.
As for the second problem, I don't really understand what the problem is and why you are trying to enter invalid values in the field.

As for initial problem it happen because you are trying to set Total Distance for Device have not reported anything yet. Firstly you have to get at least one position from device.


Support SentenceTransformers models inference in optimum

What does this PR do?
Support SentenceTransformers models inference in optimum
You can use SentenceTransformers for feature extraction like in original pipeline (https://huggingface.co/sentence-transformers/all-mpnet-base-v2#usage-sentence-transformers):
from optimum.intel.openvino import OVSentenceTransformer

model_id="sentence-transformers/all-mpnet-base-v2"
model = OVSentenceTransformer.from_pretrained(model_id, export=True)
sentences = ["This is an example sentence", "Each sentence is converted"]
embeddings = model.encode(sentences)

Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

I used this PR and sample code to achieve 7x latency improvement vs sentencetransformers! Will this be merged soon or the alternate path of a new "OVModelForSentenceTransformers" be created?  I can take a stab at that but don't want to step on toes or duplicate work, but I also do not want to wait for something that nobody has plans or has prioritized to do!

@echarlaix  @IlyasMoutawwakil  could you please help to retrigger ci?

@echarlaix could you please trigger the CI for this?

To fix the code style check you can do the following :
pip install .[quality]
make style

failing tests unrelated, looks like an incompatible openvino-tokenizers version for openvino nightly like fixed in https://github.com/huggingface/optimum-intel/pull/885 cc @eaidova

failing tests unrelated, looks like an incompatible openvino-tokenizers version for openvino nightly like fixed in #885 cc @eaidova

yes, it is bug in openvino nightly package itself, already fixed and will be resolved in next openvino nightly


Limit cache directories

Manifest loading dumps serialized diagnostics files into the manifest cache, that's why the sandbox needs an exception for that. This generally seems a bit odd, but firstly, we can limit the access to the subdirectory that is actually being used instead of the entire cache.

@swift-ci please test


have doc coverage

Problem
https://compodoc.app/ (documentation coverage)
Suggested Solution
fileCommented (match "@" maybe)      /          all files

I was sure this had been brought up before, but I can't seem to find the issue....
This would be a neat feature to have, but just matching on @ won't be very helpful. Ideally this feature should report doc comments / documented members for each file. (Even better check for @param & such)
I think it should be fairly straightforward, it would probably be best to implement it as a plugin first so that it can be disabled to avoid a performance hit for those not interested in the information it reports.

just one thing : just typing doc coverage nodejs on google : it's a shame. why they do doc cov on angular project and not for typescript ? 👎
For my big project doc coverage is highly valuable , see which file dont have doc for me : it save me ....
Imagine, you have 10K of code and 100? files of angular or react project or whatever ... and you want doc the application, you just run coverage and see what file missed...
I keep looking for this plug in , when thats available keep me notify please 👍, that's awesome 🥇

Closing this as it should really be implemented as a plugin first, and should probably remain as a plugin so that we avoid the performance hit of calculating this. If you (or anyone) implements this, please post here to promote it :)


❓ [Question]: Parameter:video_duraation is null

Your Question
ERROR: [generic] None: Unable to download webpage: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)> (caused by URLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)')))
Failed getting duration from the following video/audio url/path using yt_dlp. ERROR: [generic] None: Unable to download webpage: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)> (caused by URLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)')))
Error executing command using ffprobe.
The url/path https://rr3---sn-ipoxu-umbk.googlevideo.com/videoplayback?expire=1690303487&ei=n6e_ZLXqI9Ti2roP1uCGqAQ&ip=<IP_ADDRESS>&id=o-APMQx_6sqjVLZ7nVsL5O9aMrwU4IP0RWCD_osD2GKMpk&itag=335&source=youtube&requiressl=yes&mh=ww&mm=31%2C29&mn=sn-ipoxu-umbk%2Csn-un57enez&ms=au%2Crdu&mv=m&mvi=3&pl=20&initcwndbps=1058750&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=463772648&dur=545.611&lmt=1629834060752995&mt=1690281456&fvip=1&keepalive=yes&fexp=24007246%2C51000012%2C51000022&beids=24350017&c=IOS&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgIjOF0-ENyQWUgq_IFMMleqOzt0vnUNXJ8igDz7E55PwCICtv472UOCFm1quOBHt2QMmHAMo2D9nj1LDaurl4S0wH&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAKWtvcOreQmadDAtLm33voGyqfg487yrE6ZkJMC9V6dKAiEAjL3I8VWtJQX8Bai2HN6drjFqDDVzzg_OwasK-wSW0dI%3D does not point to a video/ audio. Impossible to extract its duration
Step 9 _prepareBackgroundAssets
{'voiceover_audio_url': '.editing_assets/facts_shorts_assets/34b661c45b294808a1f2ac1e/audio_voice.wav', 'video_duration': None, 'background_video_url': 'https://rr3---sn-ipoxu-umbk.googlevideo.com/videoplayback?expire=1690303487&ei=n6e_ZLXqI9Ti2roP1uCGqAQ&ip=<IP_ADDRESS>&id=o-APMQx_6sqjVLZ7nVsL5O9aMrwU4IP0RWCD_osD2GKMpk&itag=335&source=youtube&requiressl=yes&mh=ww&mm=31%2C29&mn=sn-ipoxu-umbk%2Csn-un57enez&ms=au%2Crdu&mv=m&mvi=3&pl=20&initcwndbps=1058750&vprv=1&svpuc=1&mime=video%2Fwebm&gir=yes&clen=463772648&dur=545.611&lmt=1629834060752995&mt=1690281456&fvip=1&keepalive=yes&fexp=24007246%2C51000012%2C51000022&beids=24350017&c=IOS&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgIjOF0-ENyQWUgq_IFMMleqOzt0vnUNXJ8igDz7E55PwCICtv472UOCFm1quOBHt2QMmHAMo2D9nj1LDaurl4S0wH&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAKWtvcOreQmadDAtLm33voGyqfg487yrE6ZkJMC9V6dKAiEAjL3I8VWtJQX8Bai2HN6drjFqDDVzzg_OwasK-wSW0dI%3D', 'music_url': 'public/Music joakim karud dreams.wav'}

same problem.

I am experiencing a similar issue.
ERROR: [generic] None: '.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav' is not a valid URL. Set --default-search "ytsearch" (or run yt-dlp "ytsearch:.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav" ) to search YouTube Failed getting duration from the following video/audio url/path using yt_dlp. ERROR: [generic] None: '.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav' is not a valid URL. Set --default-search "ytsearch" (or run yt-dlp "ytsearch:.editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav" ) to search YouTube Error executing command using ffprobe. The url/path .editing_assets/content_translation_assets/cf26faba1f7744e8b0f0d0e7/translated_3_English_spedup.wav does not point to a video/ audio. Impossible to extract its duration Generating translated audio: 3it [00:12, 4.10s/it] Error File "/content/ShortGPT/gui/video_translation_ui.py", line 55, in translate_video for step_num, step_info in content_translation_engine.makeContent(): File "/content/ShortGPT/shortGPT/engine/abstract_content_engine.py", line 71, in makeContent self.stepDict[currentStep]() File "/content/ShortGPT/shortGPT/engine/content_translation_engine.py", line 74, in _generate_translated_audio translated_audio_blocks.append([[t1, t1+translated_duration], final_audio_path])

Testing ShortGPT locally on Ubuntu 23.04 resulted in encountering the same error as mentioned earlier.


Build acceptance test for admin.query

In order to effectively use the no missing translations test, we need to make sure that every page is visited during acceptance tests.
This issue tracks the missing admin.query acceptance test
for ember new commers the value some.route is the route that's missing you can find them under router.js

i will do this

@billybonks we should remove this route.  originally I was using it as a debug tool to query couchdb, but I think the route and corresponding files should be removed at this point.


Reset cannula age (CAGE) in Nightscout upon filling cannula

Is your feature request related to a problem? Please describe.
The CAGE pill in Nightscout currently requires a manual entry of a "Pump Site Change" treatment event. I feel like it's safe to assume a site change has occurred when a cannula is filled. A toggle value in preferences.json could be added (defaulted to true) for the few people where this is not the case.
Describe the solution you'd like
When a cannula filling has been detected, a "Pump Site Change" event should be sent to Nightscout using the same timestamp as the cannula filling.
Describe alternatives you've considered
A work-around using IFTTT and Google Sheets has been described in https://github.com/nightscout/cgm-remote-monitor/issues/3490

Have you looked into how exactly this should be done? Which exact pumphistory record denotes "when a cannula is filled"? Would you want something in oref0 ns-loop to create a corresponding "Pump Site Change" treatment when it sees that record and upload them both to NS? Or something else?

@scottleibrand I'm thinking a "Fixed Prime" >0 would indicate filling the cannula. I have a Medtronic 722, so I don't know if the options are named or show up different for other pumps. I'm not too familiar with all the moving parts of openaps yet to know where the functionality would be implemented, but using ns-loop as you described makes sense.

So if you wanted to implement it that way, you could create a new preference called something like "prime_indicates_site_change", and then add code to check for that preference, and if it's present, run a script that parses pumphistory.json for primes without a corresponding "Pump Site Change" event and generates the corresponding record when missing. The closest thing we have to that today is probably the "rewind resets autosens" preference.

FWIW we sometimes fill the reservoir without changing the cannula, so there’s no 1:1 correlation to this event and cannula actually being changed so I don’t think this should not be relied on as a proof

It should definitely be a preference since people's site-change behaviors differ. Not sure if it should default to true or false. Or maybe we could piggyback on the existing rewind_resets_autosens preference?

@sulkaharo The same condition would apply for a battery change; a rewind and prime is required, but the cannula fill is not. At least for the 722, the fixed prime seems to only be used for filling a cannula, whereas the manual prime is used for the cases you and I brought up. Each type of prime is listed separately, which is why I was thinking to use the fixed prime and make it a preference. Are there any other patterns to consider during development of this?

without a corresponding "Pump Site Change" event and generates the corresponding record when missing.

@scottleibrand @sulkaharo
Being new to contributing to oref0 (and still learning node), could one of you answer a couple questions to help me get started:

Where would I check for the corresponding "Pump Site Change" event?
Where and what kind of script (js or sh) would I create?
Is there an example of the respective kind of script I can look at to show me how to create new events that get sent to NS?

@inventor96 FWIW - I have used fixed prime for things other than priming a new cannula, because that this is the only way to get a measured amount of insulin out of the pump without oref0 tracking it. e.g. If I was disconnected from the pump for a while and the rig does not know that I did not receive the insulin.

I have used fixed prime for things other than priming a new cannula

@straykatz Is there combination of specific events that indicate exclusively a new cannula? e.g. a manual prime followed by a fixed prime within 5 minutes?

^^^ that would be fair most of the time, but it isn’t. Like yesterday, while flashing multiple chips, I had 2 pumps out. The second/reserve pump had been left on, and had “emptied” the non-existing reservoir. In order to make it ready to be talked to by the new chip, I primed it with the infusion set of the production pump. If there would be more than a few minutes where the production pump was without reservoir, I would have used a small fixed prime on the production pump ...
I think those are rare cases, and I see a convenience benefit in not having to hit the shortcut to add the set change to Nightscout.
I personally would not be too worried about having a false set change in NS - if a set is bad, it’s bad, no matter the age, and most of the time the info would be correct.  Not sure if it would be ok for others, e.g. parents of kids who might hate to do a set change, but if you make that a pref that defaults to “turned off”, people can make up their mind. I would probably turn it on - I dislike the red color enough :-)

i'd hard coded this previously but updated to be optional preference. https://github.com/openaps/oref0/pull/1409


Fix: Use class keyword

This PR

[x] makes use of the class keyword where possible

Thank you, @chartjes!


Cancel button.

What if I want to add a cancel button?
ex. echo 'Cancelar';
just wondering.

just saw the combine and html types.


Deleted dependency detected

I'm a Cyber Security researcher and developer of PackjGuard [1] to address open-source software supply chain attacks.
Issue
During my research, I found that this repo is vulnerable to attack due to deleted dependency from the public PyPI registry.
Details
Specifically, file https://github.com/CPScript/ACE-Deface/blob/098ae09411112ad81f4b2d362046e7f647bd2695/version/requirements.txt lists sinchsms as one of the dependencies. However, it has been deleted from public PyPI. As such, an external bad actor can claim that name and register a malicious package, which will be then installed with pip install command, resulting in arbitrary remote code execution.
Impact
Not only your apps/services using https://github.com/CPScript/ACE-Deface repo code are vulnerable to this attack, but the users of your open-source Github repo could also fall victim.
You could read more about such attacks here<EMAIL_ADDRESS>Remediation
Please manually register a placeholder sinchsms package on PyPI immediately or remove sinchsms dependency from https://github.com/CPScript/ACE-Deface/blob/098ae09411112ad81f4b2d362046e7f647bd2695/version/requirements.txt to fix this vulnerability.
To automatically fix such issues in future, please install PackjGuard Github app [1].
Thanks!

PackjGuard is a Github app that monitors your repos 24x7, detects vulnerable/malicious/risky open-source dependencies, and creates pull requests for auto remediation: https://github.com/marketplace/packjguard

yeah, i get notifications about this vulnerability all the time but i have no time to fix it.

I'll fix it later, thanks! <3

I have removed such package from the file, if you find any more issues please make more issue requests! <3


readme change

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

@wiboris :  If you'd be so kind, let's go ahead and make the version bump to the Track 1 area of the central packages file.   We'll deal with any downstream breaks independently rather than try to catch them all upfront.   Other than a couple of exceptions, the T1 libraries are all end-of-life and no longer maintained.


Is defining inductive proofs on nested datatypes as tricky in Lean as it is in Coq?

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filed.

Specifically, check out the wishlist, open RFCs,
or feature requests.

Reduced the issue to a self-contained, reproducible test case.

Description
In Software Foundations Volume 2, Records: Adding Records to STLC it says,

Syntax and Operational Semantics
The most obvious way to formalize the syntax of record types would be this:
Module FirstTry.
Definition alist (X : Type) := list (id * X).
Inductive ty : Type :=
  | TBase : id → ty
  | TArrow : ty → ty → ty
  | TRcd : (alist ty) → ty.

Unfortunately, we encounter here a limitation in Coq: this type does not automatically give us the induction principle we expect: the induction hypothesis in the TRcd case doesn't give us any information about the ty elements of the list, making it useless for the proofs we want to do.
(* Check ty_ind.
   ====>
    ty_ind :
      forall P : ty -> Prop,
        (forall i : id, P (TBase i)) ->
        (forall t : ty, P t -> forall t0 : ty, P t0
                            -> P (TArrow t t0)) ->
        (forall a : alist ty, P (TRcd a)) ->    (* ??? *)
        forall t : ty, P t
*)
End FirstTry.

It is possible to get a better induction principle out of Coq, but the details of how this is done are not very pretty, and the principle we obtain is not as intuitive to use as the ones Coq generates automatically for simple Inductive definitions.

I'm just wondering if this is still an issue with Lean, especially given the info in the guide on nested inductive types and mutual recursion.
Steps to Reproduce
Here's an attempted start to exercise this behaviour, but I got a bit stuck with my proofs 😖
namespace test

  @[reducible]
  def fields (ℓ α : Type) :=
    list (ℓ × α)

  inductive type (ℓ : Type) : Type
    | nat {} : type
    | struct : fields ℓ type → type

  inductive expr (ℓ : Type) : Type
    | nat {} : ℕ → expr
    | struct : fields ℓ expr → expr

  section

    variables {ℓ : Type}

    inductive has_type : expr ℓ → type ℓ → Prop
      | nat {nv} :
          has_type (expr.nat nv) type.nat
      | struct_nil {} :
          has_type (expr.struct []) (type.struct [])
      | struct_cons {l e t efs tfs} :
          has_type (expr.struct ((l, e) :: efs)) (type.struct ((l, t) :: tfs))

    lemma expr_type_has_type :
        Π (e : expr ℓ), ∃ (t : type ℓ), has_type e t
      | (expr.nat nv) :=
          ⟨type.nat, has_type.nat⟩
      | (expr.struct []) :=
          ⟨type.struct [], has_type.struct_nil⟩
      | (expr.struct ((l, e) :: efs)) :=
          -- TODO: stuck here!! 🤷
          sorry

    lemma expr_type_has_type' :
        Π (e : expr ℓ), ∃ (t : type ℓ), has_type e t :=
      begin
        intros e,
        induction e,
          -- Not sure why, but the `case` tactic does not work here
          /- case expr.nat nv -/ {
            existsi type.nat,
            exact has_type.nat
          },
          /- case expr.struct a -/ {
            induction a,
              case list.nil {
                existsi (type.struct []),
                exact has_type.struct_nil,
              },
              case list.cons ef efs hht {
                admit -- TODO 🤔
              },
          },
      end

  end

end test

Versions
➜  lean git:(master) ✗ lean --version
Lean (version 3.3.0, Release)

macOS Sierra 10.12.6
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.

Here's how you can do it in Lean:
@[simp] mutual def type_of, type_of_fields
with type_of : expr ℓ → type ℓ
| (expr.nat nv) := type.nat
| (expr.struct []) := type.struct []
| (expr.struct ((l, e) :: efs)) := type.struct ((l,type_of e)::type_of_fields efs)
with type_of_fields : fields ℓ (expr ℓ) → fields ℓ (type ℓ)
| []            := []
| ((l, e)::efs) := (l,type_of e)::type_of_fields efs

lemma has_type_of : Π(e : expr ℓ), has_type e (type_of e)
| (expr.nat nv) := by simp; exact has_type.nat
| (expr.struct []) := by simp; exact has_type.struct_nil
| (expr.struct ((l, e) :: efs)) := begin simp, exact has_type.struct_cons end

lemma expr_type_has_type (e : expr ℓ) : ∃ (t : type ℓ), has_type e t :=
exists.intro (type_of e) (has_type_of e)

Some comments:

Because nested inductive types are encoded in terms of simpler inductive types in Lean, the equality type_of (expr.nat nv) = type.nat doesn't hold definitionally. Therefore, we need to use simp in the lemma. If you did both the definition and the proof in one go (as you did with the existential quantifier), you wouldn't need the simp (but my experience l.
There is probably a condition missing in has_type that efs have types tfs. If you add that condition, the lemma needs to be a mutual lemma using the same syntax as the mutual def.
You cannot use things like list.map when defining type_of_fields, because then the recursion compiler doesn't recognize it's a valid recursive call.

Riiight, so my proof inductive would look something like:
    mutual inductive has_type, has_type_fields
      with has_type : expr ℓ → type ℓ → Prop
        | nat {nv} :
            has_type (expr.nat nv) type.nat
        | struct_cons {efs tfs} :
            has_type_fields efs tfs →
            has_type (expr.struct efs) (type.struct tfs)

      with has_type_fields : fields ℓ (expr ℓ) → fields ℓ (type ℓ) → Prop
        | nil {} :
            has_type_fields [] []
        | cons {l e t efs tfs} :
            has_type e t →
            has_type_fields efs tfs →
            has_type_fields ((l, e) :: efs) ((l, t) :: tfs)

On a general note: For questions about using Lean, our mailing list and Gitter channel are more appropriate media than the issue tracker.


Allow modal close button to be hidden

[X] Changes have been thoroughly tested to not break existing functionality.
[X] New functionality has been documented or existing documentation has been updated to reflect changes.
[ ] Visual changes are explained in the PR description using a screenshot/recording of before and after.

Per my discussion with @zepfietje this adds an API to be able to hide the close button in modals. It can be hidden per modal or globally.

Thanks, @archilex!
Not sure about the naming yet, maybe something like modalCloseButtonHidden() would better match existing Filament APIs.
Looping in @danharrin as our native naming expert. 😄

@zepfietje Yeah I had that originally since it better reflects existing naming, but opted for this naming since it seems Filament naming usually reflects whatever state is usually true. But I'll do whatever you all prefer.

I see, @archilex.
Let's wait to hear what @danharrin thinks.

IMO, closeButton(false)?

Dan again with the awesome naming! 👏


Who's using this project?

If you're a consumer using this project, can you reply to this post so we can see how it's being used?
...I'm doing a quick survey of some of the projects listed on Maintainers Wanted to gauge activity.

We are using this with Angular 1.5 and Polymer 1.0. I think thats the obvious combination.

The same here. Polymer 1 with angular 1.5.

But, I now see the need for Angular 1.x and Polymer 2 support. Not sure how easy it would be to add that support here.

I added a small patch to this library to make it work with Polymer 2. I tested it with few paper-elements (2.0-preview branch) and they seem to be working. Here's the PR: https://github.com/GabiAxel/ng-polymer-elements/pull/64

updated code to work with ShadyDOM as well. PR still open.
https://github.com/jaichandra/ng-polymer-elements


Allow ack and busy messages

Adds an /ack endpoint for callees to signal to the caller that they have started ringing. A GCM message will be sent to the caller that indicates the call is ringing on the client. The caller will get more than one of these messages if there are multiple ringing endpoints.
/ack -> {type:ringing, calleeGcmId: id, roomId: roomName}
Also adds a metadata field to /decline (same idea as on /join) that is passed in the gcm messages that result. We can use this to auto-decline calls when the user is already in a call and include a reason back to the caller.
@jiayliu @tkchin

Updated with CR feedback, rebased on apprtc-t which includes jscs fixes.
@jiayliu PTAL

lgtm


refactor(language-server): reorganize the code structure

Isolate HybridMode-specific code, which helps improve code reuse issues with other IDEs integrating @vue/language-server.

I think that diagram is mostly for me, so I'd like to leave a big thank you here!


302 Redirection causing - Cannot read property 'destUrl' of null

What is your Test Scenario?

clicking on logout button results in 302 redirection and ultimately user is redirected back to login page.
What is the Current behavior?
TypeError: Cannot read property 'destUrl' of null
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent
     to the client
     at ServerResponse.setHeader (_http_outgoing.js:526:11)
     at ServerResponse.writeHead (_http_server.js:273:21)
     at RequestPipelineContext.sendResponseHeaders

Also The test cafe browser url is shown as at failure:
http://localhost:1337/03WvIUCEQ/about:error
This is happening while clicking on a logout button.
There is 302 redirection happening and ultimately user is redirected back to login page.
What is the Expected behavior?

I should be able to assert that user is navigated back to login page after logged out
What is your web application and your TestCafe test code?
Your complete test code (or attach your test files):

 await t.click(Selector('.left .button--secondary'));

Your Environment details:
testcafe - 1.8.4
OS - Mac Catalina
browser - chrome 81
Node - 12.16.3

This is the network tab after clicking Logout:

This is Network tab after clicking Logout

This information is insufficient to reproduce the issue. We would appreciate it if you share your project with us to demonstrate the issue. If you are unable to share your project here please send us a sample with the problematic part so we can research it in detail.


Cannot use $IMPORT_UNSAFE outside queries

When i try to use $DSL.$IMPORT in groovy layer it works without any problem. However $DSL.$IMPORT_UNSAFE does not - gives below error. Please provide the support for this.
groovy.lang.MissingMethodException: No signature of method: com.virtusa.gto.nyql.DSL.$IMPORT_UNSAFE() is applicable for argument types: (java.lang.String) values:

This function will be renamed to IMPORT_SAFE in v2 to correct its meaning.


sleep and wake-up problem

Hello,
I have some trouble with AT+SLEEP command. The module goes to appropriate sleep mode, but UART communication (on GPIO 16, 17) stops work correctly. Its obvious that modem sleep and light sleep modes AT+SLEEP=1, AT+SLEEP=2, AT+SLEEP=3 generate the same problem. I use GPIO2 connected to RTC to wake-up from light sleep.
Thank you,
Honzik

Hello, I tested UART hardware flow control AT+UART_CUR=115200,8,1,0,3, but it's not working. I have also used hardware flow control on esp8266 without problem. RTS, CTS is set on host processor in same settings as was on esp8266.
I have added flow control because I think, that the problem of bad UART communication after activating sleep mode could be
caused by no hardware flow control. After some tests I have to say, that AT+UART_CUR=115200,8,1,0,3 setting doesn't work.
Hardware configuration:
ESP32-SOLO-1 module
GPIO16 is RXD => TXD (on host MCU) - works!
GPIO17 is TXD => RXD (on host MCU) - works!
GPIO14 is RTS => CTS  (on host MCU)
GPIO15 is CTS => RTS  (on host MCU)
Thank you,
Honzik

Has anybody tried any sleep mode (from SLEEP=1 to SLEEP=3) or has anybody tried hardware (rts, cts) flowcontrol ? My ideas are exhausted. Please help, I can't continue in my IoT project without light-sleep and hardware flow control activated.
Thank you,
Honzik


fix(#320): full implementation of ngMocks.touch and ngMocks.change

closes #320

v11.10.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.


cuDNN version incompatibility

I get this every time I try to run it. I've tried like 100x ways to get the new cuDNN. I am using Miniconda, but nothing works. Any ideas?
RuntimeError: cuDNN version incompatibility: PyTorch was compiled  against (8, 5, 0) but found runtime version (8, 2, 1). PyTorch already comes bundled with cuDNN. One option to resolving this error is to ensure PyTorch can find the bundled cuDNN.

same problem here

@geekinchief22 @HMS97 I had a similar problem (cuDNN version error) and was able to fix it by doing the following:

Edit requirements.txt to unpin versions -- should look like this:wget
nemo_toolkit[asr]
transformers>=4.26.1
faster-whisper
. . .

Install this repo's requirements (pip install -r requirements.txt). For me, this replaced my PyTorch 2.1 with an older version.
Manually install a newer nightly PyTorch on top of the repo:pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu118

Thought I'd share this in case it helps you folk. I'm using the NVIDIA NGC PyTorch containers (23.04-py3) with driver version 525.85.05 (Ubuntu 22.04 as the host OS--the containers run Ubuntu 20.04). PyTorch is supposed to come bundled with CUDA/cuDNN, but I'm guessing that for me the error was coming from a version mismatch between the newer torch version I already had, and the older one the repo's requirements wanted to install.

I managed to solve the problem by removing the cudnn package that was installed in pip and torch automatically used the original cudnn installation that was installed using the official instructions


Authors/authorids cannot be removed from the submission revision stage

When author reorder is selected, authors and authorids fields are always being added back to the invitation from the notes.
Allow addition and deletion of authors in the submission revision stage and try to remove those two fields.

add validation or don't add the authors/authorids if the reorder is selected but the fields were removed

Check if the fields were removed here: https://github.com/openreview/openreview-py/blob/44ab347d4dd6f2e8585cc45da47e483c18e3d18f/openreview/conference/invitation.py#L744


feat: add audio support with new Audio class and update documentation

[!IMPORTANT]
Adds Audio class for handling audio files, updates documentation, and provides examples for OpenAI's Chat Completions API.

Audio Support:

Adds Audio class in multimodal.py for handling audio files, supporting loading from URL or file path.
Implements from_url() and from_path() methods for Audio class.
Adds to_openai() method to convert Audio instances to OpenAI's API format.

Documentation:

New blog post openai-multimodal.md describing audio capabilities in OpenAI's API.
Updates multimodal.md to include Audio class details.

Examples:

Adds run.py in examples/openai-audio/ demonstrating audio processing with gpt-4o-audio-preview model.

Misc:

Updates __init__.py to include Audio in imports and __all__.
Bumps version to 1.6.3 in pyproject.toml.

This description was created by  for 5365bfdd6cefbc2ac270e1aee183102b83058546. It will automatically update as commits are pushed.

Should be ok once I update the version of OpenAI to latest


Unable to start, exit status 9

This is a fresh install of Ubuntu 18.04.
Git, docker, Python3 installed.
# theiapod https://github.com/magland/theiapod --port 3000
RUNNING: git clone https://github.com/magland/theiapod /tmp/theiapod_workspace_OYQJ9Y05SM
Cloning into '/tmp/theiapod_workspace_OYQJ9Y05SM'...
remote: Enumerating objects: 147, done.
remote: Total 147 (delta 0), reused 0 (delta 0), pack-reused 147
Receiving objects: 100% (147/147), 25.79 KiB | 1.03 MiB/s, done.
Resolving deltas: 100% (68/68), done.
:::::::::::::::::::::::config: {}
Using image: magland/theiapod:latest
RUNNING: docker pull magland/theiapod:latest
latest: Pulling from magland/theiapod
Digest: sha256:b9ba52ddbbca19cdbc5c15bf2da32f664920fa884d6f7e6665f8d99ffdffabe2
Status: Image is up to date for magland/theiapod:latest
RUNNING: docker run -p 3000:3000 -it -v /usr/local/lib/python3.6/dist-packages/theiapod/theiapod_init_in_container.py:/theiapod_init -v /tmp/theiapod_workspace_OYQJ9Y05SM:/home/project --network host -v /tmp:/tmp  magland/theiapod:latest /home/project 3000 root 0
WARNING: Published ports are discarded when using host network mode
+ PROJECT_DIRECTORY=/home/project
+ PORT=3000
+ USER=root
+ UID_=0
+ useradd -l -u 0 -G sudo -md /home/root -s /bin/bash -p root root
useradd: user 'root' already exists
Traceback (most recent call last):
  File "/usr/local/bin/theiapod", line 65, in <module>
    main()
  File "/usr/local/bin/theiapod", line 31, in main
    docker_opts=args.docker_opts
  File "/usr/local/lib/python3.6/dist-packages/theiapod/impl.py", line 101, in theiapod
    _run_command_and_print_output(cmd)
  File "/usr/local/lib/python3.6/dist-packages/theiapod/impl.py", line 137, in _run_command_and_print_output
    execute(cmd.split())
  File "/usr/local/lib/python3.6/dist-packages/theiapod/impl.py", line 133, in execute
    raise subprocess.CalledProcessError(return_code, cmd)
subprocess.CalledProcessError: Command '['docker', 'run', '-p', '3000:3000', '-it', '-v', '/usr/local/lib/python3.6/dist-packages/theiapod/theiapod_init_in_container.py:/theiapod_init', '-v', '/tmp/theiapod_workspace_OYQJ9Y05SM:/home/project', '--network', 'host', '-v', '/tmp:/tmp', 'magland/theiapod:latest', '/home/project', '3000', 'root', '0']' returned non-zero exit status 9.

What could be the problem?

You are running theiapod as root, you have to run it as a regular user with docker access.
Add your regular user to the docker group : usermod -aG docker YOUR-USER-HERE
Logout and log back in, now you can start theiapod (don't start it with sudo)


Cosmetic Settings: Random Tunic Colors & Form Colors for MM

This is for fuuuurther in the future but people love their cosmetics and so random tunic colors is probably the easiest one that could be implemented (relatively speaking?) Kokiri Tunic, Goron Tunic, and Zora Tunic each being able to be a random, different color with their own individual drop-down to either choose a color or Random from the list of colors (or just a True Random color). Trying to keep it similar to OOTR's cosmetics.
And the same applying to MM Link where MM Link's tunic is a different color, Deku Link's tunic, Goron Link's tunic, Zora Link's tunic, and Fierce Deity's tunic. See MMR for those.
Super low prio just putting it here.

This was basically done two months ago, closing.


Create Schematron XSLT in output dir

Schematron XSLT is created in the same folder as the Schematron file, which is annoying because:

Creating a file in a fixed path interferes multi-threading
You need write access to the Schematron file directory even if the output directory is specified (TEST_DIR (CLI) or xspec.dir(Ant))

This pull request fixes the problem by these changes:

Patch the built-in Skeleton Schematron implementation at run time and inject @xml:base
Create Schematron XSLT in the output dir

Schematron implementation is not patched if it is provided externally (via SCHEMATRON_XSLT_COMPILE (CLI) or xspec.schematron.preprocessor.step3 (Ant)). In that case, it is the provided implementation's responsibility to handle the base URI. For example, SchXslt seems to work with a test case just fine.
Commits

789ceb47f091c0484cbbd72b3ba6804d15670421 updates Bats tests to describe the new expected behavior
55c8c830a17c77517d817705f0a636580f4b4485 updates CLI and Ant to create Schematron XSLT in the output dir
3a14a5a36acf2709ca881db87625b78494ae303c updates CLI to set SCH_PREPROCESSED_XSL_URI from an absolute path, because TEST_DIR may be a relative path
6d26df13dce88adfb1d7763d29cbd1a7bcd292fc updates Ant not to delete Schematron XSLT at cleanup, because the file is now a part of xspec.dir
4ebb3c6baa92fc78e44ab63d20a1526ab01c6e8c updates CLI to use Schematron XSLT URI instead of its native file path, because the native file path is no longer necessary
206b532c4de889a163bb5eac0b8559985f7d63a0 updates CLI to rename sch-file-path.xsl to locate-schematron.xsl, because it no longer generates a native file path
d097a97952cc806464c89f285a619ec9962a7b2f updates an Ant module to reuse the corresponding CLI module
07520da3b8c1b086d0061c7278e2ada4f5e8dfbe  patches the built-in Skeleton Schematron implementation at run time and injects @xml:base
e9565ee30e3fc9a092badd41557fe2aaf0f74b33 updates the end-to-end test to specifically normalize Schematron @stylesheet in the result XML report
33f9a9faf5032a4c92a23c9944d116f5cfb790eb updates the expected result of the end-to-end test

The original implementation places the complied XSLT in the same folder as the Schematron so that any relative path references in the Schematron work correctly. It looks like this has been accounted for through xml:base. I'll try to take a closer look soon.

When validating a document using a Schematron containing a relative URI, Oxygen seems to create [tmp]/OxygenXMLTemp/schematron-017.sch123456789.xsl and set xsl:stylesheet/@xml:base in that file, which is apparently done by [Oxygen installation]/frameworks/schematron/impl/iso_schematron_skeleton.xsl line 615 or 632.
So I guess this way is practically a viable solution.


Inconsistencies when attacks have two damage rolls

There are several cases where, whenever an attack has two different damage rolls, the second type is not formatted correctly. An example is this Bite attack of the Ancient Blue Dragon:
      {
        "name": "Bite",
        "desc": "Melee Weapon Attack: +16 to hit, reach 15 ft., one target. Hit: 20 (2d10 + 9) piercing damage plus 11 (2d10) lightning damage.",
        "attack_bonus": 16,
        "damage": [
          {
            "damage_type": {
              "name": "Piercing",
              "url": "/api/damage-types/piercing"
            },
            "damage_dice": "2d10",
            "damage_bonus": 9
          },
          {
            "type": "lightning",
            "dice": "2d10",
            "bonus": 0
          }
        ]
      },

This should be:
      {
        "name": "Bite",
        "desc": "Melee Weapon Attack: +16 to hit, reach 15 ft., one target. Hit: 20 (2d10 + 9) piercing damage plus 11 (2d10) lightning damage.",
        "attack_bonus": 16,
        "damage": [
          {
            "damage_type": {
              "name": "Piercing",
              "url": "/api/damage-types/piercing"
            },
            "damage_dice": "2d10",
            "damage_bonus": 9
          },
           {
            "damage_type": {
              "name": "Lightning",
              "url": "/api/damage-types/lightning"
            },
            "damage_dice": "2d10",
            "damage_bonus": 0
          }
        ]
      },

Nice catch!

Fixed in #155

Ah, #155 actually contained a fix for another inconsistency that I found in the Imp damage table not being a list, not this one. I did not have time to make a pull request for this yet, so this should still be open.

Whoops! Reopened!

#164 handles the rest of this!


MTS150 Not ignored with active "Ignore HK Native"

Please explain your feature request in a one or two sentences.
Please add the MTS150 thermostat to the "IgnoreHKNative" list.

Is your feature request related to a problem? Please describe.
MTS150 thermostat is showing twice in HomeKit app, once added by the meross hub, once by homebridge.

Any particular Meross devices that this relates to?
MTS150 via MSH300HK
Hardware Version 4.0.0
Firmware Version 4.5.23

Thanks for your issue, closing this as a similar issue exists here:
https://github.com/bwp91/homebridge-meross/issues/482

Sorry, somehow missed that one...

Idem


[AKS] BREAKING CHANGE: az aks create: Remove deprecated parameter --docker-bridge-cidr

Related command

az aks create
Description

This field was deprecated in newest api so now getting this warning with every create
docker_bridge_cidr is not a known attribute of class <class 'azure.mgmt.containerservice.v2023_06_01.models._models_py3.ContainerServiceNetworkProfile'> and will be ignored
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

AKS

Could you please fix these CI issues?

Marked as draft, as this is a breaking change, reschedule to the next breaking change window (next Build Event sprint).


Natvis: are multi-dimensional arrays supported in gdb natvis?

Hello,
I have a natvis to visualize a 2D array that works perfectly in VisualStudio 2019.
The same natvis file on VSCode 1.43.0 in Ubunutu, using gdb is not so happy.
Can you tell me if multi dimensional array capability is supposed to work using MIMode: gdb?
I'll be glad to work up a full minimal-working-example if this is supposed to work, but for now, here's the Type definition from my natvis that works on VStudio, but not on VSCode/gdb
  <Type Name="PhysBAM::ARRAYS_ND_BASE<PhysBAM::VECTOR<*,2>>">
    <DisplayString>{{ [({domain.min_corner.x},{domain.min_corner.y}),({domain.max_corner.x},{domain.max_corner.y})] }}</DisplayString>
    <Expand>
      <ArrayItems>
        <Direction>Forward</Direction>
        <Rank>2</Rank>
        <Size>((int*)&counts)[$i]</Size>
        <ValuePointer>($T1*)base_pointer</ValuePointer>
      </ArrayItems>
    </Expand>
  </Type>

Thanks in advance!
-Eric.
View in VSCode (not so good):

View in Visual Studio (very nice!):

@paulmaybee Is this something that is supported in our MIEngine's natvis implementation?

@pieandcakes Multi-dimensional array are not currently supported.

Thanks for letting me know...saves me the trouble (for the time being) of trying to debug something that isn't meant to work.
Do you have any idea of where this support ranks in terms of priority, difficulty, mi-support, etc? Is this something that is 'likely to happen' or 'wishful thinking'?

I guess more the latter.
The are more pressing issues with natvis than this.

Fixed with #1346

The fix is available with 1.13.1: https://github.com/microsoft/vscode-cpptools/releases/tag/v1.13.1


Update se-webring.js

To add your site to the webring, you must be a current student or an alum of the undergraduate Software Engineering program at the University of Waterloo (Waterloo, ON, Canada).
Full Name: Jessica Lui
Cohort Year: 2024
Full website URL: https://jessicalui.me/
So we know you're human:
LinkedIn or a similar profile: https://www.linkedin.com/in/jess-lui/
Don't forget to also add your entry to the end of the allSites array in the se-webring.js file (name, year, personal website), and to add the add site label to your pull request. Assign as a reviewer either @simcard0000 or @janakitti.

Thanks! And get your friends to add their sites too :)


Exercise #13

Hi @mdevils!
First of all, thanks for the awesome exercises and wonderful annotations before each of them :)
Could you please take a look at my solution for 13th? Although all tests pass and there are no anys in the code, I wonder if there are better solutions.
One more question: if we use array includes method for $in query (line 49), I see a TS error:
Argument of type 'T[keyof T]' is not assignable to parameter of type 'T[string]'.
  Type 'keyof T' is not assignable to type 'string'.
    Type 'string | number | symbol' is not assignable to type 'string'.
      Type 'number' is not assignable to type 'string'.ts(2345)

What is the best way to handle it?

Your solution looks good. Good job. Not sure about includes in this case. There is type transformation for criteria which I cannot explain.

Ok, thanks. I'm closing this PR to hide spoilers from newcomers 😉


feat: add yinheli/sshw

https://github.com/aquaproj/aqua-registry/pull/7631 yinheli/sshw: ssh client wrapper for automatic login
$ aqua g -i yinheli/sshw

How to confirm if this package works well
Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.
Command and output
$ sshw --help
Usage of /Users/username/.local/share/aquaproj-aqua/pkgs/github_release/github.com/yinheli/sshw/v1.1.1/sshw_v1.1.1_darwin_amd64.tar.gz/sshw:
  -help
        show help
  -s    use local ssh config '~/.ssh/config'
  -version
        show version

If files such as configuration file are needed, please share them.
$ cat .sshw.yaml
- name: foo server
  user: foo
  host: hoge.fuga.ssh.com
  port: 22
  keypath: /path/to/key.pem

$ sshw
Use the arrow keys to navigate: ↓ ↑ → ←  and / toggles search
✨ select host
  ➤ foo server<EMAIL_ADDRESS>
Reference

README

https://github.com/yinheli/sshw/blob/master/README.md

Thanks!

Released. https://github.com/aquaproj/aqua-registry/releases/tag/v3.89.0


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


event subscriber to OnBeforeHandleCustomIntegrationTableMapping doesn't compile

The event subscriber to OnBeforeHandleCustomIntegrationTableMapping doesn't compile. It needs these local variables
    IntegrationFieldMapping: Record "Integration Field Mapping";
    CDSWorker: Record "CDS Worker";
    Employee: Record "Employee";

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

ID: 540cdab0-3f9b-3bca-3290-a55672dcd878
Version Independent ID: 738291c4-afe9-fab0-dedb-9888b5e178a2
Content: Customizing an Integration with Microsoft Dataverse - Business Central
Content Source: dev-itpro/administration/administration-custom-cds-integration.md
Service: dynamics365-business-central
GitHub Login: @bholtorf
Microsoft Alias: bholtorf

Thanks for catching this and for the nice contribution. The topic is fixed and will be available with the next doc refresh.


Use add/remove buttons instead of 13 input fields

Instead of having 13 input fields, you should be able to add/remove as many feeds as you whish.

hi. After filling the lines and "store" them, 5 new free lines are added. :-D

That's great, thank you. Still, using add/remove buttons would increase the usability.
Or maybe do it like this: Present only one field, as soon as the last field isn't empty, add another field and as soon as the second last field and the last one are empty, remove the last input field.

a (+) button is a good idea. I will try do do that :-D