BugFix 836e0e4 PR #3293 - TypeError: 'type' object is not subscriptable

Fixing Bug introduced in 836e0e439bc3dc6f9fe91446a1e50bc3efe89e70 @cgarciae - PR #3293 (reviewer: @superbobry)
$ python --version
Python 3.8.10

$ pip freeze | grep jax
jax==0.4.13
jaxlib==0.4.13

$ pip freeze | grep flax
flax==0.7.3

>>> from flax.core.frozen_dict import FrozenDict
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/.local/lib/python3.8/site-packages/flax/__init__.py", line 25, in <module>
    from . import linen
  File "/home/user/.local/lib/python3.8/site-packages/flax/linen/__init__.py", line 34, in <module>
    from .activation import (
  File "/home/user/.local/lib/python3.8/site-packages/flax/linen/activation.py", line 21, in <module>
    from flax.linen.module import compact
  File "/home/user/.local/lib/python3.8/site-packages/flax/linen/module.py", line 68, in <module>
    from flax.linen import kw_only_dataclasses
  File "/home/user/.local/lib/python3.8/site-packages/flax/linen/kw_only_dataclasses.py", line 126, in <module>
    def _process_class(cls: type[M], extra_fields=None, **kwargs):
TypeError: 'type' object is not subscriptable

Small bug though fairly wide implications, it's breaking a whole lot of code with the new release 0.7.3
Note:
It might be linked to a minimum version of python 3.9 for JAX for the most recent releases. Though I would argue that it's an improper assumptions given that the dependency game might install FLAX 0.7.3 with an older version of JAX (which does support python 3.8). And nothing really prevents FLAX to be compatible with older versions of python.
Given the super narrow impact of such a change, (and that other places of FLAX also use typing.Type -> example: https://github.com/google/flax/blob/main/flax/linen/transforms.py#L88) I am of the opinion that it's a zero impact change for FLAX and help FLAX customers/users and the ecosystem.

We are intending to support only the python minimum version that JAX does - so 3.9 at this point - I think we need to be more clear about that fact.

Codecov Report

Merging #3330 (3e0396e) into main (ca3ea06) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3330   +/-   ##
=======================================
  Coverage   82.63%   82.63%
=======================================
  Files          55       55
  Lines        6363     6363
=======================================
  Hits         5258     5258
  Misses       1105     1105

Files Changed
Coverage Δ

flax/linen/kw_only_dataclasses.py
94.56% <100.00%> (ø)

@levskaya quite possibly. Though it's kinda weird to on purpose breaks backward compatibility when it brings no advantage and actively cause problems for some users (who might get FLAX by transitive dependency).

I'm fixing the messed up package metadata now - we'll yank this release and redo the release to fix transient packaging issues hopefully.
Generally we follow JAX and nep-0029 We will be using features present in python3.9 soon, beyond just typing improvements.  We're just about to require the new version of JAX  which will force a 3.9 minimum.  The downstream package should pin to flax=0.7.2 if automatic resolution doesn't work.

We yanked 0.7.3 and pushed a new 0.7.4 with correct python version metadata - hopefully this helps.

@levskaya it does
$ pip freeze | grep flax
flax==0.7.2

I'm closing


(docs) Convert nav sidebar to Markdown

We just did this for the newest versions of our other docs, because nested list elements in HTML are the illegible worst. This way you can easily see the tree structure without having to go crosseyed looking for that last missing </ul>.

Test PASSed


Make init_errorformat() global function

Is it possible to make the s:init_errorformat() a global function? I like to use vim-latex's error format in a script and in order to do so I have to either run latex#init() (which is a global function) or copy the s:init_errorformat() function to my script.
If this is not possible, if there is another way of calling the init_function from outside the script,  or if this breaks some behavior just ignore this request and close the issue.
Thank you!

Hello @lervag , I'm terribly sorry to bother you with an unrelated latex question but I read in this comment of yours that when using Dispatch you manage to

When I use Make, my buffer is replaced with an output buffer for the make process

When I use Make in a python file I only get a quickfix window showing error (if there were any) but no output of the make process (i.e if for instance in python file I have just print('hello world') dispatch simply finishes without showing the output).
Can you please tell me (if you remember) how did you achieve showing the output of the build process in buffer?
Thanks and sorry once again for this being unrelated to your wonderful plugin.


Design and implement a DNSPolicy focused dashboard for Grafana

What
Design and create an DNSPolicy centric dashboard that allows us to step through to the components responsible for that API ultimate enforcement. IE for DNSPolicy

Kuadrant Operator
DNSOperator

Open question here is how we approach the cluster dimension in the views.
We also need to experiment with what we want to show there. Idea is to iterate and come up with something useful to help drive ideas and requirements for not only this but other APIs
part of the outcomes here is how we represent the originating object (the GVK and Namespace Name) . We may want some common structure of meta data that used in both logs and metrics to represent where the information originated.

@david-martin any thoughts on how we would approach the cluster dimension of these metrics? IE would want possibly to have a drop down to step through each cluster and see the DNSPolicies on each cluster and then step through to the dashboards for Kuadrant operator and DNSOperator on that cluster.

Starting from what's there now, we have a dashboard with a table showing policies, like this:

I see that view as singular, whether you have 1 cluster or many. Metrics from all clusters go to a central thanos and used in a central grafana.
If a policy with the same name and namespace exists in more than 1 cluster, it shows up more than once in that table with no distinguishing identifier for the cluster.
Suggestions how to improve the ux here:

include a cluster identifier label on all metrics that are sent to the central thanos
show that label in the table

A dropdown for cluster can also be included on this dashboard to allow filtering by cluster.
Side note I've thought about aggregating policies with the same name & namespace and showing that aggregation is some smart way in that dashboard (e.g. instead of showing 5 policies from 5 clusters, just show 1 and say it's on 5 clusters) but I haven't come up with anything that makes sense yet. So I'm inclined to not do that at this time.
Building on the suggested changes above, a link can be added from an individual policy to any other dashboard we want. Parameters can be set in these links so that dropdowns get pre-popluated if that helps the ux while moving from 1 dashboard to another. For example, I click on DNSPolicy called 'mypolicy', which links to some new dns operator dashboard that's prefiltered to a view of stuff relevant to that DNSPolicy (if that makes sense).
This relies on all dashboards existing in the same grafana instance in order for linking to work. That is, there is 1 central grafana where all dashboards are deployed. I think this is fine and can work for single cluster too. In the case of single cluster, the cluster identifier can be empty (and so not actually filter anything) or use some single cluster identifier. I don't see a major problem here. There important thing from a maintenance point of view IMO is having 1 set of dashboards.
The cluster identifier dropdown can be extended to any and all dashboards we want as well. So a dns operator dashboard could be filtered by cluster centrally.

@david-martin could you share any notes on how to create a local-setup with grafana and how to develop a grafana dashboard locally.

@philbrookes https://github.com/Kuadrant/kuadrant-operator/tree/main/config/observability#observability-stack-guide
Let me know if there's something else I can help with


Enabling Microprofile-tck/metrics to run against bootable jar

Thanks for submitting your Pull Request!
Please delete this text, and add a link to the Jira issue solved by this PR.
Remember to use the Jira issue ID in the PR title, and any commits.

Thanks @fabiobrz and @jfdenise, I've addressed your suggestions, please take a look on the latest version: efdbd789ff1ea6f3930e1c4584643ad9c2b6e350

Thanks @spriadka, LGTM, merging.


console does not react to Enter key

I am running pyqtconsole 1.0 with PyQt4 and Python 2.7.12. The console shows up fine and I can type in text but the console does not react to the enter key, so I can not execute any commands.

OK I fixed the problem. I did not properly attach a QTimer to PythonConsole.repl_nonblock. The timer went out of scope soon after creation, so there was no updating happening. Fixed it by making the timer a class variable.

Hi @toonhuysmans
:) okey, happy that you were able to solve your problem
Marcus

Having the same problem here. I am running the example with gevent. The example runs fine and I get am iPython terminal window which starts with [0]. Entering print(1) then the enter key goes to the next line in the terminal rather than evaluating the command? If I enter an invalid command, the terminal does print the error on pressing return?
macOS 10.12.6 Sierra
Python 3.7.3
PyQt5==5.13.1
PyQt5-sip==12.7.0
PyQtChart==5.13.0
pyqtconsole==1.1.3

Hi, @cudmore
I can confirm this happens. I believe the issue is due to gevent not being scheduled to run its greenlets due to the application spending its time with qt message processing in app.exec_() (which doesn't know about gevent stuff).
One would need to add to the example some means of letting gevent run every once in a while, e.g. in a idle timer, see e.g. here https://stackoverflow.com/questions/4628348/using-pyqt-with-gevent

@coldfix thanks cold fix for the fast reposne, @cudmore did it solve your issue ?

I posted a fix to the example in #28 that seems to work for me. A bigger application would probably have their own interoperability code that is better suited to their needs.

@coldfix thanks, it's merged. Yes you are right, but it's fine as an example


LinkGenerator on Razor views

There is a Url parameter for IUrlHelper on Razor pages.
Consider adding a property that returns LinkGenerator for developers to access the new API.

@rynowak I think we should close this. Yay/nay?


no_accounts is not available

I miss the icon no_accounts (or mi-no-accounts)
It is available in material icons font from google: https://fonts.google.com/icons?selected=Material+Icons:no_accounts

The following works in the latest version:
no_accounts

Are you using CSS classes ? Codepoints haven't been updated so new icons won't be available yet with this method.

Yes I was refering to the CSS classes, sorry about the missunderstunding. When do you estimate the codepoints will be available?
Thanks!

I will try to update them next week. Google hasn't updated codepoints in their main repo so I will have to find another source.

Updated codepoints and CSS classes for new icons. Please update to the latest version and try again.

Wow. You are fast cowboy!
Thank you very much!


exploitdb: 2023-06-27 -> 2023-07-04

Diff: https://gitlab.com/exploit-database/exploitdb/-/compare/refs/tags/2023-06-27...2023-07-04
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 241609 run on x86_64-linux 1

1 package built:

exploitdb


which size to copy of section VirtualSize or SizeOfRawData

I faced a strange problem while mapping a debug build of a dll
the problem was coming from VirtualProtect with error INVALID_PARAMETER_3 while protecting the section .textbss with PAGE_EXECUTE_READWRITE protection
after some time I knew that the size of the section SizeOfRawData is 0 !
after reading on microsoft pe specification they said that this means that the section had no initialized data and in this state only the VirtualSize holds the size
also they said that VirtualSize always holds a size equal to SizeOfRawData or bigger because the latter is rounded
so I made VirtualProtect use VirsualSize instead
but while copying the sections if I find a section with SizeOfRawData = 0 should I ignore the section or copy it with the VirtualSize
and does SizeOfImage in the optional header includes the uninitialized data ?
this is currently what I'm doing :
NTSTATUS nt_result;
image = (uint8_t*)allocate_memory(nt->OptionalHeader.SizeOfImage, PAGE_READWRITE, MEM_COMMIT | MEM_RESERVE, nt_result);
if (!image)
{
    #ifdef _DEBUG
	cout << "[!] failed to allocate memory for '" << libpath << "' with error : " << hex << nt_result << dec << endl;
    #endif // _DEBUG
	return nullptr;
}
// copy the headers
memcpy(image, lib_buffer, nt->OptionalHeader.SizeOfHeaders);

// copy the sections and store proper protection flags
PIMAGE_SECTION_HEADER sections = IMAGE_FIRST_SECTION(nt);
for (int i = 0; i < nt->FileHeader.NumberOfSections; i++) {
	memcpy((void*)(image + sections[i].VirtualAddress),
		(const void*)((uintptr_t)lib_buffer + sections[i].PointerToRawData),
		sections[i].SizeOfRawData ? sections[i].SizeOfRawData : sections[i].Misc.VirtualSize);

	DWORD chr = sections[i].Characteristics;
	if (chr & IMAGE_SCN_CNT_CODE || chr & IMAGE_SCN_MEM_EXECUTE) {
		old[i] = PAGE_EXECUTE;
		if (chr & IMAGE_SCN_MEM_WRITE) old[i] = PAGE_EXECUTE_READWRITE;
		else if (chr & IMAGE_SCN_MEM_READ) old[i] = PAGE_EXECUTE_READ;
	}
	else if (chr & IMAGE_SCN_MEM_WRITE) old[i] = PAGE_READWRITE;
	else if (chr & IMAGE_SCN_MEM_READ) old[i] = PAGE_READONLY;
	else old[i] = PAGE_READWRITE;
}

// restore dos and nt to point to the new image
dos = (PIMAGE_DOS_HEADER)image;
nt = (PIMAGE_NT_HEADERS)(image + dos->e_lfanew);
sections = IMAGE_FIRST_SECTION(nt);

then later :
    // restore the protections of sections
for (int i = 0; i < nt->FileHeader.NumberOfSections; ++i) {
	if (sections[i].Characteristics & IMAGE_SCN_MEM_DISCARDABLE)
	{
		RtlSecureZeroMemory((void*)(image + sections[i].VirtualAddress), sections[i].SizeOfRawData);
		VirtualFree(image + sections[i].VirtualAddress, sections[i].Misc.VirtualSize, MEM_DECOMMIT);
	}

	NTSTATUS res = protect_memory((image + sections[i].VirtualAddress), sections[i].SizeOfRawData ? sections[i].SizeOfRawData : sections[i].Misc.VirtualSize old[i]);
	if (!NT_SUCCESS(res))
	{
    #ifdef _DEBUG
		cout << "[!] failed to apply the proper protection (" << prot_flag_to_str(old[i]) << ") for " << get_section_name((char*)sections[i].Name) << " with size " << sections[i].SizeOfRawData << " , error " << hex << res << dec << endl;
    #endif // _DEBUG
		VirtualFree(image, 0, MEM_RELEASE);
		return nullptr;
	}
}

Don't copy anything if SizeOfRawData is 0. You can have 2 sections with same PointerToRawData and if you copy any data, you risk having invalid initial state for the first of those 2 sections.
SizeOfImage includes VirtualSize each section, even if SizeOfRawData is 0.

So I should use 'SizeOfRawData' in memcpy and 'VirtualSize' in Virtual Memory functions ?
I looked at blackbone source code and found that it's doing so in MMap.cpp MMap::CopyImage , MMap::ProtectImageMemory and in wipeMemory lambda

Yes


Cython 0.28.2 Coroutines return None for coro.cr_frame

This causes the asyncio/coroutines.py: _format_coroutine(coro) to throw an exception when it tries to access the co_filename from coro.cr_frame.
AttributeError: 'NoneType' object has no attribute 'co_filename'
Now any code that tries to repr a task that contains a Cython Coroutine throws very unexpected exceptions.

Looking at the change log it looks like this was a feature.

bpo-33672 looks like they are fixing this in cpython

Ideally we should fix this in Cython too: __code__ attribute shouldn't ever point to None, it should be either set or not.


Use official public registry from AWS instead

This solves issues with architectures (Apple Silicon macs) apart from being 100% official from AWS guys

Made configurable and by default on the config in commit 964dae73fb4131f2ddfd54eb320adb70e2c94409


Docs: create Example for usage of AppSync for Mutations

What were you searching in the docs?
How to us the use the Framework for Mutations.
Is this related to an existing documentation section?
https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/docs/core/event_handler/appsync.md
How can we improve?
add sample code for todo creation and update.
Got a suggestion in mind?
No response
Acknowledgment

[X] I understand the final update might be different from my proposed suggestion, or refused.

Thanks a lot for creating the issue after our discussion on Discord: https://discord.com/channels/1006478942305263677/1006527338621710376/1078461122056814643
Taking your example as the base, I'll create a quick test to be extra sure it works as expected, then send a PR for the docs to get your review (and credit accordingly).

@app.resolver(type_name="Mutation", field_name="createTodo")
@tracer.capture_method
def create_todo(
    id: str = "",  # noqa AA03 VNE003 shadows built-in id to match query argument, e.g., createTodo(id: "some_id")
) -> Todo:
    logger.info(f"Create Todo {id}")
    todos: Response = requests.put(f"https://jsonplaceholder.typicode.com/todos/{id}") // NOT SURE what to DO!
    todos.raise_for_status()

    return todos.json()


10.9.1 Portal file name

In the 10.9.1 ReadMe the file name for Portal is listed as:
Portal_for_ArcGIS_Windows_1091_177786
However, the file name for Portal from the download is:
Portal_for_ArcGIS_Windows_1091_180052
Is this a misprint in the ReadMe or is the script looking for the wrong file?

In the 10.9.1 ReadMe the file name for Portal is listed as: Portal_for_ArcGIS_Windows_1091_177786
However, the file name for Portal from the download is: Portal_for_ArcGIS_Windows_1091_180052
Is this a misprint in the ReadMe or is the script looking for the wrong file?

Hello @ramtechjoe,
Great catch! It's typo in the ReadMe. The file name is correct in the actual cookbooks, so it should still work fine:
https://github.com/Esri/arcgis-cookbook/blob/1c7f39341a4a967c6c73a20ee0b6bbb5b2a3dc53/cookbooks/arcgis-enterprise/attributes/portal.rb#L108-L111
Thanks,
Cameron K.

This has been updated in Chef for ArcGIS Cookbooks v4.0.0.
https://github.com/Esri/arcgis-cookbook/tree/master/templates/arcgis-enterprise-base/10.9.1#required-arcgis-software-repository-content
and
https://esri.github.io/arcgis-cookbook/templates/arcgis-enterprise-base/10.9.1.html#required-arcgis-software-repository-content
Thanks,
Cameron K.


ts: Convert web/src/billing module to TypeScript.

Converted all files inside web/src/billing to TypeScript.

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[x] Highlights technical choices and bugs encountered.
[x] Calls out remaining decisions and concerns.
[x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[x] Strings and tooltips.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

The new commit should be a prep change before the TypeScript conversion, so we can avoid having an intermediate state where the types are inaccurate.

@PIG208 reordered the commits!

Thanks for the review! @PIG208 , resolved all suggestions!

Hi, @PIG208 I was revisiting this PR and found some issues that we needed to address by making a separate page_params for billing:-

We needed to include ./src/billing/page_params in webpack.assets.json before anything so that the #page_params does not get removed from the DOM by the main page_params by the time we imported new page_params.
Current webpack.assets.json:    "upgrade": [
        "./src/billing/page_params",
        "./src/bundles/portico",
        "./src/portico/tippyjs",
        "./src/portico/landing-page",
        "./styles/portico/landing_page.css",
        "./src/billing/helpers",
        "./src/billing/upgrade",
        "./src/templates",
        "./src/loading",
        "./styles/portico/billing.css"
    ],

Now if we remove #page_params in billing/page_params then we will not have them available for example in src/bundles/portico and hence we don't want to remove the #page_params from the DOM in the new billing page_params because they are needed by other modules later down the line.

I have updated the PR addressing these issues and hence this is ready for another review from you, Thanks 🙂!

@zulipbot add "integration review"

This is waiting for someone who knows the billing subsystem better than me to at least test it; probably @mateuszmandera?

This is waiting for someone who knows the billing subsystem better than me to at least test it; probably @mateuszmandera?

Yup, will give it some testing and review

@zulipbot add "area: typescript migration"

@mateuszmandera did you complete the testing/review for this?

@timabbott Yes, it works for me in testing and the code changes make sense to me, to the extent of my limited TypeScript understanding.

As far as I can see, @mateuszmandera has completed the review with a positive result. Therefore, I am adding the "integration review" label.

Merged, thanks everyone!


single modality at a time

change modality from a list to a string
removes modality wildcard from all (except work tar file)
changes seg_{modality} and surf_{modality} to seg_ and surf_ (allowing
for further refactoring)
T2w workflow updated and dry-run tested, others are WIP

ok this looks good to review and merge in -- I didn't do any other refactoring here (except for renaming seg_{modality} and surf_{modality} to seg and surf.

This might be a good place for one more thing - perhaps we should change the default modality to T1w? This seems to be most common plus in many cases it seems to work better

Yeah I agree, I think defaulting to T2w doesn't make sense anymore..
I am thinking we should just make --modality a required argument and not have any default at all. That avoids any surprises in changing the default, and is probably safer since we are no longer allowing multiple different modalities in the same folder..

Ah didn't realize you updates the name. warps.smk will need 'seg_{modality}' replaces with just 'seg'

ya I updated those already with a recent merge of master.. I'll fix the remaining conflicts now (after merging in neonatal) then merge this in


undefined xhr and response objects on last catch

Hello,
I chain queries as follows. The last one returns an error 400 with a JSON object in response that provides detailed information. This response should be available in the last catch but it is undefined, as well as the xhr object:
var qwestOpts = {
  cache: true,
  withCredentials: true
};

qwest.post(..., {...}, qwestOpts)

.then(function() {
  return qwest.get(..., null, qwestOpts);
})

.then(function(xhr, response) {
  ...
  return qwest.post(..., {...}, qwestOpts);
})

.then(function(xhr, response) {
  ...
  return qwest.post(..., {...}, qwestOpts) // throws error 400 (Bad Request)
})

.then(...)
.catch(function(error, xhr, response) {...}); // xhr === response === undefined

Tested using v4.1.1

Are you catching the good error argument as expected?

What do you mean?

In the last catch, xhr and response are undefined. But what's the state of error, which is the first parameter of catch?

Error is equal to the string "404 (Not Found)"

Error is equal to the string "400 (Bad Request)"

Which one? xD

The error parameter of the last catch :)

You gave me two different errors, which one is the error parameter? :p
And where is from the other one?

Of I've erased the first error on the comments because it was a mistake, there is a one error only.

Ah! My bad, I should have refresh the page ;)
So the good error is catched, it's just the arguments that are not valid. I'll look that tomorrow!

Thanks!

I think this is not a bug but the internal behavior of PinkySwear, the library that qwest uses for its promises layer. Since an error is thrown in a then, PinkySwear throws the error to the next catch without telling it to qwest. For this to work, I should wrap the then  promise and add a try-catch block.

Then, I think I can't deal with this issue because I can't see a way to deal with the PinkySwear's internal routines.
Can't you use the grouped requests as described in the documentation?

I'm closing this for idling ;)


Nuitka compiled exe, failed to load PyQt5\QtCore.pyd

So Nuitka got done compiling (nuitka --standalone MobilePayAlerts.py). Once it was done I took a look in the .dist folder. Firstly, I don't know how Nuitka handles things but I couldn't see a file for the subprocess module which my application imports. And when I run my application (MobilePayAlerts.exe) it returns:
Traceback (most recent call last):
  File "D:\Projects\Python Projects\MobilePayAlerts\MPA\Qt\MobilePayAlerts.dist\MobilePayAlerts.py", line 1, in <module>
ImportError: LoadLibraryEx 'D:\Projects\Python Projects\MobilePayAlerts\MPA\Qt\MobilePayAlerts.dist\PyQt5\QtCore.pyd' failed

Line 1 in the file is from PyQt5 import QtCore, QtGui, QtWidgets which are included in the .dist folder after being compiled, but apparently they aren't being loaded correctly.

Unfortunately you didn't fill out the issue template, so it's impossible to tell what is going on.
As for subprocess, that is contained in bytecode form typically.

@brupelo I don't think the Nuitka Qt plugin is needed to load the QtCore.DLL, that ought to work, you are welcome to test it. I really liked how you provided that reproducer feedback in the openGL/OpenGL issue, that was very helpful to know that it is works in principle.
But yeah, I am try to make it a habbit to insist on the template, and most people will provide it then. Otherwise I can just close it. I will try and keep the template not too verbose and mostly automatic, but it's useful, esp. for hello world type of problems, or standalone.
Rationale: If there is a real issue, somebody with proper skills is going to report it later. Keeping this issue open, despite not getting input, prevents people from reporting the issue too, thinking it is already dealt with. Therefore I try to kill issues with no feedback after one week.
I welcome you to pester, eh ask, if you see lacking input, on my behalf. I think having the full issue template makes sense. I improved --version recently specifically to include OS and arch. And I definitely want to make it include the Scons compiler settings that will be used later too.
There is like a million people who think they are using MinGW64 no matter how often I ask them about it, and no matter what it really is. Not their fault, but it would be nice to know what it is. Because maybe then I can also more easily build detections of the bad compilers to properly error out.
However, I like being nice. And I do understand how people try to avoid effort. So I am not offended if it happens and people should still be treated with respect unless they really misbehave like insulting me for insisting on it, or so.


Where to find 180 AWS checks mentioned in this page.

[Enter feedback here]

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

ID: 28d13bd5-9349-cc50-40c5-3b5c7b4b2126
Version Independent ID: 2386c444-4349-1a2e-a547-6ca1bece6434
Content: Overview of the Microsoft cloud security benchmark
Content Source: benchmark/azure/overview.md
Service: security
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

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

@RajSecOps
The 180 AWS checks mentioned in the Microsoft Azure Security Benchmark can be found in the Azure Policy GitHub repository. The repository contains a set of built-in policies that can be used to assess and enforce compliance with the benchmark. You can find the repository at the following link: https://github.com/Azure/azure-policy.
To view the policies related to AWS, you can navigate to the samples folder in the repository and search for policies with names starting with AWS. For example, the policy Audit AWS accounts that have not been accessed in the last 90 days is one of the policies related to AWS.

Hi @YashikaTyagi,
I am unable to locate AWS samples folder in repo, please share me link.
Thanks & best regards,
@.***
Rajendra Kumar V K
Senior Security Architect
Resideo Cyber Operations
Embassy Tech Village, Block 7B, 4F Outer Ring Road
Bangalore, Karnataka, 560103
From: YashikaTyagi @.>
Sent: Friday, April 7, 2023 11:12 AM
To: MicrosoftDocs/azure-docs @.>
Cc: Kumar, Rajendra @.>; Mention @.>
Subject: [External] Re: [MicrosoftDocs/azure-docs] Where to find 180 AWS checks mentioned in this page. (Issue #107766)
@RajSecOpshttps://github.com/RajSecOps
The 180 AWS checks mentioned in the Microsoft Azure Security Benchmark can be found in the Azure Policy GitHub repository. The repository contains a set of built-in policies that can be used to assess and enforce compliance with the benchmark. You can find the repository at the following link: https://github.com/Azure/azure-policy.
To view the policies related to AWS, you can navigate to the samples folder in the repository and search for policies with names starting with AWS. For example, the policy Audit AWS accounts that have not been accessed in the last 90 days is one of the policies related to AWS.

Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/107766#issuecomment-1499957803, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN2E33456HLK2PFEVM7BFILW76SKBANCNFSM6AAAAAAWVCJEXU.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>**** Resideo WARNING: This email was sent from outside of Resideo and the sender cannot be verified. Use CAUTION before opening file attachments, links, or replying to the email. For additional information please contact the Resideo Service Desk ****

@msmbaldwin
do you have any idea about this?

Hi, any update/progress? Thanks

Hi, should I assume this request is ignored?.  Thanks

@RajSecOps
Apologies for the delayed response. I have assigned the case to content author who will update accordingly.

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. We are closing this issue for now, but if you feel that it's still a concern, please respond and let us know. If you determine another possible update to our documentation, please don't hesitate to reach out again. #please-close


Added Google Analytics 4 snippet injection by using '@julian_cataldo/…

Added Google Analytics 4 snippet injection
(see - https://code.juliancataldo.com/component/astro-analytics/#doc)

Hi @Taraskin, thanks for contributing.
I made a few small modifications to your PR to make the use of Google Analytics configurable.
By the way, I'm just working on several essential packages for Astro projects with functionalities like SEO (based on NextSEO spec), font optimization (with better integration with Astro) and others and I was hoping these days to also add Analytics and you did it before.

Hi @Taraskin, thanks for contributing.
I made a few small modifications to your PR to make the use of Google Analytics configurable.
By the way, I'm just working on several essential packages for Astro projects with functionalities like SEO (based on NextSEO spec), font optimization (with better integration with Astro) and others and I was hoping these days to also add Analytics and you did it before.

You're welcome ;)
Thank you for a great template, @prototypa - I enjoy using it and Astro in general. SEO part - is quite important, so that is great you put some efforts into it. As I'm not a front-end expert, it is not easy to keep contributing, but I will try :)


DatabaseException(file/data is not in the requested format, code: wrongFormat)

I suddenly get this exception when trying to create a new db:
DatabaseException(file/data is not in the requested format, code: wrongFormat)
This, with the beta packages, as well as with the latest 1.x versions.
I don't think this is a bug from you part.
I recently changed the home folder for the db files due to Android restrictions not allowing the use of public external directories.
However, am not sure if this is related, since I have had no problems with this in the past.
Any insight you can offer, please?
I am gathering some more info on this. Will update soon.
It seems like it's not happening when creating the new db, but when I try to use a new (async) db just created.
Hope to update with more info soon.

A Couchbase Lite database is a directory with files in it. You typically get this error when the directory exists, but the contents are not as Couchbase Lite expects them to be.
I could see this error occurring when asynchronously opening a new database twice without wait for one of the calls to Database.openAsync to finish before starting the other one.

I could see this error occurring when asynchronously opening a new database twice without waiting for one of the calls to Database.openAsync to finish before starting the other one

Correct. It seems like I'm doing something along those lines. Need to check some more.
I'm closing this out, and if I have anything to add to this thread, I will do so.
Thanks


Get the decision tree for the latest timestamp when no timestamps is passed

When using get_decision_tree we must pass a integer in argument
One can get the decision tree for the latest timestamp giving a huge timestamp

Also should be done in craft-ai/craft-ai-client-js

#114 solved this.


allow person in contact list to be called by names instead of index in commands

completed for Delete, still working on Edit and View

Codecov Report
Patch coverage has no change and project coverage change: -1.03 :warning:

Comparison is base (50151bf) 67.83% compared to head (0c7e52e) 66.81%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #92      +/-   ##
============================================
- Coverage     67.83%   66.81%   -1.03%
  Complexity      479      479
============================================
  Files            88       89       +1
  Lines          1604     1624      +20
  Branches        176      180       +4
============================================
- Hits           1088     1085       -3
- Misses          453      475      +22
- Partials         63       64       +1

Impacted Files
Coverage Δ

...main/java/seedu/address/commons/core/Messages.java
0.00% <ø> (ø)

...du/address/logic/commands/DeleteByNameCommand.java
0.00% <0.00%> (ø)

...va/seedu/address/logic/commands/DeleteCommand.java
100.00% <ø> (ø)

...eedu/address/logic/parser/DeleteCommandParser.java
46.15% <0.00%> (-53.85%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Wildcard passwords

These changes will enable wildcard password files support.
For example *.google.com will match "accounts.google.com", "photos.google.com", and so on...
Only one level of subdomains is supported so far: "photos.accounts.google.com" would not be matched.

Hey @Deadolus,
Thank you for submitting a PR, this looks neat! #44 does something similar though, it will only send the top-level domain from the browser extension to the Go binary. Does this PR conflict with that or can these co-exist? I'm not too sure by skimming through.
Thanks a lot anyway!

Closing this as it does not fully solve the problem, see discussion in #44


create namespace like helm would if does not already exist.

This fixes the case where release config is not saved (configMap or Secret) if the namespace doesn't already exist when installing a chart. See https://github.com/rimusz/helm-tiller/issues/39
Assumptions:

kubectl already installed. (Already a requirement of Helm)

Cons:

If the way helm create namespaces change, will need to re-update here.

cool, thanks


get_balance return error 400

Hi,
When trying to call response=self.bittrex.get_orderbook(market=symbol, depth=1)
https://api.bittrex.com/v3/markets/BTC-USDT/orderbook?depth=1
400 {"code":"BAD_REQUEST","detail":"Refer to the data field for specific field validation failures.","data":{"invalidRequestParameter":"Keys.DEPTH"}}
url look fine and working on postman.

bittrex = BittrexV3('YOUR_API_KEY', 'YOUR_SECRET_KEY', reverse_market_names=False)

bittrex = BittrexV3('YOUR_API_KEY', 'YOUR_SECRET_KEY', reverse_market_names=False)

Update the lib. It should work now.

Update the lib. It should work now.

Thanks, that's perfect.

Thanks, that's perfect.


Update connect-google-cloud-platform.md

I've removed the details about the supported log types.

#sign-off

#sign-off


Proper error reporting in httplib_start()

During startup of a server with a call to httplib_start(), there are many reasons why the start could potentially fail. Unfortunately error reporting back to the calling party is almost not existent. Only some httplib_cry() calls are in place, but these report to a file which may not be opened due to setting or other errors. Also Windows socket error codes are not compatible with Linux, and these errors are reported with an error number followed by "no error".
Error handling during startup must be better and reporting errors back to the application should be made much more friendly.

Fixed in https://github.com/lammertb/libhttp/commit/40ffc74331d00cc3e443e30e112cd21b26bd595f where it is now allowed to have errors with only a context. The callbacks are registered in httplib_start() directly after the ctx structure has been allocated, giving the possibility to intercept with a callback routines all errors which may appear during startup.


In the latest versions of the library, the 'task' function is broken when displaying progress.

rich==6.0.0
code:
from time import sleep
from rich.progress import track
from rich.progress import (
    BarColumn,
    DownloadColumn,
    TextColumn,
    TransferSpeedColumn,
    TimeRemainingColumn,
    Progress,
    track
)

progress = Progress(
    BarColumn(bar_width=None),
    "[progress.percentage]{task.percentage:>3.1f}%",
    "•",
    DownloadColumn(),
    "•",
    TransferSpeedColumn(),
    "•",
    TimeRemainingColumn(),
)

for n in progress.track(range(9), description="Processing..."):
    print(n)
    sleep(1)

The code above works correctly (showing the given columns and progress in previous rich versions).
It was broken at some point.
In the latest rich == 9..progress is not displayed.
The documentation has a description about .update ().
But this all complicates understanding, it is impossible to accurately set the parameters (advance =). All that is required is an automatic update of the 'progress' at each iteration, and this worked fine in previous versions of the library (code above).
Now it doesn't work and there is no example how to fix it.

If you want to use the track() method (as apposed to the track() function from the module), you will need to use the context manager.
with progress:
    for n in progress.track(range(9), description="Processing..."):
        print(n)
        sleep(1)

In the code above you are importing track function but not using it.

If you want to use the track() method (as apposed to the track() function from the module), you will need to use the context manager.
with progress:
    for n in progress.track(range(9), description="Processing..."):
        print(n)
        sleep(1)

In the code above you are importing track function but not using it.

Thanks.
This new logic works in the new rich version.

Thanks.
This new logic works in the new rich version.


feat: Public workspaces don't have a path auth when creating a new workspace without being logged in

Situation
I was testing the public workspace for OpenSauced to see what the experience was like if a repository insight was shared.
https://app.opensauced.pizza/workspaces/1b814876-2007-4125-91bf-9792b93ee6d2/repositories
Below is an incognito browser that I am not logged into OpenSauced with.

Problem
When I click "create a workspace" I'd expect to be asked to log in. Instead I get a 404.

Solution
Add an auth redirect that takes the user to log in and return to the creation flow.
Additional info
Also pizza.new is broken because of this.

It 404s at the moment because they're not logged in. It's a 401 really but we pretend like the page is not found like GitHub does for stuff you don't have access to.
The Create workspace link is supposed to be removed when logged out. It didn't make it into the MVP. If we want to keep it, we can redirect to the login.

We can do either, but I lean toward some action encourages the not logged in user is recommended to log in.
Maybe that is replacing the drop down with sign up to do X

I think the redirect to login makes sense. Thoughts @brandonroberts @isabensusan?

Redirect works for me. It does bring up the question of whether we want to automatically send people to the GitHub login modal, or back to the feed to login, and redirect them back to the previous page

Or perhaps a dedicated login page with the GitHub login

A dedicated login page would make sense.

Let's not hide the "Create a new workspace" cta for non-logged in users.
Here's a couple low/mid-effort ways I can think of to tackle this:
A - [lowest effort] When the non-logged in user hovers over the "create new workspace" button, we show a tooltip saying "You need to log in to create a new workspace" --> on click we redirect to the Github Login
B - If a non-logged in user clicks on the "create new workspace" button, we trigger a "Login" saying that they need to login to create a workspace, and show the "Connect with GitHub" CTA --> on click we redirect to the Github Login (that way we avoid creating a dedicated login page for now, which isn't super high priority atm).
B would be preferred, but I know modals can be trickier than they seem @nickytonline . We can always come back and create a dedicated login page in the mid term, but ideally we fix this quicker with one of these two solutions.
@brandonroberts @bdougie  @nickytonline  any thoughts?

I lean towards B. Shortcuts tend to be permanent solutions.
Perhaps this is A as a PR 1 and then B as a follow up PR?

Option B sounds good to me. We have some examples for modals already

Bumping this.
I preparing a demo for a team and realize this will be a little awkward with me manually adding them, but that would require them connecting their GitHub first.
Note: this is a large enterprise and chances that happening is low.

@brandonroberts is at a conference so I can take this as high priority. When is the demo?

So we want the "Create New" buttons to make them connect their GitHub?

Suggested Solution
Here's an approach we could take for now (as described in the mock):

Show a pill next to the workspace name in the header that says "public"
Add the copy: “Sign up to get your own workspace” to the login button in the navbar
Remove the dropdown, instead replace it with the name of the workspace (and the orange square, to add a pop of color)

And as an extra:
4. Add a card in the sidebar to entice users to create their own workspace with a CTA to connect their github account, and with a "Learn More" link to workspaces documentation (link to use)

Non suggested approach
We could also add a toast, but because we are already showing the "introduction to workspaces" modal, I don't want to add more pop ups that could get too annoying. Adding an option to create your own workspace within the "introduction to workspaces" modal isn't an option either, because people won't know what a workspace even is yet.

Suggested Solution
Here's an approach we could take for now (as described in the mock):

Show a pill next to the workspace name in the header that says "public"
Add the copy: “Sign up to get your own workspace” to the login button in the navbar
Remove the dropdown, instead replace it with the name of the workspace (and the orange square, to add a pop of color)

And as an extra: 4. Add a card in the sidebar to entice users to create their own workspace with a CTA to connect their github account, and with a "Learn More" link to workspaces documentation (link to use)

## Non suggested approach
We could also add a toast, but because we are already showing the "introduction to workspaces" modal, I don't want to add more pop ups that could get too annoying. Adding an option to create your own workspace within the "introduction to workspaces" modal isn't an option either, because people won't know what a workspace even is yet.

I like the CTA for connecting GH in the sidebar, but probably for large screens only. There wouldn't be much realestate on a phone in the sidebar for it.
For the Public pill, I'm going to create a separate issue for that as that's a nice addition in general outside of this feature.

I wonder if on mobile we can create a bottom banner to entice users to sign up so we don't lose that opportunity?

Part of this is resolved by https://github.com/open-sauced/app/pull/2935 where you can start the creation of a new workspace without being logged in, connect your account, and finish completing it.
https://github.com/open-sauced/app/pull/2935

Is this resolved or do we want to do more work here? When I checked in the incognito window, I can start to create, but the only buttons I can use are connect with GH? This is better than a 404, but is also a little confusing. It feels like you're missing a button.

This is not resolved. The user is still presented with a blank dropdown. Adding context to the sidebar should be a follow up to #3259
https://github.com/open-sauced/app/issues/2812#issuecomment-2007917285

Related https://github.com/open-sauced/app/issues/3377

Is this resolved or do we want to do more work here? When I checked in the incognito window, I can start to create, but the only buttons I can use are connect with GH? This is better than a 404, but is also a little confusing. It feels like you're missing a button.

The problem is fixed now you can open the workspace creation flow. I don't think there is enough for the user to have context  on why they would create a workspace.
I'd love for us to scope this design @isabensusan did to prompt the user to "get their own workspace"

This already exist on mobile


AnimationSprite does not have a play_backwards function

Godot version:
master branch 928cdb4f8a72c2de5751cddd3205c2a3c09e6f6d
Issue description:
Currently AnimationPlayer has a member function for playing an animation backwards, but this is not true for an AnimatedSprite.
It would be great to have this functionality.

well, they are two entirely different nodes for entirely different purposes imo, but i mean it could be a feature request i think


API: Add list indexing for 1D Tensors

Addressing #427
Hi @willow-ahrens,
This PR adds specialized getindex and to_indices for Tensor and SwizzleArray, to enable list indexing for 1D objects.
There's no need to check whether Tensor/SwizzleArray is 1D here, because indexing +2D Tensor with a list/vector results in AssertionError: ndims(arr) == length(inds).

LGTM! @mtsokol I'll push a release too


Updating the permissions of the Onboarding user role

Description

Updating the user role permission tick box grid to include 'View company data' permission for the Onboarding user type. This reflects the current configuration of the service.

Type of change
Please delete options that are not relevant.

New document(s)/updating existing

Reviews and merging
You are responsible for getting your PR merged. Address review comments promptly and make sure to merge the PR when ready.
Feel free to 'Enable automerge' - your PR will automatically merge when accepted and passing the build.

Including screenshot of new table as per my local test instance:


Creating dotted paths breaks down when using nested project structures.

Example structure:
project_name
-- project_name
---- client.py
-- pyproject.toml
The main problem starts in the get_dotted_cog_path method when we try to join a list of indexes via a root path name, but that root is set to the cogs_path attribute. That attribute would be a string like 'project_name/commands', which cannot be used to get an index in a list of tokens.

Resolved with 585120c.


Fix delayed delivery messages issue

Fixes #10

do we need this for ASB as well?

No. Azure Service Bus doesn't do anything with Start and Stop.

do we need this for ASB as well?

No. Azure Service Bus doesn't do anything with Start and Stop.

Correction: ASB does use Stop() so we might need to do the same for the ASB. But that would require a quick smoke test.


fgdc data quality

FGDC has a data quality section not represented in mdJson/mdTranslator.  The mdJson/mdTranslator implementations are primarily based on the ISO 19115-1 object model which moved data quality out of the standard and into ISO 19157 which was reworked during that same time period.  The ISO 19139 standard had a data quality section which was enhanced in ISO 19115-2 extension to look more like ISO 19157 before being removed entirely from the ISO 19115 family.
All of the FGDC elements for data quality elements ( with possible exception of cloud cover ) transfer to ISO 19157, although I cannot tell how well since I do not have access to the standard, only a PowerPoint presentation and overview schema.
Logical consistency, completeness report, and cloud cover are not available in ISO 19115-2.
Do we:

[ ] implement ISO 19157
[ ] add the FGDC data quality elements to mdJson/mdTranslator with no output to ISO formats
[ ] ignore data quality metadata

I think the various DQ elements in FGDC can be implemented in ISO using
lineage/process steps. Utilizing profiles can define classes of lineage and
relevant requirements for various data types.
On Mon, Sep 25, 2017 at 12:20 PM, stansmith907<EMAIL_ADDRESS>wrote:

FGDC has a data quality section not represented in mdJson/mdTranslator.
The mdJson/mdTranslator implementations are primarily based on the ISO
19115-1 object model which moved data quality out of the standard and into
ISO 19157 which was reworked during that same time period. The ISO 19139
standard had a data quality section which was enhanced in ISO 19115-2
extension to look more like ISO 19157 before being removed entirely from
the ISO 19115 family.
All of the FGDC elements for data quality elements ( with possible
exception of cloud cover ) transfer to ISO 19157, although I cannot tell
how well since I do not have access to the standard, only a PowerPoint
presentation and overview schema.
Logical consistency, completeness report, and cloud cover are not
available in ISO 19115-2.
Do we:

implement ISO 19157
add the FGDC data quality elements to mdJson/mdTranslator with no
output to ISO formats
ignore data quality metadata

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/adiwg/mdTranslator/issues/145, or mute the thread
https://github.com/notifications/unsubscribe-auth/AF6hLwfjsjI3WhfqKZtWtFQvTE2Zm-zuks5smAr6gaJpZM4PjSHg
.

Current status:

The data quality models are slightly different, but translatable, from ISO 19115-2 to ISO 19115-3.
The ISO 19157 is integrated into both the ISO 19115-2/3 XSD and standard.  Although the 19157 standard is published separately, it is integrated much as 19110 is in -3.
Because the 19157 standard is published separately and I don't have the documentation I reverse engineered the object model from the 19115-3 XSD.  But what I don't get from that is definitions.  I'll ask Tim Kern for assistance in acquiring documentation.


.NET Core 3 Preview Blazor basic project does not compile

Hi all,
Recently, I have downloaded .NET Core 3 Preview and tried to create the basic Blazor (standalone) project.
When I first time tried to compile it I got the error:
RazorCompilation.targets(184, 5): [null] rzc generate exited with code 150
Guys, any suggestion how to solve this issue ?

Hi @redradist - I'd recommend using the 2.1 or 2.2 SDK to create Blazor applications for now. We're in the middle of doing the work to make Blazor and Components work well in 3.0 but it's not ready yet.

@rynowak I have tried .NET Core SDK 2.2 and got the following error:
Blazor.MonoRuntime.targets(633, 5): [MSB3073] The command "dotnet "/{my_home_dir}/.nuget/packages/microsoft.aspnetcore.blazor.build/0.7.0/targets/../tools/Microsoft.AspNetCore.Blazor.Build.dll" write-boot-json "obj/Debug/netstandard2.0/ASP.NETCoreWebApplication4.dll" --references "/{my_home_dir}/RiderProjects/ASP.NETCoreWebApplication4/ASP.NETCoreWebApplication4/obj/Debug/netstandard2.0/blazor/bootjson-references.txt" --embedded-resources "/{my_home_dir}/RiderProjects/ASP.NETCoreWebApplication4/ASP.NETCoreWebApplication4/obj/Debug/netstandard2.0/blazor/embedded.resources.txt" --linker-enabled --output "/{my_home_dir}/RiderProjects/ASP.NETCoreWebApplication4/ASP.NETCoreWebApplication4/obj/Debug/netstandard2.0/blazor/blazor.boot.json"" exited with code 150.
I have just generated Blazor (standalone) project from template by IDE
Did you have something like this ?


frontend-homework-13

Home Page

Search Option

Filter: All brands

Filter: Men's Clothing

Filter: Women's Clothing

Filter : Electronics
Filter : Jewelry

Sort: Price ASC

Sort: Price DES

Sort+Filter Combination
Sort: Price DES Filter: Men's Clothing

Sort : Price AES Filter: Women's Clothing

Product-Detail Page

https://video.drift.com/v/abP2JTvMpT01x9K3wNIzSVx8aBlCtydnsV05aX4lp9KI/


Support 2017

uber-licence --dry fails if a file contains a 2017 licence header.

@mennopruijssers What is the failure message? What are the byproducts of running the command when there is already a 2017 header?

Should be closed in https://github.com/uber/uber-licence/pull/22. Please provide PR feedback


react-native-cfddlc <> cfd-dlc-js mismatch

I can't seem to get the current master branch of react-native-cfddlc to play nice with the cfd-dlc-js submodule.
From the latest commit on this repo, my understanding is that the bump-cfd-dlc-to-fix-default-vout-serial-id branch (commit ee255b5) should be compatible with this master branch. However, when attempting to use this package in a test app, I'm getting illegal argument errors using the request structure suggested by the types for e.g. the CreateCetAdaptorSignatures cdf-dlc-js method:
{"error": {"code": 1, "message": "hex to byte convert error.", "type": "illegal_argument"}}

and similarly with the GetRawRefundTxSignature method.
The interface I'm using here (provided by this lib) for CreateCetAdaptorSignatures is
export interface CreateCetAdaptorSignaturesRequest {
    cetsHex: string[];
    privkey: string;
    fundTxId: string;
    fundVout?: number;
    localFundPubkey: string;
    remoteFundPubkey: string;
    oraclePubkey: string;
    oracleRValues: string[];
    fundInputAmount: bigint | number;
    messagesList: Messages[];
}

And that expected by the same function in the ee255b5 commit (of cfd-dlc-js) is of the form:
{
  cets: string[],
  privkey: string,
  oraclePubkey: string,
  oracleRValues: string[],
  messages: string[][],
  fundTxId: string,
  fundVout: number,
  fundInputAmount: number,
  localFundPubkey: string,
  remoteFundPubkey: string
}

So theres a clear discrepancy between the messages/messagesList and cets/cetsHex argument/types, as well as more minor discrepancies for fundVout and fundInputAmount.
I have tried to remediate the interface mismatch (so far unsuccessfully) but before I go any further, please can you confirm which react-native-cfddlc/cfd-dlc-js are expected to be compatible and/or which branches/tags you're currently working with. Thanks

I've tried calling the function with the exact data provided in the CreateCetAdaptorSignatures test - faced with the same illegal arguments error response

Resolved.
Issue was related to passing in a WIF rather than a privkey.


[main > 0.26]: SPO: make snapshots withint ops, and starting with seq# 0

I'd prefer to port only to 0.27, I do not think we need it in 0.26

Putting this in only 0.27


doc: update screen shots

Upudate screen shots

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

Chrome Web Store
GitHub release

Your semantic-release bot :package::rocket:


Remove 'link.next' from _search response when achieving the last page

Fix #436

Remove 'link.next' from _search response when achieving the last page
Reaching


Fix duplicated (+incorrect) metrics when using multiproc environment

Currently, when using a multiproc environment, initializing metrics registers them as collectors. This means that in registry.py:96 they report their metrics, even though they were already reported in the mmapped environment. In practice this meant dumping metrics would report some metrics twice with the same identifiers, once for the aggregated multiproc collector and once for the Histogram or other metrics used by the local process handling that specific /metrics request.
This PR prevents Metric-s being registered into the registry as collectors by checking for presence of the two relevant env vars.

I was following the steps shown in the fastapi section https://github.com/prometheus/client_python/#fastapi--gunicorn which uses make_asgi_app


Failed to load the Ensime package

[Enter steps to reproduce below:]

...
...

Atom Version: 0.194.0
System: Mac OS X 10.10.3
Thrown From: Ensime package, v0.5.1
Stack Trace
Failed to load the Ensime package
At 'tooltips.less' wasn't found in /Users/viktor/.atom/packages/Ensime/styles/ensime.less:6:0

LessError: 'tooltips.less' wasn't found
  at /Users/viktor/.atom/packages/Ensime/styles/ensime.less:6:0

Commands

Config
{
  "core": {
    "themes": [
      "darkula-ui",
      "darkula-syntax"
    ],
    "disabledPackages": [
      "linter-scalac"
    ]
  },
  "Ensime": {
    "devMode": true,
    "typecheckTypingDelay": 1000,
    "typecheckWhen": "save"
  }
}

Installed Packages
# User
Sublime-Style-Column-Selection, v1.2.3
atom-typescript, v2.14.0
autocomplete-plus, v2.9.0
darkula-syntax, v0.3.0
darkula-ui, v0.1.0
language-scala, v1.1.0
last-cursor-position, v0.8.0
linter, v0.12.0
minimap, v4.7.5
project-manager, v1.15.5
script, v2.18.0
selection-count, v1.6.3

# Dev
No dev packages

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12487460-failed-to-load-the-ensime-package?utm_campaign=plugin&utm_content=tracker%2F14719420&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F14719420&utm_medium=issues&utm_source=github).

I just tried to change ui-theme and got this error. Tried Seti, Yeti, Nucleus-dark. In Meterial-ui or Atom Dark everything is fine..

Hm, yeah. Gotto look into that. Gotta see what the standard things for ut-themes are. I'm importing a file that doesn't exist in those other. There was a bug about that a few months ago too which I fixed, but it might have changed again or I never really understood it…

Hm, should probably move after haskell-ide: https://github.com/atom-haskell/ide-haskell/blob/master/lib/editor-control.coffee
So they're using markers and decorate instead. Should do that too.

https://github.com/atom-haskell/ide-haskell/issues/48

Please try 0.23 and see if that works.

It seems to be fine now! :+1:


Add Plausible to v1

Contributes to #151.
Changes:

Add Plausible domain to config/base.js
Update gulpfile to inject domain into index.html on build
Update Github Actions to disable staging build as we only have one deployed environment for v1

cc @aboydnw

@geohacker it looks like our Azure deploy keys for the production environment have expired, would you be able to update them? We need to update AZURE_CREDENTIALS_PRODUCTION secret.

@vgeorge thanks for starting this. @geohacker  It would be awesome to have this running by the end of this week, to be included in the product team's metrics for our quarterly goal next week, if you have time to get to it


WIP: fix(custom-query): Introduce custom query feature(osio-1722)

[ ] What does this PR do? [Mandatory]
Note: If you are still working on the changes, prefix the PR title with "WIP" and add the label "DO NOT MERGE"

Introduce Custom Query Feature

List custom queries for a space
Create custom query
Clicking on custom query should update the url and filter accordingly

[ ] What issue/task does this PR references? [Mandatory]

https://openshift.io/openshiftio/openshiftio/plan/detail/1722
[ ] Are the tests Included? [Mandatory]

No
[ ] Is the documentation Included?

[ ] Are the Release Notes included?

[ ] Is/Are the @mention(s) to reviewer(s) included

A complete PR is added for this feature - https://github.com/fabric8-ui/fabric8-planner/pull/2512
Hence closing it.


fix: Don't panic when generating code for call graphs with a lot of branching

/ok-to-test sha=9342449


Sorting replaces \n by \r\n

When sorting use clauses in PHP files under a Windows system (I used Windows 7, with PHP 7 RC5), the sorting makes the file invalidate a PSR-2 rule, as the line endings appended are the default from Windows (\r\n), instead of the ones from UNIX (\n).
Please see the attached image to apreciate that the endings have only been replaced in use clauses.

Hi there!
Thanks for that feedback :)
This project uses PHP_EOL for new lines.
https://github.com/mmoreram/php-formatter/blob/master/src/PHPFormatter/Sorter/UseSorter.php#L249
Maybe here is the problem... :/
What do you think?

Hi Marc,
As PSR is the standard, I will suggest to use what the rules say: "All PHP files MUST use the Unix LF (linefeed) line ending."
However, maybe it is interesting for some users to especify their custom new line string, or let them choose which they use from a defined list. For this, I would suggest adding another parameter to the application, and document it consequently, so users can have this flexibility :) If not specified, I would leave by default the Unix line ending (\n) as the PSR rules say.
Would this be something that could fit into the application?

@jdomenechb okay! Will do it :)


Spindle Feedback / Settings not remembered or generated

I am using a Mesa 7i96S.
Under the Spindle tab,
Spindle - Feedback, Spindle Settings - Max Acceleration, and PID Settings - Encoder Scale don't seem to remember their settings when reloading the ini file.  The other settings appear to work.  I didn't test StepGen on that tab.
In the hal file none of the encoder settings are added.  I as able to get around this by coping the settings created with pncconf for the 7i96 and changing them.
# ---Encoder feedback signals/setup---

setp    hm2_7i96s.0.encoder.00.counter-mode 0
setp    hm2_7i96s.0.encoder.00.filter 1
setp    hm2_7i96s.0.encoder.00.index-invert 0
setp    hm2_7i96s.0.encoder.00.index-mask 0
setp    hm2_7i96s.0.encoder.00.index-mask-invert 0
setp    hm2_7i96s.0.encoder.00.scale 4000

net spindle-revs             <=   hm2_7i96s.0.encoder.00.position
net spindle-vel-fb-rps       <=   hm2_7i96s.0.encoder.00.velocity
net spindle-vel-fb-rpm       <=   hm2_7i96s.0.encoder.00.velocity-rpm
net spindle-index-enable     <=>  hm2_7i96s.0.encoder.00.index-enable

Thanks for the feedback, I'll add that to the spindle section which is still somewhat under construction.


Navar is totally destroyed

Hello! in a plain html set the navbar looks totally destroyed:
http://codepen.io/anon/pen/ZOJGPK

Navbar was removed 6 days ago (see #86) . If you need it you should use Release v0.1.23
If you take a quick search on the inserted css on your pen, there is no navbar style

@ConsoleTVs
You can use this code, it works perfectly in all screen sizes.
http://codepen.io/kleninb/pen/YWKOMb

@ConsoleTVs Sorry, I removed the Navbar code. Because it is too bugy. You can follow @BlackBooth 's method to add it to your own code.


computer restart after nltk.download()

I've installed nltk through anoconda. when I print:
'

import nltk
nltk.download()
'
in terminal, then my mac went blank and restart.
Anyone knows what's the matter?

Please see #2357


Need DSL version of sub() for Element

@adamvy This works now:
e.call(function(e) { this.sub(...); })...
The call() method on Element let's you break into a function where 'this' is the Element and then resume without breaking the flow.


Paris 26 Gigapixels samples

Sample used to demonstrate the power of the tiles manager into ForgeJS and the camera navigation into a single scene.

 All committers have signed the CLA.


feat: finish pipeline and issue webhook

Summary
This PR is based on #3051 .
finish pipeline and issue webhook
Does this close any open issues?
Closes #3023
test
post a cicd task
curl http://<IP_ADDRESS>:8080/plugins/webhook/1/cicd_tasks -X 'POST' -d '{"pipeline_name":"A123","name":"unit-test","result":"IN_PROGRESS","status":"IN_PROGRESS","type":"TEST","environment":"PRODUCTION","created_date":"2020-01-01T12:00:00+00:00","finished_date":"2020-01-01T12:59:59+00:00","repo_id":"devlake","branch":"main","commit_sha":"015e3d3b480e417aede5a1293bd61de9b0fd051d"}'
{"success":true,"message":"success"}
post a cicd task but pipeline done
curl http://<IP_ADDRESS>:8080/plugins/webhook/1/cicd_tasks -X 'POST' -d '{"pipeline_name":"A123","name":"unit-test","result":"IN_PROGRESS","status":"IN_PROGRESS","type":"CI","created_date":"2020-01-01T12:00:00+00:00","finished_date":"2020-01-01T12:59:59+00:00","repo_id":"devlake","branch":"main","commit_sha":"015e3d3b480e417aede5a1293bd61de9b0fd051d"}'
{"success":false,"message":"error executing the requested resource for plugin webhook (403)\ncaused by: can not receive this task because pipeline has already been done. (403)"}
finish a cicd task
curl http://<IP_ADDRESS>:8080/plugins/webhook/1/cicd_pipeline/A123/finish -X 'POST' -d ''
{"success":true,"message":"success"}
post issue
curl http://<IP_ADDRESS>:8080/plugins/webhook/1/issues -X 'POST' -d '{"board_key":"DLK","url":"","issue_key":"DLK-1234","title":"a feature from DLK","description":"","epic_key":"","type":"BUG","status":"TODO","original_status":"created","story_point":0,"resolution_date":null,"created_date":"2020-01-01T12:00:00+00:00","updated_date":null,"lead_time_minutes":0,"parent_issue_key":"DLK-1200","priority":"","original_estimate_minutes":0,"time_spent_minutes":0,"time_remaining_minutes":0,"creator_id":"user1131","creator_name":"Nick name 1","assignee_id":"user1132","assignee_name":"Nick name 2","severity":"","component":""}'
{"success":true,"message":"success"}
close issue
curl http://<IP_ADDRESS>:8080/plugins/webhook/1/issue/DLK/DLK-1234/close -X 'POST'
```{"success":true,"message":"success","causes":null}`

use new type(); add environment for tasks (pipeline's environment will always empty).


docs: update API reference for multiple languages

Depends on https://github.com/cdk8s-team/cdk8s-core/pull/46
Closes #656
Closes #658

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Screenshot:


Add default profile generation into operator deployment

What type of PR is this?
/kind feature
What this PR does / why we need it:
We now generate the default profiles from the profiles/ directory into
the operator deployment. This includes an additional verification step
in the CI, where we check if the profiles in the deployment are
up-to-date.
Which issue(s) this PR fixes:

Fixes https://github.com/kubernetes-sigs/seccomp-operator/issues/42
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?

- Add default operator profiles to the deployment. For now we added an nginx:1.19.1 profile

Working on a fix for:
The ConfigMap "default-profiles" is invalid: data[nginx:1.19.1.json]: Invalid value: "nginx:1.19.1.json": a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name',  or 'KEY_NAME',  or 'key-name', regex used for validation is '[-._a-zA-Z0-9]+')

Thanks for the review @hasheddan, let's iterate on the configuration and the tooling. :pray:
/hold cancel


Admin page

[x] Listing all user profiles
[x] Sending a DELETE request with user data to backend
[ ] Verification when deleting a user
[x] notifications/table of users who breached the loan period

Can there also be a view of the book requests made by users? Also a little checkbox or something to mark those requests as "done"? :)

Book requests with current status added 👍

I know this is marked as done by the old group, but a verification when deleting a user might be a good thing to have.


IPython 8.0 breaks error stack tracing for Interactive Window

Steps to repro:

Create python file
Add

# %%
raise Exception("FOO")

Run cell

Actual results:

Expected results:

Make sure to renable this test when fixing this bug:
Raising an exception from within a function has a stack trace


Thanos Receiver: local receiver not committing to TSDB block when forward fails

Thanos, Prometheus and Golang version used:

Thanos 0.19.0 (Bitnami image thanos:0.19.0-scratch-r0)
Prometheus 2.26.0 (Bitnami image prometheus:2.26.0-debian-10-r6)
Golang: not sure (this Thanos image is based on scratch OS, cannot run go version in it)

Object Storage Provider:
MinIO RELEASE.2021-02-14T04-01-33Z
What happened:
I was running a Thanos receive statefulset with 3 replicas and a soft hashring configured. TSDB retention was set to 4 hrs. Everything was OK at the beginning until I manually used dd to fill up the PVC of receiver-2. Receiver-2 couldn't write anything to WAL as expected, but receiver-0 and receiver-1 did not work as expected either. Symptoms of receiver-0 and receiver-1 include:

(Expected) stdout/err was flooded with log similar to level=error ts=2021-05-13T06:21:27.100387377Z caller=handler.go:340 component=receive component=receive-handler err="forwarding request to endpoint thanos-receive-2.thanos-receive-headless.observability.svc.cluster.local:10901: rpc error: code = Internal desc = store locally for endpoint thanos-receive-2.thanos-receive-headless.observability.svc.cluster.local:10901: commit samples: write to WAL: log samples: write /var/thanos/receive/default-tenant/wal/00000189: no space left on device" msg="internal server error"
(Unexpected) thanos-query cannot return metrics from any receivers after fill-out event
(Unexpected) thanos-bucket-web cannot see any block from any of the receivers, including those blocks already compacted in receiver local PVC before the fill-out event

note: no block from receiver is listed above, only blocks in object storage are listed.
(Unexpected) object-storage no longer receives block uploaded from receivers after the fill-out event
(Unexpected) thanos-receive-0 and thanos-receive-1 no longer compact WAL to TSDB blocks after fill-out event

the latest block was committed at UTC 03:10

new WAL was still being generated at UTC 06:31
(Unexpcted) as a result of point 5, thanos-receive-0 and thanos-receive-1 no longer comply with TSDB retention setting, old blocks were not deleted after it went out of retention window, hence PVC usage of these two instances will increase indefinitely until it reaches size limit and breaks the application

What you expected to happen:
Thanos-receive-0 and thanos-receive-1 can work normally even if thanos-receive-2 is down. Metrics that should be processed by thanos-receive-2 according to the hashing should be either dropped or processed by 0 or 1.
How to reproduce it (as minimally and precisely as possible):

Setup a multi-replica thanos-receiver with soft-hashring configured
Break one of them by filling up its storage (or just shut it down perhaps)
Observe the other replica, they should no longer function normally and produce the symptoms listed above

Full logs to relevant components:
Logs

Thanos-receive-0 and thanos-receive-1:
level=error ts=2021-05-13T06:48:42.505592554Z caller=handler.go:340 component=receive component=receive-handler err="forwarding request to endpoint thanos-receive-2.thanos-receive-headless.observability.svc.cluster.local:10901: rpc error: code = Internal desc = store locally for endpoint thanos-receive-2.thanos-receive-headless.observability.svc.cluster.local:10901: commit samples: write to WAL: log samples: write /var/thanos/receive/default-tenant/wal/00000189: no space left on device" msg="internal server error"
Thanos-receive-2:
level=error ts=2021-05-13T06:49:40.195783741Z caller=handler.go:340 component=receive component=receive-handler err="store locally for endpoint thanos-receive-2.thanos-receive-headless.observability.svc.cluster.local:10901: commit samples: write to WAL: log samples: write /var/thanos/receive/default-tenant/wal/00000189: no space left on device" msg="internal server error"

Anything else we need to know:

Is it possible to keep other thanos receivers in the same hashring working when one of the receivers goes down? I think it is important for high availability.
Prometheus introduced an experimental flag --storage.tsdb.retention.size in recent versions, will it be feasible to introduce this feature to Thanos receivers once it is official released? Although it cannot prevent the overlapping issue from denying retention settings (see comment below), it can still help to better protect storage from being filled up.
Maybe we need a best practice documentation for receivers? e.g. hashring setup, retention setup, etc.

In addition, the case listed above is not the first time I encounter this situation. In another environment, there are 6 replicas of Thanos receiver, one of them "thanos-receive-4" encountered an unexpected overlap block issue:

After the overlap issue occurred, thanos-receive-4 stopped deleting outdated blocks and eventually filled all of its PVC. Then other receivers stopped deleting outdated blocks as well. In the end, all PVC of Thanos receivers were fully filled up and cannot be resumed without emptying their PVC.

When I read it like this, I assume we should alter the healthy state of such instance. I'm pretty sure that if the instance without storage would be killed (so for k8s == unhealthy) than it would/should be removed from the ring.
In your case; if receiver-2 would exit fatal (the disk is full == unhealthy, so that would make sense maybe), that should resolve the rest. Or.. we should check response codes & back-off / kick something out of the ring.

When I read it like this, I assume we should alter the healthy state of such instance. I'm pretty sure that if the instance without storage would be killed (so for k8s == unhealthy) than it would/should be removed from the ring.
In your case; if receiver-2 would exit fatal (the disk is full == unhealthy, so that would make sense maybe), that should resolve the rest. Or.. we should check response codes & back-off / kick something out of the ring.

@wiardvanrij  I think for the disk-full situation, the receivers should react differently according to their status:

the disk-full receiver: should go into unhealthy state/terminate/start to clean up old block or WAL logs to make space
other receivers within the same hashring: should at least continue to serve receive requests and enforce retention policy normally. It will be a plus if they can be aware of the disk-full receiver and can discard the request to-be-forwarded to that receiver until it recovers.

@ethernoy how this issue was solved? and what was the replication factor that you were using?

@ethernoy how this issue was solved? and what was the replication factor that you were using?

Nah it wasn't solved, we just enlarge the PVC we were using as a workaround.
About the replication factor, if you are talking about thanos-receive replication, we used 1.


Is it possible to refine multiple attributes?

I have a start_date and an end_date on each of my search items.
What I'm trying to achieve is the ability to filter items by 'Pending', 'Active', and 'Expired'
Pending: start_date > now
Active: start_date <= now AND end_date > now
Expired: end_date < now
I can't figure out how this is possible with InstantSearch.js - any help would be appreciated,
Thank you!

Which kind of UI are you looking for this?

In regards to the filtering of the items, I don't mind building custom - just radio button toggles I guess. Just unsure how to achieve it with any instantsearch.js type widget

This is indeed something that I don't see as possible with our current widgets, and has come up before (a while ago) in the context of dates. In this case this seems very similar (exactly the same) as a numeric menu, but with multiple attributes. I'd suggest you also start that way:

fork https://github.com/algolia/instantsearch.js/blob/develop/src/connectors/numeric-menu/connectNumericMenu.js
read from the item instead of the attribute given in the argument

https://github.com/algolia/instantsearch.js/blob/develop/src/connectors/numeric-menu/connectNumericMenu.js#L273

add the key attribute to each of the options

Ah ok thanks for your help


Fix "custom format in Negotiation library" doc

Fix #210 according to the discussion conclusion.

:+1:

changes made :-)

Thanks @ogizanagi :+1:


Create release 3.0.0

same procedure as every time...

Done:
https://repo1.maven.org/maven2/com/devonfw/tools/devon-docgen/3.0.0/


How to insert html tag when insert video embedded  or image ?

Hi all,
I want to insert html tag  when insert video embedded  or image. example I want move iframe tag into p tag.
I don't know how to do it. Please help me.
Thank all so much

any idea how to solve this ? I need to move iframe tag into another div

You would want to write a Quill Parchment blot for the tag to implement this

Thanks @alexkrolick


Changing the background color of a button doesn't work on MacOS

Hi! I was doing a project for the ASP intro course at Uni Potsdam when I realised that I can't change the background color of a button with the options provided. After some research it seems that this is not clinguin related, but a Tkinter issue(link to a StackOverflow discussion about it).
Some people use the highlightbackground attribute to go around the inherent problem, but it doesn't seem to consistently cover all cases and it doesn't have the same effect as a background_color.
I used a label and shaped it as a button where this works great for me for the time being. I think there isn't much that can be done, maybe including this attribute highlightbackground, although it won't be the same. Maybe just a little warning for the MacOS users I guess if they land here with the same issue.

Thank you! In future development we will consider adding this attribute. And new frontends so that we don't have to deal with these tkinter issues.

Thanks, that makes very much sense! I think the label-as-a-button strategy doesn't look bad too at all.

Great! Sorry for not being able to take care of the issues at the moment. Alex (who made the system) will be back in july and catch up with some of these issues and further development. We are very open to feedback and feature ideas.


setTokensFromVariables does not correctly compare descriptions

Describe the bug
On import variables, when determining if a token is existing or updated, the comparison of the old token and new token description leads to false positives or negatives as it could compare different types of values.
This because of the fact that:

Figma provides empty descriptions as empty string.
Tokens Studio saves empty descriptions as a value of undefined

To Reproduce
Steps to reproduce the behaviour:

Create token without description in Tokens Studio
Export to Figma.
Import to variables to Tokens Studio.
See that the existing token is falsely determined as a new token.

Expected behaviour
See that no tokens have changed.
Proposal

Normalize description before check if they are equal.

From:
https://github.com/tokens-studio/figma-plugin/blob/45697ef5023dc171587eadf2b1128b607ef5e0d0/packages/tokens-studio-for-figma/src/app/store/models/tokenState.tsx#L392
To:
const normalizedOldValueDescription = oldValue.description ?? '';
const normalizedTokenDescription = token.description ?? '';
if (isEqual(oldValue.value, token.value) && isEqual(normalizedOldValueDescription, normalizedTokenDescription)) {

Reuse logic from setTokensFromStyles in setTokensFromVariables
https://github.com/tokens-studio/figma-plugin/blob/45697ef5023dc171587eadf2b1128b607ef5e0d0/packages/tokens-studio-for-figma/src/app/store/models/tokenState.tsx#L349-L350

Abstract token determination to separate function for both setTokensFromStyles and setTokensFromVariables

If you agree that this would be a bug, I'm happy to provide a PR with one of the options above, depending on what the preference of the maintainers is.

Hey @mrtnvh sorry for the slow response here.
I agree - that proposal does make sense to me. If you want to contribute, I'd be happy to review and get those changes into one of our coming releases 💖
Thank you!!


AutoDMG Cache Builder asking for Auth?

Trying to get "AutoDMG Cache Builder" working. Have a new machine setup with Munki and it is connecting to our repo without any problems, but when I run the cache builder I get this error:
$ sudo ./autodmg_cache_build.py
Password:
Using plistlib
Something went wrong! cannot import name MunkiDownloadError

Using Munki repo: https://munki.ourdomain.com/munki_repo
Error: HTTPS was used but no auth provided.

Note we use SSL, but we don't use Basic Authentication.  So I'm not sure what auth it is asking for.  Tried to google and ask others but no success yet.

I found these lines in the script:
  if "https" in MUNKI_URL and not BASIC_AUTH:
    print >> sys.stderr, "Error: HTTPS was used but no auth provided."
    sys.exit(2)

Which assumes that if we have HTTPS then we must have Basic Auth setup, which is false.  I can just comment out those lines, but I'm not sure what the Something went wrong! cannot import name MunkiDownloadError means either.

RE: MunkiDownloadError
I talked to the MacAdmins group and it turns out I was running their in-progress release.
I was told:

MunkiDownloadError is definitely in fetch.py in the latest release
But it's gone from later work-in-progress builds
https://github.com/munki/munki/blob/master/code/client/munkilib/fetch.py#L99-L136
So I'd recommend that you go back to the 2.8.2 release
And warn @nick.mcspadden that his code will need to be adjusted for a future release

Is this still and issue or is it resolved?

The "Error: HTTPS was used but no auth provided."  is an issue still (I had to comment it out of your script).  It assumes that if someone is using HTTPS, then they must be using AUTH.  All of our web traffic is setup to go over HTTPS by default, but we currently have no plan in setting up AUTH for Munki.
Is that a needed / required check to exit out from in your script?

That can be safely removed, it's not needed. It was a very long time ago and I never updated it since. You could even do it over HTTP - that was mostly a sanity check to make sure we didn't have misconfigured machines in our environment.
Development on ADCB is mostly halted until we see further evidence that will continue to play a significant part in Mac deployment.

#138 updates the version on Github with our internal copy, which (among many other things) removes those lines.

Closed by #138


question: root level container app / main app testing

thanks for the sharing in RailsConf and writing this up.
enjoy it and learnt a ton from you.
here a question about the engem cli usage

bin/engem cli currently only run tests in engines and gems.
and I am thinking of adapting the bin/engem and is-dirty to handle my root level end to end testing as well.
do you usually not having root level test case (e.g. feature / system tests) for pure engem rails project ?
wonder if you guys are moving the main_app into engines as well (like the attempt in https://cbra.info/ moving the root app into a folder called web_container)

do you usually not having root level test case (e.g. feature / system tests) for pure engem rails project ?

We keep system tests at the root level (and run them without any custom CLIs, just bundle exec rspec).

if you guys are moving the main_app into engines as well

I would say, eventually, yes. But at some point there could be some piece of code under the root app/ folder, which later to be extracted into an engine. The configuration, initializers and devtools configuration (e.g., Sidekiq Web or Graphiql) still lives in the root app.

thanks for the sharing ~


Regex flavour hasn't mentioned in man page.

I firstly report but for Debian distro but as man page provided upstream I've decided wrote here.
It is unclear what regex syntax supports ag.
As I know pcre library may work with different regex syntax.
Please add a note to man page with description of regex or at least  reference to.

Is it http://www.pcre.org/current/doc/html/pcre2pattern.html ?
In this case at least wrote:
SEE ALSO
  pcre2pattern(3)


Improve comment on "build: false" for appveyor

Fixes #58

Thanks, @faern!
@homunkulus r+

:pushpin: Commit d8303b9 has been approved by japaric

:hourglass: Testing commit d8303b9 with merge d8303b9...

:boom: Test timed out

Tests passed. Merging manually.


No API for retrieving user coutry code per IP

The problem
Hello tea,
Could you please help me to create an API for javascript and html only to retrieve the user country code base on the IP which is detected when user opens a form, for example, something like this option that only works for v18 IBMCore.common.util.user.getInfo()country, but it uses this(IBMCore.common.util.user.getInfo().country) script which when I implement, it breaks the dropdown.
The solution
I would like to have an api or function to retrieve the user country code base on the IP detected in the users machine.
Application/website
IBM Systems Primary Web
Business priority
High Priority = pressing release
What time frame would this ideally be needed by (if applicable)
One or two days
Examples
This function retrieves the country user base on IP: IBMCore.common.util.user.getInfo().country;, and here there is a form that when is loaded the country code is automatically loaded:
https://www.ibm.com/it-infrastructure/us-en/resources/campaignmail/mail/ibmhr/
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[ ] I checked the current issues for duplicate issues

@jcgonzal I wonder if you could please check in with the URX team.  They do country lookup for setting the country field on the form.  Their slack channel is #urx-questions

Issue resolved by manually including utility on client-side.


RCM API

Introduce a limited API for RCM to use to push composes to osbuild-composer.
Acceptance criteria:

[x] Introduce a dedicated TCP socket for this API.
[x] Implement a method to push a new compose, specifying the architectures to build for and the repositories to use. It would be ok to silently drop requests for unsupported (non-native) architecture, until we have support for more. For the time being assume the qcow2 output type and the local upload target.
[x] Implement a method to get the status of a compose (waiting/running/finished/failed)
[ ] Make the new API optional (ship the systemd socket unit in a sub-package and gracefully handle when not installed, possibly needing further discussion?)
[ ] Add support for the koji upload target, and use that exclusively in stead of the local one. This requires changes both to the input to the endpoint pushing a new compose, and the output of the status endpoint in finished state.
[ ] Return per-job status from GET /v1/compose/

Optional:

[ ] Support kerberos authentication in the same way brew etc does.
[ ] Extend the status API to optionally block until the compose is no longer waiting/running.

Status update:

Socket unit is on the way: #250
Upload target is blocked by the fact that the Koji support is missing
Kerberos support seems to be low-priority compared to the effort it would take (we can implement TLS support if there is a need for access management)

This has been superseded by other work.


[Feature Request] Allow hiding/showing the navigation tabs at the bottom of the sheet without going to the settings

As per title, allow the user to hide or show the bottom navigation tabs at the bottom without leaving the character sheet enviroment.

I don't know of a good way to show this.     But it seems to me there are 2 camps of users... the users that want to see and use the navigation bar, and the users that don't want it (I am one of these).     So it seems to me that the the real issue is if you accidentally turn off the feature, there is no quick way to turn it back on.
So I included a dialog that is displayed if you click on the close gadget:

I think we can use CSS to hide the navigation bar when the 'X' is clicked, and also redisplay it.

That's useful.
Alternatively, I'd also consider:

adding a "show/hide navigation buttons" at the top of the sheet, next to import, editor, sheet etc
in addition to the above, make it so the bar is fixed at the bottom and the scrollable part of the sheet considers it as part of the window frame (in essence, make it behave like the ribbon bar in the Office line of products).

Or something else along these lines.

in addition to the above, make it so the bar is fixed at the bottom and the scrollable part of the sheet considers it as part of the window frame (in essence, make it behave like the ribbon bar in the Office line of products).

That will be harder, because the parts of the window outside the character sheet are actually managed by the base Foundry software. I'll look at it though.

I see.
Something for the back burner I guess, things work great as they are already.

in addition to the above, make it so the bar is fixed at the bottom and the scrollable part of the sheet considers it as part of the window frame (in essence, make it behave like the ribbon bar in the Office line of products).

That will be harder, because the parts of the window outside the character sheet are actually managed by the base Foundry software. I'll look at it though.

I see.
Something for the back burner I guess, things work great as they are already.

I'm actively working on this issue. 😐

Sorry.. I thought you were working on https://github.com/crnormand/gurps/issues/800


Feature Request: Private Navigation Tab

Is your feature request related to a problem? Please describe.
Sometimes, I would like to navigate without leaving any trace such as history, cookies, information entered in forms
Describe the solution or the user experience you'd like
Adding the ability simply navigating incognito inside a specific tab.
Additional context
For example, the Chrome Android browser includes the New incognito tab item from its main menu.
See the screenshots:

Bro duckduckgo is already private browser when you click on fire it clear all traces

Thanks for your response, but in this case the purpose is to have a specific tab being private. It should not need to clear all traces such as the user is able to navigate as private punctually.

Thanks, @bonninf. AS @gursewakk we are private by default, and using the Fire button will remove all stored data by websites.
However, I understand what you mean by being able to burn a specific session or concrete tabs. We explored that and we were a bit restricted by how WebView works. There are many elements that are shared between all tabs, or stored in the file system.
We know users like to be able to clear any trace but at the same time, there's info they don't want to lose. We are trying to introduce new features and improve current ones to make the fire button more flexible for our users. To give you an example: you can manually fireproof a site (see options when you click the 3 dots button) to avoid losing your data in there. We still remove tabs when clearing all data, but if you logged in on a fireproof site, you should not be logged out.
Hope that one, and other features coming will be helpful for you :)


Test build in Travis config before deploying

Covered during https://github.com/LibCrowds/vue-pybossa-frontend/pull/144


Intellisense doesn't work for some props because TypeScript for these props are not correct.

Description
Intellisense doesn't work for some props because TypeScript for these props are not correct.
CodeSandbox/Snack link
No need.
Steps to reproduce
Props like justifyContent, alignItems, alignSelf, alignContent, flexDirection, flexWrap have their type as ResponsiveValue<(string & {}) | (number & {})>, which doesn't work with Intellisense for suggesting because basically they're considered dynamic strings.
Steps to reproduce:

Use any component that has the props above
Type that prop and wait for suggestion
See that there are no suggestions, even though there should be like the original React Native style props.

They should suggest as follow:

justifyContent: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly"
alignItems: "stretch" | "flex-start" | "flex-end" | "center" | "baseline"
alignSelf: same as alignItems
alignContent: "flex-start" | "flex-end" | "stretch" | "center" | "space-between" | "space-around"
flexDirection: "column" | "row" | "column-reverse" | "row-reverse"
flexWrap: "wrap" | "nowrap"

TypeScript:

No suggestions:

NativeBase Version
3.4.25
Platform

[ ] Android
[ ] CRA
[ ] Expo
[ ] iOS
[ ] Next

Other Platform
Visual Studio Code
Additional Information
No response

Hey @bao-multiIT,
Thanks for reporting. We will look into this.

@AshwiniKumar007  I think the cause of this is here: https://github.com/GeekyAnts/NativeBase/blob/5fb36bb35b524256346569358f7e8dfcfc6484d1/src/theme/types.ts#L22-L34
type GetRNStyles<key, scale = null> = scale extends keyof ITheme
  ? GetThemeScaleValues<scale>
  : key extends keyof CSSProperties
  ? ResponsiveValue<CSSProperties[key]>
  : key extends keyof RNStyles
  ? ResponsiveValue<RNStyles[key]>
  : unknown;

These are style keys that exist in both React Native's RNStyles and csstypes's CSSProperties. NativeBase's type system chooses the (very permissive) csstype version of the type, meaning values that are invalid in React Native and may cause a hard app crash are misleadingly treated as if they're valid.
I think you can fix this by switching the order of those conditions, so if a type exists in React Native, that's the one that is chosen.

Hi, facing same issue.
Because intellisense is not working properly, we accidentally misspelled a (string) and pushed the change. The app started crashing in production. We spend a few days to locate this error.
Please, thank you for looking into this issue so that typescript can properly help us prevent these errors.
Thank you the Native Base team for the excellent job!.

@AshwiniKumar007 Thinking about this again, why is CSSProperties used for generic top-level NativeBase styles at all? Every key and value it adds that wasn't already allowed by RNStyles will cause Android to crash.
Yes, those extra styles can be useful within React Native Web context - but isn't that what the _web prop is for? Shouldn't CSSProperties only be applied to the allowed types within _web, where it is safe and will work?
Surely top-level style props should only allow safe React Native style values that won't cause crashes on Android, and so the typing should nudge people to, for example, replace this:
// Works on Web, fails on iOS, crashes the app on Android.
// Is allowed by current NaveBase types, but it probably shouldn't be.
<Box justifyContent="safe center">

...with this (after moving CSSProperties types to extend RNStyles only within _web props):
// Works everywhere
<Box justifyContent="center" _web={{ justifyContent: 'safe center' }}>


CSS nano is out of date and contains a vunerability

Description
the css nano is out of date and it contains a version of js-yaml ad npm considers a high risk.
Can you update the package version please.
`High            Code Injection
  Package         js-yaml
  Patched in      >=3.13.1
  Dependency of   vue-hotel-datepicker
  Path            vue-hotel-datepicker > cssnano > postcss-svgo > svgo >
                  js-yaml
  More info       https://npmjs.com/advisories/813
found 2 vulnerabilities (1 moderate, 1 high)`

Datepicker Version
2.7.1

?


How to know the max_step

max_step = 715256 * 2  # num_epochs * (epoch_size // micro_batch_size) // devices
but how to know the epoch_size

max_step = num_epochs * epoch_tokens // batch_size
batch_tokens = micro_batch_size * seq_len * devices * gradient_accumulation
epoch_tokens is measured by counting the number of chunk files after data preprocessing and then times the chunk size