Slicing array[:0] fails with parallel=True in 0.41

Reporting a bug

[X] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[X] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

The following code throws an error with version 0.41. It passes in 0.40.1. It also passes in both versions if we set parallel=False
from numba import njit
import numpy as np

@njit(parallel=True)
def g():
    a = np.zeros(10, dtype=np.int32)
    a[:0] += 1

g()

Traceback (most recent call last):
  File "numba_lol.py", line 9, in <module>
    g()
AssertionError: Sizes of a, $0.17 do not match on numba_lol.py (7)

Thanks for the report. I think this is a duplicate of a known bug https://github.com/numba/numba/issues/3461


feature: operator-less remote actions

Did you check the docs?

[X] I have read all the flash.nvim docs

Is your feature request related to a problem? Please describe.
Remote requires operator pending, this is useful if the edit operation is an operator but there are non-operator operations that are also useful that can't be performed that add some friction to editing, such as the inability to undo a remote operation easily.
Describe the solution you'd like
I would like to be able to perform remote D and u style operations. For example, often after performing a remote delete in another window, that I then want to undo, I have to move to that window for the undo to work. But a more natural movement would be r<match>u to remotely undo. Or for example in the following where I've placed labels under each line to show the movement I would like to make:
opt_a, -- Option A
     [ -a]
opt_b,
     [ -b]

Would be useful to be able to delete the comment with r -aD to delete to the end of the line on opt_a.
Another example might be that I have a macro I want to apply at a remote location, rab<label>@a. There are many other things like this that can't be done without operators I think.
Describe alternatives you've considered
There's nothing quite like this, except perhaps avy in the Emacs world which allows defining custom actions. Avy works slightly differently to flash so allows for this as it is limited to two characters only, so the third character can always be an action (where the label set has defined actions removed), for example jumping to ab and performing an action in Avy in emacs would involve:
sabD<label>
Which works very well.
Additional context
I think the main difficulty in implementing this is how to detect when to jump back when the action is rather arbitrary because flash allows unlimited characters, in avy your input is buffered until you hit the label char, so for example a jump might involve a selection and an edit: rvaby to yank a remote block which feels more natural than yr...vab ( which doesn't work anyway with current flash, though I realise is rather a synthetic example as you can just yr...ab ) but detecting the right moment to jump back is difficult, maybe impossible.
Anyway just spitballing ideas here because remote editing feels so close to being as powerful as Emacs avy, but not quite there, and flash has a great implementation to build around.

Why don't you just use s<match>u<c-o>?

Hmm, I mean that's definitely a fair answer, but by that same thought what's the need for having remote actions at all as I can dos<match>dd<c-o> over dr<match>d. Your point is valid but it applies to existing remote actions I would've thought as well. The remote flow feels more fluid, so I'm just thinking of ways it could be more expansive.

@folke Sweet, that set me along the right path to get exactly what I want using augroups, it relies on TextChanged and I'll extend it to Yank based events too which should cover all the use cases I personally can imagine needing, actually seems to work for exactly anything I would need. Any remote operation will result in a modification or a yank, so it's perfect:
keys = {
    { 'r', mode = { 'n' }, function()
        local state = require 'flash'.jump {
            remote_op = { restore = false }
        }

        vim.api.nvim_create_autocmd('TextChanged', {
            once     = true,
            buffer   = vim.api.nvim_get_current_buf(),
            callback = function(ev)
                state:restore()
            end
        })
    end, 'Flash Remote'}
}


How long the cache will live as default and how do I change it ?

Is this question already answered somewhere ?
Thanks

There is no built-in logic that clears cache under some circumstances. However, there are ways to use API to clear cache that you can use in your application.

@vianhanif or you can use custom cache like lru-cache https://github.com/facebook/dataloader#custom-caches


[WIP] [EUWE] Add missing ownership_form_fields route for miq_template

Add missing ownership_form_fields route for miq_template
Links
https://bugzilla.redhat.com/show_bug.cgi?id=1448073

@miq-bot add_label ui, bug

@dclarizio or @h-kataria  - please review

@lgalis is this change not needed on 'master'?

LGTM

@simaishi  - no, this change is for euwe only

Closing as https://github.com/ManageIQ/manageiq-ui-classic/pull/1353 was a clean cherry-pick to Euwe branch.


The storageFormat property of Security_Log_Profile does not support spaces in string

Environment

Application Services Version: 3.43.0
BIG-IP Version: <IP_ADDRESS>

Summary
When sending an AS3 declaration for a network Security_Log_Profile, if the storageFormat property is a user-defined string that contains one or more spaces, AS3 returns an error.
Steps To Reproduce
Steps to reproduce the behavior:

Submit the following declaration:

{
  "schemaVersion": "3.43.0",
  "class": "ADC",
  "myTenant": {
    "class": "Tenant",
    "myApplication": {
      "class": "Application",
      "network_log_profile": {
        "class": "Security_Log_Profile",
        "network": {
          "logRuleMatchAccepts": true,
          "storageFormat": "${date_time} ${bigip_hostname} ${acl_policy_name},${acl_policy_type},${acl_rule_name},${action},${context_name},${context_type},${dest_ip},${dest_port},${drop_reason},${protocol},${sa_translation_pool},${sa_translation_type},${src_ip},${src_port},${translated_dest_ip},${translated_dest_port},${translated_ip_protocol},${translated_src_ip},${translated_src_port},${translated_vlan},${vlan}"
        }
      }
    }
  }
}

Observe the following error response:

{
  "code": 422,
  "host": "localhost",
  "message": "declaration failed",
  "response": "\\\"${bigip_hostname}\\\" unknown property",
  "runTime": 1906,
  "tenant": "myTenant"
}

Expected Behavior
AS3 should be able to handle spaces in the storageFormat string.  When editing the string in the Web UI, spaces are accepted and the log format includes spaces as well.
Actual Behavior
AS3 declaration fails
Work-around
None

Thank you.  In order to prioritize and understand the issue better, please reach out to us at<EMAIL_ADDRESS>

Closing as this has been released in AS3 3.48.0


[bug] huge issue about QuestionResult.valueIdentifier

as defined in the plugin answer creation process:
TextChoice(text: answer.text, value: answer.id);
i think the TextChoice value may vary from the TextChoice text
So i think the QuestionResult.valueIdentifier should equal to TextChoice.value not as it is now Textchoice.text

Yes fpr the value identifier the result should be used.
-> Will be planned in for the next release.


Getting Rid of  {"meta":{}} in logger

Please tell us about your environment:

_winston version?

[ ]<EMAIL_ADDRESS>

node -v outputs:
Operating System? macOS
_Language? NODE JS

What is the problem?
I set up the logger as follows. I do not want meta in my output but I get it anyways despite setting it to false.
export const expressLogger = expressWinston.logger({   colorize: true,   ignoreRoute(req) {     return req.method === 'OPTIONS';   },   meta: false,   msg: 'HTTP {{res.statusCode}} {{req.method}} {{req.url}} {{JSON.stringify(req.body)}}',   winstonInstance: winston.createLogger({     level: 'info',     transports: process.env.NODE_ENV !== 'test' && [       new winston.transports.Console({         format: winston.format.combine(winston.format.colorize(), winston.format.simple())       })     ]   }) });
What do you expect to happen instead?
Since I set meta: false I would expect that in my  logger output I would not get {"meta":{}} at the end of  my message. My logger produces
info: HTTP 200 POST /application/fetch-app-data {"_id":"5c69cab1dbff37b0c6d71ae6","endDate":"2019-02-19T07:59:59.999Z","startDate":"2019-01-20T08:00:00.000Z"} {"meta":{}}

Set option metaField: null.


[AUTOPATCHER-EXTENDED] Patched opusfile to address CVE-2022-47021

[AUTOPATCHER-EXTENDED] Patched opusfile to address CVE-2022-47021
Upgrade pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=415272&view=results
AMD64 build -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=415277&view=results
ARM64 build -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=415278&view=results

Rebuild with dependents: https://dev.azure.com/mariner-org/mariner/_build/results?buildId=428682&view=results


A prepare script, making it easy to install Prism from outside of NPM.

The prepare script is the NPM-standard way in which outside-of-NPM packages can be build, for example with installed from a git location.
After merging this into the main branch (currently master), people will be able to do this:
npm install prismjs@github:PrismJS/prism

If they want to try it right now before v2 is merged (if this is merged into v2), they can do this:
npm install prismjs@github:PrismJS/prism#v2

Without this, such installations are not possible.
What NPM does during the install process is

it clones the specified repo,
checks out the specified git ref (f.e. the v2 in #v2),
installs dependencies including dev dependencies,
runs the prepare script if any (the prepare script will always have dev dependencies available to it),
and finally packages the result in the same way as npm pack such that build outputs are included in the final package that gets installed into the user's node_modules

This would be a way for people to easily test v2 right now and provide feedback.

By the way, now that I've made this pull request, I can install and test this like so:
npm install prismjs@github:trusktr/prism#patch-1

Will take it for a spin soon (ironing out a few PRs in Docsify first, then we're due for a Prism update)

@JaKXz Here's an example that installs Prism from git, and then imports and initializers a new Prism() and calls .highlightAll():
https://github.com/trusktr/prism-v2-test/tree/main
There's no syntax highlighting, and the docs aren't updated to describe how to use v2 yet, so I'm not yet sure how to get syntax coloring to be applied.
The build output also doesn't have type declaration outputs yet, so there wasn't yet intellisense or type checking in VS Code when I imported Prism. It guesses from the plain JS output:

Happy to help iron these details out.
I also think at this point in time we don't need to ship legacy CommonJS. To avoid maintenance, I'd say let other people build to CommonJS if they need to, f.e. they can use Rollup for that, and we can otherwise support the ES Module reality that all JS engines and build tools support nowadays.

This change is now included in https://github.com/PrismJS/prism/pull/3704


Backport usage of Destination in CamelSource (#700) to release-0.10 b…

…ranch
Fixes #694 on 0.10.x
Proposed Changes

Same as #700

Release Note

/ok-to-test

/retest

/retest

/retest

no way today..

/test pull-knative-eventing-contrib-integration-tests

There is some change for the tests in the release-0.10 branch, please update your local release-0.10 and merge into this PR.

Thanks @chizhg, lionelvillard. It is be passing tests now.


Deep link - Creating a tx doesn't land in the Queue tab anymore

Description
Creating a tx takes you to what would be the "deeplink view" of the tx instead of the queue tab
Environment

Browser: -
Wallet: MetaMask
Safe: https://pr2974--safereact.review-safe.gnosisdev.com/app/rin:0x6bb36b84abCb0Db1c8E2CAe68677D28DF73D99DF/transactions/queue
Environment:

PR 2974 (rinkeby)

Steps to reproduce
Create a tx of any type, can be policy of 1 or 2, can be executed right away or not
Expected result
If the tx doesn't execute right away, the Queue tab is open and the tx is listed
If the tx executes right away still shows the queue tab, but it will end up in the history tab as success or failure
Obtained result
It shows the tx as if I used its deep link
Screenshots

This is an intended feature I wasn't aware about. closing this


Something seems to be mutating sqlalchemy expressions

Hey, thanks for all your work on this library! I'm looking into adding bigquery support to siuba--which makes heavy use of sqlalchemy--and ran into a small hitch with expressions producing different SQL when run multiple times. AFAIK these expressions should be immutable at this level of use, so I wonder if pybigquery is doing some kind of mutation under the hood?
Environment details

pip --version
pip 18.1 from /Users/machow/.virtualenvs/siuba-bigquery/lib/python3.6/site-packages/pip (python 3.6)

python --version
Python 3.6.8

pip show pybigquery
Name: pybigquery
Version: 0.6.1
Summary: SQLAlchemy dialect for BigQuery
Home-page: https://github.com/googleapis/python-bigquery-sqlalchemy
Author: The PyBigQuery Authors
Author-email<EMAIL_ADDRESS>License: UNKNOWN
Location: /Users/machow/.virtualenvs/siuba-bigquery/lib/python3.6/site-packages
Requires: sqlalchemy, google-cloud-bigquery, google-auth, future
Required-by:

Steps to reproduce
Run the following code to setup:
from sqlalchemy import create_engine
from sqlalchemy import Table, Column, String, MetaData
from sqlalchemy import sql

# note: I'm not sure how to mock a sqlalchemy engine, but we won't need
# to actually execute a query
engine = create_engine("bigquery://any-project-id-you-can-connect-to")

tbl = Table("my_dataset.my_table", MetaData(bind = engine), Column("some_col", String))

Note that running the following code returns a valid SQL query:
sel = tbl.select()

sel2 = sel.with_only_columns([{c.key: c for c in sel.inner_columns}["some_col"]])
print(.select([sel2.alias()]).limit(5))

Output:
SELECT `anon_1`.`some_col` AS `anon_1_some_col`
FROM (SELECT `my_dataset.my_table`.`some_col` AS `some_col`
FROM `my_dataset.my_table`) AS `anon_1`
 LIMIT %(param_1)s

However, if we re-run only the last two lines, it produces a new (invalid) query, which prefixes column names with `anon_1`.`my_dataset`:
sel2 = sel.with_only_columns([{c.key: c for c in sel.inner_columns}["some_col"]])
print(.select([sel2.alias()]).limit(5))

output
SELECT `anon_1`.`my_dataset`.`my_table_some_col` AS `anon_1_my_dataset_my_table_some_col`
FROM (SELECT `my_dataset.my_table`.`some_col` AS `my_dataset_my_table_some_col`
FROM `my_dataset.my_table`) AS `anon_1`
 LIMIT %(param_1)s

I wonder if it's related to the use_label attribute being set (https://github.com/googleapis/python-bigquery-sqlalchemy/issues/78), since it's mutating an element attribute.

Closing, since it looks like this was resolved when #78 was fixed :)


lens

Availability of lenses in the library? If so, which contract is philosophically preferred?
const profile = {
  name: "John Doe",
  age: 12,
  about: {
    interests: [
      {title: "JavaScript", priority_force: 10},
      //...
    ]
    //...
  }
}

// array notation
const getProfileInterests = lens(['about', 'interests']) // [...]
// string notation
const getProfileInterests = lens('about.interests') // [...]
// object dot notaion
const getProfileInterests = lens((data) => data.about.interests) // [...]

// another variant?

const profileInterests = getProfileInterests(profile)
// If the value is not found, what do we return? undefined or something else?

@URVL the idea of the lens is to provide getter and setter functions as arguments, not the path to reading data
// Getter and setter must be specified as arguments
const getProfileInterests = (data) => data.about.interests;
const setProfileInterests = (value, data) => ({ ...data, about: { ...data.about, interests: value } });
const profileInterestsLens = lens(getProfileInterests, setProfileInterests);

// Usage for example to extract a value using lens from any given object
const profile = {
  name: 'John Doe',
  age: 12,
  about: {
    interests: [
      { title: 'JavaScript', 'priority_force': 10 },
      //...
    ],
    //...
  },
};

const profileInterests = view(profileInterestsLens, profile);
// Output -> [ { title: 'JavaScript', priority_force: 10 } ]
const newProfile = set(profileInterestsLens, null, profile);
// Output -> { name: 'John Doe', age: 12, about: { interests: null } }

In other words - lens is a functional replacement for OOP getters and setters.
Differences:

lens is more generic than class. it works with any object, that follows a structure
you are applying a lens to an object
lens must not mutate data

What are you references here is not particularly a lens - it just a way to create a getter for nested objects

whether it is possible to apply partially:
lens -?
view -?
set -?

everything is curriable and compsoable

@URVL are you planning to implement lens and functions to operate with it?


Research generating code snippets from API documentation

Research alternatives for providing code snippets for APIs: ideas, potential packages.

Initial solutions include the following:

swagger-codegen
swagger-node-codegen


VoyagerController overriding issue

Version information

Laravel: v6.2
Voyager: v1.3.2
PHP: 7.2
Database: MySQL 8.0

Description
Overriding the VoyagerController leads to css not found.
Steps To Reproduce
1.Copy all the codes from VoyagerController.php to MyController.php
2. Added AppServiceProvider class in the register method.
$this->app->bind(VoyagerController::class, MyController::class);
Expected behavior
Expected to have a custom dashboard controller
Additional context
I want to pass some variable into the dashboard. It passes the variable value successfully. But, all the voyager css are gone.

Same as your other issue. Not a bug but a question.


Q: contributing to the project from windows

I am trying to contribute but it is more convenient for me to use a windows machine. However, many commands don't run. for e.x. npm run create-react-app fails as it tries to treat tasks as an npm module and not a directory where scripts can be found. npm run format fails as well. I also tried with git bash.
I am wondering if any contributors use a windows machine and if they have any tips they can share.
Other details
Windows 10
Node: v6.9.1
npm: 4.6.1

We know this is a pain point, and we would love pull requests that make the development better on Windows machines.

I will try to check if I can improve something there

@Dubes @Timer Once this PR #2309 is merged Windows users will be able to contribute.
I've been using tasks/cra.js from that PR on my Windows 10 machine and it's been working fine.

Closing as it has been aggregated in #2855


update Layer0 to read as PaaS as well as Performance

Layer0 can function as both a platform (in the case of completely-hosted jamstack applications) and/or a performance enhancer (eg. a non-Node.js-based site being fronted by Layer0's CDN). Updated the category listing to include Layer0 as a PaaS platform rather than just a performance optimization.

Thanks!


Type system

Replaces the previous type system with a new trait-based implementation (see execution/type-system). This required some modifications to existing operators. @srora and I can resolve conflicts tomorrow Feb 14.

Ready for merge to master


Switch to the usage of SemVer for the pyenv release tags

Just noticed (again) via OS X brew that you don't use SemVer for the pyenv releases itself. The current format makes it very hard to decide whether there's is a need to upgrade pyenv via brew upgrade or not.

display label of version string doesn't explain nothing. We don't have enough resource for such release engineering.

Dah it does. Which ressources do you need to switch the format of the version when tagging releases?
But it's your library and therefore your call.

There are only few people actively working, and we don't have enough slots to fullfill requests except pull requests. Luckily it' 2016 and we're on GitHub, anyone can prepare their own patch. We need  actual work efforts as PRs to make things better.

As far as I know it's not possible to do PRs for release tags and you would also externalise the release management of the library.
A few of the minor efforts you have to make for switching to SemVer is changing the release versioning format from vYYYYMMDD to vMajor.Minor.Patch when tagging releases and raising the SemVer partial version numbers meaningful.
You raise the major version number when introducing API breaking changes. The minor version number is raised when new features are added and the patch version number is raised when bugs are fixed.
Another minor effort is to also use the SemVer compliant versions in your CHANGELOG.md. — IMO not that much release engineering at all, plus more information revealing than time stamped release version numbers.


RSAA action-creator factories

Hello,
The below example is a quick whip-up, but if you have any suggestions for improvement please let me know. In my case, and I'm guessing in many others', it's common to send one 'entity' to the backend in a request (like an object's ID), so I made this nice little RSAA action creator to abstract away that functionality. The 'apiRequestObject' can be any of the other valid RSAA action properties besides 'body' and 'types'. I then use Javascript's convenient bind() method to make more specific action creators.
So what does everyone think about incorporating an action creator factory for RSAAs?
/**
 * Function for creating an RSAA action that concerns a certain entity. A lot of requests to the
 * backend have just one entity sent in the POST body of the request, so
 * this function abstracts away the entity and consolidates code.
 * Use the Javascript bind() function to make action creators for requests that take a certain entity.
 * @param entityName A string representing the name of the entity, to be used as the key in action payloads.
 * @param apiRequestObject Other RSAA data for the request besides 'body' and 'types'
 * @param fetchAction The name of the action to be dispatched for a waiting request.
 * @param successAction The name of the action to be dispatched for a successful request.
 * @param failureAction The name of the action to be dispatched for a failed request.
 * @param entity The entity object to be passed in the POST body of the request.
 * @returns {{}} The RSAA action constructed with the function parameters.
 */
export const entityRsaaActionCreator = (entityName,
                                               apiRequestObject,
                                               fetchAction,
                                               successAction,
                                               failureAction,
                                               entity) => ({
  [RSAA]: {
    ...apiRequestObject,
    body: JSON.stringify({[entityName]: entity}),
    types: [
      {
        type: fetchAction,
        payload: (action, state) => ({[entityName]: entity})
      },
      {
        type: successAction,
        payload: (action, state, response) => {
          if (response) {
            return response.json().then(({data}) => ({[entityName]: entity, data}))
          }
          else {
            return ({[entityName]: entity}); // if there's no response just return the entity
          }
        }
      },
      {
        type: failureAction,
        payload: (action, state, response) => ({[entityName]: entity})
      }
    ]
  }});

@agraboso Absolutely, see below.
My app is an admin UI for managing an organization's messaging service, similar to Slack. I have an ApiConfig.js file in the root of my app that maintains all of the URL's requests are made to, and it looks like:
const apiVersion = '/v1';

const BASE_URL = 'https://www.fakeurl.com/api' + apiVersion; // base URL for all requests

/**
 * Makes a standard config object for a specific request. Just replace the member of the type
 * array that corresponds to any action you might want to assign a payload to.
 * @param url the URL to be tacked on to the {@code BASE_URL} string
 */
const standardPostConfigFactory = (url) => ({
  endpoint: BASE_URL + url,
  method: 'POST',
  credentials: 'include'
});

// These are certain URLs for the API, we're writing the actual requests inside the actions in order
// to have a better form of verification. These are each paired with a method that defines what
// type of HTTP request is made.
export const apiRequestObjects = {
  // Auth endpoints
  LOGIN: standardPostConfigFactory('/auth/login'),
  LOGOUT: standardPostConfigFactory('/auth/logout'),
  AUTH_STATUS: standardPostConfigFactory('/auth/status'),
  // System calls for getting big payloads for the user
  GROUPS_GET_ALL: standardPostConfigFactory('/system/getgroups'), // gets all the user's Group objects
  USERS_GET_ALL: standardPostConfigFactory('/system/getusers'), // gets all the user's User objects
  MEMBERS_GET_ALL: standardPostConfigFactory('/system/getmembers'), // gets all the user's User objects
  // Group endpoints
  GROUPS_CLEAR: standardPostConfigFactory('/groups/clear'), // removes all users from the group
  GROUPS_NUKE: standardPostConfigFactory('/groups/nuke'), // nuke a group
  GROUPS_FIX: standardPostConfigFactory('/groups/fix'), // fix a group
  GROUPS_CREATE: standardPostConfigFactory('/groups/create'), // create a new group
  GROUPS_DESTROY: standardPostConfigFactory('/groups/destroy'), // destroy a group
  GROUPS_ADD: standardPostConfigFactory('/groups/add'), // add a certain user to the group
  GROUPS_EVAL: standardPostConfigFactory('/groups/eval'), // check for illegal members
  GROUPS_SHOW: standardPostConfigFactory('/groups/show'),
  GROUPS_ABOVE_CURRENT: standardPostConfigFactory('/groups/abovecurrent'),
  GROUPS_MEMBERS: standardPostConfigFactory('/groups/members'), // get all the members for a group
  // User endpoints
  USER_GET: standardPostConfigFactory('/users/get'), // get the user by User ID
};

My Redux state is then cut into slices, stored in their own directories, with RSAA actions tied to each endpoint. For instance, the /groups/nuke endpoint nukes a group, and takes only a group ID as a member of the POST body. The groups/mebers endpoint also only takes a group ID as a member of the POST body. So the function I posted above is used like this:
// Create the new action creator by binding it to the abstracted one
const groupEntityRsaaActionCreator = entityRsaaActionCreatorFactory.bind(this, 'group');

// Create another new action creator, again using bind()
const nuke = groupEntityRsaaActionCreator.bind(this,
  apiRequestObjects.GROUPS_NUKE,
  ActionTypes.GROUP_NUKE_FETCH,
  ActionTypes.GROUP_NUKE_SUCCESS,
  ActionTypes.GROUP_NUKE_FAILURE
);

I find this recipe to be very extensible. Please let me know what you think as I'd love to improve upon my existing implementation!

@nason I'm really interested in helping with a "recipes" section, as I only started loving the library as I found ways to consolidate my code. I also think it should be made more evident in the docs that chaining RSAA dispatches using the Promises returned from the dispatch() function call would be great.

I'm really interested in helping with a "recipes" section, as I only started loving the library as I found ways to consolidate my code.

@ckreiling awesome! I've been thinking about documentation in general, and think that some recipes or even example apps would be great additions.
Do you want to make a PR to kick this off?

I also think it should be made more evident in the docs that chaining RSAA dispatches using the Promises returned from Redux's dispatch() function call would be great.

Great point. I agree this should be in the docs.

is anything changing?

@geminiyellow I'd like to add a recipes section to the documentation. It's been awhile since I had a use-case for this project, but I loved using it when I did.
Let me know what you think. I want to create a recipes section demonstrating the use of higher-order functions in order to build action-creators for different entities.

@ckreiling  👍 , or you can create a new doc who's title is RSAA action-creator  or you can create a total new helper npm package.
i created one, edux-api-actions , but it is not very good.
so hope there is a official creator here.


Built-in SmartCard Reader

Not an issue. Just want to report the built-in smart card reader(Alcor AU9540) works out of the box after a usb remap to enable the HS06 port, using the native Mac OS smart card driver.  So if your computer has this option, it can be used for authentication purposes or even logging in using a smart card paired with your local account.
Official documentation from Apple itself: https://support.apple.com/en-hk/guide/deployment/depc705651a9/web

That's great news. Just to clarify you created a new USB map and removed the Sinetek-rtsx.kext? If you don't mind sharing the new USB mapping and I'll include it in the next EFI update. (Will save me from remapping.)
Thanks

@seven-of-eleven I haven't removed Sinetek-rtsx.kext nor delete the "rtsx_sleep_wake_delay_ms=1000" boot-args, that's to do with the SD card reader, unless there's anything I should worry about conflicting between the SD card reader and the Smart Card reader?
Here's the USB mapping for the smart card reader.
Keep in mind for machines without smart card reader, HS06 will just be left blank.
USBMap.kext.zip

My bad. I thought you were referring to the SD card reader. It makes much more sense to me now.
Thank you. I'll include it in the next release (coming next month with new OC version).


Container exits immediately

Followed the gude to run openvpn in a container. When I get to running the the container server the container exits and doesn't continue running with exit code 1.
Here is the relevant command: docker run -v $OVPN_DATA:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
Not sure if this is intended or if there is a mistake.

Turns out a kernel module wasn't loaded. The module was tun.


Investment table does not load

When I open a new scenario and try to load the investment table, the chart loading is stuck:

The console shows the following error message:

@DorinevanderVlies, do you know if this problem is fixed within the costs project? Is there anyone within the costs project that could pick this issue up? I remember from another issue that it was still up for discussion whether the investment table would stay in the model.

This table will be replaced by a data export with all investment and fuel costs.
As far as I was aware none of the changes of the flex projects have been merged yet.
We can decide not to fix this bug and wait for the changes in the cost project to be merged. I expect the cost project to be finished before the next deploy.

Thanks for your input. I think that fixing this bug is not worth the effort if we expect to replace it with an export by the next Deploy (the first week of February).
@ChaelKruip my proposal would be to hide the investment table for the time being. I can then reply to the client who notified us about this issue that it will be replaced soon.

FYI: on BETA the underlying missing queries are shown. The investment table fails to load due to changes in the steel sector:

I have temporarily hidden the investment table, as it will be replaced by a data export. After merging the costs project the table can be removed.


feat: Full layout reset (ignore the root layout)

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[X] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[ ] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Hello,
I found a way to resolve my issue : https://github.com/sveltejs/kit/issues/9455
And in fact it's pretty simple !
The goal is to allow a page or layout to break all layout, even the root layout, to an empty one.
In order to do that, it use a new special syntax : a double @@ like +page@@.svelte or +layout@@.svelte that means "reset to an empty layout".
Note : pnpm lint and pnpm check are OK, but pnpm test fail with this error :
  1 failed
    [chromium-dev-no-js] › test\server.test.js:464:2 › Static files › Serves symlinked asset =======
  152 skipped
  483 passed (2m)
 ELIFECYCLE  Command failed with exit code 1.
 ```

 I don't understand why, and it fail even without my code modification...

 I also don't know how to write a test for this PR. :/

And i'm not sure about the changeset thing...

Thank you, but I don't think we want to change this behaviour. It helps in your specific case, but it does so by adding a weird new rule that makes the system as a whole more convoluted. If we accepted every change like this, the framework would quickly become a messy collection of arcane hacks.
What inevitably happens when you carve out exceptions like this is that at some point you realise that actually you do need to have some code that's common to all routes (a universal beforeNavigate hook, or something in a root load function, or whatever) except you can't, because there's 'nowhere to go'. So you have to duplicate the code in each route that uses @@. It's convenient in the short term, but undesirable in the long term.

Thanks for the detailed answer.
I understand these arguments (even if I do not necessarily agree 😉)

Moving all my routes into a subroute (route) just to have a space where I can have routes without layout has not been as easy as "just moving the files".
My imports were all messed up. Some of my pages stopped functioning properly. Some pages have no css. Sure it could be my fault but pointing out that its sometimes not as simple as you say.
I think this goes to show that having nested routes that share layouts based on hierarchy is not the best solution. I prefer having a folder of layouts and telling pages which layout to use. Just because I want a route at url "/a/b/c" does not mean i want each of the pages in that hierarchy to share layouts.
Routing and layouts are different things and I think its a mistake to couple them.
But im no industry expert. Im just a dude who is a coder who is trying to get his small business idea off the ground and is facing every day challenges like everyone else.

Thank you, but I don't think we want to change this behaviour. It helps in your specific case, but it does so by adding a weird new rule that makes the system as a whole more convoluted. If we accepted every change like this, the framework would quickly become a messy collection of arcane hacks.
What inevitably happens when you carve out exceptions like this is that at some point you realise that actually you do need to have some code that's common to all routes (a universal beforeNavigate hook, or something in a root load function, or whatever) except you can't, because there's 'nowhere to go'. So you have to duplicate the code in each route that uses @@. It's convenient in the short term, but undesirable in the long term.

@Rich-Harris Browsed several issues and now this PR all requesting for this to become a feature. This is a very necessary feature for many use-cases; onboarding flows, wizards, reports, admin panels, etc all typically have a completely different layout from the main layout.
I strongly disagree with your sentiment about it being undesirable in the long term. For such cases where one might want shared behaviour one can simply extract that behaviour into it's own file and export a function. And further also do not agree with your proposed solution of forcing a complete workflow and folder structure change for a very useful, and as said during discussion in issue #9455, expected feature from many modern frameworks.
Maybe using @@ in the file name isn't the right "syntax" and a different way should be used, however, that does not diminish the usefulness of the feature.


Make node serial cross platform, thanks to nmcspadden for windows method

This makes node.serial cross platform for macOS, Windows and Debian based OSes. We don't have anything redhat/fedora, but I'd love to see an implementation there too :)
Thanks to @nmcspadden for the windows method here. It offers better support across multiple machine types.

Don't forget to review the CI and decide whether it's worth fixing or Facebook needs to tweak rules:
Offenses:
chef/cookbooks/cpe_utils/libraries/node_functions.rb:47:7: C: Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
      return default if path.nil?
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
chef/cookbooks/cpe_utils/libraries/node_functions.rb:143:7: C: Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
      return node['uuid'] if node['uuid']
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chef/cookbooks/cpe_utils/libraries/node_functions.rb:212:7: C: Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
      return false unless st
      ^^^^^^^^^^^^^^^^^^^^^^
chef/cookbooks/cpe_utils/libraries/node_functions.rb:482:1: C: Layout/EmptyLines: Extra blank line detected.
chef/cookbooks/cpe_utils/libraries/node_functions.rb:484:5: C: Layout/EmptyLineBetweenDefs: Use empty lines between method definitions.
    def _parse_profiles_status(output)
    ^^^
chef/cookbooks/cpe_utils/libraries/node_functions.rb:501:7: C: Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
      fail 'profiles XML parsing must be a Hash!' unless profiles.is_a?(Hash)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chef/cookbooks/cpe_utils/libraries/node_functions.rb:564:7: C: Style/UnneededCondition: This condition is not needed.
      node['virtual_macos'] if node['virtual_macos']
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I didn't change any of those lines :)

My goodness, and that's how contributions die so quick - "it ain't my fault".

	Hahaha. It was mild trolling :)

On Wed, Mar 20, 2019 at 10:50 PM -0400, "Johnny Ramos"<EMAIL_ADDRESS>wrote:
My goodness, and that's how contributions die so quick - "it ain't my fault".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Helping you out a bit: https://github.com/natewalck/IT-CPE/pull/1

Thanks @johnnyramos! I'll look at the rest then...

No worries, I don't mind. Anotha one: https://github.com/natewalck/IT-CPE/pull/2

Ping. :)

I'm happy with this. Waiting on FB for the merge :)

This still needs to be tested, but of note:

Serial should not be truncated in the node function because you happen to use it for binding to AD.

Is this just waiting on the lint warning? Or is there more needed before this could be merged?

Push this again please because I think we fixed the linter. :)

This, we can't merge as it's touching an old cookbook. We now use fb_helpers' node.serial which uses upstream Chef's Ohai plugin.


Add test suites

Add test suites using jest + testing-library

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


#264: no need for required absolute file path

Summary: closes #264
Related issue:
Suggested reviewer(s):
Reviewer checklist:

[ ] The headers of all files contain a reference to the repository license (i.e., "License: This file is part of py-mmd-tools, licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)")
[ ] 100% test coverage of new code - meaning:

[ ] The overall test coverage increased or remained the same as before
[ ] Every function is accompanied with a test suite
[ ] Tests are both positive (testing that the function work as intended with valid data) and negative (testing that the function behaves as expected with invalid data, e.g., that correct exceptions are thrown)
[ ] Functions with optional arguments have separate tests for all options

[ ] Examples are supported by doctests
[ ] All tests are passing
[ ] All names (e.g., files, classes, functions, variables) are explicit
[ ] Documentation (as docstrings) is complete and understandable

The checklist is based on the S-ENDA conventions and definition of done (see https://s-enda-documentation.readthedocs.io/en/latest/general_conventions.html). The above points are not necessarily relevant to all contributions. In that case, please add a short explanation to help the reviewer.

looks fine, the existence of the file is taken care of elsewhere, in py_mmd_tools/script/check_nc.py or py_mmd_tools/script/nc2mmd.py right? so this should cause no troubles.. why was the requirement of absolute paths introduced in the first place?

Yes, and it will anyway crash if it doesn't find the file. It needs a full path for the data storage field, but I can't have thought clearly here...


Integration of vl53l7cx in ros with arduino zero

Hello,
I have one vl53l7cx and have some questions.

What is the maximum frequency at a resolution of 8x8?
Can I change the laser power?
What happens if I increase the integration time, better results of distance measuring? What are the maximum ratings ?
Sometimes, the distance_mm of the result struct doesn't change, if the ToF-chip get no new value, how can I check if the value is out of range or if its valid?

I think you forget to uncomment this line.
https://github.com/stm32duino/VL53L7CX/blob/23366c6c52e0aa90b0b49d7f7fb36d7919e75670/src/vl53l7cx_api.cpp#L839

Hello @DasSchilli ,
I'm not very expert about the component. You can find more information in the Datasheet and in the User Manual or you can try to ask more information in the ST Community Forum where some experts of the component can answer to your technical questions. Regarding the target status after a reading, you can check the value returned by vl53l7cx_get_ranging_data and compare it with the values in Table 4 of the User Manual (chapter 5.5, page 14).
I hope that it can help you.
Best Regards,
Carlo

Thank you, that helps a lot.


ModuleNotFoundError: No module named 'requests' with fresh install

I rebuilt my docker image this morning, and after I did so my application broke.
Here’s a reproduction:
➜  /tmp rm -Rf .venv
➜  /tmp python3 -m venv .venv
➜  /tmp source .venv/bin/activate
(.venv) ➜  /tmp pip freeze
(.venv) ➜  /tmp pip install llm
Collecting llm
  Using cached llm-0.11.1-py3-none-any.whl.metadata (6.0 kB)
Collecting click (from llm)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting openai (from llm)
  Using cached openai-1.0.1-py3-none-any.whl.metadata (16 kB)
Collecting click-default-group>=1.2.3 (from llm)
  Using cached click_default_group-1.2.4-py2.py3-none-any.whl.metadata (2.8 kB)
Collecting sqlite-utils>=3.35.0 (from llm)
  Using cached sqlite_utils-3.35.2-py3-none-any.whl.metadata (7.6 kB)
Collecting sqlite-migrate>=0.1a2 (from llm)
  Using cached sqlite_migrate-0.1b0-py3-none-any.whl.metadata (5.4 kB)
Collecting pydantic>=1.10.2 (from llm)
  Using cached pydantic-2.4.2-py3-none-any.whl.metadata (158 kB)
Collecting PyYAML (from llm)
  Using cached PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl.metadata (2.1 kB)
Collecting pluggy (from llm)
  Using cached pluggy-1.3.0-py3-none-any.whl.metadata (4.3 kB)
Collecting python-ulid (from llm)
  Using cached python_ulid-2.2.0-py3-none-any.whl.metadata (3.9 kB)
Requirement already satisfied: setuptools in ./.venv/lib/python3.11/site-packages (from llm) (68.2.2)
Requirement already satisfied: pip in ./.venv/lib/python3.11/site-packages (from llm) (23.3.1)
Collecting annotated-types>=0.4.0 (from pydantic>=1.10.2->llm)
  Using cached annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
Collecting pydantic-core==2.10.1 (from pydantic>=1.10.2->llm)
  Using cached pydantic_core-2.10.1-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.5 kB)
Collecting typing-extensions>=4.6.1 (from pydantic>=1.10.2->llm)
  Using cached typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting sqlite-fts4 (from sqlite-utils>=3.35.0->llm)
  Using cached sqlite_fts4-1.0.3-py3-none-any.whl (10.0 kB)
Collecting tabulate (from sqlite-utils>=3.35.0->llm)
  Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting python-dateutil (from sqlite-utils>=3.35.0->llm)
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting anyio<4,>=3.5.0 (from openai->llm)
  Using cached anyio-3.7.1-py3-none-any.whl.metadata (4.7 kB)
Collecting distro<2,>=1.7.0 (from openai->llm)
  Using cached distro-1.8.0-py3-none-any.whl (20 kB)
Collecting httpx<1,>=0.23.0 (from openai->llm)
  Using cached httpx-0.25.1-py3-none-any.whl.metadata (7.1 kB)
Collecting tqdm>4 (from openai->llm)
  Using cached tqdm-4.66.1-py3-none-any.whl.metadata (57 kB)
Collecting idna>=2.8 (from anyio<4,>=3.5.0->openai->llm)
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting sniffio>=1.1 (from anyio<4,>=3.5.0->openai->llm)
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting certifi (from httpx<1,>=0.23.0->openai->llm)
  Using cached certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB)
Collecting httpcore (from httpx<1,>=0.23.0->openai->llm)
  Using cached httpcore-1.0.1-py3-none-any.whl.metadata (20 kB)
Collecting six>=1.5 (from python-dateutil->sqlite-utils>=3.35.0->llm)
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting h11<0.15,>=0.13 (from httpcore->httpx<1,>=0.23.0->openai->llm)
  Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Using cached llm-0.11.1-py3-none-any.whl (36 kB)
Using cached click_default_group-1.2.4-py2.py3-none-any.whl (4.1 kB)
Using cached pydantic-2.4.2-py3-none-any.whl (395 kB)
Using cached pydantic_core-2.10.1-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB)
Using cached sqlite_migrate-0.1b0-py3-none-any.whl (10.0 kB)
Using cached sqlite_utils-3.35.2-py3-none-any.whl (67 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached openai-1.0.1-py3-none-any.whl (153 kB)
Using cached pluggy-1.3.0-py3-none-any.whl (18 kB)
Using cached python_ulid-2.2.0-py3-none-any.whl (9.4 kB)
Using cached PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl (167 kB)
Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Using cached anyio-3.7.1-py3-none-any.whl (80 kB)
Using cached httpx-0.25.1-py3-none-any.whl (75 kB)
Using cached tqdm-4.66.1-py3-none-any.whl (78 kB)
Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Using cached certifi-2023.7.22-py3-none-any.whl (158 kB)
Using cached httpcore-1.0.1-py3-none-any.whl (76 kB)
Installing collected packages: sqlite-fts4, typing-extensions, tqdm, tabulate, sniffio, six, PyYAML, python-ulid, pluggy, idna, h11, distro, click, certifi, annotated-types, python-dateutil, pydantic-core, httpcore, click-default-group, anyio, sqlite-utils, pydantic, httpx, sqlite-migrate, openai, llm
Successfully installed PyYAML-6.0.1 annotated-types-0.6.0 anyio-3.7.1 certifi-2023.7.22 click-8.1.7 click-default-group-1.2.4 distro-1.8.0 h11-0.14.0 httpcore-1.0.1 httpx-0.25.1 idna-3.4 llm-0.11.1 openai-1.0.1 pluggy-1.3.0 pydantic-2.4.2 pydantic-core-2.10.1 python-dateutil-2.8.2 python-ulid-2.2.0 six-1.16.0 sniffio-1.3.0 sqlite-fts4-1.0.3 sqlite-migrate-0.1b0 sqlite-utils-3.35.2 tabulate-0.9.0 tqdm-4.66.1 typing-extensions-4.8.0
(.venv) ➜  /tmp python3 -c 'import llm'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/tmp/.venv/lib/python3.11/site-packages/llm/__init__.py", line 18, in <module>
    from .plugins import pm
  File "/private/tmp/.venv/lib/python3.11/site-packages/llm/plugins.py", line 37, in <module>
    mod = importlib.import_module(plugin)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File<EMAIL_ADDRESS>line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/tmp/.venv/lib/python3.11/site-packages/llm/default_plugins/openai_models.py", line 14, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

Speculation as to the cause
I took a look at the release history of openai and saw that they’d just released 1.0 today, whereas the prior stable release had been 0.28.1 from September 26th. This made me think that perhaps this project doesn’t “pin” the version of openai that it uses. I checked setup.py and that does indeed seem to be the case.
So I’m thinking that openai 0.28.1 did include requests in its dependency tree, and llm was implicitely relying on that fact, by importing requests in its code but not including the dependency in its direct dependencies, instead relying on openai to bring it in. Which it did — but it appears that now it does not.
Experiment

To test the above hypothesis, I manually uninstalled `openai` and then installed `openai==0.28.1`. Once I did that, `import llm` no longer raised any error:
(.venv) ➜  /tmp pip uninstall openai
Found existing installation: openai 1.0.1
Uninstalling openai-1.0.1:
  Would remove:
    /private/tmp/.venv/bin/openai
    /private/tmp/.venv/lib/python3.11/site-packages/openai-1.0.1.dist-info/*
    /private/tmp/.venv/lib/python3.11/site-packages/openai/*
Proceed (Y/n)? y
  Successfully uninstalled openai-1.0.1
(.venv) ➜  /tmp pip install openai==0.28.1
Collecting openai==0.28.1
  Using cached openai-0.28.1-py3-none-any.whl.metadata (11 kB)
Collecting requests>=2.20 (from openai==0.28.1)
  Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Requirement already satisfied: tqdm in ./.venv/lib/python3.11/site-packages (from openai==0.28.1) (4.66.1)
Collecting aiohttp (from openai==0.28.1)
  Using cached aiohttp-3.8.6-cp311-cp311-macosx_11_0_arm64.whl.metadata (7.7 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.20->openai==0.28.1)
  Using cached charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl.metadata (33 kB)
Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.11/site-packages (from requests>=2.20->openai==0.28.1) (3.4)
Collecting urllib3<3,>=1.21.1 (from requests>=2.20->openai==0.28.1)
  Using cached urllib3-2.0.7-py3-none-any.whl.metadata (6.6 kB)
Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.11/site-packages (from requests>=2.20->openai==0.28.1) (2023.7.22)
Collecting attrs>=17.3.0 (from aiohttp->openai==0.28.1)
  Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp->openai==0.28.1)
  Using cached multidict-6.0.4-cp311-cp311-macosx_11_0_arm64.whl (29 kB)
Collecting async-timeout<5.0,>=4.0.0a3 (from aiohttp->openai==0.28.1)
  Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp->openai==0.28.1)
  Using cached yarl-1.9.2-cp311-cp311-macosx_11_0_arm64.whl (61 kB)
Collecting frozenlist>=1.1.1 (from aiohttp->openai==0.28.1)
  Using cached frozenlist-1.4.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (5.2 kB)
Collecting aiosignal>=1.1.2 (from aiohttp->openai==0.28.1)
  Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Using cached openai-0.28.1-py3-none-any.whl (76 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached aiohttp-3.8.6-cp311-cp311-macosx_11_0_arm64.whl (343 kB)
Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Using cached charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl (118 kB)
Using cached frozenlist-1.4.0-cp311-cp311-macosx_11_0_arm64.whl (46 kB)
Using cached urllib3-2.0.7-py3-none-any.whl (124 kB)
Installing collected packages: urllib3, multidict, frozenlist, charset-normalizer, attrs, async-timeout, yarl, requests, aiosignal, aiohttp, openai
Successfully installed aiohttp-3.8.6 aiosignal-1.3.1 async-timeout-4.0.3 attrs-23.1.0 charset-normalizer-3.3.2 frozenlist-1.4.0 multidict-6.0.4 openai-0.28.1 requests-2.31.0 urllib3-2.0.7 yarl-1.9.2
(.venv) ➜  /tmp python3 -c 'import llm'
(.venv) ➜  /tmp echo $?
0

HTH!

@simonw band-aided this via deaa686d9cb115639e4160c40629cbf4d3878ec4 which they released via 0.11.2. Thanks @simonw!

I just hit this issue again despite the fix being live due to a bug/feature of mise, a multiversion tool manager (like asdf) which contains a pipx backend. I have filed a 'downstream' (I guess?) bug here. The problem seems to be that this bug is present in release 0.9 which is currently the version chosen by this backend, possibly (just a guess) because it's using lexicographic sorting for prerelease versions.
A workaround for any mise users who hit this in mid-2024:
$ mise use -g<EMAIL_ADDRESS>
or for .mise.toml:
[tools]
"pipx:llm" = "0.14"


commit ir json to seed folders

Helps with unit testing without needing to run Docker

@mscolnick should we .gitignore the IRs? Can we also commit the config.json as well?


Deadlock in loading

When running cargo test --release on a989d4823914fe7c77d75a9d664fbadb2027e2d2 I saw a test get stuck and hang - specifically app_dep_types in test_load.
I re-ran cargo test --release and the tests all passed, so it may take multiple runs to reproduce. I wanted to file this so we know it's out there and can happen!

It seems safe to close this now, but feel free to reopen!


Error running PiecewiseFunction-1.json example, of Failed to import malformed source string: state_checker

Hi Brendon and Team,
Love the project, however running the PiecewiseFunction-1.json throws an error of the following:
python -m dso.run ./config/examples/regression/PiecewiseFunction-1.json

== EXPERIMENT SETUP START ===========
Task type            : regression
Dataset              : task/regression/data/PiecewiseFunction-1.csv
Starting seed        : 0
Runs                 : 1
== EXPERIMENT SETUP END =============

== TRAINING SEED 0 START ============
Traceback (most recent call last):
  File "/home/sam/anaconda3/envs/sd2/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/sam/anaconda3/envs/sd2/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/sam/code/discovery/sd2/dso/dso/run.py", line 156, in <module>
    main()
  File "/home/sam/anaconda3/envs/sd2/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/sam/anaconda3/envs/sd2/lib/python3.7/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/sam/anaconda3/envs/sd2/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/sam/anaconda3/envs/sd2/lib/python3.7/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/sam/code/discovery/sd2/dso/dso/run.py", line 139, in main
    result, summary_path = train_dso(config)
  File "/home/sam/code/discovery/sd2/dso/dso/run.py", line 33, in train_dso
    result = model.train()
  File "/home/sam/code/discovery/sd2/dso/dso/core.py", line 74, in train
    self.setup()
  File "/home/sam/code/discovery/sd2/dso/dso/core.py", line 67, in setup
    self.prior = self.make_prior()
  File "/home/sam/code/discovery/sd2/dso/dso/core.py", line 140, in make_prior
    prior = make_prior(Program.library, self.config_prior)
  File "/home/sam/code/discovery/sd2/dso/dso/prior.py", line 43, in make_prior
    prior_class = import_custom_source(prior_type)
  File "/home/sam/code/discovery/sd2/dso/dso/utils.py", line 214, in import_custom_source
    assert m is not None and m.end() == len(import_source), "*** Failed to import malformed source string: "+import_source
AssertionError: *** Failed to import malformed source string: state_checker

Could you let me know what I can do to fix this, or point me in the right direction, it seems it is trying to find a custom prior called state checker, that cannot be found and error's, I could be incorrect here.
Thank you so much, really excited to use DSO for our current research applied projects,
OS: Ubuntu 20.04 LTS “Focal Fossa,”
Output of pip freeze is:
absl-py @ file:///home/conda/feedstock_root/build_artifacts/absl-py_1637088766493/work
astor @ file:///home/conda/feedstock_root/build_artifacts/astor_1593610464257/work
atari-py==0.2.9
attrs==21.4.0
box2d-py==2.3.8
cached-property @ file:///home/conda/feedstock_root/build_artifacts/cached_property_1615209429212/work
certifi==2021.10.8
click==8.0.4
cloudpickle==1.2.2
commentjson==0.9.0
cycler==0.11.0
Cython==0.29.28
deap==1.3.1
dill==0.3.4
-e git+ssh://git@github.com/samholt/sd2.git@62f845d625e260d03efeefd5f9ddf7c3ec6a1c41#egg=dso&subdirectory=dso
fonttools==4.31.2
future==0.18.2
gast @ file:///home/conda/feedstock_root/build_artifacts/gast_1636964356021/work
google-pasta==0.2.0
grpcio @ file:///home/conda/feedstock_root/build_artifacts/grpcio_1624380491840/work
gym==0.15.4
h5py @ file:///home/conda/feedstock_root/build_artifacts/h5py_1624405626125/work
importlib-metadata @ file:///home/conda/feedstock_root/build_artifacts/importlib-metadata_1647210388949/work
iniconfig==1.1.1
joblib==1.1.0
Keras-Applications==1.0.8
Keras-Preprocessing @ file:///home/conda/feedstock_root/build_artifacts/keras-preprocessing_1610713559828/work
kiwisolver==1.4.0
lark-parser==0.7.8
llvmlite==0.36.0
Markdown @ file:///home/conda/feedstock_root/build_artifacts/markdown_1637220118004/work
matplotlib==3.5.1
mpi4py==3.1.3
mpmath==1.2.1
multiprocess==<IP_ADDRESS>
numba==0.53.1
numpy==1.19.0
opencv-python==<IP_ADDRESS>
packaging==21.3
pandas==1.3.5
pathos==0.2.8
Pillow==9.0.1
pluggy==1.0.0
pox==0.3.0
ppft==<IP_ADDRESS>
progress==1.6
protobuf==3.17.2
py==1.11.0
pybullet==3.2.1
pyglet==1.3.2
pyparsing==3.0.7
pytest==7.1.1
python-dateutil==2.8.2
pytz==2022.1
PyYAML==6.0
scikit-learn==1.0.2
scipy @ file:///home/conda/feedstock_root/build_artifacts/scipy_1626684342480/work
seaborn==0.11.2
six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
stable-baselines==2.10.0
sympy==1.10.1
tensorboard==1.14.0
tensorflow @ file:///home/conda/feedstock_root/build_artifacts/tensorflow_1594833314895/work/tensorflow_pkg/tensorflow-1.14.0-cp37-cp37m-linux_x86_64.whl
tensorflow-estimator==1.14.0
termcolor==1.1.0
threadpoolctl==3.1.0
tomli==2.0.1
tqdm==4.63.0
typing_extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1644850595256/work
Werkzeug @ file:///home/conda/feedstock_root/build_artifacts/werkzeug_1644332431572/work
wrapt @ file:///home/conda/feedstock_root/build_artifacts/wrapt_1610094880759/work
zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1643828507773/work

Any help is very much appreciated, thank you,
All the best,
Sam

Hi Sam,
The StateChecker token (and the prior it's referencing) is currently not supported/included in this release. We should have removed that PiecewiseFunction-1.json example. We have a separate internal version of the repo and it's been a challenge to properly maintain both.
That said, StateChecker will be available in an incoming updating in the future :)
Thanks,
Brenden

Hi Sam,
The StateChecker token (and the prior it's referencing) is currently not supported/included in this release. We should have removed that PiecewiseFunction-1.json example. We have a separate internal version of the repo and it's been a challenge to properly maintain both.
That said, StateChecker will be available in an incoming updating in the future :)
Thanks, Brenden

Hi Brenden,
I love your code base and I am using it to inspire new similar methods, for different cases of SR, and wish to cite your work,(s) and use it as a benchmark. As such do you have any date expected for the new release ? No worries just wondering if it will be within the next 3 weeks or so. No worries if not. Open to a zoom call anytime to discuss what I am working on, if I can help your work at all.
Thank you for your time,
All the best,
Sam

Shoot me an email :) It can be found in one of the paper PDFs.


Long-tapping URL (to open comment menu) also opens the URL

Long tap (tap and hold) on an URL
The menu/dialog opens - but also, the link is opened.

It should not open the URL in this case.
Video:
https://github.com/SimonHalvdansson/Harmonic-HN/assets/3776997/03b9d97d-34ab-4042-a81b-9d7dd9478919
Further notes:
In this case I wanted to copy the url because of an issue with the amazon app (doesn't let me see the product...), but I guess this is not supported, which would be the topic for a different issue.

Solved by


Updating a poco record, with specific primaryid

I'm trying to update a poco record from a mvc controller edit form, but i'm having trouble using the function with the signature:
public int Update(object poco, object primaryKeyValue)

I get the sql error: "Cannot update identity column 'id' "
The model is returned from the form submission with the primary key set to 0 (as the field is not present in the form).
So, the function tries to override the primary key value, but that still returns the above error.
var newId = Database.Update(poco, id);

I traced through the code and it determines the correct primary key name, but the logic in the following code doesn't seem to account for the situation where the primary key value is not null.
https://github.com/schotime/NPoco/blob/1b40e272e22269ef2c29bde70d3093dc97ab4cc2/src/NPoco/Database.cs#L1502-L1506
To me the code should be more like this, unless i'm missing something obvious here.
if (primaryKeyValuePairs.ContainsKey(pocoColumn.ColumnName))
    if (primaryKeyValue == null)
         primaryKeyValuePairs[pocoColumn.ColumnName] = ProcessMapper(pocoColumn, pocoColumn.GetValue(poco));
    continue;
}

How can you do an update of a row with a null primary key value?

Obviously I didn't explain the issue well enough, but as you know that is not possible.
The primary key on the model itself is the default value of  0 (from a form submission).
Since at this point the model could be one of several types, I don't automatically know the primary key name.
So I want to use Database.Update to set a specific id value (passed in as a parameter and certainly not null).
Thats where it falls down and I get the error.

This still doesn't make any sense sorry.

One last try - can you tell me what the purpose of this method overload is:
        public int Update(object poco, object primaryKeyValue)
        {
            return Update(poco, primaryKeyValue, null);
        }

I've been assuming its a way to save a poco object and override the primaryKeyValue with the one in the parameter.
If my assumption is correct - it does not work as expected, which is the reason for my post.

This method is to update the Poco passed to it where the primarykey value is the value passed in.
eg.
db.Update(new User() { Name = "New Name" }, 2)
will execute something like
update users set name = @0 where id = @1
where @0 comes from the User object (New Name) and the @1 comes from the value passed in (2).

Ok, that makes sense.
The problem I have is that i'm trying to do that, but on the poco model in question the primary key property is an int value (e.g. non null).
So creating the new instance, without explicitly setting the primary key value, sets the primary key value to 0. So for your example the following is executed:
UPDATE users SET id = @0, name = @1 WHERE id = @2

@0 = 0, @1 = "New Name", @2 = 2
That is where I get the error  "Cannot update identity column 'id' ", which makes sense of course given the SQL.
What I am proposing, is when updating using a specific primary key value, that any primary key values present on the instance are excluded from the set part of the update query.

Ok, what that probably means is that id isn't configured as your primary key.
Can you show me what your class looks like and how the primary key is configured?

It is set correctly as the primary key.
    [PrimaryKey("contactid")]
    [ExplicitColumns]
    public partial class Contact
    {
		[Column]
		public int contactid
		{
			get
			{
				return _contactid;
			}
			set
			{
				_contactid = value;
			}
		}
		int _contactid;
    }

What's more, when stepping though the code in the debugger, I can see it locates the primary key column correctly (the set part is correct, and I didn't specify the column name).

the logic in Database.cs currently goes as follows:

// Don't update the primary key, but grab the value if we don't have it
if (primaryKeyValue == null && primaryKeyValuePairs.ContainsKey(pocoColumn.ColumnName))
{
    primaryKeyValuePairs[pocoColumn.ColumnName] = ProcessMapper(pocoColumn, pocoColumn.GetValue(poco));
    continue;
}

<snip> Other unrelated checks and the actual adding of the column to the sql and arguments</snip>

In the code above, it only skips adding the value to the update column list IF primary key value IS NULL AND the primary Key column is found in primaryKeyValuePairs.
In my case the primary key value is not null and so it just adds the column to the Update SQL.
As shown in the first post, i propose first checking if the primary column is found in primaryKeyValuePairs and if so skip adding to the Update sql. Then inside that condition the check if the primaryKeyValue is null, if it is then the value is retrieved from the instance itself.
if (primaryKeyValuePairs.ContainsKey(pocoColumn.ColumnName))
    if (primaryKeyValue == null)
         primaryKeyValuePairs[pocoColumn.ColumnName] = ProcessMapper(pocoColumn, pocoColumn.GetValue(poco));
    continue;
}

Makes sense. Want to make a PR with a test?

This test will reproduce it.
[Test]
        public void UpdatePrimaryKeyObjectOverridingPrimaryKey()
        {
            var poco = Database.SingleOrDefaultById<UserDecorated>(InMemoryUsers[1].UserId);
            Assert.IsNotNull(poco);

            poco.Age = InMemoryUsers[1].Age + 100;
            poco.Savings = (Decimal)1234.23;
            Database.Update(poco, InMemoryUsers[2].UserId);

            var verify = Database.SingleOrDefaultById<UserDecorated>(InMemoryUsers[2].UserId);
            Assert.IsNotNull(verify);

            Assert.AreEqual(InMemoryUsers[2].UserId, verify.UserId);
            Assert.AreNotEqual(InMemoryUsers[2].Age, verify.Age);
            Assert.AreNotEqual(InMemoryUsers[2].Savings, verify.Savings);
        }

It can go in the UpdateTests under UpdatePrimaryKeyObject()

I have fixed this and will be deployed in 3.4.0


related to issue #510

Hi there;
I try to be by the book and follow your getting started or your install doc
and being quick by following the Install Academic with Netlify but instead it ending with an error basically saying some post don't have time but you ask for ...
but with these update the hugo serve works fine

Thanks for submitted this PR, however, a more comprehensive modification has now been made in c586b640f97bbdaab403642c211f36b3fffa99d8


Show activity's error message during retries

Currently, when an activity fails and is being retried, there is no way (afaik) to see the error message that caused the activity to fail.
The UI only shows the number of retry attempts made in the workflow's Summary tab. Using the CLI to describe the workflow, we can only see that the LastFailureReason is cadenceInternal:Generic.
Could we surface the failed activity's error message in the UI somewhere to help introspect the state of the workflow and to help debug faulty activities?

It looks like this depends on Cadence server itself storing that information: https://github.com/uber/cadence/issues/1873

Yes this has a dependency on https://github.com/uber/cadence/issues/1873, and is a subset of #74

Closing because of duplicate.


Tweak the CSS to work with positions like right-start

The places where we have [x-placement=right] should change to [x-placement^="right"] so positions like right-start (which are valid in popper) can work correctly.
Thanks in advance!

Closed via #143


param_ in CustomOp

I want to write a customop like example/numpy-ops/custom_softmax.py. How can I add some param_ in my subclass of mx.operator.CustomOp? @piiswrong

see examples in https://github.com/tqchen/mxnet-gan/blob/master/mxgan/custom_ops.py

thank you for your quick reply! I will try it.

in short, the property will receive the keyword arguments as you passed to customop, however, the values are converted to string, so you need to convert them back.


Implement MD&A Summarization as the first AI Application in sec-ai

Objective:
Add a feature to summarize Management Discussion and Analysis (MD&A) sections using large language models (LLMs) as the first AI application in sec-ai.
Considerations:

LLM Selector: Add a simple UI element for selecting the backend LLM (GPT-4, GPT-3.5, etc.).
Caching Mechanism: Develop a caching system to store and retrieve previous LLM completions. A cloud database is recommended for ease of integration.
Algorithm Transparency: Display intermediary steps and each of the step results to make the algorithm process transparent.

Hello,
This issue is being closed as it's not something we plan to work on in the immediate future. We've consolidated our roadmap and future plans in a centralized location to provide a clear and structured overview of our project's direction.
For anyone visiting this issue in the future, please refer to our roadmap and future plans discussion at this link for more information.
Thank you for your understanding.
Best,
Elijas


mgmt, migrate test-proxy

appplatform
cdn
network
redis
sql

LIVE test "canCRUDSqlServerWithImportDatabase" in sql runs forever.
LIVE test "canCRUDEnterpriseTierDeployment" in appplatform fails with
com.azure.core.management.exception.ManagementException: Build failed for file: api-gateway.jar, buildId: /subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/rg614378446bf/providers/Microsoft.AppPlatform/Spring/springsvc28221/buildServices/default/builds/api-gateway/results/1

"canCreateCustomDomainWithSsl" fails on another problem.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


Breaking issue on the latest release (3.3.0)

Hello!
I'm a maintainer of quint and we use both the either and maybe packages of sweet-monads - they are very handy, thank you so much!
We found an issue today trying to run our tool, and turns out it was something related to your latest release. I even tried reproducing the problem on a very small project with only your package in the dependencies, and I got this error while trying to compile:
node_modules/@sweet-monads/either/index.ts:205:7 - error TS2322: Type 'Either<unknown, R>' is not assignable to type 'Either<L, R>'.
  Type 'EitherConstructor<unknown, R, EitherType.Right>' is not assignable to type 'Either<L, R>'.
    Type 'EitherConstructor<unknown, R, EitherType.Right>' is not assignable to type 'EitherConstructor<L, R, EitherType.Right>'.
      Type 'unknown' is not assignable to type 'L'.
        'L' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.

205       return EitherConstructor.left(e);
          ~~~~~~

Found 1 error in node_modules/@sweet-monads/either/index.ts:205

I believe the version you released also has this problem, and therefore couldn't compile. The error we were getting in our tool was:
node:internal/modules/cjs/loader:573
      throw e;
      ^

Error: Cannot find module '/home/gabriela/.npm/lib/node_modules/<EMAIL_ADDRESS>    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1098:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1091:15)
    at resolveExports (node:internal/modules/cjs/loader:567:14)
    at Module._findPath (node:internal/modules/cjs/loader:636:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/home/gabriela/.npm/lib/node_modules/@informalsystems/quint/dist/src/parsing/quintParserFrontend.js:37:18)
    at Module._compile (node:internal/modules/cjs/loader:1256:14) {
  code: 'MODULE_NOT_FOUND',
  path: '/home/gabriela/.npm/lib/node_modules/<EMAIL_ADDRESS>}

Node.js v18.16.1

We did fix it on our side by pinning both packages to ~3.2.0, but this report might be useful for you guys either way!

Hey, thank you so much for the problem reporting 🙏
I will fix it ASAP this week.

@JSMonk I believe we need to change implementation of fromTry to
static fromTry<L, R>(fn: () => R): Either<L, R> {
    try {
      return EitherConstructor.right(fn());
    } catch (e) {
      return EitherConstructor.left(e as L); // this is crucial
    }
  }

I don't know why it worked for other of my projects though. Thoughts?

@bugarela I've just published the 3.3.1 version with the fix. Could you please check if everything is okay now?

Can You please push the change to repository? @JSMonk

@wookieb done.

Thank You. That is going to solve the problem. Any idea why it wasn't failing for other people and projects? Was there something in configuration on quint that made it fail?

So, there are 2 problems.
The main one is that I published the 3.3.0 version in the wrong way (I always publish the build directory and this time I made a mistake and published the source directory).
And the second one is related to the useUnknownInCatchVariables option. If it's activated, that all the errors in a catch block will have the unknown type and you should use type-casts or type-refinement to pass it as a different type.

@bugarela I've just published the 3.3.1 version with the fix. Could you please check if everything is okay now?

I just checked and it's all fine with 3.3.1! Sorry for the delay.


Update feedstock

Closes #4

Failing with:
INFO: activate-gxx_linux-64.sh made the following environmental changes:
+CXXFLAGS=-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/swmm-5.2.3 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+CXX_FOR_BUILD=$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++
+CXX=$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++
+DEBUG_CXXFLAGS=-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/swmm-5.2.3 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+GXX=$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-g++
CMake Error at CMakeLists.txt:15 (message):
  In-source builds are disabled.

@phobson What is the canonical source this, the fork or the original? I changed the URL to the fork here b/c that was the one you posted in #4.

@phobson and @conda-forge/swmm team, this is as far as I can take this PR. Let me know if you can review/fix what is missing and hopefully we can bring this one home.

Failing with:
INFO: activate-gxx_linux-64.sh made the following environmental changes:
+CXXFLAGS=-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/swmm-5.2.3 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+CXX_FOR_BUILD=$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++
+CXX=$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++
+DEBUG_CXXFLAGS=-fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-all -fno-plt -Og -g -Wall -Wextra -fvar-tracking-assignments -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/swmm-5.2.3 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+GXX=$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-g++
CMake Error at CMakeLists.txt:15 (message):
  In-source builds are disabled.

@phobson What is the canonical source this, the fork or the original? I changed the URL to the fork here b/c that was the one you posted in #4.

I'm not sure just yet. Trying to figure that out as time allows. (I'm leaning toward @conda-forge/pyswmm 's fork


fix: telegram 的 quote 缺失 user 属性

Codecov Report

Merging #171 (cc41c1f) into master (4cab923) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@           Coverage Diff           @@
##           master     #171   +/-   ##
=======================================
  Coverage   81.94%   81.94%
=======================================
  Files           1        1
  Lines         443      443
  Branches       91       91
=======================================
  Hits          363      363
  Misses         80       80


[pan-gp] Updated GlobalProtect to version  6.2.2

Updated GlobalProtect version 6.2.2
Released: 2023/11/22
https://docs.paloaltonetworks.com/globalprotect/6-2/globalprotect-app-release-notes/globalprotect-addressed-issues

Do you have a program?


Compilation issues with zfp

I have successfully run zfp in my previous system. But due to some reasons, I replaced the system. There was a problem compiling again, which troubled me for a long time.
When I execute this command: cmake --build . --config Release
Error message:
[ 92%] Building C object utils/CMakeFiles/zfpcmd.dir/zfp.c.o
[ 94%] Linking C executable ../bin/zfp
/../root/usr/bin/../libexec/gcc/x86_64-redhat-linux/11/ld: /../support/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/lib/libgomp.so.1: undefined reference to '__pgi_uacc_downloads'
/../root/usr/bin/../libexec/gcc/x86_64-redhat-linux/11/ld: /../support/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/lib/libgomp.so.1: undefined reference to '__pgi_nvomp_drain_async'
/../root/usr/bin/../libexec/gcc/x86_64-redhat-linux/11/ld: /../support/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/lib/libgomp.so.1: undefined reference to '__pgi_uacc_free_internal'
/../root/usr/bin/../libexec/gcc/x86_64-redhat-linux/11/ld: /../support/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/lib/libgomp.so.1: undefined reference to '__pgi_uacc_upstart'
......
/../root/usr/bin/../libexec/gcc/x86_64-redhat-linux/11/ld: /../support/nvidia/hpc_sdk/Linux_x86_64/22.11/compilers/lib/libgomp.so.1: undefined reference to '__pgi_uacc_updone'
collect2: error: ld returned 1 exit status
gmake[2]: *** [utils/CMakeFiles/zfpcmd.dir/build.make:98: bin/zfp] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:916: utils/CMakeFiles/zfpcmd.dir/all] Error 2
gmake: *** [Makefile:146: all]Error 2

CentOS Linux release 7.6.1810 (Core)
gcc version 11.2.1 20220127 (Red Hat 11.2.1-9) (GCC)
cmake version 3.24.4
I guess it's a problem with the system environment, but I don't know exactly where the problem is.
Can you help me answer this question? Thank you.

This seems like some kind of misconfiguration with your environment, with a weird interaction between gcc and pgi, rather than an issue with zfp.  Based on the error you're seeing, it's possible that you can get around the error by disabling OpenMP by adding -DZFP_WITH_OPENMP=OFF to your CMake line.  You might also try a google search on the error.

After disabling, it can be compiled normally. Thank you very much for your answer.


Formation links in collections display don't work

When you click on a dot and look at the text about a collection, stratigraphic names look like links, but they go nowhere.

Hi, I was wondering if I could take a look at this issue?

Thank you for reminding me to take a look at this. This issue is now fixed. Clicking on a stratigraphic name in the description of a collection now adds a filter that will display only collections associated with that stratum. You can then click on the 'x' to remove the filter and once again display the entire set of collections.


Add Support for WebSockets

This PR adds support for WebSockets (as requested in #10).
This supports doing mqtt over an insecure websocket or over a secure websocket with default TLS configuration (I didn't implement custom TLS config for secure websockets because it would be more work and I don't need that functionality for my use cases, but it shouldn't be too hard to add if someone else wants it).
I did also have to move erroring on a failed read from happening immediately to only raising the error on an attempt to read an incoming packet, since the websocket implementation would otherwise raise an error when you disconnect. Hopefully that's acceptable.

Thanks very much for this, I'll take a look at it in detail shortly.

Are there any updates on this? I don't mean to pressure you (thanks for your work on this great library), but I'd greatly appreciate it if you could give an update on the status of this PR.

Hi,
Sorry for the delay on this.
One problem I have is that in WebSockets mode the config is set differently than in TCP or TLS mode. In TCP or TLS mode .host() sets hostname and .port() sets port number, but in WebSockets mode .host() sets a URL and .port() is ignored. At the very least I think these should be consistent, but I think I prefer using URL for all modes, as this makes it simpler for a user to use their own config file and switch between protocols without caring about the details of what protocol is in use. This will require a breaking change, but the library is fairly young, and only a simple usage of format! should be required in the consumer. The MQTT standard suggests mqtt and mqtts protocols for the URL, which I like, and then we can use ws and wss for WebSockets URLs.
Similarly, your patch as it is supports setting TLS client config for TLS mode, but not for secure WebSockets mode (i.e. wss). I'd like to see ClientBuilder.set_tls_client_config() pass through the configuration to tokio-tungstenite. If your configuration is anything like mine, you're using self-signed certificates on your servers and setting TLS client config to securely connect to self-signed certificates requires custom TLS client config.
I have a few other comments that I'll make against the appropriate lines of code.

Okay, I've done those changes. I agree that it's nicer to use a url to set the remote host (I only didn't do that originally because I was hesitant to suggest a breaking change). I've also added in tls client configuration.
I am a bit hesitant on what port should be used when no port is specified. I left it just using 1883 by default, regardless of the connection type, since that's what it did before. However, I feel like it could be nicer if it defaulted to the port for the corresponding type (80 for ws, 443 for wss, 1883 for mqtt, 8883 for mqtts). If you agree that this would be better, I can do that change pretty easily.

However, I feel like it could be nicer if it defaulted to the port for the corresponding type (80 for ws, 443 for wss, 1883 for mqtt, 8883 for mqtts).

I agree, please go ahead with this change.

However, I feel like it could be nicer if it defaulted to the port for the corresponding type (80 for ws, 443 for wss, 1883 for mqtt, 8883 for mqtts).

I agree, please go ahead with this change.

Okay, done!

@JarredAllen Just merged this into master with only a slight tweak to the set_url docs to mention the default port numbers.
Thanks again for your support and sorry for the delays in getting it merged. I'll be releasing v0.3.0 shortly with your changes.


second challenge update

Here is a proposed solution for the second challenge.

Looking forward to further collobarations.

the reason a used var is purely habitual, when i first got introduced to  javascript variables where declared using var but it is better to use const and let to declare you variable.


ParseDefinitions not supported 'Array' yet.

Describe the bug
I saw there is {array} definition in response annotation, but I don't know how to make an array as the parameter. Here is the example:
// @Param  notification  body  push.ModelList  true  "balabala"
type ModelList []Model
Then I got: panic: ParseDefinitions not supported 'Array' yet.
To Reproduce
Steps to reproduce the behavior:

Run swag init

Expected behavior
Support array in parameters annotation.
Your swag version
github.com/swaggo/gin-swagger v1.0.0
github.com/swaggo/swag v1.4.0

type X struct {
  IDs []int64
}

// @Param Message body api.X true "tips"
when I use swag init,I got this message in api difinition:Unknown Type:int64
so,I wonder if any solution for this question?
or, this is just my fault for body type which I want to define an array type.

Issue #299 supporting array of things is already fixed on #462.
Annotation
// @Param payload body web.TagList true "description"
package web

type TagList []Tag

// Tag example
type Tag struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Please get latest swagger and open an issue if still not working.


helm3 repo add needs permissions to .config

Looks like helm3 repo add blindly tries to mkdir ~/.config/helm, which doesn't work if the directory is mounted in a container (and .config is not). It would be nice if it could check for existence and permissions before attempting to do so.

I'd love to take this on myself as a first issue.
Can you provide more information about the permissions that cause this?
When I try to reproduce what you described I get an error: "Error: mkdir /home/xxx/.config/helm: permission denied".
Is that also what you get? What is the desired behavior @bacongobbler?

cc #7990, How is this going?

@yonatankahana yes that's exactly the error. I do have /home/xxx/.config/helm and write access to it, which presumably is all helm needs. I don't have write access to /home/xxx/.config so mkdir fails, though the dir is there and accessible.

@7AC
I created ~/.config/ folder without write permissions for my user, then ~/.config/helm/ folder with full read-write permissions for my user -- But I get no error, everything works.
I will need some more information, would be happy if you could provide me with the output for the following commands:
$ helm version
$ ll ~/.config/helm/

This will give me more information about the permissions in the .config and helm folders and your helm version to test with.

You're right I can't reproduce with docker and helm alone, our config also involves Jenkins with several nested images I need to debug on our end more. Closing for the time being, sorry for the noise.

Getting the same issue with Helm 3 repo add when running on a container.
Helm needs to write /.config/helm/repositories.yaml
but as the container is not run as root and does not have write access fails with
Error: mkdir /.config: permission denied
$HELM_PATH_CONFIG is not set, so as per lazypath_unix.go  it tries to create config in
$HOME/.config which evaluates to /.config.
If it does not have write access to that folder, it fails.
However this works if run as root user, in which case it is able to create that dir and file.

can you provide me the output of:
$ ll /.config/helm/

However this works if run as root user, in which case it is able to create that dir and file.

since Helm v3, Helm follows the XDG Base Directory Specification, which defines:
$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

if not specified otherwise - helm will setup the config files relative to $HOME directory. since $HOME is empty, the / folder will be used. the XDG specification does not define what to do when $HOME is unset, probably because by the single unix specification, $HOME should be defined. i think the problem you are experiencing is the desired result in this situation.
just set the environment variables and point helm to a valid directory which it can store all it's files.
take a look at the the defaults of helm, plus the list of the environment variables you should set - all here: https://helm.sh/docs/helm/helm/

The Helm documentation states :

set an alternative location for storing Helm configuration

which does not ask for it to be explicitly set.
Would it not be better if the error message asks to set variable(s) if defaulted path \ is not writable. This applies to all 3 XDG env variables.


ci: Introduce CILIUM_INSTALL_NET_PERF_EXTRA_ARGS env var

Introduce the CILIUM_INSTALL_NET_PERF_EXTRA_ARGS env var to allow for instances of this workflow to provide additional installation arguments, such as setting feature-gates.

/test


Optimize future::select_all by not preserving order

This change makes use of Vec::swap_remove to shuffle less elements around in the backing Vec for SelectAll.
Related: #969 - which seems to have been missed when porting

Thanks!


feat(components): added a component called Tabs

Overview

RSQ-86: Create a new Tabs component to unify the TabbedButton/RoundTab components in storybook.
https://www.figma.com/design/4gRzu3rkNDZnDPkP36YxfF/Chip%2C-Tag-and-Tab?node-id=123-57775&t=zucfumEcRony14Xm-0
Test Plan

Changelog

Review requests

Risk assessment

@syao1226

Create Tab component and bring  TabbedButton(for ODD)  and RoundTab(for desktop)  into Tab
TabbedButton's style should be under @media ${RESPONSIVENESS.touchscreenMediaQuerySpecs}
I recommend you use Btn component instead of button tag since we use that component.

we use the following structure for a component.
For Tab, the following is the preferred structure.
molecules
└── Tab
    ├── Tab.stories.tsx
    ├── __tests__
    │   └── Tab.test.tsx
    └── index.tsx

[samples]
https://github.com/Opentrons/opentrons/pull/15441/files#diff-69b769c5ad20c1d688db697b1ea496fecad8e6dc0f020bba62e048b1c4d541d0
https://github.com/Opentrons/opentrons/blob/edge/components/src/atoms/Chip/index.tsx

Create Tabs component that has the layout for each app(Desktop app and ODD app)
Tabs.stories.tsx should have Tabs

molecules
└── Tabs
    ├── Tabs.stories.tsx
    ├── __tests__
    │   └── Tabs.test.tsx
    └── index.tsx

Check Tab and Tabs in Storybook
They should work on Desktop app and ODD app.
These components shows different style by switching the screen size like below.

https://github.com/Opentrons/opentrons/assets/474225/b4ced156-c66a-47da-8110-0e33eb2d5035

Write a test for each component
Nick or I can show you how to write a test for a component.

If you have any question on this, feel free to reach out to the team/me.

@shlokamin
https://github.com/Opentrons/opentrons/pull/15437#discussion_r1644970855
Could you explain why we need to change the existing implementation to Shiyao's implementation?

#15437 (comment) Could you explain why we need to change the existing implementation to Shiyao's implementation?

@koji im not sure what you mean by "existing implementation". the reason i suggested that this component take in a list of tabs is because of the description of the component in Figma:
"Tabbed interfaces are a way of navigating between multiple panels".
keyword "multiple"!
we will never expose a single Tab interface, it is meant to always be a sequence of tabs (hence the component name)

ultimately i don't really think it matters too much though. having a single tab interface is fine too, but i personally don't see anything wrong with the interface this component currently accepts

Reference in ne

ultimately i don't really think it matters too much though. having a single tab interface is fine too, but i personally don't see anything wrong with the interface this component currently accepts

My concern is that if there is a request to change the background color of a particular tab or to display an icon, multiples would require additional changes.
I guess that would be one reason that major UI components use a single tab component and tags component to manage tab components.

My concern is that if there is a request to change the background color of a particular tab or to display an icon, multiples would require additional changes.

oh if there is ever a request to do that we would say we can't. that would be a big signal that this abstraction is not correct and that this component should not exist. cc @mmencarelli


Always get Latest Version <IP_ADDRESS> update from GOOGLE_PLAY

[x] I have verified there are no duplicate active or recent bugs, questions, or requests.
[x] I have verified that I am using the latest version of AppUpdater.
[x] I have given my issue a non-generic title.
[x] I have read over the README, Wiki and FAQs (before asking questions on how to do something).

Details

PiracyChecker version: 2.x.x
Device OS version: 12
Device Manufacturer: Samsung
Device Name: GalaxyM31

Builder
 AppUpdaterUtils appUpdaterUtils = new AppUpdaterUtils(this)
                .setUpdateFrom(UpdateFrom.GOOGLE_PLAY)
                .withListener(new AppUpdaterUtils.UpdateListener() {
                    @Override
                    public void onSuccess(Update update, Boolean isUpdateAvailable) {
                        Log.d("Latest Version ",  update.getLatestVersion());
                        Log.d("Release notes",  update.getReleaseNotes());
                        Log.d("URL",  update.getUrlToDownload().toString());
                        Log.d("Is update available? ", Boolean.toString(isUpdateAvailable));
                    }

                    @Override
                    public void onFailed(AppUpdaterError error) {
                        Log.d("AppUpdater Error", "Something went wrong");
                    }
                });
        appUpdaterUtils.start();

problem
Hi.. I want to ask, why I always get return Latest Version <IP_ADDRESS> while in the playstore has its version 1.2.0 . before this issue was appear earlier in 2018, now its appear again, and it was fixed as an temporary solution with update of 2.7, but current library version is still 2.7. so when this issue will resolve now
Expected Result
Latest Version 6.2.0
Release notes
URL https://play.google.com/store/apps/details?id=com.city.tenantmnm&hl=en
Is update available?true
Actual Result
Latest Version 0.0.0
Release notes
URL https://play.google.com/store/apps/details?id=com.city.tenantmnm&hl=en
Is update available?false

any update on this? is this library still working? @IMWaqasFarooq @tdtran @matthewmayer @Neoklosch @vicktor

Google Play is currently not working due to changes on Google's side. I suggest you use another method like JSON: https://github.com/javiersantos/AppUpdater/wiki/UpdateFrom.JSON


🍴Add Styling Option for dropdown list item container and set correct type for text styles

@mmusaib Could you please merge these changes?


how to work with list of elements in page object model.

import { Selector, t } from 'testcafe';
const label = Selector('label');
class Feature {
constructor (text) {
this.label    = label.withText(text);
this.checkbox = this.label.find('input[type=checkbox]');
}
}
class OperatingSystem {
constructor (text) {
this.label       = label.withText(text);
this.radioButton = this.label.find('input[type=radio]');
}
}
export default class Page {
constructor () {
this.nameInput             = Selector('#developer-name');
this.triedTestCafeCheckbox = Selector('#tried-test-cafe');
this.populateButton        = Selector('#populate');
this.submitButton          = Selector('#submit-button');
this.results               = Selector('.result-content');
this.commentsTextArea      = Selector('#comments');
    this.featureList = [
        new Feature('Support for testing on remote devices'),
        new Feature('Re-using existing JavaScript code for testing'),
        new Feature('Running tests in background and/or in parallel in multiple browsers'),
        new Feature('Easy embedding into a Continuous integration system'),
        new Feature('Advanced traffic and markup analysis')
    ];

    this.osList = [
        new OperatingSystem('Windows'),
        new OperatingSystem('MacOS'),
        new OperatingSystem('Linux')
    ];

    this.slider = {
        handle: Selector('.ui-slider-handle'),
        tick:   Selector('.slider-value')
    };

    this.interfaceSelect       = Selector('#preferred-interface');
    this.interfaceSelectOption = this.interfaceSelect.find('option');
    this.submitButton          = Selector('#submit-button');
}

async submitName (name) {
    await t
        .typeText(this.nameInput, name)
        .click(this.submitButton);
}

}
In the above code snippet how can i use osList and featureList using typescript can you please help me with this. I need to know how to work with list of elements in page object model like submitName function.

Thank you for your inquiry. This issue looks like a question that would be best asked on StackOverflow - an amazing platform for users to ask and answer questions.
We try to keep the GitHub issues tracker for bugs and feature requests only (see also: Contributing).
If you think that this issue is a bug, feel free to open a new issue, but please make sure to follow the bug template. Thank you in advance.


Very big rectangle

Hi
Now when I select some text so that the popKit menu appears i get this:

I recently updated my theme (Border). Could that be it?

I also use the Border theme but haven't encountered this issue. Perhaps you could try switching to the default theme to see if the problem persists, and also check if any custom CSS has been introduced.