fix: potential data race on a global variable

Running go test -race on some integration tests with Sarama trigger a data race warning:
WARNING: DATA RACE
Read at 0x0001052f7940 by goroutine 11:
  github.com/Shopify/sarama.version()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/version.go:8 +0x34
  github.com/Shopify/sarama.(*Broker).Open.func1.1()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/broker.go:183 +0x44
  github.com/Shopify/sarama.(*Broker).Open.func1()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/broker.go:245 +0x1368
  github.com/Shopify/sarama.withRecover()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/utils.go:43 +0x54

Previous write at 0x0001052f7940 by goroutine 12:
  github.com/Shopify/sarama.version()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/version.go:16 +0xec
  github.com/Shopify/sarama.(*Broker).Open.func1.1()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/broker.go:183 +0x44
  github.com/Shopify/sarama.(*Broker).Open.func1()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/broker.go:245 +0x1368
  github.com/Shopify/sarama.withRecover()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/utils.go:43 +0x54

The traces from the goroutines

Goroutine 11 (running) created at:
  github.com/Shopify/sarama.(*Broker).Open()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/broker.go:172 +0x300
  github.com/Shopify/sarama.(*client).any()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/client.go:686 +0xf8
  github.com/Shopify/sarama.(*client).tryRefreshMetadata()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/client.go:879 +0xbc
  github.com/Shopify/sarama.(*client).RefreshMetadata()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/client.go:489 +0x1d8
  github.com/Shopify/sarama.NewClient()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/client.go:170 +0x438
[...]

Goroutine 12 (running) created at:
  github.com/Shopify/sarama.(*Broker).Open()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/broker.go:172 +0x300
  github.com/Shopify/sarama.(*client).any()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/client.go:686 +0xf8
  github.com/Shopify/sarama.(*client).tryRefreshMetadata()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/client.go:879 +0xbc
  github.com/Shopify/sarama.(*client).RefreshMetadata()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/client.go:489 +0x1d8
  github.com/Shopify/sarama.NewClient()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/client.go:170 +0x438
  github.com/Shopify/sarama.NewConsumerGroup()
      /Users/pior/pkg/mod/github.com/!shopify/sarama@v1.32.0/consumer_group.go:97 +0x48
[...]

This is the code lazily populating the version from the Go module info:
https://github.com/Shopify/sarama/blob/3f90bc71bae993d5cbb08dfbb06cd10a88969d42/version.go#L7-L20
Solution
I'm proposing to protect this global variable with a sync.Once

@pior thanks!


BUG-4 Issue with unordered lists cascading infinitely

Unordered lists aren't closing correctly, causing the blog feed to slowly decay into unordered entropy.

Found and fixed an issue by rearranging logic in XMLEngine.convertXMLBlogDataToHTML()


[FEATURE SUGGESTION] Add buttons

Please add buttons to the embed which tells what music is playing
Like this:

Thanks for the suggestion! I'll add this feature in the next version.


[BUG] Rotary xpos shape breaking

Hi Phil! I found that the hack I added for custom rotary embedding accidentally broke rotary xpos, and would have the following trace when rotary_xpos is turned on:
  File "/opt/anaconda3/envs/neuro/lib/python3.12/site-packages/x_transformers/x_transformers.py", line 669, in forward
    scale = self.scale ** rearrange(power, 'n -> n 1')
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/neuro/lib/python3.12/site-packages/einops/einops.py", line 591, in rearrange
    return reduce(tensor, pattern, reduction="rearrange", **axes_lengths)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/neuro/lib/python3.12/site-packages/einops/einops.py", line 533, in reduce
    raise EinopsError(message + "\n {}".format(e))
einops.EinopsError:  Error while processing rearrange-reduction pattern "n -> n 1".
 Input tensor shape: torch.Size([1, 32]). Additional info: {}.
 Wrong shape: expected 1 dims. Received 2-dim tensor.

@Aceticia oh, no biggie
should work now! (although i personally don't like xpos that much)

Speedy! I'm just trying out different things for length generalization.


Handle special cases of trigonometric functions.

This PR adds the results for the corner cases of trigonometric functions sin, cos, and tan.
Solves #1816
@ewpatton Please have a look.

I'm not following this carefully, but it seems that the tests are testing
only integer arguments.
Are we also testing that identities are obeyed, e.g., is tan(x)*cos(x)=
sin(x) for all x?
== Hal
Hal Abelson
<EMAIL_ADDRESS>Prof. of Comp. Sci. and Eng.
MIT Dept. of Elec. Eng. and Comp. Sci.
On Fri, Jan 31, 2020 at 3:37 PM Evan W. Patton<EMAIL_ADDRESS>wrote:

@ewpatton commented on this pull request.
@jsuyash1514 https://github.com/jsuyash1514 It might also make sense to
add some negative values to make sure the modulo math is handling that
correctly.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mit-cml/appinventor-sources/pull/2004?email_source=notifications&email_token=AAGAXNYBH2CULPEHBHTYBG3RASDYHA5CNFSM4KNDGS3KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCT3XU2Y#pullrequestreview-351763051,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGAXN2S7YJOJHCOBPIR56LRASDYHANCNFSM4KNDGS3A
.

@ewpatton @halatmit I've added a test for a trigonometric identity tan(x)*cos(x) = sin(x). Please let me know if the way I've implemented this test is correct. If so, I would like to add some more trigonometric identities and equations.

@ewpatton I've made the requested changes and resolved the conflicts with the base branch. Kindly review.

@ewpatton I've added tests for some more trigonometric identities and equations. Please have a look and let me know if anything remains to be done.


Add support to conditionally use this attribute vs another

We would like to have one function app codebase, one deployed to customers that want their software installed locally (and do not want literally anything to do with azure)  (using kubernetes)
for the other customers, we would like the functions to listen for a QueueTrigger instead.
Can you please help? Thanks!

@chobot2014  Aplogies for the late reply.
Please check the link1 link2 for the Queue trigger , hope this would be helpful.
Thank You for the patience.


Delay value decryption on chrome

This pull request adds a new ValueFilterFunc to kooky. If there is no filter regarding Value in the cookie, it is unnecessary to decrypt its value. We checks if there is a ValueFilterFunc in the filters before performing the decryption. After filtering is complete, the Value field is populated with the result of the decrypt.

But there is a risk this change may break code that using custom filter without wrapping it in ValueFilterFunc, it always gets empty value.


Incorrect warning about a pointer to bool ("readability-non-const-parameter")

Clang-Tidy will recommends making 'ptr_to_bool' a pointer to const, which is WRONG because I access the object through a reference to non-const with the intention to change its value in the body of the function.
void foo(bool *ptr_to_bool)
{
	bool &ref_to_bool = *ptr_to_bool;

	if (rand() > 1000)
	{
		ref_to_bool = true;
	}
	else
	{
		assert(!"Less or equal");
	}
}

Yes, I know that I don't check the pointer for null-ness, as I ought to.  That is not the point.

Hi @vbazarov
Please consider taking this inquiry up with the clang-tidy LLVM team.
Clang Power Tools uses clang-tidy as-it-is and we cannot offer any fixes regarding its implementation.
Thank you for taking the time to contact us.
Regards,
Gabriel.


The usage example doesnt seem to work

https://codepen.io/wranter/pen/XWEazxM
I am trying to follow the usage example but it doesnt seem to work

Hey @akhil-quarantine, make sure to correctly init scripts with valid URLs

Already tried and shared codesanbox but it doesnt work,


Prepare correct |0001> in the auxiliary register

Changes

Prepare correct |0001> in the auxiliary register.
Implementation details

In the previous code, the index was 3+N_COUNT, so the auxiliary register was prepared with |8> = |1000>. Now the index is fixed so that |1> = |0001> is prepared.
How to read this PR

Screenshots

In the previous codes (i.e. before this PR), if we insert display(qc.draw('mpl', scale=.6, fold=-1)) just after qc.measure in qpe_amod15 and run the last loop in the textbook, the attached image is displayed:

@frankharkins OK. I created an essentially equivalent PR at https://github.com/Qiskit/textbook/pull/53.

closing this in favor of https://github.com/Qiskit/textbook/pull/53


Handle noise assignments

DBCV is capable of handling noise assignments.  This needs to be implemented.

Hi. I got your code. However, it does not consider noise, thus the result is very strange. Also, there is a lot of duplicate calculations.
I have made a more efficient version of the code, that considers outliers targeted as -1. Would you like to collaborate?

@murilocn  Do you have a code to share? Thanks.


Change server to support the pcd-passport api instead of interep

Copy the server-lib interep impementation to a pcd implementation that fetches https://api.pcd-passport.com/semaphore/1 instead of the interep api.

I will start here to understand the app better :)

Resolved too in main.


MS Teams AdaptiveCard different Action.Submit data format in personal tab and channel tab

We implemented some TaskModules that open up a AdapctiveCard with a Action.Submit button the butten has the data attribute set. It looks something like that:
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        { ... },
        {
            "type": "ActionSet",
            "actions": [
                {
                    "type": "Action.Submit",
                    "title": "Submit",
                    "data": {
                        "status": 0
                    }
                }
            ]
        }
    ]
}

The TaskModule with the AdaptiveCard is invoked by the @microsoft/teams-js package like this:
let taskInfo: microsoftTeams.TaskInfo = {};
taskInfo.width = 800;
taskInfo.card = card;
taskInfo.title = "Sample Title";

microsoftTeams.tasks.startTask(taskInfo, submitHandler);

We invoke the TaskModule with the AdapativeCard in the personal tab and in the channel tab of our teams app the exact same way. But since the last two days we face the issue that the "data" paramater is delivered in two different ways to the submit handler. In the personal tab it is passed as valid JSON but in the channel tab it will be passed as string.
ChannelTab

PersonalTab

Details:
OS: Windows 11
TeamSDK: "@microsoft/teams-js": "1.10.0"
Tested in the browser version of Microsoft Teams. Reproducable in all our testing tenants.

Hello @josefbrt - Thanks for raising your query.
We will look into it and let you know the updates.

@josefbrt - We have tested your adaptive card with the data attribute on both personal and channel tabs. However, in both cases, we are experiencing the same behavior where we are getting the result as an object.

Please refer below video for your reference. We have added Tasks as personal tab and Task Module csharp(1) as a channel tab.
submithandler issue.webm
We have tested this on Teams web client with microsoft/teams-js version 1.10.0.
Could you please request for another test of this scenario and confirm if the same behavior persists?

We started a new verification of the issue with a new test task module and a clean adaptive card. But we're still facing the issue.
This is how we implemented the test task module:
private _testDialog() {
    const card = `{
        "type": "AdaptiveCard",
        "body": [
            {
                "type": "TextBlock",
                "size": "Medium",
                "weight": "Bolder",
                "text": "Test Task Module"
            },
            {
                "type": "ActionSet",
                "actions": [
                    {
                        "type": "Action.Submit",
                        "title": "Submit",
                        "data": {
                            "status": 0
                        }
                    }
                ]
            }
        ],
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "version": "1.5"
    }`

    const taskInfo: microsoftTeams.TaskInfo = {
        width: 800,
        card: card,
        title: "Test Task Module",
    }

    const submitHandler = (err: string, result: any): void => {
        debugger;
        console.log(`Submit handler - err: ${err}, result: ${result}`);
    }

    microsoftTeams.tasks.startTask(taskInfo, submitHandler);
}

But in the debugger still the same result

@josefbrt - Previously we have tested this with C# code. Again we will test this using Node JS code and update you soon.

We have experienced the scenario where this works as expected for some of our client tenants (valid json return) but not for some others (json as string return).
The screenshot shows 2 dev tools running side by side for two different tenants. As you can see, the right tenant worked, but the left one has the problem.

@josefbrt - Apologies for the delay. We are currently testing this out and facing some issues. We will provide an update soon.


Working with rtsp stream from IP camera.

Hii, can this algorithm work with IP camera, Thank you

Sure. You can experiment with the script "simple_camera.py". You need to change the function "open_cam_onboard" for example in this way:
def open_cam_onboard(width, height, fps):
    return cv2.VideoCapture('rtsp://<IP_ADDRESS>/1')

If everything works, you can transfer this code to the main script "recface.py". You only need to configure the IP camera to output the stream with the parameters:
IMAGE_WIDTH, IMAGE_HEIGHT = 1280, 720
CAMERA_FPS = 30

(from "recface_config.py")


[WIP] Refactor infer storage function for sparse operators.

Background:
The current rule for graph executor to dispatch on FCompute & FComputeEx is naive: if any input/output contains non-default storage, FComputeEx will be preferred; otherwise, choose FCompute.
Why it's bad:

Such dispatch rule may lead to the case where FComputeEx is registered and chosen to dispatch, but it's not capable of handle specific storage types, and need to fallback inside FComputeEx. Ideally, we want FComputeEx functions to be "fallback-free".
Since fallback requires temp resource on gpu, when fallback happens inside FComputeEx, the resource needs to be requested on the fly. This leads to unclear responsibility since all resource requests are expected to be handled in attach_exec_resource_pass.

The new interface to fix it:
We should incorporate dispatch logic inside infer_storage_type pass with the new interface below:
enum FcompDispatchMode {
  kDispatchFCompute;
  kDispatchFComputeEx;
  kDispatchFComputeFallback;
  ...
}

inline bool InferStorageType(const nnvm::NodeAttrs& attrs,
    const int dev_mask,    // useful for MKL related storage inference
    int *dispatch_mode,   // useful to determine if fallback is required
    std::vector<int> *in_attrs,
    std::vector<int> *out_attrs,
) {}

During infer_storage_type pass, we will decide whether to dispatch for FComputeEx or FCompute based on attrs. When dispatch type is kFComputeFallback, extra resources are requested.
Changes Summary

Updated infer_attr pass function for graph_executor, which now is able to infer attribute for node entries ((storage_type) and for the node itself (dispatch_mode).
The stype of gradients are provided as inputs to InferStorage during Executor::Bind.
Added default infer storage type function. If an operator doesn't have FInferStorageType attr set, this infer storage type function will be called.
Added warning messages when storage fallback is detected during inferstorage. It can be turned off via environment variable.
Updated the infer storage function for all sparse operators and custom operators.
Removed all FComputeFallback call inside FComputeEx
Removed ad-hot storage resource requests in cast_storage
Removed a kernel for SGD with dense grad and row_sparse weight.
Disabled elemwise_binary_op for CSR inputs since we don't have any unit test for them. We should turn it back on after the test is in place. The operator should set FResourceRequest to get temp storage instead of doing that inside the operator
Added registration for many unary operators on gpu. They're already covered in test_sparse_operator when default_ctx is gpu.
Removed some unused functions in test_sparse_operator.py

@cjolivier01 @reminisce could you help review the code, especially modified infer_storage functions for the operators you implemented?

also add @anirudh2290


[JENKINS-32801] implements SimpleBuildStep

https://issues.jenkins-ci.org/browse/JENKINS-32801
It adds compatibility with Pipeline plugin, now you can run a step of Zephyr fro jita test management plugin.
node {
  git url: 'file:////Users/inifc/Documents/workspace/statusCheck'
  def mvnHome = tool 'maven3'
  sh "${mvnHome}/bin/mvn clean package"
  step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
  step([$class: 'ZfjReporter',serverAddress: 'http://<IP_ADDRESS>:9090',projectKey:'PRJ',versionKey:'1',cycleKey:'CreateNewCycle',cycleDuration:'30 days',cyclePrefix:''])
}

@reviewbybees

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

LGTM. I just miss a pipeline specific test (there are examples in - almost - all plugins pipeline-compatible, for example here)

@mohan-zephyr Could you evaluate to merge this pull request? It makes this plugin compatible with Pipeline Plugin and the new paradigm of Jenkins Pipeline-as-Code

@mohan-zephyr I second @kuisathaverat request :+1:

Hi there,
are there any plans on merging this pr somewhere son? Would be really great to have this feature... or is there a workaround ?
Greetings
Felix

+1 for getting this implemented @kuisathaverat there is now a merge conflict with the PR though

@oleg-nenashev I have resolved the merge conflicts in a PR I made to @kuisathaverat branch. So if he accepts that then they should fall through to this PR too :)

@zackpollard I saw too many changes on your PR only to resolve a conflict on one file I will review the conflict and try to resolve it without too many changes

@kuisathaverat That's because it's also PRing all of the changes that your branch doesn't have from the master branch in this repository. Once they get merged into this PR, you will no longer see any of the commits other than the merge

@oleg-nenashev yea there's an issue with one of the new calls that didn't show up when I initially merged... Just looking into the fix now

@oleg-nenashev @kuisathaverat These changes seem odd, they are under a "Temp commit" title https://github.com/jenkinsci/zephyr-for-jira-test-management-plugin/commit/42362605c999c3f1590d9f924441a54bc76a9736

it is because it wants an AbstractBuild not a Run class

@kuisathaverat Yea, however i'm not sure we can pipe that through to there. Looking at the Run class, I think the getNumber() from that should suffice for getting the build number. We shouldn't need the AbstractBuild

@zackpollard me too, but I do not understand why it use getRootBuild for me does not have too much sense

public AbstractBuild getRootBuild()
Gets the nearest ancestor AbstractBuild that belongs to the root project of getProject() that dominates/governs/encompasses this build.
Some projects (such as matrix projects, Maven projects, or promotion processes) form a tree of jobs, and still in some of them, builds of child projects are related/tied to that of the parent project. In such a case, this method returns the governing build.

@kuisathaverat Yea i'm unsure why you'd want to go up to the root build, I think the exact equivalent for this of run would be getProject().getNumber() however maybe we should loop in the person who made those changes originally for context?

Failure on the build due to findbugs task
[ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.3:check (findbugs) on project zephyr-for-jira-test-management: failed with 53 bugs and 0 errors

none of those are in ZfjReporter.java that it is the only file that was changed so I am not gonna to touch any other file

Yep, so how do we proceed from here?
Sent from MailDroid
-----Original Message-----
From: Ivan Fernandez Calvo<EMAIL_ADDRESS>To: jenkinsci/zephyr-for-jira-test-management-plugin<EMAIL_ADDRESS>Cc: Zack Pollard<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Sent: Tue, 11 Apr 2017 11:16
Subject: Re: [jenkinsci/zephyr-for-jira-test-management-plugin] [JENKINS-32801] implements SimpleBuildStep (#2)
none of those are in ZfjReporter.java that it is the only file that was changed so I am not gonna to touch any other file
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/jenkinsci/zephyr-for-jira-test-management-plugin/pull/2#issuecomment-293214483

we could open another PR for the findbugs issues but I don't know if the maintainer will attend it because this was open for more than a year

So what now then, considering the bugs found are not with this class, then surely this PR could proceed regardless?

I made other PR to fix some of the findbugs findings https://github.com/jenkinsci/zephyr-for-jira-test-management-plugin/pull/3

Outside of the failing tests, The code fails on my system when trying to process JUnit results.
Same plugin on the same system when running within a freestyle job works.
java.lang.NullPointerException
at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:363)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
at hudson.security.ACL.impersonate(ACL.java:221)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:748)

@lbrigman124 this PR does not pass the find bug checks https://jenkins.ci.cloudbees.com/job/plugins/job/zephyr-for-jira-test-management-plugin/23/ , there is another PR to fix these errors https://github.com/jenkinsci/zephyr-for-jira-test-management-plugin/pull/3 but probably both are really outdated after more than a year, the maintainer does not have interest on those PR me neither

Hello @kuisathaverat .
If I correctly understand comments - We are not planning to add this plugin to support list of Jenkins pipeline.  And for now - we don't have any ability trigger Zephyr through Jenkins step?

It is in the maintainer roof, this PR is no longer valid to make it mergeable, we have to make a ton of fix related with findbugs and all the changes in the code since it was proposed.

Thank you for answer , @kuisathaverat

is there any workaround to add zephyr for jira pipeline ??

is there any workaround to add zephyr for jira in Jenkins pipeline ??

hey, did you find a workaround for this?

Any solution for this?


Passing fields from one instance to another

trying to create an instance of a model and passing to it some fields of another model (all fields passed use "TranslatedField") only the current language is passed and not the current language + the other fields with the other languages
# model
class FirstModel(models.Model):
    name = TranslatedField(models.CharField(  _("name"), max_length=200, default="text"),)
    description = TranslatedField(models.TextField(  _("description"), blank=True,  null=True, default="text" ),)

class SecondModel(models.Model):
    name = TranslatedField(models.CharField(  _("name"), max_length=200, default="text"),)
    description = TranslatedField(models.TextField(  _("description"), blank=True,  null=True, default="text" ),)

# the code that make problem
istance_of_second_Model.description = istance_of_first_Model.description

only one of the fields generated by TranslatedField is passed to the second model and is that of the current language while my goal is to pass "simultaneously" all the fields of all languages
in the documentation I do not understand how to solve this problem, I also tried various approaches but I could not solve for this reason I try to write the problem here

def set_all_fields(name, field):
    def setter(self, value):
        for field in field.fields:
            setattr(self, field, value)
    return setter

it seems this will help me (taken from the documentation) but I can't figure out how to adapt the function to my specific problem

You could do something like this:
def copy_translated_values(from_, to_, field_name):
    field = getattr(from_, field_name)
    for f in field.fields:
        setattr(to_, f, getattr(from_, f))

copy_translated_values(first_instance, second_instance, "description")

FirstModel.description.fields contains a list of all translated fields and you could take advantage of this.

Thank you very much! this function solves the issue I have opened

Great!


[chore] add .dockerignore to avoid copying node_modules

Summary
It appears that we can avoid copying the node_modules folder by using .dockerignore, ref.

If your goal is to improve development stack, this isn’t the place. These dockerfiles are used for production deployment.


Redux:  Plumbing to a reducer

Fairly certain I've set the application up as per the documentation but I'm having a hard time picking up on the events dispatched by ReactStormpath.  I was looking through the user actions but ReactStormpath is not tied into my store and I'm not able to see any of these events dispatched and funneled to my reducer.
I'm trying to get these actions to my reducer:
https://github.com/stormpath/stormpath-sdk-react/blob/master/src/actions/UserActions.js
What I have:
authReducer.js
import initialState from "./initialState";

export default function authReducer(state = initialState.auth, action) {
    console.log(action);
    console.log(state);
    return state;
}

rootReducer.js
import { combineReducers } from "redux";
import { routerReducer } from "react-router-redux";
import auth from "./authReducer";

const rootReducer = combineReducers({
    routing: routerReducer,
    auth
});

export default rootReducer;

configureStore.js (looks slightly different but heres the jist)

export default function configureStore(initialState) {
    return createStore(rootReducer, initialState,
        applyMiddleware(
            thunk,
            reduxImmutableStateInvariant(),
            logger()
        )
    );
}

index.js (This is where the StormPath is initialized)

const store = configureStore();

ReactStormpath.init({
    type: "redux",
    store
});

I'm seeing all my location change event dispatches but nothing in regards to the user.  Thoughts?

Hi Oleg!
It looks as if your configuration is wrong. If you have a look at the docs (https://github.com/stormpath/stormpath-sdk-react/blob/master/docs/api.md#initialization) you can see that the config should be:
dispatcher: {
    type: "redux",
    store
}

Instead of:
    type: "redux",
    store

I.e. if you change your ReactStormpath.init() to:
ReactStormpath.init({
    dispatcher: {
      type: "redux",
      store
    }
});

I think it should work.

Wow thats a bit embarrassing!  Really appreciate it.  Works like a charm now!  Thanks again!


Add Blazor partial class support in Visual Studio.

No longer mark declaration files as single file generators. Prior to this we relied on SingleFileGenerators to dynamically update the declaration files when .razor files changed. However, to make partial classes work we can no longer depend on declaration files being available because their existence causes us to have to mangle class names for opened documents; otherwise you get two files with same name and result in ambiguous definition errors.
Stopped including declaration files as part of the users compilation. This was intended to make the design time experience operate more similar to how Blazor apps function at runtime (directly access each component instead of their declarations). We now rely on the background code generation effort built from the find all references work to supply users with strongly typed component names.
Stop mangling class names for Visual Studio. Razor.VSCode has its own set of configurations which i'm not addressing as part of this changeset.
Start generating components with the partial modifier to their class name to enable partial class support.
Updated existing tests to expect partial modifier.

aspnet/AspNetCore#5487

What's the user experience of this like re: switching context between files. Today when you, save, give focus to, or remove focus from a component file, it results in a chain of events that cause us to update component descriptors. This is critical for productivity - that you can add a [Parameter] in a component, and then immediate use it elsewhere.

What's the user experience of this like

It's exactly the same as today with 1-2 known bugs that I plan to fix later:

If you add a [Parameter] to a partial class and then switch to an already opened component file you will not get updated TagHelpers until you start typing in the file.
There's a theoretical bug that I haven't seen rear its head but seems possible to me where if you open a Blazor project and the project system is quick enough to initialize then you may not get component bindings for already-open files. This is because it's possible that we don't do more than 1 parse for all the files in the project meaning we wouldn't get component descriptors. In practice this is incredibly rare / racey since our stuff seems to always initializes first. Again, super theoretical but something I want to verify is or is not an issue when i'm back from vaca.

I'm worried about all of these things.

I'm worried about all of these things.

I want and plan to fix them as well once i'm back from vaca.

What are the fixes with these things? I'm nervous about steaming ahead without knowing what the roadmap is.

What are the fixes with these things? I'm nervous about steaming ahead without knowing what the roadmap is.

For the first case Roslyn has already evaluated the document so we can look to see if the file is a component, if so re-trigger TagHelper completion.
For the second case we re-discover TagHelpers after a component has been parsed.
I haven't fully thought through each of the solutions above but there's a lot of ways we can fix either one of the probs

We tested this kind of stuff out in realtime, and it works pretty well 👍

Merging for preview2. Will address feedback in a new PR for preview3.


Making number literal type like 1.0 be 1.0 not 1

Suggestion
Using string template type, we can distinguish types like 1 and 1.2, this feature allow us to refine number type into int and float. But for now, the literal types like 1 and 1. and 1.0 are all 1, we can refine 1.2 as float number type, but 1.0 or 1. are still int type

🔍 Search Terms

number literal type
string template type
✅ Viability Checklist

My suggestion meets these guidelines:
[ * ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[ * ] This wouldn't change the runtime behavior of existing JavaScript code
[ * ] This could be implemented without emitting different JS based on the types of the expressions
[ * ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[ * ] This feature would agree with the rest of TypeScript's Design Goals.
⭐ Suggestion

📃 Motivating Example
See the code in playground

💻 Use Cases
We can create a more stricted function f which accept two parameters, one is int type, another is float type.

Given that 1 === 1.0 I'd be very confused if the TypeScript compiler were ever to treat them differently.  I'm afraid I don't understand the use case; why do we want to control how developers write their numeric literals?

I don't see how this makes any sense either. 1 and 1.0 are two ways of writing the same thing; it's not like f can tell which you wrote. It seems like you have a codebase-specific style convention, which is a linter's job to handle.


How do I repeat composite animation

For example, I want a view repeat a "up-down animation".
code:
JHChainableAnimator *anim = [[JHChainableAnimator alloc] initWithView:view];
anim.moveY(10).thenAfter(0.2).moveY(-10).animateWithRepeat(0.2,5);
But the view will move down once and move up five times

Same problem here. Any help appreciated :-)

Yeah. In the same boat :)


[DOCS] Support OpenAPI example[s] attribute

Hello everyone.
Today I tried to use fastAPI to add an exemple of values for a model, as decribed here.
After a tedious research in the documentation of Pydantic, I managed to go from this implementation:
from fastapi import FastAPI
from pydantic import BaseModel

class CustomModel(BaseModel):
    id: str
    name: str

app = FastAPI()

@app.get("/", response_model=CustomModel)
def root() -> CustomModel:
    return {"message": "Hello World"}

Giving the following result:

To this implementation:
from fastapi import FastAPI
from pydantic import BaseModel

class CustomModel(BaseModel):
    id: str
    name: str

    class Config(object):
        schema_extra = {
            'example': {
                'id': 'n3xR4Ib79h',
                'name': 'John Doe'
            }
        }

app = FastAPI()

@app.get("/", response_model=CustomModel)
def root() -> CustomModel:
    return {"message": "Hello World"}

Giving the following result:

The code used above is introduced in this page of pydantic's documentation.
As this is a behaviour documented in OpenAPI, and as fastAPI can actually provide that behaviour, should it be a good idea to add this to the doc ? It is quite hidden inside pydantic docs, and it could be usefull to other users.
Thank you for your opinion,
Simon

Yep, we want to have it in the docs. I just haven't had the time to do it.

@tiangolo I took a swing at this if you want to have a look :)

Hey everyone! Thanks for the discussion here, @JohnPaton solved it on #1106 :rocket: :tada:


Update Chinese mobile patterns.

Update Chinese mobile patterns.
About mobile prefix, see: Cell-phone number

Thanks, @Moln!


Order serealization Json::object

Hello guys,
I have a problem with serialization json into a test
I had to keep an isConverted parameter because I have an object of the same type inside the object to be serialized.
Leaving aside this I have performed all the correct steps but why do I get a wrong order?
I have this code
`Json Person::toJSon() {
if(isConverted || boyOrGirlFrined == nullptr){
    return Json::object{
            {"name", name},
            {"surname", surname},
            {"sex", sex},
    };
}
boyOrGirlFrined->isConverted = true;
return Json::object{
        {"name", name},
        {"surname", surname},
        {"sex", sex},
        {"AnimaGemella", boyOrGirlFriend->toJSon()},
};

}`
with i get this result
{"AnimaGemella": {"name": "Sara", "sex": "f", "surname": "Durante"}, "name": "Vincenzo", "sex": "m", "surname": "Palazzo"}
and not it?
{"name": "Vincenzo", "sex": "m", "surname": "Palazzo", "AnimaGemella": {"name": "Sara", "sex": "f", "surname": "Durante"}}
Sorry for my English but I'm learning

json11 maps the json object type to std::map, which doesn't preserve the original order. Most other languages' implementations behave the same way.

@j4cbo Thanks for your answer


Add images associated to each product

While doing this, figure out how images and MongoDB work together

Functionality implementedd by @northst20


Add face Detect

Type of change

[x] Added new project
[ ] Bug fix
[ ] New features
[ ] Enhanced documentation

Changes proposed in this pull request

Project name : Face Detect

Short description :  Uses haarcascade for detecting human faces in an image.

Checklist

[x] The code is Python 3 compatible
[x] I have added relevant comments in my file to make code understandable
[x] I have added my project in a folder which includes all the necessary files

A similar kind of project already exists: https://github.com/Mrinank-Bhowmick/python-beginner-projects/tree/main/projects/facerecoginition


Display sometimes not turning on after being disabled

Hyprland Version
 System/Version info
<Paste the output of the command here>

Bug or Regression?
Bug
Description
monitor=DP-1,2560x1440@143.856,0x0,1
monitor=DP-2,1920x1080,2580x0,1
monitor=HDMI-A-1,2560x1440@119.998,-1300x0,2
exec-once = hyprctl keyword monitor 'HDMI-A-1,disable'
bind = SUPER, c, exec, hyprctl keyword monitor 'HDMI-A-1,2560x1440@119.998,-1300x0,2' ; pactl set-card-profile alsa_card.pci-0000_06_00 output:hdmi-stereo && pactl set-default-sink alsa_output.pci-0000_06_00.hdmi-stereo & swaymsg input '117:256:Paris_Commune_Mouse' map_to_output 'HDMI-A-1'
bind = SUPER, r, exec, hyprctl keyword monitor 'HDMI-A-1,disable' & pactl set-card-profile alsa_card.usb-Creative_Technology_Ltd_Sound_Blaster_X4 output:iec958-stereo & pactl set-default-sink alsa_output.usb-Creative_Technology_Ltd_Sound_Blaster_X4.iec958-stereo & pkill wl-mirror & makoctl mode -r camera-shy & hyprctl dispatch closewindow mpvrainsounds

^^relenvant parts of my config
How to reproduce
You'll want to turn HDMI-A-1 off with super+r, and then wait a few minutes, the display will no longer turn on.
If this happens I have to open up wdisplays and re-enable it there, this might be fixed by moving to wlr-randr and doing it all with that since wdisplays works. I'll come back to this if I figure out a reliable way to reproduce, but until I figured out wdisplays works I had to reboot, perhaps my configuration isn't exactly what I want?
So, i've tried moving to kanshi to see if kanshi could handle it since wdisplays could fix it, and it appears hyprland might be actually disconnecting the screen on a certain amount of inactivity, because kanshi is now reporting
"Profile does not match the current output configuration" when I try to change the profile
wdisplays still functions perfectly, don't know what to make of that.
edit: nevermind wdisplays no longer displays

Nevermind, this seems to just be a coincidence, it started right when I switched to hyprland but appears to be a more fundamental problem, I switched back to sway and now my TV reports that it doesn't even support mode i've been using for years.
Very likely not your bug, closing


Exclude API paths in CSharp Client generation

I know there's already support for excluding controllers when generating the OpenAPI document, but this is for the other end when generating clients.
Is it possible to configure NSwag to generate clients only for specific segments/paths from a given OpenAPI document? I'm specifically using the CSharp Client generator here.
The use case is for when you're dealing with huge APIs, but you only really need to consume small portions of it.

I had a similar issue where I have a "Common" project with its API, and my project that adds its own API. When using swagger on the web, I want to be able to see both, but when generating the project's client classes, I only want to generate that portion of the API.
I found this workaround:
In my AddOpenApiDocument() :
            if (Assembly.GetEntryAssembly() != Assembly.GetExecutingAssembly())
            {// This is true when the API is being generated with NSwag
                settings.ApiGroupNames = new[] {"Project"};
            }

I hope that it helps.

@jeremyVignelles that's on the OpenAPI generator side, but the question here is whether there is a filter setting for the incoming OpenAPI spec in the client code generator, and the answer is: Not yet.
So the solution for now is to preprocess/transform the spec (e.g. with a simple cmd line app which uses the nswag packages) before passing it to the generator.

Yes, maybe that wasn't clear, but what I meant is that I'm using NSwagStudio to generate the client code from the .net assembly. In that process, the entry assembly is NSwag, which in turn runs the code assembly.
That way, I'm able to generate C#/TS code from a subset of the API.

I agree, if you control the whole toolchain/pipeline you can generate a spec with only the operations you need. But if you get the spec from an external source, then you dont have the first step and you need to apply a filter on the document.

Thanks for the suggestion @jeremyVignelles. As @RicoSuter is saying, this is for an external API document that I can't modify.
@RicoSuter do you think this is something I could pick up and do a PR for? If you could point me to the correct places I'll have a crack at it.

The hardest part here is that for example choose only half of the operations and we only need to render the required DTO classes. That means we need to transitively scan the schemas and only pick the needed ones depending on their usage.

In fact, you only need to preload the DTO classes from the specification in NSwagStudio, deduce all the classes, and then select only the necessary ones. Then generate client code.
Is it possible to implement this?
And then you can think about how to add this to the NSwag.Commands - this is the hardest part. Right?

I am generating the spec using the tool StopLightStudio.We currently pass this spec to NSwag dll to get the Controllers and the Models generated. But, going forward we would like to have just the Models genert and not the controller. Is the ignoreApi attribute used for this purpose? If so, where do I have to specify this attribute?
Please find my sample spec below:
`openapi: 3.0.0
info:
title: PhysicalInventory
version: '1.0'
servers:

url: 'http://localhost:3000'
paths:
/tasks/create:
put:
summary: ''
operationId: put-tasks-create
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTaskResponseModel'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTaskRequestModel'
options:
summary: ''
operationId: options-tasks-create
components:
schemas:
CreateTaskRequestModel:
title: CreateTaskRequestModel
allOf:
- $ref: ../shared/BaseRequestModel.v1.yaml
- type: object
properties:
TaskId:
type: string
List:
type: array
items:
type: string
Task:
$ref: '#/components/schemas/TaskModel'
TaskList:
type: array
items:
$ref: '#/components/schemas/TaskModel'
CreateTaskResponseModel:
allOf:
- $ref: ../shared/BaseResponseModel.v1.yaml
- type: object
properties:
IsError:
type: string
TaskModel:
title: TaskModel
type: object
properties:
id:
type: string
`

Hi, I'm using NSwag Studio to generate Clients via processing of the Web API by reflection.  There are actions  [such as HttpGet, Route("")] in my controllers for which I wish to avoid generating client methods.  Does a process exist yet where I can specify which actions to skip using the Web API by reflection method?

Use an [OpenApiIgnore] attribute or preprocess the spec before providing it to the client generator. With the ASP.NET Core spec generator you can also register custom operation processors to exclude operations or define other ApiGroupNames as @jeremyVignelles described.

Thanks.  That's what I was looking for!

This is really tricky, and a common problem
Huge json APIs, but only a small amount needed
An ignoreApi or an onlyApi would be helpful
Other alternative is to edit manually the json API... and remove the unnecessary

Are there any updates on the topic?
We also have a huge api being generated which I would like to filter by tag name for example and ignore the rest.

"documentGenerator": {
"fromDocument": {
"json": "",
"url": "",
"output": null,
"newLineBehavior": "Auto",
"operationFilter": {
"includeOperations": ["operationId1", "operationId2"],
"excludeOtherOperations": true
}
}
}
need to have some type of operationfilter that supports either includeOperations or excludeOperations

In my case I solved it with:

A powershell script that parses the original OpenAPI json, removes the paths I don't need and writes a different OpenAPI json.
Create and additional MSBuild task that runs the mentioned powershell script and another task with the nswag commands "as usual" but using this transformed OpenAPI json.

I had to do it, not only to be able to generate a lighter client with the endpoints that I only need, but also because NSwag does not support the OpenAPI specification correctly, it generated incorrectly (it does not compile the code) certain endpoints that I don't even use.


Run PolyBase queries from Microsoft BI tools

This statement is misleading; what does it mean "(..) from Microsoft BI tools" please?
Will it work if it is not a BI Tool? E.g. Can I create a Stored Procedure (that is not BI tool) and read data using PolyBase?
[Enter feedback here]

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

ID: 066808bd-cf93-7fa7-d84c-fb2da46558ab
Version Independent ID: 415a5039-44e1-0654-10e2-ca4916732df3
Content: PolyBase features and limitations - SQL Server
Content Source: docs/relational-databases/polybase/polybase-versioned-feature-summary.md
Product: sql
Technology: polybase
GitHub Login: @WilliamDAssafMSFT
Microsoft Alias: wiassaf

@Robert-Kostecki -- Robert, thank you for your questions.  Please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow

@WilliamDAssafMSFT -- William, please look into this issue.

@WilliamDAssafMSFT
Please can you explain what do you mean by "Access to PolyBase external data tables via TSQL is assumed"? Does that mean that Azure SQL DB can read PolyBase external data tables via TSQL?

Generally, no. PolyBase is not supported for Azure SQL Database.


Uncaught exception with concurrent queries and inline begin

The client throws an unhandled exception if the initial queries in the transaction are called concurrently and one of the queries fails(except for the first one). You can see the example below. The issue is resolved if transaction.begin() is called explicitly before the concurrent queries.
Environment details

OS: macOS 14.2 (23C64)
Node.js version: v20.1.0
npm version: 9.6.4
@google-cloud/spanner version: reproducible on master

Steps to reproduce
Minimal repro
// We discovered this issue with ABORTED errors, but
// it's easier to reproduce with this non-existent table query.
const nonExistantTableQuery = 'SELECT * FROM nonExistingTable';
await database.runTransactionAsync(async tx => {
  try {
    await Promise.all([
      tx!.run(selectSql),
      tx!.run(nonExistantTableQuery),
    ]);
    await tx.commit();
  } catch (err) {
    await tx.rollback();
  }
});

This code will result in an uncaught exception and it will crash node process.
I think the issue is a missing error handler in this code.
https://github.com/googleapis/nodejs-spanner/blob/6c0eef16d85e6da4993b246337483a818a4521b5/src/transaction.ts#L1336-L1338
Adding this handler fixes the issue
.on('error', err => streamProxy.emit('error', err))

Happy to open PR with test if this seems correct

Hi @grosto Thanks for raising this bug and identifying the root cause. This looks correct to me. Please feel free to raise the PR if you wish. Else I will take this up in new year 1st week.

Just following up on this ticket.  Has there been any progress with getting the proposed fix in?


Integration Test Framework

Description

Resolves #142

Config Files
This is where we define our tests.
required_packages is basically a list of stuff we want to have running for the test, and any extra config options/files we want to give it. Non-ROS executables like virtual_iridium and the website are to be put here too, they'll just be handled explicitly.
inputs is a list of inputs. I'm thinking the type can be something like ROS or HTTP, the name is the topic name or URL in the case of HTTP, and body is the actual input data. The body will need to be processed differently depending on the type, but we should be able to generically set key value pairs based on the type.
expected_outputs is formatted the exact same way as the inputs, just on the other end.
Test Flow

Run the python script with a config file.
Start all specified packages.
Start monitoring output topics.
Send all inputs.
Over the span of 3(?) seconds, check that the expected outputs appear.

Verification

[ ]

Resources

I think it would be nice if our integrations tests just ran our global launch file. We can have test-only nodes and parameters if needed

Right now I have it so the integration test file runs the ros2 launch ... command to start up our nodes. I'll see how launching nodes from a node will look and hopefully it won't be super janky.

I've got everything I consider as essential features implemented. One nice-to-have would be to allow ranges for expected values, seeing as we can't be exact with some of our expectations. This would be a fair bit of extra work though so I have a DONT_CARE key for such scenarios instead.
I still need to work on the documentation. My naming conventions are also a mess because I was loosely following the style used in boat_simulator and controller but didn't read any style guidelines :P
For getting it to work with ros2 launch I'll need to look into how Python ROS packages work.

@DFriend01 as the ros launch expert can you help out with this?

It's not a requirement for a launch file to be registered with a package. However, I am fairly sure that it is required to have a node to be registered with a package (i.e. the integration testing node in this case).
We probably need to create a ROS package for integration tests if we want to use the ROS CLI when using this integration test framework (ros2 run, ros2 launch, etc.)

It's not a requirement for a launch file to be registered with a package. However, I am fairly sure that it is required to have a node to be registered with a package (i.e. the integration testing node in this case).
We probably need to create a ROS package for integration tests if we want to use the ROS CLI when using this integration test framework (ros2 run, ros2 launch, etc.)

Because of this, I'll move the integration test files back into a separate folder from global_launch. Having it in the same folder makes global_launch too messy imo, and makes it harder to understand global_launch itself.

I think it would be best to merge the PR in now as is and implement HTTP and website support in a follow up PR. It'd probably be worthwhile to present this in a team meeting as well to get opinions from website and global pathfinding. I'm also not sure how to best integrate this with the CI, but the PR is big enough as it is.
Have fun reviewing the 1100 line diff.

Yea can you present this in the first software-wide meeting back on jan 13? Do you want me to review before then?

Yea can you present this in the first software-wide meeting back on jan 13? Do you want me to review before then?

If you have the time that would be beneficial so that it's more accessible for people to view.

Added a diagram outlining the structure. It renders as:


Add m10 project

Signed-off-by: Tasha Drew<EMAIL_ADDRESS>

@tashimi, can you please rebase?


Gui lib: first commit still very early stage

The build failed because I used TypeScript 2.0 only feature (abstract declaration on property). I initially didn't want to commit that early and I forgot about it... I will remove the abstract for now.


update dockerfile to use MM 4.7.0

@andruwa13 already upgraded on #236 but you also updated the contrib Kubernetes Deployment, so merging too :)
Thanks !


Add ChakraCore to lib/exe names

In order to make it clearer that the files are related to ChakraCore, let's add ChakraCore to the name.
Consider renaming from:
Debug.Protocol.lib
Debug.ProtocolHandler.lib
Debug.Sample.exe
to:
ChakraCore.DebugProtocol.lib
ChakraCore.DebugProtocolHandler.lib
ChakraCore.DebugSample.exe

That seems fine. Feel free to open a PR.

I have this change: https://github.com/akrantz/ChakraCore-Debugger/commit/e46d3cb2c17880f53259bc3dfd212bef7e1fc4f0.
I need pull request https://github.com/kfarnung/ChakraCore-Debugger/pull/56 to be made first, as the other changes to the project would come after.

I moved the build output into a subdir of "\build\bin" and "\build\obj". This is somewhat analogous to CharkaCore using "Build\VCBuild\bin" and obj.

I think I can make this a much simpler change, actually, I should have a PR soon.


Convert taskProperties.gradle from Groovy to Kotlin script

Context
There wasn't too much that wouldn't translate 1 to 1 from Groovy to Kotlin. Let me know if there's a more idomatic way to define the logic.

Closed as duplicate of https://github.com/gradle/gradle/pull/4478 which also turns the custom task into Kotlin.


Using the new identity library (with environment configuration, MSI) for RBAC-enabled storage access

Closing this PR now. The implementation's been covered in this PR https://github.com/Azure/azure-sdk-for-java/pull/17119 instead.


Restore UDP packet-level filtering (QUIC/STUN/TURN) on Windows

Tested on webrtc samples https://webrtc.github.io/samples/

core/pull-requests/1291


Create a new Container without starting the BC instance

Is there a way to create a new container with all required information's but without automatically starting the BC instance?
Before starting the instance we have to run Invoke-NAVApplicationDatabaseConversion on the external database (upgrading from 19 to 20) by using the same container name for both versions.
Script
New-BcContainer -accept_eula `
    -accept_outdated `
    -containerName $containerName `
    -artifactUrl $artifactURL `
    -vsixFile (Get-LatestAlLanguageExtensionUrl) `
    -auth Aad `
    -Credential $credential `
    -authenticationEMail $AadUserName `
    -AadTenant "$($AadUserName.Split('@')[1])" `
    -AadAppId "$($AdProperties.SsoAdAppId)" `
    -AadAppIdUri $appIdUri `
    -alwaysPull `
    -shortcuts None `
    -assignPremiumPlan `
    -isolation process `
    -memoryLimit 6GB `
    -licenseFile $licenseFile `
    -EnableTaskScheduler:$true `
    -additionalParameters $additionalParameters `
    -myScripts $myscripts `
    -dns $dnsServerAddress `
    -useSSL `
    -useTraefik `
    -PublicDnsName $containerPublicDns `
    -databaseServer $databaseServer `
    -databaseInstance $databaseInstance `
    -databaseName $databaseName `
    -databaseCredential $credential

Some output
The Customer database on the DatabaseServer\DatabaseInstance server must be converted by using the Invoke-NAVApplicationDatabaseConversion cmdlet before you can use it with this vers
ion of Dynamics 365 Business Central.
at <ScriptBlock>, C:\Run\SetupDatabase.ps1: line 152
at <ScriptBlock>, C:\Run\navstart.ps1: line 138
at <ScriptBlock>, C:\Run\start.ps1: line 384
at <ScriptBlock>, <No file>: line 1
New-BcContainer Telemetry Correlation Id: 70cd4536-424d-4ad8-8848-fe4e1f3e4cc1
Initialization of container Customer failed
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\4.0.10\ContainerHandling\Wait-NavContainerReady.ps1:42 char:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization of container GTI failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container Customer failed
...

At least for us that would be very useful.

On the external database - you can just run the invoke-databaseconversion manually before creating the container - why would you need to do that during startup?
You can also override the SetupDatabase script by adding a file called SetupDatabase.ps1 in the -myscripts parameter.
This new SetupDatabase will be responsible for setting up the database.
It basically needs to do what this section does: https://github.com/microsoft/nav-docker/blob/f6474a40f7d2b6cdb600c51a2f2773d2aba7f369/generic/Run/SetupDatabase.ps1#L135

Back from holiday thanks for the eye opener! ;-)
Sure, downloading the binaries before creating the container and using those PS modules could be a way.
Overriding the SetupDatabase script seems to me the more accurate way. To be honest, I would never have considered it that way.
For me, you could close the issue.

Hey, I would like to ask a question about this topic. What is the ideal way to make a new container (maybe BC23) from a BC22 database. Yeah, Invoke-NAVApplicationDatabaseConversion in the SetupDatabase.ps1 is one thing.. But I don‘t find the GitHub issue where someone try‘s to do the same thing but it doesn‘t work anymore (does anyone have the link?), because you must unpublish the apps under BC22 before the invoke. Till a specific time point, the invoke works with apps published with -force. But nowadays that doesn‘t work, because you get problems when you want to sync and publish the new base app. What is the ideal way for this? Would be great if you can carry this extra work with a CMDlet in the BCContainerHelper.
Because the world is not perfect and not every database backup has already unpublished apps. And spinning off an extra BC22 container for unpublishing.. Is a little bit too much. And when you have to do it for a lot of databases..
Thank you very much!

Sounds like what Kristof is trying to do here as well: https://github.com/microsoft/navcontainerhelper/issues/3423
Sure, this might be something one could do in a single cmdlet - but there are just many permutations of options here, not sure I will have time to pursue this,


Remove All Incomplete Sections

A clean-up task, but an important one.  Sections of text like:  in Alignments and Statement References such as:
"I'm unsure enough how to do this I propose we do not include statement reference constraints in the initial draft. It would probably be included as a special case in the statement template rules, above."
Should be scrubbed out.  If we want to open them as issues so people know this group thought about them, that would be more appropriate.

Yes, those will all be scrubbed before 1.0.

I've created individual issues for some of these. i'll leave them open rather than closing as duplicates because it might be useful to have a checklist.

I believe this is done in the incoming PR


Header not scrollable

Current behavior
Currently when I scroll on the header it doesn't move the position, despite adding pointer events.
Expected behaviour
Would expect it to scroll
Code sample
const { useTabsContext, ...Tabs } = createCollapsibleTabs()

const Page = () => {
    const [index, setIndex] = useState(0);
    const containerRef = useAnimatedRef()
    const postsTabRef = useAnimatedRef()
    const detailsTabRef = useAnimatedRef()
    const itemsTabRef = useAnimatedRef()
    const similarTabRef = useAnimatedRef()
    let refs = {
                    Posts: postsTabRef,
                    Details: detailsTabRef,
                    Items: itemsTabRef,
                    Similar: similarTabRef
                }
    const [refMap, setRefMap] = React.useState(refs)
    const Header = () => {
        return (<View pointerEvents="box-none" style={{ width: windowWidth }}>
                  <TouchableOpacity onPress={toggleImage}>
                      <Image source={{ uri: thing.image || "https://picsum.photos/500" }} style={{ flex: 1, alignSelf: 'center', width: 200, height: 200, borderRadius: 200*.42 }} />
                  </TouchableOpacity>
                </View>
                )
          }

    return (<Tabs.Container
                containerRef={containerRef}
                headerHeight={headerHeight} // optional
                HeaderComponent={Header}
                refMap={refMap}
                scrollEnabled = {true}
                onIndexChange={setIndex}
                >
                <Tabs.ScrollView style={{ width: windowWidth, height: 600, backgroundColor: 'red'}} contentContainerStyle={{ height: "100%" }}>
                    <View><Text>Hello</Text></View>
                </Tabs.ScrollView>
                <Tabs.ScrollView style={{ width: windowWidth, height: 600, backgroundColor: 'orange'}} />
                <Tabs.ScrollView style={{ width: windowWidth, backgroundColor: 'yellow'}} />
                <Tabs.ScrollView style={{ width: windowWidth, backgroundColor: 'green'}} />

                </Tabs.Container>
        )
}

Screenshots (if applicable)
N/A, just imagine a header trying to be scrolled and not going anywhere
What have you tried
I've tried adding the relevant pointer-events

Probably the TouchableOpacity  is becoming the target of the touch event. Can you scroll if you remove it?

Ah that worked, removed them all and was able to find a little real estate to scroll with. What have you seen as best practice for having touchable components but scrollable headers? (Also, thanks a lot for maintaining this so actively, it seems really promising and I'm excited to use it!)

What have you seen as best practice for having touchable components but scrollable headers

Keep them small as possible! 😄
Or try using touchables from https://docs.swmansion.com/react-native-gesture-handler/docs/component-touchables.
Or maybe just stop capturing on move (https://reactnative.dev/docs/panresponder).
I didn't try. If you find a better answer please let know!

(Also, thanks a lot for maintaining this so actively, it seems really promising and I'm excited to use it!)

I'm closing

Hello, can we open this issue. I have a header with a touchable (TouchableWithoutFeedback). I have tried using the touchables from react-native-gesture-handler with no luck. Do you have any other tip?


How do I install just awesomewm theme

Hey ! I think your Awesome config looks amazing! I was just wondering if you had any instructions on how to install just the awesomemw theme on another nixos system?

just cloning it in .config/awesome should work. although there are a bunch of dependencies
awesome-git zsh pamixer imagemagick ncmpcpp mpd mpDris2 neofetch brightnessctl inotifywait uptime brillo networkmanager bluetoothctl picom redshift wezterm


Navbar Mods Hover constantly flickers on Mac

Hovering over individual element in Nav bar causes constant loop.  The shortcut popup flashes on/off and it closes right click menu immediately.  The Mac window buttons also visibly flicker.  Appears to be popup and TD fighting for window active state.
Running TD 2023.11880, on an M1 Max w/ Sonoma 14.5
Loaded 11600 and confirmed it works correctly there.

Thanks I recently got back my test Mac and can reproduce it. Looking for the cause!

There's an attempted fix in the latest release. However it's not 100% the same fluidity as on Windows. I've gotta hit up derivative with this issue I guess!


This page didn't say how to modify password policy

This page didn't say how to modify password policy, for example, how to modify the expiration time of the password policy, and how to create a new password policy and apply to certain account.

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

ID: 58afcd81-a8da-a2bc-5ed0-1a28cf242781
Version Independent ID: 05c003a1-7f84-67b9-d82e-150aff74faed
Content: Password Policy - SQL Server
Content Source: docs/relational-databases/security/password-policy.md
Service: sql
Sub-service: security
GitHub Login: @VanMSFT
Microsoft Alias: vanto

Hi @kind03, password policies like password expiration time/date cannot be modified in SQL Server. To enforce password policies, you do this with ALTER LOGIN or CREATE LOGIN when creating a new login.


Add backdrop config parameter to Modal component.

Description
Added opportunity to configure modal backdrop background color, blur filter and click event.
About click event on backdrop - it's important for case when we use modal component as controlled (show and hide by passing "active" property) - with this implementation we can easily hide modal by handling click from top level.

Outdated requirements.


dcat:distribution, model fix, inspect API updates

With yanked csvcubed 0.5.0 we adopted the following change to the object model.
<4g-coverage.csv#dataset> <http://purl.org/dc/terms/description> "4G coverage in the UK by geographic area" ;
	<http://purl.org/dc/terms/title> "4G Coverage in the UK" ;
	<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://purl.org/linked-data/cube#Attachable>, <http://purl.org/linked-data/cube#DataSet>, <http://www.w3.org/2000/01/rdf-schema#Resource>, <http://www.w3.org/ns/dcat#Distribution>, <http://www.w3.org/ns/dcat#Resource> .

This impacts csvcubed's inspect command, which calls https://github.com/GSS-Cogs/csvcubed/blob/main/src/csvcubed/inspect/sparql_handler/sparql_queries/select_catalog_metadata.sparql which primarily looks for the dcat:Dataset
        SELECT DISTINCT ?dataset
        WHERE {
            GRAPH ?someGraph {
                ?dataset a dcat:Dataset.
            }
        }

Which is no longer present; however it should be present. Consider the application profile where the CSV-W is the distribution. This leads us to the following:
<4g-coverage.csv#csvqb> a <http://purl.org/linked-data/cube#Attachable>, <http://purl.org/linked-data/cube#DataSet>, <http://www.w3.org/2000/01/rdf-schema#Resource>, <http://www.w3.org/ns/dcat#Distribution>, <http://www.w3.org/ns/dcat#Resource> ;
    <http://www.w3.org/ns/dcat#isDistributionOf> <4g-coverage.csv#dataset> .
<4g-coverage.csv#dataset> <http://purl.org/dc/terms/description> "4G coverage in the UK by geographic area" ;
	<http://purl.org/dc/terms/title> "4G Coverage in the UK" .

So the catalogue metadata is attached to the dataset, but the CSV-W's primary subject is now the Attachable, qb:Dataset, etc.
This should allow the SPARQL query to remain unchanged.
The metadata attached to the dcat:Distribution should be at most (Not these are not requirements, just what we can fill in that we already have we should add, nothing new new please):
classDiagram

class Distribution["Distribution a dcat:Distribution"] {
    +dcterms:identifier ∋ rdfs:Literal as xsd:string
    +dcterms:created ∋ rdfs:Literal as xsd:dateTime
    +dcterms:creator ∋ foaf:Agent
    +dcterms:issued ∋ rdfs:Literal as xsd:dateTime
    +prov:wasDerivedFrom ∋ [prov:Entity]
    +prov:wasGeneratedBy ∋ prov:Activity
    +dcat:downloadURL ∋ rdf:Resource
    +dcat:byteSize ∋ rdfs:Literal as xsd:nonNegativeInteger
    +dcat:mediaType ∋ dcterms:MediaType
    +wdrs:describedBy ∋ rdfs:Resource
    +spdx:checksum ∋ spdx:Checksum
}

tl;dr main subject of the CSV-W metadata file should be <dataset.csv#csvqb> which is dcat:isDistributionOf the dcat:Dataset. The dcat:Dataset is the one which should have the catalogue metadata attached to it.

Currently, cubes that have been built using csvcubed v0.4.10 or lower cannot be inspected using csvcubed v0.5.0 or greater, as the primary identifier has changed from some-dataset.csv#dataset to some-dataset.csv#csvqb. In order to facilitate this change, a new distribution_uri property has been added to the CatalogMetadata class, and the select_catalog_metadata SPARQL query has been updated to extract the value of this property, if it is present.
Additional information on the version of csvcubed used to build the cube is also now available in the metadata JSON file, which may also be leveraged to determine how the cube should be inspected.
The distribution_uri value is not present in cubes built using older versions of csvcubed, so the inspect command fails if using a newer version of csvcubed. This is due to the MetadataPrinter class now using the distribution_uri in the get_primary_csv_url() method via DataCubeRepository.get_cube_identifiers_for_dataset(). There will be other places where there is a discrepancy, but this is where I would start.
Possible solutions:

Use the csvcubed-build-activity information to extract the version of csvcubed used to build the cube, and use this to implement different versions of the inspect command. Build activity information available in different versions of csvcubed is below.
Use the presence or absence of distribution_uri in the select_catalog_metadata SPARQL results to implement different versions of the inspect command.

Build activity information
csvcubed version <= 0.4.10
...
{
    "@id": "aged-16-to-64-years-level-3-or-above-qualifications.csv#dataset",
    "http://www.w3.org/ns/prov#wasGeneratedBy": [
        {
            "@id": "aged-16-to-64-years-level-3-or-above-qualifications.csv#csvcubed-build-activity"
        }
    ]
}
...
{
    "@id": "aged-16-to-64-years-level-3-or-above-qualifications.csv#csvcubed-build-activity",
    "@type": [
        "http://www.w3.org/2000/01/rdf-schema#Resource",
        "http://www.w3.org/ns/prov#Activity"
    ],
    "http://www.w3.org/ns/prov#used": [
        {
            "@id": "https://github.com/GSS-Cogs/csvcubed/releases/tag/v0.4.10"
        }
    ]
}
...

csvcubed version > 0.4.10
...
{
    "@id": "some-title.csv#csvqb",
    "http://www.w3.org/ns/prov#wasDerivedFrom": [
        {
            "@id": "https://github.com/GSS-Cogs/csvcubed/releases/tag/v0.5.0"
        }
    ],
    "http://www.w3.org/ns/prov#wasGeneratedBy": [
        {
            "@id": "some-title.csv#csvcubed-build-activity"
        }
    ]
}
...
{
    "@id": "some-title.csv#csvcubed-build-activity",
    "@type": [
        "http://www.w3.org/ns/prov#Activity",
        "http://www.w3.org/2000/01/rdf-schema#Resource"
    ],
    "http://www.w3.org/ns/prov#used": [
        {
            "@id": "https://github.com/GSS-Cogs/csvcubed/releases/tag/v0.5.0"
        }
    ]
},
{
    "@id": "https://github.com/GSS-Cogs/csvcubed/releases/tag/v0.5.0",
    "@type": [
        "http://www.w3.org/ns/prov#Entity",
        "http://www.w3.org/2000/01/rdf-schema#Resource"
    ],
    "http://purl.org/dc/terms/title": [
        {
            "@language": "en",
            "@value": "csvcubed v0.5.0"
        }
    ],
    "http://www.w3.org/ns/prov#hasPrimarySource": [
        {
            "@id": "https://pypi.org/project/csvcubed/0.5.0"
        }
    ],
    "http://www.w3.org/ns/prov#wasGeneratedBy": [
        {
            "@id": "some-title.csv#csvcubed-build-activity"
        }
    ]
}


%p prints uppercase alphabets

Hi, I tried your printf, and it looks good, thanks for writing this.
One minor problem I hit into, was that %p prints uppercase alphabets while other printf implementation prints in lower case.
I think probably it's good idea to use lower-case rather than uppercase?
thanks,

Fixed by commit 5fdbaa76ad7bac67098dc7d72ad50fef5aeacec7 on my fork.


Fix quoting issue when deleting multiple blobs

The blob name needs to be quoted.
See #10336 which has some discussion on why the blob name is quoted. This particular pull request doesn't try to address that issue, but just applies the same quoting as what's already present in the case of deleting a single blob.

I don't understand these test failures.

HI @malthe
The fix has been merged into master, so can we please close this pr?

@xiafu-msft no because d9ce290a91abba6c65d557a2f539edde75e85bf9 hasn't been merged to master. In this PR I just cherry-picked the commit which you're referring to and then added another one which sort of builds on it.

/azp run python - storage - ci

@malthe Can't overwrite existing cassette means you will have to run the tests in live and need to update recordings.
also, you have a missing import in the async files

/azp run python - storage - ci

@rakshith91 sorry, how do I run the tests live?
I added the missing import to the async file – thanks for the keen eye!

Hi @malthe
The quote fix has been released a couple of weeks ago, this pr is not necessary

Hi @xiafu-msft – as I mentioned in an earlier comment, there is still an open issue which is solved by this PR. Please examine for yourself the contents of 0a3c4e81e3adfe72a2edd757b5925d359a3e548d and compare with the master branch.

Hi @xiafu-msft – as I mentioned in an earlier comment, there is still an open issue which is solved by this PR. Please examine for yourself the contents of 0a3c4e8 and compare with the master branch.

Thanks for looking into the details! I responded inline

@xiafu-msft please see my inline comment.

Hi @malthe
https://github.com/Azure/azure-sdk-for-python/pull/11802 will fix this problem! It should be released before the end of this week!
Thanks again for catching this

Closing this PR since the issue will be fixed elsewhere.


🧪 Shrink bootloader ISA and RAM requirements

The default bootloader is now compiled using the minimal rv32e ISA (rv32_e_zicsr_zifencei actually). Furthermore, the minimal RAM requirements are lowered to 256 bytes. Thus, the bootloader can also operate on tiny processor configurations. Additionally, these constraints also reduce the total bootloader image size.

And also I guess this PR is a good place to remove the bootloader.c sanity check as mentioned here: https://github.com/stnolting/neorv32/pull/1108#issuecomment-2537021651
Thanks for trying it out!


Read the docs theme support

Would be great to see support for the read the docs theme. Thanks.   Read the Docs Theme

Hello,
Support for the Read the Docs theme is now available, starting from the v2.0.0 release.
Could you please try to update the plugin and submit some feedback?

Closing as this feature has landed.


Ability to make files packed within exports, but not installed

Such as a LICENSE file, which should be included in a pack zip (for CurseForge, Modrinth, MultiMC etc), but not installed to the instance itself. This could be done with a list of files in pack.toml?

Wouldn't .packwizignore work for this?

No, that would exclude it from the pack zip entirely.


HydrusNetwork.HydrusNetwork version v532

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/110360&drop=dogfoodAlpha

Release was pulled due to a hotfix.


Do not save tokens in myetherwallet

Help me figure out what the problem is ?: I skip my tokens with etherscan.io in the purse myetherwallet.com they are confirmed there but after some time tokens proprvdaet from the list in the balance. It is necessary to put them on the new from etherscan.io so constantly.

Is this a problem with etherscan or myetherwallet?


Trains disappear bug (ProtocolSupport incompatability)

BkCommonLib version: 1.14.4-v1
TrainCarts version: 1.14.4-v1
Spigot version: 1.12.2

Problem or bug: Trains disappear when the server is restarted in 1.12.2.
The trains are working normally as expected, but they can't be seen, sometimes they look stopped on certain part of the track, but they can't be destroyed.
When you use /train info, the train is moving and working, but, it can't be destroyed, ridden, etc.
Steps to reproduce: Placed a train on a 1.12.2 server, put it keepchunksload true, [Set speed to 1.2], let it go and restarted the server.
The train is still there because it activates the station sign and you can hear the sound of the station.

We need the type of the server as well (CraftBukkit/Spigot/Paper/etc), can you provide that?

Can you get a video here to show exactly what you mean? The dev is not able to respond immediately, so we would like to collect as much information as possible before he looks into this.

Ok, well, looks like ProtocolSupport was the reason of that problem, i'll update if this appears again.

So protocolsupport? Seems like an incompatibility, might be fixable within bktc, but will have to check with dev

Yep after all the reports about protocolsupport that we've been getting, I can safely say that protocolsupport is not compatible. I shall be closing this.


1.1 - change structure name

Copied from Discord:
fuddles Today at 12:19 PM
1.1)
#[derive(Component)]
struct Pos {
x: i32,
y: i32,
}
should be Position

also inserting a "reorganize chapter" or even adding it to 1.3) would be nice

since it goes from single file to broken out. as someone new to rust, having an explanation of things broken out would be nice

The Pos/Position was fixed by PR earlier this morning.


Updates

/botio build

From: MushinBot (botio-academy.horizen.global)

Received
Command cmd_build from @tuanhvdev received. Current queue size: 0
Live output at: https://botio-academy.horizen.global/5fe56f008d11945/output.txt

From: MushinBot (botio-academy.horizen.global)

Success
Full output at https://botio-academy.horizen.global/5fe56f008d11945/output.txt
Total script time: 1.75 mins
You can download the generated site at: https://botio-academy.horizen.global/latest.tar.gz
Or view a preview at https://devweb-academy.horizen.global


⚠ Bofrost.fr has degraded performance

In ed72428, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1249 ms

Resolved: Bofrost.fr performance has improved in 2ff141a after 22 minutes.


creating dask graph distributed.protocol.core - CRITICAL - Failed to deserialize

Hi,
I am running pyscenic with Jupyter Notebook and when I run the following snipet of code:
!pyscenic grn {f_loom_path_scenic} {f_tfs} -o adj.csv --num_workers 20
I get the following error:
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dask/config.py:161: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(f.read()) or {}
2020-04-09 14:49:12,997 - pyscenic.cli.pyscenic - INFO - Loading expression matrix.
2020-04-09 14:49:18,632 - pyscenic.cli.pyscenic - INFO - Inferring regulatory networks.
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dask/config.py:161: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(f.read()) or {}
preparing dask client
parsing input
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/arboreto/algo.py:214: FutureWarning: Method .as_matrix will be removed in a future version. Use .values instead.
expression_matrix = expression_data.as_matrix()
creating dask graph
distributed.protocol.core - CRITICAL - Failed to deserialize
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/protocol/core.py", line 108, in loads
header = msgpack.loads(header, use_list=False, **msgpack_opts)
File "msgpack/_unpacker.pyx", line 195, in msgpack._cmsgpack.unpackb
ValueError: tuple is not allowed for map key
distributed.core - ERROR - tuple is not allowed for map key
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/core.py", line 347, in handle_comm
msg = yield comm.read()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
yielded = self.gen.throw(*exc_info)  # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/comm/tcp.py", line 218, in read
frames, deserialize=self.deserialize, deserializers=deserializers
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 209, in wrapper
yielded = next(result)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/comm/utils.py", line 85, in from_frames
res = _from_frames()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/comm/utils.py", line 71, in _from_frames
frames, deserialize=deserialize, deserializers=deserializers
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/protocol/core.py", line 108, in loads
header = msgpack.loads(header, use_list=False, **msgpack_opts)
File "msgpack/_unpacker.pyx", line 195, in msgpack._cmsgpack.unpackb
ValueError: tuple is not allowed for map key
distributed.protocol.core - CRITICAL - Failed to deserialize
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/protocol/core.py", line 108, in loads
header = msgpack.loads(header, use_list=False, **msgpack_opts)
File "msgpack/_unpacker.pyx", line 195, in msgpack._cmsgpack.unpackb
ValueError: tuple is not allowed for map key
not shutting down client, client was created externally
finished
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/bin/pyscenic", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyscenic/cli/pyscenic.py", line 420, in main
args.func(args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pyscenic/cli/pyscenic.py", line 72, in find_adjacencies_command
network = method(expression_data=ex_mtx, tf_names=tf_names, verbose=True, client_or_address=client, seed=args.seed)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/arboreto/algo.py", line 41, in grnboost2
early_stop_window_length=early_stop_window_length, limit=limit, seed=seed, verbose=verbose)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/arboreto/algo.py", line 128, in diy
seed=seed)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/arboreto/core.py", line 403, in create_graph
future_tf_matrix = client.scatter(tf_matrix, broadcast=True)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/client.py", line 2071, in scatter
hash=hash,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/client.py", line 753, in sync
return sync(self.loop, func, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/utils.py", line 331, in sync
six.reraise(*error[0])
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/six.py", line 696, in reraise
raise value
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/utils.py", line 316, in f
result[0] = yield future
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
yielded = self.gen.throw(*exc_info)  # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/client.py", line 1916, in _scatter
timeout=timeout,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
yielded = self.gen.throw(*exc_info)  # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/core.py", line 739, in send_recv_from_rpc
result = yield send_recv(comm=comm, op=key, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
yielded = self.gen.throw(*exc_info)  # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/core.py", line 533, in send_recv
response = yield comm.read(deserializers=deserializers)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
yielded = self.gen.throw(*exc_info)  # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/comm/tcp.py", line 218, in read
frames, deserialize=self.deserialize, deserializers=deserializers
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
value = future.result()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado/gen.py", line 209, in wrapper
yielded = next(result)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/comm/utils.py", line 85, in from_frames
res = _from_frames()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/comm/utils.py", line 71, in _from_frames
frames, deserialize=deserialize, deserializers=deserializers
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/distributed/protocol/core.py", line 108, in loads
header = msgpack.loads(header, use_list=False, **msgpack_opts)
File "msgpack/_unpacker.pyx", line 195, in msgpack._cmsgpack.unpackb
ValueError: tuple is not allowed for map key
As you can see:
It starts going haywire with errors at the following point:
creating dask graph
distributed.protocol.core - CRITICAL - Failed to deserialize
I was hoping you could help me fix this issue. Thank you

Thanks for raising an issue @KabitaBaral1. What version of msgpack and distributed are you using? There were breaking changes in the 1.0 of msgpack that are only compatible with more recent versions of distributed. Specifically using msgpack 1.0+ requires distributed >=2.11.0

Hi,
I am using msgpack 1.0.0 and distributed 2.14.0.

Alright, thanks for the version info. Could you provide a minimum example so we can reproduce the error you're getting? (see https://blog.dask.org/2018/02/28/minimal-bug-reports)

Hi,
Thank you for getting back to me. I will try my best to do so.
So, I am using pyscenic and the snipet of code is:
!pyscenic grn {f_loom_path_scenic} {f_tfs} -o adj.csv --num_workers 20
for my transcription_factor  (f_tf) in code above list I used the following list:
https://github.com/aertslab/pySCENIC/blob/master/resources/hs_hgnc_tfs.txt
For f_loom_path_scenic: I created a loom file which is a matrix file with cell names as row names and gene names as column names
like:
| OR4F5 | AL627309.1 | AL627309.3 | AL669831.5 | FAM87B
AACTGGTTCAACTCTT-1 | 0 | 0 | 0 | 0 | 0
AAGCCGCCACGAGAGT-1 | 0 | 0 | 0 | 0 | 0
ACACCCTTCTACGAGT-1 | 0 | 0 | 0 | 0 | 0
ACCAGTAAGACAATAC-1 | 0 | 0 | 0 | 0 | 0
AGCGGTCCAGCTCCGA-1 | 0 | 0 | 0 | 0 | 0
AGCTCTCTCTAGCACA-1 | 0 | 0 | 0 | 0 | 0
AGGCCGTTCCACGAAT-1 | 0 | 0 | 0 | 0 | 0
The code I used on Jupyter is from this source:
https://github.com/aertslab/SCENICprotocol/blob/master/notebooks/PBMC10k_SCENIC-protocol-CLI.ipynb
I am not sure if this is of any help, but I am not sure how to get a minimum example for this, I apologize for that. Please let me know if I can help in any way. Thank you for looking into this

The line data = yaml.load(f.read()) or {} towards the top of your log suggests that you have a very old version of dask. You should make sure that you have compatible versions of dask and distributed, and that you have the same versions for every worker.
Furthermore, there is every chance that this is an issue with pyscenic, so you may want to cross-post there; I don't think anyone here knows about it,

Hi @martindurant Thank you, I made sure that dask and distributed are same version. When you said same versions for every worker, what did you mean?
Thank you for your help.

I made sure that dask and distributed are same version.

What versions exactly? How is it installed? I am being pernickety because of that YAML warning, which is very unexpected.

When you said same versions for every worker, what did you mean

You didn't tell us how you are launching the cluster - perhaps scenic does this for you. But Dask is using a set of processes which maybe are not even on the same machine. The worker processes could in principle not be using the same environment your main code is.

Hello, I am running into similar problem. I checked for the version of dask and distributed which were same when i installed using conda both versions 2.19.0. However when installing pyscenic (version 0.10.2), it removed these versions and installed dask 1.0.0 and distributed as 1.28.1 . Also my msgpack is version 1.0.0. Below is some of the output when installing pyscenic:
Installing collected packages: frozendict, attrs, dask, pandas, numpy-groupies, loompy, boltons, distributed, arboreto, interlap, pyarrow, dill, multiprocessing-on-dill, pyscenic
Attempting uninstall: dask
Found existing installation: dask 2.19.0
Uninstalling dask-2.19.0:
Successfully uninstalled dask-2.19.0
Attempting uninstall: pandas
Found existing installation: pandas 1.0.5
Uninstalling pandas-1.0.5:
Successfully uninstalled pandas-1.0.5
Attempting uninstall: distributed
Found existing installation: distributed 2.19.0
Uninstalling distributed-2.19.0:
Successfully uninstalled distributed-2.19.0
Successfully installed arboreto-0.1.5 attrs-19.3.0 boltons-20.2.0 dask-1.0.0 dill-0.3.2 distributed-1.28.1 frozendict-1.2 interlap-0.2.6 loompy-3.0.6 multiprocessing-on-dill-3.5.0a4 numpy-groupies-0+unknown pandas-0.25.3 pyarrow-0.16.0 pyscenic-0.10.2
when i run pyscenic CLI, I always get this error, even with just help command, followed by usage and its options:
pyscenic --help
/home/saumya.kumar/anaconda2/envs/scenic_protocol/lib/python3.6/site-packages/dask/config.py:161: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(f.read()) or {}
Any help will be appreciated!

This appears to be a problem with scenic and/or pip, I don't think there's much we can do when you end up with a version of dask/distributed that's so old. I suggest you ask the scenic group.


Release workload-0.4.0

Here is what I did manually to release this new 0.4.0 version for this Helm chart:
wget https://github.com/helm/chart-releaser/releases/download/v1.6.1/chart-releaser_1.6.1_linux_amd64.tar.gz
tar xfz chart-releaser_1.6.1_linux_amd64.tar.gz cr
sudo mv cr /usr/local/bin/

rm workload-0.3.0.tgz

helm package ./charts/workload/ --version 0.4.0 --app-version 0.4.0

And I manually updated both the index.yaml and the charts/workload/Chart.yaml files.
Note: I didn't use cr upload nor cr index as it seems that it was not used with the previous version 0.3.0.
Once merged into main, we will see if it's working as expected.
Also, this release process is very manual for now, let's see in the future if we could automate/document it.

@astromechza if you have a minute would you be able to review this PR? Mathieu is wanting to publish a new version of the helm chart after merging in the changes in https://github.com/score-spec/score-helm-charts/pull/4 - Thank you!!


Installation

Issue on page: https://github.com/opentelekomcloud/vault-plugin-secrets-openstack/blob/main/doc/source/installation.rst
Here I believe we miss the plugin registration prior to the enablement of the plugin.
So either we need :
$ export SHA256=$(shasum -a 256 "/etc/vault/plugins/vault-plugin-secrets-openstack" | cut -d' ' -f1)

$ vault write sys/plugins/catalog/vault-plugin-secrets-openstack \
    sha_256="${SHA256}" \
    command="vault-plugin-secrets-openstack"

OR
export SHA256=$(shasum -a 256 "/etc/vault/plugins/vault-plugin-secrets-openstack" | cut -d' ' -f1)
vault plugin register -sha256="${SHA256}" secret vault-plugin-secrets-openstack

FOR CONSIDERATION
Perhaps it would be also better to have amd in the Installation guide instead of arm...
vault-plugin-secrets-openstack_1.0.1_linux_arm64.tar.gz VS vault-plugin-secrets-openstack_1.0.1_linux_amd64.tar.gz

You are right. Instruction was created while running dev vault. And arm is just a "typo" if me seeing too bad ;-)

the same applies to missing plugin registration here and having arm, too :)
https://github.com/opentelekomcloud/vault-plugin-secrets-openstack/blob/main/doc/source/examples/demo.rst


got FWFEvaluateJavaScriptError when evaluating JavaScript on iOS

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Add two JavaScript channels named 'close' and 'ready'.
When the web finishes loading, call ready.postMessage('') in the JavaScript code.
Run the JavaScript code document.getElementById('back').onclick = () => close.postMessage('').
When the back button is clicked, the 'close' channel will receive a message.
If another link is clicked on the web and then returned to this page, the 'ready' message will be received again.
However, I encountered an error: Unhandled Exception: PlatformException(FWFEvaluateJavaScriptError, Failed evaluating JavaScript., Instance of 'NSError', null)

Expected results
post message to close channel
Actual results
got error Unhandled Exception: PlatformException(FWFEvaluateJavaScriptError, Failed evaluating JavaScript., Instance of 'NSError', null)
Code sample
Code sample
webViewController = WebViewController()
      ..setJavaScriptMode(JavaScriptMode.unrestricted)
      ..setBackgroundColor(AppColor.scaffold)
      ..enableZoom(false)
      ..addJavaScriptChannel(
        'close',
        onMessageReceived: (message) {
          Get.back();
        },
      )
      ..addJavaScriptChannel('ready', onMessageReceived: (message){
        const js = '''
          const backButton = document.getElementById('back');
          backButton.onclick = () => close.postMessage('');
        ''';
       webViewController.runJavaScript(js);
      });

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.10.2, on macOS 13.3.1 22E772610a darwin-x64, locale zh-Hans-CN)
    • Flutter version 3.10.2 on channel stable at /Users/flippedovo/workspace/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (6 days ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/flippedovo/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] IntelliJ IDEA Community Edition (version 2023.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.78.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

sorry i tried on simple html, it works


Remove JSHint

Pull Request Test Coverage Report for Build 89

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 87:
0.0%

Covered Lines:
92

Relevant Lines:
92

💛  - Coveralls