Write a Swift program to reverse words in a string

Description
Write a Swift program to reverse words in a string
Input  : "Hello World"
Output : "World Hello"

Contributed by - @Parvezkhan0

How to contribute

Fork this repository
Create a new branch
Save the solution in program/reverse-words-in-a-string/ReverseWordsInAString.swift
Commit the changes
Create a pull request

!assign


Fix debug print that expects a name attribute on the tenant

Small fix to not assume that the tenant model being used has a name attribute.

Thank you, merged :+1:


Throw if ruleId is not a string

This makes it more obvious where and why the error occurred.
Before:
TypeError: Cannot read property 'split' of null

After:
TypeError: ruleId must be a string, got object

Maybe add a , got '${ruleId}' part to the message so the developer can see what they sent?

I’ve changed it to new TypeError(`ruleId must be a string, got ${typeof ruleId}`).

@j-f1 That would help in the specific case of the test being added (null), but doesn't help if an actual Object is passed in, should we do , got '${JSON.stringify(ruleId)}'? Or just leave it off entirely?

Note: The specs are only failing on Node.js v0.12. Since that is no longer maintained I've put up #19 for removing it from the test matrix.

Rebased.
Also, in case you missed it, I have already incorporated @j-f1’s suggestion (see https://github.com/jfmengels/eslint-rule-documentation/pull/18#issuecomment-319788364).

That just shows the type of the thing passed in, but that's probably good enough, and certainly better than nothing so I'm fine with merging as is, thanks!

Published in v1.0.15.


Discussion: combine ethereum/cosmos relayer into unified relayer

As further described in https://github.com/cosmos/peggy/pull/77/#issuecomment-548660764,  ethereum and cosmos relayer could be refactored into a unified relayer which only has 1 ebrelayer init for ease of use. The unified relayer could share a logger, event data, init config information, and validator account information through the use of goroutines and environment variables.

https://github.com/cosmos/peggy/pull/106 addresses this issue


Get AI Runner to fire only when targeting player Runner

References #147

This took about an hour. I was expecting this particular task to take longer at the time but I found an interesting work around, so if I can make the AI Runners shoot at other AI runners with this method, it might not be as difficult of a task as anticipated.


nonstd::optional is not a literal type

I am looking for C++14 optional drop-in which I can use in constexpr contexts. From the Readme it seems to fit my needs, because you state this implementation provides a LiteralType in that case. I tried to compile
int main()
{
  constexpr nonstd::optional<int> o = 2;
}

with std=c++14 two different compilers (gcc-8 and clang-5) and both failed to compile the code.
While trying to fix the issue with custom patches I encountered following problems:
To make the type satisfy std::is_literal_type (deprecated, I know)

I had to make the destructor of optional trivial for trivially destructible types T. This can be achieved by inheriting from a base class and using a template specialization.
I had to mark at least on constructor of storage constexpr

To make the type usuable in constexpr contexts:

placement new in storage_t is not constexpr, so nonstd::optional with this storage implementation is not going to be usable in constexpr contexts.

Did i misunderstand something terribly wrong and/or do you think it would be worthwhile to provide some patches to target the above points.

See:

Andrzej Krzemieński. Constexpr unions. December 2012.

See:

at::optional does not work on nvcc Windows (CUDA 9.1) .

See:

How to Write Well-Behaved Value Wrappers - Simon Brand [C++ on Sea 2019], starting 26:40
Results for nonstd::optional

Proposal to copy the is_trivially_destructible property for the optional:

replace the destructor of the optional with some normal(protected) member method.
replace the "using optional_lite::optional" with:
template<typename T, bool destructor> class optional_destruction_helper : public optional_lite::optional<T> {  using optional_lite_base= optional_lite::optional<T>; public:  using optional_lite_base::optional_lite_base; }; template<typename T> class optional_destruction_helper <T, true> : public optional_lite::optional<T> {  using optional_lite_base= optional_lite::optional<T>; public:  using optional_lite_base::optional_lite_base;  ~optional_destruction_helper ()  {      optional_lite_base::destroy();  } }; template<typename T> class optional : public optional_destruction_helper <T, !std::is_trivially_destructible<T>::value> {  using optional_lite_base= optional_destruction_helper <T, !std::is_trivially_destructible<T>::value>; public:  using optional_lite_base::optional_lite_base; };

Thanks for your suggestion. May take a couple if weeks before i can address it.


auto completion in astro.

Description
- auto completion issue

css({
  key: value
})

both key, value work in TSX file
only value works in Astro file(key - object prop seems not working as auto completion)

JS Framework
AstroJs
Panda CSS Version
0.11.1
Browser
FireFox
Operating System

[ ] macOS
[X] Windows
[ ] Linux

Additional Information
No response

This is not an issue in Panda. It’s more of an issue in the Astro language server and how it resolves the declaration files.
Kindly transfer this to the Astro repo.


Some cards are not displayed properly

They contain irrelevant characters or signs such as cent sign.

This issue must have been solved by sorting out the cards that are too long


SAML Prodvider / AzureAD

Hello,
Firstly, thanks for this app! :)
So, I have a problem with cloudmapper and saml of AzureAD :
user1:~/cloudmapper/cloudmapper# python3 cloudmapper.py weboftrust --account all --config prod/config.json
Traceback (most recent call last):
File "cloudmapper.py", line 72, in
main()
File "cloudmapper.py", line 66, in main
commands[command].run(arguments)
File "/root/cloudmapper/cloudmapper/commands/weboftrust.py", line 473, in run
cytoscape_json = weboftrust(args, accounts, config)
File "/root/cloudmapper/cloudmapper/commands/weboftrust.py", line 356, in weboftrust
get_nodes_and_connections(account, nodes, connections, args)
File "/root/cloudmapper/cloudmapper/commands/weboftrust.py", line 337, in get_nodes_and_connections
get_iam_trusts(account, nodes, connections, connections_to_get)
File "/root/cloudmapper/cloudmapper/commands/weboftrust.py", line 215, in get_iam_trusts
"Unknown federation provider: {}".format(principal["Federated"])
Exception: Unknown federation provider: arn:aws:iam::xxxxxxxxxxx:saml-provider/AzureAD
It's just with cloudmapper weboftrust*
Thanks for you help

cc @nimrodkor for visibility as this relates to #643.
@Gomory666 You'll need to add AzureAD as another federation provider somewhere around https://github.com/duo-labs/cloudmapper/blob/c2058ae5cda0ebe90114f0387a734ec96f063316/commands/weboftrust.py#L228


Feature request: remember multiple open windows on relaunch

Hi,
I'd like to make a feature request.
Right now when having multiple windows open with different folders loaded in them - only one of them gets relaunched on reopen.
I think that the desired behaviour should be that all windows get reopened with their last state remembered.
Thoughts?

Try with "window.restoreWindows": "folders" in settings.

It doesn't work - at least not under Linux.


init migration profiling time series

Migration and upgrade https://bytewax.io/guides/profiling-streaming-time-series-data

Hi @awmatheson
A preview of the guide can be found here
https://bytewax--490.org.readthedocs.build/490/tutorials/profiling-time-series-data/index.html


Support for ESLint 9

Hi,
ESLint 9 is out for while and we'd love to see this plugin with support for ESLint 9 and the flat config.
Any plans of updating this package? Last release is from May 2020 and there still is an open issue for ESLint 8 support.

Update: Seems like https://github.com/eslint-community/eslint-plugin-eslint-comments is the successor of this repo and already is ESLint 9 ready

Hi @Llois41!
Since this repo is unmaintained, you might want to re-open this issue in the @eslint-community fork https://github.com/eslint-community/eslint-plugin-eslint-comments
For more info about why we created this organization, you can read https://eslint.org/blog/2023/03/announcing-eslint-community-org


[LINUX][AMD] Last commit breaks Raytracing on AMD / Linux

Hi,
In my testing, this commit:

https://github.com/SaschaWillems/Vulkan/commit/42b7f547a21d43498236b1d1fab077b22d921b35

Breaks all current (FOSS/Proprietary) RT on AMD devices on Linux.

Fatal : VkResult is "UNKNOWN_ERROR" in /home/xxx/xxx/Vulkan/examples/rayquery/rayquery.cpp at line 326

Segfault (139).

That's odd. The sample is actually correct, even with this change. It only allocates one descriptor set. What's even more odd is the unknown error.
Do you get any validation messages before that error ocurs?

I noticed there is no VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER in the pool, but the desc-set-layout has one -- is there something the spec that guarantees this binding will not cause an allocation?
// Shared pipeline layout for all pipelines used in this sample
std::vector<VkDescriptorSetLayoutBinding> setLayoutBindings = {
	// Binding 0 : Vertex shader uniform buffer
	vks::initializers::descriptorSetLayoutBinding(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_SHADER_STAGE_VERTEX_BIT, 0),
	// Binding 1 : Fragment shader image sampler (shadow map)
	vks::initializers::descriptorSetLayoutBinding(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_SHADER_STAGE_FRAGMENT_BIT, 1),
	// Binding 2: Acceleration structure
	vks::initializers::descriptorSetLayoutBinding(VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR, VK_SHADER_STAGE_FRAGMENT_BIT, 2),
};

I have removed that part of the layout. @DistantThunder: Can you check if this fixes your crash?

@SaschaWillems  Hello yes, thanks! Current master fixes both the FOSS & AMD OPEN & PRO proprietary driver!


WIP: Bypass userdata limit with s3 plus follow ups

@redbaron FYI this is what I have so far.
Unit tests are failing/won't even compile but I've tested this by creating an actual cluster including 1 main cluster with 2 node pools including 1 asg-backed pool and 1 spot-fleet-backed pool.
If interested, please see my latest commit https://github.com/mumoshu/kube-aws/commit/c2358d7b749092a947fd4ebcc576dd729413e992 for what were changed since your work. Basically I've refactored cfnstack/ so that

you don't need explicitly render stack templates where it seems unnecessary (e.g. destroy.go) anymore
you don't need to pass s3URI all over the places

This isn't really a natural order of things I would do to fix something but anyways E2E tests are passing against the cluster.
I'll work on fixing unit tests next.

nodepools should write to a different path , otherwise the'll overwrite main cluster userdata. this probably means that --s3-uri arg should be moved into cluster.yaml config option

Thanks for the notice 👍
I'm aware of it and actually it is already addressed in this PR.

Current coverage is 57.20% (diff: 38.68%)

No coverage report found for master at c538e61.

Powered by Codecov. Last update c538e61...7102d59

Unit/integration tests are passing.

E2E tests passed.
Although I can merge this anytime, I'd like to hold on until other big PRs like #169 #227, which are likely to conflict with this PR, become ready to be merged.

I tested https://github.com/coreos/kube-aws/pull/255/commits/9fce0cb541b3fe103a614d8e0362508387ddda56 change locally,seems to work, consider adding here if you agree

@redbaron Thanks for wrapping it into a systemd unit 👍 I will test it out later.
Btw, kube-aws up seems to take 2x more time than it had taken before while creating ASGs:

Any idea how we could improve it?


Build is failing

When updating pip, we get
Step 6/33 : RUN pip install --upgrade pip
 ---> Running in dfcc81a478dc
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip in /usr/lib/python2.7/dist-packages

Any workaround is welcome.

Given python 2 is dead (R.I.P.), I am trying to change your Dockerfile to run with Python 3. Not sure if I will be successful.

I managed a build. Will test tomorrow, and share.

Managed to run it, with loris 3.2.1. Still not working perfectly. I will share my changes as soon as I have an acceptable outcome.


psm icon added

Added python-script-manager configuration file icon.

Thank you for your contribution @yunisdev


Implement support to view completed orders

What is the motivation for adding/enhancing this feature?

What are the acceptance criteria?

[ ] Add a new tab for completed order
[ ] User cannot perform any action on the page

Can you complete this feature request by yourself?

[x] YES
[ ] NO

Additional information

Closing as completed, resolved by #177


Refactor swap dims

[ ] Attempt at fixing #8646
[ ] Tests added
[ ] User visible changes (including notable bug fixes) are documented in whats-new.rst
[ ] New functions/methods are listed in api.rst

I've tried here re-implementing swap_dims using rename_dims, drop_indexes and set_xindex. This fixes the example in #8646 but unfortunately this fails at handling the pandas multi-index special case (i.e., a single non-dimension coordinate wrapping a pd.MultiIndex that is promoted to a dimension coordinate in swap-dims auto-magically results in a PandasMultiIndex with both dimension and level coordinates).

the pandas multi-index special case

I've been starting to think of multiindex as a model for a user defined custom index wrapping multiple variables.
Would we want to recreate a user's custom index with this swap_dims op? Probably not right?

Does this fix
state = xr.Dataset()
state['2'] = var
state = state.stack({"0": ["2"]})
state['1'] = var1
state['1_'] = var1#.copy(deep=True)
state = state.swap_dims({"1": "1_"})
xr.testing.assertions._assert_internal_invariants(state, False)

(found by hypothesis)

I've been starting to think of multiindex as a model for a user defined custom index wrapping multiple variables.

Yes this is a good model. That's what causes a lot of trouble since the index refactor as we transitioned from a dimension coordinate - with virtual level coordinates - to the model that you describe here.

Would we want to recreate a user's custom index with this swap_dims op? Probably not right?

No I don't think we want this.  In both main and this PR no multi-index is recreated:
import pandas as pd
import xarray as xr

midx = pd.MultiIndex.from_product([["a", "b"], [0, 1]], names=["foo", "bar"])
coords = xr.Coordinates.from_pandas_multiindex(midx, "x")
coords["y"] = ("x", [1, 2, 3, 4])
ds = xr.Dataset(coords=coords)

ds.swap_dims(x="y")
# main: multi-index "x", "foo", "bar" is dropped (although the repr is shows "MultiIndex" for "x" values)
# this PR: ValueError, cannot remove index "x" which would corrupt index built from coordinates "x", "foo", "bar"

The error raised in this PR might make sense, or alternatively we can easily get all coordinates ("x", "foo", "bar") and drop the index.
However, like the Dataset constructor and a few other methods, swap_dims supports auto-detecting / auto-promoting pd.MultiIndex objects:
ds2 = xr.Dataset(coords={"y": ("x", midx), "x": [1, 2, 3, 4]})

ds2
# <xarray.Dataset> Size: 64B
# Dimensions:  (x: 4)
# Coordinates:
#     y        (x) object 32B ('a', 0) ('a', 1) ('b', 0) ('b', 1)
#   * x        (x) int64 32B 1 2 3 4
# Data variables:
#     *empty*

ds2.swap_dims(x="y")
# (in main branch)
# <xarray.Dataset> Size: 128B
# Dimensions:  (y: 4)
# Coordinates:
#   * y        (y) object 32B MultiIndex
#   * foo      (y) object 32B 'a' 'a' 'b' 'b'
#   * bar      (y) int64 32B 0 1 0 1
#     x        (y) int64 32B 1 2 3 4
# Data variables:
#    *empty*

This feels too magical to me, and makes the internal logic unnecessarily complicated. I'm not sure if there is an easy way to support that with the refactoring in this PR.
I'd be in favor of treating any multi-index passed directly as a single coordinate with tuples (#8140), i.e.,
ds2.swap_dims(x="y")
# Dimensions:  (x: 4)
# Coordinates:
#   * y        (y) object 32B ('a', 0) ('a', 1) ('b', 0) ('b', 1)
#     x        (y) int64 32B 1 2 3 4
# Data variables:
#     *empty*

with a warning raised.

On main i see no warning:

which looks like

or alternatively we can easily get all coordinates ("x", "foo", "bar") and drop the index.

I think this behaviour is good ^:  we should preserve all variables, just destroy any fancy structure

swap_dims supports auto-detecting / auto-promoting pd.MultiIndex objects:

I support deprecating and deleting this behaviour

I've been starting to think of multiindex as a model for a user defined custom index wrapping multiple variables.

Yes this is a good model. That's what causes a lot of trouble since the index refactor as we transitioned from a dimension coordinate - with virtual level coordinates - to the model that you describe here.

Would we want to recreate a user's custom index with this swap_dims op? Probably not right?

No I don't think we want this. In both main and this PR no multi-index is recreated:
import pandas as pd
import xarray as xr

midx = pd.MultiIndex.from_product([["a", "b"], [0, 1]], names=["foo", "bar"])
coords = xr.Coordinates.from_pandas_multiindex(midx, "x")
coords["y"] = ("x", [1, 2, 3, 4])
ds = xr.Dataset(coords=coords)

ds.swap_dims(x="y")
# main: multi-index "x", "foo", "bar" is dropped (although the repr still shows "MultiIndex" for "x" values)
# this PR: ValueError, cannot remove index "x" which would corrupt index built from coordinates "x", "foo", "bar"

The error raised in this PR might make sense, or alternatively we can easily get all coordinates ("x", "foo", "bar") and drop the index.
However, like the Dataset constructor and a few other methods, swap_dims supports auto-detecting / auto-promoting pd.MultiIndex objects:
ds2 = xr.Dataset(coords={"y": ("x", midx), "x": [1, 2, 3, 4]})

ds2
# <xarray.Dataset> Size: 64B
# Dimensions:  (x: 4)
# Coordinates:
#     y        (x) object 32B ('a', 0) ('a', 1) ('b', 0) ('b', 1)
#   * x        (x) int64 32B 1 2 3 4
# Data variables:
#     *empty*

ds2.swap_dims(x="y")
# (in main branch)
# <xarray.Dataset> Size: 128B
# Dimensions:  (y: 4)
# Coordinates:
#   * y        (y) object 32B MultiIndex
#   * foo      (y) object 32B 'a' 'a' 'b' 'b'
#   * bar      (y) int64 32B 0 1 0 1
#     x        (y) int64 32B 1 2 3 4
# Data variables:
#    *empty*

This feels too magical to me, and makes the internal logic unnecessarily complicated. I'm not sure if there is an easy way to support that with the refactoring in this PR.
I'd be in favor of treating any multi-index passed directly as a single coordinate with tuples (#8140), i.e.,
ds2.swap_dims(x="y")
# Dimensions:  (x: 4)
# Coordinates:
#   * y        (y) object 32B ('a', 0) ('a', 1) ('b', 0) ('b', 1)
#     x        (y) int64 32B 1 2 3 4
# Data variables:
#     *empty*

with a warning raised.

I've been a fan of MultiIndexes and simple pandas compatibility, but definitely agree that the magical "a 1D array of tuples magically becomes a MultiIndex" would be fine / good to remove...


Activate on gjs files

It doesn't seem like Glint is active or provides help on (g)js files atm. This would be good to add.
(or we've ported so few features over from tsc, that I can't even tell its on, see: https://github.com/typed-ember/glint/issues/626 )

Have you followed the docs? It certainly works.

Yes, maybe i have a different issue that just manifested goofy


feat(CategoryTheory/Triangulated): the Yoneda functors are homological

Let C be a pretriangulated category. In this PR, we show that the functors preadditiveCoyoneda.obj A : C ⥤ AddCommGrp for A : Cᵒᵖ and preadditiveYoneda.obj B : Cᵒᵖ ⥤ AddCommGrp for B : C are homological functors.

Thanks!
maintainer merge

Thanks!
bors merge


Add net.route-domain support

Need to work with net.route-domain (in addition to net.route).

This is fixed by PR #256


Cannot edit file in browser

Description
Running 1.22.0 in offline mode on offline system. Try to edit a text file in the browser. Fails, error in browser console:
monaco.14c11225.js:559

Uncaught (in promise) SyntaxError: Invalid flags supplied to RegExp constructor 'd'
    at new RegExp (<anonymous>)
    at Object../node_modules/monaco-editor/esm/vs/editor/browser/services/editorWorkerService.js (monaco.14c11225.js:559)
    at __webpack_require__ (bootstrap:19)
    at Object../node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js (monaco.14c11225.js:638)
    at __webpack_require__ (bootstrap:19)
    at Object../node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/color.js (monaco.14c11225.js:638)
    at __webpack_require__ (bootstrap:19)
    at Object../node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js (monaco.14c11225.js:638)
    at __webpack_require__ (bootstrap:19)
    at Object../node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js (monaco.14c11225.js:638)
./node_modules/monaco-editor/esm/vs/editor/browser/services/editorWorkerService.js @ monaco.14c11225.js:559
__webpack_require__ @ bootstrap:19
./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js @ monaco.14c11225.js:638
__webpack_require__ @ bootstrap:19
./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/color.js @ monaco.14c11225.js:638
__webpack_require__ @ bootstrap:19
./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js @ monaco.14c11225.js:638
__webpack_require__ @ bootstrap:19
./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js @ monaco.14c11225.js:638
__webpack_require__ @ bootstrap:19
include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.main.js @ monaco.14c11225.js:430
__webpack_require__ @ bootstrap:19
async function (async)
(anonymous) @ repo-editor.js:134
Qv @ repo-editor.js:177
(anonymous) @ index.js:153

Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Install package =  dl.gitea.io. Running on Ubuntu 20.04 LTS native.
Database
None

Which browser/version?
Missing browser feature is https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/hasIndices.

Which browser/version?

MS Edge (on Windows 10), latest & greatest.

Can you reproduce the error on https://microsoft.github.io/monaco-editor/playground.html?

Can reproduce on https://microsoft.github.io/monaco-editor/playground.html?source=v0.49.0

Upstream issue: https://repo.palemoon.org/MoonchildProductions/UXP/issues/2526

Upstream issue: https://repo.palemoon.org/MoonchildProductions/UXP/issues/2526

Upstream issue is fixed. Issue in gitea unchanged, with nowadays 1.22.4.

Upstream issue: https://repo.palemoon.org/MoonchildProductions/UXP/issues/2526

Upstream issue is fixed. Issue in gitea unchanged, with nowadays 1.22.4.

Does https://microsoft.github.io/monaco-editor/playground.html?source=v0.52 work? Do you see  browser errors when using Gitea and/or the monaco-editor?

Does https://microsoft.github.io/monaco-editor/playground.html?source=v0.52 work?

I cannot test since the system is offline :) However the same browser on another systen with (I guess) the same settings works.

Do you see browser errors when using Gitea and/or the monaco-editor?

Only errors in the browser console. The browser does not show the file content, and an animation that runs forever.

Do you see browser errors when using Gitea and/or the monaco-editor?

Only errors in the browser console. The browser does not show the file content, and an animation that runs forever.

Does https://microsoft.github.io/monaco-editor/playground.html?source=v0.52 work?

yes or no?

Do you see browser errors when using Gitea and/or the monaco-editor?

when using Gitea, do you see browser errors (including console)? If yes, what are the errors?
when using https://microsoft.github.io/monaco-editor/playground.html, do you see browser errors (including console)? If yes, what are the errors?

Make sure MS Edge is not in Compatibility mode for that site.

Does https://microsoft.github.io/monaco-editor/playground.html?source=v0.52 work?

I cannot test since the system is offline :) However the same browser on another systen with (I guess) the same settings works.

Hmm, missing this reply.
The editor does not need any external network access. And I have tested "offline", the editor does work.
So, since "the same browser on another system", I think you need to figure out what's the difference, it doesn't seem to be related to Gitea. Maybe your "offline" browser is corrupted?

Do you see browser errors when using Gitea and/or the monaco-editor?

Only errors in the browser console. The browser does not show the file content, and an animation that runs forever.

The errors in console might tell you details.
So do you see any browser error (including console)? If yes, what are the errors?

So, since "the same browser on another system", I think you need to figure out what's the difference, it doesn't seem to be related to Gitea. Maybe your "offline" browser is corrupted?

Bingo! Both are Windows 10 boxes, with the latest Windows Updates and Edge. So I though the were the same. It seems they're not. Windows Update does not update Edge, at least not in my setup. So although the base systems were the same, the Edge browsers were not. I've updated Edge from within the appliaction and the issue is fixed. Thank you for your help!


[Launcher]: Refine DnsUtils to resolve local address

Coverage decreased (-9.9%) to 48.854% when pulling ad8329e522e233de4f918278d52b5eef57079030 on yqwang/launcher-dev into ba24ded4524edffbfef7b54a064fc23086ce8595 on master.

Coverage decreased (-9.9%) to 48.854% when pulling ad8329e522e233de4f918278d52b5eef57079030 on yqwang/launcher-dev into ba24ded4524edffbfef7b54a064fc23086ce8595 on master.


Simple aggregations have regressed performance-wise in new Mongo

Most aggregations have regressed performance-wise. It's useful to consider the equivalent queries:
select city from `/mngo/jps/zips` group by city

and
select distinct city from `/mngo/jps/zips`

The QScript for the former:
QScript (Mongo-specific):
Reduce
├─ ShiftedRead(/jps/zips, ExcludeId)
├─ Bucket
│  ╰─ List
│     ╰─ MakeArray
│        ╰─ ProjectField
│           ├─ ○
│           ╰─ Constant(Str(city))
├─ Reducers
│  ╰─ Arbitrary
│     ╰─ ProjectField
│        ├─ ○
│        ╰─ Constant(Str(city))
╰─ Repair
   ╰─ ReduceIndex(\/-(0))

The QScript for the latter:
QScript (Mongo-specific):
Reduce
├─ ShiftedRead(/jps/zips, ExcludeId)
├─ Bucket
│  ╰─ List
│     ╰─ ProjectField
│        ├─ ○
│        ╰─ Constant(Str(city))
├─ Reducers
│  ╰─ Arbitrary
│     ╰─ ProjectField
│        ├─ ○
│        ╰─ Constant(Str(city))
╰─ Repair
   ╰─ ReduceIndex(\/-(0))

Performance for distinct by is at least an order of magnitude better. Note that the only difference between the plans is the lack of MakeArray for the second query/QScript.
Branched off #2667. The associated unit tests should be fixed as well when plans perform equivalently.
Quoting @wemrysi: "If there are any literal arrays (MakeArray and friends) in the plan, that will require MR until we update the mongo planner"

After fixing this particular query, aggregations in the other unit tests for the file should be rechecked for correctness and performance.


exposed phpinfo on symfony framework

Hi team,
I really don't know where to report security issue.
While digging some search engine, found your dev "playground" that used symfony framework exposed phpinfo because this file not really not fully patched or directed to default page.
https://connect.bcisoft.dev/_profiler/phpinfo
https://<IP_ADDRESS>/_profiler/phpinfo
best
nan

Hi, thanks for your input. I cannot find how you get theses links, may I ask you how did you find them ?
Thanks
Chris

Hi Chris,
Yes, i found them on shodan. But it's random finding, when i realise this project have github then i don't know where to give information so i sent here. Well, that is part of my job as bug hunter .
Looks like that one already fix.
Thanks
Nan


Week2

Added a description file for the package, separated one of the functions (validate_user_response) in a separate file and wrote a test for that.

Good descriptions! At least for the parts you've more or less finished, the descriptions are clear. Package/function descriptions look good to me.


Dr. 1.9 + Archlinux: we've 1.3 + scope 0.10: whole machine dies

Hey guys I imagine you don't get many of these so here it is I have a so-called showstopper bug. My entire system collapses everytime I run we've and/or weave plus scope and I'm going to test to find out if there is a combination that likes or doesn't like right now but I wanted to let you know because it's a full system crash mouse stops responding everything dies. Talk to you guys soon!

Hi Jacob; not much to go on here; I suggest issues like this are handled via the<EMAIL_ADDRESS>group, where we can more interactively help you with these kind of problems.


Removed allowed failures on Travis

Travis macos image seems to have been fixed so we shall not allow those builds to fail anymore.

This is uncontroversial. Let's merge this.


Syntax error in require.js

Description
Trying to port an iOS app over to Android via React Native. React version is 15.4.1.
Reproduction
react-native/packager/react-packager/src/Resolver/polyfills/require.js: Unexpected token at require.js (25:31)
This is the line that's causing it to freak out
type HotModuleReloadingData = {|
acceptCallback: ?HotModuleReloadingAcceptFn,
accept: (callback: HotModuleReloadingAcceptFn) => void,
|};
Solution
Additional Information

React Native version:  0.39.1
Platform: Android
Operating System: Mac OS

Tried a fresh app with react-native init, same error. Weird.

Tried spinning up a new project with react-native init AwesomeProject...I got the same error. Which is weird because it appears to be looking for react-native in the same place, that is, in the other project.

Figured it out. Just had to restart the packager.


Downloading Private Key as .pem

The documentation for Azure Key Vault has the following line:

When a Key Vault certificate is created, it can be retrieved from the addressable secret with the private key in either PFX or PEM format.

From reading over the docs for Azure Powershell, Azure CLI, and the Key Vault REST API, I can't find any parameters that would let me specify the output format of the secret in question, and when I've tried to download it, the result is in the PKCS12 (pfx) format. Is it possible to actually retrieve a secret in PEM format?

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

ID: 962e9ebe-e97f-7a56-03a4-33662454bdfe
Version Independent ID: 7fda1b8c-67e2-a304-1f17-bfd5a0422766
Content: About Azure Key Vault keys, secrets and certificates - Azure Key Vault
Content Source: articles/key-vault/about-keys-secrets-and-certificates.md
Service: key-vault
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@pemj  Thanks for your feedback! We will investigate and update as appropriate.

@pemj please refer to this thread : https://github.com/MicrosoftDocs/azure-docs/issues/14761
As your issue in regards to getting a .pem file from keyvault is addressed there.

If I'm reading that thread correctly, it recommends downloading a PKCS12 formatted cert and then using openssl to reformat it into a PEM cert.  That's already what I'm doing to work around not being able to retrieve a PEM file from azure key vault. If that's the recommended solution, then it sounds like docs need to be modified to indicate that PEM certs are not actually a supported output format.


[Java Client] Remove invalid call to Thread.currentThread().interrupt();

Motivation

Thread.currentThread().interrupt() shouldn't be called when handling a PulsarClientException.

it must only be called when handling an InterruptedException.
this looks like a copy-paste bug introduced in
https://github.com/apache/pulsar/pull/731/files#diff-d6fcf8aa2d0035cc386dca0942a452343d6854763c7fd397efa4e660c0069767R1183

Modifications

remove call to Thread.currentThread().interrupt()

That's definitely a bad place to Interupt the current Thread.

While it's wrong, it shouldn't be too bad :) . The interrupt will just flip the flag so that any blocking call can use that as a way to stop the wait.


TAJO-1860: Refactor Rpc clients to take Connection Parameters.

I've updated the jdbc documentation.
http://people.apache.org/~hyunsik/TAJO-1860/jdbc_driver.html

I fixed bugs and reflected your comments.

+1 Looks good to me


Fix encoding issue introduced by #956

#956 changes the implementation of Mail::Utilities#to_lf and #to_crlf to use String#encode for better performance.
The variant of String#encode used translates the string to Encoding.default_internal.

The last form returns a copy of str transcoded to Encoding.default_internal.

In most rails apps this is set to "UTF-8". This can result in the encoding of the string being different than expected after being passed through these methods.
Instead, let's use the second form of String#encode in which we specify the encoding used is the same as the input string.
Benchmark shows no degradation in performance:
CRLF = "\r\n"
CRLF_REGEX = Regexp.new("(?<!\r)\n|\r(?!\n)")

string = "\n\r\n\n" * 10_000

Benchmark.bm do |x|
  x.report('encode last form:') do
    10_000.times do
      string.encode(:universal_newline => true).encode!(:crlf_newline => true)
    end
  end

  x.report('encode second form:') do
    10_000.times do
      string.encode(string.encoding, :universal_newline => true).encode!(string.encoding, :crlf_newline => true)
    end
  end
end

results:
       user     system      total        real
encode last form:  9.240000   0.410000   9.650000 (  9.706578)
encode second form:  8.950000   0.230000   9.180000 (  9.218603)

Nice catch! Thanks @kjg


Kafka callback

It would be nice to have a kafka version of the bluesky.callbacks.zmq system.
Expected Behavior
Our current ZMQ things but kafka (with guaranteed delivery)
Current Behavior
We only have ZMQ, which can drop documents on the floor.

PR #1209 addresses this issue.

As noted in #1209 this work is being done in a separate repo so it is not bound to the bluesky release cycle. See https://github.com/bluesky/bluesky-kafka.


Activities augmentation pipe

This pipes expands the value of the activities list using the OA official Activity List.
It leaves anything with its own inScheme alone, but otherwise:

If there are activities with no ids, but they have labels present in the Activity List, it fills in their ids
It gets the broader activities for anything in the Activity List and adds them
It searches the name and description of the event for labels from the Activity List and adds new activities if found

 Data enhancement pipes


Support rediss-schema

@codingjoe you are right, but I did not finish working on this PR and did not elaborate properly (thus wrong description/title).
I am referring to the way Heroku (and a couple of other providers) work with rediss schema:
They do require disabling the certificate validation - https://devcenter.heroku.com/articles/connecting-heroku-redis

Please use redis' native parse_url function and override the single parameter. I would also suggest injecting the value of the parameter via an environment variable, since this is a Heroku problem.

Yeah, my initial attempt of doing so failed, as it "magically" uses different connections based on the schema provided.


Action sometimes not outputting any results

Issue
Dynamic Badges Action sometimes does not create the gist.
Example
A workflow that I used that gave me this problem was this.
What I expected to happen

Create 5 new gists for each of the Python versions with the message "Testing"
Perform tests on each of the Python versions
Overwrites the message of the previously create gists either with "Success" or "Fail' depending on the test result

What actually happened

Only 2 new gists were created
All the tests were performed
Only 1 of the created gists was overwritten. 2 new gists was created. So I am left with 1 gist with the message "Testing" and am missing 1 more gist that I expected

Workflow outcome
Only the gists that were created showed a response output in the logs. The first image below will be the overall workflow progress. Everything checked out just fine. The subsection to this will show screenshots of the responses to Step 1, where only 2 steps produced a non-nil result.

Fig 1. Overall workflow result
Result of Job 1 of the workflow
After Job 1, only badges for Python 3.8 and 3.9 were displayed correctly.
Action producing no results

FIg 2. No result in logs for Python 2.7

Fig 3. No result in logs for Python 3.6

Fig 4. No result in logs for Python 3.7
Action producing results

Fig 5. Non-nil result in logs for Python 3.8

Fig 6. Non-nil result in logs for Python 3.9
Result on the README file

Fig 7. One gist is still missing and another has not been overwritten with the results of the tests
Discussion
I am not sure as to what might be the problem, but if I were to make a guess it would be that these processes might have been too rapidly executed, causing some unexpected hiccups.
Temporary solution
Only a few gists were not created, so it is possible for me to make use of the general idea to manually write gists for the badges with the corresponding `correct' values.

Thank you for the report! Before we look deeper into this, three things which come to my mind:

The action does not create the gist, this has to be done manually beforehand. It just creates the "file" in the gist.
I think concurrent updates to one gist may fail. You could try to setup one gist for each job!
If this doesn't help, you could try using @master instead of @1.0.0 as this will contain #3 which adds printing error messages.

Thank you for replying!

I miswrote, it is not the gist that is not being created, it is that sometimes the file within the gist that is not being created by the action.
I actually did that before by having 1 job for 1 gist file creation within the whole workflow (that meant that my first job was split into multiple jobs) and it worked without a single failure. The only problem though however, was that I had to write out the jobs explicitly and I could not make use of the matrix feature, which I felt was a shame.
I will try using master and v1.1.0 and read the logs and hopefully figure out what might the actual problem is!

With the master branch of the action, the failures are much more verbose and I can finally see that the issue really is due to the rapid POST requests sent to the GitHub server.

Fig 1. Error 500 for when trying to create files in the gist.

Fig 2. Warning received to wait out for available resources.
When there is a push to the branch, there should be ~120 POST requests to generate a (unique) file in the gist but clearly it is too much and a gate is probably set in place to guard against such `attacks'. This is probably why some workflows are asked to wait for resources to be available before being able to proceed.
I will try a different workflow, where the creation of gist files are more `'paced' and see if there is a positive impact overall.

I think I will close this. If there's anything which can be improved on the Action's side, please let me know :)

Yep, I tried various things but I doubt there's anything I can suggest to improve it to fix the issue. I'll let you know if I find something out.


Improve Pull request template

Thank you for contributing! Please check the following things before submiting your PR:
Required:

[x] I have read and followed the contributing guidelines

If necessary:

[ ] I have updated the README and documentation.
[ ] I have updated the ChangeLog with the changes I have made.

Description
Improves the Pull request template to be more informative and structured.

Closes #

Note: we will close your PR without comment if you do not check the required boxes above and provide ALL requested information.

@Andre601 Please resolve the changes I requested.


[database] morris/lessql

NotORM and LessQL offers slightly different style of DB access than major league players has.
I personally highly recommend them to use for small to medium projects and for prototyping purposes.

Thanks for the suggestion.


RDK-31414 Display Settings Thunder events and methods

RDK-31414 Display Settings Thunder events and methods
Reason for change: Display Settings Thunder  methods for framerate get and set
Test Procedure: Build and Verify.
Risks: Low
Signed-off-by: Ranjithkumar<EMAIL_ADDRESS>

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


FAB-18529 added null check in channel header parsing

Type of change

Bug fix

Description
Fuzz testing has reported SEGV while sending incomplete/null
message request to orderer.  When the submit request payload
is null, the orderer fails with SEGV while trying to parse/read
the channel header.
Signed-off-by: Parameswaran Selvam<EMAIL_ADDRESS>

Seems you need to fix test
--- FAIL: TestProcessSystemChannelNormalMsg (0.00s)
    --- FAIL: TestProcessSystemChannelNormalMsg/Missing_header (0.00s)
        systemchannel_test.go:56:
            	Error Trace:	systemchannel_test.go:56
            	Error:      	Expect "error retrieving channel header: Invalid envelope payload. can't be nil" to match "header not set"
            	Test:       	TestProcessSystemChannelNormalMsg/Missing_header

additional check was caused the unit test failure. It was redundant. corrected it now.

@Mergifyio backport release-2.3

@Mergifyio backport release-2.2


Expect KeyError, but raised AttributeError in client.py def contains(self, item)

this is my code

job = service.jobs.create(query_to_run, *_kwargs_search)
while True:
job.refresh()
stats = {
"isDone": job["isDone"],
"doneProgress": float(job["doneProgress"])_100,
"scanCount": int(job["scanCount"]) if "scanCount" in job else 0,
"eventCount": int(job["eventCount"]) if "eventCount" in job else 0,
"resultCount": int(job["resultCount"]) if "resultCount" in job else 0
}

and this is the stack

File "/Users/ukison/sqbu-github.cisco.com/ukison/debug-tools/splunk/GetSplunkResults.py", line 95, in getSplunkResults
"scanCount": int(job["scanCount"]) if "scanCount" in job else 0,
File "/Library/Python/2.7/site-packages/splunklib/client.py", line 885, in contains
self[item]
File "/Library/Python/2.7/site-packages/splunklib/client.py", line 928, in getitem
return getattr(self, key)
File "/Library/Python/2.7/site-packages/splunklib/client.py", line 923, in getattr
raise AttributeError(key)
AttributeError: scanCount

We've just merged a fix to the develop branch. It will be out in the next release.

hi @shakeelmohamed
do you know since what version of splunk python sdk is this fix available?

@duxing hi, the fix has been available since v1.6.1. See this commit: https://github.com/splunk/splunk-sdk-python/commit/70981e8f294ba78cd2537920813c8ccb0be4ab00

@shakeelmohamed thank you very much!


Strange star names  as Barnard's

I don't think the "'" in the name of the star is usable. When I upload the file with the name  Barnard's it complains, I had to rename it back to  Barnards

I think only Barnard is not happy with this decision. Are there any other cases?
I'm a bit confused why it doesn't work. Where do you see an error?

I see the error when uploading the file to the website. The error message is always the same:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's', '', '3278','51',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,' at line 2
I guess this line 2 is where the MySQL input string is inserted, and since it has a "'" it complains....

Ahh yes, I think this is again a problem on escaping the characters on the client side. So let's omit all "'".


python-f5-openstack-agent init.d script of deb package points to wrong path

OpenStack Release
Mitaka
Description
Using python-f5-openstack-agent_9.0.2-1_1404_all.deb
The script /etc/init.d/f5-oslbaasv2-agent has the following variable:
DAEMON="/usr/local/bin/${NAME}"
and it should be
DAEMON="/usr/bin/${NAME}"
Agent Version
ii  python-f5-openstack-agent            9.0.2-1                                all          F5 Networks Agent for OpenStack services
Operating System
Mirantis 9.0

Could you please try the attached file to see if this is better?  I don't have a debian setup other than devstack.
f5-oslbaasv2-agent.gz

This link is probably more convenient.
https://github.com/richbrowne/f5-openstack-agent/blob/issue-304/etc/init.d/f5-oslbaasv2-agent

Hi again
I had further feedback wrt this.
As I mentioned before the new version of the init.d script starts/stops correctly the agent but I find that after the agent is stopped the agent is still listed in "neutron agent-list" and it is listed as not alive. Is this expected?
If I start again the agent, it gets the status alive again.
If this behavior is expected, how can I clear an stale agent from the neutron's agent list? ie, in the following example you can see the first LBaaSv2 agent which is stale and a second one which is running just fine.
root@node-2:/etc/init.d# neutron agent-list
+--------------------------------------+----------------------+--------------------------------------------------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type           | host                                                   | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+----------------------+--------------------------------------------------------+-------------------+-------+----------------+---------------------------+
| 0b4fd05f-76ca-482f-acef-2a0415a4a901 | Loadbalancerv2 agent | node-2.domain.tld:28d5268a-6b32-59f2-81bd-f33726010839 |                   | xxx   | True           | f5-oslbaasv2-agent        |
| 12ad3c94-6f2a-44e2-9e43-2a625640b396 | Metadata agent       | node-2.domain.tld                                      |                   | :-)   | True           | neutron-metadata-agent    |
| a60a54a0-7648-4b85-8e2c-d0f1feacb304 | Open vSwitch agent   | node-2.domain.tld                                      |                   | :-)   | True           | neutron-openvswitch-agent |
| a6b34875-f5e6-498c-ad6f-ccec467f5a9e | Open vSwitch agent   | node-1.domain.tld                                      |                   | :-)   | True           | neutron-openvswitch-agent |
| c49a7ac4-2815-4c07-9f5f-87ac7b55d39d | DHCP agent           | node-2.domain.tld                                      | nova              | :-)   | True           | neutron-dhcp-agent        |
| dcd6ac77-547f-4b8a-a5c9-2b2a4537504e | Loadbalancerv2 agent | node-2.domain.tld:707729b3-3e0c-53fe-88b4-f74911b02101 |                   | :-)   | True           | f5-oslbaasv2-agent        |
| f00f52ee-4031-4402-8b6e-0c3025d5e22a | L3 agent             | node-2.domain.tld                                      | nova              | :-)   | True           | neutron-l3-agent          |
+--------------------------------------+----------------------+--------------------------------------------------------+-------------------+-------+----------------+---------------------------+

Many thanks


Make "Field Options" input required for type "Selectbox"

Summary
For settings with the "Selectbox" type, the "Field Options" field must be required, otherwise an empty list is displayed for the user.
And if you set only value of the field, then the logic of the list itself is lost.

Expected behavior
"Field Options" field must be required
Environment
ClientConfig 2.3

This can be solved in a crooked way, replace the name: 'options' block in the grid with:
{
xtype: 'textarea',
id: config.id + '-options',
name: 'options',
fieldLabel: _('clientconfig.options') + '*',
description: _('clientconfig.options.desc'),
allowBlank: (config.record && (config.record.xtype === 'modx-combo')) ? false : true,
anchor: '100%',
hidden: (config.record && (config.record.xtype === 'modx-combo')) ? false : true,
value: _('clientconfig.options_default')
}

And in the clientconfig.options_default lexicon set Yes==1||No==0.
As a result, we have an example for the lists for the user, which is convenient. However, for non-lists, the options parameter is not empty.
@Mark-H What do you think, should I do PR or are these corrections not particularly useful? Or is there another solution?


Switch Stackdriver sink to grpc-based Stackdriver API

This PR together with #1907 lowers Heapster maximum resource usage by 60% CPU and 25% memory (tested over 2 hours on GCE, 100-node cluster with 3k running user pods).

This change is

@pongad
Can you take a look?

/retest

/retest


question

Hello. I have a server running Bind as an authoritative DNS server for exampledomain.com let's call it server A. My idea is have another server with dnscrypt-proxy but acting as a server/gateway to server A so all queries to exampledomain.com will be forwarded and encrypted to dnscrypt-wrapper on server A and then locally to Bind. For example:
Web -> Server B (dnscrypt-proxy) -> Server A (dnscrypt-wrapper) -> Server A (Bind)
I have tested and it's working fine, but is this setup secure? Thanks.

I'm not sure that such as setup provides anything over simply running BIND on Server B and using TSIG.
This is okay from a security standpoint, but every single query will requires a round-trip between Server B and Server A. Even invalid queries and queries for others zones will be forwarded.
Whereas running BIND on Server B will only transfer between A and B after a change was made.

Well I thought about this solution because I don't want server B to modify anything on server A, is just a gateway. So if server B gets compromised it wouldn't do much damage besides some offline time. And since I can't setup Bind to be just a forwarder without allowing recursion I think this is the only way. This wouldn't be possible without your tool so I really appreciate your work on DNSCrypt-Proxy. Thanks.

If you declare the zones you want to serve as slaves, BIND will serve them without modifying anything on server A, and without requiring recursion.


resume DreamBooth training

is there a way to resume training? sometimes colab disconnects before 2000 steps

the script doesn't offer that option unfortunately


fix the WEB client

Describe the bug
Fix WEB Client, for when the ANDROID client stops working

Is this related to "the following content is not available" error we're suddenly experiencing when trying to download the video?

If this is happening to you, update to the latest version of pytubefix


(feature) Add Support for Multiple External Gateways

Per the https://mail.openvswitch.org/pipermail/ovs-dev/2021-January/379446.html patch, OVN soon will support multiple l3dgw ports per logical router. Given this, it would be extremely useful to support multiple external gateways.
The end goal of this feature request is to support multiple ovn-external-gw configMaps (or a single configMap for the multiple external gatways) in order to leverage multiple underlay network subnets (see example below).
Example:
Underlay Subnet 0 (<IP_ADDRESS>/24) is accessible via eth1 interface on worker00
 apiVersion: v1
 kind: ConfigMap
 metadata:
   name: ovn-external-gw-config0
   namespace: kube-system
 data:
   enable-external-gw: "true"
   type: "centralized"
   external-gw-nodes: "worker00"
   external-gw-nic: "eth1"
   nic-ip: "<IP_ADDRESS>/24"
   nic-mac: "16:52:f3:13:6a:25"

Underlay Subnet 1 (<IP_ADDRESS>/24) accessible via eth1 interface on worker01
 apiVersion: v1
 kind: ConfigMap
 metadata:
   name: ovn-external-gw-config1
   namespace: kube-system
 data:
   enable-external-gw: "true"
   type: "centralized"
   external-gw-nodes: "worker01"
   external-gw-nic: "eth1"
   nic-ip: "<IP_ADDRESS>/24"
   nic-mac: "16:52:f3:13:6a:26"

Underlay Subnet 2 (<IP_ADDRESS>/24) accessible via eth1 interface on worker02
 apiVersion: v1
 kind: ConfigMap
 metadata:
   name: ovn-external-gw-config2
   namespace: kube-system
 data:
   enable-external-gw: "true"
   type: "centralized"
   external-gw-nodes: "worker02"
   external-gw-nic: "eth1"
   nic-ip: "<IP_ADDRESS>/24"
   nic-mac: "16:52:f3:13:6a:27"

Thank you for all the great work you do in maintaining this project!

The upstream still doesn't support multiple external gateway, close the stale issue.


How to refresh NERDTree root node via a command?

Is there a way to refresh the root node tree without the NERDTree window/buffer opened? i.e. some kind of command that we can map to a key?

Would love to have this too!!

Currently using vimfiler and it works great. It also supports this feature.

I'm not really looking to move away from NERDTree. It does everything I need and I make heavy use of both bookmarks and NERDTreeFind.
My only issue is that NERDTreeFind does not take an argument, like NERDTreeToggle. So, I can't open a tree with a root in a given directory and highlight current file within that tree's hierarchy.
To get around this issue, I'm using:
exec 'NERDTreeToggle ' . b:nerdtree_root
exec 'NERDTreeClose'
exec 'NERDTreeFind'

But, it is obviously a less then idea solution. I was hoping @scrooloose would be able to advice on a better approach…
PS: Just in case anyone is interested, here is the full code for what I'm doing: gist:06511ed246ff63e2e428

I custom a map to do this:
nmap <leader>rn :NERDTree<cr> \| R \| <c-w><c-p>

Just get to the NERDTree and do the refresh then jump back to previous window

@lingceng thank you

Gentlemen, in the latest version (pushed just now) you can do:
:call g:NERDTree.ForCurrentTab().getRoot().refresh()
Let me know if there are issues - its 0200 here, so issues are possible :)

@scrooloose Thanks for this. Just FYI, it seems a lot slower than my current workaround, which is this;
" Refresh NERDTree pane
nmap <leader>nr :NERDTreeFocus<cr> \| R \| <c-w><c-p>

If I replace the "R" part with the new :call function, it seems to take a lot longer for the NERDTree pane to update - a few seconds, versus less than a second with 'R'. I tested this by touching and removing a file from outside of vim, then forcing the pane to refresh.

For anyone seeing this on 2016, this worked for me:
autocmd CursorHold,CursorHoldI * call NERDTreeFocus() | call g:NERDTree.ForCurrentTab().getRoot().refresh() | call g:NERDTree.ForCurrentTab().render() | wincmd w

Enjoy!

nmap <Leader>r :NERDTreeFocus<cr>R<c-w><c-p>


test with ruby 3.3

Backported to radjabov in commit 254c570bd02f34f55dd3594c903174dea6e8918b.
commit 254c570bd02f34f55dd3594c903174dea6e8918b
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Tue Nov 5 16:52:17 2024 -0500

    Merge pull request #38 from kbrock/ruby3.3

    test with ruby 3.3

    (cherry picked from commit f7f5e562f7699f9bea931ceb14fb250c6dde3c58)


Add recursive deletes for BlobContainers and fix Snapshot Deletion

This improves the snapshot deletion process making sure all files are removed when a snapshot is deleted. The problem was discovered while porting over https://github.com/elastic/elasticsearch/pull/43281.
It is based on the following steps:

Add recursive deletes based on https://github.com/elastic/elasticsearch/pull/43281 implementing blobContainer.delete() to simplify the deletion process.
Adding assertions for the Snapshot tests to make sure all files are removed.
Adapt the relevant parts of the BlobStoreRepository according to the state of https://github.com/elastic/elasticsearch/pull/46250/.

Summary of the changes / Why this improves CrateDB
Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

Do we need a release note entry for this?

i thought about the same, I am not sure. What do you think ? Technically we fixed a bug.

Do we need a release note entry for this?

i thought about the same, I am not sure. What do you think ? Technically we fixed a bug.

I'd suggest to add one.


Cant sign in to my Azure resource from Bot Composer when i set up LUIS for my bot

Hi @Ncane-bit, thank you for raising this. We are investigating this issue.

Hi @Ncane-bit
Are you using composer version 2.1.2? if so, could you please uninstall it and install the previous version of Composer version 2.1.1 to see if you are still getting this error?
Download Composer version 2.1.1 Here and try to log in again.
Let me know if this worked. Thanks

Hi @ramfattah
yes i was using v2.1.2 i just unistalled it,i'm installing v2.1.1  i'll let youknow if this fixes the issue

Sounds good, thanks

Seems like it's been fixed, thank you...
So if i update Composer to the latest version is it not going to give me the same issue again?

There are several known sign-on issues in the latest composer version. For now, using 2.1.1 is a workaround.

I am closing this one for now, @Ncane-bit please feel free to re-open if you are still having issues.

Thank you @ramfattah you may close it.


BehaviorSubject with publish and refCount - next is called only for first subscription

Bug Report
Reproduction

REPL or Repo link:
(you can use https://stackblitz.com/ to create one to attach here)

import { of, zip, interval, merge, BehaviorSubject } from "rxjs";
import { map, publish, refCount, tap } from "rxjs/operators";

const source$ = new BehaviorSubject(1).pipe(
  map(x => {
    console.log('map called', x)
    return x + 1
  })
);

const s = source$
  .pipe(
    publish(),
    refCount()
  )

s.subscribe({
    next: (x) => console.log('1 = ', x)
  });

s.subscribe({
    next: (x) => console.log('2 = ', x)
  });

source$.next(2)
source$.next(3)

Current Behavior
map called 1
1 = 2
map called 2
1 = 3
2 = 3
map called 3
1 = 4
2 = 4

Expected behavior
map called 1
1 = 2
2 = 2
map called 2
1 = 3
2 = 3
map called 3
1 = 4
2 = 4

Environment

RxJS version: 6.4.*

Additional context:

Hi @srghma. The behavior you're seeing is correct for the given operators. The publish operator inserts a Subject between your two destination subscriptions and the BehaviorSubject source.
When the first source subscribes, refCount connects this intermediate Subject to to the source BehaviorSubject, which then produces the first value you see.
When the second subscription occurs, refCount has already connected the intermediate Subject to the BehaviorSubject source. Since the first subscription is still active, it does not resubscribe the intermediate Subject to the source BehaviorSubject (this functionality is where the "refCount" operator gets its name).

@trxcllnt

@srghma You can get the behaviour you appear to be looking for by using publishReplay(1) in place of publish.

tnx, @trxcllnt @cartant , publishReplay works


floats: add SameScalars to compare two float64 values with NaN == NaN.

What
floats/floats.go has a function
// Same returns true if the input slices have the same length and all elements
// have the same value with NaN treated as the same.
func Same(s, t []float64) bool {
...}

I would like to add there a function SameScalars which does the same for scalar inputs:
// SameScalars returns true if the inputs have the same value with NaN treated as the same.
func SameScalars(a, b float64) bool {
	return a == b || (math.IsNaN(a) && math.IsNaN(b))
}

Rationale
Such a function will be useful for unit testing functions which are expected to return NaNs for some inputs.
Updated proposal
Rename Same to AllSame (breaks code) and call the new function Same.

A counter naming proposal would be to rename Same to AllSame and call the new function Same.

That makes sense, but what about backwards compatibility? Do we know how much code outside Gonum would this renaming break?

It's something that we need to consider, but we are prepared to break people for a better API while we haven't stabilised the API (we are pre-v1).

This is a comment for #1407, but here because this is an API discussion.
For consistency, I would suggest (and this is why this needs more discussion) changes for the slice equality functions.
This is much more invasive, but I think also more indicative of what is happening.
Unfortunately, the package name is overloaded. The equivalent packages in the standard library are bytes (and by extension strings where a string is effectively a const []byte). The bytes package is like the floats package parts that deal with []float64. We also have floats doing things with the single element. This means that the bytes.Equal model doesn't work since we are not now necessarily saying are the collections of ~bytes~ floats equal in all cases (the various approximate equality tests that we have don't make it clear from the name that they are talking about single float values).
/cc @btracey @vladimir-ch @sbinet

The current API is already inconsistent, because EqualApprox takes slices, but EqualWithinAbs takes single values.

Yes, that's part of what I suggesting be fixed.

Ah, right. Sorry.
There isn't that much time till August, so others' comments are more then welcome :)

The real time is a week or so after the release of Go1.15, so probably after August.

Great. So, I personally am for renaming everything now to make things consistent. Better than half-measures.

I think we should keep Equal as is, and either move or rename the ones involving scalars. As you mention, the package is floats and has the core type of []float64. EqualWithinAbs and friends were mostly added to support EqualApprox. I don't really see why we would have AllEqual, when all of the other functions implicitly apply to all of the elements. I would recommend something like having a floats/scalar package, where we put SameScalar (now scalar.Same), as well as EqualWithinAbs,  NanWith, etc.
That keeps floats as dealing with []float64, and has a new pacakge that conceptually deals with "tricky scalar operations"

Yeah, fair enough. The other option is to call it float though the spelling closeness to floats pretty much blocks that. .../floats/scalar works for me. There is a cognate split that has to happen for cmplxs which mirrors floats. Any suggestions for that?

Won't the functions operating on scalars be used most often? They should be in the top level package, and the vector functions in the subpackage, IMHO.

ping

I'd argue that the vectory things are more commonly used.
@btracey Do you have a suggestion for a reasonably name for the cmplxs cognate of floats/scalar?

OK, then let's have floats and floats/scalar. Do we need to fix the name for cmplxs before I can proceed with floats?

I'd prefer that it all happen in one PR for catching consistency errors.

One idea is just to have cmplxs/scalar . It's not the best with goimports, but would be fine code wise. Another is to do cscalar. I think that the complex versions will be a lot less frequently used, so if we're going to choose it's better to make the floats one "nice"

Yeah, I was thinking ".../cmplxs/scalar" or ".../cmplxs/cscalar" too. The only issue is that complex values aren't scalars; though I think maybe I just need to leave that pedantry behind. If we go this route, I would prefer "cscalar" since it catches bugs better.

Agreed with cscalar

OK. I'll get to this later today.

Closed by #1418.


[bug] repeater placement crash

placing a repeater where the player stands after connecting 2 redwire posts crashes the game
recreating details:

all tries was in creative
I was always close to the 2 redwire posts
breaking the 2 rewire posts prevents the crash
tried 1 redwire post (did not crash)
never tried 2 unconnected posts, they were always connected

versions:

morered <IP_ADDRESS>
forge 43.2.12
minecraft 1.19.2
java 1.8.0_361
Windows 10 Pro

crash report:
The game crashed whilst unexpected error Error: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.block.state.BlockState.m_60812_(net.minecraft.world.level.BlockGetter, net.minecraft.core.BlockPos)" because "placeState" is null
there were no other mods at all, I made a new profile just to test this bug

Fixed in 1.19.2-<IP_ADDRESS>


Write a C program to calculate the combination of n objects taken r at a time

Description
Write a C program to calculate the combination of n objects taken r at a time
Combination is a selection of objects from a group such that (unlike permutations) the order of selection does not matter. The number of combinations on n objects taken r at a time is given by the formula n!/(r!(n-r)!) = n(n-1)(n-2)...(n-r+1)/r!
Input  : 5, 2
Output : 10

How to contribute

Save the solution in program/CalculateTheCombinationOfNObjectsTakenRAtATime.c file
Add CalculateTheCombinationOfNObjectsTakenRAtATime.c file in calculate-the-combination-of-n-objects-taken-r-at-a-time folder

!assign

Completed the task #2856 Please review and merge it


Question: Support for params with mailer#show

Hi!
We have been enjoying better_mailer_previews at @backerkit, thank you for the gem.
We started using BMP for a bit of an "off label" use, and I was wondering if you would be interested in supporting a small revision to let us lean into it a bit more.
We have found that enabling BMP in production, behind a "staff" guard, has been a super useful tool for allowing non technical team members to stay up to date with the current copy of the various emails our app sends.
We recently implemented a feature that allows staff to write an email to get sent to users.  We started to pass a param to the mailer preview URL, which let us "select" which record to use to back the mailer preview.  This currently works if I link straight to the rails preview version of the URL, but it does seem like BMP is caching the calculated paths somehow which is preventing this from working in a production env.
Would you be open to a PR that just passed along the params to the iframe, if they are present?

Hey i'm stoked that you're using BMP and finding it useful!
I'm definitely open to a PR, if you're happy to put it together I can jump onto it and turn in around quickly.
I get the feeling you want to be looking in app/controllers/better_mailer_previews/mailers_controller.rb, specifically in the show action where I'm constructing the URL path, and I can see I'm not passing through params.
Can you expand on this a bit more for me? Just out of curiosity, I'm wondering what's going on here:

We recently implemented a feature that allows staff to write an email to get sent to users. We started to pass a param to the mailer preview URL, which let us "select" which record to use to back the mailer preview. This currently works if I link straight to the rails preview version of the URL, but it does seem like BMP is caching the calculated paths somehow which is preventing this from working in a production env.

And how did you end up implementing a staff guard?
Thanks!

I've just released v1.0.3 of this gem which should correctly pass through query params 👍


Not formatting correctly

I have tested printing on my printer and the examples and the formatting must not be working correctly. It will leave this BBBBBBBB at the top. Also when I try to add bold text it just adds a letter before the word.

@ConnorsApps have you any solution for your problem ??

No but I have used the star printing API instead of this I never solved that issue

@ConnorsApps i didnt find any sample for star printing API in swift 3.0

@barankaansert This helped me http://www.starmicronics.com/supports/developer.aspx but their api is a little confusing and I would suggest contacting them directly if you need help with using their swift API.


Chain of endorsement - assumptions and open questions

[ ] Q: [Endorsement chain]: How do the transport document compose with endorsement chain signatures?

Assume that T owns the transport document Doc and wants to sell it on to E. In the physical world, T and E both signs the back side of the Doc and then E takes the document with them.
The question is how this to be reflected in the digital world?

Should T modify Doc to state that E is the new owner and then sign that?
Should T sign some form of statement "I known Doc and have agreed to passe it on to E on date X"?

Either way, how do we reliably restructure the Endorsement chain so we can tell that E is the true owner of the contents (and that T did not sell Doc twice)?  I think we are missing some concrete format that is covered by a signature but still machine readable to ensure it can be validated easily.
Proposal:
I think we should look at this from two angles that should be supported side by side.

The Endorsement chain link is an unstructured blob:  This occurs for any physical BL / TD that is converted into an electronic version (e.g. by scanning the physical version into a PDF/zip of images). The advantage of this is that it works for anything but at the cost of requiring human verification (i.e. the system can validate the signature of the blob but a human is needed to validate it and extract structured format from it).
The Endorsement chain link is in a structured format: This happens for any endorsement chain links where the BL / TD are electronic but also for further updates in an Endorsement chain that that has been converted from physical to electronic format. In this format, we can machine validate the link 100% enabling automation for all parties involved.

Both variants need to be signed.
The structured Endorsement chain link format need to assert:
- That this is an endorsement / ownership transfer (can be implicit in the format).
- Who is the title holder (can be implicit from the signature)
- Who is the endorsee. _Does the endorsee need to sign this as well? _
- Legal time of ownership transfer (endorsement_datetime)
- A reference to the previous part of the endorsement chain link (to build the chain).
- The transport document (might be implicit in the above)
- If the endorsee also needs to sign the link, then we need to study this in more detail. Also, there is an open question if / how notary services play into this.

[ ] Q: [Key mgmt]: When a shipper/carrier rotates their key, how will we handle signatures from the old key?

Currently, we only have one public key per party and no "link" from the signature to the public key that signed it.

If you replace the public key on the party object in the IM, then old signatures cannot be validated (as you are now using the wrong key).

If you do not replace the public key on the party object and instead create a new party object with a distinct UUID, then   references by Party ID will keep using the old key even after it has been rotated (i.e. you have to tell every one to stop using the old Party ID as the party will not be using the public key related to that party).

[ ] Assumption: X.509 certificates

Public keys will be based on X.509 certificates.  The standard is well known and ensures we know which signature algorithm is used for signing (as X.509 includes a signing algorithm).

If this assumption does not hold then we should find a model where we can solve all this.  Furthermore, we might need IM changes to store the signature algorithm if the new scheme does not make that a part of the public key OR the signature itself.
If the assumption holds then how does the public key field in the database interact with the PKI/CA model (if at all)?

Note this assumption cannot be invalid if "technology agnostic" also covers the public key/signature algorithm. However, in that case, the spec is inadequate for use in practice (as it does not cover key expiry, key rotation, key revocation, signature algorithms).  Anyone implementing that spec would either de facto be forced to use something like X.509 or "invent their own crypto" (which is the top item on the list of "Do not ever do this if you want this to be secure")

Adding some context:
Our current POC-to-be of the electronic transfer of title at DCSA consists of modelling an endorsement chain as follows:
We assume we have document (a BL) either as a binary blob or a structured document (json). Each time the title is transferred, simply append a signed "endorsement chain link" to it. In practice we would thus build up a collection of files, with the first file being the BL and the subsequent files being endorsing signatures of all the previous files concatenated. This is in essence a replication of the current paper-based process as-is.

We need some way to distinguish the "actual" document from the signature list from the serialized byte stream, so parsers can read the document (to know what it is in it).
   O = Original
   # Transferred once
   T1 = Signed(O, K1)    # O || S1
   # Transferred twice
   T2 = Signed(T1, K2)   # O || S1 || S2
   ...
   Tn = Signed(T<n-1>, K<n-1>)   # O || S1 || S2 || ... || Sn

Given Tn, we must be able to do 2 things:

Validate the signature chain (so we know where each signature starts and ends).
Extract the Original document and hand it to a JSON parser / PDF reader.

The first issue is being able to tell where the original document stops and the signatures starts.  From there, we need to know how to split the remaining byte stream into a list of signatures.

Just to confirm, is it the same underlying document in the chain? As in, do we view it as a O || S1 || S2 || ... || Sn  (where O is the original document, and the S1 etc. are signatures and || being a binary concat operation)?
If so, I think we need to answer the following questions:

Given a bytestream of a document with all of its signatures, how do I know where the original document ends and the signatures start, so I can read the original document (e.g. PDF readers and Json parsers will reject files with the trailing signatures).
Given the bytestream of S1 || S2 || ... || Sn, how do I split it into a list of [S1, S2, ..., Sn] such that I can validate each part of the chain? (Alternative variant can be how do I reliably pop a signature from that string as you always want to read it right-to-left if you validate signatures)


⚠ Bofrost.fr has degraded performance

In 2e475ab, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 2669 ms

Resolved: Bofrost.fr performance has improved in 87f2180 after 6 minutes.


Add new images for microflow loops page

Mx 10 styling update and new loop background colors

@tabakx Thanks a lot for sending us the updated screenshots. I just made some very small adjustments. Please let me know if I can already merge this PR.

Added label 10.5 for this PR via communication with @tabakx over Slack.


XP tracker does not display level properly when 99

The current XP tracker shows that I'm lvl 74 Farming instead of 99 (got 33M xp). Bug how it processes levels?

Check your xp goal settings probably, maybe you have set it to 74 base.

Yes this was the case. Is this intentional behaviour?

Yeah. But I am going to change the functionality to just show current and next level in case you are already over the goal probably as that is what most people want. But, also, then you will never know to clear that super old goal setting :P

This was already resolved, closing.


Text onBlur

Is this a bug or as intended?
onBlur (event) {
  this.props.onChange(this.state.value)
}

Should it be?
onBlur (event) {
  this.props.onBlur(this.state.value)
}

I can make a pull request if you want, not sure if it was done this way intentionally and I am missing the reason why.

It's saving the value when the input blurs, why is this giving you problems?

Password change form, needed to compare two fields onBlur
    const onBlur = () => {       if (this.state.newPassword !== this.state.repeatNewPassword) {         this.setState({errorMessage: "Passwords must match!"})       } else {         this.setState({errorMessage: ""})       }     }
...
        <Field fieldName='repeatNewPassword' fieldType="password" label='Repeat New Password' onBlur={onBlur}                errorMessage={this.state.errorMessage} type={TextWithBlur}                onChange={(repeatNewPassword)=>this.setState({repeatNewPassword})}/>


Remove Infinity in sourceEnd parameter and use default source.length

Fixes bug and tests pass

Thanks! Published as v1.2.3


Add endpoint for Post Device Updates (Single Values to Multiple Streams)

You need to update the library on the particle (spark) web IDE, the one that was there was the initial push. I also added the new endpoint.

@hawesg Thanks for this PR I have been reviewing and will post some comments for changes that will be needed before this can be approved.

@amclain would you be able to assist with closing out this issue? It appears to have gone stale, and would be great to wrap it up.

@kristinpeterson no problem. @netarc and I discussed this PR on Slack; I'm going to merge it.


Incorrect operation of the marker information window

When you open the information window, by clicking on the marker, the information window opens with a double frame effect. It first appears in the initial position, and only then opens above the marker. In the CLUSTERING example, if you click on the marker, the information window sometimes remains in its original position, or opens with a double-frame effect and flickering.
Tested:
android-maps-utils
Sdk34
play-services-maps:18.2.0'
Android Studio HedgeHog | 2023.1.1 Patch2
Xiaomi Readmi Note 10pro, android 13
Samsung Galaxy A50, android 11
ps:
This problem is only on the updated LATEST renderer (play-services-maps:18.2.0')

If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.
@Alexander178 Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

Check the issue tracker - bugs and feature requests for Google Maps Platform APIs and SDKs
Open a support case - Get 1:1 support in Cloud Console.
Discord - chat with other developers
StackOverflow - use the google-maps tag

This is an automated message, feel free to ignore.

Has anyone else noticed this problem?

I am experiencing a similar issue with play-services-maps:18.2.0. When I tap on the marker, the info window appears above it as expected, but when I show it programmatically it appears at the baseline of the marker, over it.

Same here. The information window appears twice, one when clicking on the market and then the second when the camera has finished moving. I attach a video.
This bug happens with the new Google maps render, that is the default render from play-services-maps:18.2.0.
To solve this for now you can use the old legacy render:
MapsInitializer.initialize(applicationContext, MapsInitializer.Renderer.LEGACY, this)
But please fix, the new render will become the default render from January 2025.
https://github.com/googlemaps/android-maps-utils/assets/11565092/63db30d9-c447-40fd-8aa3-2ca568b6cfab


Sorting Nodes

How to sort nodes by name???

Sorry there's no built in functionality for sorting via property in component. However, you should be able to sort the data using js/angular

Were you able to get around this?


Dependency on old ffmpeg releases

Seems that AVStream::codec is declared deprecated in newer versions of ffmpeg-dev (3.2+). Also it seems there are no older versions for download.

It seems this can be overridden on Windows (Visual Studio) by disabling warning 4996 in 'Properties->C++->Advanced->Disable specific warnings' and using  gcc by  -Wno-deprecated-declarations


Feature: suspend Homebridge service, so users can run it from Terminal

Is your feature request related to a problem? Please describe:
@oznu, as you know (see https://github.com/oznu/homebridge-config-ui-x/issues/676), my plugins log extensive debug information to the Homebridge log, to aid me in analysing issues my users might raise.  I really need the full Homebridge log file when running homebridge -D, from startup to the moment the issue occurs.
I appreciate your concerns about sensitive info, and understand you don't want to provide a means to download the full log file.  I'm happy to instruct my users to run homebridge -D manually, capturing the output into a file.  However, more and more users are using hb-service and Homebridge Config UI X and don't know how to ssh into the machine running homebridge.  The tend to know how to access the Terminal from Homebridge Config UI X.
However, they cannot run homebridge -D -U /var/lib/homebridge > homebridge.log 2>&1 from the Terminal as homebridge is already running.
Describe the solution you'd like:
Could you add an option to Homebridge Config UI X to suspend the homebridge service, so a user can run homebridge manually from the Terminal?
Describe alternatives you've considered:
The only alternative I see is a really bad idea: Have my plugins log to a separate file, bypassing Homebridge's log feature.
Additional context:
See also  and https://github.com/homebridge/homebridge/issues/2637.

When running under hb-service there is already an option to toggle -D from the UI (that works on any platform; even windows).
https://github.com/homebridge/homebridge-raspbian-image/wiki/How-To-Enable-Debug-or-Insecure-Mode
Would an option to download the log file be enough (with appropriate warnings about potential confidential information)?
Getting Homebridge to stop I think is a lot of work - since I've programmed hb-service to do the exact opposite (attempt keep it running at all times).

Would an option to download the log file be enough (with appropriate warnings about potential confidential information)?

That was indeed my original request.

In test now: https://github.com/oznu/homebridge-config-ui-x/wiki/Homebridge-Service-Command

Just updated this so the download function strips the asci colour codes. This will make it easier to read the plain text logs.

Also added the ability for a user to "truncate" their log, which they might want to do just before starting a debug run so it's nice and short.

Thanks, mate, really appreciate this!

Just updated this so the download function strips the asci colour codes. This will make it easier to read the plain text logs.

There's still some residual codes.  I would actually prefer the log file to contain the codes: easier to scan visually for errors and warnings.

Also added the ability for a user to "truncate" their log

Is the log file still recycled or truncated automatically?

Is the log file still recycled or truncated automatically?

Yeah at 2MB. 2MB is a lot of log file.


Problem with Aruba PEC

Checklist

[X] I have used the search function to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

App version
8.0b1
Where did you get the app from?
Google Play
Android version
13 Xiaomi MIUI Global 14.0.3
Device model
Xiaomi 11 Lite
Steps to reproduce
Go to on account PEC from Aruba and download the PEC
Expected behavior
download all complete attachments and no "zero" files
Actual behavior
Thunderbird for Android does not download .pdf files, it downloads a daticert.xml file and a postacert.eml file of size zero bytes totally ignoring the attached .pdf files
Logs

Is it possible to provide the full source of the email? You can get this via Thunderbird desktop. Is the PDF contained in the EML file?


Allow you to specific any executable for redirection

I had an idea to write an application that would automatically open links like YouTube in media players so I looked around for ways to set/check default browser in Rust and I found your very well fleshed out project. Good job on this!
I was able to wrench my way in and add support for this feature as well. Here's an example config:
{
    "default_profile": "Firefox",
    "profiles": {
        "Firefox": {
            "browser": "Firefox"
        },
        "mpv": {
            "browser": "Executable",
            "path": "C:/Program Files/mpv/mpv.exe"
        }
    },
    "profile_selection": [
        {
            "profile": "mpv",
            "pattern": "*.youtube.com"
        },
        {
            "profile": "mpv",
            "pattern": "youtu.be"
        }
    ]
}

I'm not very experienced with serde, but I managed to make it error out if you forget the path for the executable, even if it's a bit unspecific:
cargo run -- --debug https://google.com/
    Finished dev [unoptimized + debuginfo] target(s) in 0.11s
     Running `target\debug\bichrome.exe --debug https://google.com/`
12:31:03 [DEBUG] (1) bichrome::windows: attempting to load config from C:\Users\Linus\Code\bichrome\target\debug\bichrome_config.json
12:31:03 [ERROR] failed to parse config: InvalidJson(Error("missing field `path`", line: 10, column: 5))

I don't know if you're interested in having this feature at all, so let me know what your intentions are. I have a MacBook so I could probably write and test the macOS code myself.

Thank you for your contribution! I'd be happy to accept this feature into bichrome -- it's a relatively low surface area, and seems like it would expand utility noticeably (even if I don't know that I'd use it myself).
It would be great if you could add support to macOS as well -- it shouldn't be too much work -- and if you could add some information to README.md and an example to example_config/bichrome_config.json.
As for the code itself, what's the motivation for using String instead of path::PathBuf inside of ExecutablePath()? I think serde supports deserialization into path::PathBuf`.

Thank you for the comments. The reason I went to String before PathBuf is simple: I didn't know that Serde could do it :)
I added some documentation and possible macOS code. I call it possible code, because for some reason the exe doesn't want to run for me so I can't test it myself. It's the same with the mainline code, and probably something wrong on my end (it's a pretty old MacBook).

Perfect, thank you!


[GHSA-8hmh-mhqv-7638] PartialBufferOutputStream2 in GeoServer before 1.6.1 and...

Updates

Affected products
References
Summary

Comments
Updating the link to the geoserver issue tracker, adding maven ecosystem coordinates reflecting projects current best practices.

Many thanks! 👍

any idea on considering this just as bug rather than a security problem? Really it is a complaint about lack of a useful error message ....

Well.... it actually wasn't in our database until I merged this PR. That said the appropriate way to go about getting it de-listed would be to reach out to the assigning CNA which looks to be mitre in this case
https://nvd.nist.gov/vuln/detail/CVE-2008-7227
They have a web form here https://cveform.mitre.org/ that you can file an issue with. If you'd like to give that a try and let me know how it goes we can either reflect their change (hopefully) or we can reconsider this advisory on our end independently.

Thanks, I filled in the form we will see what happens.

Response:

Thank you for contacting us. We have read and understood your comments
about CVE-2008-7227. However, in accordance with our published policy
in the
https://www.cve.org/Resources/Roles/Cnas/CVE-Record-Management-Guidelines.pdf
"Modification of Historical CVE Data" section, the CVE Program will
not be taking any action to modify CVE-2008-7227.

Bleh. Ok, so for the benefit of the historical record can you lay out the case for this not having any security impact? Looking at the issue https://osgeo-org.atlassian.net/browse/GEOS-1747 I see

This may lead to failure to report service exception if the code encoding the output calls flush() before having written the full contents to the output

Which I could read as a vector to expose program memory, but also it sounds like the buffer eventually gets fully flushed anyway. Can you expand on the implications here? Also if you have a fix commit or something that could be inspected that would be great.

I will update the GEOS-1747 ticket to be clear there is no security impact; indeed just no information rather than a helpful failure :P
The changes you have merged describing the maven package affected and so on to bring this up to modern norms still has value.

Q: As a CNA to follow the policy on historical stuff do you need to revert this PR?

My plan (so long as it does look like there is no security impact) is to withdraw the GHSA we have in our system. We have no control over the CVE itself, but by marking the GHSA at withdrawn it will halt dependabot alerts.

Nice, I support your plan. And I learned something :)

Cool. So, I see the ticket is updated. One clarifying question; the buffer which gets flushed only ever has data which is intended to be flushed eventually anyway right? The early flush as described in the bug is only an issue because it's unclear to the caller/receiver that what they're getting is incomplete?

Yes, this setting is part of the low-level “dispatcher” system which predates spring-framework and is unique for this application.
For the majority of these geospatial XML protocols it is obvious that something is wrong because the xml stream that they are parsing gets cut off as they are receiving it.  But when serving large geospatial datasets stream is required as the content will not all fit into memory at the same time…
The service exception for these protocols is a different XML document. So if you have already started producing a document there is no good solutions.
The partial buffer solution recommended is a good compromise, often a problem is visible within the first little bit of streaming. It is rare that some invalid data midway through the answer would cause a “service exception”.
So the partial document is all information the requester expected to see, and was authorized to see, it is just the result is incomplete.

Gotcha. Many thanks for the clarification. 👍
https://github.com/advisories/GHSA-8hmh-mhqv-7638


Showing KVNProgress on table view fails

I'm trying to show KVNProgress on a table view, but have run into some trouble. Check out the picture below to see how it looks like.

Hello @Frohmen, it should now be fixed. #80
Sorry for the late answer.
It will be available in 2.4, until then, you can use the latest version of KVNProgress with this:
pod 'KVNProgress', :git => 'https://github.com/AssistoLab/KVNProgress.git', :commit => '302514b'


Corrupt JPEG data

I am receiving "corrupt JPEG" errors when I POST a base64 payload to the server.  The bizarre thing is that I can paste the same base64 string into a script, performing the same logic and it works just fine.
Here is my code:
            preg_match('/(data:.*;base64,)(.*)/', $imageBase64, $output_array);

            if (isset($output_array[1]) && isset($output_array[2])) {

                ini_set("gd.jpeg_ignore_warning", 1);
                $imageType = $output_array[1]; // data:image/jpeg;base64,
//                $output_array[2]; // base64 data

// fails here
                $image = ImageResize::createFromString(base64_decode($output_array[2]));
                $w = $image->getSourceWidth();
                $h = $image->getSourceHeight();

                if ($w > 100 || $h > 100) {
                    $image->resize(100, 100);
                }

                $resized = base64_encode( $image->getImageAsString() );
            }

So I am stripping out data:image/jpeg;base64, before processing, then I receive this error.
PHP Warning: getimagesize(): Corrupt JPEG data: 214 extraneous bytes before marker in /H:/path/ImageResize.php on line 126
PHP Warning: getimagesize(): Corrupt JPEG data: 214 extraneous bytes before marker in /H:/path/ImageResize.php on line 126
PHP Warning: getimagesize(): Corrupt JPEG data: 7 extraneous bytes before marker in /H:/path/ImageResize.php on line 126
PHP Warning: getimagesize(): Corrupt JPEG data: 7 extraneous bytes before marker in /H:/path/ImageResize.php on line 126
PHP Warning: getimagesize(): Corrupt JPEG data: 103 extraneous bytes before marker in /H:/path/ImageResize.php on line 126
PHP Warning: getimagesize(): Corrupt JPEG data: 103 extraneous bytes before marker in /H:/path/ImageResize.php on line 126
PHP Warning: getimagesize(): Corrupt JPEG data: 327 extraneous bytes before marker in /H:/path/ImageResize.php on line 126
PHP Warning: getimagesize(): Corrupt JPEG data: 327 extraneous bytes before marker in /H:/path/ImageResize.php on line 126
PHP Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Unsupported marker type 0x68 in /H:/path/ImageResize.php on line 179
PHP Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Unsupported marker type 0x68 in /H:/path/ImageResize.php on line 179
PHP Warning: imagecreatefromjpeg(): "data://application/octet-stream;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wB.....9KmcrRsRJpH/9g==" is not a valid JPEG file in /H:/path/ImageResize.php on line 179
PHP Warning: imagecreatefromjpeg(): "data://application/octet-stream;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wB.....9KmcrRsRJpH/9g==" is not a valid JPEG file in /H:/path/ImageResize.php on line 179
PHP Fatal error: Uncaught TypeError: imagesx(): Argument #1 ($image) must be of type GdImage, bool given in /H:/path/ImageResize.php on line 149
PHP Fatal error: Uncaught TypeError: imagesx(): Argument #1 ($image) must be of type GdImage, bool given in /H:/path/ImageResize.php on line 149

The length of the base64 payload is the same if I copy directly into a script or if I POST it, so it isn't a truncation issue, and I have no problems creating image from a string and resizing when the base64 is pasted in.  Any ideas of what could be going on?
Server stats
PHP Version 8.0.13

PHP API | 20200930
PHP Extension	| 20200930

[gd]
GD Version | bundled (2.1.0 compatible)
FreeType Support | enabled
FreeType Linkage | with freetype
FreeType Version | 2.9.1
GIF Read Support | enabled
GIF Create Support | enabled
JPEG Support | enabled
libJPEG Version | 9 compatible
PNG Support | enabled
libPNG Version | 1.6.34
WBMP Support | enabled
XPM Support | enabled
libXpm Version | 30512
XBM Support | enabled
WebP Support | enabled
BMP Support | enabled
TGA Read Support | enabled

It seems to be the internal PHP error and it's same as this bug.
According to the error log, the getimagesize cannot identify your encoded string and the imagecreatefromjpeg function cannot create the correct binary image resource with specific argument.


Date picker accent color doesn't change with theme

Load up the gallery app, and go into components, and then Date Picker. See how the accent colors are purple for CANCEL and OK. Then, change the theme to Dark. Load the Date Picker up again.
Expected:
Not sure, but I don't expect Purple color for CANCEL and OK.
Actual:
Purple for CANCEL and OK

The MD spec has an DatePicker illustrations for the dark theme: https://www.google.com/design/spec/components/pickers.html#pickers-date-pickers.

The spec isn't specific about what colors are to be used:

The selected day is indicated by a filled circle. The current day is indicated by a different color and type weight.

Perhaps we should make the selection color configurable.

The issue I have is more noticeable here:

This is from the material_gallery example app, built from alpha yesterday.  The day-theme picker defaults to blue coloring, regardless of the accent color in the app but it should use the same yellow color.

I created a label for date picker issues.  It probably makes sense to address them all at once.  I should have time later this week or early next week.

I have a bunch of DatePicker fixes in the works right now, should have a PR up today.

Oh, great.


Conflict with prototype js and scriptaculous

I have a script working with jquery, and prototype js and scriptaculous but when i import it into the design, prototype js does not work anymore. I have tried most work around. Is there a solution to this ? I have also asked the question many times on http://almsaeedstudio.com/ without answer.

Sir, I have used AdminLTE template and I am facing same problem of app.js and prototype.js confliction. I want help in this case.
following js are used for modalbox

plz help me out

Hello
It all depends on the kind of conflict you are facing but generally you will have to put jquery in no conflict mode and open app.js and bootstrap.js and other code that uses jquery and put it in noconflict mode with the  second noconflict code


Redesign Research Page

Remove Neumorphism altogether ( Fix color of background and cards)
Remove all code for cite and abstract pop up
Rewrite the code to facilitate abstract and bibtex expansion as shown here

I want to do this.

I want to do this.


RadzenDataGrid with row based drag&drop

Is your feature request related to a problem? Please describe.
I am facing a requirement where it is necessary to drag and drop rows of data grids between data grids and inside the same grid.
Dragging rows (objects) between data grids is not an issue at all, as I am able to define the grid itself as drop area.
Dragging rows inside a datagrid is impossible "from the outside", as I did not find a way to hack it into the rows.
Describe the solution you'd like
This may be solved using the following:

Create an AllowDragDrop property on the RadzenDataGrid
Create an IsDragHandle property on RadzenDataGridColumn
Wrap the grid in a DragAndDropService  and provide a proper interface to handle drags and drops in the data source

Describe alternatives you've considered
A complete new grid would be necessary to achieve that feature.
Additional context

This may have impact on the new virtualization feature, which I did not yet test.
This may have impact on a filtered grid

I wanted to discuss the possibility before doing an implemenetation and providing a PR.

@akorchev if you could give me feedback, I could start with a first implementation proposal

Understood.
I think I found a way to implement it without modifying the underlying RadzenDataGridRow. Its a bit like a workaround but will hopefully work.