DLLImport Native Libraries

Hey everyone!
I was wondering if it is possible already, or theoretically should be possible to use native LLVM WASM backend, or Emscripten to allow the app to use it's required native binaries?
As far as I understand, that should be possible to achieve and will allow to easily use already existing C# libraries such as LLVMSharp in the browser.
Thanks!

Hi,
you can work with reflection to use nativ Net Libraries.
I'm testing this functionality in one of my repos (https://github.com/Chtau/BlazorWebWinClient).
Currently im upgrading to 0.5 Blazor but the Version build with 0.4 can load NET 4.7 DLL x64.

@Chtau, as far as I can see, you are talking about loading and using .NET libraries, whereas I am talking about actually interacting with native libraries, such as LLVM, for example.

You don't mean "native" as in compiled x86 or x64 machine language do you? That would never be possible afaik.
Or do you mean invoking other WASM assemblies through interop? That would be wonderful.

I think I understand but just to clarify - so for example if someone got PDFium or FFMpeg or whatever to compile to WASM, you'd want to then be able to use native interop in C# to access that right?
Agreed. I think the Mono team might be working on that. It sounds like it's outside the scope of Blazor but I would definitely like to see that ability.

Native dependencies would need to be compiled to WebAssembly first at which point you could invoke them through JavaScript interop.
It might also be possible for us to enable calling directly into WebAssembly from .NET (which is already running on WebAssembly), but I'm not certain. @kumpera @SteveSandersonMS  thoughts on this?

It's theoretically possible, but it requires a lot of changes to the toolchain.
There's support for emulating shared libraries with emscripten (out C toolchain) but that comes with a significant perf & footprint cost.
Alternatively, we could link the native lib with the runtime and generate some glue code. For that to work, our toolchain needs to add such support.
It's on our radar, just not a priority. I suggest you voice your opinion in the issue so we can better understand how important it is to our users. https://github.com/mono/mono/issues/8007

Thanks @kumpera! Since this issue is being tracked in the Mono repo I'm going to close this one as external.

Anyways, is there a way to, for example, hack in a bunch of WASM compiled rust code without resorting to make them communicate through JS?

@skyne98 Not that I know of. It would involve creating an entire interop system, without there being any clear rules about what types of data can be exchanged.

@SteveSandersonMS, you can always exchange basic serializable data for the beginning

Hello everyone, I am sorry disturb your issue.
I see like you mean DLLImport works same to Webassembly right?
What does it see in DllImport? You mean native-library.js in [DLLImport("native-library")] or native to current operating system? with xml / config in web directory and DLLImport will check if you are working at Windows than web assembly will know your operating system and detect dll file, right?
Or I understand wrong? I am sorry my bad English.


KITE-1114: Kite CLI json-import HDFS temp file path not multiuser safe

I don't consider the failure in CDH4 relevant nor important - CDH4 has been EOLed long time ago.


update ics security patch

Description
Closes: #XXXX

Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...

[ ] included the correct type prefix in the PR title
[ ] added ! to the type prefix if API or client breaking change
[ ] targeted the correct branch (see PR Targeting)
[ ] provided a link to the relevant issue or specification
[ ] followed the guidelines for building modules
[ ] included the necessary unit and integration tests
[ ] added a changelog entry to CHANGELOG.md
[ ] included comments for documenting Go code
[ ] updated the relevant documentation or specification
[ ] reviewed "Files changed" and left comments if necessary
[ ] confirmed all CI checks have passed

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] confirmed the correct type prefix in the PR title
[ ] confirmed ! in the type prefix if API or client breaking change
[ ] confirmed all author checklist items have been addressed
[ ] reviewed state machine logic
[ ] reviewed API design and naming
[ ] reviewed documentation is accurate
[ ] reviewed tests and test coverage
[ ] manually tested (if applicable)

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@6ae7171). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #77   +/-   ##
=======================================
  Coverage        ?   54.19%
=======================================
  Files           ?       23
  Lines           ?     2144
  Branches        ?        0
=======================================
  Hits            ?     1162
  Misses          ?      914
  Partials        ?       68

Can you also bump the SDK to latest version?

Closing in favour of #78

opening this as we need to move fast


Problem with GridLayout after upgrade to 1.10.0

So I upgraded today to 1.10.0 and it seems that the GridLayout doesnt work as before.
After upgrading i get this:
 Exception kivy.uix.gridlayout.GridLayoutException: GridLayoutException('Too many children in GridLayout. Increase rows/cols!',) in 'kivy.properties.observable_list_dispatch' ignored  Exception kivy.uix.gridlayout.GridLayoutException: GridLayoutException('Too many children in GridLayout. Increase rows/cols!',) in 'kivy.properties.observable_list_dispatch' ignored  Exception kivy.uix.gridlayout.GridLayoutException: GridLayoutException('Too many children in GridLayout. Increase rows/cols!',) in 'kivy.properties.observable_list_dispatch' ignored  Exception kivy.uix.gridlayout.GridLayoutException: GridLayoutException('Too many children in GridLayout. Increase rows/cols!',) in 'kivy.properties.observable_list_dispatch' ignored  Exception kivy.uix.gridlayout.GridLayoutException: GridLayoutException('Too many children in GridLayout. Increase rows/cols!',) in 'kivy.properties.observable_list_dispatch' ignored
Since its a larger project I cant even seem which GridLayout is making the trouble, but after those warnings my program is crashing with:
   File "C:\Users\bohr_000\Dropbox\UlissesGrabber\GUI.py", line 1560, in <module>      MyApp().run()    File "C:\Program Files\Anaconda2\lib\site-packages\kivy\app.py", line 828, in run      runTouchApp()    File "C:\Program Files\Anaconda2\lib\site-packages\kivy\base.py", line 504, in runTouchApp      EventLoop.window.mainloop()    File "C:\Program Files\Anaconda2\lib\site-packages\kivy\core\window\window_sdl2.py", line 663, in mainloop      self._mainloop()    File "C:\Program Files\Anaconda2\lib\site-packages\kivy\core\window\window_sdl2.py", line 405, in _mainloop      EventLoop.idle()    File "C:\Program Files\Anaconda2\lib\site-packages\kivy\base.py", line 339, in idle      Clock.tick()    File "C:\Program Files\Anaconda2\lib\site-packages\kivy\clock.py", line 581, in tick      self._process_events()    File "kivy\_clock.pyx", line 367, in kivy._clock.CyClockBase._process_events (kivy\_clock.c:7700)    File "kivy\_clock.pyx", line 397, in kivy._clock.CyClockBase._process_events (kivy\_clock.c:7577)    File "kivy\_clock.pyx", line 395, in kivy._clock.CyClockBase._process_events (kivy\_clock.c:7498)    File "kivy\_clock.pyx", line 167, in kivy._clock.ClockEvent.tick (kivy\_clock.c:3490)    File "C:\Program Files\Anaconda2\lib\site-packages\kivy\uix\gridlayout.py", line 506, in do_layout      self._fill_rows_cols_sizes()    File "C:\Program Files\Anaconda2\lib\site-packages\kivy\uix\gridlayout.py", line 357, in _fill_rows_cols_sizes      rows_sh[row] = nmax(rows_sh[row], shh)  IndexError: list index out of range
I dont see why. The GridLayout is instanciated with either cols or rows not both and it worked before like a charm.

Got it was an attempt to overwrite the TabbedPanelStrip to get more than one row...


Bar should not disappear when dragging and moving mouse out of parent component

Thanks for reporting. I won't fix it, but would be glad to accept a PR for this.

#32


Cloudnative Ch1 9/12

This PR replaces earlier PR #14412 which has been closed.
Includes minor changes:
Table "Company" "Experience" is not right
WeChat has popped into 3rd column
In Header, the "Service Mesh" has to be replaced with "Service mesh" and "Front-End" with "Front-end"

Already talked to @robvet that I don't see any changes here.

Closing since there are no changes.


Trademark symbol “ ® “  is displayed in large size on the notification, but small size and was present above the text

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open mweb chrome and login with User A
Go to any chat with User B (Make sure to login with User B on android)
Type some text and select trademark symbol ( ® ) and (™) and then send it to User B
Notice that the (™) symbol has a small size on the notification. But if you send trademark symbol ®, it gets displayed in large size in accordance with the text

Expected Result:
All the trademark symbols should be of the same size on notification
Actual Result:
Describe what actually happened
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome

Version Number: 1.2.74-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/220151932-04cead30-f24a-45be-93ec-608b0f38fa95.mp4
https://user-images.githubusercontent.com/43996225/220151934-26215693-1c7b-4a4e-b6cd-2d9633fd77c8.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1675925115599779
View all open jobs on GitHub

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick!

@anmurali 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

Job added to Upwork: https://www.upwork.com/jobs/~013e7ff3809f66d5f5

Current assignee @anmurali is eligible for the External assigner, not assigning anyone new.

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External)

Triggered auto assignment to @francoisl (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Setup the label to create a job on Upwork

I don't think this is a bug. You can type ®™ to any text editor (note) on Android and trademark symbol will always be smaller. It is bigger on the chat because both registered and trademark symbol are emojis.

@bernhardoj it's just that \u00ae looks different in different fonts. It's supersripted in application default font ExpensifyNeue-Regular and it looks big in Arial for example

I think we can't consider this a bug because the size of the ® symbol depends on android system font settings. We could use <sup>®</sup> in html for making it superscript but it seems that airship API support only plain text for android push messages and this is an android system limitation. The best you can do is to change system font in android phone settings - using Samsung Sans on samsung android phone solves the issue. Another workaround could be to substitute ® with ᴿ, we could do it here:
https://github.com/Expensify/App/blob/4d05d7b4f0fac0adbc5a96190b9df3b6c5446706/android/app/src/main/java/com/expensify/chat/customairshipextender/CustomNotificationProvider.java#L170
but this doesn't seem a right thing to do.

@francoisl Any thoughts on the above?
We don't have a proper proposal yet to continue further or close this one as invalid!

It makes sense that different fonts would render the symbol differently, so yeah I agree we shouldn't consider this a bug.


First time running polkadot-deployer, UnhandledPromiseRejectionWarning; works afterward

DESCRIPTION
On my machine, the first time I try running polkadot-deployer create I get an UnhandledPromiseRejectionWarning (see below).  Additional creates (after the first time) seem to work fine.
REPRODUCTION

Be sure that polkadot-deployer was not yet installed
Install with npm i -g polkadot-deployer
polkadot-deployer create

EXPECTED BEHAVIOR

Polkadot deployed

OBSERVED BEHAVIOR

"UnhandledPromiseRejectionWarning" (see notes below for details)

NOTES
Output from my terminal..
(20040) $ polkadot-deployer create
Downloading component helm...
chmod: /Users/laboon/Library/Application: No such file or directory
chmod: Support/polkadot-deployer/components/helm: No such file or directory
Command execution failed with code: 1
(node:5074) UnhandledPromiseRejectionWarning: Error: 1
at ChildProcess.child.on (/Users/laboon/.nvm/versions/node/v10.7.0/lib/node_modules/polkadot-deployer/lib/cmd.js:37:18)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:599:12)
(node:5074) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5074) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[laboon@ekaterina ~/web3/polkadot-deployer]
(20042) $ polkadot-deployer list
No deployments found, try polkadot-deployer create
[laboon@ekaterina ~/web3/polkadot-deployer]
(20043) $ polkadot-deployer create
? Enter the new deployment name: meow
? Deployment type: local
? Number of Polkadot nodes (1-20): 4
Creating directory /Users/laboon/Library/Application Support/polkadot-deployer/deployments/meow...
Done
Creating directory /Users/laboon/Library/Application Support/polkadot-deployer/deployments/meow/keys...
Done
Creating directory /Users/laboon/Library/Application Support/polkadot-deployer/deployments/meow/values...
Done
Creating local cluster 'meow'...
Unable to find image 'bsycorp/kind:latest-1.13' locally
latest-1.13:
...

Thanks for reporting @laboon !! :) As we talked online yesterday, this was caused by the whitespaces in the path of the downloaded components, specifically in this case helm.
It should be fixed after the latest changes, you can check by removing /Users/laboon/Library/Application Support/polkadot-deployer/ (so that a complete initialization is required) and running polkadot-deployer create.
Can you please confirm and close this issue if all is ok? Thanks!

I've got a few meetings this morning but will try it out as soon as I can.

Still getting an error, albeit a different one
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈
Error: This command needs 1 argument: chart name
Command execution failed with code: 1
Could not install polkadot chart: 1
[laboon@ekaterina ~/web3/substrate-playground/rust-playground]
(20056) $ polkadot-deployer --version
0.5.5

Ok, there was still one more path with spaces on the same command call, 3 in total :smile: Already published v0.5.6 that fixes it, pls give it another try (hopefully this time no more errors of this kind).
Thanks a lot for your patience! :)

Looks like it is working now with 0.5.6!


SetVertexShaderConstant page fault in removeNaN when floatEmulation = True

Breaks vertexshader, vertexblend, dolphinvs unless you set floatEmulation to False

This may be only an incremental build issue

Yup, issue solved on full rebuild. Closing this for now.


SIGNATURE IN PDF

I can't view digital signature in the pdf!
I have enabled annotation but it doesn't work.
How can i solve it?

I also have this problem, @marcoBettiga  have you solved this problem?

I have also this problem ? Any solution for this ?

how do you guys add digital signature to pdfview?


No more reload of modified files

Until recently padrino reloaded changed models, controllers etc.
Right now (using rack 1.4.0 from git and padrino 0.10.5) it no longer works.
I am not sure since when that happened.

Seems a bug with rack 1.4.0, can you add in top of your gemfile gem 'rack',  '~>1.3.0' and tell us if it works?


Some file names are different

I noticed minor typos in the following file names:

https://nextjs.org/learn/dashboard-app/fetching-data#parallel-data-fetching

now
Ideal

/app/lib/data.js
/app/lib/data.ts

https://nextjs.org/learn/dashboard-app/improving-accessibility#:~:text=FormSchema as follows%3A-,/app/lib/action.ts,-const FormSchema %3D

now
Ideal

/app/lib/action.ts
/app/lib/actions.ts

Can I make fix PR?

Hello maintainers,
Would you please this issue to me??

Thank you! Fixing.


Change styled-components comments to match prettier

Hey,
is there a way to support Prettiers comment style in styled-components tagged template strings?
Prettier is actually formatting the styled-components comments to ${/* border-top: 4px; */ ''} while language-babel uses ${''/* border-top: 4px; */}.
I've opened an issue at https://github.com/prettier/prettier/issues/1589 and they said that they could move the empty string to the front but they wont remove the space. This would then look like ${'' /* border-top: 4px; */}. Is it possible that language-babel adds the ability uncomment both styles with the shortcuts?
It seems to me that atom only support one syntax so it would be great if both sides could meet in the middle :)

Atom only supports a single key binding for comments. In order to use another I'd have to program it.
I could make my code match Prettier's syntax. I guess people who have already commented some lines and want to uncomment after I change the code might be a bit annoyed. Also, I don't think it is as nice, as the Babel transform makes it look strange with the argument after the comment and the space stripped off. Makes it hard to read - something like
styled.div(_templateObject, /* color: inherit;
                            margin: auto;   */'');

I'd prefer ${'' /* border-top: 4px; */} as it at least looks better after transpilling.

I agree with you that people would be annoyed right after the change.
Adding the space would be totally sufficient so prettier could move the empty string to the front.
Thank you for considering it. (:

@k15a Just pushed a commit that adds the space. If prettier changes the format can you plese check this change against prettier? If it works I'll publish.

Thank you very much. I will report back to you once prettier changed the behaviour.

The changes at prettier landed on master and it's working in combination with the language-babel changes.

@k15a There appears to be some debate on the Prettier PR you did on whether this is a good idea. I'll refrain from publishing this change until it is resolved.

I'm really confused as to what the state of this is, but it is crucial to get this fixed for using babel and prettier together, which are both such amazing projects. What can be done to move this forward?

@MrLoh A couple of things. I was waiting on the outcome of https://github.com/prettier/prettier/pull/1713/ to see if that made any material changes to template comments and although prettier has the new form of commenting syntax but prettier-atom doesn't, as it is using an older master.
I will re-instate this change soon but I also need to make some changes to support styled-components V2.


implement preferences API methods

I implemented the Preferences API methods in order to accomplish the #262

Hello @G10xy
We have started to use PR templates. Would be great if you could start using this from the next PR on as well. Thank you very much. 🙂


Is switch on .runtimeType valid?

This code:
class  A {}

void main() {
  var x = new A();
  switch (x.runtimeType) {
    case A: print("hello");
  }
}

Is accepted by the analyzer, and runs on the VM and DDC with no errors.  Dart2js rejects it with the following error:
leafp-macbookpro:sdk leafp$ rundart.sh dart2js -o test.js ~/tmp/test.dart
../../../tmp/test.dart:6:10:
Error: 'case' expression type 'TypeImpl' overrides 'operator =='.
    case A: print("hello");
         ^
Error: Compilation failed.

Is this valid code and dart2js is buggy here, or is this invalid code that should be rejected statically or dynamically?
cc @sigmundch @lrhn @munificent

This has come up a few times in the past - @floitschG has a lot of additional context, @rakudrama had a proposal on how to fix this in dart2js.
See these older issues describing the underlying problem:
https://github.com/dart-lang/sdk/issues/17123
https://github.com/dart-lang/sdk/issues/17207
https://github.com/dart-lang/sdk/issues/21553
Note in particular discussions about canonicalization of generic types, and ideas about treating raw vs generic types differently in the dart2js implementation.

Closing in favor of https://github.com/dart-lang/sdk/issues/21553 .


Make storage async

This is a first cut at making the storage layer async in neptune-core.
I am making it a draft PR because I have a few remaining todos to polish things up:

[x] add sync and storage [1] benches from twenty-first, modified as needed (easy)
[ ] investigate removal of impl Mmr for  ArchivalMmr
[ ] investigate remaining runtime error(s).    (do they also occur on master?)
[x] rename crate::locks::sync to crate::locks::std.   (easy)
[ ] rebase and squash commits, and/or improve commit messages.

[1] storage benches put aside for now because they would require async support in divan which appears to be in progress, or else a re-write without divan.
Present status:

all tests and doctests pass.
fixed a runtime error: "In order to be transferred, a Block must have a non-None proof field."  This seems to have been introduced elsewhere, not due to async mods.
One node (of 3) hits this runtime error:

thread 'main' panicked at /home/danda/dev/neptune/neptune-core/src/models/state/wallet/wallet_state.rs:559:9:
assertion `left == right` failed: Mutator set in wallet-handler must agree with that from applied block

there is a warning:

"2024-03-20T02:35:03.002579345Z  WARN ThreadId(03) neptune_core::mine_loop: Received block is timestamped in the future; mining on future-timestamped block."

Regarding ArchivalMmr and the Mmr trait
Decoupling ArchivalMmr from the (non-async) Mmr trait seems complex.  That trait is used in a number of places, such as:
  MutatorSetKernel<MMR: Mmr<Hash>>
  MsMembershipProof::batch_update_from_addition()
  RemovalRecord::batch_update_from_addition()
  mutator_set::insert_mock_item()
  mutator_set::remove_mock_item()

MutatorSetKernel is the most entangled.  It is defined as:
    pub struct MutatorSetKernel<MMR: Mmr<Hash>> {
        pub aocl: MMR,
        pub swbf_inactive: MMR,
        pub swbf_active: ActiveWindow,
    }

It is instantiated in other locations as both ArchivalMmr (async) and MmrAccumulator (sync).  It has several complex methods, and is non-trivial.
Presently, I have ArchivalMmr implementing Mmr trait by spawning a new OS thread for each trait-method call which creates a new tokio runtime, which calls the ArchivalMmr async method that actually implements the functionality (and interacts with storage layer). Example:
    fn append(&mut self, new_leaf: Digest) -> MmrMembershipProof<H> {
        std::thread::scope(|s| {
            s.spawn(|| {
                let runtime = tokio::runtime::Runtime::new().unwrap();
                runtime.block_on(self.append_async(new_leaf))
            })
            .join()
            .unwrap()
        })
    }

This works, but seems quite inefficient.   Unfortunately, it's the only way I know of to call an async method from a sync method already executing in an async runtime.
It may be adequate for merging this PR, and then I can optimize in a follow-up.
Optimizing: Getting rid of the thread::spawn()
Brainstorming approaches.

The (obvious?) approach is to make a new MmrAsync trait that MmrAccumulator also uses.   That should work and might be the best solution, but it forces a lot of code to become async that isn't presently, and doesn't really need to be.   It just becomes forced into it because of implementing or using the Mmr trait.

Do not use any Mmr trait and keep MmrAccumulator sync.  This would require that MutatorSetKernel can somehow accomodate both sync and async. It could mean adding a MutatorSetKernelAsync that dupicates a lot of logic.   Or it could mean that we define it something like:

    pub enum MmrType {
        ArchivalMmr,
        MmrAccumulator,
    }

    pub struct MutatorSetKernel {
        pub aocl: MmrType,
        pub swbf_inactive: MmrType,
        pub swbf_active: ActiveWindow,
    }

The difficulty here is that all MutatorSetKernel methods must use a ton of match statements like:
   match self.aocl {
       MmrType::ArchivalMmr(m) => m.count_leaves().await,
       MmrType::MmrAccumulator(m) => m.count_leaves(),
   }

This is unwieldy.   (though probably could be made less ugly with a macro)

Both approaches 1 and 2 require MutatorSetKernel to become async, which means that anything using it must also be async.  Approach 2 allows MmrAccumulator to remain sync, is the primary advantage, at cost of making MutatorSetKernel more complex.

A final approach I considered would impl ArchivalMmr with a Vec instead of a StorageVec.  So it would not be database backed, but would instead load all data from DB at creation, store pending writes, and persist back on request.   This should allow ArchivalMmr trait methods to remain sync.  Async methods would exist for loading and persisting data.

The drawback is that all data must be loaded up-front and remain in mem.  I'm unsure of how much data we are talking about, but my guess is that it may be huge eventually, and not possible to load/store all of it in RAM.
Specifically, ArchivalMmr is used for MutatorSetKernel::aocl and MutatorSetKernel::swbf_inactive fields.

All this considered, approach 1 seems to me the most straight-forward and the one I intend to pursue.

Ok, I've made a branch with approach #2 (async Mmr trait) that builds cleanly, though not tests yet.
ArchivalMmr no longer needs to spawn a thread plus runtime for each trait method invocation.  So that's a win.
I do have to spawn a thread in one other place though: RemovalRecordsIntegrity::rust_shadow().   This is in the impl CompiledProgram for RemovalRecordsIntegrity trait impl, and the trait is defined in tasm-lib and has default method impls, so that fn cannot be made async easily.
In order to get the program to build, I had to comment out several impls of tasm-lib traits.   These seem mainly related to testing, and I think they really belong within test module anyway.   I'm not certain they can be made to build again unless the tasm traits are made async as well.
my next task will be to get the tests building again.

tests are building cleanly and passing in branch make_storage_and_mmr_trait_async.
except for some proptests I had to comment-out for now because proptest crate/macro is not async compatible.  I see somebody created a proptest_async crate recently (yesterday?) but it only works with async_std, not tokio yet.
The thread spawn in RemovalRecordsIntegrity::rust_shadow() remains.   I don't know how often that fn will be called, or what impact it might have on performance, if any.  For now I don't have a better solution, but it may be possible to refactor it out for those who understand tasm-lib well.

This error
thread 'main' panicked at /home/danda/dev/neptune/neptune-core/src/models/state/wallet/wallet_state.rs:559:9:
assertion `left == right` failed: Mutator set in wallet-handler must agree with that from applied block

indicates that somewhere the mutator set removal records or membership proofs are being updated incorrectly. The following propositions are probably true (quantified over unknown details):

The error was introduced as a side-effect of simplifying the Block struct, specifically the Body part. Previously it held two mutator set accumulators, one before and one after applying the additions and removals given by the transaction. This is redundant, but also makes keeping track of things easier.
The error is caused by incorrectly updating removal records or membership proofs with the update contained in a block. The new block structure makes this update step rather more complex.
It is possible to reduce this error to a failing unit test, by which I mean a test function that does not require running multiple interacting nodes or even threads.

closing in favor of #124.


Pin Setup tools

Thanks for the pull request, @aht007! I've created OSPR-6347 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.
Feel free to add as much of the following information to the ticket as you can:

supporting documentation
Open edX discussion forum threads
timeline information ("this must be merged by XX date", and why that is)
partner information ("this is a course on edx.org")
any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.
Please let us know once your PR is ready for our review and all tests are green.
:warning: We can't start reviewing your pull request until you've submitted a     signed contributor agreement     or indicated your institutional affiliation. Please see the CONTRIBUTING     file for more information.     If you've signed an agreement in the past, you may need to re-sign.  See     The New Home of the Open edX Codebase     for details.

Although this pull request is already merged, I've created OSPR-6349 so that we can track it in Jira.
There is nothing you have to do. No action is needed from your side.  Thanks again for your contribution.

I'm trying to understand why this pin is here.  There's no reason given in the PR, the commit, or the file.  This makes it difficult to decide when to update the pin. @iamsobanjaved @aht007 @mraarif

@iamsobanjaved @aht007 can you help @nedbat understand

@nedbat setuptools version 60.0 caused issues in several services' pipeline. The slack conversation around the issue has been deleted now but this github issue from setuptools repo contains information about the problem that setuptools version 60 caused. I will go ahead and create a PR to add description with the pin.


number & { __brand } is not working with the comparison operator in nightly build

declare var x: number & { __brand: any };
x > 0 // <-- [ts] Operator '>' cannot be applied to types 'number & { __brand: any; }' and '0'.

The error first appeared in a63a0d89817dec90d06fd233b2a9ef11699ce442.

Hey Aleksey,
This ties into an ongoing discussion about what we think about the use/addition of nominal types in our type system. There is a long list of issues related to nominal types.
It looks like this feature is actually working as designed, though the behavior is admittedly a bit counter-intuitive at first glance. Based on the recent addition of the comparability relation (issue #5517), specifically here, x isn't comparable to '0' because '0' is a numeric literal, and thus a subtype of 'number'. Here are two workarounds (inspired by your comment here :) ):
type BrandedNum = number & { __numberBrand: any };

declare var x : BrandedNum;
x > 0; // error: 0 is of numeric literal '0', a subtype of number
x > <number>0; // okay
x > <BrandedNum>0; // okay, in my opinion the clearest

In fact, this should be a general solution for dealing with "nominal typing" via brands: upcasting the other argument to a comparison operation to that of the two types' common ancestor will make the comparison pass our type check.

interesting, i will consider that


python312Packages.rns: 0.8.0 -> 0.8.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.rns is: Cryptography-based networking stack for wide-area networks
meta.homepage for python312Packages.rns is: https://github.com/markqvist/Reticulum
meta.changelog for python312Packages.rns is: https://github.com/markqvist/Reticulum/releases/tag/0.8.1
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.8.1 with grep in /nix/store/ly4srpga9f2hb11p3cy3y5yxjjff7v9y-python3.12-rns-0.8.1
found 0.8.1 in filename of file in /nix/store/ly4srpga9f2hb11p3cy3y5yxjjff7v9y-python3.12-rns-0.8.1

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

7 total rebuild path(s)

7 package rebuild(s)

First fifty rebuilds by attrpath

python311Packages.lxmf
python311Packages.nomadnet
python311Packages.rns
python312Packages.lxmf
python312Packages.nomadnet
python312Packages.rns

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/0f49f4a3841ca5712c136c2c7878969ddc5b1e1a#python312Packages.rns

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/ly4srpga9f2hb11p3cy3y5yxjjff7v9y-python3.12-rns-0.8.1
ls -la /nix/store/ly4srpga9f2hb11p3cy3y5yxjjff7v9y-python3.12-rns-0.8.1/bin

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

12 packages built:

python311Packages.lxmf
python311Packages.lxmf.dist
python311Packages.nomadnet
python311Packages.nomadnet.dist
python311Packages.rns
python311Packages.rns.dist
python312Packages.lxmf
python312Packages.lxmf.dist
python312Packages.nomadnet
python312Packages.nomadnet.dist
python312Packages.rns
python312Packages.rns.dist

Maintainer pings
cc @fabaff for testing.

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

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

Superseded by #345870


trigger a new build

The related issue: https://github.com/stolostron/backlog/issues/22153
Signed-off-by: Yang Le<EMAIL_ADDRESS>

/cherry-pick backplane-2.0

/lgtm


How to setup Rendora correctly? Rendora does not return api call results

I have set up a server for my vue project, I installed caddy to serve my files up and running and its working, according to rendora docs I have installed and started chrome headless browser and have rendora up and running too with this config options:
{
  "backend": {
    "url": "http://<IP_ADDRESS>:80"
  },
  "target": {
    "url": "https://mywebsite.com"
  },
  "headless": {
    "waitAfterDOMLoad": 0,
    "internal": {
      "url": "http://<IP_ADDRESS>:9222"
    }
  },
  "output": {
    "minify": true
  },
  "filters": {
    "userAgent": {
      "defaultPolicy": "whitelist"
    }
  }
}

This is my Caddy config file:
https://mywebsite.com {

  root /opt/www.mywebsite/dist/

  # vue-router mode is 'history', so all urls should resolve to root.
  rewrite {
      regexp .*
      to {path} /
  }

  log {
      rotate_size 50   # Rotate after 50 MB
  }

}

when i check my netstat it looks like everything is ok but when i curl my website from my local terminal even my defaultPolicy is whitelist it doesn't return full html so i guess there is something wrong.
Is config files folder important? it is in the www.mywebsite folder with the dist/ folder. Is there a way besides curl-ing from my local to check rendora?
If it's not working what am i doing wrong?

So currently I have made something different and would like to ask if there is any better solution to my problem.

I have a caddy server running on the front that listens :443 and :80 ports (because i couldn't configure rendora to listen those ports) with the setup to proxy localhost:3001 if user-agent is bot else directly give html and bundled js files from folder.

Rendora runs with the config backend and target links are the second caddy running on a :8000 port that serves same static files with the first caddy.

Second caddy server running on the back at :8000 port

So i have:
                                       ======> dist/index.html
   CADDY:443 ======
                                      ======> RENDORA:3001 ========> CADDY:8000 ====> dist/index.html

I solved my empty product results issue:
My api calls are taking too much to display on DOM so rendora can't return products data because waitAfterDOMLoad was default 0ms. So you need to give some time to headless chrome to finish api calls and get data on the DOM.
Thanks for Rendora, Great tool.


Account->Password update fails

In Account menu, it doesn't update the Password.

Cannot reproduce:


Add External SNAT parameter

Thanks for the effort, can you add it in the docs as an example?

Added to the docs


16-bit PNG support

add 16bit png support

I think ideally there should be an option to be able to determine what the destination format is, sometimes I might want half float, full float or integer format. I did initially attempt to head down that integer path first but got stuck, so I think that is a task for another day!

I don't see why it would be useful to have anything in half-precision format if single-precision is already very well supported in programming languages, FPUs, GPUs, and the Godot codebase's color and image math. Wouldn't efficiencies gained by storing the number in less digits be negated by the conversion between half and single precision?

@aaronfranke memory usage and GPU performance.

@reduz any chance to get this reviewed and merged in soonish?

As-is, this won't be merged. The main problem is, as I explained before, that a lot of software will save to 16bits without the user realizing (I remember having this problem in the past). It will just result in images erroring on import, or not acting as users expect them. This probably needs some re-thinking and redesign based on that.

Should we just remove the loading from PNG but keep the Image format and texture uploading?

Closing this


country tags suddenly no longer available at z0-z3

I think my stylesheet did not change but suddenly countrynames no longer appear at z0 - z3. They do appear at z4 and higher. Something changed on you side!?

Sorry about that, will check Monday.

On Sep 27, 2015, at 05:16, musicformellons<EMAIL_ADDRESS>wrote:
I think my stylesheet did not change but suddenly countrynames no longer appear at z0 - z3. They do appear at z4 and higher. Something changed on you side!?
―
Reply to this email directly or view it on GitHub.

We were incorrectly double packing the place layer with features from OSM and Natural Earth, leading to duplicate populated places (city) points. We solved that in a825aa6eae8092a3a43d3d0fea3b01ee312dc2d2 by transitioning from Natural Earth to OSM at zoom 9 (instead of unioning them always). But that's created a problem because we're now missing  country and state points in the places layer from zoom(0-9), a regression.

I see, thanks.

Fixed in master, waiting to send to dev machine. Will likely show up in prod over the weekend.

Nevada's back:


Update RDF Guide with relevant term additions

After the current sprint of term changes reaches a conclusion and before creating a new release, make sure to review the RDF Guide for any terms that need to be added or changed in the dwciri: namespace. One example is dwciri:measurementValue (see Issue #175).

I have gone through each property proposal in the https://github.com/tdwg/dwc/milestone/14 milestone and annotated it with a comment indicating the probable impact on the dwciri: terms and proposed metadata values for IRI analogs. When the process is completed, we can go back through them and update the RDF guide as necessary.


Revise env vars

This pull request revises the instantiation of a number of env vars, so that they are configurable from the environment.

Codecov Report

Merging #11 into master will increase coverage by 0.16%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
+ Coverage   45.76%   45.93%   +0.16%
==========================================
  Files           4        4
  Lines         319      320       +1
==========================================
+ Hits          146      147       +1
  Misses        173      173

Impacted Files
Coverage Δ

app/publisher.py
27.2% <100%> (+0.58%)
: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 6f0e48b...1437dff. Read the comment docs.


Continous wavelet transform?

There is an experimental branch using cwt:
https://bitbucket.org/nigma/pywt/src/89b218002904
We should fix it and merge it. It is not on the Github repository, though.

I'd also be very interested in having CWT functionality available in pywt.
In Gammapy we had this as a contribution:
https://github.com/gammapy/gammapy/blob/master/gammapy/detect/cwt.py#L50
I know very little about wavelets, but I think the only application-specific things like what are significant coefficients could be factored out, and a more generic CWT function or class could be provided to make the implementation of such use cases easier?

CWT added by #172

Is the CWT functionality mentioned in the docs?
I can't find it:
http://pywavelets.readthedocs.io/en/latest/search.html?q=cwt&check_keywords=yes&area=default

Forgot to say: thank you very much for adding it!

@cdeil that search for cwt should give you some results in the docs now.

@rgommers Thanks!


[BUG] QueryExpression w/ late field (and null safety) failed

How to issue a query expression (filtering) on a "late" field ?
On this data:
@Table(name: "data")
class _Data {
  @primaryKey
   late int id;
  @Column()
   late String key;
  @Column(nullable: true)
   late String something_else;
}

this query:
var query = Query<Data>(context)
    ..where((p) => p.key).equalTo(the_key_i_want);
return await query.fetch();

yields to:
type 'Null' is not a subtype of type 'String' #0
due to the fact that p.key is null at the time of the request.
I tried to set key column as nullable.
It is worth to mention that inserting data and fetching w/o query expression are OK.
Thanks for any input !

Found the solution after digging a little bit further
Use nullable fields instead of late for ORM fields (int, String, DateTime, double ...).
And use late for relations (one to one, one to many ..)


⚠ Bofrost.nl has degraded performance

In f7a950a, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 2979 ms

Resolved: Bofrost.nl performance has improved in fb58e51.


Addressed the issue with /tmp on a different partition

Reference point: https://github.com/balena/python-pqueue/issues/1

A new tempdir parameter was included in the Queue constructor.


Postgres schema errors in log

We are deploying a local graph node.
We are running postgres 13.1. We don't see any postgres version recommendations in the documentation.
We see errors like below after deploying the uniswap subgraph.
Feb 07 16:50:30.334 ERRO call cache get error, error: missing FROM-clause entry for table "eth_call_meta", runtime_host: 1/1, block_hash: 0x9c8330580e8a2c8841d244ac455cd57205b2a76106bef1d5a85c2a0d4364cf4e, block_number: 3481503, subgraph_id: QmaeD5E3U7uqg3DR61ZgzpzPoXwxPh16UU4SL71SrnjWa2, component: SubgraphInstanceManager
Feb 07 16:50:30.342 ERRO call cache set error, error: ON CONFLICT DO UPDATE requires inference specification or constraint name, runtime_host: 1/1, block_hash: 0x9c8330580e8a2c8841d244ac455cd57205b2a76106bef1d5a85c2a0d4364cf4e, block_number: 3481503, subgraph_id: QmaeD5E3U7uqg3DR61ZgzpzPoXwxPh16UU4SL71SrnjWa2, component: SubgraphInstanceManager
Feb 07 16:50:30.346 ERRO call cache get error, error: missing FROM-clause entry for table "eth_call_meta", runtime_host: 1/1, block_hash: 0x9c8330580e8a2c8841d244ac455cd57205b2a76106bef1d5a85c2a0d4364cf4e, block_number: 3481503, subgraph_id: QmaeD5E3U7uqg3DR61ZgzpzPoXwxPh16UU4SL71SrnjWa2, component: SubgraphInstanceManager

Any suggestions for further root cause analysis?

We are running GCP Cloud SQL instances.
Just tried Postgres 11 and got the same thing.

It's not an issue with the PG version - we run PG 13 in production w/o issue. You stumbled into a bug in how we generate a certain SQL query that was recently introduced. To get around that you can either go back to an official release, or apply PR #2169 to your checkout and try with that.

thanks!


Expected date to be out of Beta

When is the expected date for the official release with production install in place?

Hi, I'm afraid I don't have a date yet, it will be influenced by feedback from the beta release among other things.

Can you narrow it down to possibly a monthly quarter?  Eg second quarter of
2023
It would make more sense to have a rough target for developers and not just
and open ended Beta.
On Wed, Aug 31, 2022 at 11:14 AM davidplowman @.***>
wrote:

Hi, I'm afraid I don't have a date yet, it will be influenced by feedback
from the beta release among other things.
—
Reply to this email directly, view it on GitHub
https://github.com/raspberrypi/picamera2/issues/291#issuecomment-1233072928,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABNPKZEF3PDKSEBAJTUYQUDV35ZGTANCNFSM6AAAAAAQBNOCPE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
YouTube Channel at https://www.youtube.com/user/pageaucp
http://www.youtube.com/user/pageaucp
GitHub Repository at https://github.com/pageauc

Hi again, Raspberry Pi doesn't generally give too many details about future plans but I agree that something would be helpful here, so I'll see what I can do. Perhaps once the beta release has been out there with folks for a little while we'll start to get some idea how things are going and I might be able to give some "guidance".

Thanks.  Appreciate it
On Thu, Sep 1, 2022 at 3:55 AM davidplowman @.***>
wrote:

Hi again, Raspberry Pi doesn't generally give too many details about
future plans but I agree that something would be helpful here, so I'll see
what I can do. Perhaps once the beta release has been out there with folks
for a little while we'll start to get some idea how things are going and I
might be able to give some "guidance".
—
Reply to this email directly, view it on GitHub
https://github.com/raspberrypi/picamera2/issues/291#issuecomment-1233890812,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABNPKZB7PLUBIVC7LHGZHKLV4BOOXANCNFSM6AAAAAAQBNOCPE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
YouTube Channel at https://www.youtube.com/user/pageaucp
http://www.youtube.com/user/pageaucp
GitHub Repository at https://github.com/pageauc

Also, do you have updates on this? Thanks for this great platform!

Sorry, I don't really have anything as yet. Mostly I think I've been trouble-shooting installation issues with people so far, I'm keen to get beyond that and find what problems there are in real world usage.


[5.6] Require all migrations files before checking if a migration exists

Apparently laravel doesn't throw an exception if a duplicate of migration table is made.
At first I realized that its becuase the database/migrations  class map was not being autoloaded and created a PR here https://github.com/laravel/laravel/pull/4340
But @brunogaspar mentioned that the feature was removed here https://github.com/laravel/laravel/pull/4340
This PR requires all the migrations files before checking if a migration class exists.
May be there are better ways than this.
Let  me know

Thanks for the PR. Please revert all your phpdoc changes though.


One-char typo fix to CONTRIBUTING.md

The link to pkgbuild was borked as its markdown definition was (accidentally, I presume) set as okgbuild.

Thanks!


chore: fix Windows CI

Nope, msys2 is just broken right now https://github.com/msys2/MSYS2-packages/issues/1960


Dynamic recovery

Originally prompted by an issue in looper by @rcorces: epigen/looper#140

Solution: we could have a new mode called 'dynamic recover' mode. This runs in normal mode by default, but if a 'recover' flag is set, THEN it runs in recover mode. In other words, if a file lock is set, it checks for a recover flag, and then restarts only if a recover flag exists. If a dynamic recover job is pre-empted (ie it fails via a sigkill or a sigterm, not via a job failure), then it sets a recover flag. When a pre-empted job is restarted, it will recover; when a job that failed naturally is restarted, it will not. A dual-submission still succeeds.

Wow that's pretty sweet. On Sherlock (or any cluster that can pre-empt jobs) you would just always run in dynamic recover mode. Thoughts? This would be pretty easy to implement actually, and would fit sherlock's system perfectly. everything would be handled automatically.

This would be awesome.
On Thu, Jul 13, 2017 at 7:20 AM, Nathan Sheffield<EMAIL_ADDRESS>wrote:

Originally prompted by an issue in looper by @rcorces
https://github.com/rcorces: epigen/looper#140
https://github.com/epigen/looper/issues/140
Solution: we could have a new mode called 'dynamic recover' mode. This
runs in normal mode by default, but if a 'recover' flag is set, THEN it
runs in recover mode. In other words, if a file lock is set, it checks for
a recover flag, and then restarts only if a recover flag exists. If a
dynamic recover job is pre-empted (ie it fails via a sigkill or a sigterm,
not via a job failure), then it sets a recover flag. When a pre-empted job
is restarted, it will recover; when a job that failed naturally is
restarted, it will not. A dual-submission still succeeds.
Wow that's pretty sweet. On Sherlock (or any cluster that can pre-empt
jobs) you would just always run in dynamic recover mode. Thoughts? This
would be pretty easy to implement actually, and would fit sherlock's system
perfectly. everything would be handled automatically.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/epigen/pypiper/issues/37, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJ3ShrL1ox3XJr_2VPW3EEqvsc4ulrFrks5sNiefgaJpZM4OXD-Q
.

It should work now, give it a try.


[Web] fail to export image from canvas that drawed Image

Steps to Reproduce
run this at web
import 'dart:ui' as ui;

Uint8List createImage(){
    final recorder = new ui.PictureRecorder();
    final canvas = new Canvas(
        recorder,
        new Rect.fromPoints(
            new Offset(0.0, 0.0), new Offset(400, 400)));

    canvas.drawImage(await decodeImageFromList((await rootBundle.load("sample.png")).buffer.asUint8List()), Offset(0,0), Paint());

    final picture = recorder.endRecording();

    print("start to Image");
    final img = await picture.toImage(canvasSize.width.toInt(), canvasSize.height.toInt());
    print("end to Image");
    final pngBytes = await img.toByteData(format: ImageByteFormat.png);
    return Uint8List.view(pngBytes.buffer);
}

Expected results:
funtion will be success and return Uint8List Image
Actual results:
final img = await picture.toImage(canvasSize.width.toInt(), canvasSize.height.toInt());
will be crashed
output
start to Image
Error: Expected a value of type 'String', but got one of type 'TypeErrorImpl'
    at Object.throw_ [as throw] (http://localhost:5000/dart_sdk.js:4339:11)
    at Object.castError (http://localhost:5000/dart_sdk.js:4310:15)
    at Object.cast [as as] (http://localhost:5000/dart_sdk.js:4626:17)
    at dart.LegacyType.new.as (http://localhost:5000/dart_sdk.js:6195:60)
    at http://localhost:5000/packages/mangaplotter/main.dart.lib.js:685:36
    at Object._rootRunBinary (http://localhost:5000/dart_sdk.js:38007:14)
    at _RootZone.runBinary (http://localhost:5000/dart_sdk.js:37539:20)
    at http://localhost:5000/dart_sdk.js:38144:20
    at async._CustomZone.new.handleUncaughtError (http://localhost:5000/dart_sdk.js:37134:14)
    at Function._propagateToListeners (http://localhost:5000/dart_sdk.js:32992:30)
    at _Future.new.[_completeError] (http://localhost:5000/dart_sdk.js:32943:23)
    at http://localhost:5000/dart_sdk.js:32981:31
    at _rootRun (http://localhost:5000/dart_sdk.js:37979:14)
    at async._CustomZone.new.run (http://localhost:5000/dart_sdk.js:37149:14)
    at async._CustomZone.new.runGuarded (http://localhost:5000/dart_sdk.js:37049:14)
    at async._AsyncCallbackEntry.new.callback (http://localhost:5000/dart_sdk.js:37103:33)
    at Object._microtaskLoop (http://localhost:5000/dart_sdk.js:37794:13)
    at _startMicrotaskLoop (http://localhost:5000/dart_sdk.js:37800:13)
    at http://localhost:5000/dart_sdk.js:33309:9

$ flutter doctor -v
[√] Flutter (Channel beta, 1.23.0-18.1.pre, on Microsoft Windows [Version 10.0.18363.1198], locale ja-JP)
    • Flutter version 1.23.0-18.1.pre at C:\src\flutter
    • Framework revision 198df796aa (4 weeks ago), 2020-10-15 12:04:33 -0700
    • Engine revision 1d12d82d9c
    • Dart version 2.11.0 (build 2.11.0-213.1.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at C:\Users\hatadev\AppData\Local\Android\sdk
    • Platform android-30, build-tools 29.0.1
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[√] VS Code (version 1.51.1)
    • VS Code at C:\Users\hatadev\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.16.0

[√] Connected device (3 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 86.0.4240.193
    • Edge (web)       • edge       • web-javascript • Microsoft Edge 86.0.622.63

• No issues found!

@hatano0x06
There are below similar issues that describes your case:
https://github.com/flutter/flutter/issues/42767
https://github.com/flutter/flutter/issues/49857
See this original issue that was closed in favor of above issues.
Closing this as duplicate.


wasi-sdk-9 requires libtinfo.so.5

On Linux, version 9 of wasi-sdk seems to have a new dependency:
$ clang
clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

The current Ubuntu only ships with libtinfo.so.6.

And Xenial is old enough to ship with libtinfo.so.5 but clang isn't usable either:
clang: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by clang)

Unfortunately, we can't ship universal Linux binaries.
Maybe wasi-sdk-9.0-linux.tar.gz should be renamed to wasi-sdk-9.0-ubuntu18.04.tar.gz in order to clarify its requirements?

I built the release on Ubuntu 18.04. I think the right thing to do is rename it for the moment. If we can make it compatible with more places by building it on 16.04, I will upload that one as well.

Since we build using a docker image, switching should be trivial.  It looks like we currently build against debian:stretch (unless I'm misunderstanding @pchickey it should not be relevant which version of linux you were running if you used the docker_build.sh script).
Hopefully we can find a way to build a single release that works on all modern linux distros without having to create multiple archives.
Perhaps we can create add some minimal testing to the docker_build.sh script that verifies the executables can run on a reasonable set of modern distros.

@jedisct1 when you say the current Ubuntu only ships libtinfo.so.6 which version are you referring too specifically?

when you say the current Ubuntu only ships libtinfo.so.6 which version are you referring too specifically?

Ubuntu Server 19.10

I built it locally on my machine, not using the docker file, because I goofed. Will do a docker build now based on stretch, which should be more compatible.

OK, lets see if that fixes the issue at hand.
I still think it might be nice to run basic tests on a handful of distros as part of docker_build.sh.   I'll open a bug for that.

Arch Linux also ships with libtinfo.so.6.

It looks like when we build against our docker image there is no dependency on tinfo at all.
$ ldd wasi-sdk-9.1g6cdd100d8753/bin/clang
	linux-vdso.so.1 (0x00007ffef133b000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3c41410000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3c41405000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3c41400000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3c41227000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3c410e2000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3c410c8000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3c40f06000)

So hopefully this is issue will go away once #118 lands and we publish a new version

I believe this is resolved with https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-10


Locust load testing report discrepancy in showing the numbers

I have locust set-up to test my azure function app exposed as an HTTP trigger function, I am doing load testing of the function app with 500 users with rate of 50 users per seconds and I am running load test for 2-minutes, The max response time stats the load test taken showing as 18 seconds (18000 ms), however when I am looking at the azure app insights request duration it showing for function app to respond is max of 500ms, If any one can explain why and how locust showing its 18 seconds when realistically its in ms .

Locust has experienced these response times, most likely just as a real user would.
Probably azure is doing some kind of throttling.
I’d drastically lower the spawn rate and increase how long time you run the test for, to see if that makes a difference.
Unless you can prove that locust is at fault, you should ask this type of questions on slack (or maybe stackoverflow). And maybe check the FAQ on the wiki.

same


Mypy plugin: Add implicit defaults for Field with no default argument

Closes #5190

please review (I think we should merge this)


build: add cmake wheel build system

As it's always the case with cmake, there is probably a better, less verbose way of achieving this, but nonetheless I think this is quite short and easy to maintain.
setup.py and pyproject.toml are basically stub files and we only have to maintain CMakeLists.txt.
@awvwgk Let me know what you think about this cmake attempt vs the meson build. If we decide to move forward with this I would have to do some polishing of the pypi classifiers and in more generally the fields in setup as well as add back the README.md I deleted.
cc @certik @milancurcic @LKedward
Any thoughts?

Use cmake and scikit-build to:

Fetch fpm sources and its dependencies
Link to OpenMP
Compile into an executable
Package into a wheel

Building a wheel
python3 setup.py bdist_wheel

TODO:

[ ] Get the correct Licenses, Readmes, Long descriptions etc.
[ ] Adjust the cibuildwheels pipeline

This does not seem to be ready yet, since the Windows CI is failing.

Yeah, I would have to fix the CI pipeline. I posted this so that we could decide whether we want cmake or meson to be used as the backend. Assuming the CI gets fixed, are you happy with this PR replacing meson?

Personally, I don't see why there would be an advantage of using CMake over meson here, given that the actual build files are not that much different. I would like to avoid using CMake if there is a better option around, as it has a much steeper learning curve compared to other build systems.

The advantages over meson I could think of are:

Less verbose and single file config file
Wider adoption and integration than meson
Easier updating strategy for fpm releases

As for the l learning curve, given that it will be just us maintaining this pipeline I'm not sure it matters. That aside there shouldn't be any maintenance for the CMakeLists.txt file. We can pass the git tags for fpm, mcli2 and tomlf via cmake options in setup.py.
If we stick with meson, do you think we could decrease the number/size of the conf files? I am particularly not a fun or the explicit list of sources since it requires manual editing every time we add a source to the fpm repo.

Does it make sense to just skip the OSX/Arm64 wheel and upload an sdist instead? I just checked the default archive and it installs cleanly.
❯ pip install https://github.com/awvwgk/fpm-on-wheels/archive/refs/heads/build/cmake.zip
Collecting https://github.com/awvwgk/fpm-on-wheels/archive/refs/heads/build/cmake.zip
  Downloading https://github.com/awvwgk/fpm-on-wheels/archive/refs/heads/build/cmake.zip
     - 4.2 kB 51.6 kB/s 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
❯ python -m fpm --version
Version:     0.7.0, alpha
Program:     fpm(1)
Description: A Fortran package manager and build system
Home Page:   https://github.com/fortran-lang/fpm
License:     MIT
OS Type:     Linux

Also, can we reduce the number of built wheels? The correct tag is py3-none-<arch>, there shouldn't be a mention of the Python ABI in the tag.

Does it make sense to just skip the OSX/Arm64 wheel and upload an sdist instead? I just checked the default archive and it installs cleanly.

The thought has crossed my mind, especially since I've been trying to debug this failure on and off for a couple of weeks now. I just thought that this is a great chance for us to figure out why the cross-compiled macos arm64 builds are failing on the CI. That way we can point others from Fortran-lang to this repo to package their Fortran sources for distribution via PyPi, if they so wish.

Also, can we reduce the number of built wheels? The correct tag is py3-none-, there shouldn't be a mention of the Python ABI in the tag.

In principle I agree. I am just not sure we can generate all edge cases like ffpm-0.7.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl, or the PyPy wheels.

My experience with scikit-build + cmake so far was that it is very difficult to get packages to cleanly build in any MSYS2 terminal.

FYI I figured out why that is. On a Windows GitHub runner using CMake with Ninja overrides the CC, CXX and CMAKE_C_COMPILER, CMAKE_CXX_COMPILER variables to force-use the Windows C and C++ compilers (and runtime libraries). No idea why they would force something like this, but yeah, 20 attempts later we now know. In theory one could do hacky things with the PATH on Windows, but I simply chose to use MSYS Makefiles instead.
PS I asked on the cibuildwheel/Discussions, for some assistance with the arm build and the pythonless wheels, see https://github.com/pypa/cibuildwheel/discussions/1445

In principle I agree. I am just not sure we can generate all edge cases like ffpm-0.7.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl, or the PyPy wheels.

This is a limitation of scikit-build as well as meson-python, the ABI tag generated is incorrect. You can safely rename the wheel to fpm-0.7.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl and cover all available Python ABIs for Linux/i686, because we just repackage a binary and don't compile against any Python ABI. This will safe us some trouble with building for all available Python versions.

This is a limitation of scikit-build as well as meson-python, the ABI tag generated is incorrect. You can safely rename the wheel

Nice, I didn't know that. Do we care to produce wheels for PyPy too? I am inclined to say yes although I am not sure if the cpython and pypy wills are any different in our case.

Nice, I didn't know that. Do we care to produce wheels for PyPy too? I am inclined to say yes although I am not sure if the cpython and pypy wills are any different in our case.

Using py3-none-<arch> is compatible with PyPy already as well as with any other Python implementation around (give it a try, you can get PyPy from conda-forge and install the renamed wheel in an environment).

Looks good to me now.

I still have to do the TODO bullet points on the description.

Now that we figured out how to do the arm64 wheels for macos do you want to move this under fortran-lang and maintain in there?


Relax requirements for some params

Fixes #27 and #29

Changes Unknown when pulling f7d54a570b66224d246b4469a5ae456359164127 on gmile:set-default-settings-for-client into ** on Nebo15:master**.

Coverage remained the same at 77.215% when pulling 9533e68f0d08ab4bdca1d282e584b19c9834f876 on gmile:set-default-settings-for-client into<PHONE_NUMBER>f4c0c9597fdfa478a0e9e37f0293cd on Nebo15:master.


Check boxes not checked. do not match model

Hi,  Sorry to bother you again.  I think I have two plunkers that explain what I think is a problem.
The first plunker demonstrates that I can submit whole JSON objects in my formdata:
http://embed.plnkr.co/wd87StROz8Yi5dUq3Nt1/
If you could please try this plunker out by filling out some form data and clicking the add button.
AN alert popup will appear displaying the formdata I would send to my REST API.
The second plunker (http://plnkr.co/edit/8CJ3Xh?p=preview) is the one you saw before in my SO question:
http://stackoverflow.com/questions/34914941/how-to-get-checkboxes-to-initialize-based-on-model
The problem I am having is that if I click on the Edit button (near the bottom of the page) for the "Examples'R US" vendor, the appropriate product check boxes do not become checked.  I was hoping that the "Plugs" and "Back Scratcher" check boxes would be checked.
Thanks

I don't understand what is the question related to the first plunker.
Regarding the second one, what made you hope that the checkboxes will change. in the edit_record scope method you just modify a local variable data and that's it. You should modify a scope variable that points to the one reference in ng-repeat (to show/hide checkboxes) or by checklist-model (to check/uncheck).


[Bug] 无法使用域名方式与WireGuard服务器连接

Verify steps

[X]  确保你使用的是本仓库最新的的 mihomo 或 mihomo Alpha 版本 Ensure you are using the latest version of Mihomo or Mihomo Alpha from this repository.
[ ]  如果你可以自己 debug 并解决的话，提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
[X]  我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
[X]  我已经使用 Alpha 分支版本测试过，问题依旧存在 I have tested using the dev branch, and the issue still exists.
[X]  我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
[X]  这是 Mihomo 核心的问题，并非我所使用的 Mihomo 衍生版本（如 OpenMihomo、KoolMihomo 等）的特定问题 This is an issue of the Mihomo core per se, not to the derivatives of Mihomo, like OpenMihomo or KoolMihomo.

Mihomo version
Mihomo Meta alpha-d84f88b darwin arm64 with go1.20.14 Sat Apr 13 00:03:09 UTC 2024
What OS are you seeing the problem on?
macOS
Mihomo config
mode: rule
log-level: info
ipv6: false

proxies:
- name: "HOME"
  type: wireguard
  ip: <ip>
  private-key: <private-key>
  peers:
    - server: <domain>
      port: <port>
      public-key: <public-key>
      allowed-ips: ['<IP_ADDRESS>/8']
      # reserved: [209,98,59]  # 字符串格式也是合法的，如"U4An"
  udp: true
  # mtu: 1408
  # dialer-proxy: "ss1"  # 一个出站代理的标识。当值不为空时，将使用指定的 proxy/proxy-group 发出连接
  remote-dns-resolve: true # 强制dns远程解析，默认值为false
  dns: [ <IP_ADDRESS>, <IP_ADDRESS> ] # 仅在remote-dns-resolve为true时生效

proxy-groups:

proxy-providers:

rule-providers:

rules:
  - DOMAIN-SUFFIX,internal,HOME
  - IP-CIDR,<IP_ADDRESS>/8,HOME
  - GEOIP,CN,DIRECT
  - MATCH,DIRECT

Mihomo log
2024/04/15 11:13:33.403  [info] AppDelegate.swift applicationWillFinishLaunching(_:) applicationWillFinishLaunching
2024/04/15 11:13:33.421  [info] AppDelegate.swift applicationDidFinishLaunching(_:) ———————————————————————————————————————————————————————————
2024/04/15 11:13:33.421  [info] AppDelegate.swift applicationDidFinishLaunching(_:) ———————————————applicationDidFinishLaunching———————————————
2024/04/15 11:13:33.421  [info] AppDelegate.swift applicationDidFinishLaunching(_:) ———————————————————————————————————————————————————————————
2024/04/15 11:13:33.421  [info] AppDelegate.swift applicationDidFinishLaunching(_:) Appversion: v1.3.12 500
2024/04/15 11:13:33.442  [info] AppDelegate.swift postFinishLaunching() postFinishLaunching
2024/04/15 11:13:33.444  [debug] PrivilegedHelperManager.swift checkInstall() checkInstall
2024/04/15 11:13:33.451  [info] RemoteConfigManager.swift setupAutoUpdateTimer() set up autoUpateTimer
2024/04/15 11:13:33.451  [info] RemoteConfigManager.swift autoUpdateCheck() Tigger config auto update check
2024/04/15 11:13:33.453  [info] RemoteConfigManager.swift saveConfigs() Saving Remote Config Setting
2024/04/15 11:13:33.466  [debug] PrivilegedHelperManager.swift getHelperStatus(callback:) helper version 1.12 require version 1.12
2024/04/15 11:13:33.466  [info] PrivilegedHelperManager.swift getHelperStatus(callback:) check helper using time: 0.021410107612609863
2024/04/15 11:13:33.466  [debug] PrivilegedHelperManager.swift checkInstall() check result: installed
2024/04/15 11:13:33.466  [info] ClashProcess.swift launchPath Get launchPath
2024/04/15 11:13:34.998  [info] ClashProcess.swift verifyCoreFile(_:) verify core path: /Users/cls/Library/Application Support/com.metacubex.ClashX.meta/com.metacubex.ClashX.ProxyConfigHelper.meta
2024/04/15 11:13:34.998  [info] ClashProcess.swift verifyCoreFile(_:) -v out: Mihomo Meta alpha-d84f88b darwin arm64 with go1.20.14 Sat Apr 13 00:03:09 UTC 2024
Use tags: with_gvisor
2024/04/15 11:13:35.000  [info] ClashProcess.swift checkHelperVersion() Helper, check status success 1.12
2024/04/15 11:13:35.000  [info] ClashProcess.swift startProxy() Trying start meta core
2024/04/15 11:13:35.001  [info] ClashProcess.swift prepareConfigFile() config not exists
2024/04/15 11:13:35.001  [info] ClashProcess.swift prepareConfigFile() Try to copy default config
2024/04/15 11:13:35.120  [info] ClashProcess.swift startProxy()
########  Clash Meta Start Log  #########
[info] Start initial configuration in progress
[info] Geodata Loader mode: memconservative
[info] Geosite Matcher implementation: succinct
[info] Initial configuration complete, total time: 0ms
[info] RESTful API listening at: <IP_ADDRESS>:9090
########  END  #########
2024/04/15 11:13:35.120  [info] ClashProcess.swift pushInitConfig() Push init config file: config
2024/04/15 11:13:35.145  [debug] ApiRequest.swift updateAllowLan(allow:completeHandler:) update allow lan:false
2024/04/15 11:13:35.145  [info] ClashProcess.swift start() Init config file success.
2024/04/15 11:13:35.159  [debug] ApiRequest.swift websocketDidConnect(socket:) loggingWebSocket did Connect
2024/04/15 11:13:35.176  [info] AppDelegate.swift setupData() port config updated,new: 7890,7890
2024/04/15 11:13:35.177  [info] AppDelegate.swift syncConfigWithTun(_:_:) tun didn't set
2024/04/15 11:13:35.177  [debug] ApiRequest.swift websocketDidConnect(socket:) trafficWebSocket did Connect
2024/04/15 11:13:41.499  [info] AppDelegate.swift checkMenuIconVisable() checkMenuIconVisable: (868.0, 877.0, 72.0, 22.0) 0.0, hidden: false, coverd by notch:false
2024/04/15 11:13:41.564  [info] ClashProcess.swift verifyCoreFile(_:) verify core path: /Users/cls/Library/Application Support/com.metacubex.ClashX.meta/com.metacubex.ClashX.ProxyConfigHelper.meta
2024/04/15 11:13:41.564  [info] ClashProcess.swift verifyCoreFile(_:) -v out: Mihomo Meta alpha-d84f88b darwin arm64 with go1.20.14 Sat Apr 13 00:03:09 UTC 2024
Use tags: with_gvisor
2024/04/15 11:13:43.543  [info] ClashProcess.swift verifyCoreFile(_:) verify core path: /Users/cls/Library/Application Support/com.metacubex.ClashX.meta/com.metacubex.ClashX.ProxyConfigHelper.meta
2024/04/15 11:13:43.543  [info] ClashProcess.swift verifyCoreFile(_:) -v out: Mihomo Meta alpha-d84f88b darwin arm64 with go1.20.14 Sat Apr 13 00:03:09 UTC 2024
Use tags: with_gvisor
2024/04/15 11:13:54.776  [debug] AppDelegate.swift didGetLog(log:level:) [Rule] use default rules
2024/04/15 11:13:54.790  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) UAPI: Updating private key
2024/04/15 11:13:54.790  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) peer(pwIf…6DG8) - UAPI: Created
2024/04/15 11:13:54.790  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) peer(pwIf…6DG8) - UAPI: Updating endpoint
2024/04/15 11:13:54.790  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) peer(pwIf…6DG8) - UAPI: Adding allowedip
2024/04/15 11:13:54.790  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) Interface up requested
2024/04/15 11:13:54.790  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) UDP bind has been updated
2024/04/15 11:13:54.791  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) Routine: receive incoming receive - started
2024/04/15 11:13:54.791  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.791  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.791  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) peer(pwIf…6DG8) - Starting
2024/04/15 11:13:54.791  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) Interface state was Down, requested Up, now Up
2024/04/15 11:13:54.791  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) peer(pwIf…6DG8) - Routine: sequential receiver - started
2024/04/15 11:13:54.791  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) peer(pwIf…6DG8) - Routine: sequential sender - started
2024/04/15 11:13:54.792  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.792  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.792  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.792  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.792  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.793  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.793  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.793  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.793  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.794  [debug] AppDelegate.swift didGetLog(log:level:) [WG](HOME) peer(pwIf…6DG8) - Sending handshake initiation
2024/04/15 11:13:54.803  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.822  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.861  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) peer(pwIf…6DG8) - Failed to send handshake initiation: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.918  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:54.995  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:55.216  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:55.579  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:55.649  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:56.223  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host
2024/04/15 11:13:57.224  [error] AppDelegate.swift didGetLog(log:level:) [WG](HOME) connect to server: dns resolve failed: lookup : no such host

Description
使用域名方式配置wg outbound peers.[].server时会出现如日志所示错误

确保dns正确,mihomo没解析出server域名的地址

dig时可以解析出正确地址，请问有排查思路吗？发自我的 iPad在 2024年4月15日，15:23，汐殇 @.***> 写道：
确保dns正确,mihomo没解析出server域名的地址
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

@cls1997 看dig没用,看配置文件的dns配置,里面的dns服务器能否解析

@cls1997 看dig没用,看配置文件的dns配置,里面的dns服务器能否解析

感谢！问题已经解决。请关闭该Issue


IQueryable dbEntity for other where condition

Hi，all:
I get a problem for using IQueryable object as return value of linq where operation by querying data
，when I append other condition for my IQueryable object, this condition will be recognized as and condition but I need to make it as or condition. Is there a code solution to resolve it that condition is appened as and but exactly or.

@qianthinkover yes, calling Where() repeatedly will result in a query that accumulates the effects of all the filter conditions you specified, which is semantically equivalent to chaining the conditions with AND.
To get OR semantics:

Chain all the conditions into a single condition using the OR operator (i.e. || in C#) and call Where() only once
If you need to do this dynamically at runtime you may better off using a helper, such as PredicateBuilder
For completeness, if there aren't to many different conditions you may get similar results by performing an Union() on individual queries, e.g.:

var query = source.Where(condition1).Union(source.Where(condition2));

In the future, you may be better off asking this kind of questions in a place like http://stackoverflow.com, since it is not specific to EF Core.

Thanks a lot!


RHINENG-10906: Filters to url params

I added redux states for initial state and active filters
I added functions that update URL based on change in active filters in redux
When user opens the page for the first time and there are no URL params present - we load the initial state filters
When user opens the page with URL params present - we update the active filters accordingly and fetch + filter data based on that
I updated the onSelect functions and other functions and moved some of the outside of the Incident Page component and into utils.js

https://issues.redhat.com/browse/RHINENG-10906

/ok-to-test

/lgtm


Adds missing ES/OS authentication properties docs

these properties were already supported, just not in the README

Hi, sslNoVerify is also there i think... but missing in docs
ref: https://github.com/Filippo125/zipkin/commit/01ecc8af2efb5b2d34e64d5709ef05145a7da8f4

@lmpeiris thanks, added sslNoVerify to the doc!


Add slugs to Docker Kisumu events so they can delete the past events

William from Docker (https://opencollective.com/dockerkisumu) collective needs help deleting the past events. I figured they are also lacking of slug endings on the URLs so that is what is preventing them from being able to enter and edit.

done, named them workshop and workshop1 to 8


Run examples as tests. Would have prevented #266

Just a thought.

Good idea!

Updated. Cleaned it up a bit.

I dig it. Thanks!


fix: only destruct elements no longer in use when erasing

Fixes #42.
Related #23.

I had a look already. Looks great. Is it good to go?

Yes, please go ahead.

Done. Thanks for the work you've been doing in the library. We'll create another release once all the stuff you want is merged.

I don't have anything more to contribute at the moment, so feel free to go with your plans!


test: Fix flaky tests

Description
Fixed below flaky tests

Add_new_row_spec.js
ForkApplication_spec.js

Type of change

Flaky test fix

How Has This Been Tested?

Cypress test runs

Checklist:
QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=714c75b

/ok-to-test sha=bd05505

/ok-to-test sha=c686997


Update runner.py to make it possible to reuse the sqlite3 database

Right now we generate a new Sqllite3 database for each run. There should be a way to update an existing database so that trend analysis can be done.

Done


Fix getting meta data

Fix for https://github.com/openshift-knative/hack/pull/406/files#r1830973079

/lgtm


Tool User Guide - skeleton for discussion

I added an .md file called "Black_Box_User_Guide - the first stab at starting a User Guide to the Tool users. Ready to discuss whenever Gus and/or Vincent have time.

A newer version / PR is in the tool_doc1 branch; this one is obsolete,


Disable conventional commits

I haven't found a way to disable "Conventional commits" in the documentation.
I wonder if it's something you're open to consider? I am considering using knope in my monorepo, although I have a very different semantic versioning flow, so I wonder if "conventional commits" could be disabled to understand the entity of the changes, and use only "Change File" to craft a changelog.

We should definitely allow that to be customized, just have to decide on what the config should look like.
You probably want this to be global, right? Rather than having to add it per-package?

We should definitely allow that to be customized, just have to decide on what the config should look like.
You probably want this to be global, right? Rather than having to add it per-package?

For my use case, yes, globally. The Knope documentation also advice not using CC, and rely on "Change file"

Available now in 0.16.2!


test definition allows "-", but Test Name considers that a special character

Affected module
UI, Test Definition and Test Result
Describe the bug
I have created a custom test definition via API:test-definition-1. So dash character is allowed
I am creating a table test, and suggested name combines "table name" and "test definition name".  However, as test definition contains a dash, this becomes an invalid name,
To Reproduce
Screenshots or steps to reproduce

Expected behavior
dash is consistently allowed or not allowed in the entity name.
Version:

OS: [e.g. iOS]
Python version:
OpenMetadata version: [e.g. 13.2]
OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context
Add any other context about the problem here.

Can I be assigned to this issue?
Since the custom definition for test allows dash (-) characters, and in the UI, the suggested name combines the table name with the test type, I think it should be allowed to have a dash character, therby modifying the allowable character regex in TestCaseForms.tsx. If there are any other suggestions for how to fix this (perhaps by disallowing the dashes in the test case definition, or by stripping the dashes when combining the names), I am open to hearing it out!

@TeodorLungu assigned the issue to you. @Sachin-chaurasiya can you address the question from @TeodorLungu above?

@TeodorLungu what you proposed makes sense to me. Feel free to change the specification to allow these characters. Let us know if you have any questions

This is working fine with 1.2.3 release


Remove unneccessary AppsandFeaturesEntries * manifests/a/aandrew-me/ytDownloader/3.17.1/aandrew-me.ytDownloader.installer.yaml

Microsoft Reviewers: Open in CodeFlow

URL:
Invalid URI: The hostname could not be parsed.
(Automated message - build 899)


Make URL Prefix configurable

In oder to allow a URL prefix other than "/" (ROOT) one as to change according to
https://github.com/wyona/katie-backend?tab=readme-ov-file#docker-using-tomcat

Just realize, that we can remove  completely from index.html
So the only remaining change would be to rename the war file before startup, whereas see
Dockerfile_Java11_Tomcat
and enhance
CMD ["/opt/tomcat/bin/catalina.sh", "run"]

But then again, this might not be even necessary, because Katie could run without prefix and even when the reverse proxy is using a prefix, it should still work


Tooltip to list more objects has two outlines

As title (see screenshot below):

Same as #1212

Same as #1212

Same as #1212


DevConsole: if accessed over https://, default URL to wss://

When accessing the dev console over HTTPS, make sure the default URL starts with wss://

Can you check it in latest code. I think it was fixed and later moved to TellURL logic... As long as --ssl* options are present...
https://github.com/joewalnes/websocketd/blob/108d82f5ac79a524436667c32a17d35d8d092fc9/libwebsocketd/http.go#L148
Were you using insecure proxying from secure frontend?

Yeah, this is when running behind a proxy.
Simplest thing to do is determine the ws:// URL on the client side using JavaScript:
location.href.replace(/^http(s?):\/\//, 'ws$1://')

Should be fixed.


Added Capability to download RealTime-Data

hi, just added real time functionality for my personal use, maybe you wanna have it in. Included a small test.

Currently the site for historical data seems to be down which leads to exceptions...Ill try to submit a new PR soon to handle those, also there are issues in my own code in case the symbols are not found on yahoo.

Thanks for letting me know. Apparently Yahoo changed URL's. https://github.com/ZacMarcus/YahooFinance.NET/issues/13
I'll probably have a look tomorrow


Upload Image to GridFS

Hello,
how would we configure Froala so that we can store the Images in GridFS?
eg: imageUploadURL ?
please?

Hi,
I haven't looked at this myself yet, though it is on my own product roadmap in the future.
There seems to be two possible types of approaches:

Work with the FE ajax - based image upload feature, by implementing a non-DDP ajax http server routes in your server-side Meteor application to save and retrieve images (which would use server-side GridFS to persist  / retrieve the image)
Intercept / override the default FE client-side ajax - based image handling (hooking into the FE beforeImageUpload event), using the GridFS client-side API to save the images. I don't know how to embed a link / reference to the image in the FE markup such that it will attempt to retrieve the image again when it is displayed...

My guess is that the first approach will be easiest.

Ok , I will try to add a upload route

Do you have any idea where to find an working example how to setup a iron router router to handle file uploads?

Hello,
I have managed to upload an Image from Froala, but the returned editor seams to be not valid:
According to the Froala Docs, this way we should be able to insert an image at the curret cursor:
		beforeImageUpload: function() {
			var self = this;
		    return function (e, editor, img) {
				var url ="http://localhost:3000/cfs/files/images/MXsbirDwadqrL6fRy/BaumGeist.JPG"; //dummy

				editor.editable('writeImage', url, true);

I just get:
Uncaught TypeError: undefined is not a function

I got it now working with the non reactive froala:
$('.froala').on('editable.beforeImageUpload', function (e, editor, images) {
		    	var self = $(this);
				console.log(this);
				console.log(editor);
				//var url ="http://superdevresources.com/images/meteor/meteor-free-ebooks-tutorials.png";

				Images.insert(images[0], function (err, fileObj) {
		      		//console.log("editor ",  editor);
					//console.log("after insert:", fileObj._id);
					Tracker.autorun(function (c) {
			          fileObj = Images.findOne(fileObj._id);
			          var url = fileObj.url();
			          if (url) {
						self.editable('writeImage', url, true);
			          	//editor.editable('writeImage', url, true);
			          	console.log("URL: ",url);
			          	//$("#summernote").summernote("insertImage", fileObj.url(), "Image Title");
			            //editor.insertImage($editable, url);
			            var response = {
			            	link: url
			            }
			            return response;
			            c.stop();
			          }
			        });
				});
			});


Fixed some grammar and typos in Spanish, consistency with periods

Thank you to everyone for your work on this project! These are changes are quite minor, but as a user of the app in Spanish, I wanted to fix the little issues I saw in the language and interface. :)

Hi @tiffanytkn ,
Thanks for this PR. I will merge it once we will do the delivery. Note that we use an external tool to manage the translations of Riot: https://translate.riot.im/translate/. Feel free to use this tools for future change, to avoid conflict if somebody else change the spanish strings on Weblate.
It's ok for this time, no need to report your change to Weblate.
Benoît

Thank you, Benoît, for your reply! I appreciate the link -- I will join the Weblate site for Riot so that I can help contribute to this amazing project.
Warm wishes,
Tiffany

Hi @tiffanytkn ,
I've merged your PR, the modification you've done have been reported correctly in Weblate.
Thanks again for improving Riot!
Benoît


[ManagedNetwork]Add leading slash in Id in test cases

@erich-wang Can you help us review it? Also since we only modify the test , do we need to build and re-release it ? Thanks!

@erich-wang Can you help us review it? Also since we only modify the test , do we need to build and re-release it ? Thanks!

Hi @yanfa317, you don't have to, because there wouldn'd be any difference for the management dll.


Update: KDE.KDiff3 version 1.10.4

- [X] Have you signed the Contributor License Agreement?

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?

[X] Does your manifest conform to the 1.4 schema?

Resolves #107993

Microsoft Reviewers: Open in CodeFlow

This package seems to be interactive only

Automatic Validation ended with:


Let's add body field to default template?

Now the default template looks like this:
<!DOCTYPE html>
<html${htmlAttrs}>
    <head>
      <meta charset="UTF-8">
      <title>${title}</title>
      ${cssTags}
    </head>
    <body>
      ${jsTags}
    </body>
</html>

For my use case, I want to inject extra content within body (I'm processing some markdown and want to inject the resulting HTML). What if we extended the template like this?
...
<body>
  ${body}
  ${jsTags}
</body>

With this small change, you could pass extra content to body directly through context without having to rewrite the entire template.

Yeah, make sense! The only question is the order: should it be before scripts or after or should we have two separate variables or it doesn't matter at all?

Given the best practice seems to be to run JS after content, I would go with the ordering above. If inverse order is needed, then a bigger template change would be needed by the user but I would expect that to be the exceptional case.

Make sense!

:tada: This issue has been resolved in version 2.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Lazy Loading of reducers

Well i am trying the way told in the below URL for the
https://github.com/ngrx/store/issues/197
but the problem is that  my root reducer is below
const productionReducer: ActionReducer = combineReducers(reducers);
export function reducer(state: State, action: Action) {
return productionReducer(state, action);
}
now  where to introduce the asyncReducers in the obove root reducer.
With the example of blog post given by MikeRyan52 i get the errors of state undefined.
I just need an example may be in the example app for the lazy loading feature modules

I'm no expert on ng store, but I use the routes to lazy load my reducers (or at least keep them in the lazy submodule that I need). I think this is a very organised and clean approach to route based reducers.
// ngModule in imports
...
imports: [StoreModule.provideStore(AppModule.reducers())]
})

// my App Module that is being decorated by ngModule
export class AppModule {

 static reducers(): ActionReducer < any > {
   return combineReducers(Object.assign({},
     Reducers,
     ...(ROUTES.filter(route => (route.data && route.data['reducers'])).map(route => {
      return route.data['reducers'];
   }))
   ));
 }
})
// my routes
const ROUTES = [ {
 path: PATHS.GUESTS_PATH,
 loadChildren: () => System.import('./submodules/guest-book')
   .then((comp: any) => comp.default),
 data: {
   reducers: GuestBookReducers,
   preload: true
 }
},
{ path: PATHS.ADMIN_ROOT_PATH, loadChildren: () => System.import('./submodules/admin').then((comp: any) => comp.default),
 data: {
   reducers: AdminReducers
 }
}]
```

But this will not split the build module in chunks. The module will still be part of the main bundle. We may need a better approach of stitching reducers to the main stream, on a need basis while keeping the module in chunks.

Implemented and released in v4.


Reduce logic in cmd/zetaclientd

Describe the Issue
Currently cmd/zetaclientd has to much logic:

Initialization of ZetaBridge, Signers, clients
TSS generation
Initiazation logic in start.go

We should keep the logic in cmd as minimal as possible. Making an interface interaction with packages in zetaclient
We also don't include the logic in cmd for the code coverage scope, which is decreasing coverage of potentially imporant logic.
We should move relevant logic in packages in ZetaClient and keep cmd minimal

Simplify and consolidate files
We have too many of them, that creates distractions e.g.

main.go and root.go could be a single file
Same for utils and start_utils
Make sure there’s ONLY a single init() definition

debug.go
Either refactor or drop debug.go (if not used) https://github.com/zeta-chain/node/blob/8d17118882f50003654e5d582f0b4049f913998f/cmd/zetaclientd/debug.go#L56

Rename debug.go to get_inbound_ballot.go
Remove logic for voting as it is supposed to only fetch the ballot
Move the logic into the service layer, cmd/ should only initialize the command and not contain business logic

tss commands
Consolidate tss commands into a single tss.go https://github.com/zeta-chain/node/blob/9b704a5bf924b164ad1472f028323b8b59a102a0/cmd/zetaclientd/keygen_tss.go#L31

Move tss generation logic into zetaclient/tss/...

WIP

start.go will be fixed in this issue https://github.com/zeta-chain/node/issues/3112