Application Count on Dashboard & UI Fixes

Issue:

bcgov/entity/issues/22656
bcgov/entity/issues/22627

Description of changes:

Add Applications Count to Dashboard
Use new composables for Translations
Update confirmation text
Other tech debt and UI improvements

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

/gcbrun

Temporary Url for review: https://strr-ui-dev--pr-87-2wx65plb.web.app


New version: Clp v0.6.3

Registering package: Clp
Repository: https://github.com/JuliaOpt/Clp.jl
Created by: @blegat
Version: v0.6.3
Commit: 7c5562bae19bd896b22c778616d4c49da4edfe8a
Reviewed by: @blegat
Reference: https://github.com/JuliaOpt/Clp.jl/commit/7c5562bae19bd896b22c778616d4c49da4edfe8a#commitcomment-35736207

Closing in favor of #4903


gl postprocessing is too CPU intensive by default

Updating from 1.0.85 to 1.0.95 increased CPU usage enough to get my laptop fan to go on.  I investigated by running the web-ifc-viewer demo app from source.  Indeed, there are some additions for postprocessing that move my GPU usage from ~30% to ~50%, even for an empty scene, no IFC file loaded.  This seems too expensive by default, so I suggest defaulting to more conservative render settings. Full discussion here:
https://discord.com/channels/799990228336115742/800000126998675457/900228947021791252

Hey @pablo-mayrgundter more users have said that the ssao is heavy. As I mentioned,  this library for postprocessing. Here you have a live example and here is the code.
I don't have a computer to check this, so if you come up with a configuration that works well consuming less resources, I'll happily implement it. 🙂

Ok Antonio,
I have some ideas but am pretty busy.  I should be able to take a look
sometime in the next few weeks if that's ok with you.
Cheers,
Pablo
On Sat, Nov 20, 2021 at 4:05 AM Antonio González Viegas <
@.***> wrote:

Hey @pablo-mayrgundter https://github.com/pablo-mayrgundter more users
have said that the ssao is heavy. As I mentioned, this library
https://github.com/vanruesc/postprocessing/blob/main/demo/src/demos/SSAODemo.js
for postprocessing. Here
https://vanruesc.github.io/postprocessing/public/demo/#ssao you have a
live example and here
https://github.com/vanruesc/postprocessing/blob/main/demo/src/demos/SSAODemo.js
is the code.
I don't have a computer to check this, so if you come up with a
configuration that works well consuming less resources, I'll happily
implement it. 🙂
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/IFCjs/web-ifc-viewer/issues/91#issuecomment-974582794,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAS5V3Y6SNR3X6YYYHPYDEDUM4F73ANCNFSM5GLHE7ZA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
interweb homepage http://sites.google.com/site/pablomayrgundter


Not really an issue, but more like a question

I know that the decal shader will supper wrapping, but I also know what you need to have the cube facing the right direction to get it to wrap correctly.
I currently have a raycast that gets the position and normal (direction) to place the cube (with the shader for decal)
But the issue I'm facing is when it hits near the mesh edge, is there a way to have the rotation of the cube be adjusted based on the normal of the edge face of the mesh as well?

This is what the issue looks like:

What i'd like to do is slightly rotate the decal cube to be like so:

Actually, now that I think about it, how it the image projected onto the object? Does the shader decide the direction of the projection? 👍

try turn on _ProjectionAngleDiscardEnable, and adjust _ProjectionAngleDiscardThreshold

try turn on _ProjectionAngleDiscardEnable, and adjust _ProjectionAngleDiscardThreshold

Thanks, I'll try that.

This is the effect that I'm getting

Hmmm, just did some tweaking, seems that my cube works better if rotated backwards? Does that make any sense? 🗡
Basically I have this now:
Quaternion.FromToRotation(Vector3.forward * -1, hit.normal)


Migrate to buidler

I like the deploying speed of buidler.

The testing time is reduced from 5 min to 53 sec.


Bugfix of MultiNodeOptimizer with loss scaling

This PR fixes bugs of MultiNodeOptimizer in ChainerMN.

LGTM!
jenkins, test this please.


How to change the basis function of  tetrahedrons ?

Due to new exposure to MFEM, I am a novice. I don't know where the specific basis functions are described in the MFEM code library, especially for high-order tetrahedrons.
In the future, I may write higher-order stacked basis functions to implement vector finite elements.
Can anyone help me in which file should I edit？
Please forgive my foolishness, as it is true that I have just started to interact with MFEM and C++

Hi, @azmmza,
Thank you for your interest in MFEM. I hope you will find it useful.
MFEM is designed to be modular so you shouldn't need to edit any of the MFEM files to add your own basis function types. What you will need to do is write new classes derived from FiniteElement and FiniteElementCollection. These can then be passed to existing FiniteElementSpace objects and everything else should make use of your new basis functions without modification.
If you want to look  more closely at the existing scalar finite element basis functions you can examine H1_TetrahedronElement and L2_TetrahedronElement for continuous and discontinuous bases respectively.
To build stacked basis functions for vector finite elements we automate this in the FiniteElementSpace objects which can use multiple copies of the same basis to represent the individual vector components. See ex2 for an example of this feature.
We would be happy to offer more targeted advice as you continue to explore MFEM.
Best wishes,
Mark


V/H Centering of Modal Broken (After Upgrade to SUI 2.3)

Steps
View working modals after update to SUI 2.3
Expected Result
No change
Actual Result
Modal are now position in top-left (with some of the modal clipped)
Version
SUI 2.3 / RSUI 0.78.2

Valid issue. I created a codesandbox example to complete the bug report form.
https://codesandbox.io/s/r08o8v4z3n

@mcrawshaw you may want to stick to 2.2.* for now since 2.3.0 just came out today. There are likely going to be some other issues that pop up too.

Two things will need to happen to get this to work.

[ ] Add a style to the dimmer of {{display: 'fixed !important'}}
[ ] Disable the negative top margin added inline to the .ui.modal

The question here is timing. This is actually a fairly significant change. I think some people will potentially have install bases of CSS that they will not be able to update/recompile soon. I am proposing what we do is add the ability to keep the existing functionality for modals for the time being if people want by adding a boolean flex prop to Modal. If flex is true, the above two changes would be enabled. If flex is false, then the old way would still be in place.
My thought here is that even though it would be a breaking change, I think the defaultProp for flex should be true so that you have to opt out. This is the way SUI is going with the modal display so in the long term, making people opt in to flex display is probably going to be bad. This at least gives people time to update.
@levithomason @layershifter thoughts?

Per #2550, let's go with the breaking change upgrade path.

I would shy away from temporary public API updates. I'd support declaring that SUIR 0.78.x requires SUI 2.2, update the SUIR Modal for SUI 2.3 and ship it as SUIR 0.79.x.

Sounds good. Any PR on this will need to also update the docs to make not of this.

Sorry about the incompatibilities, I wasn't aware at the time SUIR css wasn't pinned to a specific SUI release.

Closing in favor of #2550

This bag is really bad.

@chachaxw This is an open source project. Feel free to jump in and submit a PR to start solving some of the issues in #2550
I am going to lock this issue to reduce noise since everything is being handled over in #2550


No issue. Worked like a charm! Thank you so much.

Glad to hear it. I welcome any feedback. Thanks


doublecmd: 1.1.19 -> 1.1.21

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/doublecmd/doublecmd/releases.
meta.description for doublecmd is: Two-panel graphical file manager written in Pascal
meta.homepage for doublecmd is: https://doublecmd.sourceforge.io/
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.1.21 in filename of file in /nix/store/vgpjqbhykaayq99d5hg96ccyyb3va1a0-doublecmd-1.1.21

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

doublecmd

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/vgpjqbhykaayq99d5hg96ccyyb3va1a0-doublecmd-1.1.21 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A doublecmd https://github.com/r-ryantm/nixpkgs/archive/647b477cfc34d5ec522e89c1a1b075f27d2efa12.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/647b477cfc34d5ec522e89c1a1b075f27d2efa12#doublecmd

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/vgpjqbhykaayq99d5hg96ccyyb3va1a0-doublecmd-1.1.21
ls -la /nix/store/vgpjqbhykaayq99d5hg96ccyyb3va1a0-doublecmd-1.1.21/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

doublecmd

Maintainer pings
cc @AndersonTorres for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


An option not to close the PowerRename window after a rename shot

📝 Provide a description of the new feature
What is the expected behavior of the proposed feature?  What is the scenario this would be used?
It often happens to me that the renaming task is too complex to be done once and for all, but the PowerRename window automatically closes after each rename shot. I'll have to right-click and click to open PowerRename again and again.
Isn't it very easy to add an option to keep the window open, so I can do more rename shots without having to reopen the window?

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Duplicate of https://github.com/microsoft/PowerToys/issues/628


IDE (VSC) "Support" via CLI/Bazel Rule (?) which just writes/updates respective configuration file

Given the various issues I'm facing, I was wondering if at least initially looking more closely into a more simple and basic Bazel Java VSC integration than full-blows VSC extensions in JS/TS and an OSGi plugin loaded dynamically into the JDT of the redhat.java VSC extension...
The architectures above are all lots of fun, of course, but wouldn't be the lowest hanging fruit, and the easiest to work with, be some sort of trivial CLI, possibly easily consumable via a bazel run in any project, which (literally) JUST updates in .vscode/settings.json? Because that is really all one ultimately needs from all this (I think).
The BazelAnalyzerApp looks like it has most of what's needed for that - just missing a thingie that writes java.project.referencedLibraries to .vscode/settings.json, which should be relatively trivial to code?
If I can make the time, perhaps I'll explore this.

The BazelAnalyzerApp looks like it has most of what's needed for that - just missing a thingie that writes java.project.referencedLibraries to .vscode/settings.json, which should be relatively trivial to code?

After a closer look, I'm starting to understand that's not quite it; instead, one would need to build a JvmUnionClasspath (from which JvmClasspathData with JvmClasspathEntry[] can then be obtained) - similar to how the BazelClasspathContainer in bazel-eclipse does it.
An additional example App illustrating how to do this (in a standalone App, outside of and without directly depending on Eclipse JDT) could be a useful start.

I'm currently manually downloading JARs and adding them to VSC Classpath Configuration to explore doing this.
It would be neat to be able to use this approach to "bootstrap" working on this project itself...

https://github.com/salesforce/bazel-java-sdk/compare/master...vorburger:bazel-java-sdk:issue-47

The idea of the Java SDK is to allow writing such a CLI. The Java LS is essentially a headless Eclipse. If the JDT.LS folks are open to it I would like to embed it directly into the language server.
However, I am not sure about the benefits of a CLI. It would be pretty inflexible. The idea is that people can use a .bazelproject file to control the visibility inside IDEs. Any modification to the project view would require re-running the CLI. IDEs typically compute the classpath dynamically. Eclipse JDT uses the concept of a classpath computation (which I am currently refactoring heavily https://github.com/salesforce/bazel-eclipse/pull/444).


Weird collision between a cylinder and a cube

Godot version
4.1.stable.flathub
System information
Godot v4.1.stable (970459615) - Freedesktop SDK 22.08 (Flatpak runtime) - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (nvidia) - Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 Threads)
Issue description
In my game I have a player that has a cylinder as a collision shape. There are also boxes around.
The issue is when I try to collide with the boxes in a particular angle.
It's better to watch it:
https://github.com/godotengine/godot/assets/43069276/5bbd3606-95a3-475d-a47c-fbfc7f2465e4
I don't know if this is the expected behavior, but as the shape is a cylinder I thought that the player should slide along the face of the box .
Steps to reproduce

Create a moving object
Collide against a Box like I do in the video

Minimal reproduction project
N/A

Looks like a duplicate of #72198, closing as such then. Thanks for the report though! :slightly_smiling_face:


Webpage not loading in Internet Explorer 11 after being instrumented with OpenTelemetry

Please answer these questions before submitting a bug report.
What version of OpenTelemetry are you using? 0.14
What version of Node are you using? 10.14
Please provide the code you used to setup the OpenTelemetry SDK
`import { XMLHttpRequestPlugin } from "@opentelemetry/plugin-xml-http-request";
import { WebTracerProvider } from "@opentelemetry/web";
import { CollectorTraceExporter } from "@opentelemetry/exporter-collector";
const { Resource } = require("@opentelemetry/resources");
import { environment } from '@env';
import {
SimpleSpanProcessor
} from "@opentelemetry/tracing";
// Unused plugins - possibly neeeded in the future for extending tracing functionality
// import { UserInteractionPlugin } from "@opentelemetry/plugin-user-interaction";
// import { DocumentLoad } from "@opentelemetry/plugin-document-load";
const resource = new Resource({
"service.name": "mywebapp"
});
// Create a provider for activating and tracking spans
const tracerProvider = new WebTracerProvider({
resource: resource,
plugins: [
new XMLHttpRequestPlugin({
ignoreUrls: [/localhost:8080/sockjs-node/],
propagateTraceHeaderCorsUrls: ,
enhancedDatabaseReporting: true
})
]
});
const endpoint = "https://localhost:55681/v1/trace";
// const endpoint = ${environment.OPEN_TELEMETRY};
// console.log('Config URL', ${environment.OPEN_TELEMETRY});
const collectorOptions = {
resource: resource,
url: endpoint, // url is optional and can be omitted - default is http://localhost:55681/v1/trace
headers: {} //an optional object containing custom headers to be sent with each
};
// Console tracer is used to check locally
// if traces are produced by tracerProvider.
// tracerProvider.addSpanProcessor(
// new SimpleSpanProcessor(new ConsoleSpanExporter())
// );
if (${environment.OPEN_TELEMETRY}) {
tracerProvider.addSpanProcessor(
new SimpleSpanProcessor(new CollectorTraceExporter(collectorOptions))
);
tracerProvider.register();
}
`
What did you do?
Loaded the page in Chrome and FIrefox - Page renders and I see traces in Jaeger
Loaded the page in IE 11 - Does not render
What did you expect to see? Error messages be
What did you see instead?
HTML1300: Navigation occurred.
localhost:8081
HTML1202: http://localhost:8081/ is running in Compatibility View because 'Display intranet sites in Compatibility View' is checked.
localhost:8081
DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
localhost:8081
SCRIPT1002: Syntax error
vendor.js (128384,1)
SCRIPT1010: Expected identifier
main.js (5721,7)
Additional context
Add any other context about the problem here.

By default the "Display intranet sites in Compatibility View" will run the page in IE8 emulation mode, which is ES3 -- which I believe is not going to be supported by OT (others please correct me if I'm wrong)
You may see this in the developer console
HTML1122: Internet Explorer is running in Enterprise Mode emulating IE8.
You can try adding the X-UA-Compatible meta tag to your HTML page to give IE a hint to upscale

But this may also not work because of the "Display intranet sites in Compatibility View" see https://docs.microsoft.com/en-us/troubleshoot/browsers/compatibility-view-for-trusted-sites

By default the "Display intranet sites in Compatibility View" will run the page in IE8 emulation mode, which is ES3 -- which I believe is not going to be supported by OT (others please correct me if I'm wrong)
You may see this in the developer console
HTML1122: Internet Explorer is running in Enterprise Mode emulating IE8.
You can try adding the X-UA-Compatible meta tag to your HTML page to give IE a hint to upscale

But this may also not work because of the "Display intranet sites in Compatibility View" see https://docs.microsoft.com/en-us/troubleshoot/browsers/compatibility-view-for-trusted-sites


New project: otel4s

I would like to offer otel4s as a Typelevel project.  It is an Open Telemetry library built on Cats-Effect.  Rough plans:

a platform neutral core based on the standard Otel API
an opentelemetry-java backend to bootstrap JVM usage
the possibility of a Scala.js backend
the possibility of a pure Scala backend

Definitely think this is a great idea.

Let's vote through Monday, June 6.

Quorum is 7.
9 yeas clinches it.
:+1: or :-1: on the original

/cc @typelevel/steering

It's approved.  I'll work on the logistics of it tomorrow.


Problem with adding CH32x035 example (cap_touch_adc)

Hi,
I'm trying to make some of the examples work on a CH32x035G8U6.
But at the moment I'm struggling with the cap_touch_adc example.
I changed line 54 in ch32v003_touch.h, since CH32x035 has a 64-bit counter for SysTick.
For testing, I changed cap_touch_adc.c, in order to get values only from PA0.
However, the program crashes and jumps to line 767 in ch32v003fun.c (while( !DebugPrintfBufferFree() );). I did some debugging, the code works until it gets to line 87 in ch32v003_touch.h, switching to assembly, it happens at 0x00000734:
0x00000734: 1c 44           	lw	a5,8(s0)
0x00000736: 5c 44           	lw	a5,12(s0)
0x00000738: f9 bf           	j	0x716 <main+30>

I'm not sure, how to solve this.
BTW: Not directly related, but I couldn't find a document for the CH32x035 containing the instruction set and listing all the registers. Where can I find that?
ch32v003_touch.h
#ifndef _CH32V003_TOUCH_H
#define _CH32V003_TOUCH_H

/** ADC-based Capactive Touch Control.

	see cap_touch_adc.c for an example.

	// Enable GPIOD, C and ADC
	RCC->APB2PCENR |= RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOC | RCC_APB2Periph_ADC1;
	InitTouchADC();

	// Then do this any time you want to read some touches.
	sum[0] += ReadTouchPin( GPIOA, 2, 0, iterations );
	sum[1] += ReadTouchPin( GPIOA, 1, 1, iterations );
	sum[2] += ReadTouchPin( GPIOC, 4, 2, iterations );
	sum[3] += ReadTouchPin( GPIOD, 2, 3, iterations );
	sum[4] += ReadTouchPin( GPIOD, 3, 4, iterations );
	sum[5] += ReadTouchPin( GPIOD, 5, 5, iterations );
	sum[6] += ReadTouchPin( GPIOD, 6, 6, iterations );
	sum[7] += ReadTouchPin( GPIOD, 4, 7, iterations );
*/

#define TOUCH_ADC_SAMPLE_TIME 2  // Tricky: Don't change this without a lot of experimentation.

// Can either be 0 or 1.
// If 0: Measurement low and rises high.  So more pressed is smaller number.
// If 1: Higher number = harder press. Good to pair with TOUCH_FLAT.
// If you are doing more prox, use mode 0, otherwise, use mode 1.
#define TOUCH_SLOPE     1

// If you set this to 1, it will glitch the line, so it will only read
// anything reasonable if the capacitance can overcome that initial spike.
// Typically, it seems if you use this you probbly don't need to do
// any pre-use calibration.
#define TOUCH_FLAT      0

// Macro used for force-alingining ADC timing
#define FORCEALIGNADC \
	asm volatile( \
		"\n\
		.balign 4\n\
		andi a2, %[cyccnt], 3\n\
		c.slli a2, 1\n\
		c.addi a2, 12\n\
		auipc a1, 0\n\
		c.add  a2, a1\n\
		jalr a2, 1\n\
		.long 0x00010001\n\
		.long 0x00010001\n\
		"\
		:: [cyccnt]"r"(SysTick->CNTL) : "a1", "a2"\
	);

static void InitTouchADC( );
void InitTouchADC( )
{
	// ADCCLK = 24 MHz => RCC_ADCPRE = 0: divide sys clock by 2
	RCC->CFGR0 &= ~(0x1F<<11);

	// Set up single conversion on chl 2
	ADC1->RSQR1 = 0;
	ADC1->RSQR2 = 0;

	// turn on ADC and set rule group to sw trig
	ADC1->CTLR2 |= ADC_ADON | ADC_EXTSEL;

	// Reset calibration
	ADC1->CTLR2 |= ADC_RSTCAL;
	while(ADC1->CTLR2 & ADC_RSTCAL);

	// Calibrate
	ADC1->CTLR2 |= ADC_CAL;
	while(ADC1->CTLR2 & ADC_CAL);
}

// Run from RAM to get even more stable timing.
// This function call takes about 8.1uS to execute.
static uint32_t ReadTouchPin( GPIO_TypeDef * io, int portpin, int adcno, int iterations ) __attribute__((noinline, section(".srodata")));
uint32_t ReadTouchPin( GPIO_TypeDef * io, int portpin, int adcno, int iterations )
{
	uint32_t ret = 0;

	__disable_irq();
	FORCEALIGNADC
	ADC1->RSQR3 = adcno;
	ADC1->SAMPTR2 = TOUCH_ADC_SAMPLE_TIME<<(3*adcno);
	__enable_irq();

	uint32_t CFGBASE = io->CFGLR & (~(0xf<<(4*portpin)));
	uint32_t CFGFLOAT = ((GPIO_CFGLR_IN_PUPD)<<(4*portpin)) | CFGBASE;
	uint32_t CFGDRIVE = (GPIO_CFGLR_OUT_2Mhz_PP)<<(4*portpin) | CFGBASE;

	// If we run multiple times with slightly different wait times, we can
	// reduce the impact of the ADC's DNL.

#if TOUCH_FLAT == 1
#define RELEASEIO io->BSHR = 1<<(portpin+16*TOUCH_SLOPE); io->CFGLR = CFGFLOAT;
#else
#define RELEASEIO io->CFGLR = CFGFLOAT; io->BSHR = 1<<(portpin+16*TOUCH_SLOPE);
#endif

#define INNER_LOOP( n ) \
	{ \
		/* Only lock IRQ for a very narrow window. */                           \
		__disable_irq();                                                        \
		FORCEALIGNADC                                                           \
                                                                                \
		/* Tricky - we start the ADC BEFORE we transition the pin.  By doing    \
			this We are catching it onthe slope much more effectively.  */      \
		ADC1->CTLR2 = ADC_SWSTART | ADC_ADON | ADC_EXTSEL;                      \
                                                                                \
		ADD_N_NOPS( n )                                                         \
                                                                                \
		RELEASEIO                                                               \
																			    \
		/* Sampling actually starts here, somewhere, so we can let other        \
			interrupts run */                                                   \
		__enable_irq();                                                         \
		while(!(ADC1->STATR & ADC_EOC));                                        \
		io->CFGLR = CFGDRIVE;                                                   \
		io->BSHR = 1<<(portpin+(16*(1-TOUCH_SLOPE)));                          \
		ret += ADC1->RDATAR;                                                    \
	}

	int i;
	for( i = 0; i < iterations; i++ )
	{
		// Wait a variable amount of time based on loop iteration, in order
		// to get a variety of RC points and minimize DNL.

		INNER_LOOP( 0 );
		INNER_LOOP( 2 );
		INNER_LOOP( 4 );
	}

	return ret;
}

// Run from RAM to get even more stable timing.
// This function call takes about 8.1uS to execute.
static uint32_t ReadTouchPinSafe( GPIO_TypeDef * io, int portpin, int adcno, int iterations ) __attribute__((noinline, section(".srodata")));
uint32_t ReadTouchPinSafe( GPIO_TypeDef * io, int portpin, int adcno, int iterations )
{
	uint32_t ret = 0;

	ADC1->RSQR3 = adcno;
	ADC1->SAMPTR2 = TOUCH_ADC_SAMPLE_TIME<<(3*adcno);

	// If we run multiple times with slightly different wait times, we can
	// reduce the impact of the ADC's DNL.

#define INNER_LOOP_SAFE( n ) \
	{ \
		/* Only lock IRQ for a very narrow window. */                           \
		__disable_irq();                                                        \
		                                                                        \
		FORCEALIGNADC                                                           \
                                                                                \
		/* Tricky - we start the ADC BEFORE we transition the pin.  By doing    \
			this We are catching it onthe slope much more effectively.  */      \
		ADC1->CTLR2 = ADC_SWSTART | ADC_ADON | ADC_EXTSEL;                      \
                                                                                \
		ADD_N_NOPS( n )                                                         \
                                                                                \
		io->CFGLR = ((GPIO_CFGLR_IN_PUPD)<<(4*portpin)) | (io->CFGLR & (~(0xf<<(4*portpin))));                                                 \
        io->BSHR = 1<<(portpin+16*TOUCH_SLOPE);                                \
																			    \
		/* Sampling actually starts here, somewhere, so we can let other        \
			interrupts run */                                                   \
		__enable_irq();                                                         \
		while(!(ADC1->STATR & ADC_EOC));                                        \
		__disable_irq();                                                        \
		io->CFGLR = (GPIO_CFGLR_OUT_2Mhz_PP)<<(4*portpin) | (io->CFGLR & (~(0xf<<(4*portpin))));                                                  \
		__enable_irq();                                                         \
		io->BSHR = 1<<(portpin+(16*(1-TOUCH_SLOPE)));                          \
		ret += ADC1->RDATAR;                                                    \
	}

	int i;
	for( i = 0; i < iterations; i++ )
	{
		// Wait a variable amount of time based on loop iteration, in order
		// to get a variety of RC points and minimize DNL.

		INNER_LOOP_SAFE( 0 );
		INNER_LOOP_SAFE( 2 );
		INNER_LOOP_SAFE( 4 );
	}

	return ret;
}

#endif

/*
 * MIT License
 *
 * Copyright (c) 2023 Valve Corporation
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

cap_touch_adc.c
/*
	ADC-aided capacitive touch sensing.

	This demonstrates use of the ADC with cap sense pads. By using the ADC, you
	can get much higher resolution than if you use the exti.  But, you are
	limited by the number of ADC lines, i.e. you can only support a maximum of
	eight (8) touch inputs with this method.

	In exchange for that, typically you can get > 1,000 LSBs per 1 CM^2 and it
	can convert faster.  Carefully written code can be as little as 2us per
	conversion!

	The mechanism of operation for the touch sensing on the CH32V003 is to:
		* Hold an IO low.
		* Start the ADC
		* Use the internal pull-up to pull the line high.
		* The ADC will sample the voltage on the slope.
		* Lower voltage = longer RC respone, so higher capacitance.
*/

#include "ch32v003fun.h"
#include <stdio.h>

#include "ch32v003_touch.h"

int main()
{
	SystemInit();

	printf("Capacitive Touch ADC example\n");

	// Enable GPIOD, C and ADC
	RCC->APB2PCENR |= RCC_APB2Periph_GPIOA | RCC_APB2Periph_ADC1;

	InitTouchADC();

	// should be ready for SW conversion now
	while(1)
	{
		uint32_t sum[8] = { 0 };

		uint64_t start = SysTick->CNTL;
		start = start | ((uint64_t)SysTick->CNTH << 32);

		// Sampling all touch pads, 3x should take 6030 cycles, and runs at about 8kHz

		int iterations = 3;/*
		sum[0] += ReadTouchPin( GPIOA, 2, 0, iterations );
		sum[1] += ReadTouchPin( GPIOA, 1, 1, iterations );
		sum[2] += ReadTouchPin( GPIOC, 4, 2, iterations );
		sum[3] += ReadTouchPin( GPIOD, 2, 3, iterations );
		sum[4] += ReadTouchPin( GPIOD, 3, 4, iterations );
		sum[5] += ReadTouchPin( GPIOD, 5, 5, iterations );
		sum[6] += ReadTouchPin( GPIOD, 6, 6, iterations );
		sum[7] += ReadTouchPin( GPIOD, 4, 7, iterations );
		*/
		sum[0] += ReadTouchPin( GPIOA, 0, 0, iterations );

		uint64_t end = SysTick->CNTL;
		end = end | ((uint64_t)SysTick->CNTH << 32);

		printf( "%d %d %d %d %d %d %d %d %d\n", (int)sum[0], (int)sum[1], (int)sum[2],
			(int)sum[3], (int)sum[4], (int)sum[5], (int)sum[6], (int)sum[7], (int)(end-start) );
	}
}

Hi, I'm trying to make some of the examples work on a CH32x035G8U6. But at the moment I'm struggling with the cap_touch_adc example. I changed line 54 in ch32v003_touch.h, since CH32x035 has a 64-bit counter for SysTick. For testing, I changed cap_touch_adc.c, in order to get values only from PA0. However, the program crashes and jumps to line 767 in ch32v003fun.c (while( !DebugPrintfBufferFree() );). I did some debugging, the code works until it gets to line 87 in ch32v003_touch.h, switching to assembly, it happens at 0x00000734:
0x00000734: 1c 44           	lw	a5,8(s0)
0x00000736: 5c 44           	lw	a5,12(s0)
0x00000738: f9 bf           	j	0x716 <main+30>

What happens when it tries to execute the lw instruction at 0x00000734?
Does it trap or something?
If so then what are the values of CSRs such as mcause, mepc, mtval etc.?

Of course, sorry I forgot: MSTATUS:00000088 MTVAL:300027f3 MCAUSE:00000002 MEPC:00000216
Right after executing 0x00000734 it jumps to while( !DebugPrintfBufferFree() );, prints the values of CSRs (above) and then goes to
	// Infinite Loop
	asm volatile( "1: j 1b" );

Of course, sorry I forgot: MSTATUS:00000088 MTVAL:300027f3 MCAUSE:00000002 MEPC:00000216

As far as I can see...

mcause = 0x00000002 means illegal instruction
mepc = 0x00000216 is the address of the offending instruction
mtval = 0x300027f3 is the illegal instruction which decodes as csrrs x15, mstatus, x0

I had a similiar issue when trying to use parts the of systick_irq example in one of my projects, it crashed when calling NVIC_EnableIRQ(SysTicK_IRQn);. However, that problem was solved easily by adding extern "C" { ... } in my .cpp file.

I had a similiar issue when trying to use parts the of systick_irq example in one of my projects, it crashed when calling NVIC_EnableIRQ(SysTicK_IRQn);. However, that problem was solved easily by adding extern "C" { ... } in my .cpp file.

I don't see how that would help or how that's relevant here.
Did you check your disassembly against what I posted above?
Does your program have the csrrs x15, mstatus, x0 instruction at address 0x00000216 and is this actually where the fault is occurring?
If it does then somehow your target is seeing csrrs x15, mstatus, x0 as an illegal instruction.

The odd thing is that I cannot see any csrrs instructions at all in the core ch32v003fun or cap_touch_adc example program source files:
git clone https://github.com/cnlohr/ch32v003fun
cd ch32v003fun

grep -i csrrs ch32v003fun/*
# Nothing

grep -i csrrs examples/cap_touch_adc/*
# Nothing

There are some csrr instructions:
grep -i csrr ch32v003fun/*
ch32v003fun/ch32v003fun.h:              "csrr %0," "mstatus": "=r"(result));
ch32v003fun/ch32v003fun.h:              "csrr %0," "mstatus": "=r"(result));
ch32v003fun/ch32v003fun.h:    "csrr %0," "mstatus": "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0, 0x804": "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0," "fflags" : "=r" (result) );
ch32v003fun/ch32v003fun.h:      "csrr %0," "frm" : "=r" (result) );
ch32v003fun/ch32v003fun.h:      "csrr %0," "fcsr" : "=r" (result) );
ch32v003fun/ch32v003fun.h:      "csrr %0," "mstatus": "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0,""misa" : "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0," "mtvec": "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0," "mscratch" : "=r"(result));
ch32v003fun/ch32v003fun.h:      __ASM volatile("csrr %0," "mepc" : "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0," "mcause": "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0," "mtval" : "=r" (result) );
ch32v003fun/ch32v003fun.h:      "csrr %0,""mvendorid": "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0,""marchid": "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0,""mimpid": "=r"(result));
ch32v003fun/ch32v003fun.h:      "csrr %0,""mhartid": "=r"(result));

grep -i csrr examples/cap_touch_adc/*
# Nothing

Well, there is no csrrs in the disassembled file. At address 0x00000216 is:
216:	300027f3          	csrr	a5,mstatus
The strange thing is, during debugging, it's executing
0x00000732: e7 80 20 8d     	jalr	-1838(ra) # 0x20000000 <ReadTouchPin>,
but it doesn't seem to perform the jump, next thing it does is executing
0x00000736: 1c 44           	lw	a5,8(s0)
This address does not correspond with the address in the disassembled file. There it is 61a
61a:	441c                	lw	a5,8(s0)
firmeware.txt

Well, there is no csrrs in the disassembled file. At address 0x00000216 is: 216: 300027f3 csrr a5,mstatus

csrr is a pseudoinstruction that is actually encoded as csrrs.

The strange thing is, during debugging, it's executing 0x00000732: e7 80 20 8d jalr -1838(ra) # 0x20000000 <ReadTouchPin>, but it doesn't seem to perform the jump, next thing it does is executing 0x00000736: 1c 44 lw a5,8(s0) This address does not correspond with the address in the disassembled file.

I added g -Og -v to the flags. The address changed, but the behaviour is the same.
DEAD MSTATUS:00000088 MTVAL:300027f3 MCAUSE:00000002 MEPC:20000006
When running the code step-by-step, the program halts at
736:	441c                	lw	a5,8(s0)
and then is handling the exception and throwing the informations above.
firmeware.txt

Found this thread: https://github.com/eugene-tarassov/vivado-risc-v/issues/181
Might not be directly related to my problem, but this user has a similiar issue when trying to read CSR with mstatus. In his case, the problem is, he is running an OS so he has not enough privileges for mstatus and has to use ustatus.
However, this should not apply to my problem, since I'm running my code bare metal. How does the CPU decide, if code is running in machine mode or usermode?
Replacing mstatus with ustatus avoid mcause 2, but it leads to mcause 6, but this has something to do with the rest of the code which depends on working interrupts. Trying to access CSR with ustatus does nothing, I tried and it is not possible to change any values in CSR using ustatus.

I presume that that's not relevant in your case? (Does the CH32x035 MCU even support modes other than machine mode? I don't know and can't seem to access the WCH datasheet page lately).

Good question. Since the Ch32x035 has a PMP, it seems it can work in different modes. See reference manual on page 51.
However, when using the ch32v003fun framework, everything should work in machine mode, right?

If the csrrs x15, mstatus, x0 is definitely the instruction that is causing the illegal instruction exception then you need to figure out why this is the case.

Well, I'm working on it.
CH32X035DS0.PDF
CH32X035RM.PDF

I ended up adding:
#if defined ( CH32X03x ) asm volatile( "	li t0, 0x1888\n\ 	csrw mstatus, t0\n\ "); #endif
to ch32v003fun.c in the handle_reset() method. According to https://github.com/WuxiProject-offical/CH32X035-HelperLibrary/blob/main/startup_file/startup_ch32x035_highcode_machine.S this enters machine mode and enables global interrupts.
Seems to work, at least I don't get MCAUSE:00000002, now I get MCAUSE:00000006 when leaving the for-loop in ch32v003_touch.h for some reason, but this is another problem.

According to https://github.com/WuxiProject-offical/CH32X035-HelperLibrary/blob/main/startup_file/startup_ch32x035_highcode_machine.S this enters machine mode and enables global interrupts.
Link doesn't work. I presume that you meant this?

https://github.com/WuxiProject-offical/CH32X035-HelperLibrary/blob/e6ebd99c2cd487d9bceac6caabe9a09ee0ef2207/startup_file/startup_ch32x035_highcode_machine.S#L232-L235

I doubt that the device boots into anything other than machine mode and, in any case, the startup/reset code in question is writing to mstatus which can only be done in machine mode so I'm not sure that the analysis/change here is actually adequately analysed.
FWIW this is what the WCH EVT does at startup:

https://github.com/openwch/ch32x035/blob/ed56d28751ca2749db1f829307b434e4682b7de4/EVT/EXAM/SRC/Startup/startup_ch32x035.S#L214-L216

/* Enable global interrupt and configure privileged mode */
   	li t0, 0x88
   	csrw mstatus, t0

I doubt that the device boots into anything other than machine mode and, in any case, the startup/reset code in question is writing to mstatus which can only be done in machine mode so I'm not sure that the analysis/change here is actually thoroughly understood.

Well, I can only draw conclusions from what the official documentation tells me. Assumptions lead nowhere.
Anyway, I don't claim my solution to be the best solution. Maybe there is something else missing.

FWIW this is what the WCH EVT does at startup:
* https://github.com/openwch/ch32x035/blob/ed56d28751ca2749db1f829307b434e4682b7de4/EVT/EXAM/SRC/Startup/startup_ch32x035.S#L214-L216

/* Enable global interrupt and configure privileged mode */
   	li t0, 0x88
   	csrw mstatus, t0

But where is the ch32v003fun framework doing this?
If the reference manual is right, the standard mode is user mode. If that's the case, there are areas in flash, which can execute code in machine mode by default. The reset handler seems to belong to this area, since there CSR instructions can be executed without raising exceptions.

According to https://github.com/WuxiProject-offical/CH32X035-HelperLibrary/blob/main/startup_file/startup_ch32x035_highcode_machine.S this enters machine mode and enables global interrupts.
Link doesn't work. I presume that you meant this?
* https://github.com/WuxiProject-offical/CH32X035-HelperLibrary/blob/e6ebd99c2cd487d9bceac6caabe9a09ee0ef2207/startup_file/startup_ch32x035_highcode_machine.S#L232-L235

That's it.

Have you enabled interrupts in this project or not?  If not at all, then yes, let's dig in more.  If so, please disable them and debug from there.

If you are going to use the examples, please do not use C++.  You can use C++ only after you have all the basic stuff working.  You must take care when trying to use interrupts in C++.

I haven't tested cap_touch_adc on the x035.  It wasn't specifically designed to work with it, but should in principle.

@TommyMurphyTM1234 Re: mstatus, we set it right here: https://github.com/cnlohr/ch32v003fun/blob/master/ch32v003fun/ch32v003fun.c#L1012-L1020 - what is the issue there?
In general, why are there so many links here to WuxiProject?
I am available now, but I am really confused, what is the current issue you are having?

@TommyMurphyTM1234 Re: mstatus, we set it right here: https://github.com/cnlohr/ch32v003fun/blob/master/ch32v003fun/ch32v003fun.c#L1012-L1020 - what is the issue there?

I haven't asserted that there's any issue with what ch32v003fun does with mstatus.

but I am really confused

Me too. :-(

@yves5141  I still can't make heads or tails of what you're saying. ch32v003fun performs this operation https://github.com/cnlohr/ch32v003fun/blob/master/ch32v003fun/ch32v003fun.c#L1012-L1020
I don't think you're looking at ch32v003fun.


GNU Guix

Guix is a package manager, package repository, and through guix system a GNU/Linux distribution that is a different implementation of the same functional packaging approach that nix (#5) first introduced.
To get an isolated environment with some packages available you can use guix shell: https://guix.gnu.org/manual/en/html_node/Invoking-guix-shell.html
To get a reproducible isolated environment you just have to combine guix shell with guix time-machine (and probably checking in a channel description file into you project): https://guix.gnu.org/manual/en/html_node/Invoking-guix-time_002dmachine.html
These two blog posts go into more detail on how this could work:

https://www.futurile.net/2023/04/30/guix-reproducible-dev-environments/
https://www.futurile.net/2023/10/17/guix-time-travel-dev-environments/

There is even an active effort to make Guix on HPC a great experience: https://hpc.guix.info/
(Disclaimer: I haven't used guix myself yet; for now I have stayed with nix and just watched guix from afar. But I consider the functional packaging approach implemented by both to be the future of package management, no matter which implementation will become more popular. It is just so intuitive to do it this way.)

@kyleam was our local guixpert.


Do something neat with foreign keys

https://www.sqlite.org/pragma.html#pragma_foreign_key_list
SQLite has robust support for introspecting foreign keys. I could use that to automatically link to the corresponding record from my tables.

This is a dupe of #85


Make Vue3 frontend a true SPA

Is your feature request related to a problem? Please describe.
We currently embed the Vue3 frontend within the bootstrap-4 based HTML of sodar-core. This has several drawbacks, including bootstrap 4 CSS bleeding into the Vue app.
Describe the solution you'd like
Rather serve the app as a true SPA both for dev and production.

[ ] dev

[ ] configure vite server
[ ] configure django backend
[ ] adjust developer docs

[ ] production

[ ] configure vite server
[ ] configure django backend
[ ] adjust Docker build files

Describe alternatives you've considered
N/A
Additional context
N/A

Need to merge in main branch


⚠ Bofrost.be has degraded performance

In 061e9c9, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 961 ms

Resolved: Bofrost.be performance has improved in 4d9e87e after 1 hour, 49 minutes.


Update Brimcap-bundled Zeek to new release

As of GA Brimcap tagged v1.2.0, the bundled Zeek is based on Zeek v3.2.1, which is quite old at this point. As of August, 2022, the current Zeek release is v5.0.0. To become current, we'd need to update our port at https://github.com/brimdata/zeek to take advantage of the new functionality, have the benefit of current bug/security fixes, etc.

Verified using GA Zui v1.6.0 which uses GA Brimcap v1.6.0. As shown in the attached video, the bundled Zeek is now at version 6.0.3. Dragging a sample pcap into Zui, we can see some additional log types from the newer Zeek that were not generated from the older v3.2.1-based artifact, e.g., known_services, known_hosts, and ocsp. A recent Tweet shows others.
https://github.com/brimdata/brimcap/assets/5934157/79f0799e-8b4d-44a8-95d5-d071b81a9969


Question

Hi
I read a carousel tutorial on medium which use react-swipeable .
The swipe only works on mobile device, but I notice that  your demo  also work in desktop.
Is it a new feature that you added recently ?

@michellomp Thanks for the link to that article, good example and walkthrough.
We did add desktop/mouse support via trackMouse prop, trackMouse={true} with realease v4

Thanks @hartzis everything works fine


Vis specs: card

User story
As a maker of IBM.com experiences, I need design specs for the layout patterns that accurately reflect what's available in code so that I can design, build, and communicate with a clear understanding of what to expect.
Notes from the epic
There are a few different cases where the design spec may not reflect eh code accurately:

Some of the designs were changed during development for various reasons
Some of the designs specs were not created accurately as we went through the ontological restructuring of the patterns and subpatterns.

Acceptance criteria
All of the following patterns have dedicated, separate, and accurate design specs in their respective Box

[ ] Design specs are available in PDF format in this Box fodler

@wonilsuhibm minor updates to specs were needed – final Sketch file can be found here.
But we will need to add the new Solutions cards. I just received specs from Lila so we may need to continue this story next sprint.

@larahanlon2 Thank you. Let's continue this in sprint 7.

We (Olivia, Lila and I) met with Shixie and Pete this morning for a final review of card specs. We discussed and agreed on the following items:

Active state for cards will be hover + focus border. Shixie to follow up with Carbon on this state as the Carbon tile is slightly different (link has underline, we don't want that)
Will continue using condensed grid for card group on sm breakpoints. Shixie has a proposal for Carbon to allow cards to go full bleed on grid. She will document the specs and meet with Carbon to discuss but our specs will be finalized with the current condensed grid.
Image hover will be 8% lighten/darken.

Shixie and Pete will make final adjustments to their files and share back with the team. Will need @wonilsuhibm to approve.

Here's Shixie's prototype for hover states on image cards.


Fix home container scrolling

fixes #1133
But the properties doesn't scroll, which was the behavior before, I'm working on a fix, but its a separate issue so.

@anthonydresser I'll merge this to pick up fix for tonight's rebuild.


Limit count of Akzeptanzstellen in tile responses

Is your feature request related to a problem? Please describe.
We currently allow martin to create tiles with over 5k entries: https://tiles.ehrenamtskarte.app/rpc/physical_stores/0/0/0.pbf
That tile takes 1s to load. This is a good target to bring our servers down 😅
Describe the solution you'd like
Limit the amount of points in a tile to 100/200.
Describe alternatives you've considered
None
Additional context
None

1s for just 5k entries seems pretty long to me 😅 Can we speed up things somewhere?

Hmm to be honest I'm not sure if it's quick or slow. It's quite a large query which is encoded in an MVT.
The bottleneck is postgis definitely.


New version: UncertainData v0.8.2

Registering package: UncertainData
Repository: https://github.com/kahaaga/UncertainData.jl
Created by: @kahaaga
Version: v0.8.2
Commit: 57b2abe78a67964d7d5697d4b56fdd5600585ed9
Reviewed by: @kahaaga
Reference: https://github.com/kahaaga/UncertainData.jl/issues/118

Your new version pull request met all of the guidelines for automatic merging.
I will automatically merge this pull request during the next cron job.
If you want to prevent this pull request from being auto-merged, simply leave a comment.
(If you want to post a comment without blocking auto-merging, you must include the text [noblock] in your comment.)

On a separate note, I see that you are registering a release with a version number of the form v0.X.Y.
Does your package have a stable public API? If so, then it's time for you to register version v1.0.0 of your package. (This is not a requirement. It's just a recommendation.)
If your package does not yet have a stable public API, then of course you are not yet ready to release version v1.0.0.

[noblock]


Model Training

For the official training of MindYOLO's YOLOv8, is the hardware device used Ascend 910B or Ascend 910A?

For the official training of MindYOLO's YOLOv8, is the hardware device used Ascend 910B or Ascend 910A?

yes

I didn't understand which NPU model was used, can you explain specifically which one? A or B?


Could not find com.uphyca:stetho_realm:2.3.0

Build is failing due to could not find com.uphyca:stetho_realm:2.2.2.
Added
in app level
maven { url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo' }
maven { url 'https://github.com/WickeDev/stetho-realm/raw/master/maven-repo' }
in build.gradle
implementation 'com.uphyca:stetho_realm:2.2.2'

Hi @anil2546
Unfortunately that is outside our control, you will need to raise the issue at https://github.com/uPhyca/stetho-realm/issues


timeout error message appears after a long loading

From a user
"App doesnt load at all. Following a fresh install. The app displayed some introductory text discribing the app's function . Then it asked me to create a 6 digit pin to proceed. After picking a pin, I was prompted to enter the pin and followed by a "loading" spinner screen. About 30 sec later A message pops up saying that the action has timed out. That is the extent of my experience with this app. "
Device: Google Pixel 4
Device language: English
App version code: 557
App version name: 1.0.6
Android version: Android 13 (SDK 33)

I've seen this also on iOS, most recent build, first time using the app. May be more exaggerated on AFJ 0.3.2 but no data to compare.

I cannot duplicate this issue with build 557 on the device specified nor 647 (the latest build). I recommend Closing. @cvarjao Should we monitor this or close?

@cvarjao Should we close this since it is being monitored in another repo? My vote is to close this.

Closing this issue since there has been no complaint of this happening in a long while.

we have got a very similar report (via email) of this issue from someone (in Germany) running iPhone 13 Pro Max running iOS 16.5.


Safer loading

Hi!
I was just studying chainer's serialization/deserialization.
Very good job, but to make numpy loading safe one minor change needed:
from chainer.serializers import NpzDeserializer
def load_npz(file, obj, path='', strict=True):
    with numpy.load(file, allow_pickle=False) as f:
        d = NpzDeserializer(f, path=path, strict=strict)
        d.load(obj)

Please notice allow_pickle=False. By default, numpy.load allows using pickle, which can execute any code (pickle is very unsafe, that's why can't be used to share models, you probably know it).
I've checked that in my case this fix doesn't break already saved models, so probably it is a good solution.

Thank you for pointing that out!
I think it is better to allow_pickle=False by default.
Currently we allow users to add arbitrary thing to be serialized via add_persistent method.
https://docs.chainer.org/en/stable/reference/core/generated/chainer.Link.html#chainer.Link.add_persistent
So I think it is better to expose allow_pickle option to load_npz method.

The safety has become the default of NumPy >= 1.16.3.
https://github.com/numpy/numpy/releases/tag/v1.16.3

Unpickling while loading requires explicit opt-in
The functions np.load, and np.lib.format.read_array take an
allow_pickle keyword which now defaults to False in response to
CVE-2019-6446 <https://nvd.nist.gov/vuln/detail/CVE-2019-6446>_.

Closing since it was already fixed on numpy side. (thanks to @toslunar for pointing this)


Feature: Revoke refresh/access token on logout

Revoke refresh and access tokens when logging out.
Depends on https://github.com/stormpath/stormpath-sdk-node/pull/273 to be merged.
Closes #127.

+1 for this


When run start.sh, Dr.Elephant is not started correctly, but its log shows "Dr. Elephant started."

[hdfs@dn01 bin]$ ./start.sh  /home/hdfs/dr-elephant/app-conf
Using config dir: /home/hdfs/dr-elephant/app-conf
Using config file: /home/hdfs/dr-elephant/app-conf/elephant.conf
Reading from config file...
db_url:  localhost
db_name:  drelephant
db_user:  root
http port:  8080
This is hadoop2.x grid. Add Java library path: /lib/native
Starting Dr. Elephant ....
Dr. Elephant started.
However, it is not started correctly, because the db_url, db_name, db_user is not set yet. And it can not connect to MySQL.
So when I run the stop.sh, it shows:
[hdfs@dn01 bin]$ ./stop.sh
Dr.Elephant is not running.

@shichaoqu, right, we should fix this. I'd be happy if you can send a PR.
To debug the issue, you might want to check dr_elephant.log. If it is not generated, change line 151 in the start.sh script to
nohup ./bin/dr-elephant ${OPTS} > $project_root/dr.log 2>&1 & as sugested by Alex(wget.null) in the mailing list and see the dr.log file.

@akshayrai  the following text are the logs in dr.log, from the text, I can figure there might be some error in my MySQL configuration, I will appreciate that if you know the root cause and give me some suggestions. Thanks!
dr.log
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Play server process ID is 30102
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/hdfs/dr-elephant/dr-elephant-2.0.3-SNAPSHOT/lib/ch.qos.logback.logback-classic-1.0.13.ja
r!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/hdfs/dr-elephant/dr-elephant-2.0.3-SNAPSHOT/lib/org.slf4j.slf4j-log4j12-1.7.10.jar!/org/
slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/<IP_ADDRESS>-2041/hadoop/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.cl
ass]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
[ESC[37minfoESC[0m] play - database [default] connected at jdbc:mysql://es-mysql-dev.c0pjeiejow0t.us-east-1.rds.amazonaws.com/dr_elephant?characterEncoding=UTF-8
[ESC[31merrorESC[0m] play - Specified key was too long; max key length is 767 bytes [ERROR:1071, SQLSTATE:42000]
Oops, cannot start the server.
@701m51gbe: Database 'default' is in an inconsistent state!
at play.api.db.evolutions.Evolutions$.checkEvolutionsState(Evolutions.scala:193)
at play.api.db.evolutions.Evolutions$.databaseEvolutions(Evolutions.scala:348)
at play.api.db.evolutions.Evolutions$$anonfun$evolutionScript$2.apply(Evolutions.scala:313)
at play.api.db.evolutions.Evolutions$$anonfun$evolutionScript$2.apply(Evolutions.scala:311)
at scala.Option.map(Option.scala:145)
at play.api.db.evolutions.Evolutions$.evolutionScript(Evolutions.scala:311)
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1$$anonfun$apply$1.apply$mcV$sp(Evolutions.scala:462)
at play.api.db.evolutions.EvolutionsPlugin.withLock(Evolutions.scala:507)
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:461)
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:459)
at scala.collection.immutable.List.foreach(List.scala:318)
at play.api.db.evolutions.EvolutionsPlugin.onStart(Evolutions.scala:459)
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:88)
at play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:88)
at scala.collection.immutable.List.foreach(List.scala:318)
at play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:88)
at play.api.Play$$anonfun$start$1.apply(Play.scala:88)
at play.api.Play$$anonfun$start$1.apply(Play.scala:88)
at play.utils.Threads$.withContextClassLoader(Threads.scala:18)
at play.api.Play$.start(Play.scala:87)
at play.core.StaticApplication.(ApplicationProvider.scala:52)
at play.core.server.NettyServer$.createServer(NettyServer.scala:243)
at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:279)
at play.core.server.NettyServer$$anonfun$main$3.apply(NettyServer.scala:274)
at scala.Option.map(Option.scala:145)
at play.core.server.NettyServer$.main(NettyServer.scala:274)
at play.core.server.NettyServer.main(NettyServer.scala)

@akshayrai  Is the reason that  this  db_user can not visit the MySQL database 'default'.  Actually, for my MySQL user dr_elephant, it can only visit the db dr_elephant, and can not visit the db 'default'. As we have a strict limitation of privilege.

@shichaoqu can you list all the tables in your database 'dr_elephant' ?
I'm afraid some table is missing. There should be three tables: yarn_app_result, yarn_app_heuristic_result, yarn_app_heuristic_result_details

@stiga-huang  you are right, after I runned the script start.sh, that exception is thrown, and in the MySQL db, only one table exists, that is play_evolutions, which contains one row of the DDL. When you mean "There should be three tables:......", are these tables manually created or automatically created by Dr.Elephant? I guess it is automatically created, for there is no reference about this in the docs.
Thanks for your replay, I appreciate your help.

run 1.sql manually, some index creation may fail but it doesn't matter:
mysql> create index yarn_app_result_i5 on yarn_app_result (job_def_id);
ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
mysql> create index yarn_app_result_i6 on yarn_app_result (flow_def_id);
ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes
If want to create the index, change column in yarn_app_result of job_def_id, flow_def_id to VARCHAR(255)
@akshayrai should we change the length of AppResult#jobDefId,flowDefId to 255?
This may make dr. elephant compatible with all mysql config.

@shichaoqu @stiga-huang, 255 length doesn't work as Azkaban ids are longer.
Instead, I would suggest to add an index column limit for job_def_id, flow_def_id and flow_exec_id like so,
create index yarn_app_result_i4 on yarn_app_result (flow_exec_id(100));
create index yarn_app_result_i5 on yarn_app_result (job_def_id(100));
create index yarn_app_result_i6 on yarn_app_result (flow_def_id(100));
But note that you have to make this change in the generated distribution because otherwise the tests will fail as the h2 inmemory database that the tests use doesn't accept the above syntax.
You might want to take a look at the FAQ page.
@shichaoqu , follow the steps here but just before starting Dr.elephant, make the above change in the 1.sql file present in your distribution.

@akshayrai  Thanks for you suggestions!
After tried several times, my dr.elephant started successfully finally.
From my side, the reason it can not start is because of the Error - "[ESC[31merrorESC[0m] play - Specified key was too long; max key length is 767 bytes [ERROR:1071, SQLSTATE:42000]"
After I changed the 1.sql with your suggestion above, it is started. Besides I did no other change.
So, I suggest add thest SQL DDL changes to the repo.

@akshayrai  One more question: can we do some optimization to the 1.sql DDL?
In my opinion, if we create index on a column like "flow_def_id     VARCHAR(800)" or "job_def_id      VARCHAR(800)", this may bring press to MySQL to save index for very long columns. And this may sound not reasonable. Can we change the MySQL schema, or create index on some short columns? Limit the index prefix length(create index yarn_app_result_i4 on yarn_app_result (flow_exec_id(100));) may help, but it also sounds not quite reasonable.
What do you think about this?

@shichaoqu, sorry for the late reply.
As I said, adding the DDL change to the repo will cause all the fake application tests to fail. I know this sounds unfair. But any developer can wish to make minor changes according to his requirements as long as it doesn't change the complete schema. And moreover it is a one time setup right?
Reg your second comment.
I agree. I definitely want developers to use a index length limit for those ids.
But what limit should we choose? In Azkaban, the flow def url and other urls itself act as ids. As a result, for every job the prefix part of the id is somewhat similar (say http://host:port/executor?execid=...). So we cannot have an index that is too small. 100 seems to be a fair bargain.

@shichaoqu @stiga-huang @akshayrai  , I am facing same issue [play - Specified key was too long; max key length is 767 bytes [ERROR:1071, SQLSTATE:42000] . Can you please guide me by telling where is 1.sql DDL and what is the final change u did. if possible print whole content .

@santoshhdandin, you can find the solution in the FAQ.
1.sql file is under conf/evolutions/default


Delete shared collection

We are going to archive shared-app-collection soon. https://gigantic.slack.com/archives/C04TGHDEF/p1625735662001100
Checklist

[ ] Update changelog in CHANGELOG.md.

going with a ping


Reconcile Waste Heat <= Production for all Technologies

Currently ExistingBoiler can produce waste heat while heating production is zero; will review for all heating techs.

closing - addressed in https://github.com/NREL/REopt.jl/pull/404


"Mobile App Sync Issue: Disappearing Notes, Data Synced with Obsidian Desktop"

Notes disappeared after syncing with server on mobile app, but data was not lost as notes were synced with Obsidian on desktop. Possible issue related to setting up sync with Obsidian on new computer.

Summarized feedback from<EMAIL_ADDRESS>
Notes disappeared after syncing with server on mobile app, but data was not lost as notes were synced with Obsidian on desktop. Possible issue related to setting up sync with Obsidian on new computer.

Summarized feedback from<EMAIL_ADDRESS>
The user lost all their notes on the Fleeting Notes app after syncing with the server on their mobile device, but they had a backup in Obsidian on their desktop. They suspect that setting up sync with Obsidian on their new computer may have caused the issue.


Switch to using a Kubernetes Informer rather than polling the api

A prototype of this work is already complete and exists on master, but it hasn't been tested; and @ksten-ab's wasn't confident in enabling it by default (I don't understand the edge cases informers enough yet!).
Will need to test it out and handle any rough edges.

This was implemented in commit https://github.com/soxhub/telemetry-bot/commit/5856919a93ae9ad5c140cb8553c0bedec276cb88, preliminary testing shows it working successfully.


Azure OpenAI Completions Support

Proposal
It would be nice to add Azure OpenAI Completions to our project. It's widely used in business, so it could attract more users and keep us ahead as AI and ML become standard. Besides, implementation shouldn't differ that much and there are libs that already support OpenAI on azure platform.
Use-Case
Similar to OpenAI.
Is this a feature you are interested in implementing yourself?
Maybe

Thanks for creating this one, @animalnots! We'll prioritize this and aim to deliver very soon.

maybe can use one-api replace openai url ,one-api proxy to Azure OpenAI

Thanks for the suggestion @imkratos. However, there is no English support/maintenance for this library, therefore it's a no-go for us.

@arielweinberger @imkratos @animalnots  i'm the maintainer of LiteLLM: https://github.com/BerriAI/litellm
We provide a hosted or self hosted open-source proxy that can call 100 + LLM APIs.
If this is a priority, I'd love to help with an integration 😀

Happy to help with implementing this feature myself to - can I just get some guidance on how to best do this @arielweinberger @eylonmiz ?
https://github.com/BerriAI/litellm is a python library and noticed you're using JS

We provide a hosted proxy that you can set your OpenAI base to to handle this
If you'd like you can use our self hosted proxy

Thanks @ishaan-jaff - was good to have a chat. We'll see if and how we choose to implement this in the roadmap.

I just want to ask if this is on the agenda?

Is there any update on this integration?

Just wantet to add a +1 here, holding off on using pezzo until this is available


Customize the appearance (theming)

Is your feature request related to a problem? Please describe.
No. It is a feature request.
We can define a bunch of themes globally from which the user can select any theme of choice and add it in the config.yml file.
The globally define theme can include all the design elements: header, footer, buttons...
Describe the solution you'd like

What cannot be done?

This is my opinion 👇🏻👇🏻👇🏻

We cannot allow users to define their own customized theme where users can change the color of the text or button.
Additional context
I have also discussed about this in the NetlifyCMS community talk on 29-08-2018.

I would love to be able to do this so that I can give clients a custom themed CMS to edit their content, which would look very professional and provide a premium experience.

Hey guys,
any news on this / is there discussion happening about this somewhere else?

There hasn't been much chatter about this topic lately @rikurb8
Although the maintainers would love to see a feature like this implemented, there are still more pressing matters to work on. We're happy to support any effort to help this thing to the finish line though!

I've long thought we needed to split the UI components out so they could be replaced with custom ones, but I bet what people really want is just to change colors and maybe fonts? Most of this is already controlled by a set of variables, so in the future it could be feasible to theme through the CMS config: https://github.com/netlify/netlify-cms/blob/ccef446d72f96fa8d8db9bf2d0be5633eff79979/packages/netlify-cms-ui-default/src/styles.js#L4-L82

colors, fonts, logos, light and dark mode, that kind of stuff, yes. Basically so I can give the client a 'custom' CMS for thier custom site/app/thing that has their logo, colors, fonts, etc...

The only complicated part is doing this in a way that works for extensions, namely widgets.
Sent with GitHawk

yeah, looks pretty str84ward :-)

I've long thought we needed to split the UI components out so they could be replaced with custom ones, but I bet what people really want is just to change colors and maybe fonts? Most of this is already controlled by a set of variables, so in the future it could be feasible to theme through the CMS config:
https://github.com/netlify/netlify-cms/blob/ccef446d72f96fa8d8db9bf2d0be5633eff79979/packages/netlify-cms-ui-default/src/styles.js#L4-L82

How do I go about accessing these variables in the index.html of the CMS UI? I tried adding a script HTML element in the head and changing the colors assigned but nothing happened.
https://github.com/numoonchld/nmc-ossu-bi-ncms/blob/master/admin/index.html

They're internal, no outside access at the moment.

Alright. Will watch for updates.

👍 for this feature

Any progress on this issue?

Any update/progress?

Hi @kenkoy, the CMS is a community based project. I you'd like to contribute to this issue, it might be better to follow https://github.com/netlify/netlify-cms/issues/2557

As a workaround, you can add this to the end of <head>:
<script<EMAIL_ADDRESS><script>
  DarkReader.enable();
</script>
<style>
html, body {
  width: 100%;
  height: 100%;
}
</style>

As a workaround, you can add this to the end of <head>:
<script<EMAIL_ADDRESS><script>
  DarkReader.enable();
</script>
<style>
html, body {
  width: 100%;
  height: 100%;
}
</style>

The color contrasts are all inaccessible. I have perfect vision and the gray on gray is hard to read for me.

This would be such a fantastic feature to have!


Bug: mqtt not connecting correctly

Please make sure your bug isn't already listed on HASS.Agent's issue tracker:
https://lab02research.youtrack.cloud/
There's a list of open bugs & features on the right. On the left you can see what's being worked on, what's planned and what's ready for the next release.
If you're not sure, don't worry, just go ahead and we'll discuss :)

Describe the bug
It appears hass.agent is not sending the login to my mosquitto mqtt broker on home assistant. I keep getting the message:
"2022-09-12 21:36:24: Client  disconnected, not authorised.
2022-09-12 21:36:29: New connection from <IP_ADDRESS>:53002 on port 1883.
error: received null username or password for unpwd check"
every 5 seconds.
To Reproduce
install hass.agent and set up mqtt
Expected behavior
mqtt communication with the broker
Screenshots

Misc info (please complete the following information):

Windows build (ideally screenshot/info of winver.exe output):

Windows' UI language: English
HASS.Agent version: [2022.12.0] and [2022.13.0-beta2]

Please check what's applicable (multiple answers possible):

[x] Installed via installer
[ ] Installed manually
[x] Problem occurs in HASS.Agent
[x ] Problem occurs in Satellite Service

Additional context
Add any other context about the problem here.
Logs
If possible, please provide the logs of HASS.Agent and - if applicable - the Satellite Service. You can find HASS.Agent's logs by going to the main window, then Configuration -> Logging -> open logs folder. The Satellite Service's logs are in the same window, but the Satellite Service tab -> open service logs folder. If you want, you can mail them to<EMAIL_ADDRESS>

fixed it, i added <IP_ADDRESS> and ::1 to my trusted_proxies in my config file and now it works. Hadn't added them yet as i was only using mqtt for rhasspy so far and that uses an private ip starting with 172.

Nice find! Glad it's fixed

@NopeFinder can you clarify how you fixed this? I am getting the exact same thing with the same setup

Ok I figured it out actually, it is the HASS.Agent Satellite Service. that was continually trying to connect to MQTT broker without any credentials. Apparently you have to set this up separately from the MQTT settings in HASS.Agent.
@LAB02-Admin perhaps it would be nice feature request to show this issue in the system status for the satellite service, as it was always reading 'ok' despite not being able to connect to MQTT..

@alexschwantes next version will sync hass.agent's mqtt settings to the service (except the client id), but good point on the issue status, will do :)


feat: use key-value store for analysis data

To be able to process big amounts of data, we need to store the analysis data on disk instead of memory.
Closes #118.

can we confirm the expected behavior as:
--use-storage: set StorageAnalyzer, overrride local storage
--read-from-storage: set StorageAnalyzer & read from local storage
?
If so, I would suggest to use an alternative flag pairs:
--use-storage: set StorageAnalyzer, read from local storage by default
--overrride-storage: overrride local storage
this might be safer: prevent unintended local storage overriding/storage lost :( which I have met :(


How to pretrain UniLM from zero on my own data?

Describe
Model I am using (UniLM, MiniLM, LayoutLM ...):
UniLM

Hi, I got the same issue and I wonder if you have solved the problem?

Same problem， Is there any official issue to solve this problem?


Read only dialogue nodes

There's not really a good way (as far as I can tell) to create a dialogue where a character just says something and you continue. Currently, I've just been either creating a dialogue node with only one option as the content which means you have to click it, or just using a content node, but that doesn't have an option to mark a character. An option to add characters to content nodes or a way to use dialogue nodes without any options and some content instead.

Have you tried toggling the Playable checkbox off ?
When you make a Dialog node none-playable, the Arrow console and runtime(s) will auto-play that.
If there is only one line of dialog, it'll be printed and you continue to the next node.
When there are more than one lines of dialog, one of them will be played randomly and you continue to the next node.
The playable checkbox is right under the list of dialog lines in the Node tab of the Inspector panel and is on by default.


connecting from another laptop

trying to connect to a running crc using https://github.com/code-ready/crc/blob/master/docs/source/topics/proc_connecting-to-remote-instance.adoc
However, my 'client' is using Fedora 33 and I wonder if my problems are related to using dnsmasq and the default F33 setting described in
https://fedoramagazine.org/systemd-resolved-introduction-to-split-dns/
Are there ways to verify the proxy and  dns config on both sides?

followed the instructions in https://gist.github.com/zoilomora/f7d264cefbb589f3f1b1fc2cea2c844c and everything 'just worked', so maybe docs just need to be updated for F33?

Ah yeah, this part of the documentation is not good for f33. However, rather than disabling systemd-resolved altogether, you could use resolvectl dns to append your remote server as a DNS server to your default network interface? (though I am a bit confused by 'using dnsmasq and the default f33 settings' used in the same sentence, for me dnsmasq and systemd-resolved as used by f33 are mutually exclusive)

thanks for the quick reply @cfergeau
TBH, this stuff is all new to me, I was hoping to 'just follow the docs'... but now that I'm here, I suppose there's no harm in learning new things ;)
I see there's an option to use both together at https://unix.stackexchange.com/questions/304050/how-to-avoid-conflicts-between-dnsmasq-and-systemd-resolved
and https://itectec.com/ubuntu/ubuntu-how-to-add-dnsmasq-and-keep-systemd-resolved-18-04/
One thing I can report is that I tried F32 laptop as a client and ran into the same issues, resolved again using the gist from above.

We do need to update the client documents from fedora-33, I am surprised to know that it doesn't work with f-32, @pwright can you provide some details about that f-32 system?

@praveenkumar  what do you wanna know? it might be an edge case, given that I had run crc/minikube/docker on it previously and that might have messed up networking in some way. Just mentioning it in case it's a procedure that hasn't been tested for a few releases.

The procedure was tested using a Fedora 32 client with both a Fedora 32 server and a RHEL 8 server. At the time, this procedure worked well for all of these configurations. All of these operating systems, for both the client and the server, were fresh installations, though.
I understand that we need to update the client documentation for Fedora 33, but I'm not certain what, exactly, needs to be changed at this point in order to verify that the steps will work as intended.

I had the same issue. I've been able to make it work quite easily, keeping using systemd-resolved.
Since I already had CRC installed at some point on my client laptop, I already had the file /etc/NetworkManager/dispatcher.d/99-crc.sh created. What I did was just to change the IP of crc to my server IP:
export LC_ALL=C

resolvectl domain crc ~testing
resolvectl dns crc <IP_ADDRESS>
resolvectl default-route crc false

exit 0

where <IP_ADDRESS> is my server IP.
I don't really know how systemd-resolved works, so not sure if just this config is sufficient, or if there's more that I didn't see because I had crc installed previously.

I don't really know how systemd-resolved works, so not sure if just this config is sufficient, or if there's more that I didn't see because I had crc installed previously.

This should be enough.

Is it still an issue ?

We still need to update our remote documentation for systems using systemd-resolved.

We still need to update our remote documentation for systems using systemd-resolved.

This is still not part of the document so I will add doc tag for this one.


favicon.ico should be replaced into the icon that can represent reflex

Describe the bug
A clear and concise description of what the bug is.
The file favicon.ico at reflex/.templates/assets/favicon.ico is still the icon of the pynecone.
We need to put some favicon.ico for reflex.
To Reproduce
Steps to reproduce the behavior:

Code/Link to Repo:

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Specifics (please complete the following information):

Python Version:
Reflex Version:
OS:
Browser (Optional):

Additional context
Add any other context about the problem here.

Hi @Alek99 :
This PR https://github.com/reflex-dev/reflex/pull/1469 can solve this issue.


[CELEBORN-1552] automatically support prometheus to scrape metrics for helm chart

What changes were proposed in this pull request?

Add Annotations to Master Service and Worker Service for automatically scraping by Prometheus.
Add Ports to Worker Service, since it's empty before that prometheus cannot connect to workers.

Why are the changes needed?
Although master and worker provide http interfaces, We still need add annotations manually for prometheus automatically scraping.
Does this PR introduce any user-facing change?
No. Users will not feel any changes to install and use Celeborn.
How was this patch tested?
test locally and in dev environment.
Before:

After:

@RexXiong Could you please take a look at this?


cluster: handle invalid member name

fix error message.

fix error message.

@etcd-bot retest this please
An etcd pod keeps pending. Seems like a normal cluster flake:
skip reconciliation: running ([test-etcd-lz1z2-0000 test-etcd-lz1z2-0001]), pending ([test-etcd-lz1z2-0002])

@etcd-bot retest this please
An etcd pod keeps pending. Seems like a normal cluster flake:
skip reconciliation: running ([test-etcd-lz1z2-0000 test-etcd-lz1z2-0001]), pending ([test-etcd-lz1z2-0002])

Merging this.
I will fix the member name parsing thing later.

Merging this.
I will fix the member name parsing thing later.


Apply material design 3 to MaterialCustomControl

Mark the old one as obsolete.
Create the new version on the new M3 folder.
Apply default styles.

We are excited to announce that we are working on a new generation of controls based on Material Design V3, which we will be releasing soon.
This ticket has been included/fixed in the upcoming version of this NuGet package, which will include both current and new generations of controls.


fix: Add copy button in input fields

Description
Add copy button on hover in text area
Fixes #24
Video
https://github.com/undistro/cel-playground/assets/109150688/b1d6ab40-7efe-43a1-ae49-f3b29c4f3e19
Checklist

[x] I have labeled this PR with the relevant Type labels
[ ] I have documented my code (if applicable)
[ ] My changes are covered by tests

Hi @pateldivyesh1323 I was testing your changes and I got those errors. They happen because the Clipboard API only works in secure context as this article says, probably in production environment it will work properly. Even though, as a suggestion in development environment a fallback can be provided to make clear why the copy is not working.

Hi @joaovictor3g can you tell me how to reproduce it or how you tested it, and more about fallback which you are suggesting.

Hi @pateldivyesh1323 i tested in local environment running make serve, i am using chrome but the error behavior happened in firefox too. Basically the Clipboard API does not work outside HTTPS certificate. And about the fallback a simple console.error must sole it.

@joaovictor3g
   navigator.clipboard.writeText(value).catch(console.error);

like this?
yes it does not usually work on http, but I cant reproduce it although I am using chrome

@pateldivyesh1323 yes, like that, can you please commit it?

@joaovictor3g Done.

@pateldivyesh1323 thank you very much for your contribution and collaboration.
We really appreciate it.


Add React Native example app

Adds a React Native example app to the examples directory. This is mostly a verbatim copy of the existing project, created from scratch to use the latest dependencies/build tools etc.

I've removed the auto-generated tests and added .npmrc to .gitignore to avoid it being committed to VCS.
The gradle-wrapper.jar needs to be included in source control to make local development easier - we could remove it from the final artefact however.


[Feature request] SONOFF iHost - SonoffLAN integration support?

Suggest that you consider maybe looking to add support in SonoffLAN integration for the upcoming SONOFF iHost from ITead.

https://itead.cc/product/sonoff-ihost-smart-home-hub

https://sonoff.tech/product-review/sonoff-ihost-smart-home-hub

https://ewelinkcommunity.net/device-lists/local-server/sonoff-ihost

Note! This suggested feature request is a early since the product is still only available as pre-order or invited reviewers and devs.
The device is being sold as a local smart home hub and home server as is currently primarily being marketed as a local access and local control device that does not need cloud connection, though I understand that you currently need to sign up for an eWeLink cloud account and login with it in order to enable developer mode on the device using the officially supported procedure for it.

https://www.youtube.com/watch?v=5ZX4lIuWTyE&ab_channel=SONOFF
https://www.youtube.com/watch?v=Y0NRcv9BBd4&ab_channel=SONOFF

They will sell two models referred to as “4G version” (Quad-Core CPU + 4GB RAM) and “2G version” (Dual-Core CPU + 2GB RAM).
It features the same Silicon Labs EFR32MG21 chip as the original Sonoff ZBBridge (and their new Sonoff ZBDongle-E USB dongle):

https://notenoughtech.com/home-automation/sonoff-ihost/

https://www.youtube.com/watch?v=KBvGWoWq__Y

For reference, ITead/Sonoff have official documentation here for their officially supported OS and firmware that it ships with:

https://sonoff.tech/ihost-user-guides/

https://sonoff.tech/ihost-user-guides/#Local-Control

https://sonoff.tech/ihost-user-guides/#Login-and-OTA

https://sonoff.tech/ihost-user-guides/api/

https://ewelink.cc/ewelink-cube/

https://ewelink.cc/ewelink-cube/open-api/

https://github.com/CoolKit-Technologies/node-red-contrib-ewelink-cube

https://hub.docker.com/r/ewelink/ewelink-smart-home

https://github.com/CoolKit-Technologies/cc.ewelink.smart.home.addon

More references:

https://ewelinkcommunity.net/2023/03/sonoff-places-teaser-video-of-upcoming-ihost-online-what-can-we-expect-from-this-device/
https://ewelinkcommunity.net/2023/03/sonoff-released-their-ihost-affordable-computer-to-completely-make-your-smarthome-locally-controlled/

Is English your first language?

Is English your first language?

No.

Thought so. On 31 Mar 2023, at 19:59, Hedda @.***> wrote:
Is English your first language?
No.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

would realy like to se add on for ihost made by Alexx as its integration is much better then official one for HA.

Even if it could be installed in a docker on the SD card mine currently randomly decides whether there is an SD card now anyway. Tried two cards, both of which work in my PC. Their website says that USB storage is possible, but I’ve tested it and it just hangs if you put a memory stick there. Nothing happened when I put an external SD card reader in the slot. To work as a security device it really needs reliable storage. On 13 Apr 2023, at 01:08, zvrka @.***> wrote:
would realy like to se add on for ihost made by Alexx as its integration is much better then official one for HA.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Even if it could be installed in a docker on the SD card mine currently randomly decides whether there is an SD card now anyway. Tried two cards, both of which work in my PC. Their website says that USB storage is possible, but I’ve tested it and it just hangs if you put a memory stick there. Nothing happened when I put an external SD card reader in the slot. To work as a security device it really needs reliable storage. On 13 Apr 2023, at 01:08, zvrka @.> wrote: would realy like to se add on for ihost made by Alexx as its integration is much better then official one for HA. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

mine card works perfectly,you did not read that right...usb port on ihost for now is only for debuging purposses

Nope. This page on the ITEAD says these exact words:SONOFF iHost Smart Home Hub - SONOFF Officialsonoff.tech“Storage Methods: USB and SD card (max. 256 GB)“It would be pretty hard to misread that. On 13 Apr 2023, at 01:44, zvrka @.***> wrote:
Even if it could be installed in a docker on the SD card mine currently randomly decides whether there is an SD card now anyway. Tried two cards, both of which work in my PC. Their website says that USB storage is possible, but I’ve tested it and it just hangs if you put a memory stick there. Nothing happened when I put an external SD card reader in the slot. To work as a security device it really needs reliable storage. On 13 Apr 2023, at 01:08, zvrka @.> wrote: would realy like to se add on for ihost made by Alexx as its integration is much better then official one for HA. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>
mine card works perfectly,you did not read that right...usb port on ihost for now is only for debuging purposses
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

The Coolkit team was kind enough to send me this device (all other Sonoff devices I've always bought myself).
I'll see what I can do when I get it.

Mine keeps forgetting it has an SD card, but assuming yours works there's expandable storage, it's Linux based and can run dockers. I believe there is also an open local API, but from memory that's being released in June on their schedule, although I imagine they'd let you know before then. I've not read anywhere what information is communicated to docker containers from the main body or what antennas are available directly, although there are already instructions on installing node-red and homebridge on their website.

Hello,
I have started developing a pip package for the eWelink CUBE API, which is used by iHost (and NSPanel Pro as well).
It's created about from the existing Node-RED package, code is available at here:
https://github.com/sm4rth0m3/python-pip.sonoff-ewelink-cube-client-api
This is just a REST API library and does not include integration with HASS, but I can try keep into consideration (using asyncio and aiohttp).
I hope it will be useful.

Is there any update on this?
It would be magical to be able to see what's on the iHost without using HomeKit


Restore reaction-avatars feature

Fixes #5698
Test URLs

Issue comments
PR comments, reviews & review comments
Discussion replies (not the first post, this likely needs specific logic to be fix since the whole comment gets replaced on load & when a reaction is added/removed)

Screenshot
Before

After

Can we please release this?


fiftyone app connect still tries to load the dataset locally

I'm testing on a Windows machine with no datasets available and connecting to a Linux machine with cifar10 downloaded. Running fiftyone app launch cifar10 --remote on Linux, then fiftyone app connect on Windows brings up a working dashboard but produces these errors in the Windows console whenever I click on an image:
Exception in thread Thread-11:
Traceback (most recent call last):
  File "c:\users\test\env\lib\site-packages\mongoengine\queryset\base.py", line 260, in get
    result = next(queryset)
  File "c:\users\test\env\lib\site-packages\mongoengine\queryset\base.py", line 1590, in __next__
    raw_doc = next(self._cursor)
  File "c:\users\test\env\lib\site-packages\pymongo\cursor.py", line 1164, in next
    raise StopIteration
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\test\env\lib\site-packages\fiftyone\core\dataset.py", line 1616, in _load_dataset
    _meta = foo.ODMDataset.objects.get(name=name)
  File "c:\users\test\env\lib\site-packages\mongoengine\queryset\base.py", line 263, in get
    raise queryset._document.DoesNotExist(msg)
fiftyone.core.odm.dataset.DoesNotExist: ODMDataset matching query does not exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python38\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "c:\users\test\env\lib\site-packages\socketio\client.py", line 616, in _handle_eio_message
    self._handle_event(pkt.namespace, pkt.id, pkt.data)
  File "c:\users\test\env\lib\site-packages\socketio\client.py", line 500, in _handle_event
    r = self._trigger_event(data[0], namespace, *data[1:])
  File "c:\users\test\env\lib\site-packages\socketio\client.py", line 554, in _trigger_event
    return self.namespace_handlers[namespace].trigger_event(
  File "c:\users\test\env\lib\site-packages\socketio\namespace.py", line 18, in trigger_event
    return getattr(self, handler_name)(*args)
  File "c:\users\test\env\lib\site-packages\fiftyone\core\client.py", line 72, in on_update
    self.data = self.data_cls.from_dict(data)
  File "c:\users\test\env\lib\site-packages\fiftyone\core\state.py", line 82, in from_dict
    dataset = fod.load_dataset(dataset.get("name"))
  File "c:\users\test\env\lib\site-packages\fiftyone\core\dataset.py", line 92, in load_dataset
    return Dataset(name, _create=False)
  File "c:\users\test\env\lib\site-packages\fiftyone\core\singleton.py", line 51, in __call__
    instance.__init__(name, _create=_create, *args, **kwargs)
  File "c:\users\test\env\lib\site-packages\fiftyone\core\dataset.py", line 174, in __init__
    self._meta, self._sample_doc_cls = _load_dataset(name)
  File "c:\users\test\env\lib\site-packages\fiftyone\core\dataset.py", line 1618, in _load_dataset
    raise DoesNotExistError("Dataset '%s' not found" % name)
fiftyone.core.dataset.DoesNotExistError: Dataset 'cifar10' not found

mongodb appears to be spun up locally, which is likely part of the issue (probably the server too)

fiftyone app connect now fails due to the migration framework attempting to load the dataset.


Improve error messages for the --iree-input-type= flag

When a user omits the --iree-input-type=[mhlo, xla, tosa, tm_tensor, none] flag, the output from iree-compile is confusing. For example:

https://github.com/openxla/iree/issues/10294):
error: The following illegal operations still remain:
        mhlo.reshape (count: 18)
        mhlo.batch_norm_inference (count: 52)
        mhlo.convolution (count: 53)
        mhlo.clamp (count: 35)
        mhlo.reduce_window (count: 1)
        mhlo.add (count: 2)
        mhlo.constant (count: 5)
        mhlo.return (count: 1)

https://github.com/openxla/iree/discussions/9759
/simple_mul.mlir:2:3: error: The following illegal operations still remain:
    tosa.const (count: 10)
    tosa.fully_connected (count: 3)
    tosa.mul (count: 1)
    tosa.tanh (count: 4)
    tosa.conv2d (count: 2)
    tosa.exp (count: 1)
    tosa.reciprocal (count: 1)
    tosa.reduce_sum (count: 1)
    tosa.avg_pool2d (count: 2)
    tosa.reshape (count: 1)

We have a VerifyCompilerMHLOInputLegality pass and a VerifyCompilerTOSAInputLegality pass, both of which have better error messages, such as: https://github.com/openxla/iree/blob/223d02f16d94fbb5c6c5989ca0ef01c40d0ec34b/compiler/src/iree/compiler/InputConversion/MHLO/VerifyCompilerMHLOInputLegality.cpp#L51-L56
However, those passes are only ran at the end of input-type-specific passes, like here: https://github.com/openxla/iree/blob/223d02f16d94fbb5c6c5989ca0ef01c40d0ec34b/compiler/src/iree/compiler/InputConversion/MHLO/Passes.cpp#L106-L109
We could add a similar pass that runs regardless of the input type, perhaps around here: https://github.com/openxla/iree/blob/223d02f16d94fbb5c6c5989ca0ef01c40d0ec34b/compiler/src/iree/compiler/Pipelines/Pipelines.cpp#L33-L46
Another idea is to automatically detect the input type based on some metadata (added by the import tool?) or the ops in the input program.

StableHLO, Torch, and TOSA input pipelines are all now compiler plugins (code here: https://github.com/openxla/iree/tree/main/compiler/plugins/input). Maybe we could add a generic verification pass to https://github.com/openxla/iree/blob/main/compiler/src/iree/compiler/InputConversion/Common/AutoInputConversionPipeline.cpp?


How to set the class name to tag

It is easier to set the style, if  can specify the class name of the tag
put_button(……).attr('class','my-classname')

It's a good idea, I will consider to add the feature in future.
A workaround is here:

with use_scope('scope_name'):
    put_buttons(...)

run_js("$('#pywebio-scope-scope_name button').attr('class','my-classname')")

It's a good idea, I will consider to add the feature in future.
A workaround is here:
with use_scope('scope_name'):
    put_buttons(...)

run_js("$('#pywebio-scope-scope_name button').attr('class','my-classname')")

Thanks for this solution


Nit: change the color of the warning banner

Now that the project is in beta (congratulations!), we no longer need BIG SCARY WARNINGS. Instead, pastel yellow would be clear enough without being a distraction anymore. It would also compose with the blue of the theme to form the Pythonic colors 😄
I realize this is a nit but I hope since this is trivial enough to implement, it's not too much to ask.

@nlhkabu I defer to your thoughts here!
Thank you @ambv for your suggestion.

Thanks again @ambv!


add my signature

Indentation is wrong on line 2340-2341, can you fix that ?

@ednxzu  weird, when I fix it locally, it looks wrong here in the PR. can you help me? (sorry)

I don't see the problem here ? The screenshot  seems to be the same as your last commit ? What's the issue ?

this is what I see after pushing 🤷🏼♂

Looks good on my end, weird...

maybe it's just a github web bug, should we merge?

🤔 the PR is still blocked, do we need more reviewers?

yes, I am not an official reviewer or anything, people from the organization need to actually review PRs in order for them to be merged.


WIP: Better warning when comma is used instead of semicolon in record

fixes #1122

chenged "Consider to replace" to "Consider replacing" as @isaacabraham suggested

I was noticed of a bikeshedding type of job from twitter.
Can we not mention F# in the error message?
';' is used to separate field values in records. Consider replacing ',' with ';'.
Great job on the fix nonetheless :)

There are other error messages that contain the string "F#". Maybe create a
new issue which discusses to make that consistent. Also it would make a
really nice beginner friendly issue to fix.
On May 10, 2016 6:30 PM, "Gauthier Segay"<EMAIL_ADDRESS>wrote:

I was noticed of a bikeshedding type of job from twitter.
Can we not mention F# in the error message?
';' is used to separate field values in records. Consider replacing ','
with ';'.
Great job on the fix nonetheless :)
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/visualfsharp/pull/1171#issuecomment-218214139

really nice beginner friendly issue to fix

Yes way more than the one with suggesting inline, I looked at it for a while and not getting close to a resolve on it at this point.
I'll make a ticket to remove the redundant mention of F# in the messages, I think we shouldn't add more though :smile:

is it possible to do the similar with lists? happens me often when switching from other languages

That one is not so easy. See https://github.com/Microsoft/visualfsharp/issues/1120

I removed "F#" from the message.

This looks good to me (I haven't checked out why AppVeyor CI is failing).  Great to see that the "context" is consistently helping us improve error messages.

Re F# in error messages - I did scan these the other day, and am happy that this isn't chronic - most uses are specific cases where we decided to refer to the language e.g. w.r.t. some OCaml compat feature.    So I don't think we need to do anything there.

@dsyme ,  @ forki ,
Appveyor is failing because of the test baseline needs updating with the revised error text.
I will pull this and fix the test at the same time.
[00:35:57] +++ Warnings (CommaInRecCtor.fs) +++
[00:35:57] Microsoft (R) F# Compiler version (private)
[00:35:57] Copyright (c) Microsoft Corporation. All Rights Reserved.
[00:35:57] (5,18): error FS0001: This expression was expected to have type
[00:35:57]     string
[00:35:57] but here has type
[00:35:57]     'a * 'b * 'c
[00:35:57]
[00:35:57] A ';' is used to separate field values in records. Consider replacing ',' with ';'.
[00:35:57] (5,9): error FS0764: No assignment given for field 'Age' of type 'CommaInRecCtor.Person'
[00:35:57]
[00:35:57] *** The following necessary lines were never matched:
[00:35:57] ***	\(5,18\):.+error FS0001:.+Consider replacing
[00:35:57]
[00:35:57]
[00:35:57] *** The following necessary lines were incorrectly matched:
[00:35:57]
[00:35:57] Unexpected Compiler Output
[00:35:57] FAIL
[00:35:57]
[00:35:57]
[00:35:57]

this was merged by @KevinRansom 2s before I pushed small changes. will reopen new PR