Bloom shader

I thought shine could use a bloom shader so I adapted a shader to use for love2d and edited it to match the format of other shaders.

This looks like a simple box blur shader (which is already included). A glow shader is also included. Am I missing something?

You're right, I did not inspect the boxblur and glow code in depth. After some tweaking, I was able to get something that replicated the effect I wanted. The only weird thing is that it didn't work unless I used both boxblur and glow, even though boxblur radius was set to 0. Does the boxblur still have an effect in that case?

With radius 0, boxblur will become the passthrough shader:
vec4 effect(vec4 color, Image texture, vec2 tc, vec2 _) {
    return Texel(texture, tc + i * direction) * color;
}

What kind of effect are you looking for? Can you provide a screenshot?

Closing, because the shader is already included.


Add color systems

Which color systems should this package support?

Short answer: CIE-LAB and CIE-LCH.
Long answer:
I noticed that your maths functions are not very nice. While looking into algorithms for adding and blending colors, I found out that CIE-LAB is a good system for that(That's the system Photoshop and GIMP are using). There was just one small downside: Calculating the middle of two colors sometimes returns a grayish color. To fix that, CIE-LCH was invented.
For the actual implementation, you can use noahzgordon/elm-color-extra to convert to LAB and then define the following functions:
toCIELCH =
    Convert.colorToLab
        >> (\{ l, a, b } ->
            { l = l
            , c = sqrt (a * a + b * b)
            , h = atan2 b a
            }
        )

fromCIELCH =
    Convert.colorFromLab
        (\{ l, c, h } ->
            { l = l
            , a = c * cos h
            , b = c * sin h
            }
        )
            >> Convert.labToColor


🔧 Build failed with 4.6.3

How were you trying to build the app?
For Android ,i try to use yarn start,today i'v upgrade to 4.6.3,but when i run yarn start ,i got the following error
Full build logs
> Task :react-native-vision-camera:compileDebugKotlin FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
523 actionable tasks: 31 executed, 492 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: file:///D:/MinervaIOT/Brazil/mobile/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraQueues.kt:8:27 Class 'kotlinx.coroutines.CoroutineDispatcher' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
The class is loaded from C:/Users/Admin/.gradle/caches/transforms-3/88ec9f935ee2ac1040568b164c8f97e5/transformed/jetified-kotlinx-coroutines-core-jvm-1.9.0.jar!/kotlinx/coroutines/CoroutineDispatcher.class
e: file:///D:/MinervaIOT/Brazil/mobile/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraQueues.kt:22:38 Class 'kotlinx.coroutines.CoroutineDispatcher' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
The class is loaded from C:/Users/Admin/.gradle/caches/transforms-3/88ec9f935ee2ac1040568b164c8f97e5/transformed/jetified-kotlinx-coroutines-core-jvm-1.9.0.jar!/kotlinx/coroutines/CoroutineDispatcher.class
e: file:///D:/MinervaIOT/Brazil/mobile/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraQueues.kt:29:7 Class 'kotlinx.coroutines.CoroutineDispatcher' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
The class is loaded from C:/Users/Admin/.gradle/caches/transforms-3/88ec9f935ee2ac1040568b164c8f97e5/transformed/jetified-kotlinx-coroutines-core-jvm-1.9.0.jar!/kotlinx/coroutines/CoroutineDispatcher.class
e: file:///D:/MinervaIOT/Brazil/mobile/node_modules/react-native-vision-camera/android/src/main/java/com/mrousavy/camera/core/CameraQueues.kt:29:37 Class 'kotlinx.coroutines.android.HandlerDispatcher' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0.
The class is loaded from C:/Users/Admin/.gradle/caches/transforms-3/6be3b66eeaa4e29862bd8fd4d006a3a3/transformed/jetified-kotlinx-coroutines-android-1.9.0.jar!/kotlinx/coroutines/android/HandlerDispatcher.class

Project dependencies
"react-native": "0.73.9",

"react-native-vision-camera": "^4.6.3"

VisionCamera Version
4.6.3
Target platforms
Android
Operating system
Windows
Can you build the VisionCamera Example app?
No, I cannot build the Example app either
Additional information

[ ] I am using Expo
[ ] I have enabled Frame Processors (react-native-worklets-core)
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

I am also facing the same issue, any help

4.6.3 not support react-native 0.73


AutoSurround not working with curly braces inside a string

It seems there's a problem that affects only the curly braces on the c# editor (haven't checked on other languajes, sorry).
If I have a selected text inside a double quotation mark (a string), for example:

I can use the Autosurround for parentheses, square brackets, angle brackets and double quotes without any problem, but for some reason, it fails with curly braces, deleting all the text and adding only the opening curly brace.
Working example with square bracket

What happens with curly braces

Right now I have Visual Studio Professional 2022 installed.

I'm an idiot, it seems that it has something to do with Resharper, I've thought that it could have something to do with that, and I disabled it, restarted visual studio and now the curly braces are working as expected... I'll close the Issue just to let other people with the same problem know. Now I'll have to find the exact configuration that is making this behaviour.

I've found the configuration problem, there's a "Braces and parentheses" behavior that suppossedly does the same as this package; unfortunally, at least for me, has never worked (in different computers and vs studio versions).
This configuration is working for me to prevent the curly braces problem:

Thanks for reporting this. I'll pin this issue in case anyone else encounters it.


chore(dep): update websql to 2.0.3

This update contains a pretty significant bug fix. See
https://github.com/nolanlawson/node-websql/commit/5afb08307484b0bcbf53f1b4123da41d78200ec6
for details.

Thanks!

landed in v3.4.1


Modify ChannelEdit to accept a struct so it can edit all Channel fields.

ChannelEdit now accepts a structure.
Gives developers more freedom when editing channels.
Functions (ChannelEditTopic, ChannelEditObject) have been removed.

The function should take defined struct instead of an interface.  Then we need to pull out only the valid fields that can be updated before passing it to Discord.    Each field will need to be validated to some degree.
Take a look at the GuildEdit function for an example of how it's doing this same thing.

@proxikal Any update on this?
Not like I need it, just kinda feel like it's been here for a while.

I think https://github.com/bwmarrin/discordgo/pull/352/files is a good example of how to do this PR. We should have a new struct and have ChannelEditComplex. The struct should have pointer members that are all omitempty.


added modular tests for cluster with topology for all supported k8s versions

What this PR does / why we need it:
Goal

Make it easy to add custom e2e tests
Move all test config/parameters from prow job to code
Its unclear from test code as to which variables from nutanix.yaml file are used. We need to make it explicit in the code
Make all the tests run with all supported k8s version explicitly instead of depending on prow config manipulation for CI
Use Golang option pattern to add parameters without changing the base methods and make it extensible

TODO

Allow easy functions to install addons/apps/services so that we can run all version with all the apps like kubebench, kubeburner, nutanix services etc for e2e testing
add more negative test cases

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
How Has This Been Tested?:
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration and test output
Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.
Release note:

observed following test failure

• [FAILED] [447.442 seconds]
When scaling down cluster with topology  [It] Scale down a cluster with CP and Worker node VCPUSockets from 3 to 2 with Kube127 [clusterclass, cluster-topology-scale-up-down]
/Users/deepak.muley/go/src/github.com/deepakm-ntnx/cluster-api-provider-nutanix/test/e2e/cluster_topology_scale_up_down_test.go:169

  [FAILED] Timed out after 300.001s.
  Expected success, but got an error:
      <*errors.errorString | 0xc00074e4a0>: {
          s: "Assertion in callback at /Users/deepak.muley/go/src/github.com/deepakm-ntnx/cluster-api-provider-nutanix/test/e2e/test_helpers.go:610 failed:\nexpected num sockets of VMs to be equal to 2 but was 3\nExpected\n    : 3\nto equal\n    : 2",
      }
      Assertion in callback at /Users/deepak.muley/go/src/github.com/deepakm-ntnx/cluster-api-provider-nutanix/test/e2e/test_helpers.go:610 failed:
      expected num sockets of VMs to be equal to 2 but was 3
      Expected
          : 3
      to equal
          : 2
  In [It] at: /Users/deepak.muley/go/src/github.com/deepakm-ntnx/cluster-api-provider-nutanix/test/e2e/test_helpers.go:618 @ 02/06/24 10:55:00.129

  Full Stack Trace

also all the 1.29 tests are failing

I think it looked good to me, but I'm still very green to all this. It'd be good for someone else to take a look at this
Some linting tests look like their failing, but I don't quite see why, and blackduck failing doesn't look related to this PR
👍

Thanks. ran explicit gofumpt on the files to fix the issues

observed following test failure
• [FAILED] [447.442 seconds]
When scaling down cluster with topology  [It] Scale down a cluster with CP and Worker node VCPUSockets from 3 to 2 with Kube127 [clusterclass, cluster-topology-scale-up-down]
/Users/deepak.muley/go/src/github.com/deepakm-ntnx/cluster-api-provider-nutanix/test/e2e/cluster_topology_scale_up_down_test.go:169
[FAILED] Timed out after 300.001s.
Expected success, but got an error:
<*errors.errorString | 0xc00074e4a0>: {
s: "Assertion in callback at /Users/deepak.muley/go/src/github.com/deepakm-ntnx/cluster-api-provider-nutanix/test/e2e/test_helpers.go:610 failed:\nexpected num sockets of VMs to be equal to 2 but was 3\nExpected\n    : 3\nto equal\n    : 2",
}
Assertion in callback at /Users/deepak.muley/go/src/github.com/deepakm-ntnx/cluster-api-provider-nutanix/test/e2e/test_helpers.go:610 failed:
expected num sockets of VMs to be equal to 2 but was 3
Expected
: 3
to equal
: 2
In [It] at: /Users/deepak.muley/go/src/github.com/deepakm-ntnx/cluster-api-provider-nutanix/test/e2e/test_helpers.go:618 @ 02/06/24 10:55:00.129
Full Stack Trace
also all the 1.29 tests are failing

1.29 tests are failing because they are also not supported upstream. That's why we are only running the v1.28 as the PR Blocker tests.

As discussed with @thunderboltsid we will add only-for-validation label to all the clusterclass tests except basic so that CI does not get affected and later streamline the labels and jobs so that we can jobs parallely as well as granular labels

https://github.com/nutanix-cloud-native/cluster-api-provider-nutanix/pull/422


How was focal length calculated for the iPhone 12 in the example?

In the example in data/iphone.py the focal length is computed as self.focal = self.raw_W * 4.2 / (12.8 / 2.55). I am wondering what the specific constants mean?

I believe that raw_w is the image width, in pixels; that 4.2 is the focal length in millimetres; and that 12.8 is the sensor width in millimetres. I might not be right about those.
The thing confusing me is the 1 / 2.55 factor. This appears to be the sensor diagonal in inches? I am not sure if that's right at all, or if it is, how it fits in to the calculation.

have you found out the actual meaning of the magic numbers or maybe found some solution for ur phone settings ?

have you found out the actual meaning of the magic numbers or maybe found some solution for ur phone settings ?

I'm afraid I just got the calibration for my device from elsewhere.

Could you please elaborate a bit more? I'm stuck at trying to figure out what the focal length should be as a number what things are taken into account when calculating it

Hi @reynoldscem @jere357, sorry for the late reply. 1/2.55 was the sensor size I got from here. An easier way might be to use the 26mm FF-equivalent focal length (see here), and then get 3024 (#pixels in width) / 24mm * 26mm = 3276, which would get you similar answers as in the code. I'm not entirely sure these are the right way to get the intrinsics (not an expert), but from my experience, the focal length usually doesn't need to be super accurate to get NeRF/BARF working.

Could you please elaborate a bit more? I'm stuck at trying to figure out what the focal length should be as a number what things are taken into account when calculating it

Sorry I didn't calculate it analytically. I've used estimates from ARKit and from COLMAP.

Thank you for the reply @chenhsuanlin


Improve Clean datatype uselesscode

Proposed changes
we have much useless code which is misleading and reduce be data type code coverage
Issue Number: close #xxx
<--Describe your changes.-->
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.92 seconds
stream load tsv:          445 seconds loaded<PHONE_NUMBER>9 Bytes, about 160 MB/s
stream load json:         22 seconds loaded<PHONE_NUMBER> Bytes, about 102 MB/s
stream load orc:          59 seconds loaded<PHONE_NUMBER> Bytes, about 17 MB/s
stream load parquet:          30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select:          25.5 seconds inserted 10000000 Rows, about 392K ops/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230528070810_clickbench_pr_152107.html


Feature request: Allow custom compiler bootstrap scripts for external backends

When specifying the idris-jvm backend as the idris2 url for a package set, building an Idris2 project with pack causes the build to fail with the following error:
43/95: Building Debug.Trace (Debug/Trace.idr)
Error: The given specifier '["jvm:toString(java/lang/Object java/lang/String),java/util/Objects"]' was not accepted
by any backend. Available backends:
  chez, chez-sep, racket, node, javascript, refc, gambit, vmcode-interp
Some backends have additional specifier rules, refer to their documentation.

This is because the pack bootstrapping process does not use a previous version of the idris-jvm compiler to build the idris-jvm compiler. Instead, it will try to run make bootstrap as part of Pack.Runner.Install.mkIdris, which idris-jvm does not use. Idris-jvm bootstraps the compiler by running the following commands (as seen in its GitHub Actions install workflow):
export IDRIS2_TESTS_CG=jvm
export PREVIOUS_VERSION=0.5.1
export IDRIS2_PREFIX=$HOME/bin/idris2-$PREVIOUS_VERSION/lib
export PREFIX=$IDRIS2_PREFIX
mvn dependency:copy -Dartifact=io.github.mmhelloworld:idris-jvm-compiler:$PREVIOUS_VERSION:zip -DoutputDirectory=. -U
unzip idris-jvm-compiler-*.zip -d $HOME/bin
echo "::add-path::$HOME/bin/idris2-$PREVIOUS_VERSION/bin"
mvn -B install -Dinteractive= -Didris.tests="only=jvm"

These commands use Maven to download a previous version of the Idris2 compiler from Maven Central, and then use that downloaded compiler to build the new compiler.
I think pack should allow a custom bootstrapping script to be specified to allow external backends like idris-jvm to be used with pack.

Yes, we definitely need this (and other ways for custom installations).


Check for previous/existing GitHub issues/module proposals

[X] I have checked for previous/existing GitHub issues/module proposals.

Check this module doesn't already exist in the module indexes

[X] I have checked for that this module doesn't already exist in the module indexes.

Bicep or Terraform?
Bicep
Module Classification?
Resource Module
Module Name
avm/res/app/job
Module Details
Migration from CARML.
Do you want to be the owner of this module?
No
Module Owner's GitHub Username (handle)
No response
(Optional) Secondary Module Owner's GitHub Username (handle)
No response

@AlexanderSehr, thanks for submitting this module proposal!
Important
The AVM core team will review it and will try to find a module owner.
Note
This message was posted as per ITA18.

Good luck!

PR: https://github.com/Azure/bicep-registry-modules/pull/1823

[x] Module published.
[x] GitHub teams are available and assigned to their parents.
[x] CODEOWNERS file updated.

Thank you for your work @AlexanderSehr! I'm closing this issue now.
Since this module was migrated from CARML without an owner, an orphaned module request was also created: https://github.com/Azure/Azure-Verified-Modules/issues/955


can't reopen main window from window menu option

when its not in trayicon mode, there is no way to get back the main ajaxproxy window (from rest client or  json viewer)

added to menu bar, tray icon mode disabled for now as its hard to maintain in multi-window mode


Bump Sui GraphQl version: v2024.8.0

Description
Bump Sui GraphQl version: v2024.8.0
Test plan
cargo build --release

@ebmifa I am slightly confused why this is 2024.8 instead of 2024.4.

@stefan-mysten this is for the main branch, since the next branch cut is going to be 2024.8 in August, right>

Oh, I see, ok. I thought it's for the 2024.4 branch.


ENH: Add Graphical Edges keyword to plots.

Added Shared variable to allow the user to select whether to ignore edge gates, by passing the edges keyword.

I don't think adding a shared variable is the way to go.

The reason I used a shared variable was to allow the setting to be retained so it doesn't have to be selected each time, like the Vlimits for example. Is there a better way you can think of?

It can be a simple variable, it does not need to be shared, unless you expect external control.

Will the setting be retained when advancing to the next file?

of course, is a variable of the artview.RadarDisplay class, as long as its the same instance the setting retained.
You could re-set if you want, but only if you want and you would have to write the re-set line.

I guess as long as it's a class variable we should be good

Oops just realizing that as you typed. Let me monkey with it and just save it as such.

ok

ok

Better?

yes this is good as a fast add, and I would probably end up doing exactly the same. I do still want a easier way of working with pyart arguments, but let us just merge this for now. As I said I don't think this is a problem in grid.

Okay, I'll leave grid out for now, it can easily be added later.
I agree about the pyart arguments, but I'm not sure how to deal with different data type inputs etc. I can't think of an easy way to get these.


WIP: Fix so project-less namespaces get their cluster default PSPT

This change makes it so that namespaces get their cluster's default PSPT
after they are moved out of a project.  Before, when a namespace was in a
project that had a PSPT assigned to it, and the namespace was moved to
"None", it would continue to have the PSPT associated with its previous
project.
Issue:
https://github.com/rancher/rancher/issues/12833

I think a projectless namespace should get NO pspt bindings. If they are out of a project, they are effectively unmanaged by us.


Custom instructions depending on file-format

In the function create_or_modify_file in src/git_bob/_ai_github_utilities.py, it would be great to build in some logic that makes it possible to modifiy the file creation prompt depending on the file format of the file to be created. E.g. if the file format is .py, we could instruct to write numpy-style docstrings in functions. If the file format is .ipynb, we could instruct that the notebook should have short code snippets in code cells and no long code blocks. Also we could ask for explanatory markdown cells in front of every code cell.
git-bob think about this.

git-bob solve

When modifying the file, return the entire file, do not shorten it.
git-bob solve

This message was generated by git-bob (version: 0.2.4, model: gpt-4o-2024-08-06), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
To implement the logic for modifying the file creation prompt based on file format, the create_or_modify_file function in src/git_bob/_ai_github_utilities.py can be updated with conditional logic for different file types, such as adding numpy-style docstrings for .py files or including short code snippets with explanatory markdown for .ipynb files. Here is the minimal change:
def create_or_modify_file(repository, issue, filename, branch_name, issue_summary, prompt_function):
    # ...
    else:
        print(filename, "will be created")
        format_specific_instructions = ""
        if filename.endswith('.py'):
            format_specific_instructions = " When writing new functions, use numpy-style docstrings."
        elif filename.endswith('.ipynb'):
            format_specific_instructions = " In the new notebook file, write short code snippets in code cells and avoid long code blocks. Add explanatory markdown cells in front of every code cell."
        file_content_instruction = f"""
Create the file "{filename}" to solve the issue #{issue}.{format_specific_instructions}

## Your task
Generate content for the file "{filename}" to solve the issue above.
Keep it short.
"""
    # ...

This modification introduces format-specific guidelines in the file-generation instructions based on the file type.


Unexpected results from filtering .all

I'm hoping I'm missing something basic about the example given in the readme, which asserts "You can pass in any hash of query attributes you wish as per the Harvest API page.", giving as an example:
harvest.projects.all(nil, :client => 12345)
This works for :client, but seemingly not for other attributes:
harvest.projects.all # correctly returns all of our projects
harvest.projects.all(nil, :client => 1914731)  # correctly returns 2 items

harvest.projects.all(nil, :billable => false) # incorrectly returns all projects, should return fewer
harvest.projects.all(nil, :active => false) # incorrectly returns all projects, should return way fewer
harvest.projects.all(nil, :name => "Holiday")  # incorrectly returns all projects, should return 1
harvest.projects.all(nil, :name => "Total rubbish")  # incorrectly returns all projects, should return 0

I'm verifying my assumptions about API data against the XML returned by a naked POST API call for /projects, while signed in as the same user in the ruby script. The only thing they agree on is the total count of projects. I also see expected results when I dump the objects returned by an .all method — that is, some projects are and aren't billable, are and aren't active, etc. Similar results when I try to filter for clients, and for people/users.
Am I overlooking a syntactical wrinkle? Thanks.

Right now you can only filter projects by client and updated_since per https://github.com/harvesthq/api/blob/master/Sections/Projects.md#show-all-projects


document.querySelector() in browser.evaluate() script?

var Zombie = require('zombie');

var browser = new Zombie();

browser.visit('http://google.co.uk', function () {
  console.log(browser.evaluate('document.readyState'));
  console.log(browser.evaluate('document.querySelector("head title").textContent'));
});

Results in:
$ node foo.js
complete
./node_modules/zombie/node_modules/bluebird/js/main/promise.js:626
            throw e;
                  ^
Error: TypeError: Cannot read property 'textContent' of null
    at Object.ensureErrorObject (./node_modules/zombie/node_modules/bluebird/js/main/util.js:226:20)
    at Promise._rejectCallback (./node_modules/zombie/node_modules/bluebird/js/main/promise.js:416:22)
    at Promise._settlePromiseFromHandler (./node_modules/zombie/node_modules/bluebird/js/main/promise.js:460:17)
    at Promise._settlePromiseAt (./node_modules/zombie/node_modules/bluebird/js/main/promise.js:530:18)
    at Async._drainQueue (./node_modules/zombie/node_modules/bluebird/js/main/async.js:84:12)
    at Async._drainQueues (./node_modules/zombie/node_modules/bluebird/js/main/async.js:89:10)
    at Immediate.Async.drainQueues [as _onImmediate] (./node_modules/zombie/node_modules/bluebird/js/main/async.js:14:14)
    at processImmediate [as _immediateCallback] (timers.js:374:17)

So is the sizzle functionality not exposed to the runtime-evaluated JS? Is there a way to access this functionality from with a call to .evaluate() ?

Zombie no longer using Sizzle since many versions back.
You can access browser.document directly, evaluate is rarely necessary
As the error indicates, querySelector was called successfully, it simply didn't find the element in question

Ok I'm not actually bothered about Sizzle, just the functionality.
I appreciate that I can access it via browser.document, but wish to access it in evaluated code. I think this should work, e.g. I can use Chrome or Firefox, open up the console, and paste in:
document.querySelector('head title').textContent

Which yields "Google".
So my question becomes: why is it null when it's not null in Chrome/Firefox? Can I work around this?

No idea what's on that web page and whether or not Zombie can parse it correctly.

Um... it's a little website called http://google.com - check it out sometime :)
<!doctype html>
<html itemscope="" itemtype="http://schema.org/WebPage" lang="en">
   <head>
      <meta content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for." name="description">
      <meta content="noodp" name="robots">
      <meta content="/images/google_favicon_128.png" itemprop="image">
      <meta content="origin" id="mref" name="referrer">
      <title>Google</title>
      <!-- there's a load of other stuff, but I snipped it -->
   </head>
</html>

It appears, at first glance, to be pretty straightforward to get the title tag, and it's a pretty popular website.

Maybe it should be made more clear in the README, but Zombie is intended for testing. I'm not interested in reviewing or discussing content on 3rd party sites.

Ok let's try this in bullet points, since you like those.

You want people to use Zombie for testing
Zombie should emulate actual browsers in order to be an effective testing tool
Zombie is not quite emulating real browsers in this regard; it seems to do fine for elements in the body but not the head
Chill out - I'm not demanding that you fix anything :) I'm asking if this is expected behaviour and whether I can work around it somehow (preferably in an evaluate() call)

Not doing something that real browsers do on the simple home page of the most popular search engine in the world (or at least in the western world) is probably not something that you should just brush off, but hey, it's your project, I'm just drawing your attention to a bug.

I don't care that Zombie can't scrape google.com or any other Google property.

Just because the bug is specifically present on Google doesn't really make it any less of a bug in your software, but I've obviously hit a nerve so I'll just leave it. Have a good day.


ADR: CloudEvents Error Extension

This spec takes into consideration the following

Dealing with internationalization
Deal with unique errors in distributed system environments
Allowing customer support systems to have more context into errors that end-users may be facing
Documenting errors
Structured logging
Form/Data validation errors aggregation

Concerns

Should we add a key for internal metadata? Some information may not be useful to expose to some clients because they are completely related to internal contexts. How do we deal with that?

Should we agree on some metadata keys being reserved for a particular thing?
For example, use field_name to represent the name of the form's field that the error may be associated with.

What about changing the serialization of the metadata to be a two-dimensional array?
"metadata": [
    { "key": "field_name", "value": "username" }
    // vs.
    ["field_name", "username"]
  ]

What about changing the serialization of the metadata to be a two-dimensional array?
"metadata": [
    { "key": "field_name", "value": "username" }
    // vs.
    ["field_name", "username"]
  ]

We lose the information about what is what relying on programmers understand that position 0 is the key, and position 1 is the value.
Added value?

I'm not seeing any real benefit to using arrays. Key/value pairs will be a lot faster to search and retrieve values.

I'm not seeing any real benefit to using arrays. Key/value pairs will be a lot faster to search and retrieve values.

If we use a Map, we lost the ability to have multiple metadata under the same key, which takes a look at the latest version because I moved the information about the subject (which could be a form field) outside.
Also, I completely redo this to be on top of CloudEvents.

I talked to @clemensv about proposing this ADR to CloudEvents itself, so I cleaned it up to have such a conversation.
I am gonna leave, field_name "out of this spec", and write another ADR just for that, personally.
I think that is super important, and I would propose using subject with a format of JSON Reference to allow people to mark particular error to a form/data validation. (I would like to hear the feedback from CloudEvents folks)

In hold, waiting for https://github.com/cloudevents/spec/pull/741 review

@germainc any concerns about the spec?
Although this is related to cloud event, trying to be able to generate cloud event errors will force you to add metadata that covers the details that we discussed it.
Now we Go new features around the errors, we could still keep some HTTP concerns, but just not the information metadata, or at least I understood kind of that watching some video, we can sync up in person.


JAVA installation is failing

Thanks for pointing this out @dserrano1524. I've patched this in #13. Should be ok again now.


[Windows] Downgrade parcel to 2.5.0

Description
We have an issue with the latest parcel version installation. This PR downgrades the version until we find out the root cause of the problem.
Related issue:
https://github.com/actions/virtual-environments/issues/5616
Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

/azp run windows2019


Image on the scene that does not affect the touch

is it possible to insert an image on the scene (for example a logo) that does not interfere with the touch?

I solved by putting the image in a container div and setting pointer-events: none; on div


(xa): improve the efficiency of listXATransactions

Codecov Report

Merging #387 (4e999d3) into dev (db83c87) will increase coverage by 0.00%.
The diff coverage is 0.00%.


jk escape sequence and custom widget key binding issues

General information

Terminal program: wezterm 20230326-111934-3666303c
Operating system: Manjaro Linux 6.1.25-1
ZSH framework: zinit v3.10.0-15-g6d84f999 (linux-gnu_x86_64)
ZSH version: zsh 5.9 (x86_64-pc-linux-gnu)
ZVM version: 0.9.0 (the latest zvm version installed with zinit at the time of issue creation)

Basic examination

[x] I have read through the README page
[x] I have the latest version of zsh-vi-mode
[ ] I have tested with another terminal program

Problem description

The jk escape key binding does not work while the Esc works. I triedfunction zvm_config {
  ZVM_VI_ESCAPE_BINDKEY=jk
}

The Ctrl-o key binding for opening files with the xdg-open stopped to work after installing the zsh-vi-mode

Initial working configuration before installing the zsh-vi-modefunction fzf_open_file {
  local file
  { file="$(fzf)" && [ -f "$file" ] && xdg-open "$file" &> /dev/null } </dev/tty
}
zle -N fzf_open_file
bindkey '^o' fzf_open_file

I triedfunction zvm_after_lazy_keybindings {
  zvm_bindkey vicmd '^[,' autosuggest-accept
  zvm_define_widget fzf_open_file
  zvm_bindkey vicmd '^o' fzf_open_file
}

How the Alt-, key binding for autosuggest-accept can be also bound in all modes (specifically the insert mode)?. I managed to bind Alt-, only in normal mode with zvm_bindkey vicmd '^[,' autosuggest-accept
How the Ctrl-g can be bound in all modes to what Ctrl-c is currently bound?

Reproduction steps

Use the provided below my zsh-vi-mode configuration
For wide context my .zshrc is at https://github.com/volodymyrprokopyuk/dotfiles/blob/master/.zshrc
The above described issues can be experimented

My zsh-vi-mode configuration
function zvm_config {
  ZVM_VI_ESCAPE_BINDKEY=jk
}
function zvm_after_init {
  fzf_config
}
function zvm_after_lazy_keybindings {
  zvm_bindkey vicmd '^[,' autosuggest-accept
  zvm_define_widget fzf_open_file
  zvm_bindkey vicmd '^o' fzf_open_file
}
zinit light jeffreytse/zsh-vi-mode

Expected behavior
The jk, Ctrl-o, and hopefully Alt-, and Ctrl-g in all modes should work.
Thank you very much for the great plugin! It is very useful!

Hi @volodymyrprokopyuk
Sorry for the late reply, and thanks for your reporting. For the custom ZVM_ESCAPE_BINDKEY=jk, you can refer to #193. And the remaining issue, I will walk through them as soon as possible.
Thanks & Regards


refactor: use new types and frame-button

Current dependencies on/for this PR:

next

PR #213

PR #217

PR #222

PR #218

PR #219

PR #220

PR #214

PR #221


Pwa 663 picture

Pull Request Test Coverage Report for Build 1624

0 of 7 (0.0%)  changed or added relevant lines in 3 files are covered.
365 unchanged lines in 43 files lost coverage.
Overall coverage decreased (-5.1%) to 33.189%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

components/ProductList/components/Item/index.jsx
0
1
0.0%

components/ProductImage/index.jsx
0
2
0.0%

pages/Product/components/ImageSlider/index.jsx
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

pages/Favorites/components/EmptyFavorites/components/ContinueButton/connector.js
1
50.0%

pages/Favorites/components/EmptyFavorites/components/Icon/index.jsx
1
50.0%

pages/Favorites/components/EmptyFavorites/components/ContinueButton/index.jsx
1
66.67%

components/ProductGrid/components/Iterator/style.js
2
0.0%

components/ProductList/components/Iterator/style.js
2
0.0%

pages/Favorites/components/FavoritesList/components/Item/components/Image/style.js
2
0.0%

components/ProductList/components/Layout/style.js
3
0.0%

pages/Favorites/components/FavoritesList/components/Item/components/Image/index.jsx
3
0.0%

components/ProductGrid/components/Item/connector.js
3
0.0%

components/Headline/style.js
3
0.0%

Totals

Change from base Build 1619:
-5.1%

Covered Lines:
1335

Relevant Lines:
4083

💛  - Coveralls


feat: Logging middleware AI log level

Description

I had problems getting my Function App to show "Information" logs in Application Insights.
It turned out that a rule should be removed and then add a new one in the code. It is a bit different compared to the WebApp, where log level is set in the AppSettings.
References

#0000

Codecov Report

Merging #240 (e5840e5) into main (15cf7f9) will increase coverage by 9.19%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #240      +/-   ##
==========================================
+ Coverage   61.29%   70.48%   +9.19%
==========================================
  Files           4      190     +186
  Lines          31     3327    +3296
  Branches        1      410     +409
==========================================
+ Hits           19     2345    +2326
- Misses         11      846     +835
- Partials        1      136     +135

Flag
Coverage Δ

logging
45.23% <0.00%> (-16.06%)
:arrow_down:

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

Files Changed
Coverage Δ

...e/Logging/source/LoggingMiddleware/Registration.cs
0.00% <0.00%> (ø)

... and 186 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Indicate format of POD string

We assumed the base64 string would be a PDF representation of the POD, but saw that instead it is in HTML format. This change to the docs will help clarify that up front for API consumers.

@SeanKilleen - I also assumed that the base64 string would be a PDF representation of the POD, so great idea!
I also have this issue - https://github.com/UPS-API/api-documentation/issues/154


Does not build cleanly - crashes on android

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[] iOS
[] Android
[] PCL
UWP IS NOT SUPPORTED DURING THE BETA PERIOD - ONLY PRs ARE WELCOME FOR NOW

Version of OS(s) listed above with issue
Android 6.0
Ios (N/A)
Windows 10
Version of Library
Whatever is the latest from GitHub on Aug31,2017
Expected Behaviour
package should build cleanly using VS2017.
Actual Behavior
Package does not build because:
Severity	Code	Description	Project	File	Line	Suppression State
Error		NuGet Package restore failed for project Samples.macOS: Unable to find version '7.5.0-alpha0027' of package 'reactiveui'.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package 'reactiveui.7.5.0-alpha0027' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages'.
https://api.nuget.org/v3/index.json: Package 'reactiveui.7.5.0-alpha0027' is not found on source 'https://api.nuget.org/v3/index.json'.
.
Can fix this error by changing packages.config to use v7.4.
However, it seems to throw an unhandled exception on Android immediately after launch.  This is Android 6.0.  There is no usable information in the exception.
Code of Conduct

No Library Update Requests
No Timeline Requests
Please read through the documentation and FAQs
Please be respectful of my time. I put a lot of effort into my libraries.  I try to support the issue requests within a day.  I'm not psychic, so please take the time to fill out the above form as complete as possible
Contact GitHub

I'm using an alpha version of reactiveui for the .NET standard support.  This has been answered in other bugs.  Samples are not part of the defect train here.


Use just one event to batch register data signals in amplitude

Currently, the app is firing one event for each data signal. The correct approach should be 1 event to a batch of created data signals.
Create a local temporary count for the created data signals and flush it in one event to amplitude.
The event should separate each type of data signal, as it was done in #94.
Acceptance criteria
1 - Amplitude receiving events for data signals created, with how many of each type in the properties.

This is already done


Add links to GH issues in 6.2.1 release notes

Also update 6.2.1 templates to what is expected

@spolifroni-amd The spellcheck linter doesn't look at RELEASE.md. It only checks the template files FYI.


High CPU in shared process

I have seen this a few times, shared process CPU around 60% while nothing is going on
profile shows the worker is doing a lot of work but no stack

Profile-20220531T113345.json.zip
I'm not sure what all the shared process does right now, but maybe this is related to the fact that I have a lot of extensions installed?
I closed all vscode windows, and the issue persisted. I restarted vscode and it went away.

Opening the attached profile unfortunately does not reveal much:

Are you sure it was the shared process and not a process that is a child such as terminal or file watcher?

@sandy081 also assigning you because https://github.com/microsoft/vscode/issues/149980#issuecomment-1137701123 indicates it was related to settings sync extension

Right, the file watcher is actually spawned as a worker but only within a process for file watching, so if CPU is high in the shared process but not file watcher, it would not be the file watcher.
Would be interesting if you can check if the watcher process is spinning high CPU.

I know that the process using 60% of cpu was the one that says --vscode-window-kind=shared-process, if that's what you're asking

Yeah thanks, that means it is neither the file watcher nor the terminal for example.
But without any kind of trace or steps how to reproduce, I see no way how to continue.

fwiw, this was happening again. Macbook fan working hard, the shared process using 60% cpu, profile shows the same pattern in the shared process workerMain.js. I disabled settings sync and nothing changed. But no steps or any other details.

This keeps happening. Anything I can do to help debug?

This is happening more and more often. This morning I restarted vscode 3 times in a row trying to make it stop. On the 4th try it went away

@roblourens when this happens just open shared process window and run a devtools perf trace?

@deepak1556 with your knowledge around performance tooling, what would you recommend to use on macOS when devtools profiling does not reveal anything?

Another report: https://github.com/microsoft/vscode/issues/161265

Sorry for the delayed response, @roblourens @ctsstc can you follow the steps below to get more detailed profile.

Launch vscode from the terminal with the following flags --trace --trace-category-filter="devtools.timeline,v8,v8.execute,disabled-by-default-devtools.timeline,disabled-by-default-devtools.timeline.frame,disabled-by-default-devtools.timeline.stack.disabled-by-default-v8.cpu_profiler,disabled-by-default-v8.stack_trace,blink.user_timing,browser,content,renderer,electron,ipc,mojom"
Use the editor as you would normally and try to repro the high CPU usage
Once the issue has been confirmed, open the command palette and run Developer: Stop Tracing
A dialog will prompt with the location of generated trace file, please attach that file in this issue thread.

I'll try that the next time I see it. Haven't seen it really recently, but when it's happening, it seems like I often still see it after restarting.

So far mine has been running good, but I feel like I'm in the same boat as @roblourens where when it happens it happens again, so I'll try to relaunch with tracing next time this happens, but it wouldn't make sense to run with tracing all the time 💀
I do wonder if I fully closed all VSCode instances when I tried restarting it previously. I'm not sure if this tends to happen after a system restart in MacOS when it tries to reopen windows, or maybe after an update of VSCode when it tries to reopen everything 🤔

Closing since users have not reported it since and we are cleaning up stale issues.

I've still seen it since then but forgot you gave me tracing instructions, I'll try to remember for next time. It's easy to not notice this issue, I only notice when the fan starts, but it runs a lot anyway

This was happening today, I restarted with the tracing flags, but when I use those, there is some level of CPU used by seemingly every process, is that right? That makes it hard to tell whether the CPU usage is from this issue or tracing.

Some random thoughts:

what kind of extensions do you run with and does it repro without?
how large is your user data folder, anything large in there (thousands of files or large files)?

I have 140 extensions installed currently 🤡 . Next time it is reproing stably I will try without extensions
My user-data-dir looks like this, I don't see anything unusual.

I restarted with the tracing flags, but when I use those, there is some level of CPU used by seemingly every process, is that right? That makes it hard to tell whether the CPU usage is from this issue or tracing.

Does the new CPU levels from all processes overshadow the high cpu usage from shared process ? Given our tracing flags invoke the cpu profiler from V8, it is expected to see a slight increase. I would recommend to attach the cpu usage output from activity monitor along with the trace next time this happens.

I have this exact issue. I have attached a mahoosive trace file as suggested by deepak1556. Do I need to post this elsewhere?
This is a 7zip file NOT a zip. Zip file was too large and .7z extension cannot be uploaded, So rename this to a .7z file and extract with 7zip. Apologies!
code-PHXIknSe.trace.txt.zip


Deleting topic in via admin client, causes all further calls to fail due to unknown topic

Using the admin API to delete a topic works, but after you delete the topic it is still in the tracked topics.  Each additional use of the same client throws unknown topic or partition error.
I looked at the code to try and debug, it appears that the deleted topic is in the tracked topic set.  When new functions are called the metadata is attempted to be refreshed, and since this unknown topic is in that list it throws an error.

@tulios honestly your test is exactly what I was doing.  So if this passes makes me feel like I am either using an older version or just really doing something wrong.  I am currently using version 1.4.6.  Let me look a little bit more and see if I can one reproduce if I update and two get an exact test case for you.  Thank you for looking at it.

Hey @cross311 I will go ahead and add a PR to remove the topic from the target list, it makes sense anyway. Maybe this only happens when the cluster is busy, I will add the fix and you can try out.
Thanks


AmazonSimpleNotificationServiceConfig constructor call to GetEnvironmentVariable() causes System.Security.SecurityException

The System.Environment.GetEnvironmentVariable method is not allowed to be called within a Dynamics 365 Online instance.
The following code causes an exception when run within a Dynamics 365 Online plugin.
var snsClient = new AmazonSimpleNotificationServiceClient(new BasicAWSCredentials(ACCESS_KEY, SECRET_KEY), RegionEndpoint.USEast1);

The AmazonSimpleNotificationServiceClient method calls the AmazonSimpleNotificationServiceConfig constructor and although all of the required config parameters are supplied, the constructor will still attempt to call System.Environment.GetEnvironmentVariable and this results in a System.Security.SecurityException.
Dynamics 365 online does not allow environment variables to be read and reports the following exception:
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission
Entered Plugins.ContactPlugin.Execute()
Plugins.ContactPlugin is firing for Entity: contact, Message: Update, Method: ExecutePluginLogic
Exception: System.TypeInitializationException: The type initializer for 'Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceConfig' threw an exception.
---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission,
mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Environment.GetEnvironmentVariable(String variable)
at Amazon.Util.Internal.InternalSDKUtils.GetExecutionEnvironment()
at Amazon.Util.Internal.InternalSDKUtils.GetExecutionEnvironmentUserAgentString()
at Amazon.Util.Internal.InternalSDKUtils.BuildUserAgentString(String serviceSdkVersion)
at Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceConfig..cctor()

--- End of inner exception stack trace ---
at Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceConfig..ctor()
at Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceClient..ctor(AWSCredentials credentials, RegionEndpoint region)
at Plugins.ContactPlugin.ExecutePluginLogic(IServiceProvider serviceProvider)
at Plugins.BasePlugin.Execute(IServiceProvider serviceProvider)
Exiting Plugins.ContactPlugin.Execute()

Possible Solution
Add a new constructor for
Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceConfig that accepts a set of config parameters and therefore removes the need to call System.Environment.GetEnvironmentVariable(String variable).

A quick fix may be to add a protective try/catch within GetExecutionEnvironment.
see line 223:
https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Core/Amazon.Util/Internal/InternalSDKUtils.cs#L223
        internal static string EXECUTION_ENVIRONMENT_ENVVAR = "AWS_EXECUTION_ENV";
        internal static string GetExecutionEnvironment()
        {
            try
            {
                return Environment.GetEnvironmentVariable(EXECUTION_ENVIRONMENT_ENVVAR);
            }
            catch
            {
                return string.Empty;
            }
        }

Yup, this definitely a case we should handle.  Thanks for the report.

I am having this same issue.  Has anyone found a workaround for it?

@sstevenkang any update on this?

@DanielD, @sstevenkang  - It would be great if my simple try/catch fix above could be applied soon.
Short of that, you can use the following C# code.
    // refer to:  https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html

    static string ToHexString(byte[] array)
    {
        StringBuilder hex = new StringBuilder(array.Length * 2);
        foreach (byte b in array)
        {
            hex.AppendFormat("{0:x2}", b);
        }
        return hex.ToString();
    }

    /// <summary>
    /// Generates a keyed-hash message authentication code using the SHA256 hash algorithm
    /// </summary>
    /// <param name="data"></param>
    /// <param name="key"></param>
    /// <returns></returns>
    static byte[] HmacSHA256(string data, byte[] key)
    {
        string algorithm = "HmacSHA256";
        KeyedHashAlgorithm kha = KeyedHashAlgorithm.Create(algorithm);
        kha.Key = key;

        return kha.ComputeHash(Encoding.UTF8.GetBytes(data));
    }

    static byte[] GetSignatureKey(string key, string dateStamp, string regionName, string serviceName)
    {
        byte[] kSecret = Encoding.UTF8.GetBytes(("AWS4" + key).ToCharArray());
        byte[] kDate = HmacSHA256(dateStamp, kSecret);
        byte[] kRegion = HmacSHA256(regionName, kDate);
        byte[] kService = HmacSHA256(serviceName, kRegion);
        byte[] kSigning = HmacSHA256("aws4_request", kService);

        return kSigning;
    }

    /// <summary>
    /// Generates an almost-unique 256-bit (32-byte) signature (cryptographic hash or digest) for a text string or data file
    /// Hash functions compress large amounts of data into a small message digest.
    /// </summary>
    /// <param name="message"></param>
    /// <returns></returns>
    static string Sha256(string message)
    {
        var crypt = new System.Security.Cryptography.SHA256Managed();
        var hash = new System.Text.StringBuilder();
        byte[] crypto = crypt.ComputeHash(Encoding.UTF8.GetBytes(message));
        foreach (byte theByte in crypto)
        {
            hash.Append(theByte.ToString("x2"));
        }
        return hash.ToString();
    }

    public static string SNSPublish_POST(SnsConfig config, string subject, string message)
    {
        var ACCESS_KEY = config.AccessKey;  // "AXIAJXXHN5TGKLDT7XXX";
        var SECRET_KEY = config.SecretKey; // "zzOxVDPDl3Ix4xQqZvJPSXriXT21XE+FZwxPENQx";

        var topicArn = Uri.EscapeDataString(config.Topic);  //"arn:aws:sns:us-east-1:888553369388:nameof-topic"
        subject = Uri.EscapeDataString(subject);
        message = Uri.EscapeDataString(message);

        var t = DateTime.UtcNow;
        var amz_date = t.ToString("yyyyMMddTHHmmssZ");
        var date_stamp = t.ToString("yyyyMMdd");

        var method = "POST";
        var service = "sns";
        var region = config.Region; /// "us-east-1";
        var endpoint = config.Endpoint;  /// "https://sns.us-east-1.amazonaws.com";

        var uri = new Uri(endpoint);
        var host = uri.Host;

        var content_type = "application/x-www-form-urlencoded";

        /*
            # Step 2: Create canonical URI--the part of the URI from domain to query
            # string (use '/' if no path)
         */
        var canonical_uri = "/";

        /*
            # Step 3: Create the canonical query string. In this example (a GET request),
            # request parameters are in the query string. Query string values must
            # be URL-encoded (space=%20). The parameters must be sorted by name.
            # For this example, the query string is pre-formatted in the request_parameters variable.
         */
        var canonical_querystring = string.Empty;

        /*
            # Step 4: Create the canonical headers and signed headers. Header names
            # must be trimmed and lowercase, and sorted in code point order from
            # low to high. Note that there is a trailing \n.
        */
        var canonical_headers = $"content-type:{content_type}\nhost:{host}\nx-amz-date:{amz_date}\n";

        /*
            # Step 5: Create the list of signed headers. This lists the headers
            # in the canonical_headers list, delimited with ";" and in alpha order.
            # Note: The request can include any headers; canonical_headers and
            # signed_headers lists those that you want to be included in the
            # hash of the request. "Host" and "x-amz-date" are always required.
         */
        var signed_headers = "content-type;host;x-amz-date";

        /*
            # Step 6: Create payload hash. For POST the payload (body of the request)
            # contains the request parameters.
         */

        var request_parameters = $"Action=Publish&Message={message}&Subject={subject}&TopicArn={topicArn}";

        var payload_hash = Sha256(request_parameters);

        /*
            # Step 7: Combine elements to create canonical request
         */
        var canonical_request = method + '\n' + canonical_uri + '\n' + canonical_querystring + '\n' + canonical_headers + '\n' + signed_headers + '\n' + payload_hash;
        Console.WriteLine($"Canonical Request:\n{canonical_request}\n");

        var canonical_request_hash = Sha256(canonical_request);
        Console.WriteLine($"Canonical Request Hash:\n{canonical_request_hash}\n");

        /*************TASK 2: CREATE THE STRING TO SIGN*************/

        var algorithm = "AWS4-HMAC-SHA256";
        var credential_scope = $"{date_stamp}/{region}/{service}/aws4_request";
        var string_to_sign = $"{algorithm}\n{amz_date}\n{credential_scope}\n{canonical_request_hash}";
        Console.WriteLine($"String To Sign:\n{string_to_sign}\n");

        /************* TASK 3: CALCULATE THE SIGNATURE *************/

        //Create the signing key using the function defined above.
        var signing_key = GetSignatureKey(SECRET_KEY, date_stamp, region, service);
        var signature_hash = HmacSHA256(string_to_sign, signing_key);
        var signature = ToHexString(signature_hash);

        Console.WriteLine($"Signature:\n{signature}\n");

        /************* TASK 4: ADD SIGNING INFORMATION TO THE REQUEST *************/
        /*
            # The signing information can be either in a query string value or in
            # a header named Authorization. This code shows how to use a header.
            # Create authorization header and add to request headers
         */

        var authorization_header = $"{algorithm} Credential={ACCESS_KEY}/{credential_scope}, SignedHeaders={signed_headers}, Signature={signature}";
        Console.WriteLine($"Authorization Header:\n{authorization_header}\n");

        var url = endpoint;
        Console.WriteLine($"URL:\n{url}\n");

        var request = WebRequest.Create(url);

        try
        {

            request.Method = method;
            request.ContentType = content_type;

            request.Headers.Add("x-amz-date", amz_date);
            request.Headers.Add("Authorization", authorization_header);

            Console.WriteLine($"Headers:\n{request.Headers.ToString()}\n");

            var data = Encoding.UTF8.GetBytes(request_parameters);
            request.ContentLength = data.Length;

            using (var stream = request.GetRequestStream())
            {
                stream.Write(data, 0, data.Length);
            }

            var response = request.GetResponse();
            var responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
            return responseString;
        }
        catch (System.Exception ex)
        {
            Console.WriteLine($"EXCEPTION:\n{ex.ToString()}");
            return ex.ToString();
        }
    }

@cloudspider,  I removed your last comment until I could get a security team to verify that your last comment was not accidentally exposing private information.  This does not seem to be the case; I am told the possibly sensitive information was invalid and likely fake.  Still, please be careful to not write sensitive information anywhere in your code, even in comments because they may accidentally get checked in publicly or otherwise made visible.
I am reposting for you:
-- cloudspider --
It would be great if my simple try/catch fix above could be applied soon.
Short of that, you can use the following C# code.
// refer to:  https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html

static string ToHexString(byte[] array)
{
    StringBuilder hex = new StringBuilder(array.Length * 2);
    foreach (byte b in array)
    {
        hex.AppendFormat("{0:x2}", b);
    }
    return hex.ToString();
}

/// <summary>
/// Generates a keyed-hash message authentication code using the SHA256 hash algorithm
/// </summary>
/// <param name="data"></param>
/// <param name="key"></param>
/// <returns></returns>
static byte[] HmacSHA256(string data, byte[] key)
{
    string algorithm = "HmacSHA256";
    KeyedHashAlgorithm kha = KeyedHashAlgorithm.Create(algorithm);
    kha.Key = key;

    return kha.ComputeHash(Encoding.UTF8.GetBytes(data));
}

static byte[] GetSignatureKey(string key, string dateStamp, string regionName, string serviceName)
{
    byte[] kSecret = Encoding.UTF8.GetBytes(("AWS4" + key).ToCharArray());
    byte[] kDate = HmacSHA256(dateStamp, kSecret);
    byte[] kRegion = HmacSHA256(regionName, kDate);
    byte[] kService = HmacSHA256(serviceName, kRegion);
    byte[] kSigning = HmacSHA256("aws4_request", kService);

    return kSigning;
}

/// <summary>
/// Generates an almost-unique 256-bit (32-byte) signature (cryptographic hash or digest) for a text string or data file
/// Hash functions compress large amounts of data into a small message digest.
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
static string Sha256(string message)
{
    var crypt = new System.Security.Cryptography.SHA256Managed();
    var hash = new System.Text.StringBuilder();
    byte[] crypto = crypt.ComputeHash(Encoding.UTF8.GetBytes(message));
    foreach (byte theByte in crypto)
    {
        hash.Append(theByte.ToString("x2"));
    }
    return hash.ToString();
}

public static string SNSPublish_POST(SnsConfig config, string subject, string message)
{
    var ACCESS_KEY = config.AccessKey;
    var SECRET_KEY = config.SecretKey;

    var topicArn = Uri.EscapeDataString(config.Topic);  //"arn:aws:sns:us-east-1:888553369388:nameof-topic"
    subject = Uri.EscapeDataString(subject);
    message = Uri.EscapeDataString(message);

    var t = DateTime.UtcNow;
    var amz_date = t.ToString("yyyyMMddTHHmmssZ");
    var date_stamp = t.ToString("yyyyMMdd");

    var method = "POST";
    var service = "sns";
    var region = config.Region; /// "us-east-1";
    var endpoint = config.Endpoint;  /// "https://sns.us-east-1.amazonaws.com";

    var uri = new Uri(endpoint);
    var host = uri.Host;

    var content_type = "application/x-www-form-urlencoded";

    /*
        # Step 2: Create canonical URI--the part of the URI from domain to query
        # string (use '/' if no path)
     */
    var canonical_uri = "/";

    /*
        # Step 3: Create the canonical query string. In this example (a GET request),
        # request parameters are in the query string. Query string values must
        # be URL-encoded (space=%20). The parameters must be sorted by name.
        # For this example, the query string is pre-formatted in the request_parameters variable.
     */
    var canonical_querystring = string.Empty;

    /*
        # Step 4: Create the canonical headers and signed headers. Header names
        # must be trimmed and lowercase, and sorted in code point order from
        # low to high. Note that there is a trailing \n.
    */
    var canonical_headers = $"content-type:{content_type}\nhost:{host}\nx-amz-date:{amz_date}\n";

    /*
        # Step 5: Create the list of signed headers. This lists the headers
        # in the canonical_headers list, delimited with ";" and in alpha order.
        # Note: The request can include any headers; canonical_headers and
        # signed_headers lists those that you want to be included in the
        # hash of the request. "Host" and "x-amz-date" are always required.
     */
    var signed_headers = "content-type;host;x-amz-date";

    /*
        # Step 6: Create payload hash. For POST the payload (body of the request)
        # contains the request parameters.
     */

    var request_parameters = $"Action=Publish&Message={message}&Subject={subject}&TopicArn={topicArn}";

    var payload_hash = Sha256(request_parameters);

    /*
        # Step 7: Combine elements to create canonical request
     */
    var canonical_request = method + '\n' + canonical_uri + '\n' + canonical_querystring + '\n' + canonical_headers + '\n' + signed_headers + '\n' + payload_hash;
    Console.WriteLine($"Canonical Request:\n{canonical_request}\n");

    var canonical_request_hash = Sha256(canonical_request);
    Console.WriteLine($"Canonical Request Hash:\n{canonical_request_hash}\n");

    /*************TASK 2: CREATE THE STRING TO SIGN*************/

    var algorithm = "AWS4-HMAC-SHA256";
    var credential_scope = $"{date_stamp}/{region}/{service}/aws4_request";
    var string_to_sign = $"{algorithm}\n{amz_date}\n{credential_scope}\n{canonical_request_hash}";
    Console.WriteLine($"String To Sign:\n{string_to_sign}\n");

    /************* TASK 3: CALCULATE THE SIGNATURE *************/

    //Create the signing key using the function defined above.
    var signing_key = GetSignatureKey(SECRET_KEY, date_stamp, region, service);
    var signature_hash = HmacSHA256(string_to_sign, signing_key);
    var signature = ToHexString(signature_hash);

    Console.WriteLine($"Signature:\n{signature}\n");

    /************* TASK 4: ADD SIGNING INFORMATION TO THE REQUEST *************/
    /*
        # The signing information can be either in a query string value or in
        # a header named Authorization. This code shows how to use a header.
        # Create authorization header and add to request headers
     */

    var authorization_header = $"{algorithm} Credential={ACCESS_KEY}/{credential_scope}, SignedHeaders={signed_headers}, Signature={signature}";
    Console.WriteLine($"Authorization Header:\n{authorization_header}\n");

    var url = endpoint;
    Console.WriteLine($"URL:\n{url}\n");

    var request = WebRequest.Create(url);

    try
    {

        request.Method = method;
        request.ContentType = content_type;

        request.Headers.Add("x-amz-date", amz_date);
        request.Headers.Add("Authorization", authorization_header);

        Console.WriteLine($"Headers:\n{request.Headers.ToString()}\n");

        var data = Encoding.UTF8.GetBytes(request_parameters);
        request.ContentLength = data.Length;

        using (var stream = request.GetRequestStream())
        {
            stream.Write(data, 0, data.Length);
        }

        var response = request.GetResponse();
        var responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
        return responseString;
    }
    catch (System.Exception ex)
    {
        Console.WriteLine($"EXCEPTION:\n{ex.ToString()}");
        return ex.ToString();
    }
}


replace calls to reflections_with_virtual with reflection_with_virtual

This avoids hash allocations and abstracts the application from whether
the keys are strings or symbols for each type

Oh good idea...maybe then we can just kill the *_with_virtual methods altogether.

LGTM :+1:

So on Travis, one job was an "error", but if you went inside it actually passed.  I just re-kicked it, so hopefully it will just be green.


title: created blog on COMPLETE GIT (VERSION CONTROL SYSTEM)

Checklist

[x] You have read the Contribution Guidlines before creating this PR.
[x] Blog follows Blog Guidelines.
[x] Checked for all grammatical errors in the blog.
[x] Checked for any duplicate blog entry.

Description of change

Author Details for Blog Post Entry

Hey @SaravananVijayamuthu, Thanks for Contributing to LoginRadius Engineering Blog. We will review it and let you know of any changes necessary. Meanwhile, please fill this form to become eligible to get swags from LoginRadius for your contribution.

Hey @SaravananVijayamuthu I see a lot of file changes due to image optimization using coming from imgbot. Can you please revert all those changes?

Hey @SaravananVijayamuthu I see a lot of file changes due to image optimization using coming from imgbot. Can you please revert all those changes?

I have done it please do check now!!

There is one more thing. Did you rebase with our dev branch.  We accept PR on dev branch before they go into master from all contributors. If not,  Can you please rebase your branch from dev and submit a Pull request on  dev branch ?

There is one more thing. Did you rebase with our dev branch. We accept PR on dev branch before they go into master from all contributors. If not, Can you please rebase your branch from dev and submit a Pull request on dev branch ?

Yes, I have rebased now to dev and created a new pr.

Thanks @SaravananVijayamuthu . I will close this PR now. and


Verify failed transaction status

Update logic to verify if a transaction was replaced or dropped by querying the status three times before updating the status to Failed instead of using getTransactionReceipt.

What is the status of this PR?

@Gudahtt Right now I need to do some research about Infura and develop some improvements to avoid some minor bugs happening in this PR, but this is not my priority for this and next sprint. I'll close the PR and open a new one when I start working again in this development.


google-cloud-recommendations-ai vs google-cloud-retail

Docs says that we should use retail api however it seems recommendations java api still actively developed. Which one should be used?
Besides, we need better docs and error messages. Use google-cloud-retail and google-cloud-recommendations-ai have been a constant trial and error and often I need to guess what the problem is.

Hi @rotilho
Thank you for reaching out.
google-cloud-recommendations-ai is a beta library. This makes it a work-in-progress, and may occasionally make backwards-incompatible changes.google-cloud-retail is the GA version and hence stable.
We are always working on our libraries and documentation. Thank you for your feedback.


Training with smaller batch size

I figure out that with batch size = 8 (original is 32) network doesn't converges, is it possible to train this Unet implementation with smaller batch size? (i.e. with batch size = 1?)

Try adding BatchNormalization layer, it may help you to train with small batch sizes.


404 @agm/core

Issue description
localhost/:24 Error: Fetch error: 404 Not Found
Instantiating http://localhost:3000/@agm/core
On my app.module I 've the below config
import {AgmCoreModule} from "@agm/core";

@NgModule({
    imports: [...,
         AgmCoreModule.forRoot({apiKey: 'myKey'})],
....

On my html component I have
<agm-map [latitude]="lat" [longitude]="lng" [zoom]="zoom" [zoomControl]="false">
                <agm-marker
                        [latitude]="lat"
                        [longitude]="lng">

                    <agm-info-window>
                        <strong>{{label}}</strong>
                    </agm-info-window>

                </agm-marker>
            </agm-map>

What would be present on System.js?

'@agm/core': <EMAIL_ADDRESS>on systemjs solves it!

This should be in the documentation. 🙂


[proposal] use a signer function instead of a signing key for VdaDid

Problem

The requirement to provide the signing key material to work with a did:vda prevents it from being used with other wallet constructs.
It also lessens security for the user since the signing key needs to be available in the same runtime where VdaDid is instantiated. This means that it's not possible to transition to more secure key management implementations, that don't export the private key, such as Hardware Security Modules or systems where signatures are computed using multi-party computation.

Solution
It would be great if key management could be decoupled form the VdaDid API.
To be able to do this, the signingKey parameter of the VdaDidConfigurationOptions should be replaced with a signer parameter, like so:
export interface VdaDidConfigurationOptions {
    identifier: string;
    signer: (data: Uint8Array) => Promise<Uint8Array>;
    chainNameOrId?: string | number;
    callType: Web3CallType;
    web3Options: VeridaWeb3ConfigurationOptions;
}

Adoption
For applications that already have access to the private key, such a signer can be constructed with a function like this:
function constructSigner(privateKey: Uint8Array) {
  const signer = (data: any) => { return EncryptionUtils.signData(data, <Uint8Array> privateKey); };
  return signer;
}

Details
This line prevents the use of a signing function:
https://github.com/verida/verida-js/blob/01ac4f3f968a8e252d74ee42b45e3397504328ac/packages/vda-did/src/vdaDid.ts#L46
It is constrained by this implementation:
https://github.com/verida/verida-js/blob/01ac4f3f968a8e252d74ee42b45e3397504328ac/packages/did-document/src/did-document.ts#L328

Thanks @mirceanis, that's a great suggestion and pattern.


Supporting polymorphic function arguments

It's very common in JS for a function to accept polymorphic arguments. Bucklescript has support for this via bs.unwrap directive.
<EMAIL_ADDRESS>[
    | `Str(string)
    | `Int(int)
  ]

It would be lovely to have this in genType as well

In https://github.com/cristianoc/genType/pull/118.


[SwiftUI] Fix reused UIHostingController sizing

Change summary
There was an issue we were running in with epoxy in swiftUI where the size of images would not be sized properly that were hosted within the SwiftUIHostingController. This seemed to point to a usage in the internal ._render function. Since this is a private api we can't modify anything with it, I investigated for alternatives.  It seems invoking a layout on the view prevents the issue and it doesn't break the example project for swiftUI in epoxy. This private api was originally introduce in this pr so I had removed the code related to that function.
In the airbnb app this case was related to swift UI cards inside of our UIKit carousel which relied on the swiftUI hosting view.
These images are noticeably lower resolution before compared to after. In proxyman I saw that we were fetching 240 px width images before with ._render and after with layout the 480 px width images

Before with ._render
After without ._render and using view layout methods

How was it tested?
How did you verify that this change accomplished what you expected? Add more detail as needed.

[ ] Wrote automated tests
[x] Built and ran on the iOS simulator
[ ] Built and ran on a device

Tested using the epoxy example project for swiftUI in epoxy and saw that the cell was sized properly and that smaller sizes would not resize to have the bigger cells height. You can see in the no render or view layout case that we'd have mis-sized cells.

Before
with no render or view layout
With view layout

Also checked in app as described in summary and seemed to resolve the issue
Pull request checklist
All items in this checklist must be completed before a pull request will be reviewed.

[ ] Risky changes have been put behind a feature flag, e.g. CollectionViewConfiguration
[x] Added a CHANGELOG.md entry in the "Unreleased" section for any library changes

Closing as we opted for configuration flag on collectionView


Not merged my PR

@sanjay-kv Sir, I have raised 2 PRs, it has been almost a month but it has not been merged yet, please help me. this is its link
Project name:- Eduford-university
Link:- https://github.com/juhinagpure/Eduford-university/issues/45
Project name :- Rubik-Cube
Link - https://github.com/Dev-tanay/Rubik-Cube/issues/145

these are inactive projects rn, if its merged we can provide some score to it at end of the program


Add info about UNREFERENCED_PARAMETER as a viable fix

[Enter feedback here]
I've encountered this issue and used the UNREFERENCED_PARAMETER macro defined in winnt.h, is it maybe a more viable option than the one presented?

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

ID: aff5f8e3-be4c-3af7-cb5d-9a0c0017a222
Version Independent ID: 5f78d743-c527-95e8-367b-0eb0ba811ec5
Content: Compiler Warning (level 4) C4100
Content Source: docs/error-messages/compiler-warnings/compiler-warning-level-4-c4100.md
Product: visual-cpp
Technology: cpp-diagnostics
GitHub Login: @corob-msft
Microsoft Alias: corob

I don't think compiler warning documentation that is about core language should suggest Platform SDK usage.
Maybe cast to void can be suggested.

@mpOzelot
Thanks for the suggestion. There's nothing wrong with using the UNREFERENCED_PARAMETER preprocessor macro where it's defined. The macro creates an expression that evaluates its argument and does nothing with the result. You could do the same thing in standard C++ by writing code like this:
void foo(int unused_param)
{
    (unused_param);  // same as code created by UNREFERENCED_PARAMETER(unused_param);
    return;
}

There's no appreciable difference in behavior between this approach and the recommended solutions. And as @AlexGuteniev  points out, we're documenting C++ compiler behavior whether building for Windows or not, so we're disinclined to use platform-specific examples.


Error while deploying backend application to BTP

Hi,
I am getting following error while deploying the backend application to BTP via manual set up.
   2023-08-01T10:28:26.65+0000 [APP/PROC/WEB/0] ERR npm notice New minor version of npm available! 9.5.1 -> 9.8.1
   2023-08-01T10:28:26.65+0000 [APP/PROC/WEB/0] ERR npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.1>
   2023-08-01T10:28:26.65+0000 [APP/PROC/WEB/0] ERR npm notice Run `npm install -g<EMAIL_ADDRESS>to update!

I have checked the node version and it is 9.8.1 in package-lock.json. Could you please suggest what could be the issue.
Thanks,
Chanchal

Hi,
I have fixed the error by adding engine manually in package.json file.
"engines" : {
    "npm" : "^9.8.1"
  }

but now getting a new error as mentioned in this issue. Please suggest what could be the issue with this new error of invalid_type at connectionString and containerName.
Issue #0: invalid_type at connectionString
Required

Issue #1: invalid_type at containerName
Required

Br,
Chanchal

Hi Chanchal,
Was there more to the error message above? It strikes me as strange that the backend would not work with a slightly older version, especially since I can get it to run with npm version 8.17.0.
I'll address the new error in the other issue, shortly.
Best,
Alex

Thanks.


[FIX] Bug when unchecking an assignment. (Happens with some names)

Hi @joaochris, thanks for reporting. I will have a look at it.

@joaochris: I am not yet able to duplicate the issue so far. 😁But I will continue trying. Meanwhile, if you notice something related to the issue, please share.

Hey @rhahao
I zoomed out of the page and managed to uncheck after many times. It's strange because it doesn't happen every time, and only with some names.

Hello @joaochris, really strange... at least your issue is now solved then. 😉


Neogit help popup doesn't match "hints"

Description
It looks like the hints don't match up with the help popup. It's weird because there is some overlap. For example, both the hint and the help popup have c for commit, while only the hint has x for discard, and the popup has things that the hint doesn't. These two things don't necessarily conflict, but they aren't synced up.
Neovim version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Operating system and version
5.15.80-gentoo-dist
Steps to reproduce

:Neogit
See output

Expected behavior
No response
Actual behavior

Minimal config
N/A

This has been implemented.

This has been implemented.

Thanks for this. It's looking fantastic! Appreciate the hard work.


Is it possible to change only backgroundColor in Hyper, e.g., black?

Thanks for this theme!
I was wondering if it's possible to change the background color, but use all other Dracula colors, for my Hyper terminal.

Sure @sehilyi
I will write options for you can override background in Hyper with this plugins

@sehilyi
From v0.2.2, you can override background color in Hyper. Edit ``~/.hyper.js`
module.exports = {
  config: {
    backgroundColor: '#32302f' // override background color
  },
  plugins: {
    'hyper-dracula'
  }
}

@sehilyi
From v0.2.2, you can override background color in Hyper. Edit ``~/.hyper.js`
module.exports = {
  config: {
    backgroundColor: '#32302f' // override background color
  },
  plugins: {
    'hyper-dracula'
  }
}