Syntax highlighting - as of Build 3103 (Feb 9, 2016)

As of Build 3103 (Feb 9, 2016) Javascript syntax highlighting is no longer working properly. It may be related to scope.

I can confirm that the Javascript syntax highlighting is not working properly with Build 3103.

Hey guys, I'm not actively maintaining this repo for quite a while already. For the latest syntax themes you should go to their respective base16 repo: https://github.com/chriskempson/base16

@kkga It seems this repo doesn't have any active mantainers, I've made a PR about fileicons and it hasn't even been considered, I could help if you want.

@marcofugaro yeah, if you want to keep the theme up to date that would be great!

Will do!

Awesome! Added you as an administrator. Thanks!

On Feb 11 2016, at 2:10 am, Marco<EMAIL_ADDRESS>wrote:

Will do!

—
Reply to this email directly or [view it on GitHub](https://github.com/kkga/sp
acegray/issues/181#issuecomment-182630103).![](https://github.com/notification
s/beacon/ABZHmhJGypjTbbRifjivlmqWqlYlPqkcks5pi7rqgaJpZM4HWrhy.gif)

Related discussion on javascript syntax highlighting in 3103 https://github.com/sublimehq/Packages/issues/141

In summary, what happened after updating to 3103; what made the theme break?

There's a new syntax highlighting, will look into this issue, thanks for the link @mhkeller

As a short term fix, if you have another computer that hasn't upgraded yet, on OS X you can "Show Package Contents" and in the Mac OS folder (IIRC) you can copy the JavaScript package file. Copy it to your other computer, name it something different and now you should have a new syntax available to you that will look like the old version.

Le Feb 11, 2016 à 17:30, Marco<EMAIL_ADDRESS>a écrit :
There's a new syntax highlighting, will look into this issue, thanks for the link @mhkeller
—
Reply to this email directly or view it on GitHub.

Yes here is the fix, also looks like this is already fixed in the lastest devbuild.
New selectors were added, like the variable.language.this.js for the this in javascript, or new $ cases, which I will implement in the base16 color scheme if needed, but I need a reference about how base16 should look in the different cases of JS code, or do I compare it with default monokai?

This is how it looks with the new fixed JavaScript.sublime-syntax, how should it look?

LESS highlighting is now also b0rked in the latest builds. Would be nice if Sublime and Atom somehow merged. We'd have the best of both worlds.

@samholmes Please report what's wrong on the sublime forums, people are working on fixing those issues, there are tons of threads about syntax highlighting
https://forum.sublimetext.com/

Sorry, with the LESS I realised it wasn't actually auto-selecting the LESS syntax highlighting based on extension (for whatever reason), I had to re-set the option "Open all with current extension as" to use LESS.

@marcofugaro per your question on how it should look, here's a quick side-by-side of how it used to be versus what I see now on the same code snippet. One caveat, I'm using a fork that colors operators like + and = light purple. Everything else is the same as the original.
Some thoughts for discussion:

I imagine not that many people would strongly object to putting Spacegray back to the pre-3103 colors.
The new syntax does give some handy changes that could be integrated into the Spacegray aesthetic. For example, nextTick is light blue in the new syntax and that seems more consistent. You could take a crack at updating this project with some new styles that are more consistent with what it was before. These red variables everywhere, for example, I find inconsistent with previous versions. In order to keep users happy who just want to keep pre-3103 style, you could make that available on a branch. Or keep this repo as pre-3103 style and make a new project called Spacegray-Next or something better.

Old style

Build 3107

I have to agree the new JS highlighting is a bit red heavy. Atom handles it well I think:

FWIW I've had success with the Spacegray port here: https://github.com/saadq/Materialize

You can try to add my color scheme builder into this theme or modify it to fit your needs.
Base16 Oceanic preset is included (I just modified it a little bit). It has more prettier syntax highlighting and, yes, JS highlighting isn't so red centric.

You can find it in this theme: Otto

Tried the Materialize Spacegray port but it has issues too.
I just want my (working) Spacegray back 😢

Me tooo! I want my old spacegray back.

Hey @jaredatch, I'm the creator of Materialize. I'm still actively developing my themes, so I would be happy to improve any syntax highlighting issues you guys seem to have with Material Spacegray. What improvements would you like to see?

@saadq I'm all for any efforts to improve syntax highlighting but this specific exchange would be more appropriate as an issue on the materialize repo.
All: if no one else has started, I'm going to try and take a crack at bringing the old style back to life next weekend. I'll make a new branch on my fork called 'pre-update'. Contributions welcome! If someone has already done some of the work, I'd happily contribute to what you already have.

Le May 23, 2016 à 00:28, Saad Quadri<EMAIL_ADDRESS>a écrit :
Hey @jaredatch, I'm the creator of Materialize. I'm still actively developing my themes, so I would be happy to improve any syntax highlighting issues you guys seem to have with Material Spacegray. What improvements would you like to see?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

Feel free to use Material Spacegray as a base if you'd like, or I'd be happy to help out with any syntax highlighting adjustments if I can!

Sorry guys, I haven't had much free time for this recently, but will surely get on it this weekend.
@saadq thanks for the help! will checkout how you solved things over at your theme and ask help if I need it.
@mhkeller sure any help is welcome,  will need to discuss with you about the old vs new JS highlighting.
Also I implemented fileicons here, but I need some testing before i can pull it in, especially on Mac OS. I have the pull request here currently open.

After updating to Sublime 3124, my Spacegray code highlighting (base16-ocean.dark) went all red like @mhkeller screenshot shows. My solution was to add the following lines to my base16-ocean.dark file.
<dict>
    <key>name</key>
    <string>Function call</string>
    <key>scope</key>
    <string>variable.function</string>
    <key>settings</key>
    <dict>
        <key>fontStyle</key>
        <string />
        <key>foreground</key>
        <string>#eff1f5</string>
    </dict>
</dict>

You can use https://github.com/bobef/ColorSchemeEditor to quickly edit the base16-ocean.dark.tmTheme. Since I use SublimeLinter my File was under /Packages/User/SublimeLinter/base16-ocean.dark (SL).tmTheme. (See this Link how SublimeLinter manages Color Schemes)

Thank you @brachycera that solved the issue, made the function calls blue like the atom ocean16-dark package does. the PR is #186

@brachycera very cool! I didn't know that tool existed. I've been hung up on trying to get some ruby-based theme editor to work so this is much easier. Setting the variable color back to pre-3103 so #d3d0c8 seems like the most compatible change to make with this PR. That being said, I'm probably going to keep using my fork since I have a couple new things I want to add. Thanks for taking this over @marcofugaro!

Okay, closing, changes will be online in next patch release!


Fixes #480 fetch override for builder.buildStatic

Fixes #480 enabling fetch overrides for builder.buildStatic.

Thanks!


osx arm64

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin rerender

@conda-forge-admin rerender

@conda-forge-admin render

@conda-forge-admin rerender

@conda-forge-admin rerender


feature/commands

试水，提交命令行头部翻译

@all-contributors please add @Imchenlong  for maintenance, translation, code


feat: generated empty provider

This PR

adds backstage provider

Related Issues

Fixes #234

Closing due to inactivity.


why are we not showing physical web icon in notification panel if physical web is nearby?

Hello
We show physical web icon only once at the run time permission. But when for the second time if a user comes under the range of a URL, there is no indication on te screen for a user to know that he has physical web.
I understand we cannot use sound or vibration as an indicator but why are we not even showing the physical web icon in the status bar?

I'm trying to understand you question. Are you saying that it IS showing up in as a notification, but it is NOT showing up in the status bar?

No
I am saying that physical web icon does not appear in status bar. When we pull down the notification panel, we can see physical web pages nearby but there is no indication of it on status bar.
For example, if there is a whatsapp notification, then we see a whatsapp icon on the status bar. It helps us in identifying that if we pull down the notification panel, we will see a whatsapp notification.
This kind of behavior is absent in physical web.

That is a function of the priority of the notification. At this point in time, the Physical Web notification is low priority so doesn't show up in the status bar. We understand this is a concern and we're experimenting with alternative approaches.

I have a suggestion. Say if a user has enabled physical web and have accessed it once, then may be it can turn into a priority notification for the particular user.
Another suggestion: If a user has accessed a particular domain(URL) through physical web once(or may be we can define a threshold) then if the user receives the a URL from the same domain again, then for that particular URL, physical web notification can be treated as a priority notification.

I want priority notifications. Users will never seek this out, IMO.

I kind of have to agree that if no indicator of "something" is available on the notification bar, nobody will bother to pull down to see if there is anything there. I think what was previously classified as a "bug" was more like a feature. The main issue is - does Android allow showing a small icon if the notification is min-priority? In my actual experience with a test app, creating a "noticeable" min-priority notification is a miss-and-hit: under debug mode, an icon will show up, but under release mode, it will not.

It seems to me that the best solution would be to classify it as a default priority notification but have the default settings set to no sound/vibe and let the user decide if they want to be notified. @adriancretu is right, no one will ever pull down the bar unless there is a notification in the top bar.

This is a constant issue and a tension we see often: devs want to push a
hard notification and in our tests, users often feel it is a bit spammy. We
agree that having a MIN priority notification is a bit weak as most users
won't naturally find it. We expect, over time, as this is used
repetitively, users will get it but we totally understand this will take
time.
However, a high priority 'buzzing' notification isn't the answer. It is, of
course, helpful in the short term, but it really irritates users so we're
just never going to do that.
We're trying to find the right mix of physical prompts (e.g. using the
Physical Web logo in store) to help users know that there is something
nearby. This is how wifi usually works in coffee shops, users see the wifi
logo and know that can open their laptops.
On Fri, Dec 30, 2016 at 2:17 PM, Hoopstr42<EMAIL_ADDRESS>wrote:

It seems to me that the best solution would be to classify it as a default
priority notification but have the default settings set to no sound/vibe
and let the user decide if they want to be notified. @adriancretu
https://github.com/adriancretu is right, no one will ever pull down the
bar unless there is a notification in the top bar.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/physical-web/issues/650#issuecomment-269828651,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAbuomuNoIQMzcKZDT1mbf5QqhTlYOpks5rNYL9gaJpZM4Ib2Ti
.

My use case is in my house. I have aggregated public access for certain things (music, lights, garage, gate). I don't really want to plaster my house with stickers or explain to people anything. The promise of the physical web (to me) is exactly that zero comms, zero config, Zeo install. Anything that detracts from those devalues it. I'd almost be as well off putting a QR code or something on the wall, if it's not obviously discovered. I certainly sympathize to the spam concern, and I don't know if I have a good solution, but I think that trying to eradicate this factor is critical to success. QR codes did not work as well as people hoped because they required users to know and do things proactively. Maybe there are some informal / per implementor substandard a that could be applied, with a more open public standard. The example that comes to mind is AMP, which enforces some control beyond its standard by proxy to reduce abuse/enforce rules.

Well, for your house, I think that would fall in my 'repetitive use case'
so it's really clear what you'd need to do after just a few times using it.
 My concern though is that you'd be prompted
as well, which I expect would start to get very tedious after even a few
days.
Scott
On Tue, Jan 3, 2017 at 11:36 AM, James Tucker<EMAIL_ADDRESS>wrote:

My use case is in my house. I have aggregated public access for certain
things (music, lights, garage, gate). I don't really want to plaster my
house with stickers or explain to people anything. The promise of the
physical web (to me) is exactly that zero comms, zero config, Zeo install.
Anything that detracts from those devalues it. I'd almost be as well off
putting a QR code or something on the wall, if it's not obviously
discovered. I certainly sympathize to the spam concern, and I don't know if
I have a good solution, but I think that trying to eradicate this factor is
critical to success. QR codes did not work as well as people hoped because
they required users to know and do things proactively. Maybe there are some
informal / per implementor substandard a that could be applied, with a more
open public standard. The example that comes to mind is AMP, which enforces
some control beyond its standard by proxy to reduce abuse/enforce rules.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/physical-web/issues/650#issuecomment-270202991,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAbusfZ7LEVYlEKzaLG9_MuBr9yVuDFks5rOqMggaJpZM4Ib2Ti
.

I'd only expect to be notified when I get home. That already often happens anyway, for things like location reminders. I'm totally ok with a buzz in my pocket as I get home.

I appreciate that you don't mind that but we've got a lot of user research
that shows quite the opposite unfortunately. Repetitive notifications are a
big issue to a large number of users.
Think of it this way, you're phone doesn't buzz evertime you see a few wifi
hotspot. We are much the same way: we'll show you something if you ask. I
appreciate this puts the effort on the users part, but it seems to be the
only way to do it without irritating them.
On Wed, Jan 4, 2017 at 11:30 AM, James Tucker<EMAIL_ADDRESS>wrote:

I'd only expect to be notified when I get home. That already often happens
anyway, for things like location reminders. I'm totally ok with a buzz in
my pocket as I get home.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/google/physical-web/issues/650#issuecomment-270463639,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAbuuwIpCerCqTSIWPMsywVPObARUAuks5rO_NfgaJpZM4Ib2Ti
.

Hi @scottjenson
I agree that repetitive notifications are big issue for the users That is right. For me one side is QRcode the other side SMS and the physicl web is in the middle. If we compare QRcode vs physical web, physical web is  very strong and easy to use. But SMS vs Physical Web has many weakness. But there is one big strongest part to the SMS and that is "affect the behavior right in the desicion". To use this, there is only weapon is "pushing a notification".
If a user download an app and "turn on the bluetooth (which is a very big issue for us in Turkey for common wrong opinion)" we can assume that he/she is willing to have notifications. beacuse he/she knows that if the bluetoth is on beaware of campaigns.
It is my oppinion. please consider.

A Nearby or Physical Web notification(silent) will certainly speed adoption and consumer education.  I ask everyone I come in contact with if they know what this[physical web/nearby] symbol is and noone knows it yet.
A silent notification would be ideal...to increase awareness.  Same as WiFi...It connects automatically(project fi), but then puts a questions mark stating that I need to 'do something'.


[graphiql] Support the proposed "incremental: ..." response format

Hi! I'm trying to use GraphiQL with @defer. I found that it has some support built in via enableIncrementalDelivery, which defaults to true.
However, there's a long-running proposal to change the standard response structure: https://github.com/graphql/graphql-spec/pull/742 .In that proposal, each patch would include a { incremental: [ ... ] } array which includes { data: ... , path: ... } entries.
Although it's only a proposal, it was implemented in GraphQL-JS about a year ago (https://github.com/graphql/graphql-js/pull/3659) and has also been added to urql and apollo client
It looks like GraphiQL expects data and path to be top-level keys in the server's response:
https://github.com/graphql/graphiql/blob/7daa163978afbb3c8d110123552e029bd682ec24/packages/graphiql-react/src/execution.tsx#L218-L219
What do you think about also checking for incremental: ... entries there, to support this new response format?
Thanks!

our implementation should be updated with whatever the language spec you linked to, and in addition, whatever the graphql over http spec supports! please feel free to open a PR if you like!

Maybe resolved by https://github.com/graphql/graphiql/pull/3580?

Looks like it to me -- thanks for sharing that!


Add SingleR delta median plot to QC report

Stacked on #427
Closes #410
This PR adds the delta median plot for SingleR. Implementation notes:

I refactored (bonus this is a pun :tada:) some of the earlier QC report code since we'll want to use the annotation factor order for this plot as well. I removed code that sets the factor order from the celltype tables, and instead added a helper function to accomplish this while setting up celltypes_df. This way, all downstream code that uses this data frame inherits these levels!
I made this overall section generally about assessing cell types, and place it immediately after the cell type tables, and before the section with umaps + heatmaps. This way, we get a sense of reliability before diving into plots.
I'm using a sina plot here, so I had to set a seed. For now, I just put a seed into qc_report.rmd, but it might be preferable to use whatever seed is used for the overall workflow and pass that in as a parameter to the report? I'm not sure how much this really matters though for this situation.
I wrapped the labels that are over 30 characters, and this seems to really help with plot layout.
Let me know any feedback about my description of delta median too!

Report: qc_report.html.zip

Thank you for working on this and apologies if this is really annoying, but... I do wonder if we should be doing something similar to what I did with the ridge plot for CellAssign. We would plot just the score and label by the top score and then everything else and look at the separation. I don't know if it would work quite as well because it's a score and not a probability, but I think it's worth a shot.

Thank you for working on this and apologies if this is really annoying, but... I do wonder if we should be doing something similar to what I did with the https://github.com/AlexsLemonade/sc-data-integration/pull/231.

Not annoying at all! It's been a fun spending time plotting :) Let's see how it looks..

Here's a super quick side-by-side (well, stacked) comparison of sina vs ridgeplot, just to get a sense:
One one hand, I do like the ridgeplot more, but on the other hand, I'm not entirely it's usable (this may go for CellAssign as well...!) - for any categories that have <= 2 cells, nothing gets drawn and that's just how the algorithm works; >=3 points are needed to estimate the distribution.
I wonder if there's a good middle ground we could achieve here, since I really do like the ridgeplot more... Would it it make sense to show both sina + ridgeplot, and/or only show cells types with >=3 cells for the ridgeplot (we'd add text explaining this).
Very curious to hear your thoughts!

I do wonder if we should be doing something similar to what I did with the ridge plot for CellAssign. We would plot just the score and label by the top score and then everything else and look at the separation. I don't know if it would work quite as well because it's a score and not a probability, but I think it's worth a shot.

My interpretation of this comment was to plot the scores themselves, not the median delta values. Perhaps I got that wrong, but if we're going to plot the median delta, it's helpful to use a completely different style of plot IMO so folks know they're looking at something quite different.

My interpretation of this comment was to plot the scores themselves, not the median delta values.

Ah no, I think you are right! Let's see..

My interpretation of this comment was to plot the scores themselves, not the median delta values.

Ah no, I think you are right! Let's see..

Yes Jackie is correct. I was thinking we would plot the actual scores themselves and then create a plot similar to the one below.

I think we want to be mindful of overly-discussing strategies in this PR, mostly because as comments build up things will be become harder to track & review. So, I'm going to open an issue (will come back to this comment and edit w/ a link!) that we can use to discuss visualization strategies, and then we can come back here to continue the PR.

As discussed in #434, I've updated this to still visualize delta_median, but highlighting points that were pruned out. I've updated text in the plot preamble to match what the plot currently shows. Note that this involved a decent bit of wrangling, since we need to plot based on the full labels, not the pruned labels, in order to color by whether a cell was pruned or not. The points are pretty small and possibly tricky to see, but I think this is inevitable when visualizing this many data points (or more!).
qc_report.html.zip

@allyhawkins, I can't re-request review here since only comments were left before, so this is my re-request ping :)

I've updated the plot as discussed and simplified that factor code, so this is ready for another look!
qc_report.html.zip
One important bit: In https://github.com/AlexsLemonade/scpca-nf/pull/432/commits/601087b36b1ebef14ca5a6b8b02b8834de0c6adb, I made some updates which could be reverted. This commit sets things up if we want to pass in the workflow seed to the QC report, for the sina plot layout. But for this to work, we'd need some small changes over in scpcaTools::generate_qc_report().
If we want to take this route for the seed then, two ways forward:

make scpcaTools compatible, then merge this PR
revert that commit, hardcode the seed for now in this PR. Later, we could circle back with a new PR to set the seed from the workflow seed, after making scpcaTools compatible

I've updated the plot as discussed and simplified that factor code, so this is ready for another look! qc_report.html.zip
One important bit: In 601087b, I made some updates which could be reverted. This commit sets things up if we want to pass in the workflow seed to the QC report, for the sina plot layout. But for this to work, we'd need some small changes over in scpcaTools::generate_qc_report(). If we want to take this route for the seed then, two ways forward:

make scpcaTools compatible, then merge this PR
revert that commit, hardcode the seed for now in this PR. Later, we could circle back with a new PR to set the seed from the workflow seed, after making scpcaTools compatible

You should be able to use the extra_params argument to scpcaTools::generate_qc_report() to pass in the seed. It is there just so we don't need to update the function every time we make changes to the template!


add support for tweedie regression

in reference to #1392 and #681

@tonydifranco  I think you should rebase your work branch against the master branch, instead of merge the master into your work branch. Besides, it would be nice if you could provide an example on some toy dataset.

@yangs16 thanks... I will rebase and add an example.  Will try to get to it by the end of the week.

@yangs16 or @tqchen can you either merge this PR or provide feedback so that I can make the necessary changes or close it if you don't think it should be added?  I have been using this tweedie objective in practice on large data sets for the past few weeks and can validate it's performance against tweedie glm's and the other implementation of tweedie gbm.  Thanks!

closing and re-submitting after rebase


Possibility to add image on QR

Are you planning to add the possibility to merge an image like a logo with the qrcode?

is is in my todo list for a while now, but didnt got a chance.
I did test it as you can see here
we need to add support for image source by uploading or passed to the plugin or passed to the component.
will see if its possible to do so during the next week.

any update ?

Done, please test and let me know
https://github.com/user-attachments/assets/10eec3b2-f5a5-4e2f-a6dd-fceb3c4ca28f

Call to a member function getPathName() on string
after save qr-option and edit again error
my field
{"size":"300","type":"png","margin":"1","color":"rgba(74, 74, 74, 1)","back_color":"rgba(252, 252, 252, 1)","style":"square","hasGradient":false,"gradient_form":"rgb(69, 179, 157)","gradient_to":"rgb(241, 148, 138)","gradient_type":"vertical","hasEyeColor":false,"eye_color_inner":"rgb(241, 148, 138)","eye_color_outer":"rgb(69, 179, 157)","eye_style":"square","logo":"01J8MBW3SAEGDBEJ44ZNWYVK0S.jpg"}

Same for me, looks like that the image is not handled after the save

sorry for the delay.
@yughoz
fixed on the last release
@cgiupponi not sure about this error, can you test on last version and test. if still an issue please feel free to open an new one, since its diff than this issue.


Update aws-core, http-client-spi, ... to 2.17.127

Updates

software.amazon.awssdk:aws-core
software.amazon.awssdk:http-client-spi
software.amazon.awssdk:netty-nio-client

from 2.17.104 to 2.17.127.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #56.


First properties are inconsistently aggregated in Accumulo

Describe the bug
Properties with the aggregationFunction of First seem to return inconsistent results when updated multiple times in an Accumulo store.
To Reproduce
Steps to reproduce the behavior:

Have an AccumuloStore with a schema where a property is aggregated with First
AddElements and you should have the value returned by GetElements
Perform multiple AddElements and keep track of the order that you added them in
Perform GetElements and note that the resulting property will change inconsistently

Expected behavior
What should happen for First is that the most recent value is returned.
Additional context
This leads to occasions where the First function provides inconsistent results, which should never happen. Other pure functions like Max are deterministic and will always return the max value immediately. I worry that due to how the scanning is working and applying iterators, First will produce non deterministic results and that sometimes data will be lost.
The same is also maybe true of Last which should always retain the oldest value.
An experiment/test should be made in order to try and reliably recreate this issue

@n3101 As I currently understand it, this is a problem with Accumulo's behaviour when using First in certain situations. I'll explain why.
As seen in the tests for First, all it does it take a list of object and returns the first one. So with [1, 2, 3] it always returns 1.
When an element (with a property using First as the aggregation function) which already exists in Gaffer is added again, the intention is for the existing value of the property to be replaced by the new value. This is the use case which raised the problem in this issue.
This use of First works because the Gaffer Accumulo iterators must be supplying a list of [newValue, existingValue] to the First binary operator, causing the newest value to always be used as it is first in this list. The application of the operator is done by the Gaffer Accumulo iterators whenever there's a relevant scan or a compaction.
This use of First (which is not documented anywhere) relies on the binary operator being applied in the order of insertion. Such that the last (most recent) element inserted is the final one to have the comparison applied and is therefore the version which is used to replace the existing value.
If a single update is made, then there are only two copies of the element present in Accumulo - the existing element and the new version which has been inserted. When a scan or compaction occurs there is only one possible order for the list ([newValue, existingValue]). When the new value was inserted is irrelevant.
If multiple versions of the element are inserted, but the time when they were inserted is not used to order the application of the binary operator, then there's nothing to ensure the last inserted element is the one which is used to replace the existing value. The existing value then appears to be replaced by one of the new values at random - the problem in this issue.
In a given time window, this problem occurs only when there are multiple updates made to the same element, never if there is a single update. The time window matters because when a compaction occurs the updates processed and the existing value replaced. In practice, this problem will never be experienced if an element is updated only once between each compaction. The frequency of compactions will depend on the rate of data ingest and other factors.
This apparent lack of ordering elements by insertion time is probably part of Accumulo's behaviour, but this hasn't been confirmed.
If an AddElements contained two updates to the same element property, the value used for the update would be definitely be random because if "two inserts are made into Accumulo with the same rowID, column, and timestamp, then the behavior is non-deterministic" (from the Accumulo docs). This confirms the problem only when multiple updates have identical timestamps. Further investigation is needed to confirm how the ordering is done when the timestamps are not the same.

@GCHQDeveloper314 Thanks for setting this out. For work estimation purposes - do you have any ideas for a fix, or does this still need to be worked out?


https://short.url2go.in/WCt7

Domain
https://short.url2go.in/WCt7
Link
https://short.url2go.in/WCt7
Version
0.0.0
What browsers are you seeing the problem on?
Chrome
What OS are you seeing the problem on?
Windows
(Optional) Anything else?
No response

.


Alexa not booting up

Thank you for reporting an issue with AlexaPi.
Make sure you are running the latest version of AlexaPi, and look through issues before submitting.
Check out our Wiki, and make sure to look at Debugging, and Audio debugging in particular before filing an issue.
In order to help troubleshooting, be sure to include the following information:
Output of the audio debugging script.
Your OS (including version) where you are running AlexaPi:
Raspbian (newest version)

Your hardware platform and model you are running on:
Raspberry Pi 3, Model B

Python release (python2 --version):

Description of problem:
Alexa doesn't even turn on. After checking service status this is what I get:
pi@raspberrypi:~ $ sudo systemctl status AlexaPi.service
● AlexaPi.service - Alexa client for all your devices
   Loaded: loaded (/usr/lib/systemd/system/AlexaPi.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-08-14 22:11:07 UTC; 20s ago
     Docs: https://github.com/alexa-pi/AlexaPi/wiki
  Process: 1307 ExecStart=/usr/bin/python /opt/AlexaPi/src/main.py --daemon (code=exited, status=1/FAILURE)
 Main PID: 1307 (code=exited, status=1/FAILURE)

Aug 14 22:11:07 raspberrypi python[1307]: surround50:CARD=VF0770,DEV=0
Aug 14 22:11:07 raspberrypi python[1307]: surround51:CARD=VF0770,DEV=0
Aug 14 22:11:07 raspberrypi python[1307]: surround71:CARD=VF0770,DEV=0
Aug 14 22:11:07 raspberrypi python[1307]: iec958:CARD=VF0770,DEV=0
Aug 14 22:11:07 raspberrypi python[1307]: dmix:CARD=VF0770,DEV=0
Aug 14 22:11:07 raspberrypi python[1307]: dsnoop:CARD=VF0770,DEV=0
Aug 14 22:11:07 raspberrypi python[1307]: hw:CARD=VF0770,DEV=0
Aug 14 22:11:07 raspberrypi python[1307]: plughw:CARD=VF0770,DEV=0
Aug 14 22:11:07 raspberrypi systemd[1]: AlexaPi.service: main process exited, code=exited, status=1/FAILURE
Aug 14 22:11:07 raspberrypi systemd[1]: Unit AlexaPi.service entered failed state.

Expected:

Problem-relevant config.yaml entries:

Steps to reproduce:

Traceback (if applicable):

Additional info:

Misconfigured audio. Anyways, update to version 1.6, that might help. One way or the other, read the whole logs and our docs.


log thread dump when specs with possible deadlocks exceed timeouts

Adds ThreadDumpOnTimeout trait that can be mixed with Http4sSpec
to trigger a thread dump to console if any of specs2 expectations
take longer than a specified duration.
Introduced the new instrumentation in CharsetRangeSpec with a
2 second timeout for #774 and in AsyncHttpClientSpec with a
9.5 second timeout.  Hoping the latter will shine some light on
this timeout.

Build failed on #895.

Thanks for merging, @rossabaker.  Probably not a good idea to mix into Http4sSpec as-is.  Could really slow down the tests.  Details in https://github.com/http4s/http4s/issues/774#issuecomment-275777611 .

Oops, I overlooked the fine print.  In that case, I'm real glad. :)


Handle large docx files

fix issue were parser throws "AttValue length too long" error message for large docx files

Hi @JoelGotsch this is interesting. Can you say more about where you're encountering a docx file that is "too big" and what possible downside  consequences there might be for choosing this setting?

Hmm, looks like this setting disables security restrictions, so probably not a good idea to enable by default :)

Hi scanny!
Thanks for the quick reply!
We have word files that were converted from pdfs (annual reports of companies). The issue starts occurring with documents that are around 100MB.
But in retrospect and given the discussion at https://github.com/TAXIIProject/libtaxii/issues/18#issuecomment-497148054  I agree that it should probably be a setting that’s False by default.
Shall I adapt the PR accordingly?

Let's discuss how we might approach this.
docx.oxml.parser.oxml_parser is going to be initialized quite early, probably right on from docx import Document, so there's not going to be a way I can see to configure its original value, we will have to "re-initialize" its value.
So maybe a function like docx.oxml.parser.disable_parser_security() or something like that, so it's clear you're taking on risk, and looking something like this:
def disable_parser_security() -> None:
    """Disable XML exploit detection to allow handling of large DOCX files (e.g. > 100MB)."""
    global oxml_parser
    oxml_parser = etree.XMLParser(remove_blank_text=True, resolve_entities=False, huge_tree=True)
    oxml_parser.set_element_class_lookup(element_class_lookup)

We're going to want a better name than that, something more specific, like disable_parser_exploit_protection() or something, let's give that some more thought. You can suggest something based on what that article says is the reason they put that limitation in there.
You can try this from your own code to see if it works, something like this:
import docx.oxml.parser as parser

parser.oxml_parser = etree.XMLParser(remove_blank_text=True, resolve_entities=False, huge_tree=True)
parser.oxml_parser.set_element_class_lookup(parser.element_class_lookup)

document = Document("huge_docx.docx")

If that works I think that gives us pretty high confidence that such an approach would work.
We'd need to work out where in the documentation to mention this. I don't think there's a section there for the Oxml parser because it doesn't have any actual interface yet as far as I know.

I just tested it and it works.
The implementation also looks OK to me and given the current way how the parser is instantiated it is the wisest choice.
To me as a user it would probably feel the most natural to use it like Document("huge_doc.docx", huge_tree=True). But that would probably mean that the parser would need to be instantiated for each Document that is loaded instead just once when the module is loaded. And I guess that was the reason why it's instantiated as a global variable in the first place?
In any case, I could adapt the PR if you want to.
Regarding the naming I am quite flexbile, maybe just disable_xml_exploit_protection?
And regarding documentation, how about in user/documents?


Enable kibana sso though terraform provider

Question
Is that possible to enable SSO through the terraform provider?
Given that post, some things need's to be configured, one of the is a secret in the Keystore and the other one is actually putting the kibana endpoint URL into elasticsearch.yaml , and the kibana url is not really available when I am creating the ES cluster.
Also I don't seem to find how to put a secret into the keystore with the provider.  Is that right ?

@romankor we currently do not support the current Elasticsearch Keystore integration. Since it's an Elasticsearch API and not with the Elastic Cloud APIs, which this provider aims to cover.
We currently do not have plans for an Elasticsearch Terraform provider, but I can pass along your +1 as an Enhancement Request.

An Elasticsearch Terraform provider would be brilliant!
We currently have our ES Cloud infrastructure managed by Terraform and we've written a basic app to maintain our config of ES by sending API requests. It's not very elegant :)


How to configure the docker container

Hi.
How do you configure the docker container?
I've installed docker and run the image. I can execute events.
I get the same errors as #2699 , but its even more basic as I have no clue how to configure huginn for using email.
There seems to be no example on how you do it, or what you need to change. I've seen the .env file and edited it inside the docker image, but a new one is created every time I run the docker container.
Could someone help with some instructions or write a wiki article on how to configure huginn?
I can't find a guide for the .env file either.

https://github.com/huginn/huginn/issues/1260#issuecomment-178436316 you can also use the --env-file argument or use an env file in your docker compose configuration.

Thanks for your help @dsander . I will try it out.
If you only send the link to the env file, I guess this issue could be closed. It would be nice if it could be added somewhere in the readme/wiki for us that have not used docker much.

This is the default env file I'd recommend to only pick the variables you want to change and keep your .env file as small as possible. All values you do not specify in your configuration will be at the default values.
I would be very happy about a PR that improves the documentation.


Select appropriate marshaller based on MarshalAs attribute

The change contains the following:

Select marshaller based on MarshalAs attribute
Indentify In/Out/Ref and have the infrastructure to marshal based on
them.

@yizhang82 @jkotas PTAL


Ported GetFasta

Coverage increased (+4.5%) to 86.548% when pulling 88fde7cd302eb16632c7297e43c7c947013280e1 on dgs_get_fasta into d730024357745b7e0141a7c46af4fcca084dcf52 on master.

Coverage increased (+3.6%) to 85.642% when pulling c7199758bb7bef63daf97f31b16a4f565aef39ba on dgs_get_fasta into d730024357745b7e0141a7c46af4fcca084dcf52 on master.

Coverage increased (+3.6%) to 85.606% when pulling 7b2ba9146bff87c0bce7003f3be2fc9304441ac9 on dgs_get_fasta into d730024357745b7e0141a7c46af4fcca084dcf52 on master.


Relaxing requirement to read the doc from too close for installation. 🧘

Hey!
After successful raco setup execution,
when running from the root directory the next command,

raco exe --cs -o shen ++lib racket/lang/reader repl.rkt

I got the attached error related to collection
raco exe --cs -o shen ++lib racket/lang/reader repl.rkt
repl.rkt:8:9: collection not found
  for module path: shen/lang/interposition-points
  collection: "shen/lang"
  in collection directories:
   /Users/shal/Library/Racket/8.12/collects
   /Applications/Racket v8.12/collects/
   ... [170 additional linked and package directories]
  location...:
   repl.rkt:8:9
  context...:
   /Applications/Racket v8.12/collects/compiler/embed.rkt:445:0: get-code
   /Applications/Racket v8.12/collects/racket/private/map.rkt:267:2: gen-for-each
   /Applications/Racket v8.12/collects/compiler/embed.rkt:1183:0: do-write-module-bundle
   /Applications/Racket v8.12/collects/compiler/embed.rkt:1663:15: write-module
   /Applications/Racket v8.12/collects/compiler/embed.rkt:1567:6
   /Applications/Racket v8.12/share/pkgs/compiler-lib/compiler/commands/exe.rkt:100:0
   body of "/Applications/Racket v8.12/share/pkgs/compiler-lib/compiler/commands/exe.rkt"
   /Applications/Racket v8.12/collects/raco/raco.rkt:41:0
   body of "/Applications/Racket v8.12/collects/raco/raco.rkt"
   body of "/Applications/Racket v8.12/collects/raco/main.rkt

Before realizing i had not copied scryer-prolog executable to dist/bin.
Would you like me to submit a pull-request
embedding a Makefile or something else
so that we could

check racket binary availability
check Scryer prolog binary availability
run raco setup
run raco exe --cs -o shen ++lib racket/lang/reader repl.rkt

by running a single target perhaps?

Yeah, I had that problem on my laptop too. I'm not sure how to resolve it apart from changing the "shen/lang" lines back to filename paths. @jagen31, could you please advise?

Ah, so, you have to install the package first with
raco pkg install ./scryer-shen from just outside the directory....
once you push up scryer-shen to the main package catalog, it will just be raco pkg install scryer-shen and it will pull it from there, instead of needing the files locally.

to remove it- raco pkg remove scryer-shen.


Add Op(aten_assert_async) | feat(torchlib)

This is an op invoked whenever assertion is used in models.
NOTE: Converter side needs extra handles on shape/type filling, as the op doesn't contain meta['val']

Actually I am not sure we want this to be an op or we want a pass to delete all of them.


logger + log level updates

Set log level on cluster according to local RH_LOG_LEVEL env var. If not set use the default

Merge activity

Aug 27, 5:50 PM EDT: @rohinb2 started a stack merge that includes this pull request via Graphite.


Can't change "Healthy After" in liveness check section for workloads

Rancher versions: 2.1.1 rc5
Steps to Reproduce:

Create a workload with both a readiness and liveness check in health check section
Edit workload and go to health check section

Results:  Can't change "healthy after" in the liveness section

Fixed in master
https://github.com/rancher/ui/commit/ddfaf0ed0aa69a6c4ed8afeacf1802c9306a6905#diff-460212b6bab1d5cc6fe738914284aa45


(Mono) ASF not able to remember my password

I've changed the password from one of my bots and I decided to delete both  .bin and .db files, so I could import the account again using the .maFile process. The problem is, the account setup works just fine, and right after the setup is completed, ASF is able to log-in on my account and farm my games. However, if I close ASF and start it again, no matter how many times I keep re-entering my password, it will "forget" my password the next time I run ASF. I don't know if this helps, but the password is 32 characters long, and it has characters like $, @, ', #. /, ] .
The log window:
2016-09-20 12:34:27.9772|INFO|ArchiSteamFarm.Logging|ASF|Init() ASF V<IP_ADDRESS>
2016-09-20 12:34:28.4109|INFO|ArchiSteamFarm.Logging|ASF|IsRuntimeSupported() Your Mono version is OK. Required: 4.4 | Found: 4.4.2
2016-09-20 12:34:28.6002|INFO|ArchiSteamFarm.Logging|ASF|CheckForUpdate() ASF will automatically check for new versions every 24 hours
2016-09-20 12:34:28.6002|INFO|ArchiSteamFarm.Logging|ASF|CheckForUpdate() Checking new version...
2016-09-20 12:34:29.2591|INFO|ArchiSteamFarm.Logging|ASF|CheckForUpdate() Local version: <IP_ADDRESS> | Remote version: <IP_ADDRESS>
2016-09-20 12:34:30.0896|INFO|ArchiSteamFarm.Logging|BOT3|Start() Starting...
2016-09-20 12:34:43.4499|INFO|ArchiSteamFarm.Logging|BOT3|OnConnected() Connected to Steam!
2016-09-20 12:34:43.4499|INFO|ArchiSteamFarm.Logging|BOT3|OnConnected() Logging in...
2016-09-20 12:34:43.7536|WARN|ArchiSteamFarm.Logging|BOT3|OnLoggedOn() Unable to login to Steam: InvalidPassword / InvalidPassword
2016-09-20 12:34:43.7575|INFO|ArchiSteamFarm.Logging|BOT3|OnDisconnected() Disconnected from Steam!
2016-09-20 12:34:43.7589|INFO|ArchiSteamFarm.Logging|BOT3|OnDisconnected() Removed expired login key
2016-09-20 12:34:43.7589|INFO|ArchiSteamFarm.Logging|BOT3|OnDisconnected() Reconnecting...
2016-09-20 12:35:39.4770|INFO|ArchiSteamFarm.Logging|BOT3|OnConnected() Connected to Steam!
2016-09-20 12:35:42.3276|INFO|ArchiSteamFarm.Logging|BOT3|OnConnected() Logging in...
2016-09-20 12:35:42.6254|INFO|ArchiSteamFarm.Logging|BOT3|OnLoggedOn() Successfully logged on!
2016-09-20 12:35:42.6258|INFO|ArchiSteamFarm.Logging|BOT3|Init() Logging in to ISteamUserAuth...
2016-09-20 12:35:42.7317|INFO|ArchiSteamFarm.Logging|BOT3|Init() Success!
2016-09-20 12:35:43.9939|INFO|ArchiSteamFarm.Logging|BOT3|IsAnythingToFarm() Checking badges...
2016-09-20 12:35:43.9939|INFO|ArchiSteamFarm.Logging|BOT3|IsAnythingToFarm() Checking first page...
2016-09-20 12:35:45.4067|INFO|ArchiSteamFarm.Logging|BOT3|StartFarming() We have a total of 3 games (7 cards) to farm on this account...
2016-09-20 12:35:45.4069|INFO|ArchiSteamFarm.Logging|BOT3|StartFarming() Chosen farming algorithm: Simple
2016-09-20 12:35:45.4139|INFO|ArchiSteamFarm.Logging|BOT3|FarmSolo() Now farming: 409720 (BioShock 2 Remastered)
2016-09-20 12:35:46.5196|INFO|ArchiSteamFarm.Logging|BOT3|ShouldFarm() Status for 409720 (BioShock 2 Remastered): 1 cards remaining
2016-09-20 12:35:46.5204|INFO|ArchiSteamFarm.Logging|BOT3|Farm() Still farming: 409720 (BioShock 2 Remastered)

I get the exact same output if I close ASF and run it again. I have to inform my password each time.
I added "Mono" to the title because on Windows it's working as expected, I'm having this issue only on my CentOS server running Mono:
Mono JIT compiler version 4.4.2 (Stable <IP_ADDRESS>/f72fe45 Fri Jul 29 09:49:37 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen

https://github.com/JustArchi/ArchiSteamFarm/wiki/FAQ

Thanks for the fast reply. But all the other 8 bots are working fine, isn't it odd?

Sometimes the issue also magically solves itself after some time, ask GabeN.

:(
I'll keep trying then. Thanks

If you ask me, just ignore that quirk - if you have all required credentials, which is login, password and ASF 2FA, then ASF is able to handle that issue itself and doesn't require assistance - this problem will solve itself sooner or later anyway. You can try to solve it earlier, but due to nature of Steam fuckup it doesn't have to succeed, in any case, it's not ASF bug.

I would tell you more - right now I have the same issue with my main account... on steam client. Already for a few days steam keeps "forgetting" me, despite "Remember me" box is checked.

As I wrote:

I've already seen such issues not only with ASF, but with regular steam client as well (a need to input login + password on each run, regardless of "remember me" option).

Sorry, ask GabeN 😭

Sorry, ask GabeN
Just wanted to show that ASF has nothing to do with this, Volvo can't even make their own client to work properly.


kernel: mmu: Fix static analysis issue

Instead of performing a set of relative address comparisons using pointers of type 'uint8_t *', we leverage the existing IN_RANGE() macro and perform the comparisons using 'uintptr_t'.
Fixes #65375

This is not equivalent code. The middle && should remain a ||.
Note the preceding comment: "if either end of region is within virtual
memory space ..."

This is not equivalent code. The middle && should remain a ||. Note the preceding comment: "if either end of region is within virtual memory space ..."

D'oh!  Thank goodness for reviews.


Wrong information about debug configuration settings

https://docs.jmix.io/jmix/studio/project.html#_rundebug_configuration_settings

You might be interested in editing the following settings:
Arguments – JVM options to be passed to the debug server. For example, specify -Xmx1500m to increase maximum allowed memory usage for the server.
Environment variables – environment variables that should be available to the debug server process.

This is wrong. Parameters are passed to Gradle process, not to the running app.
see https://forum.jmix.io/t/add-java-opts-in-idea-at-runtime/529

fixed in #361


Update retrieval_logic pseudocode, Add further explanation.

I hope this clearly explains what the heuristic does.

Great! Thanks 👍


is BLIP w/ ViT-L and CapFilt-L model for image captioning exist?

Hi,
At first I would like to say thank you for your great work which inspires me a lot.
I would like to know, is a BLIP w/ ViT-L + CapFilt-L model (use vit large as encoder and CapFilt for data augment) exist? I believe it should be stronger compared with BLIP w/ ViT-B + CapFilt-L  and BLIP w/ ViT-L.
Thanks

Thanks for your question. BLIP w/ ViT-L already uses CapFilt-L model.

Thanks!


Import bookmarks errors

I keep getting errors when importing a plain csv file after starting r-r on OS X -- nothing imports:
Bookmarks file (.txt added to conform with Github restrictions):
rig-bookmarks.csv.txt
[rig-remote v.2.1, OS X 10.11.6]
bash$ python ./rig-remote.py
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1537, in __call__
    return self.func(*args)
  File "/Applications/SDR/rig-remote-2.1/rig_remote/bookmarks.py", line 155, in import_bookmarks
    fileformat = self._detect_format(filename)
  File "/Applications/SDR/rig-remote-2.1/rig_remote/bookmarks.py", line 187, in _detect_format
    raise FormatError()
FormatError

rig-bookmarks.csv.txt

this seems the expexted behavior when the format of the bookmarks is not supported. I will check deeper and let you know here.

resolving as the file provided is not of the proper format/type.

I have this: https://github.com/Marzona/rig-remote/issues/84 for providing a clarification on how to write config files

No luck -- downloaded fresh rig-remote, opened it, tried to import bookmarks.csv file from menu -- still won't work, no bookmarks show on OS X 10.11.6 iMac 7,1.
rig-remote-bookmarks.txt

Hello stuzog,
you are using a wrong format. I have https://github.com/Marzona/rig-remote/issues/84 for properly documenting the format, README.md is outdated and misleading now, since the last release.
I updated your txt file (ready to be renamed to csv and imported), it is attached here.
I attach here also a screenshot of the result.

rig-remote-bookmarks.txt
regards

Thanks Simone. The file you sent me imported correctly. I'd never have
guessed the proper format as the sample file in the README at
https://github.com/Marzona/rig-remote is still showing the wrong one.
Always lots of detail work for a developer! Good work -- thanks! 🙂

;)

Hi Simone,
Scanning works, but it gives a lot of auto-bookmark results using Wide
FM around a strong FM radio signal. Is there a way of reducing these? It
would be great to automatically return only the strongest (centre
frequency) of a signal cluster.
Also, there doesn't seem to be a way of deleting the added
auto-bookmarks -- how does one do this? If this was possible, it also
would be useful to be able to sort bookmarks by table header.
I tried re-importing the original bookmarks file, but the newly-added
auto-bookmarks remain.
Stuart

Hello Stuart,
may I ask to not use this (closed) issue for general discussion around the tool?

if you have feature request create a new issue it will be classified and delivered according to the priorities.
if you have general questions on the tool ("how to remove.."), the mailing list is the way to go.

in general, one issue<-> one feature/bug/task to implement everything else ->mailing list
Regarding the scanning request I created this: https://github.com/Marzona/rig-remote/issues/89 feel free to add there all the details you think are important .
Regarding the deleting the bookmarks, https://github.com/Marzona/rig-remote/wiki/User-Manual will be updated as described here: https://github.com/Marzona/rig-remote/issues/90
regards

OK, will do, thanks.


[BUG] DefaultAzureCredential does not fall back

Library name and version
Azure.Identity 1.4.0 or later
Describe the bug
Looks like #8945 came back again for Azure.Identity 1.4.0 or later. The DefaultAzureCredential stopped falling back to other credentials after it failed with the ManagedIdentityCredential.
Here is the exception message
Unhandled exception. Azure.Identity.CredentialUnavailableException: DefaultAzureCredential failed to retrieve a token from the included credentials. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/defaultazurecredential/troubleshoot
- EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot
- ManagedIdentityCredential authentication unavailable. The requested identity has not been assigned to this resource.
Status: 400 (Bad Request)

Content:
{"error":"invalid_request","error_description":"Identity not found"}

Note that this happens on a VM from the DevTest lab. The fact that it's an Azure VM may have confused the library. When I downgraded Azure.Identity to 1.3.0 or earlier, everything worked like a charm.
Expected behavior
DefaultAzureCredential falls back to other credentials after failing with ManagedIdentityCredential
Actual behavior
DefaultAzureCredential doesn't fall back to other credentials after failing with ManagedIdentityCredential
Reproduction Steps
Use DefaultAzureCredential on an Azure VM from the DevTest lab.
Environment
Windows 11, VS 17.4.0 Preview, .NET 6 app

I tried the code below, and it still doesn't work, so it's probably more than the ManagedIdentityCredential issue.
new DefaultAzureCredential(new DefaultAzureCredentialOptions() { ExcludeManagedIdentityCredential = true })

Here is the error with the code above. Looks like it tried other credentials but still failed. Somehow, the older version of Azure.Identity works just fine with the exact same code and environment.
Unhandled exception. Azure.Identity.CredentialUnavailableException: DefaultAzureCredential failed to retrieve a token from the included credentials. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/defaultazurecredential/troubleshoot
- EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot
- Process "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\Asal\TokenService\Microsoft.Asal.TokenService.exe" has failed with unexpected error: TS003: Error, TS004: Unable to get access token.  'AADSTS65002: Consent between first party application '04f0c124-f2bc-4f59-8241-bf6df9866bbd' and first party resource '35ffadb3-7fc1-497e-b61b-381d28e744cc' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.
Trace ID: 1c413959-bd47-4802-894f-f0c4a2a71c00
Correlation ID: 1fb2cd92-6f28-490c-bb27-f6bb93439513
Timestamp: 2022-08-12 03:58:31Z'.
- Stored credentials not found. Need to authenticate user in VSCode Azure Account. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/vscodecredential/troubleshoot
- Azure CLI not installed
- Az.Account module >= 2.2.0 is not installed.
 ---> System.AggregateException: Multiple exceptions were encountered while attempting to authenticate. (EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot) (Process "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\Asal\TokenService\Microsoft.Asal.TokenService.exe" has failed with unexpected error: TS003: Error, TS004: Unable to get access token.  'AADSTS65002: Consent between first party application '04f0c124-f2bc-4f59-8241-bf6df9866bbd' and first party resource '35ffadb3-7fc1-497e-b61b-381d28e744cc' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.
Trace ID: 1c413959-bd47-4802-894f-f0c4a2a71c00
Correlation ID: 1fb2cd92-6f28-490c-bb27-f6bb93439513
Timestamp: 2022-08-12 03:58:31Z'.) (Stored credentials not found. Need to authenticate user in VSCode Azure Account. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/vscodecredential/troubleshoot) (Azure CLI not installed) (Az.Account module >= 2.2.0 is not installed.)
 ---> Azure.Identity.CredentialUnavailableException: EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot
   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage)
   at Azure.Identity.EnvironmentCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.EnvironmentCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
 ---> (Inner Exception #1) Azure.Identity.CredentialUnavailableException: Process "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\Asal\TokenService\Microsoft.Asal.TokenService.exe" has failed with unexpected error: TS003: Error, TS004: Unable to get access token.  'AADSTS65002: Consent between first party application '04f0c124-f2bc-4f59-8241-bf6df9866bbd' and first party resource '35ffadb3-7fc1-497e-b61b-381d28e744cc' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.
Trace ID: 1c413959-bd47-4802-894f-f0c4a2a71c00
Correlation ID: 1fb2cd92-6f28-490c-bb27-f6bb93439513
Timestamp: 2022-08-12 03:58:31Z'.
 ---> System.InvalidOperationException: TS003: Error, TS004: Unable to get access token.  'AADSTS65002: Consent between first party application '04f0c124-f2bc-4f59-8241-bf6df9866bbd' and first party resource '35ffadb3-7fc1-497e-b61b-381d28e744cc' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.
Trace ID: 1c413959-bd47-4802-894f-f0c4a2a71c00
Correlation ID: 1fb2cd92-6f28-490c-bb27-f6bb93439513
Timestamp: 2022-08-12 03:58:31Z'
   at Azure.Identity.VisualStudioCredential.RunProcessesAsync(List`1 processStartInfos, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Azure.Identity.VisualStudioCredential.RunProcessesAsync(List`1 processStartInfos, Boolean async, CancellationToken cancellationToken)
   at Azure.Identity.VisualStudioCredential.GetTokenImplAsync(TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage)
   at Azure.Identity.VisualStudioCredential.GetTokenImplAsync(TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
   at Azure.Identity.VisualStudioCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)<---

 ---> (Inner Exception #2) Azure.Identity.CredentialUnavailableException: Stored credentials not found. Need to authenticate user in VSCode Azure Account. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/vscodecredential/troubleshoot
 ---> System.InvalidOperationException: CredRead has failed but error is unknown.
   at Azure.Identity.WindowsNativeMethods.ThrowIfFailed(Boolean isSucceeded, String methodName)
   at Azure.Identity.WindowsNativeMethods.CredRead(String target, CRED_TYPE type)
   at Azure.Identity.WindowsVisualStudioCodeAdapter.GetCredentials(String serviceName, String accountName)
   at Azure.Identity.VisualStudioCodeCredential.GetStoredCredentials(String environmentName)
   --- End of inner exception stack trace ---
   at Azure.Identity.VisualStudioCodeCredential.GetStoredCredentials(String environmentName)
   at Azure.Identity.VisualStudioCodeCredential.GetTokenImplAsync(TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage)
   at Azure.Identity.VisualStudioCodeCredential.GetTokenImplAsync(TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
   at Azure.Identity.VisualStudioCodeCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)<---

 ---> (Inner Exception #3) Azure.Identity.CredentialUnavailableException: Azure CLI not installed
   at Azure.Identity.AzureCliCredential.RequestCliAccessTokenAsync(Boolean async, TokenRequestContext context, CancellationToken cancellationToken)
   at Azure.Identity.AzureCliCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage)
   at Azure.Identity.AzureCliCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.AzureCliCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)<---

 ---> (Inner Exception #4) Azure.Identity.CredentialUnavailableException: Az.Account module >= 2.2.0 is not installed.
   at Azure.Identity.AzurePowerShellCredential.CheckForErrors(String output)
   at Azure.Identity.AzurePowerShellCredential.RequestAzurePowerShellAccessTokenAsync(Boolean async, TokenRequestContext context, CancellationToken cancellationToken)
   at Azure.Identity.AzurePowerShellCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage)
   at Azure.Identity.AzurePowerShellCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.AzurePowerShellCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)<---

   --- End of inner exception stack trace ---
   at Azure.Identity.DefaultAzureCredential.GetTokenFromSourcesAsync(TokenCredential[] sources, TokenRequestContext requestContext, Boolean async, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.CredentialDiagnosticScope.FailWrapAndThrow(Exception ex, String additionalMessage)
   at Azure.Identity.DefaultAzureCredential.GetTokenImplAsync(Boolean async, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AccessTokenCache.GetHeaderValueFromCredentialAsync(TokenRequestContext context, Boolean async, CancellationToken cancellationToken)
   at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AccessTokenCache.GetHeaderValueAsync(HttpMessage message, TokenRequestContext context, Boolean async)
   at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AccessTokenCache.GetHeaderValueAsync(HttpMessage message, TokenRequestContext context, Boolean async)
   at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AuthenticateAndAuthorizeRequestAsync(HttpMessage message, TokenRequestContext context)
   at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.RedirectPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Microsoft.Extensions.Configuration.AzureAppConfiguration.UserAgentHeaderPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.HttpPipeline.SendRequestAsync(Request request, CancellationToken cancellationToken)
   at Azure.Data.AppConfiguration.ConfigurationClient.GetConfigurationSettingsPageAsync(SettingSelector selector, String pageLink, CancellationToken cancellationToken)
   at Azure.Core.PageResponseEnumerator.FuncAsyncPageable`1.AsPages(String continuationToken, Nullable`1 pageSizeHint)+MoveNext()
   at Azure.Core.PageResponseEnumerator.FuncAsyncPageable`1.AsPages(String continuationToken, Nullable`1 pageSizeHint)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
   at Azure.AsyncPageable`1.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()
   at Azure.AsyncPageable`1.GetAsyncEnumerator(CancellationToken cancellationToken)+MoveNext()
   at Azure.AsyncPageable`1.GetAsyncEnumerator(CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
   at Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationProvider.<>c__DisplayClass28_3.<<LoadAll>b__3>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationProvider.<>c__DisplayClass28_3.<<LoadAll>b__3>d.MoveNext()

Thanks, @zhenlan.  We'll start investigating.   Would it be possible for you to capture verbose SDK logs for a +/- 2-minute period around the error?   That will help us to see exactly what decisions the credential is making in your environment.

@zhenlan - could you also specify which credential type you were expecting to be selected in your scenario?

I was using Visual Studio, so I would expect VisualStudioCredential or SharedTokenCacheCredential. I don't know what is actually used when it was working with the older version of the package.

I had the same problem. But when I access a blob storage account with VisualStudioCredential, there's no errors. I can successfully uploaded files.
I access Cognitive Services(DocumentAnalysisClient) with the same VisualStudioCredential, the following error occurrs.

Unable to get access token. 'AADSTS65002: Consent between first party application '04f0c124-f2bc-4f59-8241-bf6df9866bbd' and first party resource '7d312290-28c8-473c-a0ed-8e53749b6d6d' must be configured via preauthorization

This error comes from Visual Studio's token helper.

&"C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\Asal\TokenService\Microsoft.Asal.TokenService.exe" --resource https://communication.azure.com/ --serviceHubConfig "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\servicehub.config.json" --verbose --tenant myteantid

TS003: Error, TS004: Unable to get access token. 'AADSTS65002: Consent between first party application '04f0c124-f2bc-4f59-8241-bf6df9866bbd' and first party resource '632ec9eb-fad7-4cbd-993a-e72973ba2acc' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API.

I think Visual Studio's token helper (AAD app with app id '04f0c124-f2bc-4f59-8241-bf6df9866bbd') is not authorized by some Azure services(communication.azure.com etc), but other services such as Storage Account or Key Valut are allowed.
Azure CLI app seems to be authorized by all Azure services.

I think this problem needs to be fixed in Visual Studio and it's already on pending release.
https://developercommunity.visualstudio.com/t/VS-1740-prev-2---AAD-DefaultCredentia/10155569

Since it is a server side fix once it is deployed the functionality will be restored with no additional client side changes.

It doesn't explain why the older version of Azure.Identity (<= v1.4.0) works just fine in the same Visual Studio though.

I think other credentials than VisualStudioCredential is used with DefaultAzureCredential <= v1.4.0. in your environment.

I believe the linked Visual Studio credential provider fix has gone live by now - can this error still be reproduced?

Updated Visual Studio to Version 17.5.0 Preview 1.0 [33024.329.main]. The DefaultAzureCredential worked again with Azure.Identity v1.7.0.


Add-on does not start

I tried to install your add-on and i got the following error in the logs:
KeyError: 'MQTT_USER' Traceback (most recent call last):   File "<frozen runpy>", line 198, in _run_module_as_main   File "<frozen runpy>", line 88, in _run_code   File "/app/PoolAccessMqttBridge.py", line 236, in <module>     main(c)   File "/app/PoolAccessMqttBridge.py", line 208, in main     brocker_client = MqttClient(config["MQTT_HOST"], config["MQTT_PORT"], config["MQTT_USER"], config["MQTT_PASSWORD"])                                                                           ~~~~~~^^^^^^^^^^^^^
I configured the add-on as described in your installation manual and used the default values for topic prefix ("homeassistant"), mqtt base topic ("homeassistant"), host ("localhost") and port (1833). User and password are empty. What am I missing? Many thanks in advance.

Hi @sebkr, it looks like add-on is crashing when MQTT User is not set, I'll fix it in the next coming release.

Let's update to 1.3.2 release and let me know if still failing.


check if  slack-attachment custom data is successful

I use slack-attachment to send custom messages to channels. How do I get the return code for this to check if the channel did successfully receive user's message? Essentially I need to check if the slack returned {ok: true} after this function is executed. Any idea how can I do this? Thanks
someFunction = (robot, user, channel, text) ->
robot.emit 'slack-attachment', {
username: user,
channel: channel,
text: text
}

There isn't a good way to do this. When you emit the 'slack-attachment', customMessage is the handler for it: https://github.com/slackhq/hubot-slack/blob/master/src/slack.coffee#L254-L281
I think it could be considered an oversight with hubot's original design, but a lot of the functions for sending data back to a user are 'fire and forget'. That is, they happen asynchronously, but the API doesn't support an API for checking the result. That'd be a good improvement in general I think, but it could implementation might be tricky to keep backwards compatibility.
I'm sure I know the answer, but what were you trying to check the return code for? Were you seeing messages not actually get delivered?

We are going to remove this event from the next release, and instead have you just send messages with attachments through the usual mechanism, which should obviate this problem. Closing for now.

@DEGoodmanWilson do you know how long it will be until the next release?
We want to use hubot to deliver alerts on site errors but right now, there is no way to know for sure if the delivery succeeded or not. Having a return code from the message sending function would help us degrade gracefully to other alert paths (or retry the hubot alert), so that we don't miss potential critical alerts.

I don't have a schedule yet, but have a look at #309 for the bleeding-edge branch.


[AMORO-2667] Implement basic authentication for REST APIs

Why are the changes needed?

Close #2667.
Brief change log

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x]  Run test locally before making a pull request

Documentation

Does this pull request introduce a new feature? yes
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@zhoujinsong  WDYT?

@baiyangtx Thanks for your input.

The HTTP Basic Authentication protocol uses plaintext to transmit passwords, which is not a very secure protocol.

Mostly, we should use Basic Authentication with HTTPS instead of HTTP, which is a common use case.  For example, Starrocks and Kylin support Basic Authentication.
WRT your concern, please see https://security.stackexchange.com/questions/988/is-basic-auth-secure-if-done-over-https

For REST APIs, authentication only needs to verify that a caller is a legal caller. If you need to know which user triggered the call to the REST API, there are other mechanisms that can be used to solve this problem.

Yes, Basic Auth only deals with Authn and is compatible with any other Authz (of course). But currently Amoro has no Authz functionalities (and I don't see the need for it), so the Authz issue could be discussed later if needed.

@baiyangtx updated as suggested. PTAL.

@baiyangtx Fixed. PTAL.

Thank you for introducing this feature.
I think this feature should be documented. Could you add some introduction in docs?

Sure.

@baiyangtx @majin1102 Docs added as suggested. PTAL.

@majin1102 PTAL

@baiyangtx @majin1102 May you kindly get this PR merged? Thanks!

@zhoujinsong Thank you!


:seedling: use a single source of truth for fuzzer names

What kind of change does this PR introduce?
structured result cleanup

[X] PR title follows the guidelines defined in our pull request documentation

What is the current behavior?
the constants are defined in multiple places across the code base (raw data and probes)
What is the new behavior (if this is a feature change)?**
The constants are defined in one place, and used elsewhere.

[ ] Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes
Fixes #3407

Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the release-note
(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

/scdiff generate Fuzzing


merge from arlac77/template-github,arlac77/template-nginx,arlac77/template-node-app,arlac77/template-pacman,arlac77/template-rollup,arlac77/template-systemd

package.json

chore(deps): add ^2.26.0 remove ^2.25.0 (devDependencies.rollup)

Codecov Report

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

@@            Coverage Diff            @@
##             master     #952   +/-   ##
=========================================
  Coverage          ?   86.30%
=========================================
  Files             ?        3
  Lines             ?      314
  Branches          ?       28
=========================================
  Hits              ?      271
  Misses            ?       43
  Partials          ?        0

Impacted Files
Coverage Δ

src/auth.mjs
97.36% <0.00%> (ø)

src/database.mjs
100.00% <0.00%> (ø)

src/http.mjs
81.53% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8880569...3d41bcd. Read the comment docs.


[Feature] Build a Blog page

we can build a blog page where people can share there experience that how was there interview how they crack it how they prepare and all the other details

@Sawan-Kushwah start working on it

@Sawan-Kushwah do it carefully  make model of blog ans implement full feature and put section in homepage

pls assign this task to me

@geetanjalidubey9 I am working on it try to find soem unsigned issue


New true model

Summary
Adds some more model error to the cartpole.
Model error is tuned such that the MPC controller can still track it but has pretty bad tracking performance.
Note that increasing either the viscous or coloumb friction coefficients will cause the MPC to fail (which maybe we do want).
Main contributions

Added some more nonlinear behavior to cartpole model in examples/models/cartpole_model.jl
Added the Problems.NominalCartpole() and Problems.SimulatedCartpole() convenience constructors
Added example of using MPC to track the "true" model with an MPC controller generated using the nominal one in examples/cartpole_mpc.jl

Takeaways

Use the new methods Problems.NominalCartpole() and Problems.SimulatedCartpole() when generating the cartpole models so that all of our examples are consistent

LGTM


Make pip install and upgrade tasks skippable

Description
Make pip install and upgrade pip tasks skippable with tags: package
Fixes # (issue)
ANSIENG-1953
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] 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
[ ] Any dependent changes have been merged and published in downstream modules
[ ] Any variable changes have been validated to be backwards compatible

lgtm, thanks

thanks @utkarsh5474!

What if I want to skip confluent packages but not the others, or vice versa


Randomly teleported into void after entering Nether

All players suddenly get randomly teleported into empty space and the server console gets spammed with Portal requests.
Recreate:
Enter Nether
Wait 10 seconds.
Player get teleported into empty space or walls (and dies) and server console spams:
[Portal] request teleport <player> in minecraft:the_nether to <x> <y> <z>
this started to happen after restarting the server several times and having relit / rebuild the nether portal in almost the same area. It worked fine before (or we didn't notice) and there are no mod incompatibilities.

1.14 or 1.15? Did the log say that player cannot teleport through xxx? Show the full log.

Are you using the latest version of this.mod?

yes I use the latest fabric version.
2020-02-23-1.log here's one log

The fabric api seems old, try to install latest fabric api.
If it still does not work, remove all other mods and try again.

It's the newest fabric api and I won't reinstall, because it worked for several hours and I did test it one mod at a time.

It's weird. Please show the client log.

What do you mean "test it one mod at a time"? Does this issue manifest when only this mod and fabric api installed? There may be potential conflict. (backup the world before uninstalling mods)

Well as it's random you don't need to test it more. I am going to rewrite the position sync system. The current system is complex and error prone.

I test each mod.
Delete world.
Install mod.
Reboot server and join.
Everything ok?
Install next mod.
Delete world.
reboot server and join.
repeat.

Maybe the player stuck in wall somehow and server keep sending teleport request but client did not accept the packet. The client log should be spammed by "denied position packet".
Does this issue happen if you go somewhere far and build another portal?

I updated 0.13 and changed some position sync details. Check whether this issue still exists.
(I didn't rewrite the positon sync system because rewriting may cause more problems)

Here's the client log corresponding to aboves server log.
2020-02-23-3.log

It says "Sending packet net.minecraft.class_2817@3c3e46fa to server failed, not connected!"
But you can log in the server, weird.
Maybe it's caused by other mods. Try to remove half of mods and try again until you find which mod it's incompatible with.

Maybe it has combatibility issues with https://github.com/zlainsama/PeacefulSurface
because I installed it a  bit later and before we had the issue with the portal.
https://i.imgur.com/xS8G7PU.png our current mod list.

Should be fixed in the new versions


Add Tobira Opencast module (with dummy API)

This is the first step in getting the synchronization between Opencast and Tobira going. This issue is just about creating a new module and preparing it so that we can add APIs later.
We have an Opencast fork specifically for this: https://github.com/elan-ev/opencast-tobira
We probably need to think how exactly we use that fork (e.g. do we use develop as main branch; what branch of Opencast do we base this work on? ...).

First version available in https://github.com/elan-ev/opencast-tobira

Oh, this is already done for a while.


Allow files to be received in the background

It would be nice if files could be received without actively clicking on "receive files". Maybe add it as a setting and/or add a whitelist for MAC addresses of "known" devices to prevent of this features misuse. When a file is received airwave could send a Windows toast message.

That's an interesting idea. I think it might also be a big security flaw. For the time, I'm trying to work on a prompt first so that you have to accept the files first. Then I'll try to do this.
A whitelist might not work at all. It's not possible to get a MAC address from a connection. I have an idea of some other way you can implement this tho.
Do you think the amount of RAM consumption is acceptable for an always-on receiver as there would be a server running at all times.

This is now done. You can send files so long as you know the IP address. I have not added an option to disable always-on since it only uses 5 additional megabytes of ram.
You get a toast notification to accept the files from which device. You can also reject it and you will get a notification on the phone to say it was declined.
You have to download new shortcuts, which I have not added yet.
A whitelist is also not made since you can accept or reject every transfer.
https://github.com/thura10/airwave/commit/2fa9604f48851dfd8446d8133d3d98a89238a9be


API for PNG creation of pages

Here's a quick stab at what it would look like to have an API for making PNGs of pages, addressing #158
Output looks like:

That's very neat, we want this!
Are you excluding interactive elements because there's an issue or to avoid cluttering up visuals?

I'm excluding them just to make more space for the plot, it works if you leave them in.

This is amazing! Did you need to install selenium, Ben?

Ah right - let's keep it as simple as possible for now so, as there's a big refactor in the pipeline, and the layout of these pages will change. We can tweak which elements are visible for non interactive when that settles.

This is amazing! Did you need to install selenium, Ben?

Yes, but it's just a quick pip install.

Ah right - let's keep it as simple as possible for now so, as there's a big refactor in the pipeline, and the layout of these pages will change. We can tweak which elements are visible for non interactive when that settles.

Yes, makes sense, I was exploring what was possible, but this PR should just be the raster infrastructure with no page changes.
I think this could also be useful for PRs that change the pages - would get a live preview of the new content.

Ready for review, this is just the core API, follow up at #161.


Fixed the broken plugin logo and the table docs on the Steampipe hub

The PR fixes the following issues:

Broken plugin logo on the Steampipe hub
Invalid table doc file references

Done!


Open recent menu shows full path making it impossible to identify files

SQL Operations Studio Version: sqlops 0.24.1 (af2414efcb485ab5e435d1db693d3f7569c48453, 2017-12-19T02:19:09.998Z)
OS Version: Windows_NT x64 10.0.16299

Steps to Reproduce:

Create a couple of SQL files in a nested path over 100 chars long
Open each file so they appear in the Open Recent menu
Now try to figure out which entry goes with which file since only the first set of chars is shown

At a minimum the filename (or a subset thereof) should be shown so you have a chance at determining which file to open. Ideally a tooltip should show the full path in all cases. Right now there appears to be no tooltip.

Closing as a duplicate of https://github.com/microsoft/azuredatastudio/issues/330.  Thanks reporting!


Support for managing users, roles

I am building some tooling to not only added keys and directories but also users, roles and grants. This doesn't seem possible with this crate. If I'm wrong, a pointer to how these types of entries can be written as plain nodes would be helpful. Otherwise, an additional module or set of modules to support working these types of data in a cluster would be fantastic.

https://coreos.com/etcd/docs/latest/v2/auth_api.html
Seems like since for my use I have to use Client::custom for now I can execute a few requests with the hyper Client instance. Regardless, it would be nice to have the auth API included, especially since the members API is already included.

You're not missing anything—the auth API just hasn't been implemented yet. It's mentioned in the crate docs, but not in the README. Sorry that wasn't more clear!

Thanks for clarifying. I have something workable, for now, as I mentioned, and will wait to see this implement in due course. Thanks again for this fantastic crate--I am just now catching up with the hyper 0.11 changes. Thankfully I had done some work with the tokio based version in another project so everything here feels pretty comfortable and idiomatic to tokio and futures.

I finished implementing the auth API a week ago, but still need to flesh out the docs and examples before I publish another version to crates.io. If you want to use the Git master now, you'll be fine. There won't be any more changes to the public API before the release.

Excellent, thank you! I will update my dep to point to master, tomorrow, and start re-working my hyper based REST calls to use your API instead.

Works well for me--I await the new version to hit crates.io and the updated docs.
Thanks again!


[Feature Request]: An option to exclude reference.chunks and reference.prompts from the response in the completions request.

Is there an existing issue for the same feature request?

[X] I have checked the existing issues.

Is your feature request related to a problem?
No response
Describe the feature you'd like
API: /api/v1/chats/{chat_id}/completions
I don't care about which chunks and prompts are used when I get the answers. But now I can't ignore this data. When my chunk size is relatively large (for example, 512, 1024) or the top N is large, it will cause these chunks to occupy a significant part of my bandwidth, thus making the answers slower.
I hope there is a request option that allows me to prohibit the return of chunks and prompts.
Describe implementation you've considered
No response
Documentation, adoption, use case
No response
Additional information
No response

You can set show_quote to False in chat assistant.


Implements AlgoSeek Options converter

This is the first version. In next versions, we will look for:

Optimization;
Make use of an extended version of LeanDataWriter.

looks like you deleted the market hours database :)
No worries, will pull down locally and fix. Thanks for the contribution @AlexCatarino!!

I am such a noobie! :8ball:


fix error in MonacoAdminMixin

The media property of the mixin includes widget-definitions/monaco-editor.js. It should be djmonaco/monaco-editor.js.

merged directly into develop


getting package without the network > getting 500

Hi there.
My task: npm i + npm run build on any Windows machine without the Internet and only with my cached repo.
My current trouble: 500 error from Verdaccio + not installed node_modules packages

My actions:

I put verdaccio in my VM without the network (even LAN).

windows server 2016
user as Administrator

I copy from another PC verdaccio/storage/..
I set this config:

storage: ./storage
plugins: ./plugins

web:
  title: NPM local repository
  sort_packages: asc
  darkMode: true

auth:
  htpasswd:
    file: ./htpasswd

uplinks:
 npmjs:
   url: https://registry.npmjs.org/
   # timeout: 100ms
   cache: true
   # max_fails: 1
 baduplink:
   url: http://<IP_ADDRESS>:4873/
   cache: true

packages:
  'core':
    access: $all
    publish: $authenticated
    unpublish: $authenticated

  'vue-property-decorator':
    access: $all
    publish: $authenticated
    unpublish: $authenticated

  '@*/*':
    access: $all
    publish: $authenticated
    unpublish: $authenticated
    #proxy: npmjs
    proxy: baduplink
    allow_offline: true

  '**':
    access: $all
    publish: $authenticated
    unpublish: $authenticated
    #proxy: npmjs
    proxy: baduplink
    allow_offline: true

server:
  keepAliveTimeout: 60

middlewares:
  audit:
    enabled: true

logs:
  - { type: stdout, format: pretty, level: http }

I run verdaccio -c c:\dev\verdaccio\config.yaml
I run npm set registry HTTP://localhost:4873
I run npm i In another cmd on this VM when exist some package.json
ok, I tried another command npm pack --verbose ansi-regex, but... same trouble
Almost all packages was install, except some packages, which return strange exception in verdaccio's terminal.

(!) I looked at the storage and funded my asked packages directories with .tgz inside.
C:\dev\proj>npm pack --verbose ansi-regex
npm info it worked if it ends with ok
npm verb cli [ 'c:\\dev\\node\\node.exe',
npm verb cli   'c:\\dev\\node\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   'pack',
npm verb cli   '--verbose',
npm verb cli   'ansi-regex' ]
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm verb npm-session e727d8195dbd4528
npm http fetch GET 200 http://localhost:4873/ansi-regex 188ms
npm http fetch GET 304 http://localhost:4873/ansi-regex 63ms (from cache)
npm http fetch GET 500 http://localhost:4873/ansi-regex/-/ansi-regex-5.0.0.tgz 112141ms attempt #3
npm verb stack Error: 500 Internal Server Error - GET http://localhost:4873/ansi-regex/-/ansi-regex-5.0.0.tgz
npm verb stack     at res.buffer.catch.then.body (c:\dev\node\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:104:15)
npm verb stack     at process._tickCallback (internal/process/next_tick.js:68:7)
npm verb statusCode 500
npm verb pkgid ansi-regex@latest
npm verb cwd C:\dev\ncuyao-client
npm verb Windows_NT 10.0.14393
npm verb argv "c:\\dev\\node\\node.exe" "c:\\dev\\node\\node_modules\\npm\\bin\\npm-cli.js" "pack" "--verbose" "ansi-regex"
npm verb node v10.15.3
npm verb npm  v6.14.4
npm ERR! code E500
npm ERR! 500 Internal Server Error - GET http://localhost:4873/ansi-regex/-/ansi-regex-5.0.0.tgz
npm verb exit [ 1, true ]
npm timing npm Completed in 113499ms

npm ERR!      C:\dev\npm-cache\_logs\2020-04-28T21_47_08_416Z-debug.log

btw. if I give to VM the Internet, then all be OK.

Why did you configure an uplink if you plan to go "without network"?

@jachstet-sea that's a previous try: Verdaccio in VM + Verdaccio in local network machine (as a proxy) with the Internet network

allow_offline does not work with the package access, it is a property in the same level of packages.
publish:
  allow_offline: false

https://verdaccio.org/docs/en/configuration#offline-publish
@cybermerlin is this still an issue?

@juanpicado,
for about allow_offline information thank you.
I've still in this situation.
I know what need to fix and will try to do it. (about a month).
Or, if you have more free time, you will just break any connection to the public servers or put as the public server any another local Verdicchio's server which has to connect to npmjs.org (for example try npm install node-gyp...)
what I see, I mean what the problem I see:

npm ERR! Response timeout while trying to fetch http://<IP_ADDRESS>:4873/istanbul-lib-instrument (over 30000ms)
npm ERR! Response timeout while trying to fetch http://<IP_ADDRESS>:4873/@types%2Fnode (over 30000ms)
in the log on "baduplink" verdaccio's server```
http --> 304, req: 'GET https://registry.npmjs.org/webpack' (streaming)
http --> 304, req: 'GET https://registry.npmjs.org/webpack', bytes: 0/0

That happened, when I use uplink "baduplilnk" and have `npm set registry ...localhost-ip...`.
BTW the IP ...201.12 - is localhost for the Verdaccio.
U can try to do this with no "uplink" and u will get this situation on another side.


⚠ BCR Bot has degraded performance

In fb40d31, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 200
Response time: 842 ms

Resolved: BCR Bot performance has improved in bfc83ef.


Can't get the agent truly running

Mike,
We are a custom software development firm. We just started using Datadog and are considering integrating it into all of our client projects. But, we’re having some problems getting Datadog up and running on the project we decided to try it out on, which is a Node.js app hosted on Heroku.
We used this Heroku buildpack, which shows up as successfully running when we look at our application logs on Heroku.com. The buildpack installation was successful, and, we can see two processes now running on the Heroku web interface: one for the Agent and one for the app. When we open up logs in the Heroku Dyno terminal, we also see that the agent is running. We even got a screen shot like this in our Datadog account:

We also were able (only through an external website link) to finally get to the “Metrics Monitoring” page on Datadog, which showed us connected to our app on Heroku:

However, once we logged out of our Datadog account and logged back in, we literally cannot get to any other page on the entire Datadog site except this page (and the privacy / TOS docs linked at the bottom of it):

We spent almost two hours inside the Heroku Dyno VM, where we were able to see files for the agent, and confirm that it’s running. However, none of the suggested “/agent status” links available on the above Datadog webpage actually worked for us in this environment.
It seems from the Heroku side that the Agent is running… so what’s the issue? What can we do to get the Agent truly connected to Datadog?
Thanks,
Amanda Simon

Hi @mandysimon88 !
I think this is a question best posed to Datadog Support. Heroku is not a general use case for Datadog, and I think the basic use case to get past the wizard can be done by installing the Agent on your development machine to get past the wizard and activate the product.


chore(master): release 1.9.9

:robot: I have created a release beep boop
1.9.9 (2023-08-28)
Bug Fixes

首页暗黑模式切换问题 (bc8091a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/KYX1234/Element-Admin/releases/tag/v1.9.9 :sunflower: