https://prometheus.io/docs/concepts/metric_types/ returns 404

Not sure what's changed in the repo, as the markdown source still seems to be in docs/concepts, and the pages either side of it seem to work.

@danhawkes Thanks for the report. We seem to have issues with the CDNs in front of the page. Can you check if it's still an issue for you, and if so, whether https://prometheus-docs.netlify.com/docs/concepts/metric_types/  results in a 404 as well?

We're suffering from an outage of our docs hoster http://netlifystatus.com/.

Both urls seem to work now, thanks.


MIME type "audio/mpeg3"

Hi @jalik,
With UFS v0.6.9 I upload audio files with mp3 extention and MIME type audio/mpeg (as the browser detected it). Although I explicitly set it in the UploadFS.Uploader:
let fileObj = {
    name: newFile.name,
    size: newFile.size,
    type: newFile.type,
    ...
  };

  const ONE_MB = 1024 * 1000;
  let uploader = new UploadFS.Uploader({
    file: fileObj,
    ...

when I check the DB I find that the MIME type for my file is set to audio/mpeg3. UploadFS.getMimeTypes() also contains mp3: audio/mpeg3 setting.
The problem is that Firefox 48 and Chromium 52 (and earlier versions too) do not play files with the extension audio/mpeg3 (as well as audio/x-mpeg-3) in the HTML5 audio element:
<audio controls>
    <source src="file.mp3" type="audio/mpeg3">
    <img src="img/dummy.png" alt="Can not play the audio file">
</audio>

Googling the web, I found statements that although audio/mpeg3 is mentioned in some MIME type lists (for example, this), nevertheless

audio/mpeg3 does not appear to be a valid registered mime type. Seems like the mime type returned for mp3 files should instead be audio/mpeg

--- also see here, here, here, etc.
Another quite popular and supporrted by FF and Chrome extension is audio/mp3.
IMHO, it would be more flexible and universal to set mp3: audio/mpeg in MIME types. What do you think about all that?
Have a nice day

I agree with you, MIME type detection is a new feature and needs some time to be better.
It is fixed in the v0.6.9_1.
Thanks for your help.

Thank you for your prompt reply!
By the way, ogg is an increasingly popular audio format, not only application/ogg: audio/ogg and audio/oga. To resolve such contradictions and take into account the MIME types variety, it could be better to provide precedence of the type that is set by a programmer in the UploadFS.Uploader.
BTW, in the doc you write

So when uploading a file, if the file.type is not set, UploadFS will check in its MIME list and assign the corresponding MIME, you can also add your own MIME types.

but in my case this did not work and the MIME type from the new MIME module (not from my code) was set. Maybe I should set the type in another place, not in the UploadFS.Uploader?

@seabrus yes I fixed this in the last version, I forgot to add a condition to check if UploadFS should auto-detect MIME type when not defined, or ignore if defined, it's working as intended.
Also thanks to mention OGG, I totally forgot to add it.


ValueError: Not the same graph

I successfully converted observation spec from BoundedArraySpec to BoundedTensorSpec! However, I get a ValueError when I try to run train_eval_rnd.py:
ValueError: Tensor("RNDNetwork/EncodingNetwork/EncodingNetwork/dense/kernel/Read/ReadVariableOp:0",
shape=(4, 100), dtype=float32) must be from the same graph as
Tensor("RNDNetwork/EncodingNetwork/flatten/Reshape:0", shape=(1, 4), dtype=float32).

(4 is the state dimension of CartPole, and 100 is the size of the fully connected layer.)
@oars @mandroid6 Do you have any suggestions on where I should pay attention to? I have been trying a few things but none of them fixed the issue. I am having trouble understanding why the tensors from the same network would be in different graphs.
Here is the full output: output.txt

@seungjaeryanlee usually the graph on which the model has been created needs to be the same as the graph used for prediction/eval.


[Live Component] How to change form default value on user action ?

Hi,
I have a simple form in a Live Component with a null default value. I would like to change its default value on a user action (click on button). I've seen in documentation that I can edit $formValues attribute but it's a bit annoying to do that when the default value is an object : I should map each fields manually.
Apart from doing that, and after a digging a bit inside ComponentWithFormTrait, I've found that I can reuse extractFormValues() method. Here is the solution I found and I would like to be sure that this is OK ?
class ContactFormComponent extends AbstractController
{
    use DefaultActionTrait;
    use ComponentWithFormTrait;

    #[LiveProp(fieldName: 'data')]
    public ?Contact $contact = null;

    protected function instantiateForm(): FormInterface
    {
        return $this->createForm(ContactType::class, $this->contact);
    }

    #[LiveAction]
    public function changeContact(EntityManagerInterface $entityManager)
    {
        $this->contact = $entityManager->find(Contact::class, 10);
        $this->formValues = $this->extractFormValues($this->getFormInstance()->createView());
    }

    #[LiveAction]
    public function save(EntityManagerInterface $entityManager)
    {
        //...
    }

I like the option 2 and I agree with you about option 1. Plus, the option 2 permits to implement the HTML reset button behaviour which currently does not work due to the fact that form is rerendered each time any field is modified.

Awesome - I would welcome a PR for this! It shouldn't be too difficult: probably $this->reset() form would reinitialize the form object - $this->formInstance = $this->instantiateForm();, set some new property like $avoidSubmit so that we do not try to submit it in submitFormOnRender() and probably $this->formValues = $this->extractFormValues($this->getForm()); should be called too.


[dev-tool][customization] fix duplicate file header

There are two trailing whitespaces in the header template. However after we customize, we run format so the whitespaces are removed.  That would fail the check of whether the header already exists.  This PR removes the trailing whitespaces thus after formatting the header still matches the template.
Issue #26741

/check-enforcer override


Consider using cheerio to remove SVG fill attributes

SVG store shows how to use cheerio to remove fill attributes https://github.com/w0rm/gulp-svgstore
When compiling an SVG as a sprite it is probably a good idea, as most software that exports as SVG will leave the fill attribute making the sprite unusable if you want to change the colour in CSS.
.pipe(cheerio({
  run: function ($) {
    $('[fill]').removeAttr('fill');
  },
  parserOptions: { xmlMode: true }
}))

Thinking about this some more, I'm not sure it needs to be included by default but could perhaps be an option. I realised there are quite a few SVG icons sets have multiple, specific colours.

@craigmdennis Yeah, the original contributor for this feature included cheerio as well, but I found myself needing to specify fill="currentColor" or a specific color pretty frequently, so I adjust my SVGs manually. The first trick lets you style 2-color svgs - one color with 'filland the other withcolor`.
Here's where this task was originally born: https://github.com/vigetlabs/gulp-starter/pull/100


argsort and AVX2

Hi,
Wanted to ask if there are any plans for argsort implementation with AVX2?

HI @MohamadAnabtawe-Opteamizer Thanks for you interest. It is coming up soon, #102 is the first step towards having generic code to help implement AVX2 version.

closing this, #119 has been merged.


docs(README): Explain environment for the SSH private key secret

I struggled to set this up at https://github.com/drupal-graphql/graphql/blob/8.x-4.x/.github/workflows/drupalorg-mirror.yml , took me an hour to find out that I forgot to specify the environment reference.

Thanks!


Add concurrency to buildClients()

Signed-off-by: Justin Kolberg<EMAIL_ADDRESS>Description
Adds concurrency to the buildClients() method.
Related Issue
N/A
Motivation and Context
The buildClients() method takes a significant amount of time to complete with a large number of clients & events. For example, with 18000 clients & events it was taking 2m1.553801286s to complete. With these changes it now takes 21.951286761s.
How Has This Been Tested?
Added some log lines to benchmark performance. Started Uchiwa & verified data was still getting populated.
Screenshots (if appropriate):
Types of changes

[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 change)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

Merging #784 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #784      +/-   ##
==========================================
- Coverage   21.59%   21.54%   -0.06%
==========================================
  Files          28       28
  Lines        2454     2460       +6
==========================================
  Hits          530      530
- Misses       1859     1865       +6
  Partials       65       65

Impacted Files
Coverage Δ

uchiwa/daemon/clients.go
52.3% <0%> (-5.32%)
:arrow_down:

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 815ad56...ee52a00. Read the comment docs.


Race condition with mspdbsrv sometimes causes Windows builds to fail.

the pdb symbols are not written by the linker, are written by the pdb server and ninja being very parallel can cause the following error as seen in chromium's waterfall
FAILED: ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\cl.exe" /nologo /showIncludes /FC @obj\build\libphonenumber_without_metadata.precompile.obj.rsp /c ....\build\precompile.cc /Foobj\build\libphonenumber_without_metadata.precompile.obj /Fdobj\third_party\libphonenumber\libphonenumber_without_metadata.pdb
c1xx : fatal error C1033: cannot open program database 'c:\b\build\slave\cr-win-rel-x64\build\src\out\release_x64\obj\third_party\libphonenumber\libphonenumber_without_metadata.pdb'
ninja: build stopped: subcommand failed.
The solution is to run ninja again. By that time the mspdb would have finished and the file can now be accessed.
Some background links:
http://connect.microsoft.com/VisualStudio/feedback/details/132753/mspdbsrv-holds-on-to-file-handles-resulting-in-fatal-error-c1033-cannot-open-program-database
http://social.msdn.microsoft.com/Forums/vstudio/en-US/b1d1bceb-06b6-47ef-a0ea-23ea752e0c4f/mspdbsrv-reference-page
http://blogs.msdn.com/b/ravi_kumar/archive/2009/06/17/my-2-cents-on-mspdbsrv-exe.aspx

Are there any news if this got fixed in recent visual studio versions?

We worked around this with this https://codereview.chromium.org/88303004 and haven't seen the issue since. Maybe you can do something similar?

@nico: do you know if CMake implemented a similar workaround ?

I don't have any .c files in my codebase. So either I had a different problem or it is not only caused by having .c and .cc files at the same time.

@dmerejkowsky I do not know.
@Knitschi Then this bug here isn't your bug :-) You could try using /Z7 and /debug:fastlink if you're using a recent MSVC. Then you don't use mspdbsrv at all and link times might still be bearable.

@nico Ok thank you. I think for now I will just use MsBuild when using MSVC to sidestep possible problems.


add and remove selected date

Hi, thank you for your great library. I just a few questions.
How to add a selected date(s) dynamically, not with touch, and how to remove it? (not the little dots)

If you use the same king of implementation of selection than in SelectionViewController (in the example project), you have to do
[_datesSelected addObject:yourDate];

// Or

[_datesSelected removeObject:yourDate];

// For reload visible (left, center and right) page
[_calendarManager reload];

This works because of the implementation of - (void)calendar:(JTCalendarManager *)calendar prepareDayView:(JTCalendarDayView *)dayView
// Selected date
else if([self isInDatesSelected:dayView.date]){
    dayView.circleView.hidden = NO;
    dayView.circleView.backgroundColor = [UIColor redColor];
    dayView.dotView.backgroundColor = [UIColor whiteColor];
    dayView.textLabel.textColor = [UIColor whiteColor];
}

The selection system is now extern to the library, because a lot of people wanna do different things and I cannot provide a simple system extensible enough. So I just provide an example of implementation.

Thank you, this is very helpful information


[iOS] errSecAuthFailed on consecutive reads

Issue
When doing consecutive reads on iOS with biometric authentication (FaceID), an exception is thrown:
Unhandled Exception: PlatformException(SecurityError, Error while Error retrieving item. -25293: -25293: The user name or passphrase you entered is not correct., null, null)
Tested with version 4.1.2 and current main branch.
Works without issues on Android.
Steps to reproduce
When using the example, change the following line https://github.com/authpass/biometric_storage/blob/main/example/lib/main.dart#L250
to
[...]
final result = await storageFile.read();
final result2 = await storageFile.read();
[...]

Expected behaviour
Consecutive reads should not fail. The authentication prompt should appear for each read.

any updates?


documentation required for connecting application when only aad authentication is enabled for postgresql flexible server

For azure postgresql flexible server there is a guide on how to connect from a c sharp application
https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/connect-csharp
This guide doesn't show how to connect to the database when only ADD authentication is enabled, in that case i need to use the token and need some way to get the token and pass in onto the application dynamically.
Note: this is not azure hosted application so cannot use the MSI

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

ID: 45238cf9-c091-4863-3cd0-63e5e43d17f7
Version Independent ID: 736fae96-b317-d654-11d0-4ac312b600f8
Content: Quickstart: Connect with C# - Azure Database for PostgreSQL - Flexible Server
Content Source: articles/postgresql/flexible-server/connect-csharp.md
Service: postgresql
Sub-service: flexible-server
GitHub Login: @sunilagarwal
Microsoft Alias: sunila

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

#reassign:@agapovm

@gcbikram you can take a look at this other sample: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-connect-with-managed-identity#connect-using-managed-identity-in-c
It is intended for Managed Identity but it works exactly the same for other AAD identites like users, groups or service principals, depending on the client Id you're passing to the DefaultAzureCredential class from Azure.Identity.

#please-close


How to uninstall?

I installed the extension on a fresh magento. Then I tried to uninstall the extension again with composer remove zepgram/module-disable-search-engine.
But now I get this error if I execute php bin/magento setup:upgrade
Missing required argument $engines of Magento\Search\Model\EngineResolver

I had to execute composer install with composer 2 now it works again.

Cleaning generated files (rm -rf generated) and cleaning cache should be enough to disable this module


Add setting to allow InviteToken to override EnableAccountCreation

Adds logic to SignupAsync to allow InviteTokens to override the EnableAccountCreation flag when the EnableInvitedUserCreation flag is set. Requested PR from issue #147.
Unit tests are modeled after existing controller tests but are flaky when run as a group because of xUnit's async task runner and the updating of the global Settings. Let me know if you want to trim this down to just the logic change.

Would it be better to just always allow invite tokens to work even if account creation is turned off?

Adding the token to the check there wasn't working. I split the two out.

I'm okay with always allowing Invite Tokens to always work.

Thanks for your work! If the tests are flakey I'd rather not introduce them as we already have a few rouge unit tests I've been trying to track down.
I'd also prefer just using the token if it's valid to override the account creation process. This would also keep the amount of settings we have to a minimum.

I've cleaned up the setting and squashed all the commits. The concurrency issue I was having was related to RemoveAllAsync on the users repository. With each test getting it's own email, they no longer interfere with each other.

Thank you!


Proper fix for CI failures, which ignore the local user

See #201 for previous attempt.
Signed-off-by: Julien Pivotto<EMAIL_ADDRESS>

I will merge this to unblock the situation, there are enough reviewers so that it won't go un-noticed


Change walk library for better symlink support

This seems to fix https://github.com/phonegap/connect-phonegap/issues/128

Will look into the test failures asap.

I've merged #116 to resolve the sym-link issue on both Windows and OS X.

<EMAIL_ADDRESS><EMAIL_ADDRESS>
Thanks for the PR @Globegitter! Sorry that I've taken so long to review the work, but we really appreciate the PR!


MTL-2087

Description

With MTL-2087, a newer ipmitool was pulled in that contained a bugfix for MTL-1815 (#1895 #1896 #1897): https://github.com/ipmitool/ipmitool/pull/165
With the newer ipmitool, which shipped in CSM 1.4, we can restore these back to one-line.
NOTE: While MTL-1815 broke these calls up to workaround the options= parsing bug it didn't have the desired behavior of actually applying both persistent and efiboot together. The last command efiboot was the only one that would actually "stick." Rejoining these two commands together isn't aesthetic, functionally now we'll restore "persistent PXE efibooting."
Checklist

[ ] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[ ] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[ ] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

/backport release/1.4


[zh-lang] Replace shortcode code with codenew

Update the shortcode from code to codenew to align with rest of the docs

/assign @zhangxiaoyu-zidif

@tengqm fyi

@DanyC97 The codenew is used to reference sample yaml files from the examples directory. Be careful about two things: 1. the referenced file must sit in the right location (refer to how en site is organized). 2. the relative path may need to be explicitly set in the mardown file when referencing an example.

/hold

@DanyC97 I am curious, what is the issue trying to address here?

@chenrui333 the issue is to replace code shortcode with the newer codenew shortcode so we can then remove / delete the former one.
My understanding is that the great work done by @tengqm on codenew shortcode was to replace the old one hence my action.

I see, thanks for specifying the details!

@DanyC97  建议 base 到 1.14 版本

/close


Upgrade to cloudpickle 2.0.

CloudPickle 2.0 isn't a breaking change, and the pickles it produces
remain compatible (since the unpickler is unchanged).

Not relevant anymore.
Already using cloudpickle v.2.2.1


Set __module__ attribute for objects in jax.numpy

The current __module__ string is an implementation detail, and displays internal paths where we should display public paths. For example, this is the current output:
In [2]: jax.numpy.issubdtype
Out[5]: <function jax._src.numpy.lax_numpy.issubdtype(arg1: 'DTypeLike', arg2: 'DTypeLike') -> 'bool'>

and this is the output after this change:
In [2]: jax.numpy.issubdtype
Out[2]: <function jax.numpy.issubdtype(arg1: 'DTypeLike', arg2: 'DTypeLike') -> 'bool'>

We've done this already for several other top-level modules; this PR continues the effort to improve this situation.

Can you add the reason for doing this to the PR description?

Done


Link extraction from commented HTML code

GenericLinkExtractor allows to fine-tune tags with which it works, that is definitely an advantage over TikaLinkExtractor. However TikaLinkExtractor is not parsing code in the HTML-comments. For example, the following code:
New Link

will be presented by GenericLinkExtractor as two references, but TikaLinkExtractor will return only one reference.
As I said above, GenericLinkExtractor has its own advantages over the alternative solution, so it would be desirable that this class also worked well.

Check out the latest snapshot.  It will no longer extract URLs from comments by default, but the possibility is still there for those who see value added in doing so by adding the new configurable attribute commentsEnabled="true".  See XML configuration usage for GenericLinkExtractor for more details.
Please confirm.

New attribute commentsEnabled in GenericLinkExtractor works exactly as you described above. I confirm this.

Thanks for confirming.


[MapView] Error setting property 'annotations' of RCTMap

using react-native 0.8.0
It works on development realtime render.
However, after i run build production version by command "$ react-native bundle --minify"
I go to the MapView again, i got the error
Error setting property 'annotations' of RCTMap with tag #545: Exception thrown while attempting to set property 'annotations' of                 'RCTMap' with value '(
{
latitude = "23.15245630469985";
longitude = "113.3288000000001";
subtitle = "\U6797\U548c\U4e1c\U8def26\U53f7\U6d77\U68e0\U9601-2\U697c";
title = "\U76ca\U5143\U5802";
}
)': *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
2015-07-31 15:55:56.901 [error][tid:main][RCTMapManager.m:48] Error setting property 'annotations' of RCTMap with tag #545: RCTMap does not have setter for annotations property

@keyhui-heha is this still happening with .11-rc?

You may need to clean your build with ⌘+k in Xcode when you get these types of errors :) Should be working fine now


Add support for custom port

Add support for custom port

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

Project coverage is 96.24%. Comparing base (e1e5b3b) to head (18809d7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #161      +/-   ##
==========================================
+ Coverage   96.18%   96.24%   +0.05%
==========================================
  Files           4        4
  Lines         131      133       +2
  Branches       16       16
==========================================
+ Hits          126      128       +2
  Misses          3        3
  Partials        2        2

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


[APPM-342] Can add same tag multiple times when creating webapps

Can add same tag multiple times when creating webapps. (refer the screenshot attached).Reference: https://wso2.org/jira/browse/APPM-342

Not related to IoT server, hence closing the issue.


Deployment

Deployment
User Story
As a boot camp teacher,
I want to see the week 4 challenge in a public URL,
so I can score the work done.
Acceptance Criteria

It's done when the final code is deployed to a public URL in GitHub Pages.
It's done when the repo and live site URLs are submitted to the teacher.

Live site: https://technoveltyco.github.io/bootcamp-week4-challenge/


Shrink images in the main screen (contributions list) instead of cropping

Currently sometimes images get cropped out in the main screen. (left in the mock up below) They should be shrunken and centered instead. (right)

This was pointed out at https://github.com/commons-app/apps-android-commons/pull/738#pullrequestreview-46125017 by @misaochan. It sounded like older versions of the app did that shrinking, so chances are that we need to debug something instead of doing something new.

@whym This can be adjusted by setting the image to ImageView dynamically using the java code by maintaining the aspect ratio of the image. Can I work on this issue ?

Thank you for your interest. If you are asking if it's up for grabs, yes.
"the image to ImageView dynamically using the java code" - this sounds like
a workable solution. I don't know whether you have to write code for that
or using a library feature is enough, but I do think it has to work
dynamically. i.e. image size should change when the device is rotated.

Hi @gupta-meghna64 , yes, please feel free to work on this issue (or any others that you are interested in). :)

I don't understand.
The example on the left is doing center-crop: make the image as small as possible, preserving the image ratio and covering the whole space.
That looks like the correct behaviour.
Could you use this reference to point what scaling type you are expecting here?

Using a similar wording to that page, my intention was "Scales the image to fit inside the view, while maintaining the image aspect ratio. The larger axis will exactly match the view, and blank will be added the other axis." The images does not need to always cover the whole space. Not sure if this is identical to one of the types described there.

Ok, blank will be added the other axis evenly means you are talking about fitCenter.
In a list, having that kind of blank space would be very strange.
We could avoid cropping the image and also having blank spaces with:

make image take whole width
make image's height adapt to show whole image

Would that sound ok?


'vue init webpack',SyntaxError: Unexpected end of JSON input

node
node -v
v8.2.1

npm
npm -v
5.3.0

log
vue-init webpack

? Generate project in current directory? Yes

undefined:1
{"_id":"vue-cli","_rev":"73-765c2c042d41b6f806932a869635c769","name":"vue-cli","description":"A simple CLI for scaffolding Vue.js projects.","dist-tags":{"latest":"2.8.2"},"versions":{"1.0.0":{"name":"vue-cli","version":"1.0.0","description":"Opinionated CLI for starting Vue.js single page applications","preferGlobal":true,"bin":{"vue":"bin/vue"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/vuejs/vue-cli.git"},"keywords":["vue","cli","spa"],"author":{"name":"Evan You"},"license":"MIT","bugs":{"url":"https://github.com/vuejs/vue-cli/issues"},"homepage":"https://github.com/vuejs/vue-cli#readme","main":"lib/index.js","dependencies":{"chalk":"^1.1.1","commander":"^2.9.0","download-github-repo":"^0.1.3","khaos":"^0.9.3","read-metadata":"^1.0.0","request":"^2.67.0","rimraf":"^2.5.0","uid":"0.0.2"},"gitHead":"c3daf7b2f7d3e27bf5a6b31c5ff28a6f05df47b1","_id":"vue-cli@1.0.0","_shasum":"97c5d6e66ced1931d05c13fb459c5331c25b9a85","_from":".","_npmVersion":"3.3.12","_nod

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Request._callback (/Users/sandman/.nvm/versions/node/v8.2.1/lib/node_modules/vue-cli/lib/check-version.js:19:32)
    at Request.self.callback (/Users/sandman/.nvm/versions/node/v8.2.1/lib/node_modules/vue-cli/node_modules/request/request.js:188:22)
    at emitTwo (events.js:125:13)
    at Request.emit (events.js:213:7)
    at Request.<anonymous> (/Users/sandman/.nvm/versions/node/v8.2.1/lib/node_modules/vue-cli/node_modules/request/request.js:1171:10)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at IncomingMessage.<anonymous> (/Users/sandman/.nvm/versions/node/v8.2.1/lib/node_modules/vue-cli/node_modules/request/request.js:1091:12)
    at Object.onceWrapper (events.js:314:30)
    at emitNone (events.js:110:20)
    at IncomingMessage.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1045:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Cannot reproduce with the same versions.
Can you provide more information like OS?

@posva
macOS 10.11.6 (OS X EI Capitan)
Terminal: iTerm2,oh-my-zsh

Using almost the same (OS X 10.11.4, but...) and vue init webpack whatever or even vue init webpack is working fine.
Where are you trying to set up your project? Do you have permission to write on the folder?

Like this:
halo-vue-web git:(master) ✗ vue-init webpack

? Generate project in current directory? Yes

undefined:1
..............

I use the nvm to switch the version of the node.
Sorry my English is poor.

Have you tried defining a destination folder? Such as vue init webpack test

😅 😅 😅 😅 😅 😅 😅 😅 😅
I really don't know what happened, the computer had a good night's rest always the normal work, may be a problem with my computer.
Thank you very much for your answer!!


Class table render bug

Whenever I try to print the a PDF for any brew i have, it renders super weird. I've tried many things to fix this but it seems to be related to how the table renders when going to be printed

Looks like a duplicate of #683.
Please take a look at this comment.


Hud check if is visible

Hi,
There's a way to check if hud is visible on the view?
Thanks

JTProgressHUD had only its own private method 'isVisible'. Try '+(BOOL)isVisible' in the new 1.0.2 release.


Made canvas resizable and stopped jiggling canvas when it minimized

added gitignore for simplification
made canvas resizable using keys ALT + Arrow up, down, left and right
fixed typo in BaseButton class
basically that's all!
Hope, you would accept this!

i really don't know how to resolve the conflict lol


Some documentation would be nice :)

pls, assign me this issue :smile:

Please assign me this issue if it's not being worked on.

@pallabez I've just assigned you to this issue. Thanks for your help!

Thanks. Just writing it here to keep track of things -
TODO:

[ ] Setup jsonapi-pinia for myself
[ ] Check out the functionalities to document (Might need a help here in future)
[ ] Create sub tickets for each functionality
[ ] Create documentation

Is there any update on the documentation?

Not from my side. Feel free to pick it up.


Update Istio to 1.10

Update Istio to 1.10 which is coming out this week
See here for more: https://istio.io/latest/news/releases/
Expected Behaviour

On Tuesday 18th 1.10 will be released
Current Behaviour

We're using 1.9
Possible Solution

Update the Istio app and download version to 1.10
Steps to Reproduce (for bugs)
# CLI:
arkade get istio

# App to Kubernetes
arkade install istio

I will work on this.

Thanks @nitishkumar71
I can't see a release yet, so it may be worth checking back tomorrow: https://istio.io/latest/news/releases/
cc @howardjohn


IOError 21 (path is a directory) when attempting to compress CSS

I'm having an issue compressing stylesheets. I haven't had time to look into it much because I am up against a deadline. I fixed it by adding a try, except at line 140 of pipeline/compressors/init.py.
        try:
            content = self.read_text(path)
        except IOError, e:
            if e.errno == 21:
                content = ''
            else:
                raise IOError(e)

With this exception handling, my CSS files come out fine but I'm not sure if there is actually something wrong with the way my paths are configured or if it's just different from the norm. Any input would be helpful.
I did create a forked version for now and am using that for my project until I can sort things out.

I probably spoke too soon. I was using the No-Op compressor. When I switched to cssmin, I find that the files don't actually compress so my 'fix' doesn't really fix it.

Hello @matthewsewell I'm not sure about this issue, did you found a solution to your problem ?
Is it related to something you were doing wrong or is there a bug in django-pipeline ?

I ended up excluding my css files from pipeline because I didn't have time tofigure out where the bug was. I will revisit this week and let you know.


create or update model in eScriptorium via API after segmentation training completes

Moving this comment in #24 to this subissue, as it is more directly relevant here:

As mentioned for segtraining the regular behavior for eScriptorium seems to be to present the user with all models created during training (as opposed to transcription training, which selects only the _best model). eScriptorium's code uses kraken's default SEGMENTATION_HYPER_PARAMS where the number of epochs is set as 50.
So we can remove the  --epochs 200 from our kraken command and just let it use its default 50 epochs, and then we will want to use the API to POST those 50 new models back into the eScriptorium instance.
This is where the fact that the accuracy is read only in the API will be a pain, because for now we will just end up with 50 models available in the GUI with no guidance whatsoever as to which might be better than the others. So eventually we will want to address that (is it possible for us to overwrite that with the present htr2hpc repo?) but for now step 1 is just getting those 50 models successfully imported.

completed in #31


allow usage of PRStatus.merged for Github get_pr_list(status)

Based on our discussion in PR #128 this code makes consistency in get_pr_list(status) between Pagure and Github. We can use PRStatus.merged for Github now.
Can we close #128 without merging? It was easier to create a new branch since the code is completely different.

@marusinm thanks for the pull request. I'll merge that after the completion of the tests.

pre-commit-black failed unfortunately

Oh, the pre-commit does not like your last last commit:
13:23:56  Check Yaml...............................................................Passed
13:23:56  Detect Private Key.......................................................Passed
13:23:56  Fix End of Files.........................................................Passed
13:23:56  Trim Trailing Whitespace.................................................Passed
13:23:56  Flake8...................................................................Passed
13:23:57  black....................................................................Failed
13:23:57  hookid: black
13:23:57
13:23:57  Files were modified by this hook. Additional output:
13:23:57
13:23:57  reformatted /root/ogr/services/github.py
13:23:57  All done! ✨ 🍰 ✨
13:23:57  1 file reformatted, 29 files left unchanged.
13:23:57
13:24:11  mypy.....................................................................Passed
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // stage
[Pipeline] }

I think the last commit is not needed.

@lachmanfrantisek then I maybe didn't understand your last review comment. I changed just one line which looks better.  Please look at my last change.

@marusinm yes your last commit was not needed, Frantisek's last review was just "thumbs up"

@lachmanfrantisek then I maybe didn't understand your last review comment. I changed just one line which looks better.  Please look at my last change.

@marusinm That was just to let you know it's ok and that I will release a new version after merging this PR.
Just remove the last commit and we are ready to merge.

😄Sorry, misunderstanding on my side. I deleted the last commit.


Switch to global qpdf pin

Fixes #122
Drops local qpdf pin in favor of global pinning.

@conda-forge-admin , please re-render

@conda-forge-admin , please re-render

@carlodri when you have a moment, could you please review? 🙂


gcc 4.9 internal error when building TiKV

Question
My gcc version -- 4.9.0
when I make build the TiKV, it said:
--- stderr
thread 'main' panicked at '
Internal error occurred: Command "/usr/local/gcc/bin/gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/root/\xe6\xa1\x8c\xe9\x9d\xa2/tikv/target/release/build/zstd-sys-bb65b8cc2fe0387c/out/zstd/lib/compress/huf_compress.o" "-c" "zstd/lib/compress/huf_compress.c" with args "gcc" did not execute successfully (status code exit code: 1).
', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.54/src/lib.rs:1670:5
note: Run with RUST_BACKTRACE=1 for a backtrace.

Could you please try with a newer version of gcc? Like 8.1?
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-8 g++-8

This looks like a bug of old gcc, see the beginning of the error message.

Internal error occurred

Should we document the least tested gcc version? Friendly ping @overvenus

Ok, I will try. It may spend long time to run.

It doesn't work. I will update gcc again.

So bad!
My gcc version is 8.1.0
Compiling zstd-sys v1.4.4+zstd.1.3.5 (https://github.com/gyscos/zstd-rs.git#0100c848)
error: failed to run custom build command for zstd-sys v1.4.4+zstd.1.3.5 (https://github.com/gyscos/zstd-rs.git#0100c848)
process didn't exit successfully: /newdisk/tikv/target/debug/build/zstd-sys-d5428f28dfd1830d/build-script-build (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/common/debug.o" "-c" "zstd/lib/common/debug.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/common/entropy_common.o" "-c" "zstd/lib/common/entropy_common.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/common/error_private.o" "-c" "zstd/lib/common/error_private.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/common/fse_decompress.o" "-c" "zstd/lib/common/fse_decompress.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/common/pool.o" "-c" "zstd/lib/common/pool.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/common/threading.o" "-c" "zstd/lib/common/threading.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/common/xxhash.o" "-c" "zstd/lib/common/xxhash.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/common/zstd_common.o" "-c" "zstd/lib/common/zstd_common.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/compress/fse_compress.o" "-c" "zstd/lib/compress/fse_compress.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/compress/hist.o" "-c" "zstd/lib/compress/hist.c"
exit code: 0
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = Some("cc")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
DEBUG = Some("true")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/compress/huf_compress.o" "-c" "zstd/lib/compress/huf_compress.c"
cargo:warning=/tmp/cc8WefQu.s: Assembler messages:
cargo:warning=/tmp/cc8WefQu.s:247: Error: no such instruction: shlx %r13,%rax,%rax' cargo:warning=/tmp/cc8WefQu.s:288: Error: no such instruction: shlx %rcx,%r13,%rcx'
cargo:warning=/tmp/cc8WefQu.s:311: Error: no such instruction: shlx %r12,%rcx,%r12' cargo:warning=/tmp/cc8WefQu.s:326: Error: no such instruction: shlx %rdx,%rcx,%rcx'
cargo:warning=/tmp/cc8WefQu.s:429: Error: no such instruction: shrx %rdx,%rax,%rsi' cargo:warning=/tmp/cc8WefQu.s:679: Error: no such instruction: shlx %r9,%rsi,%rsi'
cargo:warning=/tmp/cc8WefQu.s:763: Error: no such instruction: shrx %rax,%rsi,%rsi' cargo:warning=/tmp/cc8WefQu.s:822: Error: no such instruction: shlx %r9,%rcx,%rsi'
exit code: 1
--- stderr
thread 'main' panicked at '
Internal error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-DZSTD_LIB_DEPRECATED=0" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/newdisk/tikv/target/debug/build/zstd-sys-4c9ce07942fcb1dc/out/zstd/lib/compress/huf_compress.o" "-c" "zstd/lib/compress/huf_compress.c" with args "cc" did not execute successfully (status code exit code: 1).
', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.54/src/lib.rs:1670:5
note: Run with RUST_BACKTRACE=1 for a backtrace.
make: *** [clippy] 错误 101

@ice1000
Yes , I try. It doesn't work again. It is so strange!
It runs well on my mac, mybe I will give up centos.

@kg88 looks like as can't recognize shlx instruction, could you update your binutils
FYI
wget https://ftp.gnu.org/gnu/binutils/binutils-2.31.1.tar.gz
tar -zxf binutils-2.31.1.tar.gz
cd binutils-2.31.1
make
make install

Hi! Seems this question is resolved. Please reopen if it's not.


int checks for whole numbers, avoiding json float64 concerns for large ints

We're seeing an issue where mildly large integers are causing validation errors due to the way the golang json pkg unmarshals numbers.
Playground example here, using snippets of this library to reproduce the error:
https://play.golang.org/p/D-IKC0c8xD2
Essentially the json unmarshaller will unmarshal large numbers into float64's, which ends up in a fmt.Sprint(..) value of 1.734598e+06 for 1734598. big.Int.SetString() does not accept this value.
This change instead tests for whole numbers by comparing the original value and the new value after dropping the decimals.
Note: This change will fail, in that it wont generate a validation error, if the source JSON has a number like 1313.0, as it's a whole number, but not an integer as specified.
Happy for this to be butchered, improved to work for both scenarios, just figured raising an issue with a potential fix attached was nicer than whinging with no suggestions.

to be clear: the testcase you have added is already passing
please write a testcase that fails

Thanks @santhosh-tekuri, I'll give this a go. Likely this was my issue, so will close.

Definitely the issue. Thanks, did not know UseNumber was a thing.


helm: Update helm topic to follow the common template

helm: Update helm topic to follow the common template

k8s topic location: https://github.com/tungbq/devops-basic/blob/main/topics/helm
Template location https://github.com/tungbq/devops-basic/blob/main/templates/TOPIC_TEMPLATE.md
Similar task with #440

Done via #481


Externalize BOM ingestion pipeline

Description

[!WARNING]
This PR is based on #805

This PR moves the processing of uploaded BOMs from the internal, in-memory eventing system to Kafka.
This allows BOM processing to be distributed to multiple instances of the API server. Before this PR, instances that received and upload request were also the ones processing the BOM, which could lead to very uneven load distributions.
To allow for processing to be shared, uploaded BOMs need to be stored in a location that all instances can access. At the moment, BOMs are written to the /tmp directory which clearly doesn't work for the goal at hand.
This PR provides three new storage extensions for this purpose:

Local filesystem (could also be NAT)
Database (new BOM_UPLOAD table)
S3

The default being Database, since it requires no additional setup. Database storage is expected to be not a good fit for large deployments with very frequent uploads.

[!NOTE]
With the work done in PR #805, the idea is to empower users to plug in their own, potentially proprietary, storage solutions.

To reduce the volume of data being transmitted to and from storage, as well as reduce the storage size requirements, we compress BOMs using zstd. Currently, the compression level is hardcoded to 3 (22 is the maximum), but the plan is to make this configurable.
BOMs are stored after successful validation, and deleted again after successful processing. The storage being used is thus only temporary and will not replace the eventual adoption of the CycloneDX Transparency Exchange API.
Per default, each instances processes at most alpine.kafka.processor.bom.upload.max.concurrency=-1 BOMs in parallel (-1 meaning match number of topic partitions). Because the concurrency is key-based, it can be increased beyond the number of partitions. The maximum parallelism is bound by the number of unique projects BOMs are uploaded to.
Addressed Issue

Closes https://github.com/DependencyTrack/hyades/issues/633
Additional Details

sequenceDiagram
    Client->>+API Server: Upload BOM
    API Server->>API Server: Validate BOM
    API Server->>API Server: Generate correlation token (UUID)
    API Server->>API Server: Compress BOM (zstd)
    API Server->>Storage: Upload compressed BOM
    Note over API Server, Storage: Keyed by correlation token
    API Server->>Kafka: Publish event to dtrack.event.bom-uploaded topic
    Note over API Server, Kafka: Key=Project UUID<br/>Value=org.dependencytrack.event.v1alpha1.BomUploadedEvent proto
    API Server->>Client: Return correlation token
    loop continuously
        API Server->>Kafka: Consume from dtrack.event.bom-uploaded topic
        loop for each event
            API Server->>Storage: Get compressed BOM by correlation token
            API Server->>API Server: Decompress BOM
            API Server->>API Server: Process BOM
            alt processing failed
                API Server->>API Server: Update status of upload in DB to "failed"
                API Server->>Kafka: Publish event to "BOM Processing failed" topic
            else processing succeeded
                API Server->>Storage: Delete BOM by correlation token
                API Server->>API Server: Update status of upload in DB to "successful"
                API Server->>Kafka: Publish event to "BOM Processed" topic
                API Server->>API Server: Trigger vuln analysis etc.
            end
        end
    end

Checklist

[x] I have read and understand the contributing guidelines
~This PR fixes a defect, and I have provided tests to verify that the fix is effective~
[ ] This PR implements an enhancement, and I have provided tests to verify that it works as intended
[x] This PR introduces changes to the database model, and I have updated the migration changelog accordingly
~This PR introduces new or alters existing behavior, and I have updated the documentation accordingly~

Look's good to go to me.


Fixed documentation of is_active/is_superuser in PermissionsMixin.has_perm

effect of is_active depends on authentication backend

Looks good. I would link "active" and "superuser" to the corresponding user attributes.


Add 'Learn you some Erlang for great good!' translation

What does this PR do?
Adds a Japanese-language translation of 'Learn You Some Erlang for Great Good'.
As far as I could tell from a few web searches, this is currently the only complete translation of the book into another language; there are some works-in-progress into:

Korean: https://github.com/chitacan?tab=repositories&q=lyse
Chinese: https://github.com/Xorcerer/Learn-You-Some-Erlang-zh_CN/

For resources
Description
The book is a free online guide to the Erlang programming language.
Why is this valuable (or not)?
This complements the existing entry for the book in English.
How do we know it's really free?
The book translation is in HTML format and includes content licensing information.  It is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) license.
Checklist:

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

Follow-up

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

Thanks @davorpa!

Thanks!


Allow get_currencies_for_select to accept a new parameter that filters allowed currencies

In my app, I need to only allow certain currencies that are allowed for the user to choose from. I would like the get_currencies_for_select and get_currencies functions to accept an optional parameter, which can be a function that can be used to filter acceptable currencies.
For eg, the way I am currently doing this is:
Enum.filter(CurrencyFormatter.get_currencies_for_select(:names), fn {k, _} -> k =~ ~r/inr|usd|eur/i end)

instead, if the function can be passed into the get_currencies_for_select - that would be ideal.

Hi @vraravam ,
I've just updated and published version 0.4.4 which contains an option to enable a whitelist for the currencies. You can enable this by updating your app's config using
config :currency_formatter, :whitelist, ["EUR", "GBP", "USD"]

Hope this helps you out, and thanks for the suggestion :D
Gerard.

Thanks - works like a charm! Only issue now is that your library asks for poisson v3.0.0 - while my codebase is using the older version, so, I have overridden in mix.exs - hopefully nothing breaks


fix(backend-proxy-middleware): fix handling of full url destinations

Fixes: https://github.com/SAP/open-ux-tools/issues/608

Code looks good, corrected tests make sense (you could have used the enum in all tests, but it is ok without it) Thanks for the explanation.

Thanks Tobias!


OAuth module break down

Closes #1466
Related to #1456
This patch breaks down the oauth module, so the core functionality is moved off to the oauth-core module, while the web-related functionality required for the cas server itself remains in place. This allows other modules such as the management interface and other service registries to use the core module without the interference of the web context listeners.

Reset the hostname back to default. This should be good. Tested.


AppxRecipe and Transitive nuget packages

Discussed in https://github.com/microsoft/WindowsAppSDK/discussions/1412

Originally posted by Daniellled September 13, 2021
We have a nuget package that contains both debug and release assemblies. In the debug assemblies we do something special that the release assemblies excludes. The nuget package uses the buildTransitive nuget feature to execute a target that makes sure upon debug builds we move the correct dll to the output directory.
https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files
https://github.com/NuGet/Home/wiki/Allow-package--authors-to-define-build-assets-transitive-behavior
When we compile a MAUI WinUI project the debug dlls end up in the correct directories. Debug is in the debug directory, and release is in the release directory.
However, when debugging a MAUI WinUI application we are noticing that the appxmanifest is always pointing to the release binaries. This is causing the release binary from our nuget package to show up in the AppX folder.
What target should our nuget package override to correct this problem?

@alwu-msft thoughts?


Live stream not playing on swf flash player on browser.

I have a swf player which plays the rtmp based live stream on browser. I have tested browser video player with following url. This video is playing on the browser player.
(rtmp://<IP_ADDRESS>/vod/mp4:bigbuckbunny_1500.mp4).
But the live stream url we created from this sample is not working on swf player. When I hit this url on safari browser than video is playing on vlc media player only.
What is the file format of video that is created using the sample app. I assume it is other than mp4. Where to change the video file format to mp4 in this sample?

Hi @Anjalitripathi ,
Live streams are FLV format in RTMP protocol. VoD streams can be in MP4 or FLV.  MP4 format is not suitable for live streams.  RTMP protocol can be used both VoD and Live streams as well.
I mean if you plan to play a live stream, do not specify any mp4 in url.

Closing this issue for the inactivity. Please re-open it if you are still having this issue.


Math magicians: components

In this opportunity, I did the following:

Delete all the boilerplate from Create React App (text, images, styles).
Create a new directory called components.
Inside components, create a new Calculator.js file.
In Calculator.js, create a React component that matches this design:
Implement the design only (JSX and CSS)
Develop just the UI of the calculator; the math logic to make it work will be added in the next project.
Use functional components
Create at least 1 child component
Once the Calculator is ready, import it and use it in your top-level component: App.js
Test it in the browser; it should render without problems.

It's Done!


ordered resources

Pre-Flight checklist

[ ] Screenshots and design review for any changes that affect layout or styling

[ ] Desktop screenshots
[ ] Mobile width screenshots

[ ] Testing

[ ] Code is tested
[ ] Changes have been manually tested

What's this PR do?
Order resources by lecture number first, and then the remaining resources lexicographically
How should this be manually tested?
Go to any menu with videos as resources, and see if lectures are on top and in ascending order. Same for other resources at bottom.

Thanks @ibrahimjaved12 . Would this solve this issue here https://github.com/mitodl/ocw-hugo-themes/issues/958
btw, great to see you trying to contribute.  Would love to learn more about your motivation and how we can help you in any way.  Feel free to send me an email at  "ferdial  at mit".

Thank you and welcome. @Ferdi
Yes, the proposed solution is for the issue at ticket 958.

Closing this PR as it was just for training purposes.
This is the PR for this functionality: https://github.com/mitodl/ocw-hugo-themes/pull/1090


Fix Linux support

Hi @Cammin I finally updated LDtk2Unity locally and I forgot something... So I suppose nobody except me is running on Linux 😂
I was missing a dependency for EditorApplication.applicationPath...

Looks good, quite a simple small fix. Thanks for vetting the Linux support, it's very appreciated :)
I'm positive that there are more Linux users than yourself; I think that there are people who may not be as vocal.

I think that the commit message format made the semantic release system not push one out, but I got it now


Database

Database
What is it?
Database of pesticide applications in the state of California
Where is it from?
California Department of Pesticide Regulation public databases
What do you want to do with it?
Display these on a map of California, to show hotspots.
To-Do

[ ] Gather data from 2019
[ ] Clean data from 2019
[ ] Populate database with 2019 data
[ ] Establish data pipeline for getting data into the database easier
[ ] Incrementally add data from 2019 up to the latest data CDPR has


Wakaama client doesn't allow instance creation with out writeable fields

Using Leshan UI(leshan.eclipse.org), I tried creating new instances of LWM2M Server Object(/1) with out values in any of the fields( other than instance id ). Leshan client ( lwm2m-client-demo.jar ) does allow it, while Wakaama( lwm2mclient ) doesn't. Is it mandatory to have resources during instance creation ?
I create a similar ticket(#230) earlier which was closed telling it was since Leshan doesn't know all fields. I suspect root cause is same.

Hi,
Sorry I thought I answered. In LwM2M TS, it is indeed mandatory to provide the content of the new instance during the creation.
Regards,

Ok but if there is not Writable resource ? like Temperature (Even if I'm not sure to see how creating a new instance of Temperature could make sense oO ?)

The allowed operations are considered only for Write, Read and Execute operations. The Create operation is done at the Instance level and ignore the allowed operations.

I'm not sure to see how this could make sense ? When you create an instance you can send values for Executable or Readable resource ....

Executable resources do not have values so you do not include them in the Create payload.
Readable resources have a value so you need to include them in the Create payload. It is the same as the Bootstrap Write operation.

Ok, so we are flexible enough to set value to read only resource (e.g. setting temperature of a sensor ...), however it is strictly forbidden to create an instance without payload. Sounds strange to me, but I can leave with that. (At Leshan side I don't think we will be so strict)

OMA-TS-LightweightM2M-V1_0-20170208-A, <IP_ADDRESS>

If the “Create” operation is permitted, the LwM2M Client MUST perform the instantiation on the Object only if all the mandatory Resources are present in the “New Value” parameter (see Section 5). If all the mandatory Resources are not present, the LwM2M Client MUST send a “Bad Request” error code to the LwM2M Server.
...
if a value of such a Read-only Resource is present in the “New Value” parameter, this value MUST simply be ignored

So, even if it's somehow strange, provide the READ ONLY resources and then ignore them :-).

Yes the TS is not very clear on this point.
Anyway, wakaama requires the Create operation to target a URI in the form /[ObjectID] with a parsable payload. If the payload is an Object Instance, its ID must not exist in the targeted Object.
The validation of the content is left to the Object plugin.
Regards,

What I understood from above discussion is, "If all resource fields of an lwm2m object are both non mandatory and read-only, then lwm2m client should allow instance creation with out values for any of fields". Please correct me if that is wrong.
I modified all fields in Wakaama lwm2mclient's test object(/1024) to be both read-only and non mandatory ( in leshan's oma-object-spec.json[1] ). Wakaama client still fails in instance creation of test object (/1024).

Thing is the TS makes it mandatory to have a payload in the Create message.
This is a point which needs clarification from the OMA Working Group on the points raised here.
My understanding of the part quoted by @boaks is that the mandatory Read-Only resources must be part of the payload but the Client can ignore them.
An Object with no mandatory resource is a corner case which was not considered.
Regards,


[release-1.4] Adding annotation to drive the name of the backing topic

Signed-off-by: Matthias Wessendorf<EMAIL_ADDRESS>Manual backport of #1023 to 1.4 branch

/retest

/retest

/retest

/test integration-tests_eventing-kafka-broker_release-1.4

/close
we have this on 1.5, which is good enough


[EventEngine] PosixEventEngine DNS Resolver

This PR implements a c-ares based DNS resolver for EventEngine with the reference from the original grpc_ares_wrapper.h. The PosixEventEngine DNSResolver is implemented on top of that. Tests which use the client channel resolver API (resolver.h) are ported, namely the resolver_component_test.cc and the cancel_ares_query_test.cc. The WindowsEventEngine DNSResolver will use the same EventEngine's grpc_ares_wrapper and will be worked on next.
The resolve_address_test.cc which uses the iomgr DNSResolver API has been ported to EventEngine's dns_test.cc. That leaves only 2 tests which use iomgr's API, notably the dns_resolver_cooldown_test.cc and the goaway_server_test.cc which probably need to be restructured to use EventEngine DNSResolver (for one thing they override the original grpc_ares_wrapper's free functions). I will try to tackle these in the next step.

Mac/iOS will be using this resolver as well, this is due to apple APIs (CFHost, DNSService) don't support resolve from custom DNS servers.

FYI: Mac/iOS will be using this resolver as well, this is due to apple APIs (CFHost, DNSService) don't support resolve from custom DNS servers.

Did you verify that c-ares works on those platforms? It had been disabled on iOS for years due to some compatibility problems, I am not familiar with the details.

Did you verify that c-ares works on those platforms? It had been disabled on iOS for years due to some compatibility problems, I am not familiar with the details.

Not yet but their changelog mentioned Mac and iOS which I assume it works.
I can run some tests with this branch to make sure it works, and also try to dig the reasons of c-ares being disabled on iOS.

Did you verify that c-ares works on those platforms? It had been disabled on iOS for years due to some compatibility problems, I am not familiar with the details.

Not yet but their changelog mentioned Mac and iOS which I assume it works.
I can run some tests with this branch to make sure it works, and also try to dig the reasons of c-ares being disabled on iOS.

FWIW c-ares is currently the default resolver on mac and has been for years.
On iOS, I believe we ran into internal test failures years ago when trying to enable it. But we didn't move forward because we didn't think c-ares was needed on iOS at the time (it's also disabled by default on android).

I agree that c-ares isn't strictly needed on iOS, since iOS applications are very unlikely to need either service config or grpclb configured via DNS.  In fact, we probably want to keep the TXT and SRV lookups disabled by default on iOS even if we enable them by default on other platforms, since we don't want to make additional queries that we won't actually need on mobile.
That having been said, if it turns out to be easier to use c-ares on all platforms for consistency, that's fine.  It's also fine to decide that we don't support c-ares on iOS at all.  I think the result is the same either way.

This looks much cleaner! Thank you so much for doing this -- I feel so much better about how maintainable this code is!
I haven't reviewed the tests yet, just the code itself. There are a lot of comments here, but they're all very minor things -- the overall structure looks fabulous!
Please let me know if you have any questions. Thanks!

Thank you so much for the detailed review Mark! I think this is ready for another pass (including tests). Thank you!

@drfloob  @apolcyn @markdroth, continue the discussion on the concerns in using c-ares on iOS:
I'm drafting an implementation with DNSService API (#33233).
As I mentioned earlier, this API doesn't support specifying custom DNS servers but can only use which ever servers configured in the system. I took a look at the iomgr implementation, looks like name server is not actually used.
So I wonder what's the use case of specifying a different dns server in event engine? is it OK for iOS I always use the system DNS?
The other thing that's not supported is using a custom timeout, given the new DNS API removed the deadline parameter, I assume it's OK to rely on system default timeout (5s in my test)?

Sorry for the delay, I just returned from vacation.

So I wonder what's the use case of specifying a different dns server in event engine? is it OK for iOS I always use the system DNS?

It is OK for gRPC on iOS to always use the built-in DNS system. Customizing the DNS authority is an advanced feature which has never been supported on iOS.

The other thing that's not supported is using a custom timeout, given the new DNS API removed the deadline parameter, I assume it's OK to rely on system default timeout (5s in my test)?

I think this is OK too. I'm not aware of any requests for advanced DNS resolution capabilities on iOS, so the default timeout should also be fine. The same is true for Android, to the best of my knowledge.

@drfloob @HannahShiSFB

So I wonder what's the use case of specifying a different dns server in event engine? is it OK for iOS I always use the system DNS?

It is OK for gRPC on iOS to always use the built-in DNS system. Customizing the DNS authority is an advanced feature which has never been supported on iOS.

I'm fine with iOS not supporting custom DNS servers.  But we need to make sure that if a user provides a URI with a custom DNS server, we do not just silently ignore the custom DNS server; we need to reject such a URI if we cannot honor it.
I think this means that the EE impl should return a failure when creating the DNSResolver object if the caller passes in a custom DNS server.

@markdroth @HannahShiSFB

I think this means that the EE impl should return a failure when creating the DNSResolver object if the caller passes in a custom DNS server.

I agree. @yijiem can you add a bit to the documentation in your API update here: https://github.com/grpc/grpc/pull/33744. Something like "If the caller requests a custom DNS resolver, and the EventEngine implementation does not support it, this must return an error."


Way to change TextBox.Text binding default UpdateSourceTrigger to PropertyChanged?

In WPF we could do TextBox.TextProperty.OverrideMetaData... to set the default binding behavior.  Is there such a method available in WinUI?
I would like the default UpdateSourceTrigger for TextBox bindings to the the Text property to be PropertyChanged, instead of LostFocus.

No, I don't think this exists for xaml.  @MikeHillberg ?

Right, WinUI doesn't have an equivalent to FrameworkPropertyMetadata.DefaultUpdateSourceTrigger.

@MikeHillberg  Feature request?  I literally have thousands of WPF TextBoxes to port.  This is very useful in LOB apps where all bindings need to be up to date prior to save button (or accelerator) which doesn’t trigger binding updates from focus change, which can leave un-committed data during save.  It’s easy to miss the inclusion of the UpdateSourceTrigger with so many in one app.  A way to set default  behavior would be a really big benefit here.  Something that could be set via Style at app level perhaps

Any chance of thawing out this request? I know Winui has lots of issues, but LOB apps are still being developed in 2022. @omnilogix 's comment is dead on.


Sticky Popper

Would love to have the ability to set a specific tooltip to be "sticky" so that the user needs to click on either a (X) or clicking outside of the tooltip area. Being able to choose one or both options would be great as well.

Seems like what you're asking is not something related to the position of the tooltip, right?
If so, everything not related to the position of the poppers should not be managed by Popper.js but by some 3rd party modifier or library.
Let me know if it does make sense to you.

The more I'm playing with this lib, I'm understanding better what it's accomplishing. Sorry I made the issue before fully understanding your lib. Working great so far.

Thank you! I plan to write some simple "tooltip/popover" management utility on top of Popper.js in the future. But for now my focus is to stabilize Popper.js to be sure it covers all the edge cases.
Cheers.


Update pt-br translation

Short description of what this resolves:
The current translation to Portuguese (Brazil) is all machine-translated nonsense.
I have translated all the strings from the original English file.

Nice job, Rodrigo.


Uncaught TypeError: this.callInitHooks is not a function

[x ] I'm reporting a bug, not asking for help
[ x] I've looked at the documentation to make sure the behaviour is documented and expected
[x ] I'm sure this is a Leaflet Draw code issue, not an issue with my own code nor with the framework I'm using (Cordova, Ionic, Angular, React…)
[ x] I've searched through the issues to make sure it's not yet reported

How to reproduce

Leaflet version I'm using: 1.4.0
Leaflet Draw version I'm using: 0.4.12
Browser (with version) I'm using: Chrome Version 74.0.3729.157 (Official Build) (64-bit)
OS/Platform (with version) I'm using: Windows 8.1
step 1
step 2

What behaviour I'm expecting and which behaviour I'm seeing
Expecting to see as in: http://leaflet.github.io/Leaflet.draw/docs/examples/full.html
Getting error (in Chrome console):
		    Uncaught TypeError: this.callInitHooks is not a function
		    at Function.e [as Draw] (leaflet.js:5)
		    at HTMLDocument.<anonymous>

		    at l (jquery-3.3.1.min.js:2)
		    at c (jquery-3.3.1.min.js:2)

Minimal example reproducing the issue
I am replicating the example given at:
http://leaflet.github.io/Leaflet.draw/docs/examples/full.html
The simplest code looks like:
//    Draw Tools
		    var drawnItems = new L.FeatureGroup();
		    map.addLayer(drawnItems);
		    ctlDraw = L.Control.Draw({
		        edit: {
		            featureGroup: drawnItems,
		            poly: {
		                allowIntersection: false
		            }
		        },
		        position: 'topright',
		        draw: {
		            polygon: {
		                allowIntersection: false,
		                showArea: true
		            }
		        }
		    }).addTo(map);

		    map.on(L.Draw.Event.CREATED, function (event) {
		        var layer = event.layer;
		        drawnItems.addLayer(layer);
		    });

[x ] this example is as simple as possible
[x ] this example does not rely on any third party code

Using jsfiddle or another example site.

After a thorough search over the internet, it seems like there are different versions here and on CDN and following some examples, this was resolved, i.e., it works now. I am closing the request. Thanks

请问您是如何解决掉这个问题的


Why formatting fixes things I don't ask to fix?

Hi, I'm fairly unfamiliar with ruff and formatting in general, and so I'm trying to understand how to control its behaviour.
I have this configuration:
"pylsp.plugins.ruff.enabled": true,
"pylsp.plugins.ruff.extendSelect": ["E", "D", "C90", "I"],
"pylsp.plugins.ruff.ignore": ["E265"],
"pylsp.plugins.ruff.format": ["D"],
"pylsp.plugins.ruff.preview": true,
"pylsp.plugins.ruff.lineLength": 79,

Then, I introduce this typo: a   = 1. This gets correctly signaled by ruff with E221 (this code requires preview). However, when I run the command :call CocAction('format') this error gets fixed. This is not what I expect, the error should not be fixed because this family of errors is not explicitly indicated in the ruff.format option. This does seem to work for I errors, though.
Am I doing anything wrong or is this the expected behaviour? To be honest, I'm not even sure if :call CocAction('format') is the correct way to invoke ruff format.
Thanks for the the help and more generally for this great plugin!

Hey @Onturenio, thanks a lot for this question, this is fixed when ruff format is invoked. We basically do this currently when invoking the format request: ruff format .; ruff check --select <format codes> --fix.
I tried to explain this in https://github.com/python-lsp/python-lsp-ruff#code-formatting, but if you think this is not clear enough I could highlight that the format option only specified additional errors to be fixed. Let me know what you think.

Thanks for the reply. The documentation was OK, it was mostly my fault for not having a clear idea of the difference between ruff check --fix and ruff format.
By the way, is there a way to run just one of the two? Or in other words, is :call CocAction('format') the only way to invoke the fixing tools? Perhaps it would be worth to let the user decide if he/she wants to invoke just one of the tools, either chech --fix or format right? Please this is not a complain, this is a honest (and maybe dumb?) question.

In theory, you could enable all fixable errors with the select option and run the "Fix all" action to fix those. Is there any reason why you are specifically unhappy about the formatting with ruff? Maybe as opposed to black?


Hard to use a lstm tflite model.

I'm interested in lstm models, and I really need one tflite model(other framework like onnx or saved model for me is not acceptable now) include lstm node. But for days, I can ony find one float32 model from https://storage.googleapis.com/download.tensorflow.org/models/tflite/speech_asr_am_model.tflite and it's uint8 model from https://storage.googleapis.com/download.tensorflow.org/models/tflite/speech_asr_am_model_int8.tflite. Other old official models like tts and speakerid models are deprecated. But for my work, the shape info between layers are missing, and for me, it's impossible to infer these shapes before real work. Are there any tools to edit or infer the shape info and regenerate a new tflite model? Or is it just a wrong model? I have taken look at tfhub, tensorflow official website, and tracked with lots of discussions for lstm tflite using google search, but no more models found and not much useful information. And I found that others are also confused with lstm tflite like model convert issues. So what I needs are: 1. usable models. 2. tools like tflite editor or shape inferencer. 3. any update for lstm. 4. is lstm tflite supported or not. Really need help. Thanks.

Hi,
TensorFlow Lite currently supports limited usage of RNN & LSTM.
Have you checked the TensorFlow RNN conversion to TensorFlow Lite guide yet?
Please take a look and let us know if you have any further questions.

@aaltonenzhang Could you please update as per the above comment and let us know if this issue still persists ? Thanks!


Getting a column/row count

There needs to be a feature that allows you to get a column and row count.

Pretty Please :)

Added rowCount, actualRowCount, columnCount, actualColumnCount to Worksheet and cellCount and actualCellCount to Row in 0.2.35

Hi guyonroche,
I am building a framework using the protractor and i am using exceljs for reading data from xls file which contains multiple files.
i am facing issue in getting  the row count and column count.
Can you please help me by providing an simple example to get the rowcount from an excel.
Below is the code i am using for reading the excel.
var xlsx                     	=   require('xlsjs');
var Excel 				= 	require('exceljs');
var workbook = new Excel.Workbook();
workbook.xlsx.readFile(filename).then(function() {
var worksheet = workbook.getWorksheet(SheetName);
worksheet.eachRow({ includeEmpty: true }, function(row, rowNumber) {
console.log("Row " + rowNumber + " = " + JSON.stringify(row.values));
});
Can you please help me in reading the excel and getting the row count and column count so that i can use it as per my requirement.
Thanks in Advance.

@AV090909
Any solution for reading number of rows/column from excejs?


Adding leading slash to prevent URI is not absolute errors

The lack of a leading slash here results in a java.lang.IllegalArgumentException: URI is not absolute error when using AwsIamAuthentication createTokenUsingAwsIam method

@moin-oss Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@moin-oss Thank you for signing the Contributor License Agreement!

As it turns out, this is only an issue when using only the base Spring RestTemaplate, and can be resolved by using Vault client's RestTemplateBuilder.  Closing this as not needed.


Support Elixir 1.17

The latest Elixir changed how IEx should be started. The current way we're using is IEx.start which is still around in 1.17 but only arity 0. So if you include any shell_opts, the IEx session would immediately crash. If you don't use shell_opts, then things will work as normal.
This makes the needed adjustments to work with Elixir 1.17 and support shell_opts, including a change to account for .iex.exs files in the arguments

It can, but if we want to backward support dot_iex_path we still need to check a version at runtime, so I figured we might as well leave it there

I don't think I understand. The :dot_iex_path normalization is only for Elixir 1.17 and it's not possible to compile with Elixir 1.17 and run on anything but Elixir 1.17. (Or it's not possible without some manual intervention)


Refactoring and adding new sensors for last track

refactoring constants name to differentiate uri and url
add sensor longitude and latitude to create device_tracking
add a new sensor type "last track" to get information about scooter last track
Adding thumbnail image map of the last ride

I you want to see the result before merge
It's not pretty ?

Thanks !

@dathosim Where is the image thumbnail generated? I only see the sensors:

lasttrackaveragespeed
lasttrackdistance
lasttrackendtime
lasttrackridingtime
lasttrackstarttime

But now camera thumbnail what so ever?

Sorry ! I forgot entry in config file...
Must add this if you don't want standby the merge :
https://github.com/marcelwestrahome/home-assistant-niu-component/pull/15/commits/6d73ff656a8d9bc8b19665bb94481b120d078def
Then you can add a picture card but with HACS Component named "Card Templater"
https://github.com/gadgetchnnel/lovelace-card-templater
And this Lovelace configuration (replace ... with your sensor's name)
`type: custom:card-templater
card:
type: picture
image_template: '{{states.sensor.niu_scooter_..._lasttrackthumb.state}}'
tap_action:
action: none
hold_action:
action: none
entities:

sensor.niu_scooter_..._lasttrackthumb`

That works perfect, thanks!


Seg fault on skin element?

I don't know if this is from dm_control or MuJoCo, but rendering with glfw on mac gives my segfault when I try to use <skin/>.
Sample script
from dm_control import mjcf
from dm_control import composer
from dm_control import viewer
from dm_control import suite

width = 320
height = 240
mjcf_str = """
<mujoco model="parent">
    <asset>
    <texture builtin="checker" height="512" name="texplane" rgb1=".2 .3 .4" rgb2=".1 0.15 0.2" type="2d" width="512"/>
    <material name="floorplane" reflectance="0.5" texrepeat="1 1" texture="texplane" texuniform="true"/>
    </asset>
    <worldbody>
        <geom type="box" pos ="0.5 0 0.3" size="0.5 0.02 0.1" rgba="0 1 0 1"/>
        <geom condim="3" material="floorplane" name="floor" pos="0 0 -0.7" size="3 3 .125" type="plane"/>
        <body>
            <composite type="grid" count="9 9 1" spacing="0.05" offset="0.5 0 0.5">
                <skin material="floorplane"/>
                <geom size=".02"/>
            </composite>
        </body>
    </worldbody>
</mujoco>"""
world = mjcf.from_xml_string(mjcf_str)
world_entity = composer.ModelWrapperEntity(world)
task = composer.NullTask(world_entity)
task.control_timestep = 0.02
env = composer.Environment(task)
viewer.launch(env)

This works fine for me on Debian. @saran-t Did you have any luck reproducing this on a Mac?


Restructure dunner file to incorporate global variables/arguments

Is your feature request related to a problem? Please describe.
Sometimes it is required for the user to use the same environment variables over multiple steps and/or multiple tasks.
Describe the solution you'd like
There should be a way of defining different levels of scope of the variables. The variable can be defined for all the tasks, or all the steps of task, and so on. The variable value can be overridden based on the scope.
Also, it is required that some default arguments must be passed to all the steps of the task, through which, if user does not define the required nth argument, $n takes defaultArgs[n] value.

A sample .dunner.yaml would be,
envs:
    - AWS_ACCESS_KEY_ID=`$AWS_KEY`
    - AWS_SECRET_ACCESS_KEY=`$AWS_SECRET`
    - AWS_DEFAULT_REGION=us-east1
mount:
    - '~/.aws:~.aws:r'
tasks:
    status:
        steps:
            - image: mesosphere/aws-cli
              commands:
                - [aws, 'elasticbeanstalk describe-events --environment-name $1']
    deploy:
        envs:
            - API_BASE=api.example.com
        steps:
            - image: emeraldsquad/sonar-scanner,
              commands:
                - [sonar, scan]
            - image: golang
              commands:
                - [go, install]
            - image: mesosphere/aws-cli
              commands:
                - [aws, 'elasticbeanstalk update-application --application-name myapp']

Closed with reference to #148


fix hex encoded seq num issue when sn is greater than 10

fix "too large to encode" hex seq num issue when sn is greater than 10
add singlesig-rot-bulk.test.ts to test sn greater than 10

This was fixed in a conflicting way in development through https://github.com/WebOfTrust/signify-ts/pull/216. This has a nice integration test added though.


links and notes in students array and single student object

Awesome work by @chrisipanaque working on knex queries


Cannot delete a service instance if shared

Command
$ cf ds shared-kafka -f
Deleting service shared-kafka in org system / space dev as admin...
FAILED
Server error, status code: 422, error code: 390002, message: Service instances must be unshared before they can be deleted. Unsharing shared-kafka will automatically delete any bindings that have been made to applications in other spaces.

I also cannot just unshare the service:
$ cf unshare-service shared-kafka
Incorrect Usage: the required flag `-s' was not specified

What occurred
I have shared a service instance with another space. Or a hundred spaces. Across many orgs. I'd now like to delete that service instance. I'd expect cf ds shared-kafka -f to do this; but it fails, instead complaining I must first unshare the service instance.
And cf unshare-service doesn't work without explicitly iterating across all space/org combinations.
So you have to run cf unshare-service for all the permutations; but the CLI doesn't have a way to find all the places you've shared the service afaict.
$ cf help -a | grep share
   create-shared-domain                   Create a domain that can be used by all orgs (admin-only)
   delete-shared-domain                   Delete a shared domain
   share-private-domain                   Share a private domain with an org
   unshare-private-domain                 Unshare a private domain with an org
   share-service                      Share a service instance with another space
   unshare-service                    Unshare a shared service instance from a space

@drnic You can see where a service is shared in the updated output of the service command. Example:
$ cf service sharing-service1
D:\Users\koperd\Downloads\bin>cf service service1
Showing info of service service1 in org org1 / space dev as admin...

name:            sharing-service1
service:         postgres
bound apps:      myapp
tags:
plan:            small
description:     Dummy addon that is cool
documentation:
dashboard:

shared with spaces:
org    space     bindings
org2   space2    2
org3   spaceB    1
...

Showing status of last operation from service service1...

status:    create succeeded

@drnic This is desired behaviour. We wanted users to explicitly unshare a service instance before they delete it. This was to avoid a user unknowingly deleting a shared service instance and removing the application bindings. This is the same behaviour for when you try to delete a service that has existing same-space bindings.
As @jbpivotal mentioned, you can use cf service to discover locations of share and then you can unshare the service by passing the space name to the command.
e.g.
$ cf service sharing-service1
Showing info of service service1 in org org1 / space dev as admin...

name:            sharing-service1
service:         postgres
bound apps:      myapp
tags:
plan:            small
description:     Dummy addon that is cool
documentation:
dashboard:

shared with spaces:
org    space     bindings
org2   space2    2
...

Showing status of last operation from service service1...

status:    create succeeded
$ cf unshare-service sharing-service1 -s space2
OK

Does the ?recursive=true query parameter when deleting a service instance also delete shared service instances and their bindings/keys similarly to how it deletes related service bindings/keys?

@rboykin Not at the moment. As share & unshare were added as experimental features to the CC v3 API we did not follow the V2 pattern to support the recursive query parameter. This may be something we support in the future though.

Thanks for answers!


Open source the WPF Application localization tool (LocBaml)

This is the initial commit of the PoliCheck'd LocBaml tool with an SDK-style project and updated copyright headers.  The project currently builds for .NET Framework only and will need to be updated to multi-target .NET Framework and .NET core (some minor porting is required).  +@vatsan-madhavan, @rladuca

/cc @mairaw, @weltkante

An issue for the porting task is here: https://github.com/Microsoft/WPF-Samples/issues/85

Awesome! Should we delete https://github.com/Microsoft/WPF-Samples/tree/master/Globalization and Localization/BAML Loc/LocApp?


@radically-straightforward/html errors if interpolated value is not a string.

Right now, this code will cause an unintuitive error:
console.log(
  html`
    <p> ${5} </p>
  `
) // TypeError: text.replaceAll is not a function

The work around is always to wrap your interpolated values that aren't strings (be it with String(), .toFixed, et cetera).
The fix would be in line 120, 124 128, and 130. Wrap the substitutionPart / substitution with String().

Hi @u-train,
Thanks for reaching out.
As it turns out, this is intentional.
In TypeScript you’ll get a friendly error message “Argument of type 'number' is not assignable to parameter of type 'string | string[]'.”
In JavaScript we don’t do a runtime check because it’s extra work and generating HTML is one of most common things we do on a server, so every bit of work counts.
And we don’t do a coercion like you mentioned because it often leads to issues when you forget to access a property of an object, for example, ${user} when you really meant ${user.name}.

That's understandable, thank you for responding!


7a/liblink: compare-with-immediate 0 misassembled

"CMP $0,R13" in a .s file ends up being assembled as:
1c:	eb2001bf 	cmp	x13, w0, uxtb
which is not at all the right thing (gnu as assembles "cmp x13, #0" as "f10001bf 	cmp	x13, #0x0")

I'm confused about this, why should a $0 constant have a->reg=REGZERO instead of a->reg=NREG, like $42 does. aclass only cares about its value when emitting C_ZCON (at least in the current code). How exactly is the broken code generated?


Handle module.file == None

It's been discovered that some modules have the __file__ property being set as None. An example of a such module is backports.
Providing None to os.path.abspath() causes an exception: TypeError: expected str, bytes or os.PathLike object, not NoneType
Related to

https://github.com/mitogen-hq/mitogen/issues/946

Has been used in the Nix environment:

Python 3.11.8
Ansible 2.13.13
Mitogen 0.3.4 (with this patch)

Looking at the errors at one of the failing workflows (https://dev.azure.com/mitogen-hq/mitogen/_build/results?buildId=671&view=logs&j=38fb768a-91bc-52fb-9300-923df8625209&t=0744b325-ce4a-569b-7cdc-1da0e44989ad&l=25)
ERROR: FAIL could not package project - v = InvocationError('/Library/Frameworks/Python.framework/Versions/3.12/bin/python setup.py sdist --formats=zip --dist-dir /Users/runner/work/1/s/.tox/dist', 1)

Not sure it's related to the change.
Also https://dev.azure.com/mitogen-hq/mitogen/_build/results?buildId=671&view=logs&j=93c724b5-725e-5662-44a0-1d07d9df84a7&t=e0f2306a-4d86-5692-a85d-93c8590e39ad
======================================================================
ERROR: setUpClass (su_test.SuTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vsts/work/1/s/tests/testlib.py", line 625, in setUpClass
    cls.dockerized_ssh = DockerizedSshDaemon(**daemon_args)
  File "/home/vsts/work/1/s/tests/testlib.py", line 553, in __init__
    self.start_container()
  File "/home/vsts/work/1/s/tests/testlib.py", line 533, in start_container
    self._get_container_port()
  File "/home/vsts/work/1/s/tests/testlib.py", line 510, in _get_container_port
    self.port = int(bport)
ValueError: invalid literal for int() with base 10: ':]:32768'

By the way, the base branch for it is stable, please let me know if it should go to master. I can rebase.

By the way, the base branch for it is stable, please let me know if it should go to master. I can rebase.

It should be master. I've updated the PR, please rebase.

@moreati rebased onto master.
Some CI jobs are still failing, but I don't have enough knowledge to say if it's expected or not.
Please let me know if I should try reproducing it locally.

I've just asked Azure Pipelines to rerun the failed jobs. It's probably a case of flaky tests, they're taking 1 or 2 reruns to get 100% green. Thought I had a ticket for it ...
In general one can trigger rerun of all Azure Pipelines jobs in a github project by adding a comment with "/AzurePipelines r-u-n", without the dashes. https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#comment-triggers

The __file__ attribute exists there, but it's None
Similar to something like
class X:
    def __init__(self):
        self.attr = None

x = X()
a = getattr(x, 'attr', 'default value')
print(a)
// prints None

Then, if not handled, the following happens
modpath = os.path.abspath(None)

and causes the error
>>> import os
>>> os.path.abspath(None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen posixpath>", line 399, in abspath
TypeError: expected str, bytes or os.PathLike object, not NoneType

Added https://github.com/mitogen-hq/mitogen/wiki/import-and-importlib-notes and mentioned this.

Hunting for other cases that might need fixing

mitogen.master.DefectivePython3xMainMethod.find() looks okay
mitogen.master.DefectivePython3xMainMethod.find()looks okay
mitogen.core looks okay
mitogen.compat.pkgutil is close to retirement/removal


Much Needed Love

There has been some house cleaning needed here:

I have updated the code to support python3
Included changes made by @dekanfrus
Included changes made by @sleventyeleven

Tested the null and secure modes. Test environment had null insecure and secure LDAP blocked. I recommend adding a requirements.txt with python-ldap in the text file.
Will test the authenticated query soon and in Python3.9. Python2.X still appeared to work.


Bezier line graphs?

Just wondering if your library is able to make line graphs use bezier lines instead of just straight lines?

I need to learn a bit more about the ART/Path API to get this right. Feel free to educate me or open a PR :)

Same but I just looked it up and I think this might be what you need: https://github.com/sebmarkbage/art/blob/master/core/path.js
Check out the curveTo method, it creates the bezier curve.

Awesome. My plan will be to support the following:
interpolation: 'straight' | 'bezier'
Does straight make sense in contrast to bezier? Or is there a better name 😄

Yeah, I can't think of anything else other than straight lol.

Also very interested in this feature!

Just what I was looking for!

Any update on this guys ?

+1

As a generic FYI — I am no longer able to maintain this library. I recommend checking out victory-native as it's much more maintained.


Couchbase and YugaByte test fixtures aren't disposing connections

I just noticed that the CadenceFixture and YugaByteFixture xunit test fixtures aren't explicitly disposing connections when the fixtures reset when stopping or restarting.  This could potentially result in an accumulation of connections during unit testing.  This is an easy fix.

Closing this because the fix wasn't that easy and frankly, the accumulation of many connections during unit testing is unlikely.