Cookiecutter should provide option to open VS project after file creation

Right now after successful creation, we only allow opening the output folder in solution explorer folder view.  We should add a second link to open a generated project.
This gives flexibility to the template author to use projects if they feel it gives a better experience.
We can add custom metadata to cookiecutter.json that specifies the relative path to the project file. This way we DON'T have to search for project files based on known file extensions.
If the template is invoked with Add From Cookiecutter to add to an existing project, it probably makes more sense to not show the option to open project.

Now possible with the generic VS command invocation feature done in https://github.com/Microsoft/PTVS/pull/2014


include expected string errors in parser

Make sure that there is always an error message by including the expectation errors.  These will probably have to be customized.
Example program with error message problem:
data {
  vector x[3];
}
parameters {
  vector[3] y;
}
model {
  y ~ normal(0,1);
}

The current (before 2.6) dev branch produces this from CmdStan:
SYNTAX ERROR, MESSAGE(S) FROM PARSER:

ERROR at line 2
  1:    data {
  2:      vector x[3];
                 ^
  3:    }

It should indicate that a [ was expected by the parser.

From Jiqiang in #1126
It looks like that there are duplicate error message below.
$ more test.stan
parameters {
  real y;
  vector[3] x;
}
transformed parameters {
  vector<lower = 0, upper = 1>[3] p;
  p <- inv_logit(x);
}
model {
  y ~ normal(0, 1);
}

$ stanc --version
stanc version 2.5.0
$ stanc test.stan
Model name=test_model
Input file=test.stan
Output file=test_model.cpp

SYNTAX ERROR, MESSAGE(S) FROM PARSER:
no matches for function name="inv_logit"
    arg 0 type=vector
available function signatures for inv_logit:
0.  inv_logit(real) : real
no matches for function name="inv_logit"
    arg 0 type=vector
available function signatures for inv_logit:
0.  inv_logit(real) : real
expression is ill formed

ERROR at line 7
  5:    transformed parameters {
  6:      vector<lower = 0, upper = 1>[3] p;
  7:      p <- inv_logit(x);
                           ^
  8:    }

Execute "stanc --help" for more information

Should the following appear only once?
no matches for function name="inv_logit"
    arg 0 type=vector
available function signatures for inv_logit:
0.  inv_logit(real) : real

Another error example:
$ stanc test.stan
Model name=test_model
Input file=test.stan
Output file=test_model.cpp

SYNTAX ERROR, MESSAGE(S) FROM PARSER:
variable "y" does not exist.
variable "y" does not exist.
variable "y" does not exist.
variable "y" does not exist.

ERROR at line 5
  3:    }
  4:    model {
  5:      y ~ normal(0, 1);
          ^
  6:    }

Execute "stanc --help" for more information
$ more test.stan
parameters {
  real y2;
}
model {
  y ~ normal(0, 1);
}


operator hpe-csi-operator (2.4.0)

HPE CSI Operator version 2.4.0

Hi @AnushaY1916  I checked the log preflight-trigger, it seems that there is a temporary issue, you can close and re-open it

Closing as per the request and will reopen it.


function returning list of all available states in the machine would help automated testing

So that tests could iterate over most or all states without having to have a separately maintained list from that in the code itself.

Thanks!


Error on AWS

I am getting following error while running on AWS EC2, I using access token method..

I have checked the token it's working fine for other scripts.

Websocket connection upgrade failed (400-BadRequest)
This means, either you are using the wrong access_token or api_key. Also, can you re-check if you are passing both api_key and access_token as a string?

Websocket connection upgrade failed (400-BadRequest)

This means, either you are using the wrong access_token or api_key. Also, can you re-check if you are passing both api_key and access_token as a string?

Thanks for reply..
I checked the api_key and access token by checking the todays position,margin etc. which works fine.
Is there anything that I need to test on the system installation side ??

Thanks for reply..
I checked the api_key and access token by checking the todays position,margin etc. which works fine.
Is there anything that I need to test on the system installation side ??

Were you able to get it to work?

No same error.
Can you guess any error from my side ?

I think, you need to start your Redis service in your machine. option stream uses the Redis to store and fetch the data from it and this throws an error if it is unable to use the Redis.


Support for  upload_multiple_artifacts

This provides support for the gitlab runner feature tag upload_multiple_artifacts, and more generally brings artifact handling into closer alignment with the Gitlab runner. There are several parts to this:

Client crates specify the files they can provide, rather than taking responsibility for constructing an output zip.
Gzip format as well as ZIP format artifacts are supported.
User selection of desired artifacts is supported, including some limited support for globbing via the glob crate.

A major driver here is that if a client crate is able to provide junit test results, supporting this feature tag and exposing that file now provides integration with the gitlab pipelines test tab feature, and without the client crate having to be aware of this in any deep way.

bors r+


cpuid: 20201006 -> 20211031

Motivation for this change
Update to latest upstream release 20211031
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

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

1 package built:

cpuid


Cursor Loses Focus/Lock on Scroll Bar in early Nancy Drew Games

In the same game from #311 (Nancy Drew: Message in a Haunted Mansion), when the player is in a conversation with a character a scroll bar is available to move the text in the dialog box. If the scroll bar is clicked two issues occur, (1) the computer's cursor becomes visible (tracked on top the game cursor) until the game is restarted and (2) the scroll bar tends to jump down to the bottom once this happens instead of stopping wherever the player releases the scroll bar.
Obviously, this isn't a game breaking bug, but it is hard to play while seeing both the computer's cursor and the game cursor, plus the scroll bar jumping is annoying. If this is something that might be fixable I would sure appreciate it.
This issue does occur with cnc-ddraw 6.5 and exists in other early Nancy Drew games. After a bit more testing it seems to be... inconsistent. I got it to occur on two different games, but then it stopped happening. I'm curious if it happens to you or if this is isolated to me.
Here is a save file right in front of a character with dialogue available for testing:
NANSTD2.SAV.zip

Can't check right now because I recently reset all my virtual machines and lost all the games I had. I usually get them from archive.org but it has been down or very very slow for days

Am I doing this correctly here? Tried on windows+linux and couldn't reproduce it
https://github.com/FunkyFr3sh/cnc-ddraw/assets/8355237/c1f919c9-10b3-4d27-9355-1b87a4e011fe
How do you mount a iso on macOS? Either i'm doing something wrong or it just doesn't like this very .iso
Also, what wine version are you using?

You are doing it right... but I just went and tried it again using the same save file and can't reproduce it for the life of me. Ugh. I have to assume it's my own error or my computer. It happened with some odd frequency in another Nancy Drew game, but I couldn't isolate the exact cause (something to do with the dialogue though).
I'm using WineSkin wrapper 3.0.3 with wine 23.7.1-2 (not quite the latest, but pretty close).
I'll be testing some of the other games, so if I can figure out how to reproduce this reliably I'll let you know.  I'm so sorry for the time you spent setting up your virtual environment without a reproducible bug. When I posted the issue it was happened very consistently, but now not at all.
Should we close in the meantime or may I leave it open for a few days to see if I can reliably reproduce?

it's np. We can keep it open, I'll try a few more times later as well

I haven't been able to reproduce it in several days, it must have been an issue on my end, closing for now unless I can reproduce reliably.


Rework ContainerUtil to use ComponentModule instead of ApplicationEx

The use of ApplicationEx has two main causes: first is that it's historical and second is because we can use application.findServices. However, it ties a lot to the XPages runtime specifically, which runs afoul of a JSF situation. It'd probably be better to use a ComponentModule-focused approach and do the merging of services from OSGi and the ComponentModule manually.

If this goes in, there should also be changes to NSFJsfServlet to account for the use of the module instead of the NotesDatabase.
The advantage of NotesDatabase as a secondary choice is that it allows for using the replica ID as a coordinating point, avoiding case- and slash-choice differences with paths. Not insurmountable, though.
It'll also be important to investigate how this would affect ComponentModules for OSGi Servlets and Webapps. I think Webapps get their own ComponentModules, but Servlets may not.

As feared, OSGi Servlets all share the same OSGIModule ComponentModule instance, which makes this trickier. However, it's not onerous to require Servlet users in this case to provide a custom container locator, as I do.

Oh, the actual main reason that the replica ID is used is because NotesDatabase doesn't always have its DB path specified, while it uses a native call to get the replica ID from the handle. It'll be worth investigating whether the path can be derived differently.


Injecting config properties into an EntityManager is not possible.

When instantiating a JpaPersistModule it is possible to set a properties object at configuration time (new JpaPersistModule("persistenceUnit").properties(propertiesMap);), but impossible to wire those properties in through the injector which is very un-guice like.

+1


INTLY-9766 Enable HSTS header

Motivation
Pen testing requires HSTS header to be set.
What
Added helmet which enables hsts header
Why
Security risk without HSTS header
How
Added Helmet to set HSTS header
Verification Steps
Deploy operator from https://quay.io/repository/cathaloconnor/tutorial-web-app-operator?tab=tags and confirm solution explorer has HSTS strict header set.
Checklist:

[ ] Code has been tested locally by PR requester
[ ] Changes have been successfully verified by another team member

Progress

[x] Finished task
[ ] TODO

Additional Notes

@pb82 Would you be able to review this when you get a chance?


chore(main): release 0.1.0

:robot: I have created a release beep boop
0.1.0 (2024-11-02)
Features

init (e8be0d4)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.1.0
:sunflower:


DAO protocol upgrade

This PR proposes changes in the DAO voting system signalled by version bit 11.
Super Proposals
Super Proposals do not take coins out of the Community Fund but print them new.
Super Proposals can be created through the GUI or using the createproposal RPC command by setting to true the super parameter.
They are signalled in the RPC commands with super_proposal set to true.
Requirement for approval is 75% quorum and 90% acceptance.
What to test

Super Proposals only work when the deployment is active.
Super Proposals are only approved with the specified requirements.
Super Proposals do not depend on the amount available on the Community Fund.
Approval, rejection, expiration, block reorganisation do not affect the amount available in the Community Fund.
Both RPC and GUI functionality work correctly.

Combined voting of consensus parameters
Not implemented in GUI yet, only in RPC commands.
A combined vote for change of consensus parameters can be started using the RPC command proposecombinedconsensuschange.
Example:
proposecombinedconsensuschange '[1, 2]' '[100, 100]'
Additional values can be proposed with proposeanswer:
proposeanswer f54c67f64fa1be51f23d9739d1f6b6a8e10d73f81ea8b7438445b3e52371ba43 '[150, 100]'
What to test

Combined votes only work when the deployment is active.
Combined votes can't be created when at least one of the indicated consensus parameters already has a voting active.
Voting for those consensus change proposals work correctly.
Proposed answers can't be duplicated.
Proposed answers can't be the current value of the consensus parameters.
RPC functionality work correctly.
Please add as a comment to the Pull Request which parts of the GUI would need to be adapted to allow interaction with this new kind of votes.

@aguycalled  seems this PR has a few conflicts with latest master

i'd try to add this to the stressor and run it

would you like to add it yourself or should I add it?

A new build of a91aa2367d6ee07cdd33773a22a3e02a9dbe4ee8 has completed succesfully!
Binaries available at https://build.nav.community/binaries/super-dao

A new build of 32308f84f706b0ea86f6c88b0894e64dc4247b71 has completed succesfully!
Binaries available at https://build.nav.community/binaries/super-dao

A new build of e7c0d04500aa16716a4d65d173f451aa3d69943a has completed succesfully!
Binaries available at https://build.nav.community/binaries/super-dao

A new build of 913711353a08ed60ea3ad2f1d21a93ea908b3c68 has completed succesfully!
Binaries available at https://build.nav.community/binaries/super-dao

A new build of f9bcb64780568936ed09e88bec75eacc30288313 has completed succesfully!
Binaries available at https://build.nav.community/binaries/super-dao

A new build of 5c6d837ff87ac69ae93260f3de1d5e4ccd554732 has completed succesfully!
Binaries available at https://build.nav.community/binaries/super-dao

A new build of 50009f3da3861b23f4ba6a04e2165883c9e9d1c4 has completed succesfully!
Binaries available at https://build.nav.community/binaries/super-dao

@aguycalled I'm doing final testing on this PR, once done will approve and merge, I think the GUI for the combined voting should be a seperate PR.

A new build of 87a95c610a38630479fb040293d1634a4d081976 has completed succesfully!
Binaries available at https://build.nav.community/binaries/super-dao


Document verification overrides in readme

We probably should have included this as part of:

https://github.com/dependabot/fetch-metadata/pull/336

I did document it under "Supported inputs" as well as in the action.yml file. Additional documentation/clarification  can't hurt

Sorry, I wasn't trying to imply you messed up, just that this was a place that fit within the scope of that change, even though neither of us noticed it could also be updated.
Even before that addition, this should have already mentioned the skip-commit-verification override, so has been an oversight for a while. 😃

Sorry, I wasn't trying to imply you messed up, just that this was a place that fit within the scope of that change, even though neither of us noticed it could also be updated.
Even before that addition, this should have already mentioned the skip-commit-verification override, so has been an oversight for a while. 😃

Of course. I wasn't implying that you were either
I'm sorry if my comment gives that impression
Thank you for helping :)


notifications

The good opportunity in this messaging app is to receive notifications indicating from which number you've received a message. If you have, for example, 10 to 20 numbers, it can be hard to go to each one and check

I believe I understand your perspective; you likely receive more messages than the users I initially had in mind. The users I had in mind typically acquire multiple outgoing phone numbers for various purposes (e.g., one for support, another for alerts) and usually don't receive many replies if any.
However, your use case appears different. It seems that you have many outgoing phone numbers and the app doesn't have any indication for you to determine if you've received a new message. In this scenario, you need to manually select each outgoing message and check for new incoming messages. Indeed, that sounds very inconvenient.
The challenge with this app is that it serves purely as a frontend for Twilio and lacks a backend. Consequently, we are unable to save state to indicate the last message users read, making it difficult to calculate new messages received (defined as messages received after the last read message).
While we could use the browser's local storage, it comes with limitations. For instance, the app wouldn't be able to identify new messages when using a different browser or when users clear their browser data.
AT any rate, I'll explore Twilio's capabilities and see if there's anything we can leverage. The worst-case scenario might involve using local storage, but we'll need a way to communicate that to users.
Let me think a bit more about this, and I'll get back to you. Thanks for reaching out.

There's a potential to check messages based on a time frame, calculated from the last time the user opened the messages. Currently, I'm using email notifications. I believe it would be convenient to also send notifications to messaging platforms like WhatsApp or Telegram. If a reply is needed, the user can return to this script and respond here.


Add new fonts

Motivation for this change
Add 2 new fonts by @be5invis
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Both fonts were really large so I disabled hydra builds. This should not affect the user experience since it does not make it a big difference if the original archive is unpacked or our one.

Inziu is already deprecated. Could you please REMOVE that?


expose worker_id in jobcontext

implements https://github.com/livekit/agents/issues/1304

@s-hamdananwar could you add a changeset too please?

@davidzhao my bad completely missed it, thanks for the catch. just added it


Adding some logger when users have been dumped

Hello there,
Just a little PR because I saw that the log "Enumerated domain users" disappeared, so i just added it back (I don't know if this was for a specific reason).
The purpose of these prints make sense when we try to enumerate local users and logged_on users. There is no separation between these two informations

And I also changed it when enumerating domain users just to make it a little consistent. There are other cases where the "-Username- -LastPwdSet-" is printed without further detail of what it is but since i do not use actively these features i prefer not touching it.
Cordially :)

Done ! :)


How do you fix this error?

Describe your bug here.

Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
Edited CreditsState.hx and MainMenuState.hx

same issue

Should be fixed now


bug - cannot set Trust Level to ""

The param description correctly says:
Description:  "The trust level of the end user device, must be one of: \"High\", \"Medium\", \"Low\", or \"\"",

However, when you try to set trust_level to "", as in:
resource "banyan_policy_web" "allow_untrusted_devices" {
  name        = "Allow Untrusted Devices"
  description = "No device trust; only user auth is needed"
  access {
    roles       = ["ANY"]
    trust_level = ""
  }
}

You get this error:
│ Error: expected access.0.trust_level to be one of [Low Medium High], got
│
│   with banyan_policy_web.allow_untrusted_devices,
│   on policies.tf line 47, in resource "banyan_policy_web" "allow_untrusted_devices":
│   47:     trust_level = ""

closed by #73


Save Draft (Neuer Eintrag) button text overlap

Package version (if known): v5.0.0
Describe the bug
A clear and concise description of what the bug is.
Save draft button text is overlapping with icon button
Steps to Reproduce

add german language: I18N_LANGUAGES = [('de', _('German'))]
Select German (Deutsch) language from the dropdown.
Go to the New upload (Neuer Eintrag) page.
See Screenshot

Any ideas for how to fix this? Could it just say Speichern instead?

Btw, looks cool that it's possible to switch language 🚀

Any ideas for how to fix this? Could it just say Speichern instead?

Hi, the easiest and cleanest - would be to change the Button Label alignment from left to center: somewhere in here: https://github.com/inveniosoftware/react-invenio-deposit/blob/af030775e762c4a2a9b5fc119520860d2fc05846/src/lib/components/SaveButton.js#L40
this means also to change the Preview Button so the are the same.
here are some screenshots:
Before

After

Just as a side-note but maybe related:
invenioRDM-v5 new demo instance. When I change the firefox-window-screen-size to half of my monitor-screen then I get the same issue in English.

Just as a side-note but maybe related:
invenioRDM-v5 new demo instance. When I change the firefox-window-screen-size to half of my monitor-screen-size then I get the same issue in English.

This PR will solve the button issue also for English in smaller screens - but overall the UI needs work in order to make it mobile friendly.


Migration to remove an org created in error

This org was created in error and we are removing it.  The traffic is very low so we're not issuing a 410, just removing it (it should never have existed so a 404 is really what we want).
This is PR 5 of 5 for removing this org.
For more detail: https://trello.com/c/jbImjyLP/359-delete-an-org-page-5

For PRs 1, 2, 3, & 4 of this see:

https://github.com/alphagov/whitehall/pull/2564
https://github.com/alphagov/panopticon/pull/344
https://github.com/alphagov/govuk_need_api/pull/104
https://github.com/alphagov/contacts-admin/pull/236

💯


Lambda(custom_function) results in AttributeError: 'NoneType' object has no attribute 'get'

Hi,
I'm running into an issue that has previously been discussed (https://github.com/keras-team/keras/issues/11418) but, as far as I can see, not been resolved. That issue is closed, so I thought I'd open a new one, including a reprex. When I'm loading a model with load_model(), I get an AttributeError: NoneType' object has no attribute 'get'.
Standalone code to reproduce the issue
I'm trying to build a model with a custom layer, which I've included in a class. Stripped down to the bare minimum, this would look like the following:
from keras import backend as K
from keras.layers import (
    Input,
    Lambda,
)
from keras.models import Model, load_model

class ModelArchitecture:
    def custom_layer(self, x):
        return x

    def gen_model_architecture(self) -> Model:

        input_layer = Input(shape=(10, 20), name="input_layer")
        output_layer = Lambda(self.custom_layer)(input_layer)

        return Model(inputs=input_layer, outputs=output_layer)

Next, I'm trying to save the model and, later, load it. The loading is what goes wrong:
architecture = ModelArchitecture()
autoencoder = architecture.gen_model_architecture()

autoencoder.save("test.h5")
load_model("test.h5")

results in:
AttributeError: 'NoneType' object has no attribute 'get'

If, on the other hand, I define my custom_layer not as a class method, everything works out fine:
class ModelArchitecture2:
    def gen_model_architecture(self) -> Model:
        def custom_layer(x):
            return x

        input_layer = Input(shape=(10, 20), name="input_layer")
        output_layer = Lambda(custom_layer)(input_layer)

        return Model(inputs=input_layer, outputs=output_layer)

architecture = ModelArchitecture2()
autoencoder = architecture.gen_model_architecture()

autoencoder.save("test.h5")
load_model("test.h5")
# <keras.engine.training.Model at 0x7fde0d8b4eb8>

Describe the current behavior
Loading the model with a custom layer defined as a class method, results in an AttributeError.
Describe the expected behavior
I'd expect the model to load just fine.
Full traceback
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-37-a6eb56e47e48> in <module>
      3
      4 autoencoder.save("test.h5")
----> 5 load_model("test.h5")

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/engine/saving.py in load_wrapper(*args, **kwargs)
    490                 os.remove(tmp_filepath)
    491             return res
--> 492         return load_function(*args, **kwargs)
    493
    494     return load_wrapper

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/engine/saving.py in load_model(filepath, custom_objects, compile)
    582     if H5Dict.is_supported_type(filepath):
    583         with H5Dict(filepath, mode='r') as h5dict:
--> 584             model = _deserialize_model(h5dict, custom_objects, compile)
    585     elif hasattr(filepath, 'write') and callable(filepath.write):
    586         def load_function(h5file):

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/engine/saving.py in _deserialize_model(h5dict, custom_objects, compile)
    272         raise ValueError('No model found in config.')
    273     model_config = json.loads(model_config.decode('utf-8'))
--> 274     model = model_from_config(model_config, custom_objects=custom_objects)
    275     model_weights_group = h5dict['model_weights']
    276

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/engine/saving.py in model_from_config(config, custom_objects)
    625                         '`Sequential.from_config(config)`?')
    626     from ..layers import deserialize
--> 627     return deserialize(config, custom_objects=custom_objects)
    628
    629

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/layers/__init__.py in deserialize(config, custom_objects)
    166                                     module_objects=globs,
    167                                     custom_objects=custom_objects,
--> 168                                     printable_module_name='layer')

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/utils/generic_utils.py in deserialize_keras_object(identifier, module_objects, custom_objects, printable_module_name)
    145                     config['config'],
    146                     custom_objects=dict(list(_GLOBAL_CUSTOM_OBJECTS.items()) +
--> 147                                         list(custom_objects.items())))
    148             with CustomObjectScope(custom_objects):
    149                 return cls.from_config(config['config'])

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/engine/network.py in from_config(cls, config, custom_objects)
   1054         # First, we create all layers and enqueue nodes to be processed
   1055         for layer_data in config['layers']:
-> 1056             process_layer(layer_data)
   1057
   1058         # Then we process nodes in order of layer depth.

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/engine/network.py in process_layer(layer_data)
   1040
   1041             layer = deserialize_layer(layer_data,
-> 1042                                       custom_objects=custom_objects)
   1043             created_layers[layer_name] = layer
   1044

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/layers/__init__.py in deserialize(config, custom_objects)
    166                                     module_objects=globs,
    167                                     custom_objects=custom_objects,
--> 168                                     printable_module_name='layer')

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/utils/generic_utils.py in deserialize_keras_object(identifier, module_objects, custom_objects, printable_module_name)
    145                     config['config'],
    146                     custom_objects=dict(list(_GLOBAL_CUSTOM_OBJECTS.items()) +
--> 147                                         list(custom_objects.items())))
    148             with CustomObjectScope(custom_objects):
    149                 return cls.from_config(config['config'])

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/layers/core.py in from_config(cls, config, custom_objects)
    759                 config['function'],
    760                 custom_objects=custom_objects,
--> 761                 printable_module_name='function in Lambda layer')
    762         elif function_type == 'lambda':
    763             # Unsafe deserialization from bytecode

~/.conda/envs/env_name/lib/python3.6/site-packages/keras/utils/generic_utils.py in deserialize_keras_object(identifier, module_objects, custom_objects, printable_module_name)
    162             fn = _GLOBAL_CUSTOM_OBJECTS[function_name]
    163         else:
--> 164             fn = module_objects.get(function_name)
    165             if fn is None:
    166                 raise ValueError('Unknown ' + printable_module_name +

AttributeError: 'NoneType' object has no attribute 'get'

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  Linux-3.10.0-957.48.1.el7.x86_64-x86_64-with-redhat-7.6-Maipo
TensorFlow backend (yes / no): yes
TensorFlow version:  2.0.0
Keras version:  2.3.1
Python version:  3.6.10

Hi.
Im having the same problem, did you find the solution?
Salutations.

Hi @gato1847,
Everything works fine if you define the custom_layer not as a class method, but as a separate function, either within the class method or outside of it. The unexpected behaviour occurs only when this custom_layer is defined as a class method.

@taekeharkema ,
Also please refer this link for similar error.It helps.Thanks!

Did anybody find a solution？
I encounter the same problem.

Hi @gato1847,
Everything works fine if you define the custom_layer not as a class method, but as a separate function, either within the class method or outside of it. The unexpected behaviour occurs only when this custom_layer is defined as a class method.
This is my custom layer function how to add thus
def make_elmo_embedding(self, x):
# Load the elmo model which is a pre-trained models trained on the 1 Billion Word Benchmark
elmo_model = hub.Module("https://tfhub.dev/google/elmo/3", trainable=True)

    embeddings = elmo_model(tf.squeeze(tf.cast(x, tf.string)), signature="default", as_dict=True)["elmo"]

    return embeddings


Fix unread counter not being formatted on page load

This also fixes 1666 being formatted as 1.7k instead of 1.6k.

roundBadgeNumber?

Renamed.

All good here, 👍
/znc playbuffer #thelounge works pretty well to test that :)

👍 and merging.
Interestingly:
> (1296 / 1000).toFixed(2).slice(0, -1) + "k"
'1.3k'
> (1295 / 1000).toFixed(2).slice(0, -1) + "k"
'1.2k'

Thanks JS!


Question: Why cocoapods and cinterop?

There's no "discussions" so I thought I'd ask. I started looking through the code. Is there a reason the library has both direct cinterop and a pod dependency? I would assume the pod is to link for tests, but that seems like it could be wired in directly with linker args. I haven't gone into the actual code much, though. Just curious.

Some of the APIs from the sentry-cocoa sdk are not publicly available such as accessing the function storeEnvelope so it was at the time when I added it the easiest way to access it. Is that possible without introducing custom headers and cinterop?

I was thinking the other way. No cocoapods. Using that in a library can be tricky. For something like sentry, if the iOS library is relatively stable, I'd just grab and trim the headers to only define what the Kotlin client needs, and run cinterop on that. Running your tests at a library level will require some extra work, but I haven't gone through your code (much) to see how you're doing that. I guess cocoapods in a library isn't that big of a deal, but it would be better if there was like a test-only cocoapods integration.
Anyway, I talk some about cinterop here, although it's already kind of old.
https://www.droidcon.com/2022/06/28/sdk-design-and-publishing-for-kotlin-multiplatform-mobile/

Oh yes, replacing cocoapods with custom headers is something that we consider as well and will most likely be changed in the future. I opted for using cocoapods since it was the fastest way to get the project going.

Yeah, that makes sense 👍


Update request: unifi 8.5.6 → 8.6.9

Package name: unifi
Latest released version: 8.6.9
Current version on the unstable channel: 8.5.6
Current version on the stable/release channel: 7.5.187 (unifi) or 8.5.6 (unifi8)
[X] Checked the nixpkgs pull requests

Note: trying to enable unifi on unstable (as of 24.11pre703931.4aa36568d413), the system tries to compile the required version of mongodb. Considering that Unifi Controller is generally deployed on always-on low-spec machines, this task takes many hours (still have to end mine, so I can't even tell you if it completes or fails). Would it be possible to put the required mongodb version on cache.nixos.org?
Notify maintainers
@qubitnano @bjornfor

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

Hydra does not build and cache mongodb from source due to its license. There is a binary available from upstream though, you can try this in your config (I haven't tested unifi with it):
services.unifi.mongodbPackage = pkgs.mongodb-ce;

Hydra does not build and cache mongodb from source due to its license. There is a binary available from upstream though, you can try this in your config (I haven't tested unifi with it):
services.unifi.mongodbPackage = pkgs.mongodb-ce;

Thank you, mongodb-ce solves the "build" part of the problem. The version seems to be correct (mongodb 7.x in both cases), but Unifi does not work because its mongodb instance didn't start, it just kept coredumping. I've tried both by just stating that Unifi's mongodb package is mongodb-ce (as you said) and enabling the mongodb service with mongodb-ce as package, same result.
In case anybody hits this same problem, it was due to a cpu flag configuration issue (I'm working on a QEMU vm), and I found the solution here: https://stackoverflow.com/questions/75472647/mongodb-service-startup-problem-on-ubuntu-22-04-coredump (setting cpu to "host").
Now it's working, I'll wait for your PR to merge and build to migrate my setup. Thank you!


⚠ Jenkins Plugins Artifactory has degraded performance

In 22940f2, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 2457 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 712cabe after 17 minutes.


is this normal during training

Hi, I would like to know if my training is successful?

I am little bit confused because the cmd saying "press any keys to continue". I tried to press any keys but then the training progress disappeared.
thank you

Try running it in debug mode and see what happens.
If you trained tesseract for long enough, it could close immediately because it can't learn anything new (I've had this "issue" myself).

Ok, it seems the training is running now since I have checkpoints file inside "data" folder.  After finishing the training process, what should I do next for inference? I am using jupyter notebook and calling tesseract like the image below :

do I need to click "create_exe" ?
please advise
thank you

Before you train your own database, it is recommended to test with the ocrd-testset.zip
If the ocrd-testset.zip could be training successfully, it indicates that all the training tools on your computer are ready to use.
Make sure you have unzipped ocrd-testset.zip to ./data/foo-ground-truth folder before proceeding.
The ocrd-testset.zip archive can be found here

@Blu3train and @WhosVenom thanks a lot for your help. Yes, I am still testing using ocrd_testset. would you mind suggesting me about my previous question on what are the steps that must be taken after the training process?

Try attaching the tesstrain_gui.ini file so that we can see if you have configured the program correctly.
I don't know much, but at least someone can tell you if you have configured something wrong

Try attaching the tesstrain_gui.ini file so that we can see if you have configured the program correctly. I don't know much, but at least someone can tell you if you have configured something wrong

please find the file below :
https://drive.google.com/file/d/1DAE-SLWhE007hbkystgUHVFxMdKwi7Nw/view?usp=share_link
thank you

link doesn't work to me

(link doesn't work to me-) ok, copy the text work

Ok nice, looking forward to hearing from you

I don't know if what I write to you is essential for it to work, but this is what I impose and it works for me.
the GROUND_TRUTH_DIR set it to this folder
GROUND_TRUTH_DIR=C:\Users\Owner\tesstrain-windows-gui-main\data\foo-ground-truth
In the foo-ground-truth folder, unzip the contents of the ocrd-testset.zip file
As a start model try to use English and not German since the test data are made for the English language.
last thing, I put in the "data" folder also the files required by these parameters
WORDLIST_FILE=
NUMBERS_FILE=
PUNC_FILE=
I am attaching the files renamed from those of English
foo.zip

I don't know if what I write to you is essential for it to work, but this is what sets and works for me.
the GROUND_TRUTH_DIR set it to this folder GROUND_TRUTH_DIR=C:\Users\Owner\tesstrain-windows-gui-main\data\foo-ground-truth
In the foo-ground-truth folder, unzip the contents of the ocrd-testset.zip file
As a start model try to use English and not German since the test data are made for the English language.
last thing, I put in the "data" folder also the files required by these parameters WORDLIST_FILE= NUMBERS_FILE= PUNC_FILE=
I am attaching the files renamed from those of English foo.zip

thanks a lot. After the training, what is next? do you have example of doing inference?

You take the new model, in this case foo.traineddata, and use it with tesseract instead of the original model.

I am trying to use my own data. But I got this error

how to solve the problem easily? instead of removing the error image.

why psm 8?

why psm 8?

because my image contains one word. I tried also using 13 but the error was same.
please advice

The image must be in TIFF format and the suffix can be .tif/.png/.bin.png/.nrm.png.
The name of the text file is the same as the image name, the content is the text corresponding to the
image, and the suffix is named .gt.txt.
Both the image and the corresponding text are required to be a single line of text.

what does this error mean?

Hi @Blu3train , I tried again but still got the error like this
Bad box coordinates in boxfile string! Far Carbon/Oxygen RatioVolumePerPressure (m3/Pa)AreaPerTime (ft2/h)Uncorrected Attenuation ResistivityDimensionless (bbl/bbl)flowlengthPressurePerLength (bar/m)Area (bbl/ft)MassPerLengthPerTime (kg/m.a)Time (0.5 ms)AreaPerTime (mm2/s)Analog 12Dimensionless (ppdk)MassPerTime (kg/s)Carbon/Oxygen Ratio UncertaintyArea (bbl/ft)Velocity (m/s)Sigma Borehole CorrectedInverseTemperature (1/degF)Velocity (ft/s)Far IC Capture Oxygen Activation Relative YieldMassPerAreaPerTime (MPa.s/m) Extracting unicharset from plain text file C:\Users\Owner\tesstrain-windows-gui-main\data\text\all-gt Other case Z of z is not in unicharset Wrote unicharset file C:\Users\Owner\tesstrain-windows-gui-main\data\text\my.unicharset
I tried to continue but then show this error message
Tesseract Open Source OCR Engine v5.0.0-alpha.20200328 with Leptonica Page 1
similar to my previous post
please advise

Hi, thank you @Blu3train for helping. I want to let you know guys I have a lot personal stuff recently, but once I have a bit more time I'll be more able to help.
@ramdhan1989 can you share which version of Tesseract you have installed? I know that some versions of Tesseract binaries display particular communicates on StdErr instead of StdOut, but everything work good anyway. Overall different Tesseract builds behave quite differently in some occasions.
On the other hand the "0 dpi" communicate suggest that the Leptonica library cannot properly process your images. If you can maybe you may share one image so that we could test it locally to see if we can reproduce the error.

Hi @buliasz , this is the version

please find the image on the link below :
https://drive.google.com/drive/folders/1oEMhPZB_OimM0T2TGJ8eiVmLZxPBtvBj?usp=share_link
thanks

Just tested locally it works without problems, here's output of the learning stage.
Can you try installing 5.2 version from https://github.com/UB-Mannheim/tesseract/wiki and check if it works. I guess the issue is with the compilation you use.

BTW this is not really related to the GUI itself so you may also want to ask about it in the main tesstrain repository. Just send executed command (you can copy it in the GUI debug mode) and the unexpected output. You can also try to execute the command in your shell, but the output should be the same.

@buliasz I tried to use from here https://github.com/UB-Mannheim/tesseract/wiki
The error is gone now. However, during .box and .lstmf generation, this window always pop up for each image

So, I need to click "ok" for each image. is it normal? or is there something that can be set to solve it?

Uncheck the Debug option

thanks it is running now.

is this normal?

Never seen it before. If you search for it on the Internet there are some discussions about it. You'll have to check that. Seems related to tesstrain, not the GUI itself.


In the Cilium health status of version 1.12.11 with dual-stack enabled, an extra empty entry appears

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
After we upgrade cilium to 1.12.11 with dual-stack enabled, we receive lots of alarms from cilium_unreachable_nodes metric.
We observed additional "empty" entry is in health check list
 Cluster health:                                40/41 reachable   (2023-08-21T10:10:31Z)

  Name                                         IP                Node          Endpoints

  cluster4/ms-0001 (localhost)   <IP_ADDRESS>    reachable     reachable

                                                                 unreachable   reachable

  cluster3/if-0003               <IP_ADDRESS>   reachable     reachable

  cluster3/l4-0003               <IP_ADDRESS>   reachable     reachable

  cluster3/ms-0003               <IP_ADDRESS>   reachable     reachable

In our environment, we build cilium cluster mesh between cluster3 and cluster4.
Cluster 3 has 19 nodes, and cluster 4 has 21 nodes.
In other words, a total of 40 nodes are present across Cluster 3 and Cluster 4.
client$ k3 get no --no-headers | wc -l

21

client$ k4 get no --no-headers | wc -l

19

When testing v1.12.10 with dual-stack enabled, we did not encounter this issue.
We are not sure what is changed in 1.12.11, and this situation is causing continuous receipt of false alarms because empty item is always unreachable.😥
Cilium Version
1.12.11
Kernel Version
5.15.0-69-generic
Kubernetes Version
v1.23.17
Sysdump
No response
Relevant log output
No response
Anything else?

Would you be able to generate a sysdump as per the instructions at https://docs.cilium.io/en/stable/operations/troubleshooting/#automatic-log-state-collection ? And then upload that sysdump to this issue? It will help whoever is troubleshooting this with replication.

Thanks for reporting this @skyblueted, this does seem weird.
Would you be able to generate a sysdump as per the instructions at https://docs.cilium.io/en/stable/operations/troubleshooting/#automatic-log-state-collection ? And then upload that sysdump to this issue? It will help whoever is troubleshooting this with replication.

Hi @youngnick ,
We built up experiment cluster with dual-stack in cilium 1.12.11, and also collected logs by cilium bugtool
In cilium-node-list file, we found the empty entry is same endpoint CIDR as cluster6/a-ms-0001 (localhost)
Name                              IPv4 Address     Endpoint CIDR     IPv6 Address                           Endpoint CIDR
                                                   <IP_ADDRESS>/27                                            fd00:103:a1f0:6000::/64
cluster6/a-if-0001   <IP_ADDRESS>    <IP_ADDRESS>/27   fd00:103:a1f0:61:1ac8:7e87:fdfb:95ec   fd00:103:a1f0:600c::/64
cluster6/a-if-0002   <IP_ADDRESS>    <IP_ADDRESS>/27   fd00:103:a1f0:61:f50c:4b80:755a:6d21   fd00:103:a1f0:600e::/64
cluster6/a-l4-0001   <IP_ADDRESS>    <IP_ADDRESS>/27     fd00:103:a1f0:61:76d:d79a:6ef0:30c7    fd00:103:a1f0:6010::/64
cluster6/a-ms-0001   <IP_ADDRESS>    <IP_ADDRESS>/27     fd00:103:a1f0:61:9689:4119:4456:9b9e   fd00:103:a1f0:6000::/64
cluster6/a-ms-0002   <IP_ADDRESS>    <IP_ADDRESS>/27   fd00:103:a1f0:61:56a8:18e3:1d36:cc1e   fd00:103:a1f0:6004::/64
cluster6/a-ca-0004   <IP_ADDRESS>   <IP_ADDRESS>/27   fd00:103:a1f0:61:f54d:fccb:a8b3:a0b3   fd00:103:a1f0:6013::/64
cluster6/a-ca-0005   <IP_ADDRESS>   <IP_ADDRESS>/27   fd00:103:a1f0:61:9092:c8ef:ffaa:e9cb   fd00:103:a1f0:6005::/64
cluster6/a-ca-0006   <IP_ADDRESS>   <IP_ADDRESS>/27     fd00:103:a1f0:61:7fa6:3464:589d:98b2   fd00:103:a1f0:6008::/64
cluster6/a-ca-0001   <IP_ADDRESS>   <IP_ADDRESS>/27   fd00:103:a1f0:61:fb3d:5b56:d746:6e47   fd00:103:a1f0:600f::/64
cluster6/a-ca-0002   <IP_ADDRESS>   <IP_ADDRESS>/27   fd00:103:a1f0:61:22:a119:d1b0:9a72     fd00:103:a1f0:6006::/64
cluster6/a-ca-0003   <IP_ADDRESS>   <IP_ADDRESS>/27   fd00:103:a1f0:61:905b:365d:5d37:4c9f   fd00:103:a1f0:6007::/64
cluster6/b-if-0003   <IP_ADDRESS>    <IP_ADDRESS>/27   fd00:103:a1f0:61:4794:9fcd:27b7:6b8    fd00:103:a1f0:600d::/64
cluster6/b-if-0004   <IP_ADDRESS>    <IP_ADDRESS>/27    fd00:103:a1f0:61:6d85:de91:c71e:8b0d   fd00:103:a1f0:600b::/64
cluster6/b-l4-0002   <IP_ADDRESS>    <IP_ADDRESS>/27    fd00:103:a1f0:61:1da:396d:e966:242     fd00:103:a1f0:6012::/64
cluster6/b-ms-0003   <IP_ADDRESS>    <IP_ADDRESS>/27    fd00:103:a1f0:61:eaf4:825d:a45e:87d    fd00:103:a1f0:6003::/64
cluster6/b-ms-0004   <IP_ADDRESS>    <IP_ADDRESS>/27    fd00:103:a1f0:61:4145:49e7:3b4:fb56    fd00:103:a1f0:6002::/64
cluster6/c-if-0005   <IP_ADDRESS>    <IP_ADDRESS>/27    fd00:103:a1f0:61:6933:1a0f:fa01:aee6   fd00:103:a1f0:600a::/64
cluster6/c-if-0006   <IP_ADDRESS>    <IP_ADDRESS>/27    fd00:103:a1f0:61:448b:7895:6dab:b818   fd00:103:a1f0:6009::/64
cluster6/c-l4-0003   <IP_ADDRESS>    <IP_ADDRESS>/27    fd00:103:a1f0:61:1df7:353d:8a2b:98c1   fd00:103:a1f0:6011::/64
cluster6/c-ms-0005   <IP_ADDRESS>    <IP_ADDRESS>/27    fd00:103:a1f0:61:51e9:a7b1:994:d0c9    fd00:103:a1f0:6001::/64

Collect the logs as shown below for one node which is called cluster6/a-ms-0001 in the cluster.
cilium_bugtool_log.tar.zip
Hope you find this information helpful.


fix file utils, move them to a separate class

This PR should fix all file related operations.
Note that on Android 13+ the app should ask for media permissions (images, songs, videos) on first launch and check if it has permissions every time it tries to do file IO. I can impl this later if it's needed.

don't merge this yet, apparently it crashes if you do not select anything in the picker

So the issue was on Geode's side, this is fine to merge.


dart:core Uri breaking on Windows

Quickly reproducible:
void main() {
  new Uri.file('some_package_name|test/some_file.dart');
}

Error:
Unhandled exception:
Invalid argument(s): Illegal character in path
#0      _Uri._checkWindowsPathReservedCharacters (dart:core/uri.dart:1632)
#1      _Uri._makeWindowsFileUrl (dart:core/uri.dart:1733)
#2      _Uri._Uri.file (dart:core/uri.dart:1598)
#3      main (file:///C:/Users/Dani/Documents/Projects/intl_testbed/test/uri_test.dart:4:17)
#4      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:261)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

While one would not want to create a Uri from some_package_name|test/some_file.dart it is often passed by transformers. One affected package that passes such uri string to the constuctor is analyzer via intl_translation package.
Stack trace for that:
Transform IntlMessage on some_package_name|web/main.dart threw error: Invalid argument(s): Illegal character in path
dart:core/uri.dart 1632                                   _Uri._checkWindowsPathReservedCharacters
dart:core/uri.dart 1733                                   _Uri._makeWindowsFileUrl
dart:core/uri.dart 1598                                   _Uri._Uri.file
package:analyzer/src/string_source.dart 30:45             StringSource.StringSource
package:analyzer/analyzer.dart 43:23                      parseCompilationUnit
package:intl_translation/src/message_rewriter.dart 42:23  findMessages
package:intl_translation/src/message_rewriter.dart 17:18  rewriteMessages
package:intl_translation/transformer.dart 23:22           IntlMessageTransformer.apply.<async>

I consider this critical as I keep running into this.

I assumed that this form ('some_package_name|test/some_file.dart')  is just how it's printed in some error messages or similar.
I'd expect it to be new
Uri.file('packages/some_package_name/test/some_file.dart');

Unfortunately, the situation is not that simple.
What I got so far debugging is that the fullName parameter in this line of the analyzer package looks just like what I wrote.
https://github.com/dart-lang/sdk/blob/master/pkg/analyzer/lib/src/string_source.dart#L30
So the Uri constructor in fact receives a String that follows the format of: some_package_name|test/some_file.dart
I tested this on a linux machine as well (if memory serves right), the fullName follows the same pattern.
Could this Dartpad help?
https://dartpad.dartlang.org/8fb08da0345674a454e2f9559a6d7a84

Have you tried the format I posted?
I may miss something but 'some_package_name|test/some_file.dart' is not a known URI format, at least not to me.

No, I have not. The reason why I did not do that is because the Uri constructor receives the path in such a format. It works fine on linux and fails on windows (which is why I feel it painful).
I spent some more time trying to figure things out. Here is some code that can help with the reproduction. Please try it on Linux and Win to see the difference.
https://github.com/daniel-v/transformer_repro
Just do a pub serve web to execute the transformer of intl_translation.
new information:
it looks like that when modifying the pubspec.yaml to look like this:
transformers:
- intl_translation:
    $include: web\main.dart

the error's gone, seems to work ok.

The problem is that the string some_package_name|test/some_file.dart is not a valid file name on Windows. The Uri.file constructor with Windows semantics rejects paths with segments that contain any of the characters "*/:<>?\|, so this gets rejected for both / and |.
On non-Windows, only the character / is rejected in segments, and since the input path is split on /, that can't happen.
You can reproduce this on non-Windows by using the windows: true parameter to Uri.file. That also suggests a solution: Pass windows: false where you call Uri.file if you don't want to reject Windows-invalid paths. That won't spit the path on \ characters, but on the other hand, it will accept \ and | in the path segments.
So, in short: The argument here is not a local file path (it can't be, file paths can't contain those characters) so converting it to a file: URI is rejected deliberately.
Uri.filedoesn't just prependfile:///to the path, it actually checks that it's a valid file path and on Windows (or in Windows mode) it parses it for drive, network or UNC prefixes. Usewindows: false` to not do that.

@lrhn Thank you for the lengthy explanation, I appreciate you putting effort into giving details why it is labelled as "works as intended". I feel this is a good practice.
Even though I still can't use the package mentioned, it seems clearer that it is not a failure on the dart:core's part.

I am trying to run a file from assets on the windows platform, but I get the following error. Please help me fix this.


Roll engine<PHONE_NUMBER>30..3371da1e0951 (1 commits)

https://github.com/flutter/engine/compare/782654846230...3371da1e0951
git log<PHONE_NUMBER>3037c6544dfd5380367bca29fa27b0..3371da1e09511cb047c746e8209ec91550714b05 --no-merges --oneline
3371da1e0 Add platform_fuchsia.cc for default font on fuchsia (flutter/engine#9204)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop
the roller if necessary.

Auto-roller completed checks. About to merge.


New apis from upstream

cherry-picked 2 simple commits from upstream:

Add `JS_HasException()
Add `JS_NewTypedArray()

Perhaps we should revisit the Uint8Array specific functions we added at some point.

Uint8Array

Indeed, I am not sure about the arguments to C API JS_NewTypedArray. It should probably take a length and a const void * to optionally initialize the array contents.

Shall we land this? We can improve the APIs once in?


Remote Harvester not able to connect to Farmer

Hi, I have a harvester at home, and a remote farmer at my office. before update to 1.1.3, everything works fine. after upgrade, harvester unable to connect to remote farmer.
here is the result for command : ./sit farm summary
Farming status: Not synced or not connected to peers
Total silicoin farmed: 0.0
User transaction fees: 0.0
Block rewards: 0.0
Last height farmed: 0
Local Harvester
1590 plots of size: 157.373 TiB
Plot count for all harvesters: 1590
Total size of plots: 157.373 TiB
Staking addresses:
sit1xcutv4a54wcx454a8v8xqpf4akklvecp293k0xmfzhahp99dt6rqrxnvfn (balance: 0, plots: 1590)
Estimated network space: 885.276 TiB
Expected time to win: 1 minute
Note: log into your key using 'sit wallet show' to see rewards for each key
other Chia fork works just fine, for example hddcoin:
Farming status: Farming
Total hddcoin farmed: 278.5
User transaction fees: 0.0
Block rewards: 278.5
Last height farmed: 637686
Harvester <IP_ADDRESS>:41968:
195 plots of size: 19.300 TiB
Harvester <IP_ADDRESS>:53018:
1590 plots of size: 157.373 TiB
Plot count for all harvesters: 1785
Total size of plots: 176.672 TiB
Estimated network space: 1.877 EiB
Expected time to win: 2 days and 13 hours
Note: log into your key using 'hddcoin wallet show' to see rewards for each key
Done

Is there any log about this connection problem on both farmer machine and harvester machine?


Adding ISQF distribution class

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

I incorporated your suggestions except for cumsum and test file. The code now passes all the checks. Thanks for reviewing the code again, @dcmaddix . When you have time, please also check the FIXMEs.
For the mxnet built-in cumsum, weirdly it seems that it doesn't support the option of axis=-1.
Adding the test scripts will be my next thing to do.

I incorporated your suggestions except for cumsum and test file. The code now passes all the checks. Thanks for reviewing the code again, @dcmaddix . When you have time, please also check the FIXMEs.
For the mxnet built-in cumsum, weirdly it seems that it doesn't support the option of axis=-1.
Adding the test scripts will be my next thing to do.

Yes, it actually doesn't support axis=-1, so we hard coded axis=3.  You should actually know the shape since the tensor should have a fixed shape.

I had to rename the script to lower-case letters. But it seems that Github has lost track of the rename, so all the comments became outdated, and I cannot respond to them. Therefore I will respond in this comment.
Update on the code:

Used more descriptive variable names: x-/y-positions for quantile knots: qk_x/qk_y, x-/y-positions for spline knots: sk_x/sk_y. Coefficient a/b for the tail: tail_a/tail_b
Changed function names as suggested
Combined the three lines of shape_holder
It seems that we cannot change the input type of init from List[float] to Tensor, because mxnet does not allow applying symbol operation to an mxnet.nd.array when Hybridize=True
Added a pytest script to extensively test ISQF as a Distribution class


Tesla Solar Panels not selectable as Solar Production in Energy Config

Version of the custom_component
v1.3.2 (teslajsonpy 1.2.1)
Describe the bug
We just enabled our solar panels today and I was excited to add the solar production to my Energy Dashboard in HA.
Unfortunately the solar panels don't show up as an energy source. 😞

I tried with just the out-of-the-box entity:

As well as customizing some of the attributes to see if that was the issue:

(I tried lots of different combinations - state_class=measurement or total or total_increasing, UOM=W or kW or kWh, device_class=power or energy, including or excluding a last_reset attribute...)
Am I doing something wrong, or is this a bug? And - can I add any customizations/attributes to get it to work?
Debug log
This isn't an error, just a misconfiguration/issue with how Home Assistant reads energy entities, so there are no errors in any logs.

The Energy component requires that you use the integrate component to convert W to kwH. This is similar to our prior discussion on the energy_added sensor. https://github.com/alandtse/tesla/issues/14

@alandtse Gotcha - I thought at some point this component was updated to support those entity types out of the box. Might be a good enhancement for the future.
I'm pretty sure I can get it to work, if I run into any issues I'll reopen. Thanks for the guidance!

At this point, it's probably a HA improvement to automatically create an integration sensor for power type sensors. We just expose what Tesla already has and unfortunately this is all we have.

@qJake mind sharing how you got this working? I added the kWh via the "integration" platform, but it never seems to reset and is showing higher and higher kWh:

Here's my yaml:

platform: integration
source: sensor.my_home_solar_panel
name: tesla_solarpanels_kwh
unit_prefix: k
unit_time: h
round: 2

For anyone else who might find this, I had to do this:
in my configuration.yaml
create or add to the homeassistant: section:
homeassistant:
  customize:
    sensor.home_solar_panel:
      state_class: total
      device_class: energy
      unit_of_measurement: Wh

This overrides the default entity attributes, to format it so it fits the rules of Long Term Statistics. I was fiddling a bunch, so I dont know if I needed to wait longer or not, but i noticed even after setting those overrides and restarting HA, the Statistics tab in Developer still showed the sensor as having the wrong units (W instead of Wh or kWh). I suspect that's because the sensor had already been built and established in the database. I deleted the Integration, deleted the entity, and deleted the long-term-statistics  from the Statistics tab (search for the entity, HA will tell you something about it being missing, and give you an option to clear the historical data)
After that, I reloaded the HACS Tesla integration, it came in with the right units (since the entity_id was identical and already had the customize: override described above), then it Just Worked!
Likely more fiddlig to do here, since I think I'll need to define a last_reset so the stats know that it resets to zero each night.
Home this helps.


[awaiting evolution] Allow convenience initializers to reassign self.

Now that convenience initializers are implemented exactly the same as value type delegating initializers, it's straightforward to allow them to assign self to an existing object reference instead of only allowing them to chain to other initializers. Because convenience inits can be inherited, the formal type of self is still the dynamic Self type, however. This was handled unsoundly in Swift 4 mode, and unfortunately we can't fix it without breaking source in Swift 4 mode, so enable this feature only in Swift 5 mode.
Making self inout inside convenience inits also changes the code generation of loads from self, so we need to tweak DI's special handling of type(of: self) slightly so that it also recognizes this new pattern.
Proposal: https://github.com/apple/swift-evolution/pull/910

@swift-ci Please test

Build failed
Swift Test OS X Platform
Git Sha - 12a5139bd4ebbfa2c5aeedf9d3c4341e94491c07

@jckarter I noticed you closed the evolution PR.  Do you want this open too?

Sure, we can reopen it when we start actively working on it again.

So, is this a dead evolution? There's plenty of people still waiting for this.


[Bug] Navigation bug.

Device information

Tachiyomi version: neko version 2.5.3
Android phone & version: Fire HD 10 9th Generation

Steps to reproduce

main page -> settings -> reader -> default reading mode
Select "left to right"
Scroll down to Webtoon
Under the options for Webtoon set "Navigation Layout" to default.
Select a Webtoon (I used Solo Leveling).
Move hands toward the bottom half of the screen. Tap the left side of the screen then the right side repeatedly.

Expected behavior
The outcome should result in an up, down, up, down movement of the page.
Actual behavior
If you repeat this enough it will switch to "L-Shape Navigation" which will cause the page to move up,up,up,up instead of up,down,up,down.
Other details
You can go into the settings and reselect "default"(default being "left to right") but it will eventually switch back to "L-shape". Also worth noting the only way to get "left to right navigation" is by setting it as I previously stated in the steps listed. You cannot select "Left to Right" by scrolling to lets say Webtoon and setting it in the options there.  SEE VIDEO VIDEO FOLLOWS STEPS ABOVE BUT IS MADE SHORTER DUE TO TIME CONSTRAINT
https://user-images.githubusercontent.com/71535163/125533693-67943063-2ff5-4981-b838-c02638f1ba8f.mp4

So i think there is a disconnect.
Neko forces webtoon layout on long strip tagged manga from MangaDex.  So it ignores your reading mode defaults.
You would need to change your navigation layout to Right and Left, then invert the tapping if you wanted to click left side of screen to scroll down, and right side to scroll up

Ah ok interesting. Thanks. I initially did it that way because I am so used to doing it that way from using tachiyomi. I guess I should have explored the app a bit more.


Added mender server enterprise section

Added changelog section dedicated to the Mender Server Enterprise
Ticket: QA-816
Changelog: None
External Contributor Checklist

🚨 Please review the guidelines for contributing to this repository.

[x] Make sure that all commits follow the conventional commit specification for the Mender project.

The majority of our contributions are fixes, which means your commit should have
the form below:
fix: <SHORT DESCRIPTION OF FIX>

<OPTIONAL LONGER DESCRIPTION>

Changelog: <USER-FRIENDLY-CHANGE-DESCRIPTION> or <None>
Ticket: <TICKET NUMBER> or <None>

[x] Make sure that all commits are signed with git --signoff. Also note that the signoff author must match the author of the commit.

Description
Added changelog section dedicated to the Mender Server Enterprise

@oldgiova For the CI failure, you need to add this new section into .checklinks-whitelist file :+1:

@oldgiova For the CI failure, you need to add this new section into .checklinks-whitelist file 👍

Thanks!


passing variable to windows_task resource

Hi everyone,
I'm hoping someone can help me.
I have a scheduled task that will run every 15 minutes and delete files that are older than 2 minutes.
This is the code I use:-
 pass_day = "Z:\\s3_temp\\#{Time.now.strftime("%Y-%m-%d")}"
    windows_task 'deletion-of-logs-every-fifteen-minutes' do
      user 'Administrator'
      cwd pass_day
      command "powershell.exe Get-ChildItem  #{passday} | Where-Object {$_.LastwriteTime -lt     (Get-Date).addMinutes(-2) } | Remove-Item -Recurse -Force"
      run_level :highest
      frequency :minute
      frequency_modifier 15
      force true
      action :create
end

However when this runs, it doesn't complete successfully (i.e. the files in Z:\s3_temp\2015-08-10) do not get deleted.
How would I do this to pass the variable pass_day into this resource as pass_day will change every day?
Many thanks

Does the task complete successful but the files aren't deleted? Or does the task error? If the task errors, what is the error?
I noticed that you don't have a password specified. I think you need that to use a non-system account.

Hi,
The task does not complete successfully (the status of it is not equal to 0) and obviously the files aren't deleted.
I'm trying to delete files that are locked by a process for a short period and then released. What I find interesting is that I'm able to delete these files on the command line, after they have been released, but can't from within a script using the windows_cookbook resource.
Because the file is publicly viewable (i.e. in a git repo), I would be unable to include the plaintext password as part of the resource, (although I realise that it could be encrypted).
Does the syntax look right to you?

What is the task error? In task scheduler, the "Last Run Result" should have an error. Have you inspected the task in the task scheduler after it was created to verify all the commands and triggers are correct?
I wouldn't expect you to post the actual password. Something like password 'mypassowordgoeshere' is enough to let us know that you are using a password in your resource.
The syntax looks correct except for the use of pass_day and passday. I assume you want an underscore in the second one.

@trekr5 It sounds more like a schedule task/powershell command issue, have you written a schedule task that works? Does the schedule task manage to call the powershell.exe? What does the correctly configured Schedule Task look like?
We tend to build everything manually first then automate that, however a backslash is a metacharacter for both Ruby and Powershell so we always end up doubling the number backslashes!

Its also worth hopping onto the node and looking at the scheduled task that was created. In particular look at the command text and make sure it is formed as you expected. From there, definitely follow @chrisgit 's guidance and run the command to troubleshoot where things are wrong.

I'm closing here since this is likely not a problem in the cookbook.


[SPARK-35416][K8S][FOLLOWUP] Use Set instead of ArrayBuffer

What changes were proposed in this pull request?
This is a follow-up of https://github.com/apache/spark/pull/32564 .
Why are the changes needed?
To use Set instead of ArrayBuffer and add a return type.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass the CIs.

Test build #139252 has started for PR 32758 at commit fe0b8d9.

Test build #139252 has finished for PR 32758 at commit fe0b8d9.

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

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

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43775/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43775/

I'll leave it to @mridulm

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

Thanks for fixing this quickly @dongjoon-hyun ! My intention was more to understand the earlier change :-)

Thank you, @HyukjinKwon , @gengliangwang , and @mridulm .
Welcome for all your comments, @mridulm !

My intention was more to understand the earlier change :-)


Image tool links to upload image from computer. Is there a way to change this behaviour to just a input box or call filemanager option.

Issues merging. #5


Fix pre-commit isort failure on tests/utilities/*.py

What does this PR do?
Relates to #4805
Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[ ] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[ ] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified
[ ] Check that target branch and milestone match!

Did you have fun?
Make sure you had fun coding 🙃

Hey @arnaudgelas,
Would be better to make 1 PR with isort resolving. It is saturating the ci :)
Best regards,
T.C

Hey @arnaudgelas,
Would be better to make 1 PR with isort resolving. It is saturating the ci :)
Best regards,
T.C

Hi @tchaton,
I tried earlier to submit all pre-commit isort fixes into a single PR here (note that the content,of this PR is incorrect), and I was told to split it into smaller one, see https://github.com/PyTorchLightning/pytorch-lightning/pull/5396#issuecomment-755984043
So  @Borda @tchaton should I make a single PR with all pre-commit isort fixes? or continue like this?

Hi @tchaton,
I tried earlier to submit all pre-commit isort fixes into a single PR here (note that the content,of this PR is incorrect), and I was told to split it into smaller one, see https://github.com/PyTorchLightning/pytorch-lightning/pull/5396#issuecomment-755984043
So  @Borda @tchaton should I make a single PR with all pre-commit isort fixes? or continue like this?

@akihironitta I could add a commit before that one which would modify pyproject.toml to make sure it fails first and that this commit actually fixes the test. I shall wait for the decision in between a single big PR or multiple ones...

@akihironitta I could add a commit before that one which would modify pyproject.toml to make sure it fails first and that this commit actually fixes the test. I shall wait for the decision in between a single big PR or multiple ones...

Would be better to make 1 PR with isort resolving. It is saturating the ci :)

@tchaton the suggestions came from us as @williamFalcon was against to have larger refactoring in single even it is automated one (since it does not come from the core, we have to read it if there is no accidental miss-chnage)

Would be better to make 1 PR with isort resolving. It is saturating the ci :)

@tchaton the suggestions came from us as @williamFalcon was against to have larger refactoring in single even it is automated one (since it does not come from the core, we have to read it if there is no accidental miss-chnage)

Can you unlist this submodule from pyproject.toml to enable isort check on this submodule? Can you also update all your PRs regarding this?

@arnaudgelas Could you follow @Borda's comment? Also, would you mind updating all your PRs to enable isort check on each submodule by unlisting each one from pyproject.toml?

Can you unlist this submodule from pyproject.toml to enable isort check on this submodule? Can you also update all your PRs regarding this?

@arnaudgelas Could you follow @Borda's comment? Also, would you mind updating all your PRs to enable isort check on each submodule by unlisting each one from pyproject.toml?

@akihironitta Done!

@akihironitta Done!


Tabular UI: Choosing column(s)

[x] UI mock-up (Mike)
[ ] Working geoconnect model

[ ] check for missing vals before sending to WorldMap API?

[ ] Error messages.  If data is mapped, save error message in metadata.  Where?

Replaced by IQSS/dataverse#3479


Packages not being uploaded on pypi.org

It seems that there is some synchronization issue between pypi.org and pypi.python.org.
For example, the package for Jupyter Notebook 4.4.0 is available on pypi.org but missing on pypi.python.org.
See:
https://pypi.python.org/pypi/notebook/
https://pypi.org/project/notebook/#files
Besides, while the tarballs are available on pypi.org, only the hashed URL are up, not the human-readable ones:
This is up: https://files.pythonhosted.org/packages/source/n/notebook/notebook-4.3.1.tar.gz
This is not up: https://files.pythonhosted.org/packages/source/n/notebook/notebook-4.4.0.tar.gz
cc @minrk @dstufft

Thanks, sorry for the noise. Took me a while to discover the remove event.

@gnestor resolved the issue by releasing 4.4.1.


ImportError: No module named tkinter

I installed it with through pip
sudo pip install cleangit

And got
$ clean-git
Traceback (most recent call last):
  File "/usr/local/bin/clean-git", line 3, in <module>
    from cleangit import main
  File "/usr/local/lib/python2.7/dist-packages/cleangit/main.py", line 5, in <module>
    import tkinter
ImportError: No module named tkinter

I got python3-tk and python-tk packages already installed.

I was able to run the app by cloning the repo and run
git clone git@github.com:guillaumevincent/clean-git.git
cd clean-git
python3.5 clean-git


[systemctl] Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined

EdgeDB Version: 1.0-dev.6244+ff49205
OS Version: Linux vultr 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux

Steps to Reproduce:

Run the command edgedb instance start perfect_stack

[systemctl] Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using<EMAIL_ADDRESS>--user to connect to bus of other user) edgedb error: service start failed: exit status: 1 (command-line: "systemctl" "--user" "start"<EMAIL_ADDRESS>

@tailhook @fantix

Moving to the CLI repo.


ActiveStorage does not respond to expiring_url

Problematic line: https://github.com/spree-contrib/spree_digital/blob/31f31d6ad592e361816bb1b9dddbed215996da58/app/controllers/spree/digitals_controller.rb#L7
2.7.1 :004 > digital.attachment.expiring_url
  ActiveStorage::Attachment Load (0.9ms)  SELECT `active_storage_attachments`.* FROM `active_storage_attachments` WHERE `active_storage_attachments`.`record_id` = 1021 AND `active_storage_attachments`.`record_type` = 'Spree::Digital' AND `active_storage_attachments`.`name` = 'attachment' LIMIT 1
  ActiveStorage::Blob Load (0.6ms)  SELECT `active_storage_blobs`.* FROM `active_storage_blobs` WHERE `active_storage_blobs`.`id` = 6585 LIMIT 1
Traceback (most recent call last):
        1: from (irb):4
NoMethodError (undefined method `expiring_url' for #<ActiveStorage::Attached::One:0x00001256bd908050>)

hey, stumbled upon this issue, are there any plans or estimations on fixing it?


display all entities

the .json file needs fixing

https://github.com/PrismarineJS/entity-model-extractor

missing entity area_effect_cloud
missing entity end_crystal
missing entity falling_block
missing entity giant
missing entity illusioner
missing entity item
missing entity item_frame
missing entity lightning_bolt
missing entity furnace_minecart
missing entity spawner_minecart
missing entity painting
missing entity tnt
missing entity spectral_arrow
missing entity trader_llama

Several of these are Java only: how are we going to fix them?

writing the model manually ? we need to find the model somehow
but for example I'd expect item to be available (that's the entity when you dig a block)

ah actually, I guess item is completely dynamic because it depends on the item ?


Razor Server Crashed 5 times in the last X seconds

I've been using VSCode with razor, and on occasion all intelisense fails to run and I eventually get a crash message.
The below are the crash logs for the program:

Razor.VSCode version 1.0.0-alpha3-20190627.5
Razor's trace level is currently set to 'Off'

To change Razor's trace level set 'razor.trace' to 'Off', 'Messages' or 'Verbose' and then restart VSCode.
To report issues invoke the 'Report a Razor issue' command via the command palette.

Unhandled Exception: System.InvalidOperationException: 'StartWorkTimer' must be called on the foreground thread.
at Microsoft.CodeAnalysis.Razor.ForegroundDispatcher.AssertForegroundThread(String caller)
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.StartWorkTimer() in //src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 93
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.WorkTimer_Tick(Object state) in //src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 211
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 6:59:03 AM] Connection to server got closed. Server will restart.
[Error - 6:59:06 AM] Request textDocument/completion failed.
Message: Internal Error - OmniSharp.Extensions.JsonRpc.Server.JsonRpcException: Exception of type 'OmniSharp.Extensions.JsonRpc.Server.JsonRpcException' was thrown.
at OmniSharp.Extensions.JsonRpc.ResponseRouter.SendRequest[T,TResponse](String method, T params)
at Microsoft.AspNetCore.Razor.LanguageServer.DefaultRemoteTextLoaderFactory.RemoteTextLoader.LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) in //src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultRemoteTextLoaderFactory.cs:line 73
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultProjectSnapshotManager.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextVersionAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.ComputedStateTracker.GetGeneratedOutputAndVersionCoreAsync(DefaultProjectSnapshot project, DocumentSnapshot document)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultDocumentSnapshot.GetGeneratedOutputAsync()
at Microsoft.AspNetCore.Razor.LanguageServer.Completion.RazorCompletionEndpoint.Handle(CompletionParams request, CancellationToken cancellationToken) in //src/Microsoft.AspNetCore.Razor.LanguageServer/Completion/RazorCompletionEndpoint.cs:line 100
at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next)
at OmniSharp.Extensions.LanguageServer.Server.LspRequestRouter.RouteRequest(IHandlerDescriptor descriptor, Request request)
Code: -32602
Unhandled Exception: System.AggregateException: One or more errors occurred. (Exception of type 'OmniSharp.Extensions.JsonRpc.Server.JsonRpcException' was thrown.) ---> OmniSharp.Extensions.JsonRpc.Server.JsonRpcException: Exception of type 'OmniSharp.Extensions.JsonRpc.Server.JsonRpcException' was thrown.
at OmniSharp.Extensions.JsonRpc.ResponseRouter.SendRequest[T,TResponse](String method, T params)
at Microsoft.AspNetCore.Razor.LanguageServer.DefaultRemoteTextLoaderFactory.RemoteTextLoader.LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) in //src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultRemoteTextLoaderFactory.cs:line 73
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultProjectSnapshotManager.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextVersionAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.ComputedStateTracker.GetGeneratedOutputAndVersionCoreAsync(DefaultProjectSnapshot project, DocumentSnapshot document)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultDocumentSnapshot.GetGeneratedOutputAsync()
at Microsoft.AspNetCore.Razor.LanguageServer.BackgroundDocumentGenerator.Timer_Tick(Object state) in //src/Microsoft.AspNetCore.Razor.LanguageServer/BackgroundDocumentGenerator.cs:line 212
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.TryGetTextVersion(VersionStamp& result)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextVersionAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.ComputedStateTracker.GetImportsAsync(ProjectSnapshot project, DocumentSnapshot document)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.ComputedStateTracker.GetGeneratedOutputAndVersionCoreAsync(DefaultProjectSnapshot project, DocumentSnapshot document)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultDocumentSnapshot.GetGeneratedOutputAsync()
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.PublishDiagnosticsAsync(DocumentSnapshot document) in //src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 156
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.WorkTimer_Tick(Object state) in //src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 196
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 6:59:07 AM] Connection to server got closed. Server will restart.
Unhandled Exception: OmniSharp.Extensions.JsonRpc.Server.JsonRpcException: Exception of type 'OmniSharp.Extensions.JsonRpc.Server.JsonRpcException' was thrown.
at OmniSharp.Extensions.JsonRpc.ResponseRouter.SendRequest[T,TResponse](String method, T params)
at Microsoft.AspNetCore.Razor.LanguageServer.DefaultRemoteTextLoaderFactory.RemoteTextLoader.LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) in //src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultRemoteTextLoaderFactory.cs:line 73
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultProjectSnapshotManager.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextVersionAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.ComputedStateTracker.GetGeneratedOutputAndVersionCoreAsync(DefaultProjectSnapshot project, DocumentSnapshot document)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultDocumentSnapshot.GetGeneratedOutputAsync()
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.PublishDiagnosticsAsync(DocumentSnapshot document) in //src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 156
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.WorkTimer_Tick(Object state) in /_/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 196
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 6:59:12 AM] Connection to server got closed. Server will restart.
Unhandled Exception: OmniSharp.Extensions.JsonRpc.Server.JsonRpcException: Exception of type 'OmniSharp.Extensions.JsonRpc.Server.JsonRpcException' was thrown.
at OmniSharp.Extensions.JsonRpc.ResponseRouter.SendRequest[T,TResponse](String method, T params)
at Microsoft.AspNetCore.Razor.LanguageServer.DefaultRemoteTextLoaderFactory.RemoteTextLoader.LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) in //src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultRemoteTextLoaderFactory.cs:line 73
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultProjectSnapshotManager.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextVersionAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.ComputedStateTracker.GetGeneratedOutputAndVersionCoreAsync(DefaultProjectSnapshot project, DocumentSnapshot document)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultDocumentSnapshot.GetGeneratedOutputAsync()
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.PublishDiagnosticsAsync(DocumentSnapshot document) in //src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 156
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.WorkTimer_Tick(Object state) in /_/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 196
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info  - 6:59:16 AM] Connection to server got closed. Server will restart.
Unhandled Exception: OmniSharp.Extensions.JsonRpc.Server.JsonRpcException: Exception of type 'OmniSharp.Extensions.JsonRpc.Server.JsonRpcException' was thrown.
at OmniSharp.Extensions.JsonRpc.ResponseRouter.SendRequest[T,TResponse](String method, T params)
at Microsoft.AspNetCore.Razor.LanguageServer.DefaultRemoteTextLoaderFactory.RemoteTextLoader.LoadTextAndVersionAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken) in //src/Microsoft.AspNetCore.Razor.LanguageServer/DefaultRemoteTextLoaderFactory.cs:line 73
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultProjectSnapshotManager.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.GetTextVersionAsync()
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DocumentState.ComputedStateTracker.GetGeneratedOutputAndVersionCoreAsync(DefaultProjectSnapshot project, DocumentSnapshot document)
at Microsoft.CodeAnalysis.Razor.ProjectSystem.DefaultDocumentSnapshot.GetGeneratedOutputAsync()
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.PublishDiagnosticsAsync(DocumentSnapshot document) in //src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 156
at Microsoft.AspNetCore.Razor.LanguageServer.RazorDiagnosticsPublisher.WorkTimer_Tick(Object state) in /_/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorDiagnosticsPublisher.cs:line 196
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Error - 6:59:20 AM] Connection to server got closed. Server will not be restarted.
If necessary/there is a private means to do so, I can send the file the program is crashing on to anyone who is part of the project.

@tjbortz1s thanks for the crash report! This looks to be identical to https://github.com/aspnet/Razor.VSCode/issues/372
Going to close this for now so we can track the work over there.

Sounds great, thank you for your work on this project, it makes life a lot easier for me and I'm sure for a ton of other people as well.


Implement a Service Bus Connection String Parser

Summary
Service Bus allows for authorization using a shared key and shared access signature that is supported using a service-specific shared access key credential.  It is common for the shared key or shared access signature to be passed with the service endpoint and entity path as part of a connection string.  To align with best practices, we would like to guide library users to down the path of using credentials for authorization within production applications.   In order to assist with transforming a connection string for use with credential-based client creation, a parsing utility is desirable.
Scope of Work

Design and implementation of a means for parsing a Service Bus connection string into its components.  These should include:

FullyQualifiedNamespace
Endpoint
EntityPath
SharedAccessSignature
SharedAccessKeyName
SharedAccessKey

The parser should adhere to the current validation rules for connection string correctness.  For example:

Only one form of authorization should be allowed (shared key or shared access signature)
The Endpoint must be present
The EntityPath is optional
All tokens which are present must have an associated value

The host name of the Endpoint should be reflected as the FullyQualifiedNamespace.

Unknown tokens in the connection string are rejected or ignored; they are not reflected in the set of parsed tokens.

The parsed values should be treated as read-only, if idiomatic to the language.

The proposed surface area of the parser, as well as any associated types that change the public API surface should be reviewed with the language architect, and approval obtained.  Full board review is not necessary.

Success Criteria

The design of a parser detailed by the scope has been completed and approved by the language architect.

The parser has been implemented according to the design and is exposed as part of the public API of the library.

The tests necessary for its validation have been created or adjusted and pass reliably.

The existing test suite continues to produce deterministic results and pass reliably.

References

Follow-Up: Client Creation Discussion
Client Creation Discussion

@jsquire Can you share the error message you are using so that we use similar verbiage for the below error scenarios:

Missing endpoint in connection string
Both SAS and key present in connection string
No SAS or Key name, but key present in connection string

@jsquire Can you share the error message you are using so that we use similar verbiage for the below error scenarios:

We're using the same messages that we currently do during parsing.

Missing endpoint in connection string
No SAS or Key name, but key present in connection string

The connection string used for an Event Hub client must specify the Event Hubs namespace host, and either a Shared Access Key (both the name and value) or Shared Access Signature to be valid. The path to an Event Hub must be included in the connection string or specified separately.

Both SAS and key present in connection string

The authorization for a connection string may specify a shared key or pre-computed shared access signature, but not both.  Please verify that your connection string does not have the SharedAccessSignature token if you are passing the SharedKeyName and SharedKey.
Event Hub name specified in the connection string and also the constructor
The path to an Event Hub may be specified as part of the connection string or as a separate value, but not both.  Please verify that your connection string does not have the EntityPath token if you are passing an explicit Event Hub name.
The endpoint token exists, but it's not a well-formed URL (or we couldn't override the scheme due to the weird formatting)
The endpoint address could not be parsed; it was either malformed or not using the sb:// scheme.

I am thinking of going with the below for JS:

Connection string should have the Endpoint.
Connection string cannot have both SharedAccessSignature and SharedAccessKey details.
Connection string with SharedAccessKey should have SharedAccessKeyName as well.
Connection string with SharedAccessKeyName should have SharedAccessKey as well.

Done with #11949


Simulator charging station remote start request getting rejected by the ev-server

Hello team
i am trying to run ev-simulator to test
but getting the following error

logs

what may be the possible reason ?

When you do a remote start, the simulator should send an Authorize OCPP message to the backend to check the RFID card.
Is there any other logs?


initial queries mobile css fixes, remove outer anchor tag from report…

addressing this story:
https://www.pivotaltracker.com/story/show/150268144

fixing mobile styling for initial queries page
remove outer anchor tag from reports column - not meant to be there

needed for this release

need to merge this css styling for testing.  merging it now.


refactor(restclient): do not require input argument on fully optional interface

Current dependencies on/for this PR:

main

PR #13

PR #14

PR #15   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: ⏳ Queued to merge
This pull request is currently queued to be merged as part of a stack.
This comment was auto-generated by Graphite.

Job Reference: 3k1UzKXl5ZWLtCzZn7QI


Feature Request:  Enable HTTP_PROXY Configuration as part of deamon json options

Currently you can utilize GOLang's support for HTTP_PROXY/HTTPS_PROXY environment variables but they must be configured in the session/context that the daemon is launched under.
It would be valuable to be able to configure these as part of the daemon JSON such that you can deploy all of your engine's with the same configuration without needing additional configuration scripts or systemd/windows configuration.
One approach for this might be to read the values in at launch time and set the appropriate locally scoped environment variables or there may be other GoLang support for these options as this point.

ah, yes, I've been thinking about this as well (for the same reason); not sure what the right solution would be. Thanks for opening :smile:


Uncaught TypeError in main.py line 172

Aider version: <module 'aider.version' from 'C:\Users\Rishub\anaconda3\envs\aider\Lib\site-packages\aider\version.py'>
Python version: 3.11.9
Platform: Windows-10-10.0.22631-SP0
Python implementation: CPython
Virtual environment: No
OS: Windows 10 (64bit)
Git version: git version 2.46.1.windows.1
An uncaught exception occurred:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "__main__.py", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 428, in main
    launch_gui(argv)
  File "main.py", line 172, in launch_gui
    if "-dev" in __version__:
       ^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'module' is not iterable

Thanks for trying aider and filing this issue.
This looks like a duplicate of #1502. Please see the comments there for more information, and feel free to continue the discussion within that issue.
I'm going to close this issue for now. But please let me know if you think this is actually a distinct issue and I will reopen this issue.


fixed typo in install-sdk.md

Fixed typo in the install-sdk.md page.
QUery -> Query

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

ID: d8894707-356e-6c86-76fd-c8d6d6c199b6
Version Independent ID: a4ab5009-5153-df99-e515-8c4c2e4949d5
Content: Power Query SDK overview - Power Query
Content Source: powerquery-docs/install-sdk.md
Service: powerquery
GitHub Login: @ptyx507x
Microsoft Alias: miescobar

@DougKlopfenstein, @bezhan-msft,
Can you review the proposed change?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Explore backup tool alternatives

https://restic.net/ or https://github.com/backup-manager/backup-manager

No need, currently all is ok.


[ci skip] adding user @carlodri

Hi! This is the friendly automated conda-forge-webservice.
I've added user @carlodri as instructed in #13.
Merge this PR to add the user. Please do not rerender this PR or change it in any way. It has [ci skip] in the commit message to avoid pushing a new build and so the build configuration in the feedstock should not be changed.
Please contact conda-forge/core to have this PR merged, if the maintainer is unresponsive.
Fixes #13

@izahn if you can merge this I can try to add the windows build

@izahn friendly ping 😊

done in #15


Change sandbox ID delimiter

The sandbox should be either without delimiters or with a delimiter that does not prevent automatic selection (via clicking). Right now when you try to select the sandbox ID in terminal/text by clicking it will only select one part of the ID.

This is a minor improvement that might not be worth prioritizing right now.


BUG: Contributor check can be false positive

Describe the bug
As https://github.com/ossf/scorecard/blob/7ce8609469289d5f3b1bf5ee3122f42b4e3054fb/docs/checks.md#contributors described, the check was meant to ensure the project was maintained by people from different orgs.
However, a single maintainer who has joined many orgs can also pass the check.
Expected behavior
Require at least three contributor from different orgs.

Duplicate of/related to https://github.com/ossf/scorecard/issues/3996

Hey @AdamKorcz and @Zxilly, my team has been looking into this bug as well. We think #1024 is a duplicate of #3996 and in turn also similar to this issue.