Fix Xcode13 deprecation warning about capture device discovery

Title says it :) Use DiscoverySession introduced in iOS10 instead of deprecated AVCaptureDevice.devices(for:) method.
I've added a deprecation reminder to check again with the next Xcode version if there is new capture device types to add to the discovery session.

Nice, thanks for the PR, it's highly appreciated. Could you please sign the commit? It's required by the Capacitor team

Hi @tafelnl
You're welcome, thanks for all the work with the plugin! :)
I've signed and ammended the commit.
Out of curiosity because other community plugins do not require it:

It's required by the Capacitor team
Where did you find that requirement?

Cheers

Thanks! It might be that the Capacitor team has changed their policy over time, so some project have different settings. But I'm not sure.
It looks like this for me when someone submit a PR without signing:

Anyway, I think it can't hurt to require signing
Thanks again for your work :)


An operator reported finalization time spikes on mainnet.

Original report received from the operator.
"Ever since 1.5.6 went live on mainnet, I've seen weird reward degradation on our (and other's) nodes."
I can also see finalisation spikes outside of ERA switches. This behaviour is only visible on our 2 mainnet nodes, not on our testnet node.

Closing as the issue was due to an underperforming node.


Move repository model into models/repo

This is the first step to move repository related beans. To make it review easier, I will put others in future PRs.

It would be better to keep model related prefix for functions in root models package.
For example, repoCheckUnitUser instead of checkUnitUser, repoReconsiderIssueAssignees instead of reconsiderIssueAssignees, RepoDeleteCollaboration instead of DeleteCollaboration, RepoAddDeletedBranch ... etc
And JSONUnmarshalHandleDoubleEncode should be put somewhere else, auth/source shouldn't depend on repo
Otherwise, LGTM

AddDeletedBranch

I changed most of them but kept DeleteCollaboration, AddDeletedBranch because I think the repo prefix is not a must word.


Correction of typo about SSH

Removing reference to a private SSH connection. As confirmed by SWE, it's a typo and this kind of connectivity is not supported yet.

@sdgilley,
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Search projects

I need insights in projects that are not used for a while and therefore are at the bottom of the projectlist. It would help me a lot if I could search these projects so I don't have to browse through all the pages of projects we do in our company.

probably solved by https://github.com/DefactoSoftware/Hours/pull/299


First KVworker always throws an exception

Hi
I am new to ps-lite and I am trying to use ps-lite as part of a university group project. I am using the KVServer and KVWorker. Whenever I deploy the app using:
./ps-lite/tracker/dmlc_local.py -s 1 -n 3 ./logreg ,
an exception gets thrown:
[11:39:51] /home/rosko/Lab2016-Group4/ps-lite/include/dmlc/logging.h:208: [11:39:51] /home/rosko/Lab2016-Group4/ps-lite/src/postoffice.cc:77: Check failed: (customers_.count(id)) == ((size_t)0) id 0 already exists terminate called after throwing an instance of 'dmlc::Error'   what():  [11:39:51] /home/rosko/Lab2016-Group4/ps-lite/src/postoffice.cc:77: Check failed: (customers_.count(id)) == ((size_t)0) id 0 already exists
This exception is thrown only for the first worker (rank is 0), when the post office object is retrieved:
ps::Postoffice *office = ps::Postoffice::Get();
All the other workers are working fine. Can anyone help with resolving the exception?
Any form of help is highly appreciated! Thank you!

I guess you launched servers and workers in one system process and misused rank id as the app id. Please check your code or show it here.


text(str) assertion doesn't support custom component

For example:
A Number: {card.number}
If I write the test for the previous JSX code:
it('should have a CardText displaying A Number', () => {
    const cardTextNumber = component.find('CardText')
    expect(cardTextNumber).to.have.text('A Number: 1234')
})

Sadly, it seems like custom components are not supported. I am getting the following error:
expected the node in  to have text 'A Number: 1234', but it has ''

How did you create component?

beforeEach(() => {
    props = {
      number: {
        name: 'hello',
        number: 1234
      }
    }
    component = shallow(<Something {...props} />)
  })

Ok, so it's shallow-rendered - that explicitly means that custom components inside it aren't rendered. Try const cardTextNumber = component.find('CardText').shallow();

I am getting this following error: Method “shallow” is only meant to be run on a single node. 3 found instead.

Then you'll have to disambiguate your find first.

We just want to validate content of a custom component which we can easily access (as you can see in the example)... The thing is that the component is working perfectly fine and we do not want to start testing it by rendering it...

If there are 3 CardText components, you can't validate them. Add an assertion in your test that you've only found 1 item, and then you'll be able to assert things on it.

I only have a CardTitle and a CardText...

I only have a CardTitle and a CardText...

I'd recommend using .debug() to clarify exactly what gets rendered. Perhaps you could also share the implementation of Something?

JSX:
<Card style={{ backgroundColor: 'white' }} data-id='aDataId'>    <CardTitle title='cardTitle' />    <CardText>A Number: {card.number}</CardText> </Card>
Test:
beforeEach(() => {
    props = {
      testNumber: {
        name: 'random name',
        number: 1234
      }
    }
    component = shallow(<Something {...props} />)
  })

it('should have a CardText displaying A Number', () => {
const card = component.find('Card[data-id="dataiD"]').shallow()
    const cardTextNumber = card.find('CardText')
    expect(cardTextNumber).to.have.text('A Number: 1234')
})

Ok, then CardText doesn't have any text - it has a children prop which is the text you're looking for. (Text is something a rendered component has)
Try asserting on .props().children instead.

Yeah that was my initial solution but I have to fragment the test like this to make it work:
it('should have a CardText displaying A Number', () => {
   const card = component.find('Card[data-id="aDataId"]').shallow()
   const cardTextNumber = card.find('CardText').get(0).props

   expect(cardTextNumber.children[0]).to.deep.equal('A Number: ')
   expect(cardTextNumber.children[1]).to.deep.equal(1234)
})

I wasn't sure if it was the best way to do it thats why I opened this issue...

Yes, that's currently the best way to do it (no .get(0) tho, just .props() should do it).
You can also do shallow(<div>{cardTextNumber.children}</div>).text().
This is effectively an "issue" with enzyme itself, not with chai-enzyme; we should move this conversation to https://github.com/airbnb/enzyme/issues/692


Unknown custom element:

First of all this module looks promising to me! But when I try to use it I'm getting the following error in the Chrome developer console:
[Vue warn]: Unknown custom element: <network> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
I created a component named 'social-sharing' and included the vue social sharing in my app.js. In my component I used the syntax from the example that resulted in the error above. Any idea?
I'm on Vue 2 and I installed vue social sharing 1.1.2 via npm. Thanks!!

Hello @bart, the readme example with the <network> tag is for the latest version (2.2.x).
You can see the instruction for 1.1.2 version here: https://github.com/nicolasbeauvais/vue-social-sharing/tree/78b4b1d5949933df28e931ff9695c607f7afab4a
But I can only advise you to use the latest 2.2.x version of vue-social-sharing :)
I updated the current readme that may have confused you https://github.com/nicolasbeauvais/vue-social-sharing/commit/dfeaa8e7144e30abe10e52fd17c7e3b988373842

I am using 2.3.3 and am getting the same error in a NUXT app.

@nicolasbeauvais would you care to take a look at this?

+1

+1


Centralized max partition size

Refs #https://github.com/LiberTEM/LiberTEM/issues/382#issuecomment-937680666
1 GB is quite a lot for process_partition() on machines with many workers.
512 MB should be a bit friendlier for the worker memory budget.
Furthermore, a central constant allows to adjust the value more easily.
Contributor Checklist:

[x] I have added or updated my entry in the creators.json file
[N/A] I have added a changelog entry for my contribution
[N/A] I have added/updated documentation for all user-facing changes
[N/A] I have added/updated test cases
[N/A] I have included the rebuilt production build of the client (only if changes were made to the GUI)

Reviewer Checklist:

[ ] /azp run libertem.libertem-data passed

/azp run libertem.libertem-data

/azp run libertem.libertem-data


Remove implicit guard use

Reverted implicitly adding AccessGuard from UseAbility because it becomes dependent on decorators order and nest internal guards implementation


Dyanmic table sort values form

I use unshift, the data from the values list and form are contradictory, currently I have to use reverse to unify the field position.

Demo online

Since antd form keep track of the order of field creating, you need to sort the form manually, and it might be hard to do. That's the reason why we have a sortForm method. in the example, you can use this method to get correct order of form values (as the value printed)


View food item nutrient content

Description
Adds View Food Item Functionality
Type of change
Please delete options that are not relevant.

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Change Status

[x] Complete, tested, ready to review and merge

How Has This Been Tested?

[x] Renders SearchForm
[x] simulate click event
[x] test SearchForm renders a search bar
[x] Renders Search Results
[x] Renders Results when available
[x] Doesn't break without items
[x] Click event calls store once when triggered
[x] Renders SearchPage
[x] Renders SearchForm and SearchResults

Checklist

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] My code has been reviewed by at least one peer
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] There are no merge conflicts

Awesome job man!! 🎉


Generate opaque types corresponding to an existing Flow/TS type.

e.g.
<EMAIL_ADDRESS>"someJsType"]
type t;

would mean the type is opaque in Reason, and is seen as someJsType from JS.
Or @genType.alias or something.

Here's an example:
<EMAIL_ADDRESS>"./SomeFlowTypes"]
type anInterestingFlowType;

[@genType]
let identity = (x: anInterestingFlowType) => x;

Excuse my question, how to import type from Typescript when most of them start with uppercase letter?

And it would be much helpful if i can rename the type from TS in Reason.
for example,
// typescript file :  A.ts
export class A {
  prop: string;
  getProp(): string{
    return this.prop
  }
}

// Reason

module A = {

<EMAIL_ADDRESS>"./A"]
<EMAIL_ADDRESS>"typeof A"] //this won't work
  type t;
<EMAIL_ADDRESS>external getProp_: (t)=>string="getProp";
  let getProp = getProp_;
}

//then I use module A to make an utility function for ts
[@genType]
let operateA = (a: A.t) => {...}

how can i make situation above work?

This is interesting. Would you expand on the end goal here? Extend JS class A with one more method?
Or just define a Reason function operating on A and export it to JS?

First of all, kudos for your great work here.
I'm trying to introduce reasonml in  a typescript project. I just plan to use reason to implement some utilities for ts to use,  so i write a lot bindings like module A above.
Usually, i have to write ts bindings too to use reason code, and thanks to genType, now the work is much easier. But, right now i still need to use "shim" to achieve the goal, and since the binding modules are handful, so are the corresponding shim files . It would be helpful if i can just use<EMAIL_ADDRESS>to avoid using shim files.
I'm new with this, so any suggestions would be thankful.

@ybybzj the commit just above has a first step. The combination of @genType.import and @genType.as to import a type starting with a capital letter.
The commit also shows one way to access a method of the class, which for now still does not check the type.
I'll look separately into whether it's possible to also check the type of the method.

And the example written more in the style you've used above:
https://github.com/cristianoc/genType/commit/93a830350adca7ea6454efdab908cc328c742ac2

A possible future design of how to import classes, which is cleaner, is this, where one specifies only once what file the import is from, there's a convention (probably override-able) that type t maps to the type of the class, and that external functions are methods of the class.
<EMAIL_ADDRESS>"./MyMath"]
module AbsoluteValue2 = {
  type t;

<EMAIL_ADDRESS>"./WrapJsValue"]
  external getProp: t => int = "";

<EMAIL_ADDRESS>"./WrapJsValue"]
  external getAbs: t => int = "";
};

thanks for the updates. I'm really fond of reasonml after trying, and gonna persuade my colleagues to use reason too, your work will make my argument much convincing.

I've tried the commit version. There is still a little inconvenient. Since<EMAIL_ADDRESS>only generates import statement, I can't define module A in one file, and use it in another file.
for example
// A.re
module A = {
<EMAIL_ADDRESS>"./TS_A"]
<EMAIL_ADDRESS>"A"]
  type t;
  ...
}

// B.re
[@genType]
let operateA = (a: A.t) => {...}

generated tsx:
// A.tsx
import {A as A_t} from './TS_A';
...

// B.tsx
const BBS = require('./B.bs');

import {A_t as A_A_t} from './A'; // here is ts error since on export type A_t

export const operateA: (_1:A_A_t) => void = BBS.operateA;

What i can do is to put genType.import in B.re instead of A.re, like this
// A.re
module A = {
  type t;
  ...
}

// B.re
<EMAIL_ADDRESS>"./TS_A"]
<EMAIL_ADDRESS>"A"]
type a = A.A.t;

[@genType]
let operateA = (a: a) => {...}

only every time i want use A.A.t in a different file, I've to declare a new local type and decorate it with<EMAIL_ADDRESS>and<EMAIL_ADDRESS>

@ybybzj What's going on is that type A.t is imported, but is used by B.re as if it were exported.
Here's one way of using it from B:
https://github.com/cristianoc/genType/commit/1b0c53aa016fa0b3c1dda6ba9a3da85503c0bb44
Not sure about how this is going to evolve, it would be nice to have a much more streamlined way of doing these things. More experimentation is required.

Got it, thanks for the reply.

@ybybzj see the commit above https://github.com/cristianoc/genType/commits/master.
This should take care of the issues discussed above, minus one point: there's no current support for importing class methods (other than the usual untyped way using [@bs.send]). And that can be a separate issue: importing JS classes.

Have tried the commit, it's good enough for me, thanks for the diligent work.

Great. Thanks a lot for the feedback.
Closing this, keeping class support for later. Tracked anyway in https://github.com/cristianoc/genType/issues/70.


Fix/travis builds

This will fix all failing tests.

Okay, I think we have the builds passing now.  We're now building mpi from source which isn't ideal but its how to get the image driver rolling again.  I'll be adding a few wercker tests for the image driver to test the image and cesm drivers against a larger environment matrix (xref #350).

any issues with me merging this @tbohn or @bartnijssen?

Looks good to me, although I'm not very familiar with the travis build system.

Thanks @tbohn


Announcement: We are renaming default branch to "main"

On March 15th 2021 (Monday) we're going to rename the default branch in this repository to main.
Ref: https://github.com/dotnet/announcements/issues/172

'master' branch has been renamed to 'main'.
Please execute below command in your local environment to rename branch:
git branch -m master main
git fetch origin
git branch -u origin/main main


dcp: add a barrier between copying data and setting metadata

Add a barrier between copying data and setting metadata, to make sure the
content update is synced before we start to set metadata, to avoid some metadata
mismatch problem, e.g. wrong modify timestamp.
Signed-off-by: Gu Zheng<EMAIL_ADDRESS>

Good idea.  Thanks @KnightKu .


METRON-474 - fix vagrant ansible defaults for quick and full

Added defaults to match the run.sh parameters and removed the run.sh files.  Added a mention in the readmes as well.
Now, instead of running run.sh and having to add parameters to vagrant provision, in both quick and full simply running vagrant up and vagrant provision will maintain the correct parameters.
Tested by executing vagrant up and provision, vagrant ssh, ambari login

+1 Works like a charm.  Thanks so much for the contribution @ottobackwards


Types not included

When importing the library using
import { Transformer } from "@pixi-essentials/transformer";

I get the following error:
Could not find a declaration file for module '@pixi-essentials/transformer'

Browsing to @pixi-essentials/transformer directory (inside node_modules) I see that indeed @types directory is missing.

An index.d.ts is supposed to ship with @pixi-essentials/transformer. Looks like it didn't.


I find a question about result transfer

When I excute sh benchmar.sh, I find a question

It is  LdbcShortQuery6MessageForum.TYPE, but result is  LdbcShortQuery5MessageCreatorResult

Please provide more details for your issue. Which database system are you running the benchmark on? Which scale factors, parameters, and updates (number of partitions) do you use?


Error with v1 SlackClient#rtm_connect() method

(Filling out the following details about bugs will help us solve your issue sooner.)
Reproducible in:
from slackclient import SlackClient

    client = SlackClient(BOT_TOKEN)
    if client.rtm_connect():
        while True:
            message, user, channel = parse_messages(client.rtm_read())
            if message and user and channel:
                process_message(message, user, channel)
            time.sleep(1)
    else:
        print('Could not connect to Slack')

The Slack SDK version
slackclient==1.3.2
Python runtime version
Python 2.7.12
OS info
#219-Ubuntu SMP Tue Aug 11 12:26:50 UTC 2020
Steps to reproduce:
(Share the commands to run, source code, and project settings (e.g., setup.py))

BOT_TOKEN='xoxb-...'

Expected result:
Connect to Slack as a bot and receive messages, like before 2022-09-27.
Actual result:
WARNING:slackclient.client:Failed RTM connect
Traceback (most recent call last):
  File "/home/john.milton/.virtualenvs/otabot_run/local/lib/python2.7/site-packages/slackclient/client.py", line 140, in rtm_connect
    self.server.rtm_connect(use_rtm_start=with_team_state, **kwargs)
  File "/home/john.milton/.virtualenvs/otabot_run/local/lib/python2.7/site-packages/slackclient/server.py", line 166, in rtm_connect
    self.parse_slack_login_data(login_data, use_rtm_start)
  File "/home/john.milton/.virtualenvs/otabot_run/local/lib/python2.7/site-packages/slackclient/server.py", line 178, in parse_slack_login_data
    self.parse_channel_data(login_data["channels"])
KeyError: 'channels'
Could not connect to Slack

Since I'm using rtm.connect(), I would have expected use_rtm_start to be False here: https://github.com/slackapi/python-slack-sdk/blob/v1.3.2/slackclient/server.py#L176
Requirements

Hi @miltieIV2 thanks for writing in!
Unfortunately as mentioned in the slackclient documentation this library is in maintenance mode, my recommendation would be to consider migrating your code to use the latest version of slack-sdk, along with the latest version of python (3.6 and above) and potentially use socket mode over rtm
If this is not possible I would recommend upgrading to the latest version of the slackclient here is the migration guide for 1.x to 2.x.
If this isn't an option either the migration guide mentions pining the slackclient to 1.3.1 this may fix your issue.
Hopefully this helps your on your journey 🗺

The slackclient is pinned to 1.3.1 and we tried pinning to 1.3.2 and we get the same error described above.
This must be due to the Sep 27 deprecation described on this page.
https://api.slack.com/changelog/2021-10-rtm-start-to-stop

We were able to overcome this issue by passing the connect command this wayrtm_connect(with_team_state=False) from within our code.

@endlesslight0 Thanks for sharing this!
To all,
Since we no longer support v1 library, please go ahead with setting with_team_state to False. Let us close this issue now.


ProtocolHandler API: handler is not called in extension development setup

testing #48427 on macOS:

create hello world extension as 'protocol-handler'
make it activate on '*'
in the activate function register a uri handler like this:
context.subscriptions.push(vscode.window.registerProtocolHandler(new myUriHandler()));
the handler is this:class myUriHandler implements vscode.ProtocolHandler {
  handleUri(uri: vscode.Uri) {
      vscode.window.showErrorMessage(`uri: ${uri.toString()}`, { modal: true });
  }
}

press F5 to launch extension
In an external terminal I run this:
open vscode-insiders://andreweinand.protocol-handler/foo

In VS Code's window for the 'protocol-handler' project (not the EH window) the following alerts shows up:

After pressing 'Yes' nothing happens.
I suspect that the wrong instance of VS Code receives the uri.
When installing the extension in VS Code, the handler is called as expected.

This seems to be going to the focused window only. We should make it go to all windows. But something else is wrong here, because the extension doesn't get the URI even when using the Developer: Open URL command. It is possible that the extension has a different ID in our services because it is the currently debugged extension.

fyi for Windows, both scenarios (from external terminal and command palette), work as expected
Version 1.23.0-insider
Commit b845ce918f2689344795e845ae6ef691916c3079

This has been fixed along with #48608 and #48609


Banner 'Beta pilot testers wanted'

In the old template there used to be a clear 'Beta pilot testers wanted' banner. Is something like this still available in the Carpentries Workbench?
I couldn't find it in the documentation or FAQ

Hi @svenvanderburg - I believe you can set the workbench-beta config option to render a "beta phase" banner: https://carpentries.github.io/sandpaper/reference/set_config.html?q=banner#optional-keypairs-known-by-sandpaper
However, I'm not sure of the exact wording used in that banner. Could you give it a try and let me know if it meets your requirements?

Putting workbench-beta: TRUE as config option gives this:

This is not what I want. But we are happy with a clear callout box:


Drawing text within bounds

Does gg provide a way to draw text within a specific area (x1, y1, x2, y2)? If not, what's the best way of accomplishing something like this?

gg currently does not provide this feature, I faced this issue at work once, this article was very useful to me, it may be relevant here as well.
The relevant code section (in C#, you will have to make it in Go)
public Font GetAdjustedFont(Graphics g, string graphicString, Font originalFont, int containerWidth, int maxFontSize, int minFontSize, bool smallestOnFail)
{
   Font testFont = null;
   // We utilize MeasureString which we get via a control instance
   for (int adjustedSize = maxFontSize; adjustedSize >= minFontSize; adjustedSize--)
   {
      testFont = new Font(originalFont.Name, adjustedSize, originalFont.Style);

      // Test the string with the new size
      SizeF adjustedSizeNew = g.MeasureString(graphicString, testFont);

      if (containerWidth > Convert.ToInt32(adjustedSizeNew.Width))
      {
         // Good font, return it
         return testFont;
      }
   }

   // If you get here there was no fontsize that worked
   // return minimumSize or original?
   if (smallestOnFail)
   {
      return testFont;
   }
   else
   {
      return originalFont;
   }
}


Generate admin kubeconfig script

How to categorize this PR?

/area dev-productivity
/kind enhancement
What this PR does / why we need it:
I often find myself copying some parts of the documentation in order to generate a kubeconfig for a local shoot cluster. A simple script can solve this.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

A `generate-admin-kubeconf.sh` script which can be used to generate an admin kubeconfig for a local shoot cluster was added in the `hack/usage` directory.

@plkokanov @ary1992 I implemented the suggested changes. PTAL

/lgtm

/retest

/lgtm
/approve

/test pull-gardener-e2e-kind


Added searchRead method

I'm closing this.
I added the searchRead() method to my fork at spejder/odoo-client.


Update Docker Hub with a bullseye based image

Hey @wholtz , when do you think there will be a release to Docker Hub with a Debian Bullseye based image?
Thanks in advance!

Ah, I guess it's based on (micro)mamba releases, right? Maybe a tag with a new build version could be possible?

Hi @vidosits -- thanks for your interest in micromamba.
Mamba 0.16.0 was released a couple of hours ago. If all goes well, a new image (based on bullseye) will be on docker hub within 24 hours.
It probably would be a good idea to build images for all the debian releases that have not yet reached end of life.

Thanks @wholtz, very helpful! Lucky, that a new Mamba release just dropped :)

@vidosits after a few hiccups, the 0.15.3 version on dockerhub has been updated to a bullseye based image. 0.16.0 version is not yet on dockerhub as the docker build currently only works when all 3 supported architectures have their binaries available on conda-forge and ppc64le binary has not made it to conda-forge yet.

@wholtz thanks, I just tried the :latest one, works great!


created an all emoji file

I created a file with all the emojis offered by Emojipack.

Woah, going for it! I like it. Did you test it with a Slack instance with no errors? If so, I will merge.

Hi Zach,
Yes I tested it and did not get any errors. It takes a half hour to run. Thank you for creating this great project!
Best,
Jennifer Kaplan

On Jun 13, 2017, at 10:30 PM, Zach Feldman<EMAIL_ADDRESS>wrote:
Woah, going for it! I like it. Did you test it with a Slack instance with no errors? If so, I will merge.
—
You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lambtron/emojipacks/pull/118#issuecomment-308302091, or mute the thread https://github.com/notifications/unsubscribe-auth/AWBNPUxWCQEWJYiFYy_UawnpMA3sitMCks5sD0XSgaJpZM4N5PvB.

You may thank the mighty @lambtron I am but a humble maintainer. Haha. Consider yourself merged

@jenkaplan sorry but I had to revert your commit because it broke the build :(
https://travis-ci.org/lambtron/emojipacks/builds/242672946?utm_source=email&utm_medium=notification
I still think it's a good idea to do this, however, it might make a little more sense to implement code that joins multiple emoji files so people can make their own multipacks, vs pushing a big multipack with all the emojipacks that exist already, which we'd probably have to update. Maybe something that adds a flag to the emojipacks command to include multiple packs (I don't think you can do this already).
Thanks for your contribution either way!

Hi Zach,
I’m so sorry it broke the build! This was my first attempt at contributing to open source. Thank you for being so kind and making suggestions.
Best,
Jen

On Jun 14, 2017, at 11:32 AM, Zach Feldman<EMAIL_ADDRESS>wrote:
@jenkaplan https://github.com/jenkaplan sorry but I had to revert your commit because it broke the build :(
https://travis-ci.org/lambtron/emojipacks/builds/242672946?utm_source=email&utm_medium=notification https://travis-ci.org/lambtron/emojipacks/builds/242672946?utm_source=email&utm_medium=notification
I still think it's a good idea to do this, however, it might make a little more sense to implement code that joins multiple emoji files so people can make their own multipacks, vs pushing a big multipack with all the emojipacks that exist already, which we'd probably have to update. Maybe something that adds a flag to the emojipacks command to include multiple packs (I don't think you can do this already).
Thanks for your contribution either way!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/lambtron/emojipacks/pull/118#issuecomment-308469127, or mute the thread https://github.com/notifications/unsubscribe-auth/AWBNPe0dgCq7IeCz7dCEllRuQTIbtUHAks5sD_0JgaJpZM4N5PvB.

No problem!

This is literally everything.
Thank you @jenkaplan!!

@lambtron No problem! I'm sorry that this broke your npm build!


The tinycudann library cannot be found

\threestudio\utils\misc.py", line 5, in
import tinycudann as tcnn
ModuleNotFoundError: No module named 'tinycudann'
Running with python under windows10, the tinycudann library cannot be found

I have a similar issue

install tiny-cuda-nn python library


docs: update read me and type files with new options

docs: update read me and type files with new options

:tada: This PR is included in version 5.6.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


docs: Fix yarn command

Summary

cv/packages/lib on  v2 [?] ❯ yarn create ts-jest config:mgirate jest.config.js
yarn create v1.22.5
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/create-ts-jest: Not found".
info If you think this is a bug, please open a bug report with the information provided in ".config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

Test plan
cv/packages/lib on  v2 [?] ❯ yarn ts-jest config:migrate jest.config.js
yarn run v1.22.5
$ node_modules/.bin/ts-jest config:migrate jest.config.js

Migrated Jest configuration:
module.exports = {
  roots: [
    '<rootDir>',
  ],
  preset: 'ts-jest',
}

Detected preset 'default' as the best matching preset for your configuration.
Visit https://kulshekhar.github.io/ts-jest/user/config/#jest-preset for more information about presets.

Done in 0.07s.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Pull Request Test Coverage Report for Build 457779454

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

Totals

Change from base Build 454151298:
0.0%

Covered Lines:
943

Relevant Lines:
973

💛  - Coveralls

Pull Request Test Coverage Report for Build 457779454

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

Totals

Change from base Build 454151298:
0.0%

Covered Lines:
943

Relevant Lines:
973

💛  - Coveralls

thanks !

thanks !

happy new year @ahnpnl !

happy new year @ahnpnl !

same to you :)

same to you :)


How to special which gpus to use? If I have 4 gpus in my machine ,but only what to use the first two gpus? Is there any solution?

you can set CUDA_VISIBLE_DEVICES=0,1 to use first two opus

you can set CUDA_VISIBLE_DEVICES=0,1 to use first two opus

Great! It works. But there is another question, when I set --gpus = 2, only first gpu is used, the second gpu isn't used, Can you give me some suggestions?  Is there some other parameters which I forgot to set?  is --local_rank?

you can set CUDA_VISIBLE_DEVICES=0,1 to use first two opus

Great! It works. But there is another question, when I set --gpus = 2, only first gpu is used, the second gpu isn't used, Can you give me some suggestions? Is there some other parameters which I forgot to set? is --local_rank?

Also I don't use torch.distributed.launch --nproc_per_node.  Just debug in vscode.

you will need
torch.distributed.launch --nproc_per_node 2
to use 2 gpus

you will need
torch.distributed.launch --nproc_per_node 2
to use 2 gpus

OK, So nice of you , Thanks!


Feature/full screen pdf

In this PR I have solved:

Issue of full-screen PDF view
In the image preview section there was pixel overflow, I have solved that issue too.

Kindly have review.


Could not found property service.vgroup_mapping.null, try to use default value instead.

@daiyuntao Please provide more information.

GlobalTransactionScanner(String txServiceGroup)
may be you set txServiceGroup null


Testing against Plone 6 alpha backend

@sneridagh I didn't exactly get part of the discussion during the Steering Circle  meeting from dec. 14th 2021 about Volto not testing against Plone 6.
it might be brute force and duplication, but can't we for the time being create an api6 folder that doest the same as api but following Plone6 alpha releases?
I can make a branch/PR for that.
When that works, we could extend the main makefiles and/or parameterize the backend commands to use one or the other ( api/api6). And run both tests in separate calls
It's not perfect but will probably work for now?

@fredvd we can test against Plone 6 in the current gh actions matrix:
https://github.com/plone/volto/blob/master/.github/workflows/core.yml#L8
A separate "api6" folder is not necessary IMHO. I did not attend the steering circle meeting so I don't know what was discussed there...

@fredvd we can test against Plone 6 in the current gh actions matrix:

You mean it is possible to add Plone flavours there?  I jumped around throught the gh workflow, package.json and Makefile and if I understand it correctly the possible switch points to start a different backend are now in the chain:

GH action has a matrix
the ci:cypress:run invocation in the GH action to package.json
package.json ci:cyprus:run  starts ci:start-api-plone
ci:start-api-plone runs Makefile start-acceptance-server
Makefile start-acceptance-server starts a docker container with 'plone' at the moment, which is 5.2.(5?)

What is a good way to trickle down the GH matrix option to the docker container start?

This was already added -- but seeing this made me realize we need to update to the latest release of both Plone 5 and 6, which I'm doing in #3544


feat(landingpage): replace codesandbox iframe with image-link

Closes #1000
Proposed Changes
https://github.com/inovex/elements/assets/81302108/fb6f5b69-6d48-46e2-a090-a3d414683d84

Do we have a sandbox for the Vanilla JS guide?

IIRC we only provide example projects for Angular, Vue, and React. The current landing page doesn't display a Vanilla JS sandbox. If there's a need to introduce one in the future, I'd recommend creating a separate issue, given the high priority of this current issue.

The conflicts have to be resolved before I can merge. Can you take care of this @TobiasHeimGalindo ?


Prop usage is not detected

The following code:
const React = require('react')

const Test = props => <div>
    {[].suppoerted.map(l => <div
      key={l}>
        {props.property + props.property2}
      </div>)}
  </div>

Test.propTypes = {
  property: React.propTypes.string.isRequired,
  property2: React.propTypes.string.isRequired
}

raises error
  11:13  error  'property' PropType is defined but prop is never used  react/no-unused-prop-types

with eslint-plugin-react version 6.10.0.

What is [].suppoerted? that's not a property that would exist on arrays?

@ljharb That was a typo. I have corrected the example.

Can confirm on v6.10.3
It's because is inside the map function :/


Make the DDS image loader load Cubemaps and convert skybox scene node to only use skybox textures

This will be needed for Image Based Lighting example later on.

This little program from AMD  might be very useful in doing the conversion.
cubemapgen_v1.1.zip

#253 supesedes


Watsonx Challenge 2024: Teach merlinite to understand mathematical series

If your PR is related to a contribution to the taxonomy, please, fill
out the following questionnaire. If not, replace this whole text and the
following questionnaire with whatever information is applicable to your PR.
Describe the contribution to the taxonomy

...
...
...

Input given at the prompt

   ...

Response from the original model

  ...

Response from the fine-tuned model

  ...

Contribution checklist

[ ] The contribution was tested with ilab generate
[ ] No errors or warnings were produced by ilab generate
[ ] All commits are signed off (DCO)
[ ] The qna.yaml file contains at least 5 seed_examples
[ ] The qna.yaml file was linted and prettified (yaml-validator can do both)
[ ] An attribution.txt file in the same folder as the qna.yaml file
[ ] Content does not include PII or otherwise sensitive or confidential information
[ ] Content does not include anything documented in the project's Avoid these Topics guidelines

While LLMs can do simple reasoning and counting out of the box, solving complex tasks like linear equations with multiple variables, or matrix inversion and multiplication belongs to "core skill", which is not open to contribution.
However, if you want to limit this example to very simple two-variable linear equations, and can be solved by with step-by-step reasoning, and tricks like substitution and elimination, then it could be eligible. So feel free to try it again as a new PR if you are interested!


Cannot get this tutorial to work end-to-end

Hello,
I'm unable to get the Azure Static Web Apps tutorials to work. I've been working at it all day.
I even went through the docs again and documented everything I did...still no go.

Open a terminal, cd to a logical location, clone the new repo using git clone https://github.com/<me>/<project>.git then cd into the new repo directory.

Create a new Azure Static Web App (ASWA)

Using VS Code Extension, create a new Azure Static Web App

F1
Create static web app
Follow the prompts

Expand the Azure pane in VS Code

Expand the Subscription then Azure Static Apps
Right click on the new app then Browse Site

Add the staticwebapp.database.config.json file to project

In a terminal swa db init --database-type mssql

This will create a swa-db-connections/staticwebapp.database.config.json path and populate the file with boilerplate.

Paste this template in:

{
  "$schema": "https://github.com/Azure/data-api-builder/releases/latest/download/dab.draft.schema.json",
  "data-source": {
    "database-type": "mssql",
    "options": {
      "set-session-context": false
    },
    "connection-string": "@env('DATABASE_CONNECTION_STRING')"
  },
  "runtime": {
    "rest": {
      "enabled": true,
      "path": "/rest"
    },
    "graphql": {
      "allow-introspection": true,
      "enabled": true,
      "path": "/graphql"
    },
    "host": {
      "mode": "production",
      "cors": {
        "origins": ["http://localhost:4280"],
        "allow-credentials": false
      },
      "authentication": {
        "provider": "StaticWebApps"
      }
    }
  },
  "entities": {
    "Person": {
      "source": "dbo.MyTestPersonTable",
      "permissions": [
        {
          "actions": ["*"],
          "role": "anonymous"
        }
      ]
    }
  }
}

git push

The new directory and file needs to be pushed to the repo
git add ., then git commit -m "initial commit", the git push origin main

Enable System-assigned Mangaged Identity (SAMI) for the ASWA

From the Portal, select the correct Resource Group
Select the Azure Static Web App resource
Click Identity then set the Status to On
Click Save

This gives you an identity for the ASWA resource. It is named the same as the ASWA itself. You will use this for authenticating to the SQL Server.
Create a new Azure SQL database

From the Azure Portal, open a logical Resource Group then click +
Search for Azure SQL then select SQL Database
Select the Resource Group
Name the database sqldb-<project-name>
Create a new SQL server sqlsrv-<project-name>
Select the location
Use both SQL and Azure AD authentication
Set the admin
Enter the Server admin login and password
Configure database select Basic
Move through the remaining prompts then click Create

Create SQL Server Firewall Rules

Navigate to the SQL Server in Azure Portal
Click Networking
Select Selected networks
Click + Add your client IPv4 address
Check Allow Azure services and resources to access this server
Click Save

Create a SQL user for the SAMI and assign it to the correct roles

Navigate to the SQL Database in Azure Portal
Click Query editor
Click Continue as <your admin name>
Enter the following SQL statement substituting "SAMI" with the ASWA SAMI name

CREATE USER [SAMI] FROM EXTERNAL PROVIDER;
ALTER ROLE db_datareader ADD MEMBER [SAMI]
ALTER ROLE db_datawriter ADD MEMBER [SAMI]

Click Run

Create some sample data

Run this in the Query Editor to create some sample data to test connectivity:

CREATE TABLE [dbo].[MyTestPersonTable] (
    [Id] INT IDENTITY (1, 1) NOT NULL,
    [Name] VARCHAR (25) NULL,
    PRIMARY KEY (Id)
);

GO;

INSERT INTO [dbo].[MyTestPersonTable] (Name)
VALUES ('Sunny');

INSERT INTO [dbo].[MyTestPersonTable] (Name)
VALUES ('Dheeraj');

Install the azure static-web-apps-cli

From within the project root directory, npm install -g @azure/static-web-apps-cli
npm update

Create an env. variable to test ASWA and SQL Database connectivity

Navigate to the SQL Database
Click Connection strings and copy the ADO.net string
Create an environment variable called DATABASE_CONNECTION_STRING in the PowerShell terminal

[System.Environment]::SetEnvironmentVariable("DATABASE_CONNECTION_STRING", "Server=tcp:<server-name>.database.windows.net,1433;Initial Catalog=<db-name>;Persist Security Info=False;User ID=<your-username>;Password=<your-password>;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;")

Add some test code to the app

Add the following to /public/index.html

<!doctype html>

  <meta charset="utf-8" />
  <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta name="theme-color" content="#000000" />
  <meta name="description" content="Web site created using create-react-app" />
  <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
  <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
  <title>React App</title>

Static Web Apps Database Connections

    Open the console in the browser developer tools to see the API responses.

    <button id="list" onclick="list()">List</button>
    <button id="get" onclick="get()">Get</button>
    <button id="update" onclick="update()">Update</button>
    <button id="create" onclick="create()">Create</button>
    <button id="delete" onclick="del()">Delete</button>

Build the app

Run npm run build

Start the app

Run swa start ./src --data-api-location swa-db-connections

This is where problems occur

When I navigate to localhost:4280, I get a 404 Not Found.

If instead of the swa start ... command, I run npm start, and go to localhost:3000 then I can actually see the app.

BUT, clicking on List gives the weird error shown:

Uncaught (in promise) SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
await (async)
onclick @ (index):22

All of the other buttons fail in the same way.

Any help would be great!
Thank you
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: c8902e25-5067-799f-db06-1e587b23ff55
Version Independent ID: 9219df69-9436-0b6c-6b85-c7e06157bd32
Content: Database connection configuration in Azure Static Web Apps
Content Source: articles/static-web-apps/database-configuration.md
Service: static-web-apps
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

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

Working on this this morning as well...
After starting the  SWA Emulator (swa start .\src --data-api-location .\swa-db-connections), localhost:4280 is still 404, but if I go to localhost:4280/data-api/rest/Person I see the API call...

Can't figure out why localhost:4280 is 404. I feel like it has something to do with staticwebapp.config.json routes, but this isn't covered in the tutorial (at least not that I could see).

Getting somewhere, but still errors.
Instead of the SWA Emulator command given in the tutorial (swa start .\src --data-api-location .\swa-db-connections), if I run swa start .\build, I can NOW see the actual app at localhost:4280:

But the fetch commands are still not working:
GET http://localhost:4280/data-api/rest/Person net::ERR_CONNECTION_RESET
list @ (index):1
onclick @ (index):1
(index):1

Uncaught (in promise) TypeError: Failed to fetch
    at list ((index):1:959)
    at HTMLButtonElement.onclick ((index):1:688)
list @ (index):1
onclick @ (index):1
await in onclick (async)
onclick @ (index):1

Even when deployed to Azure Static Web Apps... can't get the data-api to work...

WahoO!!
I was able to get the deployed instance to work after linking the SQL DB to the SWA (duh!) :).

I still need to get the SWA emulator working when testing locally.

@SeaDude I've hit this problem with the emulator before. The issue was tied to a npm issue in 18.16.0, which prevented the swa-cli from hosting the proxy between the api and web instance. I had to switch to 16.20.0 for the proxy to work correctly. The team is aware of this issue, I'll post the GitHub issue link if I'm able to find it.


Update health probes

This combines a few changes related to health probes for the plugins.

Updates to using the new --diagnostic-addr OPA option to serve /health on a separate port
Adds/modifies readiness and liveness probes to use the alternate port in the quickstart and readme
Updates the health check URL to use ?plugins and updates the gRPC plugin to report its status to the OPA plugin manager.

There are a couple random fixes included that I found along the way while working on the changes and testing them all out.

Note that we will need to hold off merging this until the next OPA release (which should include the --diagnostic-addr feature).


Correct is_variant example values' types

The "value" property of is_variant requires an integer. Both examples currently use a string containing a number, which will not work when used in-game and throws errors.

Thank you!


Update Microsoft.Xaml.Behaviors.Uwp.Managed to v1.1.0

Update Microsoft.Xaml.Behaviors.Uwp.Managed to v1.1.0

v1.1.0 is buggy. Have to wait for v1.1.1


EVP_DigestSign... functions slower than expected under WIndows

I am posting this as an issue for @romen's benefit because I think he's a bit concerned about some timings I reported on Stack Overflow.  This is not causing a problem for me personally.
Benchmarking code from this StackOverflow thread, I get the following timings on Windows when signing 3000 small messages:
EVP_DigestSign...: 6953 ms (using romen's posted code)
DSA_do_sign():     2812 ms (using the OP's original posted code, no use of DSA_sign_setup())

romen, I took out the call to printf() in the signing loop and and moved the call to EVP_sha256() out of that loop also.
All code (including the OpenSSL library) was compiled with Visual Studio 2017, 32 bit.  I'm running Windows 10 on a 3.3GHz core i3.  OpenSSL version is 1.1.0 pre-7.
Top profiler hits for EVP_DigestSign... code were:
bn_mul_comba8	        22.29%
BN_nist_mod_256	14.28%
bn_sqr_comba8	        10.70%
bn_sub_words	         8.09%

I hope this is of some use to you guys.  Please let me know if you need any additional information, otherwise I'm out of the loop.

I'm not familiar with the openssl windows build: does nistp256 use the nistz implementation over there or the generic path?
Looking at the profiling excerpt I'd say the generic path is being taken in @HPaulS 's build and that might be the cause of the unexpected slowness of NISTP256 ECDSA against 1024bit DSA.
I'm also not familiar with the i3 CPU family limits in terms of supported extensions to the instruction set and how that affects ASM implementations availability.
Also, @HPaulS did you mean 1.1.1-pre7?

I can't reproduce any of this. I mean if I build equivalently configured 32-bit Linux and Windows and compile "EVP_DigestSign" snippet, I see no significant difference. "Equivalently configured" means non-debug and assembly on. Nor do I measure such big timings, I measure ~0.4 seconds on 2.8GHz Haswell. And top user in profiler output is _ecp_nistz256_mul_mont... In other words everything points toward that it's at least no-asm build, possibly debug, i.e. no optimizations. Debug per se is not representative comparison, nor is no-asm builds...

@dot-asm It's a release build, built as per this answer on SO (you might recognise the author :).  Given that I built OpenSSL in the recommended way, I think it's premature to close this.  I'm sure it will affect others.  Either that's not the correct build procedure or Configure is not doing the right thing.
@romen I just wanted to report my benchmarks because you were concerned about them.  You should be able to see from the profiler hits I provided roughly where the problem is.  And yes, I meant 1.1.1-pre7.
I've done what I can now, signing off.

It's a release build

Well, you measure ~7s, and I measure ~0.4s. You say bn_mul_comba8 is top CPU consumer, I observe _ecp_nistz256_mul_mont. It's clear that your build is at least no-asm. This alone makes it non-representative. I wouldn't expect 17.5x difference because of assembly support alone, which is why I'm inclined to believe that it's debug build. Well, if it's not, then it would a new record for assembly. OK, I can take it :-) If assertion is that despite following referred instructions, you ended up with no-asm build, then open separate issue and disclose exact details about your build environment and parameters.

@dot-asm:How did you build?  I already said how I built.

For 32-bit Windows I build with perl Configure VC-WIN32, occasionally I add no-shared. And always do it in clean directory. Note that perl Configure VC-WIN32 writes something on screen. Those are instructions to follow...

@dot-asm I rebuilt and my EVP_DigestSign... timing is now 400ms.  My original build was in a clean directory and AFAIK I did it the same way both times so it's all a bit mysterious.
Anyway, my timings now look the same as yours so problem solved.  Thanks for sticking with it.


Config generation workflow

Currently, job configurations are generated fairly manually, particularly when jobs need to be resubmitted due to state exclusions or model prior changes. While we cannot automate this entire process due to manual review, we can streamline a bit and separate concerns (configuration generation, storage, job provisioning, validation, etc.) To that end, I propose several components:

A scheduled job that generates the "default" (i.e., the full set of geography-date-pathogen combinations with the default model params) configurations and writes them to a storage location. This could be in the form of a scheduled Azure Function.
A microservice which validates configuration files against a schema. [Note: a v1 of this microservice has been deployed.]
Configuration update/regeneration command line interface (CLI). A CLI tool that can be used to view and update configuration objects. This will interact with both the validation service and the storage to update configurations following initial model runs (e.g., state exclusions, modeling priors, etc.). We would only update the configurations to provide a minimal set required for the amended model run.
A centralized storage container which contains the up-to-date (either default or user-amended) configuration files.
A GH action which reads the configurations from the storage container and kicks off the modeling pipeline. This should be agnostic to how the configs were generated; it should just read the latest files from the storage container and use those to provision jobs downstream. A crude diagram of the workflow is attached:

My main open question is how to handle versioning and timestamps. For example, if we generate a default set of configs for a model run, then update them via the CLI, do we overwrite the original configurations or create a new timestamped version?

Thanks @natemcintosh! That's helpful. I'll look into uuid7 generation when we start to build that component. I'm open to suggestions on the default generation piece, Azure Functions made sense to me initially as it has built-in scheduling functionality which could remove one step of overhead (ie we could set it to run overnight before the initial modeling runs are provisioned).

Thanks for this Agastya! Thinking out loud a bit:

This could be in the form of a scheduled Azure Function

What do you see as the benefit of doing this in a standalone Function? We've been talking about scheduling for this pipeline through GHA so far. Do you see benefits of doing this through Functions? How would we be able to share code with the local CLI piece?

A centralized storage container which contains the up-to-date (either default or user-amended) configuration files

What do you think this looks like? Do we delete and re-write configs for every job-task into the same dedicated container every time we kick off a job? Are we able to use some kind of unique path structure and return that path back?

A GH action which reads the configurations from the storage container and kicks off the modeling pipeline.

Because one of the central bits I'm not clear on is this ^^. How does the Action know where these configs are? Are we able to hardocde a path without eventual consistency biting us (we've had a bad time....)
My other big question is how we handle needing to run less than everything. Do we tell the CLI to only write the 5 configs we need? I think it's fine (and good) if we say pieces of this question are handled upstream and out of scope here, but I want to identify what those pieces are.

Thanks @zsusswein!
Wrt GHA vs Functions, I don't think it makes a huge difference. I think either way, we wouldn't want to share code with the CLI piece (it would just be a separate repo that generates and writes to storage on a schedule). I lean toward functions because we don't have to mess with doing a bunch of stuff in YAML, but if folks are all in on GHA then that's fine with me too. We could also have the GHA invoke a function on a schedule so that the actual config generating script is its own thing. Happy to hear any suggestions on this.
We'll definitely have to be careful with paths and how they are accessed. I think we could do something like what @natemcintosh mentioned above and have a uuid-like value that the kickoff script reads (the latest version) and schedules jobs based on that. How is this done currently? I would definitely prefer to not re-write or overwrite anything. Maybe we could do a filepath like <job_id>-default/ and <job_id>-amended/ if there are any updates that come from the CLI.

At the moment, I believe we just name the config files by their state and disease pair, and everything gets overwritten? Or it might include the timestamp of when the file was created. I need to go check that.
I like the idea of paths like <job-id>-default/ and <job-id>-amended/. Though what do we think of scheduled instead of default?

I don't think it's technically unworkable, but I do think we need to think carefully about to pass the config paths around. I really want to an avoid the disaster with caching and blob storage that we've had. I'm still not super clear and what exists by default and what's getting created each time.

Sounds good, thanks both for the feedback. Will set up time to discuss!

I think the CLI piece of this needs a bit of thought, and to make sure it aligns with downstream work, but the first piece of this per discussions with @natemcintosh & @zsusswein will involve:

A new repository that houses "default" or "scheduled" configuration generation scripts. Right now this will be for the epinow2 pipeline, but could be expanded to other modeling services later on.
A scheduled GHA that writes the default set of configurations (all state-pathogen combinations) to blob storage. Initially this will be based on this write_config.R  script with the default parameters, but adapted to JSON (and written in python). Additionally, all generated configs will be validated against the latest schema, using the validation microservice.
An exposed endpoint that can trigger the workflow manually with user-specified parameters (paths, dates, etc) in case there are modeling jobs that need to be run outside the scheduled workflow.

@kgostic -- if this looks okay, I can go ahead and request the repo for this initial piece of work.

Thanks for planning this out guys. I think this broadly looks ok. Your final summary @amondal2 doesn't mention the CLI interface, which will be essential if we need to edit the default config (e.g. after reviewing the data, or to kick off a test run). But as long as that's still in scope I'm mostly happy.
I think it's a good idea to have versioned records of the configs we've used in the past, but since the modeling pipeline writes a copy of the config to the output metadata, I think this is not the most critical part of this infrastructure. We might even be able to get away with an overwrite-based approach.
Ping me if you need anything else and thank you!

Thanks @kgostic ! The CLI is definitely in scope, it'll just require a bit more thought. I'll request creation of both repos, in any case.


fix: log uninstall message to stderr

Logs like these that are ancillary but not the primary output of the
tool can confuse tools when piping the output into stdin of another
application.
Logging to stderr helps solve this by presenting it to the user, but not
to other tools.
Note: I made another function rather than changing the behavior of an existing function, to help not break other usages of them.
Note: Still need to test this locally (unless you want to 😉).

Friendly ping @doawoo


Access old courses🚀

During my structured evaluation interviews for the tutors related dashboards, I collected a feedback from a tutor who asked to be able to access old courses, as a student, also after a courses is ended. They say material shared during the course is useful, and would be cool to be able to go back and review what have been done after a course is ended

Thanks for reporting this. We hide old courses due to performance reasons, so this is not an option at the moment.


add -ExecutionPolicy Bypass to PowerShell shell integration command

terminal.integrated.shellIntegration with PowerShell will fail when a user's execution policy is restricted.
However, the additional argument -ExecutionPolicy ByPass can be used to run a specific script without changing the user's execution policy. This is how the conda PowerShell prompt shortcut works, and the same strategy will work with VSCode shell integration.
I tested this by setting terminal.integrated.shellIntegration.enabled to false and adding the shell integration command to my PowerShell profile args, with -ExecutionPolicy Bypass included after the -noexit argument, resulting in
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe '-noexit' '-ExecutionPolicy' 'ByPass' '-command' ' . "c:\LocalPrograms\g2encmck\VSCode\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1"'

I am currently using this to have shell integration on a computer with restricted execution policy. It would be great if -ExecutionPolicy Bypass could be added to the shell integration command so that restricted users did not have to manually do this workaround.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This would bypass the security feature shell wide though, which would end up causing a security report. Until #174021 is handled I'd recommend "installing" the script manually which would essentially mean either setting up the shell/args manually or adding the script (and bypass) to your profile:
https://code.visualstudio.com/docs/terminal/shell-integration#_manual-installation

Alright, what about adding a VSCode variable to get the path to the shell integration script? That would at least let users avoid having to hardcode the path in their profile args.

There's the CLI command for that: code --locate-shell-integration-path pwsh, though it'll be faster if you hardcode it

Yes I saw the CLI command. Is there a variable to get even partway there, like just the VSCode install directory?

It should support variables https://code.visualstudio.com/docs/editor/variables-reference, I see ${execPath} there but you'd need to manipulate the path still from that

Yes ${execPath} returns the full path to code.exe, e.g. C:\LocalPrograms\VSCode\Code.exe. A variable like ${execDir} that just gave us the directory without requiring terminal-specific commands to get the directory name from ${execPath} (which I'm not sure you can even do from the "args" [] entry in terminal profiles) would be helpful. A variable like ${shellIntegrationPathPwsh} that gave the path to the actual shell integration script would be even better.


Stop repeat

Hello,
I would like to know how to disable the command. .repeat of bot Nadeko ... Is it possible? If so how do I disable the command please?
Thank you for your attention.

Have a look here
http://nadekobot.readthedocs.io/en/latest/Commands List/#permissions
Specifically something like;rolecmd, ;usrcmd or ;srvrcmd should serve

What snipplets said, however you maybe meant stopping a running repeater? use -h .replst and -h .reprm


More examples needed

Referring to the following link:
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-for-kafka-ecosystem-overview
Issue:
More concrete examples needed connecting to other technologies (e.g. Logstash plugin)
Recommendation:
If possible add reference URIs to external posts for users to see examples.  Example below for Logstash Kafka output filter connecting to Azure Event Hubs
<EMAIL_ADDRESS>
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 6ec95067-2711-5af8-a3e1-b5d5dd1faecd
Version Independent ID: ee90504a-5f49-a62a-d260-36d25b2eb678
Content: Use event hub from Apache Kafka app - Azure Event Hubs
Content Source: articles/event-hubs/event-hubs-for-kafka-ecosystem-overview.md
Service: event-hubs
GitHub Login: @shvija
Microsoft Alias: bahariri

@mapdegree Thanks for the question. We are investigating the issue and will update you shortly.

@mapdegree Thanks for the feedback! I have assigned the issue to the content author to review further and update the document as appropriate.

Thank you @CHEEKATLAPRADEEP-MSFT

@basilhariri Any update on this?

The Kafka ecosystem is incredibly large and diverse. It's not feasible for us to make an example for every use case, framework, or plugin. While articles on 3rd party platforms (like Medium) are wonderful resources, the Event Hubs team cannot verify and/or endorse every article that refers to our technology. We don't link to those resources because we strive to make sure every sample we recommend is guaranteed to work. If we are not the authors of a resource, then we can't make changes/updates/fixes as needed and can't guarantee much at all.
Many samples (as well as generic instructions to move from vanilla Kafka to Event Hubs Kafka) can be found in the Event Hubs for Kafka github page: https://github.com/azure/azure-event-hubs-for-kafka
If you are having specific problems using a framework with Event Hubs for Kafka, feel free to open an issue against that repo or (make sure to fill out the issue template!)

#please-close

Hi Basil,
I did not ask to add a use case for every example, framework or plugin.
You already confirmed that other sources for documenting Azure Event Hubs usage outside Microsoft is a better place. Unfortunately it says about the energy and attitude for change in your side.
Example that you referring to is incomplete as we know JKS is required to communicate over TLS protocol:
https://github.com/Azure/azure-event-hubs-for-kafka/blob/master/tutorials/filebeat/README.md
Happy to keep this issue closed and recommend a technology that is better documented with complete and up to date examples.

Hi @mapdegree
I took your original issue to be an ask for a larger spread of examples of Event Hubs Kafka connecting to other technologies. If that's not what you were asking for, can you expand on what the issue is?

You already confirmed that other sources for documenting Azure Event Hubs usage outside Microsoft is a better place.

Can you explain what you mean by the above statement? Our documentation spans both Azure Docs and GitHub, but I'm not sure if you meant something else by that.
As for the filebeat tutorial, if there is something wrong with it, we'd be happy to work through it with you (ideally on an issue against the Github repo where the sample is hosted). My understanding is that this configuration works, so we'd need more information to understand why it isn't working for your application


Update variables doc to make a bit more sense

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable
[x] Documentation in docs/ or install-docs/ was updated, if applicable

Prior to work on variables, I didn't fully understand this document. I've changed it so it makes a lot more sense.

Any chance someone could assist with the add and slice filters? I couldn't figure out what add does, slice I'm not 100% how to word to make it "easier" to understand.

Any chance someone could assist with the add and slice filters? I couldn't figure out what add does, slice I'm not 100% how to word to make it "easier" to understand.

add() interprets the input as a number and adds some other number to it. E.g. $(datetime:Europe/Amsterdam|strftime(%W)|add(1) gets next week's week-of-the-year number.
slice() is documented here: https://github.com/pajbot/pajbot/pull/812

add() interprets the input as a number and adds some other number to it. E.g. $(datetime:Europe/Amsterdam|strftime(%W)|add(1) gets next week's week-of-the-year number.
slice() is documented here: https://github.com/pajbot/pajbot/pull/812


What about icon resources (vs files)?

If a UMDF driver developer is installing a driver DLL, it's natural to wonder whether they can embed the device icon(s) as resources in the DLL, rather than installing separate .ico files.
This page doesn't seem to acknowledge any method other than .ico files, but this docs.microsoft.com page explains how to manually configure the registry to refer to icon resources. If it is actually possible to do it that way from install, it'd be good if that was covered here.

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

ID: 425585e9-47d1-24e8-df6e-d6081db77e63
Version Independent ID: ec35f491-0229-c592-a04b-08e86966cfa3
Content: Providing Vendor Icons for the Shell and AutoPlay - Windows drivers
Content Source: windows-driver-docs-pr/install/providing-vendor-icons-for-the-shell-and-autoplay.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @tedhudek
Microsoft Alias: tedhudek

See #2202 for resolution


merge from template-arlac77-github

package.json

fix(module): add ./src/test-all.mjs (exports...default)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+8.4%) to 37.063%

Totals

Change from base Build<PHONE_NUMBER>:
8.4%

Covered Lines:
51

Relevant Lines:
140

💛  - Coveralls


elevate ZITI_LOG to API

probably should have some words for the api docs, right?

probably should have some words for the api docs, right?

sure


[Request] Biome pressure Config

What do you think is missing or what do you think can be done better
[Describe in detail what you want to see and how it makes the mod better]
Im currently working on a mod pack and id like to be able to set certain biomes to generate at set pressures
Example:
Wastelands 50bar
plains 60bar
grasslands 75bar
forests 100bar
im not sure how easy this would be to implement but if it could be done then it would help my mod-pack by leaps and bounds!
The config structure could look something like this:
{
biomeid:X
biomepmax:X
biomepmin:X
}

This is absolutely not how the pressure system works, and is not how it will work. Sorry! (Pressure is defined by dimension and now with temperatures factored in as well, it'd be nigh-on impossible to get a good, easy & realistic way to get this to work.)


Incorrect Orientation on Windows 10

Bug Report: Incorrect Orientation on Windows 10
We tried setting up with correctOrientation parameter and still the issue exist.
The issue was fine until 2.3.1. After upgrading to 4.0.3, the orientation data is lost.
Problem : Took a pic in portrait mode, but its retained in landscape.
What is expected to happen? Retain orientation.
What does actually happen? Orientation is lost.
Information
cordova platform list
Installed platforms:
windows 6.0.1
cordova plugins list
at.gofg.sportscomputer.powermanagement 1.1.2 "PowerManagement"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-dialogs 1.3.1 "Notification"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.2.0 "File Opener2"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 4.0.1 "Splashscreen"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-legacy-build-support 1.3.4 "Cordova sqlite legacy build support"
cordova-sqlite-storage 2.0.2 "Cordova sqlite storage plugin"

i am having the same issue

I am having the same issue and I have already tried with correctOrientation: true.

Changing from PNG to JPEG solved the orientation issue in my case, maybe the problem is just in PNG images.

Guys, I'm sorry, the comment above just worked for android, with Windows the orientation error still hapenned.

Cordova Windows has been deprecated and is no longer supported making this issue obsolete.


Fix deployment from CI.

Currently this is broken, looking at travis configuration it seems ive set it up fine.

Deployment to pypi failed
https://travis-ci.org/deep-c/django-sns-view/jobs/366654145#L839


Basic Apps tutorial typo: SplitValue should be SplitData

I started going through the plutus tutorials and this line threw me off, I couldn't find a reference to SplitValue anywhere so I assumed it actually meant SplitData.
If it turns out SplitValue is actually the correct term, can we add some context here?

Thank you, it is indeed SplitData.


HardhatError: HH109: Network connection timed-out

Following this Hardhat tutoria and got a timeout error below:
aurora-examples/hardhat/erc20 $ make deploy NETWORK=testnet_aurora
yarn hardhat run scripts/deploy.js --network testnet_aurora
yarn run v1.22.5
$ aurora-examples/hardhat/erc20/node_modules/.bin/hardhat run scripts/deploy.js --network testnet_aurora
Downloading compiler 0.8.0
Compiling 5 files with 0.8.0
Compilation finished successfully
Deploying contracts with the account: 0x63B7076FC0A914Af543C2e5c201df6C29FCC18c5
Account balance:<PHONE_NUMBER>00000
HardhatError: HH109: Network connection timed-out.
Please check your internet connection and networks config
    at HttpProvider._fetchJsonRpcResponse (/home/bafu/codes/evm-survey/aurora-evm-survey/aurora-examples/hardhat/erc20/node_modules/hardhat/src/internal/core/providers/http.ts:175:15)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at HttpProvider.request (/home/bafu/codes/evm-survey/aurora-evm-survey/aurora-examples/hardhat/erc20/node_modules/hardhat/src/internal/core/providers/http.ts:52:29)
    at EthersProviderWrapper.send (/home/bafu/codes/evm-survey/aurora-evm-survey/aurora-examples/hardhat/erc20/node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)

    Caused by: FetchError: network timeout at: https://testnet.aurora.dev/
        at Timeout.<anonymous> (/home/bafu/codes/evm-survey/aurora-evm-survey/aurora-examples/hardhat/erc20/node_modules/node-fetch/lib/index.js:1454:13)
        at listOnTimeout (internal/timers.js:554:17)
        at processTimers (internal/timers.js:497:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make: *** [Makefile:4: deploy] Error 1

It seems to be a provider issue, and I can deploy the contract with the same command above now.
aurora-examples/hardhat/erc20 $ make deploy NETWORK=testnet_aurora
yarn hardhat run scripts/deploy.js --network testnet_aurora
yarn run v1.22.5
$ aurora-examples/hardhat/erc20/node_modules/.bin/hardhat run scripts/deploy.js --network testnet_aurora
Deploying contracts with the account: <my-wallet-address>
Account balance:<PHONE_NUMBER>000000
WatermelonToken deployed to: <contract-address>
Done in 15.31s.


Fix bug of twice projection when creating ParquetExec during deserialization (#1210)

Which issue does this PR close?

Closes #1210 .
Rationale for this change

When creating the ParquetExec during deserialization, we should avoid do the projection.
What changes are included in this PR?

Are there any user-facing changes?

@yahoNanJing could you resolve the conflicts?

Hi @houqp, thanks to #1141. It fixed the root cause. We can close this PR.


Retry maven dep download

Trying https://stackoverflow.com/questions/55899091/maven-retry-dependency-download-if-failed

cc @pierDipi since you already worked on this one

/test pull-knative-sandbox-eventing-kafka-broker-unit-tests
1/3

This thing seems be working 🤞


Objects behind plane also reflected

Hi, this looks great and I was thinking of using this as a mirror. There are other implementations for that, but they all seem to have issues. Sadly, I noticed there is also a "problem" with this implementation.
Unless I'm doing something wrong, it seems that objects placed behind the reflecting plane are also reflected. I thought it might be related to the clipping settings, but I found no way of getting "correct" reflections.
Is this an easy fix? Or is this a result of this particular implementation and fundamentally can't be fixed?

I guess that it can be fixed in some way but have no idea about how to fix it.
I'd admit that I have no motivation to fix it because better planar reflection is available with HDRP.

Ah I fully understand. Yes, I did notice the new planar reflection in HDRP. Sadly I don't think I can switch my project to the latest Unity because of plugins that most likely will break. I guess with time I'd be able to switch. Thanks for the response.

For anyone else looking for a solution, it's a custom shader for all the objects that are intersecting.
The Script already takes care of globally setting the parameters up.
Here's a simple example:
`
Shader "Custom/ReflectionClipped"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
}
SubShader
{
    Tags
    {
        "RenderType"="Opaque"
    }

    LOD 200
    CGPROGRAM

    #pragma surface surf Standard fullforwardshadows addshadow
    #pragma target 3.0
    #pragma multi_compile _ PLANE_REFLECTION_USER_CLIPPLANE

    uniform float4 _PlaneReflectionClipPlane;
    sampler2D _MainTex;

    struct Input
    {
        float2 uv_MainTex;
        float3 worldPos;
    };

    half _Glossiness;
    half _Metallic;
    fixed4 _Color;

    void surf(Input IN, inout SurfaceOutputStandard o)
    {
        fixed4 c = tex2D(_MainTex, IN.uv_MainTex);
        #ifdef PLANE_REFLECTION_USER_CLIPPLANE
        float pointToPlaneDist = dot(IN.worldPos, _PlaneReflectionClipPlane.xyz) + _PlaneReflectionClipPlane.w;
        clip(pointToPlaneDist);
        #endif
        o.Albedo = c.rgb;
        o.Metallic = _Metallic;
        o.Smoothness = _Glossiness;
        o.Alpha = c.a;
    }
    ENDCG
}
FallBack "Standard"

}
`


Error during delete

Hello,
I was trying to refresh storage after update, but faced with some error like:
[2020-05-17T12:14:31Z INFO  actix_web::middleware::logger] <IP_ADDRESS>:62766 "DELETE /indexes HTTP/1.1" 404 0 "-" "curl/7.64.1" 0.000568
[2020-05-17T12:14:35Z INFO  actix_web::middleware::logger] <IP_ADDRESS>:62768 "GET /indexes/movies/documents HTTP/1.1" 200 307 "-" "curl/7.64.1" 0.000339
^[[A[2020-05-17T12:15:12Z INFO  actix_web::middleware::logger] <IP_ADDRESS>:62773 "DELETE /indexes/movies/documents HTTP/1.1" 202 14 "-" "curl/7.64.1" 0.000599
thread 'actix-rt:worker:5' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', /Users/kwangin.jung/workspace/etc/rust/MeiliSearch/meilisearch-core/src/database.rs:300:17
thread 'actix-rt:worker:6' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /Users/kwangin.jung/workspace/etc/rust/MeiliSearch/meilisearch-core/src/database.rs:237:28
thread 'actix-rt:worker:7' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /Users/kwangin.jung/workspace/etc/rust/MeiliSearch/meilisearch-core/src/database.rs:237:28

After this situation, all request is returning error.
How can I fix it?
Also, is there a simple way to refresh all documents/indexes?

Hello @djKooks, can you give us repro steps? thanks!

@MarinPostma I've POST 'movies.json' to indexes/movies/document twice, try GET 'document' several times, and try 'delete' as you see in log.

@djKooks sorry, this issue was forgotten, do you still have this problem on 0.11? if not, can you close this issue? thanks!


fix(examples): prom-grafana dependencies

Were installed using a development version of jb that apparently never
worked at all

each file has a different value for legacyImports not sure if that's correct or not

Yes, the lockFile always has false, I guess we should make jb omit it there

does this just fix some syntax in the jsonnet files? looks like examples but not sure if there are any vendor files that need update?

vendor is not committed at all haha


Weird scanner behavior, the radio gets stuck in the RX mode on exit

Hi Armel,
v. 2.4, K5(8) and UV-5R Plus both show the same behavior. After exiting the frequency scanner mode, if the radio was receiving a signal at that time, it gets stuck in RX mode apparently - the green LED is on, and after the power save timeout it starts clicking repeatedly. The frequency of the clicks depends on the power save ratio setting, the higher the ratio, the lower the frequency. If power save is disabled, there's no clicking, but the RX LED remains lit indefinitely. To stop this, you have to switch VFO, change frequency setting or press the TX button, then there's a single click, the LED switches off and the clicking stops.
This only happens in XB and MO RX modes, DWR and DW are unaffected.
After resetting the radio to default settings there's no more clicks, but the LED stays on nevertheless. I've set the station with my preferred settings via CHIRP and the clicking is back.
See the attached CHIRP configuration file and the video.
73!
UPD: v.2.3 displays the same behavior.
Quansheng_UV-K5 (egzumer + f4hwn)_20240402 reset.zip
https://github.com/armel/uv-k5-firmware-custom-feat-F4HWN/assets/145500871/f9a2c87d-6814-4642-8f83-a1a29024b1f7

Hi,
Okay, thank you. I can reproduce the bug !
Well, it's quite a specific procedure. I'd never thought of doing such a thing : switch from scanRange to the spectrum analyzer en go back.
I will try to take a look, but I'm not sure to spend a lot of time on it.
73'
Armel F4HWN.

Hi Armel,
It's not neccessary to go from the ScanRange to spectrum analyzer to produce the bug, you only need three things to happen - RX mode MO or XB, spectrum analyzer on and receiving something and pressing exit at that time.
I'm using the ScanRange function to define the spectrum analyzer bandwidth most often, it's very handy.
Here's the video of it.
Anyway, it's not a crippling bug so no worries. Thank you again for your work!
https://github.com/armel/uv-k5-firmware-custom-feat-F4HWN/assets/145500871/954c786f-2f85-4126-b7bd-4632cd92b4f3

Ok,
Could you try the firmware in attachement ?
Be aware, you must unzip it before flashing it, because GitHub issues don't accept .bin extension.
Tell me,
f4hwn.packed.bin.zip
Armel F4HWN.

Sure I can.
Flashed it to UV5R Plus, can't reproduce the bug in question anymore no matter what I'm trying.

Thank you for this test.
So it's a good news. I think it's fixed.
I will close this issue if it's ok now.
Armel F4HWN.

Yeah, it works fine now, thank you. Tested it with K5(8) also, no issues.

Fixed in v2.5

That was super quick! Thanks again.


App insights react plugin points to angular.

The react plug page points to the angular package. It should point to react
https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript-framework-extensions?tabs=react#get-started

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

ID: 3d83696c-bdec-702a-5a1a-06e851e53930
Version Independent ID: d77f9fcd-cb95-c779-e744-4e1c72234c0e
Content: Framework extensions for Application Insights JavaScript SDK - Azure Monitor
Content Source: articles/azure-monitor/app/javascript-framework-extensions.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @AaronMaxwell
Microsoft Alias: aaronmax

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

@rogersau Thanks for the feedback! I have fixed the referenced change, and the change should reflect on the doc soon. We will now proceed to close this thread. If there are further questions regarding this matter, please revert and we will gladly continue the discussion.


PyTorch Pruning with ProxylessNAS

Hi,
I am interested in using pruning with ProxylessNAS. So I added a new class like "MBInvertedConvLayer_Sparse" in ProxlyessNAS example that applies pruning in forward pass.
example:
 def forward(self, x):
        x = self.inverted_bottleneck(x)
        x = self.depth_conv(x)
        x = self.point_linear(x)
        return prune.ln_structured(nn.Conv2d, 'weight', 0.2)

However, I get the below error:
  File "~nni/retiarii/oneshot/pytorch/proxylessnas.py", line 74, in forward
    return ArchGradientFunction.apply(
  File "~nni/retiarii/oneshot/pytorch/proxylessnas.py", line 31, in forward
    return output.data
AttributeError: 'NoneType' object has no attribute 'data'

Any idea how I could hack proxylessNAS for it? Thanks!

Firstly please upgrade NNI to the latest version.
Secondly MBInvertedConvLayer_Sparse looks like a hack itself. And Proxyless is also a hack. I don't have confidence that these two hacks will work together.

"Proxyless is also a hack": ProxylessNAS is implemented by manipulating the backward pass, and did some forwards there. It has certain assumptions for the input and output format, which I'm not sure whether it will work with your space.

Is there any other NAS approach that might be better suited?

Maybe you can try ENAS.
Also I noticed that you are using the legacy NAS examples, which is long out-of-date. Please try the new examples.

@matluster Thanks for the quick reply. I see. Yes, I modified the input/output format to match my space.
Thanks for pointing out the new examples. I am looking for a hardware-aware NAS. Maybe I can inject some hardware metrics in ENAS as well.

@singagan Could you close this issue as completed?


FileNotFoundError: [Errno 2] No such file or directory: './vimeo_septuplet/sequences/sep_trainlist.txt'

I installed all the requirements and then also downloaded the Vimeo dataset using the script that you provided : 'DatasetFetcher.py'
After that I tried to train with the command "python3 iSeeBetterTrain.py", but I got this error:
$ python3 iSeeBetterTrain.py
[    INFO] ==> Loading datasets
Training samples chosen: sep_trainlist.txt
Traceback (most recent call last):
  File "iSeeBetterTrain.py", line 264, in <module>
    main()
  File "iSeeBetterTrain.py", line 206, in main
    args.other_dataset, args.patch_size, args.future_frame)
  File "/home/iSeeBetter/data.py", line 17, in get_training_set
    transform=transform())
  File "/home/iSeeBetter/dataset.py", line 168, in __init__
    alist = [line.rstrip() for line in open(join(image_dir,file_list))]
FileNotFoundError: [Errno 2] No such file or directory: './vimeo_septuplet/sequences/sep_trainlist.txt'

How can I debug this?

Hey!
Sorry for the delayed response. IIRC, sep_trainlist.txt should be available from the MIT Vimeo90K dataset. If you can't find it, you can always use the other testlists in the vimeo90K/ folder.
Hope this helps!


UnhandledPromiseRejectionWarning: Error: Unexpected status code [401] on URL

Describe the Bug
When trying to build the application after adding sitemap config in next.config.js, it's throwing the following error.
(node:50640) UnhandledPromiseRejectionWarning: Error: Unexpected status code [401] on URL https://website.url.here.cdn.prismic.io/api/v2
It looks like the error is happening since the token is not passed with the prismic API endpoint.
Is there a way to pass it or is this because of some other issue?

Hi @amala-james-cko, thank you for raising this bug. 👍
Right now there isn't a way to pass the API token as I hadn't implemented it in the package.
I will have a look at it to add this in as it was overlooked about the private Prismic repository options

There is  the one option where you can set the repo if you are able to that it uses no API token when you are queuing documents that have been released already. This is only a temp solution while I make the patch though if you need to be generating the sitemap right now.
So the sitemap generator would only be able to fetch documents that have been published, but not unpublished ones.
But

The option where we can set the repo, It works only if the APIs are public right? If the API are private and requires access token does it work?

The option where we can set the repo, It works only if the APIs are public right? If the API are private and requires access token does it work?

At version 0.1.1 it only works if they are public.
I will be publishing version 0.2.0 in a few minutes that will allow you to pass the token into the sitemap generator to fetch it from repos. that need a token to access it.

@amala-james-cko please feel free to open up the issue again if it still persists 👍


Errors in XML namespace parsing

When parsing an XML document the elements don't get the correct NamespaceUri value for the default namespace. Also, specifying a namespace throws a parse error. Example:
using System;
using AngleSharp;
using AngleSharp.Dom;

namespace AngleSharpTest
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            const string xml1 = @"<c>TEXT</c>";
            const string xml2 = @"<c>TEXT</c>";
            const string xml3 = @"<x:a xmlns:x=""http://initd.org/ns/tesseract-1.0"" t=""42""><c>TEXT</c>";

            var d = BrowsingContext.New().OpenAsync(req =>
                req.Content(xml1).Header("Content-Type", "text/xml")).Result;
            Console.WriteLine(d.DocumentElement.NamespaceUri);
            // Prints http://www.w3.org/XML/1998/namespace, wrong, should be null

            d = BrowsingContext.New().OpenAsync(req =>
                req.Content(xml2).Header("Content-Type", "text/xml")).Result;
            Console.WriteLine(d.DocumentElement.NamespaceUri);
            // Prints http://www.w3.org/XML/1998/namespace, wrong, should be http://www.w3.org/1999/xhtml

            d = BrowsingContext.New().OpenAsync(req =>
                req.Content(xml3).Header("Content-Type", "text/xml")).Result;
            Console.WriteLine(d.DocumentElement.NamespaceUri);
            // Throws an exception
        }
    }
}

This happened while parsing a template where all extra tags have namespaces and, after some processing, the result is a valid XHTML document.

The last example is invalid. I think it should look as follows (note the closing root element):
<x:a xmlns:x="http://initd.org/ns/tesseract-1.0" t="42"><c>TEXT</c></x:a>

The other things I will investigate. If they are bugs I will fix them in the upcoming release v0.10.0. Thanks for the report!

Sorry for the last one, my mistake. :(

Fixed - see PR #451. However, I would like to invite @fogzot into a more detailed review:

Are there any other problems you see with XML namespaces?
What else needs to be covered?
Anything obvious missing, faulty, or behaving strangely?

Comments / discussion on this is highly welcome. I would love to have the topic of namespaceURI resolution closed after this one ;).

First of all, sorry for being so late but github never notified me of the changes to this issue and even about your @-citation. Anyway... I'd like to add some more tests (you can nest default/explicit namespaces in some very nasty ways) but apparently I am unable to build AngleSharp (devel branch) on Linux. Using the build script results in:
unknown.cake (106,17): A local variable named `target' cannot be declared in this scope because it would give a different meaning to `target', which is already used in a `parent or current' scope to denote something else
Error: A local variable named `target' cannot be declared in this scope because it would give a different meaning to `target', which is already used in a `parent or current' scope to denote something else

Using cake by hand results in the same error.
I can build with msbuild (after changing some Assets.resx paths, msbuild has problems with \ as path separator on Linux) but then I can't run the tests. Are they supposed to be run in a special way? nunit3-conole-runner.exe says:
1) Invalid : /home/fog/Workspaces/wok/AngleSharp/src/AngleSharp.Core.Tests/bin/Debug/AngleSharp.Core.Tests.dll
No suitable tests found in '/home/fog/Workspaces/wok/AngleSharp/src/AngleSharp.Core.Tests/bin/Debug/AngleSharp.Core.Tests.dll'.
Either assembly contains no tests or proper test driver has not been found.

Thanks for having a look @fogzot.
Regarding the build / test process: Works on all my Windows machines (fresh, nothing fancy installed besides Visual Studio - running Cake via the bootstrapper). I'll take a look on a Linux machine soon (will open a separate issue for that tomorrow). Generally, the sources should build on non-Windows machines, but I did not test that in a while ...


Revise section 4, include new subsection on leap seconds, define utc and tai calendars and leap_seconds in units_metadata

See issue #542 for discussion of these changes.
Release checklist

[NA] Authors updated in cf-conventions.adoc? Add in two places: on line 3 and under .Additional Authors in About the authors.
[NA] Next version in cf-conventions.adoc up to date? Versioning inspired by SemVer.
[Y] history.adoc up to date?
[Y] Conformance document up to date?

@davidhassell @JonathanGregory You might want to consider removing the word midnight, or replace it with midnight at 0 degrees longitude. It is a bit UK-centric. The ISO 8601 standard removed that word from its content some years ago.
Otherwise, a good clear exposition of the topics.


Add SAML / Shibboleth Support

It would be nice to have SAML / Shibboleth support for IPSK Manager.  We have a company policy that requires apache and iis servers to use SSO authentication for users.  This can be done via basic apache auth and using shibboleth plugin.  Once authenticated user info can be looked up in AD via SLDAP or via the shibboleth headers.
We are trying to utilize a common SSO page and authentication process for corporate users to help decrease confusion for untrusted sites.
Please see shibboleth site:  https://www.shibboleth.net/community/

+1 for SSO.

So I am starting to work on SAML support and I think the easiest way to do that is to rely on the application not being the SP. Where either a module, such as the Apache Shibboleth module acts as the SP and sets environment variable(s) the app will use, or, something outside of a module is the SP and headers are set for the app to use.  Obviously, headers add risk if your SP isn't set to strip incoming headers that it sets but thinking it provides flexibility to provide both as options.
My thought is for at least the first pass at this it would still require users to be defined in either the internal user db or a connected ldap server for group mapping.  This I feel would require less modifications to the existing base code and be quicker to implement to get SAML support in at least some form in the app.  I already have some base modifications in the admin portal complete and working in a crude way.

I would think you can just use the saml attributes to map "AD" users in the request.  This is normally how we use saml in other apps.

From: Nick Ciesinski @.>
Sent: Tuesday, April 9, 2024 1:12 AM
To: CiscoDevNet/iPSK-Manager @.>
Cc: slivesay30 @.>; Author @.>
Subject: Re: [CiscoDevNet/iPSK-Manager] Add SAML / Shibboleth Support (#5)
So I am starting to work on SAML support and I think the easiest way to do that is to rely on the application not being the SP. Where either a module, such as the Apache Shibboleth module acts as the SP and sets environment variable(s) the app will use, or, something outside of a module is the SP and headers are set for the app to use. Obviously, headers add risk if your SP isn't set to strip incoming headers that it sets but thinking it provides flexibility to provide both as options.
My thought is for at least the first pass at this it would still require users to be defined in either the internal user db or a connected ldap server for group mapping. This I feel would require less modifications to the existing base code and be quicker to implement to get SAML support in at least some form in the app. I already have some base modifications in the admin portal complete and working in a crude way.
—
Reply to this email directly, view it on GitHubhttps://github.com/CiscoDevNet/iPSK-Manager/issues/5#issuecomment-2044160359, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQMGM5E2H3ONYPVMMZHFHYDY4N2DTAVCNFSM4PF73WC2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBUGQYTMMBTGU4Q.
You are receiving this because you authored the thread.Message ID: @.***>

@dresken @slivesay30 You can try a preview for SAML support for admin portal only (at this time) by pulling from the dev-saml-support branch.  Would help if you can try it out and provide feedback.

You can actually test sponsor and captive portal SAML support as well. It was quicker to add support for those portals than I thought.  Barring any issues you find I believe it's ready for pushing to the main branch other then improving the readme on how to configure Apache for mod_shib.


Option in the Yeoman Generator to generate a "blank" project (without "hello world")

Problem
The Langium Yeoman generator is great to kickstart a working project around a small "hello world" DSL, and the provided examples of code to be written around the AST (eg. the example validator) are very useful to understand Langium.
 This is because these examples are made for the "hello world" default DSL, which is not there anymore because of step 2.
This means that two extra steps are in fact always required:

modify generator, validator and CLI  by commenting/changing/removing the parts that cannot compile
run npm run build once again, and hope it compiles

A problem I encountered when I was starting with Langium, and that I now currently encounter when I try to teach Langium to students, is that the additional step 5 is quite difficult for people who are just starting with Langium. Because at this stage one does not know how things works, it is hard to know how to make the changes, and it is easy to make mistakes (eg. commenting too many things).
Idea
I would find very useful to be offered the choice, in the Yeoman generator, to either kickstart a project with the "hello world" example DSL (and accompanying generator, validator and CLI), or to have a "blank" project without any semantic model nor grammar rules. Such blank project could still provide files for the generator, validator and CLI, but where one would simply find // TODO  in each place where a change will be required for the component to work in the future.
This would allow kickstarting a project with steps 1 to 4, avoiding the hazardous steps 5-6 (especially for beginners).

I agree, this makes a lot of sense. I've talked with a few people at conferences in the past who had this issue as well.


Fix compiled_code, reimplement sql as wrapper

resolves #9502
Problem

#9040 added defer_relation to all nodes any time --defer was provided
We had routing logic for the clone command that depended on the presence of defer_relation
#9040 updated this logic for sql context member, but not for compiled_code

Solution

Update the logic for compiled_code context member
Reimplement sql context member as a wrapper around compiled_code, to prevent future divergence

Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX
[x] This PR includes type annotations for new and modified functions

🎩 Confirmed this fix locally by running an incremental model on dbt-snowflake
Before:
On model.my_project.my_model: /* {"app": "dbt", "dbt_version": "1.8.0a1", "profile_name": "snowflake", "target_name": "dev", "node_id": "model.my_project.my_model"} */
create or replace transient table analytics_dev.dbt_jcohen.my_model
         as
        (select * from analytics.analytics.my_model
        );

After:
On model.my_project.my_model: /* {"app": "dbt", "dbt_version": "1.8.0a1", "profile_name": "snowflake", "target_name": "dev", "node_id": "model.my_project.my_model"} */
create or replace transient table analytics_dev.dbt_jcohen.my_model
         as
        (

... tons of SQL ...
);