Fototoon don't handle window resize

Fototoon activity don't handle window resize event. So, if the activity is open with a small window then resized, the board keep the same size.

@llaske Can you replicate this issue?

Yes, it's a bug.

Hi,
I tried solving this issue but got to know that we can change the size of the canvas while the window resizes but can't change the size of elements existing inside it.
Preview:

When I checked why actually this is happening then I got to know that the values of elements (i.e. x-coordinate, y-coordinate, height, width, and other properties) existing inside canvas updates only when the user presses the stop button.
You can see how values are fixed here:

Also due to this if the user refreshes the window at any moment in between then it will retrieve the last data stored (when pressed the stop button) on the canvas.
If any user wants to update the size or text of any element then he has to do that manually and press the stop button to save it in the journal.
I may be wrong but I don't think we can update the size of elements inside the canvas while resizing the window. But yes, We can update the size of the canvas while resizing.
Opinions will be highly appreciated.

Hmmm. I agree that it's complex to resize elements inside the canvas.
BTW we could resize the canvas and center content in the canvas. So if the current window size is larger than the initial size the content will not appear in the top left corner.

Regarding the content in the canvas, they are not controlled using media queries here. So they will remain in the same x, y coordinates always until the user drags them to a new position and saves it using the stop button.
Content will not appear in the top left corner, it will remain in its position when the window resizes.
Preview of what I am saying:

But we can update the size of Canvas and images imported from the journal when window resizes.
Preview:

I will send the PR if this looks good to you.

Sounds good.

https://github.com/llaske/sugarizer/pull/909#issuecomment-749216194
@llaske, Can you please explain this point, I couldn't get what did differ from what you want

#909 (comment) @llaske, Can you please explain this point, I couldn't get what did differ from what you want

In a comic the globe is use to show a character speaking. So it's important to locate it near the character's mouth.
If the image is resized but the globe is not moved it will not appear to be near the character's mouth.


1.1 definition of early science

I am confused by the sentence "This includes the commissioning period and the ﬁrst year of survey operations" If early science includes everything "through and including DR1", it corresponds to the first 6 months of survey operations, doesn't it? I understand that it will take 6 months of processing to get to DR1 release, but the data taken during this processing phase (which would correspond roughly to the second semester of year 1) will be part of DR2.

In scenario B, I presume that the sentence

As
per Scenario A, the operations team may decide to ﬁrst conduct a full dress rehearsal of
science operations to demonstrate team readiness prior to commencing execution of
the LSST.

means that the project may decide to spend up to a maximum of 2 months collecting more on-sky data and do scenario A before starting normal operations. Is my understanding correct? If yes, maybe make this sentence more explicit?


Add tracing sections for gateway 3.0

Summary

Add observability sections for tracing, log and metrics.
Reason

FT-2922

Is this still a draft @mayocream ?

It's ready for review now!

@mayocream I reviewed this. I'm not sure what the purpose of telemetry.md is. It feels incomplete.
I also rebased and moved the docs into the new navigation bar.

I removed the telemetry.md, the purpose was to tell the 3rd developers that it's recommended to use the new tracing API to monitor and track the performance and events of the custom plugin.

@Guaris Thanks for the copy edit; the observability/tracing sections should be under "Kong in Production" nav in my own perspective since it's a common toolchain like the perf testing framework.

LGTM


Read Joycon color?

Does this read the Joycons colors? The Joycons store a color for their body and a color their buttons. I wonder how I can get the colors to my game.

As well as battery level?


Unavailable quotes drawer

Overview
Currently in all envs, swapper displays some non-actionable quotes:

While some of these errors are something you can "fix" as a user (e.g not enough native asset, not enough fee asset, minimum not met etc), some others aren't really errors, and only mean the current selection is incompatible for a given swapper (cross-chain not supported, chain not supported, pair not supported) aren't really errors per se in the sense nothing failed upstream as a result of.
This PR is to add a drawer that will group all "unavailable quotes" (cross-chain not supported, chain not supported, pair not supported) into a drawer.
References and additional details
N/A
Acceptance Criteria

A drawer is added that groups all unavailable quotes in their own collapsable drawer, collapsed by default
Quotes that errored because of "wrong user state" (not enough balance, not enough fees, minimum not met...) are still displayed outside of the drawer

Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response

to fix your trouble check this solution click
maybe this will solve your problem.

Here is a mock for this:
https://www.figma.com/design/ZkRqq0Bk1glXqIW776IAtr/Portals?node-id=636-3893&node-type=frame&t=ftzpLksOo2ZyCmx0-0
The empty state icon is from tabler <TbRoute />


[1pt] PR: Clip ocean mask from DEM and extend outlet streams

Some NWM streams, particularly in coastal areas, fail to reach the edge of the DEM resulting in reverse flow (https://github.com/NOAA-OWP/inundation-mapping/issues/916#issuecomment-2010590913). This issue was resolved by clipping the ocean mask from the buffered WBD and DEM, and any remaining streams that didn't have outlets reaching the edge of the buffered WBD boundary were extended by snapping the end to the nearest point on the buffered WBD.
Note: this does not solve the issue noted at https://github.com/NOAA-OWP/hydrofabric/issues/38
Changes

data/wbd/clip_vectors_to_wbd.py: Clips landsea ocean mask from the buffered WBD and adds a function to extend outlet streams to the buffered WBD

Testing
DEM before (left) and after (right) clipping the ocean mask from the buffered WBD

Flow direction of DEM-derived reaches (red dashed lines) indicated by bold red arrows (before (left) and after (right))

Issuer Checklist (For developer use)
You may update this checklist before and/or after creating the PR. If you're unsure about any of them, please ask, we're here to help! These items are what we are going to look for before merging your code.

[x] Informative and human-readable title, using the format: [_pt] PR: <description>
[x] Links are provided if this PR resolves an issue, or depends on another other PR
[x] If submitting a PR to the dev branch (the default branch), you have a descriptive Feature Branch name using the format: dev-<description-of-change> (e.g. dev-revise-levee-masking)
[x] Changes are limited to a single goal (no scope creep)
[x] The feature branch you're submitting as a PR is up to date (merged) with the latest dev branch
[x] pre-commit hooks were run locally
[x] Any change in functionality is tested
[x] Passes all unit tests locally (inside interactive Docker container, at /foss_fim/, run: pytest unit_tests/)
[x] New functions are documented (with a description, list of inputs, and expected output)
[x] Placeholder code is flagged / future todos are captured in comments
[x] CHANGELOG updated with template version number, e.g. 4.x.x.x
[x] Reviewers requested
[x] Add yourself as an assignee in the PR  as well as the FIM Technical Lead

Merge Checklist (For Technical Lead use only)

[ ] Update CHANGELOG with latest version number and merge date
[ ] Update the Citation.cff file to reflect the latest version number in the CHANGELOG
[ ] If applicable, update README with major alterations

Strange, I just ran a couple of the problem HUCs and didn't have any errors:
/foss_fim/data/wbd/generate_pre_clip_fim_huc8.py -n /data/inputs/pre_clip_huc8/24_03_29 -u /data/inputs/huc_lists/test_hucs.lst -j 6 -o
Created directory: /data/inputs/pre_clip_huc8/24_03_29/18070305, huc level files will be written there.
Created directory: /data/inputs/pre_clip_huc8/24_03_29/18070201, huc level files will be written there.
Generating vectors for 18070305.
Generating vectors for 18070201.
Parallelizing HUC level wbd pre-clip vector creation.

 Get WBD 18070305

 Get WBD 18070201

 - Creating -- /data/inputs/pre_clip_huc8/24_03_29/18070305/wbd.gpkg - Complete

Get Vector Layers and Subset 18070305
Getting Cell Size for 18070305

 - Creating -- /data/inputs/pre_clip_huc8/24_03_29/18070201/wbd.gpkg - Complete

Get Vector Layers and Subset 18070201
Getting Cell Size for 18070201
Create wbd buffer for 18070305
Create wbd buffer for 18070201
Create landsea gpkg for 18070305
Create landsea gpkg for 18070201
Subsetting Levee Protected Areas for 18070201
Subsetting Levee Protected Areas for 18070305
Subsetting NWM Lakes for 18070201
Subsetting NLD levee lines for 18070201
Subsetting NWM Lakes for 18070305
Subsetting NLD levee lines for 18070305
Subsetting NWM Headwater Points for 18070305
Subsetting NWM Headwater Points for 18070201
Subsetting NWM Catchments for 18070201
Subsetting NWM Streams for 18070201

         Completing Get Vector Layers and Subset: 18070201

 Clip WBD 18070201
Subsetting NWM Catchments for 18070305

 - Creating -- /data/inputs/pre_clip_huc8/24_03_29/18070201/wbd.gpkg - Complete
                 run time for huc 18070201: is 0:02:00
Subsetting NWM Streams for 18070305

         Completing Get Vector Layers and Subset: 18070305

 Clip WBD 18070305

 - Creating -- /data/inputs/pre_clip_huc8/24_03_29/18070305/wbd.gpkg - Complete
                 run time for huc 18070305: is 0:03:12

         Completed writing all huc level files

                 TOTAL RUN TIME: 0:03:13


Fix checksum verification

To investigate the intermittent checksum errors, I added some code to print out stats on the downloaded package index file when it encounters a checksum error. What stood out was that, whenever the checksum failed, the byte size written would always be slightly off from the byte size expected. E.g.;
release_url: http://ports.ubuntu.com/ubuntu-ports/dists/noble-security/InRelease
url: http://ports.ubuntu.com/ubuntu-ports/dists/noble-security/universe/binary-arm64/by-hash/SHA256/184473504b3e97aec550d1bb687b0871e8113f60ab7e8ff136f60f4ecdca9b20
uncompressed size: 1461506
compressed size:   365359
expected size:     365376

These errors also often go away when the automation is re-run. This would indicate that there are bytes not being consumed during the async_copy(reader, writer) process. After several different attempts at forcing the remaining bytes to write, there are two changes that seemed to provide stability:

Removing the AsyncBufWriter
Since we need an AsyncBufReader in front of the GzipDecoder, we already are buffering the reads into large chunks before sending them to the writer so why not just write directly to the file instead of passing it through a buffered writer?

Setting reader.multiple_members(true)
You can gzip compress multiple files into a single stream and many gzip readers decode these automatically. Here though, the gzip content is not comprised of multiple files so why would setting this flag cause all the bytes to write? I suspect that, due to how the read process works, when the end of the stream is reached, an extra read is performed to check if there are more entries in the stream and that somehow triggers a flush.

Surprisingly, trying to explicitly flush or shutdown the AsyncBufWriter did not provide the expected stability for correcting these checksum issues. And I'm still not 100% convinced the instability is completely fixed but, so far, this change seems like a reasonable thing to try and observe.
Fixes #53

Looks like I spoke too soon. After several repeated test runs it fails once I turn it into a PR 🤦


Can we run script at each update like run.sh at starting ?

I'll try to run rancher/Os with zfs so I build  DKMS but when I'll upgrade and .... :P fail
so any idea ?
LINK TO: https://github.com/rancher/os/issues/690

Upgrade will unpack a new version of /lib/modules and overwrite the one you already have, so you lost the changes that populate with dkms. If you want to upgrade, avoid any change to the OS (vmlinuz and initrd)
I personally think RancherOS should not introduce dmks feature in production. Instead, it should provide a way to build a customized kernel.


Let the serializer be set programmatically!

When initializing a client, there is no possibility to choose the serialization module or configure it. Probably this is a choice made to let KMongo figure out at runtime which serialization engine is available and pick one from the classpath using reflections or some other Java-old-school-black-magic.
For example Ktor allows to explicitely set a Json formatter when initializing the module (docs here). The equivalent in KMongo would be to create an interface that wraps the various implementations of serializers and provide defaults implementations of those serialization interfaces for the engines already implemented and eventually let the developer choose which engine to use not by classpath black magic but by explicitely calling the right serializer like:
interface KMongoSerializer {
    fun <T : Any> serialize(obj: T, type: KType): Bson
    fun <T : Any> deserialize(bson: Bson, type: KType): T
}

@OptIn(ExperimentalStdlibApi::class)
inline fun <reified T: Any> KMongoSerializer.serialize(obj: T) =
    serialize(obj, typeOf<T>())

@OptIn(ExperimentalStdlibApi::class)
inline fun <reified T: Any> KMongoSerializer.deserialize(bson: Bson) =
    deserialize<T>(bson, typeOf<T>())

class KotlinxSerializer(private val kbson: KBson) : KMongoSerializer {
    override fun <T : Any> serialize(obj: T, type: KType): Bson {
        // use this.kbson to deserialialize
    }
    override fun <T : Any> deserialize(bson: Bson, type: KType): T {
        // use this.kbson to serialize
    }
}

class KMongoDBClient(client: MongoClient, serializer: KMongoSerializer) {
    // actual implementation and dispatch of calls only for this client
}

fun main() {
    val serializer: KotlinxSerializer =  // whatever with custom contextual stuff ecc...
    KMongo.createClient("localhost:1234", serializer)
}

Have a look on how kotlinx.serialization Json recovers a specific serializer using its KType here.
Also a programmatic approach for choosing a serializer would be easier to for developer to use, more concise and explicit and Kotlin friendly. I also believe it would be easier for maintain the KMongo codebase.

Hello,
As you might expect, there is a  ClassMappingTypeService interface that is loaded by the ServiceLoader java mechanism at runtime.
If there is more than one implementation in the classpath, the priority property of each ClassMappingTypeService is used to select the service. So you can already select your mapping engine by providing your own implementation (expert usage ;) ).
Do you have a use case with two mapping engines for KMongo in the same application ?

In my application I have Json, KBson and Protobuf serializers and while Json and Protobuf shares the same SerializersModule that is contained in my dependency injection container, KBson is built by the ServiceLoader.
Indeed I could write a serializer by myself for KMongo but in my use case I just need to add contextuals to the KBson serializersModule. Also we plan to be able to serialize differently some classes at runtime and this would not be possible with the actual implementation of the KMong serialization loading mechanism.
To summarize, I need to easily pass a custom SerializerModule to the KBson that KMongo will use and it would be ideal to do it it without runtime magic. This solution is needed because the data classes I am trying to serialize do not have their serializer in their project!


One-to-one matching

Assuming there are no duplicates in the datasets, is there a method built in the package to get one-to-one matches instead of just the match probability for each pair?
Example where the match status is ambiguous :

File A
File B
Probability

a1
b1
0.95

a2
b1
0.90

a1
b2
0.70

There isn't a function for this.  I think it might be harder than it looks - for example, in the following data, what should the answer be?

File A
File B
Probability

a1
b1
0.95

a1
b2
0.94

a2
b1
0.93

a2
b2
0.01

We'd certainly be interested in adding this functionality if we could figure out the right rules to apply reduce the long list of potential matches down to the desired one to one matches

A simple example of how to achieve one to one matches is now included in the following topic guide:
https://moj-analytical-services.github.io/splink/topic_guides/querying_splink_results.html
Note that the solution uses the simplest possible algorithm, and therefore is susceptible to the kind of issue described above.

I think we still want to leave this open - the one to one matching example does not handle the ambiguous cases mentioned higher in the thread

The web page for the topic guide has been moved to
https://moj-analytical-services.github.io/splink/topic_guides/splink_fundamentals/querying_splink_results.html

@RobinL I just want to note that I don't think the example in the topic guide is one-to-one matching, but one-to-many. It ensures that each row in the left dataset will only have one match, but multiple rows in the left dataset could link to the same row in the right dataset.
Along the lines of the "most likely" solution you described above, the most well-established algorithm for one-to-one matching is maximizing the sum of the match weights. I believe this was first described by Jaro in "Advances in Record-Linkage Methodology as Applied to Matching the 1985 Census of Tampa, Florida" in 1989 (JSTOR link -- see section 4.2).
It would be great to have this in Splink! Though, I'm not sure whether it could be implemented in SQL. Do all Splink computations need to be in SQL, or is there some "fallback" mechanism like UDFs?

Also, while one-to-one is likely the most common case and is worth implementing first, there are other sorts of constraints that you see in practice. Datasets can be any combination of unique (you shouldn't cluster two records in them together, the file is assumed to have no duplicates) and exhaustive (you shouldn't make any clusters that don't include at least one record from that file, because it assumed to contain the whole population).
Some examples:

Every cluster should be made up of exactly one record from the left dataset, and exactly one record from the right dataset (both datasets are unique and exhaustive)
Every cluster should be made up of exactly one record from the left dataset, and either zero or one records from the right dataset (left dataset is unique and exhaustive, right dataset is unique)
Every cluster should be made up of exactly one record from the left dataset, and at least one record from the right dataset (left dataset is unique and exhaustive, right dataset is exhaustive)
Every cluster should be made up of zero or one records from the left dataset, and at least one record from the right dataset (left dataset is unique, right dataset is exhaustive)
...

Framing it this way also generalizes naturally to N datasets, which "one-to-one" does not.

Aside about an edge case you may have noticed is excluded from the list
The most confusing constraints happen when both datasets have a minimum of 0 records per cluster, as this permits clusters with 0 records overall, which we of course can't create with no data.
The key question is how records relate to the population you want to do statistical inference about. You actually can statistically think about a population when some of its entities show up zero times in your data, when all you want to know is the size of the population and not any attributes of those people you never observed.
Here is a paper doing this using capture-recapture methods. In practice, for the linkage step, which obviously only operates on the data you actually have, you would have a restriction of "at least one record from either dataset in each cluster" in addition to any per-dataset maximums, and then the zero-record clusters would only be implicitly represented in the downstream statistical model.
For anything besides population size estimation, you need to ignore that your datasets are not (even collectively) exhaustive, and make the typical assumption (common in all kinds of models) that the entities you did observe are representative of the whole population.


Fail building OpenCV 3.1.0 on OSX 10.11.4 El Capitan

I'm trying to compile the OpenCV javacpp-presets 3.1.0 following the instruction here (https://github.com/bytedeco/javacpp-presets/wiki/Build-Environments#mac-os-x-x86_64) on OSX El Capitan version 10.11.4, but I got a lot of errors during the compilation of OpenCV.
This is the list of errors I got:
https://www.dropbox.com/s/zhh7paln3ow9xgc/javacv-preset opencv MAC error.txt?dl=0
Can anyone help?

We have successfully built OpenCV on MacOSX 10.11.4 with XCode 7.3: build info, cmake output Several compilation warnings had been fixed, but nothing critical.
It is either a problem in version 3.1, either some local configuration issue. Try to use latest master branch version.
Feel free to reopen this issue if the problem will be reproduced during standalone OpenCV build.


__loadSession not in _initialize StackGuard on Chrome MacOS

Bug report

[x] I confirm this is a bug with Supabase, not with my own application.
[x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
When implementing supabasejs (which includes this lib) in a clean ReactJS application, the initialize process is stuck in a "forever await" state when trying to load tokens from the URL (social login, magic link, forgot password).
In the __loadSession function, there is an await for the initialize promise if the call is not made from within the initialize StackGuard. https://github.com/supabase/gotrue-js/blob/c6141010e0589bec1466e8eacb3b19f956d47dce/src/GoTrueClient.ts#L927
I suspect this to be to make sure this function is never called before the initialize function has finished.
On Chrome (on Mac M2), the call from within the _initialize StackGuard returns false on isInStackGuard('_initialize') (when it's supposed to return true. This causes the function to await the initializePromise, which can never be set because that's what the function was trying to do.
I've added some console.log calls to the helpers.ts when a StackGuard is created and checked (isInStackGuard), to see if they are created correctly. This is the console log:
GoTrueClient@0 2023-07-23T09:40:57.674Z #_acquireLock begin -1
helpers.ts:365 CREATE stackGuard: ENV_CHECK
helpers.ts:340 FOUND stackGuard: ENV_CHECK
helpers.ts:345 NOT FOUND stackGuard: _acquireLock
GoTrueClient.ts:236 GoTrueClient@0 2023-07-23T09:40:57.684Z #_acquireLock lock acquired for storage key sb-hidden-auth-token
helpers.ts:365 CREATE stackGuard: _acquireLock
helpers.ts:365 CREATE stackGuard: _initialize
GoTrueClient.ts:236 GoTrueClient@0 2023-07-23T09:40:57.684Z #_initialize() begin is PKCE flow false
GoTrueClient.ts:236 GoTrueClient@0 2023-07-23T09:40:57.684Z Getting session from URL.
GoTrueClient.ts:236 GoTrueClient@0 2023-07-23T09:40:57.684Z #_useSession begin
helpers.ts:345 NOT FOUND stackGuard: _useSession
GoTrueClient.ts:236 GoTrueClient@0 2023-07-23T09:40:57.684Z #_acquireLock begin -1
helpers.ts:345 NOT FOUND stackGuard: _acquireLock
GoTrueClient.ts:236 GoTrueClient@0 2023-07-23T09:40:57.684Z #_acquireLock lock acquired for storage key sb-hidden-auth-token
helpers.ts:365 CREATE stackGuard: _acquireLock
helpers.ts:365 CREATE stackGuard: _useSession
GoTrueClient.ts:236 GoTrueClient@0 2023-07-23T09:40:57.684Z #__loadSession() begin
GoTrueClient.ts:236 GoTrueClient@0 2023-07-23T09:40:57.684Z stackGuardsSupported() true
helpers.ts:345 NOT FOUND stackGuard: _initialize

What is weird is that you can see it creates helpers.ts:365 CREATE stackGuard: _initialize and then in __loadSession it can't find this StackGuard helpers.ts:345 NOT FOUND stackGuard: _initialize.
To Reproduce
Create a clean ReactJS application and install supabasejs. The actual React files are not even needed to reproduce but it's the env I'm working in.
In the main.tsx just put:
const supabase = createClient("REPLACE_URL", "REPLACE_KEY");

Use a magic link or social login link to test. The Supabase client needs to attempt to load tokens from the URL to crash.
Expected behavior
I expect the tokens in the URL to be used to load the user session. In more technical terms, I expect isInStackGuard('_initialize') to return true when in the _initialize StackGuard.
Screenshots
If applicable, add screenshots to help explain your problem.
System information

OS: MacOS
Browser (if applies): Chrome Version 115.0.5790.102 (Official Build) (arm64)
Version of supabase-js: 2.26.0, gotrue-js version 2.45.0 (manually downloaded. This solved issues in Safari and FireFox, works correctly in those 2 browsers now).

Related: https://github.com/supabase/supabase/issues/15930
I believe the auth team is looking into this. Thanks for the detail!

Hey what do you use to build your app? Next.js? Other framework? If you have tsconfig file I'd love to see it.

It’s “regular” plain react. But in the example I shared I don’t even use react. I’m not at the computer atm, will share tsconfig later. But this is pure frontend.

I'd love to see what else is going on with the supabase.auth library in your app. I don't think it has to do with _initialize stack guards.

Ok, back at computer.
tsconfig.json
{
    "compilerOptions": {
        "target": "ESNext",
        "useDefineForClassFields": true,
        "lib": ["DOM", "DOM.Iterable", "ESNext"],
        "allowJs": false,
        "skipLibCheck": true,
        "esModuleInterop": false,
        "allowSyntheticDefaultImports": true,
        "strict": true,
        "forceConsistentCasingInFileNames": true,
        "module": "ESNext",
        "moduleResolution": "Node",
        "resolveJsonModule": true,
        "isolatedModules": true,
        "noEmit": true,
        "jsx": "react-jsx"
    },
    "include": ["src"],
    "references": [{ "path": "./tsconfig.node.json" }]
}

tsconfig.node.js
{
  "compilerOptions": {
    "composite": true,
    "module": "ESNext",
    "moduleResolution": "Node",
    "allowSyntheticDefaultImports": true
  },
  "include": ["vite.config.ts"]
}

vite.config.js
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [react()],
    resolve: {
        alias: {
            '@': path.resolve(__dirname, './src'),
        },
    },
});

package.json
{
    "name": "myapp",
    "private": true,
    "version": "0.0.0",
    "type": "module",
    "scripts": {
        "dev": "vite --force",
        "build": "tsc && vite build",
        "preview": "vite preview"
    },
    "dependencies": {
        "@emotion/react": "^11.10.6",
        "@popperjs/core": "^2.11.6",
        "@reduxjs/toolkit": "^1.8.5",
        "@supabase/supabase-js": "^2.26.0",
        "@testing-library/jest-dom": "^5.16.5",
        "@testing-library/react": "^13.4.0",
        "@testing-library/user-event": "^13.5.0",
        "@types/jest": "^27.5.2",
        "@types/node": "^16.11.64",
        "@types/react": "^18.0.21",
        "@types/react-dom": "^18.0.6",
        "react": "^18.2.0",
        "react-dom": "^18.2.0",
        "react-popper": "^2.3.0",
        "react-router-dom": "^6.4.2",
        "react-scripts": "5.0.1",
        "typescript": "^4.8.4",
        "web-vitals": "^2.1.4",
        "yup": "^0.32.11"
    },
    "devDependencies": {
        "@tailwindcss/forms": "^0.5.3",
        "@tailwindcss/typography": "^0.5.7",
        "@types/react": "^18.0.27",
        "@types/react-dom": "^18.0.10",
        "@vitejs/plugin-react": "^3.1.0",
        "autoprefixer": "^10.4.12",
        "i18next": "^21.10.0",
        "i18next-browser-languagedetector": "^6.1.8",
        "i18next-http-backend": "^1.4.4",
        "postcss": "^8.4.17",
        "react-animate-height": "^3.0.4",
        "react-i18next": "^11.18.6",
        "react-perfect-scrollbar": "^1.5.8",
        "tailwindcss": "^3.3.2",
        "typescript": "^4.9.3",
        "vite": "^4.1.0"
    }
}

main.tsx
import { createClient } from '@supabase/supabase-js';

const supabase = createClient("https://barry.supabase.co", "key);

Couldn't upload a zip of my @supabase npm folder, so I just created a new public repository for it haha. You can see it here: https://github.com/barrykooij/my-supabase-npm-folder/tree/main/%40supabase

I'm getting more or less the same behavior as @barrykooij in my test app. You can set it up locally to see that the password recovery steps aren't working as expected (you will need to remove the flowType: 'pkce' from the src/lib/db.ts file first).
https://github.com/supabase-community/supabase-by-example/tree/main/reset-flow/react

@barrykooij I think we found the issue and are currently testing out a fix that we will get released soon.

@barrykooij the latest release of the @supabase/supabase-js library should resolve this issue. Please test and let us know if the issue has now been fixed.

Will be fixed with #757.

Thanks for the quick work, I'm going to test this when I'm back in the office!

@barrykooij any updates though?

Sorry that it took me so long to test, had some deadlines. Just tested this with version 2.33.2 and it all seems to working now!
Thanks a lot!


Add a delay in demos after MQTT_ProcessLoop.

Added a short delay in demos after MQTT_ProcessLoop to give CPU cycles to other tasks.
Checklist:

[ ] I have tested my changes. No regression in existing tests.
[ ] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/bot run checks

The fix suggested does not resolve the delay caused by processloop when the processloop timeout is non-zero.


Typecast query results everywhere

Description
We need to make better use of Typescript by type-scripting the returned rows of our queries.
This will allow us to not have to cast every variable after that....
Acceptance

[ ] Return rows are casted to a defined Type
[ ] Unnecessary casts are removed (ie: String())

https://github.com/gajus/slonik#runtime-validation


A11y_AzureDataStudioSQL_PublishProjects_Generate Scripts(Terminal)_Keyboard: Horizontal scrollbar is not scrollable using keyboard when screen is zoomed to 200%

“Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.”
GitHubTags: #A11yWCAG2.1;#A11yTCS;#A11ySev2;#SH_AzureDataStudioSQL_Feb2021;#SQL Azure Data Studio;#Win10;#FTP;#DesktopApp;#WCAG2.1.1;#AINotInScope;#Zoom;
Prerequisite:

Set the text size to 200% in "Ease of access settings"

Environment Details:
Application Name: Azure Data Studio
Windows Version: Win10
Repro Steps:

Launch the application-Azure Database Project and install extension SQL Database Projects.
Tab till SQL Database Project Home Screen with heading "Projects".
Tab to connections select your server and connect to it.
Tab to Projects tab an press shit+f10 on any created project.
Tab till "Publish Project" and hit enter
Hit on Generate script and navigate to task
Check if scrollbar is getting scrolled using keyboard

Actual:
Horizontal scrollbar is not scrollable using keyboard when screen is zoomed to 200%
Expected:
Horizontal scrollbar should bet scrollable using keyboard when screen is zoomed to 200%
User Impact:
Keyboard only users will face difficulty in getting the information

Issue logged in regression

vscode does not support keyboard horizontal scrolling for trees https://github.com/microsoft/vscode/issues/58198, which is what the task history uses to display tasks. This problem is also present for the servers tree and file explorer trees when horizontal list scrolling is enabled in settings.

opened issue in vscode https://github.com/microsoft/vscode/issues/121132

We have filed a Reflow exception request and are waiting on official approval from CELA. We received initial support from Guy Barker. I'll keep this thread updated once we hear back on the official decision.
https://ceacc.visualstudio.com/ceaccex/_workitems/edit/42844/

closing the issue, Azure Data Studio requested exception for WCAG 2.1: https://ceacc.visualstudio.com/ceaccex/_workitems/edit/42844/

githubtags:#closed;
reopening new bug as still reproduces
https://github.com/microsoft/azuredatastudio/issues/22423


Desktop and Browser client keyboard shortcut for scroll up/down message list possible?

Tested on Windows10 Firefox and the latest Desktop client. I don't find a keyboard shortcut to scroll a message list up and down. Slack has PageUp/PageDown keycodes to scroll message list while focus is in a message prompt field.
Is this possible in Mattermost(browser, desktop) or considered to have in a future?

@jasonblais Would you confirm this?

Confirmed on Slack webapp. So probably it's possible feature also on Mattermost webapp.

@amyblais Sounds like this applies to both browser and desktop. Can you help create an improvement ticket for the platform team and we can track this issue there? Let me know if I can help.
Thanks @Murmur for the feedback 👍

@amyblais Sounds like this applies to both browser and desktop. Can you help create an improvement ticket for the platform team and we can track this issue there? Let me know if I can help.
Thanks @Murmur for the feedback 👍

This can now be tracked through this ticket: https://mattermost.atlassian.net/browse/MM-10435


--framework with *.a and *.dylib in _install//lib complains

I changed configurations and ended up with a *.a and *.dylib in my _install//lib/ folder.  The build.py --framework option complained about multiple libs.  This was with commit: a9443b498798a6e1158ddb0bf1ede1778a5213f6 .  This isn't exactly as bug...  (How should it know which type of lib to use?)  It is easy enough to delete one and then re-run, but possibly an additional option is required to specify the desired framework type in cases where both libs are present.  How do you want to handle this (or just leave as is)?  I can probably modify as needed once I get past a couple deadlines.

How should it know which type of lib to use?

Yes. There are several questions I guess:

if *.a and *.dylib installed what type of framework you want to build? Static or dynamic?
if multiple libraries found do you want to use one or combine all of them into one big library?
if multiple libraries found what framework name should we use?


Animate logo on hover

This is definitely non-critical, but would be a nice touch to add if we've time. (I'm thinking something very subtle, like a slight rotation or similar, but am open to suggestions! Moving the points could be nice, but definitely more complex to make work.)

It's technically simple enough to be redone in a HTML5 canvas I reckon, from there we could do some more complex animation quite cheaply... for sure it's polish work at that stage though :)

Included in #120


add text contained flag that affect progress bar and slider

Small addition to GuiProgressBar() and GuiSliderPro() to check the the new style flags SLIDER, SLIDER_LEFT_TEXT_CONTAINED and SLIDER, SLIDER_RIGHT_TEXT_CONTAINED. Made sure not to edit the functions' parameters so old programs are still compatible.

Text alignment is a global controls property controlled by GuiTextAlignment properties.


Feature/calico integration

Description
Added calico patches
Issue
part of https://github.com/networkservicemesh/integration-k8s-kind/issues/325

@denis-tingaikin refactored folder structure - please, take a look


Added introspect for SwiftUI's TextEditor

For me this is working. Please merge.

@vukrado Thanks for opening this pull request! I've been playing with it and I'm unable to get tests to pass on tvOS + catalyst. Something around #available not properly working there. Can you give it a shot?

@vukrado Thanks for opening this pull request! I've been playing with it and I'm unable to get tests to pass on tvOS + catalyst. Something around #available not properly working there. Can you give it a shot?

Sure, ill take a look!

@vukrado Any updates on this?

@vukrado Any updates on this?

shouldn't the method be called introspectTextView to match naming of other methods?

@vukrado thanks for the PR, are you still working on this?
This should be immediately mergeable as soon as the small issues are fixed.

IT COMPILES! SHIP IT!


README.md typo?

Should:

Or perhaps I only want to burn petrol:
(defpackage :com.cley.my-great-prog
  (:use)
  (:extends/excluding :com.cley.my-great-prog.clever-hacks
   #:burn-petrol)
 ...)

actually be:
(:extends/including ...)

Yes, it should!  I'll fix it: thank you for actually reading it!

Resolved by 438b1c2b7cb6d015a0cca4c8228734ddc09f5af2.
Thanks again

A bit off topic, but I thought you might be worth asking, as your name seems familiar from before comp.lang.lisp became all spam: are you the one that wrote a common lisp patch facility? I know I saw someone reference one at some point long ago, but I can't find anything for patching out there at the moment.

Yes, that was probably me.  I don't remember how it worked in detail but it was probably based on the Symbolics one (heh...).  I don't think it did anything very magic.  I have some distant intention to revive & publish some of that code (I've been putting it off because it's not that small and it's all sitting in CVS in some dump so I need to drag it all into git before even starting).  My email address hasn't changed since the days of CLL though, so if you can find those old messages you can probably find me & I'll let you know if I make any progress.


update link to roadmap

closes #2968

lgtm

Thanks for the review @SlickNik and @mattfarina. Just have to wait until someone from OWNERS reviews and approves this change.


material design

designed a Figma wireframe for the app with improved ui:
https://www.figma.com/file/NnqvZFEYkQiu5gkCGs4e22/Coinage-Wireframe?node-id=0%3A1
integrated app with material design 3-- replaced components with library textviews, buttons, and cards based on the wireframe.

Uploading Screen Recording 2022-07-15 at 4.01.04 PM.mov…

https://user-images.githubusercontent.com/49424605/179322565-fcda171b-e5a5-4f2d-9dd5-271115ee138e.mov


assignment to non-final @Owning field allowed even when enclosing class is @MustCall("")

Here is the test case:
class Enclosing {
    @MustCall("a")
    static class Foo {
        void a() {}
    }
    static class Nested {
        @Owning Foo foo;
        @CreatesObligation("this")
        void initFoo() {
            if (this.foo == null) {
                // :: error: required.method.not.called
                this.foo = new Foo();
            }
        }
    }
}

I've commited a variant of this test on a branch.  No error is reported at the assignment to this.foo, even though the Nested class is @MustCall("").
I kind of feel like in this case, we should report at error at the declaration of field foo rather than at every write to foo; but not 100% sure.

@Nargeshdb @kelloggm

@kelloggm we can close this too, yes?

Closed by #388.


Create SECURITY.md

Security
Reporting Potential Security Issues
If you have encountered a potential security vulnerability in this project,
please report it to us at<EMAIL_ADDRESS>We will work with you to
verify the vulnerability and patch it.
When reporting issues, please provide the following information:

Component(s) affected
A description indicating how to reproduce the issue
A summary of the security vulnerability and impact

We request that you contact us via the email address above and give the
project contributors a chance to resolve the vulnerability and issue a new
release prior to any public exposure; this helps protect the project's
users, and provides them with a chance to upgrade and/or update in order to
protect their applications.
Policy
If we verify a reported security vulnerability, our policy is:

We will patch the current release branch, as well as the immediate prior minor
release branch.

After patching the release branches, we will immediately issue new security
fix releases for each patched release branch.

A security advisory will be released on the project website detailing the
vulnerability, as well as recommendations for end-users to protect themselves.
Security advisories will be listed at https://nyakko.me/secure.git,
as well as via a feed (which is also
present in the website head for easy feed discovery).

Ok


zplug can't find ZPLUG_LOADFILE

Type:

[x] Bug
[ ] Enhancement
[ ] Feature Request
[ ] Question

zplug --version: 2.4.1
zsh --version: zsh 5.0.7 (arm-unknown-linux-gnueabihf)
uname -a: Linux somehostname 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

Type: Bug
Minimal zshrc
source ~/.zplug/init.zsh

zplug 'plugins/git',                      from:oh-my-zsh, ignore:oh-my-zsh.sh

# Install plugins if there are plugins that have not been installed
if ! zplug check; then
    printf "Install new zplug-plugins? [y/N]: "
    if read -q; then
        echo; zplug install
    fi
fi

# Then, source plugins and add commands to $PATH
zplug load

Step to reproduce

Install via $ curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh

Run zplug update:

$ zplug update
[zplug] Start to update 1 plugins in parallel

 ✘  Unknown error         plugins/git

[zplug] Elapsed time: 0.5025 sec.
 ==> Updating finished successfully!

(Side Note: Why does zplug claim that updating was successfull?)
$ zplug env
ZPLUG_ROOT = /home/pi/.zplug
ZPLUG_HOME = /home/pi/.zplug
ZPLUG_THREADS = 16
ZPLUG_PROTOCOL = HTTPS
ZPLUG_FILTER = fzf-tmux:fzf:peco:percol:fzy:zaw
ZPLUG_LOADFILE = /home/pi/.zplug/packages.zsh
ZPLUG_USE_CACHE = true
ZPLUG_ERROR_LOG = /home/pi/.zplug/.error_log
ZPLUG_BIN = /home/pi/.zplug/bin
ZPLUG_CACHE_DIR = /home/pi/.zplug/cache
ZPLUG_REPOS = /home/pi/.zplug/repos
_ZPLUG_VERSION = 2.4.1
_ZPLUG_URL = https://github.com/zplug/zplug
_ZPLUG_OHMYZSH = robbyrussell/oh-my-zsh
_ZPLUG_PREZTO = sorin-ionescu/prezto
_ZPLUG_AWKPATH = /home/pi/.zplug/misc/contrib
_ZPLUG_CONFIG_SUBSHELL = :

$ zplug --log
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"ZPLUG_LOADFILE is not found","trace":["__zplug::log::write::info:2","__zplug::io::file::load:3","/home/pi/.zplug/init.zsh:33","/home/pi/.zplug.zsh:1","/home/pi/.zshrc:6","zsh:0"],"date":"2017-07-16T19:23:03+0200"}
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:1"],"date":"2017-07-16T19:23:06+0200"}
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:5"],"date":"2017-07-16T19:23:48+0200"}
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:11"],"date":"2017-07-16T19:26:06+0200"}

So zplug errors because it expects ZPLUG_LOADFILE to link to ~/.zplug/packages.zsh. Shouldn't that file be created during installation of zplug?

Either way, after creating the file,$ touch ~/.zplug/packages.zsh $ zplug update still fails:
$ cat ~/.zplug/log/trace.log
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"ZPLUG_LOADFILE is not found","trace":["__zplug::log::write::info:2","__zplug::io::file::load:3","/home/pi/.zplug/init.zsh:33","/home/pi/.zplug.zsh:1","/home/pi/.zshrc:6","zsh:0"],"date":"2017-07-16T19:23:03+0200"}
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:1"],"date":"2017-07-16T19:23:06+0200"}
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:5"],"date":"2017-07-16T19:23:48+0200"}
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:11"],"date":"2017-07-16T19:26:06+0200"}
{"pid":1231,"shlvl":1,"level":"INFO","dir":"/home/pi/.zplug","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:20"],"date":"2017-07-16T19:35:25+0200"}
{"pid":3646,"shlvl":1,"level":"INFO","dir":"/home/pi","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:1"],"date":"2017-07-16T19:37:30+0200"}
{"pid":3646,"shlvl":1,"level":"INFO","dir":"/home/pi/.zplug","message":"turn monitor on","trace":["__zplug::log::write::info:2","__zplug::job::polling::periodic:9","-zsh:5"],"date":"2017-07-16T19:38:22+0200"}

I'm sorry for the late reply.
Please tell us the result of trying awk -W version.

$ awk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan

compiled limits:
max NF             32767
sprintf buffer      1020

This is on a Raspberry Pi running Debian.

@39e I am having the same issue and I am running GNU Awk

I seem to be running into the same issue on GNU Awk as well.

Not sure why this is closed; I just followed the advice to touch $ZPLUG_LOADFILE and my startup time went from 0.7s => 0.5s and I'm also on GNU awk.
https://github.com/zplug/zplug/issues/368#issuecomment-282566102
❯ time zsh -i -c exit
zsh -i -c exit  0.57s user 0.24s system 115% cpu 0.705 total

~
❯ echo $ZPLUG_LOADFILE
/home/jon/opt/zplug/packages.zsh

~
❯ ll $ZPLUG_LOADFILE
ls: cannot access /home/jon/opt/zplug/packages.zsh: No such file or directory
total 0

❯ touch /home/jon/opt/zplug/packages.zsh

❯ time zsh -i -c exit
zsh -i -c exit  0.39s user 0.24s system 117% cpu 0.533 total

❯ awk -W version                                                                                2018-12-16 12:43:33
GNU Awk 4.2.1, API: 2.0 (GNU MPFR 4.0.1, GNU MP 6.1.2)
Copyright (C) 1989, 1991-2018 Free Software Foundation.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.

Why is this issue closed?


How can i show country code drop-down instead of country flag? after selecting?

@ShubhJaiswal The country code is already visible in input box, so I am not sure what exactly you need here.

Hi nikhil,
What i want is, in the country code dropdown, we are showing country flag,
but i want to show country code.
Thank you,
Shubham Jaiswal
+919770737382
On Sat, Aug 17, 2019 at 6:57 PM Nikhil N<EMAIL_ADDRESS>wrote:

@ShubhJaiswal https://github.com/ShubhJaiswal The country code is
already visible in input box, so I am not sure what exactly you need here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nikhiln/ngx-international-phone-number/issues/52?email_source=notifications&email_token=ALIHDGRWMFCZE4MMREY3G3DQE74ERA5CNFSM4IEUBHMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QLEAI#issuecomment-522236417,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALIHDGSP2L2MFCD22HZ37UDQE74ERANCNFSM4IEUBHMA
.

The input box is already showing selected country code. Are you planning to show country code at both dropdown and input box?

The country flag is showing in the dropdown, I want to show country code
instead flag.
On Mon, Aug 19, 2019 at 8:44 AM Nikhil N<EMAIL_ADDRESS>wrote:

The input box is already showing selected country code. Are you planning
to show country code at both dropdown and input box?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nikhiln/ngx-international-phone-number/issues/52?email_source=notifications&email_token=ALIHDGTEXPP3VKAHJG2YEJDQFIFYHA5CNFSM4IEUBHMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RSBOQ#issuecomment-522395834,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALIHDGXOI4I2N5FOBKOSYY3QFIFYHANCNFSM4IEUBHMA
.


[3,5pt] Preserve data: Book and Label classes - Team Member #1

All data should be preserved by saving collections in .json files.

Pull request for this task


Downgrade CI to use runc rc92

There is a bug with rc93 that may be causing CI instability
(https://github.com/opencontainers/runc/issues/2865).
Downgrading to rc92 to see if we get better runs.

re-running CI, but not sure if these errors are relevant
    default: Summarizing 12 Failures:
    default:
    default: [Fail] [k8s.io] SELinux runtime should support selinux when single pod sandbox is privileged [It] should create containers with the same process label
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/selinux_linux.go:184
    default:
    default: [Fail]
    default: [k8s.io] SELinux runtime should support selinux
    default: when single pod sandbox is privileged [It] process label should have correct role and type
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/selinux_linux.go:184
    default:
    default: [Fail] [k8s.io] Container Mount Propagation runtime should support mount propagation [It] mount with 'rprivate' should not support propagation
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/container.go:355
    default:
    default: [Fail] [k8s.io] Security Context bucket [It] runtime should support Privileged is true
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/container.go:355
    default:
    default: [Fail] [k8s.io] Container Mount Propagation runtime should support mount propagation [It] mount with 'rshared' should support propagation from host to container and vice versa
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/container.go:355
    default:
    default: [Fail] [k8s.io] SELinux runtime should support selinux when single pod sandbox is privileged [It] mount label should have correct role and type
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/selinux_linux.go:184
    default:
    default: [Fail] [k8s.io] SELinux runtime should support selinux when single pod sandbox is privileged [It] process label should have category
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/selinux_linux.go:184
    default: [Fail] [k8s.io] Container Mount Propagation runtime should support mount propagation [It] mount with 'rslave' should support propagation from host to container
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/container.go:355
    default:
    default: [Fail] [k8s.io] SELinux runtime should support selinux
    default: when single pod sandbox is privileged [It] should work with just selinux level set
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/selinux_linux.go:184
    default:
    default: [Fail] [k8s.io] Security Context SeccompProfilePath [It] runtime should ignore a seccomp profile that blocks setting hostname when privileged
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/container.go:355
    default:
    default: [Fail] [k8s.io] SELinux runtime should support selinux when single pod sandbox is privileged [It] should work with selinux set
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/selinux_linux.go:184
    default:
    default: [Fail] [k8s.io] SELinux runtime should support selinux when single pod sandbox is privileged [It] mount label should have category
    default: /tmp/tmp.zXwEraemCr/cri-tools/pkg/validate/selinux_linux.go:184
    default:
    default: Ran 89 of 97 Specs in 253.459 seconds
    default: FAIL! -- 77 Passed | 12 Failed | 0 Pending | 8 Skipped

Yeah, I think this is related to CAP_PERFMON not being understood by runc-rc92.

So at least the failures are somewhat expected.

So, rc92 will make tests stable but make CRI tests always fail due to CAP_PERFMON?

@kzys It will make the cgroup2 CI fail consistently because the capability lib in containerd is newer than runc-rc92 and there's this new cap.
I opened this to test things to see if at least in the PR we stop seeing random failures, not to actually merge.


Get data response - totalPages

When limit is 0, then totalPages is<PHONE_NUMBER>. This property should be missing or 0.

fixed in 3.1.7


⚠ Bofrost.at has degraded performance

In 8867629, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1205 ms

Resolved: Bofrost.at performance has improved in ca7330b after 29 minutes.


fix(ios): Entry.toURL() to produce DOM-usable uri when using scheme-hosted webview

Platforms affected
iOS
Motivation and Context

Entry's toURL() method is intended to produce a DOM-usable URIs.
This works as intended on Android.
On iOS however, it only worked if the app was configured to be in a file:// hosted webview. If the webview was configured to use schemes, it would still produce a file:// uri which is not usable in the DOM.
I believe this can be considered a patch, for file:// hosted users, this should behave the same as before. For scheme-hosted users, the .toURL() will return a different URI, but the original format didn't work as intended. If the user were using .toURL() for another purpose, then this could be considered a breaking change?
Description

Mimick how Android solves this issue, by creating an ios specific Entry.js file which contains a toURL method override with iOS specific logic.
Testing

Manually tested with and without the scheme preference to observe toURL() producing file:// urls while in file:// hosted mode, or app:// uris if the app is using scheme preference.
Also tested completely custom schemes using:
<preference name="scheme" value="myapp" />
<preference name="hostname" value="appname" />

and observing URIs such as myapp://appname/_app_file_/var/mobile/Containers/Data/Application/84D10AA8-302C-4295-8690-54F4C4EA9BB2/tmp/cdv_photo_1730252303.jpg.
Confirmed that in both cases, the produced URIs are usable in the DOM to properly load image assets, for example.
Checklist

[x] I've run the tests to see all new and existing tests pass
[x] I added automated test coverage as appropriate for this change
[x] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
[x] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
[x] I've updated the documentation if necessary

I'm putting this in draft.
Good news is, this PR actually addresses that failing test that we've had for some time:

resolveLocalFileSystemURL for cdvfile
✓ file.spec.147 should be able to resolve cdvfile applicationDirectory fs root

Bad news is, it introduces a lot more failing tests but I think most of them is because the tests are expecting file:// uris where it will now receive app:// uri on scheme-hosted apps. So I think it just a matter of making the tests be aware of the iOS changes. I'll try to go through them tomorrow night.

My initial assumption is that toURL() is intending to return a DOM-usable URL, and nativeURL is the raw filesystem path, but that sounds like it's not necessarily the case?

I believe once upon a time, toURL() returned the cdvfile:// urls. But with scheme-based webviews, they are now considered cross-origin so they get blocked. In that sense, I do believe so, cdvfile protocol was the original "DOM-usable" urls.
.nativeURL I believe is the underlying url, so usually file:// but I think it could also be content:// on android. I'm not sure why .toNativeURL() calls and simply returns .toURL() though.


Feature request: Paste image from system clipboard

Woofmark can successfully paste rich text containing images (e.g. the contents of this Google Doc), but not standalone images from clipboard.
Pasting images directly from the clipboard is very widespread nowadays: Google Docs, GitHub, StackOverflow, Slack etc.
Having this feature would make this the most handy WYSIWYG/Markdown editor among the 50+ we've compared.

Cool. Would you be interested in contributing that enhancement?

Unfortunately I don't have the bandwidth for that right now, but perhaps you can find the relevant code in one of the open source editors that can paste images? (Alloy and Summernote)

Still open? I just tested at the demo page and it totally works. Actually you can paste an image from clipboard and it's saved with a data: URL. Not to mention links. And the docs mention being able to react to the paste by uploading an image in a highly-configurable way.
Sounds like this was implemented, but never marked resolved.

I've just tested pasting an image in https://bevacqua.github.io/woofmark/ from Chrome 53 and nothing was pasted. The same clipboard content was pasted in Trumbowyg.

Here it works on firefox 50 w/ os linux, but only in wysiwg mode I can paste. Wwitching to md-mode, I can see the inline data-string, but when switching back to wysiwg mode, the image is lost forever. (same switching story for html- vs md-mode, and html vs wysiwg keeps the image) Tested using: https://bevacqua.github.io/woofmark/

Confirmed on latest Chrome/ChromeOS -- pasting in markdown mode for me on the demo doesn't do anything, apparently. And confirmed that pasting into the WYSIWYG mode correctly inserts the clipboard image. Ideas on the reasons?

I'd say we need to handle the paste event and use clipboard data to upload the image and then render the image tag with a link.

Hm, but it's already working in WYSIWYG -- but do you think that's taking
advantage of the browser's contentEditable features, and is not being
handled by woofmark at all? That could explain why it doesn't work in
markdown mode -- sorry, just trying to get a handle on the issue.
On Mon, Dec 12, 2016 at 1:04 PM, Nicolás Bevacqua<EMAIL_ADDRESS>wrote:

I'd say we need to handle the paste event and use clipboard data to upload
the image and then render the image tag with a link.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bevacqua/woofmark/issues/17#issuecomment-266504288,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJxPcze256GQP0HURKtqLRYxo0v4Nks5rHYySgaJpZM4F0TzO
.

yes

Super, thanks. Sample code if anyone wants to take this on:
http://stackoverflow.com/questions/24540765/intercept-paste-data-in-javascript
http://stackoverflow.com/questions/35498858/paste-the-image-from-system-in-html-page-using-javascript?rq=1 (image specific)
I believe the event handlers might go in this file, and be loosely modeled on the "drag & drop" code:
https://github.com/bevacqua/woofmark/blob/2d932112d44c7f72ccc9e23daf6749b9cc8bcdde/src/uploads.js#L15


"workbench.editor.decorations.badges": true ignored if "workbench.editor.tabSizing": "shrink"

On 1.53
Set this:
"workbench.editor.tabSizing": "shrink"
"workbench.editor.decorations.badges": true

The decoration badges do not show on the tabs.
I think this is a bug. If not, the description of workbench.editor.decorations.badges should state that it is incompatible with shrink tabsizing.
Originally posted by @gjsjohnmurray in https://github.com/microsoft/vscode/issues/115858#issuecomment-773974376

I can reproduce.

This seems to be an issue with the shrink style. The decorations are there but somehow hidden

The issue here is that the tabs control chooses to draw a gradient with a ::after rule to indicate that the tab name is not entirely visible. Unfortunately this rule collides with the one used for badges which also puts a ::after rule at the same location and you can only have one.
I have moved this ::after rule into the .monaco-icon-label-container container now and that seems to help for the decoration. However, I also need to add some padding-right because it looks like we explicitly disable padding here:
https://github.com/microsoft/vscode/blob/b5ccd30c95dbe8f6119382a1cd15da05449a76f6/src/vs/workbench/browser/parts/editor/media/titlecontrol.css#L33-L36
Result:

The only sort of "bug" is that I cannot get the gradient to draw after the label when the badge is there...

/verified


Client and SDK Refactor, Repo Template & More

Refactored client to be easier to work with, auto-load, etc
Customizable HTTP client for mocking or extending
Repo template for open source projects
Basic server example for authentication

@Nerd35184 after you review and merge, I can publish a v0.0.1 release if you want ;-)

@Nerd35184 Also not sure who should be reviewing this PR. Let me know and I can change it ;-)

Refactored client to be easier to work with, auto-load, etc
Customizable HTTP client for mocking or extending
Repo template for open source projects
Basic server example for authentication

@mrz1836 wow , you have done an amazing job.  thanks for your contribution.


TypeError: n.next is not a function

I'm about to migrate from 2.9.4 to 3.2.0 and I'm getting the following message:
chart.js:1 Uncaught (in promise) TypeError: n.next is not a function
    at Object.n (chart.js:1)
    at Aa (chart.js:5222)
    at ma (chart.js:5010)
    at bi (chart.js:6329)
    at e.createResolver (chart.js:6314)
    at new e (chart.js:6404)
    at main.js:11
    at tryCatch (polyfill.js:6517)
    at Generator.invoke [as _invoke] (polyfill.js:6743)
    at Generator.prototype.<computed> [as next] (polyfill.js:6569)

I already tried the most simple script (copied from the samples page):
import Chart from 'chart';

export const init = function() {
    new Chart('myCanvas', {
        type: 'bar',
        data: {
            labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
            datasets: [{
                label: '# of Votes',
                data: [12, 19, 3, 5, 2, 3],
                backgroundColor: [
                    'rgba(255, 99, 132, 0.2)',
                    'rgba(54, 162, 235, 0.2)',
                    'rgba(255, 206, 86, 0.2)',
                    'rgba(75, 192, 192, 0.2)',
                    'rgba(153, 102, 255, 0.2)',
                    'rgba(255, 159, 64, 0.2)'
                ],
                borderColor: [
                    'rgba(255, 99, 132, 1)',
                    'rgba(54, 162, 235, 1)',
                    'rgba(255, 206, 86, 1)',
                    'rgba(75, 192, 192, 1)',
                    'rgba(153, 102, 255, 1)',
                    'rgba(255, 159, 64, 1)'
                ],
                borderWidth: 1
            }]
        },
        options: {
            scales: {
                y: {
                    beginAtZero: true
                }
            }
        }
    });
};

But the error still exists. Any ideas what can cause the error? I'm not sure if it's a general bug or it's a bug on my side.
Edit: When I use 2.9.4 everything works but no matter if I use 3.1.1 or 3.2.0, I'm always getting the mentioned error.

Does not look like it, but only place (in chart.js related stuff) I know a generator is used is chartjs-plugin-autocolors, are you perhaps using that?

No, I'm not using the chartjs-plugin-autocolors plugin. But I'm using it in a custom Moodle plugin as amd component.

Is it possible to try and pull this out into a fiddle that reproduces the issue?

Sorry for the delay. I'll try to create a test case within the next few days and come back to you.

Closing as stale


Support for showing agent availability

Adds new props to support showing agent availability:

showAgentAvailability?: boolean;
agentAvailableText?: string;
agentUnavailableText?: string;

this is now available in "@papercups-io/chat-widget": "^1.0.30" :)


Emit error if mixing module syntax exist in same file

When i bundle the modules in iife type, the plugin will skip transforming CommonJS syntax if current file has found ESM syntax.
I think that will be the better choice if the plugin provides the option for throwing error in such case.
The changes as follow:

Check the ESM and CommonJS both if option.noMixingModuleSyntax is true

Throw error message if ESM and CommonJS syntax exist in same file

Thanks for opening this PR and your work on it. We like the idea, but the implementation needs a little bit more polish. Being that this would be a breaking change, and that we're getting ready to move this plugin to a new repo at https://github.com/rollup/plugins very soon, we have to defer this PR for now. Once the plugin is moved, please do raise an issue in the new repo, pointing back to this PR, and we'll make sure that it gets the attention it deserves.


MTU problem

Hello Adrien,
I have problems with the MTU values that Glorytun sets automatically when the path is raised. My network interfaces are using MTU 1500, but Glorytun, when entering the "path up" command, changes the MTU of the client tun0 interface and the server interface to MTU 1357. The glorytun show command displays the MTU value of 1357, the glorytun path command displays the MTU 1379. Manually change the MTU on the interface, after the "glorytun path" nothing is updated in the displayed glorytun metrics, the value changes only in ifconfig. I know that the values should be 1450 and 1472, but in my basic setup, without any significant changes in the OS, these values do not correspond to those expected when Glorytun is running in normal mode. Please, tell me what could be the problem and can I fix it on my own or is it a bug?
Specification:
OS: Debian Buster
Glorytun: binary release 0.3.4
Network Interfaces MTUs: 1500
Rate: auto or any fixed rate
Cipher: any
user@router:~$ glorytun show server tun0:   pid:    3045   bind:   <IP_ADDRESS> port 5000   mtu:    1357   cipher: chacha20poly1305 user@router:~$ glorytun path path UP   status:  OK   bind:    <IP_ADDRESS> port 5000   public:  <IP_ADDRESS> port 5000   peer:    <IP_ADDRESS> port 5000   mtu:     1379 bytes   rtt:     1107.740 ms   rttvar:  2031.065 ms   rate:    auto   losslim: 100   beat:    100 ms   tx:     rate:  0 bytes/sec     loss:  0 percent     total: 48 packets   rx:     rate:  0 bytes/sec     loss:  0 percent     total: 96 packets

Sorry, duplicate


Redesignenemy pathways - Level2

Redesigned level 2 by reducing enemy pathways to increase game difficulty. Making the pathway less dense and slightly shorter to increase difficulty. Right now its too dense so placing towers in the dense area makes it too easy to win .
https://app.clickup.com/t/8695gkfxm

this is a large change, is it possible to break it down into a few commits? In case the fetch + resolve doesn't reduce the edits to a manageable size


/u/user note with an image is wrongly resized in 0.22.5 box

Describe the bug
when someone visit someone /u/user profile page the notes with an image is very well fit in the box on version 0.22.4 but on version 0.22.5 the notes with an image is not well fit anymore in the box.
Steps to reproduce
visit someone profile /u/user on version 0.22.4
then visit someone profile /u/user on version 0.22.5
You will notice if the user have an image in the note this one is not fit anymore in the box.
The version of Memos you're using.
0.22.5
Screenshots or additional context
No response

From version 22.5 a thumbnail version of the image is displayed in the feed. This thumbnail should be 700px wide if the image is more than 700px wide. The feed should also be just over 700px wide so the thumbnail will fit exactly.
can you confirm the image width of your version 22.5 displayed image as well as the feed width

From version 22.5 a thumbnail version of the image is displayed in the feed. This thumbnail should be 700px wide if the image is more than 700px wide. The feed should also be just over 700px wide so the thumbnail will fit exactly.
can you confirm the image width of your version 22.5 displayed image as well as the feed width

https://blog.mariushosting.com/u/mariushosting
Version 22.4 fit perfect. But 22.5 no.

Did you revert back to 22.4? Can't replicate the issue

Did you revert back to 22.4? Can't replicate the issue when following your link

Yes I reverted to 22.4
I have update now with 22.5 please check.

Are you setting a custom feed column width in your settings?

Are you setting a custom feed column width in your settings? In the additional css

Absolutely no.

Interesting, ok. Something is changing your ui because you don't have the search or tags menus and you have a share feature instead. Can you share some context around this?

Interesting, ok. Something is changing your ui because you don't have the search or tags menus and you have a share feature instead. Can you share some context around this?

I think you are confusing two different pages.
One is this with the tags: https://blog.mariushosting.com/explore
The other is this "user" https://blog.mariushosting.com/u/mariushosting

You are right. I was unaware of the user specific page

You are right. I was unaware of the user specific page

I will reverse back to 22.4 since the 22.5 break image fit in the user page.

@RoccoSmit Please check out for https://github.com/usememos/memos/commit/4790e84b984a5076a19b01a5c0ef6c503ef7c103. It's better to use ratio instead of max width.


After adding CellRendererComponent, onDragStart and onDragEnd works but onReordered does not perform

After adding CellRendererComponent, onDragStart and onDragEnd works but onReordered does not perform
Here Is the my Code
<DragList
        data={dataTalentPoolGroup}
        keyExtractor={keyExtractor}
        onReordered={onReordered}
        renderItem={renderItem}
        CellRendererComponent={({ children, index, style, ...props }) => {
          const cellStyle = [
            style,
            { zIndex: dataTalentPoolGroup.length - index }
          ]
          return (
            <View style={cellStyle} index={index} {...props}>
              {children}
            </View>
          )
        }}
      />

But DragList not works after adding the CellRendererComponent
CellRendererComponent={({ children, index, style, ...props }) => {
          const cellStyle = [
            style,
            { zIndex: dataTalentPoolGroup.length - index }
          ]

          return (
            <View style={cellStyle} index={index} {...props}>
              {children}
            </View>
          )
        }}

Can Some one helps me to fix this? Thank You!

@sandeepa91 : thanks for reporting this. Right now, the library doesn't support supplying your own CellRendererComponent (and neither does react-native-draggable-flatlist, IIUC). Is what you'd like to do not doable through providing just a renderItem?
I think it'd be hard to add CellRendererComponent override support holistically, in that react-native-draglist provides its own version of that in order to control how it enables draggability and what not.


Missing filename_icon at chiori data

chiori data

diluc data

🤦

fixed. npm install genshin-db@latest
v5.1.3

fixed. npm install genshin-db@latest v5.1.3

thanks sir


ImportError: No module named 'cv2'

The python bindings for opencv are created via apt-get install python-opencv, and so I'm guessing flit can't find them.  cv2 is installed and works with python.
Is there a way to still build my package without digging into flit and making exceptions for this package? Maybe there is a way to add include it in the paths that flit checks?
$ flit wheel --upload
installing system dependencies
Traceback (most recent call last):
  File "/usr/local/bin/flit", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.4/dist-packages/flit/__init__.py", line 88, in main
    repo=args.repository)
  File "/usr/local/lib/python3.4/dist-packages/flit/wheel.py", line 197, in wheel_main
    wb = WheelBuilder(ini_path, fp)
  File "/usr/local/lib/python3.4/dist-packages/flit/wheel.py", line 44, in __init__
    self.metadata = common.make_metadata(self.module, self.ini_info)
  File "/usr/local/lib/python3.4/dist-packages/flit/common.py", line 228, in make_metadata
    md_dict.update(get_info_from_module(module))
  File "/usr/local/lib/python3.4/dist-packages/flit/common.py", line 78, in get_info_from_module
    m = sl.load_module()
  File "<frozen importlib._bootstrap>", line 539, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1614, in load_module
  File "<frozen importlib._bootstrap>", line 596, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 1220, in load
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "RPiViz/__init__.py", line 5, in <module>
    from RPiViz import deps, do_magic, executor, identify
  File "RPiViz/do_magic.py", line 2, in <module>
    import cv2
ImportError: No module named 'cv2'

Cheers

It's not flit, so much as the use of importlib.machinery.SourceFileLoader that's throwing the error.

The python-opencv package in Ubuntu is for Python 2; flit runs on Python 3, so it won't find that.
Your package needs to be importable in Python 3 for flit to package it. You can work around this by adjusting what gets imported at the top level, so that import RPiViz by itself doesn't cause cv2 to be loaded.

Changed 'import RpiViz' to 'all = ['executor']', and it worked.
Thanks!


Update ClearCommand to clear reminders

Codecov Report
Base: 70.12% // Head: 70.18% // Increases project coverage by +0.05% :tada:

Coverage data is based on head (c52af8a) compared to base (986ad40).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #97      +/-   ##
============================================
+ Coverage     70.12%   70.18%   +0.05%
- Complexity      702      703       +1
============================================
  Files           107      107
  Lines          2159     2163       +4
  Branches        249      249
============================================
+ Hits           1514     1518       +4
  Misses          570      570
  Partials         75       75

Impacted Files
Coverage Δ

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

...ava/seedu/address/logic/commands/ClearCommand.java
100.00% <100.00%> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
68.70% <100.00%> (+0.43%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


use host_network for neolink

Use host_network for neolink
As currently it tries to register push notifications with the internal docker ip
Which the cameras can't access

Can you please explain the issue a bit more in detail. Who tries to register push notifications where? I am not sure if it is a good idea to use host_network to be honest.

when i was watching the logs i spotted it was saying registering push notitication on <IP_ADDRESS>:12345 for example
then i realised that the IP address isnt my pi's ip, its the internal docker ip, so how can reolink sent push notitications to the docker ip?
so by setting it is 'host_network' it lets the plugin run on the pi itself with the pi's ip address being used for push notifications

@QuantumEntangledAndy can how is this done in neolink? Would it be possible to set the ip for pushes manually instead of using the host_network?


The bounds property of MapOverlay does not work as documented

Is this a bug report?
Yes

Have you read the Installation Instructions?
Yes
Environment
react-native: 0.57.8
react: 16.8.2
react-native-maps: 0.23.0

Steps to Reproduce

Try to use the <Overlay> component as described in the docs.
Notice how passing as bounds an array of LatLng as described in the above docs (see type LatLng at the bottom of the page) does not work
The format that works is an array of [NW, SE] (this is expected) in which each entry is itself an array of [latitude, longitude].

Expected Behavior
An array of {latitude: Number, longitude: Number} objects should be accepted as bounds

Actual Behavior
A different format is accepted ([NW, SE] where both NW and SE are [lat, lng]).

Reproducible Demo
https://snack.expo.io/@codazzo/mapoverlay-bug
It shows an overlay even though the format of the bounds property does not match the docs.

Thanks for this issue! Helped me work out why my implementation was not working. The documents currently don't match the implementation. I imagine the docs are the desired implementation?


Reusing soundId 0 for audios/Lama Tanz.mp3 is loading=true xyz.luan.audioplayers.WrappedSoundPool@f1f7898

Ican't  HEAR audio in my emulator .and when  I run  it in my real device it's not working either

There isn't enough information for us to act on this issue. Please edit it and follow the issue template.


RenderMan shaders accept a nodeColor annotation.

This allows shaders to use the annotation "nodeColor" to drive the color of their nodeGadget. I kept it as "nodeColor" for compatibility with our use at IE, but let me know if you'd prefer something different...
#pragma annotation "nodeColor" "color( 0.4, 0.2, 0.3 )"
I ignored our discussion about nodule color via annotations for now, because I think that shouldn't require extra annotations and should be driven by the coshaderType annotation really, but I didn't know if there is actually a defined set of coshaderTypes or not (to build the static dict of type to color).

Thanks. I think "nodeColor" is fine. With the shader annotations I think it's best to follow the OSL spec where it has what we want, and where it doesn't, keep our names generic and gaffer-free so that other software could use the same annotations if it wanted. Maybe at some point we should propose adding a few of our extensions back into the OSL spec.
As for coshaderType, I don't think that's something we could standardise on at the Gaffer level - it'll be down to the authors of shader libraries how they want to type their coshaders. Perhaps we could provide the ability to map coshaderType to color via metadata on the RenderManShader node?
Gaffer.Metadata.registerNodeValue( GafferRenderMan.RenderManShader, "theTypeOfMyCoshader:nodule:color", IECore.Color3f( 1, 0, 0 ) )

So in RenderManShaderUI we'd register a metadata callback similar to your one from this pull request, but it'd fetch the coshaderType annotation and then use it to retrieve the colour from the node metadata.

That sounds reasonable. Since you merged, I take it we'll leave that as food for thought.


haskell serialized formats could be better supported

haskell serializes enums to json by encoding a t field for the variant name and a c field for the content. We can represent this with
#[derive(Serialize, Deserialize)]
#[serde(tag = "t")]
enum MyType {
    Variant { c: ActualContent },
    Variant2 { c: (A, B, C) },
}

This works fine, but is a little verbose. Not sure if this use case is too niche.

This representation also came up in https://github.com/serde-rs/serde/issues/415#issue-162867209 so I don't think it is too niche. How about something like this?
#[derive(Serialize, Deserialize)]
#[serde(tag = "t", content = "c")]
enum MyType {
    Variant(ActualContent),
    Variant2(A, B, C),
}

Sounds simple enough. We need to be aware of edge cases though. like what happens with empty variants (don't serialize the content field, deserialize without content field and with "unit" content field).

I took a first pass on this in #771, but got stuck at the part where I need to serialize the internal contents of the "c": ... portion. If you have any advice, I'd appreciate suggestions in the other thread.

Serialization has been implemented in #771. I would like an implementation of deserialization as well before publishing this.

I released this in 0.9.8.


Weird data race when listening to cluster events

I am experiencing some weird data race when listening to cluster event as shown in the screenshot

I am listening to the cluster in the go routine in this sample code:
	for {
		select {
		case <-c.listenerStopSignal:
			return
		case message, ok := <-subscriber.Channel():
			// break out of the loop when the channel is closed
			if !ok {
				return
			}
			// grab the message payload
			payload := message.Payload
			// get the message payload
			var event map[string]any
			// let us unmarshal the event
			if err := json.Unmarshal([]byte(payload), &event); err != nil {

			}

			// grab the kind
			kind := event["kind"]

			switch kind {
			case events.KindNodeJoinEvent:
				// create the node joined to unmarshal the event
				nodeJoined := new(events.NodeJoinEvent)
				// let us unmarshal the event
				if err := json.Unmarshal([]byte(payload), &nodeJoined); err != nil {
				}

			case events.KindNodeLeftEvent:
				// create the node left to unmarshal the event
				nodeLeft := new(events.NodeLeftEvent)
				// let us unmarshal the event
				if err := json.Unmarshal([]byte(payload), &nodeLeft); err != nil {

				}

			default:
				// skip
			}
		}
	}

Hello @buraksezer. No to put pressure. I just want to know if the issue is from my code or this is a real bug. It is not consistent though.

@buraksezer When are we having another release?

@Tochemey, I saw your deleted message. Please stop sending such messages. This is neither a support forum nor Olric is a paid product. I'm not also your project's advisor. I think you should look over your project yourself.
A new version can be ready when I have some free time. Olric is a free software project.

@buraksezer Thanks. closing the issue. Sorry for such messages. I understand it is a free software and I appreciate the fact you took time to look into issue and replied us.

I deleted the message not because it was not relevant. I just thought it might look like putting pressure because my project depends upon it and I am having a data race issue.


Automatically Determine Ingestion Schema

Druid should be able to automatically determine the schema to use when the schema is implied by the data received.
Suppose data is being provided by a collection agent such as Collectd or Telegraf.  The specific fields that will be present may not be know ahead of time, will depend on which metrics are collected by those agents, and could change across software versions.  However, Druid should still be able to locate the timestamp, dimensions, and metrics.
For example, the Telegraf output formats are documented here: https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md.  Due to the structure, InfluxDB does not need to be pre-provided with a schema in order to load the data.
The Collectd ouput format documentation is less clear.  Format options include PUTVAL, JSON, and Graphite.  https://collectd.org/wiki/index.php/Table_of_Plugins
Is there a way to ingest this kind of data without trying to determine every possible field that could be collected for every possible unit that was monitored, and then writing a corrsponding ingestion schema?  The exercise would also have to be repeated every time there was a software version change.

Currently you can leave dimensions list empty, then every column, which not specified as metrics, will be indexed as string.
Then you can convert every metric to some legacy format, where you have only one metric field , for example "value" with aggregation longSum. After that you can convert every record to that format
For example if u have record like this:
{ timestamp : "2131249124" , "hostname":"somehost.com" , "cpu": 23 , "memory": 45 }
when you can convert it to format like this:
{ timestamp : "2131249124" , "hostname":"somehost.com" , "metric":"cpu", "value": 23 }
{ timestamp : "2131249124" , "hostname":"somehost.com" , "metric":"memory", "value" : 45 }

That gets part of the way there, though the data provided by Collectd and Telegraf are formatted somewhat differently.  That means that either the an output transform would be needed for those programs, or an input transform for Druid.
The documentation page for the Collectd JSON format is currently down.  The Telegraf JSON format documentation is here.
Some sample code is shown below to convert JSON from Telegraf to JSON for Druid.  Due to the flattening of the JSON, there are some tag names (metric, name, timestamp, and value) that could result in name collisions, and are therefore dropped (if they exist) in the code below.  Another possibility would be to try and determine an alternative name.
Any opinions on a good approach to take?  For example:

Should Druid be able to read the Telegraf JSON format directly?  Since it's a rather generic format, it could also be used by other applications.
Should the Telegraf format be flattened to the JSON format that Druid already reads?  If so, should the code be part of Druid, or separate?

The Druid documentation mentions that io.druid.data.input.impl.InputRowParser should be extended for an input parser.
import java.util.*;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;

//given String json from Telegraf, it might be converted to JSON input for Druid as follows
Telegraf_Flatten tf = new Telegraf_Flatten();
JsonNode node = tf.json_string_to_node(json);
json = tf.flatten(node);

class Telegraf_Flatten {

   public JsonNode json_string_to_node(String json){
      ObjectMapper mapper = new ObjectMapper();
      JsonNode node = null;
      try{
         node = mapper.readTree(json);
      }catch(java.io.IOException e){
         e.printStackTrace();
      }
      return node;
   }

   public String flatten(JsonNode node){
      String json = null;
      JsonNode metrics = node.path("metrics");
      if(metrics.isMissingNode()) json = flatten_single(node);
      else json = this.flatten_batch(metrics);
      return json;
   }

   public String flatten_batch(JsonNode metrics){
      String json = "";
      for(JsonNode item : metrics){
         json += this.flatten_single(item);
      }
      return json;
   }

   public String flatten_single(JsonNode root){

      //extract nested json
      JsonNode fields = root.get("fields");
      JsonNode tags   = root.path("tags");

      ((ObjectNode) root).remove("fields");

      //flatten tags
      if(!tags.isMissingNode()){
         ((ObjectNode) root).remove("tags");
         Iterator<Map.Entry<String,JsonNode>> iter = tags.fields();
         while(iter.hasNext()){
            Map.Entry<String,JsonNode> entry = iter.next();
            if(root.path(entry.getKey()).isMissingNode()){
               ((ObjectNode) root).set(entry.getKey(),entry.getValue());
            }
         }
      }

      //split into one JsonNode object per field
      Iterator<Map.Entry<String,JsonNode>> iter = fields.fields();
      int metrics = fields.size();
      JsonNode[] row = new JsonNode[metrics];
      for(int i=0;iter.hasNext();i++){
         Map.Entry<String,JsonNode> entry = iter.next();
         row[i] = root.deepCopy();
         ((ObjectNode) row[i]).put("metric",entry.getKey());
         ((ObjectNode) row[i]).set("value",entry.getValue());
      }

      //convert JsonNode(s) to JSON String
      ObjectMapper mapper = new ObjectMapper();
      String json = "";
      for(int i=0;i<metrics;i++){
         try{
            json += mapper.writeValueAsString(row[i]) + "\n";
         }catch(JsonProcessingException e){
            e.printStackTrace();
         }
      }

      return json;
   }

}

Isn't the code above acting as a row parser?  That is, transforming the input JSON format that Telegraf produces into the JSON format the Druid recognizes?

@doc987 InputRowParsers are actually specific code that is loaded as a Druid extension so rather than running externally of Druid and transforming the data into a format Druid already knows how to parse (like JSON) they can read the format directly and turn it into Druid's internal "InputRow" representation directly. This obviates the need for a configured schema in cases where the message contains the schema itself and there is a logic mapping of the source format to dimensions.
The important part of the picture is that dimensionSpec/metricsSpec in the provided ingestion spec doesn't need to be respected by your InputRowParser, the segment indexing code only cares about values returned from the parser itself which encode this information along with the row contents itself.
See the constructor for MapBasedInputRow for clarity.

Okay, so how does one make an InputRowParser and InputRow?  Does an InputRow look something like the code shown below?
import java.util.*;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;

import org.joda.time.DateTime;

class Telegraf_JSON_InputRow {

   private JsonNode root;
   private int time_factor = 1000; //convert input from seconds to milliseconds

   public Telegraf_JSON_InputRow(String json){
      this.init(json);
   }

   public void init(String json){
      this.root = this.json_string_to_node(json);
      this.time_factor = 1000; //different factors?
   }

   public JsonNode json_string_to_node(String json){
      ObjectMapper mapper = new ObjectMapper();
      JsonNode node = null;
      try{
         node = mapper.readTree(json);
      }catch(java.io.IOException e){
         e.printStackTrace();
      }
      return node;
   }

   long getTimestampFromEpoch(){
      return this.root.path("timestamp").longValue() * this.time_factor;
   }

   DateTime getTimestamp(){
      return new DateTime( this.root.path("timestamp").longValue() * this.time_factor );
   }

   List<String> getDimension(String dimension){
      return Arrays.asList( this.root.path("tags").path(dimension).asText() );
   }

   List<String> getDimensions(){
      List<String> ret = new ArrayList<String>();
      JsonNode tags = this.root.path("tags");
      if(!tags.isMissingNode()){
         Iterator<Map.Entry<String,JsonNode>> iter = tags.fields();
         while(iter.hasNext()){
            Map.Entry<String,JsonNode> entry = iter.next();
            ret.add(entry.getKey());
         }
      }
      return ret;
   }

   Object getRaw(String dimension){
      return new Object(); //what is this supposed to return?
   }

   Number getMetric(String dimension){
      return this.root.path("fields").path(dimension).numberValue();
   }

}

Nope.  I didn't receive a response to my previous comment, and the documentation states that an input parser can be added by extending io.druid.data.input.impl.InputRowParser, but I don't see anywhere where it states how to do that.  If someone has already made, or knows how to make, a Telegraf input parser, then perhaps they could share.


Introduce dtype inference and improve dtype in ops.numpy.*

This PR unifies the default dtype behavior in ops.numpy.* and ensures that they respect backend.floatx()
A subtle bug has been caught in dropout_rnn_cell_test.py:
We should perform a custom mixed precision check because we can't initialize cell with dtype="mixed_float16" in self.run_layer_test.
EDITED:
WIP:

[x] Add backend.dtypes functionality
[ ] Add unit tests
[ ] Refactor ops.numpy

Also, we should start testing consistency between symbolic outputs and real op outputs. That's a of checks over all, so it would justify the introduce of a new TestCase for dtypes.

We should add dtype checks in unit tests for all operations affected here, to check that we're in fact getting the same dtype across backends, including for array. I think there might be ops where some backends will return float64 instead of float32. This will help us avoid inconsistencies.

Also, we should start testing consistency between symbolic outputs and real op outputs. That's a of checks over all, so it would justify the introduce of a new TestCase for dtypes.

I can add some new test cases in keras_core/ops/numpy_test.py:
class NumpySymbolicDtypeTest(testing.TestCase):
    ...

class NumpyTensorDtypeTest(testing.TestCase):
    ...

Is it good?
However, It may take some time to implement the result_dtype-like function for all backends.

class NumpyTensorDtypeTest(testing.TestCase):

Yes, that sounds good!

However, It may take some time to implement the result_dtype-like function for all backends.

We may be able to use a test parameterization to save time/code. We can parameterize the input dtype, for instance. But in some cases we may also be able to parameterize the op functions, for groups of ops that have similar arguments.

Hi @fchollet
I want to verify whether this PR is on the right track.
I am attempting to implement a Keras Core version of result_dtype in keras_core/backend/common/dtypes.py.
Currently, the result matchs jnp.result_dtype when the input is python scalar types
(as demonstrated in keras_core/backend/common/dtypes_test.py)
If it is good, I will refactor some of ops.numpy.* and add the previously mentioned tests.

Keras Core is becoming Keras 3, and we're switching development to the main repository! Please reopen this PR in the keras-team/keras repository. Unfortunately we aren't able to automatically transfer PRs (but we have transferred all issues).


Support pushing transactions to non-leader

Closed by https://github.com/gofractally/psibase/pull/785


fix: CI check for Velero version

Why the changes were made
Fixes #76
How to test the changes made
Check CI logs for both positive and false cases.
False case: https://github.com/migtools/oadp-non-admin/actions/runs/11072835433/job/30767985219?pr=94#step:6:9

/lgtm


Update icon used for Redis

We want to change the icon we use for Redis so that it is different from the official Redis icon.
This PR changes to an icon with a different colour.
NOTE Aiven is updating the icon it uses for Redis across other parts of its web-estate as well. Merging/deployment of this PR should be coordinated with the other changes, probably on Wednesday 29th June. Please check with @TibsAtWork before merging.
Fixes: https://github.com/aiven/devportal/issues/939

@laysauchoa is the PR complete and correct though? Would you approve it if there were no merge delay? It's not clear to me if this is in a good state to merge when we're asked to, or not.

@laysauchoa Current thought is to do this Thursday morning (30th), to synchronise with changes on the main website. I can let you know the particular time when it's been finalised.

This has been reviewed and here is the screenshot how it will look like.

@TibsAtWork mentioned about the screenshots that also needs to be reviewed.


LAGT.h5  link not found

hello！i didn't find the link of LAGT.h5.I would be grateful if I could provide.

Hi, thanks a lot for your interest to my work. Actually the video quality model (i.e., LAGT.h5) is supposed to be trained by users on their own datasets. I provided the Phiqnet weight as it is a frame feature extractor. However, I have uploaded a LAGT.h5 file online, and you can downloaded here (https://drive.google.com/file/d/1vbycs28gPUuZhqOqlJ4_FFYNiNcFqJLF/view?usp=sharing).


[Feature] Reverse SSH connection

General

[X] My feature does not exist in the latest version of Nexterm.
[X] I have checked that my feature has not been suggested by anyone else.

Your Idea
Seria genial poder hacer túneles reversos de SSH contra algún cliente SSH externo que no pueda abrir puertos por encontrarse detras de un cortafuegos. El cliente iniciaría la conexión SSH contra el servidor Nexterm que escucharía por algún puerto.

Translated with chatgpt:
It would be great to be able to set up reverse SSH tunnels against an external SSH client that can't open ports because it's behind a firewall. The client would initiate the SSH connection to the Nexterm server, which would be listening on a certain port.

I have been playing with this and found that I can use a standard openssh connection to establish the connection that I want and then use -L and -R  to establish the reverse ports I want. I also use a Jump server ( the same sever I was connection from in my test, but also worked on a remove IP)
Since you have all the other parts that I need already, I will share my details about the SSH tunneling and shared connections.
I can use a new Tunnel connection to connect to the local port and connect to the remote connection I setup. I have used this for SSH, RDP, HTTP, HTTPS.
Command line ssh:
ssh -F /home/user/ssh/config_home2.conf home2

Example config file ( standard openssh config 'config_home2.conf ')
Host host-jump1
    User myusername
    Hostname <IP_ADDRESS>

Host home2
    User myusername
    Hostname <IP_ADDRESS>
    Port 22
    ControlPath /tmp/%h
    ProxyCommand ssh -M -S /tmp/%h -W %h:%p <IP_ADDRESS>
# -S = Session file to allow updating a live session.
# -W required when using a Jump host. the HOST and PORT will be sent over the secure connection.
# -M = Master mode for connection sharing. If other session are made they. The -S option is the shared session pipe.

    # SSH connection to a server behind the remote server. Making it a new Jump server.
    LocalForward <IP_ADDRESS>:12350 <IP_ADDRESS>:22
    # Another SSH connection to the server I am already connected too.
    LocalForward 12360 <IP_ADDRESS>:22
    # HTTPS connection available to a server accessible from the SSH host.
    LocalForward 12370 <IP_ADDRESS>:443:

It would be nice to be able to setup additional tunnels under the settings for the SSH, specifiy the protocal that will be usable through that port. Then have the open to create a new Server connection based on that local port that you choose.
You will probably also have to check that the Local port is not configured by another tunnel setup already.