Update React TypeScript types

Related to https://github.com/reakit/reakit/pull/297, see there for more context.
While this does build, it doesn't work when used with reakit so something is likely broken.

Codecov Report

Merging #8 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master     #8   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      2
  Lines          39     39
  Branches       11     11
=====================================
  Hits           39     39

Impacted Files
Coverage Δ

src/use.tsx
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66a36f2...1839377. Read the comment docs.

I think this dos the job:
export type ComponentToProps<T> =
  | T extends React.ComponentType<infer P>
  | React.Component<infer P>
  | React.ExoticComponent<infer P>
  ? P
  : never;

They've introduced a new component type (ExoticComponent). That's why we weren't getting props inferred.

Nice, that makes sense.
For the export type UseProps<T> = React.ClassAttributes<T> & ..., what does changing T to any mean in this case?  This might be related to the next issue:
The components produced by things like ForwardRef don't accept a string to their resulting ref prop.  I can potentially try removing the ref prop from the inferred props:
export type WithoutUseProps<T> = Without<T, "use" | "useNext" | "ref">; // kinda a hack

That makes it stop complaining about refs in Reakit, however the next error is:
src/Code/Code.tsx:16:8 - error TS2322: Type '{ children: Element; block?: boolean | undefined; codeClassName?: string | undefined; accept?: string | undefined; acceptCharset?: string | undefined; action?: string | undefined; ... 857 more ...; elementRef?: ((instance: any) => void) | ... 2 more ... | undefined; }' is not assignable to type 'Pick<Pick<Pick<Pick<BoxProps, "max" | "all" | "alignContent" | "alignItems" | "alignSelf" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | ... 850 more ... | "elementRef"> & RefAttributes<...>, "max" | ... 860 more ... | "elementRef"> & Partial<...>, "max" | ... 8...'.
  Types of property 'as' are incompatible.
    Type 'string | undefined' is not assignable to type '"symbol" | "object" | "clipPath" | "filter" | "marker" | "mask" | "track" | "progress" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdo" | ... 154 more ... | undefined'.
      Type 'string' is not assignable to type '"symbol" | "object" | "clipPath" | "filter" | "marker" | "mask" | "track" | "progress" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdo" | ... 154 more ... | undefined'.

16       <Box use="pre" {...props}>
          ~~~

Do you have any ideas why as might be getting mistyped?  Perhaps the two issues (ref and as are related)?

The as prop seems to be an issue on Reakit, I'm gonna comment on the PR there.

It should be possible to pull out the ref from an HTML element - I'm not 100% sure I follow the types enough to know where to use this, but:
type Props<T> = T extends keyof JSX.IntrinsicElements
  ? JSX.IntrinsicElements[T]
  : ComponentToProps<T>

type RefType<P> =
  'ref' extends keyof P
    ? P extends { ref?: infer R }
      ? R
      : never
    : never;

// get the type of the ref
RefType<Props<'div'>>

The React types now have React.ComponentPropsWithRef and React.ComponentPropsWithoutRef - I wonder if we could use those instead of ComponentToProps?  I ran into some issues with it when experimenting earlier, but getting that to work would simplify things.

Using RefAttributes rather than ClassAttributes doesn't seem to work with Reakit, not totally sure why - there's a string ref coming from someplace.

It seems I'm either doing something wrong or React.ComponentPropsWithoutRef is too complex as using it causes an out-of-memory error.
I pushed a change that builds both reakit and reuse - not sure if it's correct, but it builds both.  🤷♂


derive copy, clone for candles

Greetings,
In using this library and handling candle data, I've found it helpful to have the Clone and copy traits derived.
If it makes sense to add a test case for this, I'd be happy too, but my rudimentary understanding of Rust's traits and derives suggest this wouldn't be of much value. Please let me know if I'm mistaken.

Thanks for this! Looks good and I agree it's not really worth adding a test case. The current tests are still passing, so I published a new version. v0.1.2 has this change included. Thanks again.


⚠ 366.ru has degraded performance

In 6839cdc, 366.ru (https://366.ru) experienced degraded performance:

HTTP code: 200
Response time: 1927 ms

Resolved: 366.ru performance has improved in a50ad00.


fix: typo

File: themes/default/content/registry/packages/aws/api-docs/lambda/function/_index.md
typo:  environment=aws.lambda..FunctionEnvironmentArgs( -> environment=aws.lambda_.FunctionEnvironmentArgs(

It looks like this has been fixed


Widget Item Link Broken

Looking at my profile  I noticed the Github and Twitter widget items links did not properly link out. The Github widget went to https://github.com/github.com and the Twitter widget went to https://twitter.com/twitter.com. It looks like item.link might be the incorrect value.  You can see my ens configuration with the correct github url here.
See web3bio screenshot of incorrectly linked github widget below:

@cbachmeier Hi, we will improve the results in our Web3 Profile API. Your GitHub record in the ENS should be cbachmeier rather than https://github.com/cbachmeier which currently results in https://github.com/https://github.com/cbachmeier.

@cbachmeier Hi we have fixed the link extract issue in this PR and will be merged to the production soon. https://github.com/web3bio/web3bio-profile-api/pull/24


next: forceMount affects site performance when using in non-static sites.

Describe the bug
Lately I reported this. However the forceMount fix massively affects the performance of the site when using the transition with multiple elements containing tooltips. The FPS are very very low, when there are a lot of such tooltips.  The lag can be also achieved by just moving the devTools bar in my Chrome
I am developing https://medwave.app/app. You can see that there are some sort of sections and for example after navitigating mouse on clipboard there are tooltips (w/o forceMount and transistion). The app runs on 1.0.0-next.33. There are no performance issues and no transistions for the tooltips
After updating the bits-ui version to 1.0.0-next.34 locally and modifying tooltip element as described in the issue I mentioned, before the accordion is very laggy and the site is not smooth at all when clicking the accordion. Below I attach screenshot of the performance benchmark when clicking accordion on my site locally (it's simillary low FPS when just moving the devTools bar). On average I have ~21 FPS
E.g.

It totally blocks using a lot of tooltips across sites which are not "static" and where the elements of site happens to move in any way.
Reproduction

Logs
No response
System Info
System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 9 5900HX with Radeon Graphics
    Memory: 1.04 GB / 13.87 GB
  Binaries:
    Node: 22.4.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.3 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (128.0.2739.54)
    Internet Explorer: 11.0.22621.3527

Severity
blocking all usage of bits-ui

I need to see a reproduction of this lag so I can debug. All we're doing in forceMount is exposing a way for you to use Svelte Transitions. There isn't anything performance-intensive going on, actually less than without using forceMount as we defer the presence detection to Svelte.
Do you experience the same lag with CSS transitions/animations (without using Svelte's)?

If you can publish a version of the site where this lag occurs I can look into it further as well.

Do you experience the same lag with CSS transitions/animations (without using Svelte's)?

Nope

If you can publish a version of the site where this lag occurs I can look into it further as well.

I will publish it somwhere under our domain in the following minutes and leave a link here. If I don't succeed, expect it tomorrow :)

I've identified the cause of the FPS drops. The issue stems from forceMounting the tooltip, which keeps it constantly present in the HTML DOM. As a result, whenever elements containing tooltips are moved, the tooltip’s position is recalculated on every frame. This behavior causes substantial performance hits, especially during transitions or animations where multiple elements with tooltip move in each frame, triggering position recalculations for numerous tooltips.
In cases where many elements are moving simultaneously (Personally I find it getting laggy with ~20+ moving elements upon a time), the JavaScript engine can become overwhelmed by these constant recalculations. Introducing a mechanism, such as a flag to prevent tooltip position recalculations during specific transitions, could help mitigate this performance bottleneck?
Below video of the tooltip style recalculations during the "parent" element move
https://github.com/user-attachments/assets/d3502f77-1b54-4fe0-97db-a4c8b1ea0eaa

Hey @huntabyte, sorry for pinging, although I am just checking whether you have seen my last reply, as the issue still have a not enought info and waiting for author tags

Would you mind providing a link to a live preview with this behavior so I can properly debug?

Would you mind providing a link to a live preview with this behavior so I can properly debug?

Next week, too much assignments rn in the uni.


Pro section is not translated

在反馈此问题前请注意 Please note before reporting this issue

[X] 已经查看相关帮助内容 Read more about the Salt Player help content
[X] 已经在本仓库搜索相关内容（避免重复反馈）Already searched for related content in this repository (to avoid duplicate feedback)

描述 Describe

Hello, I am unable to view the uploaded image. Could you please provide it again

Hello, This is what im facing when i go to Salt pro section while I'm on
english language
And also all the lyrics contains Chinese words
And thank you for this awesome music player
On Sat, Nov 23, 2024, 5:44 PM 不要糖醋放椒盐 @.***> wrote:

Hello, I am unable to view the uploaded image. Could you please provide it
again
—
Reply to this email directly, view it on GitHub
https://github.com/Moriafly/SaltPlayerSource/issues/1041#issuecomment-2495501689,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXAHBG25MULPSPCKKQ7G5OD2CCIGTAVCNFSM6AAAAABSKB2TDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJVGUYDCNRYHE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Dynamic Programming: Given an m x n binary matrix mat, return the distance of the nearest 0 for each cell in Javascript

https://leetcode.com/problems/01-matrix/

I 'll take this one

Close this issue, you have already merged my PR for this


Netty Rejected Execution due to DefaultEventExecutorGroup Thread Termination Caused by Unsafe Memory Access

Issue description
Recently we observed some of our Prod gray nodes got abnormal 502 errors after running several hours, and we found most errors were from task rejected as one thread in the event group was terminated. The errors continue to happen unless we reboot the application instance.
java.util.concurrent.RejectedExecutionException: event executor terminated 	at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:934) 	at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:353) 	at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:346) 	at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:836) 	at io.netty.util.concurrent.SingleThreadEventExecutor.execute0(SingleThreadEventExecutor.java:827) 	at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:817) 	at io.netty.channel.DefaultChannelPipeline.callHandlerAddedInEventLoop(DefaultChannelPipeline.java:1087) 	at io.netty.channel.DefaultChannelPipeline.internalAdd(DefaultChannelPipeline.java:199) 	at io.netty.channel.DefaultChannelPipeline.addLast(DefaultChannelPipeline.java:227) 	at ...
The screenshot below shows an online profile sample, a task submitted to the event group and got rejected, and we noticed the thread Tesla-PorxyBizWorker-4-27 has already been terminated.

Checked logs we found the event thread termination was due to below error which looks like trigger a JDK bug.
Unexpected exception from an event executor: java.lang.InternalError: a fault occurred in a recent unsafe memory access operation in compiled Java code    at io.netty.util.concurrent.SingleThreadEventExecutor.takeTask(SingleThreadEventExecutor.java:243)    at io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:64)    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)    at java.base/java.lang.Thread.run(Thread.java:840)
Our questions are:

After this thread is terminated, why does Netty continue to submit tasks to this thread?
Is it possible to restart the terminated thread, like we have 32 threads in the event group, when one thread terminated, only 31 left, any mechanism to start a new thread to fill in the event group?
For the unsafe memory access operation in compiled Java code error, how do we profile which piece of code could cause this issue, normally we might meet a JVM crash and got the core dump to figure out where the illegal memory access happened, but in this case, we just got this warn message.

We used this event group as business handlers:
new DefaultEventExecutorGroup(workThreads * 2, new DefaultThreadFactory(serverGroupName + "-ProxyBizWorker"))
EventExecutorGroup bizEventExecutorGroup = proxyServer.getServerGroup().getProxyBizWorker();
pipeline.addLast(bizEventExecutorGroup, "client2ProxyHandle", ClientToProxyConnection.this);
Recently we added SSL handler might be the cause, but we could not figure out where this unsafe Memory Access from.
Minimal yet complete reproducer code (or URL to code)
Hard to provide
Netty version
4.1.116
JVM version (e.g. java -version)
JDK 17.0.10
OS version (e.g. uname -a)
K8S Container on Linux 5.10

The error is pointing to this line:
https://github.com/netty/netty/blob/bbf3efec982d9eb22cc8ca433b17ec052cb76d59/common/src/main/java/io/netty/util/concurrent/SingleThreadEventExecutor.java#L243
The task queue will be an MPSC queue from JCTools. It could be that the illegal access happens inside this queue, but I suppose there could be a delay in delivering the signal (and the error message says recent unsafe memory access).
I don't think the SslHandler has anything particular to do with it. At most I would guess it perhaps perturbed the JIT profile into hitting a latent bug.
Is this ARM or x86_64?
A work-around would be to explicitly disable the use of Unsafe with setting the system property io.netty.noUnsafe=true, but this may hurt performance.


Database maintenance task not working properly

@majamassarini discovered that the periodic backups (called from here) are not executed (there was the last one done successfully done on May 30th).
After checking the logs, it can be seen the task is being executed, but the last log messages are usually
2024-10-14T01:00:11.246264900+00:00 stderr F [2024-10-14 01:00:11,246: INFO/ForkPoolWorker-3] packit_service.worker.tasks.database_maintenance[62ad1a98-cc7e-41b0-a3cc-eff19d1bd9e6] About to discard old package configs.
2024-10-14T01:00:12.212367112+00:00 stderr F [2024-10-14 01:00:12,212: INFO/ForkPoolWorker-3] packit_service.worker.tasks.database_maintenance[62ad1a98-cc7e-41b0-a3cc-eff19d1bd9e6] Sandcastle pod is not running, nothing to clean up

where the last line here looks really suspicious (not sure how is that code being called). So it looks like discarding the old package configs is the problematic part. On staging, the DB maintenance task looks like it is running properly.  In #2569 I tried to increase the time limit, which did not help. We were then discussing with @mfocko whether this could be related to memory issues. After briefly checking the Openshift metrics, I haven't observed anything suspicious.

seems to be also related to #2427


How to add other supported chain?

How to add other supported chain?

You can do so by adding it to the Chain enum, then adding details from the ThirdwebManager inspector


Include playlist description, view count & last updated date when using dump JSON

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] Searched the bugtracker for similar pull requests
[x] Read adding new extractor tutorial
[x] Read youtube-dl coding conventions and adjusted the code to meet them
[x] Covered the code with tests (note that PRs without tests will be REJECTED)
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[ ] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Bug fix
[ ] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Fixes ytdl-org/youtube-dl#30150 where description was not included in YouTube playlist-type playlists when the parameter -J was used on (if you used -J on tab-type playlist, it would show the description of the YouTube channel)
Here are two example outputs from the command:
command:
youtube-dl --flat-playlist -J PLZHQObOWTQDMXMi3bUMThGdYqos36X_lA

before change:
{
  "_type": "playlist",
  "entries": [
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "GNcFjFmqEc8",
      "url": "GNcFjFmqEc8",
      "title": "But why is a sphere's surface area four times its shadow?",
      "description": null,
      "duration": 1021,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "OkmNXy7er84",
      "url": "OkmNXy7er84",
      "title": "The hardest problem on the hardest test",
      "description": null,
      "duration": 675,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "AmgkSdhK4K8",
      "url": "AmgkSdhK4K8",
      "title": "Who cares about topology?   (Inscribed rectangle problem)",
      "description": null,
      "duration": 1096,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "pQa_tWZmlGs",
      "url": "pQa_tWZmlGs",
      "title": "Why slicing a cone gives an ellipse",
      "description": null,
      "duration": 772,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "yuVqxCSsE7c",
      "url": "yuVqxCSsE7c",
      "title": "Sneaky Topology | The Borsuk-Ulam theorem and stolen necklaces",
      "description": null,
      "duration": 1190,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "zwAD6dRSVyI",
      "url": "zwAD6dRSVyI",
      "title": "Thinking outside the 10-dimensional box",
      "description": null,
      "duration": 1627,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "K8P8uFahAgc",
      "url": "K8P8uFahAgc",
      "title": "Circle Division Solution",
      "description": null,
      "duration": 533,
      "view_count": null,
      "uploader": "3Blue1Brown"
    }
  ],
  "id": "PLZHQObOWTQDMXMi3bUMThGdYqos36X_lA",
  "title": "Geometry",
  "uploader": "3Blue1Brown",
  "uploader_id": "UCYO_jab_esuFRV4b17AJtAw",
  "uploader_url": "https://www.youtube.com/c/3blue1brown",
  "extractor": "youtube:tab",
  "webpage_url": "https://www.youtube.com/playlist?list=PLZHQObOWTQDMXMi3bUMThGdYqos36X_lA",
  "webpage_url_basename": "playlist",
  "extractor_key": "YoutubeTab"
}

After patch:
{
  "_type": "playlist",
  "entries": [
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "GNcFjFmqEc8",
      "url": "GNcFjFmqEc8",
      "title": "But why is a sphere's surface area four times its shadow?",
      "description": null,
      "duration": 1021,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "OkmNXy7er84",
      "url": "OkmNXy7er84",
      "title": "The hardest problem on the hardest test",
      "description": null,
      "duration": 675,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "AmgkSdhK4K8",
      "url": "AmgkSdhK4K8",
      "title": "Who cares about topology?   (Inscribed rectangle problem)",
      "description": null,
      "duration": 1096,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "pQa_tWZmlGs",
      "url": "pQa_tWZmlGs",
      "title": "Why slicing a cone gives an ellipse",
      "description": null,
      "duration": 772,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "yuVqxCSsE7c",
      "url": "yuVqxCSsE7c",
      "title": "Sneaky Topology | The Borsuk-Ulam theorem and stolen necklaces",
      "description": null,
      "duration": 1190,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "zwAD6dRSVyI",
      "url": "zwAD6dRSVyI",
      "title": "Thinking outside the 10-dimensional box",
      "description": null,
      "duration": 1627,
      "view_count": null,
      "uploader": "3Blue1Brown"
    },
    {
      "_type": "url",
      "ie_key": "Youtube",
      "id": "K8P8uFahAgc",
      "url": "K8P8uFahAgc",
      "title": "Circle Division Solution",
      "description": null,
      "duration": 533,
      "view_count": null,
      "uploader": "3Blue1Brown"
    }
  ],
  "id": "PLZHQObOWTQDMXMi3bUMThGdYqos36X_lA",
  "title": "Geometry",
  "view_count": 125486,
  "last_updated": "20191121",
  "uploader": "3Blue1Brown",
  "uploader_id": "UCYO_jab_esuFRV4b17AJtAw",
  "uploader_url": "https://www.youtube.com/c/3blue1brown",
  "extractor": "youtube:tab",
  "webpage_url": "https://www.youtube.com/playlist?list=PLZHQObOWTQDMXMi3bUMThGdYqos36X_lA",
  "webpage_url_basename": "playlist",
  "extractor_key": "YoutubeTab"
}

As you can see, in the first example, the playlist does not have its own description, view_count or last_updated date, and in the second example it does.

Would you like to check this against the current master so that it can be merged?
If you do so, please review https://github.com/yt-dlp/yt-dlp/pull/2069 and include any further changes (or apply equivalent changes) to match it. Eg, does README.md need to be updated?


Upgrade embulk to v0.8.6 by embulk migrate command

This PR contains these changes. I think these fixes are not urgent.
Changes by embulk migrate command

Upgrade Embulk to v0.8.6
Upgrade gradle to v2.10
Add checkstyle plugin

Manually changed that were warned by ./gradlew checkstyle
import order, indent style ...and so on

merged.


.c files don't build on Windows.

See Zulip discussion
Repro on Windows (not MSYS2):
git clone https://github.com/xubaiw/CMark.lean/
cd CMark.lean
lake build
error: failed to execute `cc`: no such file or directory

Seems problematic that this action is hard coded to use "cc" rather than leanInstall.cc.  On Windows leanInstall.cc is wired to clang.exe which is perfect.  So why doesn't the following use that leanInstall setup?
def compileO (name : String) (oFile srcFile : FilePath)
(moreArgs : Array String := #[]) (compiler : FilePath := "cc") : LogIO Unit := do
  logInfo s!"Compiling {name}"
  createParentDirs oFile
  proc {
    cmd := compiler.toString
    args := #["-c", "-o", oFile.toString, srcFile.toString] ++ moreArgs
  }

Interestingly the Lake/examples/ffi example builds on windows because it uses *.cpp instead of *.c and *.cpp does use clang.exe.  But if you change the ffi example to use .c instead you get the same error as CMark.lean.

This is as intended. The leanc C compiler is not meant to be used for anything other than compiling Lean-generated files, and will likely be replaced by https://github.com/leanprover/lean4/pull/1497 anyway.

Is this also true for an ffi plugin that will be loaded in the lean process?  How do you endure compatible C++ ABI and C runtimes and and all that?

How do you ensure compatible C++ ABI and C runtimes and and all that?

By carefully adjusting linker flags etc. We don't have a special answer there.

note the lake ffi sample does use leanc, but only because the c file is ffi.cpp

I don't know why that is, it does pass compiler := "c++" at https://github.com/leanprover/lake/blob/6cfb4e3fd7ff700ace8c2cfdb85056d59f321920/examples/ffi/lib/lakefile.lean#L20

Thanks, Sebasitan, you cleared this up.  I was wrongly thinking the clang we ship in the leantoolchain can also be used to build ffi plugins, but it is not a complete version of clang, it is stripped down minimal just enough to build .lean generated .c code.  So if my ffi plugin contains complex C or C++ code then that version of clang would not be sufficient.
One day it would be nice to have a Windows native build of Lean and Lake and ffi plugins all using the Visual Studio compiler.  If Lean was a pure "cmake" project I could do this already, but alas it isn't.

Great! It seems everything has been resolved here. So, I will close this issue.

Well not exactly, we still have a big hole in windows support for Lake where Lake cannot properly compile an FFI extension unless you are inside an MSYS environment with clang available. This should at least be documented somewhere.

@lovettchris The MSYS requirement is not a limitation of Lake, though -- it is a limitation of Lean. Thus, it should probably be documented in the FFI section of the Lean manual. Also, you don't need clang to build FFI extensions. I just use the builtin MSYS2 c++ (which I am pretty sure is GCC) and it works.

True and I see that lake is hard coded to call out to cc in the compileO action and ar for linking libraries in compileStaticLib.  I think Lake has a bug when I try and compile a .cpp file in an FFI module because it then calls leanc for that. Perhaps it should be configurable as to whether you want to use gcc, clang, or cl.exe on Windows?  But perhaps we can never get MSVC compatibility until we have a full cmake build for Lean itself with no bash shell scripts calling out to clang.

@lovettchris

True and I see that lake is hard coded to call out to cc in the compileO action and ar for linking libraries in compileStaticLib.

No it is not, those are parameters that default to cc / ar, but a user change use different settings when writing FFI code (like the FFI example does).

Ah, I see, thanks.


Could you please share the hyper-parameters for KUKA use PPO?

I have tried both Discrete and Continous action space in Kuka by set the Kuka env parameter IsDiscrete true or false, but I still can not make it work. Could you please tell me the parameters you used for Kuka?
Thanks very much!!
ps. I use pybullet 2.87 with pybullet 1.92, which has a reward based on the object reaching a certain height  (main) and distance between gripper and object(minor  reward  shaping, every step). Thanks again!

Did you install pybullet from sources?

I think that standard hyperparameters should work. It's just a very difficult task, so it might take a lot of updates to solve it.


fix(components): checkbox position was shifted upward when clicking

Bug:
There is an issue where the position of the checkbox is shifted upward due to the internal check icon when clicking on the checkbox. I found this issue in demo components like data-table, in chrome & firefox (https://ui.shadcn.com/docs/components/data-table)
Fix:
Relative and absolute positions were respectively added to the checkbox component and internal icon component.

Thank you for the solution! I'm wondering why is this closed without merged into the main?


Fix typo on sslmode value

issue #2322

Thanks! Please add Fixes #2322. to the commit message body to auto-close the issue upon merge, and add a Signed-off-by: footer for the DCO check.

And it would also be nice if you could prefix the commit message like this: "README: Fix typo on sslmode value"

Merged, ignoring unrelated Travis error. See #2334 .


Swagger/OpenAPI documentation

Does this kit also generate Swagger/OpenAPI documentation for service's methods?

Kit does not support it. As a generate code tool,  it should have this ability, I think.

I also think that kit should have this functionality as goa does.


adding Oracle to Installing Kubeflow table

Looks like the builds failed due to the API rate limit exceeded, @jbottum could you try retriggering the builds to see if that resolves the problem with failed checks?
cc @zijianjoy

new PR: https://github.com/kubeflow/website/pull/3353


Dashboard variables in results filter

The results filter does not appear to support the use of dashboard variables. Is this a bug or by design?

Would be cool to filter results with dashboard time range 👍

Dashboard variables in the result filter would be very useful also for my use case.
During my tests it was not working. Is there any plan to implement it?

yea.. definitely a good to have feature. I will add this to my backlog and work when I have some time. If anyone else can, feel free to PR.

Super... Thank you very much. I am sure many people will use it.

hmm... Just noticed that this already works. https://grafana-infinity-datasource.herokuapp.com/d/data-filter-by-variable
Can someone tell how to reproduce this if not working for you? @m-gnaedig ??

Since this is not reproducible, closing this issue.

I have been able to use Grafana variables within a given Infinity dashboard panel.  That part works.
However, I think what this ticket might have been getting at is that the results filter doesn't work when trying to use Infinity datasource AS a Grafana variable.
Grafana Dashboard Settings --> Variable --> New --> Then use the Infinity data source and apply a results filter


docs: add sequence diagram

I've put together a sequence diagram showing how Lima works based on a read-through of the code.  I'm not sure everything in here is fully accurate (especially around network/port forwarding and filesystem sharing), so I'm happy to change anything that is incorrect.  I hope this is helpful to others who'd like to know more about Lima!

Could you insert the image to docs/internal.md, and explain the corresponding Lima version (0.8.3)?
I also prefer inline mermaid over PNG, but that can be another PR and can be done by somebody else
https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/

I think it would be helpful to include the commands to regenerate the image in the Makefile, so anybody can upgrade the diagram.

Could you insert the image to docs/internal.md, and explain the corresponding Lima version (0.8.3)?

Done

I think it would be helpful to include the commands to regenerate the image in the Makefile, so anybody can upgrade the diagram.

Done


Support the popover attribute

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the bug has not already been reported

Versions
4.1.0
Description
When I want to use the popover attribute, e.g.:
<div popover id="my-popover">Greetings, one and all!</div>

I get the following error:
error TS2322: Type '{ children: Element[]; popover: true; class: string; }' is not assignable to type 'HtmlTag'.
  Property 'popover' does not exist on type 'HtmlTag'.

Steps to Reproduce
Use the popover attribute in a HTML tag.
Expected Behavior
The popover attribute is typed as 'auto' | 'manual'.

Hey @garrappachc, nice feature request, are you up to PR it?

Hey @garrappachc, nice feature request, are you up to PR it?

Sure! I'll tackle this soon


Improvements & Fixes

Hello there,
I have some ideas for improving & fixing few things. So here they are:
Improvements:

Device Type Colunm, just like you the Name, where we can set device type (Desktop, Laptop, Phone Android, Phone iOS, Printer, Router, Switch, Server etc. Should be custom text input with pre-defined types as well.
Status Column, like the Known, here it should show device status i.e., Green = Online or Red = Offline.
Always-On tick box for devices which should always show as Online.
Logs Section, move it a separate page. Here it should show info like New Device detected, went online/offline etc.
Devices Page, here is where we should be able to edit devices' info i.e., Name Type, Group, Known, MAC Address etc.
Custom theming option, so we can set background, colours etc. Environment variable to /data/themes or custom.css. Even better if you can get support from Theme-Park.dev.

Fixes:

Fix the IP Column sorting, right now it is sorting with a very weird order e.g, xx.xx.xx.1 then xx.xx.xx.100 comes.
Increase the width of the Table. There is a lot of wasted space on both sides.

I hope that you'll look into these ideas & fixes.
Regards~

Great ideas, just to comment on :
"Fix the IP Column sorting, right now it is sorting with a very weird order e.g, xx.xx.xx.1 then xx.xx.xx.100 comes."
The sorting is very logical, for a computer 1 , 100, 2, 200 etc.  The solution could be to have a hidden column where the IP addresses are written as 001,002, 100 and use that to sort.

Thats's not what I'm seeing


iox-#1977 ServiceDescription Interfaces and INTERFACE_NAMES do not match

Pre-Review Checklist for the PR Author

[x] Code follows the coding style of CONTRIBUTING.md
[x] Tests follow the best practice for testing
[x] Changelog updated in the unreleased section including API breaking changes
[x] Branch follows the naming format (iox-123-this-is-a-branch)
[x] Commits messages are according to this guideline

[x] Commit messages have the issue ID (iox-#123 commit text)
[x] Commit author matches Eclipse Contributor Agreement (and ECA is signed)

[x] Update the PR title

Follow the same conventions as for commit messages
Link to the relevant issue

[x] Relevant issues are linked
[x] Add sensible notes for the reviewer
[x] All checks have passed (except task-list-completed)
[x] All touched (C/C++) source code files from iceoryx_hoofs are added to ./clang-tidy-diff-scans.txt
[x] Assign PR to reviewer

Notes for Reviewer

Checklist for the PR Reviewer

[x] Commits are properly organized and messages are according to the guideline
[x] Code according to our coding style and naming conventions
[x] Unit tests have been written for new behavior
[x] Public API changes are documented via doxygen
[ ] Copyright owner are updated in the changed files
[x] All touched (C/C++) source code files from iceoryx_hoofs have been added to ./clang-tidy-diff-scans.txt
[x] PR title describes the changes

Post-review Checklist for the PR Author

[ ] All open points are addressed and tracked via issues

References

Closes https://github.com/eclipse-iceoryx/iceoryx/issues/1977

LGTM, thanks!
@wjswjq I just noticed that the Eclipse ECA check is failing. Have you created an Eclipse account with the same email address and signed the ECA?

Not the same email address. My email is<EMAIL_ADDRESS>in Eclipse account, while<EMAIL_ADDRESS>in commit message. Do they need to be consistent?

Not the same email address. My email is<EMAIL_ADDRESS>in Eclipse account, while<EMAIL_ADDRESS>in commit message. Do they need to be consistent?

@wjswjq Yes, I think they need to be the same.

@wjswjq Yes, I think they need to be the same.

@mossmaurice I've updated my ECA. Now they are both<EMAIL_ADDRESS>

@wjswjq

@mossmaurice I've updated my ECA. Now they are both<EMAIL_ADDRESS>
That worked, thanks! :tada:
Regarding the item in the checklist

Copyright owner are updated in the changed files

if you want you can add your copyright in the copyright header. This is optional, though.

if you want you can add your copyright in the copyright header. This is optional, though.

@mossmaurice Not needed. Thanks.


Tracking osoc21 progress

Feel free to add comments with the big changes:

[ ] Adding MongoDB connector
[ ] Adding Postgres connector

@DemianD What’s the status of this work? Can this be merged? Or should we await the merging of https://github.com/osoc21/ldes2service/pull/63 in your main?


Test Debug - forkexecls

I fixed the problem with exec, but this seems to not be doing getdents correctly. Should be able to be debugged by just running ls normally.

This now works with the dipatcher errno PR. However, anything with the -l option (or like it) silently fails because lstat isn't implemented.


Clean the data folder

Structure of folder and files.
Add source file(readme)
Clean out old files.
setup folders for future use.

Just uploaded the cleaned files to satisfy this issue. I forgot the pull request so I'll just close the issue without attaching the commit but the commit is in the version history.


XML parse raising exception when encountering DOCTYPE

Nokogiri::XML('<!DOCTYPE foo PUBLIC "bar" "qux">')

I dumbed down the XML until it was determined that this line was causing the exception. nokogiri-1.5.5 on ruby 1.9.3p194
Exception `ArgumentError' at /usr/local/rvm/gems/ruby-1.9.3-p194/gems/nokogiri-1.5.5/lib/nokogiri/xml/pp/node.rb - string contains null byte
Exception `NilClass' at /usr/local/rvm/gems/ruby-1.9.3-p194/gems/nokogiri-1.5.5/lib/nokogiri/xml/pp/node.rb:8 - undefined method `namespace' for #<Nokogiri::XML::DTD:0x8d9aa64>

Closing, pending more information from original reporter.


git config: push.default is 'matching'

'matching' means all local branches that match an upstream name will be pushed. This is really dangerous. We should change this to 'simple' or 'current' but really, we can probably just unset it and let git decide the default.

This commit seems related to this issue. Should this be closed?

Thanks @benchristel


nixos/apache-httpd: fix typo in extraConfig description

Motivation for this change
This fixes a missing letter.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

LGTM.


FIX: Upgrade to docker/build-push-action@v2

docker/build-push-action@v1 has been deprecated.
The only problem is tag_with_ref: true which is missing in version 2 and should be changed like this:
https://github.com/docker/build-push-action/blob/master/UPGRADE.md#tags-with-ref-and-git-labels
I haven't use the methods specified in the link myself, so I have not tested them somewhere.
I'm going to add them when I had more time.

This still has got problems, please do not merge.

This still has got problems, please do not merge.

This is working fine now, I have tested it on my own quay and it's working just fine:
https://github.com/aminvakil/GreenTunnel/runs/1704438757?check_suite_focus=true
https://quay.io/repository/aminvakil/green-tunnel?tab=tags

This is working fine now, I have tested it on my own quay and it's working just fine:
https://github.com/aminvakil/GreenTunnel/runs/1704438757?check_suite_focus=true
https://quay.io/repository/aminvakil/green-tunnel?tab=tags

Thanks Amin,
I will test and merge it ASAP.

Thanks Amin,
I will test and merge it ASAP.


ELASTICSEARCH env variable not being read properly

Describe the bug
Did the environment variable name change?
ELASTICSEARCH enviornment variable is not being read properly on windows machine (no linux machine to test this). Prior to the name change Rubrix was able to use the ELASTICSEARCH setting correctly, upgrading the package cause this error:
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\backend\elasticsearch.py", line 90, in __exit__
    raise exception_value from exception_value
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\backend\elasticsearch.py", line 312, in _create_index
    if not self._index_exists(index):
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\backend\elasticsearch.py", line 249, in _index_exists
    return self.__client__.indices.exists(index)
  File "c:\dev\argenv\lib\site-packages\opensearchpy\client\utils.py", line 177, in _wrapped
    return func(*args, params=params, headers=headers, **kwargs)
  File "c:\dev\argenv\lib\site-packages\opensearchpy\client\indices.py", line 331, in exists
    return self.transport.perform_request(
  File "c:\dev\argenv\lib\site-packages\opensearchpy\transport.py", line 410, in perform_request
    raise e
  File "c:\dev\argenv\lib\site-packages\opensearchpy\transport.py", line 373, in perform_request
    status, headers_response, data = connection.perform_request(
  File "c:\dev\argenv\lib\site-packages\opensearchpy\connection\http_urllib3.py", line 268, in perform_request
    raise SSLError("N/A", str(e), e)
opensearchpy.exceptions.SSLError: ConnectionError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)) caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\dev\argenv\lib\site-packages\argilla\server\server.py", line 98, in configure_elasticsearch
    datasets: DatasetsDAO = DatasetsDAO.get_instance(
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\datasets.py", line 62, in get_instance
    cls._INSTANCE = cls(es, records_dao)
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\datasets.py", line 68, in __init__
    self.init()
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\datasets.py", line 72, in init
    self._es.create_datasets_index()
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\backend\elasticsearch.py", line 985, in create_datasets_index
    self._create_index(
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\backend\elasticsearch.py", line 309, in _create_index
    with backend_error_handler(index):
  File "c:\dev\argenv\lib\site-packages\argilla\server\daos\backend\elasticsearch.py", line 102, in __exit__
    raise GenericSearchError(ex)
argilla.server.daos.backend.elasticsearch.GenericSearchError: ConnectionError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)) caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\dev\argenv\lib\site-packages\starlette\routing.py", line 621, in lifespan
    async with self.lifespan_context(app):
  File "c:\dev\argenv\lib\site-packages\starlette\routing.py", line 518, in __aenter__
    await self._router.startup()
  File "c:\dev\argenv\lib\site-packages\starlette\routing.py", line 598, in startup
    await handler()
  File "c:\dev\argenv\lib\site-packages\argilla\server\server.py", line 104, in configure_elasticsearch
    raise ConfigError(
pydantic.errors.ConfigError: Your Elasticsearch endpoint at https://elastic:XXXX@localhost:9200 is not available or not responding.
Please make sure your Elasticsearch instance is launched and correctly running and
you have the necessary access permissions. Once you have verified this, restart the argilla server.

While the variable is correctly set like so:

To Reproduce
Steps to reproduce the behavior:

SET up elasticsearch outside of docker using SSL and then set ELASTICSEARCH environment variable.
pip install argilla[server] followed by python -m argilla

Expected behavior
server start
Environment (please complete the following information):

OS: Windows 10
Browser : Chrome
Argilla Version: 1.1.1
ElasticSearch Version: 8.2.0

Additional context
This was not the issue with rubrix, I can still login into Rubrix with a downgrade

Thanks @dhruvsakalley !
@davidberenstein1957 is this similar to your issue with SSL certificates?

As far as I see there's an issue with the SSL certificate. Maybe the elastic search client library changed from rubrix to Argilla and now it's throwing this more restrictive exception.
Reference
https://stackoverflow.com/questions/12180552/openssl-error-self-signed-certificate-in-certificate-chain

I am not entirely sure. @dhruvsakalley we had an issue with httpx, which was caused by having an _ in the URL. What happens if you were to set verify=True when connecting via httpx?

You are correct @dvsrepo it does appear to be an SSL issue, will investigate further around signing the certificates.

@dhruvsakalley did you already manage to solve this?

Hi @davidberenstein1957 I have for now disabled SSL but I will come back to this later this month, have other higher priority items, with SSL disabled it seems to work for the time being. I will update this towards the end of January

Okay, we sometimes encountered an SSL error when there was an _ in the hostname, could this be the issue for you too?

Getting close to testing this next week, thank you for the patience.

Hi @dhruvsakalley! Did you finally manage to figure out what the issue was?


Agc token

团队背景：
AGC团队人员大部分出自世界知名院校及企业，均为行业相关领域资深专家，而且有丰富的资源和经验。具体情况如下：
Kieron·Jeffers（CEO/创始人）
Kieron Jeffers曾是Grant Low Property Development财务总经理和雅马哈澳大利亚金融与保险部的市场总经理。从2018年在母公司Boutique Capital担任总经理,作为IT安全领域的领导者，拥有区块链去中心化和金融技术方面的专业知识。目前公司任命他为AGC的首席执行官开发区块链数字货币。他认为区块链能打造更好的金融体系。世界上首个使用这种技术的央行，将即刻走在金融技术的最前沿。
John Charles（总架构师）
美国 IT Summa 的创始人，有超过 10 年首席执行官经验。自 2015 年到 2017 年 2 月，共操盘 6 个区块链项目，目前全身投入并启动AGC项目。
Al Danilev（系统架构师）
俄罗斯软件工程师，在商业开发方面有 10 多年经验。参与并管理俄罗斯领先品牌软件开发：Sberbank、RZD、飞机建造公司等。是构建公司区块链开源库的核心开发人员；参与exonum-bootstrap项目开发并担任顾问；后离开加入AGC团队，目前为AGC平台及技术主力工程师。
Nicolaw（算法工程师）
基于全球支付的区块链技术及金融契约逻辑的核心定位就是由Nicolaw 在发起人的理念基础上完善而来的，目前负责AGC复杂的算法制定，同时对平台规则进行测试与运算。
Sam Englebardt（产业顾问)
澳大利亚墨尔本大学博士，在澳大利亚矿业协会工作15年，后担任联合国自然资源委员会（Committee on NaturalResources -- CNR）亚太办事处负责人。熟悉全球矿产资源格局，致力于协调各成员国开发自然资源的活动，并向这些国家或地区提供咨询服务。
项目基本情况：
世界现查明的黄金资源量为 8.9 万吨，储量基础为7.7 万吨，储量为5.4万吨。世界上有80多个国家生产黄金。金矿开采是人类社会黄金的主要来源，但是在现有的市场环境下黄金矿产广泛存在开发粗放、交易效率低、防伪溯源难、环境保护不力等一系列问题，这些问题在现有的技术条件下难以解决。应用区块链技术是金矿矿产资源开发和交易领域突破传统桎梏的良好契机。
在这一背景下，本项目团队开发了基于区块链技术的AGC项目（Asia Gold Coin）。AGC利用区块链的去中心化特征，打造一个去中心的金矿资源交易服务平台，平台的服务方向包括以下三点：
1、规范金矿矿产资源的开发和交易，引领市场良性发展。
2、解决金矿矿产资源溯源防伪问题，提高市场透明度。
3、通过加密数字货币的应用，解决跨境支付、信用支付等问题，稳定金矿矿产资源领域的金融秩序。
AGC恒量发行1000亿枚数字货币，可广泛应用于金矿矿产资源开发和交易流通领域中的交易支付、防伪溯源、金融服务等多个场景。
媒体报道：
金色财经：https://www.jinse.com/blockchain/543214.html
建议Gas Limit（对 ERC-20 项目方）：70000
Project team background:
Most of the AGC team members come from the world-renowned universities and enterprises. As senior experts in related fields, they all have rich resources and experience, as shown below.
Kieron·Jeffers (CEO/ Founder)
Kieron Jeffers once worked as the financial general manager of Grant Low Property Development and the market general manager of the Financial and Insurance Department in Yamaha Australia. Having held the post of the general manager in the parent company Boutique Capital since 2018, as a leader in the IT security domain, he possesses professional knowledge in the blockchain decentralization and financial technology. At present, the company has appointed him to be the CEO of AGC to develop the digital currency of blockchain. In his opinion, blockchain can create a better financial system. The central bank firstly using this technology in the world will be at the forefront of financial technology immediately.
John Charles (Chief Architect)
As the founder of US IT Summa, John possesses more than 10 years of experience in working as CEO. From 2015 to Feb. 2017, he operated 6 blockchain projects in total. Now he is devoted to starting the AGC project.
Al Danilev (System Architect)
As a software engineer in Russia, he has more than 10 years of experience in business development. He once participated in and managed the software development of some leading brands in Russia, such as Sberbank, RZD, airplane manufacturing company and so on. He was once a core developer to establish the blockchain open-source library for the company, then participated in developing the exonum-bootstrap project and worked as the consultant, and later left for joining in the AGC team. Now he is a key engineer of AGC platform and technology.
Nicolaw (Algorithm Engineer)
The core orientation of the blockchain technology and financial contract logic based on the global payment is perfected by Nicolaw on the basis of the initiator’s idea. Now he is responsible for formulating the complex algorithm of AGC, as well as conducting testing and operation to the platform rules.
Sam Englebardt (Industrial Consultant)
As the Doctor of the University of Melbourne in Australia, he once worked for 15 years in Australian Mining Association. Later he acted as the principal of Asia-Pacific Office of Committee on Natural Resources (CNR) of United Nations. Familiar with the global mineral resource structure, he is devoted to coordinating the activities of natural resource development by each member country, and providing consultation service for these countries or regions.
Project basic information:
There are 89,000 tons of gold resources which have been found out in the world, with the reserve base being 77,000 tons and the reserve being 54,000 tons. There are 80 countries producing gold in the world. Gold mine exploitation is the main source of social gold. However, in the current market environment, the gold mine exploitation has a series of problems that cannot be solved under the existing technical conditions, including extensive exploitation, low transaction efficiency, difficulty in anti-counterfeiting and traceability, poor environmental protection, etc. It is a good opportunity to break through the traditional shackles for applying the blockchain technology in the field of gold mineral resource development and transaction.
Under this background, our project team develops the blockchain-based AGC project (Asia Gold Coin). AGC uses the decentralized feature of blockchain to build a decentralized gold mineral resource transaction service platform, which provides the following services:
1.Standardizing the development and transaction of gold mineral resources, so as to lead the benign development of market.
2.Solving the problem about gold mineral resources’ traceability and anti-counterfeiting, so as to make the market more transparent.
3.Solving the problems concerning cross-border payment, payment by credit and so on by using cryptocurrency, so as to stabilize the financial order in the field of gold mineral resources.
A total of 100 billion AGC tokens will be issued, which will find wide application in payment, anti-counterfeiting, traceability, financial service and other scenarios in the field of gold mineral resources’ development, transaction and circulation.
Media publications:
金色财经：https://www.jinse.com/blockchain/543214.html
Recommended Gas Limit for transaction: 70000

欢迎在社区中推荐用户使用 imToken 2.0 管理资产。


feat: #6 add in callback methods and flesh out the network methods

Added in callback function consumer and fleshed out the TunnelConnection object methods.

Not sure if a better approach exists. Even now I still have to call .take() on each callback function before I send it to the function consumer, but hopefully this approach should be modular enough to support any and all functions.
@sohamjaiswal what sort of parameters will you be passing normally? I can take a look as to what I can put into the callbacks

Not sure if a better approach exists. Even now I still have to call .take() on each callback function before I send it to the function consumer, but hopefully this approach should be modular enough to support any and all functions.
@sohamjaiswal what sort of parameters will you be passing normally? I can take a look as to what I can put into the callbacks

I would not be passing in anything, but I want it to be implemented on the struct such that I can access all the safe to be seen/modified properties on the struct. The callback would always return void.

Not sure if a better approach exists. Even now I still have to call .take() on each callback function before I send it to the function consumer, but hopefully this approach should be modular enough to support any and all functions.
@sohamjaiswal what sort of parameters will you be passing normally? I can take a look as to what I can put into the callbacks

I would not be passing in anything, but I want it to be implemented on the struct such that I can access all the safe to be seen/modified properties on the struct. The callback would always return void.

can you give an example? do you mean accessing the TunnelConnection object struct members?

i would like utility like that as given in the code snippets in the conversation above

woops, accidentally committed without adding the other change.
@sohamjaiswal check now

Not sure if I need the parameter inside <dyn Fn()>. It built the binary so no issues during compilation

pushed

According to this: https://stackoverflow.com/questions/76965631/how-do-i-spawn-possibly-blocking-async-tasks-in-tokio
making blocking network calls might not the best idea. We'll probably have to delegate the results to some sort of .then() handler, so I'll have to see what can done

actually, wait, don't merge this yet.
I think we won't need the connect() function for the client. Wouldn't it for the actual machine instead -- since the client has already connected to us, and that's when we're making a TunnelConnection object

actually, wait, don't merge this yet.
I think we won't need the connect() function for the client. Wouldn't it for the actual machine instead -- since the client has already connected to us, and that's when we're making a TunnelConnection object

alr

actually, wait, don't merge this yet.
I think we won't need the connect() function for the client. Wouldn't it for the actual machine instead -- since the client has already connected to us, and that's when we're making a TunnelConnection object

alr, i took it more like hooks you wanted to run internally when it connects to us

yeah the first thing that we do is to actually try to connect to the server machine(from what I understand)
only after that the rest of the methods(relay, etc) can be called so we get data and send it to the server.
I modified that thing. Since the TunnelManager object is going to spawn TunnelConnections, it will also pass in the server address and port and all, so the TunnelConnection object(for each request to the server) can form a connection on its own

lemme know when you are done with this one, then i'll merge

lemme know when you are done with this one, then i'll merge

didn't see this message. Yeah feel free to merge it. I'll raise another PR, review it and also merge it when able


README: Add example + 'how to' section

Codecov Report
Patch and project coverage have no change.

Comparison is base (d73f306) 56.17% compared to head (966b7af) 56.17%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage   56.17%   56.17%
=======================================
  Files          16       16
  Lines         534      534
  Branches      126      126
=======================================
  Hits          300      300
  Misses        108      108
  Partials      126      126

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


Logout POST

I created a link in layout/main.php using
echo Yii::$app->user->isGuest ?
Html::a('Login', ['/user/security/login']) :
Html::a('Logout', ['/user/security/logout'], ['data-method' => 'post']);
Which generated the following after I login -
a href="/rgcf/web/user/logout" data-method="post">Logout</a
I also included  in the head of layout/main.php
But, when I click the Logout link, it throws error #405. Method Not Allowed. This url can only handle the following request methods: POST.
Thank you for your guidance.

That's not yii2-user problem. You don't have YiiAsset included on your pages, which allows to use links to send post requests.
P.S. Please don't use github to ask such kind of questions, instead use our google group or gitter.


Version 3.0.1 released?

Maven central is saying there is a new hotfix version available 3.0.1
While I don't see it here in the releases. And I also can't find any commit in master or other branches that would hint to it.
Is this intentional?

https://mvnrepository.com/artifact/io.github.cdimascio/dotenv-java/3.0.1

thanks for the heads up. the hotfix details are now available in this repo


FancyZones layout editor will not launch

ℹ Computer information

PowerToys version: 0.29.0
PowerToy Utility:
Running PowerToys as Admin: Yes
Windows build number: 19041.685

📝 Provide detailed reproduction steps (if any)

Click "Launch layout editor".

✔ Expected result
Layout editor opens.
❌ Actual result
Layout editor does not open.
I see it appear in task manager for a split second.
.net framework is up to date.

Same issue for me. I can only open it if I focus a window on my secondary monitor.

Same issue here. Not working with 'secondary monitor" tip from jassmith.

Same issue here. Not working with "secondary monitor" tip from jassmith. I even deleted the PowerToys folder from Users\AppData\Local\Microsoft to no avail. What's worse is that the zones are not being highlighted anymore on Shift+Drag. Reverting to 0.27, this release is way to buggy.

Do FancyZones work in older versions for you?

Same issue here. Not working with "secondary monitor" tip from jassmith. I even deleted the PowerToys folder from Users\AppData\Local\Microsoft to no avail. What's worse is that the zones are not being highlighted anymore on Shift+Drag. Reverting to 0.27, this release is way too buggy.

Do FancyZones work in older versions for you?

Yes, 0.27.1 works ok for me, except that for new asymetrical layouts the "space around the zones" setting&value is ignored, which I was told is by design for the time being.

I launched the exe with a debugger and found it was crashing d3d9.dll. With this I figured it might be some other application being a problem, turns out uninstalling rivatuner was enough to fix the issue.

I launched the exe with a debugger and found it was crashing d3d9.dll. With this I figured it might be some other application being a problem, turns out uninstalling rivatuner was enough to fix the issue.

I definitely don't have rivatuner installed (or any other overclocking utility). What debugger did you use?

Oh I just popped up VS 2017, Open -> New Project, navigated to the .exe and hit start.

This is the error I am getting in the Event Viewer when I try to launch the fancy zones editor in 0.29.0:
Application: FancyZonesEditor.exe
CoreCLR Version: 4.700.19.60701
.NET Core Version: 3.1.1
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException: Could not load file or assembly 'System.Text.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'System.Text.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at FancyZonesEditor.Utils.FancyZonesEditorIO..ctor()
at FancyZonesEditor.App..ctor()
at FancyZonesEditor.App.Main()
I did an uninstall and re-install and the same error persists.

@ockidj @mdkiefer @mdcclxv
can you please open the command prompt and run dotnet --list-runtimes? Thanks.

Did a fresh install of 0.29.0 and had the same issue with the same message in the Event Viewer. Installing .NET Core 3.1 manually seems to have resolved the issue.

Same issue, @JamiesWhiteShirt's fix also worked for me.

@LuckierDodge
do you have RivaTuner installed?

No, nor any other overclocking utility.

@ockidj @mdkiefer @mdcclxv
can you please open the command prompt and run dotnet --list-runtimes? Thanks.

Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.3-servicing-26724-03 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

@mdkiefer
give it a try to update .NET Core https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.10-windows-x64-installer might not make a difference, but it's still good to update

@enricogior i wonder if this could actually be causing some of the issues for DLLs that should be found but aren't.  We're expecting a newer version of Core.
Microsoft.NETCore.App 3.1.1 vs 3.1.10
Maybe we really should think about bundling.  This way we control E2E what we ship and is executed.

ℹ Computer information

PowerToys version: 0.29.0
PowerToy Utility:
Running PowerToys as Admin: Yes
Windows build number: 19041.685

📝 Provide detailed reproduction steps (if any)

Click "Launch layout editor".

✔ Expected result
Layout editor opens.
❌ Actual result
Layout editor does not open.
I see it appear in task manager for a split second.
.net framework is up to date.

@mdkiefer
give it a try to update .NET Core https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.10-windows-x64-installer might not make a difference, but it's still good to update

This resolved my issue. Thanks.

@mdkiefer
give it a try to update .NET Core https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.10-windows-x64-installer might not make a difference, but it's still good to update

This resolved my issue. Thanks.

@crutkas

Maybe we really should think about bundling

We don't need to do that, we can simply increase the minimum version required when checking what version is installed.
We currently check for 3.1.0 or higher, assuming Windows will auto update to the latest and greatest, but clearly this is not happening, so we can simply check for 3.1.10 and install it if not present. I've opened https://github.com/microsoft/PowerToys/issues/8875

@crutkas

Maybe we really should think about bundling

We don't need to do that, we can simply increase the minimum version required when checking what version is installed.
We currently check for 3.1.0 or higher, assuming Windows will auto update to the latest and greatest, but clearly this is not happening, so we can simply check for 3.1.10 and install it if not present. I've opened https://github.com/microsoft/PowerToys/issues/8875

Installing .NET Core 3.1.10 fixed the problem for me as well. @JamiesWhiteShirt: many thanks.

Installing .NET Core 3.1.10 fixed the problem for me as well. @JamiesWhiteShirt: many thanks.

To recap, who is still having the problem?

To recap, who is still having the problem?

.NET Core update to 3.1.10 resolved the issue for me too! Thank you all!

.NET Core update to 3.1.10 resolved the issue for me too! Thank you all!

Closing the issue since it seems the problem was either the presence of RivaTuner or an old .NET Core version (solution for now is to manually update https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.10-windows-x64-installer, but we will take care of that in 0.31 enforcing the update to the latest https://github.com/microsoft/PowerToys/issues/8875)
If you are still experiencing this problem, we'll reopen the issue.
Thanks

Closing the issue since it seems the problem was either the presence of RivaTuner or an old .NET Core version (solution for now is to manually update https://dotnet.microsoft.com/download/dotnet-core/thank-you/runtime-desktop-3.1.10-windows-x64-installer, but we will take care of that in 0.31 enforcing the update to the latest https://github.com/microsoft/PowerToys/issues/8875)
If you are still experiencing this problem, we'll reopen the issue.
Thanks


Couldn't find MIME by codec id 86018 !

Where can i see the log, I do not know what  'MIME codec id' mean


[SUPPORT] Hudi very slow performance when streaming high number of partitioned data from kinesis.

I have a hudi with glue streaming setup (glue 4) reading from kinesis. Config are as follows:

ingestion rate - 5000rps
number of DPU - g2.x 20 workers
kinesis shards - 40
target - s3

Each record size is 2.5KB and there are around 20000 partitions being published. when keeping a window size of 5 min or 15 min in both cases the lag is more than half an hour even though we have tried:

increasing workers
removing compression
Tried MOR instead of COW (little better but still >20min) - but for our usecase we need to spike out max latency hence doing COW
playing around with kinesis fetch configs
Playing around with shuffle parallelism (increased. from 80 to 160 to 320)
played around with file sizing. (didnt impact much)

Only thing that made the lag >10min < 15 min to reduce the partition size, am i missing something here is there some other configuration to tweak ?
A clear and concise description of what you expected to happen.
Environment Description

Hudi version : 0.12.1

Spark version : spark 3.3.0

Storage (HDFS/S3/GCS..) :s3

Running on Docker? (yes/no) : no

SCRIPT
from pyspark.sql.functions import col, from_json, from_unixtime, expr, regexp_extract, udf
from pyspark.sql.session import SparkSession
from awsglue.context import GlueContext
from awsglue.transforms import *
from pyspark.sql.types import StructType, StructField, StringType, IntegerType, ArrayType, DoubleType, LongType
import uuid
from awsglue import DynamicFrame
G2.x (4 vcpu and 16gb ram) - 20 workers
# Initialize Spark session
spark = SparkSession.builder \
    .appName("GlueKinesisToHudi") \
    .config("spark.serializer", "org.apache.spark.serializer.KryoSerializer") \
    .config("spark.sql.hive.convertMetastoreParquet", "false") \
    .getOrCreate()

sparkContext = spark.sparkContext
glueContext = GlueContext(sparkContext)

schema = # schema

parsed_df_k = glueContext.create_data_frame.from_options(
    connection_type="kinesis",
    connection_options={
        "typeOfData": "kinesis",
        "streamARN": "# kinesis arn",
        "classification": "json",
        "startingPosition": "latest",
        "inferSchema": "true",
        "emitConsumerLagMetrics": "true",
        "maxFetchTimeInMs": 60000
    },
    transformation_ctx="dataframe_KinesisStream_node21_c",
)

def process_batch(spark_df,batch_id):
      if spark_df.count() > 0:
        dynamicframe = DynamicFrame.fromDF(spark_df, glueContext, "from_data_frame")
        parsed_df = dynamicframe.toDF()

        #column transformations her

        # Define Hudi options
        hudi_options = {
            "hoodie.table.name": "compression_15_run1",
            "hoodie.datasource.write.table.type": "COPY_ON_WRITE",
            "hoodie.datasource.write.operation": "upsert",
            "hoodie.datasource.write.recordkey.field": "id",
            "hoodie.datasource.write.partitionpath.field": "container_id,year,month,day",
            "hoodie.datasource.write.precombine.field": "timestamp",
            "hoodie.datasource.write.hive_style.partitioning": "true",
            "hoodie.upsert.shuffle.parallelism": 160,
            "hoodie.insert.shuffle.parallelism": 160,
            "hoodie.bulkinsert.shuffle.parallelism": 160,
            "hoodie.datasource.hive_sync.mode": "hms",
            'hoodie.datasource.hive_sync.sync_as_datasource': 'false',
            'hoodie.datasource.hive_sync.database': 'glue_ctx_db',
            'hoodie.datasource.hive_sync.table': 'compression_15_run1',
            'hoodie.datasource.hive_sync.use_jdbc': 'false',
            'hoodie.datasource.hive_sync.partition_extractor_class': 'org.apache.hudi.hive.MultiPartKeysValueExtractor',
            'hoodie.datasource.write.hive_style_partitioning': 'true',
            'hoodie.datasource.hive_sync.enable': 'true',
            'hoodie.index.type': 'SIMPLE',
            "hoodie.parquet.compression.codec": "gzip",
            "hoodie.cleaner.policy": "KEEP_LATEST_FILE_VERSIONS",
            "hoodie.cleaner.fileversions.retained": "1",
            "hoodie.parquet.compression.ratio": "0.95",
            'hoodie.copyonwrite.record.size.estimate': '2560',
            'hoodie.cleaner.commits.retained': 1,
            'hoodie.combine.before.insert': True,

        }

        warehouse_path = "s3://hudi/run_1/output"
        parsed_df.write.format("hudi") \
                .options(**hudi_options) \
                .mode("append") \
                .save(warehouse_path)

glueContext.forEachBatch(
    frame=parsed_df_k,
    batch_function=process_batch,
    options={
        "windowSize": "15 minutes",
        "checkpointLocation": "s3://hudi/run_1/checkpoint",
    },
)

@epsilon-akshay Can you post the screenshots of spark UI. Which stage is taking time.

Spark ui is not working in glue for spark streaming. But the time consuming step generally from the logs contains equal number of tasks exactly same as the number of partitions. something like:
finished task in 1.2 sec, task executed (1/total number of task) and this total number of tasks = number of partitions we intend to create.

Spark ui is not working in glue for spark streaming. But the time consuming step generally from the logs contains equal number of tasks exactly same as the number of partitions. something like:
finished task in 1.2 sec, task executed (1/total number of task) and this total number of tasks = number of partitions we intend to create.


Android Malware detection

Hi im wondering are there any attacks that i can run for Android Malware Detection with Drebin like the tutorial  ? It would be helpful if you could show me how to initialize those attacks. I will cite your work after my paper is done

Have you checked this one? https://github.com/pralab/secml/blob/master/tutorials/13-Android-Malware-Detection.ipynb


No version number

It would be useful to have a version number for the version of React Boostrap these typing describe.

That is a good idea, how would you recommend I do that, is there a standard method?


Cannot connect on OpenBSD

When I try to run this:
my $conn = await IO::Socket::Async::SSL.connect('hastebin.com', 443)

I get this exception:
An operation first awaited:
  in block  at /home/morfent/.perl6/share/perl6/site/sources/9185AF0B330E61F6756B436B9695D044E0F403B7 (IO::Socket::Async::SSL) line 322

Died with the exception:
    Server certificate verification failed: unable to get local issuer certificate
      in block  at /home/morfent/.perl6/share/perl6/site/sources/9185AF0B330E61F6756B436B9695D044E0F403B7 (IO::Socket::Async::SSL) line 322

OS:

OpenBSD bastille.kennel.qt 6.3 GENERIC.MP#4 amd64

Perl version:

This is Rakudo version 2018.08-96-g174e728c5 built on MoarVM version 2018.08-63-ga8dfd4793

Sorry, this seems to be an issue with OpenSSL, not this module

Actually it seems I was wrong. The code works if I run this instead:
my $conn = await IO::Socket::Async::SSL.connect('hastebin.com', 443, :version(1.1))

But for packages that rely on this module, like Cro, I don't have the option of passing the version like this

This no longer happens on the latest version


case with default not working (at least using JsExpressionHandler)

code
  case tag_type
    when 'inline'
        //...
    when 'self_closing'
        //...
    default
        //...

throws
de.neuland.jade4j.exceptions.JadeCompilerException: unable to evaluate [tag_type == default] - ScriptException <eval>:1:12 Expected an operand but found default
tag_type == default
            ^ in <eval> at line number 1 at column number 12 in node_modules/bemto.jade/lib/bemto_custom_tag.jade:40

I can't reproduce your exception:
My code
- var friends = 10
case friends
    when 0
        p you have no friends
    when 1
        p you have a friend
    default
        p you have #{friends} friends

- var tagType = "default"
case tagType
    when "p"
        p you have no p
    when "br"
        p you have a br
    default
        p you have a #{tagType} tag

generates

you have 10 friends

you have a default tag

Fixed in 1.2.6


isort module integration

Description
isort module integration for Sinergym.
Motivation and Context

[x] I have raised an issue to propose this change (required for new features and bug fixes)

isort is a python module that could be very interesting to organize our imports in repository module.
This functionality would be combined with workflows in order to automatize this process.

Fixes #147
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Documentation (update in the documentation)
[ ] Others

Checklist:

[x] I've read the CONTRIBUTION guide (required)
[x] My change requires a change to the documentation.
[ ] I have updated the tests.
[x] I have updated the documentation accordingly.
[x] I have reformatted the code using autopep8 second level aggressive.
[x] I have ensured pytest tests/ -vv pass. (required).

Changelog:

Apply isort standard to Sinergym code (whole project).
Included isort in requirements.txt
Added isort functionality in format check (create PR workflows) and bot format commit (merge workflow).
Unified all pull request workflow in a yml file (create_pr.yml)

Thanks https://stackoverflow.com/questions/57850553/github-actions-check-steps-status


fix: Promise arrays being returned. Added a new definitions-only context provider. fix: typescript tagging.

There was still an issue with the provider returning an array of Promise objects. This should now be fixed.
There was another issue with typescript files not returning definition tags. This should now also be fixed.
I added a new provider.
The first provider, a tag-ranking highlighter tries to restrict the highlighted symbols to the "most important" nth percentile. I'm still playing around trying to figure out the scenarios in which this is most useful, and what "most important" means.
In the meantime, this new provider shows only the definition line with the name of classes, functions, methods, etc. It very predictably "summarizes" a file. This should be useful in many places where the entire file is too big to send. So, for example
def greet(name):
  return f"Hello, {name}!"

def calculate_area(length, width):
  return length * width

class Point:
  def __init__(self, x, y):
      self.x = x
      self.y = y

  def distance_to(self, other):
      dx = self.x - other.x
      dy = self.y - other.y
      return (dx**2 + dy**2)**0.5

# Example usage
print(greet("Alice"))
print(calculate_area(5, 3))
point1 = Point(2, 3)
point2 = Point(4, 5)
print(point1.distance_to(point2))

is 'outlined' to
test_python_code.py
█def greet(name):
⋮...
█def calculate_area(length, width):
⋮...
█class Point:
█  def __init__(self, x, y):
⋮...
█  def distance_to(self, other):
⋮...

Nice! Can't wait to try it


Avoid escaping XML inside xml code block

The XML to be used for pom.xml defined in an XML code block in markdown was made using XML entities for brackets which resulted in them also being escaped in the resulting view.

@jipe Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

Thank you. Yes, these were necessary with the original site but not with Docosaurus.


"Phone number" question type: implement bare-bones

This question is a variant of the Text question type that creates a special phone number entry widget.

This graphic shows a useful design pattern for making phone number input fields:

Crucially, only numbers can be inputted; all the other formatting (parentheses, dashes,e tc.) is automatically applied. This minimizes the amount of user confusion and potential validation errors.
Make it possible for UAT admins to create, and for applicants to fill out, questions of this type. Answers should be saved to a database. Configuration options and validation criteria aren't necessary yet.
See context for question types at https://github.com/seattle-uat/universal-application-tool/wiki/Question-type-requirements-notes

See this wiki page to learn how to add a new question type to the codebase!

Heads up: the CiviForm admin we're working with at the City of Seattle (Elise) has requested phone numbers as the next question type we add support for. I'm bumping its priority up a little as a result.

You may want to use the <input type="tel"> HTML tag when showing this to the user -- it pops open the familiar "number pad" keyboard on phones.

You may want to use the <input type="tel"> HTML tag when showing this to the user -- it pops open the familiar "number pad" keyboard on phones.

You can also get access to the pattern attribute.

I can see if I can tackle this issue

Continues to be an issue for the programs onboarded to CiviForm.

@thomasphung Are you still working on this feature? Not to worry, if not! This is a priority feature for the Seattle programs, just want to see how we can support the work.

I don't think anyone is working on that. We got this request while working with Arkansas on a demo program. Phone is a common question in forms and we should support it.
@cassandralfernandes let's add it to the "admin UX" epic for Q4?

Discussed implementation with @nbeloglazov, the likeliest path for getting a good UX for this is to use an existing open source JS library for phone number inputs. If we can find a stable library it's ok to vendor (i.e. copy the distribution code) into our repo, unless a suitable webjar is available.

Fresh Bucks asked if it's possible to have the formatting auto populate.


Tengine's description ngx_http_dyups_module updates the new version description and new function description

Update new version description, new feature description
http://tengine.taobao.org/document/http_dyups.html
http://tengine.taobao.org/document_cn/http_dyups_cn.html
ngx_http_dyups_module.me https://github.com/yzprofile/ngx_http_dyups_module
Thank you very much.

hi @yunoasgit
I'am closing this issue, it will be fixed in https://github.com/alibaba/tengine/pull/1278

Has been fixed in #1278 (merged)


fix: remove trailing slashes from cache keys

Fix for https://github.com/strapi-community/strapi-plugin-rest-cache/issues/45.
This change removes trailing slashes from cache keys.
Requested url is used as key for the cache. But the same request with and without a trailing slash lead to 2 separate cache entries.
This also caused issues with purging and clearByUid (only the entry without the trailing slash was removed).

Thanks for the PR, I'm currently doing a bunch of cleanup and did some tweaking (and was unable to push to your fork). So I've merged your changes into: https://github.com/strapi-community/strapi-plugin-rest-cache/pull/61


Using start is no longer necessary in PowerShell, because wt.exe exits sooner

According to the article, "PowerShell will wait for the newly-created terminal window to be closed before returning control to PowerShell" if I run the following command without Start-Process:
wt --% new-tab cmd ; split-pane -p "Windows PowerShell" ; split-pane -H wsl.exe

With Windows Terminal 1.3.2651.0 and Windows PowerShell 5.1.19041.1, control actually returns to PowerShell even before I close the new terminal window, thanks to https://github.com/microsoft/terminal/pull/6860. So the rationale for using start to run the command line is no longer valid.

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

ID: bd211ca4-58c5-fdb6-93c4-75b3ea7aa34f
Version Independent ID: 0d5d0fe3-01ef-66e8-263d-a0a7852ffa7a
Content: Windows Terminal command-line arguments
Content Source: TerminalDocs/command-line-arguments.md
Product: dev-environment
Technology: windows-terminal
GitHub Login: @cinnamon-msft
Microsoft Alias: cinnamon

@zadjii-msft - Could you confirm whether we can update this statement in the docs?

Hey @KalleOlaviNiemitalo! Thanks for bringing this to our attention. We just removed the start information from the docs, so I'll close this issue out 😊


Finalize CIP-37: Introduce Base32 Checksum Addresses

This change is

CIPs/cip-37.md, line 64 at r4 (raw file):
Previously, Thegaram (Péter Garamvölgyi) wrote…
Done.

I feel we can omit "type." and use "user"/"contract"/"builtin"

CIPs/cip-37.md, line 64 at r4 (raw file):
Previously, Thegaram (Péter Garamvölgyi) wrote…
Done.

I feel we can omit "type." and use "user"/"contract"/"builtin"


Unsupported platform/architecture: darwin-arm64

Specs

Leon version: 1.0.0-beta.4
OS (or browser) version: Macbook M1 on version 11.4
Node.js version: v16.10.0
Complete "npm run check" output: ✔ Hooray! Leon can run correctly

When running npm start the following error is thrown:
><EMAIL_ADDRESS>start
> cross-env LEON_NODE_ENV=production node ./server/dist/index.js

.../leon/node_modules/@ffmpeg-installer/ffmpeg/index.js:14
    throw 'Unsupported platform/architecture: ' + platform;
    ^
Unsupported platform/architecture: darwin-arm64
(Use `node --trace-uncaught ...` to show where the exception was thrown)

I tested Leon with<EMAIL_ADDRESS>and it works now. Unfortunately @ffprobe-installer/ffprobe does not yet support darwin-arm64. This merge request is pending to add support, but it seems to have stalled. I tried the package node-ffprobe-installer but that gave me an error about not being able to find the ffprobe executable.

 🔧 Compatibility with ARM architectures and test on Pis

Hi, this month we have been working on compiling all Python stuff related upfront. Meaning, Leon does not need Python at runtime anymore.
Please try the three following commands and let's see how it goes and paste the report URL:
# Install the beta version of the Leon CLI
npm install --global @leon-ai/cli@beta

# Create a Leon instance based on the develop GitHub branch
leon create birth --develop

# Create a report
leon check


Looking for maintainers?

Hey @klaussinani, this project is an absolute godsend as I transition to Linux.
It looks like this is no longer something you have time to maintain, and that's no worries - you've given a great bit of code here that I hope others can pitch in to help support.
In the meantime, it'd be great to know how you are feeling about the project and whether you could be game to pass keys to well-meaning people to keep it going.
A note to others: If you're a well-meaning potential maintainer, comment or :+1: here!

I agree, this has been amazing for Linux and made me start to use Evernote again as a cross-platform note-taking app, sad to see that it is not actively developed for the time being.

@klaussinani hasn't replied to any messages here a very very long time.  I think rather than wait for a reply from him, perhaps someone with the skills to maintain it could simply fork it and continue the project.  Just make sure you come back here and let the rest of us know which fork to start following.  Tusk is one of my mission-critical applications that is always running on my desktop.  The day will come when Evernote makes a change that will ultimately break Tusk and I hope someone will have stepped up by then to keep it going.  I would offer to do so if I had the coding skills.

Any updates on a fork or alternative? I've only recently started on Evernote, and there is recent news that they are building their own officially-supported linux client. But until then, I NEED something. I'll see how well this holds me over for now.

@brooksvb I've been talking to a few people... nothing off the ground just yet.
In the meantime, all users will have to get their hands a little dirty and keep running Tusk. You may need to build from source off a PR with fixes, but I've been running it on Fedora and Pop!_OS without much of an issue.
There's still plenty of community around the project as visible in this issue. Open new issues to ask questions and we'll help each other keep things running.


change how inner container type gets sourced

Pull Request Checklist

[x] New code has 100% test coverage
[ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
[ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

Description
Close Issue(s)

Please add a description explaining what and why you are changing this code


How to transform an image and display it

I think this is a documentation issue rather than functionality, but it is really not clear how I am supposed to transform an image (in my case a simple resize) and then display it. I would expect the ReactFilestack component in "transform" mode to do this. But the docs don't actually tell me even how to pass in the url or Filestack handle to be resized?

@chucksellick Hey sorry for the late reply. If I clearly understand you wanna resize the picture.
Within filestack-react you first need to pass the right mode prop equal to 'transform'.
The official documentation https://www.filestack.com/docs/javascript-api/transform-v3 specifies the function requires two parameters, url and options.   To ReactFilestack they can be passed as a single object in the options prop:
const options = { url: 'PICTURE_URL', options: { resize: { width: 100 } } };
<ReactFilestack mode="transform" options={options} />

I think the confusion is that I did not create any url prop but instead send it as a property of a more general options object.

Would be nice if the react view exposed the client variable so that subsequent calls since the api isn't really well suited for single call compound image transforms.  I.e., if i want to guarantee PDF outputs, it looks like you must upload, transform, then upload again.  Let me know if this is not the case?

@Sitch If I clearly understand you would like access to the client api? That's possible, I could export it so you can import the component and the client this way:
import ReactFilestack, { client } from 'filestack-react';

Which is pretty much like having access to filestack-js. However, both the component ReactFilestack and client would need the API key when initialized.
Does it reply to your suggestion?

@sitch v1.3.4 just push, client can be exported. If it's ok we can close this issue.


Initial RELEASING.md document;

The document is supposed to describe the process of doing a release for danger-changelog and preparing for a new iteration.

Merged. Btw, no need to make PRs for the actual release, just do that on this repo/master.

@dblock kk, that makes sense


Problem with closed connection

I have a problem because from time to time I get this error: "MongoDB ConnectionException: connection closed: The socket connection has been reset by peer.", it doesn't always happen, but as I mentioned, sometimes.

I will add that the problem does not appear during connection, only when performing some operation on mongoDB, e.g. update

Hello, I think your problem is related to this. Some methods are deprecated. Can you try using alternative methods?
i will be waiting for your feedback.

Is this problem still occurring?

If there are no other answers to this issue, I'm marking it as solved.


Rename copr rpm repository

Fedora copr allows users to manage custom rpm repositories and serves as a build service for those repos. Repos are namespace under fedora accounts. There's no concept of a shared organization. Because of this, the Nexodus rpm copr repo is russellb/nexodus. It would be better to make it nexodus-io/nexodus. That requires creating a new Fedora account for nexodus-io and maintaining the repos under that user, instead.

#1659 introduces nexodus/nexodus. I'll leave this issue open to remind me to remove the deprecated repo later on.