Multiple Dart analyzer problems related to parametrized typedef

Dart Vm and Analyzer produce different results for valid typedef declarations.
Here is a short summary:

Code
Dart VM
Dart Analyser (strong mode)

typedef F1 = Stream<T> Function<T>(Iterable<T> values);
ok
ok

typedef F2 = Stream<T> Function<T>(Iterable<T> values, {bool Function(T element) isError});
ok
crash

typedef F3 = Stream<T> Function<T>(Iterable<T> values, {bool isError(T element)});
syntax error
ok

typedef Stream<T> F4<T>(Iterable<T> values);
ok
error message

typedef Stream<T> F5<T>(Iterable<T> values, {bool isError(T element)});
ok
error message

Here is a series of samples, that demonstrate the problem:
import "dart:async";

typedef F1 = Stream<T> Function<T>(Iterable<T> values); | ok  | ok

void test1(F1 f) {}

main() {
  test1(null);
  print("ok");
}

Output:

D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dartanalyzer.bat --strong test1.dart
Analyzing test1.dart...
No issues found!
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dart.exe --checked test1.dart
ok

import "dart:async";

typedef F2 = Stream<T> Function<T>(Iterable<T> values, {bool Function(T element) isError});

void test2(F2 f) {}

main() {
  test2(null);
  print("ok");
}

Output:

D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dartanalyzer.bat --strong test2.dart
Analyzing test2.dart...
Unhandled exception:
NoSuchMethodError: The getter 'element' was called on null.

No issues found!
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dart.exe --checked test3.dart
'file:///D:/dev/dart/co19.idea17/Utils/test3.dart': error: line 3 pos 69: ',' or '}' expected
typedef F3 = Stream Function(Iterable values, {bool isError(T element)});

import "dart:async";

typedef Stream<T> F4<T>(Iterable<T> values);

void test4(F4 f) {
  f<int>([1,2,3]);
}

main() {
  test4(<T>(Iterable<T> data) => new Stream<T>.fromIterable(data));
  print("ok");
}

Output

D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dartanalyzer.bat --strong test4.dart
Analyzing test4.dart...
error - The method '(Iterable) → Stream' is declared with 0 type parameters, but 1 type arguments were given at test4.dart:6:3 - wrong_number_of_type_arguments_method
error - The argument type '(Iterable) → Stream' can't be assigned to the parameter type 'F4(Iterable) → Stream' at test4.dart:10:9 - argument_type_not_assignable
2 errors found.
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dart.exe --checked test4.dart
ok

import "dart:async";

typedef Stream<T> F5<T>(Iterable<T> values, {bool isError(T element)});

void test5(F5 f) {
  f<int>([1,2,3]);
}

main() {
  test5(<T>(Iterable<T> values, {bool isError(T element)}) => null);
  print("ok");
}

Output:

D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dartanalyzer.bat --strong test5.dart
Analyzing test5.dart...
error - The method '(Iterable, {isError: (dynamic) → bool}) → Stream' is declared with 0 type parameters, but 1 type arguments were given at test5.dart:6:3 - wrong_number_of_type_arguments_method
error - The argument type '(Iterable, {isError: (T) → bool}) → dynamic' can't be assigned to the parameter type 'F5(Iterable, {isError: (dynamic) → bool}) → Stream' at test5.dart:10:9 - argument_type_not_assignable
2 errors found.
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dart.exe --checked test5.dart
ok

Dart VM version: 1.24.2 (Thu Jun 22 08:55:56 2017) on "windows_x64"

I believe there is just one issue with current tools:
The behaviors you report for the VM are correct. The syntax error in F3 arises because the type annotation on isError is using the old  syntax for a function type (returnType name(ar,gu,ment,list)) rather than the new syntax (returnType Function(ar,gu,ment,list) name, i.e., the regular type name syntax where type is a new function type). The old function type syntax is not supported inside a function type using the new syntax.
I just tried to run dartanalyzer version 1.25.0-dev.7.0 on your examples, and they all check with 'No issues!'. This means that the only remaining issue is that F3 is accepted by the analyzer.

On Fri, Sep 1, 2017 at 5:53 AM, Aleksei Semenov<EMAIL_ADDRESS>wrote:

Here is a series of samples, that demonstrate the problem:
import "dart:async";
typedef F1 = Stream Function(Iterable values);
void test1(F1 f) {}
main() {
test1(null);
print("ok");
}
Output:
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dartanalyzer.bat
--strong test1.dart
Analyzing test1.dart...
No issues found!
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dart.exe --checked
test1.dart
ok
import "dart:async";
typedef F2 = Stream Function(Iterable values, {bool Function(T element) isError});
void test2(F2 f) {}
main() {
test2(null);
print("ok");
}
Output:
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dartanalyzer.bat
--strong test2.dart
Analyzing test2.dart...
Unhandled exception:
NoSuchMethodError: The getter 'element' was called on null.

No issues found!
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dart.exe --checked
test3.dart
'file:///D:/dev/dart/co19.idea17/Utils/test3.dart': error: line 3 pos 69:
',' or '}' expected
typedef F3 = Stream Function(Iterable values, {bool isError(T element)});
import "dart:async";
typedef Stream F4(Iterable values);

I haven't checked the other cases, but this one stands out.
This does not define a generic function type. It defines a parameterized
typedef.
To define a generic type, you need to write;
typedef F4 = Stream F4(Iterable values);

void test4(F4 f) {
This declares test4 to expect an F4 (I think, but some instantiation
of F4 since F4 itself isn't generic).

f([1,2,3]);

}
main() {
test4((Iterable data) => new Stream.fromIterable(data));
This passes a generic function as argument where a non generic function is
expected ...

print("ok");
}
Output
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dartanalyzer.bat
--strong test4.dart
Analyzing test4.dart...
error - The method '(Iterable) → Stream' is declared with 0 type
parameters, but 1 type arguments were given at test4.dart:6:3 -
wrong_number_of_type_arguments_method
... so this error is correct. The f variable has type
(Iterable)->Stream, and you try to pass a type argument
to it.

error - The argument type '(Iterable) → Stream' can't be assigned to the
parameter type 'F4(Iterable) → Stream' at test4.dart:10:9 -
argument_type_not_assignable
2 errors found.
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dart.exe --checked
test4.dart
ok
import "dart:async";
typedef Stream F5(Iterable values, {bool isError(T element)});

Same problem here, typedef is itself generic, not the function types it
defines.

void test5(F5 f) {
f([1,2,3]);
}
main() {
test5((Iterable values, {bool isError(T element)}) => null);
print("ok");
}
Output:
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dartanalyzer.bat
--strong test5.dart
Analyzing test5.dart...
error - The method '(Iterable, {isError: (dynamic) → bool}) → Stream' is
declared with 0 type parameters, but 1 type arguments were given at
test5.dart:6:3 - wrong_number_of_type_arguments_method
error - The argument type '(Iterable, {isError: (T) → bool}) → dynamic'
can't be assigned to the parameter type 'F5(Iterable, {isError: (dynamic) →
bool}) → Stream' at test5.dart:10:9 - argument_type_not_assignable
2 errors found.
D:\dev\dart\co19.idea17\Utils>d:\dev\dart\dart-sdk\bin\dart.exe --checked
test5.dart
ok
Dart VM version: 1.24.2 (Thu Jun 22 08:55:56 2017) on "windows_x64"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/30596, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEo9B7cqo1lKTI-qUrPjzHsFiW3rK3SOks5sd3-rgaJpZM4PJrRs
.

--
Lasse R.H. Nielsen -<EMAIL_ADDRESS>'Faith without judgement merely degrades the spirit divine'
Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K

Denmark - CVR nr. 28 86 69 84

(PS: I took 'valid typedef declarations' literally and only checked the typedef declarations, so that's the reason why I didn't see any of the issues with the usages of those typedef'd names in the example programs further down).

Here is an update for Dart VM version: 1.25.0-dev.16.3 (Mon Sep 11 04:15:09 2017) on "windows_x64"

Code
Dart VM
Dart Analyser (strong mode)

typedef F1 = Stream<T> Function<T>(Iterable<T> values);
ok
ok

typedef F2 = Stream<T> Function<T>(Iterable<T> values, {bool Function(T element) isError});
ok
ok

typedef F3 = Stream<T> Function<T>(Iterable<T> values, {bool isError(T element)});
syntax error
ok

typedef Stream<T> F4<T>(Iterable<T> values);
ok
error message

typedef Stream<T> F5<T>(Iterable<T> values, {bool isError(T element)});
ok
error message

The Dart analyzer crash for F2 is fixed.
F3 still looks strange, dart analyzer should report the same syntax errors as Dart VM.
Regarding cases F4 and F5 there is a lack of good specification/tutorial on my side.
@lrhn, could you explain what is "a parameterized typedef" ? What kind of functions it defines?

A parameterized typedef is a type level function (that is, a compile-time function which maps types to types). So F4<int> is a concise notation for Stream<int> Function(Iterable<int>), which is the type of a non-generic function. Similarly, F4 means Stream<dynamic> Function(Iterable<dynamic>). Everything concerning the type argument given to F4 is performed at compile-time. There is no generic function anywhere in this setup, and no type arguments are passed at run-time.
With the type of a generic function like F1, the run-time value having type F1 will be a generic function, i.e., it will support invocations where an actual type argument is passed and the value of that type argument will be available for the body of the function (in a full implementation of generic methods, e.g., dartdevc). Different invocations can receive different actual type arguments. A generic function has a different representation than a non-generic function at run-time, so it's possible to detect that a type argument was expected but not provided.

To elaborate on Erik's distinction, we needed two kinds of type parameters - one for the typedef and one for the defined method. The old syntax couldn't support that, and we didn't want to break the existing parameterized typedefs, so to declare a generic function type, you need the new syntax.
Example:
typedef F<T> = Pair<T,S> Function<S>(T, S);

This declares a typedef named F. The typedef is parameterized (by <T>) so writing F<int> represents the function type Pair<int, S> Function<S>(int, S). That is, F is a parameterized typedef, F<int> is a function type. That function-type is itself generic (by <S>).
If you just write F, it becomes F<dynamic>, which is the function type Pair<dynamic, S> Function<S>(dynamic, S)
The old-style typedefs cannot define generic function types, so:
typedef T Id<T>(T x);

is a parameterzied typedef, and Id<int> is the function type int Function(int). If you just write Id, it is equivalent to Id<dynamic> which is the function type dynamic Function(dynamic).
The above old-style typedef is exactly equivalent to:
typedef Id<T> = T Function(T);

That is a parameterized typedef that defines a family of non-generic functions.

This is quite complex for understanding.
If F4 is a  parameterized typedef, then is it correct to use it as F4<T>?
For example, the same way as List<T>:
typedef Stream<T> F4<T>(Iterable<T> values);

void testList<T>(List<T> list, T x) {
   list.add(x);
}
void testF4<T>(F4<T> f, Iterable<T> data) {
   f<T>(data);
}

testList<int>([1,2,3], 4);
testF4<int>((Iterable<int> data)=>new Stream<int>.fromIterable(data), [1,2,3]);

Yes, a parameterized typedef can (and indeed must) be given a type argument before it can be used. You can omit writing the type argument, it then defaults to <dynamic>, just as for List.
So, testF4 above has a valid signature. When you call test4 you must supply a type argument (you use int) and you must then also pass a function of type F4<int>, which is Stream<int> Function(Iterable<int>).
Below that, you call f as f<T>(data). That is incorrect - f is not a generic function, so you can't pass a type argument to it. It's just a function from Iterable<T> to Stream<T>, so you call it as f(data).

It's also necessary to remember that the VM doesn't actually have generic functions yet. It's still running Dart 1 semantics with erasure of all function generics. It doesn't check whether a function type was intended to be generic or not, it just erases the type arguments, which explains why it accepts things that Dart 2/strong-mode implementations recognize as an error.

Sounds like the analyzer crash is fixed, and that the remaining issue is the missing syntax error. I'll update the title of this issue to match.

Could you specify the version in which the crash is fixed?

I'm not sure when the fix was introduced, but I ran the F2 repro (typedef F2 = Stream<T> Function<T>(Iterable<T> values, {bool Function(T element) isError});) through the analyzer from head w/o issues today.
In terms of released SDKs, it's likely that 1.24.x versions of the SDK will have issues, and 2.0.0-dev versions will not.


Add webauthn project

This PR adds a new foundry project with submodules and 3 solidity contracts.
Changes:

Adds a new foundry project

Adds submodules
Added submodules to top level .gitmodules. Not sure on best practice here when we're going to have multiple foundry projects with their own submodules.

Adds basic webauthn contracts
Added 3 contracts: Base64URL.sol, EllipticCurve.sol, Webauthn.sol.

In addition to the inline comments, it looks like something went wrong with the way forge-std has been included. There's a copy of the library instead of just the submodule.

@voltrevo completely missed this, good catch. Used the fix from your branch and worked without any problems. Thinking back, I initialised the foundry project with the --no-git flag. That was likely the cause of the large diff and was a misunderstanding of the flag on my part.

@voltrevo good points about citing and licenses for the new contracts. My aim was to use those contracts as an initial base to write some tests off and integrate into a Safe plugin. They were third-party contracts I had seen being used in some open source repos using passkeys. I had been planning on potentially replacing them after I had written some tests and integrated them into a plugin. I was familiar using them for local tests so thought they would be a good initial option to get a POC working.
I've decided to swap the contracts out for some contracts from a library called Fresh Crypto Library (FCL). I've updated the description with some context about it. I saw a talk at EthCC where FCL was presented for passkeys/webauthn and seems like a good option to go for, and better than the contracts I had before.
I've also recently been speaking to someone from Rhinestone who has built some forge tests using the FCL libraries. He's shared them with me so should be easier to build some tests off these libraries now.
TLDR: Reasons for changing the PR is you pointing out the licenses being weird for us; now having a testing base for the new contracts courtesy of rhinestone; and then the FCL contracts being better than the ones before. Hopefully that explains my thought process for why I went for those contracts initially, and then why I swapped them out for FCL.


Add branding

Nothing complex, just possibility to override app name, icons, about dialog.
Use RHV to test sufficient extensibility.

Current favicon /src/favicon.ico is most probably branding specific.

Wiki page Branding (WIP).
Please comment/edit.

https://github.com/oVirt/ovirt-web-ui/pull/287


Make timeout for Ajax call configurable

Short description if any.
Author Todo List:

[ ] Add/adjust tests (if applicable)
[x] Build in CI passes
[x] Latest master revision is merged into the branch
[x] Self-Review
[x] Set Ready For Review status

Let's document this new option

Done in 339265e1a3c6e27759db288d2aea07f78f2b9adf

Adjusted the doc further: https://github.com/LiveIntent/live-connect/blob/dfe20880911ad012916c953ece3577c179fc52de/CONFIGURATION_OPTIONS.md

@3link Awesome!
I see 6.0.1 was released.
If I just build prebid locally and bump the live-connect package to this version I should be good right?
I figure you will make a PR to prebid to do this, but wondering if I can do a patch fix on older versions of prebid in my fork and it should work right?
Thanks for the quick fix!

Also just to point out, if one does not use ajaxTimeout setting, then it still defaults to 0
I thought that in this PR you would also have the default updated to something else valid?
Like 3000 or something.

Even when using the pbjs liveintent config param ajaxTimeout I get it set to 0
I probably am doing somethign wrong.

@robertrmartinez For the change to work with Prebid, it requires adjustments in Prebid beyond the LiveConnect version update. This draft in our fork shows how to do it: https://github.com/LiveIntent/Prebid.js/pull/20. A PR in the Prebid repository will follow soon.

@robertrmartinez This is the PR in Prebid: https://github.com/prebid/Prebid.js/pull/10425

Sorry! I got too excited.
Thanks for the quick update!


An Encouragement for Polished Development

Not the place for this but Twitter is not an alternative so here goes:
I use your app at least once a week. I literally have the time scheduled with a reminder because the results are insanely productive. You have a beautiful gem here, but people need to know how useful it is.
I was searching for git related apps when I stumbled upon yours without any knowledge of how useful it would be and without being convinced by the description. Folks need to know this will enhance their dev chops, regardless of industry, regardless of skill level. Since using this consistently I have boosted my library repertoire and coding speed by such a degree I can never go back. With a bit better monetization, with boasting yet truthful advertising claims, a few extra features and definitely a little bit of iconography and design to glam the idea and have it "stick" in the minds of passers-by, this could eventually be an Editor's Choice contender.
That goal is achievable. The rewards are potentially huge.

Hey @josephknight. I appreciate the encouragement! I'm happy to know there are people out there that enjoy improving their development skills using this app. I'd love to reach a larger audience with the app, but, like you mentioned, it's in a weird position where you might not search for it explicitly and really only stumble over it when looking for something else. It's something I can't quite figure out how to remedy. I definitely agree with you that a little UI work is needed and some fine polishing would make the app really smooth. The only problem then becomes how to bring attention to it.
Regardless, I'm excited that you enjoy the app. What would you like to see in the app? Do you have any feature requests?


Polyserve + Variants

[x] CHANGELOG.md has been updated

Supersedes #432 and #424
Depends on https://github.com/PolymerLabs/polyserve/pull/120
Integration tests are known failing.

If everything's addressed, then this is probably good to go now, but I'm going to do one more pass in a bit.

/cc @azakus

merged!


Add missing code-import-patterns for files and directories targeting web.

This PR improves the situation with #102918
It was extracted from #102928.

Thanks 👍


reduce size (adds 110kb to bundle)

First, thanks for svelte-sonner. It's quite a nice toast component.
Second, I replaced my hand rolled toast component with sonner, and saw bundle.es.js grow by 110kb (50kb after minifying). I didn't expect such an increase!
I diffed the bundles to see if there was a single culprit. However it was mostly the generated svelte code for the sonner component. So there doesn't seem to be any simple fix to this problem.
I copied the added code to a gist (4k lines!), for whomever is curious to see what was added.

I noticed this too and ended up replacing with svelte-french-toast

It's quite confusing to me. There's no clear culprit, other than the generated code being huge. There are a few things that would help (eg extracting out the svg, or making it a raw string), but no clear low hanging fruit.
I think Svelte 5 will reduce the bundle size a fair bit.

replacing svgs with <img src="path/to/svg-file.svg" /> would definitely reduce bundle size

My app
$> du -hs dist/{bundle.es.js,bundle-final.js}
216K  dist/bundle.es.js
96K   dist/bundle-final.js

After adding svelte-french-toast.
$> du -hs dist/{bundle.es.js,bundle-final.js}
280K  dist/bundle.es.js
116K  dist/bundle-final.js

So it adds 64k, and 20k minified. A lot more reasonable.

I think Svelte 5 will reduce the bundle size a fair bit.

250.80 kB with, 191.62 kB without (minified: 102.6 kB / 79 kB)
Which is a lot better. 24kb minified is still a bit on the larger side though.

What are you using as your bundler? @mustafa0x

i'm using vite (ie rollup). repro: https://github.com/mustafa0x/sonner-size
plain sv5 app
$> pnpm vite build
vite v5.3.4 building for production...
✓ 77 modules transformed.
dist/bundle.es.js  22.83 kB │ gzip: 5.40 kB
✓ built in 121ms

after adding sonner
$> pnpm vite build
vite v5.3.4 building for production...
✓ 86 modules transformed.
dist/style.css      16.49 kB │ gzip:  3.32 kB
dist/bundle.es.js  112.81 kB │ gzip: 24.61 kB
✓ built in 246ms

I'm curious what you're able to produce as a bundle output side on this branch (which is rewritten in Svelte 5): https://github.com/huntabyte/svelte-sonner/tree/svelte-5

pkg.json: "svelte-sonner": "github:huntabyte/svelte-sonner#svelte-5",
pnpm vite build:
x Build failed in 27ms
error during build:
[commonjs--resolver] Failed to resolve entry for package "svelte-sonner". The package may have incorrect main/module/exports specified in its package.json.


Docker: Error: net::ERR_CONNECTION_REFUSED at https

It works outside of docker when trying to acess a local https site. But once containerized, returns the following:
Err Error: net::ERR_CONNECTION_REFUSED at https://<IP_ADDRESS>:443
    at navigate (/app/node_modules/puppeteer/lib/FrameManager.js:120:37)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
  -- ASYNC --
    at Frame.<anonymous> (/app/node_modules/puppeteer/lib/helper.js:111:15)
    at Page.goto (/app/node_modules/puppeteer/lib/Page.js:672:49)
    at Page.<anonymous> (/app/node_modules/puppeteer/lib/helper.js:112:23)
    at main (/app/index.js:24:14)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

@jschfflr - Hey facing this issue with https and http with localhost and <IP_ADDRESS> any solution? i am on version 11 on windows 10. on linux i have no issues.

Get the NIC card address, it’s <IP_ADDRESS> I think.

@aktiver - how do i get it?

maybe ->
https://stackoverflow.com/questions/3837069/how-to-get-network-interface-card-names-in-python
On Tue, Nov 9, 2021 at 10:07 AM Tal @.***> wrote:

@aktiver https://github.com/aktiver - how do i get it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/puppeteer/puppeteer/issues/5548#issuecomment-964296266,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABHVQHBJPWBS255VT7OHBSTULFBL3ANCNFSM4LVHZNLA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

How is that connected to the localhost i am using to connect to the pupeeter tests?

The NIC card thing works but also insecure, so may not work everywhere you try it. You could try the docker service name by putting puppeteer on same custom docker network called api_bridge. I think thats how i solved it approx 2y ago:
 backend: # Docker service name
    build:
      context: ./services/backend
      dockerfile: Dockerfile
    entrypoint: ['/usr/src/app/entrypoint.sh']
    volumes:
      - ./services/backend:/usr/src/app
    ports:
      - 5001:5000
    environment:
      - FLASK_ENV=development
      - DATABASE_URL=XXXXXXXXXXX
      - DATABASE_TEST_URL=XXXXXXXXXX
      - SECRET_KEY=my_precious
    depends_on:
      - db
    networks:
      - api_bridge

frontend:  # Docker service name
    build:
      context: ./services/frontend
      dockerfile: Dockerfile
    volumes:
      - './services/frontend/ui:/app' #Puppeteer code here
      - '/app/node_modules'
    ports:
      - 3007:8080
    environment:
      - CHOKIDAR_USEPOLLING=true
      - NODE_ENV=development
      - BACKEND_SERVICE_URL=http://<IP_ADDRESS>:5001
      - FRONTEND_GATEWAY_URL=http://<IP_ADDRESS>:3007
    networks:
      - api_bridge

  nginx:
    build:
      context: ./services/nginx
      dockerfile: Dockerfile
    restart: always
    ports:
      - 443:443
    depends_on:
      - backend
      - frontend
    networks:
      - api_bridge

networks:
  api_bridge:
    driver: bridge

So based on this networking scheme, you'd access as the docker services names:
https://backend:443
https://frontend:443

Ok i posted a new post, i now understand i am not using Docker, so it is a different issue. but thanks.

Yea it does say: " Docker: Error: net::ERR_CONNECTION_REFUSED" as the
title.
On Tue, Nov 9, 2021 at 10:42 AM Tal @.***> wrote:

Ok i posted a new post, i now understand i am not using Docker, so it is a
different issue. but thanks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/puppeteer/puppeteer/issues/5548#issuecomment-964330352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABHVQHF5FPWZE6C56RI7AWTULFFPLANCNFSM4LVHZNLA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Replacing icon for PoshTools on VS Web gallery with the new icon

Replacing with the new icon to be consistent with the VS gallery icon in the box.

The icon has already been changed in the VSIX file, from which the web gallery will extract image.  Consider this done when Adam takes a pull request.


Bot embedded WebChat conversationUpdate and iframe token question

Hi, I am facing two issues with my embedded web chat.
1. I follow this guide here I add the iframe and i use the t parameter to use a token. In the documentation it is being mentioned that "Tokens will automatically be renewed before they expire." How are they being renewed? I tried this and after a while the bot disconnects and errors. To solve this i did a C# api controller that gets called from js and this is then being added to the src of the iframe.
2. Seems like ConversationUpdate is not being triggered at all with the web chat. But it works just fine in the emulator.
Any suggestions?
Thanks

Both of these are well tested features, so it sounds like there are some issues with your code. Please ask  these questions on Stack Overflow (with tag botframework) so that others can benefit from the answer.


Standardize Github Action Descriptions

The action descriptions do not have any structure, one must read lots of text to find a test they are looking for.

Having standard descriptions will improve usability by a lot:
Some examples:
post-commit-models-single-device-performance
nightly-models-t3000-functionality
periodical-demos-t3000-performance
fast-dispatch-nightly-single-chip
fast-dispatch-periodical-t3000

We can rope this into an effort after refactoring our CI runner labellling. Hopefully we do some work on internal tooling to enable this more soon
cc: @TT-billteng


Full screen icon not showing for iOS?

Checklist:

[x] I updated to the latest version available
[x] I cleared the cache of my browser

Release with the issue:
Last working release (if known):
Browser and Operating System:

On chrome desktop and android mobile app the fullscreen button shows but on iOS the icon is missing. Does iOS not support full screen?
Description of problem:

Javascript errors shown in the web inspector (if applicable):

Additional information:

It is an iOS limitation. It does work on the iPad. https://caniuse.com/fullscreen

It is an iOS limitation. It does work on the iPad. https://caniuse.com/fullscreen

That's right. Related troubleshooting entry.

That's right. Related troubleshooting entry.


Update Format Enum

Add Hardcover enumeration to formatType

Publishers seem to prefer this spelling which differs (for now) from Metron's SeriesType of Hard Cover.

I'm not modifying the Series formatType  to Cancelled and Ongoing as requested in #22, since I think it makes more sense to use a value that won't change when written to metadata.


installing umap

I am using windows os (Python 3.6.5) and I am facing problems to make umap running on my machine.
Running the pip install umap-learn line on a bash terminal, I get:
`$ pip install umap-learn
Requirement already satisfied: umap-learn in c:\users\hassan\appdata\local\programs\python\python36-32\lib\site-packages (0.2.3)
Requirement already satisfied: scikit-learn>=0.16 in c:\users\hassan\appdata\local\programs\python\python36-32\lib\site-packages (from umap-l
earn) (0.19.1)
Requirement already satisfied: scipy>=0.19 in c:\users\hassan\appdata\local\programs\python\python36-32\lib\site-packages (from umap-learn) (
1.1.0)
Requirement already satisfied: numba>=0.34 in c:\users\hassan\appdata\local\programs\python\python36-32\lib\site-packages (from umap-learn) (
0.38.0)
Requirement already satisfied: numpy>=1.8.2 in c:\users\hassan\appdata\local\programs\python\python36-32\lib\site-packages (from scipy>=0.19-

umap-learn) (1.14.3)
Requirement already satisfied: llvmlite>=0.23.0dev0 in c:\users\hassan\appdata\local\programs\python\python36-32\lib\site-packages (from numb
a>=0.34->umap-learn) (0.23.0)`

and if I run the import umap from Python, I get the following:
Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "C:\Users\Hassan\AppData\Local\Programs\Python\Python36-32\lib\site-packages\umap\__init__.py", line 1, in <module>     from .umap_ import UMAP   File "C:\Users\Hassan\AppData\Local\Programs\Python\Python36-32\lib\site-packages\umap\umap_.py", line 20, in <module>     import umap.sparse as sparse   File "C:\Users\Hassan\AppData\Local\Programs\Python\Python36-32\lib\site-packages\umap\sparse.py", line 9, in <module>     from umap.utils import (tau_rand_int,   File "C:\Users\Hassan\AppData\Local\Programs\Python\Python36-32\lib\site-packages\umap\utils.py", line 268, in <module>     @numba.njit(parallel=True)   File "C:\Users\Hassan\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numba\decorators.py", line 236, in njit     return jit(*args, **kws)   File "C:\Users\Hassan\AppData\Local\Programs\Python\Python36-32\lib\site-packages\numba\decorators.py", line 141, in jit     raise RuntimeError(msg) RuntimeError: The 'parallel' target is not currently supported on Windows operating systems when using Python 2.7, or on 32 bit hardware.
Any idea how to make umap working on my machine? I need it for Seurat package in R... but first it should be installed without errors.
Thanks a lot,
HM

Unfortunately windows 32-bit machines are a bit of a weak-spot for UMAP because it relies on Numba for a lot of the performance heavy lifting and it has some issues on windows32. I believe you can get in working, but it won't be "clean". I believe the main feature that is an obstruction here is the use of the parallel option (which doesn't work for win32). You can remove that and then it should work.
How does one go about removing that? UMAP is all in python so you can just go in an edit the installed code.  You'll want to go through all the files in
C:\Users\Hassan\AppData\Local\Programs\Python\Python36-32\lib\site-packages\umap\
and wherever you see a line that says
@numba.njit(parallel=True)
or similar just remove the parallel=True. I know that is not exactly an ideal solution, but it will at least get it working for you.

Thanks for your input, I will follow your instructions hopefully I will be able to use the package. HM

Seems to be resolved.


Use unsafe prefix method names'

@colbyr @aem @henryqdineen
Resolves the warnings about not using the UNSAFE_ prefix methods. Shouldn't be an issue to move over to this now that React >= 16.8 is a peerDep.
(I wanted to silence this warning in a personal project but will work for us at HubSpot as well)
TODOs

[x] linter, checker, and test are passing
[x] any new public modules are exported from src/GeneralStore.js
[x] version numbers are up to date in package.json
[x] CHANGELOG.md is up to date

Just felt like more of a distinct change in behavior vs fixing an issue in the 3.0 release.
I don't feel strongly either way on this.

that's fair. let's leave it as a minor
On Wed, Oct 30, 2019 at 1:33 PM Zachary Friss<EMAIL_ADDRESS>wrote:

Just felt like more of a distinct change in behavior vs fixing an issue in
the 3.0 release.
I don't feel strongly either way on this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HubSpot/general-store/pull/73?email_source=notifications&email_token=AAOSI6Z74MG7Y7HEF3XZTMTQRHANRA5CNFSM4JGC6J6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECVDFEA#issuecomment-548024976,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOSI63A45VJHLYYD63NUIDQRHANRANCNFSM4JGC6J6A
.


Using Transform is slower than Top/Left

Hi I've just been messing around with this library, and tried two implementations of the same animation, and when I used transform: translate, in place of top/left, it resulted in a jankier animation. I found this surprising because from what I've read, it seems that transform should usually result in a smoother animation, for a variety of reasons. In the chrome devtools profiler, I see dropped frames in the transform version.
The only differences I see that I do differently between the two, would be instead of
<Motion key={index} style={this.getButtonPosition(index)}>
    {({ top, left }) => (

    )}
</Motion>

I'm doing
<Motion key={index} style={this.getButtonPosition(index)}>
    {({ deltaX, deltaY }) => (
        <div style={[STYLES.miniButton, { transform: `translate(${deltaX}px, -${deltaY}px)` }]}>
    )}
</Motion>

The only extra work I can see would be the string templating which I also changed to string concatenation to see if that would help. If anyone could give me a better idea on why transform would be jankier than top/left, I would appreciate it.

That's intriguing. Do you have a repro? Also, style array?

Judging by the style array, I'm guessing you're using Radium. You may be hitting performance impact from client-side autoprefixing, which is necessary on Safari/IE for transform. Try removing Radium, using Object.assign({}, STYLES.miniButton, { transform: translate(${deltaX}px, -${deltaY}px) }), and seeing if that fixes things.


[SPARK-19165][PYTHON][SQL] PySpark APIs using columns as arguments should validate input types for column

What changes were proposed in this pull request?
While preparing to take over https://github.com/apache/spark/pull/16537, I realised a (I think) better approach to make the exception handling in one point.
This PR proposes to fix _to_java_column in pyspark.sql.column, which most of functions in functions.py and some other APIs use. This _to_java_column basically looks not working with other types than pyspark.sql.column.Column or string (str and unicode).
If this is not Column, then it calls _create_column_from_name which calls functions.col within JVM:
https://github.com/apache/spark/blob/42b9eda80e975d970c3e8da4047b318b83dd269f/sql/core/src/main/scala/org/apache/spark/sql/functions.scala#L76
And it looks we only have String one with col.
So, these should work:
>>> from pyspark.sql.column import _to_java_column, Column
>>> _to_java_column("a")
JavaObject id=o28
>>> _to_java_column(u"a")
JavaObject id=o29
>>> _to_java_column(spark.range(1).id)
JavaObject id=o33

whereas these do not:
>>> _to_java_column(1)

...
py4j.protocol.Py4JError: An error occurred while calling z:org.apache.spark.sql.functions.col. Trace:
py4j.Py4JException: Method col([class java.lang.Integer]) does not exist
    ...

>>> _to_java_column([])

...
py4j.protocol.Py4JError: An error occurred while calling z:org.apache.spark.sql.functions.col. Trace:
py4j.Py4JException: Method col([class java.util.ArrayList]) does not exist
    ...

>>> class A(): pass
>>> _to_java_column(A())

...
AttributeError: 'A' object has no attribute '_get_object_id'

Meaning most of functions using _to_java_column such as udf or to_json or some other APIs throw an exception as below:
>>> from pyspark.sql.functions import udf
>>> udf(lambda x: x)(None)

...
py4j.protocol.Py4JJavaError: An error occurred while calling z:org.apache.spark.sql.functions.col.
: java.lang.NullPointerException
    ...

>>> from pyspark.sql.functions import to_json
>>> to_json(None)

...
py4j.protocol.Py4JJavaError: An error occurred while calling z:org.apache.spark.sql.functions.col.
: java.lang.NullPointerException
    ...

After this PR:
>>> from pyspark.sql.functions import udf
>>> udf(lambda x: x)(None)
...

TypeError: Invalid argument, not a string or column: None of type <type 'NoneType'>. For column literals, use 'lit', 'array', 'struct' or 'create_map' functions.

>>> from pyspark.sql.functions import to_json
>>> to_json(None)

...
TypeError: Invalid argument, not a string or column: None of type <type 'NoneType'>. For column literals, use 'lit', 'array', 'struct' or 'create_map' functions.

How was this patch tested?
Unit tests added in python/pyspark/sql/tests.py and manual tests.

Test build #81030 has started for PR 19027 at commit d14c2cc.

cc @zero323, @rdblue, @nchammas, @holdenk, @ueshin and @felixcheung. Could you take a look please? I think it is a small fix but the advantage is quite large.

Test build #81030 has finished for PR 19027 at commit d14c2cc.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/81030/
Test PASSed.

Cool looks to me like a very reasonable fix.
Could we perhaps add a test for numpy.bool_ or numpy.float_ (that it should fail)?

I like this approach @HyukjinKwon :D!

Thanks @felixcheung and @holdenk. I just added a simple test with numpy.float.

Test build #81053 has started for PR 19027 at commit 5e21a7e.

Test build #81053 has finished for PR 19027 at commit 5e21a7e.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/81053/
Test FAILed.

Merged build finished. Test FAILed.

Oops, looks I need to check if numpy is available. Let me rather take this one out here as I am trying to whitelist basestring if you don't mind. I tested it with numpy in my local for your concern @felixcheung and it looks fine.

Test build #81056 has started for PR 19027 at commit 4abaef7.

Test build #81056 has finished for PR 19027 at commit 4abaef7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/81056/
Test PASSed.

I'm ok without the test since this is unlikely to break in the future. We do have tests that depends on (optionally) numpy (and Arrow) - seems like we should be able to take on dependencies more formally so we could test them properly?

Will probably take a look through the problem in the near future including hard dependencies and etc. I took a quick look but I think I need more time but yes it looks appearently vaild point.

LGTM.
Btw, I'm just curious why we need tests with numpy here.

It's not specific to it, but fairly common when people are calling numpy in UDF and returning its scalar type as-is. These scalar "looks" like Python native types (numpy.float_ vs float).
That's the case reported in JIRA and what I've run into.

@felixcheung I'm sorry if I'm missing something but it sounds like it's a different problem from this pr?

That's fine, @ueshin and @felixcheung. Adding few tests with numpy type might be an extra bit and (possibly) unrelated vs it's easy to add a test and might be a (possibly) common case users would try first. Of course, supporting numpy types properly should be orthogonal.

Will merge this one BTW. Sounds we are fine.

Merged to master.

Sure - I think there are a number of different situations reported in the JIRA that could be separated into different fixes.
Let me know what I can help with!


LangGraph nodes within Prompt Flow error out when Prompt Flow tracing is turned on

Describe the bug
When using LangGraph within Prompt Flow, nodes that invoke a graph error out when Prompt Flow tracing is turned on.
How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:

Create node that calls a LangGraph graph (graph.invoke(input))
Run Prompt Flow graph

Expected behavior
No error
Screenshots
N/A
Running Information(please complete the following information):

Promptflow Package Version: promptflow==1.16.1
Operating System: Windows 11
Python Version: 3.13.0

Additional context
Running graph.invoke(input) works when setting PF_DISABLE_TRACING=true
Without setting this env variable, we get the following message:
File **"C:\Users\MattY\Code\PromptFlowSandbox\PrmtFlPyVenv\Lib\site-packages\promptflow\tracing\_trace.py"**, line 145, in collect_openai_tokens_for_parent_span
    **key: (self._span_id_to_tokens[parent_span_id].get(key, 0) or 0) + (tokens.get(key, 0) or 0)**
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'dict' and 'dict'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\MattY\Code\PromptFlowSandbox\PrmtFlPyVenv\Lib\site-packages\promptflow\_core\flow_execution_context.py", line 90, in invoke_tool
    result = self._invoke_tool_inner(node, f, kwargs)
  File "C:\Users\MattY\Code\PromptFlowSandbox\PrmtFlPyVenv\Lib\site-packages\promptflow\_core\flow_execution_context.py", line 206, in _invoke_tool_inner
    raise ToolExecutionError(node_name=node_name, module=module) from e
promptflow._core._errors.ToolExecutionError: Execution failure in 'python_concat': (TypeError) unsupported operand type(s) for +: 'dict' and 'dict'
2024-11-11 14:29:39 -0500    8824 execution.flow     WARNING  Failed to calculate metrics due to exception: unsupported operand type(s) for +: 'int' and 'dict'.
2024-11-11 14:29:39 -0500    8824 execution.flow     WARNING  Failed to calculate metrics due to exception: unsupported operand type(s) for +: 'int' and 'dict'.
2024-11-11 14:29:39 -0500    8824 execution.flow     ERROR    Flow execution has failed. Cancelling all running nodes: python_concat.
pf.flow.test failed with UserErrorException: TypeError: **Execution failure in 'python_concat': (TypeError) unsupported operand type(s) for +: 'dict' and 'dict'**
WARNING:azure.monitor.opentelemetry.exporter.export._base:Retrying due to server request error: <urllib3.connection.HTTPSConnection object at 0x000001EE56BA7ED0>: Failed to resolve 'eastus-8.in.applicationinsights.azure.com' ([Errno 11001] getaddrinfo failed).

You haven’t asked for any new information


Version number counter task fails - The variables can not be found on the definition: , ,

Parameters used:

$(Version) is set to 3.0.0
It appears that variable was read sucessfully but failed to update:

try adding the variable name without $(). That should do the trick

That worked. Thanks.


Linux KDE系统托盘图标是一个白色的方框

First, make sure your issue is strictly related to the Electronic WeChat project. If it's a question or feature request, you can remove the template below.
Description
打开之后，系统托盘图标显示为一个白色的方框。

Specifications

Version of Electron (run $ electron --version): v0.37.6
Version of Node.js (run $ node --version): v6.0.0
OS: openSUSE Leap
Architecture x86_64
Stack trace from the error message (if any)

<Stack trace here>

I'll look into that.

@geeeeeeeeek 我使用的是KDE 5桌面环境。

Changing icon size can solve this problem: https://github.com/sindresorhus/caprine/issues/58 , https://github.com/sindresorhus/caprine/commit/c150350d547070b56db7f576ed7a6ff23c3d0a3d

@xgdgsc Thanks so much. Will fix it in the next release.

@xgdgsc Fixed. Please checkout.

Tested, works quite well. Thanks!


Missing information on contributing to localization in the project

Provide a description of requested docs changes
Hello,
I've found multiple issues with Polish translation.
I would like to contribute and correct them, but the localization contribution process seems to be nowhere documented.
Please add relevant documentation:

what are the current original and localized files in the repo
what tools are supposed to be used (if any are specifically required)
how PRs for translation contributions should look like (if there are any specific requirements)

Hi @lukjak,
Thanks for being interested in contributing to PowerToys!
We do currently do all of the localization in a dedicated localization system and it's only available for Microsoft's employees to access, and the loc-team does all the localization. So currently we do not accept community PRs for the localization.
In this case, you can file your localization issue here and @crutkas or others will send this to the loc-team.
Thanks for your help to make PowerToys a better piece of software!

@crutkas Is it possible for contributing to translations based on the system we use now?

https://github.com/microsoft/PowerToys/issues/new?assignees=&labels=Issue-Bug%2CArea-Localization%2CIssue-Translation%2CNeeds-Triage&template=translation_issue.yml is the correct way to file translation bugs.  We have to have our loc issues go through our internal translation team.


Tutorial.

The tutorial suggests that gravity is automatically enabled, which it isn't.
I thought I had made a mistake XD.

Kaboom is no longer mantained, go to KAPLAY


Consolidate exceptions to regions

Mac hosted builds are run in either the United State or data centers in Europe.
This change attempts to call out all the exceptions to single region in one area.

#sign-off


Add Grafana dashboard for Blackbox exporter probes

What is missing?
Grafana dashboard for Blackbox exporter probes
Why do we need it?
To monitor probes info
Environment
Any

kube-prometheus version:
any, main branch

Anything else we need to know?:

Dashboards can be added individually.
Since blackbox_exporter does not ship any monitoring mixin, we don't include any dashboard either. If you have a good, generic dashboard in mind, please share.

There is public one, which is not bad - https://grafana.com/grafana/dashboards/7587.
When any probes added - it could display blackbox exporter metrics out of the box.

I agree that one is a quite good dashboard for blackbox_exporter. Do you know where is the git repository for the dashboard? We need it to check the license and include json file programmatically.

I tried to search original repo, but no luck.
Also not found exact info about license for community dashboards.


Featured images on project page (randomly) not showing in Netlify deploy

I've been encountering a strange bug lately, where the featured images for projects will show locally, but when I deploy to Netlify some of the images will no longer be there on the live site.
The behaviour is totally random: If I deploy the site again some of the images that did display won't (and vice versa). If I deploy over and over, eventually all the images will display. I'm not sure what's causing this issue (Apero, Hugo, or Netlify). When I download the Netlify deploy all the images are there, so it isn't clear why they aren't being found.
Posting here to see if other Apero users have encountered this too. Any help is appreciated!
Edit: This also affects the author byline, not just the thumbnail. The root cause is that the relevant HTML is not being included in the deployed site (not sure why though). I also opened an issue in the Netlify forums: https://answers.netlify.com/t/netlify-creating-random-changes-to-hugo-site-on-deploy-missing-content/79960

@apreshill I think this is happening on your site too:

Your blogdown book project currently has no image on the live site, despite having a featured.jpg file for that page in your GitHub repo.

This issue is affecting other users too, as reported in #89


IDIR Dashboard panel Compliance & Exclusion Reports |2|

The Compliance & Exclusion Reports panel displays links for some IDIR roles. It shows the reports in various states along the review process and indicates which one require action.
Roles:
The following IDIR roles can access the information/links developed within this card:

Government Analyst
Compliance Reporting Manager (this role is not yet created in TFRS)

Compliance Reports in progress:
Includes compliance reports with the following statuses: Submitted, Reviewed 1, Reviewed 2 (status labels TBD)

n awaiting government analyst review: status = Submitted
n awaiting compliance manager review: status = Reviewed 1
n awaiting Director review: status = Reviewed 2

Exclusion Reports in progress:
Includes exclusion reports with the following statuses: Submitted, Reviewed 1, Reviewed 2 (status labels TBD)

n awaiting government analyst review: status = Submitted
n awaiting compliance manager review: status = Reviewed 1
n awaiting Director review: status = Reviewed 2

Fonts and colours are following DevHub standards:
18px default text size
24px for panel headings
36px for yellow text
Noto Sans font
tundra #494949 for panel border and title text
midnight blue #003366
lightning yellow #FCBA19
concrete #F2F2F2
links are underlined
matisse #1A5A96
https://trello.com/c/Zv9N0ygA/1608-idir-dashboard-panel-compliance-exclusion-reports-2

 IDIR Dashboard panel Compliance & Exclusion Reports |2|

resolved in sprint wormhole


State Reloading

Objective
Current state scheduling prevents same-state transitions, aka state reloading.
The state reloading can be very useful to reset levels or boards for example
Solution

I removed the same state error and verification
Every state overwrite_ method is no longer faillible (breaking change)
I added a test for state reloading

Looks like #3328 (which we just merged) accomplishes the same goal. Does that work for you?

Fine by me


ARM/ARM64-friendly build?

Hi! I tried to install this library on my Raspberry 4 running Raspbian 64. It didn't like the AMD64 libraries:
$ sudo apt install ./ChiaPlotStatus.linux-x64.deb
[sudo] password for myuser:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'chiaplotstatus:amd64' instead of './ChiaPlotStatus.linux-x64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 chiaplotstatus:amd64 : Depends: libc6:amd64 but it is not installable
                        Depends: libgcc1:amd64 but it is not installable
                        Depends: libgssapi-krb5-2:amd64 but it is not installable
                        Depends: libstdc++6:amd64 but it is not installable
                        Depends: zlib1g:amd64 but it is not installable
                        Depends: libssl1.1:amd64 but it is not installable or
                                 libssl1.0.2:amd64 but it is not installable or
                                 libssl1.0.1:amd64 but it is not installable or
                                 libssl1.0.0:amd64 but it is not installable or
                                 libssl0.9.8:amd64 but it is not installable
                        Depends: libicu66:amd64 but it is not installable or
                                 libicu65:amd64 but it is not installable or
                                 libicu64:amd64 but it is not installable or
                                 libicu63:amd64 but it is not installable or
                                 libicu62:amd64 but it is not installable or
                                 libicu61:amd64 but it is not installable or
                                 libicu60:amd64 but it is not installable or
                                 libicu59:amd64 but it is not installable or
                                 libicu58:amd64 but it is not installable or
                                 libicu57:amd64 but it is not installable or
                                 libicu56:amd64 but it is not installable or
                                 libicu55:amd64 but it is not installable or
                                 libicu54:amd64 but it is not installable or
                                 libicu53:amd64 but it is not installable or
                                 libicu52:amd64 but it is not installable
E: Unable to correct problems, you have held broken packages.
myuser@raspberrypi:~/Downloads $

Any chance of an ARM friendly version?

Hi, you can try to built it on your arm system.

If it builds successfully you can execute:
dotnet tool install --global dotnet-deb
dotnet deb -r linux-x64 -f net5.0 -c Release

to build an installable deb file.

Have you tried it?

Closed due to inactivity


fix(plugins/plugin-kubectl): client can't modify the styles of CurrentNamespace and CurrentContext widget via classname

Fixes #7295

Description of what you did:

My PR is a:

[ ] 💥 Breaking change
[x] 🐛 Bug fix
[ ] 💅 Enhancement
[ ] 🚀 New feature

Please confirm that your PR fulfills these requirements

[x] Multiple commits are squashed into one commit.
[x] The commit message follows Conventional Commits, which allows us to autogenerate release notes; e.g. fix(plugins/plugin-k8s): fixed annoying bugs
[x] All npm dependencies are pinned.

/lgtm


[SPARK-46395][DOCS] Assign Spark configs to groups for use in documentation

What changes were proposed in this pull request?
Enable Spark configs to be assigned to documentation groups. These groups will be used to automatically build config tables for display in our documentation.
Instead of having to maintain large blocks of HTML tables throughout our documentation, config tables can simply be included as follows:
{% include_api_gen _generated/config_tables/sql-tuning-caching-data.html %}

This approach covers both SQL and non-SQL config docs and, if accepted, will replace sql/gen-sql-config-docs.py.
This proposal is an alternative to #44300 that does not require modifying ConfigEntry or ConfigBuilder to add a new field. Instead, the groups are defined completely outside of Spark's core.
Why are the changes needed?
Using this approach we can accomplish several goals at once:

Eliminate thousands of lines of manually maintained HTML tables of Spark configs.
Ensure that internal configs are not accidentally documented publicly. (e.g. spark.sql.files.openCostInBytes)
Ensure that configs are documented publicly exactly as they are in the code. (e.g. spark.sql.autoBroadcastJoinThreshold)

Does this PR introduce any user-facing change?
No.
How was this patch tested?
I manually ran the new script to generate config tables and confirmed the following:

The desired config tables are generated.
If a config is mentioned in the YAML file but is not found, the script errors.
If a config group is defined in the YAML file that uses a reserved name, the script errors.
If a config group name is invalid, the script errors.

Was this patch authored or co-authored using generative AI tooling?
No.

@beliefer - Assuming you prefer the approach here to the one in #44755, is there anything else I can do to move this proposal forward? Are you interested in shepherding this work?
There will be many follow-up PRs to incrementally migrate all of our config documentation to use this framework. The result will be that our config documentation is more accurate, more usable, and easier to maintain.


[topcrash_bad_severity] Needinfo to suggest increasing the severity

Resolves #1407
To be consistent with other tools, this tool will needinfo the assignee, if not assigned, it will needinfo the triage owner.
Autonag wiki page
- Top crashers vs normal severity
+ Top crashers with low severity

- Purpose: Consistency and help getting traction on bugs.
+ Purpose: Consistency and help getting traction on top-crash bugs.
- Action: No action yet
+ Action: Needinfo the assignee or the triage owner if not assigned yet
Example: Bug 1471692
Code: topcrash_bad_severity.py

There's a typo in + Purpose: Consistency and help getting traction on topcrach bugs. ("topcrach" -> "topcrash").

Did you dry run? Which bugs would be touched?

Yes, it touches 6 bugs:

Click to expand the dry-run output!

The following bugs have topcrash as keyword but the severity isn't high enough:

BugSummary

1724336

Startup Crash in [@ mozilla::URLPreloader::ReadCache] after "MOZ_DIAGNOSTIC_ASSERT(false) (Entry should be new and not in any list)"

1719212

Assertions in mozilla::mscom::ProcessRuntime::InitInsideApartment due to injected DLLs

1435343

Crash in [@ mozilla::dom::workerinternals::RuntimeService::CrashIfHanging]. Shutdown problem in workers.

1315306

Crash in AsyncShutdownTimeout | profile-before-change-telemetry | TelemetryController: shutting down

1182927

crash at  [@ shutdownhang | NtCreateFile ]

858032

[meta] crashes in EnterBaseline / EnterJit

Sincerely,
Autonag bot

See the search query on Bugzilla.

See the source / report issues on the GitHub repo


Pixel artifacts on ST7735

I'm using this https://www.amazon.com/gp/product/B01J76ZGMY ST7735 on my ODROID C1+ which I have SSD1306 and SSD1331 working fine. When I use the examples or a sample program I wrote it leaves pixel artifacts on the bottom and right side of the display. See attached image:

Also the back light only works on "high" using the examples. "low" displays a black screen.

Can you show us the example code to doublecheck for errors?

Sure for the clock.py I used:
sudo python clock.py -d st7735 -i spi --spi-port 0 --spi-device 0 --gpio-data-command 24 --gpio-reset 25 --gpio-backlight 13 --width 160 --height 128 --backlight-active high
My little sample:
import time
from RPi import GPIO
from luma.core.interface.serial import spi
from luma.core.render import canvas
from luma.lcd.device import st7735

GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
serial = spi(port=0, device=0, gpio=GPIO, gpio_DC=18, gpio_RST=22)
device = st7735(serial)

with canvas(device) as draw:
    draw.rectangle(device.bounding_box, outline="white")
    draw.text((3, 3), "Hello", fill="white")

time.sleep(10)

Both result in the exact same artifacts.

what if you use 161x31 or 159 x 29? just a thought

Anything except 160x128 results in Unsupported display mode: 159 x 127

OK, I tried another little sample piece of code and it looks like the canvas is shifted as the following displays a bounding box (with 2 rows of pixel clutter at the bottom):
with canvas(device) as draw:
    draw.line((0, 2, 159, 2), fill="white")
    draw.line((1, 0, 1, 127), fill="white")
    draw.line((0, 127, 159, 127), fill="white")
    draw.line((159, 0, 159, 127), fill="white")
time.sleep(5)

So the different manufacturers map the screen to different memory offsets. I had to add h-offset and v-offset for the ST7725 ... Perhaps we need to do the same for this device too.
See https://github.com/rm-hull/luma.core/blob/master/luma/core/cmdline.py#L238 and https://github.com/rm-hull/luma.lcd/blob/master/luma/lcd/device.py#L146

Sorry not paying attention properly, thought this was about ssd1351... Try fiddling with the --h-offset and --v-offset params either +/-1 or 2 until it displays properly

The size should be 160x128. Use the examples demo.py script as a reference to get the offsets correct

I'll try that tomorrow and check back with the results.

ah yeah... you can force it by removing this check though: https://github.com/rm-hull/luma.lcd/blob/master/luma/lcd/device.py#L154
But it's just a wild guess, I don't expect it to improve.

--h-offset 1 --v-offset 2 worked perfect!
`sudo python clock.py -d st7735 -ipi --spi-port 0 --spi-device 0 --gpio-data-command 24 --gpio-reset 25 --gpio-backlight 13 --width 160 --height 128 --backlight-active high --h-offset 1 --v-offset 2


Still doesn't work when imported via composer

Still having issues on a fresh UF install, when adding SelfTermination as a "depends" sprinkle.
Multiple problems, including version match failures:
Root composer.json requires strykeslammerii/selftermination-sprinkle ~0.2, found strykeslammerii/selftermination-sprinkle[dev-main, dev-UF5, dev-6-repair-old-js] but it does not match the constraint.

Everything is working well enough now; the above fresh UF install has SelfTermination sprinkle installed and working.
Please open a new issue for any future trouble.


mainboard -d camera_detection_occupancy_nus.dag can't find detection result in Camera View window

Describe the bug
A clear and concise description of what the bug is.
apollo10.0 build in ubuntu20.04 os,gpu is 2080 ti,cuda is 11.8,
has set save_occ_result as true in occ_det_nus.pb.txt file.
I can't find detection result in Camera View, the following image is the result

To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

The 3d detection results can be seen in the vehicle visualization window.
Bev+Occ detection is carried out in bev and 3d space without additional detection on 2d images, and the detection results are not backprojected onto the Camera View for visualization.

think you,I  will close this issues


Error: listen EADDRINUSE: address already in use <IP_ADDRESS>:6020

hi:
What's going on? It's the same mistake! Did you pass the test? You just added MQTT and other protocols! Is there anything wrong with my environment? Wait for your reply, thank you!

What's going on? It's the same mistake! Did you pass the test? You just added MQTT and other protocols! Is there anything wrong with my environment? This problem is not solved, can not continue to test! Looking forward to your reply, thank you!

Passing in a host and port that way isn’t supported when not using a config file with explicit endpoints. It’s a backwards compatibility hack that was left from V3. Just remove those and it will be fine. I’ll put a depreciation notice up for those who use it still.

And yes there’s a test script, it’s scripts/node-test.js

OK!Thank you very very much!Ha-ha!

I'm in the same problem. A notice: why it's kept in the documentation at https://deepstream.io/tutorials/install/nodejs/. A better documentation help a lot. (i can too help with that).
Also i tried to load the configuration by providing the path as bellow

And i keep getting the error:
.../src/config/js-yaml-loader.ts:175
  throw new Error(`Configuration file not found at: ${configPath}`)
        ^
Error: Configuration file not found at: .......

I also made the construction without providing any parameter. And it keep not working
Error: No config file found
    at getDefaultConfigPath (/home/..../node_modules/@deepstream/server/src/config/js-yaml-loader.ts:195:

I was having the same problem. And i was using typescript and i didn't pay attention too to the output dir and build. I was able to run the server in the end.  But i ended up with a lot of questions.
I checked up the code source and i have seen how the config is loaded
const SUPPORTED_EXTENSIONS = ['.yml', '.yaml', '.json', '.js']
const DEFAULT_CONFIG_DIRS = [
  path.join('.', 'conf', 'config'), path.join('..', 'conf', 'config'),
  '/etc/deepstream/config', '/usr/local/etc/deepstream/config',
  '/usr/local/etc/deepstream/conf/config',
]

DEFAULT_CONFIG_DIRS.push(path.join(process.argv[1], '..', 'conf', 'config'))
DEFAULT_CONFIG_DIRS.push(path.join(process.argv[1], '..', '..', 'conf', 'config'))

Also i tested different things and all. Here what i came up with:
First of all if we don't precise any parameter in the constructor. A config from the default directories will get to load. If there isn't then the server fail to run.
And one of the places where we can put a config is ./conf  in the same folder as the server node script.
Secondly we can precise a config as a string path (parameter in the constructor). config.yml or one of the supported extensions. That will allow the server to load the server config + the permission.yml and users.yml configs. Which too are supposed to be in the same folder. If not in the same folder there load will fail, and therefor the permission plugin will not load. And so does the users config. And no fall back to default will happen.
Thirdly the supported extensions for the config files are: yml, yaml, json, js.
In nodejs context. If nothing precised. There is no fallback to some default config. The config need to be provided in one of the default folders, or by precising a path to it. Or by passing a config object.
To precise the path, we need to precise the path to the config.yml file (the server config) [example: path.join(__dirname, './conf/config.yml'). Then from the same dir permission.yml and users.yml will be retrieved (the extension can be any of the supported one). We can not precise a path to a directory, it will fail.
We can precise the path to permission config or user config separatly within config.yaml as shown bellow:
# Permissioning example with default values for config-based permissioning
permission:
  type: config
  options:
    path: ./permissions.yml
    maxRuleIterations: 3
    cacheEvacuationInterval: 60000

Finally we can pass an object to configure the server, or by passing null as a parameter and use .set methods (i didn't test the second method). For configuring the server we need to follow the same structure as the yml file. With sometimes a bit different naming. The typescript declaration files or types show us the way. With an editor like vscode. Even if we are not using typescript we can keep get the autocompletion and type definitions.
And the simplest for equivalent to the previous version is :
const webSocketServer = new Deepstream({
    connectionEndpoints: [
        {
            path: 'deepstream',
            type: 'ws-websocket',
            options: {
                port: 6020,
                host: '<IP_ADDRESS>'
            }
        }
    ]
});

webSocketServer.start();

My questions come as follow:

have i missed something or am i wrong on some things above?

When we provide the config as directly in the constructor through js. Why the name of properties is different then the one in the yml config. For example for the end points options. We have urlPath in yml and just path in js object (following the typescript declaration files) (and it work as i tested it)  [update: i tested too with urlPath and it work] so the typescript types declaration files need to be updated. ?

Lastly if i write a more detailed and concise information would you include them in the documentation and how i should proceed ?

Will get back to you on this, need a bit of time to add a response

Will get back to you on this, need a bit of time to add a response

hey!
Okay so the reason I didn't get back is because I took a step back and came up with a much clearer way of doing all this connection stuff (now in V5)
The idea is this, you have one http server (either uws or default) and all connection points and plugins point to that. You can configure the server like this:
const webSocketServer = new Deepstream({
    httpService: {
            type: 'default', // or uws
            options: {
                port: 6020,
                host: '<IP_ADDRESS>',
            }
        }
});

webSocketServer.start();

or if using the binary like this:
./deepstream start --port 6030 --host bla.com

Each endpoint registers against that one server, meaning you won't have more than one port open normally unless your running mqtt (currently). The only catch is you can't pick and choose now between node and uws, it's one or the other.
In terms of starting the server, you can either:
1- Pass in null, uses defaults built in new Deepstream(null)
2- Pass in config file name, loads from config file and merges missing properties from default, if nothing is passed in new Deepstream() it will look for the config file in either a folder called config in your current directory or one above.
path.join('.', 'conf', 'config'),
 path.join('..', 'conf', 'config')

3- You can pass in an object that is basically the translated yaml file into the deepstream config object
new Deepstream({
  ...
})

4- You can ovveride the deepstream config post creation and pre starting, which is the only way to override services
const ds = new Deepstream()
ds.set('auth', new MyOwnAuthHandler({}, ds.getServices()))
ds.start()

WIP documentation:
http://staging.deepstream.io/guides/post-it-board/setting-up-the-backend/


sharp-v0.24.0-electron-v76-win32-x64.tar.gz 404

my env:
electron 8.0.0
nodejs 12.13
windows7 64bit
When i run yarn, i got output:
...
[4/4] Building fresh packages...
$ install-app-deps
• please use as subcommand: electron-builder install-app-deps
• electron-builder  version=22.3.2
• loaded configuration  file=package.json ("build" field)
• rebuilding native dependencies<EMAIL_ADDRESS>platform=win32 arch=x64
• install prebuilt binary  name=sharp version=0.24.0 platform=win32 arch=x64
• build native dependency from sources  name=sharp
version=0.24.0
platform=win32
arch=x64
reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
error=prebuild-install info begin Prebuild-install version 5.3.3
prebuild-install info looking for cached prebuild @ C:\Users\Administrator\AppData\Roaming\npm-cache_prebuilds\d8d157-sharp-v0.24.0-electron-v76-win32-x64.tar.gz
prebuild-install http request GET https://github.com/lovell/sharp/releases/download/v0.24.0/sharp-v0.24.0-electron-v76-win32-x64.tar.gz
prebuild-install http 404 https://github.com/lovell/sharp/releases/download/v0.24.0/sharp-v0.24.0-electron-v76-win32-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=8.0.0 runtime=electron arch=x64 libc= platform=win32)
• rebuilding native dependency  name=sharp version=0.24.0
Done in 1270.60s.

Prebuilt binaries that are compatible with Electron 8 (ABI version 76), which was released 4 days ago, will be provided with the next release of sharp.

When is the next release please?

I just switched my package.json to version 7
    "electron": "^7.0.0",

and then I installed npm i electron-rebuild --save-dev
And I ran this:
./node_modules/.bin/electron-rebuild -p -t "dev,prod,optional"

and I am no longer getting errors.

v0.24.1 now available with prebuilt binaries for Electron ABI 76.


Make parseString non-IO

I see no reason for it to be an IO action.

This does not, and will not pass CI. See #25


Proteome Comparison tool failing

I have tried to submit this job twice and gotten a Bad Gateway error

Must be a temporary glitch. I just tried and it seems to be working.


Multiple instances / sessions

What is the best practice for having multiple simultaneous Spotify API sessions? I'd like to allow multiple users from around the web to all show what they're listening to simultaneously, which will all display simultaneously from the same dashboard.
Do I just need to start a new SpotifyWebAPI\Session per user? Will that allow the app to continuously read data from their account and refresh tokens without repeated authentication so their status is publicly available? Ideally, one person should be able to see what anyone else on the platform is listening to and be able to also tune into what someone else is listening to, so there will also be two levels of sessions: (1) external sessions of all other users on the platform, and (2) the current user's internal session.
Sorry if this isn't the correct medium for a question like this. Wasn't sure where else to go.

Hey!
Yeah, one Session instance per user should do the trick. Reusing the same Session instance could work but it would be more work updating it with the correct tokens. One per user should be easier to work with.

Perfect, thanks!


Setup identity provider

https://duo.com/docs/loginduo
Maybe can use the DUO free plan to setup 2FA for SSH based logins.

https://jumpcloud.com/pricing Has a free offering

https://github.com/gravitational/teleport/discussions/12047


BUILD_EASYLOGGING = OFF

compiles with -DBUILD_EASYLOGGINGPP=OFF and unit_tests pass
issue number: #6009

General comment - having a bunch of #ifdefs all over the code is bad practice.
Perhaps instead dynamic or static polymorphism can be used?
Dynamic - define logger class with virtual functions. Select inheriting class based on single #ifdef.
Static - define template class logger. Select template parameter in a single  #ifdef.


Difficulty Configuring Alibaba's text-embedding-v3 Model in Letta

I'm trying to use Alibaba's "text-embedding-v3" as an embedding model in Letta, but I'm experiencing difficulties with the implementation. I've attempted the following configuration:
EmbeddingConfig(
embedding_model="text-embedding-v3",
embedding_endpoint_type="openai",
embedding_endpoint="https://dashscope.alibabyncs.com/compatible-model/v1",
embedding_dim=1024,
embedding_chunk_size=8192
)
Specific Questions:
How can I properly configure and use text-embedding-v3 in Letta?
Are there any special steps or additional configurations required?
Is this model fully supported in the current version of Letta?


Can not reproduce good testing result

Hi authors of PGPS,
I am reproducing the PGPS model and encounter some difficulty when training and testing the model. I have run the train.sh and test.sh. The training loss is quite low but in testing phase, it could not gain high accuracy. Could you please take a look and help me this issues? Thank a lot!
This is the training log and testing log.
Training:
2024-05-09 22:42:14,999 - INFO: Epoch: [539][  0/132]   Time 0.823 (0.823)      Data 0.408 (0.408)      $
2024-05-09 22:42:21,521 - INFO: Epoch: [539][ 20/132]   Time 0.265 (0.350)      Data 0.000 (0.020)      $
2024-05-09 22:42:28,209 - INFO: Epoch: [539][ 40/132]   Time 0.286 (0.342)      Data 0.000 (0.010)      $
2024-05-09 22:42:34,927 - INFO: Epoch: [539][ 60/132]   Time 0.367 (0.340)      Data 0.000 (0.007)      $
2024-05-09 22:42:41,702 - INFO: Epoch: [539][ 80/132]   Time 0.279 (0.340)      Data 0.000 (0.005)      $
2024-05-09 22:42:48,887 - INFO: Epoch: [539][100/132]   Time 0.363 (0.344)      Data 0.000 (0.004)      $
2024-05-09 22:42:55,994 - INFO: Epoch: [539][120/132]   Time 0.434 (0.346)      Data 0.000 (0.004)      $
2024-05-09 22:42:59,844 - INFO: ----------Epoch:539, training loss is 0.0498 ---------
2024-05-09 22:43:00,353 - INFO: ------------------- Train Finished -------------------
Testing:
2024-05-10 09:58:26,640 - INFO: The whole model has been loaded from log/2024-05-09-22-43-04/best_model.$
2024-05-10 09:58:26,640 - INFO: The model resumes from epoch 524
2024-05-10 10:02:15,103 - INFO: ----------Epoch:524, test answer_acc 0.2480, equation_acc 0.0000 -------$

Hi, you can print the solution program to  check output content. May be the package version such as "antlr4-python-runtime" is wrong.

Hi thank you for your answer. I have check and confirm that my package version is the same as requirements.txt.
Could you please explain more on "print the solution program to check output content", I have tried to print the output = model(diagrams, text_dict, var_dict, exp_dict, is_train=False) (line 20, core/test.py) but still can not figure anything from this. Thank you for your help!!!
This is the output when I run test.sh and print the output:
Can Not Find Operators!
[[[28, 55, 56, 31, 56], [28, 55, 56, 31, 55], [28, 56, 56, 31, 56], [28, 55, 56, 28, 3, 55, 31, 3], [28, 55, 56, 31, 5], [28, 55, 55, 31, 56], [28, 55, 56, 31, 3], [28, 55, 56, 28, 3, 56, 31, 3], [28, 55, 56, 31, 57], [42, 55, 56, 57, 57, 31, 56]]]
[[[32, 55, 56, 57, 31, 58], [33, 55, 57, 57, 31, 58], [50, 55, 56, 3, 32, 55, 56, 3, 31, 58], [36, 55, 57, 57, 31, 58], [32, 56, 56, 57, 31, 58], [36, 55, 57, 3, 31, 58], [34, 55, 56, 57, 31, 58], [0, 55, 57, 3, 31, 58], [53, 55, 56, 57, 31, 58], [33, 55, 56, 57, 31, 58]]]
Can Not Find Operators!
[[[33, 55, 56, 57, 31, 59], [29, 55, 56, 57, 31, 59], [32, 3, 55, 56, 38, 4, 11, 3, 34, 4, 55, 57, 31, 59], [34, 55, 56, 57, 31, 59], [35, 57, 56, 31, 59], [33, 56, 56, 57, 31, 59], [32, 3, 56, 56, 38, 4, 11, 3, 34, 4, 55, 57, 31, 59], [0, 55, 56, 57, 31, 59], [35, 3, 56, 34, 4, 3, 57, 34, 55, 4, 57, 31, 59], [32, 3, 55, 56, 34, 4, 3, 57, 31, 59]]]
Can Not Find Operators!
[[[28, 56, 57, 31, 56], [28, 55, 57, 31, 56], [28, 56, 57, 31, 57], [28, 57, 57, 31, 56], [28, 3, 57, 31, 3], [55, 57, 18, 31, 56], [28, 55, 56, 31, 56], [55, 57, 57, 31, 56], [56, 57, 55, 31, 56], [56, 57, 18, 31, 56]]]
Can Not Find Operators!
Can Not Find Operators!
Can Not Find Operators!
Can Not Find Operators!
[[[28, 3, 63, 50, 3, 4, 65, 19, 31, 4], [28, 3, 63, 50, 3, 4, 64, 19, 31, 4], [50, 64, 65, 3, 50, 3, 4, 19, 31, 4], [28, 3, 63, 50, 3, 4, 62, 19, 31, 4], [50, 63, 65, 3, 50, 3, 4, 19, 31, 4], [50, 3, 64, 65, 19, 31, 3], [50, 3, 63, 19, 50, 3, 65, 4, 31, 4], [28, 3, 64, 50, 3, 4, 63, 19, 31, 4], [50, 63, 64, 3, 50, 3, 4, 19, 31, 4], [50, 64, 64, 3, 50, 3, 4, 19, 31, 4]]]
[[[42, 55, 58, 56, 57, 31, 59], [42, 55, 57, 56, 58, 31, 59], [42, 55, 56, 58, 57, 31, 59], [42, 55, 56, 57, 58, 31, 59], [42, 56, 55, 58, 57, 31, 59], [42, 56, 55, 57, 58, 31, 59], [42, 56, 58, 57, 57, 31, 59], [42, 55, 57, 56, 57, 31, 59], [42, 56, 57, 58, 57, 31, 59], [42, 55, 56, 56, 58, 31, 59]]]
2024-05-14 09:37:32,092 - INFO: ----------Epoch:526, test answer_acc 0.0000, equation_acc 0.0000 ---------

please check https://github.com/mingliangzhang2018/PGPS/blob/main/utils/utils.py#L348-L365

I have tried to print out to see what happen in compute_exp_result_comp. Then, I encounter a problem that the "try" at line 349 is stop at line 352 pred_result = float(func_timeout(2.0, result_compute, kwargs=dict(num_all_list=num_list, exp_tokens=pred))). Although i have try to increase 2.0 to even 100, the problem can not be resolved. Could you please suggest me how to fix this problem? Thanks a lot!


mega analysis with various training datasets

Inspired by: http://arxiv.org/abs/1607.03392
Do LOO-subject classification while increasing the number of datasets to see if result improves as we add more data, regardless of batch-effect-i-ness;

train on 1, test on 1 (all permutations)
train on 2, test on 2 (all permutations)
...
train on all, test on all (which we did initially)

@ebridge2 should we be citing this article?


encoding/gob & math/big: decoding big.Float and big.Rat can panic - CVE-2022-32189

From Golang Security Announcement:
Decoding big.Float and big.Rat types can panic if the encoded message is too short.
This is CVE-2022-32189 and Go issue https://go.dev/issue/53871.

Closed by: https://github.com/aws/eks-distro-build-tooling/blob/main/projects/golang/go/1.16/patches/0008-go-1.16.15-eks-math-big-check-buffer-lengths-.patch


Agent Page - Unexpected Application Error! Cannot read properties of undefined (reading 'length')

Describe the bug
@cpacker
I think it was #1658 that introduced an error trying to access length of an undefined object. It happens on the Agents page but the other pages are okay.
Please describe your setup

[ ] How did you install memgpt?
Docker server with db being hosted in supabase.
[ ] Describe your setup
Docker Desktop on MacOS 15.0 Beta ~7
I've tried it both

Locally with a container built targeting linux/arm64
Deployed to Google Cloud Run built targeting linux/amd64

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

Should be fixed, please reopen if not! Thank you <3


fix readme

change the REAME file to a better format.

@getong thanks for paying attention to small details 👍

@adrienmo I think this project needs a new tag and push to hex.pm.

@getong updated!

@adrienmo hex.pm found the tag, but github not found the tag.

Thanks.


Missing CONTRIBUTION.md File

The repository currently lacks a CONTRIBUTING.md file, which is an important resource for guiding potential contributors on how to engage with the project effectively. A CONTRIBUTING.md file outlines the contribution guidelines, coding standards, and procedures for submitting pull requests, thus streamlining the contribution process and ensuring consistency across contributions.
Could you please assign this issue to me under GSSOC 24.

@deekshithapalla okay go ahead


Add tests for sampler

Closing as samplers now have tests https://github.com/vllm-project/vllm/tree/main/tests/samplers


[W6.1e][T11-B4]Eric Zhou

Added tests to test isAnyNull()

@software-1234
Accepting this PR with minimal review and I found no important issue. This PR is unclean.


boron: init at 2.0.8

Description of changes

Boron is a scripting language similar to Rebol.
http://urlan.sourceforge.net/boron/
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[ ] 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/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Also, could you add some smoke-test checkPhase to it?

Also, could you add some smoke-test checkPhase to it?

Done in https://github.com/NixOS/nixpkgs/pull/180865/commits/5bfa1da448c9bb6865e699a373da2f0563c106bc

Mauricio, there are some basics tests that can be run with "make -C test" in the checkPhase.
Also note that threads are disabled by default but should be enabled for a general purpose build.  See the dist/boron.spec for how this would be packaged for Fedora.  The static Boron library used by xu4 does have a number of features specifically disabled for security (see the boron target in u4/dist/Makefile)

there are some basics tests that can be run with "make -C test" in the checkPhase.
Also note that threads are disabled by default but should be enabled for a general purpose build.

Enabled threads and tests in https://github.com/NixOS/nixpkgs/pull/180865/commits/c6e4325e972fd53fc263918471f8be3071a7dd8d , thanks


Reword output when download is happening in quickstart.

when downloads happens in quickstart, current text is:
Configuring device operating system image
possibly change to or include this line as well  Downloading device operating system

The process of fetching an image is encapsulated by https://github.com/resin-io/resin-image-manager, and there is no easy way for the CLI to now if the image is going to be grabbed from the cache, or re-downloaded it.
Currently, if the image needs to be downloaded, a progress bar will appear which contains the following label: Downloading Device OS.
Is this enough to inform the user of a download taking place?

change "configuring" --> "Initializing"


feature request

I understand that mistral and deepseek will be supported soon, but for instruction following Qwen 2.5 is actually better. So can we pretty please to add support for Qwen 2.5-72b-instruct model as well? @xjdr-alt

qwen 2.5 should "just work" with the proper weights and tokenizer, but ill try it out a little later today to verify


Disable nightly rust checks for bors

This is a temporary measure while we wait for https://github.com/rust-lang/rust/issues/92163 to be resolved.

bors r+

Gross. It still runs the nightly checks, which fail. The failure results in cancellation of the stable checks, which results in a bors failure.

bors r+


Support REGISTRY_DATABASE_URL

As an environment variable (For cloud foundry)
REGISTRY_DATABASE_URL=sqlite+///tmp/registry.sql

Fixed in latest PR.


Port visual shader node icons from Godot 2.1.x

This also adds an icon for VisualScriptComment.
This closes https://github.com/godotengine/godot-proposals/issues/134.
Preview
Note: I added an icon for VisualShaderNodeVectorFunc after taking the screenshots. I also increased the opacity of the VisualShaderNodeBooleanUniform icon to 100%.

Thanks!


Male Koala Event Detector SaveIntermediateCsvFiles fails when set to WhenEventsDetected

Describe the bug
AP fails when running audio2csv using a modified Towsey.KoalaMale.yml file with following changes:

SaveIntermediateWavFiles: WhenEventsDetected
SaveIntermediateCsvFiles: WhenEventsDetected
SaveSonogramImages: WhenEventsDetected

Program throws an Unhandled exception because The value "WhenEventsDetected" is not a valid YML Boolean
Expected behavior
Should generate the sonograms, csv's, and wav files after analysis is complete.
Diagnostics

Operating System: Windows 10

AP: version <IP_ADDRESS>

Log: log.txt

Config: Towsey.KoalaMale.AP_DESKTOP_TEMP.1562243830862.zip

Command:

AnalysisPrograms.exe audio2csv audioFile.wav Towsey.KoalaMale.AP_DESKTOP_TEMP.1562243830862.yml outputFolder --mix-down-to-mono=false --parallel

So SaveIntermediateCsvFiles only accepts a boolean (true/false) unlike SaveSonogramImages and SaveIntermediateWavFiles. That's because there is little to no utility in saving intermediate CSV files so we didn't enhance that feature when we improved the other two options.
This is not a bug.
Do you want this behaviour augmented, or changed? Maybe documentation on the accepted values for SaveIntermediateWavFiles would suffice?

Updating
# Available options (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
SaveIntermediateWavFiles: Never
SaveIntermediateCsvFiles: false

to
# Available options (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
SaveIntermediateWavFiles: Never
# Available options (case-sensitive): [False/Never | True/Always]
SaveIntermediateCsvFiles: false

Should be fine


lots of warnings with primeng

Hi, I'm trying to integrate PrimeNG in my project, It works fine, but I get a lot of warnings (+75 warnings).
warning:
Cannot find source file 'uitreenode.ts': Error: Cannot resolve 'file' or 'directory' ./uitreenode.ts in C:\myproject\node_modules\primeng\components\tree
How can I remove them?

This is a PrimeNG issue not something with the starter, please look there:
https://github.com/primefaces/primeng/issues

@MarkPieszak I've already opened the issue there, they told me to open it here!

the warning are a problem with their source maps. you need to ignore them here https://github.com/AngularClass/angular2-webpack-starter/blob/master/config/webpack.common.js#L110...L115
I also made a branch for primeng
https://github.com/AngularClass/angular2-webpack-starter/tree/primeng

Thank you so much @gdi2290 problem solved.
I have a noob question, how is primeng branch different from the master, is that branch have primeng integrated or it's only meant for opening primeng related issues?

I created the primeng branch for anyone who wants to debug the issue. I'll have an offical branch later in the month

how to fix in webpack.dev.js file? Mine run in webpack dev enviroment and I dont know where to fix, here is my webpack.dev.js file:  http://pastie.org/10875854 @gdi2290

can you exclude it helpers.root('node_modules/primeng'), from sourcemaps
https://github.com/AngularClass/angular2-webpack-starter/blob/4a07eef656df71c8fc48d125f7b6a670a1e96046/config/webpack.common.js#L120...L124

Ahh got it, got the suggestion and it worked link


Upgrade to Ruby 3.4.1

This is the latest version of Ruby that was released on the 25th December 2024:
https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-1-released/
An enhancement we can make once this is live is to change the usage of _1 to it in blocks.

https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-0-released/

We can also remove # frozen_string_literal: true from all files now.

We can also remove # frozen_string_literal: true from all files now.

I looked in to this but I'm not sure we can yet. With the comment we get the future behaviour where strings can't be mutated, however if we remove the comment, the Ruby 3.4 behaviour is to allow mutation but warn about deprecation in the future.
If we remove the comment I'm wondering if we'd lose the performance improvements that come with immutable strings.

We can also remove # frozen_string_literal: true from all files now.

I looked in to this but I'm not sure we can yet. With the comment we get the future behaviour where strings can't be mutated, however if we remove the comment, the Ruby 3.4 behaviour is to allow mutation but warn about deprecation in the future.
If we remove the comment I'm wondering if we'd lose the performance improvements that come with immutable strings.

Ya, I read this too.

Now files without the frozen_string_literal comment will treat string literals as “chilled”, which means they can still be mutated, but it will emit a warning on mutation.

https://nithinbekal.com/posts/ruby-3-4/
Almost there.


New version: NBodySimulator v1.1.0

Registering package: NBodySimulator
Repository: https://github.com/JuliaDiffEq/NBodySimulator.jl
Created by: @ChrisRackauckas
Version: v1.1.0
Commit: e234cea99e21b9d1e8e2ef150700d4a9942da2e5
Reviewed by: @ChrisRackauckas
Reference: https://github.com/JuliaDiffEq/NBodySimulator.jl/issues/20#issuecomment-572356938

There are all saying it's unable to load since there's a specific order all of these would have to go in, but was all double checked locally so in the interest of time, instead of doing them 1-1, I'm just going to merge them.


Lint for RSA close prime Fermat factorization susceptibility

@aarongable
@vanbroup
Adds a lint that checks for RSA key pair that are susceptible to Fermat's factorization method.
https://fermatattack.secvuln.info/
https://nvd.nist.gov/vuln/detail/CVE-2022-26320
https://en.wikipedia.org/wiki/Fermat's_factorization_method
What I find most tricky about this change is that we still seem a bit off from being able to merge support for configuring individual lints (https://github.com/zmap/zlint/pull/648) lints. This makes the value for the number of rounds a hardcoded shot-in-the-dark. My first stab is 1000, but I'm checking to see what the perf impact is on the test corpus. On the one hand, we don't want a hardcoded value exploding our scan time. On the other hand, we don't want a hardcoded value that is too low and utterly useless in detecting dangerous primes.
EDIT:
Indeed, this lint alone has exploded the runtime of the test corpus on my local by 16x :frowning: . CICD also appears to be choking on this setting.
Addressed #673

It should be fine to use 100 rounds, quoted from https://fermatattack.secvuln.info/:

With common RSA key sizes (2048 bit) in our tests the Fermat algorithm with 100 rounds reliably factors numbers where p and q differ up to 2^517.

This is the same value used by crt.sh and I thought it was the default for boulder.

I'm nervous about including this as a defauilt-on given the performance implications (or without a major version release so that folks have the chance to disable it). Even with 100 rounds, it sounds like it will have a significant performance hit. I think we should consider how we note or segment these. Maybe there's a new category?

Well bumping the round down to 100 at least becomes workable.
On my local without this lint it takes 85s. With the lint at 100 rounds it takes 163s.
We see an even more drastic difference in CICD seeing as the test was timing out after 20minutes but it now appears to complete in ~6-7 minutes (which is a doubling for 3-4minutes it usually takes).

Wow yeah, I see the same test-time explosion that you see. I had no idea the zlint integration test corpus was so large.
I think this check, or something very similar, is still worth adding. And I think the default should be 100 rounds, at least to match crt.sh and Boulder.
To me the only question is whether it is worth landing now, or whether it should wait until after configurable lints become a thing, and then the integration tests could configure this one to (e.g.) 10 rounds to save on test execution time.

I suspect it's actually a fair amount worse than that, because that cost is including all the parsing, which is non-negligible compared to the lints themselves. A long while back, someone ran https://github.com/zmap/zlint/blob/master/v3/benchmarks_test.go against all our lints. It may be worth running again. If this more than doubles the cost of running lints, that's going to be tremendous for folks like Censys.

Howdy folks @aarongable @zakird
With our merge of the feature for configurable lints we can now make this lint, in particular, configurable.
I set the default to 100 as per Aaron's suggestion and added a benchmark test around that setting. It is worth nothing that, at least in GitHub Actions, that this does expand the time of running the test corpus by approximately 34% (last merge to master at 5m35s vs this PR a 7m29s).
@zakird 34% is not much a burden on this repo as it is relatively small in absolute terms. However, as you pointed out there are those out there (namely Censys) that do indeed consume certs in mass quantities for which a 34% slowdown is not acceptable.
Fortunately, this lint is indeed configurable by any party that deems the default setting to be unacceptable. The questions is - whose desired default should win out?
The way I see this is that either:

The default is something like 100 and mass consumers such as Censys can configure it all the way down to 0 if they like.
1a. Pro: It casts a wider net and gives the community at large a better shot at catching these bad key pairs.
1b. Con: A potentially burdensome computation cost for a scenario that seems unlikely.
The default is 0-10 and consumers that wish to take a deeper look (LE/Boulder) can set it to any desired goal.
2a. Pro: Still catches some obviously bad pairs while keeping mass lints fast.
2b. Con: Reduces the odds of finding a bad key pair by intentionally an order of magnitude.

The current CA/BF weak key ballot proposes enshrining the "100 rounds" language directly in the Baseline Requirements, so I'd lean toward having that be the default and letting mass certificate consumers adjust it downwards if they desire.

If CABF formalizes 100 rounds, I agree then that makes this a pretty easy decision.


Add "Sort By Product Tag" Feature

Feature Request
Context
Users who use the boards for things other than time will now be using product tags to easily look at things similarly to how they do now. The ability to sort by those product tags will make it easier for them to look between their different buckets instead of having to filter one and then the other.
This is just to add the ability to sort by Product Tag, not the design where they're seperated out.
Story
As a People Allocator
I want to be able to see my products arranged by product tag
So that I can scrill through and see them all but keep them seperated still.

Acceptance Criteria
Given I am in my space
When I click the Sort By dropdown
Then I see an option to sort by product tag
And if I click it then i see my products sorted that way
Notes
Push with #103
Design
https://www.figma.com/file/S4XKeovlQqeRk64k2qzhf8gL/PeopleMover?node-id=3443%3A0

Friday todo:

Move sort logic out of productReducer and into productList
Ensure the above change does not negatively affect other components using the products array
Create tests and product tag logic in productList

Can be reviewed here: https://67-product-sortui.apps.pd01i.edc1.cf.ford.com/


docs: implementation notes for Web Components

Related Ticket(s)
Refs #4916.
Description
Adds documentation about the implementation details of @carbon/ibmdotcom-web-components so new developers can easily jump into the codebase. More to be added as separate commits.
Changelog
Changed

Initial documentation about the implementation details of @carbon/ibmdotcom-web-components.

Thank you for reviewing and comments @kennylam!

Thank you for reviewing and comments @kennylam!


UAT | Judge home page shows incorrect count of cases

Logged in as judge, I see count of 7 cases->All(7), but no cases are listed below

Hi Team, this issue is fixed and working as expected.


Random Reply

Is there any way to send back random data with reply? I would like to send back random valid results from the same match.

You can pass a function into reply.
        .reply(200, function() {
            return Math.random();
        })