[Backport 2.9] ranchercli - readable warning that give no meaning on windows

Backport :https://github.com/rancher/rancher/issues/46769

@HarrisonWAffel this will need a new CLI RC in order to properly test this.

Validated that the CLI version v2.9.5-rc.1 addresses this issue. See details below:
ENVIRONMENT

Rancher CLI version: v2.9.5-rc.1

TEST RESULT

#
Scenario
Test Result

1
Validate any CLI operation does not give irrelevant warnings due to OS permission differences
:white_check_mark:


Fix broken links in generated pages

It was pointed out recently that the links on the forms page in the github pages /forms/index.html page were all wrong.  Same deal with the "Home" link at the top of the page.
They worked locally, but not once they were generated online.
Now they work everywhere.
🎉

👍 Looks legit.


"contentServer.port" does not fallback to a random port when the given port is unavailable

reboost: 0.10.1, default reboost.js in default location
Although contentServer.port is not set, the port used is not random but always 8000.

Well, actually it uses any available port. If no port is given it starts finding from 8000 then 8001 and increments the number until it's an available port. That's why it's like this.


DS18B20 Waterproof Temperature SONOFF sensor

Have you test this waterproof sensors? I'm having some differences between 2 similar sensor and to far from a digital or mercury thermometer I used as reference.

I haven't, actually. But it would be a good one to look into.

I'm getting Family D2 (Clone w/o parasitic power) from those waterproof sensor? What that this mean? There are not realiable? I want to log temperatures around 5 celcius from inside a refrigerator and I need to be a realiable measure.

Please see the plot I added to the page just now that shows the temperature errors of sensors we measured at 0 C. The sensor you mention is in the D2 (97) group. Also, we had a few sensors with ROM patterns 28-xx-xx-94-97-0E-03-xx, one of which read +1 C in an ice-water bath.
My interpretation of this plot is that readings of your sensors could be anywhere from spot-on to wrong by as much as a degree or two at 0 C.


Make EmptyLinesAroundBody mixin work for the whole family of cops

Some more housekeeping.
Because of how the starting- and ending lines were referenced in the EmptyLinesAroundBody mixin, EmptyLinesAroundBlockBody was considered a special case, and needed its own implementation.
This change makes EmptyLinesAroundBody work for any node type, and allows us to remove the custom logic from EmptyLinesAroundBlockBody.
It also improves the examples a bit.

👍


Fix flakey admin Cypress tests

Description
I believe the flakey tests we have been seeing in adminUsers.js and
webhookSubscriptions.js are due to them always being together in the
same parallel run. From what I can tell, all builds are running the
exact same groups of tests in the same order and in the same parallel
runs.
It just happens that the only parallel run with 2 tests that are both
from the admin folder is Parallel Run 0, which runs both adminUsers.js
and webhookSubscriptions.js one after the other. And because we had
backend code that would redirect to the admin home page if a session
already existed, and because Cypress did not automatically clear the
session in between tests, these were the tests that failed often.
When then added calls to clear cookies before the webhook subscription
tests, but the order in which the call to clear the cookies was made
got botched during a merge conflict. In the second webhook subscription
test (Details Show Page), cookies were cleared before preparing the
admin app, which cause this test to start failing again.
To hopefully solve this once and for all, I've removed the backend
redirect because it causes more confusion than it does anything useful.
I also replaced clearAllCookies with cy.logout() and I added
calls to logout in other admin tests for good measure. With the
backend change, it shouldn't be necessary to logout but I added it as
an extra safety measure. The clearAllCookies command we added uses an
undocumented and unsupported Cypress option, so I thought it's best to
stick with our custom logout command.
Reviewer Notes
Is there anything you would like reviewers to give additional scrutiny?
Setup
Add any steps or code to run in this section to help others prepare to run your code:
echo "Code goes here"

Code Review Verification Steps

[ ] If the change is risky, it has been tested in experimental before merging.
[ ] Code follows the guidelines for Logging
[ ] The requirements listed in Querying the Database Safely have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change
this article explains more about the approach used.

Screenshots
If this PR makes visible UI changes, an image of the finished UI can help reviewers and casual
observers understand the context of the changes. A before image is optional and
can be included at the submitter's discretion.
Consider using an animated image to show an entire workflow instead of using multiple images. You may want to use GIPHY CAPTURE for this! 📸
Please frame screenshots to show enough useful context but also highlight the affected regions.

Warnings

:warning:
Please add the JIRA issue key to the PR title (e.g. MB-123)

  Generated by :no_entry_sign: dangerJS against fc5f87506004a331d7a6e4ff32a199fc2990e108


support sharing search queries

The share handler should support sharing search queries.

Proposal from discussion with Aaron:

- document current "share" claim schema
- augment share claim schema to instead of "target" have a
"searchTarget" or some key whose value is a *search.SearchQuery JSON (with an
expression or constraint)
- normal share handler auth applies
- if you fetch /share/sha1-hashofsearchquery you see the raw share claim
- if you add ?mode=search you get the search results
- when you fetch transitive resources (if transitive is true), you use the top-level
search in your 'via' path
- we probably want a ?mode=describe too. maybe that's controlled by transitive. or the
search that's shared gets to set the describe rules that are allowed

Allowing search-based shares would open things up enormously, as long as describe is supported somehow. Would review/testing of https://camlistore-review.googlesource.com/#/c/3836 help?

I'll have a look at that CL again to see how current/useful it is, and if it is, then yes, any comment would at least help me :-)
That said, I think that concept has been set on the back burner so I don't know how much we want it. it definitely isn't planned for 0.9 in any case.

In that case https://camlistore-review.googlesource.com/#/c/3737/ seems early

Next release (0.10) will focus on sharing:
https://twitter.com/bradfitz/status/593943110649942016
On Tue, Jun 16, 2015 at 12:10 PM, Eric Drechsel<EMAIL_ADDRESS>wrote:

In that case https://camlistore-review.googlesource.com/#/c/3737/ seems
early
—
Reply to this email directly or view it on GitHub
https://github.com/camlistore/camlistore/issues/512#issuecomment-112532245
.

awesome!


Get capillary pressure curves when using InvasionPercolation

Dear @jgostick  and @TomTranter,
How are you? I have some questions about the OpenPNM. First of all, I would like to thanks for your contribution to OpenPNM. It is a very useful software for me.
Here, I am just wondering how to get the capillary pressure curves when I use invasion percolation. It seems that there is no subclass such as plot_primary drainage curves as Ordinary percolation.
Also, if I want to simulate the hysteresis of the water retention curve. My current approach is to simulate the drainage case by using bond-percolation while to simulate the wetting case by using site percolation (ink bottle effect). How does the drainage case connect to the wetting case ( a full drainage and wetting cycle)? Would it be possible for simulating the scanning curves?
Appreciate your help to answer my questions. Many thanks
Best Regards,
Zhang

Hi @deep3214,
InvasionPercolation can return results for a given invading phase saturation. This is a dictionary containing the pore and throat occupancy. These can be used to generate the capillary pressure curve but actually it's a little tricky so apologies for that. The algorithm stores invasion_pressure and you would need to look for the highest value in the pores and throats that are occupied for a given saturation. We could make the function a little more user friendly by passing a pressure to the results function or indeed building a wrapper for it to generate the curve. @jgostick I'm not sure why this wasn't provided. Maybe as InvasionPercolation is supposed to be a very basic implementation that users can customize. MixedInvasionPercolation is more complex with more options and has the ability to generate the curve and also start from a partially filled network so its probably worth you looking at that instead. I am yet to provide an example on how to use it but there are actually lots of smaller examples in our tests that you can look at for now. https://github.com/PMEAL/OpenPNM/blob/master/tests/unit/algorithms/MixedPercolationTest.py

Hi @TomTranter,
Thanks for your response.  I will definitely look into the mixedInvasion Percolation.
Thanks again for your help.
Best regards,
Zhang


Allow setting target directory

When using workspaces, it is important that the target directory of
different NIF crates matches. Otherwise, dependencies will be compiled
multiple times. By allowing to set the target directory, we can ensure
that NIF crates are compiled to the same directory, making cargo
workspaces usable.

Thanks!


[Gekidou] [WIP] Data handlers

Summary
Groups fetched during the autocomplete are saved locally.
The @ mention in posting messages makes a call to getGroupsForAutocomplete; which usually returns a few groups. While this method still returns the Promise<Group[]>, it also passes this off to getAssociationsForGroups, where the Memberships (Users), Channels and Teams for each of the groups is fetched and saved locally.
To-do:

[ ] Delete existing related data before saving newly fetched data for group associations.

Ticket Link
https://mattermost.atlassian.net/browse/MM-43983
Checklist

[x] Added or updated unit tests (required for all new features)
[ ] Has UI changes
[ ] Includes text changes and localization file updates
[ ] Have tested against the 5 core themes to ensure consistency between them.

Device Information
This PR was tested on:
Screenshots

Release Note

@enahum / @avinashlng1080 / @larkox - This is still a WIP but I thought I'd get your thoughts now while it waits for the other PR's to merge.

Closing this for smaller ones based on updated work; see https://mattermost.atlassian.net/browse/MM-43772


Github draft blog is out of date

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
Step six here
When someone wants to open a Draft Pull request, he can't find a button to do so. He will have to open the Pull request, and then make it Draft.
Also there is no documentation on the internet about where to find this button. And the documentation in https://github.blog/2019-02-14-introducing-draft-pull-requests/ is completely out of date.
What part(s) of the article would you like to see updated?
I would like to have the whole article removed and replaced by a new one
Additional information
No response

@bashirmindee Thanks so much for opening an issue! I'll triage this for the team to take a look :eyes:

@bashirmindee Thanks again for opening this issue! ✨
The blog post you linked to is dated 2019. GitHub blogs are snapshots of a feature or improvement and will become outdated as the feature is updated. These blogs announce features as opposed to documenting them.
Draft pull requests are available in public repositories with GitHub Free for organizations and public and private repositories with GitHub Team, GitHub Enterprise Server 2.17+, and GitHub Enterprise Cloud. For more information, see "Draft pull requests."
I hope that clears up any questions you have. I'm going to go ahead and close this issue now. 💛


updating mendel middleware route config

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

👍


[#4667] Fix auto-tuning algorithm to update when parameters are changed

When any of the parameters of segment auto-tuning are changed, we currently
miss picking them up, since we cache the FlushThreshodUpdater in
memory in the controller. A controller restart will pick up the
new parameters, but we can do better.
Changed the auto-tuning mechanism to take parameters on every call, so
that we can recognize chantges and act accordingly.
Extra logic added:
We used to consider that we hit the time limit any time when the
number of rows in committing segment is lower than the target
we set for it. Now, we also check that the target segment size
must be lower than the desired size. If the target segment size
is higher (most likely because the operator set it higher),
we need to fall through to the computation based on ratio.
Further,
When we hit the time limit in the committing segment, it may
be the case that the new time limit is even lower than the time we
spend consuming the segment being committed.
In that case, we should reduce the number of rows consumed by
the committing segment (as per the average consumption rate)
before applying the standard multiplier when we hit the time limit.
Some examples are useful, since the logic is a bit involved:
Assume segment size was set to 200M, and time limit was 3h, and we
set the number of rows to 4M, and let a segment start consuming.
Case-1:
While it is consuming, the operator  changes the optimal segment
size to 180 M.
The segment comes back with a 190M size after hitting the time limit.
and consumes 3.8M rows.
Previously, we would have increased the number of rows as 3.8M * 1.1
After this change, we will fall through to computing the rows using the
ratio (and effectively reduce the number of rows).
Case 2:
The operator changes the time limit to 1 hr.
The segment comes back the same way as before, 190M size, 3.8M rows
consumed in 3 hrs.
Previously, we would have treated this as a time limit hit, and
increased the number of rows to 3.8M * 1.1
After this change, we will assume that the segment actually consumed
(3.8M * 1 hr)/3hrs (i.e. approx 1.3M rows, and then apply the multiplier,
getting a value of about 1.4M rows target.

Codecov Report

Merging #4679 into master will decrease coverage by <.01%.
The diff coverage is 91.42%.

@@             Coverage Diff              @@
##             master    #4679      +/-   ##
============================================
- Coverage     64.54%   64.53%   -0.01%
  Complexity       16       16
============================================
  Files          1056     1056
  Lines         56192    56197       +5
  Branches       8331     8332       +1
============================================
+ Hits          36268    36269       +1
- Misses        17236    17237       +1
- Partials       2688     2691       +3

Impacted Files
Coverage Δ
Complexity Δ

...realtime/segment/DefaultFlushThresholdUpdater.java
100% <ø> (ø)
0 <0> (ø)
:arrow_down:

.../core/realtime/PinotLLCRealtimeSegmentManager.java
70.61% <100%> (+0.09%)
0 <0> (ø)
:arrow_down:

.../realtime/segment/FlushThresholdUpdateManager.java
100% <100%> (ø)
0 <0> (ø)
:arrow_down:

...segment/SegmentSizeBasedFlushThresholdUpdater.java
73.23% <88.88%> (+2.47%)
0 <0> (ø)
:arrow_down:

...he/pinot/core/query/pruner/ValidSegmentPruner.java
57.14% <0%> (-28.58%)
0% <0%> (ø)

.../apache/pinot/core/transport/DataTableHandler.java
88% <0%> (-12%)
0% <0%> (ø)

...elix/core/relocation/RealtimeSegmentRelocator.java
30% <0%> (-10%)
0% <0%> (ø)

.../apache/pinot/common/config/RealtimeTagConfig.java
93.33% <0%> (-6.67%)
0% <0%> (ø)

.../impl/dictionary/LongOffHeapMutableDictionary.java
66.66% <0%> (-6.46%)
0% <0%> (ø)

...org/apache/pinot/client/DynamicBrokerSelector.java
69.69% <0%> (-3.04%)
0% <0%> (ø)

... and 19 more

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 492d780...a7bfca7. Read the comment docs.


i18n(fr): add guides/syntax-highlighting.mdx & update configuration-reference.mdx

Description (required)
Adds changes from #9888:

Translates the new guide for syntax highlighting in French
Updates the Shiki section in configuration-reference.mdx (with a fix not yet released for backticks, see #9924)

Related issues & labels (optional)

Suggested label: i18n

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

fr
guides/syntax-highlighting.mdx
Localization added, will be marked as complete.

fr
reference/configuration-reference.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Incorrect path generated for index.md files

After enabling markdown in Rules, path/index.md files are incorrectly generated to path/index/index.html path instead of index.html.  This is especially problematic when using index.md for the root page of a site.
This patch updates the template for Rules:
--- a/nanoc-cli/lib/nanoc/cli/commands/create-site.rb
+++ b/nanoc-cli/lib/nanoc/cli/commands/create-site.rb
@@ -52,7 +52,7 @@ module Nanoc::CLI::Commands
       #compile '/**/*.md' do
       #  filter :kramdown
       #  layout '/default.*'
-      #  write item.identifier.without_ext + '/index.html'
+      #  write (item.identifier.without_ext + '/index.html').sub(/index\\\/index.html/, 'index.html')
       #end

       compile '/**/*' do

Yep — this is buggy.
Alternatively (and more verbosely, though arguably easier to read):
if item.identifier =~ '/index.*'
  write ext: 'html'
else
  # We write all items into its own directory with an index.html file,
  # except the root index.* file, which needs to remain at the root –
  # otherwise, /index.md would end up as /index/index.html.
  write item.identifier.without_ext + '/index.html'
end

I added a comment, because I feel that it’s necessary to explain this in more detail. I’ll give this some more thought.

That alternative definitely reads easier than my band-aid, but the condition didn't match.  This condition worked:
  if item.identifier.match?(/\/index\..*/)

It looks like this bug also pops up if I put an index.html in a sub-directory (e.g., /images/index.html), and I'm not sure of a clean way to handle both html and md blocks.
The first compile block handles the case of index.html at the root of the site, so clearly someone noticed this problem before.

@ddfreyne Does this change actually work correctly with Markdown (.md) files?  I just began trying out nanoc today (4.11.18) and after uncommenting the example Rules entry for Markdown, the result is as follows -- note the file extension in output:
~/nanoc/blog $ ls -l content
total 8
-rw-r--r-- 1 jdc jdc  881 Jul 12 18:01 index.md
-rw-r--r-- 1 jdc jdc 1006 Jul 12 17:56 stylesheet.css
/nanoc/blog $ nanoc nanoc
Loading site… done
Compiling site…
      create  [0.08s]  output/index.md
      create  [0.00s]  output/stylesheet.css

Site compiled in 0.10s.

If I rename index.md to index.html (ignore the fact it's a Markdown file), the output filename is correct.

What I found worked correctly is below; it's the write ext: 'html' that did it.
compile '/**/*.md' do
  filter :kramdown
  layout '/default.*'

  if item.identifier =~ '**/index.*'
    write ext: 'html'
  else
    write item.identifier.without_ext + '/index.html'
  end
end

Directory layouts and results:
~/nanoc/blog $ find content/ -ls
 25561166      4 drwxr-xr-x   4 jdc      jdc          4096 Jul 12 18:34 content/
 25692253      4 drwxr-xr-x   2 jdc      jdc          4096 Jul 12 18:35 content/bar
 25692254      4 -rw-r--r--   1 jdc      jdc            65 Jul 12 18:35 content/bar/index.html
 25561186      4 -rw-r--r--   1 jdc      jdc           883 Jul 12 18:23 content/index.md
 25692248      4 drwxr-xr-x   2 jdc      jdc          4096 Jul 12 18:23 content/foo
 25692249      4 -rw-r--r--   1 jdc      jdc            52 Jul 12 18:23 content/foo/index.md
 25561174      4 -rw-r--r--   1 jdc      jdc          1006 Jul 12 17:56 content/stylesheet.css
~/nanoc/blog $ rm -fr output
~/nanoc/blog $ nanoc nanoc
Loading site… done
Compiling site…
      create  [0.01s]  output/bar/index.html
      create  [0.08s]  output/index.html
      create  [0.00s]  output/foo/index.html
      create  [0.00s]  output/stylesheet.css

Site compiled in 0.10s.


Please don't use the contrib- prefix

grunt-contrib-* is a special naming convention the grunt team uses to mark plugins which they create themselves. From the guidelines:

The grunt-contrib namespace is reserved for tasks maintained by the Grunt team, please name your task something appropriate that avoids that naming scheme.

So I'd suggest you to rename your task. This has been a reason to blacklist plugins from the gruntjs.com site as well.
Please see https://github.com/gruntjs/gruntjs.com/pull/160

Friendly ping @darthwade

Why did you close this, @darthwade? It's still alive: https://www.npmjs.com/package/grunt-contrib-environment.

Done


Move to NeoPixelBus library

It is my understanding that a move to a newer library would benefit future users. At this point, nothing heavy is relied upon so any library can be swapped in fairly painlessly. I think NeoPixelBus is a good choice as it is based on the same cnlohr I2S code originally used here and makes use of DMA with a memory buffer.
This change would require users to add the NeoPixelBus library as a dependency.

Thanks, this looks good! I'll try to integrate this into the next update.
I'm curious whether there is a simpler and faster way to parse the UDP packets. The experimental branch is using this packet encoding scheme:
|r0|g0|b0|r1|g1|b1|r2|g2|b2|...|rN-1|gN-1|bN-1|

Where N is the number of pixels and the values rn, gn, bn are unsigned bytes indicating the brightness of the color channel for the nth pixel [0, 255].
I might be wrong, but I think the packet encoding scheme is the same as the array structure used by the NeoPixelBus LED strip object. The order of the color channels might be different though (rgb, rbg, etc).
Calling strip.Pixels() returns a pointer (uint8_t*) to the location of the NeoPixelBus array object.
Right now we are reading the packet into the packet buffer and then copying each pixel value into the NeoPixelBus object:
port.read(packetBuffer, BUFFER_LEN);

But if our packet encoding scheme is the same as the NeoPixelBus array structure, we could just write the packet directly into the pixel array:
port.read(strip.Pixels(), BUFFER_LEN);


Update bundled ACE editor to 1.2.6

I've updated the bundled ACE editor to 1.2.6.
I've included the changelog below, but most notably is the inclusion of PHP 7 syntax support.
ACE Changelog
2016.12.03 Version 1.2.6

Fixed IME handling on new Chrome
Support for php 7 in the syntax checker

2016.08.16 Version 1.2.5

Fixed regression in noconflict mode

2016.07.27 Version 1.2.4

Maintenance release with several new modes and small bugfixes

2016.01.17 Version 1.2.3

Bugfixes

fix memory leak in setSession (Tyler Stalder)
double click not working on linux/mac

new language modes

reStructuredText (Robin Jarry)
NSIS (Jan T. Sott)

2015.10.28 Version 1.2.1

new language modes

Swift
JSX

2015.07.11 Version 1.2.0

New Features

Indented soft wrap (danyaPostfactum)
Rounded borders on selections

API Changes

unified delta types {start, end, action, lines}  (Alden Daniels https://github.com/ajaxorg/ace/pull/1745)
"change" event listeners on session and editor get delta objects directly

new language modes

SQLServer (Morgan Yarbrough)

2015.04.03 Version 1.1.9

Small Enhancements and Bugfixes

Thanks


Add CONTRIBUTING.md

Fix for #33

Can add more topic/info if needed.

Thank you! Great addition :)

Thanks for merging.


Pinned awscli breaks environment

Given this shell.nix:
let
  mach-nix = import (builtins.fetchGit {
    url = "https://github.com/DavHau/mach-nix/";
    ref = "refs/tags/3.5.0";
  }) {};
  pythonEnv = mach-nix.mkPython {
    requirements = ''
      datadog==0.10.0
      setuptools # otherwise we get ModuleNotFoundError: No module named 'pkg_resources'
    '';
  };
in
mach-nix.nixpkgs.mkShell {
  buildInputs = [
    # This works:
    # mach-nix.nixpkgs.awscli

    # This returns "ModuleNotFoundError: No module named 'datadog'"
    (import (fetchTarball https://github.com/NixOS/nixpkgs/archive/b09c989b82f7a4f7319802a1dcf8bfe859d65362.tar.gz) {}).awscli

    pythonEnv
  ];
}

Running the following:
nix-shell --run "python -c 'import datadog'"

breaks with the pinned awscli but works when using awscli from the nixpkgs in mach-nix.

your older awscli is injecting a python 3.8 into the environment, and 'python' then refers to that.
If you run 'python3.9' in the  'pinned' variant, you can import datadog.
I suppose it's an issue of shadowing.

Hmm I thought nix took care of wrapping whatever Python interpreter was necessary for each application?

Ran into this as well.
@mausch I tried mach-nix.nixpkgs.awscli2 but that errored for me. (error: attribute 'nixpkgs' missing)


Friendship request

Wanna become friends?
https://github.com/je-santos/MPLBM-UT

Hey, of course! ❤
Do you think there is a strong overlap with your repo, or could yours benefit from these functionalities in this library?

Continuing this tread on https://github.com/je-santos/MPLBM-UT/issues/63

We'll code an example on our end using one of the samples.
Another cool thing that we could do together is to have some sort of perm function in your class:
img.perm(dim='z', num_cores=10)

I'm guessing .permwould in this case compute a permeability?
Ideally I'd like to keep this fairly "load data from web and into xarray" only and have any other functionality separated out.
I have some ideas e.g. how one could go from what I can do with drd to e.g. building some machine learning datasets programmatically. But even that I would want to have separate because it adds some specific dependencies and assumes some use case.


Files: create method using Drive API V3 in PHP creating corrupted images on upload

If you are still having issues, please be sure to include as much information as possible:
Having issues when uploading .jpg file to Drive using the Files: create method in Drive API v3. Was able to reproduce using the code provided on https://developers.google.com/drive/api/v3/manage-uploads#simple. The script completes and returns a file ID for the newly uploaded file though it is unviewable.
Environment details

OS: Chrome: N/A
PHP version: 7.3

Steps to reproduce
Run the following code snippet in PHP, change the filename to a valid .jpg file
$fileMetadata = new Google_Service_Drive_DriveFile(array(
    'name' => 'filename.jpg'));
$content = file_get_contents('filename.jpg');
$file = $service->files->create($fileMetadata, array(
    'data' => $content,
    'mimeType' => 'image/jpeg',
    'uploadType' => 'media',
    'fields' => 'id'));
printf("File ID: %s\n", $file->id);

or:
$file = $request->file('Arquivos');
$Curl = new WebService_CurlCustom();
$Dados = ['file' => curl_file_create($file,$file->getClientMimeType(),$file->getClientOriginalName())];
$DadosReturn = $Curl->Url(self::GOOGLE_URL_API)
                                       ->SslVerific(false)
                                       ->Authorization('Bearer '.$this->GetNewToken())
                                       ->ContentType($file->getClientMimeType())
                                       ->ContentLength($file->getSize())
                                       ->post()
                                       ->ExecutarCurl($Dados);

Expected Result:
The image.jpg file should be uploaded to the user's Drive with no issues.
Actual result:
The file becomes corrupted and can not be viewed in Drive. It can also not be opened by external applications if downloaded to a local machine.
Using the same original file as: https://github.com/googleapis/google-api-php-client/issues/1720

Hi @rafa-guillermo,
I'm unable to replicate this issue. Using your first example, I can successfully upload and view a jpg image with no issue. Can you provide any other detail which may impact the process?

As we don't have enough information to assist in resolving this issue, I'm going to close it. If you're still having trouble, please feel free to reopen, providing the information requested, and we'll be happy to continue assisting!


Add first name, last name and email address to user table

Describe the task
Add first name, last name and email address columns to user table
Acceptance Criteria

[ ] Add new columns for first name, last name and email in the fam_user table
[ ] determine string lengths
[ ] Add string length restriction to the new columns
[ ] Update data model for admin management and backend

Additional context

Add any other context about the task here.
BCSC out of scope

From the latest IDIM web service documentation, first name and last name will have maximum 50 chars, and email will have maximum 250 chars.


doc: Allow forwarded traffic to the lxd bridge for proxy nat devices

Signed-off-by: Johan Ehnberg<EMAIL_ADDRESS>

This pull request didn't trigger Jenkins as its author isn't in the allow list.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

Documentation preview available at: https://linuxcontainers.org/lxd/docs/pr.10966/

Sorry, seems I cannot get rid of the second commit with either squash or fixup. The git docs are no t helping me here.
In GitHub, an MR can simply be marked for squashing resulting in a single commit.

I use:
git rebase -i master

Then find the commit I want to squash into the one above and change pick to f (for fixup).

Good. Going through master worked.


Quick Starts for local-connection cluster use

Probably still needs revision but trying to move it along.

Task linked: DATA-277 Take avidxchange local to dask demo and make it generally available

closing since this is stale


the confirmation box doesn't close on click anywhere

the confirmation box doesn't close on click anywhere

I changed the way this functions slightly kind of recently and it works fine for me in chrome. So either a) You have a cached version of the javascript and it's working fine or b) You're using a browser I never tested in. What browser/operating system? If you hold the shift button and click refresh next to the URL, does it fix the problem?

I have google chrome 43.0.2357.132 m windows 10 tehnical preview but it's working on simple successAlert or errorAlert is working fine but not on confirmation

Oh that's why. Yea, confirmation disables it. It's not smart enough to know if you clicked the background or the alert itself, so to prevent it from closing before you get to click the yes or no, it's disabled. This isn't really an issue, but it's not a bad idea for an enhancement. I'll consider writing a fix.

Sorry I didn't read the title close enough. I see you did specify confirmation box.

I made a 2 changes to fix this issue:
First, disable the following script at line 115 which prevents the alert box to close
/* If there are button(s), then you obviously don't want to hide the div when you alert anywhere or they'll be useless...SAME with autofocus */
//if ((typeof alert.options.btns == 'object' || typeof alert.options.btns == 'array') || alert.options.autofocus) {
//alert.options.closeOnClick = false;
//}
Secondly, the alert box should only close when clicked outside, so to fix that, change the script at line :
/* Mouseup on document */
$.fn.jAlert.onMouseUp = function(e){
	/* Find top visible jAlert and see if it has closeOnClick enabled */
    var lastVisibleAlert = $('.jAlert:visible:last');

    if( lastVisibleAlert.options.closeOnClick )
    {
        //close only if clicked outside
        if (!$(event.target).is('.jAlert *')) {
            lastVisibleAlert.closeAlert();
        }
    }

};

I hope this helps.
This plugin is awesome. Thanks VersatilityWerks...

Your contributions are appreciated. I will take them into consideration for the next version. The only thing I want to do is make sure what you're suggesting is cross-browser compatible.

I will look at adding this this weekend.

Fixed in the latest version. Thanks again!


Releases missing

Can you please do an initial release? The README points to downloading a release tarball, but none is there.

@mnasiadka , will do.

@mnasiadka , I added release, please test. Unfortunately, my OVS/OVN lab is down right now.


Error installing evalml (shap) when using python 3.6

While testing the latest release, I tried creating a new virtualenv and installing evalml but ran into the following error:
Collecting shap>=0.35.0 (from evalml)
  Cache entry deserialization failed, entry ignored
  Using cached https://files.pythonhosted.org/packages/d2/17/37ee6c79cafbd9bb7423b54e55ea90beec66aa7638664d607bcc28de0bae/shap-0.36.0.tar.gz
No files/directories in /private/var/folders/pq/zlxt5w357570xxt07x_splf40000gn/T/pip-build-7o0aqjos/shap/pip-egg-info (from PKG-INFO)

Repro steps:
python3 -m venv test_env
source test_env/bin/activate
pip install evalml

I was running Python 3.6.0.
Related issue: https://github.com/slundberg/shap/issues/830
The solutions in that issue here or here solved the error but could still be worth looking into.

Found that pip >= 18.0 and 'setuptools >= 40.0.0` works to avoid this error

@bchen1116 @angela97lin yep. I tried this with python 3.6.10 and didn't get this error, but I was able to get the error with python 3.6.0.
Thing is, adding pip>=18.0 and setuptools>=40.0.0 to core-requirements.txt doesn't upgrade pip and setuptools before installation, so it doesn't fix the problem.
So I think we should list this in our install guide, and not include this in our requirements because that doesn't help. In short, I agree with what's in your PR @bchen1116 ! Will comment there :)


Traefik IngressRoute Support?

https://doc.traefik.io/traefik/providers/kubernetes-crd/
Would it be feasible to request support for Traefik's IngressRoute kind?

Apparently, its extremely easy to do. Just setup a dummy Ingress.
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: dashboard
  namespace: homeassistant
  annotations:
    coredns.io/hostname: "hass.kube.mydomain.com"
spec:
  entryPoints:
    - web
    - websecure
  routes:
    - match: Host(`hass.kube.mydomain.com`)
      kind: Rule
      services:
        - name: homeassistant
          port: 8123

---

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: homeassistant-external-dns
  annotations:
    kubernetes.io/ingress.class: traefik
spec:
  rules:
    - host: hass.kube.mydomain.com

BUT, at least now, there is a issue for others to see, when they search for this issue/request/problem.


Canceled mousedown events causing blur

Bug report
Last week Firefox updated and stopped working with the older protractor we were using, so we updated.  However, with the new protractor, a few of our previously passing tests are now failing because canceled mousedown events are being allowed to continue.  I created a small test case on the page:
https://jsfiddle.net/vkdt0uu4/
On that page there is an input field and a button.  If you focus the input field and then click on the button, there is some JavaScript that cancels the mousedown event on the button so that the field stays focused.  This works when done by a real user.  However, when I call click() on the button element in the test, the field still gets blurred.  I don't know if this is an issue with protractor, selenium, or firefox, but I thought I would start here.

Node Version: v4.4.3
Protractor Version: 3.3.0
Browser(s): firefox 45.1.0
Operating System and Version Red Hat Enterprise Linux Workstation release 6.7
Your protractor configuration file
(none)
A relevant example test
protractor --browser firefox --specs bugSpec.js

bugSpec.js is:
describe('input field', function() {
  it('should not lose focus when the button is clicked', function() {
    browser.ignoreSynchronization = true;
    browser.get('https://jsfiddle.net/vkdt0uu4/');
    browser.switchTo().frame(browser.driver.findElement(by.tagName('iframe')));
    browser.wait(function() {
      return element(by.id('testfield')).isDisplayed();
    });
    element(by.id('testfield')).click();
    expect(browser.driver.switchTo().activeElement().getAttribute('id')).toEqual('testfield');
    element(by.id('testbutton')).click();
    expect(browser.driver.switchTo().activeElement().getAttribute('id')).toEqual('testfield');
  });
});

Output from running the test
"Expected 'testbutton' to equal 'testfield'."  (at line 12-- the second "expect")
Steps to reproduce the bug
protractor --browser firefox --specs bugSpec.js
The URL you are running your tests against (if relevant)
The test contains the relevant JSFiddle URL.

Thanks for the detailed report! This is almost certainly an issue with selenium and the latest firefox. Let me get my mind straight with the latest firefox and firefox driver and then forward the issue on.

I was able to get protractor to run Chrome (on RHEL 6.7), and found that the above test passes with Chrome.

I made a test case that uses the selenium-webdriver package directly, and saw the same problem, so I filed a bug with Selenium:  https://github.com/SeleniumHQ/selenium/issues/2136


Did you normalize signals when you calculate loss?

Hi, thanks for you great work.
I find that the loss decrease hardly  when I train your MTFAA, I dont normalize signals when I calculate loss.
Maybe I should normalize signals like 《Data augmentation and loss normalization for deep noise suppression》，I want to know your way to calculate loss.

Hi Yanggang, thanks for your attention,
I'm not sure if normalized signals work, in the paper, the loss seems to be an extension of MSE.


可以帮忙部署下么一直报错

It is impossible for developers to find out your problem by saying "error occurred" but providing no description.
Please post something useful info like error logs or screenshots.
*ryanhanwu/How-To-Ask-Questions-The-Smart-Way


DM row should not linger in left sidebar

Situation:

Open a DM conversation
Collapse the DM section -- the row for the open conversation will correctly remain visible
Click on a stream

Expected: DM conversation row should disappear
Actual: DM conversation row sometimes remains (still highlighted) for a few seconds before it disappears.

CZO thread, including some technical discussion

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot abandon

@zulipbot claim

@alya, I would like to ask if the highlight should be remove only when streams are clicked or when we switch views e.g when a user switches to Recent view or Inbox view

@zulipbot claim

I already submitted a PR

@zulipbot claim

@zulipbot assign

@zulipbot claim

Hi @jayantpranjal0, I am currently working on this and waiting for a review.

@zulipbot abandon


⚠ Bofrost.at has degraded performance

In 094eaf9, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1644 ms

Resolved: Bofrost.at performance has improved in 30f23b6.


Image parameters are not recovered

Affected Version
SS 4.8
Description
Image parameters are not recovered when we select an image to edit it.
Steps to Reproduce
In the CMS page editor, when we click on an image to "Modify the image", a new panel open at the right.
On this panel, existing alignment, width, height, alt tag, title tag, ... are not displayed.
So if I just want to modify the title for exemple, I will have to insert all the other parameters again (and remember then !)

Hi, this sounds like this issue: https://github.com/silverstripe/silverstripe-assets/issues/131 which was resolved with version 1.8.1 of silverstripe/asset-admin.
I'll close this for now, but please add another comment if you think the problem still persists. Thanks!


Convert Perfetto UI Chrome extension to v3

Hi Perfetto community, would you consider publishing your extension (https://chrome.google.com/webstore/detail/perfetto-ui/lfmkphfpdbjijhpomgecfikhfohaoine/related) to the Microsoft Edge extension store? https://developer.microsoft.com/en-us/microsoft-edge/extensions/? I'd be happy to help in any way, including contributing. Thanks.

Learned from the Edge extension team that the extension would need to be on v3: https://developer.chrome.com/docs/extensions/mv3/intro/#start-the-conversion.

Oh hey. I guess this is to allow edge tracing.
It makes sense to me. Can I just ask you folks to contribute with whatever code it takes to make the extension compatible with the Edge store (and still be compatible with Google's)?
Hopefully we can have the same source for both google store and Edge store.
@betasheet @skyostil @chromy FYI

Thanks. Steps to migrate the Chrome Extension to V3 would work consistently for Chrome & Edge. V2 extensions are on a deprecation path, even with Chrome for mid-2023: https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/.
Looking at the code for the chrome-extension and the V3 migration guide, there are possibly changes needed for actions - https://developer.chrome.com/docs/extensions/mv3/mv3-migration-checklist/#api-browser-action-js.

The plugin should now be v3 as it's still in the store.


[Google Chrome] Cannot search code-server tabs

Extension
https://www.raycast.com/Codely/google-chrome
Raycast Version
1.74.0
macOS Version
14.1
Description
Error:
Error: Issue with tab: 'Get Started — custom_tools — code-server~~~https://arnold-proxy-i18n.tiktok-row.org/p46cdf2b620da86aa4c8a39a5447298a9/?folder=/mnt/bn/tns-xinqi-arnold/repos/custom_tools~~~~~~1155867824~~~1'
Command failed with exit code 1: osascript -e
    tell application "Google Chrome"
      activate
      set _wnd to first window where id is<PHONE_NUMBER>
      set index of _wnd to 1
      set active tab index of _wnd to 1
    end tell
    return true

113:135: execution error: Google Chrome got an error: AppleEvent handler failed. (-10000)

Command failed with exit code 1: osascript -e
    tell application "Google Chrome"
      activate
      set _wnd to first window where id is<PHONE_NUMBER>

Install a vscode web code-server.
Using raycast to search code-server will trigger error.
Steps To Reproduce
Open a vscode code server in chrome browser and install it as a standalone window (tab).
Using raycast to search for the code-server tab will trigger error.
Current Behaviour
Using raycast to search code-server will trigger error.
Expected Behaviour
Should be able to search code-server tabs as the web code-server is also a web tab.

I lack experience with vscode code servers and installing them as tabs. Given that vscode is a code editor, you might be the best person to fix this @zhuxinqimac


Remove Aeotec ZW175-C

Removed due to forcing users to exclude and include device again.
The firmware change was on the larger side causing the security keys to be wiped. If this gets fixed in the future, then the update will be brought back into the ZWaveJS database.

For those who find that PR:
To update the FW manually, you need to follow the guide in:
https://aeotec.freshdesk.com/support/solutions/articles/6000270359-update-smart-switch-7-eu-v1-03-zw175-c- using Simplicity Studio and mandatory deselect all security options on first adding.
When you have finally added the device via SS again post upgrading, you need to remove it AND readd it via zwave-js. Else you will NOT get all device info and config options. Drove me nuts...

@mmattel No need for Simplicity Studio, you "just" need to factory reset the device after the update and re-include it.


added parse limits to iframely parsing with a default of 3

It is possible to cause a NodeBB to lock up due to CPU resource exhaustion if you pass in a raw post with hundreds (maybe thousands) of links.
This change limits it to a default of 3, with ACP adjustable value.

LGTM, this should be added against stuff like


suppor for register arrays

cc @istankovic

@homunkulus r+

:pushpin: Commit 8a99ce0 has been approved by japaric

:hourglass: Testing commit 8a99ce0 with merge 8a99ce0...

:sunny: Test successful - status-travis
Approved by: japaric
Pushing 8a99ce0dafed9446ea4d9288360e26428ada6d61 to master...


New package: Huorong.HuorongSecurity version <IP_ADDRESS>

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

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

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

Microsoft Reviewers: Open in CodeFlow

@microsoft-github-policy-service agree

close since always exit with code 2

https://bbs.huorong.cn/forum.php?mod=viewthread&tid=129437


Nest: requests.packages.urllib3.connectionpool: Resetting dropped connection

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.22.1 on AiO installer on Pi3.
Python release (python3 --version):
3.4.2
Component/platform:
Nest Component
Description of problem:
Getting the errors below for all Nest-related URLs. Confirmed that my DNS is forwarding the requests, and that my firewalls aren't blocking the requests. I can psping the URLs from my home network.
16-06-28 22:21:00 requests.packages.urllib3.connectionpool: Resetting dropped connection: czfe04-front01-iad01.transport.home.nest.com
16-06-28 22:21:01 requests.packages.urllib3.connectionpool: Resetting dropped connection: apps-weather.nest.com
16-06-28 22:25:30 requests.packages.urllib3.connectionpool: Resetting dropped connection: czfe04-front01-iad01.transport.home.nest.com
16-06-28 22:26:00 requests.packages.urllib3.connectionpool: Resetting dropped connection: apps-weather.nest.com
16-06-28 22:30:00 requests.packages.urllib3.connectionpool: Resetting dropped connection: czfe04-front01-iad01.transport.home.nest.com
16-06-28 22:31:00 requests.packages.urllib3.connectionpool: Resetting dropped connection: apps-weather.nest.com
16-06-28 22:35:00 requests.packages.urllib3.connectionpool: Resetting dropped connection: czfe04-front01-iad01.transport.home.nest.com
16-06-28 22:35:00 requests.packages.urllib3.connectionpool: Resetting dropped connection: czfe04-front01-iad01.transport.home.nest.com

Expected:
No dropped connections would be preferred.
Problem-relevant configuration.yaml entries and steps to reproduce:
nest:
  username: <user>
  password: <pass>

Start hass
Wait.
Profit.

Traceback (if applicable):
N/A - no traceback available.
Additional info:
Nest component appears to be working properly, my logs are just filled with that dropped connection error.

Hello @ryanborstelmann,
This message is a standard output for the requests library. Resetting a very active connection is a command practice from vendors that exposes services via API to avoid DoS attacks.  It also could be an error/issue from the vendor's site as well.  I don't much what we can do since it is preferable to receive this message than not knowing what is happening.


win: return UV_ENOMEM from uv_loop_init()

This commit sets the error returned by uv_loop_init() to UV_ENOMEM in the case of a failed timer heap malloc.

Green CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/979/


arp should behave similar to linux arp

first, dont use >>, make it into a command line.
second, it should copy the same arp behavior in linux. i.e. we implement a subset of arp.
%twarp -a
%twarp -n -a
etc.
third, the arp service is always on in a linux system (the service part), and i think twister will need to do the same. that means whenever any application is running. Not sure what happens when no application is running. can another machine arp us and get the right response? can arp service be like a "daemon"?
This last point is for discussion for now.

twarp application was written to get the MAC address of specified IP addresses.  It can be changed to behave like
% twarp <IP_ADDRESS>

Linux ARP simply manipulates the linux ARP cache it doesn't do anything on its own.

It depends whether the logic for ARP resolve is written in the application. Twister however provide basic functions to add ARP logic. For last part we need proper discussion.


deployment name in source versus manifest

The resource currently compares the deployment name in the source configuration and the one in the manifest. It errors if they do not agree.
Would it be possible to treat the source configuration as authoritative and inject it into the manifest before deployment?

Hi there!
This resource is being deprecated in favor of https://github.com/cloudfoundry/bosh-deployment-resource, so I'm closing out all existing issues.
Thanks again for your involvement!


Add script to calculate CLDR population

Link to the script will be broken until this is merged.

That said, we could further improve this by running the script automagically in the locale admin, maybe on blur on the code field. Similarly to the way we suggest slug in the project admin.

That would be great, not sure if someone has cycles to work on it. Also, it's not like we're adding a lot of locales, it would be a pretty low priority.


Modify algorithm to try to reach chunk upper bound

Fixes #115
This modifies the algorithm in a very slight way. For each axis, it attempts to maximize the chunk size up to the full array shape or the specific chunk shape limit (for example, as determined by target_chunks). Previously it would just expand the chunks by an integer multiple of the original chunks.
I also added some additional tests to make sure we do not produce situations that would require write locking.

The linting check is broken. We should switch to pre-commit.ci.


Handle function overloads with different param names and different numbers of params

Codecov Report
Attention: Patch coverage is 75.55556% with 11 lines in your changes missing coverage. Please review.

Project coverage is 84.01%. Comparing base (ad03dbd) to head (d98c2ef).

Files
Patch %
Lines

src/Escalier.Codegen/Codegen.fs
75.55%
11 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #358      +/-   ##
==========================================
- Coverage   84.04%   84.01%   -0.04%
==========================================
  Files          22       22
  Lines       12347    12384      +37
  Branches     1757     1766       +9
==========================================
+ Hits        10377    10404      +27
- Misses       1970     1980      +10

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


fix resnet-v2 segmenet fault problem

Signed-off-by: lingyan<EMAIL_ADDRESS>

i tried to test this patch, but failed to run prepare_mkl.sh:
cp: target ‘./mklml_lnx_2<IP_ADDRESS>61122/license.txt’ is not a directory
basename: missing operand

This part of code is heavily modified in the nnvm branch. Consider moving to nnvm or all this will be lost once 0.9 is released

@mli , could you just run  ./prepare_mkl.sh  0 ~/mklml to test
0 means gnu gcc
~/mklml is  dest folder
lingyan@aocl-server:~/intel_mxnet/mxnet$ ./prepare_mkl.sh  0 ~/mklml
--2016-12-13 19:41:28--  https://github.com/dmlc/web-data/raw/master/mxnet/mklml-release/mklml_lnx_2<IP_ADDRESS>61122.tgz
Resolving child-prc.intel.com (child-prc.intel.com)... <IP_ADDRESS>
Connecting to child-prc.intel.com (child-prc.intel.com)|<IP_ADDRESS>|:913... connected.
Proxy request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/mklml-release/mklml_lnx_2<IP_ADDRESS>61122.tgz [following]
--2016-12-13 19:41:29--  https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/mklml-release/mklml_lnx_2<IP_ADDRESS>61122.tgz
Connecting to child-prc.intel.com (child-prc.intel.com)|<IP_ADDRESS>|:913... connected.
Proxy request sent, awaiting response... 200 OK
Length: 58423364 (56M) [application/octet-stream]
Saving to: ‘./mklml_lnx_2<IP_ADDRESS>61122.tgz’
mklml_lnx_2017.0.2. 100%[===================>]  55.72M  3.16MB/s    in 17s
2016-12-13 19:41:50 (3.21 MB/s) - ‘./mklml_lnx_2<IP_ADDRESS>61122.tgz’ saved [58423364/58423364]
/home/lingyan/mklml/ mklml_gnu 1

@piiswrong  I tested in latest master
But will move to nnvm immediately

please fix lint. also please directly submit this to nnvm. We are not accepting PR on master for this part of code

@glingyan if i remember correctly, previous make will automatically run prepare_mkl.sh is MKL flag is set. now we need to do it manually?

well, i think we need to specify MKLML_ROOT for make. can you please update Makefile, if it is not specified, use MXNET_ROOT/mklml as the default location?

confirmed #4085 is fixed.
but one more problem is resnet is 10x slower on cpu than single k40. can you please double check if there is something not correctly set?

@mli:

 Make will execute prepare_mkl.sh as before , By default, USE_BLAS=atlas, MKLML_ROOT=/usr/local

a.      Makefile will use prepare_mkl.sh 0 $MKLML_ROOT to download mkl

 I have tested in multi-machine, but have no problem

a.      My college get the same problem as you when run  prepare_mkl.sh directly, so I guest your cause is the same
From: Mu Li<EMAIL_ADDRESS>Sent: Friday, December 16, 2016 4:56 AM
To: dmlc/mxnet<EMAIL_ADDRESS>Cc: Guo, Lingyan<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] fix resnet-v2 segmenet fault problem (#4237)
@glingyanhttps://github.com/glingyan if i remember correctly, previous make will automatically run prepare_mkl.sh is MKL flag is set. now we need to do it manually?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/pull/4237#issuecomment-267441548, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVcrhYOsv6gHePysNdfhcMYGC-X871Weks5rIalfgaJpZM4LNABF.

Will check , should be something not support very well
From: Mu Li<EMAIL_ADDRESS>Sent: Friday, December 16, 2016 5:21 AM
To: dmlc/mxnet<EMAIL_ADDRESS>Cc: Guo, Lingyan<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] fix resnet-v2 segmenet fault problem (#4237)
confirmed #4085https://github.com/dmlc/mxnet/issues/4085 is fixed.
but one more problem is resnet is 10x slower on cpu than single k40. can you please double check if there is something not correctly set?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/pull/4237#issuecomment-267447239, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVcrhWH1cJFUmfXW36cRp_Fi61ZqS6nLks5rIa9CgaJpZM4LNABF.

@mli  when you check the perf. on CPU, do you set below var?
a.	KMP_AFFINITY=granularity=fine,compact,1,0
b.	OMP_NUM_THREADS=vCPUs / 2
Also do you run "numactl -i 0-1 python xxx" when you have two socket CPU?

can you please only generate "[21:46:30] src/operator/pooling.cc:34: MKLPoolingOp Skip MKL optimization" once?
you can have a static bool warn_generated = false

Will do that after my vocation
From: Mu Li<EMAIL_ADDRESS>Sent: Wednesday, December 21, 2016 5:56 AM
To: dmlc/mxnet<EMAIL_ADDRESS>Cc: Guo, Lingyan<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] fix resnet-v2 segmenet fault problem (#4237)
can you please only generate "[21:46:30] src/operator/pooling.cc:34: MKLPoolingOp Skip MKL optimization" once?
you can have a static bool warn_generated = false
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/pull/4237#issuecomment-268370748, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVcrha2cBHVPQ6XrFyjJnizeOXIFipOzks5rKE7ggaJpZM4LNABF.


add pseudo session info for anonymous client tracking

Some kind of tracking cookie that will act similar to a session cookie without granting any privileges so that it could be included in the web service audit log for event correlation.

[x] Add tracking cookie awareness to the webcookie provider
[x] Add tracking field to the Context object
[x] Add tracking field to the /authn/session response object
[x] Add tracking field to the webauthn service's own syslog output
[ ] Relay cookies via mod_webauthn internal server request

After several laps around the track, I think we've decided what we really want!  It's not a session ID but user tracking.
We can configure apache httpd's mod_usertracking module as follows:
<IfModule mod_usertrack.c>

  <If  "req('DNT') -eq 0 || -z req('DNT')" >
    CookieName webauthn_track
    CookieExpires "1 year"
    CookieTracking on
  </If>

  <If "req('DNT') -eq 1">
    CookieTracking off
  </If>

</IfModule>

This will set a cookie with a unique ID for the first access to our server, unless the client has opted out with the DNT (do not track) standard.
In webauthn, we can just look for this cookie and add a new tracking field to the webauthn.Context object with the cookie value, or set this field to None if the client is not being tracked.  We can do this whether or not the user is authenticated, and our services can log this tracking value.
The tracking field will be added to the JSON session representation which currently includes other Context fields like client, attributes, expires, and http_vary.  This content will be bundled into the JSON session blob supplied by  mod_webauthn and unpacked by the context_from_environment() helper.
But, mod_webauthn needs to be modified to include all client-supplied cookies in its internal GET /authn/session request in the server.  Otherwise, the tracking cookie will be dropped and all of this work amounts to nothing.
In summary, webauthn can become aware of tracking cookies and expose them.  But the site admin will have to deploy mod_usertracking to actually enable any such tracking on a particular host.

BTW, the config entry described above didn't work for me -- I didn't get a cookie even when I turned  DNT off in my browser. To get tracking to work on rbk-dev, I've temporarily created a file called /etc/httpd/conf.d/usertrack.conf that's basically:
<IfModule mod_usertrack.c>
    CookieName webauthn_track
    CookieExpires "1 year"
    CookieTracking on
</IfModule>

This means it's not honoring DNT. I haven't put this into the recipe or moved it onto staging or production.
I'm also less sure than I was before that we should be honoring DNT, since Chrome, at least, doesn't allow you to turn it off for specific sites.
However we decide to enable this, there should be a standard recipe for it.

I did a similar test and see that Firefox is also sending DNT: 1 no matter what settings I attempt to adjust in the browser/privacy settings.

I can confirm that I see the desired tracking cookie (for this issue) when I change the server to ignore the DNT header and enable tracking in spite of my browser.


⚠ ESPN has degraded performance

In aa60fb3, ESPN (https://espn.com) experienced degraded performance:

HTTP code: 200
Response time: 1339 ms

Resolved: ESPN performance has improved in cdb8d5b.


Constraints are disabled

🐛 on Dev
Steps to reproduce:

Login
Clear editor to clear sketch
Start a new sketch
Select a plane to start sketch
Sketch a single or multiple segments
Highlight the segments
Deselect the tool to display the constraint dropdown menu
Click the dropdown menu
Observe constraint options
Expected: Appropriate constraint options to be enabled and available
Actual: Constraints that should be enabled are disabled

Timestamp: 0:14
Video:
https://www.loom.com/share/b6235c54915b4512b5b95168520ac832?sid=614fad0a-2c06-420a-80d7-e5ddf8240b94 (https://www.loom.com/share/b6235c54915b4512b5b95168520ac832?sid=614fad0a-2c06-420a-80d7-e5ddf8240b94)
Bug report:
https://app.qawolf.com/zoo/bug-reports/4953a484-77d2-4cd8-91d1-f4bd5a50342f
Affected workflows:
• Multi-Select Lines - https://app.qawolf.com/zoo/workflows/clwfyn8ma0nvnzn90ea7hzkr0
• Vertical Constraint - Single Segment - https://app.qawolf.com/zoo/workflows/clwgjeysk0eigerw32i9ns64l
• Vertical Constraint - Multiple Segments - https://app.qawolf.com/zoo/workflows/clwgjez3b07azi92vsec9b7s4
• Horizontal Constraint - Single Segment - https://app.qawolf.com/zoo/workflows/clwgjezdn0ejeerw31na1cd53
• Horizontal Constraint - Multiple Segments - https://app.qawolf.com/zoo/workflows/clwgjezn207bbi92v1pco6k7j
If you are aware of this bug you can set the priority to low which will prevent it from causing a run failure.

@jtran and I have made a start on this one.

The steps to reproduce in the issue were missing steps to reliably reproduce the problem.

Create a sketch of two or more lines.
Get out of drawing mode by clicking the line tool or pressing Escape. (Don't Exit Sketch though.)
Edit the code of the coordinate in the first line to have many characters. E.g. change 1.3 to 1.333333. This ensures that the source range will change in the next step.
Drag the first line segment (this invalidates the source ranges in the code)
Holding Shift, click multiple line segments to select them

At this point, we expect items in the Constraints menu to be enabled, but they're not.


Ticking entity crash

Appears to be from this mod, or maybe something else doing somethint to it. Crashing occurs in nether, probably happen in oveworld/anywhere though
https://gist.github.com/ShootToKillSTK/9a6e0475e86fb6b0b600af587f909521

Got a similar, but different, crash: https://gist.github.com/belathus/569038881f4a655c3e5321597cf194f0


KAFKA-12520: Ensure log loading does not truncate producer state unless required

When we find a .swap file on startup, we typically want to rename and replace it as .log, .index, .timeindex, etc. as a way to complete any ongoing replace operations. These swap files are usually known to have been flushed to disk before the replace operation begins.
One flaw in the current logic is that we recover these swap files on startup and as part of that, end up truncating the producer state and rebuild it from scratch. This is unneeded as the replace operation does not mutate the producer state by itself. It is only meant to replace the .log file along with corresponding indices. Because of this unneeded producer state rebuild operation, we have seen multi-hour startup times for clusters that have large compacted topics.
This patch fixes the issue by doing a sanity check of all records in the segment to swap and rebuilds corresponding indices without mutating the producer state. Similarly, we also rebuild indices without truncating the producer state when we find a missing or corrupted index in the middle of the log.
The patch also adds an extra sanity check to detect invalid bytes at the end of swap segments. Before this patch, we would truncate invalid bytes from the swap segment which could leave us with holes in the log. Because this is an unexpected scenario, we now raise an exception in such cases which will fail the broker on startup.

Closing this PR as it's being taken forward in https://github.com/apache/kafka/pull/10763.


v1.18: ignore mio audit report

Problem
discussion is in https://github.com/anza-xyz/agave/pull/60
Summary of Changes

revert the bumping backport that I approved carelessly 😢
ignore the mio audit

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

Project coverage is 81.6%. Comparing base (9b784a2) to head (7be4e8d).

Additional details and impacted files
@@            Coverage Diff            @@
##            v1.18      #77     +/-   ##
=========================================
- Coverage    81.6%    81.6%   -0.1%
=========================================
  Files         827      827
  Lines      224306   224306
=========================================
- Hits       183128   183084     -44
- Misses      41178    41222     +44


DOCS: Fix counters in Firefox

Firefox doesn't properly support counter-reset if the parent also uses counter-reset for the same counter.
(oddly enough, it does reset it for that individual element, but not the other elements using the same counter).
This has an impact on the colors section, which resets the counter on the h4s. When you hover on them in FF, because the reset wasn't carrying over, the numbering goes from 1 to 10, rather than 0 to 9.

Firefox would work with a counter-set, rather than counter-reset on the parent, but atm it's not supported in Safari, so this is a bit of a workaround using a pseudo-element on .count-em to reset it instead since Firefox is fine with different siblings resetting the same counter.
This ::before caused some layout issues anywhere count-em was used to show layout classes, such as sizes, which is why the position: absolute has also been added.
You can see all three approaches in this very simple example in this codepen, with the first example not properly resetting if viewed in Firefox.

Historical note: for some period of time, spec dictated the behaviour Firefox exhibited, but it was reverted after some time. Yet even now we are left in a quite confusing state where counter-reset has a meaning more like "~counter-init-new-scope", and counter-set is more like "~counter-assign-deepest-scope".
Some context and remarks in https://bugzilla.mozilla.org/show_bug.cgi?id=1729498


[dashboard v2] tests!

This PR adds a ton of tests for the new dashboard app.
3rd time is the charm ;) Ended up in a weird git state so this cherry picks from #4993
@graceguo-supercat

@graceguo-supercat merging this, unsure why the python3.6 builds are failing

Hi, is this possible to try this feature before release?

@zkenstein yes! you can pull the apache-ssh/dashboard-builder branch and test locally (#4528 is the relevant PR).
we are stress testing over the next couple of weeks, please comment on that PR if you encounter issues/have feedback 👍

@williaster nice!


Fix pod lib lint with Carthage frameworks

The pod was failing to pod lib lint since we moved to carthage
frameworks. I believe it is because the podspec needs to know about the
implicit dependencies so I checked the frameworks into version control
and added them to the podspec as versioned_frameworks.
In so doing it complained about some import statements so I had to move stuff like:
- @import AFNetworking;
+ #import <AFNetworking/AFNetworking.h>

@derrh ask me about this and let's make sure it looks right. It was a pain in the rear to get it to lint. This was the only thing that worked after many hours of trying different things.

The jury is still out on this, but we've ben adding Carthage to our global .gitignore. See: https://twitter.com/cdzombak/status/706999348970651649


VSCode plugin doesn't work when there is a forc version mismatch

If the forc version changes after a project has been built, the mismatch between the new forc version and the version in the Forc.toml file breaks the inlay hints and type annotations.

CC: @sdankel

Using the channels of fuelup or fuel.nix should alleviate this from happening. Perhaps we could come up with a nice error message for the user though if forc and forc-lsp versions are not matching for some reason.


TypeError: this.options.deviceOverrides is not iterable at TuyaPlatform.validateDeviceOverrides

Prerequisite

[X] Yes

Version
1.7.0-beta.35
Device Infomation JSON File
No response
Device Control Mode
None
Logs
[4/13/2023, 12:23:36 AM] [TuyaPlatform] Initializing TuyaPlatform platform...
[4/13/2023, 12:23:37 AM] TypeError: this.options.deviceOverrides is not iterable
    at TuyaPlatform.validateDeviceOverrides (/volume1/homebridge/node_modules/@0x5e/homebridge-tuya-platform/src/platform.ts:62:37)
    at TuyaPlatform.validate (/volume1/homebridge/node_modules/@0x5e/homebridge-tuya-platform/src/platform.ts:53:15)
    at new TuyaPlatform (/volume1/homebridge/node_modules/@0x5e/homebridge-tuya-platform/src/platform.ts:107:15)
    at /volume1/homebridge/node_modules/homebridge/src/server.ts:474:40
    at Array.forEach (<anonymous>)
    at Server.loadPlatforms (/volume1/homebridge/node_modules/homebridge/src/server.ts:401:27)
    at Server.start (/volume1/homebridge/node_modules/homebridge/src/server.ts:176:29)
[4/13/2023, 12:23:37 AM] Got SIGTERM, shutting down Homebridge...
[4/13/2023, 12:23:37 AM] AssertionError [ERR_ASSERTION]: Cannot generate setupURI on an accessory that isn't published yet!
    at Bridge.Accessory.setupURI (/volume1/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:994:11)
    at Server.setServerStatus (/volume1/homebridge/node_modules/homebridge/src/server.ts:155:45)
    at Server.teardown (/volume1/homebridge/node_modules/homebridge/src/server.ts:199:10)
    at signalHandler (/volume1/homebridge/node_modules/homebridge/src/cli.ts:93:12)
    at process.emit (node:events:513:28)
    at process.emit (/volume1/homebridge/node_modules/homebridge/node_modules/source-map-support/source-map-support.js:516:21)
[4/13/2023, 12:23:42 AM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null

Other Information
This happens only after I restart Homebridge after installing beta 35. Rolling back to 1.6.0 seems to work.
I am running Homebridge on a Synology NAS

is it working in beta.36?

is it working in beta.36?

I'm sorry, I completely forgot to mention that this did work for me on beta.36

ok


When create ask which nft address is erc1155 no quantity option just can sell one

And when erc1155 which can be multiple owner, if overwriste other's ask will disappear.


Update install Catalog script.

Removes unused parameter

There is a PR for the OpenWhiskCatalog repo to remove an unused parameter from the installCatalog.sh script. Once this #pr has been merged, this PR can be merged.

Not sure why this PR failed. Ran it a number of times before I squished all my PRs before submitting this. Will need to update travis so that if it fails I grab all of the component logs now.

what makes you think this is unused?  This variable is defined in the global group_vars/all file

ok, maybe it is unused.  I see that Rodric had removed it.

I see you updated validateParameter.sh in the openwhisk-catalog based on my previous comment.  However, you will also need to update the install script (installCatalog.sh) file in the pushnotification repo (https://github.com/apache/incubator-openwhisk-package-pushnotifications) to remove the namespace parameter before this update can go in.  The updates to all three of these repos really needed to go in at the same time to avoid breaks.  Right now the catalog install from openwhisk-catalog is broken due to https://github.com/apache/incubator-openwhisk-catalog/pull/231 getting in and this PR not being in yet.

@DanLavine, @daisy-ycguo  - please fix this situation (see comment above).  You need to update https://github.com/apache/incubator-openwhisk-package-pushnotifications/blob/master/packages/installCatalog.sh to remove the namespace parameter if you are removing it from here just as you already did for the openwhisk-catalog repo.  All three of these needed to go in together.

@jasonpet I don't see what is blocking this PR from being merged as it fixes the install catalog script appropriately.
I had no idea that the other repo also relied on the incubator-openwhisk-catalog repo dependency as I was able to standup OpenWhisk with just these 2 PRs. I can fix it as well.

created a PR to address the second repo here.

🏃 PG2 1788

Resolves #2468


Finding which Rubocop path to use

Hi,
I had to update Rubocop Command Path to make your package work. In the documentation you may want to add how users can do that. That would have helped me and will probably save other people some time.
For users to find their Rubocop path they can type which rubocop
which rubocop
/Users/Jan/.rvm/gems/ruby-2.2.3/bin/rubocop

Copying that was not enough. I had to replace /bin with /wrappers to make it work.
For Ruby experts this makes perfect sense, but for me this took quiet a while to figure out.
Thanks for the package!

Hi @janwerkhoven,
Thank you for your nice suggestion.
I will update documentation. But, If you have a time, please send me a pull-request. It makes me happy.
Thank you,

My suggestion above does not seem to work anymore... I keep getting these errors. Following the URL did not make me any wiser... Do you have any suggestions how to resolve this?

warning: parser/current is loading parser/ruby21, which recognizes warning: 2.1.7-compliant syntax, but you are running 2.1.2. warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
which rubocop
/Users/Jan/.rvm/gems/ruby-2.2.3/bin/rubocop

I have not been able to find the cause yet. I need your help. I think you are using RVM. Do your Ruby environments have a difference between global and project local?
If you have it, I guess that there is the cause around it.

rvm -v
rvm 1.27.0 (latest)

which rubocop
/Users/Jan/.rvm/gems/ruby-2.1.2/bin/rubocop

cd (to exit my project)
which rubocop
sh: command not found: rubocop

gem install rubocop
Resolves this error 👍
So the Rubocop gem was installed in my Rails project only.
Installing it in my user root, resolved the error.
Your package no longer throws that error.
Now I'm getting these :)

Getting closer

All right fixed! Had to run rubocop --auto-gen-config in the .rubocop_todo.yml file in Rails.

I have the version of rubocop installed for my system, it runs find from the terminal but I get this when running in
Atom version 1.53.0

when I try with path to
which rubocop
/Users/lacoste/.rvm/gems/ruby-2.6.4/bin/rubocop

I get

¯\_(ツ)_/¯

I have the version of rubocop installed for my system, it runs find from the terminal but I get this when running in
Atom version 1.53.0

when I try with path to
which rubocop
/Users/lacoste/.rvm/gems/ruby-2.6.4/bin/rubocop

I get

¯\_(ツ)_/¯

@lacostenycoder
My experience was that even though I had gem 'rubocop' in Gemfile, rubocop-auto-correct seems to ignore that version. Instead it's expecting a globally installed gem. Have you tried running gem install rubocop?

@lacostenycoder
My experience was that even though I had gem 'rubocop' in Gemfile, rubocop-auto-correct seems to ignore that version. Instead it's expecting a globally installed gem. Have you tried running gem install rubocop?

A good addition to rubocop-auto-correct is the linter-rubocop. The linter highlights errors, warnings and best practice suggestions with links to the rubocop rules. This has helped me understand why certain rules are best practice before auto-correcting them.

A good addition to rubocop-auto-correct is the linter-rubocop. The linter highlights errors, warnings and best practice suggestions with links to the rubocop rules. This has helped me understand why certain rules are best practice before auto-correcting them.


Drag & drop token issue when changing map

I have an issue while dragging token after changing maps.
A video is better than words
It occurs on latest FF and Chrome.
It's not blocking as it fixes itself when I reload the page but still, it's an odd behaviour.
I don't know if it's due to a difference of image size but my first map is huge, the next one not so much.

possible regression of https://github.com/dungeon-revealer/dungeon-revealer/issues/356

@GoOz I tried multiple map sizes and cannot reproduce this 😕
Could you please share the exact image sizes?

Ok after a little investigation on my side, this has nothing to do with the previous image size, sorry.
But if you load a big map, all the new tokens you create have the bug until you refresh the page.
Weirdly, if I add a token it will be bugged and then I refresh so this token won't be bugged anymore BUT if I add a new one, it will be bugged too while the first is fixed. :o
I had the bug with those map sizes :

5641 × 7906
6000x3000
7200x7200

But I found out that a map of 3000x3000 doesn't bug and when I enhance it to 3050x3050 it starts to bug (very lightly as it seems that the offset increase as the map size increases)
So the bug definitely starts à 3000px.

@GoOz Could you please check whether https://github.com/dungeon-revealer/dungeon-revealer/pull/453 does resolve this issue? I was able to reproduce the issue and these adjustments did work for me.

@n1ru4l It works just fine now 👍
Thank you.


received voice message can't display correctly

as the pic,after I received voice message,I'm sure that I get the correct data, and it can be played if I saved it in app's documents, but after I set like this
let audioItem: ZHCAudioMediaItem = ZHCAudioMediaItem.init(data: audioData as Data);         audioItem.appliesMediaViewMaskAsOutgoing = false         let audioMessage: ZHCMessage = ZHCMessage.init(senderId: senderID, displayName: senderName, media: audioItem);         self.demoData.messages.add(audioMessage);         self.finishReceivingMessage(animated: true)
it can't play ,just like the above pic, the time is zero, and can't be played , did I do anything wrong?

AudioData is to initialize the audioItem you have finished downloading it? If the audioData is empty it will not work. I suggest you create a class that inherits from ZHCMediaItem, add an initialized according to the address and voice interfaces. After downloading update audioData and cell interface in voice.

Now I am sure that I do have data to initialize it, the only problem is that the voice data come from the android device and the data is data.3gpp .in this case even if I initialize it with data, it still can't correctly display it. any suggestion?

Perhaps this audio format is not supported. You downloaded the audio, then played with AVAudioPlayer. If you can't play, only to go the next format change or let the Android format when uploading to Apple support.
Apple Reference

problem solved. Thank u. I ask the android developer to send .aac


Proximal Adagrad optimizer with row-wise learning rate

Description
This implements a special version of AdaGrad with a learning rate per row instead of for every parameter. This is useful for learning large embedding matrices, as it significantly reduces the memory requirements for the state array as well as reduces over-fitting due to having less learning rates. Consequently only 2D weight arrays are supported.
Compared to the AdaGrad optimizer already included in MXNet, this Optimizer also supports the group lasso proximal operator for inducing group sparsity, where each row of the weight is considered a group. As there is a single learning rate per group, we can use a closed form solution for the proximal operator which is not possible if different learning rates are used for parameters within a single group.
This Optimizer is useful for the GluonNLP project.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[X] Changes are complete (i.e. I finished coding on this PR)
[X] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[X] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[X] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

[X] Add contrib.optimizer.ProximalGroupAdaGrad

Comments

If you have any suggestions for the API naming or other suggestions pleas let me know.

Forcing an eager update of the lazily accumulated group lasso regularization for a set of rows requires access to some private API. I am not sure how this could be solved without access to private API:
  fake_grad = mx.nd.sparse.row_sparse_array(
      (mx.nd.zeros((len(indices_to_force_update), weight.shape[1])), indices_to_force_update))
  weight.grad()[:] = fake_grad
  weight.data()._fresh_grad = True
  trainer._optimizer._index_update_count[0] -= 1
  trainer._optimizer.num_update -= 1
  trainer.step(batch_size=1)

@szha @szhengac @eric-haibin-lin

Test was failing due to test_mkldnn.test_activation.

Perl tests failed due to
Downloading model//squeezenet1.1-33ba0f93.zip from http://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/models/squeezenet1.1-33ba0f93.zip ...

download of url failed! (599 Internal Exception)

Restarting

Rebased and set up Sphinx to build documentation for optimizer.contrib module

http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-12365/10/api/python/optimization/contrib.html there's some problem in doc rendering

@leezu Could you fix the doc rendering problem? Let us know if you need help!

@mxnet-label-bot [pr-awaiting-response]

Doc rendering should be fixed now
The proximal implementation was removed from the PR to facilitate merging the row-wise learning rate feature before a decision is taken on how to best design the eager update API that needs to be integrated with gluon Trainer to improve usability of the lazy proximal update

This should be ready to review / merge now

CI was failing for a few days / tries due to seemingly unrelated flaky tests. It finally passed now.

@mxnet-label-bot [pr-awaiting-merge]

@eric-haibin-lin @anirudh2290 do you have any comments? Can this be merged?


ni_sh_a.char IDE for Python

#167
A simple and basic python interpreter to execute python codes

Yeah, that's great! But here I can see that you have edited my Readme. So please don't do that.

Yeah, that's great! But here I can see that you have edited my Readme. So please don't do that.
Okay but the readme inside the folder is for explanation of the project how to use it

Yeah, that's great! But here I can see that you have edited my Readme. So please don't do that.

Updated and the readme.


Xamarin.Auth Issue in LinkedIn cancel button tap

Xamarin.Auth Issue
Version

[ ] nuget version = 4.7
[ ] Android version = 8.0
[ ] Xamarin.Auth version : <IP_ADDRESS>

Steps to reproduce

Tap on the signup with LinkedIn button on a Xamarin App containing sign up options with different social media.
LinkedIn page loads. Tap on Cancel.

Platform:

[] .NET version = 2.1
[] mono version = 5.16

Expected behaviour
It should fall back to the page with Sign up with LinkedIn button page (previous page).
Actual behaviour
In Samsung Galaxy S8 (version 8.0), on tapping the cancel button of LinkedIn, it is redirected to the link on RedirectUrl.
Tested in all other devices. It falls back to the previous page. Tried updating Xamarin.Auth version to <IP_ADDRESS>. Still issue exists.

Still have issue


The dashboard lacks statistics for certain resource run status

Describe the bug

Steps to reproduce
Planning, Planed, Canceled and Pending status are not being included in the dashboard statistics.

Expected behavior

Environment

Walrus version: main 96792e2d3b2c3b1eae368faeb3c2690f91fbffc5
UI version: dev-040e825

Additional context
Add any other context about the problem here.

Environment

Walrus version: main 39304a76ab4b41f764ee0087ebaee793437efca4
UI version: dev-ae07951

Test Result: pass


Interactive authentication required

On initial setup, I get this error from times to times:
RUNNING HANDLER [DavidWittman.redis : restart redis {{ redis_port }}] **********
fatal: [server]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to restart service redis_6379: Failed to restart redis_6379.service: Interactive authentication required.\nSee system logs and 'systemctl status redis_6379.service' for details.\n"}

I haven't fully understood what happens, but I do believe a likely fix is to use become: yes at the right place (for now I'll be fixing this by attempting to use become yes globally.

@thbar What distribution is this running on? And are you running the role as root or another user with sudo access?

Quick reply from my phone : I'm on Ubuntu xenial, and using a sudoer
(deploy) not root.
Le sam. 17 déc. 2016 à 17:53, David Wittman<EMAIL_ADDRESS>a
écrit :

@thbar https://github.com/thbar What distribution is this running on?
And are you running the role as root or another user with sudo access?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DavidWittman/ansible-redis/issues/137#issuecomment-267773277,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAnnVQJ22Z41RPm5podqhdCw4YSZ3eMks5rJBN7gaJpZM4LKU3D
.

Thanks. I'll see if I can reproduce the issue.

I ran into this issue as well. In my case, I was passing a become_user var to the role, but Ansible 2.2 has a bug where vars passed to roles are not honored in the role's handlers.

I experienced this same issue on Ubuntu 16.04, running Ansible <IP_ADDRESS>.
The handler "restart redis {{ redis_port }}" fails with the message shown above.
I re-ran the playbook and it worked the second time.

Yeah, this is an Ansible bug. It should be upstream soon... if you're still having issues, try version 2.1.3.

Follow-up on this: I confirm that upgrading to Ansible <IP_ADDRESS> (up from <IP_ADDRESS>) solves that issue. Thanks everyone, and H/T @jimmy for pointing to the Ansible bug reference.

I am using ansible 2.5.1 and I found the error appeared again:

name: reboot database server
service:
name: postgresql
enabled: yes
state: restarted
become: yes

fatal: [<IP_ADDRESS>]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"daemon_reload": false,
"enabled": true,
"masked": null,
"name": "postgresql",
"no_block": false,
"state": "restarted",
"user": false
}
},
"msg": "Unable to restart service postgresql: Failed to restart postgresql.service: Interactive authentication required.\nSee system logs and 'systemctl status postgresql.service' for details.\n"
}

Sorry, was trying to run this as postgres user which cannot become root.


Added swipe to dismiss on ToastContainer

Currently Toast only is dismissed by clicking on a button, what if we need to show a toast without a button, that stays a long time but user can dismiss after the user sees the message?
This implements the solution by using swipe to dismiss only using react native animated

Sdds Merge


add a 'symbolic_solver_labels' option to to_file()

Using pyomo I often use the io_options={'symbolic_solver_labels': True} when writing the lp-file, which gives a nice human-readable version of the linear problem. I was wondering if sth. like this would be possible when using linopy and if not so far, if s.th. like that would be a nice feature (I'd like it :wink: )...

Hey @ulfmueller, thanks for your message. The issue was already raised in #157. I am closing this in favor of the other.


compiletestdata.py error in linux

Traceback (most recent call last):
File "compileTestData.py", line 28, in
FULL_OUTPUT_DIR = (Path.cwd() / OUTPUT_DIR).resolve()
File "/usr/lib/python3.5/pathlib.py", line 1109, in resolve
s = self._flavour.resolve(self)
File "/usr/lib/python3.5/pathlib.py", line 330, in resolve
return _resolve(base, str(path)) or sep
File "/usr/lib/python3.5/pathlib.py", line 315, in _resolve
target = accessor.readlink(newpath)
File "/usr/lib/python3.5/pathlib.py", line 422, in readlink
return os.readlink(path)
FileNotFoundError: [Errno 2] No such file or directory: '/root/uTensor/TESTS/scripts/testData'

Traceback (most recent call last):
File "compileTestData.py", line 47, in
exec(open(str(item), "r").read())
File "", line 17, in
File "compileTestData.py", line 26, in mkdir
os.makedirs(outPath)
File "/usr/lib/python3.5/os.py", line 226, in makedirs
head, tail = path.split(name)
File "/usr/lib/python3.5/posixpath.py", line 103, in split
i = p.rfind(sep) + 1
AttributeError: 'PosixPath' object has no attribute 'rfind'

before call path.resolve(), the folder should be existed in linux environment. Otherwise, it would output error message.

the parameter in os module should be str

Thanks for the PR, merged.


CERT VU#810572: Privilege escalation through dynamic linker and isolated vulnerabilities

Version: 2.0.2
CUPS.org User: mike
We received a report from Google that cupsd can be exploited to perform a privilege escalation using a combination of bugs and the dynamic linker's support for (pre)loading or redirecting which shared libraries are used by the cups-exec helper program.
The exact attack does the following:

Use the CGI template engine to inject malicious HTML in a hyperlink, which is executed by the browser (a similar attack could be performed by a specially written program)
A specially-crafted print-job or create-job request is sent to cupsd containing the job-originating-host-name attribute with multiple nameWithLanguage values - this triggers a validation error in cupsd, which then tries to free the language strings multiple times.
The language string passed in is /admin, which causes the cupsd.conf ACL's copy of the string to become corrupted, allowing anyone to PUT a new cupsd.conf file.
A new cupsd.conf file is uploaded to cupsd containing SetEnv directives (for DYLD_PRELOAD or LD_PRELOAD) pointing to a malicious dynamic library.
The next job or request that triggers the execution of a helper program through cups-exec, and the dynamic linker loads the malicious code. Depending on the version of CUPS and platform, the code will execute either as the "lp" user or "root".

This attack can be done remotely when printer sharing and the web interface is enabled, using failed POST or PUT requests to collect stale request files in the CUPS spool directory containing the malicious code.
This bug tracks resolution of this privilege escalation issue through the following changes:

cupsd should use the ippSetCount and ippSetString APIs rather than manipulating the string values directly, particularly for the processing of the job-originating-host-name attribute.
cupsd shouldn't use string pool for config stuff
cupsd should remove temp files on partial POST/PUT
cupsd shouldn't support LD_* and DYLD_* variables when running as root
Need to call cgiClearVariables in more places to prevent input from leaking into output
Add new cgiSetVariable function to flag variables that are already encoded HTML, and only give them special treatment

str4609-1.1.patch.txt
str4609-1.2.patch.txt
str4609-1.3.patch.txt
str4609-1.4.patch.txt
str4609-1.5.patch.txt
str4609-1.6.patch.txt
str4609-1.7.patch.txt
str4609.patch.txt


Feature: place helmet tags in specific place in head

Do you want to request a feature or report a bug?
Feature
What is the current behavior?
All tags in helmet appendchilded in the head section, so it means that they come last before closing head tag.
What is the expected behavior?
I need to have a possibility to add them before google analytics or else. For example, prepend them, or specify somehow place in head section, where helmet would add them

@maliyshock have you found the solution for this ? Currently stucked with this .

No. This is a feature request, I think there are no possibilities to do that "inside of the box"
You can try to modify the library by itself somewhere here https://monosnap.com/file/7EbKb69GUg4SSq9ZvXulpF39JBYYFM
For example. You can insert your tags instead of appendChild it
https://stackoverflow.com/questions/4793604/how-to-insert-an-element-after-another-element-in-javascript-without-using-a-lib
But the modification of the external library is not the best idea, that's why I am asking for this feature.

If simply want to prepend them to the very top of <head> it's simple to do that manually.  Placing them in specific location is different beast. Probably can be done but also seems like more of a headache to deal with
useEffect(() => {
    // react-helmet does not prepend so need to do it manually
    const meta = document.createElement('meta');
    meta.setAttribute('name', 'some-meta-tag-name');
    meta.setAttribute('value', 'some meta tag value');
    const head = document.querySelector('head');
    head.insertBefore(meta, head.firstChild);
  }, []);

Would be nice if there was a prop that handled this
<Helmet prepend>
  <meta name="blabla" value="something something" />
</Helmet>

if you dont support IE then it's easy to prepend multiple with ParentNode.prepend, otherwise looping through and using insertBefore.


Cursor color style overrides one from CodeMirror

Use css version 0.10.2. This rules
739 /* CURSOR */
740
741 .CodeMirror div.CodeMirror-cursor {
742     border-left: 1px solid black;
743 }

in line 742 makes cursor black whatever CodeMirror theme I load later

For example themes like icecoder I make screenshot from

Thanks for the report @Alexsey. We'd be open to a PR to fix this, in the event that one of us doesn't get to this before you do.

https://github.com/graphql/graphiql/pull/547


Docker bind mount permissions

Hi,
many thanks for sharing your code.
Just as suggestion for your docker example. When using the docker version with your example code I get a permission error for the bind mount. Adding --user 1000:1000 to the docker run argument solves this.
docker run \
   --rm \
   --user 1000:1000 \
   -v "$(pwd)/download":/download \
   audiotheker:0.1.0 download \
   "https://www.ardaudiothek.de/sendung/j-r-r-tolkien-der-herr-der-ringe-fantasy-hoerspiel-klassiker/12197351/" \
   /download

Hi @endresjo,
nice catch! 🏆 Thank you for pointing this out 🙂
Docker for macOS seems to normalize file permissions when using bind mounts.
I updated the Docker example so that it works on Linux and Windows as well: https://github.com/fbngrmr/audiotheker/commit/eac84c755a34ec6713c8a70ed6931eee3004b219