Add debugging flags

Use environment variable to turn on help debugging by dumping more information about API requests to the console.

I've been looking into surfacing HTTP traces to assist debugging issues. This library uses the request npm module as the HTTP client. I've discovered this library supports a configuration flag to dump HTTP traffic.
NODE_DEBUG=request node script.js

Here's an example of the output for the following code.
var ow = openwhisk({api_key: 'xxx:yyy', apihost: 'openwhisk.ng.bluemix.net', namespace: 'james.thomas@uk.ibm.com_dev'});

ow.actions.list().then(console.log).catch(console.log)

NODE_DEBUG=request node test.js
REQUEST { json: true,
  method: 'GET',
  url: 'https://openwhisk.ng.bluemix.net/api/v1/namespaces/james.thomas%40uk.ibm.com_dev/actions',
  rejectUnauthorized: true,
  headers: { Authorization: 'Basic xxxxxx=' },
  qs: {},
  callback: undefined,
  transform: undefined,
  simple: true,
  resolveWithFullResponse: false }
REQUEST make request https://openwhisk.ng.bluemix.net/api/v1/namespaces/james.thomas%40uk.ibm.com_dev/actions
REQUEST onRequestResponse https://openwhisk.ng.bluemix.net/api/v1/namespaces/james.thomas%40uk.ibm.com_dev/actions 200 { 'x-backside-transport': 'OK OK',
  connection: 'close',
  'transfer-encoding': 'chunked',
  server: 'nginx/1.11.10',
  date: 'Sat, 11 Mar 2017 08:48:07 GMT',
  'content-type': 'application/json; charset=UTF-8',
  'access-control-allow-origin': '*',
  'access-control-allow-headers': 'Authorization, Content-Type',
  'x-global-transaction-id': '3848629955',
  'set-cookie': [ 'DPJSESSIONID=xxxx; Path=/; Domain=.whisk.ng.bluemix.net' ] }
REQUEST reading response's body
REQUEST finish init function https://openwhisk.ng.bluemix.net/api/v1/namespaces/james.thomas%40uk.ibm.com_dev/actions
REQUEST response end https://openwhisk.ng.bluemix.net/api/v1/namespaces/james.thomas%40uk.ibm.com_dev/actions 200 { 'x-backside-transport': 'OK OK',
  connection: 'close',
  'transfer-encoding': 'chunked',
  server: 'nginx/1.11.10',
  date: 'Sat, 11 Mar 2017 08:48:07 GMT',
  'content-type': 'application/json; charset=UTF-8',
  'access-control-allow-origin': '*',
  'access-control-allow-headers': 'Authorization, Content-Type',
  'x-global-transaction-id': '3848629955',
  'set-cookie': [ 'DPJSESSIONID=xxxx; Path=/; Domain=.whisk.ng.bluemix.net' ] }
REQUEST end event https://openwhisk.ng.bluemix.net/api/v1/namespaces/james.thomas%40uk.ibm.com_dev/actions
REQUEST has body https://openwhisk.ng.bluemix.net/api/v1/namespaces/james.thomas%40uk.ibm.com_dev/actions 945
REQUEST emitting complete https://openwhisk.ng.bluemix.net/api/v1/namespaces/james.thomas%40uk.ibm.com_dev/actions

This looks like a good solution for helping to get HTTP traffic when encountering issues.
@rabbah & @starpit - what do you think? is this enough?
If we like this, I'll document it in the README.md as our solution.

For me, the main thing is being specific about failures. The cli has the same problem (and itself had open issues on this very point).
Right now, I neither get specifics a out my failing request, nor (and worse, in my opinion) a helpful stack trace. The stack trace is blinded by some async intermediary.
With the proposal, I would... Have to return my failing request? This won't help with prod failures. And, anyway, how does one inject an envvar in to a whisk-excuted action?

I've added information about this feature to the README.
https://github.com/openwhisk/openwhisk-client-js/blob/master/README.md#debugging
Turning this on at runtime can be done like....
process.env.NODE_DEBUG='request';
var openwhisk = require('openwhisk');

function main(params) {
  var ow = openwhisk();

  return ow.actions.list().then(arr => ({result: arr}))
}

@starpit I agree that the error responses from the library could be more helpful but I think some of that is due to that platform responses.
I'm going to close this ticket as resolved and can we open another issue for error messages and discuss requirements?


Status on MS VI?

While Milestone VI (https://github.com/KhronosGroup/glTF-Blender-IO/milestone/6) has been closed, many of its issues are still open. What's the current status of those? Are they still planned, do we need to prioritize just a subset of them for MS VII, or do they all need to be moved to the Community milestone?
/cc @emackey @UX3D-nopper @UX3D-schmithuesen

Think I moved them all

The bugs (if caused from "us", not old ones) we will fix, the enhancements are up to the community.

@donmccurdy Let's have a 1:1 next week, where we can priorize things, okay?

Sounds good!

https://github.com/KhronosGroup/glTF-Blender-IO/issues/232 😄

My personal wish-list is:

Occlusion Map and Double Sided controlled from a "glTF Export" node (which has inputs but no outputs), https://github.com/KhronosGroup/glTF-Blender-IO/issues/123#issuecomment-460860865

This represents a very important capability that glTF offers, that this exporter does not.  Sample models that use occlusion or double-sided can't round-trip correctly without this.

Custom normal vector export, #230

Sample models like the Water Bottle can't correctly round-trip without this, they pick up a seam down the side.

"Export Selected" refinements, https://github.com/KhronosGroup/glTF-Blender-IO/issues/193#issuecomment-453543304

This would help the plugin feel more predictable and reliable, by giving users better control.

Any update on the skinning export issues? I have my animator on hold and we are at a standstill.

I understand your issue but please note, that this is still a Beta Release and should not bes used for production.
We already discussed this issue and probably a hack could be easily done to solve this issue. But we do not want to do this and implement a proper solution.

I wish three.js people would have taken that into consideration before dumping their json loader and adopting this as a primary loader. /cry Obviously not your guy's fault.

For anyone that is having skinning issues. We came up with a solution that works!

Export FBX

Use https://github.com/facebookincubator/FBX2glTF/releases

Example: ./FBX2glTF-darwin-x64 -b --blend-shape-normals --blend-shape-tangents --pbr-metallic-roughness -i shot-generator-models/characters/base/male-youth/male-youth.fbx -o shot-generator-models/characters/base/male-youth/male-youth
The structure is not exactly the same as the exporter, but it works! - blendshapes and all!
It's a good temporary solution until the skinning issue is fixed! Great work guys!!!!!!

please note, that this is still a Beta Release and should not be used for production.

I don't do any skinning, but I use many other aspects of this exporter and have considered it production software for some time now (since the previous one was deprecated some months ago).  If there's still a Beta label on here, we should work towards removing it as soon as is reasonable.

The beta is mentioned on this GitHub README page and the goal is to be final close before Blender 2.80 gets final. That was the original plan.

Occlusion Map and Double Sided controlled from a "glTF Export" nod

I believe this should be a relatively lightweight addition – do we just need to look for that glTF Export name, the same way we look for the old Metal/Rough node? If so, I or another contributor can probably add that easily.

Custom normal vector export...

"Export Selected" refinements...

Agreed that both are important. I think the first is likely to be quite complex (I tried to implement it a while ago, and didn't get far). The latter, we or the community can certainly get to in the future.  Tracked in #193.

Any update on the skinning export issues?

We're working on this (thanks UX3D!) and plan to have a great many of these issues resolved in March. In the meantime, we always appreciate examples of issues, PRs like #280 and #287, and improvements to the CI tests to allow us to prevent these problems in the future.
I've gone through the remaining issues in MS VI and moved most out of the Milestone, leaving mostly Compression- Skinning-related tasks in MS VII. Remaining issues in MS VI (#193 and #154) I consider high-priority and will try to get to myself, though if anyone else can tackle them sooner PRs are welcome. :)


⚠ Science Web Services - QState has degraded performance

In d819ad4, Science Web Services - QState (https://sws.labbricks.com/qstate/) experienced degraded performance:

HTTP code: 523
Response time: 1252 ms

Resolved: Science Web Services - QState performance has improved in f66030a after 12 minutes.


npm start modify index.html unexpectedly

When I do some changes in index.html, then npm start, the changes are removed and index.html recover to it's original content.
Don't know what is happening.

I have the same problem. Does anyone have a solution?

closing since this was rewritten with the CLI


[libtorch] Build error on x64-windows

Package<EMAIL_ADDRESS>Host Environment

Host: x64-windows
Compiler: MSVC 19.41.34123.0
vcpkg-tool version: 2024-10-18-e392d7347fe72dff56e7857f7571c22301237ae6
vcpkg-scripts version: 4f746bc66 2024-11-01 (14 hours ago)
PowerShell 7.4.5 x64

To Reproduce
vcpkg install
Failure logs
-- Using cached libtorch-cudnn-9-fix-e14026bc2a6cd80bedffead77a5d7b75a37f8e67.patch.
-- Using cached libtorch-cuda-thrust-missing-header-2a440348958b3f0a2b09458bd76fe5959b371c0c.patch.
-- Using cached pytorch-pytorch-v2.1.2.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/libtorch/src/v2.1.2-89de820eea.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/pytorch-pytorch-v2.1.2.tar.gz
-- Applying patch C:/vcpkg/downloads/libtorch-cudnn-9-fix-e14026bc2a6cd80bedffead77a5d7b75a37f8e67.patch
-- Applying patch C:/vcpkg/downloads/libtorch-cuda-thrust-missing-header-2a440348958b3f0a2b09458bd76fe5959b371c0c.patch
-- Applying patch cmake-fixes.patch
-- Applying patch more-fixes.patch
-- Applying patch fix-build.patch
-- Applying patch clang-cl.patch
-- Applying patch cuda-adjustments.patch
-- Applying patch fix-api-export.patch
-- Applying patch fxdiv.patch
-- Applying patch protoc.patch
-- Applying patch fix-sleef.patch
-- Applying patch fix-glog.patch
-- Applying patch fix-msvc-ICE.patch
-- Applying patch fix-calculate-minloglevel.patch
-- Applying patch force-cuda-include.patch
-- Applying patch fix-aten-cutlass.patch
-- Applying patch fix-build-error-with-fmt11.patch
-- Using source at C:/vcpkg/buildtrees/libtorch/src/v2.1.2-89de820eea.clean
-- Using cached pytorch-kineto-49e854d805d916b2031e337763928d2f8d2e1fbf.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/libtorch/src/2f8d2e1fbf-de7a6d4b27.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/pytorch-kineto-49e854d805d916b2031e337763928d2f8d2e1fbf.tar.gz
-- Applying patch kineto.patch
-- Using source at C:/vcpkg/buildtrees/libtorch/src/2f8d2e1fbf-de7a6d4b27.clean
-- Using cached NVIDIA-cudnn-frontend-12f35fa2be5994c1106367cac2fba21457b064f4.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/libtorch/src/1457b064f4-11f2c20faf.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/NVIDIA-cudnn-frontend-12f35fa2be5994c1106367cac2fba21457b064f4.tar.gz
-- Using source at C:/vcpkg/buildtrees/libtorch/src/1457b064f4-11f2c20faf.clean
-- Using flatc: C:/Users/steve/simcortex/ai_sim_assistant/vcpkg_installed/x64-windows/tools/flatbuffers/flatc.exe
-- Using protoc: C:/Users/steve/simcortex/ai_sim_assistant/vcpkg_installed/x64-windows/tools/protobuf/protoc.exe
-- Using cached pypa-get-pip-24.2.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/libtorch/src/24.2-36e81c02c7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/pypa-get-pip-24.2.tar.gz
-- Using source at C:/vcpkg/buildtrees/libtorch/src/24.2-36e81c02c7.clean
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: C:/vcpkg/downloads/tools/python/python-3.12.7-x64/python.exe C:/vcpkg/buildtrees/libtorch/src/24.2-36e81c02c7.clean/public/get-pip.py --no-warn-script-location
    Working Directory: C:/vcpkg/buildtrees/libtorch
    Error code: Access violation
    See logs for more information:

Call Stack (most recent call first):
  C:/Users/steve/simcortex/ai_sim_assistant/vcpkg_installed/x64-windows/share/vcpkg-get-python-packages/x_vcpkg_get_python_packages.cmake:44 (vcpkg_execute_required_process)
  buildtrees/versioning_/versions/libtorch/e738e2da09a82affc4bf4090d8c672579364231b/portfile.cmake:86 (x_vcpkg_get_python_packages)
  scripts/ports.cmake:192 (include)

Additional context
vcpkg.json
{
  "name": "ai-sim-assistant",
  "builtin-baseline": "4f746bc66438fce2b900c3ba6094a483b871b045",
  "dependencies": [
    {
      "name": "flashlight-text",
      "version>=": "0.0.4",
      "features": [
        "kenlm"
      ]
    },
    {
      "name": "glog",
      "version>=": "0.7.1"
    },
    {
      "name": "gtest",
      "version>=": "1.15.2"
    },
    {
      "name": "jwt-cpp",
      "version>=": "0.7.0#1"
    },
    {
      "name": "kenlm",
      "version>=": "20230531#1"
    },
    {
      "name": "libtorch",
      "default-features": false,
      "version>=": "2.1.2#7"
    },
    {
      "name": "openssl",
      "version>=": "3.4.0"
    },
    {
      "name": "rapidfuzz",
      "version>=": "3.0.5"
    }
  ]
}

I'm having the exact same error code but when building glad which is also using python 3.12.7

If I run the same python script with my local python installation 3.12.3 there is no issues

My issue goes away if I revert back to python 3.11.8
by reverting this:
https://github.com/microsoft/vcpkg/commit/7dcb4ca95bfde3cfca3a9f0a7e933f1d17cc4836#diff-26499ad5d840cada3059f7aaa8363695140b4a6811ed08697b388ab19e16ae97L3-R35
in PR https://github.com/microsoft/vcpkg/pull/41232
This could still be related to antivirus/applocker/etc issues but debugging the Access Violation crash is hard. Seems to happen somewhere in pythons importlib._bootstrap for me. Maybe the new old python has be removed from windows defender, but the new one triggers some issue? Very hard to say. Im not allowed to bypass the org antivirus settings so Im not able to try that.

I figured out the issue.
vcpkg downloads and uses python 3.12.7 and puts that into vcpkg/downloads/tools/python/python-3.12.7-x64
But I have a local python installation of python 3.12.3 in C:\Program Files\Python312 which is also in the global PATH
And it turns out the the vcpkg python will load the _ctypes.pyd from C:\Program Files\Python312 \DLLs not the on in
vcpkg/downloads/tools/python/python-3.12.7-x64 and the are apparently not binary compatible.
The old ctypes dll will try use PyObject_LookupAttr which craches with an access violation.
Updating my local python version to the same version "solves" the issue.
But the vcpkg python really should run isolated from any other installations.

Maybe scripts/cmake/vcpkg_find_acquire_program(PYTHON3).cmake should prefix it self to the local path

@Neumann-A Could you help look into this issue?

IMO this the same problem that we see with the meson ports (other issues): On the other installations of python interferes with the version run by vcpkg.
And there is PR for meson in particular. One think I don't like about that PR is that I assume that vcpkg_find_acquire_program(PYTHON3) must be fixed to do the right thing.
vcpkg_find_acquire_program(PYTHON3) disables the "isolated mode" for the downloaded python. This has some desired effects, but it also makes python use Windows registry and environment variables (PYTHONPATH and PYTHONHOME) when setting up the module search path. I guess this is what causes interference but I'm not an expert for python.
@petersteneteg Are these environment variables set in your system? If yes, is the problem solved by unsetting them?

The registry lookup is the problem. I think the only way to 'solve' it is by pretending to be a venv python if vcpkg provides the tool.

Agree.
Basically we have what is needed in vcpkg-get-python-packages, except that it requires packages to be defined.
(pip should be a no-op?)

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.


Download problem

Hi, I think there is a error with download link.
https://s3-us-west-1.amazonaws.com/sailor-1.0.4/sailor-1.0.4
please check it.

Thanks !

Hi, sorry about that. Here is a link to the SAILOR image used in the Deffit et al. paperhttps://urldefense.com/v3/__https:/www.ncbi.nlm.nih.gov/pmc/articles/PMC5644944/__;!!LLK065n_VXAQ!llwqSzGFaYfhSqmiU1LdtTsLYibz84KK6KGS1W7BKfgxid1YZ6HmwckQqTX8f3fpUOInn23-FyHFQTgyNOm3AtyvYw$. This image should call A-I edits with some code to call C-T if applicable:
https://external-collaborator-data.s3.us-west-1.amazonaws.com/public-software/sailor.tar.gzhttps://urldefense.com/v3/__https:/external-collaborator-data.s3.us-west-1.amazonaws.com/public-software/sailor.tar.gz__;!!LLK065n_VXAQ!llwqSzGFaYfhSqmiU1LdtTsLYibz84KK6KGS1W7BKfgxid1YZ6HmwckQqTX8f3fpUOInn23-FyHFQTgyNOnoPfvrNw$
However, we no longer maintain this repository and have since re-written the SAILOR workflow in Snakemake format. You can refer to the workflows that we have provided in this repo instead. The SAILOR workflows will be similar, but the FLARE repository will contain additional STAMP specific workflows that we did not consider in 2017:
https://github.com/yeolab/flarehttps://urldefense.com/v3/__https:/github.com/yeolab/flare__;!!LLK065n_VXAQ!llwqSzGFaYfhSqmiU1LdtTsLYibz84KK6KGS1W7BKfgxid1YZ6HmwckQqTX8f3fpUOInn23-FyHFQTgyNOn3Wc8yQQ$
I’ll update the github page with the new link shortly.
SECURE: MESSAGE FROM JoeG ON 2/28/23, 4:50 AM
Any update on this?
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/YeoLab/sailor/issues/15*issuecomment-1448125043__;Iw!!LLK065n_VXAQ!irbKqTTDXZ4_4Q8c3dYjMg6FneTEwKix9Tnb7QQSvnI8wsbTkzK5SQIRBdggsoUs2UvED7r4TOzyfpBxD-3o5VeVHeHg$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AB7TJP6B25ND4JEX7IB44XLWZXYB5ANCNFSM6AAAAAAUVGVG5A__;!!LLK065n_VXAQ!irbKqTTDXZ4_4Q8c3dYjMg6FneTEwKix9Tnb7QQSvnI8wsbTkzK5SQIRBdggsoUs2UvED7r4TOzyfpBxD-3o5fSh4U3f$.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thank you for the fast reply! I was able to download from; https://external-collaborator-data.s3.us-west-1.amazonaws.com/public-software/sailor.tar.gz
Can you confirm if this is the same image as that used in Robust single-cell discovery of RNA targets of RNA-binding proteins and ribosomes

Hi Joe, you should be able to use this image for C-T edits. For STAMP specifically, there may be a number of additional filters that are provided in the FLARE repository linked above
SECURE: MESSAGE FROM JoeG ON 2/28/23, 10:41 AM
Thank you for the fast reply! I was able to download from; https://external-collaborator-data.s3.us-west-1.amazonaws.com/public-software/sailor.tar.gzhttps://urldefense.com/v3/__https:/external-collaborator-data.s3.us-west-1.amazonaws.com/public-software/sailor.tar.gz__;!!LLK065n_VXAQ!kjmvPQQmgmYgl9Z3Mf8E22zwfzmSllOmq3lmfNFDvT840hDitTjl1I1cfnLTnXOwFnBhUiEenGOLRB1GIpRxrpGQmKFE$
Can you confirm if this is the same image as that used in Robust single-cell discovery of RNA targets of RNA-binding proteins and ribosomeshttps://urldefense.com/v3/__https:/www.nature.com/articles/s41592-021-01128-0__;!!LLK065n_VXAQ!kjmvPQQmgmYgl9Z3Mf8E22zwfzmSllOmq3lmfNFDvT840hDitTjl1I1cfnLTnXOwFnBhUiEenGOLRB1GIpRxrqfkSc0M$
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/YeoLab/sailor/issues/15*issuecomment-1448671771__;Iw!!LLK065n_VXAQ!kjmvPQQmgmYgl9Z3Mf8E22zwfzmSllOmq3lmfNFDvT840hDitTjl1I1cfnLTnXOwFnBhUiEenGOLRB1GIpRxrlBISezj$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AB7TJPZ3K6MROXNGNIG5RNDWZZAKXANCNFSM6AAAAAAUVGVG5A__;!!LLK065n_VXAQ!kjmvPQQmgmYgl9Z3Mf8E22zwfzmSllOmq3lmfNFDvT840hDitTjl1I1cfnLTnXOwFnBhUiEenGOLRB1GIpRxrrslRoVs$.
You are receiving this because you commented.Message ID: @.***>


python310Packages.more-itertools: 9.0.0 -> 9.1.0

Changelog: https://more-itertools.readthedocs.io/en/stable/versions.html
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

@ofborg eval
serious doubts about this being 100-500.


IndexError list index out of range when an empty AUTHORIZATION header is sent

If an empty AUTHORIZATION header is sent to JWTAuthentication.get_raw_token() then an IndexError occurs rather than returning None

Stacktrace:
IndexError: list index out of range
  File "django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 126, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "django/core/handlers/base.py", line 124, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "newrelic/hooks/framework_django.py", line 544, in wrapper
    return wrapped(*args, **kwargs)
  File "django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "newrelic/hooks/component_djangorestframework.py", line 46, in _nr_wrapper_APIView_dispatch_
    return wrapped(*args, **kwargs)
  File "rest_framework/views.py", line 495, in dispatch
    response = self.handle_exception(exc)
  File "newrelic/hooks/component_djangorestframework.py", line 53, in _handle_exception_wrapper
    return wrapped(*args, **kwargs)
  File "rest_framework/views.py", line 455, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 483, in dispatch
    self.initial(request, *args, **kwargs)
  File "rest_framework/views.py", line 400, in initial
    self.perform_authentication(request)
  File "rest_framework/views.py", line 326, in perform_authentication
    request.user
  File "rest_framework/request.py", line 223, in user
    self._authenticate()
  File "rest_framework/request.py", line 376, in _authenticate
    user_auth_tuple = authenticator.authenticate(self)
  File "rest_framework_simplejwt/authentication.py", line 35, in authenticate
    raw_token = self.get_raw_token(header)
  File "rest_framework_simplejwt/authentication.py", line 69, in get_raw_token
    if parts[0] not in AUTH_HEADER_TYPE_BYTES:

#56 should fix this issue.


GRPC Authorization header

Hello,
Thank you againg for your great work =)!
But I have one more problem =). When using GRPC - header "Authorization" just disapearing. Can be tested with:
proto < ./grpcbin.proto
GRPC grpcb.in:9000/grpcbin.GRPCBin/HeadersUnary
Authorization: Bearer 111

grpcb.in just returns response without our header. And doesn't matter if it is "Bearer" or anything else. Also want to mention that openid/oauth2 will not work here coz token also received using GRPC not via HTTP =). So i need manually to provide header.
Using event also gives nothing:
{{@request
 request.headers.Authorization = 'Bearer XXX';
}}

Using simple HTTP get, for example:
@host=https://httpbin.org
###
GET /anything?q=1 HTTP/1.1
Authorization: Bearer 1111

Works well.
Version of vscode plugin: v4.7.2

How does OAuth2 login via Grpc work? Is the procedure a standard?
The Authorization header is removed because it is currently redirected to the channel credentials. See https://github.com/AnWeber/httpyac/blob/main/src/actions/grpcClientAction.ts#L187. I will remove it.
Unfortunately, I do not have any practical experience with Grpc and therefore I am enthusiastic about any help and suggestions for improvement.

How does OAuth2 login via Grpc work? Is the procedure a standard?

Actually nothing changes here. GRPC also acts here as transport protocol, same as HTTP.  But I'm not sure that oauth is default way for GRPC (https://grpc.io/docs/guides/auth/ , for example google auth treats oauth as legacy and uses new approach ALTS).
And we are currently using simple JWT, and I'm trying to implement in that way:
{{
  exports.PROTO_PATH = require('./../../../grpc.js').PROTO_PATH;
}}

proto < {{PROTO_PATH}}/some_service.proto
includeDirs: [`${PROTO_PATH}`]

# @import ./../auth/auth.http
# @ref auth
GRPC {{host}}/com...SomeService/List
Authorization: Bearer {{auth.token}}

Our java service by default awaits metada to contains "Authorization" header - https://github.com/yidongnan/grpc-spring-boot-starter/blob/master/grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/security/authentication/BearerAuthenticationReader.java#L76
As for httpyac - I'm not sure that it will be best way to support you internal openid/oauth tool for grpc - coz it will require an additional proto imports (need some design here) and again grpc allows to secure in different ways communication and I'm not sure that oauth2 will take same role as it did with http. Btw I'm also some kind new to GRPC =), can only say some my thought, but this thoughts will be not an expertise =)

I have now removed the special handling for Authorization headers. It already felt like an error when coding, only I thought to get OAuth2 tokens in.

Thank you!


Correct chop behavior

Fixes #2222
There were two bugs in the chop behavior that these changes attempt to correct. The first being chops could be written after close is called. The second being new chops may be started after close returns.
To account for these, a check is added to wait until the chop status becomes NOT_ACTIVE before close returns as well as a check to ensure close has not returned before a chop is written.

@DomGarguilo in there is a method named getCandidates() that has the following bit of code in it.
        case CHOP: {
          switch (chopStatus) {
            case NOT_ACTIVE:
            case SELECTING:
              return Set.of();

need to add the new enum to this switch like the following.
        case CHOP: {
          switch (chopStatus) {
            case NOT_ACTIVE:
            case SELECTING:
            case MARKING:
              return Set.of();

This is the code that detemines which files are candidates for a chop compaction.  Unless chopStatus is SELECTED it should return the empty set.


SuperchainWETH: update to include sendETH and relayETH

#471  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Subscribe with non-Notify wallets

GM works great with our sample app, but lets get it working with other wallets.

WalletConnect v2 wallets
Injected wallets

Done!


Ajax control toolkit <IP_ADDRESS> issue

I tried Ajax control toolkit <IP_ADDRESS> and when I use calendarextender control, selected year seems like have bug. I will attach the video for this bug to this blog if I can, but first I open calendar using image icon, and then I select date some where in 06-15-2018 which will update date in textbox. then again I open the calendar extender control and try to select 2019 year, it doesn't allow 2019, even if I click on 2019, it select 2018.
the code is below:-
`<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AjaxCalendar.aspx.cs" Inherits="WebApplication1.AjaxCalendar" %>

                    <asp:TextBox ID="txtPriceDate" runat="server" Width="100px"></asp:TextBox>
                    <asp:ImageButton ID="imgBtnPriceDate" runat="server" CssClass="normal_btn" ImageAlign="absmiddle"
                        ImageUrl="/images/ss_icon_calendar.gif" ToolTip="Display Calendar" />
                    <ajaxToolkit:CalendarExtender id="calPriceDate" runat="server" popupbuttonid="imgBtnPriceDate"
                        targetcontrolid="txtPriceDate"/>

</form>

`

The AJAX Control Toolkit <VERSION>
The installation method

[ ] Installer
[ ] NuGet package
[ ] A custom build from the source code

Minimal steps to reproduce the bug
Actual result
Expected result
Browser(s) used
A site deployment method

[ ] VS development web-server,
[ ] IIS

2016-12-16_7-50-30.zip

Hi @nickgsoft ,
I tried to reproduce this issue based on a video you provided, but did not detect any problems.
Would you please provide a sample project that illustrates this issue?
Also, please specify what browser version you are using.

AjaxCalendar.zip
attached is the sample project

Hi @nickgsoft ,
I tried to replicate the bug using your sample project, but didn't manage: http://screencast.com/t/XAOLgOm2
I'm using IE 11.0.9600.18500:

thanks for sharing your screenshot, but i tried same project by changing <IP_ADDRESS> and it worked and then same project i changed <IP_ADDRESS> to <IP_ADDRESS> and got same error.
I have same browser version as you and i have windows 7 version. but i change with my other windows 10 and 4 other developers pc with combination of different environment and they did see same issue with <IP_ADDRESS>
The issue really comes when we click Year switch from 2018 to 2019, it doesn't pick up the 2019. it shift one year prior to selected year, but as soon as i switch to 2020 it works and then i can switch back to 2019 fine. So selected year back word working as expected, but selecting year forward from years selection panel, it doesn't work sometimes.
Also with <IP_ADDRESS>, i had the hidden field which started giving me error which i have to change to textbox to resovle the issue. So something in 16.1.10 might be bug that prevent us to usign the hiddenfield.
<asp:TextBox  ID="hiddenTargetControlID" runat="server" style="display:none;" />
<asp:HiddenField ID="hiddenTargetControlID" runat="server" />

@nickgsoft

thanks for sharing your screenshot, but i tried same project by changing <IP_ADDRESS> and it worked and then same project i changed <IP_ADDRESS> to <IP_ADDRESS> and got same error.

Do I understand it correctly that you have some external factors that prevent you from using the latest version of the toolkit, and so you need a workaround for v15.1.3?

Please ignore this request as i was able to manage to go to new version <IP_ADDRESS> and now its working as expected. You were correct about external factor as being the custom enhancement to control to add Week Number. it would be nice to enhance this control to include week number.

@nickgsoft
Thank you for your response. To keep things clear, I'm closing this issue.
I don't understand how a week number feature should look like.
Would you please post a new issue with the example describing a calendar's new behavior?


[Suggestion] An option to turn off card flicker in Card Deck Edit

Hello! I've been doing TT alot lately and been using the deck optimizer pretty frequently.
I couldn't help but notice how quickly the highlighted cards flicker pretty frequently causing me to have to strain to look at it. I think if the highlight is static it'd compliment the dimmed effect the other cards have during selection.
I apologize if this seems very specific, I struggle with things that flash/flicker constantly and find it hard/painful to look at! Thank you so much for the amazing plugin.

Good idea, changed in 1.9.1


CLOUDSTACK-8607 - As an Operator I want to be able to change the host password on the host itself via the updateHostPassword API

The changes in this PR will cover the following:

Make sure the new password replaces the old one in the queue
Updated the patch files for XenServer
Updated the script path on LibvirtComputing class
Adding update_host_passwd to VRScripts
Add implementation to CitrixUpdateHostPasswordCommandWrapper
Improve testUpdateHostPasswordCommand() unit test on CitrixRequestWrapperTest
Adding update_host_passwd.sh script
Adding the host IP address as an instance variable on UpdateHostPasswordCommand
Improving the Unit Test (LibvirtComputingResourceTest) to get it covering the new code
Make sure doUpdateHostPassword() doesn't get called if flag is set to false
Do not update XenServer hosts if the cluster ID is not informed

Test Environment:
XenServer cluster: 2 hosts
1 KVM host + KVM Agent 4.6.0-SNAPSHOT built based on the code changes
Management Server running on CentOS 7.1
Shared Storage
Cloudmonkey
:: Update Single Xen Host ::
update hostpassword hostid=ce516ca6-9294-46c8-995c-406672aecf3f username=root password=admin update_passwd_on_host=true
Result: Error 431: Single host update is not supported by XenServer hypervisors. Please try again informing the Cluster ID.
:: Update Xen Cluster ::
update hostpassword clusterid=479cd3f1-2f94-4ae9-b1bb-08be1da1b460 username=root update_passwd_on_host=true password=admin
Result: success = true
Successfully SSH into both hosts with new password
:: Update Single KVM Host ::
update hostpassword hostid=5683cf21-6cb0-4ed0-8498-f77411e89e9a username=root update_passwd_on_host=true password=admin
Result: success = true
Successfully SSH into KVM host with new password
I also reverted the passwords of the hosts to the original, all worked fine.
The "update_passwd_on_host" parameter is not required and is defaulted to "false", which means if operators want to proceed as before, updating only the database and the hosts manually that will be fine.
In case we face problems with the DB update, nothing will change - not even the hosts. In case we are updating a host and it fails due to connection problem, for example, the DB changes will not be rolled back. That's not okay, but I want to fix the consistence in a separate issue, since it would be out of scope for our sprint - which finished next week.
@remibergsma: could you have a look at that  before you go on holidays? :)
@DaanHoogland, @karuturi  and @bhaisaab, your comments are also appreciated
Thanks in advance.
Cheers,
Wilder

Hi @wilderrodrigues awesome work, thanks! LGTM
(let's wait for Travis now to be sure...)

@wilderrodrigues  Thanks for the detailed description in the pull request. It really helps :)

Hi @DaanHoogland and @karuturi
I did some refactoring and added more tests in order to cover both success/failure cases.
Thanks for the feedback.
Cheers,
Wilder

LGTM


Feature/bweir/#79 codas

This should be everything needed for the GEOSana_GridComp for full CoDAS functionality (M2CC, SCREAM products, etc.).

Here are also some general comments:

you need to have RC files that are specific to the trace gases leaving the usual files alone. This applies to anavinfo and to gsi.rc.tmpl

we need to talk about adding a test case for trace gases; something that can be run and tested from time to time when changes are made so we can be sure we don't make the mistake of changing your results inadvertently.

I believe you edits of GSI_GridComp have changed how GSI handles CO2; also I believe you have changed the units of CO2 w/o regard for other part of the code that might need CO2

your settings should be such as to minimize references to the meteorology. I don't think there will be a scenario when an system will use a met + trace gases analysis ... unless I am misunderstanding how the chem part of R21C will run.

I swapped GSI_GridComp in your version w/ the default and I get zero diff; sure this breaks your use of the code, but it proves my point that the error is your edits of GSI_GridComp; we should talk about them.

I have a number of other smaller concerns and comments, but the items above make up the most important stuff.

Brad, just to let you know that I made changes that make the code reproduce the original GSI - the one presently in develop.
Notice also, that I changed  the follow:

placed TGAS rc files in etc/TGAS
recovered original rc files (gsi.rc.tmpl and anavinfo) as they are in develop
other minor edits
I am ready to bring this to develop.

Now what I am doing next - already have it in my sandbox is a setting that runs an O3-only analysis. This will serve as a template for how to run TGAS-only analysis ... we'll need to talk for the latter - I will put those changes in another PR, as I want for this one to go in first.


Expose the auto_advance field from the FinalizeInvoiceParams struct

This pull request exposes the auto_advance field from the FinalizeInvoiceParams struct, allowing users to access it outside its defining module.
Summary

Checklist

[x] ran cargo make fmt
[x] using conventional commits to hightlight user-facing fixes and features

Running CI, TY

Formatting issue seems like a problem with main, merging anyways.

Yea, I noticed some formatting issues in other unchanged files, but since they weren't related to the changes I made, I decided not to commit them.

Yea, I noticed some formatting issues in other unchanged files, but since they weren't related to the changes I made, I decided not to commit them.


Cannot scan NULL into integer fields

If I have a struct with an integer field, and if the value in DB is NULL, scany returns an error like:
scany: scan row into struct fields: can't scan into dest[4]: cannot assign 0 1 into *uint64"

What would be a good workaround here?  Is there any way to instruct scany to just put 0 into the field instead?

Hi, and thank you for this issue!
Could you please provide a complete example of your struct, SQL query, and scany API call. Thanks!

Sure!  Here's a minimal example.
Schema
CREATE TABLE IF NOT EXISTS sales (
    id SERIAL PRIMARY KEY,
    sold_to INTEGER
);

Struct
type Sale struct {
	ID                  uint64
	SoldTo              uint64
}

Query
	var sale Sale
	err := pgxscan.Get(ctx, db,
		&sale,
		`
		SELECT *
		FROM sales
		WHERE id = $1
		`,
		1,
	)

Here if sold_to is NULL in the database, the query will fail.

If SoldTo is a NULLable field, it should be defined as *unit64:
type Sale struct {
	ID        uint64
	SoldTo    *uint64
}

Check this doc section for details<EMAIL_ADDRESS>Alternatively, you could use a custom pgtype type pgtype.Int8 instead of *uint64like that:
type Sale struct {
	ID        uint64
	SoldTo    pgtype.Int8
}

See pgtype docs for details:
https://pkg.go.dev/github.com/jackc/pgtype?utm_source=godoc#Int8

If SoldTo is a NULLable field, it should be defined as *unit64:
type Sale struct {
	ID        uint64
	SoldTo    *uint64
}

Check this doc section for details<EMAIL_ADDRESS>Alternatively, you could use a custom pgtype type pgtype.Int8 instead of *uint64like that:
type Sale struct {
	ID        uint64
	SoldTo    pgtype.Int8
}

See pgtype docs for details:
https://pkg.go.dev/github.com/jackc/pgtype?utm_source=godoc#Int8

Ah got it -- that's very useful to know!  Thanks and I will close the issue for now.


Secure, configurable anonymisation

Closes #79.
This PR introduces changes to how the anonymisation works in the IE-Gateway. Specifically, the DICOM tags sent to the inference service are now specified in GatewayProcessorConfig.json instead of SegmenationClient.cs, making it much simpler for users to configure their own anonymisation protocols.
Furthermore, PatientID is no longer sent to the inference service by default, as it is not needed for inference.

Looking good, overall - you really have picked up a lot of the C# bits! I have not been able to spot a unit test for the core functionality of converting a string tuple (name, method) to its typed counterparts? (GetSegmentationAnonymisationProtocol) Anything to do with reflection should be tested really carefully, I feel. Also, this is a user-provided file, and should be checked more thoroughly for duplicates, etc.
At the risk of distracting you: Would an alternative way of creating the JSON config lead to shorter and easier to maintain configs?
{
   "Keep": ["foo", "bar"],
   "randomize": ["date"],
   "hash": ["baz"]
}

I completely agree, and have updated the PR accordingly.


A few extra lemmas.

Hello,
I am experimenting with Autosubst, for use in teaching the metatheory of programming languages. Congratulations! My initial experiments are encouraging: life with de Bruijn indices is becoming tolerable.
I find that there are some situations where the tactics "asimpl" and "autosubst" are not sufficient and one has to explicitly establish auxiliary lemmas and use them as rewriting rules. Would you be interested in adding these lemmas to the library, provided they are of sufficient general interest? (Maybe I should ask also, is the library still maintained?)
For now, I am submitting a couple patches related to associativity, but I have more, if you are interested. (I could also show you the small project where I am using Autosubst.)
Best regards,
François Pottier.

oops looks like when we took over maintenance of this, we entirely missed this PR. Sorry for that!

(Maybe I should ask also, is the library still maintained?)

I guess you got your answer, given it took 5 years for a reply to appear here... ;) Basically not, though I am keeping it on "life support" since some Iris case studies use it.
I would not be opposed to adding some lemmas, but I have not properly used this library myself, so I can't really tell how generally useful they are. Also I would be opposed to changing any of the existing lemmas; let's avoid breaking changes if at all possible. So, compA should remain unchanged.

Indeed, that's a big 'oops'.. that being said, I recall proving something like upn_upn, so I wouldn't mind those lemmas.
Except, as Ralf said, backwards compatibility is key

Hi! I won't have time to work on this in the foreseeable future, so I think we can close this PR (and I am closing it).

That's fair. Sorry again for the huge latency!


Fix get_project_path for multi-directory workspaces

Fixes a logic error that causes get_project_path to always return the first directory in the current workspace.

Coverage decreased (-0.3%) to 27.651% when pulling 22f34d119181ba99f0d748898808528299298c9e on scriptis:master into 3dd22f91c0c43c0dfec9030a820ff50104d5bdd4 on tomv564:master.

While this does fix the CWD of spawned language servers, LSP still seems to stop functioning entirely  when working in a non-primary directory in a workspace... I'm going to leave this open for the moment, but keep poking around to see if I can fix anything else.

What's the progress on this?

Haven't had time to work on this the past week, should have it sorted today. Sorry about the wait.

Look good? @rwols

Thanks for the contribution, but I will revert this change now in favour of a full solution.
The existing behaviour was not a "logic error", the function even documented that it would return the first folder. (Also see the note in the troubleshooting section and issue #33 linked from it)
I'm sure we can make multi-folder projects work reliably, but if we need to look closer at the usages of get_project_path - what further changes are needed so get_project_path is always correct?

LSP should probably start communicating the current limitation by warning users and refusing server startup when files under the 2nd folder are opened.

@tomv564: I don't follow your reasoning in reverting this. For workspaces with more than one active project,  this evaluates to true, always returning the first directory of the workspace, even though the function is documented to return the parent folder of the active view. As far as I can tell, this PR made the function conform to the previous documentation, not stray from it?

The parent folder of the active view part of the documentation/function is intended as a fallback, it probably should have been worded as such including pointing out it is a filesystem directory it wants to return, not a sublime folder.
But perhaps this is a good time to look at supporting multi-directory workspaces:
Say you have a window with two python projects:
/project1
/project2

Server sessions are shared per window

You open /project1/main.py - the python language server starts with rootUri file:///project1
You then open /project2/main.py - the window already has a python session, so it re-uses that.
LSP sends didOpen project2/main.py on a session based on project1.

This is fixable with the cost of looking up the session by window root folder.
get_project_path uses window.active_view()

Request references in /project1/main.py
You switch active view to /project2/main.py
References response arrives, calls get_project_path and receives /project2 instead of /project1, breaking the relative path lookup

Support configuration per folder?
A follow-up consideration: If users can have different sessions for /project1 and /project2 in the same window,  should they not be able to configure the language server differently for each folder?


chore: restructured app layout components and some minor fixes

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
219

Relevant Lines:
347

💛  - Coveralls


Rename backends and notebook

Rename geometric_kernels/backends geometric_kernels/frontends with appropriate folders for GP packages
Add correct imports to frontend __init__.py's so that backend-specific LAB code and lab_extras is loaded
Add notebook with GPflow and Mesh example
Add test which runs all the notebooks

Looks alright to me, except for the failing checks.
We will also need a pytorch (and jax) example notebooks, I could do it later.


FR: Add Codable support for Remote Config

This quickstart sequence should transform to a single line with Codable - https://github.com/firebase/quickstart-ios/blob/6c420f893cea50d319931451d9fe110c534f9fcf/config/ConfigExample/RemoteConfigViewController.swift#L128-L151

Related to #6883

Closing in favor of #6883


Website Update #1

Update 1
What's new?

[x] Working on Documentation page (which is rough guide on how to become a developer with history, information about OOP, and eventually will have a full guide + code examples).
[x] Bug fixes all around the website.
[x] Fixed the cursed Database error that occurred when swapping from localhost to heroku web server!

As you can see from the spam above, it took much debugging to fix the error. It ended up being a variable not using the $ naming convention that broke the entire sign-up and log-in scripts.
Much oof.

Very ecstatic to say that this is fixed!!


Project approval history

Approval history endpoint is now returning data.
Q: Should we limit the maximum number of  returned approvals to some reasonable number (e..g, last 100 approvals)? Otherwise with enough time we may end up with returning too much data for the frontend to handle (most of which the user is not even interested in).

I think a limit is a good idea.  We can arbitrarily set the limit to 100 now and reconsider later


I have attached a jsfiddle
How comes ?

// initialize SVG.js
var draw = SVG('drawing')

// draw pink square
var rect = draw.rect(100, 100).move(100, 50).fill('#f06')

rect.selectize();

http://jsfiddle.net/Lmu56awz/2285/

Include the css file shipped with the libraray and you are good to go


Make spl-program-ids crate and move declare_id usage in there

There are many cases of people adding, for example, spl_token_2022 as a dependency just so they can import the program ID. This is terrible for dependency bloat and conflicts.
This PR puts SPL program IDs in one crate and re-exports them in their original crates for backwards compatibility.
On my machine a release build of the new spl_program_ids crate takes 0.05s after compiling its dependencies, so I definitely think it's fine to dump every SPL program ID in here. Semver also shouldn't get messy since it's not like we expect breaking changes to the IDs

Thanks for the contribution! We're working on breaking up the SPL repo into many component repos and creating lightweight client crates, like in https://github.com/solana-program/token, so I want to avoid bundling a bunch of program info in one crate at this stage. And I definitely want to avoid programs that we never really supported or deployed to mainnet, like record and binary option.

We're working on breaking up the SPL repo into many component repos and creating lightweight client crates

That's orthogonal to the problem of people importing SPL crates just to get the program ID though

Do you think program clients should have a separate crate which just contains the program id?

This would be excessive even for me. It'd be more work to add the crate than just copy-paste the program ID. But copy-pasting program IDs is not great at the same time. How would you suggest proceeding in #7005 ?
The problems with kitchen sink crates are:

Dependency conflicts
Build times
Bigger surface area for semver

None of these are an issue with a crate that has a dozen or so Pubkey constants that are not changing or growing quickly.

That's a good point -- maybe instead of "just a program id" crate, we really want an "all the addresses" crate?

"all the addresses" crate
What would go in there?

Oh sorry, I was thinking it would be all static IDs and functions to generate PDAs

What are the programs that should be left out? You mentioned binary-option

I meant each program would have an addresses crate containing its program id and PDA derivations.
But in the meantime, maybe what's really needed is something like https://github.com/anza-xyz/agave/tree/master/inline-spl that also contains the ATA derivation function. Would that solve your issue?

The inline-spl crate will be close enough (still annoying to have a bytemuck dep) when this is merged https://github.com/anza-xyz/agave/pull/2186


完整源码

请问完整源码什么时候上传

The full code can not be open-sourced at this time for some reason. Nevertheless, you can embed the model code into your own code for training. It is expected that all code, as well as the pre-training weights, will be open-sourced in the following 1-2 months.


Support for monaco 0.34.0

Ref: https://github.com/esphome/dashboard/pull/300
The latest release of rollup-plugin-monaco-editor is compatible with monaco-editor up to version 0.31.1. For some reason, hovers (with docs and error descriptions) don't show up with the latest version of monaco (0.34.0)

I tried running the gen script but failed

Hi @Misiu, I tried<EMAIL_ADDRESS>locally and it works with this plugin. It will be helpful if you can provide a reproduce way.

Hi @chengcyber did you get the hovers to work properly? I did not try to reproduce the bug in an isolated manner. I'm no expert but found that the path of many files changed here https://github.com/microsoft/vscode/commit/1498d0f34053f854e75e1364adaca6f99e43de08#diff-790d9803b8477b256b7f571260cda4f3d5b033b6405e3586bf3e98d08236087a and I believe this could cause stuff like this to break?

Hi @glmnet , thanks for the information.
Could you elaborate more on the hovers you are using? I want to understand your issue correctly and figure out which kind of thing is broken.

https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-hover-provider-example

TL;DR; this should be closed.
I managed to reproduce the bug, hovers works with 0.31.1 here and does not work with 0.34.0: https://github.com/glmnet/rollup-plugin-monaco-editor/blob/shadow-bug/example/index.js
Stuff just happened in a precisely manner which led me to wrongly conclude the issue was with this plugin.
Now all the fuzz about the shadowroot going on there: Lit Elements framework uses this shadowroot thing which I was not aware was causing this bug too. I am working on ESPHome dashboard project and found out that this shadow root also causes other issues (i.e. touch scroll not working on mobile browser) So I finally ended up loading monaco without shadowroot and now I realize 0.34 works ok with this plugin.
I failed to repro the bug without the shadowroot so this can be closed.
Sorry for the inconvenience.

Glad to know it works for you! 👏

@chengcyber thank you for looking at this and for your time.
@glmnet 💪


Has anybody  deployed kubernetes on rancher 1.6.3 successfully?

Hi:
Has anybody deployed kubernetes on rancher 1.6.3 successfully ?  I want to test kubernetes 1.6 with rancher 1.6.3, but failed!  It takes much time to debug this problem. So, I want to know anybody who has deployed kubernetes 1.6 on rancher 1.6.3 successfully, could you please tell me what docker version , os version and rancher 1.6.3 rc do you use?
Thanks very much!!!

We can help you if you provide us with the details in the issue template? But if you want to know, we test on Ubuntu 16.04 and upstream Docker 1.12.6 among others, so that should help you out. Please update your post with your settings so we can help you out and we can reopen.


Delivery for Coordinate Conversion Addin DotNet V2 – UAT fixes

This build addresses the UAT feedback provided pull request #497.
The validations implemented are:

Not allow more than 10 characters
Only allow alphanumeric characters
Not allow name to be started with a number

The impacting Github ticktes are mentioned below:
#491 - Export all coordinate types from the output section to CSV
#492 - Export all coordinate types from the output section to feature class
#493 - Export all coordinate types from the output section to Shapefile
#495 - Export all coordinate types from the output section to KMZ

All fixes are working that are expected in shp and kmz. There is a continous problem when exporting to  kmz that we create  a shp file, but then the files go away. We have seen this in the past as well.


Not working on Android

I have used your script on my server and with Windows 10 and the official OpenVPN GUI app everything works like a charm.
But it's not working on my Android 7.1 phone. I have imported the same .ovpn file which I used on my Desktop and I cannot ping anything (or connect to anything). And no, I'm not connected on my PC and the phone at the same time.
The connection is established without issues, I cannot see anything in the logs.
Do I have to use some special connection settings to make this work with the official Android App from OpenVPN?

What app do you use from android? I personnaly use OpenVPN for Android

Yes me too. But I have found out another issue: Now it's not even working on my Windows Client.
It was working without any issue and now it just connects and I cannot ping anything, not even the server itself. Do you have any suggestions?

is the process openvpn working on your server?

Yes the process is still running, via systemctl status<EMAIL_ADDRESS>

If you restart the server, does it work ?

I've tried that too and I've disabled all of my iptables rules just to be sure.

@bodkov did you check your log? (I've no idea why it's not working in your case)

Yes.
Server.log (Y.Y.Y.Y is my home network)
Y.Y.Y.Y:54356 TLS: Initial packet from [AF_INET]Y.Y.Y.Y:54356, sid=692cbb53 82df8468 Y.Y.Y.Y:54356 CRL CHECK OK: CN=ChangeMe Y.Y.Y.Y:54356 VERIFY OK: depth=1, CN=ChangeMe Y.Y.Y.Y:54356 CRL CHECK OK: CN=bodkov Y.Y.Y.Y:54356 VERIFY OK: depth=0, CN=bodkov Y.Y.Y.Y:54356 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key Y.Y.Y.Y:54356 Data Channel Encrypt: Using 256 bit message hash 'SHA256' for HMAC authentication Y.Y.Y.Y:54356 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key Y.Y.Y.Y:54356 Data Channel Decrypt: Using 256 bit message hash 'SHA256' for HMAC authentication Y.Y.Y.Y:54356 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES128-GCM-SHA256, 2048 bit RSA Y.Y.Y.Y:54356 [bodkov] Peer Connection Initiated with [AF_INET]Y.Y.Y.Y:54356 bodkov/Y.Y.Y.Y:54356 MULTI_sva: pool returned IPv4=<IP_ADDRESS>, IPv6=(Not enabled) bodkov/Y.Y.Y.Y:54356 MULTI: Learn: <IP_ADDRESS> -> bodkov/Y.Y.Y.Y:54356 bodkov/Y.Y.Y.Y:54356 MULTI: primary virtual IP for bodkov/Y.Y.Y.Y:54356: <IP_ADDRESS>  bodkov/Y.Y.Y.Y:54356 PUSH: Received control message: 'PUSH_REQUEST' bodkov/Y.Y.Y.Y:54356 send_push_reply(): safe_cap=940  bodkov/Y.Y.Y.Y:54356 SENT CONTROL [bodkov]: 'PUSH_REPLY,dhcp-option DNS <IP_ADDRESS>,dhcp-option DNS <IP_ADDRESS>,redirect-gateway def1 bypass-dhcp,route-gateway <IP_ADDRESS>,topology subnet,ping 10,ping-restart 120,ifconfig <IP_ADDRESS> <IP_ADDRESS>' (status=1)
Client Log (Where X.X.X.X is the remote server where your script is installed)
Thu Mar 23 21:17:35 2017 OpenVPN 2.4.0 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Dec 27 2016 Thu Mar 23 21:17:35 2017 Windows version 6.2 (Windows 8 or greater) 64bit Thu Mar 23 21:17:35 2017 library versions: OpenSSL 1.0.2i  22 Sep 2016, LZO 2.09 Enter Management Password: Thu Mar 23 21:17:35 2017 MANAGEMENT: TCP Socket listening on [AF_INET]<IP_ADDRESS>:25340 Thu Mar 23 21:17:35 2017 Need hold release from management interface, waiting...  Thu Mar 23 21:17:42 2017 TEST ROUTES: 1/1 succeeded len=0 ret=1 a=0 u/d=up Thu Mar 23 21:17:42 2017 C:\Windows\system32\route.exe ADD X.X.X.X MASK <IP_ADDRESS> <IP_ADDRESS> Thu Mar 23 21:17:42 2017 Route addition via service succeeded Thu Mar 23 21:17:42 2017 C:\Windows\system32\route.exe ADD <IP_ADDRESS> MASK <IP_ADDRESS> <IP_ADDRESS> Thu Mar 23 21:17:42 2017 Route addition via service succeeded Thu Mar 23 21:17:42 2017 C:\Windows\system32\route.exe ADD <IP_ADDRESS> MASK <IP_ADDRESS> <IP_ADDRESS> Thu Mar 23 21:17:42 2017 Route addition via service succeeded Thu Mar 23 21:17:42 2017 Initialization Sequence Completed Thu Mar 23 21:17:42 2017 MANAGEMENT: >STATE:1490300262,CONNECTED,SUCCESS,<IP_ADDRESS>,X.X.X.X,1194,,

Can you check using OpenVPN 2.4.1 (just to be sure it's not an OpenVPN 2.4.0 issue)?

Here's my Log output with 2.41
Mon Mar 27 18:24:07 2017 OpenVPN 2.4.1 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Mar 22 2017
Mon Mar 27 18:24:07 2017 Windows version 6.2 (Windows 8 or greater) 64bit
Mon Mar 27 18:24:07 2017 library versions: OpenSSL 1.0.2k  26 Jan 2017, LZO 2.09
Mon Mar 27 18:24:07 2017 MANAGEMENT: TCP Socket listening on [AF_INET]<IP_ADDRESS>:25340
Mon Mar 27 18:24:07 2017 Need hold release from management interface, waiting...
Mon Mar 27 18:24:07 2017 MANAGEMENT: Client connected from [AF_INET]<IP_ADDRESS>:25340
Mon Mar 27 18:24:07 2017 MANAGEMENT: CMD 'state on'
Mon Mar 27 18:24:07 2017 MANAGEMENT: CMD 'log all on'
Mon Mar 27 18:24:07 2017 MANAGEMENT: CMD 'echo all on'
Mon Mar 27 18:24:07 2017 MANAGEMENT: CMD 'hold off'
Mon Mar 27 18:24:07 2017 MANAGEMENT: CMD 'hold release'
Mon Mar 27 18:24:07 2017 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Mon Mar 27 18:24:07 2017 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Mon Mar 27 18:24:07 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]Z.Z.Z.Z:1194
Mon Mar 27 18:24:07 2017 Socket Buffers: R=[65536->65536] S=[65536->65536]
Mon Mar 27 18:24:07 2017 UDP link local: (not bound)
Mon Mar 27 18:24:07 2017 UDP link remote: [AF_INET]Z.Z.Z.Z:1194
Mon Mar 27 18:24:07 2017 MANAGEMENT: >STATE:1490631847,WAIT,,,,,,
Mon Mar 27 18:24:07 2017 MANAGEMENT: >STATE:1490631847,AUTH,,,,,,
Mon Mar 27 18:24:07 2017 TLS: Initial packet from [AF_INET]Z.Z.Z.Z:1194, sid=0cad284f 12705a1a
Mon Mar 27 18:24:07 2017 VERIFY OK: depth=1, CN=ChangeMe
Mon Mar 27 18:24:07 2017 VERIFY KU OK
Mon Mar 27 18:24:07 2017 Validating certificate extended key usage
Mon Mar 27 18:24:07 2017 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Mon Mar 27 18:24:07 2017 VERIFY EKU OK
Mon Mar 27 18:24:07 2017 VERIFY OK: depth=0, CN=server
Mon Mar 27 18:24:08 2017 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 DHE-RSA-AES128-GCM-SHA256, 2048 bit RSA
Mon Mar 27 18:24:08 2017 [server] Peer Connection Initiated with [AF_INET]Z.Z.Z.Z:1194
Mon Mar 27 18:24:09 2017 MANAGEMENT: >STATE:1490631849,GET_CONFIG,,,,,,
Mon Mar 27 18:24:09 2017 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Mon Mar 27 18:24:09 2017 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS <IP_ADDRESS>,dhcp-option DNS <IP_ADDRESS>,redirect-gateway def1 bypass-dhcp,route-gateway <IP_ADDRESS>,topology subnet,ping 10,ping-restart 120,ifconfig <IP_ADDRESS> <IP_ADDRESS>'
Mon Mar 27 18:24:09 2017 OPTIONS IMPORT: timers and/or timeouts modified
Mon Mar 27 18:24:09 2017 OPTIONS IMPORT: --ifconfig/up options modified
Mon Mar 27 18:24:09 2017 OPTIONS IMPORT: route options modified
Mon Mar 27 18:24:09 2017 OPTIONS IMPORT: route-related options modified
Mon Mar 27 18:24:09 2017 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Mon Mar 27 18:24:09 2017 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Mon Mar 27 18:24:09 2017 Data Channel Encrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
Mon Mar 27 18:24:09 2017 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Mon Mar 27 18:24:09 2017 Data Channel Decrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
Mon Mar 27 18:24:09 2017 interactive service msg_channel=552
Mon Mar 27 18:24:09 2017 ROUTE_GATEWAY Y.Y.Y.Y/<IP_ADDRESS> I=7 HWADDR=1c:1b:0d:96:fe:fe
Mon Mar 27 18:24:09 2017 open_tun
Mon Mar 27 18:24:09 2017 TAP-WIN32 device [Ethernet 2] opened: \.\Global{7571AF95-A5E1-4ACD-BA79-52EECD6FE0A2}.tap
Mon Mar 27 18:24:09 2017 TAP-Windows Driver Version 9.21
Mon Mar 27 18:24:09 2017 Set TAP-Windows TUN subnet mode network/local/netmask = <IP_ADDRESS>/<IP_ADDRESS>/<IP_ADDRESS> [SUCCEEDED]
Mon Mar 27 18:24:09 2017 Notified TAP-Windows driver to set a DHCP IP/netmask of <IP_ADDRESS>/<IP_ADDRESS> on interface {7571AF95-A5E1-4ACD-BA79-52EECD6FE0A2} [DHCP-serv: <IP_ADDRESS>, lease-time: 31536000]
Mon Mar 27 18:24:09 2017 Successful ARP Flush on interface [4] {7571AF95-A5E1-4ACD-BA79-52EECD6FE0A2}
Mon Mar 27 18:24:09 2017 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Mon Mar 27 18:24:09 2017 MANAGEMENT: >STATE:1490631849,ASSIGN_IP,,<IP_ADDRESS>,,,,
Mon Mar 27 18:24:09 2017 Blocking outside dns using service succeeded.
Mon Mar 27 18:24:14 2017 TEST ROUTES: 1/1 succeeded len=0 ret=1 a=0 u/d=up
Mon Mar 27 18:24:14 2017 C:\Windows\system32\route.exe ADD Z.Z.Z.Z MASK <IP_ADDRESS> Y.Y.Y.Y
Mon Mar 27 18:24:14 2017 Route addition via service succeeded
Mon Mar 27 18:24:14 2017 C:\Windows\system32\route.exe ADD <IP_ADDRESS> MASK <IP_ADDRESS> <IP_ADDRESS>
Mon Mar 27 18:24:14 2017 Route addition via service succeeded
Mon Mar 27 18:24:14 2017 C:\Windows\system32\route.exe ADD <IP_ADDRESS> MASK <IP_ADDRESS> <IP_ADDRESS>
Mon Mar 27 18:24:14 2017 Route addition via service succeeded
Mon Mar 27 18:24:14 2017 Initialization Sequence Completed
Mon Mar 27 18:24:14 2017 MANAGEMENT: >STATE:1490631854,CONNECTED,SUCCESS,<IP_ADDRESS>,Z.Z.Z.Z,1194,,

How do you know it's not working? Your browser showed you a blank page instead of the website you want to go?

I cannot ping either the server itself or static ip addresses like Google DNS (<IP_ADDRESS>) or anything else, DNS is not working too... I have checked the firewall port UDP 1194 is open.
net.ipv4.ip_forward=1 is also set in the sysctl.conf....
So do you have any suggestions? What else could it be?

I cannot ping either the server itself
It seems that this one is normal behavior.

any news @bodkov ?

Okay I've tried the one from Nyr and installed it with the standard settings. Now I can ping <IP_ADDRESS> at least but DNS is not working.

Can you report at https://github.com/Nyr/openvpn-install/issues please @bodkov your problem?
I think it's a host problem, but let's try that!

This was happening to me to, with an 'unsupported' (zesty lxd image), the iptables command was not restored for me.
which I could tell by running
root@openvpn:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Was fixed by running (with IP set appropriately):
iptables -t nat -A POSTROUTING -s <IP_ADDRESS>/24 -j SNAT --to $IP

and adding that to my startup.
Maybe your same issue?

@lutostag  buddy,
regarding the IP that you have set 10.8.0..0/24 is that the Public Network or the Local Network?
iptables -t nat -A POSTROUTING -s <IP_ADDRESS>/24 -j SNAT --to $IP

Oh I'm so sorry I totally forgot about this. I ended up using your script on Debian 9 and it works just fine.


Planning: override vs overrides

override will ensure a member function correctly overrides a member function in a parent class with the same signature and compatible return type. overrides allows to specify the signature of the overridden function so that the overriding function can add more optional parameters or widen the accepted range of values for the existing parameters.

...and to allow rich return type covariance. E.g. the function can return more information than the function it overrides and the extra information is just thrown away if not used.


Update documentation on how to use NetworKit as a library

Could you please update the documentation regarding the usage of NetworKit as a library for other C++ projects?

In principle, the instructions in our README should work.
In addition to that, we now also support pkgconfig. You can build the C++ core (as described in the README), install it using make install and use pkgconfig (search on Google for a description) to find the include directories and libraries.

Thank you Alexander. The section Use NetworKit as a library says that one could include the library as following:
#include <NetworKit/graph/Graph.h>
First, there is no Graph.h file, now it is Graph.hpp. Second, the example says that the header should be in -I/path/to/build/directory/include, but in reality the headers directory is networkit/include/networkit. Third, the file LibDemo.cpp is missing.
In any case, I am not able to use NetworKit as a library in OMNeT++, but I guess I'll open a separate thread for this.


[mobile-viewer] Add an async close method to the example, and change open to also be async (issue 7571)

Since the mobile-viewer example is based on the old FirefoxOS/B2G PDF viewer, it didn't need to have the same kind of open/close methods as the default viewer.
However, now that it has been re-purposed as a simple mobile-viewer example, it seems like a good idea to ensure that it has proper asynchronous open/close methods.
Fixes #7571.

Nice work!


three issues with the resize() method

Hey Jack,
I wanted to ask you about the situation where the colorbox is open, and there's a resize or orientationchange event, and the author wants to show the same content bigger or smaller. This happens a lot with tablets I think. e.g.:
$(window).on("resize orientationchange", function() {
	$.colorbox.resize(); // does nothing as written, because no options are supplied.
});

The problems I see are:

There's no provision for "max" values in the resize method's options. This fences off all the rich design functionality that comes from using a mix of relative and absolute units for normal and "max" units.

e.g. the most basic responsive css
width: 800px
max-width: 92%

...recreated in a scripting context. I see three or four currently open issues pertaining to this "max" request. It's a biggie.

There's no recalculation of the "interfaceWidth" on resize(). This is problematic when using percentages. Sometimes the interfaceWidth changes with window resize, but the method doesn't account for that. This can get ugly. I can give you a fiddle if you like but I imagine you know what I mean.

There's no inheritance from the settings object. E.g if the author spells the settings out up front:
$.colorbox.settings.maxHeight = "92%";
$.colorbox.settings.maxWidth = "92%";
$.colorbox.settings.innerWidth = 800;
$.colorbox.settings.innerHeight = 533;
$('.mypic').colorbox();

It would be great to be able to call the resize() method without any new options and have all the relevant previously stated options just work.
These are a pretty tall order, I realize, but I just wanted to sound you out about it. Rather than patch in a few tweaks here and there for resize, it seems to me it would be both cleaner and clearer to just repeat most of the layout process that occurred when the CB was first opened, from scratch, on the current element when the resize method is called.
(After a lot of struggling with this, I personally have lately just been closing colorbox on resize events just because I have never gotten resize to work the way I want. But that's confusing for the user too!)
I'm happy to try to help with this if you have some pointers, but I wanted to talk to you about it first before I get too far into it.

+1

+1


  I think it makes sense for us to be early adopters.
https://tip.golang.org/doc/go1.19

gonna be popular with the valset :)
but yes agree

@the-frey cant we all upgrade to 1.19 now and still run nodes?

@Highlander-maker I would assume 1.19 is compatible with v9.0.0 yes, but I have not tried it myself yet

have tried it; you can


[WIP] S3 retry

Trying to build in drone

@PhanLe1010 Should we close this one?

Oh yeah, I forgot about this one. Closed it


sh helper hang after update from 1.22 to 1.25

It was working fine before updating :(

I run it as
ENV['DELIVER_WHAT_TO_TEST'] = sh("git log --oneline #{version_number}-1..HEAD")

Thanks for reporting, I'm aware of this issue and hope to push a new version today.

I just pushed a new version, please let me know if that works for you :rocket:

@KrauseFx yeah it woked :+1:  thanks.


rootView support for the view id, hidesNavigationBar and navigationBar parameters

Is this going to be merged? Looks really helpful.


Install on macOS Sierra failed.

Is there any solution? Please, help!!!(((

Having the same problem ^^^

This is the Same as #208 and I have listed a workaround there in the recent comments

Hi folks. Just wanted to post a status update to let you know we're working on a solution for this. My best estimate is the fix will be in the release after next.

https://github.com/Microsoft/BotFramework-Emulator/issues/208 has a workaround that's been shown to work for multiple mac users. Closing now. If you're still hitting this issue, let us know and we'll reopen.


What other Activity types should we support out of the gate?

Not new message contentTypes, but new non-"message" activities

Just 'message and 'typing' for this first milestone.


[Suggestion] Educate users about how GitHub & Azure fit together to make SWAs work

Both GitHub and the Azure Portal are mentioned in context menu items in the extension. Not knowing how these pieces fit together made it difficult to understand how the extension worked.
This excerpt from the tutorial did a good job of succinctly explaining things:

There are two aspects to deploying a static app. The first provisions the underlying Azure resources that make up your app. The second is a GitHub Actions workflow that builds and publishes your application.

Maybe this could be done via a Welcome page?

I think that this will be best suited for a welcome page experience, which we're pushing back to 0.6.0 while we wait for the new SWA config file to be implemented by the platform team.

Maybe we could create a short video explaining these concepts and throw it in the README/wiki

Not sure if the string changes in the prompt along with the wiki changes quantify us closing this issue.  I'll close it, but open one for using the Walkthrough API which should accomplish this same thing.


decompile "INT_SUB" as  a addition because of added variable sign?

When I decompile a Macos AARCH64 binary, I found latest ghidra decompiles a "$U40880:4 = INT_SUB w8, 0x58:4" as "s[1] + 0xa8U"

However, the corresponding source code checks whether s[1] is equal to0x58or 0x88, whose optimization should be s[1] -  0x58 & 0xdf.
Moreover, I found that in Ghidra 10.3, though s[1] is decompiled in a mass, the number  - 0x58 is decompiled correctly, when s[1]  is considered as a uint:

To make sure the potential overflow may cause an issue, I test the following code:
#include <stdio.h>
int test() {
	char temp3;
	temp3 = getchar();
	if((temp3 + 0xa8U & 0xdf) != 0)
		printf("11111\n");
	return 0 ;
}
int test2() {
	char temp3;
	temp3 = getchar();
	if((temp3 - 0x58 & 0xdf) != 0)
		printf("22222\n");
	return 0 ;
}
int main(int argc, char *argv[]){
	test2();
	test();
}

And have the following result:
friends@friends-OptiPlex-5070:~/muqi/trash$ gcc -O0 test_overflow.c
friends@friends-OptiPlex-5070:~/muqi/trash$ ./a.out
x
11111
friends@friends-OptiPlex-5070:~/muqi/trash$ ./a.out
a
22222
11111
friends@friends-OptiPlex-5070:~/muqi/trash$ ./a.out
X
11111

binary for testing is attached
arm_coreutils_od_o.zip

I did some research and found it is because ghidra wrongly assigns 0xa8 as a byte (unsigned char) type.
The process can be briefly described as followed:

Ghidra uses sub2add to convert s[1]-0x58 to s[1]+ 0x58 * -1.
Ghidra uses collapseConstants to convert 0x58*-1 to ffffffa8.
Ghidra uses propagatecopy to propagate the int_zext(ffffffa8) to its related varnode.
Ghidra suspects the signs of ffffffa8 as unsigned. (This is something I have no idea why)
However, if I ban rule collapseConstants and leave 0x58*-1  as a expression there, Ghidra can correctly assign constant 0x58 as a signed char.

The decompiler cannot always recover the exact data-types from the original source code.  In this case, the desired expression s[1] - 0x58 & 0xdf  and the recovered expression s[1] + 0xa8 & 0xdf are equivalent. The decompiler chooses an unsigned data-type for the constant because the logical-and in the expression is usually associated with bit manipulation of unsigned values.
The functions test() and test2() in the sample code are testing separate characters because they each call get_char() independently.  So the boolean tests can be different.

I am sorry, I provide a terrible testing example here, which may confuse you.
The following example should be more obvious. If I use the following code:
int main(int argc, char *argv[]){
	char temp3;
	temp3 = getchar();
	if(temp3 + 0xa8U != 0)
		printf("11111\n");
	if(temp3 - 0x58 != 0)
		printf("22222\n");
	return 0 ;
}

I will have result like followed:
friends@friends-OptiPlex-5070:~/muqi/trash$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
friends@friends-OptiPlex-5070:~/muqi/trash$ gcc -O0 test_overflow.c
friends@friends-OptiPlex-5070:~/muqi/trash$ ./a.out
X
11111
friends@friends-OptiPlex-5070:~/muqi/trash$ ./a.out
x
11111
22222
friends@friends-OptiPlex-5070:~/muqi/trash$ ./a.out
a
11111
22222

The semantic error behind these expressions is called integer promotion (We need to ctrl+f to find the definition of it, which is, the third occurrence/in the middle of this page.)
Since both  0xa8U and  0x58 are int variables, their ranks are higher than the s[1]'s type, which is signed char. Hence, the result of operators, i.e., s[1] - 0x58 and s[1] + 0xa8U will both be promoted to an int variable. However, because 0x58 is a signed int and 0xa8U is an unsigned int, -' in s[1] - 0x58is promoted as a signed int minus, and+ins[1] + 0xa8U` is promoted as an unsigned int addition.

https://github.com/NationalSecurityAgency/ghidra/issues/5758 is a similar example but the addition is incorrectly performed on the address of the object!

The decompiler is aware of the integer promotion.  The bits that are different between s[1] - 0x58 and s[1] + 0xa8U viewed as integers are immediately discarded because of the  & 0xdf.  The full expressions are equivalent.

I think you are right, thanks for your time, and sorry for the confusion I caused.
To check whether Ghidra is aware of the integer promotion, I tried patch &0xdf with a larger value, e.g., 0xdff. Ghidra gives me ((byte)s[1] - 0x58 & 0xdff) instead. I think this is a valid check for this issue.


Update jailbreaks.yml

@cj123 can this be merged? Anything that needs to be changed?

I believe the changes for this are applied in my most recent commit to master.


Add a frequently asked question in Analytics FAQ

@rdw1226 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


feat: Express Import ruleset JSON

Description
This pull request adds a new import ruleset feature to the AEM Importer. An import ruleset is an abstraction on top of the existing helix-importer import scripts that allows for an import to be fully defined using a JSON object. Such an object enables easier machine generation of import rules and can be used as input to a cloud based import API.
An import JSON can be used as input to Import - Workbench, just like an import.js. An import.js can even consume an import.json if it wants to perform more complex operations. This allows a less techical business owner to perform a large percentage of grunt work using section mapping to create an initial pass at importing. A developer could then be involved just to solve the more complicated edge cases.
Over time the intent will be that through a combination of ruleset logic and custom parsers there will never be a need to write any custom import.js. This should decrease the time needed to import a site to Edge Delivery as well as enable the import of a large site to be managed by the Spacecat import APIs.

rebranding section mapping to Import - Express!
add support for import rules JSON
convert section mapping to import rules
download import rules
toggle usage of import rules vs section mapping

Related Issue
#355
Motivation and Context

extending AEM Importer to more non-technical users
decreasing the time required to perform an import

Screenshots (if appropriate):

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

@arumsey, overall LGTM. I commented some minor points. I see many changes in the js/dist/ folder, can you detail why they happened?

@catalan-adobe The import rules feature has been added as an addition to the helix-importer module which requires a rebuild (npm run build). This decision was made so that import rules could potnetially be moved to helix-importer for easier consumption by the importer service in Spacecat.

Thanks for committing the requested changes @atopper. These look good to me as a first pass at integrating import rules with section mapping.

@catalan-adobe  There's a good chance that Anthony and I do not have permission to merge this.  Could you do it?  We can discuss merge requirements & permissions next week or beyond.


Calculate Chrome extension ID from private keys

It is useful to calculate the Chrome extension ID corresponding to a given a private key. For instance, in order to run WebDriver functional tests for any Google Extension using Selenium–ChromeDriver, the extension ID is necessary to get the URLs of extension pages (background and popup pages).
As Erik Kay says on Stack Overflow, any extension’s ID is the first 128 bits of the SHA256 of its RSA public key encoded in base 16 from a to p. CLI examples from Rob Wu and a Ruby script by Mark Wubben might also be useful to look at.
The module API would be similar to crx.generateExtensionID() or ChromeExtension.getExtensionIdFor(privateKeyBuffer), and the CLI would be similar to crx genid -p private-key. The interfaces might also support public keys as inputs, since any private keys would simply be converted to public keys anyway, but this flexibility should be weighed against API simplicity.

Hello @js-choi, I was not aware of this feature but yes, it would be a good addition.
I would indeed favour a #getExtensionIdFor(publicKeyBuffer) to return a promise, because the public key is the real dependency. The #generatePublicKey() method would provide the required data if it is not already available within the workflow:
crx.generatePublicKey()
  .then(pubKey => crx.getExtensionIdFor(pubKey))
  .then(id => ...)

I can't remember if there is any value of storing the pubkey somewhere — it is the only thing provided by the Chrome Web Store though.


boilerplate links for backend challenges has gone missing

the introduction page that was removed had the link to the boilerplate, now those links are not in the curriculum
already a few people that reached that point today have shown confusion

To add:
Here is the file: https://github.com/freeCodeCamp/freeCodeCamp/blob/main/client/src/pages/learn/apis-and-microservices/managing-packages-with-npm/index.md
It seems only some of the paragraphs is taken: https://www.freecodecamp.org/learn/apis-and-microservices

I agree - very confusing.

I'm not sure that the links should go in those intro paragraphs. I'm thinking instead that we add them to the first challenge within the superblock.


Issue on configuring external dependencies with rxjs

Type of Issue
[ ] Bug Report
[ ] Feature Request
[x] Configuration

Description
ng-package.json
{
  "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
  "lib": {
    "entryFile": "src/index.ts",
    "externals": {
      "@angular/animations": "ng.animations",
      "@angular/cdk": "ng.cdk",
      "@angular/common": "ng.common",
      "@angular/compiler": "ng.compiler",
      "@angular/core": "ng.core",
      "@angular/forms": "ng.forms",
      "@angular/http": "ng.http",
      "@angular/material": "ng.material",
      "@angular/platform-browser": "ng.platformBrowser",
      "@angular/platform-browser-dynamic": "ng.platformBrowserDynamic"
    },
    "umdModuleIds": {
      "rxjs/**" : "rxjs.all"
    }
  }
}

Console output
/Users/sarbull/open-source/rest-grid-library [git::master *] [sarbull@Macbook-Air-2] [14:16]
> npm run build

><EMAIL_ADDRESS>build /Users/sarbull/open-source/rest-grid-library
> ng-packagr -p ng-package.json

Building Angular library
Generating bundle for rest-grid-library
Cleaning bundle build directory
Processing assets
Running ngc
Compiling to FESM15
Compiling to FESM5
Compiling to UMD
Minifying UMD bundle
Dropping side-effect-free statement [0:1563,21]
Dropping side-effect-free statement [0:2191,17]
Side effects in initialization of unused variable S [0:306,4]
Side effects in initialization of unused variable T [0:307,4]
Side effects in initialization of unused variable ha [0:708,4]
Side effects in initialization of unused variable ia [0:709,4]
Side effects in initialization of unused variable ja [0:710,4]
Side effects in initialization of unused variable Ya [0:1490,4]
Side effects in initialization of unused variable Za [0:1491,4]
Side effects in initialization of unused variable $a [0:1492,4]

BUILD ERROR
ENOENT: no such file or directory, open '/Users/sarbull/open-source/rest-grid-library/node_modules/src/util/isFunction.ts'
Error: ENOENT: no such file or directory, open '/Users/sarbull/open-source/rest-grid-library/node_modules/src/util/isFunction.ts'

How can i configure the ng-package.json file so that the UMD format loads everything?
Thank you,
@sarbull

I just figured out that i was using<EMAIL_ADDRESS>i updated to 2.4.2 and the build seems to work.
Gracias.


 Polls are generaly very frequent and so allocations during a poll decrease efficiency of the overall solution. This commit removes a large (and unnecessary allocation).
This is a non functional change and so has been tested by existing tests.

@showuon Raised KAFKA-13322 for this and similar issues
for the complexity argument, the present implementation starts off with an empty array list and adds a potentially large amount of entries. To accommodate them the list needs to grow and so copy the existing vaues (https://github.com/openjdk/jdk/blob/739769c8fc4b496f08a92225a12d07414537b6c0/src/java.base/share/classes/java/util/ArrayList.java#L237). Since the new implementation doesn't need to do any of that it is actualy a lot more efficient.
In my test that particular allocation was 19.4%
Please let me know if any further changes are required. Thanks.

@mprusakov Are you still interested by doing this? I can help reviewing the PR once the existing comments are addressed. Thanks.

Unfortunately i have realized that this fix is a drop in the ocean and further changes are much more intrusive. This change alone did not meet my client's requirements so I've implemented my own version using your lower level api thus no need in this change.


Performance Test: Neural Network

In case I have time to implement a neural net before dec '16, I will performance test it to validate if the implementation is valid or if it needs tuning to get better.


The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\MSTSYS0083). Please verify you invoked Maven from the correct directory.

Hi Team,
Kindly for me.
The screen shot is my error Currently I want create Maven project while the giving that command showing error. Please help to me. how to reslove this.

What are you trying to to? Your screenshots are incomplete!
I cannot see which maven command you ran. I cannot see in which directory you are. Did you even check out the directory where you downloaded epubcheck?

The above are all the screen shot
This is my Directory:C:\Users\MSTSYS0083>
i don't know about epubcheck. kindly explain to me
the maven command is :
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeArtifactId=aem-projectarchetype -DarchetypeVersion=11 DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/

If you do not know what EpubCheck is and if you do not intend to use EpubCheck, this is clearly the wrong place for your support request! I'm sorry.


Set default window.styleMedia value to type:"screen"

Upgrading from tallahassee 10.3 to >=10.4
After that tallahaasee throws an exception 💥  TypeError: Cannot read property 'type' of undefined when running a test in my codebase that executes a clientside script with window.matchMedia("print").matches
My test never defined window.styleMedia explicitly - we assume it's screen by default.
So the problem is that window.styleMedia is null in this tallahassee-function
function evaluateMediaTypes(types) {
      return types[0] === window.styleMedia.type;
}

Before version 10.4.0 of tallahassee had this line of code
window.styleMedia = window.styleMedia || { type: "screen" };
It was removed here:
https://github.com/BonnierNews/tallahassee/pull/90/files#diff-05031f01ca3c1fea02e05a188b3a3313ad06b1a9ea6d9c1e1704013bf3cedc5aL104
Now I'm bringing it back 😄
PS:
After talking with Jonas we've agreed this should result in a minor version bump when merged.

Thanks! 👍


base: Smart Pulldown [1/2]

Fix authorship please

Sorry, I forgot to set. I will create a new PR.


What mkldnn format to use for best perf?

It seems like only convolution primitive converts input nchw to output nchw8c (for example). Rest of the primitives keep the same input format. If I am using primitives other than conv, how do I get the correct format for the given platform?

All not-compute-intesive primitives should be created on the layout that is currently used. If the input comes from the convolution, than use it (which is typically blocked, as you mentioned). If the input comes from user's code, then use the user's layout (typically nchw or nhwc).
The corresponding part in the documentation.

Closing as the question seems to be addressed. Please feel free to reopen if you need additional clarifications.


Add neutron to etc alternatives

There are 2 lists (?)
This is due to a potential bug with neutron-client not using the venv pip setup in /opt/openstack like everything else

I'm okay with this to fix the critical path of neutron client working.

This completed the task being changed, so I'm inclined to let it in. Will throw one more retest at it.

retest


Make texture_debug_usage thread safe

Fixes: https://github.com/godotengine/godot/issues/28533
I guess the "S" makes it thread safe. I'll be honest, I am just guessing that from reading https://github.com/godotengine/godot/blob/a7f49ac9a107820a62677ee3fb49d38982a25165/servers/server_wrap_mt_common.h

Thanks!


swap picasso project with piet mondriaan project

Here is live URL: https://piet-mondriaan.netlify.app/
Here is the HTML: https://github.com/Sboonny/Piet_Mondriaan/blob/initial/state/Piet_Mondriaan/index.html
Here is the CSS: https://github.com/Sboonny/Piet_Mondriaan/blob/initial/state/Piet_Mondriaan/style.css

The painting is different from Picasso one, using position with it will be weird, and it can be based on grid system for responsive layout, instead of the old project.
If we are okay with a new project, then the intermediate CSS techniques will be around grid, making template-rows/columns, and how naming is hard for programmers, so it's currently faster and easier to create layout, using utility classes.
Here is the project: https://www.freecodecamp.org/learn/2022/responsive-web-design/#learn-intermediate-css-by-building-a-picasso-painting

Thanks for looking into this so quickly.
I agree that the painting could be taught much better with Grid.
Since there is an order in which the topics are introduced in the practice projects and a list of topics that each cert project tests, I think we need to stick to teaching the same topics for that project.
Here is the topics coverage for each project: https://docs.google.com/spreadsheets/u/1/d/1KXEJvgnAziiePMp2Ovf_ssDqCFFWYuycXWBNp91k3qM/htmlview#gid=
There might be other considerations that I am not aware of, so I highly recommend double checking with the curriculum team moving forward.


As a forgetful student, I can see who a person on my contact list looks like

so that I can remember he/she/them.

-create a new function: view-image


Add telescope process picker for 'attach' configurations

Hey,
I like this extension and replaced the dap process picker with a picker from telescope for ease of use. That was also mentioned in #9.  Let me know if anything speaks against a merge.

The pick_process function in nvim-dap uses vim.ui.select, so this shouldn't be necessary?
Monkey patching dap.run is also not supported by nvim-dap, please don't do that.


xception in thread "Thread-4" java.lang.NullPointerException

Jan 03, 2016 9:05:39 PM org.mongodb.morphia.logging.MorphiaLoggerFactory chooseLoggerFactory
INFO: LoggerImplFactory set to org.mongodb.morphia.logging.jdk.JDKLoggerFactory
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "Thread-4" java.lang.NullPointerException
at io.minecloud.daemon.StatisticsWatcher.run(StatisticsWatcher.java:130)
OS: Ubuntu 14.04
also i tried daemon.jar on debian-8-jessie and i got same error.

You will need to add that node to the database. You can do that through the CLI.


Not able to build ros_gz_bridge

ROS2 version : humble
1   ros_gz_interfaces/include/ros_gz_interfaces/ros_gz_interfaces/msg/altimeter.hpp:10:10: fatal error: ros_gz_interfaces/msg/detail/altimeter__type_support.hpp: No such file or directory
10 | #include "ros_gz_interfaces/msg/detail/altimeter__type_support.hpp"
2 ros_gz_interfaces/include/ros_gz_interfaces/ros_gz_interfaces/srv/control_world.hpp:10:10: fatal error: ros_gz_interfaces/srv/detail/control_world__type_support.hpp: No such file or directory
10 | #include "ros_gz_interfaces/srv/detail/control_world__type_support.hpp"
3 lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy
4 git log -1
commit 5cc92f804739b8b72f71aa2551a4be893d74efc0 (HEAD -> humble, tag: 0.244.16, origin/humble)
Author: Alejandro Hernández Cordero<EMAIL_ADDRESS>Date:   Mon Jul 22 16:50:33 2024 +0200
0.244.16

5 Who can tell me how to avoid the following problems? Thank you
colcon build
Starting >>> ros_gz_interfaces
Starting >>> ros_gz_sim
Finished <<< ros_gz_interfaces [17.1s]
Starting >>> ros_gz_bridge
Starting >>> ros_ign_interfaces
Finished <<< ros_gz_sim [24.3s]
Starting >>> ros_ign_gazebo
Finished <<< ros_ign_gazebo [17.1s]
--- stderr: ros_gz_bridge
In file included from /home/s/ros2_rosgz/src/ros_gz/ros_gz_bridge/src/service_factories/ros_gz_interfaces.cpp:22:
/home/s/ros2_rosgz/install/ros_gz_interfaces/include/ros_gz_interfaces/ros_gz_interfaces/srv/control_world.hpp:10:10: fatal error: ros_gz_interfaces/srv/detail/control_world__type_support.hpp: No such file or directory
10 | #include "ros_gz_interfaces/srv/detail/control_world__type_support.hpp"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/ros_gz_bridge.dir/build.make:251: CMakeFiles/ros_gz_bridge.dir/src/service_factories/ros_gz_interfaces.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/s/ros2_rosgz/src/ros_gz/ros_gz_bridge/test/utils/ros_test_msg.hpp:50,
from /home/s/ros2_rosgz/src/ros_gz/ros_gz_bridge/test/utils/ros_test_msg.cpp:15:
/home/s/ros2_rosgz/install/ros_gz_interfaces/include/ros_gz_interfaces/ros_gz_interfaces/msg/altimeter.hpp:10:10: fatal error: ros_gz_interfaces/msg/detail/altimeter__type_support.hpp: No such file or directory
10 | #include "ros_gz_interfaces/msg/detail/altimeter__type_support.hpp"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/test_utils.dir/build.make:90: CMakeFiles/test_utils.dir/test/utils/ros_test_msg.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:183: CMakeFiles/ros_gz_bridge.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:368: CMakeFiles/test_utils.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
Failed   <<< ros_gz_bridge [31.4s, exited with code 2]
Aborted  <<< ros_ign_interfaces [31.9s]
Summary: 3 packages finished [49.5s]
1 package failed: ros_gz_bridge
1 package aborted: ros_ign_interfaces
1 package had stderr output: ros_gz_bridge
8 packages not processed
Then :
colcon build --packages-select  ros_gz_interfaces
This may be promoted to an error in a future release of colcon-override-check.
Starting >>> ros_gz_interfaces
Finished <<< ros_gz_interfaces [16.5s]
Summary: 1 package finished [16.9s]
But ：
colcon build --packages-select  ros_gz_bridge
1   ros2_rosgz/install/ros_gz_interfaces/include/ros_gz_interfaces/ros_gz_interfaces/msg/altimeter.hpp:10:10: fatal error: ros_gz_interfaces/msg/detail/altimeter__type_support.hpp: No such file or directory
10 | #include "ros_gz_interfaces/msg/detail/altimeter__type_support.hpp"
2  ros2_rosgz/install/ros_gz_interfaces/include/ros_gz_interfaces/ros_gz_interfaces/srv/control_world.hpp:10:10: fatal error: ros_gz_interfaces/srv/detail/control_world__type_support.hpp: No such file or directory
10 | #include "ros_gz_interfaces/srv/detail/control_world__type_support.hpp"

Summary: 13 packages finished [4min 27s]
Solved it, it was caused by my local package confusion. I reinstalled ros2 and other dependencies, and now the compilation is successful


performLinearAnimation not working after coming from background

hey. Im trying to start performLinearAnimation when app comes in foreground from background using AppState of react native. But its not working. It works correctly when using by calling from a button. Please check
Code:
import React from 'react';
import { Text, View, Button, AsyncStorage, TextInput, AppState } from 'react-native';
import { AnimatedCircularProgress } from 'react-native-circular-progress';

export default class Abc extends React.Component{
    constructor(props){super(props);}
    componentWillMount = () => {
        AppState.addEventListener('change', this._handleAppStateChange);
    };
    componentWillUnmount = () => {
        AppState.removeEventListener('change', this._handleAppStateChange);
    }
    _handleAppStateChange = nextAppState => {
        if (nextAppState === 'active') {
            console.log('active')
            this.start()

        }
    }
    start = () => {
        console.log('inside start')
        this.refs.circularProgress.performLinearAnimation(20, 1000)
    }

    render = () => {
        return(
        <View style={this.Style.View}>
            <AnimatedCircularProgress
                                    ref='circularProgress'
                                    size={50}
                                    width={5}
                                    prefill={50}
                                    fill={50}
                                    tintColor="#00e0ff"
                                    backgroundColor="#3d5875">
                                    {
                                        (fill) => (
                                            <Text style={this.Style.Text}>10
                                                {/* {this.state.timer} */}
                                            </Text>
                                        )
                                    }
                                </AnimatedCircularProgress>
                                <Button title='click.!' onPress={() => this.start()} />
        </View>
        )
    }
    Style={
        View: {flex: 1,justifyContent: 'center',alignItems: 'center',},
        Text: { alignSelf: 'center', fontFamily: 'Montserrat-SemiBold', color: 'black', fontSize: 20 }
    }

}

Is this library still being managed?

Do you still experience this with version 1.0.0?

Closing for inactivity, feel free to reopen


dns/bind: add support for transfer-source[-v6] options

...and it also fixes the indention of the surrounding options (no-op change), because it looks nicer. :)

@mimugmail please review.


ZeroDivisionError: float division by zero

The error is returned when comparing two empty string.
line 42, in normalized_distance     return float(self.distance(*sequences)) / self.maximum(*sequences)

Yeah, my favorite exception!
Please, provide steps to reproduce.

import textdistance
textdistance.Levenshtein().normalized_similarity('', '')
line 42, in normalized_distance
    return float(self.distance(*sequences)) / self.maximum(*sequences)
ZeroDivisionError: float division by zero

I'm using Python 3.7.3
Sorry for my delayed answer @orsinium

Thank you, I'll have a look at it :)