[BUG]: useStorageState hook type error

Package Scope

Package name: @toss/react
Describe the bug

tl;dr

In the example of useStorageState, a type error occurs. This is because defaultValue is inferred as a literal type rather than a primitive type.
I tried to infer the type of defaultValue without writing a generic in useStorageState, but I couldn't find a way. Please advise if there is any other way
If there is no other way, I will add a phrase to the document that a generic must be created if the defaultValue is a primitive type (string, boolean, number).

This is an issue about a type error occurring in the useStorageState hook.
If you try to use the example in the document of useStorageState hook as it is, the following type error occurs.
function MyComponent() {
  const [state, setState, refresh] = useStorageState('@service/some-resource', {
    defaultValue: 0,
  });

  useEffect(() => {
    setState(x => x + 1);
    // ^ type error
  }, []);

  ...
}

However, if you write a generic, type errors do not occur:
const [state, setState, refresh] = useStorageState<number>('@service/some-resource', {
  defaultValue: 0,
});

useEffect(() => {
  // No error
  setState((x) => x + 1);
}, [setState]);

I confirmed that the state among the return values of useStorageState in the example above is not inferred as number, but as literal type 0. In addition, even when the defaultValue is a primitive type such as boolean or string, it is inferred only as a literal type:
  // const state1: true
  const [state1, setState1, refresh1] = useStorageState('boolean', {
    defaultValue: true,
  });

  // const state2: "str"
  const [state2, setState2, refresh2] = useStorageState('string', {
    defaultValue: 'str',
  });

Here, I want to make type inference without writing generic like React.useState. However, because of the type constraint that prevents the symbol value from entering the devalutValue of the useStorageState argument, type inference is not possible as a primitive type like React.useState.
// const count: number
const [count, setCount] = useState(1);

// const state: number  ✅ What I want
// const state: 0  😢 Actually
const [state, setState, refresh] = useStorageState('number', {
  defaultValue: 0
})

In https://github.com/Microsoft/TypeScript/pull/10676, when inferring function arguments, type parameters are inferred as widened literal types only in the following situations:

During type argument inference for a call expression the type inferred for a type parameter T is widened to its widened literal type if:

all inferences for T were made to top-level occurrences of T within the particular parameter type, and
T has no constraint or its constraint does not include primitive or literal types, and
T was fixed during inference or T does not occur at top-level in the return type.

In other words, since the primitive type is included in the type constraint of useStorageState, the type inferred from the type parameter is a literal type:(Please check my playground)
https://github.com/toss/slash/blob/main/packages/react/react/src/hooks/useStorageState.ts#L5
// useStorageState.ts
// A conditional type constraint contains a primitive type
export type Serializable<T> = T extends string | number | boolean | unknown[] | Record<string, unknown> ? T : never;
...

Therefore, I concluded that the type parameter T cannot be inferred as a primitive type (e.g. string, number or boolean) because of the type constraint for defaultValue in useStorageState. Is there any other way?
If there is no other way, it seems that the phrase that a generic must be created when a primitive type enters the defaultValue should be added to the official document.
Please give me some advice on the issue and I'll fix the documentation.
Expected behavior

To Reproduce

Possible Solution

Additional context

This issue is resolved by #223

I left a comment on #223 , but I think you didn't see it, so I'm leaving it here.
I also confirmed that this PR did not solve the issue. I apologize for my mistake. But I found that the method below widens the type, but what is your opinion on its appearance, even if it is not pretty?
type ToPrimitive<T> = T extends string
  ? string
  : T extends number
  ? number
  : T extends boolean
  ? boolean
  : T extends unknown[]
  ? unknown[]
  : T extends Record<string, unknown>
  ? Record<string, unknown>
  : T;

I'm sorry I'm late checking comments
I tried the solution you gave, but the primitive type is inferred well, but it does not prevent symbol from being passed to defaultValue as before with a type error.
If you solved it, could you reproduce it?

what is your opinion on its appearance, even if it is not pretty?

I agree, but I think this part should be reviewed by the maintainers of this library!

It looks like checking for the symbol type too. While limiting the type this way might not be the best approach, it does solve the problem. So, I'll submit a new pull request and wait for the maintainer's feedback, as you suggested.

This issue is resoloved in this PR #292


Cryptocurrency Price Tracker

Crypto Price Tracker
A simple Python application built using Tkinter to track the live prices of Bitcoin (BTC) and Ethereum (ETH). The application fetches the current cryptocurrency prices from the CoinGecko API and updates them in real-time.
Features

Displays live cryptocurrency prices in USD.
Shows the price change and percentage change for Bitcoin and Ethereum.
Updates prices every 10 seconds.

Code Overview

get_crypto_price(crypto_id): Function to fetch the current price of the cryptocurrency from the CoinGecko API.
update_prices(): Function that updates the displayed prices and their corresponding changes in the GUI.
The GUI is created using Tkinter, with a title, frames for each cryptocurrency, and labels for displaying the prices and changes.

Example Screenshot

@sumanth-0 please review this and merge
Thank You

@sumanth-0 is this repo offically accepted and part of HacktoberFest'24

I mean I have checked the hacktoberfest for my repo and its not considered spam. I have followed all the mainter rules. You have a 5 to 6 day of review period where hacktober will review your PR. So if you give quality code it should get considered for a successful PR in hactoberfest. @yashwanthvarma18

@sumanth-0 as of now there are no spam or invalid tags on this right and everthing is fine right

Yep i am mostly not accepting too simple projects now for this reason.


controller: request more memory to prevent runtime OOM kills

What this PR does / why we need it:
We had forgotten to request more memory when we added the controller,
which furthermore now also runs the ip-reconciler cron.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #260
Special notes for your reviewer (optional):
None.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 59.227%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
950

Relevant Lines:
1604

💛  - Coveralls


Add missing tests to CircleCI config

@msimberg We might have to split the tests.headers target into smaller pieces now as it looks like CTest runs out of memory after a while.

@msimberg We might have to split the tests.headers target into smaller pieces now as it looks like CTest runs out of memory after a while.

Interesting... I didn't even change the way the header tests are handled. I split them up now into modules header tests and all other header tests. I made the non-modules header tests only run one test at a time. We'll need to split them differently again when more modules are merged but this should do for now.


Kelp Items are no longer obtainable

I tried this with the mod by itself outside the Modpack and kelp no longer drops when I break the plant.
Please fix! :)
latest.log

Are you still working on it? :D

You can use the config to change drops btw.


I was asked to send a log....

This said there was trouble syncing one of my KBFS directories.  I think this may have timed out because it started syncing before I hibernated my laptop this morning, and then timed out when I brought the laptop back from hibernation many hours later (and had not yet joined the new wireless network).
If so, this is likely to be a common issue and might need a less scary notification.
my log id: 3461afda7ac2c6dbe3d0021c

Ah yeah, that can happen. Your log seems normal -- you probably just weren't connected to the network yet while Windows tried to access the file system.  Sorry for the scare!


Filter vector search results in separate temporary context to reduce main context size

What do you mean?

@FreePhoenix888 I mean we can make not one, but two requests to GPT-4 for single message. The first request will filter data we got from vector search, and the second request will use that filtered data to answer user's request. This task does not have high priority and can be done in the fork of that repository. The only effect from this task it reduced size of each message in the context. That means we can send history of messages to GPT-4. At the moment we get a lot of results from vector search, and right now bot supports only history/context that contains single message. Completion of this task will enable users to make continuous conversations with a bot. For example, to clarify details of the case in each next message.


Added signing and verification workflows

Summary

Added signing and verification workflows
Added detailed steps for signature verification

Added certificate requirements
Added certificate revocation

Important call-outs

In verification, we are evaluating timestamp(if present) irrespective of whether the signing certificate is expired or not.

IMO if a user has added a timestamp to the signature then they want the verification system to use that timestamp.
Also, always evaluating timestamp(if present) avoid modes. e.g., if the timestamp is present but it's corrupted then the verification will continue to pass until the signing certificate hasn't expired but when the signing certificate expires, verification will start failing.

During signature verification, we don’t support multiple certificate chains leading to multiple roots. If multiple certificate chains are leading to trusted roots, Notary v2 randomly picks one(usually, the one which is encountered first).
Notary v2 doesn’t support building certificate chain by retrieving certificates from locations specified in the authority information access extension (AIA).

HackmdDoc: https://hackmd.io/@pritesh/signing-verfication-workflow
Signed-off-by: Pritesh Bandi<EMAIL_ADDRESS>

LGTM!


Reason Language Server

Hey there,
I'd like to get Reason language server in here as well - are there steps I should follow besides looking at the current PR?
https://github.com/jaredly/reason-language-server
Thanks!

If you have experience with the LSP, then use your best judgement to come up with defaults for the LSP.
Things to consider:

root_dir pattern
available settings for configuration
offset_encoding
commands to add support for
Installation instructions or usage notes

For all of those things, there's an existing server which can be looked at for an example of how you could do it, so look at the existing PR and the other servers under nvim_lsp and give it a shot. It's made to be easy even if you don't necessarily know Lua.

Send a PR. See other PRs for examples.


added .ruby-version to .gitignore

Added .ruby-version to .gitignore so it is not included in version management.
Now, you can use any .ruby-version file to manage your environment ruby version without conflict.

@sergio-ocon Thanks for the PR.  Sorry, I forgot to mention, you can put [ci skip] anywhere in your commit message (last line of the commit message is usually good) so you don't have to wait for travis to pass the PR.  We don't skip CI unless it's something like this where we're not modifying code/tests.  See: http://docs.travis-ci.com/user/customizing-the-build/#Skipping-a-build

Travis failure is unrelate and fixed upstream, so merging...


Not working under windows

Output
Check for added large files..............................................Passed
Check docstring is first.................................................Passed
Check JSON...............................................................Passed
Check Yaml...............................................................Passed
Debug Statements (Python)................................................Passed
Fix python encoding pragma...............................................Passed
pyupgrade................................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

flake8.plugins.manager    MainProcess     55 INFO     Loading entry-points for "flake8.extension".
flake8.plugins.manager    MainProcess     63 INFO     Loading entry-points for "flake8.report".
flake8.plugins.manager    MainProcess     69 INFO     Loading plugin "F" from entry-point.
flake8.plugins.manager    MainProcess    114 INFO     Loading plugin "pycodestyle.ambiguous_identifier" from entry-point.
flake8.plugins.manager    MainProcess    118 INFO     Loading plugin "pycodestyle.bare_except" from entry-point.
flake8.plugins.manager    MainProcess    118 INFO     Loading plugin "pycodestyle.blank_lines" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.break_after_binary_operator" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.break_before_binary_operator" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.comparison_negative" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.comparison_to_singleton" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.comparison_type" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.compound_statements" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.continued_indentation" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.explicit_line_join" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.extraneous_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.imports_on_separate_lines" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.indentation" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.maximum_doc_length" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.maximum_line_length" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.missing_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.missing_whitespace_after_import_keyword" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.missing_whitespace_around_operator" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.module_imports_on_top_of_file" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.python_3000_async_await_keywords" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.python_3000_backticks" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.python_3000_has_key" from entry-point.
flake8.plugins.manager    MainProcess    119 INFO     Loading plugin "pycodestyle.python_3000_invalid_escape_sequence" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.python_3000_not_equal" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.python_3000_raise_comma" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.tabs_obsolete" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.tabs_or_spaces" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.trailing_blank_lines" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.trailing_whitespace" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.whitespace_around_comma" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.whitespace_around_keywords" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.whitespace_around_named_parameter_equals" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.whitespace_around_operator" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.whitespace_before_comment" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "pycodestyle.whitespace_before_parameters" from entry-point.
flake8.plugins.manager    MainProcess    120 INFO     Loading plugin "ASN" from entry-point.
flake8.plugins.manager    MainProcess    143 INFO     Loading plugin "C90" from entry-point.
flake8.plugins.manager    MainProcess    144 INFO     Loading plugin "default" from entry-point.
flake8.plugins.manager    MainProcess    146 INFO     Loading plugin "pylint" from entry-point.
flake8.plugins.manager    MainProcess    146 INFO     Loading plugin "quiet-filename" from entry-point.
flake8.plugins.manager    MainProcess    146 INFO     Loading plugin "quiet-nothing" from entry-point.
flake8.checker            MainProcess    147 WARNING  The --jobs option is not available on Windows due to a bug (https://bugs.python.org/issue27649) in Python 2.7.11+ and 3.3+. We have detected that you are running an unsupported version of Python on Windows. Igno
ring --jobs arguments.
flake8.checker            MainProcess    148 INFO     Making checkers
flake8.checker            MainProcess    161 INFO     Checking 40 files
flake8.checker            MainProcess    413 CRITICAL Plugin F raised an unexpected exception
Traceback (most recent call last):
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\flake8\checker.py", line 435, in run_check
    return plugin["plugin"](**arguments)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\flake8\plugins\pyflakes.py", line 90, in __init__
    super(FlakesChecker, self).__init__(
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 673, in __init__
    self.runDeferred(self._deferredFunctions)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 710, in runDeferred
    handler()
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1474, in runFunction
    self.handleChildren(node, omit='decorator_list')
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1073, in handleChildren
    self.handleNode(node, tree)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1120, in handleNode
    handler(node)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1073, in handleChildren
    self.handleNode(node, tree)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1120, in handleNode
    handler(node)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1073, in handleChildren
    self.handleNode(node, tree)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1120, in handleNode
    handler(node)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1073, in handleChildren
    self.handleNode(node, tree)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1120, in handleNode
    handler(node)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1073, in handleChildren
    self.handleNode(node, tree)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 1119, in handleNode
    handler = self.getNodeHandler(node.__class__)
  File "c:\users\asus\.cache\pre-commit\repou4_z9jh9\py_env-python3.8\lib\site-packages\pyflakes\checker.py", line 909, in getNodeHandler
    self._nodeHandlers[node_class] = handler = getattr(self, nodeType)
AttributeError: 'FlakesChecker' object has no attribute 'NAMEDEXPR'
flake8.main.application   MainProcess    430 INFO     Finished running
flake8.main.application   MainProcess    430 INFO     Reporting errors
flake8.main.application   MainProcess    431 INFO     Found a total of 15 violations and reported 4
"pyflakes" failed during execution due to "'FlakesChecker' object has no attribute 'NAMEDEXPR'"
Run flake8 with greater verbosity to see more details
integrations_with_exchanges/models/base.py:152:31: E203 whitespace before ':'
integrations_with_exchanges/models/base.py:152:32: E231 missing whitespace after ':'
integrations_with_exchanges/models/base.py:246:27: E203 whitespace before ':'
integrations_with_exchanges/models/base.py:246:28: E231 missing whitespace after ':'

mypy.....................................................................Passed

.pre-commit-config.yml
  - repo: https://gitlab.com/pycqa/flake8
    rev: 3.7.8
    hooks:
      - id: flake8
        additional_dependencies: [flake8-walrus]

that's a crash in pyflakes, not in my plugin -- you're looking for https://github.com/PyCQA/pyflakes/pull/457


error 'dummy': objectconst must be initialized in config.cpp

I have a problem with this "dummy" in config.cpp, it always happens when I put these features to save in config: https://prnt.sc/18ukla9
this is the error: https://prnt.sc/18ukpd3

Burro do karalho

Burro do karalho

Entrosa n mlk esquisito


Issue with bigtiff exported image stacks

If I export large 2D TIFF images with the bigtiff option set to True using imageio in Python, I get FormatError("TIFF signature invalid.") in n5gest when importing. Is this an issue of the upstream TIFF library or should bigtiff be supported and its something else?

The upstream TIFF library does not yet support bigtiff (image-rs/image-tiff#3). TIFF is a minefield of a million formats masquerading as one.
Since PNG doesn't have the 32-bit offset/4GB issue, have you tried importing that way since it should support images up to 2^31 * 2^31? I know there a few issues with PNG right now (can scramble decoding, no 16-bpc support), but I have PRs for all of these upstream and will be making a new n5gest release when they land.

Yes, I can use PNGs for now and this works, thanks for the hint.
Offtopic question: Is there a way to skip/discard empty (all 0) 2d regions/3d blocks from writing? Would this be difficult to add as an option? This feature would be quite helpful if you are dealing with data with a lot of black area around the actual data content.

It wouldn't be difficult to add. It's a bit ambiguous with N5 because there's no spec-blessed fill value with which to detect "empty" regions. Since we're currently planning to switch to the Zarr interface anyway and exposing that over N5 datasets, I could go ahead and add it as a special case since I should be better supported later.

It would be useful to me to have this as an option.
Do you plan to change the interface of pyn5 to be more zarr-like, or supporting N5 datasets in zarr? Where may I follow these developments? Thanks.

Do you plan to change the interface of pyn5 to be more zarr-like, or supporting N5 datasets in zarr?

Changing pyn5 to be more zarr-like seems likely because pyn5 is mostly concerned with presenting a numpy-like interface, for which the block-header model of n5 is already superfluous. But it's a decision more likely to be made by @clbarnes or @pattonw before I get that deep in the stack. I'd like pyn5 (and the rust library behind it) to be as seamless as cloud-volume but with zarr, N5, neuroglancer chunk (volume/compressed seg), and KLB (read only) backends, and that's where my roadmap goes.

Where may I follow these developments?

The planning has been private to our lab so far, but not out of any secrecy. Things will probably start moving when I find weekend time to prototype the zarr implementation (which I project at 1.5 days), which means whenever I get done with my current weekend projects improving 16-bit image support in Rust. I'll ping you when the zarr repository goes up.

Certainly my contributions to pyn5 have had the goal of API compatibility with h5py. In encouraging the adoption of block formats (and switching over my own stuff), having it as a drop-in replacement

@unidesigner zarr-python has (experimental) N5 support; its third python implementation...
I'd need to read a bit more of zarr-python's codebase to see if this is feasible but if we were to pursue an API like that library, it would be nice if it were possible to make drop-in classes which could actually be used with the existing zarr-python. The way its stores work would allow this, although I'm not sure the data IO code would allow easy delegation to an underlying library.

This is implemented (suboptimally) in dev branch now, so one can do
cargo run -- import my.n5 dataset test3 '{"type": "gzip"}' 64,64,64 data/*.tif --elide_fill_value 0

and 0 blocks will be omitted. Open to suggestions for a better name.

Thanks, @aschampion - this will be very useful to me.

@aschampion - I just noticed that the n5-spark tools also do not seem to support bigtiff images as input for the conversion to n5 see issue. I wonder how they are converting large XY images to n5...

I'm adding BigTIFF support to the image-rs/image-tiff library, but it's a very low priority thing for me so will probably take awhile since I have a few other PRs to land first, then have to wait for releases to trickle down to the image crate.
If this is something that's blocking you let me know and we can talk about how to get a patched version running sooner.

No worries, this is not urgent/blocking at all. I'm currently using the variant with compressed PNGs which works for my purposes, just maybe a bit slow for the compression/decompression step.


Stitching: The name ApplyPolicy was already registered by another type

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
I have a Gateway Service, using Stitching which sits in front of 3 downstream services.
I have Authorization Policies on these downstream services.
e.g descriptor.Authorize(Policies.CanAccessProducts);
I have also added a type GlobalSettings to the Gateway itself, it then stitches that Type.
If I add an Authorize call to the ObjectType Descriptor for GlobalSettings
e.g descriptor.Authorize(Policies.CanReadGlobalSettings);
I then get an error The name ApplyPolicy was already registered by another type.
https://hotchocolategraphql.slack.com/archives/CN3EZ03U1/p1628178524026600
Steps to reproduce

Create a gateway/stitching service
Add a type at the gateway and authorize it
Create a downstream service with a type and authorize it
stitch the downstream service into the gateway
Query for the gateway type

Relevant log output
HotChocolate.SchemaException: For more details look at the `Errors` property.

1. The name `ApplyPolicy` was already registered by another type. (HotChocolate.Types.EnumType<HotChocolate.AspNetCore.Authorization.ApplyPolicy>)

   at HotChocolate.Configuration.TypeRegistry.Register(NameString typeName, RegisteredType registeredType)
   at HotChocolate.Configuration.TypeInitializer.<>c__DisplayClass20_0.<CompleteNames>g__CompleteName|0(RegisteredType registeredType)
   at HotChocolate.Configuration.TypeInitializer.ProcessTypes(TypeDependencyKind kind, Func`2 action)
   at HotChocolate.Configuration.TypeInitializer.CompleteNames(Func`1 schemaResolver)
   at HotChocolate.Configuration.TypeInitializer.Initialize(Func`1 schemaResolver, IReadOnlySchemaOptions options)
   at HotChocolate.SchemaBuilder.Setup.InitializeTypes(SchemaBuilder builder, IDescriptorContext context, IReadOnlyList`1 types, LazySchema lazySchema)
   at HotChocolate.SchemaBuilder.Setup.Create(SchemaBuilder builder, LazySchema lazySchema, IDescriptorContext context)
   at HotChocolate.SchemaBuilder.Create(IDescriptorContext context)
   at HotChocolate.SchemaBuilder.HotChocolate.ISchemaBuilder.Create(IDescriptorContext context)
   at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaAsync(NameString schemaName, RequestExecutorSetup options, RequestExecutorOptions executorOptions, IServiceProvider serviceProvider, TypeModuleChangeMonitor typeModuleChangeMonitor, CancellationToken cancellationToken)
   at HotChocolate.Execution.RequestExecutorResolver.CreateSchemaServicesAsync(NameString schemaName, RequestExecutorSetup options, CancellationToken cancellationToken)
   at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorNoLockAsync(NameString schemaName, CancellationToken cancellationToken)
   at HotChocolate.Execution.RequestExecutorResolver.GetRequestExecutorAsync(NameString schemaName, CancellationToken cancellationToken)
   at HotChocolate.Execution.RequestExecutorProxy.GetRequestExecutorAsync(CancellationToken cancellationToken)
   at HotChocolate.AspNetCore.HttpPostMiddleware.HandleRequestAsync(HttpContext context, AllowedContentType contentType)
   at HotChocolate.AspNetCore.HttpPostMiddleware.InvokeAsync(HttpContext context)
   at HotChocolate.AspNetCore.WebSocketSubscriptionMiddleware.InvokeAsync(HttpContext context)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Sentry.AspNetCore.SentryMiddleware.InvokeAsync(HttpContext context)
   at Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware.InvokeAsync(HttpContext context)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

Additional Context?
No response
Product
Hot Chocolate
Version
12.0.0-rc.11

you just need to remove the auth declarations from the downstream services when merging the schema. This can be done with a directive merge rule.... essentially skip all incoming auth directive types. The merged schema will then use the auth directive from the gateway itself.

I have exactly the same problem. Is there any example on how to achieve that with a directive merge rule? Thx.

Answered in : https://github.com/ChilliCream/hotchocolate/discussions/4606
The solution:
Define a IDirectiveMergeHanlder:
 public class IgnoreAuthroizeDirectiveHanlder
        : IDirectiveMergeHandler
    {
        private readonly MergeDirectiveRuleDelegate _next;

        public IgnoreAuthroizeHanlder(MergeDirectiveRuleDelegate next)
        {
            _next = next;
        }

        public void Merge(
            ISchemaMergeContext context,
            IReadOnlyList<IDirectiveTypeInfo> directives)
        {
            IDirectiveTypeInfo? directive = directives.First();

            if (
                !directive.Definition.Name.Value.Equals(
                    "authorize",
                    StringComparison.InvariantCultureIgnoreCase))
            {
                _next(context, directives);
            }
        }
    }

Add it to the schema:
# Startup
services
  .AddGraphQLServer()
  .AddDirectiveMergeHandler<IgnoreAuthorizeDirectiveHandler>();

.IgnoreType("ApplyPolicy", "your schema")


ansible: Decommissioning of old solaris/x64 systems

Removes jck-equinix_esxi-solaris10u11-x64-1, jck-equinix_esxi-solaris10u11-x64-2 EF issue #2428 https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/2428
Signed-off-by: Pawel Stankiewicz<EMAIL_ADDRESS>
Checklist

[ x] commit message has one of the standard prefixes

Can this PR be merged?

/merge

/approve


Restart required after gcloud auth login

Use plugin without having authenticated
Error message shown indicating that gcloud auth login needs to be run
Open console, run gcloud auth login
Retry operation (without restarting RDCMan)

Expected: works
Actual: Same error message appears until restarted

https://github.com/GoogleCloudPlatform/iap-windows-rdc-plugin/pull/6


Shall we use Neuvector 5.3.0?

https://github.com/suse-edge/charts/blob/48dcba2d5ba553b8d23ee21384558de325f15e4d/charts/neuvector-core/2.6.6/values.yaml#L8

Also a diff from the original one https://github.com/neuvector/neuvector-helm/blob/master/charts/core/values.yaml with the one here just bring these changes:
controller:
  replicas: 1
  ranchersso:
    enabled: true
manager:
  enabled: false
cve:
  scanner:
    enabled: false
    replicas: 1
k3s:
  enabled: true
crdwebhook:
  enabled: false

Shall we just minify ours and refer to the original one for more elaborated changes?

I can send a PR to drop the charts here and instead add a README on how to deploy it using the official one. Is that right @hardys @agracey ?


Injecting middlewares into the handler

I would like to inject custom middlewares through service configuration, and I didn't understand how to do it with this library, even reading https://github.com/8p/GuzzleBundle/issues/21, https://github.com/8p/GuzzleBundle/pull/22 and https://github.com/8p/GuzzleBundle/issues/79
Once I didn't understood how to do it, I've started thinking how this bundle could provide it. It's the first time I'm working with this library, so let me know if there is a proper/better way to achieve what I want ;)
Exemple of usage:
I've a service named app.my_custom_middleware that implements __invoke() and do some stuff with the request instance, then ...
guzzle:
    clients:
        api:
            base_url: "http://api.domain.tld"
            plugin:
                custom:
                    -<EMAIL_ADDRESS>
... then GuzzleExtension::createHandler() would be able to load middleres from service container ...
class GuzzleExtension
{
    // ....

    protected function createHandler()
    {
        // ....

        if (isset($config['plugin'])){

            // ....

            if (isset($config['plugin']['custom']) {
                $names = (array) isset($config['plugin']['custom'];
                foreach ($names as $name) {
                    $expression = new Expression(sprintf('service("%s")', $name));
                    $handler->addMethodCall('push', [$expression]);
                }
            }
        }

        // ....
    }

    // ....
}

Does it make sense?

@renanbr PR #129 resolves your problem. With new plugin system you will be able to create your small plugins and to inject logic into handler. That's small example how to do it:
<?php

namespace Acme\Bundle\AcmeBundle;

use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class Extension extends Bundle implements EightPointsGuzzleBundlePlugin
{
    public function getPluginName(): string
    {
        return 'custom';
    }

    public function addConfiguration(ArrayNodeDefinition $pluginNode)
    {
        $pluginNode
            ->addDefaultsIfNotSet()
                ->children()
                ->scalarNode('service')->defaultNull()->end();
    }

    public function loadForClient(array $config, ContainerBuilder $container, string $clientName, Definition $handler)
    {
        if (isset($config['service']) && $config['service']) {
            // do manipulations with $handler
        }
    }

    public function load(array $configs, ContainerBuilder $container)
    {
        // No need to implement
    }
}


Feat: Add Feature section thumbnail icon

What does this PR do?
Adds the Feature section thumbnail icon
Screenshots (if applicable)

Related PRs and Issues
Resolves #19
Have you read the Contributing Guidelines?
yes

@VaibhavSaini19 Updates made


chore: use serde_json::preserve_order feature

I'm working on the terse lockfile and want an accurate before/after for benchmarking purposes (this feature should be enabled anyway in this crate because it's used downstream and in my upcoming PR it relies on this when transforming to the new format)

Oh, everything in here uses btreemap. I wasn't thinking.


Linguist configuration was added to .gitattributes

Fix #297
Hide unwanted files from the language stats.

🎉


Option for "DEFEFFERED INITIALLY DEFERRED" in schemas?

When I do something like:
table.integer('user_id').unsigned().index().references('id').inTable('users');
and then create a reference inside a transaction (a reference to a row created just before it in the same transaction). It fails unless I defer the foreign key with the 'initially deferred' option.
Do I need to alter my schemas manually like:
ALTER TABLE table_name
  ADD CONSTRAINT "constraint_name" FOREIGN KEY ("blah_id")
    REFERENCES "blahs"("id")
    ON UPDATE NO ACTION
    ON DELETE NO ACTION
    DEFERRABLE
    INITIALLY DEFERRED;

Or is there an easier way within Knex?

+1 have the same problem

here is the workaround I use currently:
https://gist.github.com/derMart/87e75fbd1fdca73d6d3cebf561ca3fc6
automatically alters all foreign key constraints to be deferrable

Thank you @derMart
I'll dig into knex and see if I can create a PR after Christmas if there isn't one by then.

+1, this is a real issue in sqlite where we can't alter constraints after creating them.

In the mean time here's a greatly simplified version of what @derMart posted without lodash and all that nesting:
https://gist.github.com/scf4/03780af508218200a590959d8258f61c

Is there any chance to have a Knex native way to set "DEFERRABLE INITIALLY DEFERRED" on a table with foreign key constraints ?
Time flies but this quick feature would still come in handy today...

I need this feature too

Closing old issue with low activity. The feature request doesn't meet current criteria of having API proposal etc.
If someone still would like to design this, please open a new feature request.


Is it possiable to use Command Mode -CC

In tmux I've been using Command Mode but it doesn't behave well with wemux.
Setup:

macOS running iterm2 with tmux integration

Replicate

open iterm2
ssh example.com -t 'wemux -CC'

Once logged in this way I appear to be able to see the current server.
$ wemux l
Currently active wemux servers:
  1. wemux    <- current server

I can not see that I'm attached.
$ wemux u
Users connected to 'wemux':
  1.

If I use ssh example.com -t 'wemux' the integration is lost but wemux works as expected.
$ wemux u
Users connected to 'wemux':
  1. WOC\atlad003

No comment on this in 2 years?


BEMPP prototype

Top level card to capture requirements for BEMPP prototype milestone.

Initial notes from review session
Note: Timo was not present, so these represent the best initial guess of the RSE team.


Accessing an external API

I've just finished my first website and now moved to trying to learn react as I want to incorporate Js front end frameworks into my site. I've started doing it with Laravel as I've invested a fair bit of time into PHP and a lot of the jobs in my area are php based.
Everything has been going great until I've come across tutorials that want to access some external API's.
I came across one the other day that wanted me to access the pixabay api and had trouble with my requests being blocked by the cors policy. After many hours of googling and tinkering, I installed the barryVDH/laravel-cors module which also didn't work to my frustration. Eventually I came across the problem which was this line of code located in the bootstrap.js file laravel provides:
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
To get around this I created an instance of axios in another js file that I could call on that got rid of this header:
import axios from 'axios';

// Enables a axios without CSRF Token for cross domain requests that cause issues
let extAxios = axios.create();
delete extAxios.defaults.headers.common['X-Requested-With'];

export default extAxios;

This worked perfectly and enabled me to access the API with no issues so I thought I'd cracked how to access external APIs.
Fast forward to yesterday, I've got the same issue with another API but my old solution is not working and I'm absolutely lost on what to do.
The Api in question this time is the musixmatch API and I for the life of me can't get this to work nor can find any solution on the net.
So as before I have barryVDH/laravel-cors set up in my application as stated by their github page:
In my app.php we have:
        /*
         * Laravel Framework Service Providers...
         */

        ...

        Barryvdh\Cors\ServiceProvider::class,

In my kernel.php we have:
        protected $middleware = [

        ...

        \Barryvdh\Cors\HandleCors::class,
    ];

I'm using the same extAxios instance as last time:
extAxios(
    'https://api.musixmatch.com/ws/1.1/chart.artists.get?page=1&page_size=3&country=it&apikey=MY_API_KEY'
)
.then(res => console.log(res.data))
.catch(err => console.log(err));

Upon sending the request I get the following errors in my chrome console:
Access to XMLHttpRequest at 'https://api.musixmatch.com/ws/1.1/chart.artists.get?page=1&page_size=3&country=it&apikey=MY_API_KEY' from origin 'http://current-dev.test' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Error: Network Error
at createError (index.js:745)
at XMLHttpRequest.handleError (index.js:280)
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.musixmatch.com/ws/1.1/chart.artists.get?page=1&page_size=3&country=it&apikey=MY_API_KEY with MIME type text/plain. See https://www.chromestatus.com/feature/5629709824032768 for more details.
If i make the request from my my web browser then it works fine and I get a json response.
I'm at a loss with this and I'm not sure what's happening to cause this so any help would really be appreciated as I was hoping to use laravel as a base to build full stack applications from now on.

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.

Were you able to find a solution @iBeef?


Tuneup malware report

Added malware report (#22375) only relevant if malware caveat is accepted (#22383)

Should be of the form
caveats do
    malware(radar_number)
end

(caveats go under app/binary stanzas)

Thank you @vitorgalvao I have made the recommended changes.

Thank you. Now on hold until we finish discussing and merge https://github.com/caskroom/homebrew-cask/pull/22383.

There was a pull request template when you submitted. It must be filled.
If you were not presented a template, you may have submitted via a CLI tool (likely hub). It that was the case, you may wish to see if the tool has a way to let you use the template (hub is working on it).
In either case, please refer to the template and update your comment.
In this case, lack of running the style command is breaking the build.

@decorate This just needed a simple fix to correct the failing build, and for us to have the record of the template. Will you submit again?

Thank you for the contribution. It needed some fixes, so they were made in 8ab0616293eb9128a46e478afdb726a0aa8b811b. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


WELD-2539 WELD-2497 Introduce getContexts() and getWeldAlterableContexts() meth…

…ods. Introduce WeldAlterableContext to allow for context propagation

I am merging this and cutting an Alpha release so that we can update Weld core and play around with the API.
Hence the state in this PR is not to be considered final and suggestions are still welcome :)


Require subr-x and ivy.

Sorry for the nit, but this package does not work properly when installed via the Guix package manager unless the (require 'subr-x) statement is in the file.

Friendly ping @gilbertw1.

Merged


Exception logging improvements

Bug: fix missing log argument for postgresql repository setup

logging: add exception info to error/warn messages.
Error tracing systems like Sentry produce much more useful events with exception contexts. While these are automatically associated for logger.exception() calls, that doesn't happen for other log levels. Change: Where a .warn()/.error() log call is associated with an Exception object, pass it to the logger.
Implications: in some log configurations this will log tracebacks more often

Use raise ... from ... syntax when re-raising exceptions, so cause is propagated. Again, helps error tracing.

Contributions and Licensing
(as per https://github.com/geopython/pycsw/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

[x] I'd like to contribute code to pycsw. I confirm that my contributions to pycsw will be compatible with the pycsw license guidelines at the time of contribution.
[ ] I have already previously agreed to the pycsw Contributions and Licensing Guidelines

Thanks @rcoup!


Power amplifier is turned on when power is supplied

The power amplifier is enabled with a low voltage. Perhaps this should
be inverted.

This isn't a problem. Since the FPGA IO pins are high-Z before configuration, the PA will be disabled by default. However, since the FPGA is configured to read its bitstream (master SPI) from the onboard eeprom (w25q32), ensure this doesn't set the pa_en_n_o pin to 0, in which case the PA will be on soon after power is supplied.


published content filter in relation widget applying to same-site content

Steps to Reproduce

Create a page without publishing
Create a menu item and search for your page to link as an internal item

Expected Behavior
The page shows up to select
Actual Behavior
It does not

ah! in the relation widget we're always applying the published filter, but we should be conditionally doing so only when cross-site or global is set on the field


MAINT: Update nesting check

Clean up our import nesting test and add other optional dependencies to the list. For @GuillaumeFavelier and #6731

(Should wait for #6818)


Minecraft crashes when I connect an Energy Conduit to a TE4 Energy Cell

As the title says, whenever I connect an Energy Conduit to a Thermal Expansion 4 1.7.10 Energy Cell ( any of them ) the game crashes! I hope that you can find the source of the problem and fix it soon.

Crash-Report, Logs, Versions?

See #1584 and many many others


Repo Script minimize

Commit: https://github.com/MrUnknownDE/linux-script/commit/1dbe11a11d60e507c34bbca3e8319d45a10941eb


Wallet: Implementing Multi-wallet support (dev tracker)

Multi-wallet support is currently implemented on the daemon and/or RaptoreumCore CLI interface.
This Issue is for keeping track of additional changes and/or discussion of Multi-Wallet support.
Outline:

[x] Implement CLI support
[ ] Implement GUI support
[ ] Add documentation to repo about commands
[ ] Add documentation to Raptoreum Docs (docs.raptoreum.com)

Please link past and presently pending issues and/or pull requests relating to this feature!
@Raptor3um (Charlie) this would be a good candidate for moving into a Project with a filter view, as there will be multiple PR's and/or issues regarding implementation/bugs across more than one repository.

https://github.com/Raptor3um/raptoreum/commit/858a64f23d0802b0f68406912e9af914f457e80d


Update Migration Tests to include NaN Initial Regrets Test

Purpose of Changes and their Description
In #579 @xmariachi asked for someone to write migration tests that actually check that Initial Regrets set to NaN are correctly migrated by the 0.4.1 test. I went and wrote that test, then updated the 0.4.0 tests that had been wholly copied over and not edited at all, to actually test the things 0.4.1 wants to test (in fact they were not even testing the 0.4.1 migration before, they were importing the 0.4.0 migration and testing that migation instead)
Link(s) to Ticket(s) or Issue(s) resolved by this PR
#579
Are these changes tested and documented?
This PR introduces four new tests for the 0.4.1 migration: TestMigratedTopicWithNoProblems TestMigratedTopicWithNaNInitialRegret TestNotMigratedTopic and TestNotMigratedTopicWithNaNInitialRegret
Whether something was "migrated" or "not migrated" has to do with whether the topic was successfully migrated during the 0.4.0 migration.
No changes to documentation
Not necessary to edit changelog, as this is meant to be merged as part of #579.

❤
FYI:
My unit test request was more for the actual code cases than for the migration.
Ie complex tests that go beyond the execution of one function, but more complex tests that assert condition that last longer than a block.
Both are important ofc, but unit test last and define behaviour expectations, migration does not.
Ty

❤
FYI:
My unit test request was more for the actual code cases than for the migration.
Ie complex tests that go beyond the execution of one function, but more complex tests that assert conditions that last longer than a block.
Both are important ofc, but code unit tests "last" and define behavioural expectations, migration does not.
Ty for reading ;)


CloudFormation: Deploying the solution as a middleware has an error

Describe the bug
Followed - Step 2: Deploy the solution as a middleware. But AWS CloudFormation Console in the Status column shows ROLLBACK_COMPLETE
In the events tab, the error happens at
SdDBTrainStackNestedStackSdDBTrainStackNestedStackResource2C42E66E - CREATE_FAILED - Embedded stack arn:aws:cloudformation:us-east-1:215742730356:stack/stable-diffusion-aws-SdDBTrainStackNestedStackSdDBTrainStackNestedStackResource2C42E66-RE0Y9U160BN5/58562390-588c-11ee-9257-0a6f9734f639 was not successfully created: The following resource(s) failed to create: [aigcuploadckptupload2D185426].
Tried with account that had deployed the middleware before but still getting
The following resource(s) failed to create: [aigcuploadckptupload2D185426]
Expected Behavior
You can view the status of the stack in the AWS CloudFormation Console in the Status column. You should receive a CREATE_COMPLETE status in approximately 15 minutes.
Current Behavior
SdDBTrainStackNestedStackSdDBTrainStackNestedStackResource2C42E66E - CREATE_FAILED - Embedded stack arn:aws:cloudformation:us-east-1:215742730356:stack/stable-diffusion-aws-SdDBTrainStackNestedStackSdDBTrainStackNestedStackResource2C42E66-RE0Y9U160BN5/58562390-588c-11ee-9257-0a6f9734f639 was not successfully created: The following resource(s) failed to create: [aigcuploadckptupload2D185426].
Reproduction Steps
Follow Step 1 and 2 and the error happens in step 2
https://awslabs.github.io/stable-diffusion-aws-extension/en/deployment/deployment/
Possible Solution
No response
Additional Information/Context
No response
Solution Version
0
AWS Region. e.g., us-east-1
us-east-1
Other information
No response

This is the error that the aigc-upload-ckpt-upload-checkpoint function is running into which causes the above error
Resource handler returned message: "'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008 (Service: Lambda, Status Code: 400, Request ID: 4819f536-b585-441e-a9e7-a26001bee4b1)" (RequestToken: 16d77ddb-6c9d-c6df-8614-a999a762c013, HandlerErrorCode: InvalidRequest)

The initial memory size of lambda was 3GB, please consider to raise the limit, e.g 10240 MB.


Add temp banner to advertise the Airborne & Field Data Workshop

ADMG is holding a workshop in April. The team would like a temporary banner to promote this. It should be the same as then banner that was released for the non-beta release.
Acceptance criteria

Yellow banner at the top of homepage
Banner appears when you first navigate to site, but users are able to 'x' to close it
Banner should be able to be easily removed after session
Text:

Please join us online 23-24 April for the 2024 NASA Airborne & Field Data Workshop!  For more information and to register (free), click here!

https://github.com/NASA-IMPACT/admg-casei/pull/613#event-12172414591

In staging:


MQTT Server URL problem

It seems that the parameter --url or -u is ignored. See startup debug:
hue2mqtt -u hqtt://<IP_ADDRESS> -v debug -n hue2mqtt 2018-03-08 07:17:12.051 <info>  hue2mqtt 1.1.1 starting 2018-03-08 07:17:12.072 <info>  mqtt trying to connect mqtt://<IP_ADDRESS>

Sorry for the confusion. Documentation was wrong. Fixed that with v1.2.0


Some oversights in v1.0

scroll bar width isn't exposed to PDAConfig
scrollAmount usage isn't consistently exposed to PDAConfig
PDA font is non-free
VM aborts and warnings: https://forum.zdoom.org/viewtopic.php?p=1171961#p1171961

Will edit as I find more

VM aborts and warnings fixed with https://github.com/nashmuhandes/PDA_Starter_Kit/commit/c78aee3902e2707fbc3658e3f33271f7329dc1b8 and https://github.com/nashmuhandes/PDA_Starter_Kit/commit/bc2c99a11fe40d623c736788660152818f98a2c9

scrollAmount issues address with https://github.com/nashmuhandes/PDA_Starter_Kit/commit/866f3a995b774b694cf4a06b8f01c0d715be6b1a

Scrollbar width exposed to PDA config file with https://github.com/nashmuhandes/PDA_Starter_Kit/commit/55a671c67c173a05ca8dda8c00f83ef81d9b432a

Font issue addressed with https://github.com/nashmuhandes/PDA_Starter_Kit/commit/d9888c321135f1a22dd366f9788c05c5563ba3e6


Add discussions tab to community page

Resolves #584
Right now the preview doesn't work since it needs to link a different contract first
PREVIEW
This issue is blocked on the contract side by PR: #88
Acceptance Criteria
DevHub community page requirements:

[x] There is a new Discussions tab, which is the second tab that users see when they land on a given community
[x]  All users see a share update input text area field (e.g. What's happening)
[x]  The share update input text area field contains all the same elements from the near.org, including supporting markdown, image update, as well as the preview.
[x]  Users can type their update, preview it, upload image, and click post. Upon post, the update shows up in the discussions section with the user's profile/name.
[ ]  The discussion feed is sorted by latest, but users can also filter by recent comments
[x]  Users can click Load More to load additional posts
[x]  Users can interact with discussions posts (like, add comment, copy link to post, or share).
[ ]  Users can report posts (clicking the three dots). Note: @ailisp will handle this part in a separate ticket. Please check in with him.

near.org and near social requirements:

[x] Any discussion posted on DevHub communities will also show up on near.org and near social gateways

Backend storage requirements:

[x]  Use Social DB and follow near.org conventions-

For now we use mob.near/widget/MainPage.N.Feed. Pagoda team promised to push the updated Feed component that supports reshares next week, you can use Evgeny's (mob.near) feed for now and we will just swap it with the same (Pagoda's) as on the announcements page later


NuGet 4.0 RTM release notes and Known issues

Will go live on 3/8

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/Release-Notes/Known-Issues.md
:white_check_mark:Succeeded

docs/Release-Notes/NuGet-4.0-RTM.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/Release-Notes/Known-Issues.md
:white_check_mark:Succeeded

docs/Release-Notes/NuGet-4.0-RTM.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


v4.31.0 released but not available in registry.terraform.io

Confirmation

[X] This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
[X] I have searched the issue tracker and my issue isn't already found.
[X] I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version
Initializing provider plugins...

Finding cloudflare/cloudflare versions matching "4.31.0"...
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider
│ cloudflare/cloudflare: no available releases match the given constraints
│ 4.31.0
╵

Affected resource(s)
N/A
Terraform configuration files
terraform {
  required_providers {
    cloudflare = {
      source = "cloudflare/cloudflare"
      version = "4.31.0"
    }
  }
}

provider "cloudflare" {
  # Configuration options
}

Link to debug output
N/A
Panic output
N/A
Expected output
Latest according to https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs is v4.30.0, should be v4.31.0.
Actual output
N/A
Steps to reproduce
N/A
Additional factoids
No response
References
No response

thanks - this is already sitting with hashicorp to resolve. there is nothing further we can do here.

has been fixed in the meantime by Hashicorp, thanks!

@MilanNXT I'd assume something is wrong in provider constraints in your case, is it possible that you have multiple provider configs conflicting as to which version of the provider should be used (e.g multiple module calls)?


Paella 7: Hide/Show timeline bar on live events

Paella player used to start playing live streams from the beginning of the buffer, so in case the stream had a time buffer, paella started playing from the beginning of the buffer and not from the current moment.
This PR updates paella to version 1.46.1 that fixes that bug and also adds a property to the configuration file that allows to show or hide the time bar in live events.
Your pull request should…

[x] have a concise title
[ ] close an accompanying issue if one exists
[x] be against the correct branch
[ ] include migration scripts and documentation, if appropriate
[ ] pass automated tests
[x] have a clean commit history
[x] have proper commit messages (title and body) for all commits

I'm gonna roll this out on our testing system in the next few days, but here are my first thoughts:

As far as I can tell this doesn't actually update the player version (maybe because that already happened), just adds a new config option, right?

paella-core needs tu be updated to 1.46.1, but dependabot updated it in commit https://github.com/opencast/opencast/commit/d48978491b1b0d2973fa5baedeb6bab46c5a16fa

I think we want to aim this at least at OC 15 (which isn't out yet, but will be soon), maybe even OC 14, since this is basically a fix for people who have live streams where you can go back in time.

Should I rebase to r/15.x? r/14.x?

Let's aim this at r/15.x for now. If somebody complains, we can still backport this later.


ublk can't get sqe

I am trying to use ublk on an AWS EC2 instance.
The OS image I use is Ubuntu 22.04 LTS with the kernel version=6.7.6 (ubuntu image provided by AWS does not have ublk_drv module, so I updated the kernel version).
ubuntu@ip-172-31-86-113:~/ubdsrv$ uname -r
6.7.6-060706-generic

I installed liburing and ublksrv from source and did modprobe for ublk_drv.
However, it seems ublk cannot get sqe from the control ring.
ubuntu@ip-172-31-86-113:~/ubdsrv$ sudo ublk features
can't get sqe ret -22

Any ideas on what could possibly go wrong?

ublk needs IORING_SETUP_SQE128 which is supported since liburing 2.2, can you check what your liburing version is?
Thanks,

Another reason could be that io_uring doesn't work in your system,
and you can check if that is the case by:
cd liburing
./configure
make
./test/nop
If ./test/nop doesn't complain, io_uring should work in your system.

ublk needs IORING_SETUP_SQE128 which is supported since liburing 2.2, can you check what your liburing version is?

I used to use the master branch of liburing, but now I switched to 2.5 release

Another reason could be that io_uring doesn't work in your system,
and you can check if that is the case by:
cd liburing
./configure
make
./test/nop
If ./test/nop doesn't complain, io_uring should work in your system.

nop.t does not complain
ubuntu@ip-172-31-94-195:~/liburing-liburing-2.5$ ./test/nop.t

The exact steps I followed are listed below:
wget https://github.com/axboe/liburing/archive/refs/tags/liburing-2.5.tar.gz
tar xvf liburing-2.5.tar.gz
cd liburing-liburing-2.5
./configure
make
./test/nop.t
sudo make install
cd ..

git clone https://github.com/ming1/ubdsrv.git
cd ubdsrv
autoreconf -i
./configure
make
sudo make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
sudo ldconfig

sudo modprobe ublk_drv
sudo ublk features

It still shows me can't get sqe ret -22

I tried to run the full test suite of liburing, and noticed a few failures, could this be related?
ubuntu@ip-172-31-94-195:~/liburing-liburing-2.5$ sudo make runtests
make[1]: Entering directory '/home/ubuntu/liburing-liburing-2.5/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/liburing-liburing-2.5/src'
make[1]: Entering directory '/home/ubuntu/liburing-liburing-2.5/test'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/liburing-liburing-2.5/test'
make[1]: Entering directory '/home/ubuntu/liburing-liburing-2.5/examples'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/liburing-liburing-2.5/examples'
make[1]: Entering directory '/home/ubuntu/liburing-liburing-2.5/test'
Running test 232c93d07b74.t                                         4 sec [4]
Running test 35fa71a030ca.t                                         5 sec [5]
Running test 500f9fbadef8.t                                         3 sec [3]
Running test 7ad0e4b2f83c.t                                         1 sec [1]
Running test 8a9973408177.t                                         0 sec [0]
Running test 917257daa0fe.t                                         0 sec [0]
Running test a0908ae19763.t                                         0 sec [0]
Running test a4c0b3decb33.t                                         6 sec [6]
Running test accept.t                                               1 sec [1]
Running test accept-link.t                                          0 sec [0]
Running test accept-reuse.t                                         0 sec [0]
Running test accept-test.t                                          0 sec [0]
Running test across-fork.t                                          0 sec [0]
Running test b19062a56726.t                                         0 sec [0]
Running test b5837bd5311d.t                                         0 sec [0]
Running test buf-ring.t                                             0 sec [0]
Running test ce593a6c480a.t                                         1 sec [1]
Running test close-opath.t                                          0 sec [0]
Running test connect.t                                              0 sec [0]
Running test connect-rep.t                                          0 sec [0]
Running test coredump.t                                             0 sec [0]
Running test cq-full.t                                              0 sec [0]
Running test cq-overflow.t                                          11 sec [11]
Running test cq-peek-batch.t                                        0 sec [0]
Running test cq-ready.t                                             0 sec [0]
Running test cq-size.t                                              0 sec [0]
Running test d4ae271dfaae.t                                         0 sec [0]
Running test d77a67ed5f27.t                                         0 sec [0]
Running test defer.t                                                3 sec [3]
Running test defer-taskrun.t                                        0 sec [0]
Running test double-poll-crash.t                                    0 sec [0]
Running test drop-submit.t                                          0 sec [0]
Running test eeed8b54e0df.t                                         0 sec [0]
Running test empty-eownerdead.t                                     0 sec [0]
Running test eploop.t                                               0 sec [0]
Running test eventfd.t                                              0 sec [0]
Running test eventfd-disable.t                                      0 sec [0]
Running test eventfd-reg.t                                          0 sec [0]
Running test eventfd-ring.t                                         0 sec [0]
Running test evloop.t                                               0 sec [0]
Running test exec-target.t                                          0 sec [0]
Running test exit-no-cleanup.t                                      0 sec [0]
Running test fadvise.t                                              0 sec [0]
Running test fallocate.t                                            0 sec [0]
Running test fc2a85cb02ef.t                                         Test needs failslab/fail_futex/fail_page_alloc enabled, skipped
Skipped
Running test fd-pass.t                                              0 sec [0]
Running test file-register.t                                        3 sec [3]
Running test files-exit-hang-poll.t                                 1 sec [1]
Running test files-exit-hang-timeout.t                              1 sec [1]
Running test file-update.t                                          0 sec [0]
Running test file-verify.t                                          7 sec [7]
Running test fixed-buf-iter.t                                       0 sec [0]
Running test fixed-link.t                                           0 sec [0]
Running test fixed-reuse.t                                          0 sec [0]
Running test fpos.t                                                 0 sec [1]
Running test fsnotify.t                                             0 sec
Running test fsync.t                                                0 sec [0]
Running test hardlink.t                                             0 sec [0]
Running test io-cancel.t                                            2 sec [2]
Running test iopoll.t                                               0 sec [0]
Running test iopoll-leak.t                                          0 sec [0]
Running test iopoll-overflow.t                                      1 sec [1]
Running test io_uring_enter.t                                       0 sec [0]
Running test io_uring_passthrough.t                                 Skipped
Running test io_uring_register.t                                    0 sec [0]
Running test io_uring_setup.t                                       0 sec [0]
Running test lfs-openat.t                                           0 sec [0]
Running test lfs-openat-write.t                                     0 sec [0]
Running test link.t                                                 0 sec [0]
Running test link_drain.t                                           1 sec [0]
Running test link-timeout.t                                         1 sec [2]
Running test madvise.t                                              0 sec [0]
Running test mkdir.t                                                0 sec [0]
Running test msg-ring.t                                             0 sec [0]
Running test msg-ring-flags.t                                       0 sec [0]
Running test msg-ring-overflow.t                                    0 sec [0]
Running test multicqes_drain.t                                      21 sec [20]
Running test no-mmap-inval.t                                        Got 0, wanted -EFAULT
Test no-mmap-inval.t failed with ret 1
Running test nolibc.t                                               0 sec [0]
Running test nop-all-sizes.t                                        0 sec [0]
Running test nop.t                                                  0 sec [1]
Running test openat2.t                                              0 sec [0]
Running test open-close.t                                           0 sec [0]
Running test open-direct-link.t                                     0 sec [0]
Running test open-direct-pick.t                                     0 sec [0]
Running test personality.t                                          0 sec [0]
Running test pipe-bug.t                                             0 sec [0]
Running test pipe-eof.t                                             0 sec [0]
Running test pipe-reuse.t                                           0 sec [0]
Running test poll.t                                                 0 sec [0]
Running test poll-cancel.t                                          0 sec [0]
Running test poll-cancel-all.t                                      0 sec [0]
Running test poll-cancel-ton.t                                      0 sec [0]
Running test poll-link.t                                            1 sec [0]
Running test poll-many.t                                            1 sec [2]
Running test poll-mshot-overflow.t                                  0 sec [0]
Running test poll-mshot-update.t                                    3 sec [2]
Running test poll-race.t                                            0 sec [0]
Running test poll-race-mshot.t                                      0 sec [1]
Running test poll-ring.t                                            0 sec [0]
Running test poll-v-poll.t                                          0 sec [0]
Running test pollfree.t                                             Test pollfree.t timed out (may not be a failure)
Running test probe.t                                                0 sec [0]
Running test read-before-exit.t                                     1 sec [1]
Running test read-write.t                                           1 sec [1]
Running test recv-msgall.t                                          0 sec [0]
Running test recv-msgall-stream.t                                   0 sec [0]
Running test recv-multishot.t                                       0 sec [0]
Running test reg-fd-only.t                                          0 sec [0]
Running test reg-hint.t                                             0 sec [0]
Running test reg-reg-ring.t                                         0 sec [0]
Running test regbuf-merge.t                                         0 sec [0]
Running test register-restrictions.t                                0 sec [0]
Running test rename.t                                               0 sec [0]
Running test ringbuf-read.t                                         0 sec [0]
Running test ring-leak2.t                                           1 sec [1]
Running test ring-leak.t                                            sendmsg: Invalid argument
sendmsg: Invalid argument
sendmsg: Invalid argument
0 sec [0]
Running test rsrc_tags.t                                            0 sec [0]
Running test rw_merge_test.t                                        0 sec [0]
Running test self.t                                                 0 sec [0]
Running test send_recv.t                                            0 sec [0]
Running test send_recvmsg.t                                         0 sec [0]
Running test send-zerocopy.t                                        15 sec [14]
Running test shared-wq.t                                            0 sec [0]
Running test short-read.t                                           0 sec [0]
Running test shutdown.t                                             0 sec [0]
Running test sigfd-deadlock.t                                       0 sec [0]
Running test single-issuer.t                                        0 sec [0]
Running test skip-cqe.t                                             0 sec [0]
Running test socket.t                                               0 sec [0]
Running test socket-io-cmd.t                                        0 sec
Running test socket-rw.t                                            0 sec [0]
Running test socket-rw-eagain.t                                     0 sec [0]
Running test socket-rw-offset.t                                     0 sec [0]
Running test splice.t                                               0 sec [0]
Running test sq-full.t                                              0 sec [0]
Running test sq-full-cpp.t                                          0 sec [0]
Running test sqpoll-cancel-hang.t                                   1 sec [1]
Running test sqpoll-disable-exit.t                                  0 sec [0]
Running test sq-poll-dup.t                                          1 sec [1]
Running test sqpoll-exit-hang.t                                     1 sec [1]
Running test sq-poll-kthread.t                                      2 sec [2]
Running test sq-poll-share.t                                        4 sec [4]
Running test sqpoll-sleep.t                                         0 sec [0]
Running test sq-space_left.t                                        0 sec [0]
Running test stdout.t                                               This is a pipe test
This is a fixed pipe test
0 sec [0]
Running test submit-and-wait.t                                      1 sec [1]
Running test submit-link-fail.t                                     0 sec [0]
Running test submit-reuse.t                                         3 sec [3]
Running test symlink.t                                              0 sec [0]
Running test sync-cancel.t                                          0 sec [0]
Running test teardowns.t                                            0 sec [0]
Running test thread-exit.t                                          0 sec [0]
Running test timeout.t                                              8 sec [8]
Running test timeout-new.t                                          3 sec [3]
Running test tty-write-dpoll.t                                      0 sec [0]
Running test unlink.t                                               0 sec [0]
Running test version.t                                              0 sec [0]
Running test wakeup-hang.t                                          2 sec [2]
Running test wq-aff.t                                               Skipped
Running test xattr.t                                                0 sec [0]
Running test statx.t                                                0 sec [0]
Running test sq-full-cpp.t                                          0 sec [0]
Tests timed out (1): <pollfree.t>
Tests failed (1): <no-mmap-inval.t>
make[1]: *** [Makefile:259: runtests] Error 1
make[1]: Leaving directory '/home/ubuntu/liburing-liburing-2.5/test'
make: *** [Makefile:21: runtests] Error 2

no-mmap-inval.t does not give desired output

Looks io_uring is working.
Can you try the following patch and see if it can make a difference?
diff --git a/lib/ublksrv_cmd.c b/lib/ublksrv_cmd.c
index 5730e9a..8a44745 100644
--- a/lib/ublksrv_cmd.c
+++ b/lib/ublksrv_cmd.c
@@ -141,6 +141,7 @@ void ublksrv_ctrl_deinit(struct ublksrv_ctrl_dev *dev)

 struct ublksrv_ctrl_dev *ublksrv_ctrl_init(struct ublksrv_dev_data *data)
 {
+       struct io_uring_params p;
        struct ublksrv_ctrl_dev *dev = (struct ublksrv_ctrl_dev *)calloc(1,
                        sizeof(*dev));
        struct ublksrv_ctrl_dev_info *info = &dev->dev_info;
@@ -166,8 +167,9 @@ struct ublksrv_ctrl_dev *ublksrv_ctrl_init(struct ublksrv_dev_data *data)
        dev->tgt_argc = data->tgt_argc;
        dev->tgt_argv = data->tgt_argv;

-       /* 32 is enough to send ctrl commands */
-       ret = ublksrv_setup_ring(&dev->ring, 32, 32, IORING_SETUP_SQE128);
+       memset(&p, 0, sizeof(p));
+       p.flags = IORING_SETUP_SQE128;
+       ret = io_uring_queue_init_params(64, &dev->ring, &p);
        if (ret < 0) {
                fprintf(stderr, "queue_init: %s\n", strerror(-ret));
                free(dev);

It still looks one environment issue, can you run the following test?

wget https://github.com/ublk-org/ublksrv/blob/master/utils/nop.c

gcc -O2 -o nop nop.c -luring

./nop

And see if it can be reproduced on the above steps.
If yes, I guess you may still link to one old liburing.
Also you can check the liburing version on ubuntu by:
dpkg -l | grep liburing
If it is < liburing 2.2, you can upgrade to 2.2+ and see
if there is any difference.
If liburing-devel 2.2+ isn't available, you can build from source,
but please use the following script to build ublksrv:
https://github.com/ublk-org/ublksrv/blob/master/build_with_liburing_src
Meantime change the script and make sure that
LIBURING_DIR points to the real liburing path in your system.
Thanks,

It still looks one environment issue, can you run the following test?

wget https://github.com/ublk-org/ublksrv/blob/master/utils/nop.c
gcc -O2 -o nop nop.c -luring
./nop

And see if it can be reproduced on the above steps.
If yes, I guess you may still link to one old liburing.
Also you can check the liburing version on ubuntu by:
dpkg -l | grep liburing
If it is < liburing 2.2, you can upgrade to 2.2+ and see if there is any difference.
If liburing-devel 2.2+ isn't available, you can build from source, but please use the following script to build ublksrv:
https://github.com/ublk-org/ublksrv/blob/master/build_with_liburing_src
Meantime change the script and make sure that LIBURING_DIR points to the real liburing path in your system.
Thanks,

Your guess is right. Many thanks for helping with that.


Checklist deadline for Collab Summit graduation

The goal was for AMP to graduate by the OpenJS Collaborator’s Summit. The CPC will need to have time to look at the work done and actually vote on allowing AMP to do so, so we need to clarify when that will be.

This has passed; closing.


How do semantic labels align with multiple sweeps in nuScenes dataset?

When training on the nuScenes dataset, the semantic segmentation label of nuScenes is only the current frame, which is 10 sweeps input during training. How does it match the corresponding value when calculating loss?

Sorry, the preprocessing code for nuScenes was written 1.5 years ago. I already forgot the details. Maybe directly reading the preprocessing code would be helpful?


⚠ Bofrost.fr has degraded performance

In 7b005df, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1017 ms

Resolved: Bofrost.fr performance has improved in e186e02 after 7 minutes.


group reused activity code into custom activity class

specifically
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
    val decorView = window.decorView
    decorView.systemUiVisibility = WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
}

in onCreate is reused almost every activity.  moving this to a custom class and extending that class would reduce code and make upkeep easier

Also, when displaying transactions in the history fragment, a call is made to retrieve the best block height every time an item is to be displayed on the list via the onBindViewHolder method. See https://github.com/decred/dcrandroid/blob/master/app/src/main/java/com/dcrandroid/adapter/TransactionAdapter.java#L74
There is a class used to track the number of peers, we can also add the best block height to it and update at startup and whenever onBlockAttached is called. Then TransactionAdapter.onBindViewHolder can use that value for determining the status of transactions rather than calling WalletData.getInstance().wallet.getBestBlock() every time.


Current issues with version mismatch (Preserve CRC and copypaste bug) in Sven Co-op

Hello!
@UnrealKaraulov i have no way of contacting you, so the only thing I can do is send this message here. This is now a serious issue within the Sven Co-op community, and the usage of this tool has broken many, many maps. I beg you to please join the SCMapDB discord here https://discord.gg/KmbacjTr and read the general chat.
The issues are as follows:

newbspguy build since 23 november 2024 has a bug that creates a new brush model number when copypasting (doing the same as the duplicate option), instead of making a new entity with the same model number. This breaks the bsp version or CRC when editing.

Preserve CRC checkbox in the settings is always off by default. Unexperienced people that want to help and ripent maps will not know this is an issue in Sven Co-op. It would be best to have this option always ON by default and also have a warning message before saving that warns you when it detects that the CRC will be modified.

Maybe you don't know about this but these things in Sven Co-op create a huge issue where clients cannot join servers if they dont have the same CRC version map. Anyone can ripent a map without knowing and servers or clients download the latest fixes to the maps and then cannot play. And this has happened A LOT recently.
EDIT:  Someone suggested a good idea, to have an icon or a "RIPENT"  "NOT RIPENT"  alert word somewhere in a corner of the screen warning about the state of the edit. If the CRC changes its no longer a ripent.

@GarompaEstomper fixed in https://github.com/UnrealKaraulov/newbspguy/commit/90057b111a940268037176576f92d3981d7e422d


New serenity.is homepage; Demo and buy now buttons do currently not work

Hi @volkanceylan ,
on your new serenity.is page, both the "Demo" and the "buy now" button do currently (2020-04-13, 14:10) not work. tested both with Chromium-based browser and Edge.

Oops thanks for reporting will fix soon


feat: adjust explorerResourceIsFolder behavior

follow vscode explorerResourceIsFolder behavior
right click explorer empty area still set this value to true.
Types

[x] 🎉 New Features

Background or solution
配置了右键菜单 explorerResourceIsFolder：
然后在 vscode 下在根目录是有这个选项的：

在 sumi 里根目录下右键没:

Changelog
set explorerResourceIsFolder to true when right click in explorer root

/publish

Codecov Report

Merging #286 (333254e) into main (eea3af4) will increase coverage by 0.01%.
The diff coverage is 89.47%.

@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
+ Coverage   59.31%   59.33%   +0.01%
==========================================
  Files        1182     1182
  Lines       72674    72670       -4
  Branches    15061    15057       -4
==========================================
+ Hits        43110    43116       +6
+ Misses      26941    26931      -10
  Partials     2623     2623

Impacted Files
Coverage Δ

...xt/src/browser/services/file-tree-model.service.ts
54.16% <88.88%> (+0.55%)
:arrow_up:

...file-tree-next/src/common/file-tree-node.define.ts
67.79% <100.00%> (ø)

...ages/file-service/src/node/file-service-watcher.ts
72.88% <0.00%> (+1.69%)
:arrow_up:

Continue to review full report at Codecov.

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

chao 怎么还是不行


Sqlite cache issues with network file system and/or concurrent conda_index processes

Checklist

[X] I added a descriptive title
[X] I searched open reports and couldn't find a duplicate

What happened?
We are storing an in-house conda channel on a NFS drive. After a recent upgrade from conda-build 3.27.0 to conda-index 0.5.0 (used conda index before, now python -m conda-index), we are facing problems with "database is locked" or "file is not a database" error messages from the sqlite3 module.
conda-index/index/common.py uses
conn.execute("PRAGMA journal_mode = WAL")
conn.execute("PRAGMA synchronous = 1")

The sqlite docs list as first disadvantage "All processes using a database must be on the same host computer; WAL does not work over a network filesystem", which is both not satisfied in our scenario.
Can the journal mode be changed to SQLite's default DELETE (not sure about PRAGMA synchronous ) to allow NFS storage of the channel (and concurrent conda index from different client machines)?
Conda Info
No response
Conda Config
No response
Conda list
No response
Additional Context
No response

Sounds feasible. We may have to check that it doesn't interfere with local multiprocess indxing.

Any update on this? I'm having to use the old conda index command because of this.
Background: Using on a docker container, volume mapped from a network drive:
concurrent.futures.process._RemoteTraceback:

"""

Traceback (most recent call last):

  File "/opt/conda/lib/python3.12/concurrent/futures/process.py", line 263, in _process_worker

    r = call_item.fn(*call_item.args, **call_item.kwargs)

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/concurrent/futures/process.py", line 212, in _process_chunk

    return [fn(*args) for args in chunk]

            ^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/sqlitecache.py", line 201, in extract_to_cache_info_object

    return self._extract_to_cache(

           ^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/sqlitecache.py", line 224, in _extract_to_cache

    index_json = self.extract_to_cache_unconditional(fn, abs_fn, size, mtime)

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/sqlitecache.py", line 312, in extract_to_cache_unconditional

    with self.db:

         ^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/sqlitecache.py", line 81, in __get__

    value = self.wrapped(inst)

            ^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/sqlitecache.py", line 136, in db

    conn = common.connect(str(self.db_filename))

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/common.py", line 12, in connect

    conn.execute("PRAGMA journal_mode = WAL")

sqlite3.OperationalError: locking protocol

"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "<frozen runpy>", line 198, in _run_module_as_main

  File "<frozen runpy>", line 88, in _run_code

  File "/opt/conda/lib/python3.12/site-packages/conda_index/__main__.py", line 3, in <module>

    conda_index.cli.cli()

  File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1157, in __call__

    return self.main(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1078, in main

    rv = self.invoke(ctx)

         ^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 1434, in invoke

    return ctx.invoke(self.callback, **ctx.params)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/click/core.py", line 783, in invoke

    return __callback(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/cli/__init__.py", line 157, in cli

    channel_index.index(

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/__init__.py", line 586, in index

    futures = [

              ^

  File "/opt/conda/lib/python3.12/concurrent/futures/_base.py", line 619, in result_iterator

    yield _result_or_cancel(fs.pop())

          ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/concurrent/futures/_base.py", line 317, in _result_or_cancel

    return fut.result(timeout)

           ^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/concurrent/futures/_base.py", line 456, in result

    return self.__get_result()

           ^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result

    raise self._exception

  File "/opt/conda/lib/python3.12/concurrent/futures/thread.py", line 58, in run

    result = self.fn(*self.args, **self.kwargs)

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/__init__.py", line 574, in extract_wrapper

    return self.extract_subdir_to_cache(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/site-packages/conda_index/index/__init__.py", line 812, in extract_subdir_to_cache

    for fn, mtime, size, index_json in thread_executor.map(

  File "/opt/conda/lib/python3.12/concurrent/futures/process.py", line 642, in _chain_from_iterable_of_lists

    for element in iterable:

  File "/opt/conda/lib/python3.12/concurrent/futures/_base.py", line 619, in result_iterator

    yield _result_or_cancel(fs.pop())

          ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/concurrent/futures/_base.py", line 317, in _result_or_cancel

    return fut.result(timeout)

           ^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/concurrent/futures/_base.py", line 456, in result

    return self.__get_result()

           ^^^^^^^^^^^^^^^^^^^

  File "/opt/conda/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result

    raise self._exception

sqlite3.OperationalError: locking protocol

We would accept a PR that removes the "enable WAL" pragma


Show full name

Is it possible to add a feature that allows showing the full file name, because currently if the name is long its text disappears
The name appears like this if the text is long

While in Windows Explorer the name appears in full

Merging with #1033.


Add constants for GroupId's

Add constants in the Plugin project to allow full intellisense for when targeting group id's in extensions.

Using statement:
using Alchemy4Tridion.Plugins.GUI.Configuration;
Code:
GroupId = Constatnts.GroupIds.HomePage.PublishGroup;


theme-tokens.md - Syntaxes file is missing?

How are you using the lua-language-server?
Other
Which OS are you using?
Other
What is the issue affecting?
Other
Expected Behaviour
The link in theme-tokens.md is missing, and in general, I cannot find the syntax file for lua.
Actual Behaviour
Broken link
Reproduction steps

Go to theme-tokens.md
Click "tmLanguage file"

Additional Notes
No response
Log File
No response

see https://github.com/sumneko/lua.tmbundle
it become vscode  official lua tmbundle


[FEATURE][QUESTION]

@pascal-pfeiffer I have question can we fine tune any gptq models from hugging face using llm studio.

No, we are using AutoModel from huggingface and not AutoGPTQ to load the model weights. Nevertheless, you can load the base model weights and train with QLoRA (4bit).


Minor error in categorical DQN

There was a minor error in categorical DQN. Sorry for this.

A few things:

Can you add the noisy_dqn and categorical_dqn hyperparameters to the dictionary in get_hyperparams? Saving these will help keep track of experiments run using different kinds of DQN.
The categorical DQN doesn't seem to learn anything even in CartPole. Have you tested it?
Memory usage for categorical DQN seems oddly high. Any reason for this?

Can you add the noisy_dqn and categorical_dqn hyperparameters to the dictionary in get_hyperparams? Saving these will help keep track of experiments run using different kinds of DQN.

I'll add this no worries.

The categorical DQN doesn't seem to learn anything even in CartPole. Have you tested it?

It should do now after this commit that I made, it did for me.

Memory usage for categorical DQN seems oddly high. Any reason for this?

I'll check for this.

It is training for me @ajaysub110. Maybe try increasing the number of epochs. Have you tried the code from this pr?

OK. I'll try running it again. Yes, I had used the code from this PR. When you train, is your RAM usage normal?

Yea. I did not see any abnormality in the RAM usage.

Ran it on CPU again. RAM usage keeps increasing (even after this)

This is weird. I don't see a reason for this clogging of RAM. Anyways, I'll still look into this again.

Can you try any other variant(like noisy_dqn) and see if they also take up this much of RAM?

Yeah, others do too. I think it might be happening due our large replay memory. This would also explain why it happens only on CPU and not on Colab.

Cool then, merging this


DarkRP Money can be physgunned by anyone while owned by world

Player with no rank physgunning money, a world entity
http://i.imgur.com/QiD3MVG.jpg

Not DPP bug


Experiment listing moved to side nav

What type of PR is this?
Remove the categories that do not apply

🎮 Feature
🐛 Bug Fix
🍧 Refactor
🔋 Optimization
📓 Documentation Update

Description
Please provide a brief description of the changes here. Include why they are needed, if applicable.
Any demonstrations of the changes (Loom, gif, etc.) may also go here.
Related Tickets & Documents
Reference as needed.
Steps to Test
A list of steps a reviewer can walk through to test the changes.
Relevant GIF
Required 🐔

Thanks for the patch @jeffmerrick 😎


Deleting the attachment folder automatically

Hi,
plugin don't delete the attachment folder automatically when the note is deleted.

What should I do?

Thank you for pointing this out. It was a small typo (i.e. bug), which I corrected. You can update to the new version.

Thanks a lot!


Request to install Chinese GB18030 locale to AIX

This is a following up request of #704. Thank you for handling that request.
We'd like to ask one more locale to install AIX (7.1 and 7.2) for internationalization testing.

Zh_CN (Zh_CN.GB18030)

Done.

Thank you for quick action, sej.


Update ems-esp to 1.2.1

Please update my adapter ioBroker.ems-esp to version 1.2.1.
This pull request was created by https://www.iobroker.dev 79ffd9b.

@Apollon77 Inge generally you are right. But I recognized that a couple of user already use js-controller V4 and my coding gave a lot of warnings.
I testest with user on Github and to avoid more questions / remarks I want to upload this version into stable.

Ok, reason makes sense


AD7six/vim-activity-log not work

vim-plug is great! it's fast, even I work with 50+ plugin.
Today, I find this plugin
https://github.com/AD7six/vim-activity-log
However, it cannot work when with "Plug 'AD7six/vim-activity-log'".
vim-plug could install this plugin, but cannot make it work.
copy the vim-activity-log plugin content to .vim, it works.
I am not sure detail of vim plugin. Anyone could give me hints?

It works for me. It's probably an issue of your configuration file.
Post your vimrc here and we'll take a look.

Works for me too. Local config problem surely.


Error: No named parameter with the name 'replaceMovedChildren'.

I tried to install this package and use the example code. But the app fails to build and returns the following:
../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_bouncy-1.0.0/lib/src/sliver_bouncy_list.dart:24:42: Error: No named parameter with the name 'replaceMovedChildren'.
SliverMultiBoxAdaptorElement(this, replaceMovedChildren: true);
^^^^^^^^^^^^^^^^^^^^
../flutter/packages/flutter/lib/src/widgets/sliver.dart:1039:3: Context: Found this candidate, but the arguments don't match.
SliverMultiBoxAdaptorElement(SliverMultiBoxAdaptorWidget widget) : super(widget);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3
FAILURE: Build failed with an exception.
Please help

@dcbacarro What is your flutter doctor -v output?

@dcbacarro What is your flutter doctor -v output?

@dcbacarro I just published a fix for you under version 1.0.1

@dcbacarro I just published a fix for you under version 1.0.1

Thank you very much, @pstromberg98!

Thank you very much, @pstromberg98!


fix(intersection): fixed stuck vehicle detection area

use ignore dist before the exist of ego lane, and extend_dist after the ego lane
Signed-off-by: Mamoru Sobue<EMAIL_ADDRESS>Description
stuck vehicle detect area
stuck vehicle area was too large for the exit of the intersection.
left: before this change (the detect area is expanded inside the intersection)
right: after this change (the detect area is around the exit of the intersection)

stop line position when stuck vehicle is detected afterward
fixed not to generate stop line before ego.
left: before this change (stop line for stuck vehicle is is generated before the ego position)
right: after this change (it is generated in the middle of the intersection)

Related links
Jira: https://tier4.atlassian.net/browse/T4PB-23602
parameter update: https://github.com/tier4/autoware_launch/pull/624
Tests performed
Also tested with use_stuck_stopline option.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[X] I've confirmed the contribution guidelines.
[X] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[X] The PR follows the pull request guidelines.
[X] The PR has been properly tested.
[X] The PR has been reviewed by the code owners.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[X] There are no open discussions or they are tracked via tickets.
[X] The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@shmpwk @taikitanaka3 please approve this PR