text:
Route enters twice

Hello
First I'd like to thank you for the great plug-in, it's very helpful!
I'm not sure why, but when I activate the Middleware manager, the route gets called twice per request.
OS: Win 11
Python: 3.12.0
Flask version: 3.0.0
Flask-http-middleware: 0.4.0
Example:
from flask import Flask
from flask_http_middleware import MiddlewareManager
import time

app = Flask("flask")

@app.get("/dummy")
def dummy():
    print("Entered dummy " + str(time.perf_counter()))
    return {"dummy": "dummy"}

app.wsgi_app = MiddlewareManager(app)

if __name__ == "__main__":
    app.run()

And this is the console result:
* Serving Flask app 'flask'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit
Entered dummy 65040.6774082
Entered dummy 65040.6775903
127.0.0.1 - - [02/Nov/2023 14:10:47] "GET /dummy HTTP/1.1" 200 -

You can see that the endpoint was called once, but the print happened twice. If I comment out the MiddlewareManager I only see one print.

Hi, I've just fixed this, kindly update to 0.4.1 🙇

@styper kindly update if you found any issues again!

@Danangjoyoo Tested and working! Thank you!

Seems the bug still happens when there's an exception in-route:
from flask import Flask
from flask_http_middleware import MiddlewareManager
import time
from importlib.metadata import version

app = Flask("flask")

@app.get("/dummy")
def dummy():
    print("Entered dummy " + str(time.perf_counter()))
    return {"dummy": 1/0}

app.wsgi_app = MiddlewareManager(app)

if __name__ == "__main__":
    print('flask_http_middleware: ' + version('flask_http_middleware'))
    print('flask: ' + version('flask'))
    app.run()

Output:
flask_http_middleware: 0.4.1
flask: 3.0.0
 * Serving Flask app 'flask'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit
Entered dummy 129402.6574227
Entered dummy 129402.6574987
[2023-11-03 08:03:28,717] ERROR in app: Exception on /dummy [GET]
Traceback (most recent call last):
  File "...\Python312\Lib\site-packages\flask_http_middleware\manager.py", line 84, in dispatch_request
    return self.app.ensure_sync(self.app.view_functions[rule.endpoint])(**req.view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\teste4.py", line 11, in dummy
    return {"dummy": 1/0}
                     ~^~
ZeroDivisionError: division by zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "...\Python312\Lib\site-packages\flask_http_middleware\manager.py", line 186, in __dispatch_python_2_3_x
    rv = self.app.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\Python312\Lib\site-packages\flask_http_middleware\manager.py", line 183, in __dispatch_python_2_3_x
    rv = self.dispatch_request(request)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\Python312\Lib\site-packages\flask_http_middleware\manager.py", line 86, in dispatch_request
    return self.app.view_functions[rule.endpoint](**req.view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\teste4.py", line 11, in dummy
    return {"dummy": 1/0}
                     ~^~
ZeroDivisionError: division by zero
127.0.0.1 - - [03/Nov/2023 08:03:28] "GET /dummy HTTP/1.1" 500 -

Same behavior, it I comment out the MiddlewareManager the route gets called once.

@styper Hi, the fix already released, please kindly check!

@Danangjoyoo Tested and working, thank you!

authors: Danangjoyoo styper

repo: Danangjoyoo/flask-http-middleware


text:
submit test results

I submit the results on the DanceTrack website, but it keeps showing "Sorry, failed to upload file." I have strictly followed the submission format.

me too

Have you fixed it? I noticed some failure due to incorrect zipping / naming. Let me know if you have any existing question or trouble

source: gharchive/issue

authors: liushuailiang noahcao shuangheibushihei

repo: DanceTrack/DanceTrack

license: MIT

license_type: permissive

license_source: github-api


text:
Delegates

this is sample code about delegates

delegates

source: gharchive/pull-request

repo: Daneshkar/OfflineMembers


text:
[QUESTION] How could I make this work with TypeScript?

TypeScript warns about .toMatchError not existing, could you add instructions to make it work with it?

The same way you make your typescript compiler aware of jest types:
{
  "compilerOptions": {
    "types": [
      "node",
      "jest",
      "jest-matcher-specific-error"
    ],
  }
}

authors: DanielHreben JJBocanegra


text:
Custom Shape in Java

Hi, I was wondering if it was possible to add a custom shape using java instead of kotlin. If so, could you point me in the direction of the documentation for it?
Best,
Hannah

Hi @hyang00,
I've updated the java example in the repo here to demonstrate how custom shapes work in Java.
Get your shape as a Drawable from the resources and then create a Drawable shape like this:
final Drawable drawable = ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_heart);
final Shape.DrawableShape drawableShape = new Shape.DrawableShape(drawable, true);

Then add your Drawable shape to the konfettti builder like this:
konfettiView.build()
        ...
        .addShapes(Shape.Square.INSTANCE, Shape.Circle.INSTANCE, drawableShape)
        ...

Thank you!

repo: DanielMartinus/Konfetti

license: isc

license_source: bigquery


text:
The following resource(s) failed to create: [MyDedicatedHost] - Status code 500

When using 0.3.0, I'm getting this error:

Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Creating...
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [10s elapsed]
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [20s elapsed]
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [30s elapsed]
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [40s elapsed]
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [50s elapsed]
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [1m0s elapsed]
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [1m10s elapsed]
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [1m20s elapsed]
module.dedicated-host.aws_cloudformation_stack.dedicated_hosts: Still creating... [1m30s elapsed]
╷
│ Error: error waiting for CloudFormation Stack (arn:aws:cloudformation:eu-west-1:xxxxxxxxxxx:stack/dedicated-hosts-stack/6639cca0-fe9c-11ec-be5c-0ae3b4793f3b) create: failed to create CloudFormation stack, rollback requested (ROLLBACK_COMPLETE): ["The following resource(s) failed to create: [MyDedicatedHost]. Rollback requested by user." "Resource handler returned message: "An internal error has occurred (Service: Ec2, Status Code: 500, Request ID: 9cfd01a0-15d6-4354-8218-34429d680e47, Extended Request ID: null)" (RequestToken: b115ed36-3fb9-51bc-7fd6-d1e032643693, HandlerErrorCode: GeneralServiceException)"]
│
│   with module.dedicated-host.aws_cloudformation_stack.dedicated_hosts,
│   on .terraform/modules/dedicated-host/main.tf line 1, in resource "aws_cloudformation_stack" "dedicated_hosts":
│    1: resource "aws_cloudformation_stack" "dedicated_hosts" {
│
╵
Releasing state lock. This may take a few moments...

I'm not sure what's wrong.

Hi @yngvark sorry for the long delay checking this.
I just tested it, and it worked for me, but I had to change my region because AWS had no capacity in the region of the example.
Was this the same issue you faced?

I don't know if capacity was the problem, I would have to retest. I'll let you know if I come back to this.

authors: DanielRDias yngvark


text:
Coffeescript runtime bug: private static class fields

Coffeescript bug (runtime error)
"civet coffeeCompat"

class API

  HTTP_GET = 'GET'
  HTTP_HEAD = 'HEAD'
  HTTP_VERBS = [HTTP_GET, HTTP_HEAD]

  callApi: ->
    console.log HTTP_VERBS[0]

(new API()).callApi()
# Next line errors in CS as HTTP_VERBS is private attr
# console.log API.HTTP_VERBS[0]

in the Civet playground this compiles, but then errors at runtime with
ReferenceError: HTTP_GET is not defined

whilst in the coffeecsript playground the code compiles and runs with output
GET

Playground links
Coffeescript link
Civet link
Discussion
First off, things are moving along with my migration of multiple Coffeescript codebases to Civet, so thanks for all your hard work! I've moved the codebase build systems from browserify to esbuild with the esbuild-coffeescript plugin. The error above comes from switching the esbuild-coffeescript plugin for the Civet esbuild plugin, hacked to process .coffee files. For this particular codebase, all coffeescript is compiling in Civet with no parse errors, and this is the first runtime error I've seen.
Re the particular error, I often use this pattern for class level private constants (which can be referenced by both other class or class-instance functions). In modern JS terms, the closest concept seems to be a private static field.
In the interests of converting Coffeescript to Civet, it would great if this could be handled via "coffeeCompat". However, longer term, I'd be happy for this pattern not to be in Civet if it doesn't fit philosophically, and could be replaced directly with JS private static fields. If that were the case, it would nice if this pattern triggered a compile time parse error - rather than a run time error - so that the errors could be worked through and addressed one at a time.

I had proposed that CoffeeScript change this behavior here: https://github.com/jashkenas/coffeescript/issues/4552#issuecomment-1019527774
and the response seemed to be that this could considered buggy behavior for CS2, and a change was warranted.  That said, I doubt the behavior will actually change at this point, and given that you're relying on it, supporting it probably makes sense as a coffee-compat flag.
I don't see an easy way to map this feature to private static fields. At least, every reference to the fields would then need to be detected and rewritten, and the resulting class would be different from CoffeeScript's output. I think matching CoffeeScript's output (with an IIFE block that does the assignments and returns the class) might make the most sense. It's a shame we can't just have a class declaration within a braced block, but that prevents the class from being visible at the top level...

I agree that we should match the CS2 behavior when in coffee-compat mode.
For migrating to Civet/ES semantics I would recommend pulling out the = field assignments as := outside the class and explicitly wrapping with a block if you need to limit visibility. I've found that having const assignments alleviates a lot of the trouble around CoffeeScript scoping since you can't accidentally reassign an outer scoped const.

Three points

Matching the CS behaviour in coffee-compat mode would be great. That would enable coffeescript to run safely under civet.
In terms of then moving coffee files fully from coffee-compat mode to full civet, would it be possible to throw a parse error on the offending patterns during compilation, so they can be fixed manually? I.e. civet coffeeCompat -coffeeCrazyClassAttrs throws parse errors. Otherwise if no parse errors are thrown - but runtime errors occur later instead (like now) - then it'll be unclear if a full coffee->civet migration has been successful until the code is exercised.
The pattern of civet coffeeCompat -coffeeCrazyClassAttrs throwing parse errors on coffeescript cases that work under full coffee-compat mode, but are now illegal in full civet (or the behaviour has changed) seems sane to me. It means the developer can review the offending cases for a particular directive, fix them manually, and then move on to removing the next directive, confident that they are moving towards full civet. I confess I haven't check to see if coffee-compat mode does this already - I'm still battling with moving to esbuild!

It would be slightly difficult to add compile time checking since it's valid ES (accessing a global variable inside the method body). Currently opening the file in VSCode with the Civet LSP installed will underline the (now undeclared) global references. I recall there also was interest in a tool to use the same LSP code to do typechecking on .civet files from the CLI so that could be one way of solving this as well.

@STRd6 lack of civet compiler knowledge showing here but.. I suppose I'm thinking if the compiler is running under coffee-compat mode:

[case of civet coffeeCompat +coffeeCrazyClassAttrs] compiler detects the pattern described in this issue, and generates code as per @edemaine's comment (with an IIFE block that does the assignments and returns the class)
[case of civet coffeeCompat -coffeeCrazyClassAttrs] compiler detects the pattern described in this issue, and blows up with parse error instead.

And this pattern applies for all coffee-compat directives.

Currently coffeeCompat is implemented as a meta flag that enables a collection of more specific options. Adding "civet coffeeCompat -coffeeCrazyClassAttrs" would have all the other coffee compat items but omit the class compatibility. This way when someone is ready to rewrite the class code to a new style they would add -coffeeCrazyClassAttrs and adjust their code.
In coffeeCompat it wouldn't be an error and we would match the existing CS2 compilation.
I'm not sure there would be any advantage to a specific error other the TS error about Cannot find name HTTP_GET

It would be possible to add a custom linting step for detecting this pattern but it would be less general and more brittle than using the existing TS error checking and I think the effort could better go towards civet+TS command line type checking.

@STRd6 thanks for the explanation. Make sense. Getting coffeescript running fully under civet coffee-compat would be fantastic regardless. Once that's possible, I'll take a deeper look into the sanest way to jump from coffee to full civet. Seems like using VSCode+Civet LSP would be useful. My prior thoughts/suggestions were motivated by having the safest coffee->civet transition: having compiler parse errors makes it very clear what still needs fixing.

I finally realized what CS2 means by class definitions are blocks of executable code
CoffeeScript 2
I don't think that makes implementing this any harder, it just clarifies the scope for CS2 compatibility.

Any update on this Coffeescript "private static class fields" bug?
I ask, since I'm thinking of again attempting migration of some Coffeescript projects to Civet over Christmas. This bug was the main blocker last time I tried.
Since you have been going great guns on Civet development, I wondered if you had a clearer idea on how to fix this. The latest discussion seemed to be in https://github.com/DanielXMoore/Civet/issues/944#issuecomment-1930032511: "a compatibility flag that triggers CoffeeScript's IIFE behavior, and perhaps the same coffeeClasses flag makes sense"
Many thanks

Sorry, this fell off my radar, but if it's blocking you, we can step it up in priority. Are you interested in trying to implement it yourself? If so, I can provide guidance. If not, I can take a stab directly.
By the way, a similar effect can be achieved with Civet do blocks (putting a class inside a do block). But not CoffeeScript do, so this might not be very convenient if you also need Coffee do.

@edemaine thanks for your prompt reply.
It's blocking me in the sense that I'm holding off migrating several large Coffeescript projects to Civet until the path looks sane. Currently this bug is putting me off, since I'd preferably switch Coffeescript to Civet with all compatibility flags switched on and maintain working code. Then I'd gradually make code changes to full Civet and switch off compat flags one by one. Last time I attempted the migration, I got the Coffeescript code compiling with Civet (and reported various bugs). Then this bug appeared and was awkward since it appeared at runtime. This reduced the certainty that I had working code.
However, this bug isn't blocking me in that I can choose when to do the migration. I really don't have spare time currently, but I might do early next year.
In short, if you want to take a stab now, that would be much appreciated. Otherwise, I can make a go of it next year, with some guidance.
My suspicion is that once this bug is fixed, there might other runtime bugs waiting in the wings..

authors: STRd6 edemaine greghuc

repo: DanielXMoore/Civet


text:
Suggest a tool which is using this project as a proxy

We can find so many awesome tools on GitHub. I'm a maintainer of a package installer project. It can install those tools such as:
# install github.com/cli/cli which is the github cli
hd install cli/cli

# or you can use a shorter command
hd i cli/cli

user could choose the proxy via: hd setup. Or choose the proxy manually:
hd i cli/cli --proxy-github files.m.daocloud.io

I can put the usage in the readme file of this project if you belive it's ok. I really want to hear some feedback. Please left your comments below.

Sorry for the late reply. I seem to have turned off the repo notification.
Feel free, but I'm not sure if this project will add the allowlist limit in the future.

authors: LinuxSuRen wzshiming

repo: DaoCloud/public-binary-files-mirror


text:
Bouncing Lasers limitations and bug

As is, we have to choose between Lasers bouncing off of objects and ignoring objects.  What if I want for lasers to bounce off of mirrors and collide with walls?  As is, it seems like that's not possible.
I had assumed that this limitation was as intended, however this creates another issue:
Imagine this scene:
[Mirror]  [Block]        <=[Laser]
Mirror is part of the group "reflects" which Lasers bounce off of.  The Laser sees that it doesn't bounce off the block.  The displayed ray, however, renders it's full length and does not collide with the mirror/wall.
See attached images.  One of them shows what happens when the laser collides with something in a bounce group, one shows what happens when it does not.

I've made some progress on a fix for myself, but I've gotten a little lost in your code trying to figure out the logic for adding points to the line.  Would love to see an update that fixes this, but I will continue working on it on my end and post an update if I find a full fix.

I'm reading this back and it's maybe not the clearest - let me know if I need to re-explain or if the provided images are helpful enough for you to understand the bug!

Mmh ok, I'll see what I can do when I have time

I think I fixed it. I'll update it on itch later but putting the line
if not can_bounce_on($RayCast2D.get_collider()): break

After the line
if bounce_cooldown > 0:
  await get_tree().create_timer(bounce_cooldown, false).timeout

Instead of at the beginning of the loop, should fix it

This fixes the collision detection but does not fully fix the updates to Line2D/visuals as seen in the screenshot below. Note that the laser is currently colliding with the box but the not the wall behind it (which is as intended, so it does fix that part).

Also, note that something in your current update from a few days (week?) ago breaks reflection angles for me.  I did some weird stuff to get laser rotation working in my project and so it may be a result of that and not your update.  I didn't try diagnosing and just reverted back, so I don't have images to demonstrate but it may be worth running some tests to make sure that the angles of reflection are as intended.  I can create an issue for that sometime this week and gather more info, but first I want to make sure that it isn't just a result of you properly fixing something in a way that breaks something I'm doing.

I updated the following to check if the last cast was colliding:

	# if last laser segment doesnt hit a wall, still draw it
	if can_end_midair and (!$RayCast2D.is_colliding() and max_while < bounce_count+1 or points.size() < 2):

I haven't fully tested this and I'm not sure if this creates any other issues, but it fixes the issue with updating Line2D properly.

Ok thx
For the reflection angles, it's very tricky. Each time I think I got it right, there's a new case found where it's wrong, then fixing it breaks the previous cases,...

Yes, reflection angles are an implementation nightmare with how Godot handles rotation/positions.  Everything is very inconsistent and it's hard to know how things are intended to be used.  To be honest, I purchased your tools because of the difficulties that I have had with my own implementation.  I'm new to godot and figured my time was better spent elsewhere.  I may take closer look at how rotation works in the future and let you know if I find anything worthwhile.
All that said, I currently have a functioning version of your project and am very happy with it. Thanks for taking care of the issues I've encountered as they present themselves!  This projects existence has saved me a ton of time!

authors: BenjaminOrenstein Dark-Peace

repo: Dark-Peace/BulletUpHell


text:
Support for landscape mode for tablets

It's a lovely app but where is the support for landscape mode🥲🥲

#71

authors: AISLVE Leonavichus

repo: DarkMooNight/Rain


text:
fix convnext to make it work with jax.jit

Hey,
first of all, thanks for the nice codebase. When doing inference using the convnext model, I noticed the following issue:
Calling x.item() will call float(x), which breaks the jit tracer. We can remove the list comprehension in unnecessary conversion to make jax.jit work. Without jax.jit, the model is very slow for me, running with only  ~30% GPU utilization (RTX 3090).
This issue could apply to other models as well, maybe it is a good idea to include a test for applying jax.jit to each model?

Thank you for pointing this out. I will merge this for now, but this problem extends to multiple models here as you mentioned. I will try to add jax.jit tests for every model as soon as I get the time.

authors: DarshanDeshpande maxidl

repo: DarshanDeshpande/jax-models


text:
Use gzip compression for GitHub REST API call

Check if http client used to call REST API handles Accept-Encoding: gzip request header to save network bandwidth by default. Implement the compression if not used.

BTW size of one notification info in list of notification v3 REST response is about 5kB!

gzip compression implemented, looks like it may save lots of bandwidth. For my new notifications API call with about 70 notifications returned it decreases wire thansferred size from 258kB to 16kB!

Cool! 👏

authors: laughedelic velias

repo: Daskiworks/ghwatch


text:
[CA-1312] Fixing merge conflicts

This can be merged straightaway into #2471 CA-1312, which should allow that branch to be merged...

merged dev into #2471 so that the diff here is more succinct, but the diff hasn't updated..

Hi @andy7i does this still need to be merged, or was it taken care of already in a different branch in which case this can be closed?

Closing this PR -- This PR was created to resolve merge conflicts and I ended up resolving the merge conflicts in https://github.com/DataBiosphere/terra-ui/pull/2475

repo: DataBiosphere/terra-ui


text:
Datadog agent setup wizard ended prematurely

Describe what happened:
I was trying to install the datadog agent on a Windows 2012 machine and sometimes the installation rollbacks during or after copy files.

It sometimes works though. On the same machine, I have tried a few times, both from GUI and command line, it sometimes works and sometimes not. I hope I could gather some log file to do some analyses but I don't know where to find it. If you can guide me about how to get it, I would be more than happy to provide it. Thanks!
Describe what you expected:
A successful installation.
Steps to reproduce the issue:
Run setup wizard.
Additional environment details (Operating System, Cloud provider, etc):
Operating System: Windows Server 2012 R2, 64bit

I have got the reason, the generated password may occasionally be too short for our domain policy. https://github.com/DataDog/datadog-agent/blob/9af4ca9d3a6c592006ffdc63bc9bb6192d59efcb/omnibus/resources/agent/msi/cal/usercreate.cpp#L43
For those who may be interested, to get log file of the installer, we need to specify
msiexec /i ddagent-cli.msi /l*v MyLogFile.txt

repo: DataDog/datadog-agent


text:
Datadog Agent on macOS crashed with: "Runtime: Split stack overflow"

{
	"StandardOutPath" = "/var/log/datadog/launchd.log";
	"LimitLoadToSessionType" = "Aqua";
	"StandardErrorPath" = "/var/log/datadog/launchd.log";
	"Label" = "com.datadoghq.agent";
	"OnDemand" = true;
	"LastExitStatus" = 9;
	"PID" = 10050;
	"Program" = "/opt/datadog-agent/bin/agent/agent";
	"ProgramArguments" = (
		"/opt/datadog-agent/bin/agent/agent";
		"run";
	);
};

Describe what happened:
The Datadog agent crashed over night.
Describe what you expected:
To not crash.
Steps to reproduce the issue:
Not sure yet. I just had the agent running on various macOS machines overnight and almost all of them crashed.
Additional environment details (Operating System, Cloud provider, etc):
Mac OS 10.15.7, build 19H2
Mac Mini
Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
16GB RAM
Datadog Agent 7.23.0 - Commit: 3cc240ddd - Serialization version: v4.44.0 - Go version: go1.14.7
I've attached the contents of /var/log/datadog/launchd.log from one of the mac machines.
launchd.log

Hi @goodspark, thanks for reporting this issue and issue #6539.
We are currently investigating both issues; they seem to affect v7.23.0/v6.23.0 of the Datadog Agent. To investigate this further, we would like you to send a flare from one of the Agents affected by this and another one for issue #6539.
Until we release a fix we have reverted the latest MacOS installer to 7.22.0 and we recommend you to use that version (please send the flare before changing versions).

A small update: we have identified this as a Go macOS runtime bug, see golang/go#39079. We are waiting on a bugfix release of Go 1.14 that will help us tackle this problem. I will keep you posted with further updates.

Hi @goodspark, the recently released Agent version 7.25.0 should fix this issue and issue #6539 since we upgraded Go (see #6942). Feel free to comment or reopen if you find the issue again after upgrading.

Hi @goodspark, the recently released Agent version 7.25.0 should fix this issue and issue #6539 since we upgraded Go (see #6942). Feel free to comment or reopen if you find the issue again after upgrading.

authors: goodspark mx-psi


text:
[network] tests openssl/gnutls backend for curl

What does this PR do?
Adding more https tests by testing openssl/gnutls against curl and wget
Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the config template has been updated.

Let's add something so that curl is only downloaded and built once in local dev environments. Maybe check the packages curl has been built with before attempting.

authors: brycekahle nplanel


text:
[docker] Don't skip cgroup parsing with one invalid line

What does this PR do?
Changes the cgroup parsing so it doesn't bail if the first item does not have a container id. We will continue to ignore this path but we'll keep parsing further lines.
Motivation
This is based on a support issue (https://trello.com/c/nQOXnnh4/826-cant-see-containers-from-host).
Additional Notes

I don't really understand why the AppVeyor builds failed :(


text:
upgrade(remote-config): Retry client first run errors faster

What does this PR do?

Adds an update in agent Remote Config clients before the poll loop wait
Retries faster first run errors (max every second) as to not wait c.pollInterval if there is a race condition between the startups of the service & the client
Don't call the callback on product subscription as it may return an empty state before the client can contact the service

Motivation
RC-1573
Additional Notes
N/A
Possible Drawbacks / Trade-offs
If the service returns some errors showing up at startup (that are not Unavailable) the clients will poll it every second forever instead of every 5s. Though, tracers do exactly the same all the time and it's not a big problem for the agent.
Describe how to test/QA your changes

Build the agent & remove the RC DB
Run watch -n 0.25 "./bin/agent/agent remote-config -c ./dev/dist/datadog.yaml" in one terminal
Launch the agent in another terminal
Check that you receive configurations in a second or so

Reviewer's Checklist

[x] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[x] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[x] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[x] Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
[x] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

/merge


text:
[fleet] Add back dd-updater user

What does this PR do?

add back dd-updater user
rm commands now pass through the helper to avoid permission issues when removing a package
agent packages are chown to dd-agent
fixed purge to not delete /opt/datadog-packages, only the nested elements

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


text:
feat(ci): Merge agent 6 and 7 rules - part 1

What does this PR do?
Remove distinction between agent6 and 7 rules. Building an agent alone is not used

Motivation
Simplify the gitlab configuration

Additional Notes
Test pipelines generated:
[standard deploy pipeline]
Merge queue pipeline generation test
Branch comparing to itself for modifications on yaml files
integrations-core like pipeline

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable DEPLOY_AGENT=true --variable RUN_UNIT_TESTS=on

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable DEPLOY_AGENT=true --variable RUN_UNIT_TESTS=on

LGTM, when the issue with jobs created in the MQ is tackled. And if all the deleted rules are not used elsewhere

Added a link with the workflow generation test on MQ
Thanks again

/trigger-ci --variable RUN_KITCHEN_TESTS=false --variable RUN_E2E_TESTS=off --variable DEPLOY_AGENT=false --variable RELEASE_VERSION_6=nightly --variable RELEASE_VERSION_7=nightly-a7 --variable BUCKET_BRANCH=dev --variable INTEGRATIONS_CORE_VERSION=master

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=on --variable DEPLOY_AGENT=true --variable RUN_UNIT_TESTS=on

/merge


text:
[tagger/remote] Fix "tagger-list" command

What does this PR do?
Fixes the agent tagger-list command in the remote tagger.
The “agent tagger-list” command no longer works in the CLC runner when configured to use the remote tagger. I think that the problem was introduced in this PR https://github.com/DataDog/datadog-agent/pull/30584 because the Remote implementation no longer returns an AgentEndpointProvider.
Describe how you validated your changes
I added a unit test. I also verified that agent tagger-list no longer returns a 404 error in the cluster check runners when configured to use the remote tagger (DD_CLC_RUNNER_REMOTE_TAGGER_ENABLED=true).

/merge


text:
chore: Ship datadog_flutter_plugin 2.7.0

What and why?
Changes related to shipping datadog_flutter_plugin 2.7.0
Review checklist

[ ] This pull request has appropriate unit and / or integration tests
[ ] This pull request references a Github or JIRA issue

Bypassing bitrise checks as something weird is going on with the iOS simulator there.

repo: DataDog/dd-sdk-flutter


text:
Attributes GEO  showing incorrect location

Thanks for taking the time for reporting an issue!
Describe what happened
GEO showing Tampa Florida, while I'm actually in Miami Florida.
Is it some specific configuration I have to add to show precise location?
For some users it showing correct location.

Hello @slatqh! Our SDK doesn't record location by itself (via GPS or network), geolocation is computed on the backend side based on the IP address of the incoming request from SDK side.
If you want to have more precise location you can attach your custom attributes for the current user which can be set via DdSdk.setUser call.
If you have more questions on the geolocation computation done by our backend, please open support ticket here.
Don't hesitate to re-open this issue if you have more questions.

@0xnm  thanks for clarifying!

repo: DataDog/dd-sdk-reactnative


text:
How could I Pass parameters from the Go side to the python file?

Describe what happened:
I have successfully run the listed examples on Ubuntu18.04.
Describe what you expected:
I wonder how could I pass parameters from the Go side to the python file, just like the way Go invoke the c file?
Steps to reproduce the issue:

@Mykrobin here’s a simple example for passing data between Python and Go using go-python3: example | explanation

@christian-korneck Thanks a lot ~

authors: Mykrobin christian-korneck


text:
Istio check - list index out of range

Note: If you have a feature request, you should contact support so the request can be properly tracked.
Output of the info page
datadog-agent-status.txt.gz
Additional environment details (Operating System, Cloud provider, etc):
Debian
AWS
EKS 1.21
Istio 1.12.4
Steps to reproduce the issue:
Not sure how to reproduce
Describe the results you received:
{"log":"2022-07-18 09:47:53 UTC | CORE | ERROR | (pkg/collector/runner/runner.go:292 in work) | Error running check istio: [{\"message\": \"list index out of range\", \"traceback\": \"Traceback (most recent call last):\\n  File \\\"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\\\", line 856, in run\\n    instance = copy.deepcopy(self.instances[0])\\nIndexError: list index out of range\\n\"}]","container_image":"public.ecr.aws/datadog/agent:7.25.0","container_name":"agent","host":"ip-10-0-165-190.ec2.internal","namespace_name":"platform-delivery","pod_id":"bbf84daf-5a21-40d1-847b-880685f1d54c","pod_name":"datadog-rzb6g"}

Describe the results you expected:
The expectation is not have errors in the datadog agent logs.
Additional information you deem important (e.g. issue happens only occasionally):

Hi @ceastman-r7, It's a bit difficult to determine the cause of this index out of bounds error for Istio from the Datadog Agent status log. Can you open a support ticket so we can collect more information?

repo: DataDog/integrations-core


text:
SMTC-48: Split types out into separate files

Prior to this change we had a 700+ line file with all the different types in it.  After this change each of the different types is in its own file.

We're going to have to convey several concepts (types, properties, aspects, ...) see: https://docs.google.com/document/d/1dSgEMsCAV6PnNwRT5SRUEvUJz4rSyNDZ7PkbuYPQvXw/edit#heading=h.n8i3ythp7cbb so I'm wondering if we could move the types into their own folder? Beyond that I think it's just iterating on these definitions, which we'll do in other PRs.
Let me know if this makes sense.

I am not sure this is a good change. For instance, this looks to me like I am repeating myself:
from semantics.intake_resolved_http_span import IntakeResolvedHttpSpan
from semantics.intake_resolved_db_span import IntakeResolvedDbSpan
from semantics.intake_resolved_span import IntakeResolvedSpan
from semantics.agent_payload import AgentPayload

https://github.com/DataDog/schema/pull/46/files#diff-0804403265d8163059d18fd4de725191f8674f0fcac0357d24c63a5effaa9284R9-R12
If the problem is that a maintaining single Python, what's a second of module organization we can add?

One thing that we'll need is to be able to easily list all of the types for use cases such as "show me all of the types that have this property set to X that I really care about", like for Trust & Safety if they want to know which types are sensitive. This might be easier if we have a single file with all of the individual types and an array listing out all of the type objects.

be easier if we have a single file with all of the individual types and an array listing out all of the type

Check out the proposal here: https://docs.google.com/document/d/1dSgEMsCAV6PnNwRT5SRUEvUJz4rSyNDZ7PkbuYPQvXw/edit

authors: fpddog majorgreys tabgok

repo: DataDog/schema


text:
Use pytest -vv

Description
Full verbose mode prints more useful asserts, such as full diffs between compared values.
Motivation
Additional notes

Makes sense. Closing.

repo: DataDog/system-tests


text:
User auto instrumentation:  safe mode tests for dotnet

Description
Activate safe mode user auto instrumentation for the dotnet tracer > 2.32.0
Motivation
It is now implemented in the tracer
Reviewer checklist

all tests should pass
2 modifications

"manual.keep" never existed in dotnet tracers and is an old tag. we prefer using span["metrics"]["_sampling_priority_v1"] == self.MANUAL_KEEP
usr.id is not added if it's a PII, it is a whitespace only for nodejs

Great work @anna-git

Well, I missed that point : only default scenario was running, because the label run-all-scenarios was missing. In consequence, the scenario is brokken because we missed a detail : https://github.com/DataDog/system-tests-dashboard/actions/runs/5471736971/jobs/9963178571#step:22:55

My bad , let me open a PR to fix
On Thu, Jul 6, 2023 at 10:02 AM Charles de Beauchesne <
@.***> wrote:

Well, I missed that point : only default scenario was running, because the
label run-all-scenarios was missing. In consequence, the scenario is
brokken because we missed a detail :
https://github.com/DataDog/system-tests-dashboard/actions/runs/5471736971/jobs/9963178571#step:22:55
—
Reply to this email directly, view it on GitHub
https://github.com/DataDog/system-tests/pull/1347#issuecomment-1623176526,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7XNTXPHYIBY54SMJZMRFDXOZWJ7ANCNFSM6AAAAAAZ52DNLA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

authors: GustavoCaso anna-git cbeauchesne


text:
[Bug] [Module Name] Bug title dinky-standalone-server:1.1.0-flink1.19 The flink version path in the image is wrong

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
dinky-standalone-server:1.1.0-flink1.19 镜像里flink版本路径错误为flink1.17  /opt/dinky//extends/flink1.17/*
What you expected to happen
dinky-standalone-server:1.1.0-flink1.19 镜像里flink版本路径错误为flink1.17  /opt/dinky//extends/flink1.17/*,导到jar加载错误
How to reproduce
dinky-standalone-server:1.1.0-flink1.19 镜像里flink版本路径错误为flink1.17  /opt/dinky//extends/flink1.17/*
Anything else
No response
Version
1.1.0
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

docker内的内容是正确的，检查一下你是不是做了什么特殊配置呢

镜像：dinky-standalone-server:1.1.0-flink1.19       镜像ID：ad3d3d076f2b
我只是重新构建，把mysql驱动放到 customJar 下，其它的不变
容器内的路径和包是1.19的没错，只是jar加载的地址不对

镜像：dinky-standalone-server:1.1.0-flink1.19 镜像ID：ad3d3d076f2b 我只是重新构建，把mysql驱动放到 customJar 下，其它的不变 容器内的路径和包是1.19的没错，只是jar加载的地址不对

镜像里都没有这个路径，他是怎么加载到的呢，你重新构建是指的自己重新打包镜像吗，还是dockerhub上面的镜像

我重新下个镜像试试

helm 安装时 有个版本配置
extraEnv:
flinkVersion: "1.19"

repo: DataLinkDC/dinky


text:
Add support for Llama2, Palm, Cohere, Anthropic, Replicate, Azure Models - using litellm

This PR adds support for 100+ models with a standard I/O interface using: https://github.com/BerriAI/litellm/
ChatLiteLLM() is integrated into langchain and allows you to call all models using the ChatOpenAI I/O interface
https://python.langchain.com/docs/integrations/chat/litellm
Here's an example of how to use ChatLiteLLM()
ChatLiteLLM(model="gpt-3.5-turbo")
ChatLiteLLM(model="claude-2", temperature=0.3)
ChatLiteLLM(model="command-nightly")
ChatLiteLLM(model="replicate/llama-2-70b-chat:2c1608e18606fad2812020dc541930f2d0495ce32eee50074220b87300bc16e1")

@jcjc712 @MohammadrezaPourreza can you please take a look at this pr when possible ?
if this initial commit looks good to you - I will add docs/testing

repo: Dataherald/dataherald


text:
correct code style and add index page to agent

follow effective go style
add index apge to agent httpserver

Codecov Report

Merging #584 into master will decrease coverage by 0.03%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##           master     #584      +/-   ##
==========================================
- Coverage   20.38%   20.34%   -0.04%
==========================================
  Files          29       29
  Lines        1678     1681       +3
==========================================
  Hits          342      342
- Misses       1293     1295       +2
- Partials       43       44       +1

lgtm

lgtm

authors: codecov-io pwzgorilla rt456 xiaods

repo: Dataman-Cloud/swan


text:
Edits to exam practice

This is a work an progress and not ready to be merged. I'll comment and let you know when I think my edits are done.
So far I've only done structural changes and haven't reviewed the content. The changes are:

I gave each subproblem a number instead of a blank bullet point so it is easier to refer to.
I made the number of blank cells after each question consistent.

OK I'm done now.
My second commit made the following changes:

Made sure that if in a later problem we refer to a variable created in an earlier problem, we mention where the variable was supposed to have been created.
Minor wording adjustment to give a hint on the very last problem
Asked students to do the renaming of the columns of debt using a list and a dict.

I think this is great for a review of the material we have covered. I couldn't think of anything to change or add.

Great.
Dave, if you are happy with these changes hit that green "Merge Pull Request" button and these changes will be brought into the master brach.

That was fast!
// Spencer
On March 21, 2016 at 10:16:27 AM, Dave Backus (notifications@github.com) wrote:
Merged #13.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

license: mit


text:
Disable logging to console?

My purpose for using this library was that everything could be logged to files that I could go back and check later. This includes info logs, as well as error logs. I wanted to be able to track the course of my app, and see why a certain behaviour might have happened, or want to make sure that things have consistently ran as expected, but at the same time I'm likely to be busy developing new things, and not want to  clutter up my console with info logs about these various parts of the app.
So my request is: I'd like to have the option to have everything logged to a file and not the console. Or perhaps console logs that start at a different level.

Just an FYI, when I have a chance I'll add this option. Most likely for a version 2.0 (Swift 1.2).

This was actually already possible in the library, but I've added an easier way to do it. There's now a fileLogLevel parameter of the setup() method that lets you set a different log level for the file. The read me has an example.

authors: DaveWoodCom ProjectDent

repo: DaveWoodCom/XCGLogger


text:
Could not find any of the following: test, it, describe

I created an Angular application which offered 3 tests by default:
ng new ng-dummy
I then could run the tests from the command line:
11:12 $ ng test
✔ Browser application bundle generation complete.
19 06 2022 11:12:59.914:WARN [karma]: No captured browser, open http://localhost:9876/
19 06 2022 11:12:59.931:INFO [karma-server]: Karma v6.3.20 server started at http://localhost:9876/
19 06 2022 11:12:59.932:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
19 06 2022 11:12:59.936:INFO [launcher]: Starting browser Chrome
19 06 2022 11:13:01.190:INFO [Chrome 102.0.5005.115 (Linux x86_64)]: Connected on socket rEYPsN7y3S_ui1boAAAB with id 55219348
Chrome 102.0.5005.115 (Linux x86_64): Executed 3 of 3 SUCCESS (0.213 secs / 0.164 secs)
TOTAL: 3 SUCCESS
Chrome 102.0.5005.115 (Linux x86_64) ERROR
  Disconnected Client disconnected from CONNECTED state (transport close)
Chrome 102.0.5005.115 (Linux x86_64): Executed 3 of 3 SUCCESS (0.213 secs / 0.164 secs)
Chrome 102.0.5005.115 (Linux x86_64) ERROR
  Disconnected Client disconnected from CONNECTED state (transport close)

I was hopping to run them from within nvim:
use "David-Kunz/jester"

local status_ok, jester = pcall(require, "jester")
if not status_ok then
  return
end
jester.setup {
}

With the current cursor location in the body of one test, I typed in the command:
:lua require"jester".run()
But it did not run the test. Instead of displayed the message:
Could not find any of the following: test, it, describe
Angular CLI: 13.3.3
Node: 16.14.2
Package Manager: npm 8.5.0
OS: linux x64
14:01 $ nvim --version
NVIM v0.7.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az316-460

Hi @stephaneeybert ,
That's interesting. Would you mind showing the content of the file? Aren't there any describe/test/it functions?

@David-Kunz Hello !
Sorry for the late reply. So here is the full source code of the test generated by the Angular CLI tool:
  import { TestBed } from '@angular/core/testing';
  import { RouterTestingModule } from '@angular/router/testing';
  import { AppComponent } from './app.component';

  describe('AppComponent', () => {
    beforeEach(async () => {
      await TestBed.configureTestingModule({
        imports: [
          RouterTestingModule
        ],
        declarations: [
          AppComponent
        ],
      }).compileComponents();
    });

    it('should create the app', () => {
      const fixture = TestBed.createComponent(AppComponent);
      const app = fixture.componentInstance;
      expect(app).toBeTruthy();
    });

    it(`should have as title 'ng-dummy'`, () => {
      const fixture = TestBed.createComponent(AppComponent);
      const app = fixture.componentInstance;
      expect(app.title).toEqual('ng-dummy');
    });

    it('should render title', () => {
      const fixture = TestBed.createComponent(AppComponent);
      fixture.detectChanges();
      const compiled = fixture.nativeElement as HTMLElement;
      expect(compiled.querySelector('.content span')?.textContent).toContain('ng-dummy app is running!');
    });
  });

Thanks @stephaneeybert!
So there are some function calls with name it as well as describe blocks.
What Jester does: It looks at the parsed source code (done by Tree-Sitter) and finds the next it/test/describe function call.
Would you mind installing the plugin https://github.com/nvim-treesitter/playground and show the output of :TSPlayground?

I installed the above plugin and could see it being installed.
    use {
      "nvim-treesitter/nvim-treesitter",
      run = ":TSUpdate",
    }
    use "nvim-treesitter/playground"

My configuration is:
  local status_ok, configs = pcall(require, "nvim-treesitter.configs")
  if not status_ok then
    print("The treesitter extension could not be loaded")
    return
  end

  configs.setup {
    sync_install = false, -- installing languages asynchronously
    ignore_install = { "haskell", "go" }, -- List of parsers to ignore installing
    autopairs = {
      enable = true
    },
    highlight = {
      enable = true, -- enable the syntax highlighting
      disable = { "css", "markdown" }, -- list of languages to disable
      additional_vim_regex_highlighting = { "php" },
    },
    indent = {
      enable = true,
      disable = {
        "yaml"
      }
    },
    playground = {
    }
  }

But I guess I must have missed something, because when I type in the command :TSPlayground the right pane that opens up is totally empty, this on any project.

Interesting, then it seems to be a problem with parsing.
Is Tree-Sitter enabled for the buffer? Is the correct language detected?

I wonder how to check that...
For information, I do have errors showing up in Typescript and Java files, and I have the LSP servers installed and can even debug in Typescript.
If I type in a syntax error in the above source code, then it shows a red mark and a diagnostic is available.
typescript: ',' expected.
typescript: Variable 'fi' implicitly has an 'any' type

My nvim configuration is available as well.

Okay, then the LSP server and its interaction with Neovim is correctly working. It seems that Tree-Sitter isn't used for parsing.

Does :TSPlaygroundToggle work for a regular JavaScript file?
Does it work for a TypeScript file?

The command TSPlaygroundToggle gives
for a Typescript file, an empty right hand window
for a Javascript file, an empty right hand window
There is no such thing as the DOM tree in that window.
Sorry to keep you busy :-)

Interesting... Did you enable Tree-Sitter for those files in the first place?
In my configuration, I have
require'nvim-treesitter.configs'.setup {
  highlight = {
    enable = true
  }
}

to enable Tree-Sitter for syntax highlighting. Maybe this is a requirement.
Here's more info about how to enable it: https://github.com/nvim-treesitter/nvim-treesitter

Thanks a ton for this info @lethanhan97 , yes, adding it to the README would be great! I will do this real quick.

https://github.com/David-Kunz/jester/pull/14

@David-Kunz Yes I had this setup as well as seen in my pasted code above.
So I added the missing configuration:
ensure_installed = { "javascript", "typescript", "java" },
And now I can see the DOM tree for all 3 languages listed above.
Thanks guys !

All right there is progress. When using jester to run a test I now get another message:
nvim-treesitter.ts_utils.get_node_text is deprecated: use vim.treesitter.query.get_node_text
I reckon I need to clean up some cache or fix some config somewhere.

Hi, this is just a warning because of deprecated APIs. You can ignore that for now, it shouldn't be a problem. I will change it soon.

Indeed I can pass the warning message.
But I may have missed a step on the installation.
As I get the following output from running a test:
jest -t 'AppComponent should create the app' -
-dummy/src/app/app\\.component\\.spec\\.ts
✔ ~/trash/ng-dummy [master L|✔]
22:49 $ jest -t 'AppComponent should create th
ash/ng\\-dummy/src/app/app\\.component\\.spec\
Command 'jest' not found, did you mean:
command 'test' from deb coreutils (8.30-3ubu```

Oh ! There is such a thing as a Jest PATH ? That tells me I should install a jest utility on my system.
Now I see from your README here a link to https://jestjs.io and I discover a testing framework.
I had no clue your plugin needed the installation of an external command. Sorry !
I shall now proceed to install jest on my system and have it in my PATH and let you know about my mileage.

I'm closing this issue, if you still experience any problems, please come back to me.

I now installed jest with my install script:
if ! command -v jest &> /dev/null
then
  printf "\nInstalling the jest program used by the jester plugin\n"
  npm install -g --save-dev jest
  printf "\nConfiguring jest for typescript\n"
  npm install --save-dev @babel/preset-typescript
  npm install --save-dev babel-jest @babel/core @babel/preset-env
  npm install --save-dev ts-jest
  npm install --save-dev @types/jest
fi

I'll try to configure jest for typescript and come back with my results. Thanks !

Did you come up with a working config for typescript?

authors: David-Kunz phortonssf stephaneeybert

repo: David-Kunz/jester

license: Unlicense


text:
MD010 - Hard tabs (go use tabs in default)

when i use go code block, it should not report error

To allow tabs inside code blocks, set the code_blocks parameter of MD010 to false:
https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md010

authors: DavidAnson charrywanganthony

repo: DavidAnson/markdownlint


text:
Add a link to linter-node-markdownlint

There is a plugin that allow to use markdownlint with the atom linter
For me, I just ran apm install linter-node-markdownlint and restart atom.
Everything works fine.

Coverage remained the same at 100.0% when pulling e25f053839898f74a41b79de461dd5f3a4b030b9 on guillaumearm:patch-1 into 5dcdb55952270d9775860531226d9c8807b4bbd7 on DavidAnson:master.

Coverage remained the same at 100.0% when pulling e25f053839898f74a41b79de461dd5f3a4b030b9 on guillaumearm:patch-1 into 5dcdb55952270d9775860531226d9c8807b4bbd7 on DavidAnson:master.

Coverage remained the same at 100.0% when pulling e25f053839898f74a41b79de461dd5f3a4b030b9 on guillaumearm:patch-1 into 5dcdb55952270d9775860531226d9c8807b4bbd7 on DavidAnson:master.

Great find, thank you!

authors: DavidAnson coveralls guillaumearm


text:
🛑 (Server) Sparkserver is down

In af8af22, (Server) Sparkserver (https://core.sparkserver.io/soapbox-race-core/Engine.svc/GetServerInformation) was down:

HTTP code: 0
Response time: 0 ms

Resolved: (Server) Sparkserver is back up in ea96e04.

repo: DavidCarbon-SBRW/Status


text:
Drop the cross-referencing of cached features; plot those with logits only, if need be.

It looks like the most preferred neurons are generally off-distribution.

Do this generally, I think: wherever there's an intersection op in place, substitute an operation that includes the relevant data when available, but otherwise simply continues without it.


text:
feat(jellyfish-network): isSkippedTxId for MainNet & TestNet

What this PR does / why we need it:
https://github.com/DeFiCh/ain/pull/476
Introduce isSkippedTxId for @defichain/jellyfish-network. Post Dakota hard fork we do not allow tx to be skipped, so a tx that's a part of the block at the main chain is applied otherwise we search in a static array of knowing tx that are marked as skipped.

looks like we don't have an RPC exactly for this need. This way might have to maintain the list on both sides. might be worth adding it to cpp side in the future?

Nope, I would say it's an one off implementation. On cpp side, currently included in decodecustomtx rpc as "valid".

repo: DeFiCh/jellyfish


text:
Don't save images with target in detection task

🐛 Describe the bug
When I try save predict of Yolo with target's boxes and classes, I get not correct work In ImagesDetectionPrediction in src/super_gradients/training/utils/predict/prediction_results.py in 552 str. you have:
 prediction.save(
                output_path=image_output_path,
                box_thickness=box_thickness,
                show_confidence=show_confidence,
                color_mapping=color_mapping,
                class_names=class_names,
            )

In my opinion, you fogot target_bboxes. This work corect for me if i change that bloc on this:
 prediction.save(
                output_path=image_output_path,
                box_thickness=box_thickness,
                show_confidence=show_confidence,
                color_mapping=color_mapping,
                target_bboxes=target_bbox,
                target_bboxes_format=target_bboxes_format,
                target_class_ids=target_class_id,
                class_names=class_names,
            )

My wr
Versions
PyTorch version: 1.10.0+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
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.16.3
Libc version: glibc-2.31
Python version: 3.8.10 (default, Nov 22 2023, 10:22:35)  [GCC 9.4.0] (64-bit runtime)
Python platform: Linux-5.15.0-101-generic-x86_64-with-glibc2.29
Is CUDA available: True
CUDA runtime version: 11.3.109
CUDA_MODULE_LOADING set to:
GPU models and configuration:
GPU 0: NVIDIA A40
GPU 1: NVIDIA A40
GPU 2: NVIDIA A40
GPU 3: NVIDIA A40
GPU 4: NVIDIA A40
GPU 5: NVIDIA A40
GPU 6: NVIDIA A40
GPU 7: NVIDIA A40
Nvidia driver version: 550.54.15
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.2.1
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.2.1
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:                      52 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:                              106
Model name:                         Intel(R) Xeon(R) Gold 6338 CPU @ 2.00GHz
Stepping:                           6
CPU MHz:                            800.000
CPU max MHz:                        3200.0000
CPU min MHz:                        800.0000
BogoMIPS:                           4000.00
Virtualization:                     VT-x
L1d cache:                          3 MiB
L1i cache:                          2 MiB
L2 cache:                           80 MiB
L3 cache:                           96 MiB
NUMA node0 CPU(s):                  0-31,64-95
NUMA node1 CPU(s):                  32-63,96-127
Vulnerability Gather data sampling: Mitigation; Microcode
Vulnerability Itlb multihit:        Not affected
Vulnerability L1tf:                 Not affected
Vulnerability Mds:                  Not affected
Vulnerability Meltdown:             Not affected
Vulnerability Mmio stale data:      Mitigation; Clear CPU buffers; SMT vulnerable
Vulnerability Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
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 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 invpcid_single intel_ppin ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi 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 wbnoinvd dtherm ida arat pln pts avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid fsrm md_clear pconfig flush_l1d arch_capabilities
Versions of relevant libraries:
[pip3] numpy==1.23.0
[pip3] onnx==1.13.0
[pip3] onnx-simplifier==0.4.36
[pip3] onnxruntime==1.13.1
[pip3] onnxruntime-gpu==1.18.0
[pip3] pytorch-quantization==2.1.2
[pip3] torch==1.10.0+cu113
[pip3] torchmetrics==0.8.0
[pip3] torchvision==0.11.1+cu113
[pip3] triton==2.3.0
[conda] Could not collect

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

authors: HTneko fitagdinov

repo: Deci-AI/super-gradients


text:
How to reduce the number of layers of yolo small model

I want to make a light version of yolo-nas less than yolo small model . In YoloV8 we can change the depth, width parameter in yolov8.yaml file , similarly could i adjust hidden_channels and width_mult in this file to achieve it.
Also another question is this file base for only Yolov1 to Yolov8 only or else is it base for yolo-nas also

Hello, please refer to 3 files here: yolo_nas_{s,m,l}_arch_params.yaml.
There are many parameters there, together with depth_mult, and width_mult.

authors: NatanBagrov ajithkumarmcw


text:
profile 닉네임 변경시 게시글, 댓글 닉네임변경

        // 관련 게시글의 닉네임 업데이트
        const { error: postUpdateError } = await supabase
          .from("posts")
          .update({ userName: newNickName })
          .eq("userId", userInfo?.id);
        if (postUpdateError) throw postUpdateError

        // 관련 댓글의 닉네임 업데이트
        const { error: commentUpdateError } = await supabase
          .from("postComment")
          .update({ userName: newNickName })
          .eq("userId", userInfo?.id);
        if (commentUpdateError) throw commentUpdateError;

닉네임 변경하면 게시글, 댓글 닉네임도 변경되게 로직 추가했습니다!

확인했습니다


text:
[~WATCH!].√full@clip— Dolphin Ayan Viral Video 𝖮𝗋𝗂𝗀𝗂𝗇𝖺𝗅 Private Video On Social Media Twitter-X (√Trending)

+$+~VIRAL Dolphin Ayan Tiktok Video Full Original Video Pakistani TikTok Star Dolphin Ayan Video Viral On Social Media X TikTok Trending
Dolphin Ayan 𝖮𝗋𝗂𝗀𝗂𝗇𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝗏𝗂𝖽𝖾𝗈 𝗍𝗈𝗈𝗄 𝗍𝗁𝖾 𝗂𝗇𝗍𝖾𝗋𝗇𝖾𝗍 𝖻𝗒 𝗌𝗍𝗈𝗋𝗆 𝖺𝗇𝖽 𝖺𝗆𝖺𝗓𝖾𝖽 𝗏𝗂𝖾𝗐𝖾𝗋𝗌 𝗈𝗇 𝗏𝖺𝗋𝗂𝗈𝗎𝗌 𝗌𝗈𝖼𝗂𝖺𝗅 𝗆𝖾𝖽𝗂𝖺 𝗉𝗅𝖺𝗍𝖿𝗈𝗋𝗆𝗌 𝖳𝗎𝗆𝗆𝗒 𝗍𝖾𝖺𝗋 𝗏𝗂𝗋𝖺𝗅 𝖿𝗎𝗅𝗅 𝗏𝗂𝖽𝖾𝗈 𝗅𝖾𝖺𝗄𝖾𝖽 𝗌𝗈𝖼𝗂𝖺𝗅 𝗆𝖾𝖽𝗂𝖺 𝗍𝗐𝗂𝗍𝗍𝖾𝗋
𝖶𝖺𝗍𝖼𝗁 🟢 ➤ ➤ ➤ 🌐 𝖢𝗅𝗂𝖼𝗄 𝖧𝖾𝗋𝖾 𝖳𝗈 𝗅𝗂𝗇𝗄 (𝖥𝗎𝗅𝗅 𝖵𝗂𝗋𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝖫𝗂𝗇𝗄)
🔴 ➤►𝖣𝖮𝖶𝖭𝖫𝖮𝖠𝖣👉👉 (𝖥𝗎𝗅𝗅 𝖵𝗂𝗋𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝖫𝗂𝗇𝗄) 𝖶𝖺𝗍𝖼𝗁
🟢 ➤ ➤ ➤ 🌐 𝖢𝗅𝗂𝖼𝗄 𝖧𝖾𝗋𝖾 𝖳𝗈 𝗅𝗂𝗇𝗄 (𝖥𝗎𝗅𝗅 𝖵𝗂𝗋𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝖫𝗂𝗇𝗄)
🔴 ➤►𝖣𝖮𝖶𝖭𝖫𝖮𝖠𝖣👉👉 (𝖥𝗎𝗅𝗅 𝖵𝗂𝗋𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝖫𝗂𝗇𝗄)
𝖳𝗁𝖾 𝗋𝖾𝖼𝗎𝗋𝗋𝖾𝗇𝗍 𝗍𝗁𝖾𝗆𝖾 𝗈𝖿 𝖫𝖾𝖺𝚔𝖾𝖽 𝗍𝖺𝗉𝖾𝗌 𝖺𝗇𝖽 𝗍𝗁𝖾 𝗌𝗎𝖻𝗌𝖾𝗊𝗎𝖾𝗇𝗍 𝖿𝖺𝗅𝗅𝗈𝗎𝗍 𝗌𝖾𝗋𝗏𝖾𝗌 𝖺𝗌 𝖺 𝗋𝖾𝗆𝗂𝗇𝖽𝖾𝗋 𝗈𝖿 𝗍𝗁𝖾 𝖿𝗋𝖺𝗀𝗂𝗅𝗂𝗍𝗒 𝗈𝖿 𝗋𝖾𝗉𝗎𝗍𝖺𝗍𝗂𝗈𝗇 𝗂𝗇 𝗍𝗁𝖾 𝖽𝗂𝗀𝗂𝗍𝖺𝗅 𝖾𝗋𝖺. 𝖠𝗌 𝗍𝗁𝖾 𝗅𝗂𝗇𝖾𝗌 𝖻𝖾𝗍𝗐𝖾𝖾𝗇 𝗉𝗋𝗂𝗏𝖺𝗍𝖾 𝖺𝗇𝖽 𝗉𝗎𝖻𝗅𝗂𝖼 𝗅𝗂𝖿𝖾 𝖼𝗈𝗇𝗍𝗂𝗇𝗎𝖾 𝗍𝗈 𝖻𝗅𝗎𝗋, 𝖼𝖾𝗅𝖾𝖻𝗋𝗂𝗍𝗂𝖾𝗌 𝗅𝗂𝗄𝖾 𝖯𝗋𝗂𝗌𝗈𝗇 𝖮𝖿𝖿𝗂𝖼𝖾𝗋𝖿𝗂𝗇𝖽 𝗍𝗁𝖾𝗆𝗌𝖾𝗅𝗏𝖾𝗌 𝖺𝗍 𝗍𝗁𝖾 𝗆𝖾𝗋𝖼𝗒 𝗈𝖿 𝗂𝗇𝗍𝖾𝗋𝗇𝖾𝗍 𝖼𝗁𝖺𝗍𝗍𝖾𝗋, 𝗐𝗁𝖾𝗋𝖾 𝖺 𝗋𝗎𝗆𝗈𝗋 𝖼𝖺𝗇 𝗂𝗀𝗇𝗂𝗍𝖾 𝖺 𝖿𝗂𝗋𝖾𝗌𝗍𝗈𝗋𝗆 𝗈𝖿 𝗌𝗉𝖾𝖼𝗎𝗅𝖺𝗍𝗂𝗈𝗇 𝖺𝗇𝖽 𝗃𝗎𝖽𝗀𝗆𝖾𝗇𝗍.
𝖨𝗇 𝗍𝗁𝖾 𝖾𝗏𝖾𝗋 𝖾𝗏𝗈𝗅𝗏𝗂𝗇𝗀 𝗅𝖺𝗇𝖽𝗌𝖼𝖺𝗉𝖾 𝗈𝖿 𝖼𝖾𝗅𝖾𝖻𝗋𝗂𝗍𝗒 𝖼𝗎𝗅𝗍𝗎𝗋𝖾, 𝗍𝗁𝖾 𝖨𝗌𝗁𝗈𝗐𝗌𝗉𝖾𝖾𝖽𝗌𝖼𝖺𝗇𝖽𝖺𝗅 𝗎𝗇𝖽𝖾𝗋𝗌𝖼𝗈𝗋𝖾𝗌 𝗍𝗁𝖾 𝗋𝖾𝗅𝖾𝗇𝗍𝗅𝖾𝗌𝗌 𝗉𝗎𝗋𝗌𝗎𝗂𝗍 𝗈𝖿 𝗌𝖾𝗇𝗌𝖺𝗍𝗂𝗈𝗇𝖺𝗅𝗂𝗌𝗆, 𝖺 𝗉𝗎𝗋𝗌𝗎𝗂𝗍 𝗍𝗁𝖺𝗍 𝗈𝖿𝗍𝖾𝗇 𝖼𝗈𝗆𝖾𝗌 𝖺𝗍 𝗍𝗁𝖾 𝖾𝗑𝗉𝖾𝗇𝗌𝖾 𝗈𝖿 𝗍𝗋𝗎𝗍𝗁 𝖺𝗇𝖽 𝖽𝗂𝗀𝗇𝗂𝗍𝗒. 𝖠𝗌 𝗐𝖾 𝗇𝖺𝗏𝗂𝗀𝖺𝗍𝖾 𝗍𝗁𝖾 𝖼𝗈𝗆𝗉𝗅𝖾𝗑𝗂𝗍𝗂𝖾𝗌 𝗈𝖿 𝗍𝗁𝖾 𝖽𝗂𝗀𝗂𝗍𝖺𝗅 𝖺𝗀𝖾, 𝗍𝗁𝖾 𝗅𝗂𝗇𝖾 𝖻𝖾𝗍𝗐𝖾𝖾𝗇 𝖾𝗇𝗍𝖾𝗋𝗍𝖺𝗂𝗇𝗆𝖾𝗇𝗍 𝖺𝗇𝖽 𝖾𝗑𝗉𝗅𝗈𝗂𝗍𝖺𝗍𝗂𝗈𝗇 𝗋𝖾𝗆𝖺𝗂𝗇𝗌 𝗉𝖾𝗋𝗂𝗅𝗈𝗎𝗌𝗅𝗒 𝗍𝗁𝗂𝗇.
𝖠𝗌 𝗍𝗁𝖾 𝗌𝗂𝗍𝗎𝖺𝗍𝗂𝗈𝗇 𝗎𝗇𝖿𝗈𝗅𝖽𝗌, 𝗍𝗁𝖾 𝗍𝗋𝗎𝗍𝗁 𝗋𝖾𝗆𝖺𝗂𝗇𝗌 𝗌𝗁𝗋𝗈𝗎𝖽𝖾𝖽 𝗂𝗇 𝗆𝗒𝗌𝗍𝖾𝗋𝗒, 𝗅𝖾𝖺𝗏𝗂𝗇𝗀 𝗍𝗁𝖾 𝗉𝗎𝖻𝗅𝗂𝖼 𝗍𝗈 𝗉𝗈𝗇𝖽𝖾𝗋 𝗍𝗁𝖾 𝖺𝗎𝗍𝗁𝖾𝗇𝗍𝗂𝖼𝗂𝗍𝗒 𝗈𝖿 𝗍𝗁𝖾 𝗋𝗎𝗆𝗈𝗋𝗌. 𝖨𝗇 𝖺 𝗐𝗈𝗋𝗅𝖽 𝗐𝗁𝖾𝗋𝖾 𝖿𝖺𝗆𝖾 𝖺𝗇𝖽 𝗂𝗇𝖿𝖺𝗆𝗒 𝖺𝗋𝖾 𝗍𝗐𝗈 𝗌𝗂𝖽𝖾𝗌 𝗈𝖿 𝗍𝗁𝖾 𝗌𝖺𝗆𝖾 𝖼𝗈𝗂𝗇, 𝗍𝗁𝖾 𝗌𝖺𝗀𝖺 𝗈𝖿 𝖨𝗌𝗁𝗈𝗐𝗌𝗉𝖾𝖾𝖽𝗂𝗌 𝖺 𝗍𝖾𝗌𝗍𝖺𝗆𝖾𝗇𝗍 𝗍𝗈 𝗍𝗁𝖾 𝗉𝗈𝗐𝖾𝗋 𝗈𝖿 𝗌𝗈𝖼𝗂𝖺𝗅 𝗆𝖾𝖽𝗂𝖺 𝗍𝗈 𝗌𝗁𝖺𝗉𝖾 𝗇𝖺𝗋𝗋𝖺𝗍𝗂𝗏𝖾𝗌 𝖺𝗇𝖽 𝖼𝗁𝖺𝗅𝗅𝖾𝗇𝗀𝖾 𝗍𝗁𝖾 𝖻𝗈𝗎𝗇𝖽𝖺𝗋𝗂𝖾𝗌 𝗈𝖿 𝗉𝗋𝗂𝗏𝖺𝖼𝗒 𝖺𝗇𝖽 𝖼𝗈𝗇𝗌𝖾𝗇𝗍.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

dsfds

repo: DeepSourceCorp/good-first-issue


text:
Can't find the start_up folder after installing deepr-ai on Windows

Hi there,
I recently installed deepr-ai on my Windows machine via pip, but I can't seem to find the start_up folder. I also tried building and installing deepr-ai from the source code, but the issue persists. Could you please provide some guidance on how to get started with deepr-ai and locate the start_up folder?

i also tried installing via pip:

I would appreciate any help or guidance you can provide. Thanks!

Hey @RepoRascal, sorry for the confusion.
At the moment, there is no start_up folder. Deepr_ai is still under development, and this folder has not yet been added.
However, there is some documentation in the works, available here: https://docs.deepr.dev/books/deeprai-docs
Although this doesn't appear to be a Windows-related problem, please bear in mind that support for Windows is still experimental, as @ArrowsGD and myself have limited access to Windows machines.
I will make a pull request to clarify the documentation, for the time being.

authors: RepoRascal jvadair

repo: Deepr-ai/Deepr-ai


text:
Claude模型多轮对话后报错

[x] 我已确认目前没有类似 issue
[x] 我已确认我已升级到最新版本
[x] 我已完整浏览项目 README 和项目文档并未找到解决方案
[x] 我理解并愿意跟进此 issue，协助测试和提供反馈
[x] 我将以礼貌和尊重的态度提问，不得使用不文明用语 (包括在此发布评论的所有人同样适用, 不遵守的人将被 block)
[x] 我理解并认可上述内容，并理解项目维护者精力有限，不遵循规则的 issue 可能会被无视或直接关闭

问题描述
使用claude-3-5-sonnet模型多轮对话后会出现报错，稳定复现，日志如下
[DEBUG] - [2024-07-24 15:35:15] - [sse] request failed with status: 400 Bad Request
response: {"error":{"code":"error","message":"Provider API error: messages: first message must use the \"user\" role (request id: 202407241536201035967397AHrZz4L)","type":"invalid_request_error"}}
[WARNING] - [2024-07-24 15:35:15] - [channel] caught error Provider API error: messages: first message must use the "user" role  (type: invalid_request_error) for model claude-3-5-sonnet-20240620 at channel one-api
[INFO] - [2024-07-24 15:35:15] - [channel] channels are exhausted for model claude-3-5-sonnet-20240620
[WARNING] - [2024-07-24 15:35:15] - Provider API error: messages: first message must use the "user" role  (type: invalid_request_error) (model: claude-3-5-sonnet-20240620, client: ***

相关截图 (如果有)

是不是上游接的中转

oneapi接的vertex

那就是了 one的bug

duplicate #227

切换成anthropic渠道后使用oneapi提供的/claude接口，测试后解决了此问题。感谢

使用oneapi提供的/claude接口，

好的

repo: Deeptrain-Community/chatnio


text:
error on import bearer cli report

Hello,
I have tried to import json report that I have got scanning webgoat with bearer version 1.46.4, build 380afa10188c8a5e5a4f3c6ebe7009373b44137f  but I got the error "An exception error occurred during the report import: 'snippet'" (see details below)
uwsgi-1         | [12/Nov/2024 14:26:46] ERROR [dojo.engagement.views:933] 'snippet'
uwsgi-1         | Traceback (most recent call last):
uwsgi-1         |   File "/app/dojo/engagement/views.py", line 924, in import_findings
uwsgi-1         |     context["test"], _, finding_count, closed_finding_count, _, _, _ = importer_client.process_scan(
uwsgi-1         |                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
uwsgi-1         |   File "/app/dojo/importers/default_importer.py", line 107, in process_scan
uwsgi-1         |     self.parsed_findings = self.parse_findings(scan, parser)
uwsgi-1         |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
uwsgi-1         |   File "/app/dojo/importers/default_importer.py", line 313, in parse_findings
uwsgi-1         |     self.parsed_findings = self.parse_findings_static_test_type(scan, parser)
uwsgi-1         |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
uwsgi-1         |   File "/app/dojo/importers/default_importer.py", line 330, in parse_findings_static_test_type
uwsgi-1         |     return super().parse_findings_static_test_type(scan, parser)
uwsgi-1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
uwsgi-1         |   File "/app/dojo/importers/base_importer.py", line 161, in parse_findings_static_test_type
uwsgi-1         |     return parser.get_findings(scan, self.test)
uwsgi-1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
uwsgi-1         |   File "/app/dojo/tools/bearer_cli/parser.py", line 36, in get_findings
uwsgi-1         |     description=bearerfinding["description"] + "\n Detected code snippet: \n" + bearerfinding["snippet"],
uwsgi-1         |                                                                                ~~~~~~~~~~~~~^^^^^^^^^^^
uwsgi-1         | KeyError: 'snippet'
Then I have renamed "code_extract" property with "snippet and I have successufully imported the report.
Regards,
Sal

Could you test this PR @saldam72 ?

Hi Manuel,
I cannot test this PR because at the moment I cannot build image.
Regards,
Sal

@saldam72 , could you please close this issue? The PR is merged already.

repo: DefectDojo/django-DefectDojo


text:
Add Finding Unit Tests

Please use the following example at as a template:
https://github.com/DefectDojo/django-DefectDojo/blob/dev/tests/Product_unit_test_example.py
Implement the following tests:

Add
Edit
Delete
Import scan results
Add Images
Delete Images
Mark for review
Make a template and use template for another finding
Close Finding

Master List and Overview: https://docs.google.com/document/d/1dSS7tWuQukAX3VWtzPAlOfFNoqLQh-mBHBfmsu2WlU0/edit?usp=sharing

@Maffooch, please, really have a look at https://github.com/DefectDojo/django-DefectDojo/issues/1131#issuecomment-493279138 before using https://github.com/DefectDojo/django-DefectDojo/blob/dev/tests/Product_unit_test_example.py for all the functional tests. :pray:

@Maffooch  assign this to me.
i'm done with product

authors: Maffooch ppiotr3k propersam


text:
pip update error (Django>=1.11.18)

Issue Type

[x] Bug
[ ] Enhancement

Description
In 9f82fed3086e7169c7952a2c5670f094713b7059, the latest django was introduced in the requirements.txt:
Django>=1.11.18
This runs in an error during the update process because Django in version 2 will be fetched. Instead, the update string should be somthing like this: Django==1.11.*
Operating System
CentOS
Install

[x] setup.bash
[ ] docker

DefectDojo Version
1.5.1
Steps to Reproduce
Update the latest pip requirements
 pip install -r requirements.txt --upgrade
Log

Downloading https://files.pythonhosted.org/packages/7e/ae/29c28f6afddae0e305326078f31372f03d7f2e6d6210c9963843196ce67e/Django-2.1.7.tar.gz (8.6MB)
100% |################################| 8.6MB 121kB/s
Complete output from command python setup.py egg_info:
==========================
Unsupported Python version
==========================

This version of Django requires Python 3.5, but you're trying to
install it on Python 2.7.

Thx correct!

authors: aaronweaver no-sec-marko


text:
Ruff: clean-up after multiple merges not cover by new rules

Multiple merges in a similar time have not been able to cover new Ruff rules.
This is a cleanup of these merges.
And solution for

https://github.com/DefectDojo/django-DefectDojo/pull/10042
https://github.com/DefectDojo/django-DefectDojo/pull/10068
Btw, do we need 2 dep-checkers of the same file? (still better 2 then 0)

I generated this PR without deeper analysis (just by using ruff .... --fix) but I just noticed that some of changes will be dropped soon (all create_notification will be changed in https://github.com/DefectDojo/django-DefectDojo/pull/8824) and I suppose many on them should keep % syntax and base strings should be moved to _(...).

Ah shoot.. looks like we had a unit test relying on that unnecessary double apostrophe...
2024-05-01T21:01:34.0181329Z uwsgi-1  | ======================================================================
2024-05-01T21:01:34.0182046Z uwsgi-1  | FAIL: test_import_with_invalid_parameters (unittests.test_importers_importer.FlexibleImportTestAPI.test_import_with_invalid_parameters) [invalid engagement]
2024-05-01T21:01:34.0182289Z uwsgi-1  | ----------------------------------------------------------------------
2024-05-01T21:01:34.0182471Z uwsgi-1  | Traceback (most recent call last):
2024-05-01T21:01:34.0183034Z uwsgi-1  |   File "/app/unittests/test_importers_importer.py", line 305, in test_import_with_invalid_parameters
2024-05-01T21:01:34.0183541Z uwsgi-1  |     self.assertEqual(import0, ["Engagement '1254235' doesn''t exist"])
2024-05-01T21:01:34.0184055Z uwsgi-1  | AssertionError: Lists differ: ["Engagement '1254235' doesn't exist"] != ["Engagement '1254235' doesn''t exist"]
2024-05-01T21:01:34.0184158Z uwsgi-1  |
2024-05-01T21:01:34.0184308Z uwsgi-1  | First differing element 0:
2024-05-01T21:01:34.0184483Z uwsgi-1  | "Engagement '1254235' doesn't exist"
2024-05-01T21:01:34.0184658Z uwsgi-1  | "Engagement '1254235' doesn''t exist"
2024-05-01T21:01:34.0184766Z uwsgi-1  |
2024-05-01T21:01:34.0184951Z uwsgi-1  | - ["Engagement '1254235' doesn't exist"]
2024-05-01T21:01:34.0185138Z uwsgi-1  | + ["Engagement '1254235' doesn''t exist"]
2024-05-01T21:01:34.0185288Z uwsgi-1  | ?                              +
2024-05-01T21:01:34.0185387Z uwsgi-1  |
2024-05-01T21:01:34.0185488Z uwsgi-1  |
2024-05-01T21:01:34.0185735Z uwsgi-1  | ----------------------------------------------------------------------

authors: cneill kiblik


text:
K8s helm extending configs

@ptrovatelli
Related to https://github.com/DefectDojo/django-DefectDojo/pull/2584
Additional to previous PR test for pqsql replicas  and test for extra configs have been added
Old PR can can be closed.

fyi @ccojocar

@madchap,  after we did two days ado some changes inside of travis files i need to reflect the same into this PR `or tests will fail :/

@madchap, after we did two days ado some changes inside of travis files i need to reflect the same into this PR `or tests will fail :/

Fixed

@dsever sorry to insist, but are those commits on dev branch? if yes, you should rebase rather than picking commits. It makes the review much easier
as per the PULL_REQUEST_TEMPLATE.md, you only need to:
this first part is just to "erase" the commits you just picked/merged (assuming your clone is the remote myOrigin and the main github remote is origin;  check the remotes aliases with git remote -v )
git checkout k8s-helm-extending-configs
git rebase -i origin/dev

a file should open, replace in it "pick" by "drop" to erase the commits
Check the result with git log. You should be in the same state as yesterday
Then follow the PULL_REQUEST_TEMPLATE.md  :
git rebase dev k8s-helm-extending-configs
In case of conflict:
 git mergetool
 git rebase --continue

Check the result with git log: again you should see the exact same commits as yesterday, just now they are placed after dev (except if you resolved conflicts)
When everything's fine on your local branch, force push to your myOrigin remote:
git push myOrigin --force-with-lease

To cancel everything:
git rebase --abort

thanks!

lgtm too. Squash and merge anyways. @ptrovatelli you want to have a last look? @alles-klar ?

Please take a look https://github.com/DefectDojo/django-DefectDojo/pull/2847
It is squashed

https://github.com/DefectDojo/django-DefectDojo/pull/2847 is easier to review; closing this one

authors: dsever madchap ptrovatelli


text:
fix jira add/edit configuration

fixes adding / editing JIRA config which is broken in 1.9.0 and 1.9.1
fixes #3162 #3163

Is the workflow file intended to be changed here? Otherwise looks fine.

Is the workflow file intended to be changed here? Otherwise looks fine.

good spot. I rebased, but forgot the change base branch in the PR, looks better now.

Added another commit to stop the JIRA setup code from swallowing exceptions.

authors: Maffooch valentijnscholten


text:
🛑 cPanel is down

In 05f8ba9, cPanel (https://charlie.delta-core.fr) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cPanel is back up in dca6a79 after 6 minutes.

repo: Delta-Core/status


text:
Create a (cumulative) integrated boundary flux in Ribasim and expose it via BMI

For the coupling to MODFLOW 6 we need to know how much of a requested infiltration flux could be realized by Ribasim over a given timespan. If Ribasim does a cumulative integration of its boundary fluxes, we can extract a realized volume per timestep by computing the difference over any given timespan.

linked to #935

Fixed by #1300

authors: HendrikKok gijsber visr

repo: Deltares/Ribasim


text:
dz in stability_constraint_advection  is determined differently from iMOD-WQ

In GitLab by @T.Mulder on Jun 24, 2021, 13:21
If I use the stability_constraint_advection to compute the dt the smallest dt is different from the dt in the list output file of my iMOD-WQ modelrun (imod-wq_svn359_x64r.exe).
The difference lies in the way 'dz' is determined:
if "dz" not in top_bot:
top_bot["dz"] = top_bot["top"] - top_bot["bot"]
# dz between layers is 0.5dz_up + 0.5dz_down
dz_m = top_bot.dz.rolling(layer=2, min_periods=2).mean()
dz_m = dz_m.shift(layer=-1)
If i just use "dz  = top_bot["top"] - top_bot["bot"] " i get the same values for dt as iMOD-WQ comes up with.

In GitLab by @jdelsman on Jul 7, 2021, 10:34
mentioned in commit f37bd8e905cac7077c6b3acdfe202d84861d555b

In GitLab by @jdelsman on Jul 7, 2021, 10:34
mentioned in commit 7c5e04d62bf898792e6bd4deb45f3754ed851bd5

repo: Deltares/imod-python


text:
iMODSEAWAT: dsp-dmcoef is written instead of al

In GitLab by @VinceKaandorp on Dec 18, 2018, 14:57
This doesn't seem right:
[dsp]
    al_l1 = c:\testbank_imod-WQ\Notebook\HenryCase\dsp\dsp-dmcoef_l1.idf

The wrong path is written for al_l* fields, possibly for the other [dsp] fields as well.

In GitLab by @visr on Jul 22, 2019, 11:50
closed

In GitLab by @Huite on Dec 18, 2018, 15:52
The problem appears to be that it does not throw an error when other "dsp" are defined, but these do get added to the "dsp" package dictionary inside of imod.run.
These values are almost always scalar, so for now it should just throw an error such as "dmcoef" is not a field of "dsp", or something.
This also has to be fixed in the HenryCase example!


text:
test issue1

testing only.  not complete yet.

##comment 1


text:
Testing - QR codes to use for Cypress E2E

Quoting @Mikado719 from #1

Do you have a test QR from keys.gov.bm now that the dependencies and pubkey have been updated?

Can the following QR codes be provided to assist with testing:

Valid - PCR Test Certificate
Valid - SafeKey
Valid - Vaccination Certificate
Invalid - PCR Test Certificate
Invalid - SafeKey
Invalid - Vaccination Certificate

I imagine there are possible security issues with providing valid QR codes. The code would have to recognise them if they were ever used outside of testing.

Looks like we will have to get valid QR codes from people we know. I got one from a friend for testing.

Do you still need? How old can the key be? I have an invalid SafeKey from a test this past week and a valid one from vaccination in March that they sent me last week as well.

Hi Guys, apologies, I was swamped over the last week rolling out the certificates themselves.  I'll work to get you samples

Here's a valid Safe Key

CRED:BM.KEY:1:GBCQEIIAV4ODCPXQUBANOX7NJUQWGLOC37D5WEII7HKM4FM3EOZ5NY3A2O2AEIAFGG4X7Y5CNDP5IBZQVN5UBQBTIDHX464KB47QIVAFIX5YRSHD7A:KEYS.GOV.BM:20210615/XX/JAN01/

Here's a valid Vaccine Certificate

CRED:BM.VAX:1:GBDAEIIA7JHKRCVMV73LJMU6XUQQZMMHHZJMML5CZSHGKJE5S62KFGBB7QCQEIIA5TVIVLIKRLZIDXKI65M3GBS5P4BTY7T6KPTKQMLN4JJ5OUBLQX7A:KEYS.GOV.BM:XFIRSTNAME/XLASTNAME/20210101/MALE/7284809/TYPE1/LOT1/20210101/TYPE2/LOT2/20210121/

Valid PCR Test Certificate

CRED:BM.PCR:1:GBCQEIBLKQSK6C6OGQQIRNSM3DSCPXBBRBRV54OSZQHVYSWVPYGVD6LCNUBCCAGTIBVXAU6EDTTPOWK5GIDWUV7KL2KJ2VXZEA6COBUF76IKYIBE5Q:KEYS.GOV.BM:XLASTNAME/XFIRSTNAME/XMIDDLENAME/20210101/MALE/23040225/7284809/20200101/20200101/SARS-COV-2%20RT-QPCR/NEGATIVE/

Expired Safe Key

CRED:BM.KEY:1:GBCQEIIA7EVN4SCKPKQFIVBMFFZV53RAX4A2JXU6QYGZCQAYTZEB2GKCHJ5QEIDZZUBI2CYHMYFCGB62I7BVCJL2EMCFJFQTZ5JFSTJQZAO5U4A3YY:KEYS.GOV.BM:20210529/XX/JAN01/

I've added these to the readme.  I haven't added any invalid certificates as they are presently not recognized at all by the app if they're not signed by the government key.  They have no expiry dates because they're certificates attesting to the information as specified.


text:
Denizen does not copy JSON data on books

holding a book in my hand that has json data, with click events and all that, and doing give player.item_in_hand  gives me  the book without the click event and other json data

I blame bukkit.

Could we see an improvement in JSON handling in denizen in overall, or if it's already functional, could i see some documentation?

could we, on item scripts and book scripts, have a 'JSON:' key that would allow you to put in raw jason (with dodgy symbol escaping if needed) that would be put directly in the item as working json data?
scriptname:
type: item
material i@stone_sword
json: raw json here

@BlackCoyote JSON is valid YAML so

raw jason
Someone, somewhere, named Jason, is very confused.

its early and i'm dutch

Not even sure what to do here. @mcmonkey4eva ?

@Morphan1 change the property to be like
book_json={{{{{{{}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}""""""""""""
while keeping the old tags and mechanisms available.
Something NMSy to read/edit the books might be needed.

This is done now!
https://github.com/DenizenScript/Denizen-For-Bukkit/commit/58383ab1f002ba272053c8dfbaef11ac93e14af6
It, er, was quite simple actually.

repo: DenizenScript/Denizen-For-Bukkit


text:
Change script handling to abort on error

When a script runs into a script error, it should abort, not just go on.
Example:
- if <tag that returns pickle> {
   - narrate "Wilbur"
   } else {
   - narrate "Ed"
   }
- narrate "eh?"

This should abort, this should not assume false and print
Ed
eh?

I was considering making a special case for this to happen, but definitely not all the time.

That way, certain people can stop returning nulls when it should be booleans >.>

@Talamar1 True, false, or error are all possible results of a boolean tag.

null is not boolean... thus my point, the system should error and not just let an invalid boolean value like null or anything else pass through the system.  As I argued with Fortifier, if you are going to call something a boolean, it has 2 return values, true or false, null is not a valid boolean.

null = error

null isn't error, or you aren't handling the error properly, null results in false.

null invalidates the tag, causing the user to get an error in console, thus error.

It doesn't error the code, it prints an error message, there is a difference between error reporting and error handling.

It would appear you want the script to fail purely due to semantics? Having it fail softly is probably better than just not working, due to the nature of the language. Many beginners will pick up denizen to try and learn something VERY complicated they have 0 experience with. Though there is no need to baby someone through their time learning how to script. There is also no need to have "Boolean" checks entirely stop the script if they are not exactly "true" or "false". Not to mention if you Require if checks to be either true or false that become EXTREMELY difficult due to the limitations of tags.
The method of 'if it is not true, then it is false' really keeps it simple for most users. You obviously would not personally have a problem with what you are suggesting but, what about every one else?

KeangDavid, teaching a user how to use Boolean properly is not babying them, its teaching them to use proper coding.  Meh, I'm done arguing this point.


text:
New stuff related to leaves blocks:

3 new tags: is_leaves, tree_distance, and persistent
1 new mechanism: persistent
1 additional fix (possible copypasta)
(is_bisected was duplicated under is_directional)

:D

repo: DenizenScript/Denizen


text:
Slow

Every time the function is called it generates the gird and array vectors. It also creates and sort the polar coordinates. This is slow when done over and over again in a loop. Those functions should be done first, before the loop.
It's not a big deal if the function in only called once, but I am calling it a bunch of times in a for loop.

Done! I created another function, preRadI, that initializes the variables needed in radI. This will increase the speed of radI and especially increase computation time when used in a for loop.

repo: DennisFGardner/radial-integral

license: unlicense


text:
Use Annotations for Loopup Values

Confirm that the legend cannot be manipulated to show text.

[ ] Element Values Graph
[ ] Event Frames Graph
[ ] Event Frames Graph
[ ] Event Frames Overlay
[ ] Tag Values Graph

repo: DeschutesBrewery/brewerypi


text:
Tie Nix package version to Cargo.toml version

Right now, these are out of step. With these changes, the package version is drawn from the MNC's Cargo.toml.

@cole-h Yeah, I can't really think of a principled reason

repo: DeterminateSystems/magic-nix-cache


text:
A lot of "Fetch" errors and more...

Hi,
We tried your CAD for our server, but i get some bugs...
First when trying to start with "npm start" i get this error :
CHECKING CAD VERSION.
Running on 20800
(node:4341) UnhandledPromiseRejectionWarning: FetchError: invalid json response body at https://dev-caspertheghost.github.io/portofolio/api/version.html reason: Unexpected token < in JSON at position 0
    at /home/fivem/snailycad/node_modules/node-fetch/lib/index.js:272:32
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async main (/home/fivem/snailycad/server.js:330:27)
(node:4341) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:4341) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

So, I modified the code in server.js and removed the version check...
The CAD starts, and we can connect and create an account... but when trying to make different sort of actions I get this error in console :
(node:4806) UnhandledPromiseRejectionWarning: FetchError: request to http://95.179.141.103:3000/ failed, reason: connect ETIMEDOUT 95.179.141.103:3000
    at ClientRequest.<anonymous> (/home/fivem/snailycad/node_modules/node-fetch/lib/index.js:1455:11)
    at ClientRequest.emit (events.js:209:13)
    at Socket.socketErrorListener (_http_client.js:406:9)
    at Socket.emit (events.js:209:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:4806) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 10)
Error: ER_NO_SUCH_TABLE: Table 'snaily-cad.cads' doesn't exist
    at Query.Sequence._packetToError (/home/fivem/snailycad/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home/fivem/snailycad/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home/fivem/snailycad/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home/fivem/snailycad/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home/fivem/snailycad/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home/fivem/snailycad/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home/fivem/snailycad/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home/fivem/snailycad/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (events.js:209:13)
    at addChunk (_stream_readable.js:305:12)
    --------------------
    at Protocol._enqueue (/home/fivem/snailycad/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at Connection.query (/home/fivem/snailycad/node_modules/mysql/lib/Connection.js:198:25)
    at Query.<anonymous> (/home/fivem/snailycad/routes/login-reg.js:274:28)
    at Query.<anonymous> (/home/fivem/snailycad/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home/fivem/snailycad/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home/fivem/snailycad/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Query._handleFinalResultPacket (/home/fivem/snailycad/node_modules/mysql/lib/protocol/sequences/Query.js:149:8)
    at Query.EofPacket (/home/fivem/snailycad/node_modules/mysql/lib/protocol/sequences/Query.js:133:8)
    at Protocol._parsePacket (/home/fivem/snailycad/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home/fivem/snailycad/node_modules/mysql/lib/protocol/Parser.js:433:10) {
  code: 'ER_NO_SUCH_TABLE',
  errno: 1146,
  sqlMessage: "Table 'snaily-cad.cads' doesn't exist",
  sqlState: '42S02',
  index: 0,
  sql: "SELECT cadID FROM `cads` WHERE cadID = 'undefined'"
}

And a lot of others errors...
Finally we just can't use your CAD... :(
And where are you creating a Police Dept. .. ? The CAD said we don't have one, but we can't figure where to create one...
Please help ^^

Hello @geeknessfr,
I've looked into this and I found the bug, it should be fix with the next update!
To get a department you have to go to the admin panel => click the values button => Departments => add department.
If you have any more questions feel free to ask!

Thanks a lot for your answer ! ;)
We'll be waiting for your update !

Should be updated now, Just run git pull origin master to pull the newest version.

Thanks !
Just tried the update, it's a lot better !
I still get this error when trying to go to Police Dashboard :
(node:5485) UnhandledPromiseRejectionWarning: FetchError: request to http://95.179.141.103:3000/ failed, reason: connect ETIMEDOUT 95.179.141.103:3000
    at ClientRequest.<anonymous> (/home/fivem/snailycad/node_modules/node-fetch/lib/index.js:1455:11)
    at ClientRequest.emit (events.js:209:13)
    at Socket.socketErrorListener (_http_client.js:406:9)
    at Socket.emit (events.js:209:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:5485) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5485) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

And at the top there is this text : Police Department - AOP: Change Me

Ah yeah, that was my penal code API, I shut it down because it's now open source, there's a .json file in the directory with the penal codes now, I think I just forgot to remove some of the code lol
Sorry for the inconvenience

No problem, i betatest your project ^^ ;)
Your reactivity is awesome ! ^^

Thanks!
It should be updated now. :)

You are belgian ? Speaking "French" ? because i'm french ^^ If you have a Discord account try to add me : Geekness#7280

authors: Dev-CasperTheGhost geeknessfr

repo: Dev-CasperTheGhost/snaily-cad


text:
Incorrect selected icon on current index

I create 2 models
models.add(
                new NavigationTabBar.Model.Builder(
                        getResources().getDrawable(R.drawable.grey_plane),
                        Color.parseColor(Constant.COLOR_TRANSPARENT)
                ).selectedIcon(getResources().getDrawable(R.drawable.purple_plane_fulfill)).title("Flights")
                        .build()
        );
 models.add(
                new NavigationTabBar.Model.Builder(
                        getResources().getDrawable(R.drawable.grey_bed),
                        Color.parseColor(Constant.COLOR_TRANSPARENT)
                ).selectedIcon(getResources().getDrawable(R.drawable.purple_bed_fulfill)).title("Hotels")
                        .build()
        );

and in xml:
   <com.gigamole.navigationtabbar.ntb.NavigationTabBar
            android:id="@+id/ntb"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:layout_marginTop="-8dp"
            app:ntb_animation_duration="200"
            app:ntb_bg_color="@android:color/white"
            app:ntb_active_color="@color/colorPrimary"
            app:ntb_inactive_color="@color/date_picker_text_normal"
            app:ntb_badged="true"
            app:ntb_scaled="false"
            app:ntb_title_mode="all"
            app:ntb_titled="true"
            app:ntb_swiped="false"
            app:ntb_typeface="fonts/Gotham-Book.otf" />

So for each tab, I have 2 icons for 2 states:

Selected (with drawable R.drawable.grey_plane)
Unselected (with drawable R.drawable.purple_plane_fulfill).

However, when changing the tab, the selected tab does not choose the selected icon/drawable, but chooses the unselected one with the active color app:ntb_active_color, and the tab next to the selected tab, weirdly, chooses the selected icon/drawable with the inactive color app:ntb_inactive_color`.
I have updated to your newest version and met this problem.

Hello.
Thanks for issue.
I`ll try to fix this up. Maybe your ViewPager have page margins?

No. My viewPager does not have page margins.
Thanks for your quick response 😄

I think the problem is around this snippet of code :-?
 // Check if we handle models from touch on NTB or from ViewPager
            // There is a strange logic
            // of ViewPager onPageScrolled method, so it is
            if (mIsSetIndexFromTabBar) {
                if (mIndex == i)
                    updateCurrentModel(
                            model, leftOffset, topOffset, titleTranslate, interpolation,
                            matrixCenterX, matrixCenterY, matrixScale, titleScale, titleAlpha
                    );
                else if (mLastIndex == i)
                    updateLastModel(
                            model, leftOffset, topOffset, titleTranslate, lastInterpolation,
                            matrixCenterX, matrixCenterY, matrixLastScale, titleLastScale, titleLastAlpha
                    );
                else
                    updateInactiveModel(
                            model, leftOffset, topOffset, titleScale,
                            matrixScale, matrixCenterX, matrixCenterY
                    );
            } else {
                if (i == mIndex + 1)
                    updateCurrentModel(
                            model, leftOffset, topOffset, titleTranslate, interpolation,
                            matrixCenterX, matrixCenterY, matrixScale, titleScale, titleAlpha
                    );
                else if (i == mIndex)
                    updateLastModel(
                            model, leftOffset, topOffset, titleTranslate, lastInterpolation,
                            matrixCenterX, matrixCenterY, matrixLastScale, titleLastScale, titleLastAlpha
                    );
                else
                    updateInactiveModel(
                            model, leftOffset, topOffset, titleScale,
                            matrixScale, matrixCenterX, matrixCenterY
                    );
            }

Currently this bug must be fixed.

repo: DevLight-Mobile-Agency/NavigationTabBar


text:
Support for watermark

What feature or new tool do you think should be added to DevToys?
The ability to add watermark would be nice 🚀
Why do you think this is needed?
It is better to keep it local instead of uploading potentially sensitive files in any online solution
Solution/Idea
No response
Comments
No response

Hi,
Thanks for this suggestion. This could be a good idea of third-party tool. This can be achieved with our SDK. Unless there's a strong demand (through upvote) for this tool to be shipped by default with DevToys, I will close this ticket and let anyone who wants making and publish the tool through an extension.
Thanks!

authors: FPierre veler

repo: DevToys-app/DevToys


text:
Want to give animation effect on homa page image

Issue Description
The home page image of the boy is missing an animation effect.
Steps to Reproduce (if applicable)

[add animation effect on the image]
[ also give hover effect to the image]

Expected Behavior
I want to give an animation effect to the image and the hover effect  on the image, In an animation effect the image is moving in Y-direction also when someone hovers over the image it responds according to the cursor
Current Behavior
No animation effect
No hover effect
Possible Solution (optional)
Added animation and hover effect
Additional Context (optional)
##Screenshot

Not required. Thanks

authors: HimanshuNarware kaustubhai

repo: Deveimer/vovoca-frontend


text:
Feature/notistac integration for better notifications

fixes #43
I have added notistac library for toaster messages, which go along with MUI very easily.
With this library we can show success and error message fluently and with better UX
Demo:-

Hi @Chaitanya1672 this popup happens only when the code editor is empty
But if there is an error in the code, it seems nothing is happening.

@DhanushNehru
I have written code for if response is not ok or api call is failed after clicking submission, what do you suggest should be added?

Can we have the error popped up when response is not ok or api call is failed after clicking submission, similar to what you have incorporated @Chaitanya1672

Can we have the error popped up when response is not ok or api call is failed after clicking submission, similar to what you have incorporated @Chaitanya1672

Yes that is happening, I have added notistack for that.

repo: DhanushNehru/CustomCodeEditor