python311Packages.bdffont: 0.0.20 -> 0.0.24

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.bdffont is: A library for manipulating .bdf format fonts
meta.homepage for python311Packages.bdffont is: https://github.com/TakWolf/bdffont
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.0.24 with grep in /nix/store/plad3bjcnv1qd8rky0zj22v8afbqhd83-python3.11-bdffont-0.0.24
found 0.0.24 in filename of file in /nix/store/plad3bjcnv1qd8rky0zj22v8afbqhd83-python3.11-bdffont-0.0.24

Rebuild report (if merged into master) (click to expand)

6 total rebuild path(s)

6 package rebuild(s)

First fifty rebuilds by attrpath

ark-pixel-font
python311Packages.bdffont
python311Packages.pixel-font-builder
python312Packages.bdffont
python312Packages.pixel-font-builder

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/plad3bjcnv1qd8rky0zj22v8afbqhd83-python3.11-bdffont-0.0.24 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.bdffont https://github.com/r-ryantm/nixpkgs/archive/4787ce67c87df1c598c7b232875585fd909eb518.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/4787ce67c87df1c598c7b232875585fd909eb518#python311Packages.bdffont

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/plad3bjcnv1qd8rky0zj22v8afbqhd83-python3.11-bdffont-0.0.24
ls -la /nix/store/plad3bjcnv1qd8rky0zj22v8afbqhd83-python3.11-bdffont-0.0.24/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

5 packages failed to build:

ark-pixel-font
python311Packages.pixel-font-builder
python311Packages.pixel-font-builder.dist
python312Packages.pixel-font-builder
python312Packages.pixel-font-builder.dist

4 packages built:

python311Packages.bdffont
python311Packages.bdffont.dist
python312Packages.bdffont
python312Packages.bdffont.dist

Maintainer pings
cc @h7x4 for testing.

Result of nixpkgs-review pr 309804 run on x86_64-linux 1

9 packages built:

ark-pixel-font
python311Packages.bdffont
python311Packages.bdffont.dist
python311Packages.pixel-font-builder
python311Packages.pixel-font-builder.dist
python312Packages.bdffont
python312Packages.bdffont.dist
python312Packages.pixel-font-builder
python312Packages.pixel-font-builder.dist


Hide menu buttons after timeout and show on hover/tap

Someone has requested this because the layers and show buttons keep getting in the way. I had this in PP at some point and honestly can't remember why we took it out lol. Maybe because it could be confusing on tablet with having to tap?

This isn’t exactly the reason we took it out, but the previous version had an invisible div that didn’t allow people to use mouse events on the side of the screen.
Do we hide/show all menus with this feature? Or just the buttons? With the continuing addition of new things, it feels like we need some menu state management (or at least we will). Maybe we show the “last state” all the menus were in? Also, should this be the default behavior, or should it be triggered by something (eg. a key)?
I would like to take a look at menu management some point, but I just haven’t had time yet!

This isn’t exactly the reason we took it out, but the previous version had an invisible div that didn’t allow people to use mouse events on the side of the screen.

Ah, thats why!

Do we hide/show all menus with this feature? Or just the buttons?

I think I'd probably prefer just the buttons. When we had it before, I kind of felt annoyed by my menu disappearing all the time. What do you think?

With the continuing addition of new things, it feels like we need some menu state management (or at least we will). Maybe we show the “last state” all the menus were in?

I think people would appreciate that. It's nice to go back to how things were when you left them.

Also, should this be the default behavior, or should it be triggered by something (eg. a key)?

If it's key based we have to think of tablet users and I'm not sure how to resolve that one.

I would like to take a look at menu management some point, but I just haven’t had time yet!

I feel you! I'm going to try to work less on PP this week and slow down the release process so I'm not constantly introducing issues!

Maybe roll #78 into this one as well?

Completed in #291 :)


Update for new Chat

Reddit is releasing a new chat platform, but it's not themed.
On top of that, its an i-frame.
On top of that, I've not been able to theme it.
I've been messing around with it for a while and I may update if I get something working
lbl:reddit

Its been a long time since this issue, and since we have themed the latest beta reddit release. Unless you can point me in a more specific direction, this issue will be closed.

Since i've found out what this ment, and it seems to be themed.


update hf deps

multi-gpu tests also passed on this. https://github.com/axolotl-ai-cloud/axolotl/actions/runs/11300652863


Feature request: inline footnotes

It would be nice to have inline footnotes (aka inline notes). Here is the relevant pandoc example:
Here is an inline note.^[Inlines notes are easier to write, since
you don't have to pick an identifier and move down to type the
note.]

See also: https://pandoc.org/MANUAL.html#footnotes

This is also something I am looking for.

Please assign to me and I will see if I can resolve.

@davidackroyd99 Assigned. Thanks for looking at these issues!

Having a lot of problems with implementing this. Basically I can write in InlineParser to filter out the inline notes from the main body of the text (done) but I cannot then add another block level element using that parser to create the actual footnote, because the InlineParser does not seem to be able to create block level elements.
Does anyone have any recommendations?


Update wgpu version

We encountered a notable performance issue upon updating to the new wgpu version 0.19.0. As a result, we had to revert to the previous version in this pull request: https://github.com/tracel-ai/burn/pull/1221
Moving forward, we need to have a strategy to update our wgpu backend to align with the latest upstream changes without negatively affecting performance.

At the time of writing wgpu 0.19.3 has still the performance regression in compute shaders.
Closing this issue in favor or https://github.com/tracel-ai/burn/issues/1546 where there is a bit more information.
@nathanielsimard feel free to update the other issue with additional info if necessary.


Revert "bugfix: prevent create address mutation from firing twice"

Reverts artsy/force#7109

@ashleyjelks - can you add a reason for the need to revert in the description just so there's a paper trail? I've been reminding folks to do that lately.


WIP: Test updating host packages and rebooting

CI: Update host packages and reboot after host configuration
DNM: Drop some jobs

aio VMs fail to boot after rebooting, both with and without a package update...

Looks like this is duplicated by https://github.com/stackhpc/stackhpc-kayobe-config/pull/1144. Do you want to continue with it or close it @markgoddard ?

@MoteHue doing it in https://github.com/stackhpc/stackhpc-kayobe-config/pull/1144/files


Start setting up guided remediation subcommand

Just the osv-scanner fix flag parsing, the command itself doesn't do anything.
I'd appreciate opinions on the naming/aliasing of the flags.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3c78e7b) 80.02% compared to head (d1a7093) 79.64%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #792      +/-   ##
==========================================
- Coverage   80.02%   79.64%   -0.39%
==========================================
  Files          91       91
  Lines        6213     6214       +1
==========================================
- Hits         4972     4949      -23
- Misses       1038     1059      +21
- Partials      203      206       +3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Install fail: Cocoa 8.1 is installed but >=7.3 is required by {'photoscript'}

In running python3 setup.py install I get the following:
...
Installing osxphotos script to /usr/local/bin

Installed /usr/local/lib/python3.9/site-packages/osxphotos-0.43.8-py3.9.egg
Processing dependencies for osxphotos==0.43.8
error: pyobjc-framework-Cocoa 8.1 is installed but pyobjc-framework-Cocoa<8.0,>=7.3 is required by {'photoscript'}

In running osxphotos I get the following:
 File "/usr/local/bin/osxphotos", line 33, in <module>
    sys.exit(load_entry_point('osxphotos==0.43.8', 'console_scripts', 'osxphotos')())
  File "/usr/local/bin/osxphotos", line 25, in importlib_load_entry_point
    return next(matches).load()
  File<EMAIL_ADDRESS>line 77, in load
    module = import_module(match.group('module'))
  File<EMAIL_ADDRESS>line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/local/lib/python3.9/site-packages/osxphotos-0.43.8-py3.9.egg/osxphotos/__init__.py", line 4, in <module>
    from .photoinfo import ExportResults, PhotoInfo
  File "/usr/local/lib/python3.9/site-packages/osxphotos-0.43.8-py3.9.egg/osxphotos/photoinfo/__init__.py", line 8, in <module>
    from ._photoinfo_export import ExportResults
  File "/usr/local/lib/python3.9/site-packages/osxphotos-0.43.8-py3.9.egg/osxphotos/photoinfo/_photoinfo_export.py", line 30, in <module>
    import photoscript
  File "/usr/local/lib/python3.9/site-packages/photoscript-0.1.5-py3.9.egg/photoscript/__init__.py", line 12, in <module>
    from applescript import AppleScript, kMissingValue
ModuleNotFoundError: No module named 'applescript'

Desktop:

OS: 11.6 (Intel)
osxphotos version: Latest off of master

I just read the fix on https://github.com/RhetTbull/osxphotos/issues/538 to just run
~/.local/bin/osxphotos instead of osxphotos.


Add shipments index page

Add the Shipment index page
Show order number, address and state

Thanks for your contribution @saksham-jain !


Missing Valuable Information

After importing com.azure.cosmos.* I am still getting an error on asyncClient.createStoredProcedure. There is no information on this class or in which sdk to find it. Also, seems to be so many versions and types of libraries for cosmos, it would be helpful at the beginning of each article to list which library to install and which version. Also a link to the github repo where the code is stored.
Thanks

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

ID: 239e3b2d-4a09-c6a1-ab36-70b60a18f8b5
Version Independent ID: 10a323f6-5a10-8b38-6339-48ee7a4c54b3
Content: Register and use stored procedures, triggers, and user-defined functions in Azure Cosmos DB SDKs
Content Source: articles/cosmos-db/sql/how-to-use-stored-procedures-triggers-udfs.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @timsander1
Microsoft Alias: tisande

Thank you for your feedback! We will review and update as appropriate.

@kevlangdo Thank you for the feedback. This is being assigned to the content author to evaluate and update as appropriate.

Thanks
On Tue, Feb 22, 2022 at 2:24 AM AnuragSharma-MSFT @.***>
wrote:

@kevlangdo https://github.com/kevlangdo Thank you for the feedback.
This is being assigned to the content author to evaluate and update as
appropriate.
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/88387#issuecomment-1047497320,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABNRX4K625RAJOIL7XXZ35LU4M23ZANCNFSM5O2W2EBA
.
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.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Kevin Languedoc
@.***

Thanks @kevlangdo for this feedback! We have a version of this article in-flight that will add some links to relevant Quickstart articles at the beginning for those who have not worked with one of the SDKs before. I hope this resolves your concern.
#reassign:seesharprun


Changes to get the method entrypoint from the resolved function signature

Resolves #1125

I am still seeing this in the live version of Azure Functions. Is there any time frame as to when this will be deployed?

We'll be doing a release in the next week or so.

Has this been released?


[ci] adding a CI Android target

This is a proposal to fix https://github.com/godot-rust/godot-rust/issues/617
It should detect bugs such as https://github.com/godot-rust/godot-rust/issues/571
I have reverted then committed back again the commit https://github.com/godot-rust/godot-rust/pull/599/commits/64c49feb2540c98a83c21ceafad6b1f3344491f6
This resulted in a broken build #19 then a successful build #20
The final build #22 shows how
the rebased commit should actually be "all green". As I am writing this PR it's not finished yet completely but the android job was successful.
It is only built on stable, adding it to nightly is not hard, but it's yet another build,
and will not speed up the release cycle. Happy to hear feedback on that.
It still has, I think, 2 caveats:

it downloads a 1Gb (one gigabyte :( ) .zip file for the NDK. I don't really know any workaround, it might be just fine to do that on Travis, after all it's reasonably fast. But I'm concerned it consumes so much resources.
it builds, it does not test. Again, this is hard, and I'd suggest it is done in a second step, to keep this PR simple. Ideally you'd want to run a test program within an Android emulator.

Apparently the build is failing due to a few clippy lints that are irrelevant to this PR. I'll fix them and retry this PR later.

Apparently the build is failing due to a few clippy lints that are irrelevant to this PR. I'll fix them and retry this PR later.

Ported to GHA and merged in #667. Thanks!

Ported to GHA and merged in #667. Thanks!


Add "Edit" button to pipelines list

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2194
Originally created by @DouweM on 2020-07-20 20:39:35

To allow "Transform" to be edited if it was set incorrectly initially
Make it clear that when the pipeline name is changed, previous state will not be picked up

View 4 previous comments from the original issue on GitLab


Rework vote delegation handling to work with the new enable_vote_delegations setting

See OpenSlides/openslides-client#1512
As per OpenSlides/openslides-backend#1440 there will soon be a setting that allows administrators to enable/disable vote delegations for a meeting.
If this setting is set to true, voting and voting delegations should work as they did before.
If it is set to false, the voting service should behave as if no delegations were set at all. (i.e. proxies should not be allowed to vote for their principals, principals should be able to vote even if they have delegated their vote before).

with https://github.com/OpenSlides/openslides-client/pull/1683 this was introduced in the client, therefor the vote service should follow suite and also respect the new setting.

Hasn't this already been done with https://github.com/OpenSlides/openslides-vote-service/pull/149 ?

Hasn't this already been done with #149 ?

Yes. This issue is done


Creating resource with it's relationship

Hello,
I was wondering is there a way to create a resource and its relation in a single request. For example: I want to create a post with comments in single request:
{
  "data": {
    "type": "post",
    "attributes": {
      "title": "<post title>",
      "description": "<post text>"
    },
    "relationships": {
      "comments": {
        "data": [
          {
            "type": "comments",
            "attributes": {
              "text" : "First comment"
            }
          },
          {
            "type": "comments",
            "attributes": {
              "text" : "Second comment"
            }
          }
        ]
      }
    }
  }
}

The idea is not to assign post to a comment but create them. Is this valid approach at all if so how I can achieve using this package?
Thanks.

This is not supported by the JSON API spec at the moment. They are planning on adding operations (probably in version 1.2 of the spec), which will allow you to do multiple operations in a single request. I.e. your request would create the post, then create the comment linked to the newly created post - all in one request.
As this is not in the spec at the moment, this library does not support it.

See https://github.com/json-api/json-api/pull/1254 for more info.


Edit ticket epic details.

Please take a look over this, I think it's useful to be able to edit your epic details.

I will check it asap and let you know, thanks for your help


Design Meeting Notes, 6/10/2016

Automatic type acquisition -- concerns
Some background:
given a type reference, i.e. in tsconfig.json "types" : ["jquery"], or /// <reference types="jquery" />, here are the lookup locations to resolve "jquery"` reference:

location specified by --typesRoot if defined
node_modules
node_module@types

automatic type definition inclusion in compilations, include all "types" packages automatically

value of --typesRoot if specified
the first node_modules\@types walking the spine of the project

The idea here is to simplify type acquisition; all what a user needs to do is

npm install @types/jquery
cat $("id") > a.ts
tsc a.ts

The problem here is we include files that may not be intended to be part of the compilation

perf concerns about the number of files we grok
unexpected error messaged that would be hard to diagnose

what does typesRoot mean:

it is a primary location for look up, used to allow the user to override type definitions in node_modules@types

Changes:

make typesRoot an ordered list of strings
default is ./node_modules/@types
change the name to typeRoots
typeRoots become the location to automatically include definition files
to disable auto inclusion specify an empty typeRoots, or --typeRoots /dev/null
an explicit list of types in tsconfig.json will disable auto-inclusion as well

ADT -- updated
a new kind of type guard is allowed, discriminant gard,
some conditions:

of the form x.prop === expression
type of x has to be of union type
type of prop has to be of a literal type, string literal type now, but can be extended to numeric literals in the future
type if expression has to be of string type (or numeric when numeric literal types is defined)

the type of x is narrowed to be the ones that have prop with type matching that of expression
example:
type Message =
{ kind: "foo"; foo: string } |
{ kind: "bar" | "baz"l bar: number } |
{ kind: "done" };

declare const x: "foo" | "bar";

function f (m: Message) {

	if (m.kind === "foo") {
       m.foo;
    }
    else if (m.kind === x) {
       m.baz;
    }
    else {
        m.kind // "done"

    }
}

This also works for equality and in switch statements
why only string literals?
yes, string literals are closed. we know the value and the type is the same. we can not make the same assumption about object types.
e.g.
type Message = {kind: X; a: number} | {kind: Y; b: number};
const x: X;

if (m.kind === x) {
	// what about if x is also a Y
}

down-level generators support

basic level of support, basically for async`await`.
extensive level of support for the rest of generators

yelid * support
for..of support for generarots
spread support for generarots

conclusion start with the basic support first, to get async/await support in do the full support later
runtime library (tslib)
__generator is big enough, we do not want to add it in every file.
we need a new library/module for these helpers
__generator will be generated in each file that uses it as we do today. but we will have an option to write it to a different location
The new helper library should include all our helpers

__extends helper
__assign helper
__decorate helper
__param helper
__metadata helper
__awaiter helper

in addition to the generator ones:

__generator helper
Used by the down-level generator transforms to execute a state machine representation of a generator function.
Supports “yield”.
Supports “yield*”.
Supports “iterator.next(v)”.
Supports “iterator.throw(e)”.
Supports “iterator.return(v)”.
Uses magic “iterator” method as an approximation for “Symbol.iterator” in ES5.
Uses “Symbol.iterator” if available.
__keys helper
Creates an Iterator over the keys of an object.
Used to support “yield” inside of a “for..in” loop.
__values helper
If “Symbol.iterator” is available and the argument has a “Symbol.iterator” method, invokes it and returns the result.
If the argument has a magic iterator method, invokes it and returns the result.
If the argument is an array-like, creates an Iterator over the elements of the array.
Used to support “yield” inside of a “for..in” loop.
Used to support “yield” inside of a “for..of” loop.
Used to support “yield*”.
Used to support “for..of” for down-level generators.
Used to support spread for down-level generators.
__takeOne helper
Takes the next value from an iterator.
Used to support array destructuring of down-level generators.
__takeAll helper
Creates an array from the remaining values of an iterator.
Used to support array destructuring of down-level generators.
Used to support spread for down-level generators.
__spread helper
Spreads arguments using __values.
Used to support spread for down-level generators.

The goal for this run time library is to make it available in the following ways:

Published on npm.
Published to one or more CDNs.
Distributed with the compiler?

Using the library with your compilation will be supported with the following compiler options:

Moodes
Inline – Inline helpers (the current default behavior).
None – No helpers (--noEmitHelpers).
Import – (--importHelpers)Import the helpers runtime from a named module in every external module file. Uses helpers from a global namespace for scripts.
--helpersImport – Use the provided module/package name to import helpers (default “tslib”).

FYI: looks like its coming soon: https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/

I stopped by to ask a question about --noEmitHelpers and programmatic access to the helper functions' in build scripts, but you guys already have plans, I'm excited to see the runtime library (tslib) notes and #9097 in a future release! :+1:
I hope, based on the last few lines on Moodes - None, that --noEmitHelpers will continue to work the way it currently does (TS 1.8), emitting __extends(A, _super) with no __extends implementation?

Noemithelpers will continue to work, a new flag is added to import an external helper.


Auto send reply SMS on weekends and public holidays

When the helpdesk is contacted on weekends and public holidays, should send the following reply automatically:
The helpdesk is not currently available during weekends and public holidays. In an emergency please go to your health provider immediately.
https://praekelt.atlassian.net/browse/NDOH-173

@imsickofmaps Please review.

:+1:


Map Inside Infinite View (Child Events)

I need to deploy a map inside the infinite-view in Svelte. Now my problem is that the events of both the map and the infinite-view are interfering and I can't move the child map without moving the infinite view as well. Is there an option to let know the infinite-view that if I'm dragging the map, then the event belongs to the map, but if I drag outside the map the it moves the infinite view (event of drag and zoom)? My first approach was to avoid the propagation of the events on the map, but then the inifinite-view is on top of its childs.

@bmurtagh01
I think the structure is like this.
<InfiniteViewer>
    <Map />
</InfiniteViewer>

Like your approach, you could just bind stopPropagation to an event in the map. (mousedown)


Instantiate and bind at runtime.

I have the situation that I need to instantiate something at runtime. In most situations it would be nice to only use Instantiate (my prefab that uses zenject).
I've seen something like in the enemies of example 2 that comes along with zenject(Creating a factory).
Does anyone know if it has any different way or do I really have to do something like that?

You can get the DiContainer and use its inject method in the new instance of the gameObject. But you have to vendo careful with antes injector attribute being user in awake and start

Yeah, like @HDANILO says you can just add a reference to DiContainer then directly call _container.InstantiatePrefab(prefab).

A brief explanation of how to obtain a reference to DiContainer would be appreciated.

Tracked it down. Simply [Inject] DiContainer _container; works, but again you have to use that somewhere that isn't dynamically instantiated, which in my case I was able to.
Very easy if you know it, but somewhat non-obvious and puzzling to newcomers.

If you would like to make a dynamic injection first you should get the DiContainer.
How to get ProjectContext's Container ? : ProjectContext.Instance.Container
How to get SceneContext's Container ? : ProjectContext.Instance.Container.Resolve()
.GetContainerForScene(gameObject.scene);
That being said now you can make injection at start or awake by just simply  YourDiContainer.InjectGameObject(gameobject)

If you would like to make a dynamic injection first you should get the DiContainer.
How to get ProjectContext's Container ? : ProjectContext.Instance.Container
How to get SceneContext's Container ? : ProjectContext.Instance.Container.Resolve()
.GetContainerForScene(gameObject.scene);
That being said now you can make injection at start or awake by just simply  YourDiContainer.InjectGameObject(gameobject)


CupertinoDatePicker ignoring the parameter 'showDayOfWeek'

Steps to reproduce

Create a new flutter project
Paste the code above
Run project

Code:
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
          useMaterial3: true,
        ),
        home: Scaffold(
          appBar: AppBar(),
          body: Center(
              child: SizedBox(
            height: 200,
            child: CupertinoDatePicker(
              showDayOfWeek: false,
              onDateTimeChanged: (DateTime newDateTime) {},
            ),
          )),
        ));
  }
}

Expected results
As "showDayOfWeek" is false by default, we are expecting to not see the day of week in the DatePicker, right?
Actual results
Even if we declare the 'showDayOfWeek' value as false, when using the mode CupertinoDatePickerMode.dateAndTime (the default mode), the days of week still shows in the screen as you can see below:

Code sample
Code sample
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
          useMaterial3: true,
        ),
        home: Scaffold(
          appBar: AppBar(),
          body: Center(
              child: SizedBox(
            height: 200,
            child: CupertinoDatePicker(
              mode: CupertinoDatePickerMode.dateAndTime,
              onDateTimeChanged: (DateTime newDateTime) {},
            ),
          )),
        ));
  }
}

Screenshots or Video

Screenshots / Video demonstration
![Captura de tela 2024-08-16 130052](https://github.com/user-attachments/assets/bddc63d4-5659-4ef3-972b-7060010a5b73)

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [versao 10.0.22631.4037], locale pt-BR)
    • Flutter version 3.24.0 on channel stable at C:\Users\joao\Documents\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (2 weeks ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\joao\AppData\Local\Android\sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.10.35027.167
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)

[√] Connected device (4 available)
    • Pixel 7 Pro (mobile) • <IP_ADDRESS>:5555 • android-x64    • Android 13 (API 33)
    • Windows (desktop)    • windows             • windows-x64    • Microsoft Windows [versao 10.0.22631.4037]
    • Chrome (web)         • chrome              • web-javascript • Google Chrome 127.0.6533.120
    • Edge (web)           • edge                • web-javascript • Microsoft Edge 127.0.2651.98

[√] Network resources
    • All expected network resources are available.

• No issues found!

showDayOfWeek only works in CupertinoDatePickerMode.date. The default mode is CupertinoDatePickerMode.dateAndTime. There are two ways I see to address this issue:

Make it clear in the documentation that showDayOfWeek only works in CupertinoDatePickerMode.date.
Make CupertinoDatePickerMode.dateAndTime respect showDayOfWeek. But that will be breaking unless showDayOfWeek is set to true by default, which will also be breaking.

I totally agree.
Updating the docs is the fast and easy way, but I think that changing the widget is the best since it promoves a better flexibility of his use.
Also, I'm very open to contribute to the project

Also, I'm very open to contribute to the project

A good first step would be to explore if it's possible to make CupertinoDatePickerMode.dateAndTime respect showDayOfWeek. Depending on how that goes, as well as on further discussion with the team/users, we can decide if/how to move forward.

Labeling based on https://github.com/flutter/flutter/issues/153576#issuecomment-2294852955.

flutter doctor -v
[!] Flutter (Channel stable, 3.24.0, on macOS 14.6.1 23G93 darwin-arm64, locale en-US)
    • Flutter version 3.24.0 on channel stable at /Users/deanli/dev/stable
    ! The flutter binary is not on your path. Consider adding /Users/deanli/dev/stable/bin to your path.
    ! The dart binary is not on your path. Consider adding /Users/deanli/dev/stable/bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (3 weeks ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Flutter (Channel master, 3.24.0-1.0.pre.624, on macOS 14.6.1 23G93 darwin-arm64, locale en-US)
    • Flutter version 3.24.0-1.0.pre.624 on channel master at /Users/deanli/dev/master
    ! The flutter binary is not on your path. Consider adding /Users/deanli/dev/master/bin to your path.
    ! The dart binary is not on your path. Consider adding /Users/deanli/dev/master/bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 777e90a983 (3 hours ago), 2024-08-19 01:23:24 -0400
    • Engine revision c28282d39f
    • Dart version 3.6.0 (build 3.6.0-149.3.beta)
    • DevTools version 2.38.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

Maybe we can add an assert to let folks know in an error message that showDayOfWeek only works in CupertinoDatePickerMode.date?

Maybe we can add an assert to let folks know in an error message that showDayOfWeek only works in CupertinoDatePickerMode.date?

Bumping on this, @Pachebel, if you'd like to work on it, you could put in an assert and update the documentation as needed.

@Pachebel are you working on this?

@Pachebel are you working on this?

@Pachebel are you working on this?

I'm starting, just passing through a turbulent week

I saw that in _buildMediumDatePicker, inside CupertinoDatePicker class, we have the following code:
/// this widget builds the date text from the widget, something like Wed Sep 27
 final String dateText = rangeStart == DateTime(now.year, now.month, now.day)
            ? localizations.todayLabel
            : localizations.datePickerMediumDate(rangeStart);

          return itemPositioningBuilder(
            context,
            Text(dateText, style: _themeTextStyle(context)),
          );

To remove the weekDay from it, we need to change how datePickerMediumDate behave, so, I though on adding an optional field named useWeekday. That way, we don't have any breaking changes, as the default function already uses it:
  @override
  String datePickerMediumDate(DateTime date,[bool useWeekday = true]) {
    return useWeekday
        ? '${_shortWeekdays[date.weekday - DateTime.monday]} '
        '${_shortMonths[date.month - DateTime.january]} '
        '${date.day.toString().padRight(2)}'
        :
    '${_shortWeekdays[date.weekday - DateTime.monday]} '
      '${_shortMonths[date.month - DateTime.january]}';
  }

After those changes, I got an error. I forgot that datePickerMediumDate overrides from flutter_localizations package.
On my analysis, to solve this issue, we need to change a field from flutter_localizations, and maybe the PR will come out of scope, so, by now, I'm only adding one assert just as @Piinks purposed, ok team?

Actually, I think that there will be breaking changes in any way... The CupertinoDatePicker uses showDayOfWeek as false by default, but in the CupertinoDatePickerMode.dateAndTime, even if it is false, we still see the weekdays in UI, so... I'm kinda lost here right now. Maybe we have to change the value to true, but as I said, we will break the code.
I want to fix it entirely, but it will take some time and we need to make changes in flutter_localizations. Can I make those changes, team?

Actually, I think that there will be breaking changes in any way... The CupertinoDatePicker uses showDayOfWeek as false by default, but in the CupertinoDatePickerMode.dateAndTime, even if it is false, we still see the weekdays in UI, so... I'm kinda lost here right now. Maybe we have to change the value to true, but as I said, we will break the code.
I want to fix it entirely, but it will take some time and we need to make changes in flutter_localizations. Can I make those changes, team?

As mentioned already, for now, the asserts and documentation change will be enough. For further changes, feel free to open a PR for review.

Fixed by https://github.com/flutter/flutter/pull/155260


Pin gitdb2

More python 2.7 deprecation stuff...

LGTM: ready to merge?

Yep, installed fine for me.

Hi Scott Leibrand & Jon Cluck, I'm trying to install OpenAPS on my back-up Raspberry pi zero W/Explorer Hat. But during the setup I get this error: "mock requires Python '>=3.6' but the running Python is 2.7.13. Couldn't install openaps toolkit. root@raspberrypi/home/pi#". I inserted the commands: 'sudo apt-get update && sudo apt-get upgrade' and also the commands: sudo apt-get update && sudo apt-get install python3.6'. Unfortunately this didn't work either...
"root@myhostname:~# sudo apt-get update
Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Fetched 25.4 kB in 2s (9783 B/s)
Reading package lists... Done
root@myhostname:~# sudo apt-get install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3.6
E: Couldn't find any package by glob 'python3.6'
E: Couldn't find any package by regex 'python3.6'
root@myhostname:~#"
I looked at the requests #143 and #147, but I am not sure which arguments/commands I should insert/install to solve this problem. Could you please help me with this? Thank you in advance.


Adding Polytech Astana

Site: https://polytech.kz/
IT Program: https://polytech.kz/specialnost-vychislitelnaya-tekhn/

@Rehart-Kcalb First stage of verification passed, official domain is polytech.kz as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.


fix(system): allow Promise for provider navigate prop

Redid https://github.com/nextui-org/nextui/pull/4098 to get rid of all those unrelated changes
📝 Description
At least TanStack Router's router.navigate returns Promise<void> so if this PR won't break anything would be nice to support both return types ❤
⛳ Current behavior (updates)

Type '(to: any, options: any) => Promise<void>' is not assignable to type '(path: string) => void'.

The to: any, options: any is another topic I think
🚀 New behavior
No type errors
💣 Is this a breaking change (Yes/No):
Shouldn't break anything I think 🤔

Summary by CodeRabbit
Summary by CodeRabbit

New Features

Enhanced the navigate function to support asynchronous operations by allowing it to return a promise.

This change improves flexibility in navigation handling within the application.

like so?

I see, like this? 😇

That's why it's returning void | Promise<void> so it should support both right?
You mean like:
navigate(path: Href, routerOptions: RouterOptions | undefined) => void | Promise<void>?

Actually this navigate will be passing to react-aria's router. Their navigate return type is void. And the parameters got changed so I agree we should update that part only.
see https://react-spectrum.adobe.com/react-spectrum/routing.html#tanstack-router for the usage.

Closing this PR.

After revisiting this PR again, the root cause actually is not the return type but the parameters. There is no need to change the return type here since such assignment is allowed. If you are interested, you can see this playground.
For the parameter, I've made a PR in https://github.com/nextui-org/nextui/pull/4163. This should solve the reported typing issue.


import always fails on recent ubuntu

When running gui or tui
e.g. python3 util.py
This import fails to work in paymentrequest.py
try:
import paymentrequest_pb2 as pb2
Current ubuntu always fails with the message
Error: could not find paymentrequest_pb2.py. Create it with 'protoc --proto_path=./ --python_out=./ paymentrequest.proto'

even after running the protoc command successfully

After you run protoc, you should see a new file. What is that file called?

paymentrequest_pb2.py
The problem seems to be that python has changed the import rules on a number of occasions.


No sound on Android APK

Hi guys!
I've found a problem and I don't know how to solve It. Right now I'm playing an audio from a 'require'  like this:
{...}
const requireAudio = require('../../assets/audio/audio_sample.mp3');
{...}
Sound.setCategory('Ambient', true);

    this.sound = null;

    this.playSoundFromRequire = () => {
      const sound = new Sound(requireAudio, (error) => {
        if (error) {
          console.log('error', error);
          return;
        }
        if (this.state.opened) {
          sound.play(() => sound.release());
        }
      });
{...}

If I use the app with the React packager the sound is playing fine, but once I deploy the app as an APK the sound Is missing. I haven't tested It yet on iOS, but on Android I have this issue, any ideas?

Same issue perhaps ?
https://github.com/zmxv/react-native-sound/issues/175

@FacuAcosta have you been able to fix this? I can play on a simulator, but not an actual device

From the instruction of react-native-sound, it describes:
Android: Save your sound clip files under the directory android/app/src/main/res/raw. Note that files in this directory must be lowercase and underscored (e.g. my_file_name.mp3) and that subdirectories are not supported by Android.
So to build apk file, you need to firstly put the audio file to the right path, then use Sound.MAIN_BUNDLE as the path for the constructor. e.g.:
var alarmSound = new Sound('analog_watch_alarm.mp3', Sound.MAIN_BUNDLE, (error) => {})

same issue，who know why

@FacuAcosta any solution?

Hey @zk2401 , so in the end my project had to use online data and it's working fine, I wasn't able to find a solution for local data.

Have you tried it without using require()?  This is working fine for us (wrapping in a Promise):
const soundPromise: Promise<Sound> =
  new Promise<Sound>((resolve, reject) => {
    const sound = new Sound(
      audioFileName,
      Sound.MAIN_BUNDLE,
      (error: Error) => {
        if (error) {
          reject(error);
        }
        sound.setNumberOfLoops(-1); // indefinite looping, or whatever you need
        resolve(sound);
      },
    );
    return;
  });

Also, have you seen this thread?
https://github.com/zmxv/react-native-sound/issues/249

I also stucked with this issue for a long time. I want to play a sound on Android app but it failed without errors, meanwhile everything is OK on iOS app. So after many times trying without success, I noticed about this on npm page:

To minimize playback delay, you may want to preload a sound file without calling play() (e.g. var s = new Sound(...);) during app initialization. This also helps avoid a race condition where play() may be called before loading of the sound is complete, which results in no sound but no error because loading is still being processed.

Then I try to follow this guide then BUM! it works on Android like a charm.
So what I have done is below:

create a preLoad function in my SoundManager

static preLoad = () => {
        console.log("preload sound message");
        this.sound = new Sound(YOUR_SOUND_FILENAME, Sound.MAIN_BUNDLE, (error) => {
            if (error) {
                console.log('failed to load the sound', error);
            }else{
                console.log('duration in seconds: ' + sound.getDuration() + ' number of channels: ' + sound.getNumberOfChannels());
            }
        })
    }

playSound function just use preloaded sound resource to play
static playMySound = () => {
        console.log("play notification sound");
        this.sound.play((success) => {
                    if (success) {
                        console.log('successfully finished playing');
                    } else {
                        console.log('playback failed due to audio decoding errors');
                        sound.reset();
                    }
                })
	}

call preLoad on App / componentWillMount, e.g at the beginning of app execution

componentWillMount(){
        // YOUR OTHER LOGICS
        SoundManager.preLoad();
    }

play sound in your necessary place as usual
SoundManager.playSound();

so for me it was a path issue:
    if (Platform.OS === 'ios'){
      // I have/had a folder for all my files for the iOS app but this does not work for android
      this.path = "sounds/"
    }else{
      // android: drop files in ./android/app/src/main/res/raw
      // all files must be lower case and with underscores "_"
      this.path = ""
    }

   new Sound(this.path + YOUR_FILE_NAME, Sound.MAIN_BUNDLE)


Add Dormant Microsoft Defender

Purpose described in "About Dormant Microsoft Defender" section of "README.md"

thanks for the feedback!
I did consider that someone could remove the SecHealthUI package and at the same time choose the DormantDefender option.
For my level of coding skills, I could see putting a pause in the script and add a warning that "You've chosen both. What do you really want to do?"
I decided to just leave it and let the user choose both. At a code-level there isn't a conflict since SecHealthUI package removal would be the dominant outcome.
I can see that the user might be surprised to discover that Defender is not just dormant, but actually unrecoverable (gone).
My first reaction to that is: "Too bad! RTFM!" But maybe that is harsh?
In defense of the "Too bad! RTFM!" solution. The user isn't going to get much benefit choosing DormantDefender TRUE without having read the ReadMe section and downloaded the online re-activation and Toggle scripts. In my mind, the README.md section makes it clear that choosing DormantDefender and also removing the SecHealthUI package is pointless.
I still prefer your idea of integrating the less extreme registry and service changes performed by ToggleDefender and then including ToggleDefender in the O-O package. Your integration idea also has to figure out how to prevent a user from removing the SecHealthUI package.
'Src/Offline-Resources.psm1'
Please ignore that file change. There is no need for a folder.
'en-US/Optimize-Offline-help.xml'
I'll correct typo to and resubmit

thanks for the feedback! I did consider that someone could remove the SecHealthUI package and at the same time choose the DormantDefender option. For my level of coding skills, I could see putting a pause in the script and add a warning that "You've chosen both. What do you really want to do?" I decided to just leave it and let the user choose both. At a code-level there isn't a conflict since SecHealthUI package removal would be the dominant outcome. I can see that the user might be surprised to discover that Defender is not just dormant, but actually unrecoverable (gone). My first reaction to that is: "Too bad! RTFM!" But maybe that is harsh?
In defense of the "Too bad! RTFM!" solution. The user isn't going to get much benefit choosing DormantDefender TRUE without having read the ReadMe section and downloaded the online re-activation and Toggle scripts. In my mind, the README.md section makes it clear that choosing DormantDefender and also removing the SecHealthUI package is pointless.
I still prefer your idea of integrating the less extreme registry and service changes performed by ToggleDefender and then including ToggleDefender in the O-O package. Your integration idea also has to figure out how to prevent a user from removing the SecHealthUI package.
'Src/Offline-Resources.psm1' Please ignore that file change. There is no need for a folder. 'en-US/Optimize-Offline-help.xml' I'll correct typo to and resubmit

Ok perfect let's leave it to the user then, no need to put extra logic. Just remove the extra path in the resources. I will integrate your PR and then add the Toggle- Defender as a called subscript of set-additional.

Ok perfect let's leave it to the user then, no need to put extra logic. Just remove the extra path in the resources. I will integrate your PR and then add the Toggle- Defender as a called subscript of set-additional.
Thanks!
I cleaned up the formatting and added a "Note" paragraph the Dormant Microsoft Defender section of the README.md that, hopefully, makes it clear what happens if both control methods are applied.
I'll remove the extra path in the resources and commit that change.
Thanks for all the work you do to keep this project alive!

Mate i think you have shaved all the bugs ;)

No worries, mate!
This was my first attempt at making a parameter. I picked something easy and hopefully useful. Thank you for your help and advice and for all the effort you make to continually advance this project!


ValueError: neg_sampling [{'uniform': 1}] should be None when the loss_type is CE.

当我想要使用TiSASRec时，出现了该问题，请问应该如何解决呢？

I had the same problem. In the config file you should add the line:
neg_sampling: ~
You can find the file for TiSASRec here: https://github.com/RUCAIBox/RecBole-TRM/blob/main/recbole/properties/model/TiSASRec.yaml
A good advice is to learn how config files are used in RecBole, because depending on the dataset and the task you will need to change it often.


docs(core): Update docs format + payment url scheme reference

Addressed:

Giving full payment URL scheme and definition
Reusing table to explain URL scheme
Note on confirmation for finding transaction signatures
Fixing amountInLamports retrieval to match full source

The previous iteration of the doc used the tabular format. It was stripped out in favour of having a typedoc that we'll link to for the sake of brevity of the readme.
Thoughts @jordansexton

#25 included the spec. I think some of these edits make sense but we should DRY things out, wdyt?

@jordansexton I think it makes more sense to link the spec and remove the tables altogether. Spec is much better covering what each parameter does. I'll update


Linter crashes on list concatenations using @

So I came back to a project I had let sit for a few weeks. Sadly, ionide was fatally broken. No codelens, tooltip, completion, ect. The error logs always look like below, with nothing really before the inital error.
[23:26:45 ERROR] RES (277) <- {lint} ERROR in 31 ms: Error: socket hang up Data=undefined
[23:26:45 DEBUG] REQ (278) -> {signatureData}, File = "~/Repro.fs"
Data={"FileName":"/home/zach/cmp/NetCoreComp/Repro.fs","Line":3,"Column":5,"Filter":""}
[23:26:45 DEBUG] REQ (279) -> {signatureData}, File = "~/Repro.fs"
Data={"FileName":"/home/zach/cmp/NetCoreComp/Repro.fs","Line":4,"Column":5,"Filter":""}
[23:26:45 ERROR] RES (278) <- {signatureData} ERROR in 2 ms: Error: connect ECONNREFUSED <IP_ADDRESS>:8256 Data=undefined
[23:26:45 ERROR] RES (279) <- {signatureData} ERROR in 3 ms: Error: connect ECONNREFUSED <IP_ADDRESS>:8256 Data=undefined
[23:26:46 DEBUG] REQ (280) -> {tooltip}, File = "~/Repro.fs"
Data={"FileName":"/home/zach/cmp/NetCoreComp/Repro.fs","Line":1,"Column":11,"Filter":""}
[23:26:46 ERROR] RES (280) <- {tooltip} ERROR in 2 ms: Error: connect ECONNREFUSED <IP_ADDRESS>:8256 Data=undefined
[23:26:46 DEBUG] REQ (281) -> {tooltip}, File = "~/Repro.fs"
Data={"FileName":"/home/zach/cmp/NetCoreComp/Repro.fs","Line":1,"Column":12,"Filter":""}
[23:26:46 ERROR] RES (281) <- {tooltip} ERROR in 1 ms: Error: connect ECONNREFUSED <IP_ADDRESS>:8256 Data=undefined
[23:26:48 DEBUG] REQ (282) -> {tooltip}, File = "~/Repro.fs"
Data={"FileName":"/home/zach/cmp/NetCoreComp/Repro.fs","Line":1,"Column":12,"Filter":""}
[23:26:48 ERROR] RES (282) <- {tooltip} ERROR in 1 ms: Error: connect ECONNREFUSED <IP_ADDRESS>:8256 Data=undefined
[23:26:53 DEBUG] REQ (283) -> {tooltip}, File = "~/Repro.fs"
Data={"FileName":"/home/zach/cmp/NetCoreComp/Repro.fs","Line":1,"Column":1,"Filter":""}
[23:26:53 ERROR] RES (283) <- {tooltip} ERROR in 2 ms: Error: connect ECONNREFUSED <IP_ADDRESS>:8256 Data=undefined
[23:26:54 DEBUG] REQ (284) -> {tooltip}, File = "~/Repro.fs"
Data={"FileName":"/home/zach/cmp/NetCoreComp/Repro.fs","Line":1,"Column":1,"Filter":""}
[23:26:54 ERROR] RES (284) <- {tooltip} ERROR in 2 ms: Error: connect ECONNREFUSED <IP_ADDRESS>:8256 Data=undefined

I then noticed that as long as I never loaded up certain files, everything worked fine. Then, once I loaded those files, it broke the backend, and I had to restart VS Code. Some good old fashioned binary search with comment blocks on the affected files uncovered a pattern. The @ operator was the culprit, but only when I am concatenating a list variable to a list literal. That is myList @ [1;2;3] was fatal, but myList @ otherList and [1;2;3] @ otherList are fine.
Should be easy to repro with the simple module
module Repro

let a = [1;2;3;]
let b = a @ [2;3;4]

Then mouse over b. It should crash. I've got nothing really special going on in my fsproj file, but I can share it all if you are having trouble reproducing.
For completeness, the failure occurs running ionide 2.34.4, VSCode version 1.13 and 1.15 (I upgraded vscode thinking it might fix the problem during debugging). The only VSCode non-default settings I have set are DEBUG for the F# Output Window (turned on during debugging), some vim stuff, and some font stuff. I'm running Ubuntu 16.04. Hopefully this is enough to repro. Please let me know if there's something else you need.
Good news is this isn't really blocking because I don't have that much code, and I can go in and replace the bad lines with List.append. But it's kinda annoying. Also I'm super curious what is failing.

cannot repro on windows, same ionide version
[12:56:53 DEBUG] REQ (014) -> {lint}, File = "~\prova.fsx"
Data={"FileName":"e:\\temp\\nrepc\\prova.fsx"}
[12:56:53 DEBUG] RES (014) <- {lint} in 10 ms: Kind={"lint"}
Data=[]

@	zstone1 can you try using an .fsx file instead of .fs? just to check the project parsing is ok.
What mono version are you using? or is .net core sdk?

It looks like (from other similar issues) that it's mono only problem.

Still broken in an .fsx file. The following is fatal:
let x = [1];;
let y = x @ [2;3];;

As before, the first line works fine, but by the time I finish writing the second line it crashes. It gives the same {lint} ERROR.
mono --version tells me <IP_ADDRESS>, and dotnet --version tells me 1.0.4

thx @zstone1 for repro. i'll try locally.
Also now https://github.com/fsharp/FsAutoComplete/ master is on par with ionide's 2.34.4, and has all mono in version in ci.
let's try there with this minimal repro too

Can you turn off linter in the settings and check if it is still failing?

Turning the linter off does indeed fix the crash. So that's pretty conclusive.

Closing, moved to https://github.com/fsharp/FsAutoComplete/issues/205


python312Packages.kombu: 5.3.7 -> 5.4.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.kombu is: Messaging library for Python
meta.homepage for python312Packages.kombu is: https://github.com/celery/kombu
meta.changelog for python312Packages.kombu is: https://github.com/celery/kombu/blob/v5.4.0/Changelog.rst
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 5.4.0 with grep in /nix/store/042dn91kxv7fsqwv7gc6bwjslrjvrvqh-python3.12-kombu-5.4.0
found 5.4.0 in filename of file in /nix/store/042dn91kxv7fsqwv7gc6bwjslrjvrvqh-python3.12-kombu-5.4.0

Rebuild report (if merged into master) (click to expand)

54 total rebuild path(s)

54 package rebuild(s)

First fifty rebuilds by attrpath

authentik
baserow
dvc
dvc-with-remotes
paperless-ngx
pretalx
pretix
python311Packages.celery
python311Packages.celery-redbeat
python311Packages.celery-singleton
python311Packages.django-celery-beat
python311Packages.django-celery-email
python311Packages.django-celery-results
python311Packages.django-google-analytics-app
python311Packages.django-health-check
python311Packages.django-raster
python311Packages.djmail
python311Packages.dvc
python311Packages.dvc-gdrive
python311Packages.dvc-hdfs
python311Packages.dvc-task
python311Packages.dvclive
python311Packages.flower
python311Packages.kombu
python311Packages.nameko
python312Packages.celery
python312Packages.celery-redbeat
python312Packages.celery-singleton
python312Packages.django-celery-beat
python312Packages.django-celery-email
python312Packages.django-celery-results
python312Packages.django-google-analytics-app
python312Packages.django-health-check
python312Packages.django-raster
python312Packages.djmail
python312Packages.dvc
python312Packages.dvc-gdrive
python312Packages.dvc-hdfs
python312Packages.dvc-task
python312Packages.dvclive
python312Packages.flower
python312Packages.kombu
python312Packages.nameko
sourcehut.buildsrht
sourcehut.coresrht
sourcehut.gitsrht
sourcehut.hgsrht
sourcehut.hubsrht
sourcehut.listssrht

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/042dn91kxv7fsqwv7gc6bwjslrjvrvqh-python3.12-kombu-5.4.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python312Packages.kombu https://github.com/r-ryantm/nixpkgs/archive/7501c3212246f1db819068fe357ea84b45893459.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/7501c3212246f1db819068fe357ea84b45893459#python312Packages.kombu

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/042dn91kxv7fsqwv7gc6bwjslrjvrvqh-python3.12-kombu-5.4.0
ls -la /nix/store/042dn91kxv7fsqwv7gc6bwjslrjvrvqh-python3.12-kombu-5.4.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

73 packages failed to build:

authentik
dvc (python312Packages.dvc)
dvc-with-remotes
dvc-with-remotes.dist
dvc.dist (python312Packages.dvc.dist)
paperless-ngx
pretalx
pretalx.dist
pretalx.static
pretix
pretix.dist
python311Packages.celery
python311Packages.celery-redbeat
python311Packages.celery-redbeat.dist
python311Packages.celery-singleton
python311Packages.celery-singleton.dist
python311Packages.celery.dist
python311Packages.django-celery-beat
python311Packages.django-celery-beat.dist
python311Packages.django-celery-email
python311Packages.django-celery-email.dist
python311Packages.django-celery-results
python311Packages.django-celery-results.dist
python311Packages.django-google-analytics-app
python311Packages.django-google-analytics-app.dist
python311Packages.django-health-check
python311Packages.django-health-check.dist
python311Packages.django-raster
python311Packages.django-raster.dist
python311Packages.djmail
python311Packages.djmail.dist
python311Packages.dvc
python311Packages.dvc-gdrive
python311Packages.dvc-gdrive.dist
python311Packages.dvc-hdfs
python311Packages.dvc-hdfs.dist
python311Packages.dvc-task
python311Packages.dvc-task.dist
python311Packages.dvc.dist
python311Packages.dvclive
python311Packages.dvclive.dist
python311Packages.flower
python311Packages.flower.dist
python312Packages.celery
python312Packages.celery-redbeat
python312Packages.celery-redbeat.dist
python312Packages.celery-singleton
python312Packages.celery-singleton.dist
python312Packages.celery.dist
python312Packages.django-celery-beat
python312Packages.django-celery-beat.dist
python312Packages.django-celery-email
python312Packages.django-celery-email.dist
python312Packages.django-celery-results
python312Packages.django-celery-results.dist
python312Packages.django-google-analytics-app
python312Packages.django-google-analytics-app.dist
python312Packages.django-health-check
python312Packages.django-health-check.dist
python312Packages.django-raster
python312Packages.django-raster.dist
python312Packages.djmail
python312Packages.djmail.dist
python312Packages.dvc-gdrive
python312Packages.dvc-gdrive.dist
python312Packages.dvc-hdfs
python312Packages.dvc-hdfs.dist
python312Packages.dvc-task
python312Packages.dvc-task.dist
python312Packages.dvclive
python312Packages.dvclive.dist
python312Packages.flower
python312Packages.flower.dist

28 packages built:

python311Packages.kombu
python311Packages.kombu.dist
python311Packages.nameko
python311Packages.nameko.dist
python312Packages.kombu
python312Packages.kombu.dist
python312Packages.nameko
python312Packages.nameko.dist
sourcehut.buildsrht
sourcehut.buildsrht.dist
sourcehut.coresrht
sourcehut.coresrht.dist
sourcehut.gitsrht
sourcehut.gitsrht.dist
sourcehut.hgsrht
sourcehut.hgsrht.dist
sourcehut.hubsrht
sourcehut.hubsrht.dist
sourcehut.listssrht
sourcehut.listssrht.dist
sourcehut.mansrht
sourcehut.mansrht.dist
sourcehut.metasrht
sourcehut.metasrht.dist
sourcehut.pastesrht
sourcehut.pastesrht.dist
sourcehut.todosrht
sourcehut.todosrht.dist

Maintainer pings
cc @fabaff for testing.


Cannot use semantic search bindings in .NET 8

When I change my standard sample demo project to target .NET 8 in the csproj, the project builds clean, but then I get this runtime error when I test a post to IngestData (uses Embeddings binding):
This branch exactly repros it as you use test.http and post to the local IngestData function:.
Functions:

        IngestData: [POST] http://localhost:7071/api/IngestData

        PromptData: [POST] http://localhost:7071/api/PromptData

        WhoIs:  http://localhost:7071/api/whois/{name}

        OpenAI::ChatBotEntity: entityTrigger

For detailed output, run func with --verbose flag.
[2024-02-15T18:38:50.834Z] Host lock lease acquired by instance ID '000000000000000000000000731A3487'.
[2024-02-15T18:38:52.563Z] Executing 'IngestData' (Reason='This function was programmatically called via the host APIs.', Id=e43173fd-3292-44f4-b59c-c519224a4bd8)
[2024-02-15T18:38:52.586Z] Executed 'IngestData' (Failed, Id=e43173fd-3292-44f4-b59c-c519224a4bd8, Duration=39ms)
[2024-02-15T18:38:52.586Z] System.Private.CoreLib: Exception while executing function: IngestData. Microsoft.Azure.WebJobs.Host: One or more errors occurred. (Exception binding parameter 'req') (Exception binding parameter 'embeddings'). Exception binding parameter 'req'. System.Private.CoreLib: Could not load type 'System.Runtime.CompilerServices.NullableContextAttribute' from assembly 'System.Runtime, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

It is throwing on this line of code that uses the EmbeddingsRequest:embeddings record object, and note I have two fields, with RawText being null here:
        public record EmbeddingsRequest(string RawText, string FilePath);

//...
            await output.AddAsync(new SearchableDocument(title, embeddings));

If i changed EmbeddingsRequest definition to match the sample having only a single field in the record, I go back to getting Build errors all the time (maybe this was bound to happen and I forced a rebuild?):
        public record EmbeddingsRequest(string FilePath);
        public record SemanticSearchRequest(string Prompt);

        [FunctionName("IngestData")]
        public static async Task<IActionResult> IngestData(
            [HttpTrigger(AuthorizationLevel.Function, "post")] EmbeddingsRequest req,
            [Embeddings("{FilePath}", inputType: InputType.FilePath,
            Model = "%AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT%")] EmbeddingsContext embeddings,
            [SemanticSearch("KustoConnectionString", "Documents")] IAsyncCollector<SearchableDocument> output)
        {
            string title = Path.GetFileNameWithoutExtension(req.FilePath);
            await output.AddAsync(new SearchableDocument(title, embeddings));
            return new OkObjectResult(new { status = "success", title, chunks = embeddings.Count });
        }

[2024-02-15T18:34:32.589Z] Found /Users/paulyuk/src/paulyuk/functions/ai/ai-bindings/ai-bindings.csproj. Using for user secrets file configuration.
[2024-02-15T18:34:33.488Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[2024-02-15T18:34:33.507Z] The 'IngestData' function is in error: The binding type(s) 'embeddings, semanticSearch' are not registered. Please ensure the type is correct and the binding extension is installed.
[2024-02-15T18:34:33.507Z] The 'PromptData' function is in error: The binding type(s) 'semanticSearch' are not registered. Please ensure the type is correct and the binding extension is installed.
[2024-02-15T18:34:33.507Z] The 'WhoIs' function is in error: The binding type(s) 'textCompletion' are not registered. Please ensure the type is correct and the binding extension is installed.
For detailed output, run func with --verbose flag.

The net of this (no pun intended :) ) is I cannot use .NET 8, or figure out a workaround.

Your sample project targets .NET in-proc, so this is mostly expected. For the benefit of anyone else who lands here, per the .NET 8 announcement, Azure Functions doesn't yet support .NET 8 using the in-proc model.

Support for .NET 8 does not currently extend to applications using the in-process model. See the August 2023 roadmap update for more information regarding support timelines.

In the meantime, we need to create a .NET isolated version of these bindings so that we can support .NET 8 users on the .NET Isolated worker.
/cc @aishwaryabh

Oh thank you @cgillum - you're right I had not connected the dots.  Is there any possibility of getting a better error message for this case, maybe pointing to the article/roadmap?
When Open.AI.Kusto is ready in isolated, I'll try .NET 8 again.
Once we have taken action on any doc clarifications or error messages please feel free to close this.

As an extension vendor, I'm not sure if there's much we can do to control the error experience, but I wonder if @fabiocav or @mattchenderson have thoughts on how the "graceful error message" can be solved in general for customers that try to run in-process functions on .NET 8?

@paulyuk , @cgillum - We have added samples for dotnet-isolated using dotnet 8.
PR #50
Are we good to close this issue now?


Promisify

Given that the Mineflayer codebase is now using Promises instead of callbacks, it would make sense for all official Mineflayer plugins to also move in that direction.

Sure. As far as the api is concerned, there will be very little change as most of it is sync anyway. But it makes sense to use the promise versions of the calls to mineflayer's api.

Yeah, it's mostly just a matter of consistency more than anything. It's 95% of the way there already.

done, pls close


1.4 Support

Use the wonders of comparing versions to introduce 1.4-specific code decompilation, since tML 1.4 uses .NET 5 instead of .NET Framework with C# v7.3.

Resolved in the 1.0.0 update with the Beta option and beta parameter.


feat: dynamic client registration

WIP

:white_check_mark: Build TheIdServer 1.0.0-dynamic-client1-0092 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/50089da24a by @aguacongas)

:white_check_mark: Build TheIdServer 1.0.0-dynamic-client1-0093 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/227fcb7256 by @aguacongas)


Raise PBKDF2 iterations

At the time cryptography was written (2,5 years ago) 10,000 iterations was the recommended setting. Nowadays people recommend settings up to 10x the size of that.
As a reminder what iterations does: It wastes time and computation power, basically. The most common hashes are optimised for speed, but a fast algorithm is also more quickly brute-forceable. PBKDF2 implements an iterations count to basically arbitrarily raise the computational cost and slow down the algorithm. So while hardware gets faster, you may to make the algorithm slower to keep the computation time constant.
I recommend setting iterations to 90,000 and in two-three years time to 800,000.

Sounds fine to me. What impact would this have over existing passwords? Would they need to be migrated from the existing 10,000 iteration hash?

Yup. It will happen automatically though (next login will validate against old hash and create a new one)

Just curious, assuming I have a site on the same server hardware as 2,5 years ago, would this noticeably slow down things for a single user (login etc.)?

Yes, it will slow things down. If it will be "noticeable" depends: How fast was the validation before? It will now be 9x slower. This could mean

0.1s -> 0.9s, not really noticeable
1s -> 9s, noticeable

Thinking about this it might be interesting to gather some metrics before changing the value, actually. You may run this gist on your server to see the speeds.
On my desktop machine the first hash returns in 0.03 seconds, the second one in 0.3 seconds (not noticeable I would say).

Old passwords will still validate fine.

Migration will happen automatically: next login will validate against old hash and create a new one.

I tested it, and it works for both (Symphony and Members) only if you log out before the iterations value gets changed. However, if you are logged in, things will break (and I had to use the password reset mechanism in Symphony and Members).

Wow, that's not what it was designed to work like...

OK, so we need a (manual or automatic) migration mechanism like this:

delete all sessions from the database
then immediately change the iterations value

Right?

Or did you mean that it's a bug?

It's a bug.

OK, so it's broken.

my Symphony author worked fine until I logged out — then I was unable to login.
Members logged me out (I think on the second request after the change), and I was unable to login.

What exactly did you change? The const in that file or some data in the database?

I only changed the constant.

Regarding performance: I tried the gist on a small vServer, and I get:

0.077142953872681
0.7177939414978

Locally, on a Macbook Air:

0.075292110443115
0.59065985679626

I can confirm @michael-e's findings. While I'm logged in, the session appears to be updated, but logging out and then trying to log in again fails. I'm currently debugging the PBKDF2 compare function, which seems to creating a different hash to that which is stored in the database.

I thought it might be this line not referring to the local $keylength variable, but changing this doesn't seem to do the trick. It always seems to the actual hash generated is different, even though the parameters look to be consistent.

I cannot reproduce what you're reporting:
$input = "PBKDF2v1|10000|efe80e027fde361f699c|jG50givg2Vs4NxiPFzs3F463B+FMEuHlNW4qSoI2b9o62VAVxrhS5A==";
var_dump(PBKDF2::compare("foo", $input));
var_dump(PBKDF2::requiresMigration($input));

yields, for iterations = 10k
bool(true)
bool(false)

and for iterations = 100k
bool(true)
bool(true)

Yep, that's correct. Until you logout and try to log back in.

Great thing @nils-werner, I wanted to do the exact same thing.

I would also add that waiting 1 second for a password generation is ok IMO. Time and memory hard problems for security is way better than space complexity.

I agree that up to 1s is no prob.
Now we just have to find out why migration doesn't work for users who stay logged in.

Totally

The problem is that migration needs to happen only when the user inputs its clear text password.
I can confirm that changing SALT_LENGTH, KEY_LENGTH and ITERATIONS results in a migration. But changing  ALGORITHM does nothing.


Enable ISM Setup for SPI-Days and History-Days

Description
Currently, we accept a command-line flag for the number of days to retain the SPI data, but we don't actually do anything with it besides calculate the capacity for the OpenSearch Domain.  We need to add a mechanism so that Index State Management is configured for the OpenSearch Domain (e.g. actually use the flag for its intended purpose).  We also need to add a similar flag for the user-history data and set up ISM for its indices as well.
The existing code for this can be seen here [1].
[1] https://github.com/arkime/arkime/blob/b5998c36d6545e5befc0de72d973d3b63448f30a/db/db.pl#L7223
Acceptance Criteria

Command-line option to set the user-history retention (--history-days) with a default value of 365 days.  It should work like the --spi-days flag and have the same expectations on its behavior.
ISM is set up for the Arkime indices after the db.pl init script command is invoked

Translated the perl commands used to set up the ISM stuff for the History indicies into curl commands so I could get example responses for testing; ran them on a Capture Node against the domain.
OPENSEARCH_PASS=$(aws secretsmanager get-secret-value --secret-id $OPENSEARCH_SECRET_ARN --output text --query SecretString)
curl -u "admin:${OPENSEARCH_PASS}" -X GET "https://${OPENSEARCH_ENDPOINT}:443/_plugins/_ism/policies/history"

HISTORY_DAYS=365
H_POLICY="{\"policy\": { \"description\" : \"Delete Arkime history indices\", \"default_state\" : \"warm\", \"states\" : [ { \"name\" : \"warm\", \"transitions\" : [ { \"state_name\" : \"delete\", \"conditions\" : { \"min_index_age\" : \"${HISTORY_DAYS}d\" } } ] }, { \"name\" : \"delete\", \"actions\" : [ { \"delete\" : { } } ] } ], \"ism_template\" : [ { \"index_patterns\" : [ \"history_v*\" ], \"priority\" : 95 } ] }}"

curl -u "admin:${OPENSEARCH_PASS}" -X PUT -H 'Content-Type: application/json' -d "$H_POLICY" "https://${OPENSEARCH_ENDPOINT}:443/_plugins/_ism/policies/history"

POLICY_ID_JSON="{\"policy_id\": \"history\"}"
curl -u "admin:${OPENSEARCH_PASS}" -X POST -H 'Content-Type: application/json' -d "$POLICY_ID_JSON" "https://${OPENSEARCH_ENDPOINT}:443/_plugins/_ism/add/history_v*"

----------------------------------------------------------------------------------------

PREV_POLICY=$(curl -u "admin:${OPENSEARCH_PASS}" -X GET "https://${OPENSEARCH_ENDPOINT}:443/_plugins/_ism/policies/history")

SEQ_NO=$(echo "$PREV_POLICY" | jq -r '._seq_no')
PRIMARY_TERM=$(echo "$PREV_POLICY" | jq -r '._primary_term')

curl -u "admin:${OPENSEARCH_PASS}" -X PUT -H 'Content-Type: application/json' -d "$H_POLICY" "https://${OPENSEARCH_ENDPOINT}:443/_plugins/_ism/policies/history?if_seq_no=${SEQ_NO}&if_primary_term=${PRIMARY_TERM}"

curl -u "admin:${OPENSEARCH_PASS}" -X POST -H 'Content-Type: application/json' -d "$POLICY_ID_JSON" "https://${OPENSEARCH_ENDPOINT}:443/_plugins/_ism/change_policy/$history_v*"
curl -u "admin:${OPENSEARCH_PASS}" -X POST -H 'Content-Type: application/json' -d "$POLICY_ID_JSON" "https://${OPENSEARCH_ENDPOINT}:443/_plugins/_ism/add/${PREFIX}history_v*"

OK, partial update [1].  I have all the pieces in place to configure the user-history index's ISM policy with an event-triggered Lambda, including unit tests, and it should work - but it turns out that the python requests library is no longer available inside Lambda container and I need to figure out how to bundle it/export it with my code [2][3].  Pushed a branch out because I'll be on vacation for the next 6 days or so.
[1] https://github.com/arkime/aws-aio/compare/main...history-days
[2] https://aws.amazon.com/blogs/compute/upcoming-changes-to-the-python-sdk-in-aws-lambda/
[3] https://docs.aws.amazon.com/lambda/latest/dg/python-package.html

It looks like the CDK has some more sophisticated mechanisms for bundling Lambda code assets [1].  We should be able to use this to pull in our specific dependencies rather than needing to do pre-CDK preparation work.
[1] https://github.com/aws/aws-cdk/tree/main/packages/aws-cdk-lib/aws-lambda#bundling-asset-code

Actually - there's separate docs specifically for Python lambda bundling [1].
[1] https://docs.aws.amazon.com/cdk/api/v1/docs/aws-lambda-python-readme.html

PR Merged; AC met.  Resolving.


Change packager project root path so RNTester can start

A quick fix to ensure RNTest works. This PR changes the process root for where packager is run, resulting in the right cwd directory path when RN launches RNTester.

Thank you for the fix!

I get the following error when trying to run the RNTester app:
Command run-ios unrecognized.
I've already ran npm install and get the same error.  Is my issue related to this one?

@MiLeung Is your issue after you apply the patch in this PR?

@trueadm yes

I will check it out

Did run-ios ever work for RNTester? Following the README works for me.

No.  Tried opening RNTester/RNTester.xcodeproj and tried running the project on a device and simulator, but got the following errors:
Unpacking /Users/MichaelLeung/.rncache/glog-0.3.4.tar.gz...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/Users/MichaelLeung/Desktop/react-native/third-party/glog-0.3.4/missing: Unknown `--is-lightweight' option
Try `/Users/MichaelLeung/Desktop/react-native/third-party/glog-0.3.4/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for arm-apple-darwin-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for arm-apple-darwin-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/MichaelLeung/Desktop/react-native/third-party/glog-0.3.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Command /bin/sh failed with exit code 77

and
'config.h' file not found


Make omniscale api key configurable, fixes #1245

Cool, thanks!
Would you mind to send us a signed CLA or sign your commit and add yourself to the contributors file with "agrees to the project's CLA"?

Hmmh, this is somehow not mergable. Would you try to recreate the main.js from current master? Also I can see omniscale supports retina and https - nice, thanks for fixing this!

Thanks again!


turtlebot3_simulation.launch failed possibly related to ${GAZEBO_LIBRARIES}

➜  turtlebot3_simulations git:(master) roslaunch turtlebot3_gazebo turtlebot3_simulation.launch
... logging to /home/pxu/.ros/log/9ebc8ea2-e3d6-11e9-95f9-d89ef348ac6b/roslaunch-sv870169lx-3667.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://sv870169lx:44192/

SUMMARY
========

PARAMETERS
 * /cmd_vel_topic_name: /cmd_vel
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /
    turtlebot3_drive (turtlebot3_gazebo/turtlebot3_drive)

ROS_MASTER_URI=http://localhost:11311

process[turtlebot3_drive-1]: started with pid [3689]
================================================================================REQUIRED process [turtlebot3_drive-1] has died!
process has died [pid 3689, exit code -11, cmd /home/pxu/projects/turtlebot3_challenge/catkin_ws/devel/lib/turtlebot3_gazebo/turtlebot3_drive __name:=turtlebot3_drive __log:=/home/pxu/.ros/log/9ebc8ea2-e3d6-11e9-95f9-d89ef348ac6b/turtlebot3_drive-1.log].
log file: /home/pxu/.ros/log/9ebc8ea2-e3d6-11e9-95f9-d89ef348ac6b/turtlebot3_drive-1*.log
Initiating shutdown!
================================================================================
[turtlebot3_drive-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

It seems that there is a problem in the following line:
target_link_libraries(turtlebot3_drive ${catkin_LIBRARIES} ${GAZEBO_LIBRARIES})

until I modify it to
target_link_libraries(turtlebot3_drive ${catkin_LIBRARIES})

Probably it is because some library missing in my system. Can you please give me some hint?

@xpharry
Can you show us your CMakeLists.txt and package.xml files in the turtlebot3_gazebo package? Also, let us know how you installed ROS Kinetic.
Regards,
Ryan

https://www.dropbox.com/s/ab5uokt4jv9tr6m/CMakeLists.txt?dl=0
https://www.dropbox.com/s/su6mfw5rbj5rt0y/package.xml?dl=0
I only changed the line in CMakeLists.txt that I mentioned in the question.
I installed ROS Kinetic as normal as
sudo apt-get install ros-kinetic-desktop-full
Gazebo version is 7.0.0 accordingly.

@xpharry
Maybe some dependencies are missing and you are having that issue. You can ask this question at the ROS forum but rather than doing that, I just recommend you reinstall the OS and ROS ref
Regards,
Ryan

As there have been no updates, I am closing this issue.


vscode: fails to start on Mac OS

Describe the bug
Visual Studio Code 1.78.2 fails to start on Mac OS when installed through Nix:

spctl doesn't like it:
$ spctl --verbose --assess --type execute /nix/store/0pwc8488074zchjf00k28dxknszifsla-vscode-1.78.2/Applications/Visual\ Studio\ Code.app
/nix/store/0pwc8488074zchjf00k28dxknszifsla-vscode-1.78.2/Applications/Visual Studio Code.app: a sealed resource is missing or invalid

Tried two different machines, one aarch64 (Studio, Ventura 13.3.1a) and one x86_64 (2019 MBP, Ventura 13.3) with the same result. Downloading VSCode 1.78.2 directly from Microsoft and running that works fine so I'm inclined to assume it's some sort of issue with the Nix package.
Steps To Reproduce
$ nix-shell -p vscode
[nix-shell:~]$ code
Killed: 9

Notify maintainers
@eadwu, @maxeaubrey, @bobby285271
Metadata
From the Mac Studio:
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.4.0, macOS 13.3.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"nixpkgs"`
 - channels(morgan): `"home-manager, nixpkgs"`
 - nixpkgs: `/Users/morgan/.nix-defexpr/channels/nixpkgs`

also gonna investigate this one myself but posting an issue in case someone already knows what's going on here

Looks like #151918 (@Enzime) is probably the culprit here. Just built vscode from a local checkout of the commit before that and it works fine (and that also packages VSCode 1.78.2).
That PR looks like it's updating the vscode package to replace a bundled utility in the application, which is definitely going to interfere with macOS code signing (presumably the system rg binary is the "missing or invalid" sealed resource here). Unfortunately I'm not up to speed on macOS code signing practices to the point of knowing what to do about it...

I'll have a look into code signing when I have a chance, for reference, if macOS ever complains about unsigned binaries like this:
You can go into System Preferences -> Privacy & Security and if you scroll down there should be a button to click Open Anyway which will make macOS remember that binary is okay
https://support.apple.com/en-au/guide/mac-help/mh40616/mac

I had a chat with some people on Matrix about this and it's unlikely we'll be able to deal with it from the package side - it's actually a "notarization" issue rather than a "signing" issue

Should be closed by #234871.


Adding onSubmit to the search form on navigation. Ability to reload t…

…he page without getting error.

Ok looks good


Authentication update

The FB auth must be updated to accommodate further progress.

@bekkblando working on this at the moment.

Thanks to @bekkblando  this is now done.


Directional light too dark / not hitting object?

I've taken the three.js OBJLoader example and converted it to a React component.
As you can see in the screenshots below, something is off with the lighting. Even after increasing the intensity to 5, the directional light looks very dark, as if only the object's edges are illuminated.
Any idea what I might be doing wrong? Does your library set any defaults that I'm not taking into account? (I have no prior experience with three.js)
Original (source):

My result (source below):

import React from 'react';
import React3 from 'react-three-renderer';
import * as THREE from 'three';
import * as OBJLoader from 'three-obj-loader';
import uvGrid from '../../src/assets/images/uv-grid.jpg';
import male from '../../src/assets/objects/male.obj';

OBJLoader(THREE);

class Example extends React.Component {

  constructor(props, context) {
    super(props, context);
    this.state = {
      objectRotation: new THREE.Euler(),
    };
    this.lightPosition = new THREE.Vector3(0, 0, 1);
    this.objectPosition = new THREE.Vector3(0, -95, 0);
    this.cameraPosition = new THREE.Vector3(0, 0, 300);
    this.loadObject();
  }

  componentWillUnmount() {
    if (this.state.object) {
      this.group.remove(this.state.object);
    }
  }

  setGroup = (ref) => {
    this.group = ref;
  }

  loadObject() {
    const manager = new THREE.LoadingManager();
    manager.onProgress = (item, loaded, total) => {
      console.log(item, loaded, total);
    };

    const onProgress = (xhr) => {
      if (xhr.lengthComputable) {
        const percentComplete = (xhr.loaded / xhr.total) * 100;
        console.log(`${Math.round(percentComplete, 2)}% downloaded`);
      }
    };

    const texture = new THREE.Texture();

    const imgLoader = new THREE.ImageLoader(manager);
    imgLoader.load(uvGrid, (image) => {
      texture.image = image;
      texture.needsUpdate = true;
    });

    const objLoader = new THREE.OBJLoader(manager);
    objLoader.load(male, (object) => {
      object.traverse((child) => {
        if (child instanceof THREE.Mesh) {
          child.material.map = texture;
        }
      });
      this.group.add(object);
      this.setState({ object });
    }, onProgress);
  }

  animate = () => {
    this.setState({
      objectRotation: new THREE.Euler(
        0, this.state.objectRotation.y + 0.05, 0,
      ),
    });
  };

  render() {
    const width = 600;
    const height = 600;

    return (
      <React3
        mainCamera="camera"
        width={width}
        height={height}
        pixelRatio={window.devicePixelRatio}
        onAnimate={this.animate}
      >
        <scene>
          <perspectiveCamera
            name="camera"
            fov={45}
            aspect={width / height}
            near={1}
            far={2000}
            position={this.cameraPosition}
          />
          <ambientLight
            color={0x101030}
          />
          <directionalLight
            color={0xffeedd}
            position={this.lightPosition}
            intensity={5}
          />
          <group
            ref={this.setGroup}
            position={this.objectPosition}
            rotation={this.state.objectRotation}
          />
        </scene>
      </React3>
    );
  }
}

export default Example;

Ah yes, this is because Three does directional light rotation in a strange way...
See https://github.com/toxicFork/react-three-renderer/issues/65#issuecomment-219002299
I think this should make it work the same as vanilla threejs:

// anywhere in the file, e.g. before the class
const origin = new THREE.Vector3(0, 0, 0);

// in the render
          <directionalLight
            // other props
            lookAt={origin}
          />

I will need to add a note to directional light properties to explain this.

I guess it's "kind of a bug" that it behaves different than Three, but I'll still find a way to fix it without having inconsisterncies in behaviour with other components... (e.g. require one of the rotation properties?)

Nice, that fixed it. Thanks a lot!

Happy to hear :)


gpu-screen-recorder requires libcuda.so.1

Describe the bug
When installing and then trying to run gpu-screen-recorder like
gpu-screen-recorder -w DP-1 -c mp4 -f 60 -o test.mkv
I get: /run/current-system/sw/bin/gpu-screen-recorder: error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory
On a AMD 7900 XTX, so no nvidia drivers or CUDA installed. When doing services.xserver.videoDrivers = [ "nvidia" ]; the library is found, but no cuda device can be initialized.
This same command worked when used with the same hardware on Arch.
I noticed that the nix file for the package does some stuff with a libcuda.so (no .1)

ping @babbaj - maybe I'm doing something wrong but I don't think I am


Add guidelines for when a DOM API belongs here vs on DefinitelyTyped

Not sure what exact standards should be used. Hopefully someone more familiar with web standards can comment.
This will affect whether we choose #176 or DefinitelyTyped/DefinitelyTyped#13045.

@zhengbli Do you know why tests are failing?

The appveyor tests basically clones the TypeScript code, replace the dom lib files and run the TypeScript test suite. Looks like the "verifyDefaultLib_dom.errors.txt" baseline has changed so the tests failed. You would need to run the TS tests locally to make sure all baseline changes are expected, then check in here and update the baselines seperately in the TS repo.

Fixing in #180


Issuse with Hardcoded Optimizer ID Mapping

Dear ExCP authors,
We are currently attempting to follow your work, but due to GPU limitations, we are using a smaller model for our reproduction. During this process, we have encountered a few issues for which we hope to get your assistance.
Specifically, we noticed that the network layer weights and optimizer ID mappings are hardcoded in the compress_pythia.py file. The ID mappings are not in a common format, which has caused confusion for us in obtaining and modifying the mapping indexes for our adjusted model.
Could you please provide guidance on how to correctly map the indexes for the modified model? Any detailed instructions or resources would be greatly appreciated.
Thank you for your help!
Best regards.

Since we want the compression code to be decoupled from the training code, we can only take this hardcoded approach for now. You can print out the parameters by calling named_parameter after the model is built. Generally, this order corresponds to the order in which the optimizer is constructed (optimizer generally calls the parameter method). If the optimizer has groupings, further processing is required.

Thank you for your prompt response. Indeed, our confusion stemmed from the grouping behavior when the transformer creates the default optimizer, which caused a mismatch between the order of network layer names returned by the named_parameter method and the optimizer ID sequence. We have resolved this issue by examining how the transformer constructs the default optimizer.
Thank you once again for your assistance!
Best regards.


[BUG] Issue with development instructions.

Line in html that is referencing the boiler plate plugin compiled file rather than the new plugins compiled file. Also was wondering if you could look into why the commandCustomCode option isn't appending any newly made methods. Would like to add a button to the window so someone can import a zip file containing a block they may have made using grapesjs on a different computer/window.
html correction is on line 8 by the way.
Thanks in advance!

Figured out how to use commandCustomCode it is working disregard that comment.
Thanks!


Webgl filters

Lots TODO:

[ ] Pass texture through filters and assign as new texture before rendering by Crafty
[ ] Make sure everything gets cleaned up on remove
[ ] Create ColorOverrideShader (for full white enemy silhouettes)
[ ] Create Desaturation shader (for automatic distance effects and sunrise)
[ ] Create Lightness shader

Ok wrote basically a parallel version of the Image component, but with an added desaturateColor effect on it to create depth in the scenery.


Initializing JS/TS language features

Issue Type: Bug
Launch VScode in windows or Mac.
load any project
wait for the project to load
Then try to do a drill down to a function
or write any line of code TSlin (install the plugin) is not giving error for any violation due to the issue that: Initializing JS/TS language features keep on running for inifinite
VS Code version: Code 1.47.3 (91899dcef7b8110878ea59626991a18c8a6a1b3e, 2020-07-23T13:08:29.692Z)
OS version: Darwin x64 19.6.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz (4 x 2500)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
4, 4, 3

Memory (System)
16.00GB (0.29GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

vscode-typescript-tslint-plugin
ms-
1.2.3

material-icon-theme
PKi
4.2.0

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

I am using version (1.47.3), are you referring to a higher version than
what i am using now?
also by disabling the extensions (TSlint)  i don't see the issue.  able to
drill down/intellisense is working fine.
let me know, how can i make sure of extension without getting the issue.
[image: image.png]
On Sat, 1 Aug 2020 at 04:07, Matt Bierner<EMAIL_ADDRESS>wrote:

Does this reproduce in the latest VS Code insiders build
https://code.visualstudio.com/insiders/ with all extensions disabled
https://github.com/microsoft/vscode/wiki/Performance-Issues#run-with-extensions-disabled
?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/103678#issuecomment-667414197,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEDGMLIWCB75M5XUWQGOXADR6NBSTANCNFSM4PPTIACA
.

Having same issues here; the Insiders build fixes it seemingly:
Version: 1.48.0-insider
Commit: 5696babbc1dce41788bae04b1a04ad35140bebfb
Date: 2020-08-03T05:41:11.473Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.7.0

@kprasadbio Please try filing an issue against whichever extension is causing this problem


fix: Authentication errors

This PR fixes the issue reported in #107 that the recent regex change introduced.
Summary of changes made:
Authentication.ts

Changed the command used in PowerShell. -ExpandProperty gets rid of the need for Format-List.
Changed stdout from removing spaces to removing newlines. This should fix the original formatting issues that were brought up in #59
Changed the port, password, and pid regex. This should match all types of auth-tokens https://regexr.com/7alur
Added __internalDebug to AuthenticationOptions to help easier debug issues with authentication. When set to true, it will print the full error into console.
Added a check to see if the League client is being run as admin and the current program is not. This only works with PowerShell, and I have not found a way to do it using cmd. This will use the newly made ClientElevatedPermsError error. If the user has awaitConnection set to true, it will still error out, but I can change this if requested.
Updated the JSDocs to mark options as optional and document the potential errors

Webhook.ts

Added JSDocs to createWebSocketDocumentation

Unfortunately, I don't have the extra time to add those right now. However, if you'd like, you can accept this PR, and if I find the time before you do, I'll open a new one with it.

No problem, thank you so much regardless! Tagged and published rc-12 now


Depend on nette/* instead of nette/nette

Ideas @fprochazka @Unlink?

:+1:
Just two things, you could set dependency on doctrine/orm instead of kdyby/doctrine in composer and also you can require EntityManagerInterface in UserStorage, but that is just nitpicking.

kdyby/doctrine is for tests only and EntityManagerInterface is since Doctrine 2.4 (would require dropping 2.3 support for no benefit).

I see, nevermind then. :)

No problem, thanks for input anyway! :)


modal does not work

hello.
Love the library and the way it looks easy.
The only thing we are noticing is presentation: 'modal' does open a page but a normal screen not in modal.
[Routes.New]: {       urlPattern: 'posts/new',       title: 'A Modal ',       presentation: 'modal',     },
Should we configure it differently for it to work?
Thanks again

@mironiasty This is an issue for me as well. What’s your ETA for the next release?

This should no longer be an issue; please check out new releases and the examples/turbo-demo-expo-example app. The modal presentation is used there and it works properly.