clarify system call verification data copying policies

Expand on policies on what to do with parameters passed to system calls by reference.
Security people, please feel free to throw spitballs at this.
The special case for large data buffers I think is needed, although it will require some care in writing the implementation functions. Otherwise, there will be the overhead of both a heap allocation to duplicate the buffer and an extra copy operation. I am particularly averse to requiring a heap for what is a very common operation in syscalls.
Also, what used to be called "handler functions" are now called "verification functions", update docs for this.

One detail I'm not sure of: what is Zephyr's polices on VLAs? I know we have a couple verifiers that use them.

I'd say we should not have VLAs, there are unspecified and undefined behaviours associated with VLAs. e.g: when the size is 0 or negative
The size expression in an array declaration is not a constant expression and evaluates
at program execution time to a nonpositive value (<IP_ADDRESS>).

Also, it is undefined what happens when the allocation fails and there is not way to figure it out.
Another thing that Linus pointed is:
It generates much more code, and much _slower_ code (and more fragile code), than just using a fixed key size would have done."

MISRA-C 18.8 requires to no use VLA as well

Things are a little ambiguous because we really haven't come up with a thread model to describe what usermode addresses

@d3zd3z this is a serious assertion. We have a threat model posted here: https://docs.zephyrproject.org/latest/reference/usermode/index.html. This is the first time anyone has communicated that this is insufficient. Please provide specific, actionable feedback on what is ambiguous or missing as soon as possible. Why have you not spoken about this before??

We have a threat model posted here

My sincerest apologies for the unbased claim. I was not aware of the threat model.


Improve pallet-session/pallet-staking for computation of initial era

At genesis this is how the initial validator set and its exposures are computed:

if the election succeed but gives 0 validators, or if the election fail then a new era is planned with no exposures, and pallet session will use all the validator who have session keys for the validator set of the initial era.
if the election succeed and gives more than minimum validators, then pallet session will use those validators.

If we want to implement https://github.com/paritytech/substrate/issues/2494#issuecomment-848692915 the first way doesn't work anymore. Instead the initial era wouldn't be created.
To solve this we can:

allow 0 validators and no exposure for the initial era only. (easy but dirty solution IMHO).
add a new genesis config field to optionally give the initial era validator set and exposures. This initial era validator set and exposures will be used for the initial era instead of computing the election. And pallet session will always use the validator set returned by new_session for its initial session.
Note: allow to add the initial era validator set and exposures is mandatory if the election pallet is configured with no on chain fallback. Indeed, if the election pallet needs offchain submission then it can't compute any solution during genesis build.

should be fixed by https://github.com/paritytech/substrate/pull/8984 I should finish the PR


Added a retry logic and a service availability check function for high availability.

Description
Problem:
If there are two servers in the hosts field (example: hosts "server1:9200,server2:9200"), automatic switching to the available host does not work. If server1 is unavailable, it does not switch to server2, and the service writes an error and freezes:
"Unexpected error raised. Stopping the timer. title=:in_opensearch_timer error_class=Faraday::ConnectionFailed error="EOFError (EOFError)""
Solution:
I added a retry logic in case of connection failures.
I created a service availability check function for high availability. New function get_reachable_hosts in in_opensearch.rb
I used one library opensearch to solve this problem.
And added ignoring any clear_scroll errors.
Checklist

[ ]  tests added
[x]  tests passing
[x] README.OpenSearchInput.md updated
[ ]  History.md and version in gemspec are untouched
[x] backward compatible

Thank you for your comments
I'll rework my patch based on your suggestions.

@kenhys Any concerns?

On thing, I had a nitpick though. The retry_state should be used inside of <buffer> sections. However, Input plugins of Fluentd do not have buffering mechanism. So, it should be wrong usage if we use <buffer> for this retrying functionality.
How you do think this nitpick, @kenhys or @daipom ?


I am very sorry - but for what ever reason 'let' is not working here

I am very sorry - but for what ever reason here @ work the code with 'let' is not working here - giving me a n is undefined JS error...
So I just patched it to var and it is working again - looks like that there is also an issue on your current PROD :-/ shame

I fixed this already, it has got to do with traceur transpiling the code to ES5. Did you build and get this error or when exactly?

I made the change yesterday at home - and once I have been @ work now I started with a fresh system - and there on the initial builds I came across this error in the console... That n was undefined...
I thought this is the root cause of an error that is currently present on the production environment - where you get an leaflet error when you start to drag a point from the current route (to create a new 'via' entry):
scripts.bb942bcae6b24062.js:12 Uncaught TypeError: Cannot read property 'segment_index' of undefined     at e.<anonymous> (scripts.bb942bcae6b24062.js:12)     at e.fire (vendor.9aac8a4a02d8449a.js:52)     at e._onDragEnd (vendor.9aac8a4a02d8449a.js:53)     at e.fire (vendor.9aac8a4a02d8449a.js:52)     at e.finishDrag (vendor.9aac8a4a02d8449a.js:53)     at e._onUp (vendor.9aac8a4a02d8449a.js:53)     at r (vendor.9aac8a4a02d8449a.js:51)     at j (vendor.9aac8a4a02d8449a.js:51)     at HTMLDocument.n [as _leaflet_touchendtouchend165_334] (vendor.9aac8a4a02d8449a.js:51)
I do not have this error locally with master and development branch... But I feel guilty for some reason.

current master have:
let i; for (let i = 0, n = latlngs.length - 1; i < n; i++) {
what will cause the error mentioned above...
changing the code to
for (var i = 0, n = latlngs.length - 1; i < n; i++) {
works here locally for me (but double checking this right now)...
Development branch looks like this:
let i; for (i = 0, n = latlngs.length - 1; i < n; i++) {
which seams to be working also... so "yes" this PR could be ignored... Prod just need the patch?!

I have created to much confusion here locally - I'll need to fix my workplace and then I'll try it again


Sprint 1 - Implement DBSCAN and Birch algorithms to generate clusters from ndmg data. Extract features using PCA and Hessian Eigenmapping

Description:
Using the graph data output from ndmg, generate clusters using DBSCAN and Birch algorithms. Then generate features using PCA in addition to a method such as Hessian Eigenmapping.
DoD:
-Run DBSCAN and Birch on ndmg output (using SKLearn)
-Generate features using PCA and Hessian Eigenmapping (SKLearn)
-Unsupervised RF algorithm run on ndmg data

-asd
-b
-c


declare the character set used in the body for x-www-form-urlencoded post

Declare the character set used in the body for x-www-form-urlencoded post (basic form request) . It could help the server side , especially for which default charset is not utf8, decoding the request body. Otherwise the server will use it's default charset decode our utf8 encoded body.

This PR has been closed as "abandoned" as a part of an automated cleanup. If this is a mistake and you are still interested in merging this PR, please do the following:

[ ] Rebase your changes onto the master branch (even if there are no merge conflicts, we want to make sure your change is under the most recent tests).
[ ] Push your updated branch to Github to update this PR.
[ ] Make sure this PR's Travis tests are still passing. (Run npm test locally if tests are still failing).
[ ] Comment here to let us know that you've updated the PR and are still interested in getting it merged. Somebody from the project will respond and work with you to review.

Thank you for your understanding. If you have any questions, please check out https://github.com/request/request/issues/2556 and feel free to comment / ask anything there.


Bug report

All I did was launch the app on Mac Os Ten Point Elven dot 5ive.
Looks like some kind of race condition:
A JavaScript error occurred in the main process

Uncaught Exception:
Error: Cannot create BrowserWindow before app is ready
    at Error (native)
    at /Users/sdegutis/Downloads/Marp.app/Contents/Resources/app.asar/js/classes/mds_window.js:1:1282
    at new e (/Users/sdegutis/Downloads/Marp.app/Contents/Resources/app.asar/js/classes/mds_window.js:1:2911)
    at EventEmitter.<anonymous> (/Users/sdegutis/Downloads/Marp.app/Contents/Resources/app.asar/js/main.js:1:994)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)

@sdegutis Thanks for reporting bug.
I had tried reproducing it on a while, but I couldn't. #21 by @brandly might fix this issue. It would apply to next version.
I guess it causes while opening file from the provided error traces. I would be grateful if we could see more detailed situation for bringing the bug.

@yhatt The steps to reproduce:

Downoad the app for the first time ever
Open the app for the first time ever

It only happened once for me. I can't even reproduce it.

Hmm, I can't chase this issue at the moment...
I'll still chase if you meet this bug on next release version.

Close issue. Please re-open if you will see it in v0.0.9


[Backport release-24.05] slskd: 0.21.3 -> 0.21.4

Manual backport of https://github.com/NixOS/nixpkgs/pull/344958, needed as https://github.com/NixOS/nixpkgs/commit/2641d97cbf96e0b4caf1733edc47cf1298de0960 isn't present in release-24.05.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

An expected failure since merge conflicts had to be resolved.

The test suite seems to fail on x86_64-linux on ofborg.

I'm not sure how exactly to troubleshoot this: the exact same derivation (/nix/store/dgfwg97aqgabsncyk8fi00k0px1j0gnh-slskd-0.21.4.drv) builds completely normally with all tests passing on my machine.

@ofborg eval

@ofborg build slskd

I'm not sure how exactly to troubleshoot this: the exact same derivation (/nix/store/dgfwg97aqgabsncyk8fi00k0px1j0gnh-slskd-0.21.4.drv) builds completely normally with all tests passing on my machine.

Most likely a flakey test. Seems to be good enough for Ofborg now though and it hasn't been replicated in Hydra yet, so this may be good to merge? But I'd recommend disabling the test(s?) responsible here and in master at some point regardless


Search results returning errors

https://ohana-mia-test.herokuapp.com/locations?utf8=✓&keyword=test&location=

@davidjamesknight, I'm gonna give this to you now that you'll be working more on this project again. Let me know what you need to get this working, including if I need to set up any calls.

Hey @robredpath, you mentioned there was a config file you used to get your version working. Going through your github, is it this file?
https://github.com/robredpath/ohana-api/blob/72bd9ea6f9aff8fea83db4f37865adec42dda144/SETUP.md
Also: we're working on separate forks of ohana-web-search. Does it make sense to merge into one at some point?


fix experience with validating metro config in non-interactive mode

Checklist

[x] I've added an entry to CHANGELOG.md if necessary.
[ ] I've tagged the changelog entry with [EAS BUILD API] if it's a part of a breaking change to EAS Build API (only possible when updating @expo/eas-build-job package).

Why
Fixes https://github.com/expo/eas-cli/issues/643
How
Check if running in non-interactive mode and proceed even if the metro config seems invalid
Test Plan

Thank you @dsokal!


Debugging slow cache seed

I wonder if there is a way to determine why certain tiles take a ridiculous amount of time to build.  It helped me reducing my querytime by realizing it was querying an expensive view and replaced it with a materialised view with an index
it even comes with an easy to use docker:
docker run -ti -e DATABASE_URL=postgres://user:pass@host:5432/database -p 8080:8080 ankane/pghero

@stvno great suggestion! I have also used pgBadger to parse Postgres logs and find slow queries. The two primary performance bottlenecks are inefficient queries and large complex polygons. If you have a lot of large polygons (in number of points) you can try pre simplifying the geometries and turning simplification off for that layer in the tegola config. The less points to process = less work for tegola to do.


Update guide for AuReiNand 5.0

AuReiNand 5.0 was released today and has a bunch of changes. Most notable to this guide is that the various firmware files (including AGB and TWL) are no longer needed. There may be some other changes that affect the guide but that's the biggest one.

I'm extremely new into 3DS modding/hacking and have not started the A9LH process yet. Should I hold off until AuReiNand 5.0 is addressed?

They have already been addressed.

My bad, new to GitHub. I was only looking at the Home page of the guide and didn't realize each individual page had its own "Plailect edited this page" times and dates.


Applications: apps json list

Need to

Host on real instance per config (master/beamX &c)
Implement registration of new apps & appstore stuff

This is backend task, nothing to test


API registration: switch email provider

I have added the credentials of the riseup email account to ooni/sysadmin: https://github.com/ooni/sysadmin/commit/0e5d46c21549cc14bdb628f516a9ed0a64b5cb1e

This is now deployed.


ISPN-9625 Clustered Locks reliability and consistency XML config

ISPN-9625 Clustered Locks reliability and consistency XML config
I am reusing the same issue because there are only a few changes. Let me know if you prefer a new one.

@diegolovison Looks good to me, but if you don't mind I rather add a new issue because these changes are not related to the XML configuration of the locks.

Ok. Lets create a new JIRA if the team agree that we should improve the docs :)

@diegolovison I think we should improve docs, but maybe we should delete the INSTANCE stuff from the code, because it is not supported and won't be supported for a while xD

@diegolovison Did you create a new JIRA? You should change the commit message to link to that new JIRA.

@galderz Done


PR for getAllPlugins method with Promise implementation

I think this should work, I've gone ahead and used a Promise object instead of fs.readFileSync, so this should be consistent with the rest of the program.

Coverage decreased (-2.5%) to 97.484% when pulling 757d58f0b7392dc60991fcfcf8dd8c9facf1351b on mrjohnyhats:develop into 5cc8d1681915f58bbf614a1a778ad32fbffe8887 on vutran:develop.


scss module is not working[Bug]

Describe the bug
I've tried to use scss so followed instruction to use @storybook/preset-scss on documentation and importing scss is working
import React from "react"
// this is working
import "./Button.scss"

const Button = () => (
  <button type="button" className={"simpleButton"}>test2</button>
    )

export default Button

but scss module is not working.
import React from "react"
// This is not working
import styles from "./Button.module.scss"

const Button = () => (
   // styles.simpleButton is undefined
  <button type="button" className={styles.simpleButton}>test2</button>
    )

export default Button

Steps to reproduce the behavior
I implemented an example https://github.com/qkreltms/lerna-test1  (webpack branch)
clone my project and type yarn install  to install all packages
and type yarn storybook
Expected behavior
Should scss module is working (in the example button's background must be set pink)
Screenshots and/or logs

Environment

OS: [win10]
Node.js version: [v14.15.3]
NPM version: [6.14.11]
Yarn version [1.16.0]
Browser (if applicable): [chrome]

Here's my main.js file configuration that works with scss modules
module.exports = {
  stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
  addons: [
    "@storybook/addon-links",
    "@storybook/addon-essentials",
    {
      name: "@storybook/preset-scss",
      options: {
        cssLoaderOptions: {
          modules: {
            auto: true,
          },
        },
      },
    },
  ],
};

I've tried auto, but failed.

I have the same problem with<EMAIL_ADDRESS>and webpack@5.

Same problem on<EMAIL_ADDRESS>and webpack@5

Actual have it working on another project the only difference being that is webpack@4


innodb_buffer_pool_size and max_connections are trying to use ~175% of the physical memory?

(there is question mark in the title since I'm not 100% sure yet before running a stress test)
Steps to reproduce

juju deploy mysql --channel 8.0/edge

Expected behavior
mysqld should allocate memory for innodb_buffer_pool_size and max_connections within the amount of the physical memory available.
Actual behavior

The charm writes the following config with 32GB memory system.
[/var/snap/charmed-mysql/current/etc/mysql/mysql.conf.d/z-custom-mysqld.cnf]
[mysqld]
bind-address = <IP_ADDRESS>
mysqlx-bind-address = <IP_ADDRESS>
report_host = juju-584fb0-0.lxd
max_connections = 2570
innodb_buffer_pool_size =<PHONE_NUMBER>4
log_error_services = log_filter_internal;log_sink_internal
log_error = /var/snap/charmed-mysql/common/var/log/mysql/error.log
general_log = ON
general_log_file = /var/snap/charmed-mysql/common/var/log/mysql/general.log
slow_query_log_file = /var/snap/charmed-mysql/common/var/log/mysql/slowquery.log
innodb_buffer_pool_chunk_size =<PHONE_NUMBER>

available_memory: 32,341,442,560 (~32GB)
innodb_buffer_pool_size = 23,219,666,944 (~23GB)
innodb_buffer_pool_chunk_size = 2,902,458,368 (~3GB)
max_connections = 2,570 -> 2,570 * 12MiB (12,582,912) = 32,338,083,840 (~32GB)

So it looks like innodb_buffer_* tries to use ~23GB of memory at maximum and max_connections tries to use ~32GB of memory at maximum on the same 32GB memory.
https://github.com/canonical/mysql-operator/blob/8bf9fb36ce23b06f5b0838868a2ebe54486d912f/lib/charms/mysql/v0/mysql.py#L717-L727

Versions

Operating system: Ubuntu 22.04 LTS

Juju CLI: 3.4.0-genericlinux-amd64

Juju agent: 3.4.0

Charm revision: mysql  8.0/edge  210

LXD: 5.20
Log output

Juju debug log:
This is from an extra debug logging with by hand modification to add some traces.
2024-03-05 14:13:28 WARNING unit.mysql/0.juju-log server.go:325 available_memory=32341442560
2024-03-05 14:13:28 WARNING unit.mysql/0.juju-log server.go:325 memory_limit=0
2024-03-05 14:13:28 WARNING unit.mysql/0.juju-log server.go:325 available_memory=32341442560
2024-03-05 14:13:28 WARNING unit.mysql/0.juju-log server.go:325 innodb_buffer_pool_size=23219666944
2024-03-05 14:13:28 WARNING unit.mysql/0.juju-log server.go:325 innodb_buffer_pool_chunk_size=2902458368
2024-03-05 14:13:28 WARNING unit.mysql/0.juju-log server.go:325 group_replication_message_cache_size=None
2024-03-05 14:13:28 WARNING unit.mysql/0.juju-log server.go:325 max_connections=2570

Additional context

@nobuto-m , you are on absolutely correct. Created PR with the fix

https://github.com/canonical/mysql-operator/pull/429#discussion_r1544142953

Essentially this is (at least) a 3-parameter problem to me. The proposed logic is better than the current one since it can avoid overcommitting memory to 175%. However, keeping limiting user-configurable parameters to 1 doesn't solve the fundamental challenges.

At this moment, we don't allow configuration other than the parameter "A" in the diagram. I assume that the mysql.py logic is shared between the machine charm and the k8s charms so the parameter "A" is determined either by the total amount of physical memory, memory_limit charm config, or pod resource limit. But no other parameters about the memory allocation can be supplied by an user.
When an user needs to bump the max_connections we will have to bump the memory requirement 4 times unnecessarily since there is no way to tell the charm to change the ratio of the memory allocation (75% innodb pool size + 25% max_connections).
For example with MySQL use cases as the backend of OpenStack deployment, we know that it requires a few thousand max connections to cover the distributed (and micro service-ish) control plane services and the multiple workers of each micro service, but 8GB of innodb buffer pool size is more than enough.
Let's say to have max_connections=4,000, 64 GB of the instance is more than enough (4,000 connections * 12MB + 8GB innodb buffer pool size = 56GB). However, with the fixed ratio, we need 200GB machine (4,000 connections * 12MB * (75+25)% / 25% = 192GB).
I cannot think of a better way than moving away from a single parameter.

Hi @nobuto-m , indeed it's a very compelling argument.
By concept are trying to reach a close to optimal self calculated defaults and for sure we still need to sophisticate it further.
I will take your case forward, given it's impossible to satisfy every use case.


App Freezes on Main Thread on Xcode 11.6

[REQUIRED] Step 1: Describe your environment

Xcode version: 11.6
iPhone OS version: 13.5.1
iPhone Model: iPhone 7 Plus
Firebase SDK version: 6.29.0
Firebase Component: (Core, Analytics, Performance, Crashlytics)
Component version: 6.9.2, 6.7.0, 3.2.1, 4.3.1
Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem
After upgrading to latest version of Firebase, and using it on Xcode 11.6, sometimes the app freezes, and when I check the main thread appears this:

Thanks for the report. Are you able to reproduce this with the Crashlytics sample quickstart app while on Xcode 11.6 and the most recent version of Crashlytics?


Pending update for uno panel that I don't have

Great work on this integration, really appreciate all the work you've put into this.  Just a quick question, is there any way to get rid of the pending update showing in HACS.  I have a Honeywell panel running v0.8.2 and the update v0.9.0 keeps showing up but in the description it says do not install this if you have a Honeywell panel.  Thanks again for everything you've done on this!!!

You probably have the "Show Beta Versions" box checked for the integration.  If you turn that off, it should make the notification go away.  You can access that via HACS->Envisalink Refactored and then the Redownload item after clicking the three dots in top right corner.

Thank you, that did the trick.  Thanks for all you have done on this, works
beautifully with my Vista 20p.
On Mon, Mar 18, 2024 at 3:49 PM ufodone @.***> wrote:

You probably have the "Show Beta Versions" box checked for the
integration. If you turn that off, it should make the notification go away.
You can access that via HACS->Envisalink Refactored and then the Redownload
item after clicking the three dots in top right corner.
—
Reply to this email directly, view it on GitHub
https://github.com/ufodone/envisalink_new/issues/102#issuecomment-2005192220,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKBBMOHRUVKQRHL5ZKMLGI3YY5VO3AVCNFSM6AAAAABEWYKYVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBVGE4TEMRSGA
.
You are receiving this because you authored the thread.Message ID:
@.***>


If the config file isn't valid, throw an error and exit (FIXES: #18)

If the JSON in the config file isn't valid for whatever reason, we should exit the process immediately.
According to #13 there aren't a lot of tests yet, so I'm submitting this without any tests.
Manual test:
# Ensure we have bad json
root@host fullerite]# cat /etc/fullerite.conf | python -m json.tool
Expecting , delimiter: line 19 column 13 (char 492)

[root@host fullerite]# fullerite -c /etc/fullerite.conf
INFO[19 Aug 15 00:05 BST] Starting fullerite...                         app=fullerite
INFO[19 Aug 15 00:05 BST] Reading configuration file at /etc/fullerite.conf  app=fullerite pkg=config
ERRO[19 Aug 15 00:05 BST] Invalid JSON in config: invalid character '"' after object key:value pair  app=fullerite pkg=config

This is the first time I've ever written any Go, so apologies if it's nasty/horrible!

The fix looks good. Thanks! But can you please add a test for a config error? We don't have much tests for fullerite yet but config is a package that has some tests. :)

Thanks for the feedback @baris ! I'll have a go at writing some tests :)

I'm working on tests and I'll write a test for this as well. Merging this in.

df630e797bebf implements the test.


Using latest for the @ai16z packages breaks the project.

Upon a fresh pnpm install, running pnpm start errors with following output:
src/index.ts:9:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'DbCacheAdapter'.

9   DbCacheAdapter,
    ~~~~~~~~~~~~~~

src/index.ts:11:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'FsCacheAdapter'.

11   FsCacheAdapter,
     ~~~~~~~~~~~~~~

src/index.ts:12:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'ICacheManager'.

12   ICacheManager,
     ~~~~~~~~~~~~~

src/index.ts:13:3 - error TS2724: '"@ai16z/eliza"' has no exported member named 'IDatabaseCacheAdapter'. Did you mean 'IDatabaseAdapter'?

13   IDatabaseCacheAdapter,
     ~~~~~~~~~~~~~~~~~~~~~

src/index.ts:16:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'CacheManager'.

16   CacheManager,
     ~~~~~~~~~~~~

src/index.ts:23:3 - error TS2305: Module '"@ai16z/eliza"' has no exported member 'validateCharacterConfig'.

23   validateCharacterConfig,
     ~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts:229:5 - error TS2353: Object literal may only specify known properties, and 'cacheManager' does not exist in type '{ conversationLength?: number; agentId?: `${string}-${string}-${string}-${string}-${string}`; character?: Character; token: string; serverUrl?: string; actions?: Action[]; evaluators?: Evaluator[]; ... 8 more ...; logging?: boolean; }'.

229     cacheManager: cache,
        ~~~~~~~~~~~~

src/index.ts:248:15 - error TS2339: Property 'username' does not exist on type 'Character'.

248     character.username ??= character.name;
                  ~~~~~~~~

src/index.ts:259:14 - error TS2339: Property 'init' does not exist on type 'PostgresDatabaseAdapter | SqliteDatabaseAdapter'.
  Property 'init' does not exist on type 'PostgresDatabaseAdapter'.

259     await db.init();
                 ~~~~

src/index.ts:264:19 - error TS2339: Property 'initialize' does not exist on type 'AgentRuntime'.

264     await runtime.initialize();
                      ~~~~~~~~~~

Found 10 errors in the same file, starting at: src/index.ts:9

 ELIFECYCLE  Command failed with exit code 2.

It is not a good practice to use latest versions for dependencies. Please pin to a compatible version for project stability and usability.

Upon trying to make the package version changes myself, none of the published ai16z package versions, currently 0.1.1, 0.1.2, and 0.1.3, match this project's source code. It seems that interfacing with these packages needs to be updated for this project to be functional.

Hello, i had the same error when i started.

Upon trying to make the package version changes myself, none of the published ai16z package versions, currently 0.1.1, 0.1.2, and 0.1.3, match this project's source code. It seems that interfacing with these packages needs to be updated for this project to be functional.

Hello, i had the same error when i started.
What i did was to run "PNPM INSTALL" THEN "PNPM BUILD" AND FINALLY "PNPM START"
Ensure youre running node version 23
That should do.

pnpm build seems to be broken in f7e0490, tried to build manually with npx tsup --format esm --dts src/* and got the same error as OP

@rsmets
You should delete pnpm-lock.yaml because it's out of date compared to the code. Then run pnpm install again to pull the latest packages. I tried and it worked successfully.

@dadsec-dev can you share package.json and code

seems everything goes well in my local
apple@apples-MacBook-Pro eliza-starter % node -v v23.3.0 apple@apples-MacBook-Pro eliza-starter % pnpm -v 9.8.0
the running log
` ◎ LOGS
Registering service:
video
["✓ Server running at http://localhost:3000/"]

["✓ Service browser initialized successfully"]

["✓ Service image_description initialized successfully"]
["✓ Service text_generation initialized successfully"]
["✓ Service pdf initialized successfully"]
["✓ Service speech_generation initialized successfully"]
["✓ Service transcription initialized successfully"]
["✓ Service video initialized successfully"]
["◎ Chat started. Type 'exit' to quit."]
You:  `

Check https://github.com/ai16z/eliza-starter/pull/21


Automate pull requests

Would be a productivity enhancement to the overall refactor workflow.
See https://www.perplexity.ai/search/i-have-implemented-a-method-in-r9LqYEiRQemH8LxAva8xJQ.

Completed as of 8e1a94829d6ca0f9f3b890ecefa62497e15d6925.


Replace current webinar banner with Fluent Bit Academy

Swaps out one promotional banner for another

@edsiper or @patrick-stephens Could I get a review of  this PR?


Delete model

Description
Delete models when no git/t4c models are attached.
Resolves part of #24
One issue: it still shows up the in "project-wrapper".
Testing
How were the changes tested?
Checklist

[ ] My code follows the guidelines of this project: CONTRIBUTING.md
[ ] I updated the documentation with the new functionality
[ ] I went through the code and removed all print statements, breakpoints and unused code
[ ] Error handling for all possible scenarios has been implemented
[ ] I've add logging for all relevant operations
[ ] I added the appropriate labels to this PR (enhancement/bug/documentation, effort, priority)

@dominik003 Something like this:

This looks great :thumbsup:


Add batch retrieval integration tests

Sorry for reopening this. Adding some batch retrieval integration tests.

/retest

/test test-core-and-ingestion

/retest


[Request] Add releases to Github page

Some people would prefer to run ttu locally with a lightweight web server so that they don't have to depend on an internet connection to read ebooks. Building the site requires both npm and over 600mb of npm dependencies to produce a small folder which can be hosted by any standard web server.
I am personally interested in creating a wrapper script with the extremely light http server darkhttpd to launch ttu lightweight and locally, and putting this script in user package repositories like the AUR. Adding github releases would help greatly as they can be fetched and used quickly, programmatically, and without npm.

Done, let me know if you need more from the release


yaw_pithc_roll

Hello Kieran,
I am trying to obtain the euler angles (yaw, pitch, roll sequence) from yaw_pitch_roll but when introducing a Quaternion class type it does not work. It returns me a 'tuple' object is not callable error.
I am not sure what is going on, or if it is possible to perform that conversion another way.
Sorry for the inconveniences.
Kinds regards,
Jose Herrera

Quaternion.yaw_pitch_roll is a property, not a method - so you don't need the () on the end.
>>> from pyquaternion import Quaternion
>>> r = Quaternion.random()
>>> r.yaw_pitch_roll
(0.5707924427321308, -1.3428330941518551, 1.1461679465348418)
>>> r.yaw_pitch_roll()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'tuple' object is not callable


Web map "MyaDrive" references external basemap

Web map "MyaDrive" (id: 6172bd7ba5fa4530a3e3c0be135289ce) is referencing an ArcGIS online basemap https://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer and https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
If the operation layers of a web map reference a service on the dev server then the basemap should be a service on the dev server also.

@dhagens - We are getting the Ops Server ready for the upcoming release and need to get this fixes as soon as possible. Thanks.

Verified. Closing issue.


Question: Different Function Syntax for Methods and Anonymous Blocks

I just have a few questions about the Function syntax in Wren and the reasoning behind it.  I am on Windows so I couldn't get it running to find out for myself.  I have never written a language so I have no idea what the internal trade offs may be, or why certain syntax variation may actually make the language simpler or faster.
For a method the arguments list is wrapped in parens, followed by the block braces.
callMe(fn) {
  // Call it...
}

An anonymous function, however, has its arguments surrounded by pipes.
{ |first, last|
  IO.print("Hi, " + first + " " + last + "!")
}

You can then pass this function immediately to another function as an argument.
callMe { |first, last|
  IO.print("Hi, " + first + " " + last + "!")
}

But if you want to pass multiple arguments to a function, including a function, you use a different syntax again.  Wrapping the non function arguments in parens and leaving the anonymous function bare.
blondie.callMeAt(867, 5309) {
  IO.print("This is the body!")
}

When passing an anonymous function as a parameter to another function, it doesn't need to be instantiated.  But when storing a function in a variable, it does.
var someFn = new Fn {
  IO.print("Hi!")
}

It seems to me the syntax could have a smaller footprint as follows.
Stroring anonymous function without new Fn, just like passing the function to a method.
var someFn = {
  IO.print("Hi!")
}

Calling a method with a function(s) as an argument, just like any other argument.
callMe({
  IO.print('First function!')
},{
  IO.print('Second function!')
},3,4,5)

An anonymous function's arguments stored in parens instead of pipes, just like methods.

(first, last) {
  IO.print("Hi, " + first + " " + last + "!")
}

Looking forward to trying Wren out, and hearing your thoughts.

An anonymous function, however, has its arguments surrounded by pipes.

Right. This is because using parentheses before the curly body would be ambiguous given the other syntax for passing a function to a method that also takes parameters:
someMethod (foo) { ... }

Here, is foo the first argument to someMethod, or the parameter for the function being passed to it?

When passing an anonymous function as a parameter to another function, it doesn't need to be instantiated. But when storing a function in a variable, it does.

The same amount of allocation happens either way, actually. The new Fn {} just returns the function you pass to it, so don't read too much into that new there. In both cases, you need to create an object, but only one. :)
var someFn = {
  IO.print("Hi!")
}

I really like the syntax you suggest here. I actually did pretty much this for the language Wren is based on. However, there are two things that get in the way:

Wren has a "block statement" similar to C, Java, etc. Like:

var a = "outer"
{
  var a = "inner"
  var b = "second"
  IO.print(a) // inner
}

IO.print(a) // outer
IO.print(b) // ERROR: b is not in scope

Sometime soon, Wren will have maps (think hashes/hashtables/objects in JS) and those will also use curly bodies:

{
  "key": "value"
}

That ends up with a lot of corners of the grammar fighting for those curlies and it gets ambiguous very easily.

Calling a method with a function(s) as an argument, just like any other argument.

Yes, we could definitely do that if there was a dedicated function syntax. Wren actually used to have that (see: https://github.com/munificent/wren/commit/d14601855917cafd9c73d8b9ecbc35a87de881aa). It looked like:
var someFn = fn() {
  IO.print("Hi!")
}

Where fn was a reserved word. In practice, though, most of the time you use functions, you are immediately passing them a method, like:
someList.map(fn() {
  ...
})

All of that ( () { }) punctuation really bothers me, which is why I added the syntactic sugar for creating a function directly by passing it to a method:
someList.map {
  ...
}

But, then, once I did that, I realized I didn't need the fn() { ... } syntax at all anymore. I could just make some built-in method that would return the block you pass to it in the rare cases where you don't need to immediately pass it to a method. The obvious name for this built-in method was... new Fn. :)
That let me tear out the old fn syntax (https://github.com/munificent/wren/commit/55c2c6ffb0bef31ce80acc3af1a4ace9b232e885) and simplify the language, which is always a good thing.
I later realized Ruby does the exact same thing.
The only part that bugs me is having two syntaxes for parameters lists, (a, b, c) for methods and |a, b, c| for functions. I'd like to make those consistent, but haven't been able to come up with a good way to do it that plays nice with:
someList.method(args, for, method) {
  ...
}

Thanks @munificent!
It is really interesting to hear the reasons things end up the way they do, and then to hear the ruby probably did the same thing for the same reason is just weird.
I can see how quickly the various uses of {  ...  } would introduce complexity.   And again, I've never written a language so I don't know how hard it is to resolve that complexity.
But shouldn't the presence of the var <varname> = { ... } resolve the ambiguity?
var fn = {
  IO.print('I am a function')
}

var block = {
  // unless you can have a named block the above shouldn't be ambiguous
}

And doesn't the : in the map resolve ambiguity too?

The only part that bugs me is having two syntaxes for parameters lists

Perhaps the argument list could always live in side the braces
var fn = new Fn { ( a,b )
  IO.print(a+b)
}

class Blondie {
  callMe { (fn)
    // Call it...
  }
}

That is a little different, but may resolve the ambiguity of
someList.method(args, for, method) {
  ...
}

someList.method(args, for, method) { (arg, def, for, anon, func )
  ...
}

That may just introduce more ambiguity in other places though ...
Maybe I'll try and implement my own language before asking anymore questions :smile:

But shouldn't the presence of the var  = { ... } resolve the ambiguity?

Yup, but that means you could only define a function as the right-hand side of a variable declaration, which would be an annoying limitation. I think users expect to be able to write a function anywhere an expression is allowed.

And doesn't the : in the map resolve ambiguity too?

In general, yes. It gets a bit tricky with empty maps, blocks and functions.
What gets nasty is if you allow arbitrary expressions as map keys, like:
{
  "some" + "long" + "map" + "key": "ok, finally a value"
}
```

If the parser doesn't know if it's parsing a map or a function until it sees that `:`, it may have to parse arbitrarily far ahead before it finds one. This isn't intractable, but it requires unbounded lookahead, which tends to make parsers nastier and can cause slowdowns if you aren't careful.

> Perhaps the argument list could always live in side the braces

That's definitely an option. I don't know about you, but it looks a bit funny to me?

In general, yes. It gets a bit tricky with empty maps, blocks and functions.

I hadn't thought of that problem.   And I am not sure how you are going to handle empty blocks/maps now that you mention it.

I don't know about you, but it looks a bit funny to me?

This isn't intractable, but it requires unbounded lookahead, which tends to make parsers nastier and can cause slowdowns if you aren't careful.

Ah I see!  That is exactly the kind of answer I was looking for.  Thanks for taking the time.

And I am not sure how you are going to handle empty blocks/maps now that you mention it.

I believe it will work out. A {} by itself will be an empty map. A {} that appears where a function argument can appear will be parsed as an empty function. There's no use for empty blocks, so they just won't be possible.

A {} that appears where a function argument can appear will be parsed as an empty function

Which explains why your passed functions are outside of the arg parens (another thing I wondered).  Otherwise you wouldn't know if the argument was a function or a map literal!

The only part that bugs me is having two syntaxes for parameters lists, (a, b, c) for methods and |a, b, c| for functions.

Just reflecting on this again.  Could argument definitions always be in pipes, and argument passing always be in parens?
That way you can keep your parens outside the body without having ambiguity.
class Blondie {
  someFunc |a,b,c, fn| {

  }
}

...

blondie.someFunc(a,b,c) | c,d | {
  IO.print(c,d)
}

Could argument definitions always be in pipes, and argument passing always be in parens?

That's definitely possibly, but I think the unfamiliarity tax would be too high. :(
blondie.someFunc(a,b,c) | c,d | {
  IO.print(c,d)
}

Putting the | c, d | before the { is ambiguous with the infix bitwise | operator. Consider:
 foo.bar | b | {}
Is that passing a one-argument function to bar, or calling the bitwise | on foo.bar, b, and an empty map?

Syntax design is hard! :)

Indeed :)


Controller gets a cycle when using 1.0.0-alpha but ok with 0.2.18

To help with debugging I have a block that looks like this

{{ ctrl | json }}

Where I do a dump of the current controller state.  However when I use the current alpha version of angular-ui-router, I get a cycle in the controller and JSON.stringify complains on both Firefox and Chrome.

interesting.  I suspect it's the newly added $scope.$resolve (or controllerAs.$resolve)
app.filter('noresolve', function() {
  return function(input) {
    let copy = Object.assign({}, input)
    delete copy.$resolve;
    return copy;
  }
});

{{ ctrl | noresolve | json }}

See this plunker: http://plnkr.co/edit/dfBRoIvyzbCelXGLsDU1?p=preview
note: $scope.$resolve is coming soon in 0.2.19 as well.

Can it be refactored to $$resolve? since $$ prefixed items are ignored by toJson() https://github.com/angular/angular.js/blob/master/src/Angular.js#L1166

We are using $resolve to be consistent with what ngRoute does for "component templates": https://docs.angularjs.org/guide/component
Because of that I don't think we should rename it.


[FLINK-19775][test] SystemProcessingTimeServiceTest.testImmediateShutdown is instable

What is the purpose of the change
I will repair the test function (SystemProcessingTimeServiceTest.testImmediateShutdown)  which  is instable .
Express in the FLINK-19775
Brief change log
-change flink/flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/core/testutils/OneShotLatch.java
Verifying this change
This change is already covered by existing tests, such as SystemProcessingTimeServiceTest.testImmediateShutdown.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): ( no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (no)

@dianfu ,hi,Teacher Fu,I have finished my work for this problem . Can you help me review my code?

@flinkbot run travis re-run the last Travis build

@flinkbot run azure re-run the last Azure build

@flinkbot run travis re-run the last Travis build

@flinkbot run azure re-run the last Azure build

@xiaoHoly It will trigger the test atomically when you pushing a new commit. Usually there is no need to trigger the test manually. Besides, you can use command @flinkbot run azure instead of run azure re-run the last Azure build to trigger the tests.

I'm not quite familiar with this part.
cc @tillrohrmann

@xiaoHoly It will trigger the test atomically when you pushing a new commit. Usually there is no need to trigger the test manually. Besides, you can use command @flinkbot run azure instead of run azure re-run the last Azure build to trigger the tests.

Thanks for your advice

HI,@tillrohrmann .PTAL

Closing this PR until the root cause of the problem has been found.

@tillrohrmann ,Maybe I found the reason for the instability. It depends on when the thread A calling the await() method acquires the lock of the lock object in the jvm lock pool. According to the lock.wait() code in the await() method, we will know that it will cause the current thread A to enter the blocking state. At this point, trigger() will perform its work in the thread B to which it belongs. Suppose that when thread B executes to lock.notifyAll(), thread A will be awakened, but the lock of the lock object is not allocated in time and is still blocked. As long as the interrupt flag  of thread A is true, InterruptedException will be thrown. So I thought of two solutions. The first point: Thread B changes the interrupt flag  of thread A to false before executing lock.notifyAll(). This method can ensure that the A thread will not throw InterruptedException after being awakened, but how to restore the thread interruption flag for different threads still needs to be considered. The second point: Use catch code to catch the exception in the A thread, it will automatically restore the thread interruption flag, and make the compilation pass. But the second method cannot solve the problem of exception throwing.

To facilitate the discussion, I will post the code below：
method of  Thead A!
public void await() throws InterruptedException {
synchronized (lock) {
while (!triggered) {
Thread thread = Thread.currentThread();
try {
waitersSet.add(thread);
lock.wait();
} finally {
waitersSet.remove(thread);
}
}
}
}
method of  Thead B!
public void trigger() {
synchronized (lock) {
triggered = true;
lock.notifyAll();
}
}


Make better concurrency

When we use statement.all method in node-sqlite，it will query the raw data from sqlite in Work_All , then make the raw data into js objects and callback for js code in Work_AfterAll
the method  Work_All is invoked in the libuv worker thread but the method Work_AfterAll is invoked in the main thread.
when we use statement.all to query large data, the method Work_AfterAll will cost most of time.
I think it wiil be better to move the following code  from Work_AfterAll to Work_All, which making raw data into js objects
Napi::Array result(Napi::Array::New(env, baton->rows.size()));
                Rows::const_iterator it = baton->rows.begin();
                Rows::const_iterator end = baton->rows.end();
                for (int i = 0; it < end; ++it, i++) {
                    std::unique_ptr<Row> row(*it);
                    (result).Set(i, RowToJS(env,row.get()));
                }

                Napi::Value argv[] = { env.Null(), result };

Unfortunately, it is impossible. The majority of Napi/NAN functions (including JS object creation) could be called only from the main/event loop thread.

Unfortunately, it is impossible. The majority of Napi/NAN functions (including JS object creation) could be called only from the main/event loop thread.

yep, I found this limitation several days ago

Unfortunately, it is impossible. The majority of Napi/NAN functions (including JS object creation) could be called only from the main/event loop thread.
what about use arraybuffer

Unfortunately, it is impossible. The majority of Napi/NAN functions (including JS object creation) could be called only from the main/event loop thread.

yep, I found this limitation several days ago

what about  use arraybuffer to pass query result from c++ to js, arraybuffer can speed up passing data and avoid copy of passed data


Enrich typo dictionary

Applied more improvements with this PR:

The old approach uses "char" to build up the mapping dictionary to normalize a string: https://github.com/NuGet/NuGetGallery/blob/73c5d8a9531af49dbc1f631ab6e308bfb7583533/src/NuGetGallery/Services/TyposquattingStringNormalization.cs#L48
However, .NET Char represents a single UTF-16 code unit, and a string is a collection of code units. For Unicode, there are also "Surrogate pairs" and "Combining characters" where a grapheme contains more than 2 bytes. This leads to the broken mapping in the dictionary, for example:
"𐒅" is represented by a pair of 16-bit values: \ud801 \udc85, and the dictionary now has two broken mappings: \ud801 -> 'h', \udc85 -> 'h', which is not expected.
Luckily, .NET provides a class StringInfo to solve this problem elegantly:
https://docs.microsoft.com/en-us/dotnet/api/system.globalization.stringinfo?view=net-5.0
So this PR moves to use StringInfo to fix the "Surrogate pairs" and "Combining characters" issue. Tests show that this approach works correctly.

Even though we'd like to fix the issue of "Surrogate pairs" here, we actually have a validator before the typo-check:
https://github.com/NuGet/NuGetGallery/blob/73c5d8a9531af49dbc1f631ab6e308bfb7583533/src/NuGetGallery.Core/Packaging/PackageIdValidator.cs#L13-L15
This validator has already blocked the package Id with a "Surrogate pairs". This is tested and verified locally.
There is an online tool (http://regexstorm.net/tester) who tests .NET regex. With the regex ^\w+([.-]\w+)*$, "𐒅tml.1.0.0" can't pass the validation but "ĥtml.1.0.0" ('ĥ' is not a "Surrogate pairs") is passed.

There is another big item "Combining characters" in the Unicode world. These "Combining characters" are small glyphs that can be added above, below, or on the main character, for example:
"ä̼́" is represented by multiple 16-bit values: \u0061 \u0344 \u033C, but it's very likely to be read as only 1 grapheme.
StringInfo can also handle "Combining characters", but "Combining characters" can stack and have nearly an infinite combination of graphemes, such as the infamous "Zalgo" (https://en.wikipedia.org/wiki/Zalgo_text) example: z̶̸̸̴̴̠̹͙͙͌ͫͧ̌a̵̴̸̸̸̯͕͈͔͛̀͞͝l̷̶̷̶̷̨̞᷂͇᷉ͤͭ︡ģ̴̷̷̷̶̱᷊̼͊ͥ͆͗o̶̵̶̶̴͉̤̮ͩ⃰͘̚͢. This means that the dictionary will then have infinite mapping pairs.
Another issue was created to track this work: https://github.com/NuGet/Engineering/issues/4068. We can start with limited counts of "Combining characters", because a grapheme with too many "Combining characters" can be easily detected by eyes.

@shishirx34 @agr  I'd like to also hear some feedback from you. Thanks!

Given that the ID check would prevent most of the surrogate pairs is a good thing. Agree that the combining characters is a difficult problem to solve, but given that not many (any?) legitimate package Ids do not use these combining characters gives some relief. If we can find out more sets of combining chars that "seem" to look like actual chars that would be a case to look out for. For now I think this solution looks acceptable and should work well.


Gift Entry: Use customizable field labels as column headers in batch gift table

W-040810
Batch Mode now uses the customizable field labels as column headers in the entered gifts table.
Critical Changes
Changes
Issues Closed
Fixes #5342
Community Ideas Delivered
New Metadata
Deleted Metadata

@kenlewis-sfdo & @ptewson-sfdo I just took a look at this PR and updated the description a little to remove the information in the Changes section. The information in the Issue will suffice for this one. Great work on connecting to the Issue, Ken!


HTTP Error 403: Forbidden

Traceback (most recent call last):
  File "/Users/icebunny08/Documents/a_test.py", line 3, in <module>
    cat.getCat(directory="~/Downloads", filename="cat", format='png')
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/cat/__init__.py", line 41, in getCat
    download(downloadlink, savefile)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 247, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 640, in http_response
    response = self.parent.error(
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

The only file in this is init.py. You can replace the existing init.py with the attached init.txt (just change the extension) for this to work
init.txt
The API changed so you can no longer specify filetype. You can get more images/specify breeds, etc. if you get the API key
https://developers.thecatapi.com/view-account/ylX4blBYT9FaoVd6OhvR?report=bOoHBz-8t


bump --version returns non zero exit code

As per title on latest version 0.3.3

Oops, I missed you!
fixed v0.4.3


add delete-key command to delete access key

Delete's an access key.
Pull down branch and you can use this command
Command:
./bin/near delete-key --accessKey 2rLDDvyk8wdpq4TZ3k2xmCxhykq431eNKQ7Mfg31nT4q --accountId mike.testnet
The access key can be copied from Wallet. Tested on full access and authorized apps keys.

@mikedotexe why is this flag --accessKey needed?

@bowenwang1996 going to wait for tests to pass for posterity but then I'll merge and check with Vlad about cutting a release. If I don't hear back from him I'll cut one

@mikedotexe why is this flag --accessKey needed?

you mean as opposed to just
near delete-key mYHaSH… --accountId mike.testnet?


Not returning 401 for random access token for WS

Steps to reproduce:
Example 1: As the access_token, send a random value. You will notice that the WS connection stays connected instead of returning 401
Example 2: As the Authorization: Bearer, send a random value. You will notice that the WS connection stays connected instead of returning 401
Affected Product Version:
3.2.0

Not applicable to public. hence closed.


[Docs] Update getting_started.md and install.md and rewrite finetune.md

Motivation
There are some problems with our docs. Here I revised the getting_started.md and install.md and almost rewrote the finetune.md.
Modification

As the title.
Add model_zoo.md and CONTRIBUTING.md to our docs.
Disable the auto-wrap of code blocks. It may cause some code ugly.

BC-breaking (Optional)
No
Use cases (Optional)
No
Checklist
Before PR:

[x] Pre-commit or other linting tools are used to fix the potential lint issues.
[x] Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
[x] The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
[x] The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

[x] If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects, like MMDet or MMSeg.
[x] CLA has been signed and all committers have signed the CLA in this PR.

we can add cell that tell the users to frozen some layers in backbone when fine-tune.

Done.


CNV-28829: Update text in InstanceType tech preview modal

📝 Description
This is another text update in InstanceType tech preview modal according to the changes in the related design doc, see this thread:
https://docs.google.com/document/d/1uVW60mDyFkm3Qy181SDFjHBazx8Bwi-opQaUl6e-2Qw/edit?disco=AAAAzVP3Wk0
Change "Settings tab on the Overview page" to "Settings tab on the Virtualization > Overview page." Otherwise, users might start hunting for the setting on the cluster overview page.
Related feature:
https://issues.redhat.com/browse/CNV-28829
Design:
https://docs.google.com/document/d/1uVW60mDyFkm3Qy181SDFjHBazx8Bwi-opQaUl6e-2Qw/
🎥 Screenshots
Before:

After:
![mod_after](https://github.com/kubevirt-ui/kubevirt-plugin/assets/13417815/f7013c67-2254-4bb4-8883-eecf2333143

@avivtur @metalice @pcbailey @upalatucci @vojtechszocs please review

I am closing this PR as another one was opened earlier: https://github.com/kubevirt-ui/kubevirt-plugin/pull/1374


fix(nuxt): server components missing parent scopeId

🔗 Linked issue

Fixes #27429
📚 Description
This makes createServerComponent pass it's scopeId as a prop to NuxtIsland, which mimics the way normal components behave.
The destructure of attrs might cause performance issues, but I couldn't find a much better way of doing it 🫤

Not really sure why these two tests fail

Oh, didn't think of that! I'll look into it later today 🙂

Good catch! The implementation does mess with caching. Did not think of that at all.
How do you feel about manually placing the scopeId in the raw html inside NuxtIsland and passing scopeId via props? That seems to be the only good way, as we cannot pass props/attributes to StaticVNodes.
Vue also manually puts scopeId into the StaticVNode-string (but at compile-time).

Seems like that is what we need to do. Any thoughts @huang-julien?

I think this could work :+1:


Worker crashes when rebuilding PeeringDB Cache from UI

Issue type
[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

Python version:   3.5.3
Peering Manager version:   0.99-dev

Description
Was trying to clear the cache to workaround a potentially similar issue to  #33 and it caused one of the workers to crash.  I was attempting to clear and then updat the cache in the Cache Management UI
==> peeringdb.log <==
2018-11-06 06:54:35 | DEBUG | calling api: https://peeringdb.com/api/net | {'depth': 0, 'since': 0}
...
2018-11-06 06:55:06 | DEBUG | created network #17720 from peeringdb

==> /var/log/supervisor/peering-manager-stderr---supervisor-zPzi9J.log <==
[2018-11-06 06:55:06 -0500] [9544] [CRITICAL] WORKER TIMEOUT (pid:9552)

==> /var/log/supervisor/supervisord.log <==
2018-11-06 06:55:06,124 DEBG 'peering-manager' stderr output:
[2018-11-06 06:55:06 -0500] [9544] [CRITICAL] WORKER TIMEOUT (pid:9552)

==> peeringdb.log <==
2018-11-06 06:55:06 | DEBUG | calling api: https://peeringdb.com/api/net | {'depth': 0, 'since': 0}

==> /var/log/supervisor/peering-manager-stderr---supervisor-zPzi9J.log <==
[2018-11-06 06:55:06 -0500] [9744] [INFO] Booting worker with pid: 9744

==> /var/log/supervisor/supervisord.log <==
2018-11-06 06:55:06,251 DEBG 'peering-manager' stderr output:
[2018-11-06 06:55:06 -0500] [9744] [INFO] Booting worker with pid: 9744

==> peeringdb.log <==
2018-11-06 06:55:08 | DEBUG | created network #1 from peeringdb
...
2018-11-06 06:55:36 | DEBUG | created network #17402 from peeringdb

==> /var/log/supervisor/peering-manager-stderr---supervisor-zPzi9J.log <==
[2018-11-06 06:55:36 -0500] [9544] [CRITICAL] WORKER TIMEOUT (pid:9550)

==> /var/log/supervisor/supervisord.log <==
2018-11-06 06:55:36,371 DEBG 'peering-manager' stderr output:
[2018-11-06 06:55:36 -0500] [9544] [CRITICAL] WORKER TIMEOUT (pid:9550)

==> /var/log/supervisor/peering-manager-stderr---supervisor-zPzi9J.log <==
[2018-11-06 06:55:36 -0500] [9746] [INFO] Booting worker with pid: 9746

==> /var/log/supervisor/supervisord.log <==
2018-11-06 06:55:36,493 DEBG 'peering-manager' stderr output:
[2018-11-06 06:55:36 -0500] [9746] [INFO] Booting worker with pid: 9746

At that point, a proxy error is thrown.

NOTE
Running scheduled tasks from cron work file.
cd /opt/peering-manager && python3 manage.py peeringdb_sync
cd /opt/peering-manager && python3 manage.py peeringdb_sync_as

It looks like the task is taking too long to complete so the worker end up timing out on it. I wonder if we could workaround this issue not waiting for it to complete. Maybe using async?


Incomplete SBOM for Bazel

In our Bazel mono repo the query used by cdxgen (bazel aquery --output=textproto --skyframe_state) is returning an empty result. It is still generating a SBOM but it is incomplete (presumably by using some fallback strategy).
This is the cmd I used:
BAZEL_TARGET="//..." cdxgen -o bom.json --spec-version 1.5 --no-babel --fail-on-error -t java

When I use this query:
bazel query @maven//:all --output=build | grep tags

I get a complete list of all dependencies (including transitive ones):
  tags = ["maven_coordinates=software.amazon.awssdk:translate:2.20.65"],
  tags = ["maven_coordinates=software.amazon.awssdk:utils:2.20.65"],
  tags = ["maven_coordinates=software.amazon.awssdk:voiceid:2.20.65"],
  tags = ["maven_coordinates=software.amazon.awssdk:vpclattice:2.20.65"],

@sebastianvoss any sample project to test this? Would you be interested in contributing a PR?

Hi @prabhu, we investigated further and it turned out the Bazel output was truncated as the node's default buffer of 200KB was to small for our mono repo. I pushed a PR to increase it: https://github.com/CycloneDX/cdxgen/pull/518

Thank you so much, @sebastianvoss. I will push 9.7.1 later today with this fix.


Paths starting with ~ are not handled properly

Testing #196192
Platform: Linux Mint
Like this:

results in:

You need to enter the URL like this:
vscode-insiders://file~/GIT/vscode-python

Additional issue with ~:
vscode-insiders://file~/GIT/vscode-python opens VS Code but the actual folder is not opened.
Note: in this case it does not complain that the path does not exist.
But this results is opening the folder correctly:
vscode-insiders://file/home/kanadig/GIT/vscode-python

We take the paths verbatim and do not attempt at any path expansion.

The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines.
Happy Coding!

@bpasero my expectation is not that it should be expanded. This is a valid pathvscode-insiders://file~/GIT/vscode-python it should just work.

Protocol links have a very strict set of rules. We only support file or vscode-remote as authority to open files or workspaces. An authority of file~ is not something we deal with and just ignore.


Adding new Energy Value formulation for Storage

Adding new energy value formulation similar to water value in PLEXOS

Missing Tests

Closing since this code should move to https://github.com/NREL-SIIP/StorageSystemsSimulations.jl


StdLogger default constuctor arguments not compatible with all SAPI's

The StdLogger class introduced in 5.x has STDOUT and STDERR as default values in the constructor 1. These constants are not available in every SAPI, for instance in the built-in webserver. This will lead to a fatal error:
PHP Fatal error:  Uncaught Error: Undefined constant "Slim\Logging\STDOUT"

StdLogger is the default logger used in the DefaultDefinitions 2, so if no LoggerInterface implementation is specified, StdLogger will be used.
I see three possible directions to solve this:

Default to using Psr\Log\NullLogger, either always or when STDOUT and STDERR are not defined.
Make StdLogger more resilient and not log if STDOUT and STDERR are not available (effectively making it a NullLogger).
Keep as is and just document configuration of an appropriate LoggerInterface implementation explicitly.

I think defaulting to NullLogger makes most sense. In web SAPI's, outputting to STDOUT might not be desirable anyway. I think in addition it would be good to make StdLogger more resilient, by not using the constants as a default value but something else.

I think defaulting to NullLogger makes most sense.

Yes, that's a good input. The NullLogger will be the "default" logger.

StdLogger was removed in https://github.com/slimphp/Slim/commit/58f11b64f41e9ec1ce0933ca9a9d2183e650fa91 and replaced with the NullLogger.


Lab 5 test case  5_1

My code works on jshell, but for some reason it fails in the last test case. Does anyone know why? Thanks!

#412 mentioned this issue too, you can try checking to see if your flatMap matches
Log flatMap(Function<? super T, ? extends Log<? extends R>> f)

thank uu!

Face the same error, posted on another thread here goes :
The difference between public Maybe or(Supplier<? extends Maybe<? extends T>> supplier) and public Maybe or(Supplier<Maybe<? extends T>> supplier) lies in the flexibility of the Supplier parameter. In the first method signature (public Maybe or(Supplier<? extends Maybe<? extends T>> supplier)), Supplier<? extends Maybe<? extends T>> means that the supplier can provide any subtype of Maybe<? extends T>. This allows for more flexibility in the types of Maybe instances that the method can accept as arguments. However, in the second method signature (public Maybe or(Supplier<Maybe<? extends T>> supplier)), Supplier<Maybe<? extends T>> restricts the supplier to only provide instances of Maybe<? extends T>. This is less flexible because it requires the exact type specified by the method signaturethis, otherwise logic looks correct.

I think you can try tweaking the wildcards for your flatMap.


PySide6

Since FreeCAD is about to use PySide6, I think that we should also update from PySide2 to PySide6. I don't think that it is that much work ;-)
Gerard

JFYI, here's the catch-all upstream FC ticket for Qt6 https://github.com/FreeCAD/FreeCAD/issues/6992

This is now obsolete because I rewrote FreePDM in Go....


Produce docker image warning

When clicking the compile/build/deploy button, check if the current notebook image is different from the NotebookServer's one. In that case, produce a warning dialog informing the user, asking whether to continue or not.
@tasos-ale Since NotebookUtils.showYesNoDialog is async, this makes the function async. Is it ok?

@elikatsis I addressed your comments and changed a bit the formatting of the message. Also, I grouped together the body generation of NotebookUtils.showMessage and NotebookUtils.showYesNoDialog in NotebookUtils.buildDialogBody

@elikatsis Now the docker image is updated on deploy just when the current state has an empty value, just like we discussed. Moreover, thanks to @tasos-ale 's advice, now the placeholder value work correctly.
For the placeholder value: note that I had to set the InputLabelProps to true when the placeholder is present. Might be worth remembering for the future. https://github.com/kubeflow-kale/jupyterlab-kubeflow-kale/pull/42/commits/9ed47684b247c92a599fef663219d744828a0f45#diff-12f5ae63fcc38a513b1de1cde98c411cR141


[bz_2120098] :

Added an additional step to ensure that we wait for volumereplication deletion from API server before moving ahead with vrg finalizer removal.
Signed-off-by: Jolly Mishra<EMAIL_ADDRESS>

@jmishrarh Also, can we add a test case where a VR is held back by a finalizer that is added by the test case, and we delete VRG and ensure it is not deleted till we remove the VR finalizer (which would hence be deleted from the API server) etc.

Amended PR #589 posted based on this change post testing and ensuring issues are addressed. Hence closing this one.


Issue with motor parameters

This isn't actually an issue with your code, I'm curious where you got the motor parameters for the V1.1 firmware. I have purchased two AK80-6 that say they have V2.0 firmware on boot, but with V_max = 38.2 the motor runs slow and the V_max that get's the position and velocities to line up experimentally is ~21.5. Tmotor sent me new firmware to flash (seemingly V1.9), but this seems to work with V_max = 45 and P_max = 12.5, which isn't listed in any documentation. I also have a AK80-9 where the velocity only makes sense with V_max = 50. I have tested this independently with the canmotorlib and with R-link tool Tmotor sells.
Curious to hear if you ran into any parameter issues, or have any other docs from Tmotor. You can mark this as closed and email me directly (ekrimsky@stanford.edu). Thank you!

Hi,
Unless there's something that can't be made public, I suggest having the conversation here as it can be found by other people who might be having similar issues. Your experience is very similar to ours actually. The V1 firmware, the one that came with our first motor purchases about a year ago, had the velocity constants at +-45. However, that firmware had lots of noise in the measurements so we upgraded to V2, and then the parameters changed. We got the new parameters via email from T-motors. After this, we ordered a new batch of motors and they came with V1.1. We considered upgrading the firmware but this version performed even better torque control than V2 so we decided to keep this. Similar to your experience, we found experimentally that Vecloty constants are +-22.5 (basically, half of 45 ;) ) for this version, which also seems to be the case for you. So I'd suggest trying simple position/velocity control with AK80_6_V1p1_PARAMS and let us know how it goes. In our experience, T-Motors does not have very good documentation for their versions/parameters but the motors are still quite good and worth spending time to estimate the constants.
In our communication with T-Motors, we received the following if that's of any help:

I'd be highly surprised if your motor constants are different from the ones we provide (if so, do make a pull request with them!). So I'd suggest trying out these values and seeing which perform as expected. It is not the ideal way forward, but it's one way...
Hope this helps!
Shubham

How did you identify the firmware version on the motors? Is it just from the startup message that motor prints over uart? Do you have the V1.1 firmware file? Thanks for the help

I remember it indeed being the version number in the startup text printed over serial.  Also in some of the communications with T-Motors as well. We do have the .bin/hex files of the firmware. I will try to upload them soon.

Any firmware files you could share would be incredibly useful. I finally identified parameters for the V1.9 firmware I had flashed, only to find that the CAN communication becomes unreliable quickly (this did not happen with the original V2.0 firmware but I don't have access to that file)

Here is the link to the set of firmware we have at DFKI for the AK80-6 actuators: Link
The _extracted files are the firmware we extracted from the motors we have and the _fromTMotors are the firmware files we have from T-Motors. The firmware we use currently is AK80-6_new_img_10092021_extracted.hex

Thanks a ton! The serial for this firmware prints "Version 2.0", but the correct velocity parameter is definitely 22.5. I just want to confirm that this one is the V1.1 firmware (and that the print out is just incorrect).

Indeed. I'm also not sure about why it prints Version 2.0. Will check that later and submit a fix to the version numbers. Glad to hear its working now!

Would it be possible to get another upload of those .hex files for the AK80-6? I came across this thread while debugging the same issue but unfortunately the link above has expired. (I have an unfortunate amount of position/velocity noise on my AK80-6 so I'm playing a bit of firmware roulette.)

@williamcmartin Here is another temporary link with the firmware we have: https://we.tl/t-xiuLqkxGWx

Hi there,
I have a new AK80-64 actuator, but there is no option in Cubemars software for this motor. I have asked them to send a firmware to update, but Tmotor asked to purchase other actutor, which is in the software list. So I wanted to extract firmware from actuator myself. Could you describe how does it possible? and could you send a link to your firmware to be aknowledge with them? Thanks.

@vyas-shubham thanks for reply. I will try to read it via stlink. Anyway I am receiving gibberish while reading com port by its r-link in teraterm, though connection parameters are ok (baud, flowconctrol, etc.). Have you face the same issue? Should I have servo mode which I do not have in my actuator (only mit mode)? Do I need to build an Arduino based controller to control my actuator?

@Keikibayev Until recently, we were using a Windows computer for serial communication with the T-Motor drives as the serial communication application (TeraTerm) was better there. We had to switch between windows and Linux constantly for initial setup and testing. TeraTerm, like other serial communication libraries, required configuring the baud rate (921600) to have proper communication.
I recently found a new application called screen for Linux which is simple to use and works the same as TeraTerm. So we don't need to switch to a windows computer.
Example usage:
sudo apt-get install screen
screen /dev/ttyUSB0 921600

Hi. I try to control AK60-60 in Ubuntu 20.0.4 with TMotorCANControl Api in python lib but when i run check motor connection method python script it's return (RTNETLINK answers: Operation not supported).  I have to install some driver? to make TMotorCANControl Api find Can0? (I use R-Link can protocol)

@Siwakonrome  I cannot answer much about TMotorCANControl library issues as I have not developed/used that library. This is a different driver (more low-level) for the same type of motors but these are 2 different libraries. I would suggest asking at their main repo here: https://github.com/neurobionics/TMotorCANControl


Add the possibilitie to merge several sorters easily without having to convert them into readers

Today the easy way to merge several sorters is to use the method write_into_stream_writer to merge each sorter into a file, then, create a merger pushing each file into it. This means we have to make several merges in a row to merge several sorters.
Proposal

Add a method into_merger in the struct Sorter that creates a Merger by consuming the Sorter
Allow the MergerBuilder to take in parameter one or several Mergers or allow unions between Mergers.

Basic usage
// creates the first sorter and converts it into a merger.
let sorter_1: Sorter<MF, _> = Sorter::new(merge_func);
let merger_1: Merger<_, MF> = sorter.into_merger();

// creates the second sorter and converts it into a merger.
let sorter_2: Sorter<MF, _> = Sorter::new(merge_func);
let merger_2: Merger<_, MF> = sorter.into_merger();

// A: create a MergerBuilder and push each Merger
let mut builder: MergerBuilder<_, MF> = MergerBuilder::new(merge_func);
builder.push_merger(merger_1);
builder.push_merger(merger_2);

let merger_1_2: Merger<_, MF> = builder.build();

// B: directly merge Mergers by using a union method
let merger_1_2: Merger<_, MF> = merger_1.union_with(merger_2);

// Write everything into one unique writer:
merger_1_2.write_into_stream_writer(&mut writer)?;

I have recently worked on a similar way to merge multiple Sorter together by doing a single operation. You can see the Sorter::into_reader_cursors method in https://github.com/meilisearch/grenad/pull/41.


Updates to contributing instructions

@AndrewGable @Jag96 @jboniface @laurenreidexpensify @mallenexpensify I made some minor updates to the contributors doc, including updating the email address from reactnative@ to<EMAIL_ADDRESS>Take a look!
Tests
No tests, just a readme doc.

I have read the CLA Document and I hereby sign the CLA

recheck

@Jag96 I made some more updates.


Get Tailwind Arbitrary Value

Will it be possible to add additional functionality to TWM so that's it's able to get the current class assigned given a property name? As well as remove a specific class set?

Hey @JarolinVargas! 👋
Hmm I'm not sure if I understand what you mean. Do you have an example?

Basically, TWM can tell the difference between arbitrary classes. It would be useful if TWM instead of merging, only returns the class applied, given a string representing the class set. For example ('w') -> returns the class included that matches the 'w' set. So if 'w-full' is applied, return that class rather than merge 'w', causing it to remove 'w-full'

Ah got it. I see how that could be useful. Currently I don't have the capacity to increase the API surface of tailwind-merge, so I won't be able to build this anytime soon.
But the library is not too large, feel free to fork it and add this feature yourself. 😊

(referenced in https://github.com/dcastil/tailwind-merge/discussions/373)


Unhandled promise regection on missconfigured appservice

If an AS is missconfigured this lib throws an unhandled promise rejection as it can't decode JSON:
(node:3853) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Intent.<anonymous> (/home/sorunome/repos/mx-puppet-bridge/node_modules/matrix-bot-sdk/lib/appservice/Intent.js:135:41)
    at Generator.throw (<anonymous>)
    at rejected (/home/sorunome/repos/mx-puppet-bridge/node_modules/matrix-bot-sdk/lib/appservice/Intent.js:5:65)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)

perhaps handle this?

Which sample code triggers this?

don't remember anymore and never committed that part, sadly :(


cdt/xorg choice coherence with qt and gepetto-viewer

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

@jcarpent
Here the recipe:

have the right full cdt coherent with qt feedstock for Linux
link X11 on the package on OSX for manipulation while still well using the cocoa windowing system (as in the brew recipe)

I think this version is then cleaner

gv prove no need of X11 linking on osx


"TypeError: Resource subclasses must have an endpoint." on Mac OS X Yosemite

That's what I got
mao-mac:sumo mao (master) $ tower-cli user list
Traceback (most recent call last):
  File "/usr/local/bin/tower-cli", line 80, in <module>
    cli()
  File "/Library/Python/2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/Library/Python/2.7/site-packages/click/core.py", line 931, in invoke
    cmd_name, cmd, args = self.resolve_command(ctx, args)
  File "/Library/Python/2.7/site-packages/click/core.py", line 970, in resolve_command
    cmd = self.get_command(ctx, cmd_name)
  File "/usr/local/bin/tower-cli", line 68, in get_command
    resource = tower_cli.get_resource(name)
  File "/Library/Python/2.7/site-packages/tower_cli/__init__.py", line 32, in get_resource
    module = importlib.import_module('tower_cli.resources.%s' % name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Library/Python/2.7/site-packages/tower_cli/resources/user.py", line 16, in <module>
    from tower_cli import models
  File "/Library/Python/2.7/site-packages/tower_cli/models/__init__.py", line 18, in <module>
    from tower_cli.models.base import BaseResource, Resource, MonitorableResource
  File "/Library/Python/2.7/site-packages/tower_cli/models/base.py", line 125, in <module>
    class BaseResource(six.with_metaclass(ResourceMeta)):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.py", line 566, in with_metaclass
    return meta("NewBase", bases, {})
  File "/Library/Python/2.7/site-packages/tower_cli/models/base.py", line 112, in __new__
    raise TypeError('Resource subclasses must have an `endpoint`.')
TypeError: Resource subclasses must have an `endpoint`.

This is a duplicate of https://github.com/ansible/tower-cli/issues/41. Problem is resolved by installing ansible-tower-cli through python 2.7.9

I am getting the same thing with Python 2.7.10
$ tower-cli user list
Traceback (most recent call last):
File "/opt/zenoss/libexec/tower-cli-virtualenv/bin/tower-cli", line 80, in
cli()
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/click/core.py", line 664, in call
return self.main(*args, **kwargs)
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/click/core.py", line 986, in invoke
cmd_name, cmd, args = self.resolve_command(ctx, args)
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/click/core.py", line 1025, in resolve_command
cmd = self.get_command(ctx, cmd_name)
File "/opt/zenoss/libexec/tower-cli-virtualenv/bin/tower-cli", line 68, in get_command
resource = tower_cli.get_resource(name)
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/tower_cli/init.py", line 32, in get_resource
module = importlib.import_module('tower_cli.resources.%s' % name)
File "/opt/zenoss/libexec/bin/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/tower_cli/resources/user.py", line 16, in
from tower_cli import models
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/tower_cli/models/init.py", line 18, in
from tower_cli.models.base import BaseResource, Resource, MonitorableResource
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/tower_cli/models/base.py", line 125, in
class BaseResource(six.with_metaclass(ResourceMeta)):
File "/opt/zenoss/lib/python/six.py", line 353, in with_metaclass
return meta("NewBase", (base,), {})
File "/opt/zenoss/libexec/tower-cli-virtualenv/lib/python2.7/site-packages/tower_cli/models/base.py", line 112, in new
raise TypeError('Resource subclasses must have an endpoint.')
TypeError: Resource subclasses must have an endpoint.


Aggregator cleaner tests update

Description
Update the steps defined for the insights aggregator-results-cleaner service
Type of change

New test scenario added into existing feature file
Breaking change (fix or feature that would cause existing functionality to not work as expected)

Testing steps
Run BDD tests locally and within container
Checklist

[x] Pylint passes for Python sources
[x] sources has been pre-processed by Black
[ ] updated documentation wherever necessary

Too huge, but it looks ok

The important part:
3 features passed, 0 failed, 0 skipped 15 scenarios passed, 0 failed, 0 skipped 164 steps passed, 0 failed, 0 skipped, 0 undefined


Design the Contact Form

User Stories

As a user, I can enter my information into a form
As a user, I can submit the information

Completed


MessageEvent ports should be a MessagePort array

In the MessageEvent interface of lib.webworker.ts, we define ports as being of the type any. To my understanding it should be a (nullable due to browser implementations) MessagePort array, e.g.
interface MessageEvent extends Event {
    readonly data: any;
    readonly origin: string;
    readonly ports: MessagePort[] | null;
    readonly source: any;
    initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: any): void;
}

https://github.com/Microsoft/TypeScript/blob/02cfb81ac0c9b870d31be14b16b0a08ea24ed32a/lib/lib.webworker.d.ts#L727
Is there a reason for the way it is currently defined? Happy to throw a PR otherwise.

PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.

@mhegazy I think this issue can be closed lib.d.ts#L13289
dom-messageevent-ports

thanks @a-tarasyuk


Device not detected?

Hi! I just tried out this addon today but I'm having some trouble. I'm using a nightly OF version, Windows 10, a GTX 1060, and an Oculus DK2.
I did run into this compile issue:
'cannot convert argument 1 from 'const char *' to 'LPCWSTR' in SharedLib_Load()
in sharedlibtools_public.cpp, which I fixed by replacing LoadLibraryEx with LoadLibraryExA , though I'm curious that it doesn't look like it's been reported yet here.
After fixing that, I get this output when I run the app and the app window shows "System name" and "System S/N" but they're blank.
Unable to read VR Path Registry from C:\Users\hypersonic\AppData\Local\openvr\openvrpaths.vrpath
PoseCount:0 Controllers:0

It looks like the device may not be detected? I'm not sure how to test if it's the device, the API, the addon, etc. Do you know if the DK2 is even supported with OpenVR?

Hi Matt,
I just recompiled the 'example-simple' project against the OF's master branch, and I do not have this issue. Did you find any specific information about that issue ? If yes, could you please share what you have found.
I have not tried the addon or OpenVR with the DK2 - I only have tried it with the Vive and the Oculus Rift (consumer version).
Cheers

Weird that you don't run into it... I don't know too much about character encoding (ie unicode vs non-unicode string handling), especially around MS's implementation, and often run into compile errors with VS around mis-matching types where a function will receive a char* but wants something like WCHAR, LPCWCSTR, LPCTSTR, etc.
In this particular case, I saw that there's a an #ifdef UNICODE in that sharedlibtools file which determines whether the ansi or unicode functions are used for loading a shared lib. I couldn't find a #define UNICODE anywhere but think that it's set here, since either switching the function (like I mentioned in the original post), or changing the option from "Use Unicode Character Set" to "Use Multi-Byte Character Set" fixes the error:

In any case, I don't think it matters aside from just fixing the compile error because the included OpenVR is actually a static lib, and a breakpoint I set at that function never gets triggered.
Is there any configuration or setup I need to do? I haven't installed any of the Oculus SDK bundles, anything from Valve/Steam, etc. I also don't have a folder at  C:\Users\hypersonic\AppData\Local\openvr\, where apparently it's trying to load an openvrpaths.vrpath file, which doesn't exist.


v2.1.5 throws TypeError: on code that worked in 2.1.4

I have some keras transfer learning and fine-tuning code which was working fine (and still works fine) with 2.1.4, but throws an error with 2.1.5.
Error is:
TypeError: unsupported operand type(s) for /=: 'JpegImageFile' and 'float'
The problematic line seems to be the following:
history_tl = model.fit_generator(
            train_generator,
            epochs=nb_epoch,
            steps_per_epoch=steps_per_epoch,
            validation_data=validation_generator,
            validation_steps=validation_steps,
            class_weight=None)

steps_per_epoch and validation_steps are calculated as:
    steps_per_epoch = nb_train_samples / batch_size
    validation_steps = nb_val_samples / batch_size

and the train_generator & validation_generator are created with the following:
    # data prep
    print('Running data prep - train')
    train_datagen =  ImageDataGenerator(
        preprocessing_function=preprocess_input,
        rotation_range=30,
        width_shift_range=0.2,
        height_shift_range=0.2,
        shear_range=0.2,
        zoom_range=0.2,
        horizontal_flip=True
        )

    print('Running data prep - test')
    test_datagen = ImageDataGenerator(
        preprocessing_function=preprocess_input,
        rotation_range=30,
        width_shift_range=0.2,
        height_shift_range=0.2,
        shear_range=0.2,
        zoom_range=0.2,
        horizontal_flip=True
        )

    print('Running data gen - train')
    train_generator = train_datagen.flow_from_directory(
        train_dir,
        target_size=(IM_HEIGHT, IM_WIDTH),
        batch_size=batch_size
        )

    print('Running data gen - test')
    validation_generator = test_datagen.flow_from_directory(
        val_dir,
        target_size=(IM_HEIGHT, IM_WIDTH),
        batch_size=batch_size
        )

Can you shed any light on what has changed that will cause this code to cease working, and what I need to to do fix it?
Full traceback below.
Epoch 1/1
Traceback (most recent call last):
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/utils/data_utils.py", line 578, in get
    inputs = self.queue.get(block=True).get()
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/multiprocessing/pool.py", line 644, in get
    raise self._value
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/utils/data_utils.py", line 401, in get_index
    return _SHARED_SEQUENCES[uid][i]
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/preprocessing/image.py", line 825, in __getitem__
    return self._get_batches_of_transformed_samples(index_array)
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/preprocessing/image.py", line 1233, in _get_batches_of_transformed_samples
    img = self.image_data_generator.preprocessing_function(img)
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/applications/inception_v3.py", line 407, in preprocess_input
    return imagenet_utils.preprocess_input(x, mode='tf')
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/applications/imagenet_utils.py", line 178, in preprocess_input
    mode=mode)
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/applications/imagenet_utils.py", line 115, in _preprocess_symbolic_input
    x /= 127.5
TypeError: unsupported operand type(s) for /=: 'JpegImageFile' and 'float'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "nested_inception.py", line 183, in <module>
    train('./data/model_data/', nb_epoch=1)
  File "nested_inception.py", line 154, in train
    class_weight=None)
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/engine/training.py", line 2192, in fit_generator
    generator_output = next(output_generator)
  File "/home/chris_r_brake/anaconda3/envs/keras_2/lib/python3.6/site-packages/keras/utils/data_utils.py", line 584, in get
    six.raise_from(StopIteration(e), e)
  File "<string>", line 3, in raise_from
StopIteration: unsupported operand type(s) for /=: 'JpegImageFile' and 'float'

The fix is currently in a PR, sorry for that

Thanks for the response - I'll stick with 2.1.4 for now.

@chrisrb10 Hey chris
I am too stuck in similar problem and continuing with keras=2.1.4
But can you tell how can we pass mode='tf' as a param in preprocessing_function arg of ImageDataGenerator function ?

Hi @x0v,
As far as I understand it, the function 'preprocess_input' is imported from the keras.applications.inception_v3 module - so by definition it is operating with tensorflow (I think).
it works fine for me with no arguments for preprocess_input

Actually I was talking about this from keras.applications.vgg16 import preprocess_input
and when i checked the function definition of preprocess_input, it was not tensorflow by default.
Not sure about Inception though.

This is fixed on master. We reverted the PR that cause this issue.

ok thanks @Dref360.
Can any one tell me what difference will these two implementation create ?

When i use preprocess_input with lambda layer just after initialization

model = Sequential()
model.add(Lambda(preprocess_input, name='preprocessing', input_shape=(224, 224, 3)))
model.add(vgg_conv)

While if i don't put a lambda layer at initialization of model and use preprocess_input in ImageDataGenerator instead ?

train_datagen = ImageDataGenerator(
    rescale=1. / 255,
    rotation_range=20,
    width_shift_range=0.2,
    height_shift_range=0.2,
    horizontal_flip=True,
    fill_mode='nearest',
    preprocessing_function = preprocess_input
    )

As you can see in ImageDataGenerator.standardize the preprocessing function is called before the rescale. So you won't get the same result.

This issue should be reopened. I am still running into this problem on Keras 2.1.5. When I down rev'd to 2.1.4, it works fine. So the removal of that PR does not seem to have fixed the issue. Just wanted to let you know.

Agreed. This issue should be reopened. Still having this issue on Keras 2.1.5. Thanks

We rarely do hotfixes, please update to the latest version.

Agreed. This issue should be reopened. Running into this issue on Keras 2.1.5 so i revert back to 2.1.4 and it works.

from keras.applications import xception

def preprocess_input_new(x):
    img = xception.preprocess_input(img_to_array(x))
    return array_to_img(img)

ImageDataGenerator(
      preprocessing_function=preprocess_input_new,
      rotation_range=30,
      width_shift_range=0.2,
      height_shift_range=0.2,
      shear_range=0.2,
      zoom_range=0.2,
      horizontal_flip=True
  )

This will surely help you

@shravan-rams -- thank you so much! Now working on Keras 2.1.5

I have the same issue on 2.1.2. I would like to keep using this version.
@Dref360  can you share what is needed to be fixed?


Fix  proptypes warning

:tada: This issue has been resolved in version 0.16.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


make -C run_rustc fails with error: ‘numeric_limits’ is not a member of ‘std’

as suggested by this repo's README, I am doing (on x86_64 with Fedora 37, also with Debian 5.10)
make -f minicargo.mk
make -C run_rustc

first command succeeds, but second fails with
...
make[4]: Entering directory '/home/waldmann/software/compiler/mrustc/rustc-1.29.0-src/build'
[  0%] Building CXX object lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o
/home/waldmann/software/compiler/mrustc/rustc-1.29.0-src/src/llvm/lib/Demangle/ItaniumDemang
le.cpp:176:36: error: ‘numeric_limits’ is not a member of ‘std’
  176 |   unsigned CurrentPackIndex = std::numeric_limits<unsigned>::max();
      |                                    ^~~~~~~~~~~~~~
/home/waldmann/software/compiler/mrustc/rustc-1.29.0-src/src/llvm/lib/Demangle/ItaniumDemang
le.cpp:176:51: error: expected primary-expression before ‘unsigned’
  176 |   unsigned CurrentPackIndex = std::numeric_limits<unsigned>::max();
      |                                                   ^~~~~~~~
...

the build seems to work (at leasts on my Fedora machine) when I prefix both commands with
env RUSTC_VERSION=1.54.0 MRUSTC_TARGET_VER=1.54 OUTDIR_SUF=-1.54.0

That error is from the building of LLVM (a dependency of rustc)
By default, rustc 1.29 is built, so the fact that it works in 1.54 means that there's a problem with that older version LLVM and your system (curious that it's having troubles finding a standard C++ header)


Update tests to assert trailer header count

Purpose

$subject and incoperate transport fix https://github.com/wso2/transport-http/pull/407
Fix trailing header intermittent test failure when payload is empty

Fixes https://github.com/ballerina-platform/ballerina-lang/issues/22190
Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[x] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #22294 into ballerina-1.1.x will not change coverage by %.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           ballerina-1.1.x   #22294   +/-   ##
================================================
  Coverage            15.21%   15.21%
================================================
  Files                   50       50
  Lines                 1341     1341
  Branches               208      208
================================================
  Hits                   204      204
  Misses                1121     1121
  Partials                16       16

Continue to review full report at Codecov.

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


add dependencies  --exclude

i  add a golbal dependencies in my project,but there is one api don't need this dependencies .so how can dependencies exlude that api pythonicly.
i read the add_api_route code, it always  inherits the parent router dependencies。
i think you can add a parameter to make parent router dependencies=[]
or can i do something to  make dependencies  exlude that api

i think it better add parameter in sub api instead of parent api,when parent api extend sub api,check the parent dependencies and set dependencies=[ ]

i think it better add parameter in sub api instead of parent api,when parent api extend sub api,check the parent dependencies and set dependencies=[ ]

Sorry, I can't help you if you don't follow the issue template and provide more information.
If you still have problems please create a new issue and follow the template step by step.
Given that, I'm gonna close this one.

Sorry for the long delay! 🙈  I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.


Passing null as argument

Hello.
Please help me to pass null as parameter to winapi.
var arg = new object[2] {IntPtr.Zero, 3};
and
var arg = new object[2] {null, 3};
leads to memory corruption, seems like pointer to zeroed memory passed instead of nullptr.

sorry.
me bad.

sorry.
me bad.