Permission denied error during save on Windows

This problem was introduced in 0.1.8. (0.1.7 was fine) and only affects Windows. I could reproduce this on:

Windows 2016 (AMI provided by AWS)
Windows 10 Vagrant box.

It enough to invoke the save command to trigger this error:
> cache-s3 --prefix=cache-s3-test save --relative-path clcache
[cache-s3][Info ][Tue, 16 Apr 2019 12:58:20 UTC]: Caching: clcache
[cache-s3][Info ][Tue, 16 Apr 2019 12:58:44 UTC]: <master.cache> - No previously stored cache was found.
[cache-s3][Info ][Tue, 16 Apr 2019 12:58:44 UTC]: <master.cache> - Data change detected, caching 308.3 MiB with sha256: bNlkj0BqEBs8JBa8flvruMvhjpIgkE6LdD5q9F49quM=
cache-s3: C:\Users\vagrant\AppData\Local\Temp\cache-s3.tar7484-0.gzip: DeleteFile "\\\\?\\C:\\Users\\vagrant\\AppData\\Local\\Temp\\cache-s3.tar7484-0.gzip": permission denied (Access is denied.)

The error message displays \\?\ characters in the PATH, this suggests some Win32 path compatibility quirk.
Looks very similar to "Case 5" documented here: https://support.microsoft.com/en-us/help/320081/you-cannot-delete-a-file-or-a-folder-on-an-ntfs-file-system-volume

@wagdav I am pretty sure this issue is due to temporary-resourcet package (or improper usage thereof), but instead of digging into it I'd rather switch to the package that I know will work for sure.
Could you confirm this issue is fixed in `permission-denied' branch. If you need a prerelease (a downloadable binary) to confirm it, let me know I can create one fairly quickly

@lehins Thanks for the quick update, I'll test it tomorrow, first thing in the morning!

@wagdav I was able to reproduce the error on AppVeyor and confirm that it is fixed now. I'll make a new release in a little bit. Reopen the issue if you find that the issue is still there in the upcoming cache-s3-0.1.9

@lehins  Thank you for the quick fix! I could also confirm that now it's working OK! :+1:


How can we reduce 404's

Moving to "new" code is great but is it leaving a trail of dead bookmarks and blog articles?
Example from http://apmblog.dynatrace.com/2015/04/09/node-js-is-hitting-the-big-time-in-enterprise-markets/
https://nodejs.org/static/video/
This is a 2015 article!
How can we best analyse and add redirects?

You can see the complete current list @ https://raw.githubusercontent.com/nodejs/build/master/setup/www/resources/config/nodejs.org, a lot of it was based on analysing the logs and narrowing down most of the active URLs being hit and deciding what to do with them with @fhemberger. There's no doubt that we ignored a bunch of much less used URLs but we assumed that we'd got most of them.
My plan was to review after a time to see what redirects were actually being used and try and trim the list over time. I guess we should also do a review of 404's to see what's coming up. I could do some log grepping and get back to you on that if you like, I still have the old site's contents that we could cross-reference with and figure out what's real and what's not.

The video wasn't part of the repository, some files/directories were placed directly on the old server, so for some rare parts, we simply don't know what was linked where. Maybe we still can find the video and put it online again.
As @rvagg already said, we went through all the urls of the old website, mapping them to the new content were possible (except those bits of content which were removed, which now rightfully return a 404), then going through a list of over 4000 URLs returning non-200 responses collected over a month on the old server. After weeding out automatic scanning attempts for things like Wordpress configs or admin interfaces, we tried to find a way to map those to the current website as well.
We will continue to check the logs and add further redirects.

https://gist.github.com/rvagg/50a283b0a35657cdc0f7
top 404s for the site since the server move sorted by frequency, I've removed some of the obvious bogus ones and left off all the 1's and 2's which are pretty much all guaranteed to be bogus. If you take out ivy.xml and .jar$ then you reduce the list by ~3k down to ~5k.
Some creative grepping leaves with this list of first-round candidates:

6813 /static/images/icons-interior.png
6810 /static/images/platform-icons.png same as above
5802 /static/images/twitter-bird.png
3395 /static/images/footer-logo-alt.png

These are all mostly external referrers but also http://nodejs.org/dist/v0.10.32/docs/api/assets/style.css and other 0.10.x docs. I'm not inclined to "fix" them tbh but perhaps have other opinions?

1866 /static/images/logo.png
759 /static/images/footer-logo.png
734 /static/images/ryan-speaker.jpg
718 /static/images/forkme.png
696 /static/images/home-icons.png
695 /static/images/microsoft-logo.png
693 /static/images/ebay-logo.png
691 /static/images/yahoo-logo.png
686 /static/images/linkedin-logo.png

These mostly come from the full website mirrors shipped as docs, e.g. http://nodejs.org/dist/v0.10.1/docs/ which I'm kind of annoyed about having to support. They are candidates for "legacy" but I'm not fussed, these mirrors are pointless.

4738 /dist/staging - Doesn't exist any more, we do it differently now and I'm happy for a 404 here

1114 /logo.png - I can't find any internal referrers so I don't see a reason to keep this, their fault for leaning on the site, www.nodeclipse.org is a primary offender here

760 /browserconfig.xml - is this a thing? I don't see it on the old site

454 /download/release/v4.0.0/doc/api/ - this is an odd one, we used /doc/ for io.js but switched to /docs/ in the last release and for v4.0.0 so I don't know what's going on with this, I don't see any referrers for the latest log file so ...?

395 /static/images/roadshow-promo.png

337 /api/assets/logo.svg

297 /download/favicon.ico

267 /tracking.js

229 /main.js

229 /api/fs.html>

198 /industry/ - no internal referrers

177 /api/all.json - this must be just for http and not https, not sure why it's not getting redirected or loaded, it should be so I probably need to fix

168 /static/images/download-logo.png

141 /dist/v0.12.4/node.pom

139 /static/video/

138 /xmlrpc.php

131 /dist/.index/nexus-maven-repository-index.properties

119 /static/images/joyent-footer.svg

117 /static/images/not-invented-here.png

117 /api/index.json - ditto for all.json

@fhemberger would plugging these be a good candidate for next months Code and Learn?
Should we add a code-and-learn label to appropriate issues? I want to ensure attendees have:

Enough to do..
Enough information to execute

I want to add a milestone too so that issues does not go stale but I need to block book a venue in order to have concrete dates.

+1

@iancrowther Sorry for the late reply, this issue just slipped through.
I don't think its fitting for the next Code and Learn. I'll just add those files from the old repo:
6813 /static/images/icons-interior.png
6810 /static/images/platform-icons.png same as above
5802 /static/images/twitter-bird.png
3395 /static/images/footer-logo-alt.png
1866 /static/images/logo.png
759 /static/images/footer-logo.png
734 /static/images/ryan-speaker.jpg
718 /static/images/forkme.png
696 /static/images/home-icons.png
695 /static/images/microsoft-logo.png
693 /static/images/ebay-logo.png
691 /static/images/yahoo-logo.png
686 /static/images/linkedin-logo.png
and add redirects for it and we're done. What's really bugging me is that we need to support those old docs, as @rvagg said. I'd like to have some kind of converter, which strips the surrounding page layout and only leaves the text content in place, so we can convert it into something similar to the current docs. But I think that task is way to big for a Code and Learn.

Redirects are in place, closing this now.


Support for 4.06

The opam package for ocamllint requires ocaml-version < "4.04.0". Is this due to AST changes? Any chances an update is easy? I'd be willing to do the legwork if this repo is still active.

Any updates on making a new release with OMP? And 4.06 + 4.07 targets?

I think #25 was almost ready, not sure why I didn't finish the PR.


Improve array decoding performance

Hi @gfx I've used this msgpack library in my project and found small optimization that improves decoding speed by 3-4%.

For large arrays performance difference can be even bigger and also it will produce less trash for GC

Codecov Report

Merging #32 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   96.14%   96.14%   +<.01%
==========================================
  Files          14       14
  Lines         752      753       +1
  Branches      158      158
==========================================
+ Hits          723      724       +1
  Misses         12       12
  Partials       17       17

Impacted Files
Coverage Δ

src/Decoder.ts
99.27% <100%> (ø)
:arrow_up:

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 c022de5...3d50366. Read the comment docs.

Tested with this benchmark script:
/* eslint-disable no-console */
import { encode, decode } from "../src";
// @ts-ignore
import _ from "lodash";

const data = _.cloneDeep(new Array(1000).fill([[1], [1, 2, 3], [1, 2, 3, 4, 5]]));

// warm up
const encoded = encode(data);
decode(encoded);

// run

console.time("encode");
for (let i = 0; i < 10000; i++) {
  encode(data);
}
console.timeEnd("encode");

console.time("decode");
for (let i = 0; i < 10000; i++) {
  decode(encoded);
}
console.timeEnd("decode");

And this PR significantly improves decoding:
before:
$ npx ts-node benchmark/sandbox.ts
encode: 2753.986ms
decode: 1855.263ms

after:
$ npx ts-node benchmark/sandbox.ts
encode: 2393.308ms
decode: 3804.347ms

Great!

(CI failed because of SauceLabs credentials; will fix it later https://docs.travis-ci.com/user/environment-variables/ )

I wonder if you could improve the performance further on certain engines by allocating an array without holes in it:
array: Array.from({ length: size }),

Source:
https://v8.dev/blog/elements-kinds
https://2ality.com/2018/12/creating-arrays.html

Tried it now, but Array.from({ length: size }) makes decoding 10x slower than new Array(size) :-(


Latest code for prepdocslib has a bug in handling large PDF file and how to fix it

Please provide us with the following information:

This issue is for handling very large PDF file with pages more than ~400 or 500
- [ ] search index only shows 1000
- [ ] code fix is available

Minimal steps to reproduce

You can load a very large PDF file, and no matter what you do, the search index only shows 1000

Code which has problem, the 2nd MAX_BATCH_SIZE will override the 1st, and 3rd will override the 2nd, the last wins

/scripts/prepdocslib/searchmanager.py has
async def update_content(self, sections: List[Section]):
MAX_BATCH_SIZE = 1000
section_batches = [sections[i : i + MAX_BATCH_SIZE] for i in range(0, len(sections), MAX_BATCH_SIZE)]

    async with self.search_info.create_search_client() as search_client:
        for batch in section_batches:
            documents = [
                {
                    "id": f"{section.content.filename_to_id()}-page-{i}",
                    "content": section.split_page.text,
                    "category": section.category,
                    "sourcepage": BlobManager.sourcepage_from_file_page(
                        filename=section.content.filename(), page=section.split_page.page_num
                    ),
                    "sourcefile": section.content.filename(),
                    **section.content.acls,
                }
                for i, section in enumerate(batch)
            ]

Code fix

async def update_content(self, sections: List[Section]):
MAX_BATCH_SIZE = 1000
section_batches = [sections[i : i + MAX_BATCH_SIZE] for i in range(0, len(sections), MAX_BATCH_SIZE)]

    async with self.search_info.create_search_client() as search_client:
        j = 0
        for batch in section_batches:
            documents = []
            for i, section in enumerate(batch):
                k = i + j*MAX_BATCH_SIZE
                #print(f"k {k}, i {i}, j {j}")
                documents.append(
                    {
                        "id": f"{section.content.filename_to_id()}-page-{k}",
                        "content": section.split_page.text,
                        "category": section.category,
                        "sourcepage": BlobManager.sourcepage_from_file_page(
                            filename=section.content.filename(), page=section.split_page.page_num
                        ),
                        "sourcefile": section.content.filename(),
                        **section.content.acls,
                    }
                )
            j = j + 1

Thanks! We'll be in touch soon.

Thanks so much for report, I've sent PR here: https://github.com/Azure-Samples/azure-search-openai-demo/pull/971


Console and classlib assemblies produced with references to conflicting versions of System.Runtime

I ran into an issue this weekend trying to build a simple netcoreapp2.0 app.  I've reproduced it with a minimal project, which is as follows.
There is a console project, called Console, and a classlib project called Classlib.  Console has a reference to Library.
Here's the Console.fsproj:
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="Program.fs" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="../Library/Library.fsproj" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="FSharp.Core" Version="4.1.17" />
    <PackageReference Include="FSharp.NET.Sdk" Version="1.0.5" PrivateAssets="All" />
  </ItemGroup>

</Project>

The sources for Console:
open System
open Library

[<EntryPoint>]
let main argv =
    let result = Stats.ema 0.0 [3.7; 8.9]
    0 // return an integer exit code

The Library.fsproj:
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="Library.fs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="FSharp.Core" Version="4.1.17" />
    <PackageReference Include="FSharp.NET.Sdk" Version="1.0.5" PrivateAssets="All" />
  </ItemGroup>

</Project>

And finally, Library.fs:
module Library.Stats

let ema (prevEma:float) (values:float list) =
    0.0

The projects build:
λ  dotnet build
Microsoft (R) Build Engine version <IP_ADDRESS>32
Copyright (C) Microsoft Corporation. All rights reserved.

  Library -> C:\Users\ben\proj\scratch\fsharp-test\src\Library\bin\Debug\netstandard2.0\Library.dll
  Console -> C:\Users\ben\proj\scratch\fsharp-test\src\Console\bin\Debug\netcoreapp2.0\Console.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.19

But at runtime:
C:\Users\ben\proj\scratch\fsharp-test
λ  dotnet .\src\Console\bin\Debug\netcoreapp2.0\Console.dll

Unhandled Exception: System.MissingMethodException: Method not found: 'Double Library.Stats.ema(Double, Microsoft.FSharp.Collections.FSharpList`1<Double>)'.
   at Program.main(String[] argv)

After inspecting with ilspy I found that these two projects reference the same version of FSharp.Core, but different versions of System.Runtime:

My dotnet --info:
C:\Users\ben\proj\scratch\fsharp-test
λ  dotnet --info
.NET Command Line Tools (2.0.0-preview1-005977)

Product Information:
 Version:            2.0.0-preview1-005977
 Commit SHA-1 hash:  414cab8a0b

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.15063
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.0.0-preview1-005977\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0-preview1-002111-00
  Build    : 1ff021936263d492539399688f46fd3827169983

I've attached a copy of my minimal repro: fsharp-test.zip

FWIW, I did go back and try this with TargetFramework set to netstandard1.6 and netcoreapp1.1, and it seems to work.

the sdk2.0 (for netcoreapp2.0 is not supported).
closing as dupe of https://github.com/dotnet/netcorecli-fsc/issues/108


[QA] check and add API test coverage for these bug fixes

These bug reports has been fixed and need coverage in tests:

[x] https://github.com/owncloud/ocis/issues/6739

Coverage: https://github.com/owncloud/ocis/pull/8459

[x] https://github.com/owncloud/ocis/issues/7812 (https://github.com/owncloud/ocis/pull/7815)

Coverage: https://github.com/owncloud/ocis/pull/8441

[x] https://github.com/owncloud/ocis/issues/3882

Test fix: https://github.com/owncloud/ocis/pull/8460

closing as done


Arrays marked const lose their array qualifier in translation

Any array variable marked 'const' loses [] in translation to Java/C++/php/etc..
Example:
class A{
  const String[] S = {"...","..."};
}

Java output:
public class A
{
  ...
  public static final String S = "...","...";
  ...
}

The issue extends to initializing arrays with values overall. The following code doesn't generate a member variable at all.
class A {
  String[] S = {"a", "b"};
}


Feature Request: Restart to apply settings

Some settings changes specifically changing display language require ModernFlyouts to be restarted. For these settings there should be a button beside them to restart ModernFlyouts and apply settings.

I couldn't add a button to restart the app within the settings.
(Because restarting the app makes it run as an unpackaged app instead of a packaged one. It results in several major issues such as the app data being unavailable and functions which depends on a package identity throwing errors).

I guess this would do the job for now 😅.


[fix] Fix concurrency error by sharing config dict

Wrap analyzer options dictionary in multiprocessing manager proxy object to
ensure safe sharing.

This solution is basically a hack (and n order to remind ourselves to the fact, i have placed a FIXME comment), nevertheless this seems to solve a problem with massively parallel (-j100) runs involving statistics-based checkers.
The proper way to pass a data structure to map_async will have to be enforced by some solution, which does not seem straightforward to me ATM. I'll open an issue for the discussion.

Linux tests pass, I believe OSX ones fail because of a Travis limitation.


Bump Module Version to 1.3.0

What does this PR do?
Bumps module version to 1.3.0.
Motivation
Upcoming release of 1.3.0.
Additional Notes
Describe how to test/QA your changes
Follow the instructions using one of the examples to deploy a Lambda function instrumented with Datadog to AWS.

Reverted Datadog Extension Layer bump due to an issue with that release
https://github.com/DataDog/datadog-lambda-extension/releases/tag/v59


Edit competition fields

Setup for next year - new date, location, URLs

Fixed with pull request #101


Can't build for windows app

I've clone this repo:
https://github.com/google/flutter-desktop-embedding
I was try to run this example but the process stuck.
Build process failed. To view the stack trace, please run flutter run -d windows -v.
#0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1      buildWindows (package:flutter_tools/src/windows/build_windows.dart:77:5)

#2      WindowsDevice.buildForDevice (package:flutter_tools/src/windows/windows_device.dart:46:11)
#3      DesktopDevice.startApp (package:flutter_tools/src/desktop_device.dart:85:13)
#4      FlutterDevice.runHot (package:flutter_tools/src/resident_runner.dart:434:54)

#5      HotRunner.run (package:flutter_tools/src/run_hot.dart:333:39)
#6      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:556:37)

#7      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:668:18)
#8      _rootRunUnary (dart:async/zone.dart:1134:38)
#9      _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#10     _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
#11     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#12     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#13     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#14     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
#15     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:293:13)
#16     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#17     _rootRunUnary (dart:async/zone.dart:1134:38)
#18     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
#19     _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
#20     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#21     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#22     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#23     Future._asyncComplete. (dart:async/future_impl.dart:556:7)
#24     _rootRun (dart:async/zone.dart:1126:13)
#25     _CustomZone.run (dart:async/zone.dart:1023:19)
#26     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
#27     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:965:23)
#28     _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#29     _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#30     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#31     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:405:11)
#32     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#33     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, v1.15.4-pre.65, on Microsoft Windows [VersiÃ³n 10.0.18362.657], locale es-CO)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.4.0)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.42.1)
[√] Connected device (3 available)
• No issues found!
pubspec.yaml
name: example_flutter
description: An example project for flutter-desktop-embedding.
version: 0.1.0
environment:
sdk: '>=2.0.0 <3.0.0'
flutter: '>=1.10.2-pre.54'
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
fonts:
- family: Roboto
fonts:
- asset: fonts/Roboto/Roboto-Thin.ttf
weight: 100
- asset: fonts/Roboto/Roboto-Light.ttf
weight: 300
- asset: fonts/Roboto/Roboto-Regular.ttf
weight: 400
- asset: fonts/Roboto/Roboto-Medium.ttf
weight: 500
- asset: fonts/Roboto/Roboto-Bold.ttf
weight: 700
- asset: fonts/Roboto/Roboto-Black.ttf
weight: 900

Duplicate of https://github.com/google/flutter-desktop-embedding/issues/672
(In the future, please run with -v when reporting failures as it says in the output; the only reason I can tell what the problem is is that we have a known breakage at the moment.)


Create RDS database snapshot before executing alembic migrations

Feature or Bugfix

Feature

Detail
Alembic migrations can get complex and in some cases we are using alembic for not only schema migrations but also data migrations. When moving columns with data from one table to another we might accidentally make a mistake in a migration script. We strive to test all migration scripts and avoid bugs in such sensitive operations, but to protect users from the catastrophic situation in which there is a bug, a service issue or any other exceptional situation this PR introduces the creation of manual database snapshots before running alembic migration scripts.
This PR modifies the db_migration handler that is triggered with every backendStack update. It checks if there are new migration scripts (if the current head in the database is different from the new head in the code). If True, it will create a cluster snapshot.
Remarks:

Snapshots cannot be created when the cluster in not available, the PR introduces a check to wait for this condition. If the Lambda timeout is reached waiting for the cluster, then the CICD pipeline will fail and will need to be retried
During the creation of an snapshot we can still run alembic migration scripts
Snapshots are incremental, the first time will take a long time, but new snapshots will be faster

Relates

#1258 - This PR is a good example of complex data migration operations.

Security
Please answer the questions below briefly where applicable, or write N/A. Based on
OWASP 10.

Does this PR introduce or modify any input fields or queries - this includes
fetching data from storage outside the application (e.g. a database, an S3 bucket)?

Is the input sanitized?
What precautions are you taking before deserializing the data you consume?
Is injection prevented by parametrizing queries?
Have you ensured no eval or similar functions are used?

Does this PR introduce any functionality or component that requires authorization?

How have you ensured it respects the existing AuthN/AuthZ mechanisms?
Are you logging failed auth attempts?

Are you using or adding any cryptographic features?

Do you use a standard proven implementations?
Are the used keys controlled by the customer? Where are they stored?

Are you introducing any new policies/roles/users?

Have you used the least-privilege principle? How?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

⚠ I need to test it in AWS!

Tested in AWS!

[X] backend stack gets updated with new IAM policies for the custom resource execution role
[X] If no new migration script is found, then no snapshot is created
[ ] If new migration scripts need to be run, an snapshot is created


upstream: exclude draining hosts from eds

Commit Message: upstream: exclude draining hosts from eds
Additional Description:
Currently we only exclude hosts set to DRAINING state via healthcheck/fail from load balancing, panic routing threshold calculation. In this PR, we exclude hosts set to DRAINING state via EDS as well.
Risk Level: ?
Testing: unit tests
Docs Changes: yes
Release Notes: no

/wait

@wbpcode this is ready for another look

friendly ping @wbpcode 🌷

/wait

Is runtime guard needed to get this PR merged?

@wbpcode this is ready for another look

@htuch @wbpcode anything else i need to do to get this PR merged?

It was fine on my end, @wbpcode?

ooooooo, I am so sorry, I missed all these pings. I will take a look now.


Proposal - TheMealDB (Independent Publisher)

independent-publisher-connector
New
student
proposal

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)
If this is your first time submitting to GitHub and you need some help, please sign up for this session.

[x] I attest that the connector doesn't exist on the Power Platform today. I've verified by checking the pull requests in GitHub and by searching for the connector on the platform or in the documentation.
[x] I attest that the connector works and I verified by deploying and testing all the operations.
[x] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[x] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[x] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[x] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[x] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[x] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[x] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[x] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

Hello, @sriyen-msft I am requesting a review of The MealDBConnector.
Regards,
John.

Hello @Amjed-Ayoub,
I made the changes requested in the conversation. I am requesting a review of the submission.
Regards,
John

Hi @johnmuchiriM, Thank you so much for all your hard work with us and thank you for fixing your connector artifacts.
May I ask you please to resolve all conversations above after you make the changes.

Hi @Amjed-Ayoub, I have resolved all the conversations. Welcome & thanks for the nice words.

[[certify-connector]]

Hello @johnmuchiriM,
I hope you are doing well.
May I ask you please to remove the other proposal files from this pull request so we can move forward with the certification process.
Please let me know if you have any questions.
Thank you so much again.

Hi, I have deleted a readme file for another separate connector. Kindly @Amjed-Ayoub advise if we're all good.

Hi @Amjed-Ayoub, I am doing well, I hope it is the same on your end. I have deleted a readme file for another separate connector. Kindly advise if we're all good. I also have one question on needs: partner-attention badge, does it mean asking permission from the API owner? I have attached a request I made to the API owner, Is it the one? kindly expand on it. Thank you & welcome.

Hi @johnmuchiriM Thank you so much for that question. this label is for you as a publisher to know that the pull request needs your attention to fix something. for example here it was to let you know that you needed to delete the readme file for the other proposal.
I hope this helps.
Thank you so much again.

[[certify-connector]]

Hello @johnmuchiriM,
I hope you are doing well.
Congratulations, your pull request is approved. We will move forward with the certification process. We are preparing your connector for production deployment and will queue up for the next deployment schedule. Once your connector onboards the next deployment schedule, it starts to deploy your connector in our production environments that typically takes 3-4 weeks.
Please let us know if you have any questions.
Thank you very much for working with us.

Hi @Amjed-Ayoub,
Thank you so much for the in-depth explanation. I have a clear understanding of the badge. The next time I see it, it will not catch me off-guard.

Hi @Amjed-Ayoub,
Great news! I am excited to get to this level. I don't have a question at the moment. 🔥

Hello @johnmuchiriM ,
I hope you are doing well.
Your connector is in production deployment and queued up for the next deployment schedule. This process typically takes 3-4 weeks. Please note that the documentation for your connector will not be generated until the deployment process is in the final steps.
Please let us know if you have any questions.
Thank you very much for working with us.

Hi @Amjed-Ayoub ,
These are great news! I am excited to see it go to the last stages. I will keep calm and await its deployment.
Best regards,
John Muchiri.

Hi @Amjed-Ayoub ,
These are great news! I am excited to see it go to the last stages. I will keep calm and await its deployment.
Best regards, John Muchiri.

Hello @johnmuchiriM,
Thank you so much for all your hard work on this connector. We really appreciate your enthusiasm and excitement.
We are expediting the deployment process for all new connectors. Please expect this to complete within this week :-)
Thank you so much again for working with us.

Hi @Amjed-Ayoub ,
This is well noted. The whole journey is exciting and it makes it hard to hide. Thank you for your constant follow-up and communication.
Best regards,
John Muchiri

Hello @johnmuchiriM,
I hope you are doing well.
Congratulations, the deployment of your connector and documentation page was already completed, We have a short survey on the connector certification process that we would like for you to complete. Your feedback is appreciated and will help us improve the program.
Thank you very much for working with us.

Hi @Amjed-Ayoub
These are just the news I needed to end the week in an awesome way! I am so happy! Thank you for the guidance you offered me through the whole process. This deployment journey has been awesome, I loved it! I will check on the survey. Looking forward on the connector being used by platform developers and other users! This is awesome!!!

Thank you so much @johnmuchiriM, it was a pleasure working with you.
We are looking forward to your next connector.
Thank you so much again.

Hi @Amjed-Ayoub ,
You're Welcome. The next connector is on the way!

Hi @johnmuchiriM,
I hope you are doing well.
I just noticed that I mistakenly approved your PR as it is missing the contact section in the swagger file. May I ask you please to add this section below to your swagger file and submit a new PR. We will move fast with the deployment since this is a very small change. This will allow us to send you your Biweekly report about your connector usage.
I look forward to hearing from you.
Thank you so much.

Hi @Amjed-Ayoub ,
This is well noted. I will do the changes and inform you once I push to a new PR.
Thanks.

Hi @Amjed-Ayoub ,
I created a new PR. Named it The Meal DB v1.1.0
Thank you.
John.


How to pass a parameter of input in command line (or another script)?

I need to re-use multi-time a scritp so I think to launch a tagui script inside an another.
But I need to change a parameter as input as specifies in cheatsheet:

"input(s) | add your own parameter(s) to be used in your automation flow as variables p1 to p9"

How can I do that?
I tried :
tagui filename.tagui p1='test'
but it return ERROR file not fount.
And next: How to use this parameter in the script? like another variable?
Thanks!

Hi @adegard that's a good question. TagUI will automatically take the command line parameters and map them to p1, p2, p3 etc. The command line options (click the point there to expand and show) will automatically be ignored and not be taken as parameters.
For example this script demo -
echo "parameter 1 is - " p1
echo "parameter 2 is - " p2
echo "parameter 3 is - " p3

Gives the following output and chrome option automatically ignored not to be used as parameter -
TA:Desktop kensoh$ tagui demo chrome apple orange banana

START - automation started - Fri May 11 2018 01:22:25 GMT+0800 (+08)

parameter 1 is - apple
parameter 2 is - orange
parameter 3 is - banana

FINISH - automation finished - 1.9s

the order of the chrome option is not important, it will be taken out and not used as parameter -
TA:Desktop kensoh$ tagui demo apple orange banana chrome

START - automation started - Fri May 11 2018 01:25:43 GMT+0800 (+08)

parameter 1 is - apple
parameter 2 is - orange
parameter 3 is - banana

FINISH - automation finished - 2.0s

TA:Desktop kensoh$ tagui demo apple orange chrome banana

START - automation started - Fri May 11 2018 01:25:59 GMT+0800 (+08)

parameter 1 is - apple
parameter 2 is - orange
parameter 3 is - banana

FINISH - automation finished - 1.9s

I'll close the issue, but lemme know if you have any questions or comments!

Hello, quick question. How do I pass a text variable with spaces ?
Say, I want p1 to be 'hello world'.

Interesting question, posted a new issue - https://github.com/kelaberetiv/TagUI/issues/358

Hey Sarat, not designed to pass in variables with space, but you can use the following method by passing filename of complex inputs parameters. for eg, assuming data.json contains the data -
tagui demo_script data.json
demo_script
load `p1` to data
echo data


Updated node migration scripts in CE 4.11 release notes

Preview: https://anna.preview.docs.r3.com/en/platform/corda/4.11/community/release-notes.html#database-schema-changes

I'm not sure about the pieces above "See node migration scripts". For example, should "There are two further tables..." be another bullet? or maybe it just all needs to be indented to be show as part of the "Two Phase Finality introduces.." bullet?

Yes, all of this is part of the Two Phase Finality bullet. Indented the content accordingly so it's more clear.


Retrieve SubjectSet by display_name

I'd like to do this:
GET https://panoptes-staging.zooniverse.org/api/subject_sets?project_id=62&display_name=cats

With regards to this issue and #708, the subject set display name is intended to only be an aid to the project author, which is why it's not filterable and why there is no requirement for uniqueness.
What's the use case for filtering on the server? Do you have many subject sets? You could always just filter the collection in your client since there probably aren't that may you're getting back

I have a handful of subject sets. Since I only "know" the display_name for the subject set and not the ID, it would simply be convenient to filter by display_name. For example, I set up my project and then later I decide I want to add subjects. Unless I've made a note of the ID, I have to pull all the subject sets and filter them myself. (Which is what I'm presently doing, BTW.)
Let's see... I think I'll end up with 23 subject sets for this project. So it would be nice to be able to filter by display_name or else up the page size >20. (Oh, actually I'll have 25, since it appears that there are two default subject sets...)
WRT #708, I've made two subject sets with the same name, but now since I'm filtering in my scripts, I have no idea which subject set I 'want'. This is, I think, about not letting users shoot themselves in the foot.

Cool, I'll go ahead and add support for this.


JS

Function: display search history
Function: clear search history
Submit form
fetch pokemon from pokeAPI
divs for stats and images
fetch pokemon from pogo api
divs for stats (and images ?)
fetch from search history

All areas functional and even more.
I added code that limits search history to unique items.
I added code that allows the user to click on items in search history to load data again.


Reverse field creation on prototype blocks HMR

The problem
When doing a hot reload of a page with Webpack HMR and when my models have not changed (and are not reloaded), redux-orm throws an exception:
Reverse field users already defined, on model project. To fix, set a custom related name on user.project.

This is because redux-orm modifies the prototype of my models (https://github.com/tommikaikkonen/redux-orm/blob/7e8741ff6a26c1017dbd7506aad3bf19442964c7/src/fields.js#L148) to add the reverse fields and, when the models get registered a second time on a new ORM instance (because of HMR), redux-orm fails to register the models again.
Ideally, redux-orm should not modify the models themselves and everything should be bound to the ORM instance that it is working on.
Workaround
As a workaround, I am giving a clone of my models' classes to redux-orm and that works fine.
Framework
A quick note on my stack (though I don't think it matters and the problem would happen with any use of redux-orm and Webpack HMR): I am using redux-orm with Angular (@angular-redux/store).

@jawadst what version of redux-orm are you using? I'm using 0.9.0-rc.3 and have no issues with HMR

@nealoke
Interesting. And do you use a fk() in your models? I don't think I was clear on that but the issue comes from a many-to-one relationship.
I am using 0.9.3

Using both fk() and many() relationships :/

Weird, and it looks like 0.9.0-rc.3 does more or less the same thing as 0.9.3 with the prototype

I'd noticed this myself, going back to 0.8.x, but never got around to filing an issue on it.

@jawadst Any progress on the example for reproducing the issue? This sounds really nasty but I haven't experienced it myself.

This issue may not actually be resolvable wit the current design. It could be that ORM instances are supposed to be singletons. If you create a second one registering the same models as the first time, it just breaks apart.
On the other hand, Model.invalidateClassCache could be a good place to look for a solution. Maybe the problem lies in the fact that when you create a second ORM instance orm2, orm2.installedFields will be set to {} making it impossible to remove fields from Model classes that have already been defined.

@jawadst Is there a possible workaround for TypeScript right now? I can't exactly fiddle with the classes themselves.
@haveyaseen Would a possible solution be adding
https://github.com/tommikaikkonen/redux-orm/blob/4267303bf56cab58e14742bbe750b0a40315d69e/src/descriptors.js#L31
to the other descriptors since it's already in the attr one?

@magneticflux-
The workaround we are using is to clone the Model class before handing it over to redux-orm. It's not elegant but it works and it's only for dev/HMR.


error when responding to a message

Error while replying to user: DiscordHTTPError: 500 INTERNAL SERVER ERROR on POST /api/v7/channels/551595418429947905/messages

By responding to a message, do you mean when you !reply / !r to a modmail thread? Do you get this error every time you do that, or just randomly? Can you try again after a few hours and see if it still happens?
These ("internal server error") are generally random errors from Discord's side (hence "internal", referring to an error the servers encountered as opposed to a mistake on the bot's part (which would have an error code of 400-499)). As far as I know there's nothing I can do to fix them - but they are usually pretty rare, so they shouldn't cause a lot of problems. However, if you're getting them all the time in a reproducible manner, then that could be something to look into.

I've came across this and what I done was create a new discord bot, with a new token etc...Try that and see if that works.

The issue is very rare and only happened ounce to me so it is very likely that is a interval error with discord


 is not a known element

I get an error 'mat-sidenav-container' is not a know element in app.component.html
When I click on the icon in the  the (click)="sidenav.open()" does not trigger.
I've tried the online demo
https://tomastrajan.github.io/angular-ngrx-material-starter#/about
in both Chrome and Edge  and get the same behaviour (I don't get the sidenav bar)
Any idea what would be the problem?

=*мпрарсрпаррпрапврапааапмп


airports/query-8.sql incorrect

The SQL query does not take count of International flights but just flights

SQL query just updated


gifcli user:register Request failed with status code 400

gifcli is deprecated, it's replaced by the @etherisc/gif-connect tool


Activate Travis

Done.
Build passing.
Not sure how to get the code coverage and test passing/failing badges.

Update:
Password hashing added.
Build passing, tests pass with 100% code coverage.


Problems with Lollipop - black image

Hi,
I'm facing a quite interesting problem on Android Lollipop - if I set Bitmap to CircleImageView with setImageBitmap() method, it just shows black image:

Image is selected from Gallery app, and I can view it in debug mode (bitmap is not corrupted).
Everything is working OK with default ImageView:

This behaviour is random - some images are working correctly, some are not, and it occurs only on Android Lollipop.
Do you have any suggestions? I've checked app logs, everything is working OK - no OutOfMemory exceptions or something similar.

Hi @zplesac!
Any specific format, dimensions or other things that seem more prone to
fail? I know you hinted at the problem being random, but I'm guessing you
can reproduce it with the same images?
On Jan 5, 2015 4:31 PM, "zplesac"<EMAIL_ADDRESS>wrote:

Hi,
I'm facing a quite interesting problem on Android Lollipop - if I set
Bitmap to CircleImageView with setImageBitmap() method, it just shows black
image:
[image: monosnap 2015-01-05 16-19-32]
https://cloud.githubusercontent.com/assets/3542084/5614966/aac92fb8-94f6-11e4-9651-fbf276d8e876.png
Image is selected from Gallery app, and I can view it in debug mode
(bitmap is not corrupted).
Everything is working OK with default ImageView:
[image: monosnap 2015-01-05 16-23-12]
https://cloud.githubusercontent.com/assets/3542084/5615006/2a6d5eb0-94f7-11e4-8808-1da44110194f.png
This behaviour is random - some images are working correctly, some are
not, and it occurs only on Android Lollipop.
Do you have any suggestions? I've checked app logs, everything is working
OK - no OutOfMemory exceptions or something similar.
—
Reply to this email directly or view it on GitHub
https://github.com/hdodenhof/CircleImageView/issues/31.

Hi @karllindmark,
I've investigated further, and it seems that problem is occurring only on high-res pictures (i.e. 2448 x 3264 - highest resolution on Nexus 4). If I downgrade camera resolution and quality, everything is working OK.

Interesting! I'll try to reproduce the issue and look into it.

I also have almost the same problem.
I do get to see the image in the Circle Imageview but a black square is apperaing behind it.
Not on every photo and sometimes it appear and sometimes not.
Works perfect on Android version lower than Lollipop.
My device is also Nexus 4.
Thanks.

I also have same problem.
when building with api level 21 circle imageview with high resolution png images tends to black out with universal image loader as well as picasso.

Same image works when app is build with api level below lollipop.
Thanks.

I have still no idea why that happens, but I agree that it seems to be connected to the high resolution. I'll stay on it.
As a quick workaround you could just scale down the Bitmap before passing it to the CircleImageView - or better only load a scaled down version of the Bitmap into memory in the first place.

Agreed, that could be quick & dirty solution.

anyone found a proper solution for this problem?

I haven't look into this any more. But I again strongly suggest to only load a scaled-to-fit Bitmap into memory - this not only helps with the problem but is also important for preserving memory.

The scaled down version doesn't look so good on nexus 6. I tried that. But its workable so I guess I'll just stick with that.

@15100103 What's are the dimensions of your image and the CircleImageView?

i  have the same problem， on android 5.0

How can we fix it ? I got the same problem.

The Solution is here my friends: I have same problem : and I Find solution.
Solution:
Set image following way if you are selecting image form gallery or camera.
Do not use any library to set image or display image. use native way to display image.
 :)
Like image_profile.setImageURI(Uri.fromFile(new File("")));

I still have the same problem, I am using Picasso to load every pictures. The dimension of my picture is 300x300.
I have CircleImageView and Picasso update to the lastest version.
P.S : Used in an RecyclerView Adapter.

public class CircleImageView extends ImageView {
private static final ScaleType SCALE_TYPE = ScaleType.CENTER_CROP;

private static final Bitmap.Config BITMAP_CONFIG = Bitmap.Config.ARGB_8888;
private static final int COLORDRAWABLE_DIMENSION = 2;

private static final int DEFAULT_BORDER_WIDTH = 0;
private static final int DEFAULT_BORDER_COLOR = Color.BLACK;
private static final boolean DEFAULT_BORDER_OVERLAY = false;

private final RectF mDrawableRect = new RectF();
private final RectF mBorderRect = new RectF();

private final Matrix mShaderMatrix = new Matrix();
private final Paint mBitmapPaint = new Paint();
private final Paint mBorderPaint = new Paint();

private int mBorderColor = DEFAULT_BORDER_COLOR;
private int mBorderWidth = DEFAULT_BORDER_WIDTH;

private Bitmap mBitmap;
private BitmapShader mBitmapShader;
private int mBitmapWidth;
private int mBitmapHeight;

private float mDrawableRadius;
private float mBorderRadius;

private ColorFilter mColorFilter;

private boolean mReady;
private boolean mSetupPending;
private boolean mBorderOverlay;

public CircleImageView(Context context) {
	super(context);

	init();
}

public CircleImageView(Context context, AttributeSet attrs) {
	this(context, attrs, 0);
}

public CircleImageView(Context context, AttributeSet attrs, int defStyle) {
	super(context, attrs, defStyle);

	TypedArray a = context.obtainStyledAttributes(attrs,
			R.styleable.CircleImageView, defStyle, 0);

	mBorderWidth = a.getDimensionPixelSize(
			R.styleable.CircleImageView_border_width, DEFAULT_BORDER_WIDTH);
	mBorderColor = a.getColor(R.styleable.CircleImageView_border_color,
			DEFAULT_BORDER_COLOR);
	mBorderOverlay = a.getBoolean(
			R.styleable.CircleImageView_border_overlay,
			DEFAULT_BORDER_OVERLAY);

	a.recycle();

	init();
}

private void init() {
	super.setScaleType(SCALE_TYPE);
	mReady = true;

	if (mSetupPending) {
		setup();
		mSetupPending = false;
	}
}

@Override
public ScaleType getScaleType() {
	return SCALE_TYPE;
}

@Override
public void setScaleType(ScaleType scaleType) {
	if (scaleType != SCALE_TYPE) {
		throw new IllegalArgumentException(String.format(
				"ScaleType %s not supported.", scaleType));
	}
}

@Override
public void setAdjustViewBounds(boolean adjustViewBounds) {
	if (adjustViewBounds) {
		throw new IllegalArgumentException(
				"adjustViewBounds not supported.");
	}
}

@Override
protected void onDraw(Canvas canvas) {
	if (getDrawable() == null) {
		return;
	}

	canvas.drawCircle(getWidth() / 2, getHeight() / 2, mDrawableRadius,
			mBitmapPaint);
	if (mBorderWidth != 0) {
		canvas.drawCircle(getWidth() / 2, getHeight() / 2, mBorderRadius,
				mBorderPaint);
	}
}

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
	super.onSizeChanged(w, h, oldw, oldh);
	setup();
}

public int getBorderColor() {
	return mBorderColor;
}

public void setBorderColor(int borderColor) {
	if (borderColor == mBorderColor) {
		return;
	}

	mBorderColor = borderColor;
	mBorderPaint.setColor(mBorderColor);
	invalidate();
}

public void setBorderColorResource(@ColorRes int borderColorRes) {
	setBorderColor(getContext().getResources().getColor(borderColorRes));
}

public int getBorderWidth() {
	return mBorderWidth;
}

public void setBorderWidth(int borderWidth) {
	if (borderWidth == mBorderWidth) {
		return;
	}

	mBorderWidth = borderWidth;
	setup();
}

public boolean isBorderOverlay() {
	return mBorderOverlay;
}

public void setBorderOverlay(boolean borderOverlay) {
	if (borderOverlay == mBorderOverlay) {
		return;
	}

	mBorderOverlay = borderOverlay;
	setup();
}

@Override
public void setImageBitmap(Bitmap bm) {
	super.setImageBitmap(bm);
	mBitmap = bm;
	setup();
}

@Override
public void setImageDrawable(Drawable drawable) {
	super.setImageDrawable(drawable);
	mBitmap = getBitmapFromDrawable(drawable);
	setup();
}

@Override
public void setImageResource(@DrawableRes int resId) {
	super.setImageResource(resId);
	mBitmap = getBitmapFromDrawable(getDrawable());
	setup();
}

@Override
public void setImageURI(Uri uri) {
	super.setImageURI(uri);
	mBitmap = getBitmapFromDrawable(getDrawable());
	setup();
}

@Override
public void setColorFilter(ColorFilter cf) {
	if (cf == mColorFilter) {
		return;
	}

	mColorFilter = cf;
	mBitmapPaint.setColorFilter(mColorFilter);
	invalidate();
}

private Bitmap getBitmapFromDrawable(Drawable drawable) {
	if (drawable == null) {
		return null;
	}

	if (drawable instanceof BitmapDrawable) {
		return ((BitmapDrawable) drawable).getBitmap();
	}

	try {
		Bitmap bitmap;

		if (drawable instanceof ColorDrawable) {
			bitmap = Bitmap.createBitmap(COLORDRAWABLE_DIMENSION,
					COLORDRAWABLE_DIMENSION, BITMAP_CONFIG);
		} else {
			bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(),
					drawable.getIntrinsicHeight(), BITMAP_CONFIG);
		}

		Canvas canvas = new Canvas(bitmap);
		drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
		drawable.draw(canvas);
		return bitmap;
	} catch (OutOfMemoryError e) {
		return null;
	}
}

private void setup() {
	if (!mReady) {
		mSetupPending = true;
		return;
	}

	if (mBitmap == null) {
		return;
	}

	mBitmapShader = new BitmapShader(mBitmap, Shader.TileMode.CLAMP,
			Shader.TileMode.CLAMP);

	mBitmapPaint.setAntiAlias(true);
	mBitmapPaint.setShader(mBitmapShader);

	mBorderPaint.setStyle(Paint.Style.STROKE);
	mBorderPaint.setAntiAlias(true);
	mBorderPaint.setColor(mBorderColor);
	mBorderPaint.setStrokeWidth(mBorderWidth);

	mBitmapHeight = mBitmap.getHeight();
	mBitmapWidth = mBitmap.getWidth();

	mBorderRect.set(0, 0, getWidth(), getHeight());
	mBorderRadius = Math.min((mBorderRect.height() - mBorderWidth) / 2,
			(mBorderRect.width() - mBorderWidth) / 2);

	mDrawableRect.set(mBorderRect);
	if (!mBorderOverlay) {
		mDrawableRect.inset(mBorderWidth, mBorderWidth);
	}
	mDrawableRadius = Math.min(mDrawableRect.height() / 2,
			mDrawableRect.width() / 2);

	updateShaderMatrix();
	invalidate();
}

private void updateShaderMatrix() {
	float scale;
	float dx = 0;
	float dy = 0;

	mShaderMatrix.set(null);

	if (mBitmapWidth * mDrawableRect.height() > mDrawableRect.width()
			* mBitmapHeight) {
		scale = mDrawableRect.height() / (float) mBitmapHeight;
		dx = (mDrawableRect.width() - mBitmapWidth * scale) * 0.5f;
	} else {
		scale = mDrawableRect.width() / (float) mBitmapWidth;
		dy = (mDrawableRect.height() - mBitmapHeight * scale) * 0.5f;
	}

	mShaderMatrix.setScale(scale, scale);
	mShaderMatrix.postTranslate((int) (dx + 0.5f) + mDrawableRect.left,
			(int) (dy + 0.5f) + mDrawableRect.top);

	mBitmapShader.setLocalMatrix(mShaderMatrix);
}

}

Same problem, does anyone know how to fix??
I use versions 2.0.0 and images 300x300px

I have same problem with
compile 'de.hdodenhof:circleimageview:1.3.0'

on HTC One, Android 5.0.2:

I set the image by:
    mPhotoImageView.setImageResource(R.drawable.photo);

or in the layout file:
       <de.hdodenhof.circleimageview.CircleImageView
            android:id="@+id/photo"
            android:layout_width="96dp"
            android:layout_height="96dp"
            android:src="@drawable/photo"
            app:border_width="2dp"
            app:border_color="#FFF"
            />

The xhdpi file photo.png is 17 Kbyte and 240x240:

got this at 5.1.1 in listview :( image size 177х158

People, how you deal with this bug? What you mean when saying "scale to fit". Give me a sample please!

I think I found a solution in lollipop.
myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

This disable hardware acceleration.
You can use this to circleimageview's parent view, profile_img_container.
Don't use this to circleimageview directly.  Thank you so much!!
Why enybody didn't wrote this before :(i am already wrote my own simple custom circle view, and it would be pity don't use it.

I'm happy to hear that. Good luck to you, Anton. :)
2015. 11. 18.  Thank you so much!!
Why enybody didn't wrote this before :(i am already wrote my own simple
custom circle view, and it would be pity don't use it.
—
Reply to this email directly or view it on GitHub
https://github.com/hdodenhof/CircleImageView/issues/31#issuecomment-157721755
.

myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
awesome solutions  , this is working in my lollipop code ,
Thanks a lot

Solution:
Wrap the CircleImageView with a layout LinearLayout or FrameLayout, set the LAYER TYPE propperty to software. That's all.

Use setLayerType (int layerType, Paint paint)
Refer : http://developer.android.com/reference/android/view/View.html#setLayerType(int, android.graphics.Paint) for more details

谢谢！ android:layerType="software"

Hi All,
Facing the same problem.
If i add this android:layerType to the view in the xml itself. Is that works.
Thank you.

myView.setLayerType（View.LAYER_TYPE_SOFTWARE，NULL）;
this is work for my problem ,thx,but I have another problem that items have black background

android:layerType="software" works perfectly

Could you guys stop replying about android:layerType="software", because that would be just a workaround, which costs your app performance.

@afarber is right, using software rendering is just a workaround which can have significant performance implications.
After some research it seems there are some bitmap decoding issues on a couples devices, e.g. Moto X. To pin this down please provide the following if you are still having this issue:

Device and Android-Version
Image resolution (px) and CircleImageView size (dp)
The way you load the image (relevant code extract)
Any logcat entries with skia or SkImageDecoder in them

I had this on Moto G generation 2, but don't have that device right now.

Hi all,
While using layertype = "software" I m getting the black border in my imageview. anybody resolved this problem??

@suresh1295 I also set the background on my image view and that made it work.

android:layerType="software"
it worked for me (Y)

set container layerType = "hardware", and
set ImageView layerType = "software".
It works and imageview container to be Linearlayout and Relative layout.

Can someone open a PR with this fix? So that we can get it included in next release?

Using android:layerType="software" is not a fix but a workaround which can have significant performance implications. More information is needed for a proper fix, see my earlier comment.

One thing I noticed is that, this situation only occur when we try to load images from resources. I'm developing a music player and extracted all the artwork in one place. It works fine with that extracted artwork but when I put the same images in the drawable folder it fails to load.

In Android5: it works for: myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

but that's not a proper solution to this because this will display a very low resolution image.

I had this issue come up due to the use of shrinkResources true in my Gradle file

Perhaps i have found why this happened ,if you have this problem, check your codes ,and make sure the bitmap that you are using has not been recycled.

@whimaggot it wasn't, only setting container of image view to software rendering worked for me

@Zhuinden how you were loading the image? Glide or something else?

Glide of course

did you use .dontAnimate() on glide while loading image? I too faced this issue, but somehow it got fixed. I don't exactly remember the solution correctly. Using software rendering will result in the low-quality image.

@Zhuinden Use glide with circle transformation instead of this library; and if the same problem exists there, please report the affected device to https://github.com/bumptech/glide/issues/738

Layer type software on the container works for me, I've been using that with success
I don't have the capacity to test the alternative at this time but thanks

use glide with drawables and custom transformations.This worked perfectly for me.
Glide.with(this).load(R.drawable.raspberrypi2).bitmapTransform(new CircleTransform(this)).into(raspberry);
raspberrypi2 is the image inside drawable folder.
CircleTransform is the java file that does the circular image tranformation.
It works like a charm.

The workaround here works, but only the first time. If I move away from the screen and go back, then it has a black bg again. How is this still an issue 3 years later?!

我也遇到了这样的问题，在用circleimageview显示本地图片时，有时图片会显示不全，一半图片一半黑色，也有时是底部有部分黑色，出现的情况是随机的。

I also encountered such a problem, when using circleimageview to display local images, sometimes the images will not show all, half of the picture is half black, sometimes there is a part of black at the bottom, the situation is random.


bikeshed should mark as no-export CSS values that are reusing predefined types

When a CSS property is defined with bikeshed, and the components of the value are marked with a <dfn> element, these components end up being exported by default.
While this may make sense for e.g. specific keywords, I don't think it does for e.g. <length-percentage [0,+∞]> as in the definition of background-size components.
While one could argue the specs should explicitly set no-export on these <dfn>, since it is bikeshed that automatically set the export on them, and since there are quite a few specs where this is the case, I wonder if bikeshed could and should by default not export them.
List of cases
 `<absolute-size>` is exported as value in css-fonts-4
 `<angle>` is exported as value in css-images-3, css-images-4
 `<angle>? flip` is exported as value in css-images-3
 `<basic-shape>` is exported as value in css-shapes-1, css-shapes-2
 `<box>` is exported as value in css-backgrounds-4
 `<color>` is exported as value in css-backgrounds-3, css-multicol-1, css-scrollbars-1
 `<content-list>` is exported as value in css-content-3
 `<counter-name> ?` is exported as value in css-lists-3
 `<counter-style-name>` is exported as value in css-counter-styles-3
 `<counter-style>` is exported as value in css-lists-3
 `<custom-ident>` is exported as value in css-grid-1, css-will-change-1
 `<decibel>` is exported as value in css-speech-1
 `<dimension-unit>` is exported as value in css-values-4
 `<ending-shape>` is exported as value in css-images-3
 `<family-name>` is exported as value in css-speech-1
 `<feature-tag-value>` is exported as value in css-fonts-4
 `<fill-rule>` is exported as value in css-shapes-2
 `<'flex-basis'>` is exported as value in css-flexbox-1
 `<'flex-grow'>` is exported as value in css-flexbox-1
 `<'flex-shrink'>` is exported as value in css-flexbox-1
 `<flex>` is exported as value in css-grid-1
 `<frequency>` is exported as value in css-speech-1
 `<'grid-template-rows'> / <'grid-template-columns'>` is exported as value in css-grid-1
 `<'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>?` is exported as value in css-grid-1
 `<image>` is exported as value in css-content-3, css-lists-3, css-shapes-1
 `<integer [1,∞]>` is exported as value in css-multicol-1, css-multicol-2
 `<integer>` is exported as value in css-content-3, css-flexbox-1, css-inline-3, css-multicol-1, css-overflow-3, css-overflow-4, css-speech-1
 `<integer> && ?` is exported as value in css-grid-1
 `<keyframes-name>` is exported as value in css-animations-1
 `<length [0,∞]>` is exported as value in css-multicol-1, css-overflow-3, css-transforms-2
 `<length-percentage [0,∞]>` is exported as value in css-backgrounds-3, css-multicol-1
 `<length-percentage>` is exported as value in css-backgrounds-3, css-fonts-4, css-grid-1, css-scroll-snap-1, css-shapes-1, css-sizing-3
 `<length-percentage>+#` is exported as value in fill-stroke-3
 `<length-percentage>{2}` is exported as value in css-images-3
 `<length>` is exported as value in css-backgrounds-3, css-device-adapt-1, css-images-3, css-inline-3, css-multicol-1, css-page-3, css-position-3, css-scrollbars-1, css-shapes-1, css-text-3, css-text-decor-4, css-transforms-2
 `<length>{2}` is exported as value in css-sizing-4
 `<number [0,∞]>` is exported as value in css-backgrounds-3
 `<number>` is exported as value in css-animations-1, css-backgrounds-3, css-flexbox-1, css-fonts-3, css-fonts-4, css-inline-3, css-shapes-1, css-speech-1, fill-stroke-3
 `<percentage [0,∞]>` is exported as value in css-backgrounds-3
 `<percentage>` is exported as value in css-backgrounds-3, css-device-adapt-1, css-fonts-4, css-inline-3, css-position-3, css-shapes-1, css-size-adjust-1, css-speech-1, css-text-3, css-text-decor-4, css-transforms-2
 `<position>` is exported as value in css-images-3, css-images-4
 `<ratio>` is exported as value in css-sizing-4
 `<relative-size>` is exported as value in css-fonts-4
 `<resolution>` is exported as value in css-images-4
 `<semitones>` is exported as value in css-speech-1
 `<size>` is exported as value in css-images-3, motion-1
 `<string>` is exported as value in css-content-3, css-fonts-4, css-lists-3, css-overflow-3, css-shapes-1, css-shapes-2, css-text-4, css-text-decor-3, css-text-decor-4
 `<string>+` is exported as value in css-grid-1
 `<time>` is exported as value in css-animations-1, css-speech-1
 `<track-list> | ` is exported as value in css-grid-1
 `<urange>` is exported as value in css-fonts-3
 `<uri>` is exported as value in css-shapes-2, css-speech-1
 `<url>` is exported as value in css-masking-1

The couple of these that I just checked are setting a data-dfn-for, which means the exported definition won't collide with anything. And are plausibly useful link targets. Am I missing a reason this is a problem?

Additionally these are all exported as data-dfn-type=value, which is distinct from data-dfn-type=type; the latter is what's autolinked by the <<foo>> syntax, so there are no collisions there either. If there are collisions, they're no different from collisions in a common keyword - they do need fixing (with a data-dfn-for), but aren't wrong in general.


detect "Windows" edge case

detect "Windows" at edge case #12
I have fixed the order of OS detection, and add test.

I do not like else statements, I avoid at all costs. Can you structure it without else?

ok, I will try it

thanks!


Export-jdl: exporting mono and multi applications

Please make sure the below checklist is followed for Pull Requests.

[ ] Travis tests are green
[x] Tests are added where necessary
[ ] Documentation is added/updated where necessary
[ ] Coding Rules & Commit Guidelines as per our CONTRIBUTING.md document are followed

I worked on the sub generator export-jdl to add the support of mono and multi app configurations.

Thanks again for this :)


Unable to use lists/arrays in events

In addition to #61 (we'll need to add .clone for these types), there are some extra problems when using lists/arrays

We don't have AnchorSerialize / AnchorDeserialize implemented for Mutable[T]. See https://github.com/ameliatastic/seahorse-lang/issues/33#issuecomment-1328260179 for a potential implementation
The IDL generates the Mutable type

        {
          "name": "items",
          "type": {
            "defined": "Mutable<Vec<u8>>"
          },
          "index": false
        },

Yeah that's a big problem. What Seahorse type does that IDL come from?

Yeah that's a big problem. ~What Seahorse type does that IDL come from?~ update: duh it's a List[u8], for some reason I thought Anchor was coercing arrays to Vec

since this is working now we can close this issue


Env rollouts during imagination in dflex

Hello,
Thank you for sharing your work. I have a question regarding the implementation of the actor loss computation. It appears that you run the simulator in parallel with the learned dynamics model to filter out "bad" trajectories when using the dflex simulator. Is my understanding correct?

Yes, the simulator is running in parallel with the learned dynamics model. However, don't think there is any filtering of bad trajectories. All of them are used for both world model learning and policy learning.

Thank you for your answer. By "filtering bad trajectories," I meant stopping the imagined rollouts early in case of an early termination. Is this what you are implementing?

Ah yes, we do that indeed. When running the single task experiments in dflex, we get early termination flags from the simulation at which point we terminate the imagined rollout and start again from a (randomized) starting state. We do this for fair comparison with baselines such as PPO and SHAC.

Thank you very much for your answer!


Schedules | Search

Summary of changes
Asana Ticket: Schedules | Search
Adds a search box above the line diagram that will filter the list of stops. It highlights the matching text with a colored background and shows a brief message if there are no matches found.
This PR adds a few new reusable functions to our codebase:

useFilteredList() our first custom React hook: captures logic and manages state for filtering a list of objects or strings based on a string query.
<SearchBox />: makes a React component out of our existing big search box
<MatchHighlight />: captures logic for matching a substring of text and outputting HTML markup to display the text with the matching text highlighted

I am so impressed by how well this works - so smooth, can't fault it! 👍

This is looking good, but do we know what's up with the code coverage change? Any important logic branches we're not testing?

Ah, I can see it... weird, the coverage changes are reported in some Elixir code whose coverage shouldn't have been changed by this PR. We can look into this separately.


Force use of cross instead of cargo?

Is there an option to make it always use cross?
I am trying to compile to x86_64_unknown_linux_musl but my build fails because it is missing the musl-gcc and some other libs necessary to cross-compile with MUSL.

There's no such option right now. It wouldn't be hard to add but in this case why not just install the necessary packages as part of your workflow?

I realized that this is actually the same as #20, which is fixed in v0.0.14.


chore(example): add finetune example for stable diffusion

Description
Add the example as following steps:

build origin model package
build eval and fine-tune dataset
build fine-tune model package and generate new ft model package
compare the origin and ft results：http://e2e-20231023.pre.intra.starwhale.ai/simple/report/preview/?rid=3f7ac487-7225-4eca-a687-1aea33e9d982

TODO

Support dataset head when run a handler in web ui.
Supports blood relationships of artifacts.
How to identify a fine-tune job?
Support model file edit?
Export a report?

Modules

[ ] UI
[ ] Controller
[ ] Agent
[ ] Client
[ ] Python-SDK
[x] Others

Checklist

[x] run code format and lint check
[ ] add unit test
[x] add necessary doc

Combine [build_dataset_for_eval.py](https://github.com/star-whale/starwhale/pull/2641/files#diff-d68daf33005c87c31ee200ab7afa7e1c9d33582afd0645032e820f30062d3c99) and example/stable-diffusion/txt2img-ft/build_dataset_for_ft.py into one script? @goldenxinxing

upload example/stable-diffusion/txt2img-ft/report.png into private aliyun oss storage, and copy the public download link?

add these example into https://cloud.starwhale.cn/projects/374/overview ? @goldenxinxing

upload example/stable-diffusion/txt2img-ft/report.png into private aliyun oss storage, and copy the public download link?

done

add these example into https://cloud.starwhale.cn/projects/374/overview ? @goldenxinxing

done, https://cloud.starwhale.cn/simple/report/preview/?rid=33b8c99d-c9bf-4631-9970-6c7a8bcff6bd


v0.2.1 referenced in Readme does not exist on maven central

v0.2.1 referenced in Readme does not exist on maven central https://central.sonatype.com/artifact/software.amazon.lambda.snapstart/aws-lambda-snapstart-java-rules/versions

Yes, it should be v.0.2.0

@sandeepveldi thanks for raising the issue. v0.2.1 is now available on maven central https://central.sonatype.com/artifact/software.amazon.lambda.snapstart/aws-lambda-snapstart-java-rules/0.2.1/versions


[FLINK-8148][yarn/s3] fix test instability in YarnFileStageTestS3ITCase

What is the purpose of the change
YarnFileStageTestS3ITCase.testRecursiveUploadForYarn verifies that the test directory used is cleaned up by YarnFileStageTest.testCopyFromLocalRecursive which should clean up the directory (in a finally block). However, for S3, we may not always see our own deletes.
Quoting from https://aws.amazon.com/s3/faqs/ here:

Q: What data consistency model does Amazon S3 employ?
Amazon S3 buckets in all Regions provide read-after-write consistency for PUTS of new objects and eventual consistency for overwrite PUTS and DELETES.

Brief change log

Remove a check for a deleted directory since we may not see our own delete yet
with S3.

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

merging.

will fix the checkstyle violation on the way.

oh, sorry for that


Fix NixOS cross-compilation SD Image

Fixes https://github.com/NixOS/nixpkgs/issues/106759.
Motivation for this change
Build NixOS aarch64 sd image by just instantiating the profile, without any required manual hacks in the config.
Apparently, there was very few left to fix https://github.com/NixOS/nixpkgs/issues/106759 (for aarch64 at least).
polkit can be built without gobject introspection.
With this, I can just
nix-build -E 'let pkgs = (import ./.) {}; in (pkgs.pkgsCross.aarch64-multiplatform.nixos ./nixos/modules/installer/cd-dvd/sd-image-aarch64.nix).sdImage'

… computer go brrr…
And tada, you get a aarch64 image :-)
No more need to manually disable polkit and udisks.
fsck.fat 4.1 (2017-01-24)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
      2048 bytes per cluster
         4 reserved sectors
First FAT starts at byte 2048 (sector 4)
         2 FATs, 16 bit entries
     30720 bytes per FAT (= 60 sectors)
Root directory starts at byte 63488 (sector 124)
       512 root directory entries
Data area starts at byte 79872 (sector 156)
     15321 data clusters (31377408 bytes)
32 sectors/track, 64 heads
         0 hidden sectors
     61440 sectors total
Checking for unused clusters.
firmware_part.img: 23 files, 11322/15321 clusters
61440+0 records in
61440+0 records out
31457280 bytes (31 MB, 30 MiB) copied, 0.100648 s, 313 MB/s
/nix/store/qg78laagrq3kp5fp0c9107ckapz0fxkw-nixos-sd-image-21.03pre-git-aarch64-linux.img-aarch64-unknown-linux-gnu/sd-image/nixos-sd-image-21.03pre-git-aarch64-linux.img : 25.91%<PHONE_NUMBER> =><PHONE_NUMBER> bytes, /nix/store/qg78laagrq3kp5fp0c9107ckapz0fxkw-nixos-sd-image-21.03pre-git-aarch64-linux.img-aarch64-unknown-linux-gnu/sd-image/nixos-sd-image-21.03pre-git-aarch64-linux.img.zst)
/nix/store/qg78laagrq3kp5fp0c9107ckapz0fxkw-nixos-sd-image-21.03pre-git-aarch64-linux.img-aarch64-unknown-linux-gnu

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I assumed staging-next to get merged soon anyways, and only did test on that branch.
IIRC, there was more in there necessary to build the full base image.

I assumed staging-next to get merged soon anyways, and only did test on that branch.
IIRC, there was more in there necessary to build the full base image.

I assumed staging-next to get merged soon anyways, and only did test on that branch.

Hopefully in a day or two. Waiting for some aarch64 results.

I assumed staging-next to get merged soon anyways, and only did test on that branch.

Hopefully in a day or two. Waiting for some aarch64 results.


NumberFormatException when checking some Artifacts

Sorry for not catching this before 0.6.0  The 0.6.0-snaphot (pre chrismas) i was using worked as expected.
On this miminal project.clj, lein ancient 0.6.0 and (newer 0.6.0-snapshots) fails with
(error) #<ExecutionException java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For input string: "20141107165303">
(defproject bam "1b"
  :description "bam"
  :dependencies [[io.intercom/intercom-java "1.0.0"]]
  :repositories [["jcenter" {:url "http://jcenter.bintray.com"}]])

lein-ancient 0.5.5 returns
 [io.intercom/intercom-java "1.0.1"] is available but we use "1.0.0"]

Sorry for not catching this before 0.6.0 [...]

No problem, that should generally be my job, I suppose. ;)
The thing is actually a bug in version-clj (and always should have been but maybe older versions of lein-ancient had more try/catch safeguards in place) which tries to parse e.g. this version:
0.0.1-20141002100138

and fails when running
(Integer/parseInt "20141002100138")
;; => #<NumberFormatException ...>

While this is fixed now, a problem remains, namely that e.g. 1.0.1-1 is treated as a newer (release!) version than 1.0.1 since version-clj expects non-release versions to have at least one non-numeric component.
If the versions with timestamp in your repository are actually SNAPSHOTs, lein-ancient will (at least for now) not treat them correctly I'm afraid.

Released in
[lein-ancient "0.6.1"]


No git tag available for v0.17.0

Not a probe-rs bug, but a bug in the git repo :)
There is no tag v0.17.0. Finding the commit is not terribly difficult, but it means that the CHANGELOG link is broken and it's a little confusing.

Fixed :)


Typo of destory

branch : master , version : 2.6.2-SNAPSHOT
RegistryDirectory , line 562

ProtocolConfig#destory() ,line 457
Fix : destory -> destroy

Thanks for your report. We will fix it ASAP.

Hi, would you mind send a pull request?

Yeah, my fault, sorry. The community wants everyone to join into. You can contribute your modification through sending a PR.

close this via https://github.com/apache/incubator-dubbo/pull/1851


Simplify or remove GraphInferenceDataset

It is basically a factory for the DGL graph in disguise and is unnecessarily cumbersome, lets prune it out or simplify.
See #498

FIxed by @kaminow i believe


Update to Bulma 0.5.0

Please add support for the latest version of Bulma :)

Support for Bulma 0.5.0 is already on it's way (it's done already in fact) and it will be released with Buefy 0.5.0.

We are working on it. It's just like @Tirke said.


How to import all icons without one by one

How to import all icons without one by one

kek

Sorry for the forEach mess, didnt´t seem to work, when using Unicon.add(uc); !
But aside that is does the job
//Vue 2 import
import Unicon from 'vue-unicons/dist/vue-unicons-vue2.es'
import * as uc from 'vue-unicons/dist/icons'

/*...*/

const objArray: Array<object> = [];
    Object.keys(uc).forEach(key => objArray.push(
    uc[key]
));
Unicon.add(objArray)
Vue.use(Unicon)

@DanielTerletzkiy  @muhammadjabir445  @thisVioletHydra  Hey guys, have you solved this issue ?

try vite plugin importus, maybe help u


[Proposal] New collection to allow shortcuts to filters

It would be nice to have shorthands to filter the subscriptions like...
Laravel\Cashier\Subscription::all()->onTrial()
instead of...
Laravel\Cashier\Subscription::all()->filter->onTrial()
I was not sure if you would see the value or just prefer to leave it out, so I am making this a WIP to see what you think before adding the other helpers & doing test.
If you like it, just let me know & I will polish it off.  Otherwise, please close.
Thanks!

No plans on adding this right now.


[18.03] zfs-user-2018-04-10 derivation can't be built (zfsUnstable)

Issue description
# nixos-rebuild boot

results in an error that builder for '/nix/store/x56h8yn2jjj0nppn9w6y7hzx8x2h57b0-zfs-user-2018-04-10.drv' failed with exit code 2
Relevant log:
Making install in system-generators
make[3]: Entering directory '/build/source/etc/systemd/system-generators'
make[4]: Entering directory '/build/source/etc/systemd/system-generators'
make[4]: Nothing to be done for 'install-exec-am'.
 /nix/store/cb3slv3szhp46xkrczqw7mscy5mnk64l-coreutils-8.29/bin/mkdir -p '/usr/lib/systemd/system-generators'
/nix/store/cb3slv3szhp46xkrczqw7mscy5mnk64l-coreutils-8.29/bin/mkdir: cannot create directory '/usr': Permission denied
make[4]: *** [Makefile:530: install-systemdgeneratorSCRIPTS] Error 1
make[4]: Leaving directory '/build/source/etc/systemd/system-generators'
make[3]: *** [Makefile:619: install-am] Error 2
make[3]: Leaving directory '/build/source/etc/systemd/system-generators'
make[2]: *** [Makefile:567: install-recursive] Error 1
make[2]: Leaving directory '/build/source/etc/systemd'
make[1]: *** [Makefile:567: install-recursive] Error 1
make[1]: Leaving directory '/build/source/etc'
make: *** [Makefile:742: install-recursive] Error 1

Steps to reproduce
My ZFS confiugration is:
  boot.supportedFilesystems = [ "zfs" ];

  boot.zfs = {
    enableUnstable = true;
    forceImportRoot = false;
    forceImportAll = false;
  };

Technical details

system: "x86_64-linux"
host os: Linux 4.14.32, NixOS, 18.03.131807.489a14add9a (Impala)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.0
channels(benny): ""
channels(root): "nixos-18.03.131953.cc95cbed4a2"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

cc: @Mic92 (due to being the person that commited the last change relevant to zfs)
Full log:
zfsUnstable_zfs-user.log

ccing the maintainers: @wizeman @wkennington @fpletz @globin


Automated tests for @mospherePro

Describe the bug
We need automated tests which will exercise core @mospherePro functionality without involving the UI. The core scenario is

atsign1 shares file with atsign2, atsign3, atsign4, ..., atsign50
notifications are delivered within expected timeframe
files are received successfully

This is the automated test equivalent of https://github.com/atsign-foundation/apps/issues/482

Added end2end tests for shared_key_test in at_client

Little progress in sprint PR33. Move to sprint PR34

Some progress this past sprint:

Setup: Spin up local root server, register and start new secondaries on demand
Execution: In order to be able to have all of the clients be contained within the same test process, each client is running in its own Isolate. Each client can then be instructed to call a function.

Goals for this sprint:

Control each client sending the respective Isolate by sending plain text requests conforming to a simple DSL. Far more flexible, far less code in the tests ultimately.
Implement the core tests as per this ticket's description

Timeboxing to 3SP for this sprint. Next sprint I plan to invest time in teaching the approach to others and getting many more tests written.

No progress in PR35; my time was spent on the Java client library and on eliminating end-to-end notification latency

Time-boxing to 5SP for sprint 36

Reducing to 3SP as actually a whole lot of supporting work was completed as part of the notification latency elimination work.

No progress in PR36, moving to PR37

Moving to backlog until PR38

@gkc should I move to high priority?

Yes


Stop redundant_array from creating non-Scope lifetime views, Fix MatMul

Waiting on #590

merged in #597


version 1.2.10 breaks on older chef versions

version 1.2.9 works fine on chef 11.whatever, while 1.2.10 fails as chef_gem's "compile_time" parameter doesn't exist.
I would suggest that this should have received a larger version bump, and clear warnings that this cookbook is no longer supported on chef clients < 12.1.x (I believe that's where the compile_time parameter was added?).
Minor other note: changelog dates 1.2.10 as 2014-02-17, when it should be 2015-02-17.

Can confirm this issue with chef client 11.16.4.

Sorry about that. Fixed in the latest patch release

The fix isn't working with chef 11.16.4:
  ArgumentError
  -------------
  wrong number of arguments (1 for 0)

  Cookbook Trace:
  ---------------
    ../xml/recipes/ruby.rb:44:in `block in from_file'
    ../xml/recipes/ruby.rb:43:in `from_file'
    ../route53/recipes/default.rb:20:in `from_file'
    ../route53/recipes/route53.rb:2:in `from_file'

   43:  chef_gem 'nokogiri' do
   44>>   compile_time true if respond_to?(:compile_time)
   45:    version node['xml']['nokogiri']['version']
   46:    action :install
   47:  end

Same issue here @someara @liquid-sky

+1 @someara


Updating build process to maven 3

From chicchiricco on April 11, 2011 12:32:36
Update the overall build process, currently based on maven 2.2.1, to maven 3 in order to take profit of new interesting features of the latest release.
Original issue: http://code.google.com/p/syncope/issues/detail?id=90

From chicchiricco on April 12, 2011 00:36:58
Labels: -Milestone-Release-20110502 Milestone-Release-20110510

From chicchiricco on April 23, 2011 02:48:55
Status: Started
Owner: chicchiricco

From chicchiricco on April 23, 2011 05:15:27
This issue was closed by revision r945 .
Status: Fixed


Add developer tab on semux gui

System information
Semux version: v1.3.0
OS & Version: Windows 10, Windows 7, Ubuntu 16.04, macOS 10.12.6
Expected behaviour
Add dropdown to show devoper/advanced option
this will show tab to enable running on testnet, saving wallet password on semux.properties, setting API user and password
with a save button to update the semux.properties, create semux-cli launcher etc. that will apply the next time semux is launched, offer restart semux using the new saved options
Actual behaviour
Running testnet requires running on cli which many are not comfortable doing,
API and other option on semux.properties requires a bit of editing and not the most convenient option

Saving/updating prop files usually loses all comments
How about a config option in properties to select network?

Closing in favor of #18


drop 3.6 for identity

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-identity


State optimization and state management

This story does not require development. It tracks the need to review what FIO stores in state and to decide what data should 1) always be in state, 2) be in state until expiration, 3) never be in state.
Research should be collected in the wiki page (or in a GitHub issue).
https://stealth.atlassian.net/wiki/spaces/DEV/pages/290226286/State+optimization+and+state+management
UAT:

Review findings with team.
We can then decide on what we want to take on in the near future.

Tracked as an initiative: https://fioprotocol.atlassian.net/browse/WP-119
Closing.


support dma chunk sizes other than 4092

Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝

[x] I have updated existing examples or added new ones (if applicable).
[x] I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
[x] My changes were added to the CHANGELOG.md in the proper section.
[x] My changes are in accordance to the esp-rs API guidelines

Extra:

[x] I have read the CONTRIBUTING.md guide and followed its instructions.

Pull Request Details 📖
This PR will allow dma "chunk sizes" other than the default 4092.
Description
This is needed to support DMA to/from psram on the esp32s3 where it requires that the size and address pointer fields in each DmaDescriptor are required to be "block" aligned where the block alignment is selectable from the set of 16, 32, or 64 bytes. (support for DMA to/from psram will be a seperate PR)

the dma_buffer type macros were refactored to remove code duplication and to add _chunk_size variants.
the DmaDescripterChain was changed to support specifing the chunk size.

Testing
tests were added for all of the dma_ macros
added an additional mem2mem test using a different CHUNK_SIZE

@bjoernQ In my previous PR I fixed a HIL test issue by Insuring that the test dropped the Mem2Mem struct and in the drop explicitly reset the "memory to memory" bit.   Thinking on this I think we should utilize the RegisterAccess::init() function to initialize all bits that are known cause undefined behavior.  Thoughts?

@bjoernQ In my previous PR I fixed a HIL test issue by Insuring that the test dropped the Mem2Mem struct and in the drop explicitly reset the "memory to memory" bit. Thinking on this I think we should utilize the RegisterAccess::init() function to initialize all bits that are known cause undefined behavior. Thoughts? (could be done in a separate PR)

Sounds good to me! Better to not hope for defaults being always set

Sounds good to me! Better to not hope for defaults being always set

Added.


32 bit ARM support?

I know macOS does not support 32-bit apps after version 10.15. But do we have any chance to run 32-bit apps in the Android Emulator either native or emulating? Thanks.

Hi, we haven't gotten any 32-bit ARM code to run natively on M1 yet. It's likely this would require a binary translation layer as 32-bit ARM code hasn't been supported by Apple hardware for a while.
However, 32-bit x86 should be supported via Virtualization.framework, which we also plan to integrate into the emulator as it will allow us to also run the existing x86 system images.

Hi, we haven't gotten any 32-bit ARM code to run natively on M1 yet. It's likely this would require a binary translation layer as 32-bit ARM code hasn't been supported by Apple hardware for a while.
However, 32-bit x86 should be supported via Virtualization.framework, which we also plan to integrate into the emulator as it will allow us to also run the existing x86 system images.

I think 32-bit arm support is more useful than x86 as most apps are target for mobile phones. So will you develop a translation layer like libhoudini?

Hi, we haven't gotten any 32-bit ARM code to run natively on M1 yet. It's likely this would require a binary translation layer as 32-bit ARM code hasn't been supported by Apple hardware for a while.
However, 32-bit x86 should be supported via Virtualization.framework, which we also plan to integrate into the emulator as it will allow us to also run the existing x86 system images.

I think 32-bit arm support is more useful than x86 as most apps are target for mobile phones. So will you develop a translation layer like libhoudini?

I can definitely check with folks internally. However, see https://android-developers.googleblog.com/2019/01/get-your-apps-ready-for-64-bit.html
From August of last year, we've required 64-bit in addition to 32-bit code when publishing apps to Google Play. IMO, going forward in supporting new hardware platforms such as M1, we should keep the 64-bit requirement in mind and not make ARM32 support as high a priority. The emulator needs to serve as a reference for Android app developers and it won't help the ecosystem if the emulator continues to default to or support 32-bit.

I think we need to enable 32-bit arm emulation for the QEMU arm64. However, I don't know how to achieve this.
Or we could build the 32-bit arm emulator runs pure armv7 Android.

I think we need to enable 32-bit arm emulation for the QEMU arm64. However, I don't know how to achieve this.
Or we could build the 32-bit arm emulator runs pure armv7 Android.

Update: I compiled the qemu-system-armel, it runs VERY SLOW just like emulate arm in x86.
Maybe we need qemu user mode to load armv7 library under arm64 environment.

Tired about this. I'm absolutely support 64bit, however, some software provider does not think so.


STAR-692: protect Date type from overflows regardless of whether it is            constructed from date string or from millis since epoch

It seams that we had a survivor C* process running on some of the nodes. Rerunning the job with all the affected nodes removed.


⚠ Bofrost.fr has degraded performance

In 46aba51, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1027 ms

Resolved: Bofrost.fr performance has improved in f8f6233 after 25 minutes.