Durable Entity function doesn't trigger or receive data from streaming analytics

As posted in stackoverflow with no response, please help.
The durable entity function I've setup as output for a streaming analytics job doesn't trigger or receive any data. I can see incoming input data in the stream analytics job and it outputs to store the data correctly (for a stream analytics job storage output test I also setup). If I test the CalculatePositioni function with postman the function and entity receives the data and updates the state correctly.
I also get a binding error for the function app and I can't see what's missing:
Stream Analytics Job output with my duration funcapp setup:

I selected keyname default at output creation. I note don't see anywhere or local.settings.json in the function app where I'd need to enter the hashed key.

My function app.
namespace BladeFunctionApps
{

public static class TransformAlgorithm
{
    public static async Task Process_Algorithm([EntityTrigger] IDurableEntityContext context, ILogger log)
    {
        //Set or Get intermediate calculation state values
        Algorithm_SaveStateVariables intermediate_calc_results;
        if (context.HasState)
        {
            intermediate_calc_results = context.GetState<Algorithm_SaveStateVariables>();
            log.LogInformation("Success getting state values: CumItems:" + intermediate_calc_results.AverageMagnetometerX +
                " Avg:"+ intermediate_calc_results.AverageMagnetometerX);
        }
        else
        {
            log.LogError("Failed to get state values.");
            intermediate_calc_results = new Algorithm_SaveStateVariables();
        }

        //Get values from incoming Json object and perform calculations
        JObject deviceBatchMessage = (JObject)JsonConvert.DeserializeObject(context.GetInput<string>());

        Random rnd = new Random();
        int incomingDataLines = rnd.Next(1, 10);
        intermediate_calc_results.DataItemsNumber=incomingDataLines++;

        bool parsebool=float.TryParse(deviceBatchMessage["body"]["magnetX"].ToString(), out float tempMagnX);
        if(parsebool)
            intermediate_calc_results.AverageMagnetometerX+= tempMagnX;
        else
        {
            log.LogError("Could not parse to float: " + deviceBatchMessage["body"]["magnetX"].ToString());
            intermediate_calc_results.AverageMagnetometerX += 0;
        }

        context.SetState(intermediate_calc_results);
    }

    [FunctionName("CalculatePosition")]
    public static async Task<ActionResult> CalculateTransform(
        [HttpTrigger(AuthorizationLevel.Function, "get", Route = null)] HttpRequest req,
        [DurableClient] IDurableEntityClient client, ILogger log)
    {
        //read data
        // Extract the body from the request
        log.LogInformation("I'm at the top of CalculatePosition");
        string jsonContent = await new StreamReader(req.Body).ReadToEndAsync();
        if (string.IsNullOrEmpty(jsonContent))
        {
            log.LogInformation("CalculatePosition: Received Data null or empty.");
            return new StatusCodeResult(204); // 204, ASA connectivity check
        }
        else
            log.LogInformation("CalculatePosition: Received Data:" + jsonContent);

        //send data to algo for processing
        var entityId = new EntityId(nameof(Process_Algorithm), "ProcessTransformAlgorithm");
        await client.SignalEntityAsync(entityId,"FullOperation",jsonContent);

        return (ActionResult)new OkObjectResult($"CalculatePosition: CalculatePosition Success");
    }
}
}

What binding is missing?

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

ID: d4ee2063-bbb7-3b7f-5692-ff876fcf8260
Version Independent ID: 95d1c2a5-2b22-d2e8-3e32-6008cd82f8ec
Content: Tutorial - Run Azure Functions in Azure Stream Analytics jobs
Content Source: articles/stream-analytics/stream-analytics-with-azure-functions.md
Service: stream-analytics
GitHub Login: @enkrumah
Microsoft Alias: ebnkruma

@sergiosolorzano
Thanks for your feedback! We will investigate and update as appropriate.

@sergiosolorzano
Since this issue isn't directly related to improving our docs, and to gain a better understanding of your issue, I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.
[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows.
[Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1
If there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.

@sergiosolorzano
We are going to close this thread  but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Add parsing of .map files to improve reliability of JS translations

Adds a new MapCodeExtractor to parse .map files ( that may accompany minified JS files ).
It will parse these using the existing JsFunctionsScanner to improve picking up translations and translator's comments that may get lost during build steps and/or minification.

What about conflicts in comments between the different files. I guess the .js file and the .js.map file would either contain the exact same comment (in which case nothing should happen) or the .js file has no comment at all, in which the one in the .js.map file should be used.
Would there be other scenarios we need to take into account here?

What about conflicts in comments between the different files. I guess the .js file and the .js.map file would either contain the exact same comment (in which case nothing should happen) or the .js file has no comment at all, in which the one in the .js.map file should be used.
Would there be other scenarios we need to take into account here?

I think at the core this isn't so much a problem in parsing map files but rather a more generic one.
What happens if I have the following PHP file?
// translators: %s is the name of the product.
__( "Add %s", "my-domain" );

// translators: %s is the name of the post type.
__( "Add %s", "my-domain" );

Which, in current behaviour would add both comments:
public function addExtractedComment($comment)
    {
        if (!in_array($comment, $this->extractedComments, true)) {
            $this->extractedComments[] = $comment;
        }

        return $this;
    }

I think that behaviour is fine for map files as well. If the comment is already there then don't add it. If it's not then add it. If there happen to be two different comments there's really no way to automatically determine which one is more correct so the most sensible thing is to add both.

What happens if I have the following PHP file?
Which, in current behaviour would add both comments:

The audit function will print a warning in this case because the string has two different translator comments.


METRON-2067 Maven pom file duplicate dependency fixes

Contributor Comments
https://issues.apache.org/jira/browse/METRON-2067
Testing
These deps changes are test scope, so it really shouldn't need a fulldev run, however we've been making a vast number of changes to our project structure recently and I wanted to proceed with added caution. Full dev topologies worked with no signs of error for me.

Build should pass. This is removing duplicate dependencies from a couple pom files.
Verify data flows through to indexing in full dev, no exceptions in the profiler.

Pull Request Checklist
For all changes:

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

For code changes:

[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?

[x] Have you included steps or a guide to how the change may be verified and tested manually?

[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
mvn -q clean integration-test install && dev-utilities/build-utils/verify_licenses.sh

n/a Have you written or updated unit tests and or integration tests to verify your changes?

n/a If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

For documentation related changes:

n/a Have you ensured that format looks appropriate for the output in which it is rendered by building and verifying the site-book? If not then run the following commands and the verify changes via site-book/target/site/index.html:
cd site-book
mvn site

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
It is also recommended that travis-ci is set up for your personal repository such that your branches are built there before submitting a pull request.

Test

I was able to build and run tests successfully.  +1


Parse and process custom 'ext' attributes

Describe the bug
A custom attribute on 'ext' element is ignored, but should be parsed and processed as a custom attribute.
To Reproduce
    "ext": [
      {
        "type": "metadata",
        "id": "title",
        "name": "title",
        "value": "Company API",
        "tags": "oas"
      },
      {
        "type": "metadata",
        "id": "id",
        "name": "id",
        "value": "http://alps.io/profiles/mamund/company",
        "tags": "oas"
      },
      {
        "type": "metadata",
        "id":"root",
        "name": "root",
        "value": "http://api.example.org/company",
        "tags": "oas"
      }
    ]

name, type and tags are ignored
Expected behavior
name, type and tags should be parsed and processed as custom attributes

yep. name, type, and tags in this example. any other custom properties should also be parsed and processed.
to dig a bit deeper here:
i forsee a challenge in "nesting" objects with EXT elements.
one way to do this would be to say the only valid child element of EXT is another EXT:
<ext id="person" type="semantic">
  <ext id="docs" value="Special profile object for typical person in our group" />
  <ext id="name" />
  <ext id="hatSize" />
  <ext href="http://alps.example.org/profiles/smart-person" />
</ext>

another approach would be to say that the only valid child elements of and EXT element are existing ALPS elements; for example, DOC, LINK, DESCRIPTOR and EXT.
so a valid rendering of the above example might be:
<ext id="person" type="semantic">
  <doc>Special profile object for typical person in our group</doc>
  <descriptor id="name" />
  <ext id="hatSize" />
  <link id="http://alps.example.org/profiles/smart-person" />
</ext>

finally, you might consider supporting an arbitrary block of content within an EXT:
<ext id="person" schema="http://schema.examples.org/person">
  <story>Special profile object for typical person in our group</story>
  <property>name</property>
  <property>hatSize</property>
  <external id="http://alps.example.org/profiles/smart-person" />
</ext>

this last example is essentially creating an "island" of arbitrary content (supported by a direct schema link). i suspect this is going a bit too far and is not really needed. although the possibliity of a schema reference for EXT elements might not be a bad idea.
open for thoughts.

The nesting is real challenge, especially when considering transformations between representations. I'm thinking about splitting this issue into two, one related to custom attributes and the second one to the nested content.

Perhaps, there should be a strict definition of a custom attribute. See this example:
"ext":  {
        "id": "id",
        "custom1": {
              "a": false,
              "b": 123
         },
        "custom2": {
        }
      }

How does the HTML representation of the example look like?
<ext id="id" custom1:a="false" custom1:b="123" custom2/>

or
<ext id="id">
   <custom1>...</custom1>
   <custom2/>
</ext>

yeah - it's messy!
i prefer the second XML rendering of the sample JSON:
<ext id="id">
   <custom1 a="false" b="123"/>
   <custom2/>
</ext>

just taste here, i think. not sure there is much precedent for this view.  but i also think that approch will make parsing and transforming easier in the long run (think XML->JSON), right?
if we support the example I selected here, maybe we also need to intoduce the schema property? IOW, if you want to control the layout inside the EXT block, you do it using schema(s).  i see trouble ahead since we'll likely need more than one schema now (XSD, JSONSchema, and ???YAML) -- sheesh!
so, maybe you're point of only supporting scalars is a better angle. if we allow support for nested EXT elements, that gives quite a bit of options w/o complicating parsing/transforming.
thoughts?

XML attributes are scalars, just string values. JSON does not have a concept of attributes but in the examples I see only scalar values as 'ext' object properties.
As you pointed out, the nested content and its mapping to JSON, YAML is quite tricky. It might require a schema, etc.
If you agree then I will close this issue by supporting only scalars. It does the job for the current examples and we can go back to the nested content, non-scalars values, when solving issue #22 .

agreed.
EXT is for scalars only but let's be sure we can support arbitrary attributes on the XML side like this:
<ext id="hatSize" type="fedora" name="homburg" color="black">12.5</xml>

and the JSON would then be:
{"ext" : {"id" : "hatSize", "type" : "fedora", "name" : "homburg", "color" : "black", "value" : "12.5" } }

note that i serialized the value as a string, not a number of bool. if we want to be able to do that, we'll need to add a property to the EXT to carry that. I prefer NOT using type for this since we use type for a wider range of values already.
i like scalar to hold the strong-typing hint. open to using others. the spec will be written that EXT:scalar is an OPTIONAL property and can be set to string boolean, or number. If the value is missing (or set to an invalid value) then the parser will treat scalar value as set to string.
does that work?

yes, it does. Actually I've implemented a support for numbers and boolean already (it's not committed yet) but the core model sticks with strings. Let's give it a try.

if there are no objections (@mamund ?) then I will close this issue. See PR #23 and issue #22

no objections. closing is fine.


WIP: Component setup error messages with markdown

Description:
This is an improvement on #3738 to log persistent_notification error messages in more locations in bootstrap and include markdown.
The messages have been simplified to only show a single card, instead of the original two cards. If a platform or component exist a link will be added to the home-assistant.io website.
Markdown support

https://github.com/home-assistant/home-assistant-polymer/pull/128
https://github.com/home-assistant/home-assistant-polymer/issues/123

@balloob should I clean up the _PERSISTENT_ERRORS var on HOME_ASSISTANT_START?
CC: @justweb1
Related issue (if applicable): fixes #
Checklist:
If the code does not interact with devices:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

This is ok to merge when the Polymer support has been merged and comments addressed 👍

@kellerza
https://github.com/home-assistant/home-assistant-polymer/pull/130 comments have been addressed and has been merged.

Comments addressed. Unfortunately I can't successfully test it yet.
Feedback on gitter...

For now I have removed the relative /dev link, but list syntax supported correctly


TS syntax highlighting messed up in VS2022 after update to 17.5.x

After taking the VS2022 update 17.5.0 on 2/28/2023, syntax highlighting in Typescript became wonky, as can be seen in this screenshot from an Angular component:

The issue is still present after taking the 17.5.1 update today (3/1/2023).
My coworker who didn't take the 17.5.1 update was able to rollback to 17.4.x to confirm that everything works fine there.

This seems to work correctly

This seems to work correctly

Yeah it's definitely not working correctly. Both me and my coworker have extensive syntax highlighting issues that started with 17.5.0. I'll try and see if I can come up with steps to reproduce.

Okay, I've reproduced it within a new Angular project. It seems that type casting with let myVar = <string>someThing sets it off.
Steps to reproduce:

Create new angular project ng new proj-name
Open directory in Visual Studio 2022 v17.5.0+
Open app.component.ts and replace it with the following code:

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'new-ang-2';
  public myProperty: any;

  constructor() {
    let myVar = <string>this.myProperty;

    // some comments
    // some more comments
    // or whatever
    // all code beyond this will have wonky highlighting

    for (let i = 0; i < 100; i++) {
      let myString: string = i.toString();
    }
  }
}

Notice incorrect syntax highlighting here:

But if I change let myVar = <string>this.myProperty; to let myVar = this.myProperty;, the issue goes away:


Reorder observable field access

This addresses the discrepancy in observable property access order in ToDurationRecord between this proposal and Temporal.
Closes: #95

I see you removed a few validations here and there: were those redundant?

Those were required to be removed by the new version of ecmarkup. (The operations don't return a completion record.)

Hey @FrankYFTang  can you give it a look

sorry for my late reponse. I was on two weeks vacation following by slow recovering from COVID sickness when this was first proprosed. Great Job!


Cache key strings.

We are (happily, thx) using hiera-eyaml in a continuos delivery pipeline to build API objects for kubernetes at deployment time. Secret configuration items are encrypted by line and checked into version control, which is very handy.
On our deployment system the encryption keys are stored in ENV, to avoid leaking the keys we'd like to use this invocation of eyaml decrypt:
eyaml decrypt --pkcs7-private-key=<(printenv EYAML_PRIVATE_KEY) ...

however this only works for the first encrypted line and fails for the second, as the file descriptor is discarded. The simplest way would be to cache the key content. I have not thought thoroughly about the security implications of this approach, though.

Hi @mkulke, thanks for the PR. Could you please rebase and add some tests for this?

@bastelfreak: rebased and added test. PTAL

Thanks!


engula: add cmd to run a kernel server

This closes #148.

There are alot of error transform codes in this PR. Shall we introduce some libraries (such as anyhow) to solve this problem?

In this implementation, we can only launch all units on one node in a server. It may be OK for v0.2 but I think the goal is to have the flexibility to launch arbitrary units.

In this implementation, we can only launch all units on one node in a server. It may be OK for v0.2 but I think the goal is to have the flexibility to launch arbitrary units.

I the previous discussion: https://github.com/engula/engula/pull/171#issuecomment-988472342, we decided to serve version 2.0 first. Of course, our goal in the end must be to support launching arbitrary units.

So give me some time to refactor and come back to this later

@huachaohuang Is there any updates?

@huachaohuang Is there any updates?

I will come back to this in one or two days. Still working on other stuff.

@PatrickNicholas Do you think we should close this in favor of #193 ?

Now I close this because #193 is merged.


[WASM] Add minimal support for targeting wasm32-unknown-unknown-wasm. Forked #20684

This PR is based on https://github.com/apple/swift/pull/20684 which adds the minimal wasm support.
And I added some test case to ensure that swiftc accepts wasm32-unknown-unknown-wasm and wasm64-unknown-unknown-wasm.
This is my first time to write lit test case, so please let me know if there is a problem.

In the time since the precursor to this PR was opened, our fork of LLVM has advanced enough to the point that it supports wasi. Rather than trying to support a "none" OS, why don't we switch to supporting the wasi triples (wasm32-wasi and wasm64-wasi) instead? That would seem to address @compnerd 's issues.
In platform-specific code, that's what you're going to be interested in, anyway:
#if os(wasi)
import WasiLibc // wasi's stripped-down libc

printf(...)

#endif

I updated to use WASI as target OS

The original patch is now over a year old, then it finally became unarguably ready to merge, so of course someone had to immediately go and refactor that part of code so it now needs rewriting 😅
One day we will finally catch up to the likes of C, Forth and Lua, and support WASM.

Hi, is there anything that prevents this PR from being merged?

@kateinoigakukun i believe @compnerd  redid this after his changes and merged that version


typeahead does not respect remote data source order

What happened?
When we use remote typeahead option to get an ordered dataset from the server by input value, seems that suggestions pop up randomly whenever the input text matches the value, however, it doesn't follow dataset order to check and print matches. For example, if we have a dataset of 50 titles that starts with "tr" ordered by name from the server and after typeahead shows suggestions the first match is not equal to the first record from the dataset. It may lead to retrieving results less relevant causing a bad user experience.
Affected version
v4.17.0
Reproduction URL
https://codepen.io/stevens3/pen/WNgvrMN
How to reproduce?

Get a dataset with some titles ordered by the searched input value ("tr")
Click on the input
Type the text you are looking for, for example, "tr"
The first suggestion doesn't match the first record from the dataset

Browsers
Chrome, Brave
Relevant log output
No response
Additional context
No response

Hello @SneakyGerald , Thank you for reporting this. Since typeahead is fully controlled by the trie data structure, it would be impossible to reorder the suggestions as per the order of response returned by your backend (which could also return suggestions which do not contain the input query).
In the current version, its not possible but there is a PR in progress by bryan-gilbert who wants something similar and I think if we let users use their own custom data source, then could order suggestions the way they want to. However, this would bypass the power of the trie data-structure and the suggestions will be completely dependant on the custom-source.
I'm gonna put it on a priority for the next release!
Thanks!

I see your point, thank you! I will check that PR.

With version 5.4.0, a new config parameter hooks is available that allows you to fully control the suggestions displayed to the user.
Hence, closing this issue.


[RHOAIENG-10502]: Update App Launcher Title

https://issues.redhat.com/browse/RHOAIENG-10502
Changed the header value of the "Applications" section to be "Red Hat Applications" instead of referencing the product name.
The ODH console link no longer appears in the ODH Dashboard application menu therefore no changes were required in this regard cc @manosnoam.
Description

Before:

After:

How Has This Been Tested?

Click on app launcher icon in page masthead.
Test Impact

Updated application.cy.ts.
Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

[x] The developer has tested their solution on a cluster by using the image produced by the PR to main

I checked out the PR image and it looks good!

/lgtm

@andrewballantyne can you have a look at this PR. I don't know the history for product name usage and if we should be avoiding the use of Red Hat outside the context of RHOAI. Although maybe that doesn't matter now.


Implement ID validator for Canada 🇨🇦

A source of the algorithm can be found in here.

I'd like to give it a shot, please assign.

Amazing! I've just assigned the task to you and added hacktoberfest to the topics.

How do we go about the Pull Request? I created a new branch but I dont have permissions to push it to your repo?

How do we go about the Pull Request? I created a new branch but I dont have permissions to push it to your repo?

Did you try to fork the project first?
More info in CONTRIBUTING file.


need to create a new queue for frontend modules that must be returned right away

this is a problem as modules like the database status views also use rq multiples which wont return anytime soon if there are long-running analyses also occurring
issue overlaps with https://github.com/superphy/backend/issues/115
the new workers will likely become:

priority > multiples > backlog
priority > singles
blazegraph
priority

I'm adding the priority queue to backlog and singles, but also creating a separate container with some workers solely handling priority (similar to the way blazegraph queue is setup)

Getting and error:
modules.beautify.beautify.beautify({'disable_amr': False, 'i': '/datastore/2017-06-30-21-53-27-595283-GCA_000023365.1_ASM2336v1_genomic.fna', 'disable_vf': False, 'disable_serotype': False, 'pi': 90, 'options': {'pi': 90, 'amr': False, 'serotype': True, 'vf': True}}, '/datastore/2017-06-30-21-53-27-595283-GCA_000023365.1_ASM2336v1_genomic.fna_rgi.tsv_rgi.p') from multiples
b50e9cb9-8f34-43dd-82c8-f43282147c67
Failed 3 days ago
Traceback (most recent call last):
  File "/opt/conda/envs/backend/lib/python2.7/site-packages/rq/worker.py", line 700, in perform_job
    rv = job.perform()
  File "/opt/conda/envs/backend/lib/python2.7/site-packages/rq/job.py", line 500, in perform
    self._result = self.func(*self.args, **self.kwargs)
  File "./modules/beautify/beautify.py", line 124, in beautify
    json_r = check_alleles(json_r)
  File "./modules/beautify/find_widest.py", line 126, in check_alleles
    raise Exception('The Panadas DF from gene_dict is empty.')
Exception: The Panadas DF from gene_dict is empty.

The same error happened in the past when rgi wasnt run before beautifying. However, it looks like the pickle dump /datastore/2017-06-30-21-53-27-595283-GCA_000023365.1_ASM2336v1_genomic.fna_rgi.tsv_rgi.p isnt empty.

Added in https://github.com/superphy/backend/pull/137


Update trin bootnodes

We recently switched around bootnode responsibility to different nodes so that we have one in each region: Amsterdam, NYC & Singapore.

confirmed that new bootnodes are up & available


updating stan model and test

Hi @jindongmin I've taken another look at the indexing -- I think it is now fine (the previous iteration was looking at the healthy differences).
On source of confusion was the calculation of the 95% confidence intervals -- the quantile method seems more reliable.
You can also try confirming how close the mean estimates are to the ground truth if you are skeptical of these results (scipy.stats.pearson maybe helpful here)


validation_datashould be a tuple(val_x, val_y, val_sample_weight)or(val_x, val_y)`

Dataset.py
``
import os #for accessing the file system of the system
import random
from skimage import io
from skimage.transform import resize
import numpy as np
import tensorflow as tf
from tensorflow import keras
seed = 2323 #seed values to create random values
random.seed = seed
np.random.seed = seed
tf.seed = seed
class DataGenerator(keras.utils.Sequence):
def init(self, ids, imgs_dir, masks_dir, batch_size=10, img_size=128, n_classes=1, n_channels=3, shuffle=True):
self.id_names = ids
self.indexes = np.arange(len(self.id_names))
self.imgs_dir = imgs_dir
self.masks_dir = masks_dir
self.batch_size = batch_size
self.img_size = img_size
self.n_classes = n_classes
self.n_channels = n_channels
self.shuffle = shuffle
self.on_epoch_end()
def on_epoch_end(self):
    'Updates indexes after each epoch'
    self.indexes = np.arange(len(self.id_names))
    if self.shuffle == True:
        np.random.shuffle(self.indexes)

def __data_generation__(self, id_name):
    'Generates data containing batch_size samples' # X : (n_samples, *dim, n_channels)
    # Initialization
    img_path = os.path.join(self.imgs_dir, id_name)  # polyp segmentation/images/id_name.jpg
    mask_path = os.path.join(self.masks_dir, id_name) # polyp segmenatation/masks/id_name.jpg

    image = io.imread(img_path)  # reading image to image vaiable
    image = resize(image, (self.img_size, self.img_size), anti_aliasing=True)  # resizing input image to 128 * 128

    mask = io.imread(mask_path, as_gray=True)  # mask image of same size with all zeros
    mask = resize(mask, (self.img_size, self.img_size), anti_aliasing=True)  # resizing mask to fit the 128 * 128 image
    mask = np.expand_dims(mask, axis=-1)

    image = image / 255.0
    mask = mask / 255.0

    return image, mask

def __len__(self):
    "Denotes the number of batches per epoch"
    return int(np.floor(len(self.id_names) / self.batch_size))

def __getitem__(self, index):  # index : batch no.

    # Generate indexes of the batch
    batch_ids = self.id_names[index * self.batch_size:(index + 1) * self.batch_size]

    imgs = list()
    masks = list()

    for id_name in batch_ids:
        img, mask = self.__data_generation__(id_name)
        imgs.append(img)
        masks.append(mask)

    imgs = np.array(imgs)
    masks = np.array(masks)

    return imgs, masks  # return batch

``
train.py
``
import os  # for accessing the file system of the system
import segmentation_models as sm
from tensorflow.keras.callbacks import EarlyStopping, ModelCheckpoint, ReduceLROnPlateau
from dataset import DataGenerator
import tensorflow.keras as keras
if name == 'main':
# hyperparameter
image_size = 256
train_path = './data/train/imgs/'  # address of the dataset
mask_path = './data/train/masks/'
epochs = 10  # number of time we need to train dataset
batch_size = 2  # tarining batch size
# train path
train_ids = os.listdir(train_path)
# Validation Data Size
val_data_size = 10  # size of set of images used for the validation

valid_ids = train_ids[:val_data_size]  # list of image ids used for validation of result 0 to 9
train_ids = train_ids[val_data_size:]  # list of image ids used for training dataset
# print(valid_ids, "\n\n")
print("training_size: ", len(train_ids), "validation_size: ", len(valid_ids))

train_gen = DataGenerator(train_ids, train_path, mask_path, img_size=image_size, batch_size=batch_size)
valid_gen = DataGenerator(valid_ids, train_path, mask_path, img_size=image_size, batch_size=batch_size)
print("total training batches: ", len(train_gen))
print("total validaton batches: ", len(valid_gen))
train_steps = len(train_ids) // batch_size
valid_steps = len(valid_ids) // batch_size

BACKBONE = 'resnet34'
preprocess_input = sm.get_preprocessing(BACKBONE)

# define model
model = sm.Unet(BACKBONE, classes=1, encoder_weights='imagenet')
model.compile(
    'Adam',
    loss=sm.losses.bce_jaccard_loss,
    metrics=[sm.metrics.iou_score],
)

callbacks = [
    EarlyStopping(patience=10, verbose=1),
    ReduceLROnPlateau(factor=0.1, patience=3, min_lr=0.00001, verbose=1),
    ModelCheckpoint('model-tgs-salt.h5', verbose=1,
                    save_best_only=True, save_weights_only=True)]

# fit model
model.fit_generator(generator=train_gen, validation_data=valid_gen, steps_per_epoch=train_steps, validation_steps=valid_steps, epochs=50, callbacks=callbacks)

``
----> 2 model.fit_generator(generator=train_gen, validation_data=valid_gen, steps_per_epoch=train_steps, validation_steps=valid_steps, epochs=50)
ValueError: validation_data should be a tuple (val_x, val_y, val_sample_weight) or (val_x, val_y).
Could you tell me why does this error occur?

I solve this problem.
I think that 'segmentation_models' is implemented using 'keras' not 'tf.keras'.
Error version(for using segmentation models)
import tensorflow   \n Class Datagenerator('tf.keras.utils.Sequence')
Revised Version
import keras \n class Datagenerator('keras.utils.Sequence')
and it worked. I hope you guys get help. thanks

can you tell me the exact versions of Keras, Keras-Applications, Keras-Preprocessing and Tensorflow that you used to make this work?

I got same issue


Unicode decomposition

Spefication
This validator converts selected unicode characters to decomposed form.
The validator has been implemented for the previous version of marc-record-validate: https://github.com/NatLibFi/marc-record-validators-melinda/blob/2fc3e443b66234d5e13bc089447e4f0ae73ad998/lib/validators/decomposer.js
Note: The old implementation uses a util module which is not used in the new version of marc-record-validate. Source code is available here.
Name
unicode-decomposition
Description
Handles decomposition of selected characters
Error message template
Field ${tag}$${subfieldCode} contains characters that should be decomposed

Resolves #f255dc374fe18e56081873ff66acb9c77b85d005


Minor grammatical change to patch

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

/approve


schemas: remove duplicated affiliations and subjects relations

requires https://github.com/inveniosoftware/invenio-vocabularies/pull/151
closes https://github.com/inveniosoftware/invenio-vocabularies/issues/98
tests passing in local

Once https://github.com/inveniosoftware/invenio-vocabularies/pull/151 is merged and invenio-vocabularies v0.11.1 is released we can bump in setup.cfg and release v0.35.2 here.

Rebased on master. Test is failing on
E           KeyError: ''

Which seems to be "known" but not addressed.


Cannot Name Python Azure Function

Hi,
I am new to both VS code and Azure and am trying to get started with Azure Functions using python. I am following the quickstart guide from Microsoft linked here, but am unable to name my function when I get to step 3. There is no pop-up from VS code to name the function after selecting HTTP trigger or any other trigger templates.  After finishing step 3 I get the following:

Internal error: Expected value to be neither null nor undefined: functionName. Source: Azure Functions (Extenstion)

When I select another programming language I am able to name the function, but need to be able to do it in python. I am also having to use python 3.9, as when I was attempting to use python 3.10 VS code was saying that 3.10 wasn't supported, even though it says it should be here.
I have already uninstalled and reinstalled VS code and all extensions, but the error is persisting.

Does this occur consistently?  Yes
Repro steps:

1.Download VS Code
2.Follow steps as outlined in Quickstart: Create a function in Azure with Python using Visual Studio Code
3. Follow all steps up until the "Name of the function you want to create" in section in step 3.
4. Complete remaining sections of step 3.
Version: 0.11.6
OS: win32
OS Release: 10.0.19045
Product: Visual Studio Code
Product Version: 1.83.1
Language: en

I followed the steps in the guide you linked, and I was unable to reproduce the error you ran into.

What programming model did you select for Python?
What version of the Azure Functions extension do you have installed?

There is no programming model available for me to select (assuming you mean v1 or v2).
This is what I see after clicking create function and selecting my folder.

I have Azure Functions v1.13.1 installed.

There is no programming model available for me to select (assuming you mean v1 or v2).
This is what I see after clicking create function and selecting my folder.

I have Azure Functions v1.13.1 installed.

After you select Python on this step, what happens?

After selecting python, I select my interpreter (3.9)

Select HTTP trigger (naming it should come next, but does not)

Select Anonymous as the authorization level

Select Open in current window

Then I get the error

Can you please run func --version and let me know what you see?

Thank you! That fixed it! I had v3 installed and reinstalled v4 and am all good now. There were some other steps I had to do so I'll go over them so it's documented.

I did not have npm installed (via node.js) when I initially installed Azure Functions Core tools. So installed the v3 64-bit with MSI from here .
I am saying that because apparently to install/update/uninstall azure functions core tools from vs code, npm or brew needs to be installed (I received an error in vs code saying so).
After installing npm, I uninstalled v3 of azure functions core tools in the control panel because it was not installed with npm (I received an error in vs code when running F1 > Azure Functions: Uninstall Azure Functions Core Tools that said that was the case.
I ran F1 > Azure Functions: Install or Update Azure Functions Core Tools and can name the function now.

Thank you for your help!


x-www-form-urlencoded API call issue

 var dataToSend = {
          key: "value",
          key1: "value1"
        };

request.post({
        url: 'http://localhost:9092/services/reports/generateReport',
        form: dataToSend
    }, function optionalCallback(err, httpResponse, body) {
        if (err) {
            return console.error('upload failed:', err);
        }
    }).on('end', function (response) {
        console.log('success log');
        res.download('public/uploads/report.pdf');
    }).on('error', function (response) {
        console.log('Error downloading report file');
    }).pipe(fs.createWriteStream('public/uploads/report.pdf'));

Above code was working absolutely fine before 20 days, and now I am trying to run the same code, but it doesn't work ( doesn't even shows any error).
output is always "success log" . even If I write some wrong URL then also it shows "success log"
Web service is working fine, I have verified it with an external REST client.
Problem here is:

It doesn't care what URL I write, will go into 'end' part without giving any 'error'.
how to debug it? doesn't show any error

Note:  recently there was an update in request package, could that be a problem ?

I didn't want to create a generate one new issue,
but I believe something is wrong with request.post() . I tried running sample code, which works fine. But doesn't work with post request.
request('http://www.google.com', function (error, response, body) {
  if (!error && response.statusCode == 200) {
    console.log(body) // Show the HTML for the Google homepage.
  }
})

I was just about to push this code in Production and got this error. please I don't want to move to another rest HTTP-client

@dgt009, I believe I encountered the same problem with request.post() - the posted form data didn't come through correctly on the other end.
I solved it by request({url: url, body: data, json: true, method: "post"}, function (error, res, body) {}), so encoding the properties of the request as a options argument.


Profile — Testing #8

Legislators were not automatically populated + while trying to add my senator, couldn't see the dropdown box of senators (hidden behind footer)

pr #966 addresses dropdown


[iOS] Long title name is not truncated

When setting a really long title on iOS, the text goes over the top of the back text:

Not sure what the expected behaviour is here, but from the screenshot above it doesn't look great.
Cheers

Are you on master?

Fixed in master.


Support and design Agora Pass card

@ThierryThevenet Agora pass card is finally normal EmailPass with Arago design?


Fix typo in error message, upgrade to Arche v0.12.0

Fixes #59

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.314%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
583

Relevant Lines:
593

💛  - Coveralls


Angular 10 support

After upgrading to Angular 10 and attempting to run tests, I met the following error:
ERROR in node_modules/ng-mocks/dist/lib/common/lib.d.ts:12:57 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s).

12 export interface NgModuleWithProviders<T = any> extends ModuleWithProviders {

I believe it's due to the new ModuleWithProviders requirements.

Here is the related migration docs:
https://angular.io/guide/migration-module-with-providers

There is also problem with MockComponent usage after upgrade to ng10 :
  An error was thrown in afterAll   Uncaught ReferenceError: exports is not defined   ReferenceError: exports is not defined       at Module.../../node_modules/ng-mocks/dist/lib/common/Mock.js (http://localhost:9876/_karma_webpack_/vendor.js:528361:23)       at __webpack_require__ (http://localhost:9876/_karma_webpack_/main.js:80:30)       at Object.../../node_modules/ng-mocks/dist/lib/common/index.js (http://localhost:9876/_karma_webpack_/vendor.js:528671:10)       at __webpack_require__ (http://localhost:9876/_karma_webpack_/main.js:80:30)       at Object.../../node_modules/ng-mocks/dist/index.js (http://localhost:9876/_karma_webpack_/vendor.js:528318:10)
I have it in afterAll of every test which uses ng-mocks

@dtomaszewski can you create a small reproduction of this bug on stackblitz?

It seems that I solved it,
I had to change
... "module": "es2020" ...
in my tsconfig.base.json (which caused more other issues btw :D )

Hi. Which target did you have before?

On 29. Jun 2020, at 18:40, Dariusz<EMAIL_ADDRESS>wrote:

It seems that I solved it,
I had to change
... "module": "es2020" ...
in my tsconfig.base.json (which caused more other issues btw :D )
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

@satanTime
... "module": "esnext", "target": "es5", ...

Thanks. I’m almost back and will be able to check the issue soon.

thanks, setting module to es2020 for .spec file helped in my case but it'd be nice to look at it either way.

Yesterday I checked the things and found that for TS 3.9 a big part of ng-mocks interfaces should be changed to fix issues caused by TS2339.
I'll be working on it this week and I hope that a new version will have been released by the coming weekend.

Hi @dtomaszewski, after investigation I found that A10 doesn't respect es5 anymore and loads all mode_modules as es2015 if they provide builds for both es5 and es2015.
Currently I don't see a way how to tell A10 to use es5 version instead of es2015.
Please let me know if you know a solution or have advice.
Looks like we should move to es2015 and forget IE hell.

@satanTime yes, my workaround was just to differentiate spec and app tsconfig files. I'm not a huge fan of this solution because I use nx and I need to change it in every library (and remember to include it to each new lib generated) :/

Hi @dtomaszewski, after investigation I found that A10 doesn't respect es5 anymore and loads all mode_modules as es2015 if they provide both builds es5 and es2015.
Currently I don't see a way how to tell A10 to use es5 version instead of es2015.
Please let me know if you know a solution or have advice.
Looks like we should move to es2015 and forget IE hell.
Current solution I found is to use es5 in tsconfig.base.json and es2015 in tsconfig.spec.json

Hi @satanTime, this workaround didn't work for me, as when I tried to change my tesconfig.base.json I got the following error:
An unhandled exception occurred: tsconfig.base.json:9:19 - error TS6046: Argument for '--module' option must be: 'none', 'commonjs', 'amd', 'system', 'umd', 'es6', 'es2015', 'es2020', 'esnext'.

Any combination of module values in my tsconfig.spec.json or tsconfig.base.json still seems to produce the Uncaught ReferenceError: exports is not defined error.
Thankfully, this is in a project that doesn't make extensive use of ng-mocks so I have been able to just remvoe any references to the library. But this is obviously not an ideal fix for most people!

Hi @benelliott,
might you try to use es2015 in the base, and uncomment IE11 in .browserlistrc? I didn't try it yet, but as I understand in this case 2 bundles will be build and IE11 should get es5 version.

Sorry, that was actually my bad, I think you meant that you need to put es5 for the target in tsconfig.base.json (I was trying to set it for module, which is invalid).
Setting
        "target": "es5",
        "module": "es2015",

in tsconfig.base.json and/or tsconfig.spec.json with IE11 enabled in .browserslistrc doesn't fix the error for me.

Hi guys, might you check the latest version? it should work correctly both es5 and es2015

Hello,
I'm testing. it seems to be working. I have other issues though, unrelated
to ng-mocks.
Kind regards,
Ian Corne
On Sun, 12 Jul 2020 at 20:46, MG<EMAIL_ADDRESS>wrote:

Hi guys, might you check the latest version? it should work correctly both
es5 and es2015
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ike18t/ng-mocks/issues/148#issuecomment-657260252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAY3XTURMOXOG6RPRNNKC4LR3IAHZANCNFSM4OIFTZJA
.


Fix test

#153
发一个 PR 让 travis 跑合并之后的测试，这个分支的测试没出现问题。
没通过的测试记录：

https://travis-ci.org/whtsky/WeRoBot/builds/151252830
https://travis-ci.org/whtsky/WeRoBot/builds/151460836

A new inspection was created.

The inspection completed: No new issues

A new inspection was created.

Current coverage is 73.75% (diff: 100%)

Merging #154 into develop will not change coverage

@@            develop       #154   diff @@
==========================================
  Files            28         28
  Lines           987        987
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            728        728
  Misses          259        259
  Partials          0          0

Powered by Codecov. Last update 11c63ba...5b2990f

The inspection completed: No new issues

A new inspection was created.

The inspection completed: No new issues


feat: make primary and error color configurable

I'm quite new to rust, so posting this as a draft first, please check if I'm on the right track.
Things I still plan to do:

[x] fallback to default if color config is unparsable
[ ] add tests
[x] add documentation
[x] add changelog entry

Description
Making the primary and the error colors configurable.
Closes https://github.com/LucasPickering/slumber/issues/193
Known Risks
What issues could potentially go wrong with this change? Is it a breaking change? What have you done to mitigate any potential risks?
QA
How did you test this?
Checklist

[x] Have you read CONTRIBUTING.md already?
[x] Did you update CHANGELOG.md?

Only user-facing changes belong in the changelog. Internal changes such as refactors should only be included if they'll impact users, e.g. via performance improvement.

[ ] Did you remove all TODOs?

If there are unresolved issues, please open a follow-on issue and link to it in a comment so future work can be tracked

Hey @javaes thanks for this, unfortunately I started working on this last night and also have something almost done :( I just put my up in another PR if you want to reference it; Ours look very nearly identical, the main difference is mine stores the colors as the Color type from Ratatui, which means 1. we never have to copy colors and 2. It does all the deserialization for us. The one thing remaining is I want to replace the contrast_text function with just an additional field in the theme called primary_color_contrast, which will let the user select which color to use for text with the primary color background (generally will be white or black). I'll be doing that tomorrow probably since I won't have time today.

No worries, anyways still a learning experience for me! :+1:


Feature request: Swipe direction

Firstly., i think this is an absolutely great library!
I was wondering if it is possible to make the swipe direction more generic. Right now, its only left and right, but what if it provided up and down or maybe all 4, splitting the screen into 4 quadrants.
onLeftCardExit
onRightCardExit
onUpCardExit
onDownCardExit
If we need to make it even more flexible, we could register the exit listener between angles. Like 0-180 would be right. or 45-135 could be right in the quadrant system, etc etc.

This is a wonderful idea! Has anything further happened on it?

+1

+1

+1

Hello core team, Any updates?


YML Workflow: Adding caching for Python dependencies, turn off debugging

Adding caching for python dependencies via requirements.txt file
Removing some debugging detail from python script

@n-i-x  - the changes are in.
I thought I had the folder path in there, I think my fork is somehow in a dirty state.  I'll do a reset after this PR gets merged.


DwmSharedSurface Sample not Compiling

I have been trying to compile DwmSharedSurface Sample from the repo, but sharp dx is throwing exception like this:

SharpDX.SharpDXException: 'HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.'

I tried changing shader file location but it still throw exception here:
using var vertexShader = new VertexShader(device, vertexShaderByteCode);
Could you please resolve this issue

Is it possible to ask for a working Operation System and Graphics Device (I've confirmed that it works with NVIDIA GTX 1080), and a complete stack trace for investigation?
If the stack trace contains private file addresses, etc., we would appreciate it if you could just leave that part out.

I don't have a graphics card, my system uses inbuilt graphics. Do you have c++ code of this one, without the shaders

Sorry, I can't write C++, so I can't provide the code in C++.
However, I will try to do some research in my free time.

Ok, thank you
On Wed, 4 Aug, 2021, 7:45 pm Natsuneko, @.***> wrote:

Sorry, I can't write C++, so I can't provide the code in C++.
However, I will try to do some research in my free time.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mika-sandbox/dotnet-window-capture/issues/2#issuecomment-892695738,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARKGWVIVDE76UTPZIOBH2RTT3FDONANCNFSM5BDQZTJQ
.


Update S3 bucket creation to pass ObjectOwnership

Description
Updated ownership setting on created S3 bucket, change fixes failing integration tests
TestTerragruntSetsAccessLoggingForTfSTateS3BuckeToADifferentBucketWithGivenTargetPrefix
TestTerragruntSetsAccessLoggingForTfSTateS3BuckeToADifferentBucketWithDefaultTargetPrefix

Fixes #2539.

TODOs
Read the Gruntwork contribution guidelines.

[x] Update the docs.
[x] Run the relevant tests successfully, including pre-commit checks.
[x] Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
[x] Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Updated ownership setting on created S3 bucket
Migration Guide

quick sanity check, should this not be BucketOwnerEnforced as per https://github.com/gruntwork-io/terraform-aws-security/pull/769 ?


testnet network support - 86yryz3vznttxsy - validator

@jetlag666, Your Moniker and validator addresses are required, please update the PR with those details.

@jetlag666, Your Moniker and validator addresses are required, please update the PR with those details.

Hello, my moniker is "jetlife" and the validator address was akashvaloper10cwmzwvkfcvmtj5egexqvcgcpardg3aurzumgc

Hello, my moniker is "jetlife" and the validator address was akashvaloper10cwmzwvkfcvmtj5egexqvcgcpardg3aurzumgc


How to handle hidden fields?

Should I just add them to the url prop of the component?

I did that and worked perfectly, like this
url={https://gonzalocaballero.typeform.com/to/jRgQ18user_id=${this.props.user.id}&user_name=${this.props.user.name}`}`

should be something like url={https://xxxxxxxxxxxx.typeform.com/to/jRxQ18?user_id=${this.props.user.id}&user_name=${this.props.user.name}}
I updated the url to add the "?' before user_id

It's weird how the official Hubspot docs state a # tag prefixing the hidden fields param...
But I can confirm that @ibrahimkante is correct with using the "?"!


missing type casting

When trying to compile chipe_earlgrey_asic with VCS I get the following warnings, all related to missing type casting.
DC and LEC might not treat this missing casting the same way, which may lead to non equivalence logical checking:
...opentitan/hw/ip/aes/rtl/aes_pkg.sv, 349
aes_pkg, "CTRL_RESET"
  Only expressions of the enum type can be assigned to an enum variable.
  The type logic [2:0] is incompatible with the enum 'prs_rate_e'
  Expression: aes_reg_pkg::AES_CTRL_SHADOWED_PRNG_RESEED_RATE_RESVAL
  Use the static cast operator to convert the expression to enum type.

Warning-[ENUMASSIGN] Illegal assignment to enum variable
...opentitan/hw/ip/aes/rtl/aes_cipher_control_fsm_p.sv, 239
aes_cipher_control_fsm_p, "aes_cipher_control_fsm #(Masking, SBoxImpl, ) u_aes_cipher_control_fsm( .clk_i (clk_i),  .rst_ni (rst_ni),  .in_valid_i (in_valid),  .in_ready_o (in_ready),  .out_valid_o (out_valid),  .out_ready_i (out_ready),  .cfg_valid_i (cfg_valid),  .op_i (op),  .key_len_i (key_len),  .crypt_i (crypt),  .dec_key_gen_i (dec_key_gen),  .prng_reseed_i (prng_reseed),  .key_clear_i (key_clear),  .data_out_clear_i (data_out_clear),  .mux_sel_err_i (mux_sel_err),  .sp_enc_err_i (sp_enc_err),  .rnd_ctr_err_i (rnd_ctr_err),  .alert_o (alert),  .prng_update_o (prng_update),  .prng_reseed_req_o (prng_reseed_req),  .prng_reseed_ack_i (prng_reseed_ack),  .state_sel_o (state_sel),  .state_we_o (state_we),  .sub_bytes_en_o (sub_bytes_en),  .sub_bytes_out_req_i (sub_bytes_out_req ... "
  Only expressions of the enum type can be assigned to an enum variable.
  The type logic is incompatible with the enum 'ciph_op_e'
  Expression: op
  Use the static cast operator to convert the expression to enum type.

Warning-[ENUMASSIGN] Illegal assignment to enum variable
...opentitan/hw/ip/aes/rtl/aes_cipher_control_fsm_n.sv, 247
aes_cipher_control_fsm_n, "aes_cipher_control_fsm #(Masking, SBoxImpl, ) u_aes_cipher_control_fsm( .clk_i (clk_i),  .rst_ni (rst_ni),  .in_valid_i ((~in_valid_n)),  .in_ready_o (in_ready),  .out_valid_o (out_valid),  .out_ready_i ((~out_ready_n)),  .cfg_valid_i (cfg_valid),  .op_i (op),  .key_len_i (key_len),  .crypt_i ((~crypt_n)),  .dec_key_gen_i ((~dec_key_gen_n)),  .prng_reseed_i (prng_reseed),  .key_clear_i (key_clear),  .data_out_clear_i (data_out_clear),  .mux_sel_err_i (mux_sel_err),  .sp_enc_err_i (sp_enc_err),  .rnd_ctr_err_i (rnd_ctr_err),  .alert_o (alert),  .prng_update_o (prng_update),  .prng_reseed_req_o (prng_reseed_req),  .prng_reseed_ack_i (prng_reseed_ack),  .state_sel_o (state_sel),  .state_we_o (state_we),  .sub_bytes_en_o (sub_bytes_en),  .sub_bytes_out_req_ ... "
  Only expressions of the enum type can be assigned to an enum variable.
  The type logic is incompatible with the enum 'ciph_op_e'
  Expression: op
  Use the static cast operator to convert the expression to enum type.

Warning-[ENUMASSIGN] Illegal assignment to enum variable
...opentitan/hw/ip/rom_ctrl/rtl/rom_ctrl_mux.sv, 61
rom_ctrl_mux, "prim_flop #(4, {MuBi4False}, ) u_sel_bus_q_flop( .d_i (prim_mubi_pkg::mubi4_or_hi(sel_bus_q, sel_bus_i)),  .q_o (sel_bus_q),  .clk_i (clk_i),  .rst_ni (rst_ni));"
  Only expressions of the enum type can be assigned to an enum variable.
  The type logic [(Width - 1):0] is incompatible with the enum 'mubi4_t'
  Expression: q_o
  Use the static cast operator to convert the expression to enum type.

Warning-[ENUMASSIGN] Illegal assignment to enum variable
...opentitan/hw/ip/rom_ctrl/rtl/rom_ctrl_mux.sv, 69
rom_ctrl_mux, "prim_flop #(4, {MuBi4False}, ) u_sel_bus_qq_flop( .d_i (sel_bus_q),  .q_o (sel_bus_qq),  .clk_i (clk_i),  .rst_ni (rst_ni));"
  Only expressions of the enum type can be assigned to an enum variable.
  The type logic [(Width - 1):0] is incompatible with the enum 'mubi4_t'
  Expression: q_o
  Use the static cast operator to convert the expression to enum type.

Warning-[ENUMASSIGN] Illegal assignment to enum variable
...opentitan/hw/ip/kmac/rtl/kmac.sv, 641
kmac, "prim_sparse_fsm_flop #(kmac_st_e, StateWidth, 6'(KmacIdle), ) u_state_regs( .state_i (kmac_st_d),  .state_o (kmac_st),  .clk_i (clk_i),  .rst_ni (rst_ni));"
  Only expressions of the enum type can be assigned to an enum variable.
  The type logic [(Width - 1):0] is incompatible with the enum 'kmac_st_e'
  Expression: state_o
  Use the static cast operator to convert the expression to enum type.

By the way, we had such issues before. Also looking at the latest lint report I can't see such warning there.
Can you please add an ascent lint rule that will report such mismatches ?
Although VCS sees this as warning I'd although I think it should be ab error, because as said above, different tools can treat it differently.
thanks

Gah! Looks like we're missing some casts. Also, see https://github.com/lowRISC/opentitan/pull/9391 where I suggested an approach where we wouldn't need to do this busy-work at all...

@GregAC @vogelpi
I can investigate adding lint rules for this.
In the meantime (given that we have a US holiday on Monday), can maybe someone at LR look into fixing these? Otherwise I'll take a look on Tuesday.
@rswarbrick Yeah I know, but at this point I think we need to work with the choice that was made back then (there were pros and cons).

I was wrong about this all being to do with mubi types :-) I've addressed the easy bugs in (#10120, #10122, #10123, #10124). There are also a couple of less trivial fixes needed and I've opened up issues and tagged the relevant people for them. See: #10115, #10116, #10119.

Thanks for taking a stab at these @rswarbrick.
As of now  #10115, #10119 are still pending, but I believe these are not ENUMASSIGN warnings.
@arnonsha can you check again if things are clean and close this bug if yes?

no more ENUMASSIGN warnings in today's nightly run.
Thanks for fixing that.


[WIP] feat: add sequencer api component with snowflake algorithm

What this PR does:
add sequencer api component with snowflake algorithm
Which issue(s) this PR fixes:
Fixes #193

Three Parts:

[x] mysql
[x] ringbuffer
[ ] uidgenerator

@OOOOlh  remember add  license header


gh: refactor community files

This PR aims to move the CODEOWNERS and CONTRIBUTING.md file from the root of the directory to the .github/ directory. Github looks for a contribution guideline file in the following order: .github dir > project root > docs dir (source). Moving the file to the .github/ dir leads to a minimal project structure without any functional change.

I'm happy to move CODEOWNERS but my personal feeling is that having CONTRIBUTING.md in the root aids discoverability.
@chrmarti  - what are your thoughts?

of course, I'll reiterate after feedback.

Gentle ping @stuartleeks @chrmarti

/test


Text Generation Chrome Extension

Project Name
Text Generation Chrome Extension
Project Description
Given a text input this tool should recognize the context and create a paragraph. You can create your own models and use them to create a web based interactive tool or you can even use APIs from hugging face or other open-source models.
Project Type:

NLP, Text processing

Mention the technology stack, and how your are going to go through with this project.

@yagyesh-bobde Can I work on this?

@yagyesh-bobde Can I work on this?

Sure! @aindree-2005 go ahead I have assigned it to you. Let me know if you need resources or face any challenges along the way

Sure! @aindree-2005 go ahead I have assigned it to you. Let me know if you need resources or face any challenges along the way

We can discuss it on the SWOC discord channel.

We can discuss it on the SWOC discord channel.

@aindree-2005 is there any progress?


Fix deg2Cardinal directions function in currentweather module

Got a little overzealous when typing. I've fixed the NE, ENE, and E directions now.
Thanks for letting me know, @MichMich.

This PR has conflicts. Please pull my changes first. :)


LOG4J2-3108 - Reuse multiple equivalent occurrences of the same expression

This really should have a Jira issue.

Hi @rgoers
Created
https://issues.apache.org/jira/browse/LOG4J2-3108
TY

We have shared with @arturobernalg in the dev mailing list that we are understaffed to deal with the cosmetic changes he has proposed so far, hence closing the ticket.


Set isolation level using CWB_ATTR_TXN_ISOLATION

I added support in the next ODBC driver version to set the isolation level to *NONE via SQL_ATTR_TXN_ISOLATION, so conceivably we can set this using the set_attr on the connection object. However, Microsoft's ODBC driver manager only allows setting the 4 pre-defined isolation options and will not allow setting the value to 0 for *NONE.
To get around this, I added a new attribute that is an alias of SQL_ATTR_TXN_ISOLATION called CWB_ATTR_TXN_ISOLATION (value 2139). This works exactly the same as the ODBC version, except the driver manager just passes the value through to the driver so we can set it to 0.
This will only work when the driver level is 7.1.24 or higher, so we'll need to do some checking before we use it or pass *NONE through.

Hi There!
I wanted to check in if there's already the option to set the isolation_level in the connection string to "NO COMMIT"?
If not, you maybe know a temporal workaround if I want to use it together with ibmi?
Currently, when I'm trying to create a temporary table on a DB2 as/400 database I get a SQL7008 error saying the 'not valid for operation'
Appreciate your help, thank you!

Yes, you can set CMT=0 on the connection string. It is documented here

Thanks a lot for you reply!
Unfortunately, I'm not sure if I'm understanding you correctly. Is this equivalent to the parameter isolation_level? If so, based on the code documentation I was assuming that the NO COMMIT option is currently not supported.
Or am I confusing something?

Ohh, sorry I thought you were referring to direct ODBC connections. Through SQLAlchemy, you must use the options supported by sqlalchemy-ibmi. There is not yet support for NO COMMIT (that's what this issue is about).

Thank you for your response!
I understand. I thought that there might have been some changes in the meantime since the issue a bit older already.
Unfortunately, I have not been able to establish a connection through packages, except ibmi. With all the other combinations I have found googling, I get various errors when trying to connect to our as/400 database.
Do you maybe know a working connection string to pass to sqlalchemy that basically emulates the things that ibmi does?


Facing while executing train.py. How need to resolve same.

_np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\hp\anaconda3\envs\voxelnet\lib\site-packages\tensorflow\python\framework\dtypes.py:532: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Dataset lidar length: 5237
Dataset tag length: 5237
Dataset total length: 5237
C:\Users\hp\anaconda3\envs\voxelnet\lib\site-packages\tensorflow\python\framework\dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\hp\anaconda3\envs\voxelnet\lib\site-packages\tensorflow\python\framework\dtypes.py:524: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\hp\anaconda3\envs\voxelnet\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
C:\Users\hp\anaconda3\envs\voxelnet\lib\site-packages\tensorflow\python\framework\dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
C:\Users\hp\anaconda3\envs\voxelnet\lib\site-packages\tensorflow\python\framework\dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
C:\Users\hp\anaconda3\envs\voxelnet\lib\site-packages\tensorflow\python\framework\dtypes.py:532: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp, line 3289
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp, line 3289
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp, line 3289
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:\ci\opencv_1512688052760\work\modules\imgproc\src\resize.cpp, line 3289
Process Process-1:
Traceback (most recent call last):
File "C:\Users\hp\anaconda3\envs\voxelnet\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "C:\Users\hp\anaconda3\envs\voxelnet\lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\hp\Documents\VoxelNet-tensorflow\utils\kitti_loader.py", line 237, in loader_worker_main
self.fill_queue(batch_size)
File "C:\Users\hp\Documents\VoxelNet-tensorflow\utils\kitti_loader.py", line 166, in fill_queue
voxel[idx * single_batch_size:(idx + 1) * single_batch_size])
File "C:\Users\hp\Documents\VoxelNet-tensorflow\utils\kitti_loader.py", line 269, in build_input
feature = np.concatenate(feature_list)
File "<array_function internals>", line 6, in concatenate
ValueError: need at least one array to concatenate

when run setup.py  find     ValueError: './utils/box_overlaps.pyx' doesn't match any files     could you answer this question?

Solve build issue from below link. Also set proper path of data in config or in train.py
https://medium.com/@HojjatA/how-i-solved-error-unable-to-find-vcvarsall-bat-f161d4e3b21c


Signed-off-by: marcolan018<EMAIL_ADDRESS>

upgrade pkg nats-server to 2.7.2
https://github.com/stolostron/backlog/issues/20188

/hold

/unhold


add some description to readme.md

I have added a description to the README.md that is accessible to non-developers, hopefully clarifying jargon. Do you think having this explanation is of value to this project?

Closed because of version 2 release.


September release notes for Tables

Marking this as ready for review.  Let me know if there any additional changes and I can go ahead and make them.

Closing this because I need to push some additional commits and I don't have access to Brandon's fork to do so.  I will re-open a new PR.


Felix uses the RE2 regex library. It does not work on Windows, however.
C++11 may be the best option.
Any opinion from all 1 people watching this repo?

C++14? 11 would be good for compatibility, but 14's got a lot of cool features. I'd stay up to date and use 14.

@phase I'm not sure if C++14 would make a difference. I don't think any of the new features would really end up being used...

@kirbyfan64 C++11 it is!

@phase Wow, you didn't even consider Felix, did you?? :O
I guess it's C++12 then.

s/12/11/


Add storage release notes

CI is failing because you have updated versions to some that haven't been published yet. Note that you don't need to manually update those version as we have a bot that will update to the latest published versions daily.

CI is failing because you have updated versions to some that haven't been published yet. Note that you don't need to manually update those version as we have a bot that will update to the latest published versions daily.

Ah ok. I didn't realize we didn't need to manually update. The packages are being released now, so I will re-run CI after that is done.

/azp run azure-sdk - ci


Installation error after docker installation

I have previously installed Autoware everything was working was able to launch runtime manager and play the demo file. To build the autoware bridge, I followed the steps by installing docker and nvidia docker. After this installation I am not able to use the commands ./run.sh or ./build.sh
When I run the command ./run.sh. I am getting the follwing output:
Unable to find image 'carla-autoware:latest' locally
docker: Error response from daemon: pull access denied for carla-autoware, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
When I run the command ./build.sh. I am getting the follwing output:
Summary: 154 packages finished [45.8s]
Removing intermediate container daf57ac4f1c2
---> fc0b1e1ff73e
Step 7/20 : RUN mkdir ./PythonAPI
---> Running in 701e631cee77
Removing intermediate container 701e631cee77
---> 587e67195d95
Step 8/20 : ADD --chown=autoware https://carla-releases.s3.eu-west-3.amazonaws.com/Backup/carla-0.9.10-py2.7-linux-x86_64.egg ./PythonAPI
Downloading [==================================================>]  25.67MB/25.67MB
---> 7ed468c08c42
Step 9/20 : RUN echo "export PYTHON2_EGG=$(ls /home/autoware/PythonAPI | grep py2.)" >> .bashrc     && echo "export PYTHONPATH=$PYTHONPATH:~/PythonAPI/$PYTHON2_EGG" >> .bashrc
---> Running in 0f58e02eca00
Removing intermediate container 0f58e02eca00
---> e67fb32efae7
Step 10/20 : RUN sudo rm -f /etc/apt/sources.list.d/ros1-latest.list
---> Running in c65a14ee3b35
Removing intermediate container c65a14ee3b35
---> 8393810c6247
Step 11/20 : RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA
---> Running in b2c6f3e9c4e8
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.GEFTbANDpd/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA
gpg: key AD19BAB3CBF125EA: public key "ROS Snapshot builder<EMAIL_ADDRESS>imported
gpg: Total number processed: 1
gpg:               imported: 1
Removing intermediate container b2c6f3e9c4e8
---> 3a8c873d5795
Step 12/20 : RUN sudo sh -c 'echo "deb http://snapshots.ros.org/melodic/2020-08-07/ubuntu $(lsb_release -sc) main" >> /etc/apt/sources.list.d/ros-snapshots.list'
---> Running in 791ad4091a0f
Removing intermediate container 791ad4091a0f
---> bfd56a693aae
Step 13/20 : RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends         python-pip         python-wheel         ros-melodic-ackermann-msgs         ros-melodic-derived-object-msgs     && sudo rm -rf /var/lib/apt/lists/*
---> Running in 94248f119fbc
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [348 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1402 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2045 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [24.5 kB]
Get:7 http://snapshots.ros.org/melodic/2020-08-07/ubuntu bionic InRelease [13.8 kB]
Ign:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:11 http://snapshots.ros.org/melodic/2020-08-07/ubuntu bionic/main amd64 Packages [877 kB]
Ign:12 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  InRelease
Get:13 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release [697 B]
Get:14 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Release [564 B]
Get:15 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Release.gpg [836 B]
Get:16 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Release.gpg [833 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Ign:21 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Packages
Get:22 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64  Packages [73.8 kB]
Get:21 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  Packages [603 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [378 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [31.4 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2172 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2476 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
Fetched 23.8 MB in 3s (7758 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
python-pip-whl python3-pip ros-melodic-radar-msgs
Recommended packages:
python-all-dev python-keyring python-keyrings.alt python-xdg python3-wheel
The following NEW packages will be installed:
python-pip python-wheel ros-melodic-ackermann-msgs
ros-melodic-derived-object-msgs ros-melodic-radar-msgs
The following packages will be upgraded:
python-pip-whl python3-pip
2 upgraded, 5 newly installed, 0 to remove and 405 not upgraded.
Need to get 2058 kB of archives.
After this operation, 2320 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python3-pip all 9.0.1-2.3~ubuntu<IP_ADDRESS> [114 kB]
Get:2 http://snapshots.ros.org/melodic/2020-08-07/ubuntu bionic/main amd64 ros-melodic-radar-msgs amd64 3.0.1-1bionic.20200801.121516 [35.7 kB]
Get:3 http://snapshots.ros.org/melodic/2020-08-07/ubuntu bionic/main amd64 ros-melodic-derived-object-msgs amd64 3.0.1-1bionic.20200801.123834 [50.6 kB]
Get:4 http://snapshots.ros.org/melodic/2020-08-07/ubuntu bionic/main amd64 ros-melodic-ackermann-msgs amd64 1.0.1-0bionic.20200801.123243 [17.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python-pip-whl all 9.0.1-2.3~ubuntu<IP_ADDRESS> [1653 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 python-pip all 9.0.1-2.3~ubuntu<IP_ADDRESS> [151 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 python-wheel all 0.30.0-0.2 [36.4 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2058 kB in 0s (6348 kB/s)
(Reading database ... 127175 files and directories currently installed.)
Preparing to unpack .../0-python3-pip_9.0.1-2.3~ubuntu<IP_ADDRESS>_all.deb ...
Unpacking python3-pip (9.0.1-2.3~ubuntu<IP_ADDRESS>) over (9.0.1-2.3~ubuntu<IP_ADDRESS>) ...
Preparing to unpack .../1-python-pip-whl_9.0.1-2.3~ubuntu<IP_ADDRESS>_all.deb ...
Unpacking python-pip-whl (9.0.1-2.3~ubuntu<IP_ADDRESS>) over (9.0.1-2.3~ubuntu<IP_ADDRESS>) ...
Selecting previously unselected package python-pip.
Preparing to unpack .../2-python-pip_9.0.1-2.3~ubuntu<IP_ADDRESS>_all.deb ...
Unpacking python-pip (9.0.1-2.3~ubuntu<IP_ADDRESS>) ...
Selecting previously unselected package python-wheel.
Preparing to unpack .../3-python-wheel_0.30.0-0.2_all.deb ...
Unpacking python-wheel (0.30.0-0.2) ...
Selecting previously unselected package ros-melodic-radar-msgs.
Preparing to unpack .../4-ros-melodic-radar-msgs_3.0.1-1bionic.20200801.121516_amd64.deb ...
Unpacking ros-melodic-radar-msgs (3.0.1-1bionic.20200801.121516) ...
Selecting previously unselected package ros-melodic-derived-object-msgs.
Preparing to unpack .../5-ros-melodic-derived-object-msgs_3.0.1-1bionic.20200801.123834_amd64.deb ...
Unpacking ros-melodic-derived-object-msgs (3.0.1-1bionic.20200801.123834) ...
Selecting previously unselected package ros-melodic-ackermann-msgs.
Preparing to unpack .../6-ros-melodic-ackermann-msgs_1.0.1-0bionic.20200801.123243_amd64.deb ...
Unpacking ros-melodic-ackermann-msgs (1.0.1-0bionic.20200801.123243) ...
Setting up ros-melodic-radar-msgs (3.0.1-1bionic.20200801.121516) ...
Setting up python-pip-whl (9.0.1-2.3~ubuntu<IP_ADDRESS>) ...
Setting up ros-melodic-derived-object-msgs (3.0.1-1bionic.20200801.123834) ...
Setting up ros-melodic-ackermann-msgs (1.0.1-0bionic.20200801.123243) ...
Setting up python-wheel (0.30.0-0.2) ...
Setting up python3-pip (9.0.1-2.3~ubuntu<IP_ADDRESS>) ...
Setting up python-pip (9.0.1-2.3~ubuntu<IP_ADDRESS>) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Removing intermediate container 94248f119fbc
---> 3eb460bc7df6
Step 14/20 : RUN pip install simple-pid pygame networkx==2.2
---> Running in 34331bd3ed4f
Collecting simple-pid
Downloading https://files.pythonhosted.org/packages/f0/23/fa4e51987a031580f3af54a75eae60aacce593e23669075ae65664511244/simple_pid-1.0.0-py2.py3-none-any.whl
Collecting pygame
Downloading https://files.pythonhosted.org/packages/d2/11/4212b97ea025aca55e2284e9c7d8cb87cfaddb4e89f5eb613c81017246c1/pygame-2.0.1-cp27-cp27mu-manylinux1_x86_64.whl (11.7MB)
Collecting networkx==2.2
Downloading https://files.pythonhosted.org/packages/f3/f4/7e20ef40b118478191cec0b58c3192f822cace858c19505c7670961b76b2/networkx-2.2.zip (1.7MB)
Collecting decorator>=4.3.0 (from networkx==2.2)
Downloading https://files.pythonhosted.org/packages/71/bd/042e63027bea950da4e6f5545eb59b973868da854ab30a18128d3b884104/decorator-5.0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-frcDUw/decorator/setup.py", line 4, in
exec(open('src/decorator.py').read(), dic)  # extract the version
File "", line 162
print('Error in generated code:', file=sys.stderr)
^
SyntaxError: invalid syntax
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-frcDUw/decorator/
The command '/bin/bash -o pipefail -c pip install simple-pid pygame networkx==2.2' returned a non-zero code: 1
Please help me fix this issue.

hi please try replace the Docker file step 14 with pip install simple-pid pygame decorator==4.4.2


@sweir27 account for longer titles in auction reminder

references https://github.com/artsy/auctions/issues/146
I made the change discussed in the ticket but I'm not sure if there should be more to it: basically, text that wraps to a third line will start to cause the a.auction-reminder to expand already- it seems like it would look better if this only happened when absolutely necessary. I don't think there is a simple way to know for sure how many lines a text will take up, but assuming the words have spaces and we aren't hyphenating it looks like a max of around 35 characters- i thought about adding a class in this case and only setting min-height for that (basically aiming to remove the height restriction only if the text is going to go to a 4th line), but maybe i'm overthinking it.
With min-height: 120px

Before change (height: 120px)

one other thing i forgot to mention- without height the minimum height is actually 122px, even with a single line of text due to the padding. if 120 is the goal i could reduce that padding.

Hold on, more to do.

worked with @acjay on making this a bit more consistent. we removed the height property completely because the 120px is exceeded by some quirk of css (90px high picture + 15px padding  + 2 more px). We also are more explicit with the positions of the auction data and timer so that text can't push the timer around:
the long title here pushes the timer

timer stays in place, reminder height increases and overflowing text is forced to break
(but only for a very very long word)

@acjay in the interest of fixing the formatting bug maybe @devangt suggested maybe this should go out and I can do the rest seaparately


x/pkgsite: consolidate keyboard shortcut behavior across site

There are few places where we handle keyboard shortcuts on the site, and these should be consolidated into a sensible design to more easily avoid conflicts and code duplication.

In most popular websites (reddit, github etc...) typing "?" would bring up a dialog to open up keyboard shortcuts, would this be something we can consider?

@AceroM That exists right now at least on the Doc tab. It seems to make sense to have it on other pages, but that’s not really what this issue is about.

Apologies @AceroM as I didn’t exactly clarify what this issue was about 😄 .
This issue is about coming up with a solid architecture design on the frontend for handling keyboard shortcuts in code. It’s not focused on visual design or UI elements on the page.


Fix Scrolling issue on the component details screen

When I get to the component details screen, the scrolling is very slow and laggy

Try here
https://flutterwidgethub.com/components/blocks/sliders-and-carousels/fruity-lips-carousel

This issue has been closed by this MR


(Fix) - #1783 Trezor gas estimation fail

Closes #1783
Description

The getDataFromNodeErrorMessage function which is a function that parses the error response of non geth nodes in order to extract the estimationData wasn't supporting the way how trezor sends that error message. We were expecting an error message like this:

msg execution reverted:
{
      "originalError": {
      "code": 3,
      "message": "execution reverted:",
      "data": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000006457"}
}

But trezor just sends:
0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000006457

This prs adds the logic for that case

Travis automatic deployment:
https://pr1788--safereact.review.gnosisdev.com/rinkeby/app

Travis automatic deployment:
https://pr1788--safereact.review.gnosisdev.com/rinkeby/app

Travis automatic deployment:
https://pr1788--safereact.review.gnosisdev.com/volta/app

Travis automatic deployment:
https://pr1788--safereact.review.gnosisdev.com/volta/app


Completing Issue 202 by adding pge_sim_mode to int and pst venues

This completes issue 202

Just a tip, try always linking to the respective issue by including a # character before the number. i.e. #202


asyncio client/server support

Hi,
I'm looking for a way to run thrift with asyncio, the fbthrift fork has some examples (https://github.com/facebook/fbthrift/blob/master/thrift/tutorial/py.asyncio/PythonServer.py), i like the idea of a pure python without having to pregenerate code implementation like this but i've seen no mention of asyncio, apparently it works on py3 and already has some tornado examples so my question is, is it reasonably to work on supporting asyncio here? I could send a PR but i wanted to touch base before jumping into coding.
Any pointers would be helpful.
Thanks.

It would be great to have an asyncio server implementation, while currently we don't have much time on new feature development, PR is very welcome!

Is there any place where i can make some technical questions about thriftpy? Like an irc or some other place? I got some questions regarding some of the internals.

One specific question, i'm getting "struct.error: unpack requires a bytes object of length 4" in thriftpy/protocol/binary.py while calling self.processor.process(self.in_protocol, self.out_protocol) in my code, which will now explain why you had that complex code to handle frames in tornado.py, why do we need to read frame by frame? Or am i missing something?

I would be very interested in an asyncio implementation.  Did you do any additional work on this feature?

I attempted to implement it but it got really complicated for me, i have
some synchronization issues that i'm not sure how to properly resolve the
way things are implemented in thriftpy. I tried to model it following the
tornado implementation but i got lost.
On Mon, Nov 21, 2016 at 2:12 PM, kyeatman74<EMAIL_ADDRESS>wrote:

I would be very interested in an asyncio implementation. Did you do any
additional work on this feature?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/eleme/thriftpy/issues/246#issuecomment-262002855, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA13LDIt3sL8a1-hJulLhWxJ9wuJSSApks5rAdEZgaJpZM4KWWoB
.

Thanks for the quick response!  I may spend some time on it, if only to better understand all the pieces.  If I get something working, I will put it out there for everyone.

Sorry for bumping an old thread! I put together a minimal client/server implementation, and opened a PR for it here: https://github.com/eleme/thriftpy/pull/299/files
Unfortunately, I'm having some trouble getting the tests to pass under travis-ci - any help would appreciated!


[BUG] Normal path in volume_controller logs at warning level.

Describe the bug (🐛 if you encounter this issue)
A recent escalation had lots of logs like this:
longhorn-manager.log:2023-11-14T10:22:07.390002251Z time="2023-11-14T10:22:07Z" level=warning msg="unexpected mode  for the current replica pvc-xxx-r-zzz, will ignore it and continue migration" accessMode=rwx controller=longhorn-volume frontend=blockdev migratable=true migrationEngine=pvc-xxx-e-yyy migrationNodeID= node= owner= shareEndpoint= shareState= state=attached volume=pvc-xxx

The logging comes from this line:  log.Warnf("Unexpected mode %v for the current replica %v, will ignore it and continue migration", currentEngine.Status.ReplicaModeMap[r.Name], r.Name)
To Reproduce
This was found in a migration situation, but I don't know whether that is the only path.
Expected behavior
No warning logging for a replica that isn't in the ReplicaModeMap.
Support bundle for troubleshooting
Environment

Longhorn version: Found in 1.3.2.  Still exists in 1.5.x code.
Installation method (e.g. Rancher Catalog App/Helm/Kubectl):
Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version:

Number of management node in the cluster:
Number of worker node in the cluster:

Node config

OS type and version:
Kernel version:
CPU per node:
Memory per node:
Disk type(e.g. SSD/NVMe/HDD):
Network bandwidth between the nodes:

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal):
Number of Longhorn volumes in the cluster:
Impacted Longhorn resources:

Volume names:

Additional context

Hmm.  Already fixed in 1.6.0-dev.


Don't save if nav items have empty labels

Closes #4942, Closes #4944

This PR goes a bit too far with the validation I fear! It's not possible to make a home link:

Harrumph. I'll look into this tomorrow

I can has fixed!


86 and 64

Hello! No, they are not different except for the architectural features of the compiler for 32 and 64 bits

Hello! No, they are not different except for the architectural features of the compiler for 32 and 64 bits

❤


this can support browser?

this can support browser?

I think your not at the right place.
This is the server repository and you are looking for client.
I think you should look at websocket-nats.
Never tested myself

https://github.com/sohlich/nats-proxy/ looked more mature last time I checked.


Fio nodeselector

Describe the bug
Currently the fio sample CR still uses "pin_server": https://github.com/cloud-bulldozer/benchmark-operator/blob/master/config/samples/fio/cr.yaml#L26
but as mentioned in the doc, the param has been replaced w/ nodeselector: https://github.com/cloud-bulldozer/benchmark-operator/blob/master/roles/fio_distributed/templates/servers.yaml#L46
(also the fio server_vm template does not have any pinning logic, I will fix that w/ a PR soon, working on refactoring the vm case a bit..)
What I am not sure about is how we would want to expose the nodeselector param in the sample CR, because for ex. if you add an empty hostname selector the scheduling will fail:
      # put all fio pods on this server
      nodeselector:
        kubernetes.io/hostname: ''

Would it be better to add that above example but just commented out by default in the sample CR?

@bengland2  thoughts?

@jeniferh I agree, I did not see your "at" notification.   if a parameter isn't typically used in a benchmark, remove it from the only example of the benchmark CR.   If someone wants to add additional examples with some comments to explain why they are there, that's different.   I never use pin_server, but in cases where there is only 1 node with the type of storage device that you want to use, that might be why it's there?
As for node selector, I think it would be useful to have a way to constrain nodes that the fio pods run on, but the default should still be to run them anywhere.  Perhaps the node selector could be a "blacklist" label that means "dont run them on nodes with this label".   If you don't put the label anywhere, then behavior is same as it is today, and the label could be an existing label such as cluster.ocs.openshift.io/openshift-storage, which would mean "dont run fio pods where OCS is running", which is the opposite of hyperconverged.   blacklisting is similar to "oc adm cordon" but less of a sledgehammer.


Chores/rename dsnp id to dsnp message id 178606293

Problem
We have to concepts of ids in the SDK: DSNP message ids and DSNP user ids, but we refer to message id as just DSNPIds which is confusing.
#178606293
Solution
Update all occurrences of DSNPId to DSNPMessageId.

@wilwade Changelog added.
Is this a breaking change? We're only updating types and documentation here. I'm not sure what this would break.

@rosalinekarr Is validateDSNPMessageId exported for external to the sdk consumers?

@wilwade Oh, yep, it is. I'll update the changelog.


undo "fix typo"

This change causes errors like this (tried on meteor 1.3 beta 12):
index.jsx:142Uncaught TypeError: (0 , _reactKomposer.composeWithTracker) is not a function

Weird.

This is weird. I assume, this has nothing to do with Meteor.

I deployed and new version with removing this flag. Try it now.

Hmm, ok, I'll look into it a bit more, thanks!

Yup that did the trick!


Tolerate all taints in manifests

Description

Tolerate all taints in manifests.
Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

None required

I will get to this after kubecon - it's not urgent?

@caseydavenport not urgent at all.


CLI: Convert testnet to mainnet address

The current CLI convert_address command returns the same addresses for both networks if it is used with a testnet address. It seems that only mainnet addresses can be converted to testnet addresses.
A fix for this should also include an update of the docs inside the CLI (see https://docs.blockstack.org/references/stacks-cli#convert_address)
stacks convert_address ST6KSMBVZZ9YCP3PEX3FN71YQQEGB7RKTYPC51YX -t
{
  "mainnet": {
    "STACKS": "ST6KSMBVZZ9YCP3PEX3FN71YQQEGB7RKTYPC51YX",
    "BTC": "mgiwwH2yfnngqs8xfm443p1EqFHMWUx3rM"
  },
  "testnet": {
    "STACKS": "ST6KSMBVZZ9YCP3PEX3FN71YQQEGB7RKTYPC51YX",
    "BTC": "mgiwwH2yfnngqs8xfm443p1EqFHMWUx3rM"
  }
}

@agraebe
This should be the expected result, correct?
$ stx convert_address 12qdRgXxgNBNPnDeEChy3fYTbSHQ8nfZfD
{
  "mainnet": {
    "STACKS": "SPA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7CBE6YPW",
    "BTC": "12qdRgXxgNBNPnDeEChy3fYTbSHQ8nfZfD"
  }
}

$ stx convert_address SPA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7CBE6YPW
{
  "mainnet": {
    "STACKS": "SPA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7CBE6YPW",
    "BTC": "12qdRgXxgNBNPnDeEChy3fYTbSHQ8nfZfD"
  }
}

$ stx convert_address SPA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7CBE6YPW -t
{
  "mainnet": {
    "STACKS": "SPA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7CBE6YPW",
    "BTC": "12qdRgXxgNBNPnDeEChy3fYTbSHQ8nfZfD"
  },
  "testnet": {
    "STACKS": "STA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7DX96QAM",
    "BTC": "mhMaijcwVPcdAthFwmgLsaknTRt72GqQYo"
  }
}

$ stx convert_address STA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7DX96QAM
{
  "mainnet": {
    "STACKS": "SPA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7CBE6YPW",
    "BTC": "12qdRgXxgNBNPnDeEChy3fYTbSHQ8nfZfD"
  }
}

I believe so, even though I'd open up a conversation to make this command more "intuitive". It does a few things implicitly:

use a btc OR a stx address as input
convert a testnet stx address to mainnet, without a parameter
show the mainnet response object for testnet input

For the last example, maybe the intend of a user would be to find the associated btc address for testnet?
What are your thoughts? We can hold off on big changes but thinking about the ideal behavior would be helpful IMHO

I think the current behavior with the following addition would be ideal

For the last example, maybe the intend of a user would be to find the associated btc address for testnet?

So you'll get testnet response whether -t arg was passed or if the address is a testnet address
$ stx convert_address STA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7DX96QAM
{
  "mainnet": {
    "STACKS": "SPA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7CBE6YPW",
    "BTC": "12qdRgXxgNBNPnDeEChy3fYTbSHQ8nfZfD"
  },
  "testnet": {
    "STACKS": "STA2MZWV9N67TBYVWTE0PSSKMJ2F6YXW7DX96QAM",
    "BTC": "mhMaijcwVPcdAthFwmgLsaknTRt72GqQYo"
  }
}


Use generated IBrowserContext

When working on this, also remove the  #pragma warning disable CS1574  from IWorker - to remove the reference that's missing.


fix(tools): update automated message

Checklist:

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the main branch of freeCodeCamp.
[ ] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #XXXXX

Adds clarification that the message is generated automatically, and
points to the contributors chat room for assistance with resolving
the message.

@raisedadead I guess it is up to you now.


Running Clair without direct internet access

Description of Problem:
I have a project where Clair is run in a secured network where Clair has no direct access to the internet. So far the solution was to patch Clair to download the NVD files from an internal mirror. I would prefer to get rid of this patching process. Would you be willing to add a configuration option for the NVD server URL? Or is there a better way?
Expected Outcome:
Official Clair release can be run without direct internet access.
Actual Outcome:
Environment:

Clair version/image: 2.0.1
Clair client name/version:
Host OS:
Kernel (e.g. uname -a):
Kubernetes version (use kubectl version):
Helm version (use helm version):
Network/Firewall setup:

Duplicate of #401