node-request-interceptor doesn't play nicely with aws-sdk when interceptor is enabled

👋 again (excited to be one of the first users of the low-level lib)
as part of my product, i'm trying to allow users to "lock" the state of their microservice, and cache the responses of any outbound requests. but during this "locking", i get in an intermediate state, where i need some requests to go through transparently (aws), but the rest to be intercepted (requests to e.g. our other services, public APIs, etc)
i have a feeling aws-sdk is doing something sketchy here, but when i just have the interceptor enabled, here's the error i get trying to allow the aws requests to go through (I have some matching logic that returns undefined for them):
(node:74163) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_PROTOCOL]: Protocol "http:" not supported. Expected "https:"
    at new ClientRequest (_http_client.js:120:11)
    at request (https.js:289:10)
    at Object.proxiedOriginalRequest (/Users/scottyjacobson/node_modules/node-request-interceptor/lib/interceptors/ClientRequest/index.js:54:36)
    at ClientRequestOverride.<anonymous> (/Users/scottyjacobson/node_modules/node-request-interceptor/lib/interceptors/ClientRequest/ClientRequestOverride.js:241:39)
    at step (/Users/scottyjacobson/node_modules/node-request-interceptor/lib/interceptors/ClientRequest/ClientRequestOverride.js:33:23)
    at Object.next (/Users/scottyjacobson/node_modules/node-request-interceptor/lib/interceptors/ClientRequest/ClientRequestOverride.js:14:53)
    at fulfilled (/Users/scottyjacobson/node_modules/node-request-interceptor/lib/interceptors/ClientRequest/ClientRequestOverride.js:5:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
    at startup (internal/bootstrap/node.js:283:19)
(node:74163) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:74163) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

reproduction steps:
'use strict'

const { RequestInterceptor } = require('node-request-interceptor')
const withDefaultInterceptors = require('node-request-interceptor/lib/presets/default')
  .default

const interceptor = new RequestInterceptor(withDefaultInterceptors)

interceptor.use(() => {
    return undefined
});

const AWS = require('aws-sdk');
AWS.config.update({region:'us-east-1'});

const s3 = new AWS.S3();

s3.getObject({
    Bucket: 'this.bucket.dont.matter',
    Key: 'neither.does.this'
}).promise();

package.json:
{
  "name": "request-interceptor-59",
  "version": "1.0.0",
  "main": "index.js",
  "author": "",
  "license": "ISC",
  "dependencies": {
    "aws-sdk": "^2.759.0",
    "node-request-interceptor": "^0.5.1"
  }
}

i know there's<PHONE_NUMBER>94 moving pieces in the aws-sdk, and i wish i could get you a more isolated repro case, but the inner workings of aws-sdk's use of http vs https (and yours for that matter) is slightly out of my pay grade. happy to help hunt down the issue if you know what direction to go looking in!
thanks!
Scotty

Hey, @ScottyMJacobson! Thanks for reaching out.
I've never tried NRI in the combination with AWS SDK, so there's a room for unexpected behavior. Let us plan this issue and take a look into it in the nearest time.

Hi there.
I don't experience the exception you've mentioned using your code, but I assume that is because I don't have any AWS set up in the console, so it just throws for me during the attempts to get the API.
Unfortunately, I see no easy way to debug this. I will not provide AWS with my personal information for the sake of issue debugging and hope for your understanding on this.
If you still experience this issue and wish our team to look into it, please set up a minimal reproduction. It should include a working integration with AWS accessible for us to reproduce the issue. Otherwise I'm afraid there's not much I can help with.


Reopen 3797: cmake-tools still does JSON.stringify in 1.19.XX

before the change (1.18.44):
2024-08-07 17:58:30.458 [error] Error: Extension 'ms-vscode.cmake-tools' CANNOT use API proposal: extensionRuntime.
Its package.json#enabledApiProposals-property declares: [] but NOT extensionRuntime.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-vscode.cmake-tools
	at P (/home/mfjordchris/.vscode-server/bin/b1c0a14de1414fcdaa400695b4db1c0799bc3124/out/vs/workbench/api/node/extensionHostProcess.js:142:59143)
	at get extensionRuntime [as extensionRuntime] (/home/mfjordchris/.vscode-server/bin/b1c0a14de1414fcdaa400695b4db1c0799bc3124/out/vs/workbench/api/node/extensionHostProcess.js:160:12849)
	at JSON.stringify (<anonymous>)
	at RollbarController.exception (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.18.44/dist/main.js:95682:60)
	at /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.18.44/dist/main.js:95726:38

After the change (1.19.37):
2024-08-07 18:00:26.131 [warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.
2024-08-07 18:00:28.770 [error] TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Object'
    |     property 'configurePresets' -> object with constructor 'Array'
    |     index 0 -> object with constructor 'Object'
    --- property '__file' closes the circle
	at JSON.stringify (<anonymous>)
	at RollbarController.exception (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.19.37/dist/main.js:113370:60)
	at /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.19.37/dist/main.js:113414:38

Originally posted by @mortenfc in https://github.com/microsoft/vscode-cmake-tools/issues/3797#issuecomment-2273812301

@mortenfc Thanks for the issue, could you try out this vsix (change from .zip to .vsix and install)?
cmake-tools.zip

Yeah it no longer crashes <3
Just prints the original error in log:
Output ->
Cmake/Build:
[cmakefileapi-parser] Read reply folder: <HIDDEN>/.cmake/api/v1/reply
[cmakefileapi-parser] Found index files: [bunch of "*.json",]
[rollbar] Unhandled exception: Unhandled Promise rejection: Post-folder-open Error: No cache object found [object Object]

Output ->
Extension Host (Remote) :
2024-08-13 20:09:50.658 [info] ExtensionService#_doActivateExtension ms-vscode.cmake-tools, startup: true, activationEvent: 'workspaceContains:CMakeLists.txt'

Also tried updating the extension to make sure I installed it correctly and it fixed the crash:
Output ->
Extension Host (Remote) :
2024-08-13 20:15:32.023 [error] TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Object'
    |     property 'configurePresets' -> object with constructor 'Array'
    |     index 0 -> object with constructor 'Object'
    --- property '__file' closes the circle
	at JSON.stringify (<anonymous>)
	at RollbarController.exception (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.19.38/dist/main.js:113371:60)
	at /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.19.38/dist/main.js:113415:38

BTW I have these settings for it:
  // CMAKE settings
  "cmake.ctest.allowParallelJobs": true,
  "cmake.ctest.parallelJobs": 16,
  "cmake.loggingLevel": "debug",
  "cmake.enableTraceLogging": true,
  "cmake.exportCompileCommandsFile": true,
  "cmake.loadCompileCommands": true,
  "cmake.configureOnEdit": false,
  "cmake.configureOnOpen": true,
  "cmake.parallelJobs": 16,
  "cmake.buildArgs": [
    "--parallel 16"
  ],
  "cmake.pinnedCommands": [
    "workbench.action.tasks.configureTaskRunner",
    "workbench.action.tasks.runTask"
  ],
  "cmake.showOptionsMovedNotification": false,
  "cmake.options.statusBarVisibility": "hidden",
  "cmake.options.advanced": {
    "buildTarget": {
      "statusBarVisibility": "visible"
    },
  },
  "cmake.showConfigureWithDebuggerNotification": false,
  "cmake.automaticReconfigure": true,
  "cmake.useCMakePresets": "always",

Wait I tried installing the .vsix again, now the error is in Extension Host (Remote) window instead:
2024-08-13 20:18:32.129 [error] Error: No cache object found
	at CMakeFileApiDriver.updateCodeModel (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:100232:23)
	at async CMakeFileApiDriver.doInit (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:100046:38)
	at async CMakeFileApiDriver._baseInit (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:99604:9)
	at async CMakeFileApiDriver.createDerived (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:99611:9)
	at async CMakeProject.startNewCMakeDriver (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:89126:27)
	at async /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:89392:21
	at async /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:114702:36
2024-08-13 20:18:34.187 [error] Error: No cache object found
	at CMakeFileApiDriver.updateCodeModel (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:100232:23)
	at async CMakeFileApiDriver.doInit (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:100046:38)
	at async CMakeFileApiDriver._baseInit (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:99604:9)
	at async CMakeFileApiDriver.createDerived (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:99611:9)
	at async CMakeProject.startNewCMakeDriver (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:89126:27)
	at async /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:89392:21
	at async /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:114702:36
2024-08-13 20:18:37.748 [error] Error: No cache object found
	at CMakeFileApiDriver.updateCodeModel (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:100232:23)
	at async CMakeFileApiDriver.doInit (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:100046:38)
	at async CMakeFileApiDriver._baseInit (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:99604:9)
	at async CMakeFileApiDriver.createDerived (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:99611:9)
	at async CMakeProject.startNewCMakeDriver (/home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:89126:27)
	at async /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:89392:21
	at async /home/mfjordchris/.vscode-server/extensions/ms-vscode.cmake-tools-1.13.0/dist/main.js:114702:36

@mortenfc I'm not sure I fully understand, so you're saying that the stringify issue is solved, but then you're seeing other errors?
Looking at the code, we throw the error "No cache object found" when we don't find the cache in the cmake fileAPI response. Have you tried running "CMake: Delete Cache and Reconfigure"? Or even deleting your whole build folder and reconfiguring? This issue doesn't feel related to the rollbar

Yes, I got that error instead. I no longer get it after build a few times.
Uncaught errors seem bad, though.
"No cache object found" was the pop up message in the initial ticket caused by the JSON.stringify thing

It's probably not a popup because I Set these
"cmake.showOptionsMovedNotification": false,
"cmake.showConfigureWithDebuggerNotification": false,

@mortenfc Those settings are unrelated to this.
To summarize what I think I'm understanding is that, yes, we should likely create a separate bug to handle any uncaught errors, but for this one, it sounds like it will be resolved with #3985, as it fixes the crashing issue. Would that be correct?

I don't know, I just know that the .zip you attached to this thread solved the Stringify problem.

I don't know, I just know that the .zip you attached to this issue solved the Stringify problem.

Perfect, that PR I linked is the change I built into that .zip file.

@gcampbell-msft, according the customer's latest comment, The .zip you attached to this issue solved the Stringify problem. Cold we close this issue now? Thank in advance.


Add integration test for search

Related to #1082, and more specifically #1083, a recent change in the saving and resource template loading caused loading the resource from search to fail at in part because of https://github.com/LD4P/sinopia_editor/blob/master/src/actionCreators/resources.js#L45

More generally, here are the specific things I think we would want a search integration test to accomplish:

Search term with and without a wildcard
List of Results
Load a search result into the editor
Edit and save back to Trellis


v3.3.8

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_58pgbcw7wf/clone/recipe/meta.yaml:30: missing_pip_check: For pypi packages, pip check should be present in the test commands
ERROR: /tmp/abs_58pgbcw7wf/clone/recipe/meta.yaml:30: missing_imports_or_run_test_py: Python packages require imports or a python test file in tests.
WARNING: /tmp/abs_58pgbcw7wf/clone/recipe/meta.yaml:36: missing_description: The recipe is missing a description
ERROR: /tmp/abs_58pgbcw7wf/clone/recipe/meta.yaml:36: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_58pgbcw7wf/clone/recipe/meta.yaml:36: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_58pgbcw7wf/clone/recipe/meta.yaml:36: missing_dev_url: The recipe is missing a dev_url
Errors were found


When using alt buffer in bash (\e[?1049h) write writes into normal buffer

What's the best way to reproduce this problem? The following code:
void main() {
    writeln("hello 1");
    writeln("\x1B[?1049h");
    writeln("hello 2");
    writeln("\x1B[?1049l");
    writeln("hello 3");
}

prints
hello 1

hello 3

with both std.stdio and speedy.stdio on my computer. It would be useful to have a testcase, which can show the difference.

#!/usr/bin/env dub
/+ dub.sdl:
name "speedy"
dependency "speedy-stdio" version="~>0.1.2"
+/

static import speedy.stdio;
static import std.stdio;

void main() {
    speedy.stdio.writeln("speedy Test 1");
    std.stdio.writeln("std Test 1");

    screenEnableAltBuffer();

    speedy.stdio.writeln("speedy Test 2");
    std.stdio.writeln("std Test 2");

    screenDisableAltBuffer();

    speedy.stdio.writeln("speedy Test 3");
    std.stdio.writeln("std Test 3");
}

/// Enabled/Disables alternative screen buffer.
void screenEnableAltBuffer() {
    std.stdio.write("\033[?1049h");
}
/// Ditto
void screenDisableAltBuffer() {
    std.stdio.write("\033[?1049l");
}

Prints:
std Test 1
std Test 3
speedy Test 1
speedy Test 2
speedy Test 3

Interesting, if to use speedy for entering in alt buffer, e.g.
/// Enabled/Disables alternative screen buffer.
void screenEnableAltBuffer() {
    speedy.stdio.write("\033[?1049h");
}
/// Ditto
void screenDisableAltBuffer() {
    speedy.stdio.write("\033[?1049l");
}

Then it prints
std Test 1
std Test 2
std Test 3
speedy Test 1
speedy Test 3

Instead. Is this supposed to be like that? Since they all are supposed to write into STDOUT_FILENO, which in most case is always 1
https://github.com/ssvb/speedy-stdio/blob/8080df680563e59b6fa8a5b460f1e0a9a9d8bea7/speedy/stdio.d#L92

Thanks, now I see what's going on. The problem is that speedy.stdio is doing its own buffering and is not designed to be used together with std.stdio to access stdout simultaneously in an interleaved fashion.
The function fwrite has an extra buffering layer on top of write. For example, the fileno function allows to get the file descriptor (such as STDOUT_FILENO) from a higher level FILE stream (such as stdout). I can try to experiment with writing via stdc.stdio.fwrite without any buffering, but a lot of performance will be lost. And this kinda defeats the purpose. I have added some notes to the project's README to avoid any confusion.

Sad, I wanted to use it to implement my TUI library for more fps when drawing entire screen. But since this is the case I cannot use it since my general lib I'm using relies on std.stdio
You can close issue if you don't intend to make them compat

This is now expected to be fixed in the v0.2.0 update.

Issue resolved, closing


ubuntu 18.04 make error

/usr/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h: In instantiation of ‘Eigen::SparseMatrix<_Scalar, _Flags, _StorageIndex>::Scalar& Eigen::SparseMatrix<_Scalar, _Flags, _StorageIndex>::insertBackUncompressed(Eigen::Index, Eigen::Index) [with _Scalar = cvx::internal::Parameter; int _Options = 1; _StorageIndex = int; Eigen::SparseMatrix<_Scalar, _Flags, _StorageIndex>::Scalar = cvx::internal::Parameter; Eigen::Index = long int]’:
/usr/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:941:57:   required from ‘void Eigen::internal::set_from_triplets(const InputIterator&, const InputIterator&, SparseMatrixType&, DupFunctor) [with InputIterator = __gnu_cxx::__normal_iterator<Eigen::Tripletcvx::internal::Parameter, std::vector<Eigen::Tripletcvx::internal::Parameter > >; SparseMatrixType = Eigen::SparseMatrixcvx::internal::Parameter; DupFunctor = Eigen::internal::scalar_sum_op<cvx::internal::Parameter, cvx::internal::Parameter>]’
/usr/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:995:92:   required from ‘void Eigen::SparseMatrix<_Scalar, _Flags, _StorageIndex>::setFromTriplets(const InputIterators&, const InputIterators&) [with InputIterators = __gnu_cxx::__normal_iterator<Eigen::Tripletcvx::internal::Parameter, std::vector<Eigen::Tripletcvx::internal::Parameter > >; _Scalar = cvx::internal::Parameter; int _Options = 0; _StorageIndex = int]’
/home/gelinhe/test_ep/Epigraph/src/wrappers/socpWrapperBase.cpp:145:66:   required from here
/usr/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h:896:31: error: no match for ‘operator=’ (operand types are ‘Eigen::internal::CompressedStorage<cvx::internal::Parameter, int>::Scalar {aka cvx::internal::Parameter}’ and ‘int’)
return (m_data.value(p) = 0);
~~~~~~~^~
In file included from /home/gelinhe/test_ep/Epigraph/include/expressions.hpp:8:0,
from /home/gelinhe/test_ep/Epigraph/include/constraint.hpp:8,
from /home/gelinhe/test_ep/Epigraph/include/problem.hpp:8,
from /home/gelinhe/test_ep/Epigraph/include/wrappers/wrapperBase.hpp:3,
from /home/gelinhe/test_ep/Epigraph/include/wrappers/socpWrapperBase.hpp:3,
from /home/gelinhe/test_ep/Epigraph/src/wrappers/socpWrapperBase.cpp:1:
/home/gelinhe/test_ep/Epigraph/include/parameter.hpp:76:15: note: candidate: cvx::internal::Parameter& cvx::internal::Parameter::operator=(const cvx::internal::Parameter&)
class Parameter
^
/home/gelinhe/test_ep/Epigraph/include/parameter.hpp:76:15: note:   no known conversion for argument 1 from ‘int’ to const cvx::internal::Parameter&’
/home/gelinhe/test_ep/Epigraph/include/parameter.hpp:76:15: note: candidate: cvx::internal::Parameter& cvx::internal::Parameter::operator=(cvx::internal::Parameter&&)
/home/gelinhe/test_ep/Epigraph/include/parameter.hpp:76:15: note:   no known conversion for argument 1 from ‘int’ to cvx::internal::Parameter&&’
Epigraph/CMakeFiles/epigraph.dir/build.make:206: recipe for target 'Epigraph/CMakeFiles/epigraph.dir/src/wrappers/socpWrapperBase.cpp.o' failed
make[2]: *** [Epigraph/CMakeFiles/epigraph.dir/src/wrappers/socpWrapperBase.cpp.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'Epigraph/CMakeFiles/epigraph.dir/all' failed
make[1]: *** [Epigraph/CMakeFiles/epigraph.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

What version of Eigen are you using? You will need 3.3.7 or higher. Unfortunately Ubuntu 18 ships with 3.3.4. I could fix this issue by either making some constructors implicit (I'd prefer not to) or by automatically downloading the appropriate Eigen version if only an old version could be found. I'll probably have to go with the first version since there are a lot of people using Ubuntu 18.04.
Let me know if using the latest Eigen fixes the issue for you.

Your project is really wonderful. I am ready to modify the project according to your tips. If the problem can be solved, I will inform you as soon as possible

What version of Eigen are you using? You will need 3.3.7 or higher. Unfortunately Ubuntu 18 ships with 3.3.4. I could fix this issue by either making some constructors implicit (I'd prefer not to) or by automatically downloading the appropriate Eigen version if only an old version could be found. I'll probably have to go with the first version since there are a lot of people using Ubuntu 18.04.
Let me know if using the latest Eigen fixes the issue for you.

Your project is really wonderful. I am ready to modify the project according to your tips. If the problem can be solved, I will inform you as soon as possible

What version of Eigen are you using? You will need 3.3.7 or higher. Unfortunately Ubuntu 18 ships with 3.3.4. I could fix this issue by either making some constructors implicit (I'd prefer not to) or by automatically downloading the appropriate Eigen version if only an old version could be found. I'll probably have to go with the latter option since there are a lot of people using Ubuntu 18.04.
Let me know if using the latest Eigen fixes the issue for you.

According to your tips, I have successfully solved the compilation problem in two ways:
（1）explicit Parameter(int const_ Value)  remove explicit.
(2) Put eigen3.3.7 directly on the source tree, and add include to cmakelist: include_directories(${CMAKE_ CURRENT_ SOURCE_ DIR}/eigen-3.3)
Remove
find_ package(Eigen3 REQUIRED NO_ MODULE)
target_ link_ libraries(epigraph Eigen3::Eigen)
Also successfully compiled.
The default eigen version of Ubuntu 18.04 is retained because many software depends on it

What version of Eigen are you using? You will need 3.3.7 or higher. Unfortunately Ubuntu 18 ships with 3.3.4. I could fix this issue by either making some constructors implicit (I'd prefer not to) or by automatically downloading the appropriate Eigen version if only an old version could be found. I'll probably have to go with the latter option since there are a lot of people using Ubuntu 18.04.
Let me know if using the latest Eigen fixes the issue for you.

According to your tips, I have successfully solved the compilation problem in two ways:
（1）explicit Parameter(int const_ Value) it is possible to remove explicit.
(2) Put eigen3.3.7 directly on the source tree, and add include to cmakelist_ directories(${CMAKE_ CURRENT_ SOURCE_ DIR}/eigen-3.3)
Remove
find_ package(Eigen3 REQUIRED NO_ MODULE)
target_ link_ libraries(epigraph Eigen3::Eigen)
Also successfully compiled.
The default eigen version of Ubuntu 18.04 is retained because many software depends on it

Thanks for the explanation of what worked for you. I found a different way to fix the issue. It should now work with at least Eigen version 3.3.0 and above (Ubuntu 16.04). Let me know if it works without any changes now.


[SPARK-42070][SQL] Change the default value of argument of Mask udf from -1 to NULL

What changes were proposed in this pull request?

In the udf 'mask', using -1 as ignore parameter in the position of String type  argument is not a standard way, need to change the value of ignore argument from -1 to NULL.
This PR changes the value of ignore argument in mask udf from -1 to NULL.
Why are the changes needed?

To standardize the imput value and type
Does this PR introduce any user-facing change?

Yes, value of ignore params changed from -1 to NULL
How was this patch tested?

Added Tests

@dtenedor , @srielau , Can you please review this PR

@dtenedor , @srielau , Can you please review this PR

Thanks!

This would be a breaking change though, right? not sure that is feasible

@srowen technically this true. However, the previous PR to implement the mask function was merged relatively recently and no Spark release has occurred since then, IIUC. IMO, it seems OK to make this change in the interest of conforming to ANSI SQL. 👍

OK, this was in https://issues.apache.org/jira/browse/SPARK-40686 - worth mentioning the connection in the JIRA maybe.
CC @gengliangwang

@srowen , I updated  both SPARK-42070 and SPARK-40687 with the proposed change and reason

@vinodkc thanks for the change. Merging to master.


Miscellaneous clarifications and cleaning up

Contributor checklist

[x] Bug fixes include regression tests
[x] Features include unit/acceptance tests

This is a minor PR aimed at slightly improving the readability of the code. In addition to the actual changes, I would like to propose the following (happy to implement myself, but wanted to discuss before jumping to writing code, esp since it might lead to deprecating previous names):

Igniter.Code.Common.env_at_cursor/1 doesn't yet have a cursor (it gets inserted as the first step). Perhaps a more descriptive name would be (get_)current_environment/1?
The name for Igniter.Code.Common.add_code/3 doesn't immediately indicate where the code is added. How's insert_code/3 to explicitly indicate that it gets inserted exactly where the zipper is focused?
The name Igniter.Code.Common.highest_adjacent_block/1 was a bit confusing to me (perhaps because the code nests left<->right while AST nests up<->down, and it's unclear which mode of thinking was necessary). How's something like outer_containing_block/1? (Separately, wouldn't it always return defmodule's block? Or maybe I'm misunderstanding the functionality.)
Igniter.Code.Common.maybe_move_to_singleton_block/1 was confusing to me because "singleton" also is a pattern from (trigger warning) OOP, so my first hunch was thinking about a "unique" block or something. After reading the code it seems that it simply means "block with one child". With this in mind, how's maybe_move_to_single_child_block/1 or maybe_move_to_single_expression_block/1? I also still don't fully understand its purpose.

Separately, I often get confused by move since it's four-directional and depends on the orientation as described above. What do you think about using orientation-agnostic terms such as "ascend" (in AST-coordinates, it means go up; in code, it means to the left, indentation-wise), "descend", "next" as opposed to just "next" or "move", where possible? So, for example, move_to_singleton_block would become descend_to_singleton_block. UPD: reading it again and wondering if descend is still ambiguous and could be interpreted as moving up the AST 😐.
And finally, another thing that's a bit confusing is minor terminology like patterns vs predicates, nodes, etc. One example is node_matches_pattern?/2 which actually accepts a zipper (which itself has a node, among other things). Another example is: in Igniter.Code.Common.move_to/2, it's a bit unclear what "predicate" is supposed to be.
Just wanted to flag these ideas since Igniter is still in its early stages and its API is still easy to modify/rename. Some of these suggestions probably only warrant documentation modifications, though.

Sorry it took me so long to get back to you, there is a lot of great stuff here! Lets get this PR merged and then move these into separate issues to discuss each one :)

🚀 Thank you for your contribution! 🚀

https://github.com/ash-project/igniter/issues/11
I think we can leave add_code as it is for now. I don't think that insert_code is enough of an improvement to warrant changing it. (and everything in igniter/zipper does things relative to your current location)
https://github.com/ash-project/igniter/issues/12
I like maybe_move_to_single_child_block/1, sure. I'll make that change now. The reasoning behind this is that you can sometimes have a "value" that is wrapped in a block, i.e {:__block__, [], [1]}. If you want to check if "the node I'm looking at is an integer literal", you have to unwrap any single-child blocks to check that.

Finally

And finally, another thing that's a bit confusing is minor terminology like patterns vs predicates, nodes, etc. One example is node_matches_pattern?/2 which actually accepts a zipper (which itself has a node, among other things). Another example is: in Igniter.Code.Common.move_to/2, it's a bit unclear what "predicate" is supposed to be.

I think we'll have to solve most of these with documentation. That function does take a zipper, but it checks if the current node at that zipper matches a pattern. So node_matches_pattern?(zipper, predicate) makes sense IMO.
As for move_to, whenever we use move_* in a predicate, we're talking about moving "next-wards" in the tree, which is a depth-first search unless otherwise qualified. i.e move_to_function_call_in_current_scope clarifies that it won't break certain conditions. Code.move_to is going to find the "next" occurrence in the code where the predicate matches. I think for those it makes sense to keep those move_* prefixed concepts.


Created basic support for upload, download, checking availability of servers & storage of upload info.

Stable to my knowledge - but has room for a bunch of improvements and extra features.

Everything else looks good!


Explore passing back selectedOriginalKeys to sync formulas

If the doc user has picked certain properties using the new column picker, how does the pack sync formula know which columns were picked?
The updated schema will be passed in with the sync execution context as in context.sync.schema. To get the list correctly, the pack maker basically needs to do const originalKeys = Object.entries(context.sync.schema.items.properties).map([key, property] => property.fromKey || key); to get the list of picked properties.
Passing selectedOriginalKeys in here would make it easier for pack makers.
However, the challenge is that we may be supporting picking properties in a nested structure. (e.g. picking properties in issues->project, where issues is the top level object). A simple array won't be enough to represent the options.
A few alternatives:

passing as a dict from schema identity to the list of keys picked. this may not work if the top level object has two fields of the same object type. (e.g. issue.creator and issue.assignee can be both of schema User)
passing a nested structure like {fieldA: {}, fieldB: {}, fieldC: {subField1: {}, subField2: {}}, fieldD: {}}

I figured either options above are pretty complicated to parse and won't give the pack maker much convenience than they parsing the context.sync.schema object directly. So in this PR I am only adding a simple string[] field that can be used by most simple pack implementations which don't care about nested fields. I'd love to hear what you think about this: do we need this convenient field at all or should we make it more complicated?
@jonathan-codaio @alan-codaio @dweitzman-codaio

With discussions of https://staging.coda.io/d/Packs-Platform-IA-o-packs_d36WK4zgrYx/Nested-properties-in-the-column-picker_suAJG#_lub1p, I don't think it's necessary to support a full nested property selection at the point but we should still make the API flexible. Let me change to a helper approach instead.

we are close to ship column picker. I am coming back to merge this now and update the jira pack to leverage the user picked columns to optimize its data fetching. cc @patrick-codaio as we just chatted.


Reset toggle binding

This is fork from #165
Ok so we have a Sprint feature in the game. You are moving and press the Sprint action and start to sprint. With our old mechanics the user could choose to toggle this or hold the button to sprint.
You have a Toggle button binding which is nice, problem is with our old implementation if the player bumped into something or raised his firearm we aborted the sprint and he needed to press the button again to start sprint. This does not work with the Toggle button binding. We need some way to force a reset to the toggle state so that it returns false until the player presses button again.

@zite This is also a pretty important feature I think. It could just be a method on bool eaction called ResetState or something.

I'm not sure if this is really following the new SteamVR Input pattern, we may be expecting you to handle this within your own implementation. The OpenVR repo may serve you better here: https://github.com/ValveSoftware/openvr/issues


Using async iterator-like SQLX fetch with Rayon

Crossposting with stackoverflow:
Rust SQLX lib provides an iterator-like interface fetch(...) usually used with while let Some(row) = rows.try_next().await? {...} construct.  In my case, each row may take some time to process, so I would like to use Rayon's par_iter(), but that requires a real iterator. Using fetch_all is not an option because all rows may simply not fit into memory.
How can I use Rayon's par_iter to process millions of rows produced by the sqlx's fetch stream?

You may have an easier time if you just use an async threadpool, like tokio provides.
What sort of results come out of your parallel process? The shape of that will affect how you might shoehorn this into rayon.

Thx @cuviper , each operation is essentially a bool -- in a way, I am trying to parallel-ize validation of a large dataset, searching for any row that do not pass validation. So ordering is not important, but would be good to abort early if any validation fails.

One way you could try is with tokio channels, using async send and sync blocking_recv something like:
std::iter::from_fn(move || rx.blocking_recv()).par_bridge() //...

If you are using sqlx and therefore already run within an async runtime providing a thread pool, I also suspect that just chunking the rows using something like StreamExt::chunks and spawning a task for each chunk would be preferable to trying to force this into a parallel iterator. Alternatively, spawning a task per hardware thread and using an async mpmc channel like flume or kanal might work as well.


Added NCP Watchguard Mobile VPN 14.11.48297

Signed-off-by: Daniel Sutton<EMAIL_ADDRESS>
[x ] Have you signed the Contributor License Agreement?
[x ] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x ] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

The installation causes a reboot, which is not supported.


add system call to change the priority of a task

This interface requires PR hermitcore/libhermit-rs#376

Is this still relevant, since https://github.com/hermitcore/rusty-hermit/pull/311 is merged?

Already merged with another PR


Blender Addon Broken At 4.3.0

It gives some pyhton errors and doesn't add the textures.

What errors exactly ?

What errors exactly ?

Just import it and see :v

I can't export the world because I don't have mojang minecraft launcher, so MiEx can't find the base_resource_pack

In Blender 4.3, they deprecated and removed Material.shadow_method. Removing the line fixes the plugin.
Source

In Blender 4.3, they deprecated and removed Material.shadow_method. Removing the line fixes the plugin. Source

So why not open a pr or update the addon! :D

On it rn

On it rn

❤

The fix has been merged into the repository and the updated addon can be found here: https://github.com/BramStoutProductions/MiEx/tree/main/extras/Blender/BlenderAddon


Necessary to pin @material-ui/icons to 4.9.1?

Found that if I used 4.11.2, the newest, it throws an error

This was something I was hoping wouldn't be the case where plugins could freely depend on any @material-ui/icons version it wants and have it work
If it has to synchronize with @material-ui/icons from core (?) e.g. our current yarn why @material-ui/icons in jbrowse-components is 4.9.1 then that is not the best scenario

cc @garrettjstevens

cc @garrettjstevens

This commit did fix this issue https://github.com/GMOD/jbrowse-plugin-msaview/commit/8b962f0ad404b1cfce7c94a5c975383a2f9f0bad by pinning to 4.9.1

This commit did fix this issue https://github.com/GMOD/jbrowse-plugin-msaview/commit/8b962f0ad404b1cfce7c94a5c975383a2f9f0bad by pinning to 4.9.1


chore(SCT-1231): deleting CIN fields

Link to JIRA ticket
https://hackney.atlassian.net/browse/SCT-1231
Describe this PR
What is the problem we're trying to solve
Remove CIN fields (not used in new design iteration)
What changes have we introduced
Delete SQL statements
Checklist

[ ] Added end-to-end (i.e. integration) tests where necessary e.g to test complete functionality of a newly added feature
[ ] Added tests to cover all new production code
[x] Added comments to the README or updated relevant documentation (add link to documentation), where necessary.
[ ] Checked all code for possible refactoring
[ ] Code pipeline builds correctly

Closing as the DB structure has changed and we don't need this anymore.


client-application-ids is not required

This document says that the element "client-application-ids" is not required, but it is, in fact, required. Please update the documentation to reflect this.

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

ID: dd538dc3-8eae-ab43-e0fb-1726b5837020
Version Independent ID: ed16237f-66c9-9b0a-2f4c-5fe52c8b360d
Content: Azure API Management policy reference - validate-azure-ad-token
Content Source: articles/api-management/validate-azure-ad-token-policy.md
Service: api-management
GitHub Login: @dlepow
Microsoft Alias: danlep

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


ghc=8.0.1 on debian stable : unrecognized relocation (0x2a) in section

@hvr Using your ghc-8.0.1 package on debian stable, I'm getting:
/usr/bin/ld: dist/dist-sandbox-3b597c82/build/P/Applicative.dyn_o: unrecognized
relocation (0x2a) in section `.text'

which looks exactly like https://ghc.haskell.org/trac/ghc/ticket/12147 . Pretty sure that fix when into 8.0.2.

@erikd did you use the one from http://downloads.haskell.org/debian/ ?

From memory, I ended up compiling one myself from source. using your ghc-8.0.1 package.

@erikd what's the easiest/quickest way to reproduce this?

If I was to reproduce it, I would set up a Debian Stable chroot, install GHC and cabal install from your ppa and then build HSOpenSSL in a sandbox (which is what I was trying to do).

@erikd just to be clear, did you ever use debian packages from http://downloads.haskell.org/debian/ ? or did you use packages compiled for Ubuntu (which are quite likely to have such subtle ABI issues when used on Debian)?

If I installed from a debian package I would do so from the official Debian repos rather than from haskell.org.
Anyway, I think we can close this.

fair enough :-)


place=farm doesn't show on search

Hi there.
The preset place=farm doesn't show when searching, although the correct icon and translation appears when manually inserted. Is this on purpose or an error?
Regards.

Apparently, it was made non-searchable because too many users mistook it for other farm features, see https://github.com/openstreetmap/iD/commit/eb62e22a375aa0fa689befa9b1c3560dcbf1e8bf. I can see that this tag has indeed quite a bit of overlap with other tags (landuse=farmyard, building=farm, place=isolated_dwelling, etc.), so there really is a potential for confusion. :thinking:
I would say that the place=farm preset would first need a better name, perhaps something like "Farm Settlement" or "Individually Named Farm"?!

That's a good point, but there are plenty of other examples like that. I think this is mainly a question for translators.
For example: for building=farm, the translation should be "farm building"; for landuse=farmyard, it should be "farm yard".
The preset should appear, nevertheless.
Another example (not quite the same, but it fits to show there are alternatives): "bank" and" bench" have the same name in Portuguese (banco), and the translation has also the same name, but the different icons makes all the difference and allows mappers to distinguish presets easily.

Good point regarding the need for distinct icons in case where presets have similar or equal names. It could help here as well to distinguish the farm "place" from a farmyard or farm building. But in this instance it could also be tricky to find a suitable distinct icon for the place. Perhaps by combining the generic "map marker" icon which is used for a generic place with the farm icon?! Or alternatively base it of the icon for place=hamlet/place=locality, which use a triangle shape (but I have to admit that I'm not sure what exactly the triangle is supposed to represent :see_no_evil: ).


Winning Icons In 0.7.3

What feature do you want to get added on the base engine?
How To Add Winning Icons In Psych Engine 0.7.3 Source Code
To test your sight, and reliability, please select the option of what should NOT be requested.
Stage Editor, 6K+ support, and winning icons.

This is actually a question

please change the issue

Why?


Error: acme/autocert: certificate is not valid yet

Are there any additional details you would like to share?

Command: anchor lcl
Executable: C:\Program Files\Anchor CLI\anchor.exe
Version: 0.1.2 (windows/amd64) Commit: 021bf29c9ba180eb6ad62ae8438867c8d0dcd26b BuildDate: 2024-09-17T12:45:38Z
Arguments: []
Flags: []
Timestamp: 2024-09-22T11:58:32.6657939Z
Stdout:
    - Loaded anchor.toml configuration. You can use `--skip-config` to ignore this file.

# Signin to Anchor.dev `anchor auth signin`
    | Please sign up or sign in with your Anchor account.
    |
    | Once authenticated, we can provision your personalized Anchor resources to
    | power HTTPS in your local development environment.
    - Copied your user code XFDX-KNDW to your clipboard.
    - Opened https://anchor.dev/users/sign_in/cli?signup_src=lclhost in your browser.
    - Signed in as<EMAIL_ADDRESS>| Let's set up fast and totally free lcl.host HTTPS!

# Setup lcl.host HTTPS Local Development Environment `anchor lcl`
    | We'll set you up to use HTTPS locally in your browsers and other programs.

# Audit lcl.host HTTPS Local Development Environment `anchor lcl audit`
    | We'll compare your local development CA certificates from Anchor and your local trust stores.
    - Compared local and expected CA certificates: need to install 2 missing certificates.

# Initial System Configuration for lcl.host Local HTTPS Development `anchor lcl bootstrap`
    | We'll configure your browsers and OS to trust your local development certificates.
    - Checked diagnostic service on Anchor.dev: need to provision service.
    - Entered hi-sardarwkm.lcl.host domain for lcl.host diagnostic certificate.
    - Resolved hi-sardarwkm.lcl.host domain: success!
    | Now we'll provision Anchor.dev resources and HTTPS certificates for you.
    - Creating hi-sardarwkm [hi-sardarwkm.lcl.host, hi-sardarwkm.localhost] diagnostic resources on Anchor.dev… ⠋

@Sardarwkm Sorry to hear you had problems with this. This type of error reflects a larger skew between the clock time on the local machine and our servers. If you check your machine and ensure the system clock is up to date before trying again, you should have better luck. Definitely let us know if that doesn't appear to be the case though.


Add load_cfg_file() function to load libretro core options from a .cfg file

This is a simple patch to allow loading core options from ".cfg" files.
For example, if you have a "C:\Unreal\MyProject\Plugins\UnrealLibretro\MyCores\Win64\flycast_libretro.dll" core, it will read core options from "C:\Unreal\MyProject\Plugins\UnrealLibretro\MyCores\Win64\flycast_libretro.cfg". This allows one .cfg file per core, with a different .cfg file per platform.
The .cfg file is just a series of "key = pair" lines. I tested several flycast options and all were detected by the core, such as:
# Modify rendering resolution.
reicast_internal_resolution = 1024x768

# Screen Orientation; horizontal|vertical
reicast_screen_rotation = vertical

But I've found a few issues as well:
Default configuration (UnrealLibreto vs RetroArch):

reicast_screen_rotation = vertical

reicast_widescreen_cheats = enabled

reicast_internal_resolution = 320x240

reicast_internal_resolution = 1280x960

Contents of a "flycast_libretro.cfg" file with all options currently used (with SET/GET) by the flycast core
# See also https://docs.libretro.com/library/flycast/

# Region; Default|Japan|USA|Europe
reicast_region = Default

# Language; Default|Japanese|English|German|French|Spanish|Italian
# Changes the language used by the BIOS and by any games that contain multiple languages.
reicast_language = Default

# HLE BIOS; disabled|enabled
# Force use of high-level emulation BIOS.
reicast_hle_bios = disabled

# Boot to BIOS (Restart Required); disabled|enabled
# Boot directly into the Dreamcast BIOS menu.
reicast_boot_to_bios = disabled

# Enable DSP; enabled|disabled
# Enable emulation of the Dreamcast's audio DSP (digital signal processor). Improves the accuracy of generated sound, but increases performance requirements.
reicast_enable_dsp = enabled

# Force Windows CE Mode; disabled|enabled
# Enable full MMU (Memory Management Unit) emulation and other settings for Windows CE games.
reicast_force_wince = disabled

# Allow NAOMI Service Buttons; disabled|enabled
reicast_allow_service_buttons = disabled

# Set NAOMI Games to Free Play; enabled|disabled
reicast_force_freeplay = enabled

# Internal Resolution; 640x480|320x240|800x600|960x720|1024x768|1280x960|1440x1080|1600x1200|1920x1440|2560x1920|2880x2160|3200x2400|3840x2880|4480x3360|5120x3840|5760x4320|6400x4800|7040x5280|7680x5760|8320x6240|8960x6720|9600x7200|10240x7680|10880x8160|11520x8640|12160x9120|12800x9600
# Modify rendering resolution.
reicast_internal_resolution = 1280x960

# Cable Type; TV (Composite)|VGA|TV (RGB)
# The output signal type. 'TV (Composite)' is the most widely supported.
reicast_cable_type = TV (Composite)

# Broadcast Standard; NTSC|PAL|PAL_N|PAL_M|Default
reicast_broadcast = NTSC

# Screen Orientation; horizontal|vertical
reicast_screen_rotation = horizontal

# Alpha Sorting; per-triangle (normal)|per-strip (fast, least accurate)|per-pixel (accurate)
reicast_alpha_sorting = per-triangle (normal)

# Accumulation Pixel Buffer Size; 512MB|1GB|2GB|4GB
reicast_oit_abuffer_size = 512MB

# Maximum Transparent Layers; 32|8|16|64|128
reicast_oit_layers = 32

# Enable RTT (Render To Texture) Buffer; disabled|enabled
reicast_enable_rttb = disabled

# Mipmapping; enabled|disabled
reicast_mipmapping = enabled

# Fog Effects; enabled|disabled
reicast_fog = enabled

# Volume Modifier; enabled|disabled
# A GPU feature that is typically used by games to draw shadows of objects. You should typically leave this on - performance impact should be minimal to negligible.
reicast_volume_modifier_enable = enabled

# Anisotropic Filtering; 4|off|2|8|16
# Enhance the quality of textures on surfaces that are at oblique viewing angles with respect to the camera.
reicast_anisotropic_filtering = 4

# Texture Filtering; 0|1|2
reicast_texture_filtering = 0

# Delay Frame Swapping; disabled|enabled
# Useful to avoid flashing screens or glitchy videos. Not recommended on slow platforms. Note: This setting only applies when 'Threaded Rendering' is enabled.
reicast_delay_frame_swapping = disabled

# Detect Frame Rate Changes; disabled|enabled
reicast_detect_vsync_swap_interval = disabled

# PowerVR2 Post-processing Filter; disabled|enabled
# Post-process the rendered image to simulate effects specific to the PowerVR2 GPU and analog video signals.
reicast_pvr2_filtering = disabled

# Texture Upscaling (xBRZ); 1|2|4|6
reicast_texupscale = 1

# Texture Upscaling Max. Filtered Size; 256|512|1024
reicast_texupscale_max_filtered_texture_size = 256

# Native Depth Interpolation; disabled|enabled
reicast_native_depth_interpolation = disabled

# Threaded Rendering; enabled|disabled
# Runs the GPU and CPU on different threads. Highly recommended.
reicast_threaded_rendering = enabled

# Auto Skip Frame; disabled|some|more
# Automatically skip frames when the emulator is running slow. Note: This setting only applies when 'Threaded Rendering' is enabled.
reicast_auto_skip_frame = disabled

# Frame Skipping; disabled|1|2|3|4|5|6
# Sets the number of frames to skip between each displayed frame.
reicast_frame_skipping = disabled

# Widescreen Cheats (Restart Required); disabled|enabled
# Activates cheats that allow certain games to display in widescreen format.
reicast_widescreen_cheats = disabled

# Widescreen Hack; disabled|enabled
# Draw geometry outside of the normal 4:3 aspect ratio. May produce graphical glitches in the revealed areas.
reicast_widescreen_hack = disabled

# GD-ROM Fast Loading (inaccurate); disabled|enabled
# Speeds up GD-ROM loading.
reicast_gdrom_fast_loading = disabled

# Load Custom Textures; disabled|enabled
reicast_custom_textures = disabled

# Dump Textures; disabled|enabled
reicast_dump_textures = disabled

# Analog Stick Deadzone; 15%|0%|5%|10%|20%|25%|30%
reicast_analog_stick_deadzone = 15%

# Trigger Deadzone; 0%|5%|10%|15%|20%|25%|30%
reicast_trigger_deadzone = 0%

# Digital Triggers; disabled|enabled
reicast_digital_triggers = disabled

# Purupuru Pack/Vibration Pack; enabled|disabled
reicast_enable_purupuru = enabled

# Gun Crosshair 1 Display; disabled|White|Red|Green|Blue
reicast_lightgun1_crosshair = disabled

# Gun Crosshair 2 Display; disabled|White|Red|Green|Blue
reicast_lightgun2_crosshair = disabled

# Gun Crosshair 3 Display; disabled|White|Red|Green|Blue
reicast_lightgun3_crosshair = disabled

# Gun Crosshair 4 Display; disabled|White|Red|Green|Blue
reicast_lightgun4_crosshair = disabled

# Per-Game Visual Memory Units/Systems (VMU); disabled|VMU A1|All VMUs
# When disabled, all games share 4 VMU save files (A1, B1, C1, D1) located in RetroArch's system directory. The 'VMU A1' setting creates a unique VMU 'A1' file in RetroArch's save directory for each game that is launched. The 'All VMUs' setting creates 4 unique VMU files (A1, B1, C1, D1) for each game that is launched.
reicast_per_content_vmus = disabled

# VMU Screen 1 Display; disabled|enabled
reicast_vmu1_screen_display = disabled

# VMU Screen 1 Position; Upper Left|Upper Right|Lower Left|Lower Right
reicast_vmu1_screen_position = Upper Left

# VMU Screen 1 Size; 1x|2x|3x|4x|5x
reicast_vmu1_screen_size_mult = 1x

# VMU Screen 1 Pixel On Color; DEFAULT_ON 00|DEFAULT_OFF 01|BLACK 02|BLUE 03|LIGHT_BLUE 04|GREEN 05|CYAN 06|CYAN_BLUE 07|LIGHT_GREEN 08|CYAN_GREEN 09|LIGHT_CYAN 10|RED 11|PURPLE 12|LIGHT_PURPLE 13|YELLOW 14|GRAY 15|LIGHT_PURPLE_2 16|LIGHT_GREEN_2 17|LIGHT_GREEN_3 18|LIGHT_CYAN_2 19|LIGHT_RED_2 20|MAGENTA 21|LIGHT_PURPLE_3 22|LIGHT_ORANGE 23|ORANGE 24|LIGHT_PURPLE_4 25|LIGHT_YELLOW 26|LIGHT_YELLOW_2 27|WHITE 28
reicast_vmu1_pixel_on_color = DEFAULT_ON 00

# VMU Screen 1 Pixel Off Color; DEFAULT_OFF 01|DEFAULT_ON 00|BLACK 02|BLUE 03|LIGHT_BLUE 04|GREEN 05|CYAN 06|CYAN_BLUE 07|LIGHT_GREEN 08|CYAN_GREEN 09|LIGHT_CYAN 10|RED 11|PURPLE 12|LIGHT_PURPLE 13|YELLOW 14|GRAY 15|LIGHT_PURPLE_2 16|LIGHT_GREEN_2 17|LIGHT_GREEN_3 18|LIGHT_CYAN_2 19|LIGHT_RED_2 20|MAGENTA 21|LIGHT_PURPLE_3 22|LIGHT_ORANGE 23|ORANGE 24|LIGHT_PURPLE_4 25|LIGHT_YELLOW 26|LIGHT_YELLOW_2 27|WHITE 28
reicast_vmu1_pixel_off_color = DEFAULT_OFF 01

# VMU Screen 1 Opacity; 100%|10%|20%|30%|40%|50%|60%|70%|80%|90%
reicast_vmu1_screen_opacity = 100%

# VMU Screen 2 Display; disabled|enabled
reicast_vmu2_screen_display = disabled

# VMU Screen 2 Position; Upper Left|Upper Right|Lower Left|Lower Right
reicast_vmu2_screen_position = Upper Left

# VMU Screen 2 Size; 1x|2x|3x|4x|5x
reicast_vmu2_screen_size_mult = 1x

# VMU Screen 2 Pixel On Color; DEFAULT_ON 00|DEFAULT_OFF 01|BLACK 02|BLUE 03|LIGHT_BLUE 04|GREEN 05|CYAN 06|CYAN_BLUE 07|LIGHT_GREEN 08|CYAN_GREEN 09|LIGHT_CYAN 10|RED 11|PURPLE 12|LIGHT_PURPLE 13|YELLOW 14|GRAY 15|LIGHT_PURPLE_2 16|LIGHT_GREEN_2 17|LIGHT_GREEN_3 18|LIGHT_CYAN_2 19|LIGHT_RED_2 20|MAGENTA 21|LIGHT_PURPLE_3 22|LIGHT_ORANGE 23|ORANGE 24|LIGHT_PURPLE_4 25|LIGHT_YELLOW 26|LIGHT_YELLOW_2 27|WHITE 28
reicast_vmu2_pixel_on_color = DEFAULT_ON 00

# VMU Screen 2 Pixel Off Color; DEFAULT_OFF 01|DEFAULT_ON 00|BLACK 02|BLUE 03|LIGHT_BLUE 04|GREEN 05|CYAN 06|CYAN_BLUE 07|LIGHT_GREEN 08|CYAN_GREEN 09|LIGHT_CYAN 10|RED 11|PURPLE 12|LIGHT_PURPLE 13|YELLOW 14|GRAY 15|LIGHT_PURPLE_2 16|LIGHT_GREEN_2 17|LIGHT_GREEN_3 18|LIGHT_CYAN_2 19|LIGHT_RED_2 20|MAGENTA 21|LIGHT_PURPLE_3 22|LIGHT_ORANGE 23|ORANGE 24|LIGHT_PURPLE_4 25|LIGHT_YELLOW 26|LIGHT_YELLOW_2 27|WHITE 28
reicast_vmu2_pixel_off_color = DEFAULT_OFF 01

# VMU Screen 2 Opacity; 100%|10%|20%|30%|40%|50%|60%|70%|80%|90%
reicast_vmu2_screen_opacity = 100%

# VMU Screen 3 Display; disabled|enabled
reicast_vmu3_screen_display = disabled

# VMU Screen 3 Position; Upper Left|Upper Right|Lower Left|Lower Right
reicast_vmu3_screen_position = Upper Left

# VMU Screen 3 Size; 1x|2x|3x|4x|5x
reicast_vmu3_screen_size_mult = 1x

# VMU Screen 3 Pixel On Color; DEFAULT_ON 00|DEFAULT_OFF 01|BLACK 02|BLUE 03|LIGHT_BLUE 04|GREEN 05|CYAN 06|CYAN_BLUE 07|LIGHT_GREEN 08|CYAN_GREEN 09|LIGHT_CYAN 10|RED 11|PURPLE 12|LIGHT_PURPLE 13|YELLOW 14|GRAY 15|LIGHT_PURPLE_2 16|LIGHT_GREEN_2 17|LIGHT_GREEN_3 18|LIGHT_CYAN_2 19|LIGHT_RED_2 20|MAGENTA 21|LIGHT_PURPLE_3 22|LIGHT_ORANGE 23|ORANGE 24|LIGHT_PURPLE_4 25|LIGHT_YELLOW 26|LIGHT_YELLOW_2 27|WHITE 28
reicast_vmu3_pixel_on_color = DEFAULT_ON 00

# VMU Screen 3 Pixel Off Color; DEFAULT_OFF 01|DEFAULT_ON 00|BLACK 02|BLUE 03|LIGHT_BLUE 04|GREEN 05|CYAN 06|CYAN_BLUE 07|LIGHT_GREEN 08|CYAN_GREEN 09|LIGHT_CYAN 10|RED 11|PURPLE 12|LIGHT_PURPLE 13|YELLOW 14|GRAY 15|LIGHT_PURPLE_2 16|LIGHT_GREEN_2 17|LIGHT_GREEN_3 18|LIGHT_CYAN_2 19|LIGHT_RED_2 20|MAGENTA 21|LIGHT_PURPLE_3 22|LIGHT_ORANGE 23|ORANGE 24|LIGHT_PURPLE_4 25|LIGHT_YELLOW 26|LIGHT_YELLOW_2 27|WHITE 28
reicast_vmu3_pixel_off_color = DEFAULT_OFF 01

# VMU Screen 3 Opacity; 100%|10%|20%|30%|40%|50%|60%|70%|80%|90%
reicast_vmu3_screen_opacity = 100%

# VMU Screen 4 Display; disabled|enabled
reicast_vmu4_screen_display = disabled

# VMU Screen 4 Position; Upper Left|Upper Right|Lower Left|Lower Right
reicast_vmu4_screen_position = Upper Left

# VMU Screen 4 Size; 1x|2x|3x|4x|5x
reicast_vmu4_screen_size_mult = 1x

# VMU Screen 4 Pixel On Color; DEFAULT_ON 00|DEFAULT_OFF 01|BLACK 02|BLUE 03|LIGHT_BLUE 04|GREEN 05|CYAN 06|CYAN_BLUE 07|LIGHT_GREEN 08|CYAN_GREEN 09|LIGHT_CYAN 10|RED 11|PURPLE 12|LIGHT_PURPLE 13|YELLOW 14|GRAY 15|LIGHT_PURPLE_2 16|LIGHT_GREEN_2 17|LIGHT_GREEN_3 18|LIGHT_CYAN_2 19|LIGHT_RED_2 20|MAGENTA 21|LIGHT_PURPLE_3 22|LIGHT_ORANGE 23|ORANGE 24|LIGHT_PURPLE_4 25|LIGHT_YELLOW 26|LIGHT_YELLOW_2 27|WHITE 28
reicast_vmu4_pixel_on_color = DEFAULT_ON 00

# VMU Screen 4 Pixel Off Color; DEFAULT_OFF 01|DEFAULT_ON 00|BLACK 02|BLUE 03|LIGHT_BLUE 04|GREEN 05|CYAN 06|CYAN_BLUE 07|LIGHT_GREEN 08|CYAN_GREEN 09|LIGHT_CYAN 10|RED 11|PURPLE 12|LIGHT_PURPLE 13|YELLOW 14|GRAY 15|LIGHT_PURPLE_2 16|LIGHT_GREEN_2 17|LIGHT_GREEN_3 18|LIGHT_CYAN_2 19|LIGHT_RED_2 20|MAGENTA 21|LIGHT_PURPLE_3 22|LIGHT_ORANGE 23|ORANGE 24|LIGHT_PURPLE_4 25|LIGHT_YELLOW 26|LIGHT_YELLOW_2 27|WHITE 28
reicast_vmu4_pixel_off_color = DEFAULT_OFF 01

# VMU Screen 4 Opacity; 100%|10%|20%|30%|40%|50%|60%|70%|80%|90%
reicast_vmu4_screen_opacity = 100%

# pvr.rend =
# rend.PerStripSorting =
# reicast_show_vmu_screen_settings =
# reicast_show_lightgun_settings =


Small change to html, adds pdf, removes instructions folder

@philbiggin I'm tying off the instructions for now, this should include your latest changes and adds a pdf
of the html file just in case.


Hub City Volunteer of the Year awards

Hub City 2013, volunteer of the year Greg Burnham is with FRC4570.
Hub City 2014, volunteer of the year Carol Reid is with FRC1817.

Team numbers added to each.


Support duck arrays in numba gufuncs

There might be some room for improvement in handling numpy-like arrays in numba-generated gufuncs
I was quite happy to see this work well:
In [1]: from numba import vectorize, float64
   ...:
   ...: @vectorize([float64(float64, float64)])
   ...: def f(x, y):
   ...:     return x + y
   ...:

In [2]: import dask.array as da

In [3]: x = da.arange(10, chunks=(5,))

In [4]: f(x, x)  # hooray!
Out[4]: dask.array<f, shape=(10,), dtype=float64, chunksize=(5,)>

Unfortunately this didn't fare as well.  Am I using vectorize incorrectly or is this a feature request?
In [5]: @vectorize
   ...: def f(x, y):
   ...:     return x + y
   ...:

In [6]: f(x, x)  # oh no!
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-6-4438cca8adef> in <module>()
----> 1 f(x, x)  # oh no!

~/Software/anaconda/lib/python3.6/site-packages/numba/npyufunc/dufunc.py in _compile_for_args(self, *args, **kws)
    162                 argtys.append(numpy_support.map_arrayscalar_type(arg))
    163             else:
--> 164                 argty = typeof(arg)
    165                 if isinstance(argty, types.Array):
    166                     argty = argty.dtype

~/Software/anaconda/lib/python3.6/site-packages/numba/typing/typeof.py in typeof(val, purpose)
     29     if ty is None:
     30         msg = "cannot determine Numba type of %r" % (type(val),)
---> 31         raise ValueError(msg)
     32     return ty
     33

ValueError: cannot determine Numba type of <class 'dask.array.core.Array'>

It is a feature request, or rather a side effect of our current vectorize implementation that we need to fix.
In the former case, you are making an actual NumPy ufunc object with kernels compiled at declaration time.  NumPy's dispatcher is used, and it is presumably making the call to __array__ before handing the data off to the Numba-generated ufunc kernel.
In the latter case, we are using a special Numba-internal ufunc dispatcher which detects the incoming types and generates a new kernel based on the types it detects.  Numba currently isn't looking for the array attribute in the typeof() function, but it could.  I don't think this would be too tricky to do.

and it is presumably making the call to array before handing the data off to the Numba-generated ufunc kernel

So, I suspect that it is more likely calling our __array_ufunc__ method, which is performing automatic parallelism across outer dimensions.  This numba gufunc is working directly on the dask array in a scalable manner.

See branch https://github.com/sklam/numba/tree/misc/iss2979 for minimal changes to make the dufunc accept array_ufunc protocol.

So the problem is that, dufunc needs to check for the __array_ufunc__ protocol when it fails to dispatch&compile.
And to clarify, gufunc just works.  This issue is just about the dufunc object.

I've added a small comment to the commit at https://github.com/sklam/numba/commit/34f9d48b10603948b1b345091b4d8175217614bc
@sklam what additional work needs to be one here?  Presumably there are tests and documentation to write, etc..  If someone wanted to take on this work what should they do?

@mrocklin, yes, your comment in https://github.com/sklam/numba/commit/34f9d48b10603948b1b345091b4d8175217614bc is exactly right.  I have only done the minimal to see how to make it work and to see what code needed to be changed.  If someone wanted to take on the work, they would need to:

implement the ufunc protocol properly as per your comment.  they can continue from where I made the changes.
add test (presumably w/o using dask.array; using some made up type with __array_ufunc__).
and docs.


HostDB: cancel timeout on free

adding a line to cancel the hostdb cont timeout, when the hostdb cont is freed.

The two failing tls tests are core dumping which is concerning.

The two TLS ones fail to an assert in NetHandler::startIO.  Some other thread is holding the nethandler mutex.  Seems very unrelated to this change.
Fatal: P_UnixNet.h:757: failed assertion `this->mutex->thread_holding == this_ethread()`

[approve ci autest]

Cherry picked to 8.1.0.


Direction for Windows-developer mode

[sc-16695]
This PR adds install directions on Windows for the developer track

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (eec0bfb) 79.45% compared to head (cbfcfae) 79.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
- Coverage   79.45%   79.40%   -0.05%
==========================================
  Files          42       42
  Lines        2166     2166
==========================================
- Hits         1721     1720       -1
- Misses        445      446       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Properly Pluralize GitHub metadata-ignore

Parse out GitHub data into an object then use this to pluralize the metadata like Commits, Forks, etc.

bad PR


B2c Tenant and Directories Move query

As per the document the under Microsoft .Azure Active Directory it states that B2C Directories can be Moved between Resource groups and Subscriptions and B2C Tennant cannot.
Can you please provide further justification on this please. as per my understanding it is supposed to be the other way round.

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

ID: 23df5354-6833-a5da-0eb3-d860150c8b78
Version Independent ID: 682ec206-0fda-3e0b-5841-543860a87e34
Content: Move operation support by resource type - Azure Resource Manager
Content Source: articles/azure-resource-manager/management/move-support-resources.md
Service: azure-resource-manager
Sub-service: management
GitHub Login: @tfitzmac
Microsoft Alias: tomfitz

@V-Raghu
It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!

@V-Raghu
Since we have not heard back from you, we will now proceed to close this thread.
If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

please find the link below as requested
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-support-resources

@ManoharLakkoju-MSFT
please find the link below as requested
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-support-resources

@V-Raghu - can you confirm the resource type you are moving? If you use the portal to create a B2C Tenant, you actually get a b2cdirectories resource type. I have confirmed this type can be moved. You'll see the same resource type in the REST reference docs. I do not see a REST operation for b2ctenants

Thanks for the insights @tfitzmac.
@V-Raghu As we didn't hear back from you and as it appears that there's no edits or updates needed for the referred document so closing this issue for now. If there are further questions regarding this topic, please do let us know and we will gladly continue the discussion. Thanks.


Code re-organisation

This partially implements #65 except for creating the runtime crate.
Achieved:

silkenweb compiles with "style" in 26 seconds and without in 13 (on a Macbook M1)

I'm going to have a play around at doing this myself as I think the CSS stuff would be better using Features. silkenweb-base was never meant to be public, but I think css::Source ultimately should be, so I want to tidy up the interface. Also I don't want to move or rename trait Document without good reason. Hope you don't feel you've wasted time on this, as I like the overall idea.

No worries! I mean I went ahead and did this without checking with you first.
From my experience, features can be quite hard to maintain. That's why in general I try to keep the code related to a feature in one crate and then from the main crate feature gate the use of that crate. Like I did in this proposal.
Anyway, looking forwards to see what you come up with 😄


sha256 window is not defined

Issue
Referencing nns package directly from a SvelteKit app leads to an issue with the local dev server if ssr is true

window is not defined
ReferenceError: window is not defined
at ../../../../node_modules/js-sha256/src/sha256.js:1:572
at ../../../../node_modules/js-sha256/src/sha256.js:1:10537
at /@fs/Users/daviddalbusco/projects/dfinity/ic-js/packages/nns/dist/esm/chunk-Q3ETFEQV.js:1:304
at ../../../../node_modules/js-sha256/src/sha256.js:1:38057
at async instantiateModule

Reproduction
git clone https://github.com/dfinity/ic-js
cd ic-js
npm ci
npm run build --workspaces
cd ../
git clone https://github.com/dfinity/nns-dapp
cd nns-dapp/frontend
npm ci
npm rm @dfinity/nns
npm i ../../ic-js/packages/nns
npm run dev

open browser
Workaround
Disable ssr for local development in the SvelteKit app.

For the same reason as I closed #315, turns out we always gonna need a lirbary anyway because sha224 is not part of the web specification. Therefore, since we always gonna need one, we can also use the sh256 from same lib and migrating to the platform would only have a minimal impact.


Fix/active loan table

Fixed profit calculation and added another check to if popup tutorial should show (if user is already on RSK network)

Math for short is still off:


Vickel: Watch techarts(?!.com)

Vickel requests the watch of the watch_keyword techarts(?!\.com). See the MS search here and the Stack Exchange search in text, in URLs, and in code.

techarts(?!\.com) has been seen in 2 true positives, 0 false positives, and 0 NAAs.

Rejected by Jeff Schaller in Charcoal HQ. Reason: 'at the author's request'


Address hypothes.is comment wowjurFFEemHLueXz_pdUw

Hypothesis annotation https://hyp.is/wowjurFFEemHLueXz_pdUw/jrnold.github.io/r4ds-exercise-solutions/strings.html<EMAIL_ADDRESS>
There is a mistake in the code depending on which of the numbers you had intended to match.
str_view(x, "[0-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]")
Or:
str_view(x, "[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]")

Expand the discussion of this question to include more general ways of matching phone numbers using concepts introduced in the next chapters.


Spelling mistake when logging

I noticed a spelling mistake when going through a log file.
https://github.com/OpenNebula/one/blob/7b6b054b1a30ee37e23fabad6d85ee16c9907f28/src/raft/ReplicaThread.cc#L218
First word 'Faild' -> 'Failed' 🍍
Thanks for the great project!

THANKS! Fixed 500017b3be2e7f936446912e4088ab432191a83e


Ore Transmute Load Crash With rftools

rftools dimensional ore make things crashy with the transmute stuffs.
https://pastebin.com/S9FNDh45

https://github.com/McJtyMods/RFTools/blob/59088e53e3729f45524294b82441926694dd2ae7/src/main/java/mcjty/rftools/ForgeEventHandlers.java#L85
peachy
i'll think about how to work around this.

Hate to reopen but its not fixed in 0.11


Add setting/s for contact info for use in the templates

Currently we have hardcoded the contact info. Need to make it into a project setting and add the instructions for that setting in the README.

We could also leave this to template layer. App clients can override templates relatively easily. We could also take advantage of {% include ... %} I imagine.

So you're saying have like a contact_info.html template? That would work. Wouldn't be hard to do, and easy enough to explain in the README.

Yeah. There are probably a couple of ways we could do it too.
I personally like this method a little more than using settings. I prefer it when app settings determine how the app should behave, and leave the templates to carry out the presentation.
just my 2 cents


Update README

The example in the README is missing the required cidr_blocks variable.

thanks @roock
it was addressed in https://github.com/cloudposse/terraform-aws-vpc/releases/tag/0.4.1
(two PRs at the same time for the same issue :)


[BUG]Broken Header Menu Navigation On Mouse Hover

In the Blocks->Header , either in the preview component or after installation.
on Mouse Hover, the menu items with sub menu items are not working properly, sometimes you have to click, and sometimes it will show the sub menu items only after Mouse out from that menu item, Sometimes it show then hide then show again, sometimes it showen then directly hide again. it is not stable.
To Reproduce

Go to 'docs/blocks/header' | Make sure to refresh the page
Hover mouse on 'Digital participation'
Take the mouse out of the menu item, go back again | Or click on it try to move out and in multiple times, and click from time to time.
See error

Expected behaviour
To make sub menu items shows properly.
Tried on Chrome latest version, Windows 10 on a desktop machine full view.

Hello @khaledobaid
I was unable to replicate the issue as described. However, I do see the point about hovering. there is a constant flicker because of the native hover effect.
Therefore, the next version release of the design system will bundle https://tristen.ca/hoverintent/ and implement hoverIntent as the default for all methods related to Javascript hover effects.


Wordnet 503 error

Attempting to download wordnet from nltk produced a 503 error earlier today around 10am PST.
Did anyone else experience this and was there a resolution?
Error detail snippets:
import nltk
nltk.download('wordnet')
[nltk_data] Downloading package wordnet to /root/nltk_data...
[nltk_data] Error downloading 'wordnet' from
[nltk_data]     <https://raw.githubusercontent.com/nltk/nltk_data/gh-...
[nltk_data]     pages/packages/corpora/wordnet.zip>:   HTTP Error 503:
[nltk_data]     between bytes timeout
Other nltk packages like perceptron tagger seemed to work.

@ibarrien have you tried again recently? HTTP error 503 is generally a temporary situation where the server is down or overloaded. Do you consistently get 503 for the wordnet corpus and not for other corpora?

@ibarrien have you tried again recently? HTTP error 503 is generally a temporary situation where the server is down or overloaded. Do you consistently get 503 for the wordnet corpus and not for other corpora?

Hello, thank you for the follow-up! It is working again; it was a transient error. One follow-up question: is it an "ok" practice to download wordnet once, re-use the downloaded copy, and look for an update periodically? E.g. how often is wordnet substantially updated ? [apologies if vague]

Hello, thank you for the follow-up! It is working again; it was a transient error. One follow-up question: is it an "ok" practice to download wordnet once, re-use the downloaded copy, and look for an update periodically? E.g. how often is wordnet substantially updated ? [apologies if vague]

One follow-up question: is it an "ok" practice to download wordnet once, re-use the downloaded copy, and look for an update periodically? E.g. how often is wordnet substantially updated ?

Normally when you download a package it is stored in the nltk_data directory in your home folder, and it is reused by successive processes. If you call nltk.download('wordnet') in your script and the file is already downloaded, it will print a message like "Package wordnet is already up-to-date!". If you see a different message, you can try to force a download (add the force=True argument to the function call), but please do not force a download each time the script is run, as it eats up the NLTK's bandwidth quota (see #1787 for context), and also makes your scripts run slowly. The wordnet data packaged by the NLTK is the Princeton WordNet 3.0 and is unlikely to change. If you want newer versions of wordnet data, you might also try https://github.com/goodmami/wn (disclaimer: I'm the author).

It is working again; it was a transient error.

Thanks for the quick response. Feel free to close the issue.

One follow-up question: is it an "ok" practice to download wordnet once, re-use the downloaded copy, and look for an update periodically? E.g. how often is wordnet substantially updated ?

Normally when you download a package it is stored in the nltk_data directory in your home folder, and it is reused by successive processes. If you call nltk.download('wordnet') in your script and the file is already downloaded, it will print a message like "Package wordnet is already up-to-date!". If you see a different message, you can try to force a download (add the force=True argument to the function call), but please do not force a download each time the script is run, as it eats up the NLTK's bandwidth quota (see #1787 for context), and also makes your scripts run slowly. The wordnet data packaged by the NLTK is the Princeton WordNet 3.0 and is unlikely to change. If you want newer versions of wordnet data, you might also try https://github.com/goodmami/wn (disclaimer: I'm the author).

It is working again; it was a transient error.

Thanks for the quick response. Feel free to close the issue.

excellent, thanks for the tips. closing now.

excellent, thanks for the tips. closing now.


[Feat]: Auto Commenting when an Issue is Closed

Is your feature request related to a problem? Please describe.
Yes, the feature request is related to the problem of lack of communication and acknowledgment when issues are closed in the repository. Contributors may feel neglected or uncertain about the status of their issues if they are closed without any feedback or acknowledgment. This can lead to frustration and a decrease in motivation to contribute further.
Describe the solution you'd like
The solution is to automatically post a comment on the issue whenever it gets closed. This comment should thank the issue creator for their contribution and inform them that their issue has been closed. The message can include the issue number and a friendly greeting to make it more personal. This automation ensures that every closed issue receives a consistent and timely response, improving communication and contributor experience.
Additional context

@SUGAM-ARORA please assign me this issue

@SUGAM-ARORA i am done with issues 140 & 141 so please assign me this issue

@Asymtode712 Issue assigned to you


4.2.2 is not starting ... error.log is full with "Unsupported database schema version: 22"

Coming from 4.0.2 ... waiting here for about 45min and Mmonit is not starting ... the logs are full with:
2024-05-09 06:42:09,stdout,AssertException: Unsupported database schema version: 22 -- please run database upgrade script(s) to update M/Monit to version 4.2.2 (database schema version 23)
2024-05-09 06:42:09,stdout,Starting mmonit 4.2.2
2024-05-09 06:42:08,stdout,AssertException: Unsupported database schema version: 22 -- please run database upgrade script(s) to update M/Monit to version 4.2.2 (database schema version 23)
2024-05-09 06:42:07,stdout,Starting mmonit 4.2.2
2024-05-09 06:42:06,stdout,AssertException: Unsupported database schema version: 22 -- please run database upgrade script(s) to update M/Monit to version 4.2.2 (database schema version 23)
2024-05-09 06:42:06,stdout,Starting mmonit 4.2.2
2024-05-09 06:42:05,stdout,AssertException: Unsupported database schema version: 22 -- please run database upgrade script(s) to update M/Monit to version 4.2.2 (database schema version 23)
2024-05-09 06:42:05,stdout,Starting mmonit 4.2.2
2024-05-09 06:42:05,stdout,AssertException: Unsupported database schema version: 22 -- please run database upgrade script(s) to update M/Monit to version 4.2.2 (database schema version 23)
2024-05-09 06:42:04,stdout,Starting mmonit 4.2.2
2024-05-09 06:42:03,stdout,AssertException: Unsupported database schema version: 22 -- please run database upgrade script(s) to update M/Monit to version 4.2.2 (database schema version 23)
should i wait longer ??
br, Richard
See the full log here:
Mmonit (3).csv

Her the Feedback from Mmonit Support:
These errors come from mmonit start attempt, when it detects that the database was not upgraded:
2024-05-09 06:42:09,stdout,AssertException: Unsupported database schema version: 22 -- please run database upgrade script(s) to update M/Monit to version 4.2.2 (database schema version 23)
2024-05-09 06:42:09,stdout,Starting mmonit 4.2.2
Normally it is necessary to run the upgrade program before starting the new M/Monit version (https://mmonit.com/wiki/MMonit/Release4-2-2#upgrade), for example:
/usr/local/mmonit-4.2.2/upgrade/upgrade -p /usr/local/mmonit-4.2.1
I'm not sure however how that 3rd party docker container deals with the upgrade.

migration worked over 4.2.1
so upgrade 4.0.2 -> 4.2.1 -> 4.2.2
in this version is as fast as 4.0.2, everything good now 😊

A quick check of the commit logs does not show any changes in my upgrade scripts since 4.0.2.
Do you have the full log of the run so I can make sure this does not happen in the future?
Thanks.
Jeff

It has nothing to do with your script. i have mmonit 4.0.2 and 4.2.2 installed on my MAC and wanted to migrate the DB there, but it didn't work either. the following error occurred:
Aggregating data from statistics_aggregate_1m to statistics_aggregate_2m. This can take a while. Please be patient
Upgrade failed: SQLException: FOREIGN KEY constraint failed (src/db/Connection.c Connection_execute 316)
I also had to migrate via this path on the MAC 4.0.2 -> 4.2.1 -> 4.2.2. When this worked there, I realised that I also had to go via 4.2.1 on the Syn (Docker). That worked there too :-).
This has something to do with my DB ;-) (Feedback from Mmonit Support)
lg Richard


Display intro/welcome content when no orchestration is open

Description
Numerous editors and tools have landing pages that display some "Getting Started" or "Intro/Welcome" content on their main page when starting to help guide the person to getting started with the tool.
Implementation ideas
We could have a nice "Visual Script" themed image with a few buttons on the main view to act as quick links to create a new orchestration or open an existing one.  We could also consider adding a "Recent History" list to this view, allowing the user to pick from a recently opened orchestration.  The goal is to avoid the blank space.

Fixed by https://github.com/Vahera/godot-orchestrator/pull/346


add run script / tracker files for TractoFlow

This is an initial working version.
This should function on the majority of the QPN / PPMI inputs.
There will probably need some adjustments for the defaults decisions to generalize well, but they should be easy to add.

@bcmcpher - Made a couple of small comments, but they can be pushed in the future commits. Feel free to merge this if this is ready to go on new datasets.

Merge through different cmmit


Relax dependency on httparty gem

Includes the following gem cleanup items:

Relax version dependency on httparty, RSpec and Jeweler gems
Gemfile.lock should be gitignored
Add Ruby 2.1.0 to Travis

@jtadeulopes pinging again, please merge.

Successfully registered gem: googl (0.7.0)


Set spatial coverage from content files and delete coverage missing in 1.19 new landing page on beta

If I create a composite resource with a geographic feature content aggregation from a shapefile in beta, I get

But in www I get

Notice the circled buttons that are missing on beta.
This is a regression, so is high priority, but should not hold back 1.19 deploy.

@dtarb I was unable to reproduce this issue. Could you email me the file you used so I can have a closer look?

The data is
CubOutlet.zip

Create a new composite resource
Add the zip file
Unzip here
You should get a geographic feature in the resource.  But if you adjust resource level coverage set spatial coverage from content files does not appear.

However, I found that if you switch out of and back into edit mode or do a page refresh, then the set spatial coverage and trash options do appear.   I also found that the behavior is similar on www in that a page refresh is required to get these buttons, so it is not a regression.  This puts this among the several issues related to page refresh, and of lesser importance (I'll reduce priority to medium).
Given that this is page refresh related, it may also be browser specific.  I am using Firefox.  I did not try other browsers.

@dtarb and @Maurier On www a page refresh automatically happens with most file/folder operations so this problem does not happen there. We removed lot of page refresh cases with 1.19 and as a consequence we see these kind of problems. Another case of such an issue when you remove content type from the only one existing aggregation. You will see the button to set coverage from content files still appears until you do a manual refresh. We can fix all these page refresh related issues after 1.19 release.

@pkdash I will create another issue where we can document exactly where we need to get rid of page refreshes and put together a map of which components affect each other when they change.
Since we are headed in the direction of a single page application for the resource landing page, we could probably discuss SPA methodologies too.

If you have such a discussion please include me. I've worked on a few SPAs back in the day.

@cuahsimarko - Awesome! I'm very glad to hear that.


feat: Add task status polling delay parameter to Create method

My proposed solution for the custom polling delay
Fixes #181

Thanks for contributing @lukasschachner. I had a question regarding the delay - is it needed to specify it for each request, or would it be OK to set it globally with configuration/options? Because my preferred solution would be to:

Move PaperlessOptions.cs to the VMelnalksnis.PaperlessDotNet project
Add a property to options, and use that in the DocumentClient

	[Required]
	public TimeSpan TaskPollingDelay { get; set; } = TimeSpan.FromMilliseconds(100);

Hey @VMelnalksnis, thanks for the review! yes, i think this yould be a valid implementation. I added a commit


[🐞] npm run build will not generate css in dist dir when i used unocss

Which component is affected?
Qwik Runtime
Describe the bug
I used unocss in my project, everything is ok in dev mode, but something wrong when i build;
anybody can help me?
i have tried the following things but not work:

set sideEffects: ['*.css'] in package.json;
reorder the import 'uno.css''s location in file root.tsx;

Reproduction
https://github.com/cunzaizhuyi/awesome-fe-sites
Steps to reproduce

git clone
npm run preview

System Info
System:
    OS: macOS 13.0.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 2.74 GB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.9.0 - ~/.nvm/versions/node/v18.9.0/bin/node
    npm: 8.19.1 - ~/.nvm/versions/node/v18.9.0/bin/npm
  Browsers:
    Chrome: 109.0.5414.87
    Safari: 16.1
  npmPackages:
    @builder.io/qwik: 0.16.2 => 0.16.2
    @builder.io/qwik-city: 0.0.128 => 0.0.128
    undici: 5.14.0 => 5.14.0
    vite: 4.0.3 => 4.0.3

Additional Information
No response

I solved this problem by using unocss/runtime.
but thas is not a better way, for example, i dont know how to handle icons and how to config unocss.

ever have any luck with this?

got the same issues on my qwik-app too. Any solution update?

i'm trying to make unocss work with qwik in a monorepo (pnpm + nx)
i have put import 'virtual:uno.css' in root.tsx, but no css was generated except those imported preflights

You can always manually run the unocss cli as well
npx unocss "./src/**" -o "./dist/uno.css"

can let me know what you added to the which config file?

i have put import 'virtual:uno.css' in root.tsx, but no css was generated except those imported preflights
@yckbilly1929

Can you let me know what you added to which config file

it's working as expected now, my setting is:

unocss config in uno.config.ts
Unocss() after qwikXXX plugins in vite.config.ts
import 'virtual:uno.css' in src/root.tsx

i have put import 'virtual:uno.css' in root.tsx, but no css was generated except those imported preflights
@yckbilly1929

Can you let me know what you added to which config file

it's working as expected now, my setting is:

unocss config in uno.config.ts
Unocss() after qwikXXX plugins in vite.config.ts
import 'virtual:uno.css' in src/root.tsx

for unocss-cli, i used it currently as last resort for esbuild-only SPA projects

is this methods work after build and serve with node server eg, express,fastify?
i try to move UnoCSS() after all qwik plugin in vite.config.ts but after i run serve it's still generate only preflights😅

yes, it works
i put it back before any qwikXXX plugins, seems order not related at all
one thing I did notice is Unocss({ mode: 'disk-chunk' }) will break the build, and I have to switch back to default (global) mode for now

Its work on dev/preview mode or on production(build and server) too?
I try follow you way to setup everything work fine(dev/preview) but after I add fastify and build then run npm serve, website will not have any style from unocss except preflight

Its work on dev/preview mode or on production(build and server) too?
I try follow you way to setup everything work fine(dev/preview) but after I add fastify and build then run npm serve, website will not have any style from unocss except preflight

Yes, it works on production build as well. I'm using fastify adapter.
You can make a quick check in server or dist folder after build. This is my full uno.config.ts setting:
import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders'
import presetIcons from '@unocss/preset-icons'
import transformerCompileClass from '@unocss/transformer-compile-class'
import { defineConfig, presetUno } from 'unocss'

export default defineConfig({
  include: ['src/**/*.{html,tsx}'],
  exclude: ['node_modules', '.git', 'dist', 'server'],
  presets: [
    presetUno(),
    presetIcons({
      extraProperties: {
        display: 'inline-block',
        'vertical-align': 'middle',
      },
      collections: {
        images: FileSystemIconLoader('./src/assets/images'),
      },
    }),
  ],
  transformers: [transformerCompileClass()],
  preprocess(matcher) {
    return matcher.startsWith('un-') ? matcher.slice(3) : undefined // ignore
  },
})

Thanks I ll try again with this config😍

another workaround for make unocss-vite work with qwik is add content.filesystem in uno.config.ts(no idea about this config just lucky found😅)
export default defineConfig({
  content: {
    filesystem: ['src/**/*.{ts,tsx}']
  },
  presets: [presetUno(), presetIcons()],
  transformers: [transformerVariantGroup()]
})

hi, has this problem been resolved? I have encountered the same issue.

@thejackshelton did you try UnoCSS recently? Is this issue still valid?

I'm so sorry @cunzaizhuyi but I can't reproduce the issue, your repo is a SvelteKit app.
So I'm closing this issue for now, feel free to re-open it if it's still an issue for you.


Kubernetes Node Autoscaling

Paying for infrastructure that is not used doesn’t make sense.
That being said, how we scale up and down Kubernetes nodes that run gameservers is different from stateless applications - Nodes in the cluster must be empty before they are deleted, and depending on if game servers are warm or not, nodes may need to be created preemptively for expected demand.
This should also be built to allow for other cloud providers / on prem solutions to be able to integrate with the solution.
Questions

How can we keep the buffer of extra resources low, which still ensuring fast scale up times?
Can we provide direction on how to use smaller VMs to make the scale up/down buffer smaller?
This also feels like an area in which stat collection and display would be useful.
May not need a scheduler, if it's assumes developers will fill the cluster with as many game servers as they can.

Research

https://github.com/markmandel/paddle-soccer/tree/master/server/nodescaler

Closing this as a duplicate of #368


Style Org Mode headings, links, dates, and todos

Hi @jamiecollinson ,
Thanks for making this theme available.  I added a few more faces for some basic Org mode support.  Please feel free to give me feedback if there's something missing and let me know if I can help with development.  I'll keep adding support for new faces as I come across them.
Thanks again,
@kliph

Thanks @kliph - I'm an org user myself but have been too lazy to sort this out!
I'm on holiday at the moment but will review and merge next weekend when I'm back - I'm a bit new to Melpa so not sure if there's anything I need to do to update the package there.

@kliph - just merged and I'm pretty sure Melpa will update it's listing on their next rebuild (happens every few hours).
Thanks for the contribution, and feel free to PR any other improvements you think of.


Testing Question

Laravel Version: 5.5
Adldap2-Laravel Version: ^3.0
PHP Version: 7.1

Question:
What is the recommended way to generate users in tests with this package when using the NoDatabaseProvider?

Hi @jasonlbeggs, great question! I haven't documented this at all currently, so after I go through this here I'll create some docs for this scenario. I also need to modify Adldap2 to make this easier.
You'll need to create mock users using the Adldap\Models\User model.
This model adheres to the UserContract supplied in Laravel's test cases, so you can use the actingAs() method in test cases:
/**
 * Set the currently logged in user for the application.
 *
 * @param  \Illuminate\Contracts\Auth\Authenticatable  $user
 * @param  string|null  $driver
 * @return $this
 */
public function actingAs(UserContract $user, $driver = null)
{
    $this->be($user, $driver);

    return $this;
}

Here's an example implementation:
public function test_ad_user()
{
    $c = Mockery::mock(ConnectionInterface::class);

    $g = new Grammar();

    $b = new Builder($c, $g);

    $user = new User([
        'objectsid' => [
            hex2bin('010500000000000515000000dcf4dc3b833d2b46828ba62800020000')
        ],
        'cn' => ['Bauman, Steve'],
    ], $b);

    $this->actingAs($user);

    dd(auth()->user()); // Returns instance of \Adldap\Models\User
    dd(auth()->id()); // Returns "S-1-5-21-1004336348-1177238915-682003330-512"
}

You can then create a helper method in your testing to simply construct and sign in users for test cases that require authentication.
Remember, you'll need to construct dummy data for the signed in user if you require it for testing.
For example, if you checking groups on the authenticated LDAP user, you will need to provide a memberof attribute when creating mock users.
If you need any more information or assistance, comment back and I'll re-open this.
Thanks!

Thanks for the help! I'll be sure to watch out for the changes on the upgrade.
I ended up just going ahead and making an AdldapUserFactory class instead of a function. This will make it easier for me to add on different states and extend the functionality. It functions pretty well as a drop in replacement for what I was already doing.
<?php

use Adldap\Connections\ConnectionInterface;

class AdldapUserFactory
{
    public static function create($overrides = [])
    {
        $c = Mockery::mock(ConnectionInterface::class);

        $g = new \Adldap\Query\Grammar();

        $b = new \Adldap\Query\Builder($c, $g);

        $user = new \Adldap\Models\User(array_merge([
            'objectsid' => [
                hex2bin('010500000000000515000000dcf4dc3b833d2b46828ba62800020000')
            ],
            'cn' => ['User, Test'],
        ], $overrides), $b);

        return $user;
    }
}

The only thing that is kind of weird is all my tests that use this are returning null in the terminal when I run them now. Do you have any ideas what could be causing that by chance?


Users should only see active wishlist items

In the codebase, there were some hints of "active" and "inactive" items, but they're not attached to the UI. Right now, everyone can see all wishlist items.
We should do one of two things:

Only show users (anyone except admins and managers of the current wishlist) the active wishlist items. Admins and site managers should see their relevant inactive items too, but we might want to style them differently or something. We should also add an activate/deactivate button (or something) to the interface.

Remove the inactive priority and active scope, since active/inactive items aren't part of the current deliverable.

Since we're using pundit, this might be helpful: https://github.com/elabs/pundit#scopes


Rebrand Dialogs look&feel

We should replace old dialog design with simple and modern look.
Previous dialog examples:

could also address how they work in wizards

The wizards and dialogs should also follow the theme instead of always being light themed


File with square brackets '[' in the filename cannot be read using Get-Content or Switch -File Method on Windows

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Issue: File with square brackets '[' in the filename cannot be read using Get-Content or Switch -File Method on Windows
Description:
There is a known issue in the latest PowerShell 7.X and Windows PowerShell versions where files containing square brackets '[' in their filenames cannot be read using the Get-Content or Switch -File methods on Windows. The issue specifically affects files with opening square brackets '[' in their names.
Steps to Reproduce:

Run the following PowerShell script to check which filenames are legal on Windows by creating a test file:

# Check which filenames are legal on Windows by creating a test file
for ($i = 32; $i -le 126; $i++) {
    $char = [char]$i
    try {
        $fileName = "C:\Temp\legalchartest\$char.txt"
        $null = New-Item -Path $fileName -ItemType File -Force -Value "Test" -ErrorAction Stop
        $char
    }
    catch {
        # Invalid character, do nothing
    }
}

**Execute the following code to check the results: **
$TestResult = (Get-ChildItem -Path "C:\Temp\legalchartest\").ForEach({
    $returnobject = [PSCustomObject]@{
        Character = $PSItem.BaseName
        GetContentResult = $null
        SwitchFileResult = $null
    }

    try {
        Get-Content -Path $PSItem.FullName -ErrorAction Stop | Out-Null
        $returnobject.GetContentResult = $true
    }
    catch {
        $returnobject.GetContentResult = $false
    }

    try {
        switch -File ($PSItem.FullName) {
            default{

            }
        }
        $returnobject.SwitchFileResult = $true
    }
    catch {
        $returnobject.SwitchFileResult = $false
    }

    $returnobject
})
$TestResult

Expected behavior
Files with square brackets '[' in their filenames should be readable using the Get-Content and Switch -File methods on Windows.

Actual behavior
Files with square brackets '[' in their filenames should be readable using the Get-Content and Switch -File methods on Windows.

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      5.1.19041.2673
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.2673
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

```powershell
Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

### Visuals

_No response_

As for Get-Content:

The short of it is: use -LiteralPath
For more information, see https://github.com/PowerShell/PowerShell/issues/19594#issuecomment-1529018912

As for switch:

Unfortunately, there is no -LiteralPath equivalent yet:

See #8988

Thus, your only option at the moment is to use escaping:

switch -File ([WildcardPattern]::Escape($PSItem.FullName))


New public error type, ErrDBNotReady, added with a wait group on the database readiness.

This resolves part of issue #44 where we need a notification method for database states.
db.Status() returns this error which is subsequently returned by NewSafeBrowser(), LookupURLs(). The user can choose to block wait for the database readiness by using err.Wait()
A unit test, "TestDatabaseWaitGroup", added to database_test for testing this new error type.

@colonelxc @nimbleo Is there anything I can do to help move this PR along? This is the last piece I'm missing to complete a robust integration and would love to see this merged in the near future. (Thank you @nimbleo for the implementation work!)

@nimbleo and I discussed this offline a while back (I should have added a comment here as well). We just got busy and didn't make any new progress here.
The gist of that discussion was that it was still desirable to avoid using the errors this way (I think @dsnet had reservations about that the last implementation), and that an ideal api would have a Wait() or WaitForReady() or something on the safebrowser struct itself. It makes it so that someone waiting for startup can do that unconditionally, instead of getting an error and deciding to wait.
It does seem nice to expose some form of public error for simple 'cause' matching. (Did it fail because the database broke, or did it fail because it was an invalid url)?

Ping on this? Sounds like we're waiting on an update from @nimbleo?

Sorry for the delay. I'll work on it this week.

@colonelxc is already working on this including other improvements. PR for that will be out pretty soon.


Fix ci-mssql.yml

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Fixed issues

Thank you!


added bootstrap

added the bootstrap cdn in two files

#17

This has been fixed w/out bootstrap for now


Add support to Ali cloud OSS in profile

Ali cloud object storage is OSS.
I configured with AWS format, but seems not work. Although Ali cloud announced it's compatible with AWS S3.
Much appreciate if can provide this feature.

@terry5168 if this is still of interest to you, I will love to hear more about your requirements.