Bug: (Failed to compile. [eslint] Cannot read properties of undefined (reading 'getTokensBetween') Occurred while linting /home/itpmbot-dev/builds/K/0/itpm-chat-bot/bot-frontend/src/index.jsx:2 Rule: "perfectionist/sort-imports")

Describe the bug
After upgrading plugin from 2.4.0 to 2.5.0 our app build have failed. Why?
Failed to compile.
[eslint] Cannot read properties of undefined (reading 'getTokensBetween')
Occurred while linting /home/itpmbot-dev/builds/K1xYuVj3R/0/itpm-chat-bot/bot-frontend/src/index.jsx:2
Rule: "perfectionist/sort-imports"

Code example
---
root: true

env:
  browser: true
  es2022: true

parserOptions:
  ecmaVersion: latest
  sourceType: module

plugins:
  - import
  - jsx-a11y
  - react
  - react-hooks
  - perfectionist

extends:
  - airbnb
  - plugin:import/recommended
  - plugin:react/recommended
  - plugin:react-hooks/recommended

rules:
  # base config rules
  arrow-body-style: "off"
  indent: ["error", 4, { "SwitchCase": 1 }]
  jsx-quotes: ["error", "prefer-single"]
  linebreak-style: "warn"
  lines-between-class-members: ["error", "always", { "exceptAfterSingleLine": true }]
  max-len: ["error", { "code": 135, "ignoreStrings": true, "ignoreComments": true }]
  no-console: "off" # replace with ["error", { "allow": ["warn", "error"] }] after major release
  no-param-reassign: ["error", { "props": false }]
  no-underscore-dangle: ["error", { "allow": ["_retry", ""] }]
  no-unused-vars: ["error", { "argsIgnorePattern": "^_" }]
  object-curly-newline: ["error", { "minProperties": 9, "consistent": true }]

  # plugin rules
  import/extensions: "off"
  import/no-extraneous-dependencies: ["error", {"packageDir": './'}]
  import/prefer-default-export: "off"
  import/no-default-export: "error"
  jsx-a11y/label-has-associated-control: ["error", { "assert": "either" }]
  react/function-component-definition: "off"
  react/jsx-filename-extension: ["warn", { "extensions": [ ".js", ".jsx" ] }]
  react/jsx-indent: ["error", 4, { "indentLogicalExpressions": true }]
  react/jsx-indent-props: ["off", 4]
  react/react-in-jsx-scope: "off"
  react/jsx-sort-props: ["error", { "callbacksLast": true, "shorthandLast": true, "reservedFirst": true }]
  react/jsx-props-no-spreading: "off"
  react/jsx-uses-react: "off"
  react/jsx-uses-vars: "error"
  react/prop-types: "off"
  react/prefer-exact-props: "off"
  perfectionist/sort-imports: [
      "error",
      {
        "groups": [
          "react",
          ["builtin", "external"],
          "internal-type",
          "internal",
          ["parent-type", "sibling-type", "index-type"],
          ["parent", "sibling", "index"],
          "side-effect",
          "side-effect-style",
          "style",
          "object",
          "unknown"
        ],
        "custom-groups": {
          "value": {
            "react": ["react", "react-*"],
          },
        },
      }
    ]

overrides:
  # by default, linter checks only .js file. It allows checking .jsx files in addition
  - files: ["*.jsx", "*.js"]
  - files: ["**/reused/Icons/**/*.jsx"]
    rules:
      react/jsx-sort-props: "off"

settings:
  react:
    createClass: createReactClass
    pragma: React
    fragment: Fragment
    version: detect
    flowVersion: "0.53"
  propWrapperFunctions:
  - property: freeze
    object: Object
  - property: myFavoriteWrapper
  - property: forbidExtraProps
    exact: true
  componentWrapperFunctions:
  - property: styled
  - property: observer
    object: Mobx
  - property: observer
    object: "<pragma>"
  formComponents:
  - name: Form
    formAttribute: endpoint
  linkComponents:
  - name: Link
    linkAttribute: to
...

ESLint version
8.54.0
ESLint Plugin Perfectionist version
2.5.0
Additional comments
No response
Validations

[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

There might be a problem with @typescript-eslint/parser. Could you tell me what version you have installed?
And which package manager are you using?

There might be a problem with @typescript-eslint/parser. Could you tell me what version you have installed?
And which package manager are you using?

Our app is based on create-react-app (v5.0.1, latest). The project does not have typescript-eslint/parser directly, but I assume CRA is used its version 5.57.1. Also yarn v 1.22.19 is installed

Can you create a repository and reproduce the problem?
ESLint Plugin Perfectionist uses TypeScript ESLint v6+.

Same issue! ESLint 8.15.0, typescript 5

@hogan0520 Can you create a small repository and reproduce the problem?
That would help me a lot to fix the problem.

@hogan0520 Can you create a small repository and reproduce the problem? That would help me a lot to fix the problem.

I found the reason. Because @typescript-eslint do not have sourceCode property in lower version. Just have getSourceCode().
So, when I used "eslint-plugin-perfectionist": "2.4.0", resolved this issue.
Maybe you need to add some code or dependency limitation to handle it. @azat-io
Thank you for your response.

@hogan0520 Yes, perhaps we should more rigorously specify the version of @typescript-eslint. Thank you

Thank you for your issue!
The bug was fixed in 09900aaec7aba76f438c4a910639c3b9fc10832d and released in v3.0.0.
If you'd like, you can support the release with a retweet:
https://x.com/azat_io_en/status/1815367279191761054


fix(vue-renderer): use vue meta in ssr renderer

Types of changes

[x] Bug fix (a non-breaking change which fixes an issue)
[ ] New feature (a non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description

Resolves #9402
While it does fix the original issue, it will almost certainly create new ones instead. This is more like pseudo code to give even more context to the original issue. I hope someone more familiar with the rendering process will help with this.
Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly. (PR: #)
[ ] I have added tests to cover my changes (if not applicable, please state why)
[ ] All new and existing tests are passing.

We're approaching end-of-life for Nuxt v2. I think as this is not a fully-worked-out PR, I'm going to close it.
Let me know if you still want to work on this.


Drop public rpc connection

This PR will make the desktop app disconnect from the PublicRPC once the connection is not needed.
Please refer to the comments below for additional details

PublicRPC connection is used in querying the blockchain size. After retrieving the data from publicRPC, the connection is dropped. ✅

PublicRPC is used also in here when starting the node: https://github.com/subspace/subspace-desktop/blob/drop-publicRPC-connection/src/lib/client.ts#L219
I did not understand the purpose of this. @1devNdogs can you explain why we need const farmerPublicKey: AccountId32 = this.publicApi.registry.createType(       "AccountId32",       publicKey     ) ?

PublicRPC is also used for querying the lastBlockNumber, so it can compare this with the localNode's last block number. And notify the user about the sync status (whether completed or in progress).
And the last place PublicRPC is used is: getting the blockchainSize again for determining the plot size (this is eliminated with the partial plotting PR).
However, both of these are done sequentially, and the connection is now drop after both queries ✅

It looks like public API should be just a local variable in those contexts where it is needed instead of some global entity, isn't it?

Leo is already working on a big refactoring of the front end. He may be fixing that structure as you suggested :)

Since memory was leaking on relayer as well, I suspect this might fix memory leak we see in desktop app as well


Redirect to index action instead of show action

Hi all, I would like to redirect to the resource page in my create action
def create
  @library = Library.new(library_params)
  @library.save
  respond_with :admin, @library
end

However, it redirect to index page instead of show page.
In the documentation, it says:

If there are no errors, i.e. the resource was saved successfully, the response redirect's to the resource i.e. its show action.

I can solve this issue by provide location parameter with show path, but it will cause an issue when save failed.
Cheers

After three months later I touched this part of function again, I finally found the reason.
For the collection resources, it won't redirect to show page and it defines the navigation_location in CollectionResponder:
https://github.com/plataformatec/responders/blob/f838dc7114ee850d5f88aaabd6251481573f1b3a/lib/responders/collection_responder.rb#L7-L28
Therefore, it will always return to index page instead of show page.

You can always override navigation_location in your ApplicationResponder.


[Selectors and pseudo selector ]:

Path here
CSS selectors are used to "find" (or select) the HTML elements you want to style. A CSS selector is the part of a CSS rule set that actually selects the content you want to style CSS selectors select HTML elements according to its id, class, type, attribute etc. There are several different types of selectors in CSS.

CSS Element Selector
CSS Id Selector
CSS Class Selector
CSS Universal Selector
CSS Group Selector

I am a GWOC'21 contributor from Batch 8 of Frontend Dev HTML/CSS/JS. Please assign this issue to me. I assure you that this issue's title will be the same as my PR's title as well as I will be Contributing under the Guidelines and Code of Conduct.
Domain
Frontend Dev HTML/CSS/JS
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

a similar issue is already available, do check before you create a new issue. @Govindbro

/assign

Please review my PR @Ayan-thecodeking @ghulamyazdani @padmajabhol @praveenscience


Win32 Physical Drive 0 always reports system property as being true

Win32.bat will always report \\.\PHYSICALDRIVE0 as being system drive when in actual fact system drive can exist on any physical drive of one's choosing.
As in my case, \\.\PHYSICALDRIVE1 is the system drive.
//drive 1
description: "OCZ-VERTEX3 ATA Device"
device: "\\.\PHYSICALDRIVE1"
mountpoint: "C:"
name: "C:"
size: "120 GB"
system: false //should be true

//drive 2
description: "WDC WD5000AAKS-00YGA0 ATA Device"
device: "\\.\PHYSICALDRIVE0"
mountpoint: "D:"
name: "D:"
size: "500 GB"
system: true  //should be false

The only reliable way that I can tell to determine the system drive is to query against Win32_OperatingSystem for the SystemDrive property.
Private OSDrive

Set colOperatingSystems = objWMIService.ExecQuery ("SELECT SystemDrive FROM Win32_OperatingSystem")

For Each objOperatingSystem in colOperatingSystems
    On Error Resume Next
    '' get the OS System Drive if exists
    OSDrive = objOperatingSystem.Properties_("SystemDrive")
    If Err.Number <> 0 Then
        OSDrive = Err.Description
        Err.Clear
    End If
Next

The result of which is stored against the variable OSDrive for which we can later compare against...
If objLogicalDisk.DeviceID = OSDrive Then
  Wscript.Echo "system: True"
Else
  Wscript.Echo "system: False"
End If

This results in the correct drive attaining (bool) true for the system property returned by drivelist.list()
Related PR for this issue:
#60

Very cool! We overlooked this fact after experimenting with some PCs and noticing that system drive was always \\.\PHYSICALDRIVE0. I'll review and test your PR in a minute. Thanks a lot!


Editable Series ComicVine ID

Need to able to edit a series' CV ID. I think the only model type that should be editable should be a series. Once the series has a good CV ID, everything else is just metadata scraped from ComicVine.
ComicVine scraping flow:

When a user goes to edit it, a window pops up, with a list of the top 25 choices pulled from a ComicVine query.
Search box above that allows user to insert search term and pull those top 25.
Also give a box to enter in custom CV ID. (Allow ones with prefixes, and ones without) (Also test that it is in fact a series ID)
Update metadata of series.

The ComicVine ID for an issue is now editable. The flow in the original issue will be implemented in later updates.


Problem with reduction when inheriting pure virtual functions

Original author: Robert Steinke
Original issue: https://charm.cs.illinois.edu/redmine/issues/1247

I have a group that inherits from a base class that has pure virtual functions.
This group uses a reduction as a barrier.  When I try to do the reduction I get a seg fault.
If there is only one PE the code works.  It only seg faults on two or more PEs.
If I remove the pure virtual functions from the base class the code works.
I've pared it down to a minimal example in the attached files a.ci and a.cpp.
As is, it seg faults.  If you comment out line 14 of a.cpp "virtual int aFunction() = 0;" then it runs just fine.

Original author: Robert Steinke
Original date: 2016-10-05 20:46:30

I discovered that if I switch the order in which the base classes are declared it works.  I guess that will change the order in which their constructors are called.
class B : public CBase_B , public C
{
B_SDAG_CODE
...

Original date: 2016-10-06 14:08:09

Is C truly a stand-alone class, with no connection to any kind of chare entity? Inheritance form chare types works fine whens specified in the .ci file, so that the generated declarations have the CBase class inheriting appropriately, and able to pass through constructor arguments. I'm less certain about that structure when used to inherit from a non-chare.

Original author: Robert Steinke
Original date: 2016-10-06 15:33:48

Yes, C is a standalone non-chare class that inherits from nothing.  The reason we have things set up this way is that we want to have a version of our code that uses charm, and a separate version that uses only MPI, so C has the common behavior, and B is the charm version.
But aside from how I'm using it for my current problem, your answer makes me have some more general comments and questions.  I think you do want to be able to support the case where the other base class isn't a chare.  It seems like normal C++ code that lots of charm uses might try to do and get really frustrated if it's not allowed.  If you need some extra declarations in the .ci file that's okay, but then it needs to be well documented because it wasn't obvious at all what was wrong.
If C were a chare, what would be the correct syntax for that?  Is that syntax documented anywhere?  Something like this?
in .ci file:
group C { ...
group B : public group C { ...
in .cpp file
class C : public CBase_C { ...
class B : public CBase_B { ...

Original date: 2016-10-09 20:11:54

If C were a chare, the syntax would be
// .ci file:
group B : C { // . . .

// .cpp file:
class C : public CBase_C { // . . .

class B : public CBase_B { // . . .

So, the 'interesting' inheritance gets declared in the .ci file, and the CBase class provides a pass-through. If C's constructor takes arguments, B::B(...) can pass them to CBase_B(...), which will forward them to C::C(...).
For the particular case you're describing, where the chare type B isn't participating in an application-domain type hierarchy as such (AFAICT), the easiest thing to do is probably to prefer composition over inheritance, and simply have a member of type C in chare class B.
I'll let Nitin follow up on debugging what exactly went wrong, and correcting/elaborating on documentation.
I am curious to know what compiler you observed this failure on, though? In particular, is it by chance GCC 6.x? If so, have a look at bug #1045, and try the additional compiler flag -fno-lifetime-dse for both the runtime and your application code.


Reduce code duplication

I'm just writing it here in order not to forget.
I noticed there are several places where code is duplicated. So here are my current thoughts, I would welcome some feedback from @blammit and @chriadam on them. We would need to fix these eventually if we don't want it to become unmaintainable.

evp_p.h (will be fixed by Bea's PR)
plugin loading mechanism is needlessly duplicated between secrets and crypto
some basic methods and enums are present in both secrets and crypto under different namespaces
in the masterlock branch the plugin locking is duplicated between different plugin types

Possible solutions:

Make either crypto depend on secrets, or secrets on crypto. Put all basic declarations in one, and use those in the other.
Create a common base for both secrets and crypto. Put all basic declarations there.
Reduce the functional overlapping between the two somehow.

What do you guys think?

Yes it would be ideal to rework things to greatly reduce the duplication. My understanding is that secrets is about storage and therefore it would depend on crypto rather than the other way around; so, is it a problem if secrets has a hard dependency on crypto? If not, then take that path, and otherwise make a common library that both can use. @chriadam would have a clearer overview of this.

I do agree that the various plugin types should probably extend from a common base class where possible, and that the openssl code duplication should be minimised (the _common.cpp file already does this to a large extent, but there is more to do, e.g. the evp.h as you pointed out already).
In regards to the other points raised:

I would greatly prefer to avoid any build time requirement between Secrets and Crypto client API libraries.  There are many use-cases for Secrets which don't require Crypto, and vice-versa.

Common base for "basic declarations" would probably require either polluting Sailfish namespace, or the global namespace, either of which seem like suboptimal options, especially since the type-names (or enum names) which might be shared are likely candidates for collisions in the future.  First step might be to see what basic declarations are in fact used across both - I suspect it's a very small number of things.

Some functional overlap exists (specifically, Keys can be stored securely, and as an implementation detail these are stored as Secrets), but cannot really be reduced.

While it is definitely true that to be maximally secure, a plugin will most likely want to implement both EncryptedStorage and Crypto plugin interfaces, that is unrelated to the client application requirements.
That is, a client which uses ONLY crypto functionality (e.g. store some key via Crypto API, use that key to encrypt/decrypt via Crypto API) should NOT need to link against Secrets (e.g., that would have adverse effects on application start time, due to symbol loading etc, and increase dependency complexity).
Similarly, a client which uses ONLY secrets storage functionality (e.g. to store some username or password securely, via the Secrets API) should NOT need to link against Crypto (again, if that was a requirement, we would be enforcing worse application startup time, and dependency complexity).
These are two separate domains, and it is an implementation detail of the daemon-side implementation of the Crypto domain that there is any crossover between these domains at all.

Let me expand on this: some of our customers (B2B and B2G) may have specific requirements for any applications which use Crypto-related APIs (and in the context of automated tooling which might do verification, linking against a Crypto API or pulling in its symbols is probably tantamount to using that Crypto API, for obvious reasons).  Such applications might have more extensive or more lengthy verification cycles, or be subject to different restrictions (export or IP or otherwise legal).  If an application merely wants to securely store some username/password/email-address/etc data, or software license codes, etc, this sort of separation may be extremely valuable (to avoid costly certification etc).
Let me re-iterate: if all you want to gain is some very small de-duplication, but that comes at the cost of worse application startup performance, increased complexity for client applications along with costlier verification cycles, then my opinion is "No, that is not a trade-off we should make in this case."


Curation and checking of fatty acid metabolism

several error and unbalanced reactions are found in the biosynthesis of fatty acids
add additional reactions for alternative pathways in mutants

solvend by #74


Redisson reconnection problem

Hello, I am using Redisson for Hibernate 2L cache and I noticed that when I lose connection to my single Redis server ConnectionWatchdog starts to trigger threads for reconnecting. These threads started to slow down my microservice so I wanted to disable them. So how can I achieve this and still get the possibility to reconnect back to the server?

ConnectionWatchdog starts to trigger threads for reconnecting

It doesn't start any threads.

can you reproduce it with 3.18.1 version?

can you reproduce it with 3.18.1 version?

Yes, the same behavior also with 3.18.1 version.

please share the logs from application start with trace logging level for org.redisson package

trace_log.txt
Ok file attached but lets generalize what happens..,

I create Redisson client and connect
I lose connection with redis and I get this messages:

05-12-2022 17:36:09.519 [stock-service][][] [netty-2-28] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.519 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@1101498569 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x1cdafc4c, L:/<IP_ADDRESS>:62452 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.519 [stock-service][][] [netty-2-29] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.519 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@1902152953 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x9a6dea93, L:/<IP_ADDRESS>:62456 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.520 [stock-service][][] [netty-2-30] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.520 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisPubSubConnection@1503047114 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x4c4e3c0f, L:/<IP_ADDRESS>:62440 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.520 [stock-service][][] [netty-2-31] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.520 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@1406444238 [redisClient=[addr=redis://localhost:6379], channel=[id: 0xeee7d50f, L:/<IP_ADDRESS>:62448 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.520 [stock-service][][] [-netty-2-1] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.520 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@1353474026 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x36f9040a, L:/<IP_ADDRESS>:62457 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.520 [stock-service][][] [netty-2-32] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.520 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@1644786853 [redisClient=[addr=redis://localhost:6379], channel=[id: 0xb461818a, L:/<IP_ADDRESS>:62449 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.520 [stock-service][][] [-netty-2-2] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.521 [stock-service][][] [-netty-2-3] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.618 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@77183004 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x00b8fa7a, L:/<IP_ADDRESS>:62458 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.618 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@781423559 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x8aa4d6f8, L:/<IP_ADDRESS>:62446 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.619 [stock-service][][] [-netty-2-4] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.619 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@1126145338 [redisClient=[addr=redis://localhost:6379], channel=[id: 0xe459f813, L:/<IP_ADDRESS>:62442 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.619 [stock-service][][] [-netty-2-5] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.619 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@525776971 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x022f0c0f, L:/<IP_ADDRESS>:62439 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.619 [stock-service][][] [-netty-2-7] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.619 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@1185846258 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x56c41965, L:/<IP_ADDRESS>:62462 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.620 [stock-service][][] [-netty-2-6] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.620 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@608370335 [redisClient=[addr=redis://localhost:6379], channel=[id: 0x9bb76b1d, L:/<IP_ADDRESS>:62444 ! R:localhost/<IP_ADDRESS>:6379], currentCommand=null, usage=0] to localhost/<IP_ADDRESS>:6379
05-12-2022 17:36:09.620 [stock-service][][] [-netty-2-8] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.620 [stock-service][][] [-netty-2-9] DEBUG org.redisson.client.RedisConnection.<init>: Connection created [addr=redis://localhost:6379]
05-12-2022 17:36:09.620 [stock-service][][] [-timer-4-1] DEBUG o.r.c.handler.ConnectionWatchdog.tryReconnect: reconnecting RedisConnection@173996793 [redisClient=[addr

You can see from the file that this repeats around 300 times in less than 1 min

And then I get the connection back

Can you share Redisson config as well?

 Config config = new Config();
 String host = cacheConfigurationProperties.getHost();
 int port = Integer.parseInt(cacheConfigurationProperties.getPort());
 config.useSingleServer().setAddress("redis://" + host + ":" + port);
 config.setConnectionListener(new RedissonConnectionListener());

I am configuring it programmatically, but as you see I am just using a single server and I added a connection listener.

Hello, any updates? I think it could be a good idea to add autoReconnect property which is either true or false and if false to reconnect only when we use the client.

the problem here is that we need to reconnect all other connections once we got reconnected at lease one of them, otherwise continue to try reconnect only single connection

Please try version attached
redisson-3.20.2-SNAPSHOT.jar.zip

Updated.
redisson-3.20.2-SNAPSHOT.jar.zip

Fixed in https://github.com/redisson/redisson/commit/318f11fea613005d8a614afdbfe3b110b1ccc191

Seeing this same issue in cluster mode as well with client redisson-3.21.3.jar. Are we aware of this scenario?

@soaggarwal
Can you provide more details?


Please give me some feedback or comments about this language

Hard to continue without at least some comments about clprolf. You can write a message even if you don't master the language, or even if you haven't look to all the documentation. Thank you! It would help in understanding, and help for continuing. Criticisms are also welcome, of course.

Sorry for my ancient collaborators, but I can not work without at least a feedback! All the best


Made Flash On / Off text variable

The text for "Flash On" and "Flash Off" can now be passed to the scan method
String barcode = await BarcodeScanner.scan("Flash On", "Flash Off");

Android only
Also kotlin version and build tools version updated

Any reasons why this PR is not getting merged?

Sorry for the slow reply. I have a couple issues with the PR as it stands now.

We strongly believe that all features should be cross platform.
I think the API should take in an Options class that can be passed into the scan() method. This would allow us to extend the options over time without creating a bunch of arguments in the scan method.

The call to open the scanner would look like
scan(options: new ScanOptions(flashOnText: "Flash On", flashOffText: "Flash Off"))
The Options class constructor should have reasonable defaults. the options should allow null and if so, apply some reasonable defaults.

Thank you for your reply. I'll fix that asap.

@devtronic Are you going to continue work on this API extension?

Hi, yes I've bought a MacBook that I can also extend and test the iOS code.

Please review 🙂

Are my changes ok, @matthewtsmith ? :-)

@matthewtsmith It would be very nice if you could give a short feedback if the changes are good and when you will merge this PR.

Hello everyone! I create the file "scanner_options.dart"

But in the file "main.dart" does not recognize me the import.

What can I do to correct the problem? Thank you!


Login not possible after register

Installed cakephp-user-tools on a brand new cakephp application v3.6.10 without any other dependencies. Installed it with your documentation.
Loaded the plugin in /conf/bootstrap.php with
Plugin::load('Burzum/UserTools');

Activated the plugin in AppController.php with
$this->loadComponent('Auth');
$this->loadComponent('Burzum/UserTools.UserTool');

$this->Auth->allow([
    'login', 'register', 'add', 'display'
]);

public function beforeRender(Event $event) {
    $this->set('userData', $this->Auth->user());
}

These functions work:

Register
Activation Email
Reset Password - Enter email
Reset Password - Receive email
Reset Password - Set new password

This function does not work:

Login

After opening the link in the activation email, I get logged in. But when I log out and try to log in again, it just says Invalid login credentials.
I don't know what to debug, I don't know where to debug. I tried to debug some of the processes in the UserToolsComponent.php but it's just too big.
Maybe a problem with the newest cake version?
Update
Found out that I mustn't load the AuthComponent in AppController.php.

It should work with the AuthComponent loaded as well.


Global Variable Not Refreshing Properly When Using Another Global Variable

When assigning the value of one global variable to another, the value updates correctly the first time but freezes and does not refresh on subsequent attempts. This causes inconsistency in the global state and unexpected behavior in the application.
See the screenshot :

No error in the logs.

Thanks for reporting, this is indeed a bug. We can break it down into 2 separate issues:

The initial value of variable B should be updated if that variable B references another variable A. Do note that this only applies for initial values. If the value of variable B is updated at a later time (ie: via a callback), then variable A won't be updated, and this is the expected behaviour:

val variableA = 0; // updating the initial value here should reset variableB's initial value as well
val variableB = variableA + 1;

<button onClick={() => {
    variableA += 1; // variableB won't be updated
  })
/>

The above is akin to creating states in React:
const [variableA, setVariableA] = React.useState(0);
const [variableB, setVariableB] = React.useState(variableA + 1);

The bug in Reka right now is that it doesn't recompute the init value of variableB if variableA changes.

It's important to note that the order of the variables matter. In your example, the expected behaviour should be an error since firstname is defined after sentence. It may be clearer if we look at it from a code form:

val sentence = "hello my name is " + firstname;
val firstname = "Bob"

For the second issue, Reka correctly evaluates firstname to undefined when it first evaluates, but not in subsequent evaluations.


Use munit instead of spec2.

What it does

Migrate to munit

Checklist

[x] Refenrence issue
[x] Labels

Please, update ChangeLog.md :wink:


Removes deleted OrenNayar mode from shaders and materials

Removed references of Oren-Nayar render_mode from StadardMaterial3D and shaders. It's no longer supported since
https://github.com/godotengine/godot/pull/45023.

Thanks!


Undefined Reference to LLVMRunFunction

Hi, this crate is great for me :)
I met a link issue while testing a simple code generation example of LLVM:
https://github.com/termoshtt/rustc-llvm-proxy-example/blob/master/src/main.rs
/home/travis/build/termoshtt/rustc-llvm-proxy-example/src/main.rs:87: undefined reference to `LLVMVerifyModule'
/home/travis/build/termoshtt/rustc-llvm-proxy-example/src/main.rs:110: undefined reference to `LLVMLinkInInterpreter'
/home/travis/build/termoshtt/rustc-llvm-proxy-example/src/main.rs:111: undefined reference to `LLVMCreateInterpreterForModule'
/home/travis/build/termoshtt/rustc-llvm-proxy-example/src/main.rs:123: undefined reference to `LLVMRunFunction'
/home/travis/build/termoshtt/rustc-llvm-proxy-example/src/main.rs:130: undefined reference to `LLVMGenericValueToInt'
collect2: error: ld returned 1 exit status

https://travis-ci.org/termoshtt/rustc-llvm-proxy-example/jobs/429177101
rustc-llvm-proxy does links basic APIs e.g. LLVMCreateBuilder, LLVMModuleCreateWithName, and so on, but some APIs are lacked as listed above. I guess it missing to link libLLVMExecutionEngine.a and libLLVMAnalysis.a.
Is this intended behavior or bug?

Thanks for reporting and I glad the crate is useful for you :)
Normally, every function fromllvm-sys can be exported from the proxy. I whitelisted the additional modules, so the missing functions should work in 0.1.3.


enhance add_components capabilities

allow to run add_components and take as an argument and iterator of components.

I'm not completely opposed to this proposal.  However, I think that creating too many functions can make it difficult for users to find what they want.  Julia already provides tools to solve this problem with our add_component function. For consideration, we could document this as an example in the add_component docstring:
buses = [bus1, bus2, bus3]
generators = [gen1, gen2, gen3]
foreach(x -> add_component!(sys, x), Iterators.flatten((buses, generators)))

What do you think?

I will elaborate to emphasize the amount of method explosion that could occur.  Here is what currently happens with add_component!.
User calls add_component!(system, component).
The System performs some internal checks and then forwards the call to its data container.
The IS.SystemData forwards the call to its components container, which is where the real logic lives.
If we add a new function called add_components! then we have to also add the two levels of forwarding, as well as unit tests.  Any other package consuming InfrastructureSystems would also have to add the forwarding.  Doing this kind of thing with lots of methods can lead to a lot of bloat.  I think we will be better off if we keep our API as simple and small as possible.

The docstring solution is good enough.


Update virtual-machines-using-managed-disks-template-deployments.md

Fixed broken link in Next Steps section

@cwatson-cat, please review the proposed changes and sign off if you approve.

#sign-off @v-shils
Thanks for the fix @jboeshart


Parse from file should remove (or not create) Selectors

Decided not to do this now that an unwanted Selector may be deleted with one keystroke (unless it is the only child)


UnboundLocalError: local variable 'leaderboard_evaluator' referenced before assignment

Thanks for your great wrok, i meet this question "UnboundLocalError: local variable 'leaderboard_evaluator' referenced before assignment" can you give me some question

I have solve this question

Hello @raozhongyu May you tell us how to solve this problem? I have met the same question with you~

Hello @raozhongyu May you tell us how to solve this problem? I have met the same question with you~

Hello @raozhongyu May you tell us how to solve this problem? I have met the same question with you~

This reply might be late. But for others whom encounter similar issues, try to check whether the error info contains"RuntimeError: trying to create rpc server for traffic manager; but the system failed to create because of bind error". If it is the case, then "you are trying to create the TrafficManager in a port that is busy" (https://github.com/carla-simulator/scenario_runner/issues/722). So the easy solution is to `

pkill -9 python

`


Allow passing DockerHub credentials to jobs

What would you like to be added
We'll need a way to pass the auth block to the docker configuration parameter (docs) for jobs used directly in workflows.
Why is this needed
Starting November 1, 2020, DockerHub will begin rate-limiting image pulls from DockerHub. Users need a way to pass their DockerHub credentials to avoid the rate limit. Without providing this configuration option, deployments from CircleCI will be impacted.

CircleCI has partnered with Docker Hub and will not be subject to rate limiting - you can read more here: https://support.circleci.com/hc/en-us/articles/360050623311-Docker-Hub-rate-limiting-FAQ


Include Example and Test for Promises Created in For Loops

This PR includes a failing example for promises created in for loops

promise.then and promise.and do not append to the variable promise, but return a new NearPromise, this means that:
const promise = NearPromise.new(account)
promise.functionCall(something) /// here you are missing the returned object
return promise // you are returning the result of doing `NearPromise.new()` which is 0 apparently.

What you meant to do is:
let promise = NearPromise.new(contracts[0]).functionCall()

for i in 1...3 {
   promise = promise.and( NearPromise.new(contracts[i]).functionCall() )
}

promise = promise.then( callback )

return promise.asReturn()

Also, in the callback you are not currently returning the counter value.
Applying all those changes make the tests pass.

@gagdiez Perfect! Tests now do pass. I'll leave merging this PR here as an example of how to loop promises to one another to the discretion of the maintainers.

one last thing I would suggest is removing most logs and the variable callCount, in the callback you can simple pass or use the array length to know the number of calls.

@idea404 I see that the CLI has been updated with new commands, and in doing so there was a degradation where instead of creating a new signale instance for each command they are using a global one. This is the commit that changed this - line 46 to be exact. The solution for this would be to simply create a new signale instance for each command function with the interactive option configured the same way as it was in the build command, and of course changing the scope to be the command name and to actually use those instances in logging instead of the global variable.

I've addressed the logging issue in #310 .

Oh @idea404 you need to add the test to ci, in .github/workflows/examples.yml

Thank you @idea404 !


adds button type rule

should fix #157

Coverage decreased (-0.3%) to 98.413% when pulling 4a9a6fca4b19721d03e8cd661479c88c98bdd053 on marook:master into 60447c9472971f08a9c71ce76a9613da384a4484 on yaniswang:master.

We should define an additional test:
describe -> it -> 'type be not given on button should result in an ???'
var code = '<button />';
var messages = HTMLHint.verify(code, ruleOptions);
expect(messages.length).to.be(_); // 0 or 1?

I think it's better not to give a message in this case, because in frameworks like Angular, you often do not pass a type and treat it with a (click)-event
If you want to verify that type is passed to <button />, it should be a separate rule
Maybe that would be useful for <input />

@Shinigami92 @marook any comments on this PR?

I wrote a statement already above https://github.com/htmlhint/HTMLHint/pull/208#issuecomment-416044238
IMO we should try to add a rule named attr-require-type and this may take the values false, true, 'button', 'input' or ['button', 'input'] (where the last ist the same as true)
attr- because very many existing rules use this prefix already
require- becuase this word is also used in two existing rules already (alt- and titel- require)
type because that's what it is 🙂

Why may wait around 2 weeks for the PR owner @marook to respond
If this will not happen, we may think about to
merge it and rebuild it for our purposes
or
not merge it and rebuild it from our site

Sorry for my late reply. I don't use htmlhint anymore. Reading the comments I think going towards a generic solution for checking the existence of certain attributes on certain elements like it was described in this thread would be a feasible solution. This makes my pull request unnecessary.

Sorry for my late reply. I don't use htmlhint anymore. Reading the comments I think going towards a generic solution for checking the existence of certain attributes on certain elements like it was described in this thread would be a feasible solution. This makes my pull request unnecessary.

@marook Thanks for your response
One last thing I want to ask you: Did you switched to another linter/hinter? Or are you using e.g. pug right now? Or maybe you aren't working with HTML at all anymore?
Also I think I will takeover this task and copy some parts of your PR

One last thing I want to ask you: Did you switched to another linter/hinter? Or are you using e.g. pug right now? Or maybe you aren't working with HTML at all anymore?
My current projects don't fit well with a HTML hinter. If this changes in the future I think i will use HTMLHint again.


Need support for getting assignable groups for a project and assigning a group to a project

Had to work around the fact that there is no API or HubResponse object for this endpoint:
GET /api/projects/{projectId}/assignable-usergroups
Which should be available on the ProjectService
Which is needed to get the usergroup URI to give to this endpoint:
POST /api/projects/{projectId}/usergroups
Which should also be supported by the ProjectService
What I needed in my project was the ability to ensure groups are assigned to a project, so given a project name and list of group names, if the group is not assigned to project, add it.

I'm open to other ideas here if this is not the intent of these endpoints. I didn't see any developer doc to help me understand which ones to use when, so I'm basically just exploring the API described in the REST API Developers Guide linked off the tools page.
I also tried using the UserGroupService but I had to access the UserGroupView._meta.href property to get the uri of the group. Is that fair game? Many of the scripting languages I've worked in before prefixed variables with _ to denote privacy when they needed to expose something in the public API that wasn't really intended to be public but there was no other language construct to protect the API.

Hi @eric-isakson,
You are correct that there should be a method to access assignable-usergroups from the ProjectService. There seem to be a few links that we have not yet added to hub-common-api. We will work on adding those.
We do however have a HubResponse for the object returned from that endpoint:
com.synopsys.integration.blackduck.api.generated.view.AssignedUserView
For getting an href from a HubView (which contains the ResourceMetadata "_meta"), please use this method found in the HubService class: getHref(hubViewInstance).
You can also use HubService to access links that might currently be missing from the API:
HubService myHubService = . . . ;
boolean hasLink = myHubService.hasLink(hubProjectView, "missingLinkName");
if (hasLink) {
String linkUrl = myHubService.getFirstLink(hubProjectView, "missingLinkName");
Response responseFromLink = myHubService.executeGetRequest(linkUrl);
}
// Alternatively:
LinkMultipleResponses missingLinkResponse = new LinkMultipleResponses<>("missingLinkName", AssignedUserView.class);
List foundViews = myHubService.getAllResponses(hubProjectView, missingLinkResponse);
For more examples, please look here.

Thank you for the tip on using hubService.getHref(hubView), I've changed my code to use that rather than directly accessing the _meta field.
I ended up using the UserGroupService to get each group by name, get its href and then using:
    final String projectUserGroupsUrl = hubService.getFirstLink(project, ProjectView.USERGROUPS_LINK);

    final String json = "{\"group\": \"" + groupUri + "\"}";
    final Request request = RequestFactory.createCommonPostRequestBuilder(json).uri(projectUserGroupsUrl).mimeType("application/json").build();
    hubService.executePostRequestAndRetrieveURL(request);

to assign the group to the project. I expected based on the name of this endpoint
GET /api/projects/{projectId}/assignable-usergroups
That I would get a list of objects that would have sufficient information for me to then make the necessary POST request to assign the groups whose names matched my list of group names. The rest endpoint does that but the java library needs to catch up. AssignedUserView is for users, I'm working with groups so unless the assignable-usergroups endpoint needs a different HubResponse object, I'm fine working with the UserGroupView object.
Ideally, I would like to have an API like:
List projectService.getAssignableUserGroupsForProject(String projectName)
List projectService.getAssignableUserGroupsForProject(ProjectView project)
void projectService.addUserGroupsToProject(String projectName, List groupNames)
void projectService.addUserGroupToProject(String projectName, String groupName)
void projectService.addUserGroupsToProject(ProjectView project, List groups)
void projectService.addUserGroupToProject(ProjectView project, UserGroupView group)
There is also a need for similar APIs for assigning users. For completeness, the inverse for removing users and groups should exist although I don't have need for those right now.

This is great stuff, @eric-isakson, and we'll see what we can do. Unfortunately, the java library is not maintained in lock-step with the REST API - they are developed on very different schedules with completely different teams. In the java library's current form, it will most likely never be up to date with the REST API. If that is your requirement, I would encourage you to use HubService even more than you are now and abandon ProjectService.
Typically, hub-common receives updates when an integration needs a new API or link.
I believe ProjectService is currently too large to be well-supported - your recommended changes show this even clearer. I suspect we will want a ProjectGroupService to support the combination of projects and groups, but we'll figure this out in the coming weeks/months.
Thanks so much for your feedback!


MouseMoved variant is a (tuple of a tuple of i32) rather than a (tuple of i32)

Event::MouseMoved is inconsistent with the other variants, it is
 MouseMoved( (i32, i32) )
rather than
 MouseMoved(i32, i32)
like
Resized(u32, u32),
Moved(i32, i32),
TouchpadPressure(f32, i64)

Forgive me if this came up before,

Yes, I've found this a little strange too. Would be great to have some consistency!

Since there is already a breaking change in the events compared to the published version, the change could be made before I publish a new one.


Crawlera + Splash very slow

Hi,
I have integrated crawlera with splash and now the response is really slow, I have increased timeout limit. Please let me know how can I improve my request speed when use crawlera as proxy with splash. Is it good choice using crawlera with splash ?

Have you looked into Crawlera throttling?

Yes, I disabled ads and some unessential resources but It did not help much.

Hi @farazirfan47 getting good performance from Splash + Crawlera is tricky indeed. HAR (http://splash.readthedocs.io/en/stable/scripting-ref.html#splash-har) can help with diagnosing the issue. One problem that I have seen is that our current example script re-uses sessions, which adds a 12 second delay between subsequent requests when rendering one page. If this is the issue for you indeed (it will be clear from HAR output), then there are two ways to solve it: (1) don't use sessions (2) make only the first request via crawlera (the rest are usually static)

I have analysed HAR output and its clearly shows some of the web page resources taking too while. Can I stop splash for using crawlera when it download web page resources ?

Can I stop splash for using crawlera when it download web page resources ?

@farazirfan47  yes, please see this example (code is commented out): https://github.com/scrapinghub/sample-projects/blob/0a9779cac4564d24c082e4973534f36f33eb75d3/splash_crawlera_example/splash_crawlera_example/scripts/crawlera.lua#L18-L31 - this is from the guide
https://support.scrapinghub.com/support/solutions/articles/22000188428-using-crawlera-with-splash

I tried disabling the unessential resources but performance still nor good, first of all Its hard to find unessential resources links then apply filter. I am dealing with 40+ sites and all of them I have to write separate rules which is time consuming task.

@farazirfan47 are resources for one page downloaded in parallel or sequentially?

Bump. Has anyone figured out good solution for this? I've integrated Crawlera + Splash but it's incredibly slow, take more than few minutes to load a web page. I've limited concurrent requests to 10 in Scrapy and Splash due to Crawlera basic plan limits.


/at and /ct now giving players block-break access (plus piston bug)

As the title says, if I do ./ct or ./at in any claims to allow users to use pixelmon PCs, doors, etc, it allows them to block-break, but they still cannot block-place. The claimflag for block-break is false, and I even set an override for admin claims to no avail. There's not really much other information to give. I do ./at all OR /ct all, and they can break blocks now. Remove it, and they cannot. This isn't so much of an issue for admin claims because all I need enabled is interact-block-secondary, but this also happens in user claims.
Note: Turns out the interact-block-primary flag specifically allows people to break blocks. It did not in 578. interact-block-secondary doesn't allow people to place blocks though, so I'm really confused.
I am using the following versions:
GP <IP_ADDRESS>7
SF 3105 - Forge 2655
LP 4.2.13
Nobody has the "griefprevention.", or "" commands. Additionally, when I first upgraded GP from 578, this issue did not occur. It was only after a restart that this started happening.
GPDebug: https://griefprevention.github.io/debug/?ELxduy1ICn
Not sure if this helps, but I had a user break blocks with ./at and ./ct on. Their user is Syco_KN. I also broke some blocks as well.
latest.log
fml-junk-earlystartup.log
(I can't upload a debug.log because it's too large for both here and gist)

Unable to reproduce this on clean server. Also I see this in your gpdebug.
block-break | minecraft:player | minecraft:sandstone | (-417, 98, 115) | Syco_KN | FALSE
block-break is being denied
If you can reproduce this on a CLEAN server with only GP/LP/SF then i'll reopen.

Sorry to reopen the ticket like this, but I am unable to access a fresh server at the moment. However, I was able to make a video showing how I can recreate it. Even though block-break is being denied, players are still able to break blocks. Here is a video showcasing the issue I'm having: https://youtu.be/kv-z-sKCVZ0
If I am unable to recreate this issue on a fresh server, am I exempt from receiving help here?

Do this, create a new claim and test with a user that ONLY has griefprevention.user permission. Only set /containertrust OR /accesstrust for the same user. If problem persists, take a screenshot of your overrides.

Problem persists: http://prntscr.com/jmr089

Screenshot output of /lp user <username> permission info. Also make sure the claim you are creating is NOT a child of another as it will inherit from parent by default. Last, provide a gpdebug of just the user by using /gpdebug user username

http://prntscr.com/jmr5pf <- Permissions
gpdebug: https://griefprevention.github.io/debug/?iCVNe5Sd2j
It still says block-break is false, but as you can see from the video above, blocks are still broken.

 Remove that plugin and try again. If it still does not work then you need to do what I asked and reproduce on a clean server as there is clearly something on your end breaking it. GPDebug reports false so the issue is not on my end.

Both problems seem to have subsided for now, not entirely sure why an alias mod would cause something like this, but hopefully it's fixed permanently. If the problem arises again, and I cannot recreate it on a clean server, what do you suggest I try?

Again, if GPDebug reports results properly then it is not my issue. Your issue was caused by using an incompatible sponge plugin. Report to author if you need to use plugin as it must be updated to support latest Sponge.

The issue is back, CommandUtils is gone, attempting to get a test server up to no avail, although pistons seem to be completely fine. It's just the interact-block-primary causing people to be able to break. Did something change from GP 578 to 587 that might conflict with other mods? This issue never happened in 578. GPDebug isn't even showing block-break anymore, just trust.accessor. Unfortunately, I am unable to get a test server up and working at the moment. What do you suggest I do from this point on with the given information in mind?

@bloodmc Just wanted to let you know that I was finally able to solve the issue. Downgrading back to griefprevention 571 completely eliminated all of my problems with pistons and block-breaking when interact-block-primary was on. Thank you for your help.


Expose peek and peek_from

I was comparing mio's API to libstd, and while most of the omissions make sense, I couldn't figure out why peek and peek_from are absent in mio. Is there are reason I'm missing?
EDIT: One reason: you'd have to drop support for 1.14 <= rust < 1.18

What is this referring to? Could you link to the docs in std?

I'm referring to:

TcpStream::peek
UdpSocket::{peek,peek_from}

They've been in libstd since rust 1.18. They just pass the MSG_PEEK flag when calling recv()/recvfrom(). AFAIK sock.peek(...) != Ok(0) is the best way to check that a connection is still alive; it's probably useful for other things too.

We can probably bump to a min Rust of 1.18 soon.

Looks like this issue was half-resolved by ed3d66af5b71989e28e322dd9abbc7b29ae4b9aa.

Fixed by #1052.


Make "serve" serve all files in the slides folder

This allows the slides file to refer to other assets in the same
directory (or in any directory below), for example pictures.
If this is deemed insecure (after all, we're giving access to any file in the slides directory or below), we could of course hide this behind a command line option. As far as I could test, this does not allow reading files above the current directory, nor enumerating directories.

Fixed formatting

Fixed formatting


i can't log in

when I try to log in it say No configs given
This app is not affiliated with Instagram. You can visit the open source project here.
We never store your password.

everyone has this and the are not  doing anything

i even have same problem can u help me out plzzzz

We cannot do anything cuz the power to change any of the settings lies in their hands


1.82.2 on Linux Does Not Load Properly | Shader Errors In Log

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.82.2 (installed via Microsoft vscode repository)
OS Version: OpenSUSE Tumbleweed 2023-09-15

Steps to Reproduce:

Open vscode normally via menu or via command line with no arguments

The main window opens but is just empty rectangles, nothing actually populates other than the file menu at top.
Attached the verbose log file with errors about shaders not working (gzipped as the uncompressed file is 6MB from having the window open for a couple seconds).
This issue occurs in 1.82.2 but not in previous versions.
Disabling extensions does not fix the issue. Running code --disable-gpu from command line fixes the issue and the window loads normally.

vscode.error.tar.gz

Please see https://code.visualstudio.com/updates/v1_82#_update-highlights-for-chromium and try the deletion of GPU cache it recommends.

@gjsjohnmurray That fixed it, thanks!

@gjsjohnmurray  That fixed it for me too! thanks


Spark Logs

Where are the Logs produced by spark?
Thanks in advance for all the support,
Alberto

Hi,
Change the log level here to DEBUG or INFO and you will see the logs:
https://github.com/ansrivas/spark-structured-streaming/blob/4d88e2bbab1ef5aa8872460abfa2404f5e7b2c43/src/main/scala/com/kafkaToSparkToCass/Main.scala#L23

hi,
how can i the logs into a file?
Alberto


别卷了修佬

This issue is irrelevant to the project. I will close the issue.

This issue is irrelevant to the project. I will close the issue.

🥰
😍


Fixed build/test issues & Illustrated test best practices

Fixes

Fixed build/test issues.
Illustrated test best practice.

Thanks!


Show reinforcement inputs in code font.

In the following screenshot, the last line reads Fails on "lots of spaces". However, the input given here was actually meant to be "lots    of     spaces".

The input should be shown in code font so that the space characters are visible.

@seanlip Is this issue just trying to address the spaces not showing up in reinforcements or do we also want the inputs to be styled like the code in code snippets?

It's really the former. I had the latter in mind only as a suggestion for
one possible way to address it.
On Wednesday, July 19, 2017, Diana<EMAIL_ADDRESS>wrote:

@seanlip https://github.com/seanlip Is this issue just trying to
address the spaces not showing up in reinforcements or do we also want the
inputs to be styled like the code in code snippets?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/tie/issues/370#issuecomment-316476510, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKFeymypOs1XViC56hDbZ02GeowrMZ77ks5sPkuRgaJpZM4OXxsE
.

OK so something like this would work?

Yep, I think so!


Flutter firestore plugin can't able to fetch data with combination of 'where' and 'isEqualTo'

I'm just helplessly asking at here as I couldn't able to get any solution to my problem. There are two ways I'm fetching data from firestore... but none of them is working the moment I include where("createdByName", isEqualTo: "Suresh"). But, without that, it's working fine. Here is the code which I'm using...
First way
try {
  Firestore.instance
      .collection("trips")
      .where("createdByName", isEqualTo: "Suresh")
      .snapshots
      .listen((data) => print('Firestore response1: ${data.documents}'));
} catch (e){
  print('Caught Firestore exception1');
  print(e);
}

Second way
try {
  Firestore.instance.collection("trips")
  	.where("createdByName", isEqualTo: "Suresh")
  	.getDocuments().then((data) {
    print('Firestore response2: , ${data.documents}');
  });
} catch (e){
  print('Caught Firestore exception2');
  print(e);
}

My firestore data format is some like this...

OMG!!!, after two days of breaking my head on this silly thing... the solution is .where("trip.createdByName", isEqualTo: "Suresh") and modified queries are...
First way
Firestore.instance.collection('trips')
  .where('trip.createdByName', isEqualTo: "Suresh")
  .snapshots.listen(
      (data){
        data.documents.forEach((doc) => print( 'Firestore response1 : ${doc.data.toString()}' ));
      }
  );

Second way
Firestore.instance.collection("trips")
  .where("trip.createdByName", isEqualTo: "Suresh")
  .getDocuments().then((string) {
    string.documents.forEach((doc) => print("Firestore response2: ${doc.data.toString()}" ));
  });

With this, I'm closing this issue which technically was not a issue. Excuse me for this. I'd to done this as I lost all my options to fix this issue. Hope this will help someone.


Pagination Icon

Pagination left and right icons are using thick icons.
We should use standard ones.
https://modus-bootstrap.trimble.com/foundations/icons/?q=icons&filter=chevron+right#icons

The changes are already merged so closing this issue


Videojs poc

Fixes issues:

#173
#254

Test URLs:
Before: https://main--hlx-test--urfuwo.hlx.live/draft/mlangford/standard-chartered-total-workforce-solution
After: https://videojs-poc--hlx-test--urfuwo.hlx.page/draft/mlangford/standard-chartered-total-workforce-solution
Features / Updates / Notes

All videos use the already-existing embed block that is created by the importer process
All videos show a placeholder image with a consent overlay that allows the video to be played one-off on click, or provides an option for a (session-based) consent to play all videos of that type (SAP, YouTube).
YouTube and SAP video will autoplay when the placeholder is clicked, but not if the player is embedded automatically (due to persistent consent)
Per consent requirements, players that operate as embedded players must initially load as placeholder images with consent overlays.
LinkedIn video do not play in an embedded player, rather they link out to the Linked post URL provided instead.
LinkedIn videos do no use the Embed block.  Rather, they are included as images/links inline.

Known Issues

SAP player styles are not brand compliant.
Due to CORS settings, video from SAP's DAM will not load (resolution for this is in progress).
VideoJS lib and CSS files are loaded directly through DOM injection - there is probably a better way to do this.
Need to investigate VideoJS related to consent requirements - the consent overlay may not be necessary for that one.

I ran the PSI scan manually and got different results:
https://pagespeed.web.dev/analysis/https-videojs-poc--hlx-test--urfuwo-hlx-page-draft-mlangford-standard-chartered-total-workforce-solution/oyuz973er3
None of the issues listed were a result of the code in this PR however.

Please check the lint issues

There's two easy to fix issues in scripts.js but all the hundreds of other results are in the VideoJS library file.  Since that's a 3rd-party script, those issues aren't fixable.  I actually already have/* eslint-disable */ in that file but I guess that doesn't work in the quality gate scan?

There's two easy-to-fix issues in scripts.js but all the hundreds of other results are in the VideoJS library file. Since that's a 3rd-party script, those issues aren't fixable. I actually already have/* eslint-disable */ in that file but I guess that doesn't work in the quality gate scan?

For 3rd party libs you can add the .eslintignore file, that is fine and better then /* eslint-disable */

There's two easy-to-fix issues in scripts.js but all the hundreds of other results are in the VideoJS library file. Since that's a 3rd-party script, those issues aren't fixable. I actually already have/* eslint-disable */ in that file but I guess that doesn't work in the quality gate scan?

For 3rd party libs you can add the .eslintignore file, that is fine and better then /* eslint-disable */

I've done that for both the JS and CSS file but it didn't seem to ignore the CSS file anyway (still working on that).  In any case, the other items have been addressed, plus I added async to the script which made a big difference in the performance score.  Locally, I'm also having trouble with lint because, despite setting autocrlf = input in my git config, I have a many of files that git set to CRLF regardless of the config setting, but lint is expecting only LF.  I resolved that problem once before, but it's popped back up again and unfortunately it makes it running lint locally effectively useless because the number of errors overrun the buffer in my terminal...

I think it looks good to me now. Lets get the conflicts resolved and we will get this merged

One more thing: custom fonts. Looks like from the custom fonts only the play button is used. This could be a simple SVG, no need to add extra custom fonts.

One more thing: custom fonts. Looks like from the custom fonts only the play button is used. This could be a simple SVG, no need to add extra custom fonts.

You mean the SAP-icon fonts?  Can leave it out for now, but those are used rather broadly on the .com site (aka the Insights pages).  We'll want to talk with Elaine and Dani I guess to find out if those are no longer going to be used for anything, but if they are, it will need to be included at some point eventually.
If you mean the VideoJS font file, I'm actually not sure that will even be used ultimately.  It's called in the base CSS file though, so I left it in there to avoid http errors for now.  Once this branch is merged, I have a ton of styling and refinement work to do for the DGL player but that's a Sapphire requirement, not a March one.
I'm getting a ton of conflicts from the move to aemedge.

You mean the SAP-icon fonts?

Yes, right now only one icons is used. We already got other icons from SAP-icons font as SVGs.


Add named arguments in pivot for pandas 2.0

Pandas 2.0 no longer allows unnamed arguments for this function.
Fixes #422

Line length fixed.
The tests don't call .pivot() directly, so unless I'm missing something we shouldn't need to make changes there.
I don't know where these new errors are coming from but I'm pretty sure it's not from these changes (which pass locally and worked in GH Actions over the weekend).

Okay, I think we can agree that this PR is important enough that we can bypass the question of the azure fails and get a new pypi release.


merged TODO.md and TODO2.md. Also changed formatting, and added an index

What kind of change does this PR introduce?
A better overview for TODO and TODO2.
The purpose of this is to add it to the wiki. Deleting TODO2 in the process.

** Can it be referenced to an Issue? If so what is the issue # ?**
It is a part of https://trello.com/c/bSFcllDG/13-extract-information-into-wiki
How can we test it?
Any markdown editor or preview it through Visual studio code .

Summary

Does this PR introduce a breaking change?
No.
Other information

for me it is ok, @janpio let me know if your review is done and  I will merge


Documentation clarification - Bots retrieving UPN property for members of a team

Hi, regarding this statement towards the end of the page:
By late 2022, bots can't proactively retrieve the userPrincipalName or email properties for members of a chat or team.
are there any updates on exactly when this feature might be removed or what the process would be (e.g. throttled requests for a period before complete removal)?
Thanks.

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

ID: c780d605-b1b2-716f-5888-503608769b5a
Version Independent ID: 53c724f8-d9a2-4af6-6d75-ddeaef084137
Content: Bot API changes for team and chat members - Teams
Content Source: msteams-platform/resources/team-chat-member-api-changes.md
Service: msteams
GitHub Login: @ojasvichoudhary
Microsoft Alias: ojchoudh

@YJasonY - We are looking into this I will get back to you soon.

@YJasonY --We are checking the method ,We are able to get the userPrincipalName /email using the GetConversationPagedMembers API.
We are update the document accordingly.

@YJasonY - We are closing this issue for now, Please feel free to reopen it, if required.


chore: test commit

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Kevin Lin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Windows web ui went from perfect to massively large and unusable

Happened overnight two nights ago.
The screen loads with the giant search icon showing first.
All the channels and stuff are still running, but I'm unable to make any changes or updates through the webui
Uploading ErsatzTV.pdf…

ErsatzTV.pdf
ErsatzTV.pdf

Do a hard reload: shift+refresh or ctrl+refresh, or try in a private window. Sometimes there are errors loading new versions of the web ui, but clearing the cache usually resolves it.


ESP8266 MQTT?

This async MQTT library supports SSL+TLS. If it possible to use MQTT provided by this library to connect to Google IoT? All I see is the example for MQTT for ESP32.

One more issue with Git version, it wont compile until I add #include <String.h> in nn.cpp, secp256r1.cpp, sha1.cpp

I'd definitely be interested in seeing whether this approach works. For the mqtt_esp32 example that you're encountering the issue with, what version of Arduino are you using and which OS are you building from?

I'm on the git version of esp8266-arduino and windows 10 x64 os. I tried adapting this code for esp8266 and failed miserably, with wdt resets with some function in nn.h. don't have time to pursue further, but will come back to it later. Currently comparing all cloud options amazon away/gcp/azure/watson for esp8266.

Ahh, for ESP8266, the ESP8266-http sample is the only supported version. I used it in this demo that I delivered at I/O this year.  I have been working on porting MQTT to work for the 8266 but there's some strange issue that causes crashes.

Thank you for those links, I saw that video that inspired me to start working on this. I can confirm that the http method works for esp8266. Mqtt is still a challenge, if I figure it out I'll keep you in the loop.
As for the esp32-mqtt, I used a doit ESP32 board with latest esp-idf branch on Arduino IDE 1.8.5 Windows 10 x64 machine. Won't compile the git version of this library unless I add string.h to the above mentioned files. The release version complies just fine!

As for the esp32-mqtt, I used a doit ESP32 board with latest esp-idf branch on Arduino IDE 1.8.5 Windows 10 x64 machine. Won't compile the git version of this library unless I add string.h to the above mentioned files. The release version complies just fine!

Oof, I really need to do a maintenance check on the GH version. Been meaning to set up continuous integration so that commits are easier but it's tough and generally depends on Platform IO, which is about halfway working.

Now that there is SPIFFS support for the CA cert, the ESP8266 may work with MQTT.

Ahh, for ESP8266, the ESP8266-http sample is the only supported version. I used it in this demo that I delivered at I/O this year. I have been working on porting MQTT to work for the 8266 but there's some strange issue that causes crashes.

Solution:

Disable the CPU watchdog before any crypto function and enable it afterwards.
the call back functions are not set correctly in the code - The callback function pointer is Null. Please trace the call back functions in the Mqtt code. This cause another crash.

@gguuss on ESP8266, I was able to use BearSSL along with PubSubClient to communicate with secure MQTT servers here: https://github.com/debsahu/ESP_MQTT_Secure Can we do something similar here?

@debsahu This looks promising, maybe another example using BearSSL and Esp8266 could help.

@gguuss check these out, https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WiFi/examples bunch of BearSSL examples. See example,  BearSSL_Validation.

Example included in release v1.0.5! Hopefully we'll have a more integrated version in a future release.


Locale Configuration

Add prototype for Locale configuration used to allow the operators to configure common settings like reqmgr ports, hosts etc.
To be used for removing wmagent-mod-config as part of migration to python based manage script.

I guess lots of things changed since 2011, for good :-) Can we close this one @ericvaandering ?


Raster heat maps not showing up on some ISPyB images

https://github.com/NSLS-II/lsdc/blob/7c137a25d883c27aae756ea1813f13018d85208a/daq_utils.py#L184-L202
Occasionally there seems to be some timing issue in which microscope images of mounted samples are recorded for entry into ISPyB before the heat map is drawn onto the camera image (see attached example).
When does insertResult in ispybLib call take_crystal_picture() in relation to when heat map is drawn on microscope image? Could we use threading module to fix this problem?

More possible timing issues (note gain setting of camera)

The black raster image occurs when two rasters are queued back-to-back in manual mode; the first raster does not transition to SA, and stays in DA, therefore the light is still out when the function is called to take the image and insert into ispyb. This particular user that created the black image often queues rasters back-to-back.

The black raster image occurs when two rasters are queued back-to-back in manual mode; the first raster does not transition to SA, and stays in DA, therefore the light is still out when the function is called to take the image and insert into ispyb. This particular user that created the black image often queues rasters back-to-back.

This issue was taken care of in #46

One of the reasons the grid/heatmap wasn't appearing was due to the omega angle, for large rasters some times the omega angle at the end of the row/column exceeds the +/- 5 degree display threshold in the GUI. This omega issue is resolved by including start omega angle in the list of positions to return to at the end of the raster.
The timing/black images should be mostly resolved by waiting for successful governor transition before taking the snapshot from the GUI. If necessary the RASTER_SHORT_SNAPSHOT_DELAY config parameter can be tuned via the configuration database if a longer delay is required.


Snippet to create a complete 'describe / it / expect' skeleton

I love this extension and it saves me time every day.
I wonder if an additional snippet might be helpful, that sets up a new test file with the skeleton necessary to write your first test?
For example:
import { describe, expect, it } from "vitest";

describe("group ", () => {
	it("should ", () => {
		expect(true).toBe(true);
	});
});

I would try to take a look this weekend!

Version 1.8.0 was deployed.
Take a look on skeleton section:
https://marketplace.visualstudio.com/items?itemName=deinsoftware.vitest-snippets#skeleton

Fantastic! Thank you so much. 🙂


Server error on Location Types filtering

Environment

Nautobot version: (v2.1.5)
Python version: 3.11.8
Database platform, version: same version as https://demo.nautobot.com/
Middleware(s): same as https://demo.nautobot.com/

Issue opened based on https://demo.nautobot.com/ , but reproduced it at least with version v2.0.3
Steps to Reproduce

Go to Organization -> Location Types
Open 'Filter' menu
On tab 'Default' , select any 'Content types' (at least 1)
Apply

Expected Behavior
Filter the location types based on selected content types
Observed Behavior
The generic server error page is displayed with the following message:
<class 'KeyError'>
'location_types'
Python version: 3.11.8
Nautobot version: 2.1.5

Traceback:
Traceback (most recent call last):
  File "/source/nautobot/core/utils/filtering.py", line 141, in get_filterset_parameter_form_field
    form_field = MultipleContentTypeField(choices_as_strings=True, feature=plural_name)
  File "/source/nautobot/core/forms/fields.py", line 232, in __init__
    extras_utils.FeatureQuery(feature).get_query()
  File "/source/nautobot/extras/utils.py", line 133, in get_query
    for app_label, models in self.as_dict():
  File "/source/nautobot/extras/utils.py", line 142, in as_dict
    return registry["model_features"][self.feature].items()

During handling of the above exception ('location_types'), another exception occurred:
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/source/nautobot/core/views/mixins.py", line 165, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/source/nautobot/core/views/generic.py", line 333, in get
    return render(request, self.template_name, context)
  File "/usr/local/lib/python3.8/site-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/usr/local/lib/python3.8/site-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/usr/local/lib/python3.8/site-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/usr/local/lib/python3.8/site-packages/django/test/utils.py", line 100, in instrumented_test_render
    return self.nodelist.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/usr/local/lib/python3.8/site-packages/django/test/utils.py", line 100, in instrumented_test_render
    return self.nodelist.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 150, in render
    return compiled_parent._render(context)
  File "/usr/local/lib/python3.8/site-packages/django/test/utils.py", line 100, in instrumented_test_render
    return self.nodelist.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py", line 62, in render
    result = block.nodelist.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/library.py", line 234, in render
    return t.render(new_context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 172, in render
    return self._render(context)
  File "/usr/local/lib/python3.8/site-packages/django/test/utils.py", line 100, in instrumented_test_render
    return self.nodelist.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 315, in render
    return nodelist.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py", line 171, in render
    len_values = len(values)
  File "/usr/local/lib/python3.8/site-packages/django/forms/formsets.py", line 99, in __len__
    return len(self.forms)
  File "/usr/local/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/lib/python3.8/site-packages/django/forms/formsets.py", line 155, in forms
    return [
  File "/usr/local/lib/python3.8/site-packages/django/forms/formsets.py", line 156, in <listcomp>
    self._construct_form(i, **self.get_form_kwargs(i))
  File "/usr/local/lib/python3.8/site-packages/django/forms/formsets.py", line 193, in _construct_form
    form = self.form(**defaults)
  File "/source/nautobot/core/forms/forms.py", line 299, in __init__
    self.fields["lookup_value"] = get_filterset_parameter_form_field(
  File "/source/nautobot/core/utils/filtering.py", line 152, in get_filterset_parameter_form_field
    choices_as_strings=True, queryset=queryset_map[plural_name]().as_queryset()

Exception Type: KeyError at /dcim/location-types/
Exception Value: 'location_types'

The following diff looks effective in addressing this - would need test automation and such though.
diff --git a/nautobot/core/utils/filtering.py b/nautobot/core/utils/filtering.py
index f27826a99..1609d27cd 100644
--- a/nautobot/core/utils/filtering.py
+++ b/nautobot/core/utils/filtering.py
@@ -136,7 +136,9 @@ def get_filterset_parameter_form_field(model, parameter, filterset=None):
         plural_name = slugify_dashes_to_underscores(model._meta.verbose_name_plural)
         # Cable-connectable models use "cable_terminations", not "cables", as the feature name
         if plural_name == "cables":
-            plural_name == "cable_terminations"
+            plural_name = "cable_terminations"
+        elif plural_name == "location_types":
+            plural_name = "locations"
         try:
             form_field = MultipleContentTypeField(choices_as_strings=True, feature=plural_name)
         except KeyError:


Implement InitHeader call in CFE FS

All CFE apps that write a file should prefix that file with a header object defined in FS.  Currently they do so on-the-fly by simply memset()'ing the structure to zero and setting a key field.
This should be cleaned up and moved to an InitHeader() call in CFE FS such that if fields need to be added to the header in the future this can be done without having to touch many different places where the header is initialized/written.

Trac comment by jphickey on 2014-12-24 11:14:18:
Pushed commit [changeset:de8f127] to address this.
NOTE: In several instances this change also fixes possible uninitialized data bug(s): the file header was allocated on the stack but not necessarily memset() before writing it to the file.  The description and subtype were set, but other fields might have uninitialized data.

Imported from trac issue 6.  Created by jphickey on 2014-12-24T08:51:08, last modified: 2019-03-05T14:57:55

Trac comment by jphickey on 2015-04-06 11:22:20:
This is ready for review/merge

Trac comment by jwilmot on 2015-04-06 15:17:42:
Should the Init header function return an error code? What if the string is to long? How would an app add non-common header metadata like a version or CRC?

Trac comment by acudmore on 2015-04-06 14:03:55:
recommend accept

Trac comment by jphickey on 2015-04-06 15:46:57:
We can easily modify the API to return an int32 and do the length check, but we just need to consider:

Nothing was being length-checked previously with the existing code, strings would have just been silently truncated.  The way it is now preserves the silent-truncation behavior, so as to minimize the chance of unintended consequences.
Nothing will be actually checking the return code on this (yet), and adding this check will complicate all the users of this function since they need a failure path, unit tests for the failure path, etc.

For the case of non-common header data, the callers are still free to modify the structure after this call returns, just as they always have done.  This only replaces the bits of initialization that were consistent everywhere.  It also creates a nice place for future additions of things that need to be everywhere (such as the signature of EDS in use describing the binary format).

Trac comment by glimes on 2015-04-07 12:47:34:
Tested changeset [changeset:de8f127] as part of the ic-2015-03-10 merge.
Do we include this changeset as-is (and update later), defer it, or revise
it as part of this merge?

Trac comment by sstrege on 2015-04-07 13:25:39:
CCB - Agree to move this change forward and open a new ticket to handle error/length conditions

Trac comment by glimes on 2015-04-13 15:26:51:
Part of integration candidate 2015-03-10,
committed to cFS CFE Development branch on 2015-04-10
as part of merge [changeset:7d6f6d0].

Trac comment by glimes on 2016-02-16 13:16:45:
Susie confirmed these tickets have been approved for CFE 6.5

Trac comment by jhageman on 2019-03-05 14:57:55:
Milestone renamed


Upgrade requirements.txt

Dear EasyEdit Team,
Thank you very much for this nice repo.
Since you have integrated llama-3.2 into your repo, you also have to update the dependencies of your repo. The current transformer version may have the problem of loading llama-3.2 (see this issue).
Regards,
Syon

Thank you very much for your attention to EasyEdit. We will update the requirements in the near future and test whether there is any impact on other methods.

Thank you very much for your interest in EasyEdit. We have updated the Transformers library.


IE11 render issue : botframework-webchat@master

🚨 The issue tracker is not for implementation questions 🚨

[Question]

I am running BotFramework-WebChat using npm install botframework-webchat@master . Its working with chrome. But in IE11, its not rendering after initial render. when we type text, its getting response from bot and not rendering in the UI.

@Ganeshdino, as demonstrated in "How to use", can you switch over to @latest instead of @master and give it a try?
@master does not reflect the most up-to-date published version.

Thanks  @stevkan. I will try with @latest.
But I have already tried with CDN link with latest es5 bundle https://cdn.botframework.com/botframework-webchat/latest/webchat-es5.js . Its not working with IE11.

I have downloaded the botframework-webchat@latest and executed it.
IE11 issue is still the same.. No improvement.

Apologies, I think I misunderstood your question, to start. This is looking like it is related to the styling of Web Chat on the page. Can you add/replace the following CSS on your page and see how it affects the rendering?
  <style>
    html,
    body {
      height: 100%;
      width: 100%;
    }

    body {
      margin: 0;
      /* background-color: rgb(52, 5, 139); */
    }

    #webchat {
      height: 100%;
      margin-left: 20px;
      float: left;
      width: 50%;
    }

    #webchat>* {
      height: 95%;
      width: 100%;
    }

  </style>
</head>

Closing this issue as resolved. If the issue persists or you have new information to provide, please feel free to re-open.


(Don't Merge)(PUP-4435) Deprecate WEBrick and Rack master servers

This commit adds a deprecation warning to Puppet's
webrick code so that just before the server is started,
the warning will be emitted. We plan to eventually drop
WEBrick.

Note that this PR is still under discussion, and if we do decide to merge it, it should happen after https://github.com/puppetlabs/puppet/pull/3850 is merged (that commit includes spec changes that this PR is dependent on)

CLA signed by all contributors.

@whopper I've missed some of the communication. Where is this PR being discussed?
@ahpook do you have comments on this? (And btw, I'm assuming we should do this for rack as well.)

@kylog ah, there were some questions in the PR that I closed yesterday. From @joshcooper:
"Also, I'm a little hesitant to put in a deprecation warning that can't be turned off. What do you think about splitting this into two PRs? We can merge the one for PUP-4394 now, and discuss the other one when @kylog is back?"

@whopper looks like a valid spec failure https://travis-ci.org/puppetlabs/puppet/jobs/59297018#L162.

@joshcooper oh right, I need to rebase!

@kylog updated to deprecate both WEBrick and Rack, and for now mentioned Puppet Server (all pending discussion on whether this is actually what we want to do or not).

@kylog asked in an earlier commit, do we need a docs page and perma-link about the webrick/rack deprecations?
I think that would be good. I went ahead and created a link: http://links.puppetlabs.com/deprecate-rack-webrick-servers that points to https://tickets.puppetlabs.com/browse/PUP-4435.
@nfagerlund @ahpook could you update the PUP ticket with info about why we're deprecating rack & webrick and how to get started with puppetserver?

@joshcooper sure thing! I figure I'll wait until @nfagerlund and @ahpook have a chance to comment before I switch this PR over to master and lose all the comment history again...

No need to switch the PR to master. We'll be fast-forwarding stable to master soon (for 4.1.z fixes), and master will be for 4.2.0.

So this shouldn't be merged until we release 4.0.1 and prepare for a 4.1.0 release?

Kylo is about to send an email about 4.0.1 & 4.1.0. Short version is that we won't have 4.0.1. Instead we'll combine 4.0.1 and 4.1.0 and that will be the stable branch. 4.2.0 will be master branch for inclusion in SG. The bump from 4.0.z to 4.1.0 is required because the current master branch contains features not present in stable, and following semver needs to be bumped. So long story short, I think this is targeting the correct branch, and is ready to be merged.

@nfagerlund gave :+1: in meatspace.

@joshcooper updated!

The "Failed to load feature test" is expected in that case.
Sorry I didn't notice this earlier, but could you move the rack server test into the with --rack describe starting at line 376 (as that is already setup to guard on the rack feature).

@joshcooper definitely! Hadn't noticed those tests before - moved.


Uncaught Error: spawn ENOTDIR

[Enter steps to reproduce below:]

...
...

Atom Version: 1.8.0
System: Mac OS X 10.11.5
Thrown From: linter-rails-best-practices package, v0.2.2
Stack Trace
Uncaught Error: spawn ENOTDIR
At /Users/MaeveTierney/Downloads/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:262

Error: spawn ENOTDIR
    at exports._errnoException (util.js:856:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at Object.exports.spawn (child_process.js:374:9)
    at BufferedProcess.module.exports.BufferedProcess.spawn (/Users/MaeveTierney/Downloads/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:190:44)
    at new BufferedProcess (/Users/MaeveTierney/Downloads/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:52:14)
    at /Users/MaeveTierney/.atom/packages/linter-rails-best-practices/lib/linter-rails-best-practices.coffee:12:9
    at lint (/Users/MaeveTierney/.atom/packages/linter-rails-best-practices/lib/linter-rails-best-practices.coffee:8:7)
    at Object.provider.lint (/Users/MaeveTierney/.atom/packages/linter-rails-best-practices/lib/linter-rails-best-practices.coffee:62:25)
    at promises.push.Promise.then._this.emitter.emit.linter (/Users/MaeveTierney/.atom/packages/linter/lib/linter-registry.js:63:26)
    at /Users/MaeveTierney/.atom/packages/linter/lib/linter-registry.js:62:23
    at Set.forEach (native)
    at LinterRegistry.lint (/Users/MaeveTierney/.atom/packages/linter/lib/linter-registry.js:60:18)
    at /Users/MaeveTierney/.atom/packages/linter/lib/linter.coffee:98:16
    at Function.module.exports.Emitter.simpleDispatch (/Users/MaeveTierney/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Users/MaeveTierney/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at /Users/MaeveTierney/.atom/packages/linter/lib/editor-linter.js:86:22
    at /Users/MaeveTierney/.atom/packages/linter/lib/helpers.coffee:25:18

Commands
     -0:28.2.0 application:add-project-folder (atom-pane.pane.active)
     -0:10.5.0 tree-view:remove-project-folder (div.header.list-item)

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "climate-syntax"
    ]
  }
}

Installed Packages
# User
autoclose, v0.0.2
autoclose-html, v0.23.0
climate-syntax, v5.0.0
intentions, v1.0.5
linter, v1.11.14
linter-csslint, v1.3.2
linter-erb, v1.0.2
linter-htmlhint, v1.2.1
linter-jshint, v2.1.0
linter-rails-best-practices, v0.2.2
linter-ruby, v1.2.2
linter-spell, v0.8.0
linter-spell-html, v0.4.0
pigments, v0.31.2

# Dev
No dev packages

Do you have rails_best_practices installed? Does the error go away if you put the full path into the "rails_best_practices Executable Path" setting? You can find that by running which rails_best_practices.


Rebuild space 3.3.1 because of missing the pydantic's upper bound

Rebuild because of missing the pydantic's upper bound pinning
Requirements:

https://github.com/explosion/spaCy/blob/v3.3.1/pyproject.toml
https://github.com/explosion/spaCy/blob/v3.3.1/requirements.txt
https://github.com/explosion/spaCy/blob/v3.3.1/setup.cfg
https://github.com/explosion/spaCy/blob/v3.3.1/setup.py

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_adehadnj3o/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found

But spacy 3.3.1 isn't compatible with python 3.11 support. Only spacy >=3.4.2 has that support, see https://github.com/explosion/spaCy/issues/11664#issuecomment-1285770573

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_e1ljaruvgz/clone/recipe/meta.yaml:17: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_81jkqqgybo/clone/recipe/meta.yaml:17: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_baa7ijrl08/clone/recipe/meta.yaml:17: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_e21qh6hbp0/clone/recipe/meta.yaml:17: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_33r23v8pou/clone/recipe/meta.yaml:17: pip_install_args: pip install should be run with --no-deps and --no-build-isolation.
Errors were found


Custom MSG 2015 UI for the last day?

New UI made custom for the MSG2015 group maybe to be used for the last day of the game?
http://i.imgur.com/zHI6C6X.png
Super easy to implement, and it just looks clean. Steam badge replaced with MSG 2015 and GabeN moved so he's no longer in the way of any of the UI elements.
Just replace line 54,
"Wormhole Gaben": "http://i.imgur.com/6BuBgxY.png"
with this as lines 54 and 55
"Wormhole Gaben": "http://i.imgur.com/6BuBgxY.png",
"MSG2015": "http://i.imgur.com/zHI6C6X.png"
to add it to the dropdown so it can be selected.
Hope you like it.

Implemented it


Question: Why can't use slashes on the path?

Which version are you using?
v0.9.11
Describe the problem
Up to and including version 0.9.7, everything worked normally, but from the next version 0.9.8, it is no longer possible to use slashes on paths.
It is a great pity that such a solution has been chosen. Maybe there’s still a chance to leave slashes on the path?
example: /slashes/on/the/path/is/super/feature

Hello, slashes have been temporarily disabled because they interfered with the stream setup mechanism.
Each track in a stream has a unique path, for instance rtsp://host/path/streamID=1, formed by the stream path, i.e. rtsp://host/path, and a prefix, i.e. /streamID=1.
Slashes in the path url messed up the function responsible for extracting the stream path from the track path.
But they'll be readded soon.

added in v0.9.12


[Key Vault] Cleaned up the generated folders for Keys, Secrets and Certificates

Context: I did most of this while writing instructions for others. It made sense to me to make the pull request instead of putting more effort in the instructions.
The generated folders had the SDK_VERSION and the parseKeyvaultIdentifier copied across the three repos.
My changes:

Moved SDK_VERSION to a file called src/constants.ts.
Moved the parseKeyvaultIdentifier to keyvault-common.
Deleted the generated folders and re-generated them.
Fixed the build.
Made sure eslint and prettier were happy with it (had to do some small tweaks on keyvault-common for that).

Feedback appreciated.
Fixes #10737

I asked for a private review of my last tweet to @deyaaeldeen and he says that it looks good. I'll merge this when it goes green.