[FLOC-1275] Transfer Eliot context with AMP commands

https://clusterhq.atlassian.net/browse/FLOC-1275
Stacked on top of #1156. Merge that first.

Thanks @itamarst
This looks good to me.
The only thing I wondered is whether it might be possible to define a new EliotAction AMP argument type which took care of calling serialize_task_id().
Please proceed.

@itamarst I finished testing the with_eliot_context decorator. Now need your guidance on how to update the existing tests and how / where to test the messages logged by remote AMP commands.
See trial flocker.control.test.test_protocol.AgentClientTests.test_cluster_updated in this branch for an unfinished attempt to update one of the existing tests.

Ok. I think this is ready for a review.

Buildbot was red last I checked.

Thanks! Please address the above and resubmit.

Thanks @itamarst I'm putting this up for review again; this is not suitable for merging yet, actually, but I could use a couple more pointers on some of the Eliot aspects. It seems the FakeAMPClient in flocker.testtools is going to need to a method (possibly just a __repr__ that returns a fake, knowable IP address of the control service for the convergence loop to use as its fields in the logging (see the XXX comment in flocker.node._loop.LOG_SEND_TO_CONTROL_SERVICE) and I have some broken tests in test_loop that I'm still working on, but if you could review the changes I've made today and highlight if anything's not on the right track, that'd be much appreciated. Going to go back to pairing with @wallrj on this later.

Having repr as a serializer for connections isn't great. What we really want is some sort of identity ("zfs agent for node 123-545-679"), but we don't have infrastructure for that yet. So maybe use host/port (address = client.transport.getPeer()) and you can add a fake transport to the fake AMP client using a twisted.test.proto_helpers.StringTransport.

After further thought, I suggest not bothering adding any fields to that message at all. So forget about connection address, we'll add that someday in the future.
In general looking better.

I think, barring the things @itamarst said to ignore, this is now ready for review again.

There's a couple comments, at least.  Unfortunately not able to finish this right now.  I'll pick it up again ASAP but sending it back in case you get some time to address the comments I did make.

I ripped out a lot of code based on @exarkun suggestions, and then ripped out a lot of fragile fiddly unit tests that sadly didn't prove much evidence of actual correctness.

Acceptance tests should validate that this change didn't break anything.
https://clusterhq.atlassian.net/browse/FLOC-1507 should eventually test cross-process logging properties the correct way.
Until that is done: it probably works, and if not we're no worse off than before. And we're wasting too much time on this.

Thanks.  Please address remaining minor inline comments and then, if buildbot is green, merge.


Adding ^:const to precompiled path var causes exception when using it

    (def ^:const y (spec/comp-paths [:a :b]))
    => #'dove.core.repl/y
    (spec/compiled-select-first y {:a {:b 1}})
    CompilerException java.lang.IllegalArgumentException: No matching field found: select-executor for      class com.rpl.specter.impl.ExecutorFunctions, compiling:...

Without ^:const it will work properly.
Is this intentional or a bug?

This looks like a bug. It appears to only happen with the ^:const metadata – I was not able to reproduce it with other metadata.

I understand what's happening now. When you use :^const on a symbol, Clojure will inline that value wherever it's used. This is intended for simple values like numbers and strings, and doesn't work for a complex datatype that contains nested anonymous functions. What we're seeing here it the behavior of Clojure, so there's nothing to fix.


Intermittent Kraken Order execution issues

I would like to get some feedback on the following behavior and see if there's a way around it.
When I execute an order on Kraken, via the raw xchange interface  I get any of the following behaviors:

works as expected.  get a normal KrakenOrderResponse.
connection timeout.  obvious that a retry is necessary
exchange exception.  Eservice unavailable and the like.  obvious that a retry is necessary.
HTTP status code errors. like 502 "bad gateway" and others.  Request fails/timeout reached/response null (Order is executed anyway)  these are similar errors you get when accessing through cryptowat.ch/kraken web (cloudflare errors) etc

The above behavior is random, so first 2 request can be OK.  than another request option 3, then next retry option 2, and then still another one 4.
I tried already to increase the HTTPreadtimeout but that doesn't seem to help.  Maybe the readtimeout would only be valid to the cloudflare servers and not between their servers and the kraken ones.  (have to be honest, i didnt manage to get the rescu.properties working so i change it through exchangespecification.sethttpreadtimeout)
As Kraken itself is very unstable i wonder if there is a way around it.  It's kind of crazy to not know for sure what happened in the end.  needing to retry more or try to find out and executed order (of which you didnt get the orderid back) to match a request

On option 4.  sometimes the order goes through.  not consistent

I don't have any experience with Kraken beside the public market data interface, and I just ignore errors. I'll leave this open, and maybe someone else can offer some advice.

"a way round it" - use a different exchange if possible? The Kraken Twitter feed is promising "major upgrades" in early December so there might be better things on the way.
https://twitter.com/krakenfx/status/933183555772882945
https://twitter.com/krakenfx/status/932910443785367552
https://twitter.com/krakenfx/status/932917134513934336
As you've noticed, it is currently highly unreliable at the moment, see also #1758

Based on Kraken's feedback:  they are working on a new trading backend, regarding this problems.  for now they recommend setting/checking the userref parameter as a bypass/validation in case something goes wrong.  I guess this topic can be closed. thanks


Document the nodejs_als compat flag

workerd PR: https://github.com/cloudflare/workerd/pull/1706

Please include an entry in here too! https://github.com/cloudflare/cloudflare-docs/tree/production/content/workers/_partials/_platform-compatibility-dates

@GregBrimble ... done!


Keras model with SparseTensor as inputs

I'm trying to setup a Keras model with sparse input:
input_layer = tf.keras.layers.Input(shape=(10, ), sparse=True)
weights = tf.get_variable(name='weights', shape=(10, 1))

weights_mult = lambda x: tf.sparse_tensor_dense_matmul(x, weights)
output_layer=  tf.keras.layers.Lambda(weights_mult)(input_layer)
model = tf.keras.Model([input_layer], output_layer)
model.compile(loss='binary_crossentropy',
                  optimizer=tf.keras.optimizers.Adam(lr=0.0001),
                  metrics=['accuracy'])

This fails with
TypeError                                 Traceback (most recent call last)
<ipython-input-3-822e68cb2d64> in <module>()
      7 model.compile(loss='binary_crossentropy',
      8                   optimizer=tf.keras.optimizers.Adam(lr=0.0001),
----> 9                   metrics=['accuracy'])

/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py in compile(self, optimizer, loss, metrics, loss_weights, sample_weight_mode, weighted_metrics, target_tensors, **kwargs)
    457       # Add regularization penalties
    458       # and other layer-specific losses.
--> 459       for loss_tensor in self.losses:
    460         total_loss += loss_tensor
    461

/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/network.py in losses(self)
    635       else:
    636         relevant_inputs.append(inputs)
--> 637     reachable = tf_utils.get_reachable_from_inputs(relevant_inputs, losses)
    638     relevant_conditional_losses = [x for x in losses if x in reachable]
    639     unconditional_losses = [

/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/utils/tf_utils.py in get_reachable_from_inputs(inputs, targets)
    115       outputs = [x.op]
    116     else:
--> 117       raise TypeError('Expected Operation, Variable, or Tensor, got ' + str(x))
    118
    119     for y in outputs:

TypeError: Expected Operation, Variable, or Tensor, got SparseTensor(indices=Tensor("input_1/indices:0", shape=(?, 2), dtype=int64), values=Tensor("input_1/values:0", shape=(?,), dtype=float32), dense_shape=Tensor("input_1/shape:0", shape=(2,), dtype=int64))

It seems to me that tensorflow/python/keras/utils/tf_utils.py:get_reachable_from_inputs doesn't recognize SparseTensor as a correct input type. Is there anyway to setup a Keras model with sparse input?

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
Mobile device

OS Platform and Distribution: unix
TensorFlow installed from: pip install
TensorFlow version: 1.9.0
Bazel version: NA
CUDA/cuDNN version: NA
GPU model and memory: NA
Exact command to reproduce: pasted above
Mobile device: NA

Hi @chtran, thanks for submitting this issue. I was able to recreate the error and have a fix pending, I'll let you know when it is available in the nightly build

Nagging Assignee @omalleyt12: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@chtran, this fix should be in the latest nightly build, please pip install tf-nightly (or pip install tf-nightly-gpu for GPU support) and let me know if your issue is fixed


Refactor to monorepo

Impl: #134

Just came up that we probably should change the package.json. With this implementation there should be a pre step that builds the parser package. Before we can run ng serve or ng build . (But maybe you where already planni)ng to do this 😃)

BTW, we need to move the `SketchData' interface to @types/sketchapp because of the circular dependency.

@manekinekko All done ! 👌

@Shikanime can you rebase plz?


Make adjustments to make the local environment runnable and README tidy up

Fixed the tox -e interactive command.
And a few changes to tox.ini.

The test failures come from the fact that wagtailmain still doesn't allow Django 5.0. Submitting PR


landing_page: Avoid gradient overflowing under content.

Gradient under content makes links which are of similar color
hard to see.
before:

after:

discussion: https://chat.zulip.org/#narrow/stream/6-frontend/topic/.2Ffeatures.20page.20weird.20view

Looks good!

Merged, thanks @amanagr!

Yay, thanks for the quick fix!


Update sandbox database

the Sandbox site has been updated to Hypha 5.8.0 & now the database dump reflects that

@wes-otf  Merged. Now you need to rebase "sandbox" from main again and deploy so the new db is in place.


Fix prepare_single_hop_path_and_storage_options

Fix _prepare_single_hop_path_and_storage_options.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


The question about  fusing smooth factor for the model used GQA/MQA.

Thank you for your great work!
I had a question when using the lmquant quantization model. The paper proposed to fuse the smooth factor of the attn-out layer into the weight of v_proj when using the SmoothQuant. But I found that for models like qwen2 that use GQA/MQA, the smooth factor cannot be fused since the smoother obtained by the activation of attn-out does not match the weight shape of v_proj. Do you have any suitable solution for this problem?
Looking forward to your reply :）

Hi,
We do support fusing smooth factor for models with GQA/MQA. In smooth_attention function, we provide an argument called num_head_repeats. If a model uses GQA with 32 attention heads and 8 kv heads, you can parse the argument with num_head_repeats=4, so that SmoothCalibrator will take care of smooth factor (see code here).


Downgrade bundler to 2.3.14

The latest versions of bundler has an issue where incomplete lockfiles that are
locked to "ruby" but not including exclusively gems NOT platform specific.
This causes an issue with existing lockfiles, generating a missing gem
error.
This is explained in more detail in: https://github.com/rubygems/rubygems/pull/5807
Since this is currently preventing Dependabot updates for our users,
especially around sorbet dependencies, and since we have no good way to
signal these failures to them with an explanation on how to resolve it,
I think it's best that we downgrade bundler to a version that does not
include this, until https://github.com/rubygems/rubygems/pull/5807 is
merged and we can bump to the latest version again.

Seems like there are some regressions in this version? The latest version that seemed to work was 2.3.14 so going to try that

Yeah, I recall some issues around Ruby requirements, that's probably why we went from 2.3.13 to 2.3.18 directly last time.


#213: add site API link

It looks like this:

↑ (desktop)

↑ (mobile)
Closes #213.

 See ya!


[LW-9813] Create posthog alias after new wallet is restored

Checklist

[x] JIRA - https://input-output.atlassian.net/browse/LW-9813
[ ] Proper tests implemented
[ ] Screenshots added.

Proposed solution
Explain how does this PR solves the problem stated in JIRA ticket.
You can also enumerate different alternatives considered while approaching this task.
Testing
Describe here, how the new implementation can be tested.
Provide link or briefly describe User Acceptance Criteria/Tests that need to be met
Screenshots
Attach screenshots here if implementation involves some UI changes

Changes unknown
when pulling c8c72178e165f8d7a289d1d0a69b7b0c98902ea4 on feat/lw-9813-create-posthog-alias-after-new-wallet-is-restored
into ** on LW-9170-multi-wallet-integration**.


layer: Add tracking of surface extensions (and surface objects) to CV

This is based on what Swapchain currently does.

Done.

Pushed to master.


fix(spanner): use commit timestamp to populate installed_on

Fixes https://github.com/flyway/flyway/issues/3329
As per the Spanner documentation about commit timestamps here, the column must be populated using the PENDING_COMMIT_TIMESTAMP function.
This also allows making that column NOT NULL like other database implementations do.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@Barry-RG Not sure who I should ping about reviewing this, but you are the last person to have touched these files. Any pointers on how to get some eyes on this?

Thank you @plaflamme, we will put this change through our pipeline so closing it here.


[Linux][Runtime][IRGen] Mark metadata sections as retained and support section GC.

We want to support section GC, and the __start and __stop symbols don't count as roots for that (at least, not by default). Additionally, while GNU ld and lld will coalesce retained and non-retained sections, gold refuses to do so (see https://sourceware.org/bugzilla/show_bug.cgi?id=31415), which trips up the reflection code because that only expects to find a single section.
Turn on the SHF_GNU_RETAIN flag in swiftrt.o, and remove the existing workarounds for both of the above.
Also fix generation of module objects to be section GC compatible by marking the __Swift_AST symbol as used and finalising the module in IRGen.
Additionally, it turns out that we weren't initialising the llvm::TargetOptions properly and in particular the UseInitArray setting was wrong; this is masked by code in gold that converts .ctors and .dtors sections into .init_array and .fini_array respectively, but lld does not do this, and since Glibc no longer calls functions in these sections, that means that when linked with lld, any constructors or destructors generated by the Swift compiler don't run. Fix by setting UseInitArray.
rdar://123504095

This is a cherry pick of https://github.com/apple/swift/pull/72061.

Explanation: This fix is required both for the static Linux SDK work and also to allow @etcwilde's changes (to get Swift to use Clang for linking); in the latter case it's necessary because without it there's no way to tell whether to pass the no-start-stop-gc flag (since whether you need that depends on which version of lld you're talking to).
Risk: Relatively low. It's Linux only, and the main issue with it only affects older Linux distros with old versions of gold.
Original PR: https://github.com/apple/swift/pull/72061
Reviewed by: @compnerd @etcwilde
Resolves: rdar://123504095
Tests: A lot of tests exercise these changes; anything that touches the Swift metadata, as well as LLDB (where this found a bug, which is fixed in https://github.com/llvm/llvm-project/pull/90099, aka https://github.com/apple/llvm-project/pull/8661, aka https://github.com/apple/llvm-project/pull/8669).

https://github.com/apple/llvm-project/pull/8669
@swift-ci please test

get Swift to use Clang for linking

You mean lld, we already use clang as the linker driver.


Confusing labels for "Personalize agenda" tab and agenda filter UI button

What happened?
The agenda tab that was previously "Select sessions" has been renamed to "Personalize agenda". The button that formerly said "Customize the agenda view..." is now "Personalize the agenda view..." Separately, both are improvements in the terminology, but having both of these on the same page is confusing. It is unclear what the relationship exists between the two ways to "Personalize" the agenda.
A different label for one or the other (I lean toward the filter UI button being renamed) would make this clearer.
What browser(s) are you seeing the problem on?
Not Applicable
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

Agreed.
I actually don't understand why we have two different ways to customize/personalize agendas, with functionalities that have a large overlap.

There are two different workflows that have customers.
One is where people want to say "I want to go to these groups meetings" without hunting for where the groups are in the schedule. People that do this manage their conflicts after building a calendar that has conflict in it.
The other is where people want to say "I want to look at all the groups in this session, and choose which I will attend". People who do this typically are deciding on conflict resolution at the time they are building their calendar.

Further - note that the behavior of the pages is very different once a group is selected. The main page hides all non-selected groups, while the session-selection page always shows all groups. This could be turned into a single page with a mode-toggle button perhaps, but a lot of the javascript running on the current main page would have to be touched to deal with it.

Could we just relabel the button "Filter this agenda view" and move on?
A more dramatic refactoring to support the two workflows is something we could research later.

That works for me


Add a helper to extract an archive based on mime type

Summary
A helper function to extract an archive based on file type
Use Cases
Determines the mime type of the file, and uses the correct method to extract the archive, this will help avoid lots of if else if ... logic in various method.
Checklist

[x] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[ ] I have added an integration test, if necessary.
[x] I have reviewed the styleguide for guidance on my code quality.
[x] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@dmikusa-pivotal fyi

I was playing around with this and wanted to make some changes. It seemed a little easier to branch off what you have here and make the changes directly so I submitted https://github.com/paketo-buildpacks/libpak/pull/132. Can you take a look at that and tell me if that works for you?
I think I've solved the issue of loading the full archive into memory by using a buffer/TeeReader/MultiReader. In my tests, it only loads at most the first 8192 bytes into memory. There are some other changes in there as well though, so let me know what you think or if I've missed anything for your use case. Thanks!

I was playing around with this and wanted to make some changes. It seemed a little easier to branch off what you have here and make the changes directly so I submitted https://github.com/paketo-buildpacks/libpak/pull/132. Can you take a look at that and tell me if that works for you?
I think I've solved the issue of loading the full archive into memory by using a buffer/TeeReader/MultiReader. In my tests, it only loads at most the first 8192 bytes into memory. There are some other changes in there as well though, so let me know what you think or if I've missed anything for your use case. Thanks!

Closing in favor of #132


Portfolio: application deploy

[ ] https://amazinggracee.github.io/Portfolio/

Hi @Amazinggracee ,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights
Project is deployed successfully :heavy_check_mark:
Great work in deploying to GitHub :heavy_check_mark:
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Added documentation and tests for Matlab

Thanks for the contribution AND the passwords file. Please consider moving the passwords file a folder up in the path, so maybe others can use / observe it as well.


Integrate with TravisCI

Integrate TravisCI with the repository for automatically running the unit test for each PR / push.

Done


[feature] Add Support for deploying contracts with linkReferences

Is your feature request related to a problem? Please describe.
While trying to deploy a contract that contains a linkReferences to other libraries, the generated Rust code does not contain the bytecode for that contract; hence there was no deploy method. The main reason behind this is that the bytecode contains invalid hex; waiting for the linking to happen first, so I assume we need a preprocessing/linking support.
Describe the solution you'd like
It should work as expected, the bytecode can be used as-is, later while doing the deployment, if the bytecode contains linking parts, and we have linkReferences, we should generate link method where it asks for the references first, and then we can call the deploy method. Or even create a link_and_deploy method in that case.
Describe alternatives you've considered
None.
Additional context
I would like to reference the following:

Original Contract code: https://github.com/webb-tools/protocol-solidity/blob/59585c2737755c80b794dc0b0555dd1dd2f8bd04/packages/contracts/contracts/hashers/PoseidonHasher.sol
The Generated JSON ABI: https://github.com/webb-tools/webb-rs/blob/dc7cd57afde810affd03cb57efec91085f156f43/contracts/protocol-solidity/PoseidonHasher.json
The Generated Rust bindgen: https://github.com/webb-tools/webb-rs/blob/dc7cd57afde810affd03cb57efec91085f156f43/src/evm/contract/protocol_solidity/poseidon_hasher.rs
Original Example using ethers.js from Typescript: https://github.com/webb-tools/protocol-solidity/blob/59585c2737755c80b794dc0b0555dd1dd2f8bd04/packages/anchors/src/PoseidonHasher.ts#L56-L81

I guess the most straightforward approach would be to move bytecode
https://github.com/gakonst/ethers-rs/blob/master/ethers-solc/src/artifacts/bytecode.rs
to core so we can use this during abi deserialization and get linking support.

Hello, is there any interest into building this? I may try to open a PR but maybe @mattsse got a better idea since looks like the bytecode mod uses a lot of different other modules and idk if we should also move these to the core!

For now, I was able to get around this by using a hacky-way to get it to work.
TL;DR: parse the json output as HardhatArtifact then convert it to ContractBytecode later on you can do bytecode.link_all_fully_qualified([...]) then create the ContractFactory yourself.
https://github.com/webb-tools/webb-rs/blob/13390b931834e6890676ee9605f064a893cb6eb5/src/evm/contract/protocol_solidity/mod.rs#L35-L86


Fix tests

Fix a couple functional tests. Split out from https://github.com/kubevirt/kubevirt/pull/1187 as they're needed regardless of that PR.

@stu-gott I see we persistently have the test that fails on k8s-1.10.3-release
[Fail] VMIlifecycle Creating a VirtualMachineInstance VM Accelerated Mode [It] Should provide KVM via plugin framework
/root/go/src/kubevirt.io/kubevirt/tests/vmi_lifecycle_test.go:747

I think it related to KVM PR, can you please check it?

retest this please

@stu-gott Looks much better

retest this please

The single test failure in this case is an unrelated test that's failed randomly lately.
https://github.com/kubevirt/kubevirt/issues/1184


Simple repeater [Object Object] fix

[x] Changes have been thoroughly tested to not break existing functionality.
[ ] New functionality has been documented or existing documentation has been updated to reflect changes.
[x] Visual changes are explained in the PR description using a screenshot/recording of before and after.

Before:

After:

I have check a lot the use case of what I changed. I think this docs https://github.com/filamentphp/filament/blob/3.x/packages/forms/docs/03-fields/12-repeater.md?plain=1#L424 is the reason, but I never get like below data (from docs) in my database if I use simple repeater
[
    'invitations' => [
<EMAIL_ADDRESS><EMAIL_ADDRESS>    ],
],

All I got is below, I stored in json column and casts as array
[
<EMAIL_ADDRESS><EMAIL_ADDRESS>]

I think how it display in this docs is not actually how it store, suggest to remove if I am correct.
I may have missed others, if yes please tell me and I'll look more

I don't think this is correct. In our example, invitations in the object represents the column in the database which stores the array - or the result of getState() on the form.

Received more info - this is only caused by defaultItems()

Yes, my changes cause error on edit, don't know why it's working (in my system) on yesterday :roll_eyes:
I've check more and more, but cannot figure out how to solve this.. I'll just submit an issue (if none is report) for ref and close this.

the reason your fix didn't work properly is because there are 2 places you need to fix inside the Repeater class, and you only did it in 1 place.
line 102 and line 543


C# 10 in a Nutshell book Added

What does this PR do?
Add resource
For resources
Description
C# 10 in a Nutshell by Joseph Albahari
Why is this valuable (or not)?
It is a free C# Programming book
How do we know it's really free?
It is openly accessible.
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

C# 10 in a Nutshell
The Definitive Reference
by Joseph Albahari

This appears not to be an authorized distribution. Please see docs/CONTRIBUTING.md guidelines.


Simplify fizz-buzz example

We can simplify this even further to crystallize out the CMake aspects and to not waste any time on understanding what this code is about. I am working on this this week, just FYI @blindij

I might go for a simple calculator code that can either add or subtract.


Update requirements to not include notebook only dependencies

Summary
This commit updates the requirements list to only include required
packages for using qrao as a library. The requirements list get
installed unconditionally as part of installing the library meaning that
every user who tries to use qrao will get them installed too. Having
heavy and closed source dependencies like cplex in the list is
problematic for library users in particular because it makes it
difficult for any downstream consumers to depend on the package since it
will always pull those in. To avoid this issue this commit moves the
tutorial specific requirements into an optional extra requirement. This
then separates the concerns of library users and tutorial users. If you
run tutorials you can just run 'pip install prototyp-qrao[tutorials]'
which will install the library with the tutorials extras. At the same
time these dependencies are added to the requirements-dev.txt list too
so that tutorial dependencies are installed during documentation builds
too.
Details and comments

I pushed one more commit, e196be7ae090160229ef1ee2bd548a0641d71e48, once I realized that the install documentation needs to be updated to reflect this change.


Making it possible to "clone" an initialized store

Hi peeps, playing around with wazero for fun - it's awesome!  I'm currently using wazero to run wasi based libraries within Go.  The library is built in Rust, and I was testing FFI vs Wazero because, well, it sounded interesting.
After implementing the basics, I'm noticing:

Instantiating a new store and interpreter takes the bulk of the time.  For my library, that's anywhere from 400ms to 1.5 seconds.
wasi and wasm doesn't de-allocate memory via free(), so when I allocate memory in the library to pass objects (eg. strings, structs), they're never going to be cleaned up.  memory grows linearly with usage.

So, that leaves you with a couple options to manage speed vs memory growth:

Create a new env in a separate goroutine when memory usage grows to a specific level, then atomically swap envs to reclaim space
Or, allow an instantiated Store to be cloned once initialized so that we can use the fresh state for each library invocation.

I've played around with cloning a store, but it's quite a pain.  Theoretically, is this something that wazero would ever enable?  Is there something I'm missing here?
Also, I haven't looked into JIT and this is only for the interpreter engine as ... well, I'm on debian arm, and i want to produce static builds for every OS & arch 😬

Thanks @tonyhb, this is a reasonable feature request because some of the other runtimes can actually clone stores (or module instances) for example wasmtime: https://docs.wasmtime.dev/api/wasmtime/struct.Module.html#modules-and-clone
Currently it's not possible to clone ModuleInstance or Store type as we haven't coded wazero so it can be cloned, but we definitely would like to support clone feature. I think we would work on this after upcoming API refactoring #170.
Thank you for initiating the discussion and feedback! 🙌

Also, I haven't looked into JIT as... well, I'm on debian arm 😬

ps arm64 would be our next target in JIT so stay tuned! 😄

Now that the instantiation cost is relatively cheap with the CompiledModule API, this problem this issue originally described is solved (previously store did compilation and installation all at once, and therefore the cost was large), also the context is outdated as our internals as well as APIs have been changed drastically.

Amazing, thank you @mathetake!


🧪add test_document_issue_md_to_pdf... currently failing...

Closing as changes have been incorporated into this PR: https://github.com/maxfordham/document-issue/pull/52


Update H001071.yaml

Second form after ZIP submit was not rendering immediately.
Implemented a find action on the first_name input with a 1 second delay to allow form to render before stating to fill.

Hi,
Thanks for the tip!
I was unsure if I should use the wait action as the documentation suggests it is not stable.
Just out of curiosity, is there a reason why you shouldn't use the wait option on the find action? It seems to work just as well from what I have experienced.
I will resubmit taking your advice. Thanks again!

I've never used find and wait together -- I guess it's legal, according to schema, but I'm not sure how implemented it is I guess.


UNMET PEER DEPENDENCY<EMAIL_ADDRESS>

Yesterday<EMAIL_ADDRESS>was released.
And react-native-elements requires<EMAIL_ADDRESS>as peer dependency.

Could you please rise up the version of react-native-vector-icon mentioned on peer dependency in package.json file?
Can I PR for this small change? :)
Thanks

I recently pushed a PR updating the version and adding the new MaterialCommunityIcons type : #141

Great!
Thanks for your work.


Cherry-pick #3080 into release-2.0.0

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify.
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

[BEAM-2259] Use a consistent calculation for GC Time
Truncate all garbage collection timestamps to be at the end of the
global window at the latest.
Add a reshuffle test, which was failing when late data arrived.
Update ReifyTimestamps to permit infinite skew. Elements that have
timestamps extracted from them may be late, but that is not the concern
of ReifyTimestamps.

Changes Unknown when pulling e70fc86a7c475a3497c5c6a9a1b95c65a3fd8a5b on tgroh:reshuffle_exception_release into ** on apache:release-2.0.0**.

R: @davorbonaci

LGTM as valid CP of #3080. Merging as both are green.

merged to release, closing


Docstrings and variable name enhancements in mutational_utils

mutational_utils is not commented or docstrings sufficiently and some variables should be renamed for clarity.

sufficient progress was made


conda install post-link script issue

I tried conda-install a ggd recipe in a non-base environment, and encountered the following issue. But the same command works if I install in the base environment. I understand that it is recommended to use ggd install instead of conda install, but having this issue fixed would be nice (:
Downloading and Extracting Packages
danrer10-reference-g | 6 KB      | ######################################################################################################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: | ERROR conda.core.link:_execute_post_link_actions(720): An error occurred while installing package 'ggd-genomics::danrer10-reference-genome-ucsc-v1-1-1'.
LinkError: post-link script failed for package ggd-genomics::danrer10-reference-genome-ucsc-v1-1-1
running your command again with -v will provide additional information
location of failed script: /scratch/miniconda3/envs/segzoo_env/bin/.danrer10-reference-genome-ucsc-v1-post-link.sh
==> script messages <==

Attempting to roll back.
done
ERROR conda.core.link:_execute(637): An error occurred while installing package 'ggd-genomics::danrer10-reference-genome-ucsc-v1-1-1'.
LinkError: post-link script failed for package ggd-genomics::danrer10-reference-genome-ucsc-v1-1-1
running your command again with -v will provide additional information
location of failed script: /scratch/miniconda3/envs/segzoo_env/bin/.danrer10-reference-genome-ucsc-v1-post-link.sh
==> script messages <==

Attempting to roll back.
Rolling back transaction: done
CondaMultiError: LinkError: post-link script failed for package ggd-genomics::danrer10-reference-genome-ucsc-v1-1-1
running your command again with -v will provide additional information
location of failed script: /scratch/miniconda3/envs/segzoo_env/bin/.danrer10-reference-genome-ucsc-v1-post-link.sh
==> script messages <==

()

Hi @idaL, thanks for the report. From the output, I assume you are using conda install danrer10-reference-genome-ucsc-v1 --prefix <target-prefix>. This functionality no longer works due to a discrepancy in the post-link script for a recipe and conda's ability to source the target prefix.
We are planning on a new cli update in the next few weeks, which should include a workaround for installing a data package from one environment to another.
For now, you will need to run the ggd install command within the environment in which you want the data to be stored.
Sorry for the inconvenience, and thank you for your patients.

Thank you so much @mikecormier !! Is it possible to also have this latest version of ggd up on pypi? It will make it possible to add ggd as a dependency in setup.py, allowing us to use the command ggd install

ggd will be added to pypi and conda in the near future.

Hey @idaL. GGD has been active on conda for almost a year now. Refer to the docs if you have any initial questions: https://gogetdata.github.io/. There should not be any post-link problems.
I am closing this issue. Feel free to reach out if you have any other questions or concerns.


HTTP Response is 200 or 500

The Service I'm testing response with 201 with an location URI, either show because it only show HTTP 200 with response data
Expected outcome
HTTP 201 with location URI and additional response data
Actual outcome
HTTP 200
Versions
App: <IP_ADDRESS>5-stable
Chrome: 56.0.2924.87
Platform: Mac OS X (10_12_3)
Steps to reproduce

Hi,
Thank you for issue report.
I can't reproduce the problem. The app is reporting 201 when server sends 201 and 200 when it sends 200.
Your server must have sent the 200 instead of 201 status code. Application just passing the response data from the transport to the view so it can't be an issue with the app.
You can also try running the https://httpbin.org/status/201 to see that it works as expected.
I'm closing it but feel free to comment.


PyPy3.7 support

Comment:
Does cross python support pypy 3.7?
I feel like I have run into similar issues to
https://github.com/conda-forge/healpy-feedstock/pull/49
When cross compiling for pypy

As we're now only supporting PyPy 3.8 and 3.9 I'll close this.


change srt epoll thread to one thread

change srt epoll thread to one thread for saving thread.
2, judge whether the stream on srt is mpegts. if it isn't mpegts, it can't demux and send to local rtmp local;

Codecov Report

Merging #1597 into develop will decrease coverage by 0.11%.
The diff coverage is 4.16%.

@@            Coverage Diff             @@
##           develop   #1597      +/-   ##
==========================================
- Coverage    68.91%   68.8%   -0.12%
==========================================
  Files           95      96       +1
  Lines        40268   40338      +70
==========================================
+ Hits         27752   27755       +3
- Misses       12516   12583      +67

Impacted Files
Coverage Δ

trunk/src/app/srs_app_config.cpp
81.61% <ø> (ø)
:arrow_up:

trunk/src/app/srs_app_server.cpp
0% <ø> (ø)
:arrow_up:

trunk/src/protocol/srs_rtmp_stack.cpp
89.48% <100%> (ø)
:arrow_up:

trunk/src/app/srs_app_hybrid.cpp
2.81% <2.81%> (ø)

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 8d277c6...1a1d0e9. Read the comment docs.


device provision fails to unpack image for Meles

mx @ Phony in ~ |15:37:30
$ RUYI_DEBUG=X ruyi device provision
debug: [2024-04-09T15:37:32.361209] __file__ = /home/mx/.cache/ruyi/progcache/0.8.0/__main__.py, sys.executable =                          __main__.py:47
                                    /home/mx/.cache/ruyi/progcache/0.8.0/python3, __compiled__ = __nuitka_version__(major=2, minor=1,
                                    micro=4, releaselevel='release', containing_dir='/usr/bin', standalone=True, onefile=True,
                                    macos_bundle_mode=False, no_asserts=False, no_docstrings=False, no_annotations=False, module=False)
debug: [2024-04-09T15:37:32.362643] argv[0] = ruyi, self_exe = /usr/bin/ruyi                                                               __main__.py:54
debug: [2024-04-09T15:37:32.386085] got defaults from system libcrypto libcrypto.so                                                      ssl_patch.py:113
debug: [2024-04-09T15:37:32.386784] X509_get_default_cert_file_env() = SSL_CERT_FILE                                                     ssl_patch.py:114
debug: [2024-04-09T15:37:32.387306] X509_get_default_cert_file() = /usr/lib/ssl/cert.pem                                                 ssl_patch.py:115
debug: [2024-04-09T15:37:32.387856] X509_get_default_cert_dir_env() = SSL_CERT_DIR                                                       ssl_patch.py:116
debug: [2024-04-09T15:37:32.388509] X509_get_default_cert_dir() = /usr/lib/ssl/certs                                                     ssl_patch.py:117
debug: [2024-04-09T15:37:32.473073] PyPI-style version of ruyi: 0.8.0                                                                       version.py:36
debug: [2024-04-09T15:37:32.473798] epoch 0 pre None post None                                                                              version.py:19
debug: [2024-04-09T15:37:32.477866] args=Namespace(func=<compiled_function cli_device_provision at 0x733083e5c640>)                       __init__.py:295

RuyiSDK Device Provisioning Wizard

This is a wizard intended to help you install a system on your device for your
development pleasure, all with ease.

You will be asked some questions that help RuyiSDK understand your device and
your intended configuration, then packages will be downloaded and flashed onto
the device's storage, that you should somehow make available on this host
system beforehand.

Note that, as Ruyi does not run as root, but raw disk access is most likely
required to flash images, you should arrange to allow your user account sudo
access to necessary commands such as dd. Flashing will fail if the sudo
configuration does not allow so.

Continue? (y/N) y

The following devices are currently supported by the wizard. Please pick your device:

  1. Allwinner Nezha D1
  2. Canaan Kendryte K230
  3. Milk-V Duo
  4. Milk-V Duo S
  5. Milk-V Mars
  6. Milk-V Mars CM
  7. Milk-V Meles
  8. Milk-V Pioneer Box
  9. Milk-V Vega
  10. SiFive HiFive Unmatched
  11. Sipeed Lichee RV
  12. Sipeed LicheePi 4A
  13. StarFive VisionFive
  14. StarFive VisionFive2

Choice? (1-14) 7

The device has the following variants. Please choose the one corresponding to your hardware at hand:

  1. Milk-V Meles (4G RAM)
  2. Milk-V Meles (8G RAM)

Choice? (1-2) 1

The following system configurations are supported by the device variant you have chosen. Please pick the one you want to put on the device:

  1. RevyOS for Milk-V Meles (4G RAM)

Choice? (1-1) 1
debug: [2024-04-09T15:37:35.101989] provisioning device variant 'milkv-meles@4g'                                                     provision_cli.py:121

We are about to download and install the following packages for your device:

 * board-image/revyos-milkv-meles
 * board-image/uboot-revyos-milkv-meles-4g

Proceed? (y/N) y
debug: [2024-04-09T15:37:35.942642] about to install for host linux/x86_64: {'board-image/revyos-milkv-meles',                             pkg_cli.py:220
                                    'board-image/uboot-revyos-milkv-meles-4g'}
debug: [2024-04-09T15:37:35.952232] checking /home/mx/.cache/ruyi/distfiles/boot-milkv-meles-1.0.0.ext4                                    distfile.py:44
debug: [2024-04-09T15:37:35.952863] file /home/mx/.cache/ruyi/distfiles/boot-milkv-meles-1.0.0.ext4 not existent                           distfile.py:48
info: downloading https://github.com/milkv-meles/meles-images/releases/download/v1.0.0/boot.ext4 to
/home/mx/.cache/ruyi/distfiles/boot-milkv-meles-1.0.0.ext4
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
100  100M  100  100M    0     0  7104k      0  0:00:14  0:00:14 --:--:-- 13.3M
info: extracting boot-milkv-meles-1.0.0.ext4 for package revyos-milkv-meles-1.0.0
debug: [2024-04-09T15:37:50.761703] checking /home/mx/.cache/ruyi/distfiles/root-meles-20231210_134926.ext4.tar.gz                         distfile.py:44
debug: [2024-04-09T15:37:50.762475] file /home/mx/.cache/ruyi/distfiles/root-meles-20231210_134926.ext4.tar.gz not existent                distfile.py:48
info: downloading https://github.com/milkv-meles/meles-images/releases/download/v1.0.0/root-meles-20231210_134926.ext4.tar.gz to
/home/mx/.cache/ruyi/distfiles/root-meles-20231210_134926.ext4.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
100 1397M  100 1397M    0     0  25.4M      0  0:00:54  0:00:54 --:--:-- 32.2M
info: extracting root-meles-20231210_134926.ext4.tar.gz for package revyos-milkv-meles-1.0.0
debug: [2024-04-09T15:38:50.657875] about to call tar: argv=['tar', '-x', '-z', '-f',                                                       unpack.py:144
                                    '/home/mx/.cache/ruyi/distfiles/root-meles-20231210_134926.ext4.tar.gz', '--strip-components=1', '-C',
                                    '/home/mx/.local/share/ruyi/blobs/.revyos-milkv-meles-1.0.0.tmpgwk_55y6']
Traceback (most recent call last):
  File "/home/mx/.cache/ruyi/progcache/0.8.0/__main__.py", line 57, in <module>
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/cli/__init__.py", line 300, in main
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/device/provision_cli.py", line 30, in cli_device_provision
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/device/provision_cli.py", line 110, in do_provision_interactive
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/device/provision_cli.py", line 149, in do_provision_combo_interactive
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/pkg_cli.py", line 244, in do_install_atoms
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/pkg_cli.py", line 365, in do_install_blob_pkg
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/distfile.py", line 104, in unpack_or_symlink
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/unpack.py", line 80, in do_unpack_or_symlink
  File "/home/mx/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/unpack.py", line 30, in do_unpack
OSError: [Errno 39] Directory not empty: '/home/mx/.local/share/ruyi/blobs/.revyos-milkv-meles-1.0.0.tmpgwk_55y6' -> '/home/mx/.local/share/ruyi/blobs/revyos-milkv-meles-1.0.0'

PS: The image is okay when I tried to manually unpack using tar xvf.
Reproduced on: Ubuntu 22.04.4 LTS & Arch Linux x86_64

貌似多个文件的镜像都会有类似的问题
$ RUYI_DEBUG=x ./ruyi device provision
debug: [2024-04-09T16:02:35.647820] __file__ = /home/hachi/.cache/ruyi/progcache/0.8.0/__main__.py, sys.executable = /home/hachi/.cache/ruyi/progcache/0.8.0/python3, __compiled__ = __nuitka_version__(major=2, minor=1,     __main__.py:47
                                    micro=4, releaselevel='release', containing_dir='/home/hachi/ruyisdk/ruyi-mugen', standalone=True, onefile=True, macos_bundle_mode=False, no_asserts=False, no_docstrings=False,
                                    no_annotations=False, module=False)
debug: [2024-04-09T16:02:35.649046] argv[0] = ./ruyi, self_exe = /home/hachi/ruyisdk/ruyi-mugen/ruyi                                                                                __main__.py:54
debug: [2024-04-09T16:02:35.667331] got defaults from system libcrypto libcrypto.so                                                                                ssl_patch.py:113
debug: [2024-04-09T16:02:35.667880] X509_get_default_cert_file_env() = SSL_CERT_FILE                                                                                ssl_patch.py:114
debug: [2024-04-09T16:02:35.668402] X509_get_default_cert_file() = /etc/ssl/cert.pem                                                                                ssl_patch.py:115
debug: [2024-04-09T16:02:35.668953] X509_get_default_cert_dir_env() = SSL_CERT_DIR                                                                                ssl_patch.py:116
debug: [2024-04-09T16:02:35.669447] X509_get_default_cert_dir() = /etc/ssl/certs                                                                                ssl_patch.py:117
debug: [2024-04-09T16:02:35.669993] get_default_verify_paths() values differ between bundled and system libssl                                                                                ssl_patch.py:45
debug: [2024-04-09T16:02:35.670610] bundled: DefaultVerifyPaths(cafile=None, capath=None, openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/usr/lib/ssl/cert.pem', openssl_capath_env='SSL_CERT_DIR',                     ssl_patch.py:48
                                    openssl_capath='/usr/lib/ssl/certs')
debug: [2024-04-09T16:02:35.671377]  system: DefaultVerifyPaths(cafile='/etc/ssl/cert.pem', capath='/etc/ssl/certs', openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/etc/ssl/cert.pem',                                 ssl_patch.py:49
                                    openssl_capath_env='SSL_CERT_DIR', openssl_capath='/etc/ssl/certs')
debug: [2024-04-09T16:02:35.748763] PyPI-style version of ruyi: 0.8.0                                                                                version.py:36
debug: [2024-04-09T16:02:35.749408] epoch 0 pre None post None                                                                                version.py:19
debug: [2024-04-09T16:02:35.753535] args=Namespace(func=<compiled_function cli_device_provision at 0x7f65c1d64740>)                                                                                __init__.py:295

RuyiSDK Device Provisioning Wizard

This is a wizard intended to help you install a system on your device for your
development pleasure, all with ease.

You will be asked some questions that help RuyiSDK understand your device and
your intended configuration, then packages will be downloaded and flashed onto
the device's storage, that you should somehow make available on this host
system beforehand.

Note that, as Ruyi does not run as root, but raw disk access is most likely
required to flash images, you should arrange to allow your user account sudo
access to necessary commands such as dd. Flashing will fail if the sudo
configuration does not allow so.

Continue? (y/N) y

The following devices are currently supported by the wizard. Please pick your device:

  1. Allwinner Nezha D1
  2. Canaan Kendryte K230
  3. Milk-V Duo
  4. Milk-V Duo S
  5. Milk-V Mars
  6. Milk-V Mars CM
  7. Milk-V Meles
  8. Milk-V Pioneer Box
  9. Milk-V Vega
  10. SiFive HiFive Unmatched
  11. Sipeed Lichee RV
  12. Sipeed LicheePi 4A
  13. StarFive VisionFive
  14. StarFive VisionFive2

Choice? (1-14) 12

The device has the following variants. Please choose the one corresponding to your hardware at hand:

  1. Sipeed LicheePi 4A (8G RAM)
  2. Sipeed LicheePi 4A (16G RAM)

Choice? (1-2) 1

The following system configurations are supported by the device variant you have chosen. Please pick the one you want to put on the device:

  1. openEuler RISC-V (headless) for Sipeed LicheePi 4A (8G RAM)
  2. openEuler RISC-V (XFCE) for Sipeed LicheePi 4A (8G RAM)
  3. RevyOS for Sipeed LicheePi 4A (8G RAM)

Choice? (1-3) 1
debug: [2024-04-09T16:02:42.216698] provisioning device variant 'sipeed-lpi4a@8g'                                                                                provision_cli.py:121

We are about to download and install the following packages for your device:

 * board-image/oerv-sipeed-lpi4a-headless
 * board-image/uboot-oerv-sipeed-lpi4a-8g

Proceed? (y/N) y
debug: [2024-04-09T16:02:43.764495] about to install for host linux/x86_64: {'board-image/oerv-sipeed-lpi4a-headless', 'board-image/uboot-oerv-sipeed-lpi4a-8g'}                                                              pkg_cli.py:220
debug: [2024-04-09T16:02:43.783696] checking /home/hachi/.cache/ruyi/distfiles/boot-20231130-224203.ext4.zst                                                                                distfile.py:44
debug: [2024-04-09T16:02:43.784871] file /home/hachi/.cache/ruyi/distfiles/boot-20231130-224203.ext4.zst not existent                                                                                distfile.py:48
info: downloading https://mirror.iscas.ac.cn/openeuler-sig-riscv/openEuler-RISC-V/preview/openEuler-23.09-V1-riscv64/lpi4a/boot-20231130-224203.ext4.zst to /home/hachi/.cache/ruyi/distfiles/boot-20231130-224203.ext4.zst
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  243M  100  243M    0     0  8416k      0  0:00:29  0:00:29 --:--:-- 8637k
info: extracting boot-20231130-224203.ext4.zst for package oerv-sipeed-lpi4a-headless-0.2309.1
debug: [2024-04-09T16:03:13.868316] about to call zstd: argv=['zstd', '-d', '/home/hachi/.cache/ruyi/distfiles/boot-20231130-224203.ext4.zst', '-o', './boot-20231130-224203.ext4']                                            unpack.py:231
/home/hachi/.cache/ruyi/distfiles/boot-20231130-224203.ext4.zst: 524288000 bytes
debug: [2024-04-09T16:03:14.163059] checking /home/hachi/.cache/ruyi/distfiles/root-20231130-224203.ext4.zst                                                                                distfile.py:44
debug: [2024-04-09T16:03:14.163699] file /home/hachi/.cache/ruyi/distfiles/root-20231130-224203.ext4.zst not existent                                                                                distfile.py:48
info: downloading https://mirror.iscas.ac.cn/openeuler-sig-riscv/openEuler-RISC-V/preview/openEuler-23.09-V1-riscv64/lpi4a/root-20231130-224203.ext4.zst to /home/hachi/.cache/ruyi/distfiles/root-20231130-224203.ext4.zst
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  905M  100  905M    0     0  8682k      0  0:01:46  0:01:46 --:--:-- 9760k
info: extracting root-20231130-224203.ext4.zst for package oerv-sipeed-lpi4a-headless-0.2309.1
debug: [2024-04-09T16:05:02.605330] about to call zstd: argv=['zstd', '-d', '/home/hachi/.cache/ruyi/distfiles/root-20231130-224203.ext4.zst', '-o', './root-20231130-224203.ext4']                                            unpack.py:231
/home/hachi/.cache/ruyi/distfiles/root-20231130-224203.ext4.zst:<PHONE_NUMBER> bytes
Traceback (most recent call last):
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/__main__.py", line 57, in <module>
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/cli/__init__.py", line 300, in main
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/device/provision_cli.py", line 30, in cli_device_provision
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/device/provision_cli.py", line 110, in do_provision_interactive
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/device/provision_cli.py", line 149, in do_provision_combo_interactive
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/pkg_cli.py", line 244, in do_install_atoms
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/pkg_cli.py", line 365, in do_install_blob_pkg
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/distfile.py", line 104, in unpack_or_symlink
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/unpack.py", line 80, in do_unpack_or_symlink
  File "/home/hachi/.cache/ruyi/progcache/0.8.0/ruyi/ruyipkg/unpack.py", line 30, in do_unpack
OSError: [Errno 39] Directory not empty: '/home/hachi/.local/share/ruyi/blobs/.oerv-sipeed-lpi4a-headless-0.2309.1.tmp0ip1ivbg' -> '/home/hachi/.local/share/ruyi/blobs/oerv-sipeed-lpi4a-headless-0.2309.1'

https://github.com/ruyisdk/ruyi/blob/24a701c18375eb4c8f59ecfb220b036a203e8253/ruyi/ruyipkg/unpack.py#L30C9-L30C38
这里 os.replace 会坏掉


NodeJS 8.0 requirement

Hi! I noticed that this package has been updated to require NodeJS 8.0 or higher.
Why is this the case? I see that the sourcecode is TypeScript with ES5 as a target. Is there perhaps a dependency that forces 8.0 or higher?

I removed the dependency on Q since ES6 promises are built into Node now. However, only in version 8 have they added the Util.promisify method, which replaces Q.nfcall and Q.nfapply, which are used extensively throughout. I bumped the version of TFX to 0.5.x so that anyone with a ~ or ^ dependency won't pull in the new version.
Node 8.9.3 is the current LTS release, so I would think consumers are able to upgrade. But it seems there has been some pushback, so I will look into writing my own promisify to not depend on NodeJS 8.

Fixed and published v0.5.2 - tested and working on Node 4.8.7.


puck-rich-text not working with the latest version of Puck

Just FYI that @tohuhono/puck-rich-text doesn't appear to be working anymore in the latest version of Puck. When clicking the item, contenteditable isn't triggered.
Not sure if there's an easy fix? I was also wondering whether this component could be changed so as to enter editing mode upon double-click instead.

Will take a look in the next few days.

fixed by<EMAIL_ADDRESS>

Glorious - thank you! :)


DROOLS-972: adding cdi scopes examples and tests

here are some tests showing the different scopes and behaviours for the @kie injections in general.
Notice another PR in the droolsjbpm-build-bootstrap repository.

Incorporated by https://github.com/droolsjbpm/drools/pull/717


Angle API

Currently there is no API to get the current angle of the analog. There should be an API to request the current angle of the analog.
Or the angle of the can be passed down in the axis event.
GamepadManager.on('connect', function(pController) {
    pController.on('axis', (pAxisName, pValue, pRepeat, pAngle) => {
    });
});

The pAngle parameter would allow the user to know the current angle of the analog and use it accordingly in their application without having to calculate it themselves.

The API is now as follows.
GamepadManager.on('connect', function(pController) {
    pController.on('axis', (pAxisName, pValue, pAngle, pRepeat) => {
    });
});


Sending data to remote link, how can i change the method from POST to PUT

Your Environment

Plugin version: Latest
Platform: iOS or Android
OS version: Mac OS Sierra
Device manufacturer and model: Apple /Mac
React Native version: 0.55
Plugin configuration options:
Link to your project:

Context
Hi thanks for a great plugin, i am updating user's location to firebase database, i can post the location to the server successfully, but i need to overwrite the database with updated location. So is it possible to change the POST method to PUT ? or any other solution.
Thanks
Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

Context

Debug logs

Sorry, currently that's not possible. You will to fork this project and change it yourself. Or introduce some proxy before application server, that will translate POST for PUT.

I see, can you specify which file i need to look at for the changes in method.


Change RSS to metapackage

I think is the change proposed in https://github.com/KSP-CKAN/NetKAN/pull/889#issuecomment-88018570
Depends on https://github.com/KSP-CKAN/NetKAN/pull/889 and https://github.com/KSP-CKAN/NetKAN/pull/890

Nope this is wrong! I'll do another one, sorry for confusion.


get/set/hasContext doesn't work in production code outside a component

Describe the bug
I'm trying to use the context functions in library code. They work when using both vite dev and vite preview when linking to the library directly. But when publishing to npm and including the library from there, an exception is thrown (see the logs).
Reproduction

Create a new sveltekit todo app
Add this code to +layout.svelte:

import { Flash } from "sveltekit-flash-message/client"
import { page } from '$app/stores'

const flash = new Flash(page)
const message = flash.message

Explanation
new Flash(page) calls hasContext in its constructor, throwing the error since hasContext cannot find current_component at that point. Code:
https://github.com/ciscoheat/sveltekit-flash-message/blob/c5198a35b724d53e0eab780e16d09c7c5c1499fb/src/lib/client.ts#L61-L66
Stackblitz reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-ask2u7?file=src%2Froutes%2F%2Blayout.svelte&terminal=dev
Logs
Error: Function called outside component initialization
    at get_current_component (file:///E:/Projects/TEST/svelte-next/node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/internal/index.mjs:953:15)
    at hasContext (file:///E:/Projects/TEST/svelte-next/node_modules/.pnpm/svelte@3.49.0/node_modules/svelte/internal/index.mjs:995:12)
    at debugflash (file:///E:/Projects/TEST/svelte-next/node_modules/.pnpm/sveltekit-flash-message@0.6.6/node_modules/sveltekit-flash-message/client.js:52:7)
    at file:///E:/Projects/TEST/svelte-next/.svelte-kit/output/server/entries/pages/_layout.svelte.js:16:3
    at Object.$$render (file:///E:/Projects/TEST/svelte-next/.svelte-kit/output/server/chunks/index.js:89:18)
    at file:///E:/Projects/TEST/svelte-next/.svelte-kit/output/server/index.js:36:97
    at $$render (file:///E:/Projects/TEST/svelte-next/.svelte-kit/output/server/chunks/index.js:89:18)
    at Object.render (file:///E:/Projects/TEST/svelte-next/.svelte-kit/output/server/chunks/index.js:97:20)
    at render_response (file:///E:/Projects/TEST/svelte-next/.svelte-kit/output/server/index.js:938:29)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

System Info
System:
    OS: Windows 10 10.0.19043
    CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
    Memory: 43.25 GB / 63.93 GB
  Binaries:
    Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (104.0.1293.70)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.71
    @sveltejs/kit: next => 1.0.0-next.460
    svelte: ^3.49.0 => 3.49.0
    vite: ^3.1.0-beta.1 => 3.1.0-beta.1

Severity
blocking all usage of SvelteKit
Additional Information
No response

When I run your example I don't see the log message you provided. Can you provide an actual reproduction of this issue?

Are you using the latest SvelteKit? What happens if you set vitePlugin.prebundleSvelteLibraries to false in svelte.config.js? I have a hunch this is related to prebundleSvelteLibraries being true by default now.

Is this correct?
const config = {
	kit: {
		adapter: adapter(),

	},
	vitePlugin: {
		prebundleSvelteLibraries: false
	}
};

It's still causing errors. Something interesting is that my package works inside a monorepo (imported via "lucia-auth": "workspace:*") when using pnpm, but breaks when using an published version using npm.

unfortunately prebundleSvelteLibraries is forced true in sveltekit right now as it is passed as an inline option. these have precedence over options specified in the config file.
https://github.com/sveltejs/kit/blob/edd815ed7bba7ab88461f9291f924c05a01d1328/packages/kit/src/exports/vite/index.js#L64
introduced here:
https://github.com/sveltejs/kit/commit/e25074cfedd4147cf3091442cd7687828c6282a9#diff-beef34c36ed87d7835d0166655010910fba9949a6ef95042cb468d7d73423816R64
The only workaround for that i see is using something like pnpm patch to change the value provided inline in svelte-kit.
cc @benmccann

@pilcrowOnPaper can you provide a repository with a reproduction?.

vite-plugin-svelte 1.2.0 improved how prebundleSvelteLibraries works and i cannot reproduce the stacktrace from the original post with that. Unfortunately i'm not sure what is supposed to happen instead of that error so i would appreciate if @ciscoheat could confirm it works now.
And @pilcrowOnPaper if you still find issues with 1.2.0 and prebundleSvelteLibraries, a reproduction would be greatly appreciated. thanks (:

@dominikg I just tested it with the latest sveltekit, but still the same "Function called outside component initialization" problem. It works immediately when I add this to vite.config.js:
ssr: {
  noExternal: ['sveltekit-flash-message']
}

@ciscoheat  looking at<EMAIL_ADDRESS>, there is no peerDependency on svelte.
This completely relies on the users project setup having deduplication for svelte and pulling it in anyways, potentially causing problems after svelte-4 release if the apis differ there. You should declare the peerDependency and vite-plugin-svelte is going to add the noExternal entry automatically.
This peerDependency declaration is not needed for ui libraries the only distribute .svelte source code, but it is needed if you make use of svelte apis in the library itself.

If that still doesn't help, please create an updated reproduction with step-by-step instructions on how to produce the error message (preferably from scratch with the sveltekit skeleton or vite+svelte template, not the sveltekit demo app)

update, seems you're using sveltekit directly too, so that also needs to be a peerDependency  https://github.com/ciscoheat/sveltekit-flash-message/blob/master/src/lib/server.ts#L2

@dominikg
Just updated my library and can confirm the issue has been resolved by adding svelte to peerDependencies. Thanks!


Blob test

Hi, why https://github.com/ploxxxy/tdf.js/blob/main/tests%2Fblob.test.ts#L6-L6
Is not []byte{0xda, 0x1b, 0x35, 0x2, 0x4, 0xde, 0xad, 0xbe, 0xef}

Hi, turns out writing blobs was broken. It now should work as intended, thanks

Hi, turns out writing blobs was broken. It now should work as intended, thanks

Nice work, i will try to translate it as go
https://github.com/ddkwork/tdf


Hows do you install use tfs-cli in a closed network environment?

Our tfs build server does not have access to the internet. After getting node.js installed next I tried to install tfx-cli. using the command: npm install -g tfx-cli As far as I can tell, now it wants to download dependencies required. It looks like a whole web of dependencies - nuget style. Am I expected to set up an internal npm server with the dozens of dependencies required, becoming an expert on node.js and npm - just so I can add some custom commands to our tfs server ? Is there a version of tfs-cli I can get that includes all dependencies ?
This is a real problem - DoD, Government, Financial businesses, etc. do not want to expose development environments to the internet. A tool like tf.exe is a known quantity, installed from a setup utility. This npm/node.js - while limited to javascript vulnerabilities - requires internet access just to set up and is too hard to fly in controlled environments - and they are getting more and more strangling by the day.

Joe?

I's actually not a problem.
npm install supports installing from a directory.  So, acquire from an internet connected machine and now you have a disconnected installer.  npm install ./ -g
I can write more detailed docs later.  we could also "release" a zip here.

Who is this ?
From: hounddog22030<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 2:02 AM
To: Microsoft/tfs-cli<EMAIL_ADDRESS>Cc: jlongo62<EMAIL_ADDRESS>Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a closed network environment? (#94)
Joe?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-209775273 https://github.com/notifications/beacon/AHjTg7e97MOYOCl2A8zWCUUFVLH9S2RUks5p3dhEgaJpZM4HyVAp.gif

The bottom of this page shows how to install from a folder (it installs from the _build/app folder)
https://github.com/Microsoft/tfs-cli/blob/master/docs/contributions.md

Your reply  is cryptic…
If you are trying to answer my question, on deploying tfx to a network isolated machine, please do. I neither am nor want to be an npm/node.js expert. I have already wasted a lot of time going down another open source rabbit hole – npm box; it does not work.
The problem is tfx has a whole tree of dependencies. They all need to packaged into the install. If you want to use npm to install, fine – but give us clear instructions. We are not experts at these scripting toys.
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: Bryan MacFarlane<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 4:01 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS>Cc: jlongo62<EMAIL_ADDRESS>Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a closed network environment? (#94)
The bottom of this page shows how to install from a folder (it installs from the _build/app folder)
https://github.com/Microsoft/tfs-cli/blob/master/docs/contributions.md
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210124014 https://github.com/notifications/beacon/AHjTg_BKBisPYTEyodYHT_XAiCyXH1U-ks5p3p0KgaJpZM4HyVAp.gif

Classic Joe... Biting the hand that tries to feed you...
I suggest using Sonatype Nexus
On Apr 14, 2016 5:09 PM, "jlongo62"<EMAIL_ADDRESS>wrote:

Your reply is cryptic…
If you are trying to answer my question, on deploying tfx to a network
isolated machine, please do. I neither am nor want to be an npm/node.js
expert. I have already wasted a lot of time going down another open source
rabbit hole – npm box; it does not work.
The problem is tfx has a whole tree of dependencies. They all need to
packaged into the install. If you want to use npm to install, fine – but
give us clear instructions. We are not experts at these scripting toys.
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: Bryan MacFarlane<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 4:01 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS>Cc: jlongo62<EMAIL_ADDRESS>Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a
closed network environment? (#94)
The bottom of this page shows how to install from a folder (it installs
from the _build/app folder)
https://github.com/Microsoft/tfs-cli/blob/master/docs/contributions.md
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210124014> <
https://github.com/notifications/beacon/AHjTg_BKBisPYTEyodYHT_XAiCyXH1U-ks5p3p0KgaJpZM4HyVAp.gif>
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210149672

Where do I know you from ?
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: hounddog22030<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 6:06 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS>Cc: jlongo62<EMAIL_ADDRESS>Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a closed network environment? (#94)
Classic Joe... Biting the hand that tries to feed you...
I suggest using Sonatype Nexus
On Apr 14, 2016 5:09 PM, "jlongo62"<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:

Your reply is cryptic…
If you are trying to answer my question, on deploying tfx to a network
isolated machine, please do. I neither am nor want to be an npm/node.js
expert. I have already wasted a lot of time going down another open source
rabbit hole – npm box; it does not work.
The problem is tfx has a whole tree of dependencies. They all need to
packaged into the install. If you want to use npm to install, fine – but
give us clear instructions. We are not experts at these scripting toys.
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: Bryan MacFarlane<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 4:01 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS><EMAIL_ADDRESS>>
Cc: jlongo62<EMAIL_ADDRESS><EMAIL_ADDRESS>>
Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a
closed network environment? (#94)
The bottom of this page shows how to install from a folder (it installs
from the _build/app folder)
https://github.com/Microsoft/tfs-cli/blob/master/docs/contributions.md
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210124014> <
https://github.com/notifications/beacon/AHjTg_BKBisPYTEyodYHT_XAiCyXH1U-ks5p3p0KgaJpZM4HyVAp.gif>
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210149672

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210174916 https://github.com/notifications/beacon/AHjTg4aWRnBuC0fiA1JDEgyGCfMDr_MYks5p3rpagaJpZM4HyVAp.gif

Do you recognize the phrase "blocks of code decorated with the testmethod
attribute"?
On Apr 14, 2016 6:07 PM, "jlongo62"<EMAIL_ADDRESS>wrote:

Where do I know you from ?
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: hounddog22030<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 6:06 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS>Cc: jlongo62<EMAIL_ADDRESS>Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a
closed network environment? (#94)
Classic Joe... Biting the hand that tries to feed you...
I suggest using Sonatype Nexus
On Apr 14, 2016 5:09 PM, "jlongo62"<EMAIL_ADDRESS><mailto:
<EMAIL_ADDRESS>> wrote:

Your reply is cryptic…
If you are trying to answer my question, on deploying tfx to a network
isolated machine, please do. I neither am nor want to be an npm/node.js
expert. I have already wasted a lot of time going down another open
source
rabbit hole – npm box; it does not work.
The problem is tfx has a whole tree of dependencies. They all need to
packaged into the install. If you want to use npm to install, fine – but
give us clear instructions. We are not experts at these scripting toys.
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: Bryan MacFarlane<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 4:01 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS><mailto:
<EMAIL_ADDRESS>>
Cc: jlongo62<EMAIL_ADDRESS><EMAIL_ADDRESS>>
Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a
closed network environment? (#94)
The bottom of this page shows how to install from a folder (it installs
from the _build/app folder)
https://github.com/Microsoft/tfs-cli/blob/master/docs/contributions.md
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210124014> <

https://github.com/notifications/beacon/AHjTg_BKBisPYTEyodYHT_XAiCyXH1U-ks5p3p0KgaJpZM4HyVAp.gif

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210149672

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210174916> <
https://github.com/notifications/beacon/AHjTg4aWRnBuC0fiA1JDEgyGCfMDr_MYks5p3rpagaJpZM4HyVAp.gif>
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210175288

no
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: hounddog22030<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 6:10 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS>Cc: jlongo62<EMAIL_ADDRESS>Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a closed network environment? (#94)
Do you recognize the phrase "blocks of code decorated with the testmethod
attribute"?
On Apr 14, 2016 6:07 PM, "jlongo62"<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:

Where do I know you from ?
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: hounddog22030<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 6:06 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS><EMAIL_ADDRESS>>
Cc: jlongo62<EMAIL_ADDRESS><EMAIL_ADDRESS>>
Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a
closed network environment? (#94)
Classic Joe... Biting the hand that tries to feed you...
I suggest using Sonatype Nexus
On Apr 14, 2016 5:09 PM, "jlongo62"<EMAIL_ADDRESS><EMAIL_ADDRESS><mailto: <mailto:
<EMAIL_ADDRESS><EMAIL_ADDRESS>> > wrote:

Your reply is cryptic…
If you are trying to answer my question, on deploying tfx to a network
isolated machine, please do. I neither am nor want to be an npm/node.js
expert. I have already wasted a lot of time going down another open
source
rabbit hole – npm box; it does not work.
The problem is tfx has a whole tree of dependencies. They all need to
packaged into the install. If you want to use npm to install, fine – but
give us clear instructions. We are not experts at these scripting toys.
Regards,
Joseph Longo
.Net Healthcare Developer
703-819-8048
703-670-7026
From: Bryan MacFarlane<EMAIL_ADDRESS>Sent: Thursday, April 14, 2016 4:01 PM
To: Microsoft/tfs-cli<EMAIL_ADDRESS><EMAIL_ADDRESS><mailto: <mailto:
<EMAIL_ADDRESS><EMAIL_ADDRESS>> >
Cc: jlongo62<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>>
Subject: Re: [Microsoft/tfs-cli] Hows do you install use tfs-cli in a
closed network environment? (#94)
The bottom of this page shows how to install from a folder (it installs
from the _build/app folder)
https://github.com/Microsoft/tfs-cli/blob/master/docs/contributions.md
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210124014> <

https://github.com/notifications/beacon/AHjTg_BKBisPYTEyodYHT_XAiCyXH1U-ks5p3p0KgaJpZM4HyVAp.gif

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210149672

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub <
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210174916> <
https://github.com/notifications/beacon/AHjTg4aWRnBuC0fiA1JDEgyGCfMDr_MYks5p3rpagaJpZM4HyVAp.gif>
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210175288

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/Microsoft/tfs-cli/issues/94#issuecomment-210176430 https://github.com/notifications/beacon/AHjTg_zZ5m343h2UeTMLtByIcfW12ldYks5p3rtPgaJpZM4HyVAp.gif

Your reply is cryptic…
If you are trying to answer my question, on deploying tfx to a network
isolated machine, please do.
The problem as I see it is tfx has a whole tree of dependencies. node.js and npm are designed by Open Source community that does not have to deal with closed environments – (those children  probably don’t even know what a closed environment is or why anyone would have one). The old tf.exe was a standalone, installed with a tfs client. Tfx requires node.js, then npm, then a slew of dependencies, and those dependencies begat other dependencies. If tfx is going to be the tool we need use going forward, it needs to be packaged into some kind of stand-alone kit. This package needs to include “clear” instructions for where to unzip it, what command to run, etc. A walk-though needs to be included that assumes the user does not have all the required pre-requisites.
Installing tfx was like peeling an onion. I have tfx running and now and I also know about npm and node, etc. – a huge waste of time. It took a long time to work out the details and was very frustrating. The “docs” assume the user already knows about nm and node.
I still don’t have tfx running on my build server – because I can’t download anything to it. Software has be transferred over from a separate machine.
When working with Microsoft tools, I am used to not having  my time wasted by half-completed software. I hope Satya is not taking us into this world….

Agree...   offline means offline...   it means that the consumer must be able to easily ascertain and gather the dependencies in a reasonable manner in order to support offline.  So far, no easy path has been defined.


fix(staging/infra/redis): use correct connection factory

Thanks for submitting a PR! Please check the boxes below:

[ ] I have run pre-commit to check linting
[ ] I have added information to docs/ if required so people know about the feature!
[ ] I have filled in the "Changes" section below?
[ ] I have filled in the "How did you test this code" section below?
[ ] I have used a Conventional Commit title for this Pull Request

Changes
Please describe.
How did you test this code?

Please describe.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (61537ce) 95.96% compared to head (c41d8a5) 18.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3353       +/-   ##
===========================================
- Coverage   95.96%   18.00%   -77.96%
===========================================
  Files        1071      990       -81
  Lines       32743    28560     -4183
===========================================
- Hits        31421     5143    -26278
- Misses       1322    23417    +22095

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Provide "Add new cluster" as welcome page

Provide "Add new cluster" as welcome page
Signed-off-by: azerr<EMAIL_ADDRESS>

This PR provides the standard vscode mechanism ( welcome page) to provide  a button to ad new cluster when treeview is empty:

This PR provides the standard vscode mechanism ( welcome page) to provide  a button to ad new cluster when treeview is empty:

For the CHANGELOG, I don't know if I must update something, since it replaces the no cluster item PR which belongs to this millestone.

For the CHANGELOG, I don't know if I must update something, since it replaces the no cluster item PR which belongs to this millestone.

For the CHANGELOG, I don't know if I must update something, since it replaces the no cluster item PR which belongs to this millestone.

change link to #76 (or add) with this PR

For the CHANGELOG, I don't know if I must update something, since it replaces the no cluster item PR which belongs to this millestone.

change link to #76 (or add) with this PR

change link to #76 (or add) with this PR

updated.

change link to #76 (or add) with this PR

updated.

@angelozerr thanks, looks way better and removes some code at the same time. My favorite kind of change :-)

@angelozerr thanks, looks way better and removes some code at the same time. My favorite kind of change :-)


link on right sive nave do not work

The links on the right side nav does not work. The url is not correct. It points to the text and not the id.
And the id on the h1 tags are not correct, with spaces and other unhallowed chars.

Fixed in a22c0b098d87a891217b422e59475174103235eb


[ValSet-Pref] UnDelegate tokens from val-set using MsgUnDelegateFromValidatorSet

Part of : https://github.com/osmosis-labs/osmosis/issues/2579
Merge https://github.com/osmosis-labs/osmosis/pull/3260 first
What is the purpose of the change
UndelegateFromValidatorSet undelegates {coin} amount from the validator set.
For ex: userA has staked 10tokens with weight {Val->0.5, ValB->0.3, ValC->0.2}
undelegate 6osmo with validator-set {ValA -> 0.5, ValB -> 0.3, ValC -> 0.2}
our undelegate logic would attempt to undelegate 3osmo from A , 1.8osmo from B, 1.2osmo from C
Brief Changelog
Testing and Verifying
Added tests for TestUnDelegateFromValidatorSet
Documentation and Release Note

Does this pull request introduce a new feature or user-facing behavior changes? (yes / no)
Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (yes / no)
How is the feature or change documented? (not applicable   /   specification (x/<module>/spec/)  /  Osmosis docs repo   /   not documented)

Closing this PR in favor of adding Delegate and Undelegate to the same PR https://github.com/osmosis-labs/osmosis/pull/3260


Page tables aren't mapped

The virtual memory manager creates the tables in the physical memory, but they don't get identity mapped, which causes page faults if they're accessed after enabling paging.

Freed 32M before the kernel, which are identity mapped. They now should reside there.


About ohem loss

Hi, Xiaokang,
Thanks for sharing so solid work! I noticed that the loss in supervised learning is ohem loss. Have you ever done the experiments for ce loss and how about the result?

Hi, for supervised training, we use OHEM loss on CityScapes and CE loss on VOC dataset, which is a common setting in Semantic Segmentation. We haven't tried CE loss on CityScapes.

In my opinion, for semi-supervised training, all methods use CE loss for both the two datasets. The baseline of Deeplab v3+ with ResNet-101 on 1/8 cityscapes setting is 72-73 in your paper. However, in A Simple Baseline for Semi-supervised Semantic Segmentation with Strong Data Augmentation, the result is only 68.9.

Hi, some researchers in semi-supervised segmentation area may like to use CE loss for CityScapes (as you mentioned). However, OHEM is a common setting in sueprvised training setting on CityScapes. Since it brings no computational cost/parameters during inference, why do we deliberately use a lower baseline (e.g. with CE loss)?
I also want to clarify two points:

When compared with SOTA on Cityscapes, we use OHEM loss (on labeled set) for all the methods so the comparison is fair (their supervised baseline is exactly the same one).
If the baseline for semi-supervised learning is very low, the gain may be large and seems that the semi-supervised method have a very large impact on the performance. However, it that true? I think, we study semi-supervised learning in order to use unlabeled data to improve the performance of the model, not to see large gains on a low baseline.

I think if the supervised baseline is not trained well enough, then we cannot tell where the gain brought by semi-supervised learning actually comes from.

Yeah, I agree with you that studying semi-supervised learning on a higher baseline. I'm sorry for that I havn't noticed that you reproduce all the SOTA methods by yourself. Maybe you can point it on the benchmark, https://paperswithcode.com/task/semi-supervised-semantic-segmentation. Or other people may be confused by the big margin. That's only my own point and please forgive me if I bother you.

Hi, I know what you mean. However, the benchmark website you provide is just a reference. The comparisons in it are not fair at all, for example, they didn’t even use the same data partition (i.e. the same 1/8 subset of PASCAL VOC).

Thanks for your kind and quick reply.


[Checkbox] incorrect cursor for disabled state.

See http://jsfiddle.net/pt9jusoe/

@PSyton your link is a default SUI Fiddle content.
-G

Sorry http://jsfiddle.net/5m24e927/1/

Fixed in next


HTML attributes with double quotes in them break parsing

Given this HTML:
Hello
When passed into Dom::load(), the parser ends up correctly finding the element, but misparses the attributes and body text. The attributes (from var_dump($element->getAttributes())) appear like so:
array(1) {   ["title"]=>   string(10) "This is a " }
and the body appears like so (from var_dump($element->text())):
string(58) "est" of double quotes" href="http://www.example.com">Hello"
I realize that putting double quotes inside an attribute is noncomformant to HTML, but ideally PHPHtmlParser should be tolerant of such things and parse the element anyway, much in the way web browsers do. While it may be impossible to accurately determine what the intended title attribute's correct value is, it should be possible to ensure that the element text does not include content from before the > marker.

I agree that we should handle this. I am more curious in knowing how you think we should handle this.
I have a few ideas but I am not fully aware of how browsers do this. If you have any insight into this or any ideas please let me know.
thanks

Ultimately it comes down to detecting the > that ends the start tag, which can be tricky if there's multiple > inside other attributes in the tag, or an uneven number of " marks spread across one or more attributes. I assume browsers use some complicated heuristics, but messing around with various befunged attributes in Firefox, it looks like it treats the first > that's not inside an attribute (that is, not between a matching pair of " marks) as the end of the open tag. Everything after that (until a <) is considered part of the body of the element.
So there'd be two main (non-nominal) cases: an attribute with an extra pair of unescaped " inside of it (e.g. ), and an attribute with one extra " inside it (e.g. ). The former is obviously easier; the latter could be treated as having one attribute called title with value This , and three other attributes named is, an, and attribute, each with empty values (the " immediately after attribute would be discarded as an invalid token since you can't have a double quote after an attribute name, there has to be an = first). The > is thus not inside an attribute, from the parser's POV, and ends the tag.
Another edge case is something like this: something. Firefox discards the entire thing as unparseable.
Presumably the corresponding logic can be found (somewhere) in the vast Firefox (Gecko?) and Chrome (Chromium) codebases.


Add use of app.config.json and keycloak.json

Description
This PR includes the following proposed change(s):

TCVP-378, TCVP-372 - Add use of app.config.json and keycloak.json.

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Does the change impact or break the Docker build?

[ ] Yes
[ ] No

If Yes: Has Docker been updated accordingly?

[ ] Yes
[ ] No

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[x] New and existing unit tests pass locally with my changes

I am going to ignore the .NET API test failures in this PR because it does not modify any .NET code. The error is related to how the .NET unit tests are written. I thought I had resolved it previously.


Allow the app to run in Docker

Dockerize the app for easy deployment. The static resources are running on an nginx image.
Perhaps it may be even better if you can push the image to Docker Hub, so that users do not need to build it locally.

@all-contributors please add @opw0011 for code


RFC: More extrapolation behaviors

This PR re-implements most of the extrapolation behaviours that were defined before #31 merged.
Todo:

[x] Reflecting
[x] Periodic
[x] Linear
[x] make sure it works with DimSpecs
[x] Tests
[x] Squash
[x] Documentation

If you're missing something, let me know.

I made a few too many typos for the history to be even remotely coherent, so I took the liberty to squash them away. I've fixed the looping - reflection is now done using modulo operations into a "double-domain", and if x is in the upper half it is reflected over the upper "single-domain" boundary, much like you suggested (and like Grid does).
The only other comment you had was a +1 on a parameter rename on a method that I've now been able to remove completely :smile:

LGTM. I haven't really looked at the extrapolation stuff yet, but I will soon. I want fill (e.g., with NaN).
One question: do we clamp twice? Once in the itp and once in the etp?

No, the itp doesn't do any bounds checking at all - it just uses the outermost polynomial as extrapolation. I've been thinking a little about what the most reasonable thing to do is, an I'm leaning towards throwing a bounds error unless in an @inbounds block, but I haven't had time to invest in trying something out.

If you grep for "clamp" you get 12 hits. For example, https://github.com/tlycken/Interpolations.jl/blob/6ce4b2a6cacd9bfefac5d8701a00fa157e849508/src/b-splines/constant.jl#L5

Huh, yeah you're right. I'll have to take a look at that, but it will be at least September before I can do it.

@timholy I think the only thing I want to do before merging this is adding some tests to make sure this doesn't break the DimSpec stuff. However, I'm a little unsure on exactly how to best test that (mainly because I haven't had time to look carefully at the implementation, nor seen any actual usage of them in other code). What's a good test case, and the expected behavior, for extrapolating DimSpecced interpolation objects?

Sorry I forgot about this question. Some examples are here.

I've realized this approach might have a few limitations; since we instantiate different types of extrapolation objects for different extrapolation schemes, it's not possible to have different behaviors in different directions. That's kind of dull.
Unless anyone protests, I'm going to attempt a rewrite on the entire extrapolation implementation, that lets us do things like extrapolate(itp, Tuple{Flat, Linear}). In the long run, I would like to even support extrapolate(itp, Tuple{Flat, Tuple{Flat, Linear}}) to do constant extrapolation in the x-direction, and constant extrapolation for y < lbound(itp, 2) but linear extrapolation for y > ubound(itp, 2).

Sounds cool to me.

I merged some new cool stuff, but periodic and reflecting extrapolation rely on mod, which isn't implemented for dual numbers yet. (I could turn the flag green by just removing those tests until that PR merges, but I'm afraid I'll forget to re-activate them...)

@timholy, I'm really excited about this :dancer:
julia> using Interpolations

help?> extrapolate
search: extrapolate FilledExtrapolation AbstractExtrapolation

  extrapolate(itp, fillvalue) creates an extrapolation object that returns the fillvalue any
  time the indexes in itp[x1,x2,...] are out-of-bounds.

  extrapolate(itp, scheme) adds extrapolation behavior to an interpolation object, according
  to the provided scheme.

  The scheme can take any of these values:

    •  Throw - throws a BoundsError for out-of-bounds indices
    •  Flat - for constant extrapolation, taking the closest in-bounds value
    •  Linear - linear extrapolation (the wrapped interpolation object must support gradient)
    •  Reflect - reflecting extrapolation
    •  Periodic - periodic extrapolation

 You can also combine schemes in tuples. For example, the scheme Tuple{Linear, Flat} will
 use linear extrapolation in the first dimension, and constant in the second.

 Finally, you can specify different extrapolation behavior in different direction.
 Tuple{Tuple{Linear,Flat}, Flat} will extrapolate linearly in the first dimension if the index
  is too small, but use constant etrapolation if it is too large, and always use constant
  extrapolation in the second dimension.

I'm excited, too! I think this is the last step for matching Grid feature-for-feature? (And of course it exceeds Grid in so many ways.)

The only thing lacking is cubic interpolation and evaluation of Hessians, but that never quite worked in Grid anyway, so yeah, I think all features that people actually used are there now (along with so much more, as you said).

Woop woop! :tada: :balloon: :beers:

As an interested observer and admirer of your work, please note that some of us make essential use of the Hessian calculations available in Grid.    In the meantime, thanks for all the great work you've put into this package.

@simonp0420 Thanks for the kind words!
Cubic splines and Hessian evaluation is definitely on the roadmap; I won't be satisfied with this package until Grid.jl can be replaced entirely (even though the API is obviously quite different).


Add an auto discovery plugin for mixins

This will automatically find mixins in the mixin plugin, not requiring the manual configuration. This is less friction, especially for newer users. Usually this isn't super advisable, or needs more configuration to avoid server/client mixins being incorrectly applied, but with the target demographic of mostly client mods, I think this is a worthwhile change.

LGTM


Dbeaver adds trailing semicolon if CASE statement used

I'm running this query against an Oracle database, version <IP_ADDRESS>.0. I'm using dbeaver 5.0.5.
This one fails:
SELECT
	STVMAJR_CODE,
	STVMAJR_CIPC_CODE,
	STVMAJR_VALID_MINOR_IND
	, CASE WHEN STVMAJR_CODE = 'y' THEN 'valid_minor' END
FROM STVMAJR;

But if I remove the line with the CASE statement then it runs:
SELECT
	STVMAJR_CODE,
	STVMAJR_CIPC_CODE,
	STVMAJR_VALID_MINOR_IND
	--, CASE WHEN STVMAJR_CODE = 'y' THEN 'valid_minor' END
FROM STVMAJR;

Equally strangely, if I put back the line with the CASE statement, but remove the trailing semicolon, it also runs:
SELECT
	STVMAJR_CODE,
	STVMAJR_CIPC_CODE,
	STVMAJR_VALID_MINOR_IND
	, CASE WHEN STVMAJR_CODE = 'y' THEN 'valid_minor' END
FROM STVMAJR

Is DBeaver doing some sort of logic to determine whether to add a trailing semicolon? And this logic depends on whether there's a CASE statement in the body of the query? Feature or bug?

Duplicate of #3481
Thanks for report anyway