Fixes #1

Added tests and fix for properly decoding and encoding escaped characters

@flitbit could I please have this merged and pushed to NPM? I urgently need this in a project for work.

Fixed in version 0.3.0, added your tests to make sure. I'm baffled at how I missed this PR for so long... guess I've been busy.


multipart/form-data content-type boundary and form

I've fixed error occurred while schema.allOf.$ref in paths parameters


chore: added cypress/screenshots to git ignore

Summary
Cypress snapshots were showing up in my git changes, so adding the folder to the .gitignore.

Test plan

This doesn't changed code, so all existing previews should deploy and tests pass.

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Standard checks:

[ ] Check the Deploy Preview's Demo site for your PR's functionality
[ ] Add docs when necessary

🧪 Once merged, make sure to update the version if needed and that it was published correctly.

LGTM, but as sand: is there any way to turn off these screenshots?

You can. It's a setting in the Cypress configuration file. It's on to capture errors as screenshots. You can have a different configuration for local development if you want to get rid of them for local dev. We can do that, but it'd mean creating separate config files for each demo site locally and when you call them, load a config for the development environment.
Here's an example of how to run it based on the environment variable. https://github.com/forem/forem/blob/main/cypress/plugins/index.js

I think the screenshots are helpful in general. The problem is ones like this, where they're failing for some weird reason. I've seen this before, but don't know why it happens. Why is it showing app.netlify.com, instead of the demo site?

Why is it showing app.netlify.com, instead of the demo site?
This is because of the cancelled build previews (due to the netlify.toml ignore, as we were just talking about on slack)
If the build fails, then the action gets passed app.netlify.com instead of the actual build preview url.


Duplicate key error

File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/documentcloud/client.py", line 179, in raise_for_status
raise APIError(response=exc.response)
documentcloud.exceptions.APIError: 400 - ["duplicate key value violates unique constraint "entities_entityoccurrence_document_id_entity_id_3be00643_uniq"\nDETAIL:  Key (document_id, entity_id)=(***, 1013) already exists.\n"]
Probably from running the Add-On on a document that already has entities. Need to check for the existence of these entities and clear. Or clear automatically, or provide a checkbox to clear old entities.

I created a method- get_existing_entities(), and then explicitly exclude these from the post call @mitchelljkotler It's  currently merged, and works, but just for your situational awareness @mitchelljkotler


Post error notifications with another ID if ongoing channel is disabled.

This should fix the issue where error notification won't cancel once error is fixed.
How to test:

install
open app and then disable the ongoing notification from system settings
disabled bluetooth (see error notifcation show up)
enable bluetooth again → error notification should disappear

Fixes https://github.com/covid19cz/erouska-android/issues/160


[Dpg][Bug] An item with the same key has already been added reported for HealthInsights

@doc("""
Resource is the ancestor of DomainResource from which most resources are derived. Bundle, Parameters, and Binary extend Resource directly.
Based on [FHIR Resource](https://www.hl7.org/fhir/r4/resource.html
""")
model Resource is Record<unknown> {
  @doc("The type of resource")
  resourceType: string;

  @doc("Resource Id")
  id?: string;

  @doc("Metadata about the resource")
  meta?: Meta;

  @doc("A set of rules under which this content was created")
  implicitRules?: fhirUri;

  @doc("Language of the resource content")
  language?: string;
}

@doc("""
A resource with narrative, extensions, and contained resources
Based on [FHIR DomainResource](https://www.hl7.org/fhir/domainresource.html)
""")
@discriminator("resourceType")
model DomainResource extends Resource {
  @doc("Text summary of the resource, for human interpretation")
  text?: Narrative;

  @doc("Contained, inline Resources")
  contained?: Array<Resource>;

  @doc("Additional Content defined by implementations")
  extension?: Array<Extension>;

  @doc("Extensions that cannot be ignored")
  modifierExtension?: Array<Extension>;
}

The root cause of this issue is that
The discriminator is not defined on the model with the discriminator decorator, instead, it is inherited from a base model of this model.
Swagger cannot handle this properly as well.

The same issue should also happen when we try to override a property in the derived type, such as:
model Foo
{
p: int64;
}

model Bar extends Foo {
p: int32;
}

because tsp supports we could narrow down the type of a property in derived types.

This issue also involves with the issue of usage.
For instance, with this typespec:
model Base {
	name: string;
}

model Derived extends Base {
	age?: int32;
}

op Foo(@body body: Derived): Derived;

Our current behavior:

usage of Derived is roundtrip. This is expected.
usage of Base is none. This is unexpected.

Reason:
Usage is used to control our public API, including:

if the usage does not have input, the model will not have public ctors (both its ctors will be internal)
if the usage does not have input, all its properties will be generated as if they are all readonly.

Therefore the above tsp will generate these models:
public partial class Base
{
	internal Base(string name) {} // this is internal which is fine in this scenario
	internal Base(string name, IDictionary<string, BinaryData> serializedAdditionalRawData) {} // this is for deserialization, irrelevant in this case.
	public Name {get;} // this does not have setter because its usage is None.
}

Minimal tsp to reproduce this issue:
model Base
{
	kind: string;
}
@discriminator("kind")
model DiscriminatedBase extends Base {}

model Foo extends DiscriminatedBase
{
	kind: "foo";
}

op Bar(@body body: Foo): Foo;

Wouldnt the issue be resolved by spreading Base into DiscriminatedBase? Or is there a reason to define that relationship explicitly? @asaflevi-ms please let me know if this is intended

@ArcturusZhang @chunyu3 do we have an ETA for resolving this issue? The team would need to regenerate in the next couple of days to make sure they meet their arch board deadline.

Minimal tsp to reproduce this issue:
model Base
{
	kind: string;
}
@discriminator("kind")
model DiscriminatedBase extends Base {}

model Foo extends DiscriminatedBase
{
	kind: "foo";
}

op Bar(@body body: Foo): Foo;

As a workaround would the issue be resolved by spreading Base into DiscriminatedBase? Or is there a reason to define that relationship explicitly? @asaflevi-ms please let me know if this is intended

yes spread the base into discriminatedBase should workaround this issue.
ETA is end of this week

@catalinaperalta , @ArcturusZhang
I am not sure it can be resolved by spreading Base into DiscriminatorBase
I have input property:
propertyInfo : Array
or in your example:
op Bar(@body body: Base): Base
Base is a base FHIR resource, there are many FHIR resources, and since I cannot define all of them,  I created Base with additionalProperties
model Base is Record
{}
In Typespec I just defined 2-3, common resources.

@catalinaperalta , @ArcturusZhang I am not sure it can be resolved by spreading Base into DiscriminatorBase I have input property: propertyInfo : Array
or in your example: op Bar(@Body body: Base): Base
Base is a base FHIR resource, there are many FHIR resources, and since I cannot define all of them, I created Base with additionalProperties
model Base is Record {}
In Typespec I just defined 2-3, common resources.

Nevertheless now there is a linter rule warning:
model.common.fhir.resources.tsp:32:30 - warning @azure-tools/typespec-azure-core/composition-over-inheritance: Model 'DomainResource' is extending
   'FHIR.R4.Resource' that doesn't define a discriminator. If 'FHIR.R4.Resource' is meant to be used:
   - For composition consider using spread `...` or `model is` instead.
   - As a polymorphic relation, add the `@discriminator` decorator on the base model.
  > 32 | model DomainResource extends Resource {


Add paletteLabel to file nodes to make read/write more obvious

Changes the palette labels of the file nodes to read file and write file to make it clearer which is which.

Coverage decreased (-0.03%) to 67.679% when pulling f3d01798340ed7edbb4d3df60f6162d212ef434c on relabel-file-nodes into 8bf69c598a89717b4bccfe986238244df127f35f on dev.


Introducing Symfony 2

This is the first step towards the 5.x release, the introduction of the Symfony framework. The focus of this change is using Symfony over custom routing/dispatching/controller framework, reaching feature parity in a 100% backwards compatible way.
Still to do:

[x] update SAML2 lib to get better protection against Remote Entity Injection and Entity Expansion attacks
[x] create accompanying PR on OpenConext-deploy (ensure cache dirs rotate with releases) => see https://github.com/OpenConext/OpenConext-deploy/pull/22

Good amount of work you put into this. Awesome. Onwards and upwards from here! :balloon:

@rjkip please check the last commits

Lookin' good.

@rjkip Fixed the response, can I :ship: it?

:rocket::microscope:


Increased AWS retry-limit

Increased AWS_MAX_ATTEMPTS from default 2 to 20 to work around API throttling by the AWS API.

LGTM!


Watching/Joining stream by other user

Is this sample capable of allowing a user to join stream created by someone else? If no, Kindly help me with this. How I can achieve it. I have all the authorizations tuff enabled for my channel.

Hi @Anu07, IVS provides a separate SDK specifically for playback/watching streams: https://docs.aws.amazon.com/ivs/latest/userguide/player-android.html
At this time we do not support multiple users streaming to the same channel.
I'm going to close this issue, but let me know if I misunderstood your question and we can continue chatting about it here.


NAS-124111 / 24.04 / Gather system state

Context
We needed to gather zfs diff output for boot environment dataset and add them in system debug
Changes

added system_state plugin having data of zfs diff for all entries in truenas_root_ds.json with ['fhs_entry']['snap'] = True
added text file showing developer mode enabled
included /conf/truenas_root_ds.json in the debug for debugging purposes

Jira URL: https://ixsystems.atlassian.net/browse/NAS-124111


Duplicate Method Stubs: <operator.alloc>

When referring to the opencrx repository, there is some odd behaviour when considering the <operator>.alloc method/calls.
joern> cpg.method("<operator>.*").groupBy(_.name).map { case (k, v) => k -> v.size}.foreach(println)
(<operator>.shiftLeft,1)
(<operator>.greaterEqualsThan,1)
(<operator>.fieldAccess,1)
(<operator>.xor,1)
(<operator>.cast,1)
(<operator>.division,1)
(<operator>.lessEqualsThan,1)
(<operator>.logicalOr,1)
(<operator>.logicalShiftRight,1)
(<operator>.subtraction,1)
(<operator>.conditional,1)
(<operator>.plus,1)
(<operator>.equals,1)
(<operator>.postDecrement,1)
(<operator>.assignmentPlus,1)
(<operator>.logicalAnd,1)
(<operator>.or,1)
(<operator>.preIncrement,1)
(<operator>.lessThan,1)
(<operator>.throw,1)
(<operator>.minus,1)
(<operator>.greaterThan,1)
(<operator>.assignmentMultiplication,1)
(<operator>.notEquals,1)
(<operator>.multiplication,1)
(<operator>.assignment,1)
(<operator>.arithmeticShiftRight,1)
(<operator>.alloc,663)
(<operator>.modulo,1)
(<operator>.instanceOf,1)
(<operator>.postIncrement,1)
(<operator>.not,1)
(<operator>.arrayInitializer,1)
(<operator>.logicalNot,1)
(<operator>.and,1)
(<operator>.addition,1)
(<operator>.assignmentMinus,1)
(<operator>.indexAccess,1)

In short, there are 663 method nodes for <operator>.alloc. When looking at each time <operator>.alloc is called, it links to all 663 methods, e.g.,
joern> cpg.call("<operator>.alloc").head.callee(NoResolve).size
res3: Int = 663

This means bad things for the data-flow tracker, although minor returns from the call stack, it is 663 calls/tasks to generate each time. While this issue was found on javasrc2cpg, it may be linked to the MethodStubPass.
This appears mainly since these Call(<operator.alloc>) call signatures are unique, and the MethodStubPass groups calls by name, method full name, and signature. Other <operator>.* calls have empty signatures.
Removing the line that sets alloc signatures fixes this anomaly. I would first like to confirm if this is unintended or what we can do to reduce all of these excess stubs/call edges.

Having different signatures for the <operator>.alloc calls does not make sense. An empty signature is fine.

Seems that simply removing this line causes issues elsewhere, I assume it's used for type inference information. @johannescoetzee do you have time to investigate, otherwise I can dive into this and see if I can maintain all passing tests while removing signature info from this. Perhaps linking a type ref from the alloc site or something.

@DavidBakerEffendi I'll have a look.


Identity scaffolder --listFiles option doesn't work properly if default UI was already overridden

Environment: Ubuntu Linux 16.04.6 LTS, dotnet info:
.NET Core SDK (reflecting any global.json):
 Version:   2.2.105
 Commit:    7cecb35b92

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.2.105/

Host (useful for support):
  Version: 2.2.3
  Commit:  6b8ad509b6

.NET Core SDKs installed:
  2.2.105 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.0.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Steps to reproduce:

dotnet new mvc
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet aspnet-codegenerator identity -fi "Account.Login;Account.AccessDenied"
dotnet aspnet-codegenerator identity -lf

It's a simplified example; in real-world project it might be needed to scaffold another file after the initial ones are already scaffolded or overridden and one might need to consult a list of files quickly.
Expected behavior:
Scaffolder gives a list of files that it can generate.
Actual behavior:
dot_sent@sergey-pc:~/Projects/test$ dotnet aspnet-codegenerator identity -lf
Building project ...
Finding the generator 'identity'...
Running the generator 'identity'...
The below files exist. Use '--force' to overwrite: Areas/Identity/Data/testIdentityDbContext.cs
Areas/Identity/Pages/Account/AccessDenied.cshtml
Areas/Identity/Pages/Account/AccessDenied.cshtml.cs
Areas/Identity/Pages/Account/Login.cshtml
Areas/Identity/Pages/Account/Login.cshtml.cs
   at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0()
   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
   at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
   at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
RunTime 00:00:04.08
dot_sent@sergey-pc:~/Projects/test$

If I add the -f parameter, the scaffolder lists files successfully.
Additional information about the project being scaffolded, such as:
Target framework(s):
netcoreapp2.2
Package version of Microsoft.AspNetCore.App or Microsoft.AspNetCore.All (if applicable):
2.2.3 - both
Package version of Microsoft.VisualStudio.Web.CodeGeneration.Design - this may be added to your project by scaffolding:
2.2.3

@dot-sent My friend @scottaddie  and I just hit this issue in 2.2, but it looks like it's fixed in 3.0.
BTW, what a really well-written issue! Kudos!

Thanks @CamSoper - I try to report any issues in a way I would like to get some reported to me from my users :)
If this is fixed in 3.0, should this issue be closed then?

@dot-sent Let's keep it open for the moment -- It seems fixed in 3.0, but there are a bunch of issues around the identity scaffold in general that could be masking the issue (to repro in 3.0, you need to add a bunch of packages manually and it still doesn't leave you in a usable state).

@dot-sent - Can you please check with .NET Core 3.0 & see if this issue is fixed? If so, can you close this issue here?
& Thanks for such a detailed issue description.

Closing since the issue is fixed in 3.0


Use firebase storage for file upload

Use firebase storage instead of the server storage to upload the zips and icon files uploaded by the user.

Ok, so file upload works perfectly fine but there doesn't seems a way to access the uploaded files on the server from python.
@championswimmer Have you ever worked with this?

@the-dagger Why has this been closed? Is it working? If yes, how can I access zip files that have been uploaded?

I forgot to reopen this.
File retrieval has to be worked on.
Will do it after I complete #404

Okay great. I have updated the script here https://github.com/fossasia/open-event-android/pull/484. We would need to change file paths here. We can do that after file retrieval is working

I'm moving this to a later milestone for now.

@mananwason Dropping the idea of firebase for now as it will cause issues while calling the build via API.
We will directly send the data from php file to python.
Please see the appgenserver.py in #523, I have done it.


Readme improvements.

Shift Gitter badge down from heading to fix formatting on npm.
Improve phrasing of a sentence.

Merged, thanks!


add update permission to klusterlet sa

The related issues:

https://github.com/stolostron/backlog/issues/26723
https://github.com/open-cluster-management-io/registration-operator/pull/299
Signed-off-by: Yang Le<EMAIL_ADDRESS>

/test check

/retest

@elgnay  I opened another PR to fix the check problem, please help to review https://github.com/stolostron/managedcluster-import-controller/pull/196

/hold


需要目錄

https://github.com/kevingo/the-little-go-book/commit/c4c55b70f8b2483b95b79c1cc434234bcc1ba772


Error Resource Empty Path

Godot version
ERROR: Can't save resource to empty path. Provide non-empty path or a Resource with non-empty resource_path.    at: save (core/io/resource_saver.cpp:105)

System information
Ubuntu 22.10 on Thinkpad T580
Issue description
I'm getting the Error, but it doesn't say which resource is missing which path.
ERROR: Can't save resource to empty path. Provide non-empty path or a Resource with non-empty resource_path.
   at: save (core/io/resource_saver.cpp:105)

The only thing I notice is that I can't set a start animation on my Animation object.
Steps to reproduce
This is basically the problem.
Minimal reproduction project
https://github.com/Play2Learn-Org/hackerspace/tree/4da79c0fb0dfca93840fb55188b5a4cae6e84c51

You need to provide an MRP for this

@AThousandShips you mean where I just had a TODO to put a commit link, which required me to make the commit in the first place to give you the ID? Well, here you go. :)

Yes I assumed you were done when you actually made the report

The funny thing is, I'm not sure if the state in my editor is the one you have in the commit. If it really can't save my stuff in the filesystem then it only exists in my memory. I'll leave the editor running for now. Let me know if I can get some info out of that.

Could such errors occur if you have a lot of cached files laying around?
scenes/pauseblur.gdshader-7uBAzU

That temp file bug was fixed in https://github.com/godotengine/godot/pull/75074. Earlier it also leaked open file handles on every save, so running out of them might case some issues on a long running session as the process open file limit is typically pretty small (1024?).


Edit Presence and View Any Team screen not updating

We are facing issues, where the screen is not updating correctly. If users enter new data it is entered in the relevant tables but not shown in the app itself. Any ideas?

Hi there.  Can you provide more detail please?
Which version?
What screen?
Where is it not being shown?
Screenshots
Is it Dataverse for Teams?
Is it just being used in a Team or shared more widely with members outside of the team?

Hi Stuart,
it's version <IP_ADDRESS> but I have seen that there has been an update to that version 2 days ago? I will update it once more.
The screen is the "My calendar" screen and the "Pinned List" view. The rows are empty for some users although they have entered something for the next days.
We are using Dataverse for Teams and the app is used only with members of the team it was published to (10 user).
Best regards,
Markus

The update seems to have fixed the issue.


[RTM] ENH: Check for error during memory check

Should give a more helpful error message than in #485.
Any thoughts on testing this in Circle? I guess something like sudo -u unprivileged_user fmriprep-docker ...?
Closes #485.

In addition to this, it would be good to give some indication that the image is being downloaded. We could let stderr pass to the console in check_memory or add a pull step, which could either just directly output to the terminal or give some visual indication such as Downloading......DONE.

As discussed it would be good to pass the std(out/err) of docker from the wrapper to the console.

Stderr is being passed to the console. Stdout is being parsed. The stdout is the output of the command being run, stderr that of docker.
Sent on my Samsung Galaxy S® 5
-------- Original message --------
From: Chris Filo Gorgolewski<EMAIL_ADDRESS>Date: 5/1/17 5:14 PM (GMT-08:00)
To: poldracklab/fmriprep<EMAIL_ADDRESS>Cc: Christopher Markiewicz<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [poldracklab/fmriprep] [RTM] ENH: Check for error during memory check (#486)
As discussed it would be good to pass the std(out/err) of docker from the wrapper to the console.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/poldracklab/fmriprep/pull/486#issuecomment-298465767, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAFF8r4ZaV0aA_s0kdR8jUgR3hp7sC0Jks5r1nVxgaJpZM4NJHF2.

Just to clarify - if someone runs the wrapper without ever pulling the fmriprep image before they will see the docker output describing progress of downloading different layers?

Yes. It's not the pretty progress bars that Docker gives you, but it gives output. (You can come see what it looks like, if you want.)


Entanglement Metrics

Summary
Added tools for parallelizing ghz state verification circuits
Details and comments

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

let's call the folder entanglement instead of ghzconfig

Add an example jupyter notebook

Hi @RohithKarur , I made a first pass at the code. Overall it looks interesting. For now, can you consider the following:

Like you say, should consider moving many of the basic/helper functions into Terra. While the usecase you consider is in Ignis scope, I think the benefit of e.g. the paralellized creation of GHZ state is more generic than Ignis
I don't see any unit tests for the functions. Can you add?
Many mistakes/typos in the notebook, both technical and writing. For example, in definition of \rho you miss the p_i's, ket->let, Cohgerences in a section header, etc.. Can you make a second careful pass at the notebook?
At some stage we'll need to pass lint. Better to start now and get over it.

I'll be out starting Tuesday, so may get back to a detailed pass of the code only next Sunday

Hi @ajavadia , the above has some helper functions which can be helpful across Qiskit, e.g., a more hardware-efficient implementation of GHZ, several other implementations of similar circuits (see linear.py), and some other helpers. Also calculations of fidelities and Fourier analysis which are borderline Ignis. Do you think any of the above belong in Terra? If so, where?

@RohithKarur I'll try to take care of the tests - not earlier than next week though. The lint seems right now, it showed errors when I last looked for some reason

@ajavadia , the hardware-efficient GHZ is in parallelize.py actually, so worth having a look also there

I'm going to merge this onto a branch of the main repo. Then Yehuda can open a new PR to make the changes he's requesting.


Display empty string instead of  when IP opt is nil.

Fixes #13878.

this is weird and seems a regression cause I'm not experiencing the problem on 1.7.0-rc2 :/
@eolamey could you please add a integration test?

It is indeed a regression from 1.7.0-rc2, and comes from https://github.com/docker/docker/pull/13757, for which I am guilty :) The flag type was changed from flag.StringVar to opts.IPVar. On the bright side, --default-gateway doesn't work at all in 1.7.0-rc2 :)
It is not a regression in opts.IPVar per se, as there was no flag with a nil IP address before.
Should I try to add an integration test, or a unit test in opts/opts_test.go?

@eolamey unit test make sense thanks

@runcom, does this look ok to you?

Yep, assuming janky is happy this LGTM

LGTM

LGTM

cherry-picked


fix(rbac): prevent policy creation when rbac plugin is disabled

Description
Adds a new allow all permission policy that can be used to whenever the permission framework is disabled. This allows us to skip the creation of a number of resources because we load in this allow all permission policy instead of the RBAC one.
Also included is a number of other updates.

Creates a new directory called policies and moves the allow-all-policy.ts and permission-policy.ts to this directory
Cleans up the options for the PoliciesServer as there was some duplicates

/override "SonarCloud Code Analysis"


fix: Comment out skill manifest unit tests

Description
This PR comments out the unit tests in botproject that seem to make API calls to consume the manifest.
@alanlong9278 a few changes required

Let us not await on API calls in unit tests and instead just use mocked responses.
Lets not commit actual URL's to the repo.
The 10000ms waiting on the test ruins the efficiency of the test suite. Let us not force wait on the unit test beyond the default jest test timeout.

Cc @luhan2017
Task Item
#minor

Coverage decreased (-0.03%) to 56.282% when pulling 5314b4a1e59f0de9f85f84cf2834808111158d47 on fix/rogue-tests into 0e4c7613540ffc0f598d8b27802f6f4611f8e79c on main.


Add utility for explaining non-zero exit codes

The utility would have this name and type:
excuse :: Text -> ExitCode -> IO ()

If the ExitCode was an ExitFailure it would throw an exception with the given error message.  This is a simple way to provide a user-friendly error message when an external command fails.
Also, for the special case of proc and shell, you could use it on the same line as:
proc cmd args input >>= excuse msg

Since "excuse" can also be a verb with a different meaning, I think it's ambiguous in this context.

That's actually the meaning I intended: to "excuse" the subcommand's failure by providing an explanatory message

In that case, it's a superb name!

So I actually decided in #121 that the idiomatic way to do this should be:
proc cmd args input .||. die "Message"

I added an FAQ to the tutorial which explain this trick in 92ea29284a3364ce41dafd6decf56f0b425d49f0, so I will mark this fixed.


Add Contributing.md

This is a follow-up to https://github.com/jsonnext/codemirror-json-schema/pull/139#issuecomment-2326907254 that starts a rough draft of a contributing doc.
I'm still unfamiliar with the project, so please let me know if there's something I missed or anything that could be better!
Additional context
More info about CONTRIBUTING.md in the Github docs
Future possibilities
Force / warn about package managers other than pnpm
npmp has some docs around only-allow that would warn / force users to use pnpm but it seems like npm does not honor the preinstall hook so this will only work for yarn
Style guidelines
I'm not sure if there's a particular coding style that the project wants to follow but having a basic eslint (that isn't too opinionated 😄) might help. If not, maybe a small section about any guidelines you all have could be useful.

thank you @NickTomlin ! this looks like it covers everything, and great points on the follow up!
the style guide especially - @imolorhe and I have been collaborating on open source for years so we can operate with a kind of "collective intent", but yes we do need to make it more welcoming and straightforward for maintainers!

ah, one thing to add, we need to mention changeset command.

once your branch is ready, and it contains bugfixes, documentation improvements or features, run pnpm changeset add to add a changeset file, and there you can compose in markdown the entry that will be published to CHANGELOG.md


EPIC: Benchmarking

Description: We want to convert the benchmarking suite that we used for Prisma 1 to run against Prisma 2 to know where we are performance wise.
Spec:

Convert the existing benchmarking tooling to run against Prisma 2.
Explore whether we can store the results in a timescaledb
Explore whether Grafana is a good fit to visualize test results.
Make it convenient to profile applications locally, by e.g. integrating flamegraphs.
Create small reports on our findings, e.g.: Where are we worse and where are we better? Can we pinpoint the underlying issues?
Create an automated setup so that we can see the change of benchmarks over time. E.g. run them daily or on each commit or ...

Working on it.

The benchmarking tools work against prisma2.
Chose the schemaless and easier option with InfluxDB
Grafana is a beaut. Already running graphs with it.

Now for the upcoming days I plan to:

Test different scenarios against scala and rust versions
Try out different executors
Try to integrate metrics to the rust codebase so I'll see real time histograms and CPU/RAM usage
Write that report :)

Some performance tests:

Switch the global allocator from system to jemalloc, which works quite well for multi-threaded applications, but increases the binary size a bit (700kb) https://crates.io/crates/jemallocator
Switch from actix to tokio executor and see how it affects to the throughput

https://github.com/dignifiedquire/rust-gperftools

https://github.com/KDAB/hotspot/blob/master/README.md#visualize-data

The results from the benchmarks and what could we do better:
https://www.notion.so/prismaio/Benchmarking-9cfa29eb09924f39a908184a49780673

New issues from this:

Test possible slog replacements, such as tracing. We might need to write our own json output module.
Automated benchmarks. We should instrument prisma server to measure every single request and have a prometheus/grafana setup for better timescale graphs.
Threaded connection pool with poll_fn/blocking, async/await all the way up.
Never ever start a transaction if not really needed.

Should we close the epic? @janpio @mavilein

If all the work suggested here was done, this seems like a reasonable thing. But maybe @mavilein wants to add these follow up tasks.

I have created the followup tasks here:

https://github.com/prisma/prisma-engine/issues/91
https://github.com/prisma/prisma-engine/issues/92
https://github.com/prisma/prisma-engine/issues/93
https://github.com/prisma/prisma-engine/issues/94


Issue about make record editable. Need guideline.

Geoportal 1.2.7 has new function that make record editable such as record that come from upload method to editable.
but as we already know that geoportal metadata editor is not exhaustive. so some field may be not matching with geoportal editor.
Example: ISO 19115 Data XML(Upload)
<gmd:language>
  <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/php/code_list.php" codeListValue="eng">eng</gmd:LanguageCode>
</gmd:language>

But in geoportal editor, For Element:Language we accept only gco:characterstring not gmd:LanguageCode

<gmd:language>
        <gco:CharacterString>eng</gco:CharacterString>
</gmd:language>

So, I try to customize editor but I need some hint to do it.
File: XTN_Language for using in editor of 19115
<?xml version="1.0" encoding="UTF-8"?>
<!-- gmd:language -->
<g:element xmlns:g="http://www.esri.com/geoportal/gxe"
           xmlns:h="http://www.esri.com/geoportal/gxe/html"
           g:targetName="gmd:language"** g:minOccurs="0" g:maxOccurs="1"
           g:preferOpen="true" g:label="$i18n.catalog.iso19139.MD_Metadata.language"
           g:extends="$base/schema/gco/basicTypes/CharacterString_PropertyType.xml">
  <g:body>
    <g:element g:value="en"/>
  </g:body>
</g:element>

What I want is customizing this file to accept both gco:characterstring and gmd:LanguageCode like below
<g:element g:targetName="gmd:language">
  <ifsuggest name="gco:CharacterString" g:extends="...use this form.."/>
  <ifsuggest name="gmd:LanguageCode" g:extends="...use this form.."/>
</g:element>

But I don't know how to do like these on this file.
Can u show me some guideline or hint or document about what can i do with these file?
Thank you.

Hi @mariczone .  Have you taken a look at the crash course document?  https://github.com/Esri/geoportal-server/wiki/GXE-Crash-Course  it helped me create some customizations.  Hopefully it can help you too.

@MapZombie Thank you. That's what I need.


gitattributes added. Fix build on Windows

Building on Windows fails.
Fixed adding a gitattributes file.

?

Your windows build fails because autocrlf setting is true. Set autocrlf to false and windows build would work: git config --global core.autocrlf false.
The files invthis repo have correct linux line endings by default:


orderedCacheBehaviors transformation not resolved

I'm trying to update orderedCacheBehaviors while keeping existing one.
However following solution never leads to expected result. I have tried to use .apply instead, and as well go deeper to cdn -> transform -> distribution callback and tried update args there but still not success.
    const router = new sst.aws.Router("Router", {
      domain: {
        name: domain,
      },
      routes: {
        "/*": astro.url,
      },
      transform: {
        cdn(cdnArgs) {
          $concat(cdnArgs.orderedCacheBehaviors, {
            pathPattern: "/api/*",
            targetOriginId: "/*",
            compress: true,
            viewerProtocolPolicy: "redirect-to-https",
            allowedMethods: [
              "GET",
              "HEAD",
              "OPTIONS",
              "PUT",
              "PATCH",
              "POST",
              "DELETE",
            ],
            cachedMethods: ["HEAD", "GET", "OPTIONS"],
            cachePolicyId: "xyz,
            originRequestPolicyId: "abc",
          });
        },
      },
    });

Whats the error? I have it working

Ping @creaux


feat: report google drive storage quota

Description

Adds new cron job that runs after expired exports and reports if storage is over 80%
Adjusts expired exports to delete files on while condition.

Checklist

[ ] Manually tested across browsers / devices
[ ] Considered impact on accessibility
[ ] Does this PR update a package with a breaking change

:tada: This PR is included in version 1.18.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Problem permission while connected as admin

Hi,
I'm trying to link two nodes with associate_success_node, but the response of the server is
Error: You don't have permission to do that (HTTP 403).
In my worflow_job template (id:18), I have a unified_job_template(id:16) that i try to link to another unified_job_template (id:12).
I tried to execute the following commands:
$tower-cli node associate_success_node 12 16 -W 18
$tower-cli node associate_success_node 12 16
but both of those commands return the 403 error.
The user used to perform those actions is the admin user. Am I doing something wrong?
$tower-cli version
Tower CLI 3.3.0
API v2
AWX <IP_ADDRESS>
Ansible 2.7.10
Thanks

It wasn't a user permission issue but the ids used were not correct.
Problem solved


odo url list -o json will not return empty list

What is the purpose of this change? What does it change?
odo url list -o json will not return empty list
Was the change discussed in an issue?
fixes #1893

How to test changes?

Create the URL using odo url create
Check odo url list -o json, it should give output

@surajnarwade is there an open issue that this PR is addressing? Functionality LGTM :+1:
$ odo url list -o json
{"kind":"List","apiVersion":"odo.openshift.io/v1alpha1","metadata":{},"items":null}

$ odo url list
Found the following URLs for component nodejs-nodejs-ex-kyvs in application app:
NAME                           IN CONFIG     URL                          PORT
nodejs-nodejs-ex-kyvs-8080     Present       <not created on cluster>     8080
To create URLs on the OpenShift Cluster, please use `odo push`
nodejs-ex - master! $ cd $GOPATH/src/github.com/openshift/odo

# After building odo from this PR

$ odo url list -o json
{"kind":"List","apiVersion":"odo.openshift.io/v1alpha1","metadata":{},"items":[{"kind":"url","apiVersion":"odo.openshift.io/v1alpha1","metadata":{"name":"nodejs-nodejs-ex-kyvs-8080","creationTimestamp":null},"spec":{}}]}

$ odo url list
Found the following URLs for component nodejs-nodejs-ex-kyvs in application app:
NAME                           IN CONFIG     URL                          PORT
nodejs-nodejs-ex-kyvs-8080     Present       <not created on cluster>     8080
To create URLs on the OpenShift Cluster, please use `odo push

# After doing odo push

$ odo url list
Found the following URLs for component nodejs-nodejs-ex-kyvs in application app:
NAME                           IN CONFIG     URL                                                                      PORT
nodejs-nodejs-ex-kyvs-8080     Present       http://nodejs-nodejs-ex-kyvs-8080-app-myproject.<IP_ADDRESS>.nip.io     8080

$ odo url list -o json | jq .
{
  "kind": "List",
  "apiVersion": "odo.openshift.io/v1alpha1",
  "metadata": {},
  "items": [
    {
      "kind": "url",
      "apiVersion": "odo.openshift.io/v1alpha1",
      "metadata": {
        "name": "nodejs-nodejs-ex-kyvs-8080",
        "creationTimestamp": null
      },
      "spec": {
        "host": "nodejs-nodejs-ex-kyvs-8080-app-myproject.<IP_ADDRESS>.nip.io",
        "protocol": "http",
        "port": 8080
      }
    }
  ]
}

@surajnarwade Please add PR description or at least link to the issue?

@dharmit , I have updated the description with respective issue :smile:

replaced by https://github.com/openshift/odo/pull/2034
/close


Save literals to a file while merging the snapshots

Add command line options to snapshot merge:
--save-literals-list-format
--save-literals-c-format
JerryScript-DCO-1.0-Signed-off-by: Tamas Zakor<EMAIL_ADDRESS>

This patch looks like an API change. Is this flagged as one?


Google Spreadsheets tests refactoring

At the Image 1 is shown work of application with Google Spreadspeets component in "real-life"-mode

Image 1 - Real work
Tests before (link side) and after (right side) this PR are shown at the Image 2

Image 2 - Tests changes
Advantages of new schema:

Where are no unnecessary dependencies.
Dependencies Citrus Framework, Spring Security, AssertJ are used by embedded server. These dependencies are test-scoped and were used only to mock remote Google Services. This is not necessary: Google Api Client itself supports test-mode.
OAuth2 realization not necessary and removed.
OAuth2 Mock server is build with Spring Security OAuth library which is deprecated. Implementing new OAuth2 Mock server using new Spring component is difficult because required profound knowledge of OAuth2 protocol. And this is not necessary ;) -- Google Api Client library makes this work for us.

(!) Not solved problem: both schemas - old and new - have no control of Sheets API change. If this API changes, component will work in corrupted mode. Make this check is possible with analysis of Sheets API Schema, but this aspect is out of scoped for this PR and will stay for future.

Components tested:
Total 	Tested 	Failed ❌ 	Passed ✅
1 	1 	1 	0

It seems to be failing due to checkstyle issues.
components-camel-google.log

It seems to be failing due to checkstyle issues.

Yes, you  are right. Some conventional things were forgotten. Solved now


History substring search in PowerShell

ctrl+r is not enough

https://www.damirscorner.com/blog/posts/20211119-PowerShellModulesForABetterCommandLine.html

https://github.com/PowerShell/PSReadLine/blob/33b74db80d142df7ba3b1302cc4919b5caaf9c76/PSReadLine/SamplePSReadLineProfile.ps1 👁


source_location in error codes

Error assignments should use a macro that also sets the source_location

We have this now
#define BOOST_URL_ERR(ev) (::boost::system::error_code( (ev), [] { \
        static constexpr auto loc(BOOST_CURRENT_LOCATION); \
        return &loc; }()))


Job #7855 - Modified GPS Watch model launch to support both Windows a…

…nd Linux sockets and threads.

Lee,
I pulled the branch to try this out.  I think a few changes are needed before it is promoted.

The build configuration "Linux_Release" needs to be renamed to "Release_Linux" to be consistent with the 3 other build configs
The README file inside the project needs to be updated to reflect the changes you've made.  Specifically, in the build instructions it needs to tell the user how to change the build configuration from the default (Debug_Windows) to another they desire when running on Linux.

Made the modifications per the review comments.

Merged patch.


[W9.8][F11-B3] iungo

Ready for review.

Ready for review.

Add user stories, use cases, NFR, and glossary.
Enhanced UI look
Add new test case for added enhancements

PS: Set homepage enhancement was mistakenly approved and merged for this week's LO, as it was supposed to be for next week, but since there was no adverse effects we are keeping it.

I only see commit from @karrui. I have reviewed them. Have you merged all the commits? @yewshengkai where are your v1.1 commits?

@cmkumar87 Sorry, I have merged them in!

Ready for review.
Tagged v1.2.0

Add sort functionality
Enhanced find functionality to find by other parameters
Include new test cases for the enhancements
Update documentation for sort and set homepage functionalities
Refined UI look

@yewshengkai Please do add more if I missed out some things.

6.Update documentation for find and findany functionalities
7. Add remark field

Add  "about" command

Ready for review.
v1.3.0 is released! New features in v1.3.0:

Ability to set avatar for your contacts!
Theme selector (3 available themes: default, black, or blue!)

@yewshengkai Add relevant stuff if I've missed any


Update codeql.yml

Add dependencies to build plugins and enable experimental

Thanks. It will cover more of the codebase.


Update doc / sample to demonstrate pipeline webhook integration

Update docs to use the secure end point and talk about the new webhook CLI.

Will be handled as part of the on-boarding issue.


Document that we don't support the compatibility with non-Koalas APIs yet.

Seems like people want to convert their codes directly from pandas to Koalas. One case I often observe is, they want to convert the codes that works together with other Python standard functions such as max, min, or list/generator comprehensions, e.g.)
import pandas as pd
data = []
for a in pd.Series([1, 2, 3]):
    data.append(a)

pd.DataFrame(data)

In Koalas, such example does not work. We should preemptively document and guide users to stick to Koalas APIs only.

@beobest2 would you be interested in this?

@HyukjinKwon Sure, let me try. thank you

@HyukjinKwon
I have written the document below, does this match your intentions?
If not, please understand my lack of understanding.
===
FAQ
[Can I use the code used for Pandas as is?]
Replacing the Pandas module with Koalas works fine for most.
However, some compatibility with non-Kalas APIs is not yet supported.
Koalas cannot be used with other Python standard functions like max, min and sum or list / generator comprehensions.
Therefore, for the same operation, it should be changed as below:

If you want to get max, min, and sum values,
you can use the functions provided by Koalas instead of the Python standard functions.

>>> max(pd.Series([1, 2, 3]))
3
>>> min(pd.Series([1, 2, 3]))
1
>>> sum(pd.Series([1, 2, 3]))
6
>>>
>>> ks.Series([1, 2, 3]).max()
3
>>> ks.Series([1, 2, 3]).min()
1
>>> ks.Series([1, 2, 3]).sum()
6

If you want to use list / generator comprehensions, you can use Numpy object with to_numpy().

>>> import pandas as pd
>>> import databricks.koalas as ks
>>>
>>> data = []
>>> for a in pd.Series([1, 2, 3]):
...     data.append(a)
...
>>> for a in ks.Series([4, 5, 6]).to_numpy():
...     data.append(a)
...
>>> data
[1, 2, 3, 4, 5, 6]

===
PS. I am not sure where to include the guide documentation. (Whether to add to the "FAQ" or separately to the "User Guide")

I think we should better move them to Best Practice. I think we could rephrase, for example as below. Feel free to reword or rephrase.
Title: Use Koalas APIs directly whenever possible
Contents:
While Koalas has similar APIs with pandas, some APIs are not explicitly supported. For example, Python built-in functions such as min, max, etc. require the given argument to be iterrable. Koalas does not implement __iter__() yet to prevent users to collect all data into the client (driver) side from the cluster. See the example below:
>>> import pandas as pd
>>> max(pd.Series([1, 2, 3]))
3
>>> min(pd.Series([1, 2, 3]))
1
>>> sum(pd.Series([1, 2, 3]))
6

pandas dataset live in the local, iterable ... blah blah ...
>>> import databricks.koalas as ks
>>> ks.Series([1, 2, 3]).max()
3
>>> ks.Series([1, 2, 3]).min()
1
>>> ks.Series([1, 2, 3]).sum()
6

Koalas performes it in a distributed manner.. blah blah
... Another common pattern from pandas users is to rely on list or generator comprehensions ...:
>>> import pandas as pd
>>> data = []
>>> pser = pd.Series([1, 2, 3])
>>> for v in pser:
...     data.append(v + 1)
>>> pd.Series(data)

In Koalas, you can do it via:
>>> import databricks.koalas as ks
>>> kser = ks.Series([1, 2, 3])
>>> kser + 1  # or kser.apply example? or kdf.map_in_pandas example?

In case of NumPy universial functions, they are supported and can be naturally used in most cases. -> it was added https://github.com/databricks/koalas/pull/1096 https://github.com/databricks/koalas/pull/1106 https://github.com/databricks/koalas/pull/1128 FYI

You can open a PR and we can iterate the review for better trackability.

okay~ I'll open a PR. thank you


Reduce GRIB handle size stored inside NumpyFieldList metadata object

If we create a new NumpyFieldList with the following code:
# f is a GribField
vals_new = f.values + 1
md_new = f.metadata().override(shortName="pt")
ds_new = FieldList.from_numpy(vals_new, md_new)

then md_new inside the new NumpyFieldList stores a GRIB handle cloned from the handle in the original GRIB field. However, all field value related access for the new field is served from the vals_new array, so the data section in the handle is unused and unnecessarily uses up potentially quite a lot of memory.
The idea is that once the NumpyFieldList is created the size of the GRIB handles in it should be reduced as much as possible.

This issue is now not relevant due the developments in #278


Context Menu does not use selected text

What happened?
i select text and choose something from the context menu, but it doesn´t get included in my prompt, here´s a short video:
https://www.youtube.com/watch?v=5gvoPaKfHFU
my version:
PhpStorm 2024.1.1
Build #PS-241.15989.102, built on April 23, 2024
Runtime version: 17.0.10+1-b1207.14 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0

nothing special here:

is {{selectedCode}} the correct placeholder ? i didn´t change anything here.
Relevant log output or stack trace
No response
Steps to reproduce
select any text and choose an option from the context menu
CodeGPT version
2.7.1-241
Operating System
Windows

I have that problem for a while now, current version is 2.7.1-241.
No errors, just that nothing is happening when you want to use a selected text from your code.

I have 2.8.0 and 100% same problem in PhpStorm 2024.1.1 and 2024.1.3
Btw in PyCharm it works fine.. It seems only PhpStorm have this issue
Nothing after click something from the context menu! I can chat with my local model fine without context menu... But anyway plugin is useless for me at this case

2.6.0 plugin version work with PHPStorm 2024.1.3 but... After 2.6.3 and up to 2.8.0 I too have this problem


bytes API

Most (all?) of the functions in this crate don't require any of the invariants of a str. They all take in the &str and then immediately cast it to bytes.  There are some use cases where it would be beneficial to operate over bytes instead of strings. This can because you don't want to run UTF-8 validation on some stream of bytes, or may not care if it is valid UTF-8. Or in my case I need the ability to take fixed sized chunks of memory and count things like starts or characters or linefeeds. The beginning and end of the chunk may not be a char boundary. This would allow this crate to be used in more places where currently I am using bytecount because it operates on byte slices.
Would you be willing to add a bytes API to this crate? I would do the implementation work if you provide the direction you want to take. I can think of two ways to handle this:
1 - change the public methods to take impl AsRef<[u8]>
This has the advantage of making all the existing call sites work correctly (since &str implements that trait). I think this would technically make it non-breaking change. But it also allows passing anything that can AsRef to a byte slice, which would include String, Vec<u8>, and of course &[u8].
2 - add a seperate _byte version of each function
This would allow the current functions to remain unchanged (and concrete) while still exposing a byte API. These could even be put in a separate module like the regex crate does. I am less a fan of this because it makes the public API surface larger.

In theory I think this is a good idea, yeah.  But the tricky part isn't choosing the API surface (I'm fine with either of the approaches you outlined).  It's in determining what semantics we can/should guarantee with non-utf8 byte slices.
For example, the current implementation of chars::count() works by counting the bytes that don't match the required pattern for the start byte of a code point, and then subtracting that from the total byte count.  This is really fast, and switching to another approach would likely harm performance.  But for non-utf8 conformant byte slices this could lead to some pretty unintuitive behaviors, where e.g. things that aren't full code points get counted as such.
Additionally, even if we're okay with some weird semantics, I'm concerned about committing to those semantics because we may discover other faster approaches in the future that work identically for &str but change the semantics for arbitrary &[u8].
On possibility would be to say, "The semantics are only guaranteed for full, valid utf8 data."  But that wouldn't help your use case where the beginning and end of the chunk may not be a char boundary.

I have been thinking about your question regarding semantics, and I feel like I have a better answer. The functions in this crate are broken into two "types": counting and indexing. Let's start with counting.
counting
The counting functions are the ones that really benefit from operating over bytes slices because it is a monoid homomorphism. This means that you do interesting things like compute it in parallel or distribute it in fixed sized chunks. Essentially this means that this property holds true.
count(slice[a..c]) == count(slice[a..b]) + count(slice[b..c])

My desire for bytes API semantics would be to guarantee the homomorphic property even if you don't slice it on char boundaries. Conveniently this already how the code works today (though you could still change the way the code handles characters and uphold this property). This would let you grab arbitrary chunks of data (maybe from a file reader or stream) and count something and know that you will get the same answer without trying to handle all the edge cases.
Now I think it would be worth clarifying that this is only valid for slices of well-formed UTF-8. If you passed in random bytes, you have no guarantees.
indexing
I have been thinking more about the indexing API's and I don't think they would benefit from using bytes. For one thing, There are some weird semantics when you split characters. This is because these methods are relying on certain invariants of the str type. For example consider this code:
let s = "せ";
let b = s.as_bytes()[..2]; // split the first char
let i = chars::from_byte_idx(b, 2);
// i = 1

This will return that the byte indexing of 2 is char index 1, which is not true. It is still part of char 0, but the code is assuming that the end of the slice is a complete character. However if you slice on bytes you can no longer rely on that property. It also does not really compose with other methods when you split characters. Here is another example of problematic edge cases with indexing:

let s = "せか";
let b1 = s.as_bytes()[..4]; // split the second char
let b2 = s.as_bytes()[4..];
let count = chars::count(b1); // returns 2
let idx = chars::from_byte_idx(b2, 1);
let full_idx = chars::from_byte_idx(s, b1.len() + 1);
let compose_idx = count + idx;

full_idx will return 1 but compose_idx will return 2. But you only get this mismatch when you split characters. It works correctly with str.
conclusion
Due to all the semantic issue with indexing partial characters, I don't think that would be a good thing for this library to support. But I do think byte slices with the counting API's would be very valuable. This would eliminate a need for the bytecount crate but also provide a reliable guarantee.

Thanks for the additional thoughts, and the thoughtful writeup!
However, I've been thinking about this more, and I don't think I want to support byte slice APIs in str_indices after all.  My rationale is threefold:

This crate explicitly targets only valid, well-formed utf8 data.  Handling arbitrary byte sequences is out of scope.
So that only leaves the split-mid-codepoint use case that you outlined.  However, ensuring that splits only happen at char boundaries is both fast and not especially difficult, so that seems like a pretty minor burden to place on client code.
The benefit of imposing that minor burden is that the whole question of what semantics arbitrary byte slices should have simply disappears.  And as a bonus, the API surface area is both smaller and enforces its invariants statically.

In short, I pretty much only see drawbacks to adding byte slice support, with very little practical benefit within str_indices' intended scope.

This would let you grab arbitrary chunks of data (maybe from a file reader or stream) and count something and know that you will get the same answer without trying to handle all the edge cases.

I think the file reader is a really good example of where this isn't nearly as useful as it sounds.  If you're reading utf8 data from a file, you need to validate that data at some point regardless, which effectively requires finding valid char boundaries.  And at that point, you already have the boundaries needed to pass valid str slices anyway.
I can see better the use case of using multiple threads to e.g. count the chars in a really large string.  Being able to split at arbitrary byte indices certainly makes that more convenient, because you don't have to find char boundaries when splitting.  But that's mainly a convenience thing.  It's not hard to find the next char boundary after an arbitrary byte index.
Granted, if you want to use something like rayon to handle the threads, then you'd need to wrap the chunking logic in an iterator, which is a bit more work.  But it's still not too bad.
So in short, unless there's a compelling (and in scope) use case that I'm missing, I think I'll leave str_indices API's as str-only.


"In total" calculation of pages with low hix value is incorrect

Describe the Bug

The section "pages with low hix value" also shows an incorrect "in total" calculation. For example for LK Emmendingen it says, that there are 160 pages with insufficient HIX value. However if you follow the link, you'll see that indeed there are no pages with a HIX value under the threshold of 15. Similar picture for Kreis Segeberg and Munich
Steps to Reproduce

Go to LK Emmendingen in our test system
See on dashboard there are 160 pages with insufficient HIX value
Click on link
See there are no pages with insufficient HIX value

Expected Behavior

The both numbers should be the same
Actual Behavior

They are not
Additional Information
This issue is related to #2505 and #2501

One possibe cause is probably that the pages_under_hix_threshold will not be updated after a page (and therefore its HIX value) was changed.


Can not redeem 99% of the AKT/DVPN pool

Summary of Bug
When trying to redeem 99 % of the pool I am getting this error

Version
I don't know how to find out the version but my contest wallet address is following:
cosmos15j58q4ujcy3ae2lgaeuk9tm9luukxy3zqqflhm
Steps to Reproduce
I had some amount of tokens in AKT/DVPN pool (approx 2000 USD, maybe slightly more). When trying to redeem 99 % multiple times in a row I got this error. Then I tried to redeem 100 % and it worked.
What is wrong?
The same thing happened to me yesterday:

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

Summary of Bug
When trying to redeem 99 % of the pool I am getting this error

Version
I don't know how to find out the version but my contest wallet address is following:
cosmos15j58q4ujcy3ae2lgaeuk9tm9luukxy3zqqflhm
Steps to Reproduce
I had some amount of tokens in AKT/DVPN pool (approx 2000 USD, maybe slightly more). When trying to redeem 99 % multiple times in a row I got this error. Then I tried to redeem 100 % and it worked.
What is wrong?
The same thing happened to me yesterday:

For Admin Use

[ ]  Not duplicate issue
[ ]  Appropriate labels applied
[ ]  Appropriate contributors tagged
[ ]  Contributor assigned/self-assigned

Hi, thank you and congratulation for becoming the bug bounty prize winner for the Gravity DEX Competition! Please reply here with your Cosmos Hub mainnet address to receive the prize, by your github ID, until May 21, 23:59.

Hi, thank you and congratulation for becoming the bug bounty prize winner for the Gravity DEX Competition! Please reply here with your Cosmos Hub mainnet address to receive the prize, by your github ID, until May 21, 23:59.

Hello,
thank you very much for such a good news. I appreciate it.
My Cosmostation ATOM wallet (which I registered for the price distribution) is following:
cosmos1l5prt6y8vkqegxfhlqf89apcpd56m43zrpvs5q
In case of any queries I am available
With Best Regards
Kopyno


[1.2] 1.1/templates/library no longer accepts switch config files

Starting on Friday (5/27), I get an unexpected error on the 1.2 branch.  When I try to add a template to the library using PUT /api/1.1/templates/library I get the following error:
onrack@ora:~$ curl -X PUT -H "Content-Type: application/octet-stream" --data-binary @/home/onrack/switch-config-A localhost:8080/api/1.1/templates/library/switch-config-A
TypeError: Object
!Command: show running-config
!Time: Wed May 18 19:53:59 2016

version 7.0(3)I2(2c)
switchname TestA

feature bash-shell
feature scp-server

interface Ethernet1/1

interface Ethernet1/2

interface Ethernet1/3

interface Ethernet1/4

interface Ethernet1/5

interface Ethernet1/6

interface Ethernet1/7

interface Ethernet1/8

interface Ethernet1/9

interface Ethernet1/10

interface Ethernet1/11

interface Ethernet1/12

interface Ethernet1/13

interface Ethernet1/14

interface Ethernet1/15

interface Ethernet1/16

interface Ethernet1/17

interface Ethernet1/18

interface Ethernet1/19

interface Ethernet1/20

interface Ethernet1/21

interface Ethernet1/22

interface Ethernet1/23

interface Ethernet1/24

interface Ethernet1/25

interface Ethernet1/26

interface Ethernet1/27

interface Ethernet1/28

interface Ethernet1/29

interface Ethernet1/30

interface Ethernet1/31

interface Ethernet1/32

interface Ethernet1/33

interface Ethernet1/34

interface Ethernet1/35

interface Ethernet1/36

interface Ethernet1/37

interface Ethernet1/38

interface Ethernet1/39

interface Ethernet1/40

interface Ethernet1/41

interface Ethernet1/42

interface Ethernet1/43

interface Ethernet1/44

interface Ethernet1/45

interface Ethernet1/46

interface Ethernet1/47

interface Ethernet1/48

interface Ethernet1/49

interface Ethernet1/50

interface Ethernet1/51

interface Ethernet1/52

interface Ethernet1/53

interface Ethernet1/54

interface mgmt0
  ip address <IP_ADDRESS>/24
line console
line vty
boot nxos bootflash:/nxos.7.0.3.I2.2c.bin

 has no method 'on'
    at TemplateService.DbRenderableContentService.put (/var/renasar/on-http/node_modules/on-core/lib/common/db-renderable-content.js:139:16)
    at /var/renasar/on-http/lib/api/1.1/northbound/templates.js:85:23
    at Layer.handle [as handle_request] (/var/renasar/on-http/node_modules/express/lib/router/layer.js:95:5)
    at next (/var/renasar/on-http/node_modules/express/lib/router/route.js:131:13)
    at /var/renasar/on-http/node_modules/body-parser/lib/read.js:129:5
    at invokeCallback (/var/renasar/on-http/node_modules/body-parser/node_modules/raw-body/index.js:262:16)
    at done (/var/renasar/on-http/node_modules/body-parser/node_modules/raw-body/index.js:251:7)
    at IncomingMessage.onEnd (/var/renasar/on-http/node_modules/body-parser/node_modules/raw-body/index.js:308:7)
    at IncomingMessage.EventEmitter.emit (events.js:92:17)
    at _stream_readable.js:920:16
    at process._tickDomainCallback (node.js:459:13)

This same command (with the same file) works on builds prior to Friday as well as on a recent build from the master branch.

From the on-http.log file:
interface Ethernet1/53
interface Ethernet1/54
interface mgmt0
vrf member management
ip address <IP_ADDRESS>/24
line console
line vty
boot nxos bootflash:/nxos.7.0.3.I2.2c.bin
has no method 'on'
at TemplateService.DbRenderableContentService.put (/var/renasar/on-http/node_modules/on-core/lib/common/db-renderable-content.js:139:16)
at /var/renasar/on-http/lib/api/1.1/northbound/templates.js:85:23
at Layer.handle [as handle_request] (/var/renasar/on-http/node_modules/express/lib/router/layer.js:95:5)
at next (/var/renasar/on-http/node_modules/express/lib/router/route.js:131:13)
at /var/renasar/on-http/node_modules/body-parser/lib/read.js:129:5
at invokeCallback (/var/renasar/on-http/node_modules/body-parser/node_modules/raw-body/index.js:262:16)
at done (/var/renasar/on-http/node_modules/body-parser/node_modules/raw-body/index.js:251:7)
at IncomingMessage.onEnd (/var/renasar/on-http/node_modules/body-parser/node_modules/raw-body/index.js:308:7)
at IncomingMessage.EventEmitter.emit (events.js:92:17)
at _stream_readable.js:920:16
at process._tickDomainCallback (node.js:459:13)

@johren I think what's happening here is you have on-http/node_modules/on-core on the master branch, but on-http on the 1.2 branch. You'll notice the traceback points to line 139 of the db-renderable-content.js file (https://github.com/RackHD/on-core/blob/master/lib/common/db-renderable-content.js#L139), which doesn't exist on 1.2 (https://github.com/RackHD/on-core/blob/release/1.2.0-branch/lib/common/db-renderable-content.js#L135).
On master in the templates API, we pass a stream object as the second argument into the DbRenderableContent.put call (https://github.com/RackHD/on-http/blob/master/lib/api/1.1/northbound/templates.js#L84), but in 1.2, we instead pass a string (https://github.com/RackHD/on-http/blob/release/1.2.0-branch/lib/api/1.1/northbound/templates.js#L85).
I'm pretty sure this is what you are seeing, so I'm going to close this, but feel free to re-open if you think it's a different root cause.


fov

Hello, is it possible to change fov of aimbot?

Hello, is it possible to change fov of aimbot?

Yes, definitely. Currently the aimbot is aiming at the player with the shortest distance to you. You can use this tutorial to convert it to a fov aimbot. https://youtu.be/JJdW2uxYh3s


Replace TransactionBody with NIOAsyncSequenceProducer

Motivation
We want to properly respect task cancelation during the call to HTTPClientResponse.Body.AsyncIterator.next().
Modification
Replace our custom AsyncSequence implementation by delegate most of the work to NIOAsyncSequenceProducer from NIOCore
Result
We fully support cancelation throughout the stack and get the performance benefits of NIOAsyncSequenceProducer.

We now also throw CancellationError instead of HTTPClientError.cancelled if the task is cancelled while awaiting the response head.


Tracking reminder being shown when computer is idle

More info in: 243148

Issue probably fixed a long time ago.


querying not empty tag value in v0.10

Hi,
I have a db with one measurement and multiple tags
For some reasons, sometimes one of these tags is set and sometimes it isn't (I don't know if it is null or empty or '' or something else)
If I request my measurement with
select distinct(hit) from myMeasurement group by myTag
here is the answer:
name: myMeasurement
tags: myTag=
time	distinct
----	--------
0	[1]

name: myMeasurement
tags: myTag=http://exemple.com/samples/coca.png
time	distinct
----	--------
0	[1]

I cannot figure out how to query only if these tag value is set.
I use InfluxDB v0.10.3 (git: 0.10.0 f55169eaca706f78e2d66edb0b8e62861712a747, built 2016-03-09T17:13:16.236131) and Isaw that since influxDB 0.9 we cannot have null value, so I assume it is not null but something else.
I tried:
where myTag <> null
where myTag <> ''
where myTag
The only way to get what I want is
where myTag =~ //
But this seems not a good solution to me, not sure about how index are used with such regexp.
I'm not sure it is a bug but it seems strange to me to have kind of null values and cannot query them in the same time.

seems to be duplicate of
https://github.com/influxdata/influxdb/pull/6283


Question about hook_fn_forward and hook_fn_backward

When i ran python importance.py to calculate the importance, i met an error：KeyError: 'encoder.layers.0.self_attn.in_q'
After that, i recorded all the modules' name which successfully executed hook_fn_forward and hook_fn_backward function, and i found that all the self_attn.in_q\k\v and self_attn.out_proj modules can not be hooked successfully, others including encoder_attn.in_q\k\v and encoder_attn.out_proj and so on can execute the hook function.
Any ideas why this happened? thx!

When i ran python importance.py to calculate the importance, i met an error：KeyError: 'encoder.layers.0.self_attn.in_q' After that, i recorded all the modules' name which successfully executed hook_fn_forward and hook_fn_backward function, and i found that all the self_attn.in_q\k\v and self_attn.out_proj modules can not be hooked successfully, others including encoder_attn.in_q\k\v and encoder_attn.out_proj and so on can execute the hook function. Any ideas why this happened? thx!

have u solved the bug?


Don't seem to be able to search like I used to.

Hi,
EDIT: apparently I interpreted some things wrongly in my last explanation, maybe I hadn't updated git or something,.. don't remember how I came to the conclusion, everything seems to work.. though maybe a bit different than I was used to.
Following search pattern used to work, but doesn't anymore as such:
:Rg -g *.chai pattern
but when I quote the glob pattern, it does seem to work:
:Rg -g "*.chai" pattern
Though slightly annoying, I can live with that, for me this issue can be closed now.

+1 ... using --glob is a very common thing for me as well, and I can't seem to get it to work now.
If it's still possible, it would be nice to put up an example of how to use that option in the README

I updated my original post to remove some wrong explanation, in order to not confuse potential readers.

I am also having this issue.
rg <pattern> -t js
rg <pattern> -g '*.js'
both return results in shell but inside of vim they do not.

I forgot about this, apparently it works again on my system without the quotes.
I don't understand why though, there haven't been any new commits since my original post.
I'm using
VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 29 2019 22:27:49)
Included patches: 1-2102
Compiled by Arch Linux

ripgrep 11.0.2

Looking at the source, you could try and add
  echom &grepprg
  echom &grepformat
  echom 'grep! ' . l:rgopts . a:txt

around line 64 before
silent! exe 'grep! ' . l:rgopts . a:txt

To try and see what is executed (then use :messages after executing your :Rg command to see the printed echom's), and maybe manually set grepprg and execute similar :grep commands, and be sure check :RgRoot command to show in which directory this is executed, maybe that is the problem?


Curated project bot migration

Migrate all existing curated project bots to use the new shared bot implementation.
A subsequent PR will delete the now obsolete code, but this PR migrates existing bots for Chromie Squiggles, Ingition, and Singularity to use the shared bot implementation added in #7.
In addition to improving code reuse and maintainability, this has had the added benefit of making bot results more consistent across projects:

Note, I'm planning on waiting for this PR (and its parents) to be submitted before sending out additional changes I have staged to add bot support for other existing curated projects in order to limit headache potential of contingent PRs. 😅 😄


[screengrab] fix screengrab folder name

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

Fixes https://github.com/fastlane/fastlane/issues/15653#issuecomment-562642978
Fixes #16050
Description

screengrab companion java library doesn't write to app_screengrab folder, but ruby part still tries to read screenshots from there.
Testing Steps

https://github.com/fastlane/fastlane/issues/15653#issuecomment-592065897

@googlebot I signed it!

Did this work before?
If so, can you pinpoint when this broke?

Ah, weird! I THINK I see what is going on but running on Android tests to see 🤔

@plastiv Left some requested changes for you! I tried to make these changes myself and push to this branch but it doesn't look like I have access to do that for some reason 🙃

@plastiv Can you add...
next unless path.include?(locale)

inside of the pull_screenshots_from_device method? Like in the following screenshot...

This should fix it 😊

@plastiv Can you add...

Thank you for a detail patch description. I have added requested change and checked locally. It seemed to solve my issue with duplicated folders ✅
I have just read the suggested git flow to address patches after I have rebased already. I will create commit-by-commit separately next time.


Mods folder

Make a mods folder so that files can be easily added to the folder and can add features to the game such as new modes/options/other features

We are working on it

🤔 But now I have no idea about this

No Interface / Api provided?


Negative outside temp turning into >6550 C?

Describe the bug
A clear and concise description of what the bug is.
It looks like the outside temp is broken.
It could be that negative values are turning into +6550 C?
See:

Latest version of WBB.

This should have been fixed in earlier version.
I released 1.0.4 some minutes ago. Please read readme before installation..

Checked it, on 1.0.4 it shows the right value:


[BUG] Cant install in Laravel v11.33.0

What happened?
After composer update to Laravel v11.33.0 i got this error
@php artisan package:discover --ansi

  Symfony\Component\ErrorHandler\Error\FatalError

 Declaration of FumeApp\ModelTyper\Commands\ShowModelCommand::handle() must be compatible with Illuminate\Database\Console\ShowModelCommand::handle(Illuminate\Database\Eloquent\ModelInspector $modelInspector) at vendor\fumeapp\modeltyper\src\Commands\ShowModelCommand.php:31
    27▕
    28▕     /**
    29▕      * @override
    30▕      */
 ➜  31▕     public function handle()
    32▕     {
    33▕         // Override default console component factory to force parent command to return failed exit code on error.
    34▕         $this->components = new ErrorEmittingConsoleComponentFactory($this->components, $this->option('throw-exceptions')); // @phpstan-ignore-line
    35▕

looks like Laravel upgrade Illuminate\Database\Console\ShowModelCommand to extract its functionality to separate class in #53541
for now adding Illuminate\Database\Eloquent\ModelInspector to the handle method works just fine for install, command runs ok, dont know if this works ErrorEmittingConsoleComponentFactory
use Illuminate\Database\Eloquent\ModelInspector;

     /**
     * @override
     */
    public function handle(ModelInspector $modelInspector)
    {
        // Override default console component factory to force parent command to return failed exit code on error.
        $this->components = new ErrorEmittingConsoleComponentFactory($this->components, $this->option('throw-exceptions')); // @phpstan-ignore-line

        if ($this->option('custom-relationships')) {
            $customRelationships = collect(explode(',', $this->option('custom-relationships')))->map(fn($method) => trim($method));
            $this->relationMethods = array_merge($this->relationMethods, $customRelationships->toArray());
        }

        return parent::handle($modelInspector);
    }

Expected Behavior
No response
Steps To Reproduce
init new laravel >=11.33 project
install modeltyper
get composer error

I think a new version V3 would be good, drop the old ModelInterface::class, drop laravel < 11.33, upgrade larastan@v3/phpstan@v2 and implement the new ModelInspector::class instead off overriding the base ShowModelCommand::class

Thanks for reporting @ayrtonandino
I like the v3 idea! but its not something I can promise to get too soon, but feel free to PR something and I can review it!


Another game on Raft page

Describe the bug
On the raft page we can see another game, name: Super Raft Boat Together
To Reproduce
Just search Raft and click Open Download options

This is not a bug, it is a side effect of the automatic way we index games

This is not a bug, it is a side effect of the automatic way we index games


Leverage the fact that Id could have a reference to the registry

As a user, I would like to hold references to just Id's. Currently I have to keep a reference to the registry, in the cases where my Id's are dynamic based on the data, e.g
In my constructor, I would do establish a base Id and have to keep a registry around:
    private final Registry registry;
    private final Id RESPONSE_ANALYZE_ID;

    public ResponseAnalyzeService(Registry registry) {
        this.registry = registry;
        this.RESPONSE_ANALYZE_ID = registry.createId("response.analyze");
    }

Then in the main code path:
        Id id = null;
        try {
            ResponseAnalysis responseAnalysis = analyzeResponseRaw(requestState);
            id = RESPONSE_ANALYZE_ID
                        .withTag("success", "true")
                        .withTag("action", responseAnalysis.getAction().name())
                        .withTag("reason", responseAnalysis.getReason().name());
        } catch(Exception e) {
            id = RESPONSE_ANALYZE_ID
                    .withTag("success", "false")
                    .withTag("exception", e.getClass().getSimpleName());
        } finally {
            if (id != null) {
                registry.counter(id).increment();
            }
        }

There isn't currently a way to establish a counter based on the dynamic Id, without keeping a reference to the registry around. Since the original RESPONSE_ANALYZE_ID Id in this example came from a registry, it doesn't seem far fetched that it could have a reference to the registry, that would allow some call like id.counter().increment().
I get that it's a big ask to be adding memory references to lightweight objects. I guess my big goal to be able to reduce some of the code in the example, since we follow this pattern a lot and it is more verbose than we would hope and more than the legacy Servo wrapper we have used in the past.

Thanks for the feedback, I'll have to think about it a bit.
For this particular example since the base id is just the name, you could do something like:
    private static final String RESPONSE_ANALYZE_ID = "response.analyze";
    private final Registry registry;

    public ResponseAnalyzeService(Registry registry) {
        this.registry = registry;
    }

...

        Map<String, String> tags = new HashMap<>();
        try {
            ResponseAnalysis responseAnalysis = analyzeResponseRaw(requestState);
            tags.put("success", "true");
            tags.put("action", responseAnalysis.getAction().name());
            tags.put("reason", responseAnalysis.getReason().name());
        } catch(Exception e) {
            tags.put("success", "false");
            tags.put("exception", e.getClass().getSimpleName());
        } finally {
            registry.counter(registry.createId(RESPONSE_ANALYZE_ID, tags)).increment();
        }

... OR ...

        try {
            ResponseAnalysis responseAnalysis = analyzeResponseRaw(requestState);
            registry.counter(RESPONSE_ANALYZE_ID,
                "success", "true",
                "action", responseAnalysis.getAction().name(),
                "reason", responseAnalysis.getReason().name()).increment();
        } catch(Exception e) {
            registry.counter(RESPONSE_ANALYZE_ID,
                "success", "false",
                "exception", e.getClass().getSimpleName()).increment();
        }

I think the second is the closest to the servo DynamicCounter usage.


Publish rate of the franka_states does not go 1000Hz

I have changed the publish rate from original 30Hz to 1000Hz in the default_controllers.yaml.
But rostopic hz .../franka_states does not punch above 600Hz.
I have only tested it on my laptop. Do you think I got a communication bottleneck?

Sending data over a ROS publisher has a certain overhead, and I guess you are just hitting the limits there. You can create a custom ros_control controller (see e.g. franka_control::FrankaStateController or franka_example_controllers package) and process the data in its update function if you need to receive it with 1kHz.

Yup that pushed it up.


Svelte - Shallow clone mutated object and array when diffing

I think it's not ideal to share objects between components

This is great @Kiho
Could you please bump the npm version to 4.5.1 and add this change to the changelog file?

Thanks @Kiho 💯


DP3T iOS SDK: why not use it to take care about background updates. (Spanish Radar Covid)

hi
I have been for 14 days in Spain, using Corono Radar, after some quirks it did the log exposure (key download) in a much more coherent fashion  than the Corona Warn App. The developers pointed out to me that they use

DP3T iOS SDK takes care about background updates.
As far as I know CoronaWarn does not use this dependency

So could't the corona Warn up use this as well.
regards
Uwe Brauer

Dear @ouboub,
thank you very much for your proposal.
To give the community a space for discussing new feature ideas or enhancements that might not be taken up immediately by the development teams, we created the cwa-wishlist repository.
This idea is one of these feature ideas or enhancements. Consequently, we will move this issue to this repository and allow the community and you to further refine it, discuss pros and cons, and evaluate alternatives.
The issue will not be closed in this repository to ensure long-term visibility. All issues in the cwa-wishlist repository will be discussed with our contracting entities.  As soon as we have any updates, we will let you know about the details.
Best regards,
SG
Corona-Warn-App Open Source Team

Just for keeping track:
@thomasaugsten stated here:

Background task for CWA and DP3T is almost identical because the whole work is done by iOS.

Just for keeping track:
@thomasaugsten stated here:

Background task for CWA and DP3T is almost identical because the whole work is done by iOS.

be it as it may, but  as a end user (iPhone SE) io13 or ios14 I can tell you this:
I had no issues with the spanish app concerning actualization
but I do have them with the corona warn.

Which issue exactly can you post your exposure log?

@ouboub Can this be closed since background updates seem to work reliable since version 1.7? Or do you still want to switch to the DP3T SDK?

@ouboub Can this be closed since background updates seem to work reliable since version 1.7? Or do you still want to switch to the DP3T SDK?

the background updates work now reliably

the background updates work now reliably

"ET" == Ein Tim<EMAIL_ADDRESS>writes:

@ouboub Can this be closed since background updates seem to work
reliable since version 1.7? Or do you still want to switch to the DP3T
SDK?

No, I will close it, thanks for reminding me.

"ET" == Ein Tim<EMAIL_ADDRESS>writes:

@ouboub Can this be closed since background updates seem to work
reliable since version 1.7? Or do you still want to switch to the DP3T
SDK?

No, I will close it, thanks for reminding me.


Cant play on startup

i have using soundjs when startup my game but it is not able to play.
but,when i can play the other sound when triggered by mouse event and other.
is it just a setting problem? html didnt show any error.

WebAudio requires a user event to unlock the audio context on mobile devices. Until you cause that user event, audio will not play.
SoundJS listens for user events (specific touch events mainly) and unlocks the context for you. On mobile, it is a good idea to show some sort of "click to start" interaction. You don't have to do anything other than ensure that interaction happens before playing audio.


"tgcf-web" command gives this error on Mac

Traceback (most recent call last):
File "/Users/manjulsigdel/Projects/my-tgcf/.venv/bin/tgcf-web", line 8, in
sys.exit(main())
^^^^^^
File "/Users/manjulsigdel/Projects/my-tgcf/.venv/lib/python3.12/site-packages/tgcf/web_ui/run.py", line 8, in main
package_dir = resources.path(package=wu, resource="").enter()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 25, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 120, in path
return _common.as_file(_common.files(package) / normalize_path(resource))
~^~~~
File<EMAIL_ADDRESS>line 133, in truediv
return self.joinpath(child)
^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 92, in joinpath
return super().joinpath(*descendants)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 117, in joinpath
target = next(names)
^^^^^^^^^^^
StopIteration
How to reproduce
Just installed following Readme
python version 3.12.3
pip version 24.0
Macbook Air M1 Chip

I am also facing the same issue on Mac.

Same here, python3.12, neither downloaded .pkg, nor brew installed works

In the same boat over here. Any help would be greatly appreciated!

same here: mac m1, windows 10. both have python 3.12

please use docker based deployments, for compatibility issues

I'm not a python programmer!
These changes are temporary, and the explanations below are generated by ChatGPT to save time. Here's a step-by-step explanation:
1. Install vim and streamlit:
First, I installed vim, a text editor for editing Python files, and then installed the specific version of streamlit that I needed:
apt install vim
pip3 install streamlit==1.32

2. Get the location of the tgcf package:
To find out where the tgcf package is installed in the Python environment, I ran the following command:
pip3 show tgcf

This command provides detailed information about the tgcf package, including its installation path. Here's an example of the output you might see:
Name: tgcf
...
Location: /home/.venv/lib/python3.12/site-packages

The Location line shows the directory where tgcf is installed. You'll need this path to navigate to the web_ui directory in the next steps.
3. Navigate to the tgcf package directory:
After finding the tgcf package location, I navigated to the tgcf directory inside the virtual environment:
cd /home/.venv/lib/python3.12/site-packages/tgcf
cd web_ui

4. Edit run.py:
I opened the run.py file inside the web_ui folder using vim to make the necessary changes:
vim run.py

4. Import tgcf:
Inside the run.py file, I added the following import at the top of the script to make the tgcf package accessible:
import tgcf as tg

5. Fix the resources.path line:
In the original code, there was an issue with accessing the package directory using resources.path. I changed this line:
package_dir = resources.path(package=tg, resource="").__enter__()

to a safer version that works by using a str() conversion. This is because resources.path returns a context manager, which needs to be handled properly. The updated line looks like this:
package_dir = str(package_dir) + "/web_ui"

This modification correctly defines the path to the web_ui directory within the tgcf package, which ensures everything works as expected.


Update README.md

Codecov Report

Merging #104 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #104   +/-   ##
=======================================
  Coverage   83.25%   83.25%
=======================================
  Files          31       31
  Lines         812      812
  Branches      144      144
=======================================
  Hits          676      676
  Misses        125      125
  Partials       11       11

Continue to review full report at Codecov.

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

@mitchellhamilton - moving the generated stuff into the repo and linking to it to stop this getting out-of-date. I think faq is the wrong name but changing this later will break stuff for people so better name suggestions are good.

common-questions?


[Bug]: Unhandled tool invocations with Llama 3.1 using LangChain and OpenAI-compatible API

Your current environment
Using vllm/vllm-openai:v0.5.3.post1 Docker image. Executed within the container:
Collecting environment information...
PyTorch version: 2.3.1+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.04.6 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Clang version: Could not collect
CMake version: version 3.30.1
Libc version: glibc-2.31

Python version: 3.10.14 (main, Apr  6 2024, 18:45:05) [GCC 9.4.0] (64-bit runtime)
Python platform: Linux-6.8.0-1008-nvidia-x86_64-with-glibc2.31
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration:
GPU 0: NVIDIA L40S
GPU 1: NVIDIA L40S
GPU 2: NVIDIA L40S
GPU 3: NVIDIA L40S

Nvidia driver version: 550.90.07
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture:                         x86_64
CPU op-mode(s):                       32-bit, 64-bit
Byte Order:                           Little Endian
Address sizes:                        46 bits physical, 57 bits virtual
CPU(s):                               128
On-line CPU(s) list:                  0-127
Thread(s) per core:                   2
Core(s) per socket:                   32
Socket(s):                            2
NUMA node(s):                         2
Vendor ID:                            GenuineIntel
CPU family:                           6
Model:                                143
Model name:                           Intel(R) Xeon(R) Gold 6448Y
Stepping:                             8
CPU MHz:                              799.149
CPU max MHz:                          4100.0000
CPU min MHz:                          800.0000
BogoMIPS:                             4200.00
Virtualization:                       VT-x
L1d cache:                            3 MiB
L1i cache:                            2 MiB
L2 cache:                             128 MiB
L3 cache:                             120 MiB
NUMA node0 CPU(s):                    0-31,64-95
NUMA node1 CPU(s):                    32-63,96-127
Vulnerability Gather data sampling:   Not affected
Vulnerability Itlb multihit:          Not affected
Vulnerability L1tf:                   Not affected
Vulnerability Mds:                    Not affected
Vulnerability Meltdown:               Not affected
Vulnerability Mmio stale data:        Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed:               Not affected
Vulnerability Spec rstack overflow:   Not affected
Vulnerability Spec store bypass:      Vulnerable
Vulnerability Spectre v1:             Vulnerable: __user pointer sanitization and usercopy barriers only; no swapgs barriers
Vulnerability Spectre v2:             Vulnerable; IBPB: disabled; STIBP: disabled; PBRSB-eIBRS: Vulnerable; BHI: Vulnerable (Syscall hardening enabled)
Vulnerability Srbds:                  Not affected
Vulnerability Tsx async abort:        Not affected
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect user_shstk avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts hfi vnmi avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr ibt amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities

Versions of relevant libraries:
[pip3] flashinfer==0.0.9+cu121torch2.3
[pip3] numpy==1.26.4
[pip3] nvidia-nccl-cu12==2.20.5
[pip3] pyzmq==26.0.3
[pip3] torch==2.3.1
[pip3] torchvision==0.18.1
[pip3] transformers==4.43.2
[pip3] triton==2.3.1
[conda] Could not collect
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.5.3.post1
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0	GPU1	GPU2	GPU3	CPU Affinity	NUMA Affinity	GPU NUMA ID
GPU0	 X 	PIX	SYS	SYS	0-31,64-95	0		N/A
GPU1	PIX	 X 	SYS	SYS	0-31,64-95	0		N/A
GPU2	SYS	SYS	 X 	PIX	32-63,96-127	1		N/A
GPU3	SYS	SYS	PIX	 X 	32-63,96-127	1		N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

🐛 Describe the bug
I have been having a lot of trouble getting vLLMs Open AI-compatible API to work with various LangChain/LangGraph tools, so I distilled this down to a contrived example.
When a tool call is supposed to happen, the response from vLLM just has the <python_tag>... metadata from Llama3.1, but it is unable to call the function.
from langchain.agents import create_tool_calling_agent, AgentExecutor
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder, SystemMessagePromptTemplate, \
    HumanMessagePromptTemplate
from langchain_core.tools import tool
from langchain_ollama import ChatOllama
from langchain_openai import ChatOpenAI

@tool("multiply-tool")
def multiply(a: int, b: int) -> int:
    """Multiply two numbers."""
    print(f"multiply() invoked with a={a}, b={b}")
    return a * b

# llm = ChatOpenAI(
#     model="gpt-4o-mini",
#     openai_api_key="<secret>",
#     temperature=0
# )
llm = ChatOpenAI(
    model="meta-llama/Meta-Llama-3.1-70B-Instruct",
    openai_api_key="EMPTY",
    openai_api_base="http://<server>:8000/v1",
    temperature=0
)
# llm = ChatOllama(model="llama3.1:70b", temperature=0, base_url="http://<server>:11434")

system_messages = """
You are an AI assistant that can multiply two numbers together.\n
You have access to a tool called 'multiply-tool' which you will use to multiply numbers.
"""

prompt = ChatPromptTemplate.from_messages(
        [
            SystemMessagePromptTemplate.from_template(system_messages),
            HumanMessagePromptTemplate.from_template("{input}"),
            MessagesPlaceholder(variable_name="agent_scratchpad"),
        ]
)
tools = [multiply]
agent = create_tool_calling_agent(llm, tools, prompt)
agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)

print("Asking question...")
input = {
    "input": "what is 6 times 8?"
}
response = agent_executor.invoke(input)
print(response)

Here's the output when this is run with OpenAI:
> Entering new AgentExecutor chain...

Invoking: `multiply-tool` with `{'a': 6, 'b': 8}`

multiply() invoked with a=6, b=8
48
6 times 8 is 48.

> Finished chain.
{'input': 'what is 6 times 8?', 'output': '6 times 8 is 48.'}

Here is the output when this is run with Ollama:
Asking question...

> Entering new AgentExecutor chain...

Invoking: `multiply-tool` with `{'a': 6, 'b': 8}`

multiply() invoked with a=6, b=8
48
The result of multiplying 6 and 8 is 48.

And here is the output when used with vLLM:
Asking question...

> Entering new AgentExecutor chain...
<|python_tag|>{"name": "multiply-tool", "parameters": {"a": "6", "b": "8"}}

> Finished chain.
{'input': 'what is 6 times 8?', 'output': '<|python_tag|>{"name": "multiply-tool", "parameters": {"a": "6", "b": "8"}}'}

Does something else need to be added to the workflow to get this to work with vLLM and Llama 3.1? Thanks!

+1

+1

+1

A very ugly, non-production hack I've had some success with is
@tool
def multiply(a: str, b: str) -> int:
    """Multiply two numbers."""
    print(f"multiply() invoked with a={a}, b={b}")
    return int(a) * int(b)

# tools: List[StructuredTool] = [get_entity, invoke_home_assistant_service, brave_search, multiply]
tools: List[StructuredTool] = [multiply]

model = ChatOpenAI(
    model="hugging-quants/Meta-Llama-3.1-70B-Instruct-AWQ-INT4",
    # temperature=0.75,
    # num_ctx=16 * 1024,
    base_url="http://localhost:8000/v1",
    openai_api_key="sk-1234567890",
    verbose=True,
)

llm_with_tools = model.bind_tools(tools)

def parse_tool_call(x: Any):
    if isinstance(x, AIMessage):
        if x.content.startswith("<|python_tag|>"):
            x.content = x.content.replace("<|python_tag|>", "")
        try:
            parsed_call = json.loads(x.content)
            if parsed_call.get("name") is not None and parsed_call.get("parameters") is not None:
                x.tool_calls = [ToolCall(name=parsed_call["name"], args=parsed_call["parameters"], id=x.id)]
        except json.JSONDecodeError:
            pass
    return x

chain = llm_with_tools | RunnableLambda(parse_tool_call)

and then when running
You: what is 6 times 8
debug: {"name": "multiply", "parameters": {"a": "6", "b": "8"}}
debug: Function call: {'name': 'multiply', 'args': {'a': '6', 'b': '8'}, 'id': 'run-11debe90-b2bf-4067-a006-e59b43da8606-0'}
debug: multiply() invoked with a=6, b=8
debug: Function result: 48
AI: 48, I hope that is correct, sir. Shall I be of further assistance?


Submit ticket to LSA

Is your feature request related to a problem? Please describe.
A console app does not have tickets left in memory for further use. E.g. If I obtain a service ticket for CIFS via a console app, I should be able to do dir \\target\share after running the app...
Describe the solution you'd like
Use LsaCallAuthenticationPackage() with a message type of KERB_SUBMIT_TKT_REQUEST to submit a ticket for the current (or specified) logon session? I'm really bad at coding....

Why would you want to use this library and then push the tickets into LSA? Why wouldn't you just use the built-in Kerberos library in Windows to do the same thing?
It's certainly possible to stick the ticket into LSA though (but it can't be pulled back out).

Hi, .NET is preferable for me. I just reused some other code from Github to achieve it. Thx!


Bluetooth

WIP
TODO

Setup use-permissions
aaa

Ref

https://developer.android.com/guide/topics/connectivity/bluetooth?hl=ja
https://github.com/weliem/blessed-android-coroutines/tree/main/blessed/src/main/java/com/welie/blessed
https://qiita.com/naoto_deuxchats/items/e6a9af6c7a9ee40f0fb9

Change to https://github.com/shusuke0812/KikurageApp-Android/pull/8