Updating DH2i partner Logo and Links

Got latest links and Logo from DH2i partner,

Need some guidance on how to upload the image/logo for DH2i (markdown [help)

Learn Build status updates of commit 8a946b9:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/sql-server/partner-hadr-sql-server.md
:warning:Warning

Details

docs/sql-server/partner-hadr-sql-server.md

Line 21, Column 2: [Warning: local-file-path] Link 'C:\Users\armaha\Downloads\DH2i_2.png' points to a local file. Use a relative path instead.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Learn Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@MikeRayMSFT
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#please-close


[$40] Extend Payments Popover

At the moment Payments Popover only shows Challenge id with copy and new tab buttons:

We want to update it to show the table with the next columns:

"Challenge ID" - show what we show now: challenge id link with two icons (keep it short like now) and add ... when cut it.

"Weekly Rate" - memberRate as dollar value, ex: $1000.00

"Days" - days as a number, ex: 2

"Amount" - amount as dollar value, ex: $400.00

"Status" - status show as a label, possible values: completed (#0ab88a), scheduled (#9d41c9), in-progress (#9d41c9), failed (#E90C5A), cancelled (#aaa) - Preferable reuse PaymentStatus component.

No sorting is needed. Keep the style of this table as simple as possible, so we keep this popover as small as possible.

Make the Total Paid value dashed if there is at least one payment so we know that we can click it:

works good
paid via https://www.topcoder.com/challenges/cac94a1e-2aea-471b-95c2-dba2ba3c20cc

Verified on Dev Env.

Verified on PRod Env with @nkumar-topcoder


[duktape] Add VERSION and SOVERSION properties CMake build

This is a fairly simple change that should have minimal impact. The biggest change is that it will add the version numbers to the dynamic libraries built for macOS and Linux using custom or community triplets. The SOVERSION is set to the major version, as the project's semantic versioning indicates this is the API compatibility value.

LGTM, thanks @LRFLEW


Output variable is not bound

🐛 Bug Report
In a larger op I'm writing I'm trying to conditionally add an item to a list of environment variables. However, I'm running into an issue where the original object containing my variables can't be created.
To Reproduce
Here's a minimal reproduction of the broken opspec
name: test

run:
  serial:
    - op:
        ref: github.com/opspec-pkgs/object.merge#1.0.0
        inputs:
          default:
            DOMAIN: dev
          override:
            TEST: foo
        outputs:
          envVars:
    - container:
        image: { ref: "alpine" }
        envVars: $(envVars)
        cmd:
          - env

Expected behavior
I'd expect the envVars variable to be available.
Cli output:
OpStarted Id='a7eaa84e6b334ec9bf4349ef5896f58d' OpRef='/Users/cameronlittle/Developer/mothra/.opspec/debug-codegen' Timestamp='2021-03-18T14:59:07Z'

ContainerStarted Id='8455382b628e4303bce8a149182bd768' OpRef='/Users/cameronlittle/Developer/mothra/.opspec/debug-codegen' ImageRef='docker.io/library/alpine' Timestamp='2021-03-18T14:59:07Z'

latest: Pulling from library/alpine
Digest: sha256:a75afd8b57e7f34e4dad8d65e2c7ba2e1975c795ce1ee22fa34f8cf46f96a3be
Status: Image is up to date for alpine:latest
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=fff6c342e33a
TERM=xterm
HOME=/root
DOMAIN=dev
TEST=foo
ContainerExited Id='8455382b628e4303bce8a149182bd768' ImageRef='docker.io/library/alpine' Outcome='SUCCEEDED' Timestamp='2021-03-18T14:59:10Z'

OpEnded Id='a7eaa84e6b334ec9bf4349ef5896f58d' OpRef='/Users/cameronlittle/Developer/mothra/.opspec/debug-codegen' Outcome='SUCCEEDED' Timestamp='2021-03-18T14:59:10Z'

Actual Behavior
OpStarted Id='6edceee92a1143939d4cdc858a990364' OpRef='/Users/cameronlittle/Developer/mothra/.opspec/debug-codegen' Timestamp='2021-03-18T14:59:49Z'

OpStarted Id='aa88af6fa41040b1a0fdea30d7dff173' OpRef='/Users/cameronlittle/Library/Application Support/opctl/ops/github.com/opspec-pkgs/object.merge#1.0.0' Timestamp='2021-03-18T14:59:49Z'

ContainerStarted Id='b119b36c269541c2a0cea1e768903291' OpRef='/Users/cameronlittle/Library/Application Support/opctl/ops/github.com/opspec-pkgs/object.merge#1.0.0' ImageRef='docker.io/library/node:11.13-alpine' Timestamp='2021-03-18T14:59:49Z'

11.13-alpine: Pulling from library/node
Digest: sha256:72aef1f7a5088ee3b162b1f9eafb48e8b76a9fc9df70169cb6cce75cff7fefce
Status: Image is up to date for node:11.13-alpine
ContainerExited Id='b119b36c269541c2a0cea1e768903291' ImageRef='docker.io/library/node:11.13-alpine' Outcome='SUCCEEDED' Timestamp='2021-03-18T14:59:54Z'

OpEnded Id='aa88af6fa41040b1a0fdea30d7dff173' OpRef='/Users/cameronlittle/Library/Application Support/opctl/ops/github.com/opspec-pkgs/object.merge#1.0.0' Outcome='SUCCEEDED' Timestamp='2021-03-18T14:59:54Z'

Error='unable to interpret '$(envVars)' as envVars; error was unable to interpret $(envVars) to object; error was unable to interpret 'envVars' as reference; 'envVars' not in scope' Id='d3ecfe8ab2034bc0b9611f58e7c4e433' OpRef='/Users/cameronlittle/Developer/mothra/.opspec/debug-codegen' Timestamp='2021-03-18T14:59:54Z'

Error='unable to interpret '$(envVars)' as envVars; error was unable to interpret $(envVars) to object; error was unable to interpret 'envVars' as reference; 'envVars' not in scope' Id='ab681ed6de324118b634b460cd7b48cd' OpRef='/Users/cameronlittle/Developer/mothra/.opspec/debug-codegen' Timestamp='2021-03-18T14:59:54Z'

OpEnded Id='6edceee92a1143939d4cdc858a990364' OpRef='/Users/cameronlittle/Developer/mothra/.opspec/debug-codegen' Outcome='FAILED' Error='unable to interpret '$(envVars)' as envVars; error was unable to interpret $(envVars) to object; error was unable to interpret 'envVars' as reference; 'envVars' not in scope' Timestamp='2021-03-18T14:59:54Z'

This is what you want; the sole output from that particular op is called result so you need to either use that as is or bind to an in scope variable
name: test

run:
  serial:
    - op:
        ref: github.com/opspec-pkgs/object.merge#1.0.0
        inputs:
          default:
            DOMAIN: dev
          override:
            TEST: foo
        outputs:
          result: $(envVars)
    - container:
        image: { ref: "alpine" }
        envVars: $(envVars)
        cmd:
          - env

and you already filed an improvement ticket to enforce you can't do this ; ) https://github.com/opctl/opctl/issues/798

@chrisdostert Do you know why this doesn't work?
name: test

run:
  serial:
    - op:
        ref: github.com/opspec-pkgs/object.merge#1.0.0
        inputs:
          default:
            DOMAIN: dev
          override:
            TEST: foo
        outputs:
          results: $(vars)
    - container:
        image: { ref: "alpine" }
        envVars: $(vars)
        cmd:
          - env

Ah, same thing - results vs result


Please provide a simple help text

It would be helpful if the qme command accepted at least a -h option for a minimal help text — e.g.:
$ qme -h
usage: qme [-h] COMMAND [ARG ...]

positional arguments:
  COMMAND     command to run
  ARG         optional argument(s)

options:
  -h, --help  show this help message and exit

As it is, qme will try ro queue -h as a command:
$ qme -h
2022/06/20 15:22:22 assuming server role
2022/06/20 15:22:22 enqueueing '-h'
2022/06/20 15:22:22 failed to execute command -h: exec: "-h": executable file not found in $PATH
2022/06/20 15:22:22 idling...
2022/06/20 15:22:22 listening on /tmp/qme.sock

PS: A -V/--version option would also come in handy — e.g., for bug reports.

Very much agreed. This was also mentioned in https://github.com/abdusco/qme/issues/1.
I'll add a proper argument parser for --help and other options down the line.


Localization modules

It doesn't seem to matter that much now. Modules contain mostly description.
But there are other modules that use localized strings, I think you need to take care of this in advance
https://github.com/GryllsAddons/ShaguTweaks-mods/blob/main/mods/free-slots.lua
https://github.com/GryllsAddons/ShaguTweaks-mods/blob/main/mods/skip-gossip.lua
ShaguTweaks is the basis for the rest of the modules, so I'm writing here.

I think we need to add support for module versioning. Remembering the problems of BigWigs, when the kernel was updated, and amateur modules did not have time to update. However, these obsolete modules were not disabled and gave errors.

https://github.com/shagu/ShaguTweaks/pull/66


Add scoring param to SGLCV

and add an example for F1 scoring in Logistic SGLCV.
Resolves #67

Coverage increased (+0.05%) to 97.017% when pulling 78db5ebba424485f209b6b86fb44640a449d14b6 on enh/cv-scoring into 66c4aade519e16a3faea6979fd44fa16274a08e5 on main.


twister: pytest: hardware_adapter: adapt to nrfutil.

add --dev-id to flashing command also when nrfutil runner is used.

I enabled the checks


Whether GraphTune supports for graphs with node attributions and edge attributions

Hello there:
thanks for your paper and code. I have graphs with node attributions and edge attributions. I want to get generated graphs also with them. Could you please tell me whether it supports these?
Thanks a lot again!

The algorithm of GraphTune described in the paper is applicable to graph data with node and edge attributions.
However, this function is not implemented in the code available on GitHub.
The function to import node and edge attributions from the dataset is not too difficult to implement.
Specifically, it can be achieved by modifying the dfs method in the ConvertToDfsCode class in graph_process/convert_to_dfs_code.py.
Original code on GitHub:
self.dfs_code.append([self.node_time_stamp[current_node],self.node_time_stamp[next_node],self.G.degree(current_node),self.G.degree(next_node),0])

Modified code:
self.dfs_code.append([self.node_time_stamp[current_node], self.node_time_stamp[next_node], <node attribute of current_node>, <node attribute of next_node >, <edge attribute of {current_node, next_node}>])

Please replace , , and <edge attribute of {current_node, next_node}> with the values of your dataset.


How to share additional filters?

I made a new filter that I want to share with other people who end up using Improv. Should additional filters be merged into this repo via a pull request? Should I create a new npm module with the keywords #improv, #procjam?
Specifically, I created a filter that works like mismatchFilter but inverted -- any group that has a tag which is mismatched against the model is INCLUDED. Groups without tags are included as well. I call it mustMismatchFilter.

I'd rather not add things to the library itself unless they're broadly applicable or necessary for getting up to speed quickly, so I'd suggest you share these in a gist or a separate module on npm. If you make an npm module, I'd suggest these standards:

Use improv-filter as an npm keyword
Call it the module mismatch-filter; same name as the filter itself (mismatchFilter) but in kebab-case.
Make sure the top-level export of your module is a function that returns the filter itself, a function, so that this works:

const generator = new Improv(data, {
  filters: [require("mismatch-filter")()] // Note the function call parens at the end
};

// Or alternatively with ES6 imports:
import mismatchFilter from 'mismatch-filter';

const generator = new Improv(data, {
  filters: [mismatchFilter()]
};

The reason for this is that it's consistent with the built-in improv filters that have parameters to set their behavior when they're created. These are just suggestions but figuring out a consistent way of sharing Improv filters as npm modules might be useful in the future.

Other projects dealing with the same issue often have a list of addons, extensions, complementary packages etc in the readme


Company Detail Page Site now opens in a browser

fix #196
With this pr the site of the companies will open in a new browser tab in their default browser .

https://user-images.githubusercontent.com/65587505/222503141-9971a634-a61e-4f6e-b651-13929933e8d9.mp4
The website was not opening before .


Query params are not allowed in redirect URLs

Hi,
We were providing our customers reply URLs that include query params. Many of our customers have already configured their Azure AD with these reply URLs. I know that query params are not allowed anymore with the new app registration page.
However, I wonder if the already configured directories will be affected by this change. Can our customers still log in to our applications using Azure AD Single Sign On if their applications are configured with a reply URL that includes query params?

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

ID: 576bf585-3203-731a-a8aa-597ae80b927b
Version Independent ID: 49969685-794a-29fe-94e8-3f50a668d141
Content: App registrations in the Azure portal training guide - Azure
Content Source: articles/active-directory/develop/app-registrations-training-guide.md
Service: active-directory
Sub-service: develop
GitHub Login: @archieag
Microsoft Alias: aragra

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

I have reached out to the product team to confirm what happens in that scenario.

Hi @MarileeTurscak-MSFT
Do you have any updates on this? We need this information before the legacy app registration becomes unavailable, since we may need to take actions.
Thanks!

Hi @SaurabhSharma-MSFT  @MarileeTurscak-MSFT ,  Do you have any updates on this. ?
We have registered Mobile/Native App earlier with redirect uri format supported as per documentation for Android  https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-android . Now, Below format Signature Hash value is not supported with query parameter("=" character). msauth://com.xxxxxxxx.xxxx.xxxxxxxxxxxxxxxx.xxxxxx/1wIqXSqBj7w+h11ZifsnqwgyKrY=
Looking forward to your response.
Thanks !

@SaurabhSharma-MSFT @MarileeTurscak-MSFT
this needs urgent action. Can you leverage the priority on this and update the correspondents of the issue accordingly?
We need to make sure that if already configured directories will be affected or not. I think I cannot stress enough on the importance of this matter.

I have reached out. + @RobdeJong @jeevansd @luleonpla anyone know the answer to this?

Redirect URIs that were previously registered (whether with wildcards, with http schemes, or with query parameters) will continue to work. Applications will not break with this change.

This doc has more details about redirect URI limitations: https://docs.microsoft.com/en-us/azure/active-directory/develop/reply-url

Thanks for the verification, this was the answer we were looking for.


TypeError: Builder.init() takes 6 positional arguments but 8 were given

python3 main.py ../vocali.py
here <parser.python.flowchart.PythonFlowCreator object at 0x7f46d2ce3bd0>
Traceback (most recent call last):
File "/home/anto/moodle-trace-generator-main/main.py", line 205, in
generate_code_question(quiz_root, code_parser, flow_parser, arg_code_file, arg_question_name, image_gen, arg_file_questions, arg_line_questions, arg_reduced, arg_feedback_animations, arg_display_constants, arg_line_numbers,
File "/home/anto/moodle-trace-generator-main/main.py", line 69, in generate_code_question
builder = Builder(parser, flowchart_parser, image_generator, omit_ert, display_const, animate_fb, code_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Builder.init() takes 6 positional arguments but 8 were given

Hi,
It has been quite some time since I tested the command line interface. I will spend a little time in the next week updating the code and resolving this and let you know when it is updated.

alternatively to command line interface, there is another way to use moodle-trace-generator?
thanks

I usually run the code as a web application. It can be a little limited sometimes because it is running on a very old server and I was never overly concerned with creating the most efficient application... But you can try it out here: http://cstools.ucd.ie/trace/quiz/create/

http://cstools.ucd.ie/trace/quiz/create/ -> ERR_CONNECTION_REFUSED

The server should be back up running again, I have also updated the command line to work with the newer code.

Hallo, using the site http://cstools.ucd.ie/trace/quiz/create/ for this code:
a = 10
b = 12 * a + 23
I obtain:
Analysis of questions present in the import file.
Eccezione - Cannot access offset of type string on string
More information
Debug information:
Error code: generalexceptionmessage
Stack trace:
line 958 of /question/format/xml/format.php: TypeError thrown
line 1043 of /question/format/xml/format.php: call to qformat_xml->import_category()
line 999 of /question/format/xml/format.php: call to qformat_xml->import_question()
line 987 of /question/format/xml/format.php: call to qformat_xml->import_questions()
line 351 of /question/format.php: call to qformat_xml->readquestions()
line 121 of /question/import.php: call to qformat_default->importprocess()
Probable problem in moodle version!
Using line command for same code: python3 main.py code.py
Traceback (most recent call last):
File "/home/anto/moodle-trace-generator-main/main.py", line 216, in
generate_code_question(quiz_root, code_parser, flow_parser, arg_code_file, image_gen, arg_input_dict, cfg)
File "/home/anto/moodle-trace-generator-main/main.py", line 71, in generate_code_question
image = image_generator.get_code_image(source_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/anto/moodle-trace-generator-main/imagecreator/image_generator.py", line 94, in get_code_image
self._add_code_text(text_group, source)
File "/home/anto/moodle-trace-generator-main/imagecreator/python_generator.py", line 66, in _add_code_text
token_tspan = self._get_tspan_token(token_type, token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/anto/moodle-trace-generator-main/imagecreator/python_generator.py", line 43, in _get_tspan_token
raise Exception("token not supported {} {}".format(token, token_type))
Exception: token not supported
Token.Text.Whitespace
what am I doing wrong?

Hallo, using the site http://cstools.ucd.ie/trace/quiz/create/ for this code:
a = 10
b = 12 * a + 23
I obtain the question in xml format and importing in moodle I receive:
Analysis of questions present in the import file.
Eccezione - Cannot access offset of type string on string
More information
Debug information:
Error code: generalexceptionmessage
Stack trace:
line 958 of /question/format/xml/format.php: TypeError thrown
line 1043 of /question/format/xml/format.php: call to qformat_xml->import_category()
line 999 of /question/format/xml/format.php: call to qformat_xml->import_question()
line 987 of /question/format/xml/format.php: call to qformat_xml->import_questions()
line 351 of /question/format.php: call to qformat_xml->readquestions()
line 121 of /question/import.php: call to qformat_default->importprocess()
Probable problem in moodle version?
Using line command for same code: python3 main.py code.py
Traceback (most recent call last):
File "/home/anto/moodle-trace-generator-main/main.py", line 216, in
generate_code_question(quiz_root, code_parser, flow_parser, arg_code_file, image_gen, arg_input_dict, cfg)
File "/home/anto/moodle-trace-generator-main/main.py", line 71, in generate_code_question
image = image_generator.get_code_image(source_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/anto/moodle-trace-generator-main/imagecreator/image_generator.py", line 94, in get_code_image
self._add_code_text(text_group, source)
File "/home/anto/moodle-trace-generator-main/imagecreator/python_generator.py", line 66, in _add_code_text
token_tspan = self._get_tspan_token(token_type, token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/anto/moodle-trace-generator-main/imagecreator/python_generator.py", line 43, in _get_tspan_token
raise Exception("token not supported {} {}".format(token, token_type))
Exception: token not supported
Token.Text.Whitespace
what am I doing wrong?


Ripple effect on Buttons placed over KenBurnsView doesn't work

I have the KenBurnsView and a button over it in a FrameLayout. Now, I am using a Ripple Effect on the button when clicked.
Previously before using KenBurnsView (I just had a simple ImageView) the ripple used to draw over the ImageView.
But now as I replaced the ImageView with this, the ripple draws below it. How can this be solved?

Hey aritraroy,
Could you provide a simple code example please?
Thanks

I have a layout with a KenBurnsView and an ImageView over it (just a toggle button). When I click on the button a Ripple is generated but is drawn below the KenBurnsView.
Previously, when I had an Image view in replacement to the KenBurnsView the Ripple was drawn above the ImageView on the top.
Here is my layout:

<RelativeLayout
    android:id="@+id/header"
    android:layout_width="match_parent"
    android:layout_height="@dimen/nav_drawer_header_height">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.flaviofaria.kenburnsview.KenBurnsView
            android:id="@+id/header_cover"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:src="@drawable/cover_1" />

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <ImageView
                android:id="@+id/header_toggle"
                android:layout_width="50dp"
                android:layout_height="30dp"
                android:layout_alignParentBottom="true"
                android:layout_alignParentRight="true"
                android:layout_marginBottom="10dp"
                android:layout_marginRight="10dp"
                android:padding="10dp"
                android:src="@drawable/toggle_down" />

        </RelativeLayout>

    </FrameLayout>

</RelativeLayout>

<RelativeLayout
    android:id="@+id/nav_toggle_container"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"></RelativeLayout>

This is my ripple drawable XML:

This is how I am adding the ripple:
toggle.setBackground(getResources().getDrawable(R.drawable.ripple));
What is the problem because of which the Ripple gets drwan below the KenBurnsView? It used to work perfectly when there was an ImageView in place of the KenBurnsView?

I updated the comment. Any help would be really appreciated?

I couldn't reproduce it. I'm not really sure what you're trying to achieve. To me, it doesn't make sense to set a ripple as the background of an image. You could, however, try to wrap the toggle in a FrameLayout and set the ripple to android:foreground of this FrameLayout.

Okay, that's a good solution. I would be surely trying that out. Thanks for your help.


No binary

Hi
it does not look like there is any binary executable file in the latest release.
Thanks

Just compiled it:
WindowsLayoutSnapshot.zip

Released 🥳


namespace with desc not work

I am using rails 5.1.1 and ruby 2.4.1, grape and grape-swagger is the latest version

Now I have add tag description in documentation using this following way:
add_swagger_documentation(
      format: :json,
      tags: [
        { name: 'medicals', description: '医生操作' }
      ]
    )

Hi @TangMonk … is it still relevant? then please provide at first a spec, so we have a use case, thanks


[Bug]: Advanced transfer "you need more" error

Describe the bug
I already have a LN connection and when using the Advanced flow to transfer funds I get an error due to the spending balance amount being invalid.
Reproduce

With an exiting LN connection (and potentially affected by the amount I have in savings)
Go to Transfer Funds
Using the Advanced flow, attempt to use the maximum amount ($12 in my case)
A "you need more to complete this transaction" error toast is shown regardless of chosen receiving capacity

Screenshots / Recording
advanced_transfer_amount_err.webm
Existing LN connection details:

Operating system
Android 13 TKQ1.221114.001
Bitkit version
v128 e8f50564c6b4f471d9a336067fa5d54b4754c2d4
Log output
No response

@catch-21 I'm not sure I understand the problem. Can you elaborate?
here you are trying to open a new channel and you do not have enough onchain funds for it.

@JeanlChristophe I would say the problem is that the only option I have in the Advanced flow is a value that is too high. At that time I had 27_597 savings and go to open a channel of 22_078 ($12), which leaves me with 5,519 to satisfy fees. If that it not enough, then I should be given the option to open using less than $12.
Feel free to close if this is not a valid or important issue.

This flow has been replaced in favour of one with granular choice spending balance and therefore this issue is no more. Closing.


Fix #1066 Remove the need for registering RestBindingJaxbDataFormatFa…

Is this what you meat, @lburgazzoli ?
Fix #1066

yes something like that

a3c95fc added a missing license header


Extend given to be used outside the current block

This does not work as expected
    it 'includes level 2 nested parameter within #declared(params)' do
      subject.params do
        requires :bar, type: Hash do
          optional :a

          optional :c, type: Hash do
            given :a do
              requires :b
            end
          end
        end
      end
      subject.get('/nested') { declared(params).to_json }
      get '/nested', bar: { a: true, c: { b: 'yes' } }
      expect(JSON.parse(last_response.body)).to eq('bar' => { 'a' => "true", 'b' => 'yes' })
    end

This is because given dsl already does the validation and only looks in the current block context. This could be changed so that given also looks in the parent blocks

So where does this end and should we just limit the support for given? At one point we can question the sanity of the user/api. Some specs to illustrate
it 'includes level 3 nested parameters within #declared(params)' do
      subject.params do
        requires :bar, type: Hash do

          requires :z, type: Array do
            optional :a
          end

          optional :c, type: Hash do
            given :a do
              requires :b
            end
          end
        end
      end
      subject.get('/nested') { declared(params).to_json }
      get '/nested', bar: { z: { a: true }, c: { b: 'yes' } }
      expect(JSON.parse(last_response.body)).to eq('bar' => { 'a' => "true", 'c' => { 'b' => 'yes' } })
    end

 it 'includes level 3 nested parameters within #declared(params)' do
      subject.params do
        requires :bar, type: Hash do
          optional :a
          requires :z, type: Array do
            optional :c, type: Hash do
              given :a do
                requires :b
              end
            end
          end
        end
      end
      subject.get('/nested') { declared(params).to_json }
      get '/nested', bar: { a: true, z: { c: { b: 'yes' } } }
      expect(JSON.parse(last_response.body)).to eq('bar' => { 'a' => "true", 'c' => { 'b' => 'yes' } })
    end

Should we also support these cases? I can fix the deeply nested given block as long as one of the parent params have the given :a but for the first spec I currently dont have a fix, I also have no clue how we can look for this (without walking through the complete parent/children params). or is there a simplere method (like do we keep a complete tree of params somewhere?)

I think we don't keep a complete tree, but maybe we should. Another way of course is to say that given :a is equivalent to optional :a, given :a ..., so that's an implicit declaration at the same level. I am not sure ...

Hi there, is this code merged yet? I'm having trouble defining params for an API endpoint that supports 2 levels of accepts_nested_attributes_for.
A car_listing has a car, which has many images. Given car_listing.type === x I want to require some other params.
    params do
      requires :car_listing, type: Hash do
        requires :type, type: String

        requires :car_attributes, type: Hash do
          # ...
          given type: ->(t) { t == 'CarListing::Classic' } do
            # ...
          end
        end
        # ...
      end
    end

Also, withing a nested namespace I don't think I can require more things on a nested attribute, even if given worked like described here.
# within another nested namespece
      params do
        optional :validate_token, coerce: Boolean

        requires :car_listing, type: Hash do
          requires :token, type: String
        end
      end

This just overrides all my requires for car_listing. I think I need the definitions to get deep merged somehow.
This doesn't work, raises Grape::Exceptions::UnknownParameter (unknown parameter: type). Is there a workaround for this 'bug'? Should I snap this in another issue?

https://github.com/ruby-grape/grape/pull/1225 has been merged. The rest is a feature request.

Hi, if I understand this issue correctly, I am hitting this case.
The goal is to have a namespace param down the nested body only required if a top-level type param is set to a specific value. So this is what I'm trying:
params do
  requires :type, type: String
  requires :configuration, type: Hash do
    requires :labels, type: Hash do
      requires :primary, type: Hash do
        given type: ->(val) { val == 'foo' } do
          requires :namespace, type: Boolean
        end
        requires :label, type: String
      end
    end
  end
end

On Grape 1.0.1, I'm getting: Grape::Exceptions::UnknownParameter: unknown parameter: type. Could you confirm this is the same thing?
If so, is there any workaround I could use? Thanks!


Reaction on reactive value change

Currently, we are already using reactiveServiceMixin to listen to ViewModel from the service. Whenever we update value from the service, the ViewModel changes but the issue is that it does not have any custom callbacks for onUpdate or just to perform updates on specific reactive values.
This is how it is handled in getx with workers, is there something similar available in stacked?
ever(_authService.phoneAuthState, (authState) async {
      switch (authState) {
        case AuthState.failed:
          setBusy(false);
          log.e('OTP verification failed');
          Get.snackbar('Error', 'OTP verification failed');
          break;
        case AuthState.verified:
          log.d('OTP verification successful');
          await _loginCall();
          Get.snackbar('Success', 'OTP verification successful');
          break;
        case AuthState.autoRetrievalTimeOut:
          log.d('OTP timed out');
          break;
        case AuthState.codeSent:
          setBusy(false);
          log.d('OTP sent to $phoneNumber');
          break;
      }
    });

In your view model, create a function, let say initialize, which listen to the reactive's variable
void initialize() {
    // if phoneAuthState is a ReactiveValue variable
    _authService.phoneAuthState.listen((value) {
        // do your stuff here ...
    });
}

In the widget, call the onModelReady function.
return ViewModelBuilder<YourViewModel>.reactive(
    // etc.
    viewModelBuilder: () => YourViewModel(),
    onModelReady: (YourViewModel viewModel) {
        WidgetsBinding.instance!.addPostFrameCallback(() => viewModel.initialize());
    },
);

@surajmandalcell  As the answer stated above you can listen for the ReactiveValue changes and use it as a stream with the stream view model and perform your callbacks onData. Let us know this answers your query.

Sorry but there is an issue with the previous code :disappointed:
_authService.phoneAuthState.listen((value) {
    print('changes happen');
    // do your stuff here ...
});

Calling the listen function on the phoneAuthState got called when the view model has instantiated the first-time event if there are no changes.
The correct way
_authService.phoneAuthState.onChange.listen((Change change) {
    if (change.old != change.neu) {
        print('changes happen');
        // do your stuff here ...
    }
});


Fix CI bug that prevents non-forked branches from being pushed

Addresses #115
I started adding another condition to that if statement, but noticed it would be less complex to set PUSH_IMAGE to true by default, and only make it false if the PR head is not ContainerSolutions/externalsecret-operator. How does that sound?

I am not sure, but I think that github.event.pull_request and all nested values won't exist when CI runs for something not coming from a Pull Request.

Oh you're right, then '' will not equal ContainerSolutions/externalsecret-operator, and it won't push the image.
I'll go back and look at your original comment...

Ok, I think this now covers everything;

if a normal commit or merge to master, then push.
if an internal PR to master, then push.
if it's both a PR, and a fork, then don't push.

Ah, it looks like the checks are failing because github.event is an object, and doesn't equal pull_request. Looks like github.event_name is what I want. Trying that...

Nice! Let's see with it merging now :)


How to get the encoded name of a ZipEntry?

I have a ZIP file with "encoded" ZIP entries.
WinZIP 20.5 Pro shows the original "encoded" filename "Cercle Ø168.115±0.01 N°2 H30".
Current Location part 1 offset 10155653
Central directory entry PK0102 (4+42): #1
======================================
    part number in which file begins (0000):        1
    relative offset of local header:                0 (0x00000000) bytes
    version made by operating system (00):          MS-DOS, OS/2, NT FAT
    version made by zip software (51):              5.1
    operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
    unzip software version needed to extract (20):  2.0
    general purpose bit flag (0x0000) (bit 15..0):  0000.0000 0000.0000
      file security status  (bit 0):                not encrypted
      extended local header (bit 3):                no
    compression method (08):                        deflated
      compression sub-type (deflation):             normal
    file last modified on (0x00004a7b 0x00006a82):  2017-03-27 13:20:04
    32-bit CRC value:                               0x40cd0fcc
    compressed size:                                238608 bytes
    uncompressed size:                              964553 bytes
    length of filename:                             28 characters
    length of extra field:                          0 bytes
    length of file comment:                         0 characters
    internal file attributes:                       0x0000
      apparent file type:                           binary
    external file attributes:                       0x00000020
      non-MSDOS external file attributes:           0x000000
      MS-DOS file attributes (0x20):                arc
    filename: Cercle Ø168.115±0.01 N°2 H30
    original: Cercle 168.115ñ0.01 Nø2 H30

But when I read the enty name using ZipEntry.Name, all I get is the original name "Cercle 168.115ñ0.01 Nø2 H30".
I have also tried to use the class WindowsNameTransform without any success. Sorry, I don't get it.
Any help or hint would be appreciated. Thank you.

Note:
The name was correctly read with ICSharpCode.SharpZipLib.dll Version <IP_ADDRESS>8. But we have updated to version <IP_ADDRESS>.

Note:
The class FastZip shows the same problems.

Setting the codepage to 850 seems to help.
ZipStrings.CodePage(850)
I have to check this with none ASCII systems, like Japanese.

We thought we can solve this problem by using
int codePage = Console.OutputEncoding.CodePage;
would solve our problem. But this is not the case. On a Japanese system the returned the code page is 932, whereas it is on a German systen 1252, Not the required code page 850.

Looking at the code from version <IP_ADDRESS>8 the code looks like this:
#if NETCF_1_0 || NETCF_2_0
		// This isnt so great but is better than nothing.
        // Trying to work out an appropriate OEM code page would be good.
        // 850 is a good default for english speakers particularly in Europe.
		static int defaultCodePage = CultureInfo.CurrentCulture.TextInfo.ANSICodePage;
#else
		static int defaultCodePage = Thread.CurrentThread.CurrentCulture.TextInfo.OEMCodePage;
#endif

In Version 1.2.0 it looks like this:
		private static Encoding EncodingFromFlag(int flags)
			=> ((flags & (int)GeneralBitFlags.UnicodeText) != 0)
				? Encoding.UTF8
				: Encoding.GetEncoding(
					// if CodePage wasn't set manually and no utf flag present
					// then we must use SystemDefault (old behavior)
					// otherwise, CodePage should be preferred over SystemDefault
					// see https://github.com/icsharpcode/SharpZipLib/issues/274
					codePage == AutomaticCodePage?
						SystemDefaultCodePage:
						codePage);

I think the comment "if CodePage wasn't set manually and no utf flag present then we must use SystemDefault (old behavior)" is wrong. I am thinking the "old behavior" is not working here.

Theres a bit of a description of what changed between versions @ https://github.com/icsharpcode/SharpZipLib/wiki/ZipStrings-and-Unicode
(Think the basic situation is that unless the UTF-8/Unicode flag is set in the zip, there is no record of what codepage was used stored inside the file. The spec suggests a default of IBM437, but it more often seems to just be whatever the creating system was using, and what default to use when reading such files seems to be a point of centention)

Numpsy, thank you for you answer.
I am on vacation now and will continue the work on my SharpZipLib problem by mid next January.
Have a good time.

Okay, so, the file names are encoded in the zipfile using code page 850 (where 0xf1 is ± and 0x9d is Ø). Using many european localizations of windows will yield the default code page 1251 (which is basically ISO-8859-1 or Latin-1).
The codepage that you set on ZipStrings is what the library should use to translate the bytes in the file to C# strings. Since that information is not actually stored in the file, the library cannot deduce what code page to use (unless the Unicode bit is set, then it uses UTF-8).
Since you know the correct encoding for the file names, you should just set the ZipStrings.CodePage to 850 and it should read the file names and comments correctly.
If you would set the code page to the console encoding (your example with Console.OutputEncoding.CodePage) it would interpret the filename bytes using the operating systems default encoding (which is what we're doing in the first place).

Hello piksel. Thank you for your answer.
Using int codePage = System.Globalization.CultureInfo.CurrentCulture.TextInfo.OEMCodePage; works for both, for European as well as for Japanese systems. We will use this as our solution. I realy hope this will do the job.
Thank you for your answers.


MH-13397 Remove unfinished feature "Participation Management"

Note that this PR is not yet complete. As it is a rather large piece of work that requires attention and has requests for comments, I make it public.
Open:

Make commented unit test (SchedulerServiceImplTest.java) work
Check whether migration will work with new recording state SCHEDULED

API changes:

External API: None
Admin UI API: Various changes, but it's luckily an internal API
REST APIs:
-- Scheduler REST API:
---- Modified GET /recordings/{id}/technical.json: Removed field optOut
---- Removed GET /recordings/{id}/optOut
---- Removed GET /recordings/{id}/reviewStatus
---- Removed PUT /recordings/{id}/reviewStatus
---- Modified POST /recordings: Removed form parameter optOut
---- Modified POST /recordings/multiple: Removed form parameter optOut
---- Modified PUT /recordings/{id}: Removed form parameters optOut and updateOptOut
-- Series REST API:
---- Removed GET /series/{id}/optOut

@JamesUoM, does Manchester use any of this code at present, or is your opt-out managed completely outside Opencast?

No we are standalone and act as a feeder to the Scheduler. Entwine
envisioned that our Participation would be managed by Opencast directly,
but now we've additional options such as choosing input sources and
overriding opt-out for disabled students that complicate the matter greatly.
On 01/03/2019 14:04, Stephen Marquard wrote:

@JamesUoM https://github.com/JamesUoM, does Manchester use any of
this code at present, or is your opt-out managed completely outside
Opencast?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/opencast/opencast/pull/751#issuecomment-468675136,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC0PE-r0kPcYCygMos0T15kWtnmsGfynks5vSTOJgaJpZM4bZEfj.

--
James S. Perrin
Media Technologies Team
J20, Sackville Building
The University of Manchester
Oxford Road, Manchester, M13 9PL
t: +44 (0)<PHONE_NUMBER>
e<EMAIL_ADDRESS>"The test of intellect is the refusal to belabour the obvious"

Alfred Bester

@lkiesow While the PR is not 100% done, there won't be much changes necessary now (will rebase after the review before merge).
-> It makes sense to start the review.
Most of the changes are quite trivial, but some changes do have quite some potential to introduce nasty bugs. Mostly, the replacement of the scheduling status and event status determination is quite critical and still messy (although better than before).
I've commented those changes which I think need to be scrutinized in this review.

Like Manchester, our opt-out is driven externally. One reason for this is that opt-out is primarily something associated with a course rather than a series, and the relationships between course, LMS site and Opencast series are not all 1:1.
So the code as-is is not required for our current systems (we wouldn't miss it).
I wondered whether review status might be helpful for other scenarios (unrelated to opt-out), for example lecturers who want to review a video before it's posted to students. But I tend to think that these use cases should be supported by some combination of ACLs, permissions, comments and possibly a flexible tag/label system.
TLDR: no objection to removing any of the code in this PR.

@lkiesow The pull request is now working as expected and ready for the final review.

@staubesv, your other püull request caused merge conflicts

@lkiesow I've resolved the merge conflicts.

@staubesv I did run through some tests and everything seemed to work :-)


release 0.14.9

cc @romancardenas Have you finished your work in this repo?

I think so! At least for interrupts and exceptions. I may need a few more fields for peripherals, but they can be added later.


No samples containing main()

I'm trying learn via the web  but every "sample" I look at makes no mention of main() and how to go about getting a thread of vulkan, specifically I want to offload some code to my gfx card to cut down the time it takes to stress test it, I basically wrote a function under MIT License to read a float string and output a float or double or long double or any other size based on what the user provides, it worked fine in when I did upto 128.128e+/-128 but my CPU is not cut out for checking every number between 0.0e+-/0 to 1024.1024e+/-1024, that's over a billion numbers to try while also using slower big int routines to cope with flexible size.

So main() is usually a C/C++ entry point function to where the process of a program starts. Vulkan runs along with all the other stuff you have in a normal C/C++ program.
The vkCreateInstance() is the equivalent "main" you are referring to. This call will create a Vulkan context as a VkInstance handle. With this you can create a VkDevice from VkCreateDevice(). From there, along with a lot more stuff I am hand waving here, you essentially create a VkCommandBuffer of work that is submitted to the VkDevice in a VkQueue. So when you call VkQueueSumit() the CPU will offload work to run on the GPU

Thank you, I'll try when I get time


Need clarification on Question 14.

The answer mentions the base object has no prototype, yet can still go down the prototype chain to find methods/properties. Doesn't the existence of the __proto__ object mean that this base object has a prototype?

+1

Should be interpreted as null or undefined instead of the basic object

The base object is the object created by the user, or an object that is created using the new keyword.

Agreed that the explanation has some problems. The above sentence sounds like the plain object, but in fact, I think the author means Object.prototype.
> Object.getPrototypeOf({})
{}
> Object.getPrototypeOf(Object.prototype)
null

The base object is the object created by the user, or an object that is created using the new keyword.

Agreed that the explanation has some problems. The above sentence sounds like the plain object, but in fact, I think the author means Object.prototype.
> Object.getPrototypeOf({})
{}
> Object.getPrototypeOf(Object.prototype)
null

Well, I am happy to get stuck on this while learning too. the answer definitely needs to be reviewed. anyway good learning, I won't hold it against myself not getting this question -:)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain
https://stackoverflow.com/questions/801032/why-is-null-an-object-and-whats-the-difference-between-null-and-undefined
It seems only null does not have a prototype, yet null is kind of a special case in itself.


Integration with Firebase Auth

I'm not sure if it's documented but I can't find a sample of integration with Firebase Auth. Basically what I want is that after verifying the idToken, the api should be able to generate the JWT token. Along with it will be the creation of the user if the id does not exists yet.
Has anyone implemented something like this? I do understand that there's option to use Google oAuth but I can't wrap my head around it just yet.

I don't know much about Firebast Auth, but the way I see it, it's a service that fully implements authentication logic right? So if you use it, you don't need fastapi-users. I may be mistaken here so correct me if I'm wrong.

thanks for taking time to answer.
I realized that generate_jwt inside the utils is that I need. Here's a high-level idea of what I want to do.
notes to those who are reading this: consider this as a pseudo code, please don't just copy-paste.
@router.post("/auth/verifytoken")
async def verifytoken(id_token: str):

   #use firebase sdk to get verify and retrieve user details
   decoded_token = auth.verify_id_token(id_token)
   #extract the uid
   uid = decoded_token['uid']

   #retrieve user from DB
   user = UserDB.get({ 'uid': uid })
    #prepare input
    data = {
        "user_id": user.id,
        "aud": jwt_authentication.token_audience
    }
    #generate token
    token = generate_jwt(
        data,
        jwt_authentication.lifetime_seconds,
        jwt_authentication.secret,
        JWT_ALGORITHM)

    return {"access_token": token, "token_type": "bearer"}

How are you retrieving the auth token? Your code  should work after  request.response.get['id-token']. I have  the same issue


chore: update repo metadata

Also, please run synthtool if you're updating this file to fix the output as well.


Please support HuggingFaceH4/starchat-alpha

https://huggingface.co/HuggingFaceH4/starchat-alpha
fails with issue not supported, bc it's https://huggingface.co/docs/transformers/model_doc/gpt_bigcode

There is so many different models out there - how can i tweak the input to generate other models? Do we need any libraries to plugged in?

Hi @localagi, if the model you are interested in has architecture supported by MLC-LLM, but the model itself is not explicitly supported, you can follow the tutorial Distribute Compiled Model to compile it yourself.
If the model's architecture is not supported by MLC-LLM yet, it is also possible to add it yourself with the guide here. Though this is much more involved.


Implement data field checks

Country names should be in this list (with some exceptions, e.g., Reunion): https://en.wikipedia.org/wiki/List_of_alternative_country_names

Latitude should be within +/- 90 degrees
Longitude should be within +/-180 degrees
Acronyms should not be duplicated
Elevation should be within 0 and 8800 m
Data availability should be either: ``
Tier should either be 1, 2 or ?
Instrument type should be in list: [Thermopile, RSI, SPN1, RSR]
Components should be in [G,B,D,IR,UVA, UVB]

This will help ensure consistent naming and acts as a pre-review and save reviewing time

#143 includes some of these checks (lat, lon, elevation) and is designed in such a way to make it easy to add additional checks

I think the options for data availability should be: Freely, Upon request, and Not available.
Leaving it blank/None just makes it more confusing...


IU bug after updated of angualr version

Describe the bug
After we have updated the version of angular and node js to new versions. the IU of the project has changed completely. it is not displaying well or the card does not show anymore. and some links on the navbar do not work correctly like the dropdown.

@idrice24 test it .. Card should work fine

Ok this is nice 👍


Programmatic Node Interface

Fixes #16

Codecov Report

Merging #17 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
+ Coverage   94.53%   94.56%   +0.02%
==========================================
  Files          17       17
  Lines         238      239       +1
  Branches       30       30
==========================================
+ Hits          225      226       +1
  Misses         10       10
  Partials        3        3

Impacted Files
Coverage Δ

...nfrastructure/repository/ResponseRepositoryFile.ts
97.84% <100%> (+0.02%)
:arrow_up:

Continue to review full report at Codecov.

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


OS Notifications : Windows 10 doesn't register Laravel Mix

Laravel Mix Version: 6.0.11
Node Version : 14.15.5
NPM Version : 7.5.3
OS: Windows 10 20H2 (19042.804 / WFEP 120.2212.551.0)

Description:
After getting "Build successful" alert, "Laravel Mix" doesn't appear in the Windows 10 Notification settings panel, not allowing to set specific options. Please note that in version 5.x of laravel-mix, this was libelled as "SnoreToast" and was showing in Windows Notification panel as an application, so you could disable sound or any option you wished. Since 6.x I must disable either all notifications sounds as I can't control the sound of laravel-mix one specifically, or just use your special function to avoid laravel-mix sending any notification (which I don't want, I would like to keep seeing the compilation results).
Steps To Reproduce:
Install and run laravel-mix.

The issue seems to be here even in the latest release, probably linked to the notification service used here.


Role based access in the dotnet implicit Keycloak example not working.

Login works fine but the role based access to the API calls seems to be broken.

Was an issue with configuration so closing it.


Add ability to ignore specific URI list, eg: health check /health

func HasPrefix(str,  substring) bool
Or maybe this to ignore the URI by prefix?


can I install it in centos?

Hello,
Can I install it in Linux centos? and download a huge folder directly?

Yep, I don't see why you cannot. Maybe just extract the files from the .DEB file and install them manually to your centos folder?


Disable Restart and Migrate menu items when there is no VMI

https://bugzilla.redhat.com/show_bug.cgi?id=1673921

build failing

It's passing now


Update dependencies

Description
Update packages to latest version, or the latest we can use.
Related issue
Fix #4418

DO NOT MERGE, before checking binding redirects.


Replace client.scroll with a method on applicable response objects

Using client.scroll is kind of awkward because it's effectively a method that allows for retrieving arbitrary JSON responses from any URL. It requires a tiny bit of boilerplate to use, as illustrated in its unit test:
import igdb from 'igdb-api-node';

const client = igdb('API_KEY');

client.games({
    order: 'rating',
    scroll: 1
}).then(response => {
   /* do stuff with the initial response... */

    /* scroll to the next page */
    return client.scroll(response.scrollUrl);
}).then(scrollResponse => {
    /* do stuff with the scroll response */
});

While perform-request is building the response object, it can easily add a scroll method directly to that object that has all the data it needs already baked into it, such that the following becomes possible:
import igdb from 'igdb-api-node';

const client = igdb('API_KEY');

client.games({
    order: 'rating',
    scroll: 1
}).then(response => {
   /* do stuff with the initial response... */

    /*
    Scroll to the next page.
    The response already knows where to go,
    so we don't need to provide any URL at all.
    */
    return response.scroll();
}).then(scrollResponse => {
    /* do stuff with the scroll response */
});

It's a very small change, but it allows the user to completely disregard the API implementation details of scroll URLs, and moves the responsibility for scroll logic from the client to the response itself.
Responses without scrollUrl set will end up having no scroll method, so inspecting for its existence before calling it may be necessary. It's no different from inspecting to make sure that response.scrollUrl is set, so it may not be a big deal. If that proves awkward, though, the method can default to a stub that returns either:

a rejected Promise with an Error stating that there is no more content to scroll to, or...
a resolved Promise with an object which has a body property set to false.

There may be better ideas on how to resolve that bit. However, moving scrolling from a generalized client method to a response method seems like a worthwhile change. Keeping the client method around as a deprecated part of the API until v4.0.0 seems prudent to avoid introducing a breaking change and violating semver.

This is a beautiful solution.
I'm trying to think how every page could be obtained in one go.
Either an implementation like response.scrollAll({ resultLimit: 300, pageLimit: 5 }).then((results) => {}) or a more advanced example using your implementation.

That's a good point; if the series of resulting Promises can be abstracted away by the wrapper and yield a more intuitive client API, that's a goal worth pursuing. I'll think on this.

I pushed a crude solution & test to the develop branch.
Sadly you have to provide the endpoint & query as a string to use it. It would be nice to pass an endpoint and the query as a separate object but I'm going to wait for suggestions on this.

It's been in master subtly for a little while and I've been using it. Seems ok.


Add Experimental Description as Header for ChatGTP

Based on feedback from Ambrose and in an effort to align more with feedback from stakeholders such as Brand/Comms, we should add a header at the top of all chatgtp descriptions that reads "Experimental Description". This should lower our risk profile when we launch from a product positioning and communications standpoint.
Figma

@atarashansky closing as complete


SECURE_DEVICE_TYPE_SYMMETRIC_KEY undefined

Following along with tutorial and making step 5's change result in a syntax error. It seems the only SECURE_DEVICE_TYPE_VALUES define are
SECURE_DEVICE_TYPE_UNKNOWN,
SECURE_DEVICE_TYPE_TPM,
SECURE_DEVICE_TYPE_X509,
SECURE_DEVICE_TYPE_HTTP_EDGE

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

ID: 25f5a0aa-b8b7-c330-d342-973c72ec1328
Version Independent ID: e4df1e6a-83ac-4469-8a58-dddac952e24e
Content: Quickstart - Use symmetric key to provision simulated device to Azure IoT Hub using C
Content Source: articles/iot-dps/quick-create-simulated-device-symm-key.md
Service: iot-dps
GitHub Login: @wesmc7777
Microsoft Alias: wesmc

What release tag did you use when cloning the SDK?  Make sure you use the latest and build using this SDK instead of an older one. For example,...
git clone -b 2019-12-11 https://github.com/Azure/azure-iot-sdk-c.git

Also make sure you enabled symm key with the CMake build command shown in the article...
cmake -Dhsm_type_symm_key:BOOL=ON -Duse_prov_client:BOOL=ON  ..

Realized I grabbed an old release. My mistake.

@Selekena Thanks for the confirmation.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Rebrand to NEO - port from @CJSS and @canesin

This is a PR porting @CJSS and @canesin and fixing the conflicts, should go first before others.
See #65 and #49 .

Maybe we can just merge this after the fixes you find and let contributors do the proof reading.. also is better to avoid such big PRs in the future as the others will all probably need a rebase after this is merged.

Done. Please approve and merge. @canesin


[Messages] can't fetch contacts

Extension
https://www.raycast.com/thomaslombart/messages
Description
Error:
SwiftError: Failed to deserialize result from JSON: Unexpected token 'F', "Failed to "... is not valid JSON
    at ChildProcess.<anonymous> (/Users/Hackcraft/.config/raycast/extensions/f872e5ef-af26-4086-8b11-261e5c6f6c93/send-message.js:32:4476)
    at ChildProcess.emit (node:events:514:28)
    at ChildProcess.emit (node:domain:488:12)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Steps To Reproduce
On macOS 14.3 Beta (23D5051b)
Messages: Version 14.0 (1262.4<IP_ADDRESS>)

Install messages
Search for "Send Message" in raycast
see error

Current Behaviour
There is an error and the contacts field is empty
Expected Behaviour
No errors and the contacts field filled with my contacts

Thanks for reporting the issue.

No, it works fine on my end, so it's likely a contact name or something similar that is causing the bug. I'll check it out at some point, but I'm busy with other projects at the moment 😬


DropdownItem doesn't use ellipsis for text overflow

Fixes carbon-design-system/carbon-components#473
Overview
Resolves {{ issue number(s) here }}
{{ Description about the PR }}
{{ Include images and gifs when applicable }}
Added
{{ Description of things added }}
Removed
{{ Description of things removed }}
Changed
{{ Description of things changed }}
Testing / Reviewing
{{ Add descriptions, steps or a checklist for how reviewers can verify this PR works or not }}

with fix, it uses ellipsis:

Thanks for making this fix! 👍 ✅


Added Wireguard parser and scenario

I've created my first PR ever! It's a logparsers for Wireguard and a scenario which detect two specific autentication errors.
I've followed the instructions in the doc so all testfiles are insluded. Looking forward to hear what you think :-)

Hello @klausagnoletti
Thanks for the effort. A few questions tho :

Invalid handshake : what is the risk that a random scanner/packet triggers this error (or the other one) while probing the service ?
Packet has unallowed src IP : what scenario would this match ? Is it truly some allowed list, or is it more a side-effect of failed auth ?

Hey! Thanks for the comments. Those are excellent comments.
As far as the invalid handshake this error can also happen in a legit setting so this should definitely be changed to a leaky scenario to avoid false positives and general annoyance.
In terms of packet has unallowed src ip it's easier as indeed there is an allowed list define in your wireguard server settings which unsurprisingly contains ip of peers. This is from the wg manpage:
AllowedIPs — a comma-separated list of IP (v4 or v6) addresses with CIDR masks from which incoming traffic for this peer is allowed and to which outgoing traffic for this peer is directed.
I am not sure how well this list goes with roadwarriors on a dynamic ip. That should be investigated. I am talking to someone on the Wireguard reddit who might want to experiment a bit with it. In the meantime here's some more explanation of allowed ip.
https://utcc.utoronto.ca/~cks/space/blog/linux/WireGuardAllowedIPs
Is it possible to define two separate buckets in the same scenario file?

Hi @klausagnoletti what is the status? Do you use it in production? It would be nice to have some wireguard protection in opnsense.


When the slave node goes down, the number of Redis cluster connections doubles

version
Lettuce version: 6.0.1
Redis cluster version: 5.0.14
Redis cluster topology: 1master-->2slave

logging

Usually, the client’s number is 270 0000,but the connections increase to 610 0000 when i stop one slave node.

At the same time, I also saw the TCP flood via demsg |tail.
TCP: request_sock_TCP: Possible SYN flooding on port 6379. Sending cookies.  Check SNMP counters

The redis-server log is this:
Error registering fd event for the new client: result not representable (fd=13128)

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem.
You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.


How to use this with https://github.com/PaperMC/paperweight-test-plugin?

How to use this with https://github.com/PaperMC/paperweight-test-plugin?
I don't know how to get the mappings file path, there is no doc on it.

Paper includes the mappings https://github.com/jpenilla/reflection-remapper/blob/master/test-plugin/src/main/java/xyz/jpenilla/reflectionremapper/testplugin/TestPlugin.java#L81
For spigot/craftbukkit you will need to source the mappings yourself.


Annotation resize tbi

New Toolbox Item Annotation Resize
Description
Added a new Toolbox Item called annotation resize which allows you to change the size of all already drawn annotations.
PR Checklist

[ ] Merged latest main
[ ] Version number in package.json has been bumped since last release
[ ] Version numbers match between package package.json and src/version.js
[ ] Ran npm install and npm run build AFTER bumping the version number
[ ] Updated documentation if necessary (currently just in api_spec.md)
[ ] Added changes to changelog.md

Breaking API Changes
<description_here>

It looks like some of the line endings are still messed up, I'll try and sort it out today.
Content looks good.


ConnectivityChanged doesn't fire

Bug
Version Number of Plugin: 2.2.12
Device Tested On: iPhone 6 (iOS 9.3.2)
Simulator Tested On: NO
Expected Behavior
ConnectionChanged delegated is fired when I make iPhone online/off-line.
Actual Behavior
ConnectionChanged is not called, and CrossConnectivity.Current.IsConnected is always true if call manually.

should be fixed in latest beta, have been testing it out and works well.


flocker volume didn't migrate with container to new host in kubernetes env.

I have 3 node kubernetes cluster running on ubuntu 14.04
flocker is installed on top of these 3 nodes with one node as control.
created a flocker volume on one of the node & executed redis rc using kubectl. Attempted to migrate this redis container with mounted flocker volume to new host.  Though container migrated, volume remained on the host where it was created.  Attached is the detail command o/p. If you need any flocker process logs, please let me know. I accidently pasted this issue under https://github.com/binocarlos/flocker/issues
flocker_fail.txt

cc @wallrj

Hello Ryan,
I'm not clear on the behaviour of flocker with local storage. because, i tested this migration using flocker volume created from local storage. Thought of checking with Flocker team.

"flockerctl move" is failing.  the volume status is stuck at "detached" state on target node after move. Its not getting mounted or attached automatically after "flockerctl move".
Ex:
root@kube-host3:/etc# df -T | awk '{print $1,$2,$NF}' | grep "^/dev"
/dev/vda1 ext4 /
/dev/vdb ext4 /mnt
root@kube-host3:/etc# docker volume create --driver flocker -o type=ext4 -o device=/dev/vdb --name blr1 -o size=5GB
root@kube-host3:/etc# docker volume ls
DRIVER              VOLUME NAME
flocker             blr1
root@kube-host3:/etc# flockerctl list
DATASET                                SIZE    METADATA                            STATUS         SERVER
5cddd7b6-2606-49c3-8d9c-5cbc22331868   5.00G   maximum_size=5368709120,name=blr1   attached ✅   58f445f9 (<IP_ADDRESS>)
root@kube-host3:~# flockerctl list-nodes
SERVER     ADDRESS
58f445f9   <IP_ADDRESS>
b9b7ec2b   <IP_ADDRESS>
root@kube-host3:~# flockerctl move -d 5cddd7b6-2606-49c3-8d9c-5cbc22331868 -t b9b7ec2b
initiated move of dataset, please check state to observe it actually move.
root@kube-host3:~# flockerctl list
DATASET                                SIZE    METADATA                            STATUS     SERVER
5cddd7b6-2606-49c3-8d9c-5cbc22331868   5.00G   maximum_size=5368709120,name=blr1   detached   b9b7ec2b (<IP_ADDRESS>)

In https://github.com/ClusterHQ/flocker/issues/2894#issuecomment-246346663 @hgsat123 wrote:

I'm not clear on the behaviour of flocker with local storage. because, i tested this migration using flocker volume created from local storage. Thought of checking with Flocker team.

If you're talking about the Loopback backend, no, it doesn't support migration of volumes.

https://docs.clusterhq.com/en/latest/flocker-features/loopback-configuration.html#loopback-dataset-backend

Thanks Richard.
I read the FAQ later as there was no clarity on Flocker behavior w.r.t volumes created using local (host) storage.
I will retest with external block storage.
Regards,
Satish
From: Richard Wall<EMAIL_ADDRESS>Sent: Tuesday, September 20, 2016 5:11 PM
To: ClusterHQ/flocker<EMAIL_ADDRESS>Cc: SATISH HEGDE (Data Platform Engineering<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [ClusterHQ/flocker] flocker volume didn't migrate with container to new host in kubernetes env. (#2894)
** This mail has been sent from an external source **
Closed #2894https://github.com/ClusterHQ/flocker/issues/2894.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/ClusterHQ/flocker/issues/2894#event-795513683, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUwa3NpLk7upYEkAmEnd5x4KchO7tUJCks5qr8ZFgaJpZM4JzcDq.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com


Using Href in MatBlazor components cause to navigate twice.

Describe the bug
I am using MatBlazor in my enterprise project and thanks to all people who contribute into this awesome UI components.
I just detect when using Href in all MatBlazor components will navigate twice.
I am using it in .Net 5
To Reproduce
Open https://www.matblazor.com/NavMenu.
Click on "Internal Href Checkbox" item.
It will navigate to https://www.matblazor.com/Checkbox.
If you want to back to https://www.matblazor.com/NavMenu. page you have to click back button on browser twice.
Blazorfiddle link
Expected behavior
Should navigate once and can be back to previous page with one click on back button on browser.
Screenshots
If applicable, add screenshots or .GIF captures to help explain your problem.
Additional context
Add any other context about the problem here.

@ngothanhluan ,
If this is an issue, would you be willing to open a PR for it?

Hello, @ngothanhluan. In what other components did you notice this bug besides NavItem and ButtonLink?

HI @PeteJobi , I think that's only NavItem and ButtonLink components for this issue.

fixed by @PeteJobi


prometheus crash case

Can someone tell me how to deal with crash?

time="2016-12-21T15:51:26+08:00" level=info msg="Starting prometheus (version=1.2.3, branch=master, revision=c1eee5b0da2540b9dfd2f70752015b0fce83b616)" source="main.go:75"
time="2016-12-21T15:51:26+08:00" level=info msg="Build context (go=go1.7.3, user=root@d8eb84e17a12, date=20161103-21:49:39)" source="main.go:76"
time="2016-12-21T15:51:26+08:00" level=info msg="Loading configuration file prometheus.yml" source="main.go:247"
time="2016-12-21T15:51:26+08:00" level=info msg="Loading series map and head chunks..." source="storage.go:354"
time="2016-12-21T15:51:28+08:00" level=info msg="40705 series loaded." source="storage.go:359"
time="2016-12-21T15:51:28+08:00" level=info msg="Listening on :9090" source="web.go:240"
time="2016-12-21T15:51:28+08:00" level=info msg="Starting target manager..." source="targetmanager.go:76"
time="2016-12-21T15:56:28+08:00" level=info msg="Checkpointing in-memory metrics and chunks..." source="persistence.go:549"
time="2016-12-21T15:56:38+08:00" level=info msg="Done checkpointing in-memory metrics and chunks in 9.6899689s." source="persistence.go:573"
time="2016-12-21T16:01:38+08:00" level=info msg="Checkpointing in-memory metrics and chunks..." source="persistence.go:549"
time="2016-12-21T16:01:47+08:00" level=info msg="Done checkpointing in-memory metrics and chunks in 8.6828682s."  Scrapes and rule evaluations will be skipped." chunksToPersist=433329 maxChunksToPersist=536870912 maxToleratedMemChunks=-1181116006 memoryChunks=467574 source="storage.go:895"
panic: runtime error: makeslice: len out of range
goroutine 163 [running]:
panic(0xbf1ea0, 0x46935148)
/usr/local/go/src/runtime/panic.go:500 +0x331
github.com/prometheus/prometheus/storage/local.(*MemorySeriesStorage).maybeEvict(0x1379a240)
/go/src/github.com/prometheus/prometheus/storage/local/storage.go:1057 +0x62
github.com/prometheus/prometheus/storage/local.(*MemorySeriesStorage).handleEvictList(0x1379a240)
/go/src/github.com/prometheus/prometheus/storage/local/storage.go:1022 +0x168
created by github.com/prometheus/prometheus/storage/local.(*MemorySeriesStorage).Start
/go/src/github.com/prometheus/prometheus/storage/local/storage.go:367 +0x348

Your process / machine is running out of memory in the first crash (runtime: out of memory: cannot allocate 720896-byte block<PHONE_NUMBER> in use) fatal error: out of memory).
In the second one, Prometheus tries to allocate a Go slice that's larger than possible, not sure why exactly, but maybe it has something to do with very high flag values you provide.
Can you give the actual flags that you start Prometheus with? That is, is -storage.local.memory-chunks 1G really one billion (G = giga = billion)? That would be way too high. It should be set to a couple of millions at maximum, depending on how much memory you machine has.

yes . my machine has 16GB, when I  start Prometheus with -storage.local.memory-chunks 1GB

default config is 1MB ,it occasionally occur OOM

now 40551 series loaded, 11 machine scrape with 3s,11mahchine with 10s.
In the second one, Prometheus tries to allocate a Go slice that's larger than possible, not sure why exactly, but maybe it has something to do with very high flag values you provide.
is<PHONE_NUMBER>000

@juliusv

@brian-brazil

Sorry, but the numbers you mention mismatch or don't really make sense. -storage.local.memory-chunks does not take a GB (bytes) value, but a number of chunks. The maximum it should be set to is a couple of million (certainly not billions or more!). On a machine with only 16GB of RAM, it should probably not be set to more than 2 million or something like that.
"is<PHONE_NUMBER>000" -> what do you mean with that? Certainly no flag value should be set to 8 trillion. If that is the value for -storage.local.memory-chunks, then Prometheus will try to keep 8 trillion chunks in memory before it evicts them. It is no wonder why you are getting out-of-memory crashes then.
Try a value in the lower millions, or even less. If you really only have 40551 series, you probably want to set this to only a couple of hundred thousand.

so ,How to avoid out-of-memory ?

my prometheus is crash
version=1.6.1, branch=master, revision=4666df502c0e239ed4aa1d80abbbfb54f61b23c3
@juliusv
this is disk io

this is memory

picture show crush twice in 12PM  ADN 8 AM
ul 19 08:12:38 slave-95 kernel: INFO: task prometheus:20402 blocked for more than 120 seconds.
Jul 19 08:12:38 slave-95 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jul 19 08:12:38 slave-95 kernel: prometheus      D ffffffff816896f0     0 20402  20376 0x00000080
Jul 19 08:12:38 slave-95 kernel: ffff8801dc7236a0<PHONE_NUMBER>000086 ffff8801e5f68fb0 ffff8801dc723fd8
Jul 19 08:12:38 slave-95 kernel: ffff8801dc723fd8 ffff8801dc723fd8 ffff8801e5f68fb0 ffff88043fd56c40
Jul 19 08:12:38 slave-95 kernel:<PHONE_NUMBER>000000 7fffffffffffffff ffff88043ff407e8 ffffffff816896f0
Jul 19 08:12:38 slave-95 kernel: Call Trace:
Jul 19 08:12:38 slave-95 kernel: [] ? bit_wait+0x50/0x50
Jul 19 08:12:38 slave-95 kernel: [] schedule+0x29/0x70
Jul 19 08:12:38 slave-95 kernel: [] schedule_timeout+0x239/0x2d0
Jul 19 08:12:38 slave-95 kernel: [] ? page_remove_rmap+0x104/0x160
Jul 19 08:12:38 slave-95 kernel: [] ? kvm_clock_get_cycles+0x1f/0x30
Jul 19 08:12:38 slave-95 kernel: [] ? ktime_get_ts64+0x4c/0xf0
Jul 19 08:12:38 slave-95 kernel: [] ? bit_wait+0x50/0x50
Jul 19 08:12:38 slave-95 kernel: [] io_schedule_timeout+0xae/0x130
Jul 19 08:12:38 slave-95 kernel: [] io_schedule+0x18/0x20
Jul 19 08:12:38 slave-95 kernel: [] bit_wait_io+0x11/0x50
Jul 19 08:12:38 slave-95 kernel: [] __wait_on_bit+0x65/0x90
Jul 19 08:12:38 slave-95 kernel: [] ? __mem_cgroup_uncharge_common+0xcd/0x2f0
Jul 19 08:12:38 slave-95 kernel: [] wait_on_page_bit+0x81/0xa0
Jul 19 08:12:38 slave-95 kernel: [] ? wake_bit_function+0x40/0x40
Jul 19 08:12:38 slave-95 kernel: [] shrink_page_list+0x6e2/0xb00
Jul 19 08:12:38 slave-95 kernel: [] shrink_inactive_list+0x1fa/0x630
Jul 19 08:12:38 slave-95 kernel: [] shrink_lruvec+0x385/0x770
Jul 19 08:12:38 slave-95 kernel: [] ? blk_mq_run_hw_queue+0xa5/0xd0
Jul 19 08:12:38 slave-95 kernel: [] shrink_zone+0x76/0x1a0
Jul 19 08:12:38 slave-95 kernel: [] do_try_to_free_pages+0xf0/0x4e0
Jul 19 08:12:38 slave-95 kernel: [] ? get_page_from_freelist+0x51a/0x9f0
Jul 19 08:12:38 slave-95 kernel: [] try_to_free_mem_cgroup_pages+0xca/0x160
Jul 19 08:12:38 slave-95 kernel: [] mem_cgroup_reclaim+0x4e/0x120
Jul 19 08:12:38 slave-95 kernel: [] __mem_cgroup_try_charge+0x40c/0x660
Jul 19 08:12:38 slave-95 kernel: [] mem_cgroup_charge_common+0x59/0xc0
Jul 19 08:12:38 slave-95 kernel: [] mem_cgroup_newpage_charge+0x26/0x30
Jul 19 08:12:38 slave-95 kernel: [] handle_mm_fault+0xc90/0xfe0
Jul 19 08:12:38 slave-95 kernel: [] ? do_sync_read+0x8d/0xd0
Jul 19 08:12:38 slave-95 kernel: [] __do_page_fault+0x154/0x450
Jul 19 08:12:38 slave-95 kernel: [] trace_do_page_fault+0x56/0x150
Jul 19 08:12:38 slave-95 kernel: [] do_async_page_fault+0x1b/0xd0
Jul 19 08:12:38 slave-95 kernel: [] async_page_fault+0x28/0x30
Jul 19 08:12:38 slave-95 kernel: INFO: task prometheus:20419 blocked for more than 120 seconds.
Jul 19 08:12:38 slave-95 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jul 19 08:12:38 slave-95 kernel: prometheus      D<PHONE_NUMBER>000000     0 20419  20376 0x00000080
Jul 19 08:12:38 slave-95 kernel: ffff88009bc93a68<PHONE_NUMBER>000086 ffff8800a58c0000 ffff88009bc93fd8
Jul 19 08:12:38 slave-95 kernel: ffff88009bc93fd8 ffff88009bc93fd8 ffff8800a58c0000 ffff8800a58c0000
Jul 19 08:12:38 slave-95 kernel: ffff88042e85ea40 ffffffffffffffff ffff88042e85ea48<PHONE_NUMBER>000000

why write io is continuously increase?


Serial Port I/O not working

Hello,
I am following the little book OS. I checked out your code and running it in the UNIX environment.
The frame buffer is working good but I couldn't able see text passed through the Serial port on the OS console. Is there is bug that needs to fixed or its an environment issue. Can any one help me out.

I think I haven't implemented printf but it can show some character. What do you see in your virtual machine?


Clean up occurrences

Same clean up changes as notes
Add note name
Add effective severity
Will have to refactor out common code between notes/occurrences later

Codecov Report
Patch coverage: 73.53% and project coverage change: +0.77 :tada:

Comparison is base (1be5a1f) 71.56% compared to head (35037e7) 72.32%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
+ Coverage   71.56%   72.32%   +0.77%
==========================================
  Files           7        7
  Lines         552      690     +138
==========================================
+ Hits          395      499     +104
- Misses        140      172      +32
- Partials       17       19       +2

Flag
Coverage Δ

unittests
72.32% <73.53%> (+0.77%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/vul/import.go
5.89% <0.00%> (-1.80%)
:arrow_down:

pkg/convert/snyk/snyk.go
93.92% <92.69%> (-0.67%)
:arrow_down:

pkg/convert/trivy/trivy.go
91.14% <93.34%> (+0.63%)
:arrow_up:

pkg/convert/grype/grype.go
91.38% <93.75%> (+1.87%)
:arrow_up:

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.


Ceasars Cipher Exercise Issue

Challenge Caesars Cipher has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12.
Please describe how to reproduce this issue, and include links to screenshots if possible.

the return is right but the console don't admit it so I can't continue my journey.
My code:
var arr= [];
var s="";
function rot13(str) { // LBH QVQ VG!
  for (var i in str){
    arr[i] = str.charCodeAt(i);
  }
  for (var j in arr){
    if(arr[j]>=65 && arr[j]<=77){
      arr[j]+=13;
    }else if(arr[j]>=78 && arr[j]<=90){
      arr[j]-=13;
    }
  }

  for (var k in arr){
    s = s + String.fromCharCode(arr[k]);
  }

  return s.toUpperCase();
}

// Change the inputs below to test
rot13("SERR YBIR?");

@icarobrandao you have global variables in your code. Put them within your function and your code will pass. Our tests run the tests right after each other so global variables will change. If you get stuck or have questions with a challenge in the future, please first ask questions to the Help Room. Happy coding!

12 Happy coding # Drunk Face
On Jan 19, 2017 9:18 PM, "Eric Leung"<EMAIL_ADDRESS>wrote:

Closed #12638 https://github.com/freeCodeCamp/freeCodeCamp/issues/12638.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/12638#event-930142920,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVHZeVQ7TlTxguAYYUDZHNZSuBhwFDpBks5rUCeggaJpZM4Lo1rq
.

it worked now, thanks!


powerpc64le ports ci

Since ubuntu18.04 is compiled using gcc7, the compilation will give errors, so a new ci file is added and ubuntu20.04 is used


Editing my profile is broken

Clicking on the edit icon next to my name (https://www.vutuv.de/users/urs.joss/edit) results in an exception

Fehler! Irgendwas stimmt hier nicht. Wir würden uns über einen Bugreport unter freuen.

I tried it several times, once at roughly 2017-11-28 19.45.01.
Expected behavior
I can edit my profile
Actual behavior
Exception is thrown.
Steps to reproduce the behavior
Click the edit button.

Thank you very much for this bug report! I'll fix it right away.

The new version is online. Thanks again for the bug report.

Thanks, Stefan


v1.1.0 - Mismatch in Logging String Placeholders Causes FormatException

With v1.1.0 there was an introduction to a bug when there is a successful post to Discord:
In the Notifier class within the SendNotificationsAsync method, there are logging statements that have mismatched placeholders. Specifically:
Using a function call (DateTime.Now) as a placeholder name:
logger.LogError("[{DateTime.Now}]: Payload Service returned null after attempting to build", DateTime.Now);

Using two placeholders but providing only one argument:
logger.LogInformation("[{DateTime.Now}]: Response - Successful: Posted new content to Discord Text Channel at {CurrentTime}", DateTime.Now);

Suggested Fix:
Correct the placeholders to match the provided arguments, ensuring consistent naming and number of arguments for each logging statement in the Notifier class.

this issue has been handled in the v1.2.0 release - https://github.com/Qolors/FeedCord/releases/tag/v1.2.0


Implement a SVG badge for single product

Would be ideal to feature a specific product on a README; with a direct link to checkout.

I would then deprecate the tiers badge, which makes less sense with our new focus

I'll deploy this tomorrow :-) Got it working on Friday. Just need to fix the design, but been in meetings all day today

Deployed earlier this week, but forgot to close :-)


Shape mismatch for stabilized sinkhorn with multi-distributions

Describe the bug
The following script gives a shape mismatch error when computing sinkhorn2 with stabilization and many dists.
  File "/Users/hichamjanati/Documents/github/forks/POT/ot/bregman.py", line 774, in sinkhorn_stabilized
    log['logu'] = alpha / reg + np.log(u)
ValueError: operands could not be broadcast together with shapes (100,) (100,2)

To Reproduce
import numpy as np
import ot
from ot.bregman import sinkhorn2

n = 100
x = np.arange(n, dtype=np.float64)

# Gaussian distributions
a = ot.datasets.make_1D_gauss(n, m=20, s=5)  # m= mean, s= std
b1 = ot.datasets.make_1D_gauss(n, m=60, s=8)
b2 = ot.datasets.make_1D_gauss(n, m=30, s=4)

# creating matrix A containing all distributions
b = np.vstack((b1, b2)).T

M = ot.utils.dist0(n)
M /= np.median(M)
epsilon = 0.1

w_stable, log = sinkhorn2(a, b, M, epsilon, method="sinkhorn_stabilized",
                          log=True)

Fix
Basically when log=True, the actual code does not take into account the case where b contains many distributions. The if nbb should be moved up before computing the dual
variables.
bregman.py
    if log:
        log['logu'] = alpha / reg + np.log(u)
        log['logv'] = beta / reg + np.log(v)
        log['alpha'] = alpha + reg * np.log(u)
        log['beta'] = beta + reg * np.log(v)
        log['warmstart'] = (log['alpha'], log['beta'])
        if nbb:
            res = np.zeros((nbb))
            for i in range(nbb):
                res[i] = np.sum(get_Gamma(alpha, beta, u[:, i], v[:, i]) * M)
            return res, log

I can make a tiny PR with an additional test if you want.

yes @hichamjanati , again thank you for your work.
Good catch, a PR would be welcome,
We clearly missed a test on this one.


Remove unused DRLocker() method

In order to promote reuse (also outside of Minio), I simply tried to conform as much as possible to the sync/mutex package/interface, and hence I added this interface as well as the test code.
(See https://golang.org/src/sync/rwmutex.go#L133 )
Maybe we may also use it ourselves in the future so I'd suggest to leave it in.

I learned (from Gluster) that current unused code are very rarely used in future.  My idea would be, have code to functionality whenever needed than carrying a baggage.


Change order of report sections

Is it possible to change the order of the report sections? For my use case, it would be a better experience if the samples came before the variables.
Overview
Samples
Missing
Variables
Correlations

Thank you for reporting this. We invite interested contributors to create a pull request with this functionality. More details can be found in the contribution guide.


What about i18n for newbie?

Would it be possible to have the i18n of this site? - https://matrix.to/

Yup! It's on the cards: https://github.com/matrix-org/matrix.to/issues/78

Closing as a duplicate but thoughts and suggestions welcome on #78


[FEATURE]  There should be a provision to login with email ID and OTP.

Description:
There should be a provision to login with email ID and OTP.
Steps:

Hit https://app.appsmith.com/user/login

Expected: On the login screen, there should be an option to login with OTP or password.
Actual : On the login screen, there is a provision to login with password.

Unable to add the label 'above-them'.


Vue mode quoting anomaly

<q-dialog v-model='PromptName'/>
converts to:
q-dialog(v-model="'PromptName'")
which is not liked:
VueCompilerError: v-model value must be a valid JavaScript member expression.
To my mind it's valid javascript and node doesn't mind but it is a bit odd.
It only seems to happen with v-model  (maybe all v- attributes).

To franky, I don't understand how to detect javascript expression this or not


What is the fundamental logic for D455's driver to do with differnet configuration of resolutions?

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
Ubuntu20

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
NVIDIA Jetson

SDK Version
{ legacy / 2.. }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
<Describe your issue / question / feature request / etc..>
For example, my supposal is, if 640x480 is set, the RealSense driver will first crop the image from 1280x720 to 960x720, then resize it to 640x480.
I am unifying images from D455s in different resolutions. After transform, they should be in 640x480 with the same camera info.
Thanks!

Hi @Hypothesis-Z  In a discussion from 2028 at the link below, a RealSense team member states "When the camera returns depth, it uses rectified images.  During the rectification process, the image gets downsized.  In order to get the 1280x720 resolution after rectification, the extra pixels are extrapolated.  This is why the whitepapers say that the optimal depth resolution for the D435 is 848x480.  Using a resolution higher than 848x480 should give you similar or slightly worse depth quality".
848x480 is also the optimal depth accuracy resolution for D455.
https://community.intel.com/t5/Items-with-no-label/D435-Resolution-VS-Depth-Image-Quality/m-p/548110#M8401

Aside from the quote above, there is not information available about the logic of the camera's rectification process and so I am not able to confirm whether your process is right compared to the camera's actual logic, unfortunately.
Would it be possible for you to set the RGB resolution of your snapshot to 640x480 instead of 1280x720 so that the image does not need to be resized after capture, since D455 supports that RGB resolution?
An alternative approach for downsampling the resolution is to use a post-processing Decimation filter, which is supported on D455 for the RGB stream as well as depth and has a default setting of '2', meaning that the resolution will be divided by 2 when the filter is enabled (so 1280x720 becomes 640x360).

@MartyG-RealSense For some reason I have to set RGB resolution to 1280x720. Anyway, thank you! You can close the issue now.

You are very welcome.  As you suggested, I will close the issue.  Thanks again!


💄 Add global information

Added a landing view with a catchphrase
The number of members in the organisation are now displayed
The number of repositories are also displayed
Updated styles to follow the BEM convention

(Styles are a work in progress, the goal being to display the data)
Github Insights must be updated to retrieve the number of PRs made by members of the organisation in order to move forward. (See https://github.com/Zenika/github-insights/issues/8)

Don't forget to rebase your code with master in order to have last circleci file and pass all github checks.


[bug]: Invokeai-Batch on Windows, with long paths enabled a single filename can't be of unlimited length. process silently fails

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Windows
GPU
cuda
VRAM
8
What version did you experience this issue on?
2.3.3
What happened?
using rc 2.3.3 to test a recent issue with filepaths, batch works effectively using the example yml but fails with prompts of a certain length which would force the file saved to be longer than 246 characters. This is with longpathsenabled. A long-named file can be copied into another directory with a much longer name, implying that their is a max-limit on the filename itself, as long as on the full path.
Is it possible to either automatically shorten paths which are too long, or to add a switch that might allow us to provide an 'override' filename please?
Logs for prompts which are too long Simply show Generating 0% line after line:

Initialization file C:\Users\Administrator\invokeai\invokeai.init found. Loading...

Fetching 15 files:   0%|                                                                                | 0/15 [00:00<?, ?it/s]
Fetching 15 files: 100%|############################################################################################################################################| 15/15 [00:00<?, ?it/s]
Generating:   0%|                                                                                | 0/1 [00:00<?, ?it/s]
Generating:   0%|                                                                                | 0/1 [00:09<?, ?it/s]
Generating:   0%|                                                                                | 0/1 [00:00<?, ?it/s]
Generating:   0%|                                                                                | 0/1 [00:09<?, ?it/s]
Generating:   0%|                                                                                | 0/1 [00:00<?, ?it/s]
Generating:   0%|                                                                                | 0/1 [00:09<?, ?it/s]
Generating:   0%|                                                                                | 0/1 [00:00<?, ?it/s]
Screenshots
No response
Additional context
No response
Contact Details
One Eye#3268

This may be xformers problem. At least they had this problem a few weeks ago.

Thanks for drawing this to my attention. I am puzzled because Windows 10 with the long path registry patch applied is supposed to handle 32K filenames. I will either truncate the names or find another solution.

Could you see if this pull request fixes the problem? https://github.com/invoke-ai/InvokeAI/pull/3143
Thx

invokeai-batch has been removed