add .github/ dir

Ran my local .github dir generator on the project. Includes issue & PR templates, CoC, stale.yml and a DOC. Lots of stuff in here, but hope it good. Thanks!

@goto-bus-stop was thinking the other CoC is a bit.. uncommon. This one's pretty well-understood, and basically says the same things.

Should probably raise that in the other issue too tho.

no harm in eager merging and tidying later no?  this is the good stuff!

i was waiting for choojs/choo to merge but i guess there's not really any reason to :P thanks!


Compilation: add MSP430 target-specific types and macros

Macros taken from here: https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/MSP430.cpp
Size, alignment, va_list, char signedness info: https://www.ti.com/lit/an/slaa534a/slaa534a.pdf (page 12)
The MSP430 compiler also has the concept of code models. Different code models can adjust the size
of function pointers, data pointers, size_t, and ptrdiff_t. We currently only support the small model.
Closes #346

These type sizes should also be contributed to Zig's CType and then reused here.

It looks like CType already has defines for MSP430 (as well as other architectures) - should I just change Type.zig to use that for the basic scalar types?

I took out __ELF__ and will add that as a separate PR.

I took out __ELF__ and will add that as a separate PR.

getObjectFormat should make this easy.


multi: update signing RPCs to expose new tapscript+taproot sig types

Before taproot, there're two main signatures types for Bitcoin: pre-segwit, and segwit. They primarily differ in the way the sighash is computed.
Post-taproot we add two additional types: taproot key spend and tapscript leaf spend. Unlike the prior two signatures types, these are both schnorr only. The key spend sig type is used when we're spending from a regular top-level taproot output, and uses a new sighash type. The tapscript type is used when we're spending a leaf in the taproot tree. For the tapscript spend type, a valid witness also needs to include a merkle proof that the script being signed is actually a part of the tree. Note that the proof itself isn't signed, so if there're duplicate scripts in the tree, then it may be possible to use the sigs in a somewhat floating manner.
Aside from the new sighash types, we'll need to update internal data structures and RPC requersts to reflect the fact that taproot signatures can be 64 or 65 byte (64 byte sigs use an implicit sighash type of 0), and also that the schnorr public keys are always 32 bytes.
Steps to Completion

[ ]  Update the SignDescriptor used as a part of ComputeInputScript and SignOutputRaw abstract away from the existing single sighash field in favor of a multi-level (?) structure where the sig type is specified, then the sighash. The two sig types here are taproot vs tapscript.

Alternatively, we can minimize breaking changes here and just add another field for the sig type.

[ ] Update the SignDescriptor to specify a field for complete set of input values associated with the transaction. Unlike segwitv0, the taproot sighash also includes the input value information for all the inputs when sighash_all is used.
[ ] Update ComputeInputScript to support basic taproot key spend paths. It'll use all the additional fields created above, but create the new witness which is just the raw signature. Signing for this case should assume usage of BIP 86

In cases where BIP 86 may not be used, we should also optionally accept the taproot script root as well.

Related PR: https://github.com/btcsuite/btcd/pull/1787

Related PR: https://github.com/btcsuite/btcwallet/pull/792

Alternatively, we can minimize breaking changes here and just add another field for the sig type.

Not sure if I'm missing something here. But can't we just look at the pkScript of the output we're signing to determine the type of the signature? If it's a p2tr script, we're only supposed to be using Schnorr signatures. If it's a p2wpkh or p2wsh script, we use a legacy ECDSA signature.


Retire use of global functions in cmake files

Summary
This PR retires the use of global functions like include_directories and add_compile_options in CMake files.
I'm introducing this template for building library or executable:
cmake_minimum_required(VERSION 3.5)

# or add_executable() for unittests
add_library(<target_name> STATIC "")

target_include_directories(<target_name>
    PRIVATE
        <directories>
)

target_sources(<target_name>
    PRIVATE
        <sources>
)

target_compile_options(<target_name> PRIVATE <options, e.g. -Wno-incompatible-pointer-types>)

Background
Coding style here is based on Effective Modern CMake, which was referred by https://cliutils.gitlab.io/modern-cmake/chapters/intro/dodonot.html.
Two relevant blobs that motivated this PR are:

Forget the commands add_compile_options, include_directories, link_directories, link_libraries.
Those commands operate on the directory level. All targets defined on that level inherit those properties. This increases the chance of hidden dependencies. Better operate on the targets directly.

Avoid custom variables in the arguments of project commands.
Keep things simple. Don't introduce unnecessary custom variables. Instead of add_library(a ${MY_HEADERS} ${MY_SOURCES}), do add_library(a b.h b.cpp)

Testing
I included this version of libspdm in another CMake project via add_subdirectory(). It built fine for both C and CPP based projects. The programs worked as expected too.
Please note that this change here isn't necessary for libspdm to be used in a parent project. As it is today, I can already use libspdm as sub project in my cmake project. I previously thought more changes were needed, but it turned out there was an ordering issue with target_link_libraries'ing multiple static libraries (from libspdm). Linker searches from left to right to resolve symbols. After fixing the order of libspdm libraries, cmake build started to work.

@alexteoh-intel did you use a script to make these changes?

@alexteoh-intel did you use a script to make these changes?

Hi Steven, I did this manually with some search & replace help in vscode. It's a big change I know. If you prefer a smaller change that touches only the library cmake files, that's fine by me too. Thanks!

@alexteoh-intel, do you want to propose similar change for other project, such as https://github.com/DMTF/spdm-emu, https://github.com/DMTF/spdm-dump, https://github.com/DMTF/SPDM-Responder-Validator?

@alexteoh-intel, do you want to propose similar change for other project, such as https://github.com/DMTF/spdm-emu, https://github.com/DMTF/spdm-dump, https://github.com/DMTF/SPDM-Responder-Validator?

Hi @jyao1, sure I can look into them when I get a chance.


search & investigate updates

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #
Test URLs:

Before: https://main--prisma-cloud-docs--hlxsites.hlx.page/
After: https://--prisma-cloud-docs--hlxsites.hlx.page/
Worker: https://prisma-cloud-docs-production.adobeaem.workers.dev/?branch=

updates related to findings, attack path policies, investigate topic


Use Bloom filter for common passwords lookup

The current mechanism to look up common passwords is simply to keep a list of 20k strings in memory as a set and look up the supplied password in it.
This is neither CPU nor memory effective, so I have replaced it with Bloom filter, a structure perfectly suitable for this usage scenario. Static passwords list is replaced with ~25 KB binary pickled, pre-generated Bloom filter, directly loaded into  memory by the class. Any custom password list is also converted into an in-memory Bloom filter.
Testing indicates 4x lookup speed gain and 30% memory savings with the default 20k list, and these results will be even better with larger password lists.

Thanks for this patch :+1: , however we are quite careful in adding new requirements and this patch adds two of them. Moreover such change requires a discussion on the mailing lists and an accepted ticket, but personally I think that it is something that would be great as a third party package.


Stacktrace merging not yet implemented

Platform:

Android

"react-native-sentry": "^0.21.1",
I'm gettting the following output in my console
Error: Stacktrace merging not yet implemented
    at createErrorFromErrorData (NativeModules.js:123)
    at NativeModules.js:80
    at MessageQueue.__invokeCallback (MessageQueue.js:307)
    at MessageQueue.js:120
    at MessageQueue.__guard (MessageQueue.js:231)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:119)
    at debuggerWorker.js:72

Same problem

Hey, this is expected since we did not implement stacktrace merging on android yet.
The output should disappear on release builds.


SublimeLinter-jshint not working in JavaScript (DOM)

An observation:
Can anyone confirm if SublimeLinter-jshint is not meant to work with JavaScript Ultimate>JavaScript (DOM) syntax?  When switched over to JavaScript Ultimate>JavaScript, it works fine.
Another package JSHint Gutter is able to run with either.
SublimeText ver 3083
SublimeLinter-jshint ver 1.2.1
jshint ver 2.6.3
nodeJs ver 0.10.25
Linux Mint 17 kernel 3.13.0-48.80
--

+1 - same here
SublimeText build 3084
SublimeLinter-jshint 1.2.1
jshint v2.7.0
node v0.12.2
Windows 8.1 x64
I tried adding syntax map to user config:
"syntax_map": {
    "JavaScript (DOM)": "JavaScript"
}

But it didn't change anything.

@auz9 I figured it out, but this is a little bit dumb :neutral_face:
I was right in the beginning to add it to syntax map, but it must be all in lowercase, so like this:
"syntax_map": {
    "javascript (dom)": "javascript"
}

This is in fact stated in the documentation. I'm for closing this issue.

This is great. Thanks for figuring out.

thanks! :)


mirrored_lollipop_plot.R

mirrored lollipop plot a comparison function for when studying/comparing 2 different cohorts, pathologies, etc.

Thanks Luke @Atlantis-Real !
Looks like it needs some documentation update:
prettyForestPlot
  Code: function(maf, mutmat, metadata, genes, keepGeneOrder = FALSE,
                 min_mutations = 1, comparison_column, rm_na_samples =
                 FALSE, comparison_values = FALSE, separate_hotspots =
                 FALSE, comparison_name = FALSE, custom_colours =
                 FALSE, custom_labels = FALSE, max_q = 1)
  Docs: function(maf, mutmat, metadata, genes, keepGeneOrder = FALSE,
                 min_mutations = 1, comparison_column, rm_na_samples =
                 FALSE, comparison_values = FALSE, separate_hotspots =
                 FALSE, comparison_name = FALSE, custom_colours =
                 FALSE, custom_labels = FALSE, max_q = 1, mirrorarg =
                 FALSE)
  Argument names in docs not in code:
    mirrorarg

Can you please take care of this?

@Atlantis-Real Let me know if you need any help with this :smile:


Really cleanup the mess.

Thanks. Of course that file was not saved when I made the commit. My fault for fixing stuff when tired, sorry again.


Jupyter Graffiti isn't working

Issue Type: Bug
Hello, I've been trying to work on Udacity jupyter files, but the jupyter graffiti extension is not working in vscode, it works fine when I launch it through jupyter-notebook in Anaconda. here is the link for Jupyter graffiti repo https://github.com/willkessler/jupytergraffiti
Extension version: 2021.3.619093157
VS Code version: Code 1.54.1 (f30a9b73e8ffc278e71575118b6bf568f04587c8, 2021-03-04T22:38:50.094Z)
OS version: Linux x64 5.8.0-43-generic snap

System Info

Item
Value

CPUs
Intel(R) Core(TM) i3-2370M CPU @ 2.40GHz (4 x 1176)

GPU Status
2d_canvas: unavailable_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: disabled_offprotected_video_decode: disabled_offrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
2, 2, 1

Memory (System)
7.62GB (0.22GB free)

Process Argv
--force-user-env --no-sandbox --unity-launch --no-sandbox --crash-reporter-id 68187822-f2a7-4374-9a8e-46d516cca282

Screen Reader
no

VM
0%

DESKTOP_SESSION
ubuntu

XDG_CURRENT_DESKTOP
Unity

XDG_SESSION_DESKTOP
ubuntu

XDG_SESSION_TYPE
x11

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspyt653:30270858
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vstry914:30256638
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
dockersubset:30270708
pythontb:30265425
vspre833:30267464

Thanks for filling this issue. Unfortunately we don't support such Jupyter extensions that update the vscode ui. (The Jupyter extension you are referring to is build specifically for Jupyter).
Please consider using a vscode extension for screenshots of the like, please check the vscode marketplace for similar extensions.


Hyperlinks are outdated in Codebase structure section of CONTRIBUTING.md file

Shows 404 error while clicking on any hyperlink present in Codebase structure of CONTRIBUTING.md. Ex: data
Update the links pointing to workspace members.

Yes. I plan to redo all the docs in the near future.Sent from my iPhoneOn 8 Nov 2022, at 15:37, Akhil @.***> wrote:
Shows 404 error while clicking on any hyperlink. Ex: data
Update the links pointing to workspace members.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>


VEGA-1771 Add endpoint and CLI integration for indexing draft applications #minor

@gregtyler I've incorporated your review comments, thanks.


Build issues with StereoKit, Using SK with HoloLens 2 as Remoting Server App

@maluoi I moved this conversation because the virus issue is resolved at the moment. For others reading this please see the chain for context.

It's possible maybe something from earlier caused corrupted in your build folder? I think the "Cannot open compiler generated file" and unable to unlink old issues at the start may be the big clues. I might try nuking the C:/Temp/StereoKitBuild folder and trying again.
Building SK itself will always be trickier that using the NuGet, unfortunately. Cross platform development for C++ is rough, and VS makes it worse by having no idea what dependencies are. I have been working a lot on the build system recently in preparation for CI/CD on GitHub Actions, so the next update may help make things a little smoother.
Regarding the functionality you're trying to solve, I don't know if OpenXR really has a good way to intercept and deny an exit event? I might recommend taking a peek over here though, where SK receives OpenXR's events. It does look like there could be some wiggle room for trying a few things.

Originally posted by @maluoi in https://github.com/StereoKit/StereoKit/issues/648#issuecomment-1595831913

@maluoi  C++ cross platform is hard, heck C++ is just plain hard anyway! I do just enough C++ to keep my skills at a minimum proficiency.
You mentioned the Backend.OpenXR that is in the remoting SK project. I had been looking at that. Maybe you could offer some app flow insights.
Given a working app which I do have in SK/Sk Remoting where the client side is now the HoloLens remoting app. It is configured to connect to a server address (one of these days I will do an DNS lookup to locate the server endpoint) but for now it is in a json config file. So, for constituency with MS names the Remoting Player is now the client side and the Remoting App is now configured to "listen" for a connection as does a web server to a browser.
Given also that the Remote App that has SK/Remoting configured is started and is waiting on its first connection. SK has been initialized and has added the Holographic as a IStepper. From the point of view of SK everything is normal it is now in SK.Run() loop.
Given the working Player that is configured to call a Remote App (listener server), I start the Player for its first connection attempt. (Note: at this point the SK app is running it just does not have a "display" device the Player.)
The Player will connect to the Remote App with no issue and the app behaves normally.
This is where things go south real fast. When I am done with the app and shut down the expectation is that the Player will do one of two things: 1- Exit using a menu action which should allow the Remote App to clean up and move back to the initial state. 2- Exit using the Player "Window Close event" from the HoloLens 2 main menu (the Home button).
In either case the desired state is the SK app continues to run and that the Backend.OpenXR remains initialized. In either of the above events SK exits the SK.Run loop. When it exits, the Backend.OpenXR is disposed but SK is still in an initialized state. This mismatch prevents the Holographic of the SK remoting from remaining active and it terminates.
I would like to gracefully end a connection without terminating the Remoting App. How does SK decide when to exit the Run loop? Where can I intercept that and change the flow? Is that the right path to follow? I eventually want to have multiple Remote Apps running on the same hardware (server), ideas?

StereoKit will exit when OpenXR says it's shutting down, there shouldn't be a way for SK to remain active when OpenXR is done.
If SK shuts down from something like SK.Quit, it's possible that OpenXR may not be exiting as properly as it could be. I can look into that a bit.
The relevant code for exiting an OpenXR application is over here, there's no way to intercept and change this behavior from the top level, but you can use Backend.OpenXR.OnPollEvent to listen to these events as well.
https://github.com/StereoKit/StereoKit/blob/develop/StereoKitC/xr_backends/openxr.cpp#L729-L734

@maluoi I need your input please. Don't want to write a book so here is the short version. When the connection closes from the remoting player (client side on HL2) the remote "server" detects this and goes through the shutdown of the SK and the OpenXR. Ultimately and independently they both end where OpenXR finally calls the openxr_shutdown() method that destroys all the stuff created and the memory is freed. At the same time SK's SK.Run() method completes too. But SK does not completely clear itself. It is still initialized and still has values in its properties. It is still holding onto the Holographic IStepper instance even though it was destroyed in the shutdown's Clear() method that wipes out the IStepper list.
I have added some sync code that checks the state of the objects in the c++ and set the SK states to match. My problem is on the next connection after the first session has ended. I am cycling back to the "top" of the code after cleaning up and reinitializing SK which in turn ends up calling openxr_init() (openxr.cpp). On the first connect, the code runs down to the call to the OpenXR API's Loader in the XrResult result = xrCreateSession(xr_instance, &session_info, &xr_session); // calls extern OpenXR Loader an then it waits on a connection. On the second call to this method it does not wait but instead tries to open a flatscreen. I set the settings to not fallback so it crashes.
Any idea here on what might still be initialized that is causing the behavior?

Ah, I see! Multiple consecutive runs are still on shaky ground with SK. This wasn't something I was thinking about early on, so there's a couple patterns in the code that aren't too friendly to this concept! In particular, a lot of file scoped global variables are initialized at their definition rather than at initialization, which means their values tend to persist. I've been gradually improving the situation as I work on other code in those files, but I haven't ever done a full scrub of them.
I'm not sure if that's the core issue you're running into, it could also be something more specific. Leftover values do tend to manifest in pretty weird ways, so it can be tough to tell off the top of my head.
I'll look into the IStepper bit though, I wouldn't have expected that one to stick around.

@maluoi I'm picking my way through. I think the reason it is not waiting on a create session is becuase it has values that are being passed in when the second consecutive call occurs to the sk_init() method. I've traced it all the way down to where it is checking the platform in platform.cpp. Even though the display_type is Stereo something is causing it to fail the test. Below is my diagnostics. Note right at the end, it is failing on the display but the OpenXR is connecting and a new session is active. Then it crashes because I have the setting noFailToFlatScreen. Rather have a crash here since there will never be a flatscreen.

@maluoi When it fails here is the tinycthread.cpp and I added the mutex data that was available.
int mtx_lock(mtx_t *mtx) { #if defined(_TTHREAD_WIN32_)   if (!mtx->mTimed)   {     EnterCriticalSection(&(mtx->mHandle.cs));//mtx = 0x00007ffc63e36dd8 {StereoKitC.dll!mtx_t sk::input_key_pending_mtx} {mHandle={cs={DebugInfo=0x0000000000000000 <NULL> ...} ...} ...}   }

@maluoi This method is throwing the critical section error:
`bool systems_initialize() {
if (!systems_sort())
return false;
for (int32_t i = 0; i < systems.count; i++) {
	int32_t index = system_init_order[i];
	if (systems[index].func_initialize != nullptr) {
		log_diagf("Initializing %s", systems[index].name);

		// start timing
		uint64_t start = stm_now();

		if (!systems[index].func_initialize()) {
			log_errf("System %s failed to initialize!", systems[index].name);
			return false;
		}

		// end timing
		systems[index].profile_start_duration = stm_since(start);
	}
}
systems_initialized = true;
log_info("Initialization successful");
return true;

}
`

@maluoi well maybe not. input_keyboard_update.cpp Exception thrown at 0x00007FFCC6F83ABA (ntdll.dll) in StereoKitRemoting.exe: 0xC0000005: Access violation writing location 0x0000000000000024.

@maluoi What I know right now is the second connection fails to initialize the display. It goes through the platform_init() fine on the first connection. On the second connection everything runs as expected all the way through the if (!platform_set_mode(display_type)) { statement and it has the correct display_type (Stereo).
For some reason here it fails to start up the display and tries to fall back to flat screen (disabled in settings). Then it crashes.

@maluoi Here is the offending code in input_keboard.cpp. Input.cpp has input_update() method that calls the input_keyboard_update() method. My assumption is the input_update() is a target of a func pointer because there are no direct calls to this method yet it is called in the step method. The strange thing that I have not been able to find is why it is behaving as a flat screen keyboard after the first connection closes and the second one begins.
The ** section is the failure point with this line failing line, input_key_data.events    .add_range(input_key_pending  .data, input_key_pending  .count);
void input_keyboard_update() {
	input_text_reset();

	// Clear any just_in/active flags that were set on the last frame
	array_t<keyboard_event_t> &evts = input_key_data.events;
	for (int32_t i = 0; i < evts.count; i++) {
		if (evts[i].down)
			input_key_data.keys[evts[i].key] &= ~button_state_just_active;
		else
			input_key_data.keys[evts[i].key] &= ~button_state_just_inactive;
	}

	// Thread safe copy new key events into the main thread
	input_key_data.events.clear();
	input_key_data.characters.clear();
/**
	mtx_lock(&input_key_pending_mtx);
	input_key_data.events    .add_range(input_key_pending  .data, input_key_pending  .count);
	input_key_data.characters.add_range(input_chars_pending.data, input_chars_pending.count);
	input_key_pending  .clear();
	input_chars_pending.clear();
	mtx_unlock(&input_key_pending_mtx);
**/

	// Set key activity flags based on the new event queue
	evts = input_key_data.events;
	for (int32_t i = 0; i < evts.count; i++) {
		keyboard_event_t &evt = evts.get(i);
		if (evt.down) {
			input_key_data.keys[evt.key] |= button_state_just_active | button_state_active;
		} else {
			input_key_data.keys[evt.key] &= ~button_state_active;
			input_key_data.keys[evt.key] |=  button_state_just_inactive;
		}
	}
}

@maluoi And the saga of the code walk continues... In the input.cpp code has the following code.

bool input_init() {
	input_keyboard_initialize();
	input_hand_init();
	return true;
}

///////////////////////////////////////////

void input_shutdown() {
	input_keyboard_shutdown();
	input_pointers .free();
	input_listeners.free();
	input_hand_shutdown();
}

///////////////////////////////////////////

void input_update() {

	input_keyboard_update();
	input_hand_update();
}

When the first connection is established the input_init() is called. Later when the first connection ends, input_shutdown() is called. And as expected, the input_update() is called in the step. This indicates that during the initial capabilities search/configure these events were added to the system's event func pointers.
On the second connection input_init() is NOT called yet the input_update() is called. I have plenty of guesses as to what might be the problem but so far I am 0 for 3 at bat. Hoping you can shed light on this section of the code.

@maluoi You probably know this but...
About a million of these
D3D11 INFO: ID3D11DeviceContext::IASetVertexBuffers: Since NumBuffers is 0, the operation effectively does nothing. This is probably not intentional, nor is the most efficient way to achieve this operation. Avoid calling the routine at all. [ STATE_SETTING INFO #240: DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY] D3D11 INFO: ID3D11DeviceContext::DrawInstanced: The Pixel Shader unit expects a Shader Resource View at Slot 1, but none is bound. This is OK, as reads of an unbound Shader Resource View are defined to return 0. It is also possible the developer knows the data will not be used anyway. This is only a problem if the developer actually intended to bind a Shader Resource View here.  [ EXECUTION INFO #353: DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET]

@maluoi Starting back on this in the morning. I see the point in the sk_init() where the input_init method is connected to system as a func pointer. While it looks like the system array is cleared, there is undoubtedly a problem with the process somewhere. I hope you have some ideas. It does not appear that here is anything to do with flat screen as being the problem. It seems more likely that the events function pointers and not being cleared. Otherwise how would the input_update method be called in the step without initialization.

@maluoi Up above I added an update message so you don't have to read all my tracing of the code and the results. Here is that update:
I have traced this code as the comments below show. The root cause seems to be the failure of the Stereo Display to initialize on the second connection. After it fails to initialize with no fall back to flat screen the application is confused because there is no place to go. However the initialization sequence continues for the other components. SK.Run is called at that point the input now looking for a keypress operation fails, with a hard error in a critical section - game over!
At present I don't know why the display is failing to initialize. Also, the Initialization error is almost identical to another error message that I missed it for several days. In platform.cpp the platform error reads: "Platform initialization failed!" When the code runs and there is a System error during initialization, the error read: "System Platform failed to initialize!" The fact is, there never was a "platform" initialization error except it was the result of the real error when the Stereo Display failed to initialize. The error for the display is very clear and it came first. Without the display there was no reason to proceed and should have failed the entire initialization. Instead, it tried to continue and lead me far afield searching for some keyboard/platform errors that are ghosts.
Nest up, fine the absolute root cause of the display initialization failure.

@maluoi Here is the absolute root cause. When the second connection occurs the code in platform calls #elif defined(SK_OS_WINDOWS) 			result = win32_start_post_xr  (); . That method is in win32.cpp where on the first connection it creates a Windows "window" for input. That window is not destroyed by the code in its clean up. You can tell because the little window is visible on screen and the toolbar shows it as running. When the second connection occurs the code does not check for the window but tries to create another one.
I'm not sure what you are doing with the Window elsewhere in the code but I think it is best to just destroy the window on cleanup? Can you help me with that?

@maluoi I added in win32.cpp to the win32_shutdown() method the following code: DestroyWindow(win32_window);. I don't have time at the moment to continue testing but a quick run still has same problem, the Display fails to start. MS documentation mentions cleaning up other handles and allocation after a DestroyWindow command.

@maluoi Well I successfully destroyed the window:
void win32_shutdown() {
	DestroyWindow(win32_window);
	win32_window = nullptr;
	UnregisterClass(sk_app_name, win32_hinst);
	win32_hinst = nullptr;
	win32_swapchain_initialized = false;
	win32_openxr_base_winproc = 0;
}

That left the UISettings initialized so the failure moved deeper. To fix that issue I added to the SK.cs this line private static UISettings _initializedSettings = NativeAPI.ui_get_settings();  and I added some code in the Stereokit.cpp file to allow me to refresh the skui_settings with this code:
void ui_set_settings(ui_settings_t settings) {	// JLA  	skui_settings = settings; }
I then had to add a signature in the stereokit.h for the new method and had to add the method to the NativerAPI.cs so I could call it from C#. Then I added a new method to SK.cs to call the settings refresh:
		public static void ResetUISettings()
		{
			NativeAPI.ui_set_settings(_initializedSettings);
		}

Next I added this method to my program main() method after the SK.Run() method to restore the beginning settings.
So the system is now actually reconnecting and is failing in the mesh.cpp at this method void _mesh_set_verts(mesh_t mesh, const vert_t *vertices, uint32_t vertex_count, bool32_t calculate_bounds, bool update_original) which tells me there is still some missing reinitializations left to do.
I think I'm getting very close.

@maluoi been gone for a couple weeks demonstrating to customers. I'm back on the problem trail again. In refreshing my brain on where I left off, I noticed an odd behavior where there is a noticeable latency somewhere in the update cycle. It's like the service is sleeping for short period. The effect is a problem with the head tracking causing the cube in the test program to jump to a new position when the head is moved significantly relative to the cube object. I'm beginning to think the problems are very deep in the core of the SK when remoting.


HBASE-23217 Set version as 2.2.3-SNAPSHOT in branch-2.2

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

:blue_heart:
reexec
0m 40s
Docker mode activated.

_ Prechecks _

:green_heart:
dupname
0m  1s
No case conflicting files found.

:green_heart:
@author
0m  0s
The patch does not contain any @author tags.

:yellow_heart:
test4tests
0m  0s
The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ branch-2.2 Compile Tests _

:blue_heart:
mvndep
0m 26s
Maven dependency ordering for branch

:green_heart:
mvninstall
6m 34s
branch-2.2 passed

:green_heart:
compile
3m 26s
branch-2.2 passed

:green_heart:
checkstyle
3m  1s
branch-2.2 passed

:green_heart:
shadedjars
4m 59s
branch has no errors when building our shaded downstream artifacts.

:green_heart:
javadoc
14m  7s
branch-2.2 passed

_ Patch Compile Tests _

:green_heart:
mvninstall
6m  0s
branch-2.2 passed

:blue_heart:
mvndep
6m 23s
Maven dependency ordering for patch

:green_heart:
mvninstall
5m 52s
the patch passed

:green_heart:
compile
3m 21s
the patch passed

:green_heart:
javac
3m 21s
the patch passed

:green_heart:
checkstyle
2m 46s
the patch passed

:green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

:green_heart:
xml
0m 52s
The patch has no ill-formed XML file.

:green_heart:
shadedjars
4m 23s
patch has no errors when building our shaded downstream artifacts.

:green_heart:
hadoopcheck
16m 43s
Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.

:green_heart:
javadoc
12m 29s
the patch passed

_ Other Tests _

:broken_heart:
unit
189m 24s
root in the patch failed.

:green_heart:
asflicense
17m 10s
The patch does not generate ASF License warnings.

304m 33s

Reason
Tests

Failed junit tests
hadoop.hbase.snapshot.TestExportSnapshotNoCluster

hadoop.hbase.snapshot.TestSecureExportSnapshot

Subsystem
Report/Notes

Docker
Client=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-759/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/759

Optional Tests
dupname asflicense javac javadoc unit shadedjars hadoopcheck xml compile checkstyle

uname
Linux e163e7e57816 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 GNU/Linux

Build tool
maven

Personality
/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-759/out/precommit/personality/provided.sh

git revision
branch-2.2 / eab65b6bed

Default Java
1.8.0_181

unit
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-759/1/artifact/out/patch-unit-root.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-759/1/testReport/

Max. process+thread count
4533 (vs. ulimit of 10000)

modules
C: hbase-checkstyle hbase-annotations hbase-build-configuration hbase-protocol-shaded hbase-common hbase-metrics-api hbase-hadoop-compat hbase-metrics hbase-hadoop2-compat hbase-protocol hbase-client hbase-zookeeper hbase-replication hbase-resource-bundle hbase-http hbase-procedure hbase-server hbase-mapreduce hbase-testing-util hbase-thrift hbase-rsgroup hbase-shell hbase-endpoint hbase-it hbase-rest hbase-examples hbase-shaded hbase-shaded/hbase-shaded-client hbase-shaded/hbase-shaded-client-byo-hadoop hbase-shaded/hbase-shaded-mapreduce hbase-external-blockcache hbase-hbtop hbase-assembly hbase-shaded/hbase-shaded-testing-util hbase-shaded/hbase-shaded-testing-util-tester hbase-shaded/hbase-shaded-check-invariants hbase-shaded/hbase-shaded-with-hadoop-check-invariants hbase-archetypes hbase-archetypes/hbase-client-project hbase-archetypes/hbase-shaded-client-project hbase-archetypes/hbase-archetype-builder . U: .

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-759/1/console

versions
git=2.11.0 maven=2018-06-17T18:33:14Z)

Powered by
Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.


[vSphere] Problem with pause image in offline installation from local mirror Docker repository

Hi,
today we tried out to create a cluster with a private registry.
We expected that the installation of OKD 4 Beta 4 can be performed completely offline by pulling images only from our local mirror docker repository.

We mirrored the images with 'oc adm mirror ...' to our Artifactory repo (as described in contributing.md).
We created installation manifests, started the bootstrap VM. Internet access was deactivated (we are behind a proxy and no proxy vars were set anywhere).
The bootstrap VM started pulling images from the private registry.
3.1 It pulled ~4 images and rebooted automatically.
3.2 Then after pulling approx. 13 images in total there was no more progress.
We compared everything with an older Beta 4 cluster that was created with internet access enabled (proxy vars set) and that pulled images from the internet without pull secrets. We saw that the list of images on this older, working cluster looks like this:

quay.io/openshift/okd           <none>   0eb9872f5f2f   5 weeks ago    303 MB
quay.io/openshift/okd-content   <none>   39fa98d4ce77   7 weeks ago    921 MB
quay.io/openshift/okd-content   <none>   e675022f0bfd   7 weeks ago    435 MB
quay.io/openshift/okd-content   <none>   4d1b68550c96   7 weeks ago    638 MB
quay.io/openshift/okd-content   <none>   a4cc9bdeb3da   8 weeks ago    304 MB
quay.io/openshift/okd-content   <none>   8a23e572a72b   8 weeks ago    291 MB
quay.io/openshift/okd-content   <none>   7ac1a7467d5e   2 months ago   289 MB
quay.io/openshift/okd-content   <none>   17fbb4685894   2 months ago   312 MB
quay.io/openshift/okd-content   <none>   852d52c83d96   2 months ago   290 MB
quay.io/openshift/okd-content   <none>   efe30bfdf339   2 months ago   288 MB
quay.io/openshift/okd-content   <none>   def0beca4fd4   2 months ago   294 MB
quay.io/openshift/okd-content   <none>   d8a6f3297327   3 months ago   275 MB
quay.io/openshift/okd-content   <none>   8dfb11025aa5   3 months ago   287 MB
quay.io/openshift/okd-content   <none>   c9fd92a1a557   3 months ago   268 MB
quay.io/openshift/okd-content   <none>   e6adc2b9095f   3 months ago   267 MB
k8s.gcr.io/pause                3.1      da86e6ba6ca1   2 years ago    749 kB

We saw that the image k8s.gcr.io/pause was not mirrored to Artifactory.
@cgwalters told me that there was a bug with the pause image in OCP and that it has been fixed.
I compared some files that should fix that and I saw that in /etc/crio/crio.conf this lines indicates that the pause image should be:

pause_image = "quay.io/openshift/okd-content@sha256:6e848b9eb42cd4a009b3f02518b3699cbc12d5f84fa2737084c7b73df4f5f5af"

But I don't see any image with this sha. Not even in the working cluster that pulled every image from the internet. The list of images in a working bootstrap VM looks like this:
[root@chmu2b0 bin]# podman images --no-trunc
REPOSITORY                      TAG      IMAGE ID                                                                  CREATED        SIZE
quay.io/openshift/okd           <none>   sha256:0eb9872f5f2fa138a25aa20f4f530ccb3f4c181178e8b2bfe7ff05cdfb7a1e4c   5 weeks ago    303 MB
quay.io/openshift/okd-content   <none>   sha256:39fa98d4ce7720dc50ff35b8a7eecdd38a208d0f17447ef72eb45ab9b7991eb1   7 weeks ago    921 MB
quay.io/openshift/okd-content   <none>   sha256:e675022f0bfdb864d279fc9e0d1d795340ab228c4b77a70d82adaa81e971f221   7 weeks ago    435 MB
quay.io/openshift/okd-content   <none>   sha256:4d1b68550c962f3a51e73a8108762c61025acd4b950414820ff717b16aee1976   7 weeks ago    638 MB
quay.io/openshift/okd-content   <none>   sha256:a4cc9bdeb3da45c1d1f824432381a2f34db1bf53949c344f2ae3f3fa3b37d989   8 weeks ago    304 MB
quay.io/openshift/okd-content   <none>   sha256:8a23e572a72b73a7b60d010fc470c128e2739805b99a825f632de886edd306aa   8 weeks ago    291 MB
quay.io/openshift/okd-content   <none>   sha256:7ac1a7467d5eabee2ad5b3fc16f2fab41bae687af791a9e58f461f33d7c67f57   2 months ago   289 MB
quay.io/openshift/okd-content   <none>   sha256:17fbb4685894bebb2a4d70fa1ca4c484d18c08c07e63e4a55c58766c359d55ef   2 months ago   312 MB
quay.io/openshift/okd-content   <none>   sha256:852d52c83d96d1d567af2ee2e0ea8c534aa157cd844ad9593f42969038f936c1   2 months ago   290 MB
quay.io/openshift/okd-content   <none>   sha256:efe30bfdf339031cb587932a8ab1380a04a2d7dffdccac34847877c784136503   2 months ago   288 MB
quay.io/openshift/okd-content   <none>   sha256:def0beca4fd42f1a7d9c26211176588dd79b090871ace66687076cbe525445ae   2 months ago   294 MB
quay.io/openshift/okd-content   <none>   sha256:d8a6f32973275841e2e94c79dcb10efbc0c843383a25dff8f06ce7cad07827b5   3 months ago   275 MB
quay.io/openshift/okd-content   <none>   sha256:8dfb11025aa570351592b9c009861b6679e180221a9121b6516ad757fdf00ca2   3 months ago   287 MB
quay.io/openshift/okd-content   <none>   sha256:c9fd92a1a5573792cb53a7f5b414041c5723959033703e0eebf107d99a71d6eb   3 months ago   268 MB
quay.io/openshift/okd-content   <none>   sha256:e6adc2b9095f6e2c0f8b7d6b0b651e54563b342d04f9963eaf21e933729e4d35   3 months ago   267 MB
k8s.gcr.io/pause                3.1      sha256:da86e6ba6ca197bf6bc5e9d900febd906b133eaa4750e6bed647b0fbe50ed43e   2 years ago    749 kB

Is it possible that the pause image referenced in the crio.conf file is missing from the release payload in OKD 4 and that an old pause image is used instead which must be pulled from the internet?
Greetings,
Josef

Only the bootstrap VM shows this pause image. Neither the master VMs nor the worker VMs download it.
I assume that it seems to be a race condition with the crio systemd service maybe starting before the /etc/crio/crio.conf got the pause_image field set. Because if this field is not set, crio seems to try to pull the pause image from the internet, causing a problem in an offline environment.

This is odd. During boot we do the following:

Start fresh FCOS image (no crio there)
Pivot it to machine-os-content. This adds a new deployment with crio and reboots the machine
On next boot bootkube.service is started, find out the pivot is done and configures crio

Apparently on step 3 between start and crio-configure cri-o service starts and attempts to pull gcr.io image. However I wonder why -  kubelet is not started at this point so nothing commands crio to start containers. Does it pre-pull pause_image?
Josef, could you attach journalctl for initial and pivoted boots?

Here it is.
journal.log

That's weird, so its your kubelet requesting it:
May 22 16:08:40 chmu2b0 hyperkube[975]: I0522 16:08:40.007773     975 flags.go:33] FLAG: --pod-infra-container-image="k8s.gcr.io/pause:3.1"
...
May 22 16:09:02 chmu2b0 crio[924]: time="2020-05-22 16:09:02.193980947Z" level=warning msg="imageStatus: can't find k8s.gcr.io/pause:3.1" id=4380e9ad-e1a5-4b56-bf85-0f8aff8f2564

That's Beta4 right? Could you give it a try with a newer stable image?

Yes it's OKD 4 Beta 4.
I will try a newer FCOS image on monday.

Also with FCOS version 20200505.3.0 I have this problem:
[root@chmu2b0 bin]# journalctl --no-pager | grep pause
May 25 09:01:31 chmu2b0 systemd[1]<EMAIL_ADDRESS>Killing process 1458 (podman pause) with signal SIGKILL.
May 25 09:01:43 chmu2b0 hyperkube[976]: I0525 09:01:43.554350     976 flags.go:33] FLAG: --pod-infra-container-image="k8s.gcr.io/pause:3.1"
May 25 09:02:05 chmu2b0 crio[921]: time="2020-05-25 09:02:05.892460066Z" level=warning msg="imageStatus: can't find k8s.gcr.io/pause:3.1" id=375da15f-f38c-4fcd-88b5-ce3b6045834b

The machine-config-daemon binary also contains a hard coded "k8s.gcr.io" string.

This PR should fix it:
https://github.com/openshift/installer/pull/3652/commits/4e3580533da7541df6b4c4e97dd4ea4b87904feb

PR was merged. I will close this issue.


whether pretrained weights can be provided

Hi, I would first want to use your model to evaluate its predictive effect on my custom dataset, and I wonder whether pretrained weights can be provided, thank you.

Are pretrained weights available anywhere? I can only see the data files in the zip files. Can you please provide the pretrained weights?


[BUG] 3.2.00-alpha5 Cata

only so far seems to be on Cata,  GSE-3.1.69. was fine.
keep up the good work.
1x GSE/API/StringFunctions.lua:412: bad argument #1 to 'ipairs' (table expected, got string)
[string "=[C]"]: in function `ipairs'
[string "@GSE/API/StringFunctions.lua"]:412: in function <GSE/API/StringFunctions.lua:407>
[string "@GSE/API/StringFunctions.lua"]:413: in function <GSE/API/StringFunctions.lua:407>
[string "@GSE/API/StringFunctions.lua"]:413: in function `flatten'
[string "@GSE/API/StringFunctions.lua"]:416: in function `FlattenTable'
[string "@GSE/API/Storage.lua"]:842: in function `CompileTemplate'
[string "@GSE/API/Storage.lua"]:236: in function `OOCUpdateSequence'
[string "@GSE/API/Events.lua"]:363: in function `?'

Locals:
(*temporary) = "/click GSE.Pause"
(*temporary) = "table expected, got string"
 = <function> defined =[C]:-1

3.2.00 will never work on Cata.  3.1.69 will be the last update for Cata until Cata is updated with the TWW macro text changes.

I have confirmed that this pause problem exists in TWW and have resolved it

I have confirmed that this pause problem exists in TWW and have resolved it

ah nice, i was going to say, as i was testing it out in TWW,
i take it classic will also stay at 3.1.69?

At this stage yes.It’s one of those things where if it’s not broken don’t fix it.TimothyLukeOn 13 Jun 2024, at 10:03 AM, Andyauk @.***> wrote:
I have confirmed that this pause problem exists in TWW and have resolved it
ah nice, i was going to say, as i was testing it out in TWW,
i take it classic will also stay at 3.1.69?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>


Exercise 37: Using External Variables ("external_variables") ("Chapter 4.3")

Looking for help creating exercise:
Topic: Using External Variables
Exercise Directory Name: external_variables
Note: For Directory Name, refer to the exercises directory to find the correct number to use. It should be close to the number in the issue title but may be slightly off.
Refer to "The C Programming Language" book, Chapter 4.3 for more information.
Contribution instructions: https://github.com/danwritecode/clings?tab=readme-ov-file#contributions

I will take the whole chapter 4

sounds good @sleaper...fyi, I'm in the middle of a product launch for the product I'm working on. will try to get some clings exercises done soon. just wanted to update you on what i'm currently focused on


phinx - Migration error

I'll try use bin/cake migrations migrate, but get error
My DATABASE_URL="mysql://root:qwerty@localhost/database?encoding=utf8&timezone=UTC&cacheMetadata=true&quoteIdentifiers=false&persistent=false"
 - /application/config/Migrations
using seed paths
 - /application/config/Seeds
Exception: There was a problem connecting to the database: SQLSTATE[HY000] [2002] No such file or directory in [/application/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php, line 82]
2020-09-28 12:41:27 Error: [InvalidArgumentException] There was a problem connecting to the database: SQLSTATE[HY000] [2002] No such file or directory in /application/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php on line 82
Stack Trace:
#0 /application/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/MysqlAdapter.php(116): Phinx\Db\Adapter\PdoAdapter->createPdoConnection()
#1 /application/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php(148): Phinx\Db\Adapter\MysqlAdapter->connect()
#2 /application/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/AdapterWrapper.php(496): Phinx\Db\Adapter\PdoAdapter->getConnection()
#3 /application/vendor/cakephp/migrations/src/CakeAdapter.php(56): Phinx\Db\Adapter\AdapterWrapper->getConnection()
#4 /application/vendor/cakephp/migrations/src/Command/CommandTrait.php(78): Migrations\CakeAdapter->__construct()
#5 /application/vendor/robmorgan/phinx/src/Phinx/Console/Command/Migrate.php(63): Migrations\Command\Migrate->bootstrap()
#6 /application/vendor/cakephp/migrations/src/Command/CommandTrait.php(35): Phinx\Console\Command\Migrate->execute()
#7 /application/vendor/cakephp/migrations/src/Command/Migrate.php(66): Migrations\Command\Migrate->parentExecute()
#8 /application/vendor/symfony/console/Command/Command.php(255): Migrations\Command\Migrate->execute()
#9 /application/vendor/symfony/console/Application.php(912): Symfony\Component\Console\Command\Command->run()
#10 /application/vendor/symfony/console/Application.php(264): Symfony\Component\Console\Application->doRunCommand()
#11 /application/vendor/symfony/console/Application.php(140): Symfony\Component\Console\Application->doRun()
#12 /application/vendor/cakephp/migrations/src/Shell/MigrationsShell.php(108): Symfony\Component\Console\Application->run()
#13 /application/vendor/cakephp/cakephp/src/Console/Shell.php(531): Migrations\Shell\MigrationsShell->main()
#14 /application/vendor/cakephp/migrations/src/Shell/MigrationsShell.php(169): Cake\Console\Shell->runCommand()
#15 /application/vendor/cakephp/cakephp/src/Console/CommandRunner.php(385): Migrations\Shell\MigrationsShell->runCommand()
#16 /application/vendor/cakephp/cakephp/src/Console/CommandRunner.php(162): Cake\Console\CommandRunner->runShell()
#17 /application/bin/cake.php(12): Cake\Console\CommandRunner->run()
#18 {main}

What's wrong?

This might be more a ticket for migrations plugin:  https://github.com/cakephp/migrations/
But even then this looks more like a support issue for the slack channel or alike.

SQLSTATE[HY000] [2002] No such file or directory means PHP tries to use Unix socket file to connect to MySQL, but it doesn't exist or is not accessible. A Unix socket file is used if you do not specify a host name or if you specify the special host name localhost.
Make sure socket file exists (default /tmp/mysql.sock), check what path MySQL server uses.
Alternatively, use <IP_ADDRESS> as hostname to use TCP to connect to MySQL, but Unix socket file connection is faster than TCP/IP.
https://dev.mysql.com/doc/refman/5.7/en/can-not-connect-to-server.html
https://stackoverflow.com/questions/20723803/pdoexception-sqlstatehy000-2002-no-such-file-or-directory


🐛 | 2.4 Could not register RFID cards with RC522

Bug
i installed 2021-12-02-raspios-buster-armhf-lite on a raspberry pi 3
i used the B. Developer install script for Buster
i use the PC522 reader
Hifiberry Miniamp as Soundcard
i could not register new cards with the Phoniebox software.
It works when i use the simple script from https://pimylifeup.com/raspberry-pi-rfid-rc522/
i also checked with:
sudo systemctl status phoniebox-rfid-reader
● phoniebox-rfid-reader.service - Phoniebox RFID-Reader Service
Loaded: loaded (/etc/systemd/system/phoniebox-rfid-reader.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-11-15 21:35:22 CET; 5min ago
Main PID: 537 (python3)
Tasks: 2 (limit: 871)
CGroup: /system.slice/phoniebox-rfid-reader.service
└─537 python3 /home/pi/RPi-Jukebox-RFID/scripts/daemon_rfid_reader.py
Nov 15 21:35:22 raspberrypi systemd[1]: Started Phoniebox RFID-Reader Service.
Nov 15 21:35:24 raspberrypi daemon_rfid_reader.py[537]: 2022-11-15 21:35:24,634 - root - INFO - Dir_PATH: /home/pi/RPi-Jukebox-RFID/scripts
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-10/10 (END)
i also did the troubleshootings steps from the wiki side without any success.

one comment: when i use the simple script from https://pimylifeup.com/raspberry-pi-rfid-rc522/ i get this:
/usr/local/lib/python3.7/dist-packages/mfrc522/MFRC522.py:151: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(pin_rst, GPIO.OUT)
Waiting for you to scan an RFID sticker/card
AUTH ERROR!!
AUTH ERROR(status2reg & 0x08) != 0
The ID for this card is:<PHONE_NUMBER>73
pi@raspberrypi:~ $ python Read.py
Waiting for you to scan an RFID sticker/card
AUTH ERROR(status2reg & 0x08) != 0
Error while reading!
Error while reading!
The ID for this card is:<PHONE_NUMBER>83
pi@raspberrypi:~ $

What happens if you try to start the rfid service?
$ sudo systemctl start phoniebox-rfid-reader
If it crashes on launch, what does this output:
$ sudo journalctl -xeu phoniebox-rfid-reader

Hello! I tried with the 2.4 installation and now it works really nice. Thank you all for this update!


Lin Similarity Problems

When the Lin similarity is calculated there are values over 1. Also some of the similarities for the same term pairs calculated as 0. I'm attaching a screen shot of some sample terms.

Thank you for opening this issue. I will take a look at this shortly.

Thanks,
I think for the 0 calculation problem the order of the if controls needed to be changed in the function as below;
def lin_sim_calc(goid1, goid2, sim_r, termcnts):
'''
Computes Lin's similarity measure using pre-calculated Resnik's similarities.
'''
if sim_r is not None:
info = get_info_content(goid1, termcnts) + get_info_content(goid2, termcnts)
if sim_r == 0:
return 1.0 if goid1 == goid2 else 0.0
if info != 0:
return (2*sim_r)/info
return None

Thank you. I am using this code in my PhD thesis, and have it fixed in beta repo, but need to move the fix over to the GOATOOLs production code. I am just wrapping up a manuscript now, so can look at it starting Thursday.


Fails to compile with gccgo

When I try to compile github.com/syncthing/syncthing, which uses quic-go as a dependency, with gccgo I came accross the following error:
% CGO_ENABLED=1 go run build.go -no-upgrade
Notice: Next generation GUI will not be built; see --with-next-gen-gui.
......
# github.com/lucas-clemente/quic-go/internal/qtls
/tmp/ccw2vu1Y.s: Assembler messages:
/tmp/ccw2vu1Y.s:5968: Error: junk `.cipherSuiteTLS13ByID ' after expression
/tmp/ccw2vu1Y.s:5968: Error: invalid operands (*UND* and *UND* sections) for `/'
/tmp/ccw2vu1Y.s:5968: Error: invalid operands (*UND* and *UND* sections) for `/'
/tmp/ccw2vu1Y.s:5968: Error: can't resolve `L0' {*ABS* section} - `go1' {*UND* section}
exit status 2
exit status 1

As mentioned in #2883, the problem may be with go:linkname. It seems to me that gccgo is looking for mangled function names here.
After manually mangling the function name ( '.'->'_0' '/'->'_1' '-'->'_x2d')
//go:linkname cipherSuiteTLS13ByID "github_0com_1marten_x2dseemann_1qtls_x2dgo1_x2d15.cipherSuiteTLS13ByID"

I managed to compile the package and the resulted binary seems working fine.
Maybe a new conditional file with // +build gccgo can solve this better?

I'd be happy to accept a PR for this.
Is there any way we can test this in CI? Maybe in the cross-compile test?

I assume this has been fixed by switching to crypto/tls (for Go 1.21). Please reopen if you're still running into problems.


Cancel blocking DNS lookup if GaiFuture dropped

The GaiFuture owns a Tokio JoinHandle, spawning a call to getaddrinfo in a blocking thread. If a request times out before the blocking thread started the call, we should have it removed from the queue. That can be done with impl Drop for GaiFuture that calls JoinHandle::abort().

Hi! Looking to get into the code-base and contributing to it, so I will give this a shot as a start!

You shouldn't need any special permissions to open a pull request. You will need to make a fork of the repo and push your changes to that, though.

Ah yeah, all good 👍


Minor fixes for documentation.

Coverage increased (+0.06%) to 82.939% when pulling 08ad161476162fa283901c7dc7f45b4c618369e3 on PRED-946 into 59fc163766105721b72def2cc8c3ee59b972e33f on master.

make sure you run make test to test the RST that will go up on PYPi

it's green.

@jendavies addressed 99% of them

Coverage remained the same at 82.882% when pulling 881d12e1fbc1c0edc53d4131c3b1a7b076c158de on PRED-946 into 59fc163766105721b72def2cc8c3ee59b972e33f on master.

LGTM


NearInteractionTouchable gets touch up when finger goes more than 20cm behind front surface

Describe the bug
NearInteractionTouchables will always get a TouchUp or PointerUp event when a finger goes more than 5 cm behind a surface, even if a collidable is actually much larger.
To reproduce

Import the following .unitypackage into mrtk_development latest
repro.zip
Open repro scene and hit play.
Move finger forward into the collider and watch the cube and output window (it will output time of touch down / up events, as well as change cube color)

Expected behavior
I should only get a touch up event when I leave the back of the collider
Actual behavior
I get a touch up event as soon as I'm 0.2m away from front of collider, even though my collider is huge.
Screenshots

Your Setup (please complete the following information)

Unity Version 2018.3.9f1
MRTK Version mrtk_development

@thalbern, I don't have much on my plate at the moment. Do you mind if I grab this one?

closing since the related PR seems to be merged

@julenka  please reopen if you think this issue is not fixed


Aliased Comumn: data not displayed

Hi
My final objective is to have one line per user in the grid (ok for now) and to have a favoris_id column with the id or null (then with JS I can manage to show if the contact is part of the user favorite or not with ajax to add or remove the favorite).
if I use annotations to add the column, I end with one line per existing favorite across users instead of 1 line with null or id for the logged-in user.
I am therefore manipulating the query to add a field and then adding an aliased column. The generated query is ok, the column si displayed but the cells are empty and they do not show f.id.
Here is my query:
$source->manipulateQuery(
                function ($query) use ($alias, $userId, $sourceType) {
                    $query
                        ->addSelect('f.id favorisid')
                        ->leftJoin($alias . '.usersFavoris', 'f', 'WITH', 'f.user = :user')
                        ->andWhere($alias . '.source = :sourceparam')
                        ->setParameter('user', $userId)
                        ->setParameter('sourceparam', $sourceType)
                    ;
                }

Here is my aliased column:
        // Add Column favoris_id
        $myCol = new TextColumn(
            array(  'id'            => 'favoris_id',
                    'title'         => 'favoris id',
                    'field'         => 'favorisid', // The aliased name
                    'isManualField' => true, // Indicate it is a manual (or aliased) field
                    'isAggregate'   => false, // Defaults to false, set true if using aggregate func. like SUM()
                    'source'        => true, // Indicates the grid should retrieve it from the source (the query)
        ));
        $grid->addColumn($myCol,8);

Here is the relevant part of the contacts entity:
    /**
     * @ORM\OneToMany(targetEntity="Curuba\contactsBundle\Entity\contactsFavoris", mappedBy="contact", orphanRemoval=true, cascade={"remove", "persist"})
     * @ORM\JoinColumn(nullable=true)
     */
    private $usersFavoris;

The runnable query provided by the profiler is correct:
SELECT c0_.nom AS nom0, c0_.prenom AS prenom1, e1_.nom AS nom2,
f2_.fonction AS fonction3, u3_.fullname AS fullname4, c0_.updated AS updated5,
c0_.id AS id6, c0_.fullname AS fullname7, c0_.prefix AS prefix8,
c0_.communications AS communications9, e1_.cp AS cp10, e1_.adresse AS adresse11,
f2_.persomail AS persomail12, c4_.nom AS nom13, s5_.nom AS nom14, s6_.nom AS nom15,
c7_.id AS id16
FROM contacts c0_
LEFT JOIN fonctions f2_ ON c0_.id = f2_.contact_id
LEFT JOIN entites e1_ ON f2_.entite_id = e1_.id
LEFT JOIN users u3_ ON c0_.referent_id = u3_.id
LEFT JOIN categories c4_ ON e1_.categorie_id = c4_.id
LEFT JOIN souscategories s5_ ON e1_.souscategorie_id = s5_.id
LEFT JOIN sources s6_ ON e1_.source_id = s6_.id
LEFT JOIN contactsFavoris c7_ ON c0_.id = c7_.contact_id AND (c7_.user_id = 59)
WHERE c0_.source_id = 1
ORDER BY c0_.fullname ASC
LIMIT 20

Hi there I'd love to have some feedback on this. For you information, I also posted on Stackoverflow

Did you try to set the Column's id to "favorisid" (and not favoris_id)

Hmm... I thought I had tried that but apparently not because it's working perfectly fine now.
Thanks a lot.
However I wonder why we have a 'field' parameter if names have anyway to be the same.


DOC ID TAG

B/c it's two words, maybe something like DocID?

Paging @thatoddmailbox @thatoddmailbox @thatoddmailbox

@medensqui That's a smart idea. What color, though....


Avoid NPE on Camel Tests

Description
Affects camel-test component. Related to https://issues.apache.org/jira/browse/CAMEL-20838
Fixes errors like:
java.lang.NullPointerException: Cannot invoke "org.apache.camel.test.junit5.CamelContextManager.setGlobalStore(org.junit.jupiter.api.extension.ExtensionContext$Store)" because "this.contextManager" is null
        at org.apache.camel.test.junit5.CamelTestSupport.beforeAll(CamelTestSupport.java:148)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        Suppressed: java.lang.NullPointerException: Cannot invoke "org.apache.camel.test.junit5.CamelContextManager.stop()" because "this.contextManager" is null
                at org.apache.camel.test.junit5.CamelTestSupport.afterAll(CamelTestSupport.java:153)
                ... 1 more

when running camel tests.
Target

[x] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking
https://issues.apache.org/jira/browse/CAMEL-20838

[x] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[x] I checked that each commit in the pull request has a meaningful subject line and body.

[x] I have run mvn clean install -DskipTests locally and I have committed all auto-generated changes

@santam85 please, can you try with this one instead: https://github.com/apache/camel/pull/14652

Updated the PR to avoid creating the contextManager in beforeAll everytime

Addressed all comments


Recurrence events

We need recurrent events in order to keep schedules for each parroquia. The events must also include information about the event, as well as be able to schedule more complicated rules.

We will be using later.js, I will start a new branch and finish that today :grinning: @roman0316


[ZED][Object Detection] Segmentation Fault

I'm running the Cuda 9.0 version of the 3.1.1 SDK (Ubuntu 16) and enabling object_detection in the example:
zed.enable_object_detection(obj_param)
gives me the following error:
[ZED][Object Detection] Please wait while the AI model is being optimized for your graphics card
 This operation will be run only once and may take a few minutes  -TensorRT error in yolo.cpp : bool Yolo::createYOLOEngine(nvinfer1::Data
Type, std::__cxx11::string, Int8EntropyCalibrator*) at 874.
 Done
[ZED][Object Detection] Please wait while the AI model is being optimized for your graphics card
 This operation will be run only once and may take a few minutes  /Segmentation fault (core dumped)

What is your hardware configuration, especially the GPU?
It could be that there's not enough memory to create the engine (the initial model optimization takes more memory than during runtime).

What is your hardware configuration, especially the GPU?
It could be that there's not enough memory to create the engine (the initial model optimization takes more memory than during runtime).

Thanks for the reply. I have a GTX 2080 with 12GB (Nvidia Driver 410.104). This is my main deep-learning station so it can definitely run torch/tensorflow etc. I am executing all of these within docker containers though.
Do you know if there is a way for me to trace the error since I assume segmentation fault is not the full trace? Or perhaps disable optimisation (is doing cudnn exhaustive search for the CNN algo?) or run within cudnn?

Your GPU definitely has enough memory to run. Unfortunately, you can't have the full trace.
What's running here is that TensorRT is optimizing the model to your specific GPU to generates an engine. Several things are going on but basically, TensorRT tries all the algorithm to see which variant is the fastest, for a RTX 20XX it will also quantize to at least FP16, there's also network pruning and layers fusion. TensorRT is using cuDNN is the backend.
You don't have control over this, it tries by itself the best possible and automatically handles it.
A segfault at this step is usually caused by a lack of GPU memory (definitely not the case here) or sometimes a corrupted model file. This typically applied when running natively so Docker might have something to do with this (like Tensor Core support ?).
The model file is stored in /usr/local/zed/resources/. The md5 checksum of objects_1.2.model should be ebac8fb3a731022b001d44f713ef0e19. The engine ('optimized model'), once generated is located next to the model, for instance with a name like '.objects_1.2.model_optimized-dcabl-75-10000-7605-7000'.
When running there are some temp files generated that can also be corrupted. Natively rebooting is enough to clear them, in docker I'm not sure what's the behavior to clean the /tmp folder.
To try to replicate this, could you give me the docker image used and the command you used to run it?


Dependabot couldn't find a pom.xml

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
maven
Package manager version
3.6.3
Language version
Java 11
Manifest location and content before the Dependabot update
https://github.com/corelogic-private/tax_us-owf-one_workflow/blob/master/pom.xml
dependabot.yml content
https://github.com/corelogic-private/tax_us-owf-one_workflow/blob/master/.github/dependabot.yml
Updated dependency
No response
What you expected to see, versus what you actually saw
I expected dependabot to make a pull requests to update vulnerable dependencies, but instead I'm getting 'couldn't find a pom.xml" error.

Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
logs:
proxy | 2024/07/16 07:29:40 proxy starting, commit: 55780eab5bb13ade7d1efacb154016772a202172
  proxy | 2024/07/16 07:29:40 Listening (:1080)
updater | 2024-07-16T07:29:41.305297785 [856399951:main:WARN:src/devices/src/legacy/serial.rs:222] Detached the serial input due to peer close/error.
updater | time="2024-07-16T07:29:43Z" level=info msg="guest starting" commit=e9caa1c68212314d445ef091e3048abbb0421056
updater | time="2024-07-16T07:29:43Z" level=info msg="starting job..." fetcher_timeout=10m0s job_id=856399951 updater_timeout=45m0s updater_version=0d13810974d0aeba548fa3b0dc1bdc2ca84fa48a-maven
updater | 2024/07/16 07:29:47 INFO <job_856399951> Starting job processing
updater | 2024/07/16 07:29:47 INFO <job_856399951> Job definition: {"job":{"allowed-updates":[{"dependency-type":"direct","update-type":"all"}],"commit-message-options":{"include-scope":null,"prefix":"Dependabot","prefix-development":null},"credentials-metadata":[{"host":"github.com","type":"git_source"}],"debug":null,"dependencies":null,"dependency-group-to-refresh":null,"dependency-groups":[{"name":"spring-dependencies","rules":{"patterns":["org.springframework*"],"update-types":["minor","patch"]}},{"name":"cucumber-dependencies","rules":{"patterns":["io.cucumber*"]}}],"existing-group-pull-requests":[],"existing-pull-requests":[],"experiments":{"dependency-change-validation":true,"globs":true,"proxy-cached":true,"record-ecosystem-versions":true,"record-update-job-unknown-error":true},"ignore-conditions":[{"dependency-name":"org.codehaus.mojo:build-helper-maven-plugin","source":".github/dependabot.yml","update-types":null,"updated-at":"2024-07-16T07:29:39.000Z","version-requirement":"[3.5,)"},{"dependency-name":"org.codehaus.mojo:flatten-maven-plugin","source":".github/dependabot.yml","update-types":null,"updated-at":"2024-07-16T07:29:39.000Z","version-requirement":"[1.6,)"}],"lockfile-only":false,"max-updater-run-time":2700,"package-manager":"maven","proxy-log-response-body-on-auth-failure":true,"reject-external-code":false,"repo-private":true,"requirements-update-strategy":null,"security-advisories":[],"security-updates-only":false,"source":{"api-endpoint":"https://api.github.com/","branch":null,"directory":"/.","hostname":"github.com","provider":"github","repo":"corelogic-private/tax_us-owf-one_workflow"},"update-subdependencies":false,"updating-a-pull-request":false,"vendor-dependencies":false}}
updater |
  proxy | 2024/07/16 07:29:47 [002] GET https://github.com:443/corelogic-private/tax_us-owf-one_workflow/info/refs?service=git-upload-pack
  proxy | 2024/07/16 07:29:47 [002] * authenticating git server request (host: github.com)
  proxy | 2024/07/16 07:29:47 [002] 200 https://github.com:443/corelogic-private/tax_us-owf-one_workflow/info/refs?service=git-upload-pack
  proxy | 2024/07/16 07:29:47 [004] POST https://github.com:443/corelogic-private/tax_us-owf-one_workflow/git-upload-pack
  proxy | 2024/07/16 07:29:47 [004] * authenticating git server request (host: github.com)
  proxy | 2024/07/16 07:29:47 [004] 200 https://github.com:443/corelogic-private/tax_us-owf-one_workflow/git-upload-pack
  proxy | 2024/07/16 07:29:47 [006] POST https://github.com:443/corelogic-private/tax_us-owf-one_workflow/git-upload-pack
  proxy | 2024/07/16 07:29:47 [006] * authenticating git server request (host: github.com)
  proxy | 2024/07/16 07:29:48 [006] 200 https://github.com:443/corelogic-private/tax_us-owf-one_workflow/git-upload-pack
updater | 2024/07/16 07:29:51 ERROR <job_856399951> Error during file fetching; aborting: /${modulesToBuild}/pom.xml not found
updater | 2024/07/16 07:29:51 INFO <job_856399951> Finished job processing
updater | 2024/07/16 07:29:51 INFO Results:
updater | Dependabot encountered '1' error(s) during execution, please check the logs for more details.
updater | +---------------------------+
updater | |          Errors           |
updater | +---------------------------+
updater | | dependency_file_not_found |
updater | +---------------------------+
updater | time="2024-07-16T07:29:51Z" level=info msg="task complete" container_id=job-856399951-file-fetcher exit_code=0 job_id=856399951 step=fetcher
updater | time="2024-07-16T07:29:51Z" level=warning msg="failed during fetch, skipping updater" job_id=856399951

Smallest manifest that reproduces the issue
repo

Unfortunately I cannot reproduce this because i do not have access to that repository. Maybe the dependabot staff can
In the meantime, if you can create a public reproducer maybe I can take a look

Hi @yeikel . I've managed to reproduce issue on public repository. I hope it helps!

Hi @yeikel . I've managed to reproduce the issue on a public repository. I hope it helps!

Hi @tociepka-clgx
Thank you for trying to set a reproducer
Unfortunately, I see a 404 page when I try to navigate to that page. Could you please make it public and/or give me read access?

@yeikel

Hi @yeikel . I've managed to reproduce the issue on a public repository. I hope it helps!

Hi @tociepka-clgx
Thank you for trying to set a reproducer
Unfortunately, I see a 404 page when I try to navigate to that page. Could you please make it public and/or give me read access?

I can't find a way to give everyone access to insights/dependabot page so I gave you collaborator rights. Also one can simply clone this repo to reproduce this issue.

@yeikel

Hi @yeikel . I've managed to reproduce the issue on a public repository. I hope it helps!

Hi @tociepka-clgx
Thank you for trying to set a reproducer
Unfortunately, I see a 404 page when I try to navigate to that page. Could you please make it public and/or give me read access?

I can't find a way to give everyone access to insights/dependabot page so I gave you collaborator rights. Also one can clone this repo to reproduce this issue.

Oh, I see what my mistake was. Cons of using GitHub mobile :)
I can see the repo but not the dependabot alerts, but that's fine
I'll try to reproduce it and get back to you sometime today

Apologies for the delay, based on the logs and looking closely at your pom file, it seems that the issue is this part of your pom

    <profile>
      <id>customBuild</id>
      <activation>
        <property>
          <name>profile</name>
          <value>customBuild</value>
        </property>
      </activation>
      <modules>
        <module>${modulesToBuild}</module>
      </modules>
    </profile>
  </profiles>

I am not aware of any workaround right now besides removing that from your pom. I'll look into a fix though

https://github.com/tociepka-clgx/dependabot-issue/compare/main...yeikel:dependabot-issue:main confirmed my suspicions

tociepka-clgx/dependabot-issue@f2e9e91 confirmed my suspicions
See: https://github.com/yeikel/dependabot-issue/pulls

Thanks for looking into the problem. However we need this profile for our jenkins pipelines. I guess the simplest way to fix this problem would be to treat this parsing error as warning? I don't understand why it is necessary to parse all the profiles anyway.

@yeikel I reproduce this issue again just yesterday. Not sure which version GitHUB using.


Sample showing a frame rate throttle technique using Choreographer API.

This technique would be useful to save battery and to avoid thermal throttling on devices.

Use native Choreographer API in API level 24~.
Use EGL extension in API level 17~.
Fallback to Java Choreographer API in API level 16~.
The sample runs only in API level 16~.

Tested: on N6P.

LGTM


[sveltekit-pod] ButtonText.svelte pick either a prop or a slot

File: svelte-kit-scss/src/lib/components/shared/buttons/ButtonText.svelte
Though it may seem like a good idea to have "flexibility" in our components, allowing different ways to do the same thing, all it ends
up doing is adding a little cognitive load for the decision maker and inconsistency in the code base.
Pick one, either slotted content or a text prop, and go with it

Fixed in 52dbe92fc6d9ffaf2c0c9a1065f319da5b40217d


استدعاء خدمات

[Enter feedback here]

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

ID: 987ee0bf-3525-1167-96f3-68cf71005991
Version Independent ID: 6dc2f840-62ab-b647-01ec-8ff5a878e998
Content: Call the Image Analysis 4.0 Analyze API - Azure AI services
Content Source: articles/ai-services/computer-vision/how-to/call-analyze-image-40.md
Service: azure-ai-vision

@alterbou
Could you please elaborate the query in English for better understanding. So, we can assist you further.


Added HTTPS Checker for finding mixed content

Hey! Thought HTTPS Checker might be a good addition to the list. Hope that's ok.

Hey, thanks for the contribution! Nice addition! :D

Thanks @Brunty!


Use SubchannelInterface to hide implementation from LB policy API

In particular, this hides the health check service name from the LB policy API.

This change is

(Actually, it looks like I will need to re-add the wrapper watcher as part of #19042, but if so, I'll deal with that separately.)

I've merged in the changes from #19049 and added a ConnectedSubchannelInterface definition to avoid some build/dependency problems.

Known issues: #18416 #19005 #19176


Two way SSL with configuration file

I am trying to write a Reactive Feign webclient that uses two-way SSL sending a client certificate to the server for authentication.  The following code which uses code similar to TrustingSSLSocketFactory works for a regular feign client, but reactive doesn't seem to call the execute method of Client.Default which sets up the SSLContext.  This results in a bad certificate error.  Any ideas what I'm doing wrong?  You can use the code at https://www.baeldung.com/x-509-authentication-in-spring-security to set up the server I am testing with.
@ReactiveFeignClient(name = "web-flux-app", configuration = Conf.class
        , url = "https://localhost:8443")
public interface TestClient {

    @GetMapping(value = "/user", produces = "text/html")
    Mono<String> root();

@Configuration
@Slf4j
public class Conf {

    @Bean
    public Client feignClient() throws NoSuchAlgorithmException {

        SSLSocketFactory ssl = TrustingSSLSocketFactory.get(
                "clientbob");
        Client client = new Client.Default(ssl, new NoopHostnameVerifier());
        log.info("called feign client");
        return client;
    }
}

@Autowired
private TestClient testClient;

    String block = testClient.root()
            .block();
    System.out.println(block);

Have you checked if WebClient supports this feature?
Default implementation of ReaciveFeign fully relies on WebClient networking features

This code works with WebClient.  I'm not sure how it maps to using ReactiveFeign with a configuration.
String keyStoreLocation = System.getProperty("javax.net.ssl.keyStore");
String keyStorePassword = System.getProperty("javax.net.ssl.keyStorePassword");

KeyStore keyStore = KeyStore.getInstance("JKS");
keyStore.load(new FileInputStream(ResourceUtils.getFile(keyStoreLocation)), keyStorePassword.toCharArray());

// Set up key manager factory to use our key store
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
keyManagerFactory.init(keyStore, keyStorePassword.toCharArray());

String block = WebClient.builder()
        .clientConnector(new ReactorClientHttpConnector(
                HttpClient.create()
                        .secure(spec -> spec.sslContext(SslContextBuilder.forClient()
                                .keyManager(keyManagerFactory)))))
        .build()
        .get()
        .uri("https://localhost:8443/user")
        .retrieve()
        .bodyToMono(String.class)
        .block();

If you build ReactiveFeign  client manually try to configure it this way
https://github.com/Playtika/feign-reactive/blob/develop/feign-reactor-webclient/src/main/java/reactivefeign/webclient/WebReactiveFeign.java#L33

In case of auto-configuration try to define `WebClientFeignCustomizer' bean in client's scope
https://github.com/Playtika/feign-reactive/blob/bafb08f33142e494829b638d3bdfe3f30419ba29/feign-reactor-test/feign-reactor-spring-configuration-test/src/test/java/reactivefeign/spring/config/AutoConfigurationTest.java#L180

Great, thanks!  This works with the following configuration class, and I'm fine with closing this:
@Configuration
@Slf4j
public class Conf {

    @Bean
    public WebClientFeignCustomizer webClientCustomizer() throws KeyStoreException, IOException, NoSuchAlgorithmException, UnrecoverableKeyException, CertificateException {

        String keyStoreLocation = System.getProperty("javax.net.ssl.keyStore");
        String keyStorePassword = System.getProperty("javax.net.ssl.keyStorePassword");

        KeyStore keyStore = KeyStore.getInstance("JKS");
        keyStore.load(new FileInputStream(ResourceUtils.getFile(keyStoreLocation)), keyStorePassword.toCharArray());

        // Set up key manager factory to use our key store
        KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
        keyManagerFactory.init(keyStore, keyStorePassword.toCharArray());

        return webClientBuilder -> webClientBuilder
                .clientConnector(new ReactorClientHttpConnector(
                        HttpClient.create()
                                .secure(spec -> spec.sslContext(SslContextBuilder.forClient()
                                        .keyManager(keyManagerFactory)))));
    }

will add this into documentation

don't forget to put a star :)


Issues with Apple Store

Hi, I'm having an issue with apple, it's rejecting my app due to "test ads"

I have removed all references to test ads on the plugin as
isTesting: false, initializeForTesting: false,
When I open the app in xcode and run one of the simulator, the ads appears as TEST ADS, but if I install it on my phone, it runs as normal without TEST ADS.
I'm assuming that the apple review team use simulators and that's why they see TEST ADS.
There is any way to remove the TEST ADS in the simulators? does the API from admob contemplate this issue?
maybe someone has came across this issue when submitting their apps to apple and can give me some tips about it.
thank you.

Hi
No one with this issue when submitting to the apple store?

I never heard of this. Maybe are you using the admob test ids?
Do you get real ads when you deploy to device or emulators?

Hi, In my phone I get real ads, but in the xcode simulator I always get
test ads.
The ads are not test ads.
I think the iphone reviewer is using the simulator.
On Tue, Aug 16, 2022 at 1:04 PM Saninn Salas Diaz @.***>
wrote:

I never heard of this. Maybe are you using the admob test ids?
Do you get real ads when you deploy to device or emulators?
—
Reply to this email directly, view it on GitHub
https://github.com/capacitor-community/admob/issues/181#issuecomment-1216842716,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABAA2DHDX5IRR47LJHN2WATVZO3YJANCNFSM56MS3TTA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Did you tried asking that? Maybe he reviewer is just new.
El mar, 16 de ago. de 2022 19:57, Bruno @.***> escribió:

Hi, In my phone I get real ads, but in the xcode simulator I always get
test ads.
The ads are not test ads.
I think the iphone reviewer is using the simulator.
On Tue, Aug 16, 2022 at 1:04 PM Saninn Salas Diaz @.***>
wrote:

I never heard of this. Maybe are you using the admob test ids?
Do you get real ads when you deploy to device or emulators?
—
Reply to this email directly, view it on GitHub
<
https://github.com/capacitor-community/admob/issues/181#issuecomment-1216842716
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABAA2DHDX5IRR47LJHN2WATVZO3YJANCNFSM56MS3TTA
.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/capacitor-community/admob/issues/181#issuecomment-1216967770,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABJ4MGOW2TFC6IMLHZKG4BDVZPJAZANCNFSM56MS3TTA
.
You are receiving this because you commented.Message ID:
@.***>

I will I have found this info
https://developers.google.com/admob/ios/test-ads#enable_test_devices

If If get a valid response, I commented here in case someone have a similar issue in the future.
thank you.

It was an Apple thing, they were using the simulator as you suggest.
thank you (y)


Question about reproducing.

Hi,
I am trying to reproduce the training of your ckpt. However, the code seems not support DDP or DP training&evaluation. Therefore, I tried the default training config where batchsize=1 and trained for 500K iterations. However, the performance is significantly worse than your provided ckpt.  Do you have any idea about it ?
Best,

Hi,
The code supports DDP.
I have added the command to the README as well.
python -m torch.distributed.launch --nproc_per_node=[#GPUs] train.py --config [config_path] --distributed
Please follow the training setup we used to ensure the same performance.
16 NVIDIA A100 GPUs, and each GPU has a batch size of 8.

Hi,
The code supports DDP. I have added the command to the README as well.
python -m torch.distributed.launch --nproc_per_node=[#GPUs] train.py --config [config_path] --distributed
Please follow the training setup we used to ensure the same performance. 16 NVIDIA A100 GPUs, and each GPU has a batch size of 8.

Thanks

@pansanity666  @ken2576  你们好，我看你复现出来，我在复现时遇到了
File "<array_function internals>", line 200, in stack
File "/home4T/cxj/anaconda3/envs/VF/lib/python3.8/site-packages/numpy/core/shape_base.py", line 460, in stack
raise ValueError('need at least one array to stack')
能否指点一下呢，谢谢


Add year effects

Done in https://github.com/andrewheiss/compassionate-clam/commit/d2ad91d816e14ff00bdeff6f4561e1ed15454f25


UI doesn't update after multiple images are generated in batches

If you generate just one image, it shows up in the UI fine.
If you set multiple batches, then UI will not show any of them after the generation finishes.
When this happens, you cannot generate new images either, clicking on "Generate"does nothing.
You can refresh the page when it happens, but this will not show the images from the last generation, and it also wipes out all of your settings.
I have had this happen every time I tried use batches.

using gradio_server should fix this, and if it persists, use the blue button at the end of the prompt text box to restore the previous settings+prompt


Update with RAPIDS 21.06

Issue #, if available:
N/A
Description of changes:
Tested RF, LR, and KNN with RAPIDS 21.06. The RFRapidsModel accuracy issue has been resolved; however, depending on the max_depth parameter, the RFRapidsModel may be slower than the RFModel (see comment in rf_rapids_model.py).
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-1241-1 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1241/1/index.html


feat: Add documentation on Flexible Processing

Docs for PR https://github.com/stride3d/stride/pull/2331
Not sure that's all I need to do to create this new page ... I forgot ? Also not sure how xrefs work for types with generic arguments ?

It should be all. Unless we want to link it from multiple places and add some intro context:

https://doc.stride3d.net/latest/en/manual/engine/index.html
https://doc.stride3d.net/latest/en/manual/engine/entity-component-system/index.html

Regarding xref, I usually take it from the browser F12, data-uid attribute (once that API was published 🤣) but I can fix that for you.
Would you like to add more content to the pages mentioned above? If not, I will deploy it to staging and we can assess further text and styling.
Example of finding xref:

Actually, in this case, it would be good to mention it also here in the Recent Updates https://doc.stride3d.net/latest/en/manual/index.html

Would you like to add more content to the pages mentioned above?
No other page mentions Managing Entities so I didn't really think of linking this one either, it's a bit niche

No problem. The manual home page should bring some awareness at least.

Thank you for the updates.


Is it possible to use function_score?

Not sure how to do function_score reading the docs.
Is it possible at the moment?

I did it like this, and it seems to work
function_score_query = Q(
    'function_score',
    functions=[
        dict(gauss={
            'date_created': {
                'origin': utc_today(),
                'scale': "7d"
            }}
        ),
        dict(
            filter=F(
                'bool',
                must=must_filters,
                should=should_filters
            ),
            weight=1.5
        )
    ],
    boost_mode='multiply',
    score_mode='multiply',
    query=mlt_query,
)

Yes, you can use just a dict or you can use the SF shortcuts (0)
Q('function_score', functions=[SF('gauss', filter=F(...), date_created={...})])

0 - https://github.com/elasticsearch/elasticsearch-dsl-py/blob/master/test_elasticsearch_dsl/test_query.py#L220-L223

thanks I'll try!

Can you construct  Q('function_score' ..) then add  query or filter to it?


Nothing happen after the greeting message has been played

Describe the bug
If I enable our own-made greeting message, the audio-file play when I call the helpline phone but anything will process after and it hang-up after 20 sec of silence.
Claude St-Jean
Quebec IT Chairperson
What version are you running?
v3.9.7
Did this happen on prior versions to the one you are running?
not in used
To Reproduce
Steps to reproduce the behavior:

I insert the snippet in the config.php file: [static $en_US_greeting = "https://csr.naquebec.org/wp-content/uploads/2021/05/help-line-anglais.mp3"; ]
I call our helpline #<PHONE_NUMBER>2 and the message is playing and nothing is made after the message and it hangup after 20 sec.
Scroll down to '....'
See error

Expected behavior
It suppose to reach one of available volunteers and if not, go to the voicemail.
Screenshots
not applicable
Additional context
I attach to this message the config file and the Twilio bug message
2021-06-01 17:15:06-04:002021-06-01 17:15:33-04:0027+18193182696+18555446362
2021-06-01 17:15:36-04:00Volunteer Answered but Caller HungupRégion de Québec [CSRQ] (32){"to_number":"+14383922476"}
2021-06-01 17:15:33-04:00Caller HungupRégion de Québec [CSRQ] (32){}
2021-06-01 17:15:27-04:00Volunteer DialedRégion de Québec [CSRQ] (32){"to_number":"4383922476"}
2021-06-01 17:15:26-04:00Caller Waiting for VolunteerRégion de Québec [CSRQ] (32){}
2021-06-01 17:15:19-04:00Volunteer SearchRégion de Québec [CSRQ] (32){}
Twilio Cloud Communications _ Web Service API for building Voice and SMS Applications.pdf
config.docx

When you record your audio you need to include what buttons to press.  Here is a sample audio file from another helpline system that does the same thing.  https://crossroadsarea.org/wp-content/uploads/9/2018/08/crossroads_v4_greeting.mp3


Group items on the y-axis using a pre-selected variable

We need to decide what variables we want to use

May use webcharts.multiply to group.

This was requested during the Oct 16 demo with Karen K., Karen B., Brian A., and David H.  The grouping is very important for open label studies.

Test notes:

Site appears in Y-axis grouping dropdown.
Any id_characteristics variables appear in Y-axis grouping dropdown.
IDs are grouped by corresponding variable in Y-axis grouping dropdown and sorted within each group according to the Y-axis sort dropdown.

With horizontal grouping consider printing groups on both the left and right side of the timelines, or print the group once in the middle.

I think it's fine to leave the groupings variable for now. Doesn't hurt to keep it separate from ID variables.

Pass


Implementation Wrap ScalableFM

I'have implemented a function in wrap in which I wrapped the functions of Scalable FM imtegrated with our Hiarchical mesh approach.
Note: This is mainly a test on how to work. Some bad practices will be changed in the future.

Quick note on linting (see https://github.com/luisfpereira/geomfum/pull/9/commits/d48c9e9fe4409645bc93ca000c1b67eb5d67a87f): I expect linting to be automatically done by ruff. In visual studio you can accomplish that by install this extension.

@gviga,  I'll try to justify the changes I've done in https://github.com/luisfpereira/geomfum/pull/9/commits/415cd8d42663c57f5360753410179b8dd08e133b. Please let me know what you think (I'm open to undo anything you don't agree with).
As we've discussed in the last meeting, if we sample, we need a Sampler (something that has a sample method taking a shape and outputting an array). Therefore, I've added: BaseSampler, PoissonSampler, and NearestNeighborIndexSamplex.
As you would expect, we do not implement any PoissonSampler, but instead wrap pymeshlab for that. I've registered it, so we can do e.g. PoissonSampler.from_registry(n_samples=1000).
Additionally, I've realized LargeMesh.process_mesh does not expect coordinates coming from a sampler, but indices. Therefore, I've added NearestNeighborsIndexSampler, which takes a Sampler and then finds the closest points in the original mesh to the samples.
I find the naming quite misleading here, but I'm not inspired to come up with something better. All ears for ideas!
With the current approach there's not a lot of changes: we delete LargeMesh.knn_query and LargeMesh.poisson_sample and replace two lines of code in LargeMesh.process_mesh by a simpler one.
Nevertheless, I find this approach appealing for the following reasons:

we can sample any mesh without having to instantiate LargeMesh

due to 1., testing of samplers becomes much easier

we clearly know what parameters are used for what (e.g. n_samples is used to instantiate a sampler at init and not at process_mesh time; for this is obvious, but it is not always the case)

I already have other ideas on how to improve this code... but leaving that for another day.

@GiLonga, my two cents on this:
Great idea to have a sampler based on distances.
If distance is computed explicitly, I think we should follow a geomstats-like format, i.e. a distance/metric is something we can equip a Shape (seen as a manifold/metric space) with. This because there's a multitude of distances we can put on a shape, so we want to do it by composition instead of inheritance.
I don't see sampling as a method of the Shape class, though later, if you really want that, we can do something like:
class Shape:
  def sample(self):
    return self._sampler.sample(self)

(btw, really appreciate the suggestions! adding it to our tasks)


Fix environment

This PR solved three issues for me:

zookeeper-env.sh was could not be written as path was faulty (contained %{zookeeper_version})
exports_config was evaluated with value "true"
with sysv style startup /etc/default/zookeeper was executed but now passed to subshells as variables were not exported. Exported some variables.

@ljesmin thanks for your contribution! The catch to use lazy evaluation for the two fault properties is a great fix.
However, if ZK is executed in a subshell via SysV, all of the env vars should probably be exported, right? In either case, rather than add two additional lines to the end, I’d ask you please just export the vars at their initial assignment.

I went ahead & rebased this to fix it up against recent code changes, and merged it in. We’ll see what Travis has to say!


Assess article version during deposit process

When a user uploads a file to deposit, attempt to check the article version. If one can be determined, display it to the user and give deposit advice accordingly (this could be very general or could be based on #111 ). If version cannot be determined, tell the user that and perhaps allow them to indicate an article version for the purposes of #111. If user is trying to upload something other than an accepted manuscript or a final published version, encourage them not to. (OA policy requires accepted manuscript. Final published version is even better, so we'll take that if they are allowed to share it.)

Here's the code that parses metadata from files: https://github.com/psu-libraries/fams_tools/blob/main/app/models/verify_post_print.rb .  It uses the PDF::Reader and Exiftool gems to do this.

Here's the chunk that looks at article version: https://github.com/psu-libraries/fams_tools/blob/main/app/models/verify_post_print.rb#L106-L126

Some clues for determining article version (besides code Alex shared above):
Metadata field called "Journal_article_version" (or perhaps jav:journal_article_version) -- This field is extremely reliable if we have it, but it's often blank/not present:

If "VoR," this is the final published version, aka version of record -- generally not depositable
If "P," this is the proof, which for our purposes (including for #111) is the same as the version of record -- generally not depositable
If "AM," this is the accepted manuscript, aka "postprint" -- what we are aiming for; generally depositable

Exif fields for determining article version -- I wrote up this doc with some fields that I think indicate the file is the final published version.
Identifying Post-Prints -- This doc was designed for people who are looking at individual files, so it's probably not directly useful to you, but could still give an overview of the issue.
What are the different versions of scholarly articles? -- This is the user-facing documentation on this issue. The "pre-print" option is basically irrelevant to this feature. It's almost impossible for a computer to tell the difference between a pre-print and an accepted manuscript. We'll have to count on the uploader to figure that out.
Examples of post-prints, aka accepted manuscripts:
March post-prints
April post-prints
Finally, I believe ShareYourPaper has implemented some kind of version checker, and the project is supposed to be open source, so you may be able to find that.

@banukutlu I was just getting ready to email Joe McArthur at OA.Works about this. Before I do that, I wonder if @DanCoughlin can share anything about the feasibility of our implementing OA.Works's ShareYourPaper. I know he's explored that (#73), and I thought we'd ruled it out due to platform incompatibility with ScholarSphere. I'm wondering if we need to explore it further. It's at least theoretically compatible with local IRs now (not just Zenodo). If it's usable, it would handle this issue as well as #111, so I'm tagging @ajkiessl

@anaelizabethenriquez my recollection was that we were able to implement similar functionality (look up paper by DOI, and return paper metadata) more simply ourselves than trying to implement OA.Works solution. At that time there was concern about the reliability and durability of the API. At times it had changed and wasn't versioned for us to get a heads up about it. Some of the things we required to implement on our end required development on their end as well and (at that time) it seemed simpler to continue our own path. Is there something specifically they do, that we want?

@DanCoughlin We are hoping to implement article version checking (this issue), which ShareYourPaper does and RMD doesn't do yet. Connected to that, we will use the DOI to fetch permissions info for that article version from their Permissions API (#111 ). (Of course there is other stuff SYP does that RMD already does, like sending the deposit to the IR.) So I'm wondering if we're crossing the line into using so much OA.Works/ShareYourPaper stuff that it would be easier to just implement SYP. @ajkiessl

@anaelizabethenriquez my guess is that it is simpler for us to use their API then implement their solution. My bigger concern, based on the number of dependency issues that straining our resources in several areas, is which is likely to have a longer shelf life. It's a bit of a guessing game, but my sense is the API may have an easier path forward for maintenance then bringing in the OA.Works screen. However, that's completely an assumption, I haven't looked at it enough. @ajkiessl may have more thoughts.

I agree.  Considering how far we've gotten with the ScholarSphere uploads, it's probably simpler to use the API.  Also, using the API gives us more flexibility on how we want to implement things.  I suppose their version checker would be nice to have, but theirs might be just as limited as ours 🤷♂ .

OK, thank you both @DanCoughlin @ajkiessl ! Per our original plan, I'm going to email Joe McArthur about finding the code for the version checker, and I will copy Banu.

@banukutlu Here's a little more that I hope will be helpful.
Alex is setting up #111 to take two possible values -- either the file is the accepted manuscript (also called the post-print) or it is the final published version. Ideally, this version checker should:

Look at the journal_article_version tag.
a. "AM" = Accepted Manuscript
b. "P" = Proof -- Treat this as the final published version.
c. "VoR" = Version of record, that is, the final published version
If the journal_article_version tag is not present, or if the value isn't one of the options above, look at other factors to make a guess at whether the file is the accepted manuscript or the final published version. (Hoping that ShareYourPaper has logic you can use here -- I copied you on my email to Joe McArthur.)
Display the result to the user and give them a chance to override it before fetching the permissions for sharing that version (which is covered by #111). Text could be, "This looks like the [accepted manuscript]/[final published] version of the article. Should we fetch the article sharing rules for that version of the article?" Choices: "Yes" or "No, this is the [final published]/[accepted manuscript] version. Fetch the sharing rules for that version instead."
a. Depending on how step 2 goes, you could also display something like "We have not been able to determine automatically which version of the article this is. Please select the correct article version so we can fetch the sharing rules for the article." And then you'd offer both choices. We could link to the FAQ about article version to help people evaluate this.